diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41b95a642788..475eb663dc5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,11 +36,24 @@ jobs: - name: Install pnpm if: ${{ matrix.node-version != '14.x' }} - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 + + - name: Get pnpm version (node 14) + if: ${{ matrix.node-version == '14.x' }} + uses: actions/github-script@v7 + id: pnpm-version + with: + result-encoding: string + script: | + const packageJson = require('./package.json') + const pnpmVersion = packageJson.packageManager.split('@')[1] + console.log(`Use pnpm ${pnpmVersion}`) + return pnpmVersion - name: Install pnpm (node 14) if: ${{ matrix.node-version == '14.x' }} - run: npm install -g @pnpm/exe@8.6.2 + run: | + npm install -g @pnpm/exe@${{ steps.pnpm-version.outputs.result }} - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml index c75338fcd002..504b189bad53 100644 --- a/.github/workflows/compressed-size.yml +++ b/.github/workflows/compressed-size.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v2 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use latest LTS Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 629c0ba6a01f..656af0de9d4d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -38,7 +38,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index a198c934f940..8f283a338a9f 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -33,7 +33,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/e2e-basic.yml b/.github/workflows/e2e-basic.yml index 5df77193c3ad..498679d1f779 100644 --- a/.github/workflows/e2e-basic.yml +++ b/.github/workflows/e2e-basic.yml @@ -37,7 +37,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -71,9 +71,9 @@ jobs: run: pnpm i - name: Build targets - run: pnpm umi-scripts turbo build - --filter ./examples/max... - --filter ./examples/test-test/... + run: pnpm umi-scripts turbo build + --filter ./examples/max... + --filter ./examples/test-test/... --filter ./packages/umi/... - name: e2e:example:max diff --git a/.github/workflows/e2e-boilerplate.yml b/.github/workflows/e2e-boilerplate.yml index a26b28ac4703..25bf65f64ea8 100644 --- a/.github/workflows/e2e-boilerplate.yml +++ b/.github/workflows/e2e-boilerplate.yml @@ -36,7 +36,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -70,10 +70,10 @@ jobs: run: pnpm i - name: Build targets - run: pnpm umi-scripts turbo build - --filter ./examples/create-umi-simple... - --filter ./examples/create-umi-pro/... - --filter ./examples/antd-pro-create/... + run: pnpm umi-scripts turbo build + --filter ./examples/create-umi-simple... + --filter ./examples/create-umi-pro/... + --filter ./examples/antd-pro-create/... --filter ./packages/umi/... --filter ./packages/max/... --filter ./packages/preset-vue/... diff --git a/.github/workflows/e2e-mfsu.yml b/.github/workflows/e2e-mfsu.yml index 9eefc7a7f735..c9aee6c29959 100644 --- a/.github/workflows/e2e-mfsu.yml +++ b/.github/workflows/e2e-mfsu.yml @@ -35,9 +35,9 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - + - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/.github/workflows/e2e-qiankun.yml b/.github/workflows/e2e-qiankun.yml index d5830a7af260..9f4675317f78 100644 --- a/.github/workflows/e2e-qiankun.yml +++ b/.github/workflows/e2e-qiankun.yml @@ -36,7 +36,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -70,7 +70,7 @@ jobs: run: pnpm i - name: Build targets - run: pnpm umi-scripts turbo build + run: pnpm umi-scripts turbo build --filter ./examples/max... - name: e2e:example:qiankun:dev diff --git a/.github/workflows/e2e-vite.yml b/.github/workflows/e2e-vite.yml index bc3e13b54e4b..8060502e7de8 100644 --- a/.github/workflows/e2e-vite.yml +++ b/.github/workflows/e2e-vite.yml @@ -36,7 +36,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/contributors.json b/contributors.json index b370cdaa5a7c..3aabdc71ee7e 100644 --- a/contributors.json +++ b/contributors.json @@ -46,5 +46,6 @@ "qiguoq", "AmJunh", "MaxCDon", - "mysteryven" + "mysteryven", + "Jinbao1001" ] diff --git a/did-you-know/package.json b/did-you-know/package.json index 731caf498087..41fba8d9f743 100644 --- a/did-you-know/package.json +++ b/did-you-know/package.json @@ -23,7 +23,6 @@ "devDependencies": { "terminal-link": "^3.0.0" }, - "packageManager": "pnpm@7.3.0", "publishConfig": { "access": "public" }, @@ -151,7 +150,7 @@ "majorVersion": 4 }, { - "text": "请求加载态、数据管理、避免竟态问题,用 react-query 帮你全部解决", + "text": "请求加载态、数据管理、避免竞态问题,用 react-query 帮你全部解决", "url": "https://umijs.org/docs/max/react-query", "majorVersion": 4 }, diff --git a/did-you-know/src/plugin.ts b/did-you-know/src/plugin.ts index e05f955f965d..c21f2faba6d6 100644 --- a/did-you-know/src/plugin.ts +++ b/did-you-know/src/plugin.ts @@ -69,7 +69,7 @@ export default (api: any) => { const cacheDir = path.join(api.paths.absNodeModulesPath, '.cache'); if (!fs.existsSync(cacheDir)) { - fs.mkdirSync(cacheDir); + fs.mkdirSync(cacheDir, { recursive: true }); } fs.writeFileSync(recordJSONPath, JSON.stringify(records), 'utf-8'); }); diff --git a/docs/.dumi/components/Contributing/index.less b/docs/.dumi/components/Contributing/index.less new file mode 100644 index 000000000000..e777d1ef628b --- /dev/null +++ b/docs/.dumi/components/Contributing/index.less @@ -0,0 +1,17 @@ +.contributing { + max-width: 1200px; + margin: 0 auto 60px; + + :global { + p { + font-size: 18px; + color: #4a5e71; + margin-bottom: 16px; + } + + p a { + color: #0273dc; + text-decoration: none; + } + } +} diff --git a/docs/.dumi/components/Contributing/index.tsx b/docs/.dumi/components/Contributing/index.tsx index 635fef26d1bc..00f8cff895da 100644 --- a/docs/.dumi/components/Contributing/index.tsx +++ b/docs/.dumi/components/Contributing/index.tsx @@ -1,26 +1,10 @@ -import React from 'react'; -import styled from 'styled-components'; import { Link } from 'umi'; import { SectionHeader } from '../SectionHeader'; - -const ContributingWrapper = styled.div` - max-width: 1200px; - margin: 0 auto 60px; - p { - font-size: 18px; - color: #4a5e71; - margin-bottom: 16px; - } - - p a { - color: #0273dc; - text-decoration: none; - } -`; +import styles from './index.less'; export const Contributing = () => { return ( - +

@@ -37,6 +21,6 @@ export const Contributing = () => {

-
+ ); }; diff --git a/docs/.dumi/components/Features/index.less b/docs/.dumi/components/Features/index.less new file mode 100644 index 000000000000..be95108c98ac --- /dev/null +++ b/docs/.dumi/components/Features/index.less @@ -0,0 +1,41 @@ +.features { + max-width: 1200px; + margin: 0 auto; + + :global { + ul { + display: flex; + flex-wrap: wrap; + gap: 26px; + padding-top: 40px; + padding-bottom: 40px; + padding-left: 0; + justify-content: center; + } + + .feature { + width: 280px; + margin-bottom: 60px; + list-style: none; + } + + .feature div { + width: 100px; + height: 100px; + background-size: 100px 100px; + background-repeat: no-repeat; + margin: 0 auto 10px; + } + + .feature h3 { + font-size: 20px; + color: #2a445d; + margin-bottom: 12px; + text-align: center; + } + .feature p { + font-size: 18px; + color: #4a5e71; + } + } +} diff --git a/docs/.dumi/components/Features/index.tsx b/docs/.dumi/components/Features/index.tsx index 633d8fa2047d..4bcee0660402 100644 --- a/docs/.dumi/components/Features/index.tsx +++ b/docs/.dumi/components/Features/index.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import styled from 'styled-components'; import { SectionHeader } from '../SectionHeader'; import { BOX_IMAGE, @@ -11,53 +10,26 @@ import { PRACTICE_IMAGE, ROUTER_IMAGE, } from './image'; +import styles from './index.less'; -const FeaturesWrapper = styled.div` - max-width: 1200px; - margin: 0 auto; - ul { - display: flex; - flex-wrap: wrap; - gap: 26px; - padding-top: 40px; - padding-bottom: 40px; - padding-left: 0; - justify-content: center; - } - - .feature { - width: 280px; - margin-bottom: 60px; - list-style: none; - } - - .feature div { - width: 100px; - height: 100px; - background-size: 100px 100px; - background-repeat: no-repeat; - margin: 0 auto 10px; - } - - .feature h3 { - font-size: 20px; - color: #2a445d; - margin-bottom: 12px; - text-align: center; - } - .feature p { - font-size: 18px; - color: #4a5e71; - } -`; - -const FeatureItemPicture = styled.div<{ imageUrl: string }>` - background-image: url(${(props) => props.imageUrl}); -`; +const FeatureItemPicture = ({ + imageUrl, + children, +}: React.PropsWithChildren<{ imageUrl: string }>) => { + return ( +
+ {children} +
+ ); +}; export const Features = () => { return ( - +
  • @@ -125,6 +97,6 @@ export const Features = () => {

- +
); }; diff --git a/docs/.dumi/components/Footer/NewsLetterForm.tsx b/docs/.dumi/components/Footer/NewsLetterForm.tsx deleted file mode 100644 index ae4a47f81a06..000000000000 --- a/docs/.dumi/components/Footer/NewsLetterForm.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import React from 'react'; -import styled from 'styled-components'; - -const NewsLetterFormWrapper = styled.div` - font-size: 18px; - margin-bottom: 14px; - h2 { - font-size: 18px; - font-weight: 400; - } - input { - background: #ffffff; - border: 1px solid #bac1c8; - width: 180px; - font-size: 14px; - height: 28px; - line-height: 28px; - padding: 0 4px; - } - - button { - font-size: 14px; - color: #ffffff; - margin-left: 14px; - background-image: linear-gradient( - 224deg, - #0071da 0%, - #1890ff 100%, - #1890ff 100% - ); - height: 28px; - line-height: 28px; - padding: 0 10px; - border: none; - } - - button:hover { - background-image: linear-gradient( - 224deg, - #48a4fe 0%, - #6fbafe 100%, - #8dc9ff 100% - ); - } -`; - -export const NewsLetterForm = () => { - return ( - -

订阅 Umi 的最新动态

-
- - -
-
- ); -}; diff --git a/docs/.dumi/components/Footer/index.less b/docs/.dumi/components/Footer/index.less new file mode 100644 index 000000000000..34f0977651ac --- /dev/null +++ b/docs/.dumi/components/Footer/index.less @@ -0,0 +1,39 @@ +.footer { + padding: 40px 0; + + :global { + .foot-wrapper { + display: flex; + max-width: 1200px; + margin: 0 auto; + .left { + flex: 1; + .line { + line-height: 40px; + display: flex; + } + + .line h3 { + font-size: 18px; + width: 92px; + margin-right: 66px; + margin-top: 0; + margin-bottom: 0; + font-weight: 400; + color: #4a5e71; + } + + .line div { + flex: 1; + color: #4a5e71; + } + + .line div a { + text-decoration: none; + color: #4a5e71; + } + } + + } + } +} diff --git a/docs/.dumi/components/Footer/index.tsx b/docs/.dumi/components/Footer/index.tsx index 6ae19db27bec..c4870ab442d6 100644 --- a/docs/.dumi/components/Footer/index.tsx +++ b/docs/.dumi/components/Footer/index.tsx @@ -1,58 +1,9 @@ -import React from 'react'; -import styled from 'styled-components'; import { Link } from 'umi'; -import { NewsLetterForm } from './NewsLetterForm'; - -const FooterWrapper = styled.div` - padding: 40px 0; - .foot-wrapper { - display: flex; - max-width: 1200px; - margin: 0 auto; - .left { - flex: 1; - .line { - line-height: 40px; - display: flex; - } - - .line h3 { - font-size: 18px; - width: 92px; - margin-right: 66px; - margin-top: 0; - margin-bottom: 0; - font-weight: 400; - color: #4a5e71; - } - - .line div { - flex: 1; - color: #4a5e71; - } - - .line div a { - text-decoration: none; - color: #4a5e71; - } - } - - .right { - min-width: 400px; - font-size: 16px; - .copyright { - font-size: 14px; - color: #8996a1; - line-height: 22px; - margin-top: 24px; - } - } - } -`; +import styles from './index.less'; export const Footer = () => { return ( - +
@@ -88,10 +39,7 @@ export const Footer = () => {
-
- -
-
+ ); }; diff --git a/docs/.dumi/components/Hero/GithubStar.tsx b/docs/.dumi/components/Hero/GithubStar.tsx index fcedca583bf7..8f87f392066a 100644 --- a/docs/.dumi/components/Hero/GithubStar.tsx +++ b/docs/.dumi/components/Hero/GithubStar.tsx @@ -4,7 +4,9 @@ import CountUp from 'react-countup'; const LS_KEY = 'github-stars'; export const GithubStar = () => { - const [count, setCount] = useState(localStorage.getItem(LS_KEY) || '12K+'); + const [count, setCount] = useState( + (typeof window !== 'undefined' && localStorage.getItem(LS_KEY)) || '14K+', + ); useEffect(() => { (async () => { diff --git a/docs/.dumi/components/Hero/image.ts b/docs/.dumi/components/Hero/image.ts deleted file mode 100644 index f96d7cd73015..000000000000 --- a/docs/.dumi/components/Hero/image.ts +++ /dev/null @@ -1,17 +0,0 @@ -export const BG_IMAGE = - 'https://img.alicdn.com/imgextra/i4/O1CN01Ri0dNS26K5UcRKrrU_!!6000000007642-2-tps-280-1400.png'; - -export const BIG_LOGE_IMAGE = - 'https://img.alicdn.com/imgextra/i4/O1CN01Gk5nSa1nkDO5AjXlN_!!6000000005127-2-tps-920-426.png'; - -export const GITHUB_STAR_IMAGE = - 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTEyIDBDNS4zNzQgMCAwIDUuMzczIDAgMTJjMCA1LjMwMiAzLjQzOCA5LjggOC4yMDcgMTEuMzg3LjU5OS4xMTEuNzkzLS4yNjEuNzkzLS41Nzd2LTIuMjM0Yy0zLjMzOC43MjYtNC4wMzMtMS40MTYtNC4wMzMtMS40MTYtLjU0Ni0xLjM4Ny0xLjMzMy0xLjc1Ni0xLjMzMy0xLjc1Ni0xLjA4OS0uNzQ1LjA4My0uNzI5LjA4My0uNzI5IDEuMjA1LjA4NCAxLjgzOSAxLjIzNyAxLjgzOSAxLjIzNyAxLjA3IDEuODM0IDIuODA3IDEuMzA0IDMuNDkyLjk5Ny4xMDctLjc3NS40MTgtMS4zMDUuNzYyLTEuNjA0LTIuNjY1LS4zMDUtNS40NjctMS4zMzQtNS40NjctNS45MzEgMC0xLjMxMS40NjktMi4zODEgMS4yMzYtMy4yMjEtLjEyNC0uMzAzLS41MzUtMS41MjQuMTE3LTMuMTc2IDAgMCAxLjAwOC0uMzIyIDMuMzAxIDEuMjNBMTEuNTA5IDExLjUwOSAwIDAgMSAxMiA1LjgwM2MxLjAyLjAwNSAyLjA0Ny4xMzggMy4wMDYuNDA0IDIuMjkxLTEuNTUyIDMuMjk3LTEuMjMgMy4yOTctMS4yMy42NTMgMS42NTMuMjQyIDIuODc0LjExOCAzLjE3Ni43Ny44NCAxLjIzNSAxLjkxMSAxLjIzNSAzLjIyMSAwIDQuNjA5LTIuODA3IDUuNjI0LTUuNDc5IDUuOTIxLjQzLjM3Mi44MjMgMS4xMDIuODIzIDIuMjIydjMuMjkzYzAgLjMxOS4xOTIuNjk0LjgwMS41NzZDMjAuNTY2IDIxLjc5NyAyNCAxNy4zIDI0IDEyYzAtNi42MjctNS4zNzMtMTItMTItMTJ6Ii8+PC9zdmc+'; - -export const BIG_SLOGAN1_IMAGE = - 'https://img.alicdn.com/imgextra/i4/O1CN01AYMMmi1d4P4hiTpYK_!!6000000003682-2-tps-468-152.png'; - -export const BIG_SLOGAN2_IMAGE = - 'https://img.alicdn.com/imgextra/i4/O1CN011JiaU21wvVhMqXI4G_!!6000000006370-2-tps-700-116.png'; - -export const BOW_IMAGE = - 'https://img.alicdn.com/imgextra/i3/O1CN01L7phqd1ud4WehHiRc_!!6000000006059-2-tps-760-386.png'; diff --git a/docs/.dumi/components/Hero/index.less b/docs/.dumi/components/Hero/index.less new file mode 100644 index 000000000000..ee58335c5fca --- /dev/null +++ b/docs/.dumi/components/Hero/index.less @@ -0,0 +1,124 @@ +.hero { + height: 640px; + position: relative; + + :global { + .bg { + position: absolute; + left: 0; + top: 0; + width: 100%; + background: url('https://img.alicdn.com/imgextra/i4/O1CN01Ri0dNS26K5UcRKrrU_!!6000000007642-2-tps-280-1400.png') repeat-x; + background-position: 0 -40px; + background-size: 140px 700px; + height: 640px; + z-index: 1; + } + .wrapper { + position: relative; + max-width: 1200px; + margin: 0 auto; + display: flex; + z-index: 2; + .left { + flex: 1; + padding-top: 130px; + padding-left: 90px; + .bigLogo { + width: 460px; + height: 213px; + background: url('https://img.alicdn.com/imgextra/i4/O1CN01Gk5nSa1nkDO5AjXlN_!!6000000005127-2-tps-920-426.png') no-repeat; + background-size: 460px 213px; + } + + .actions { + margin-top: 87px; + display: flex; + .button { + background-image: linear-gradient( + 224deg, + #0071da 0%, + #1890ff 100%, + #1890ff 100% + ); + width: 180px; + height: 54px; + line-height: 54px; + text-align: center; + color: #fff; + font-size: 22px; + margin-left: 27px; + } + .button:hover { + background-image: linear-gradient( + 224deg, + #48a4fe 0%, + #6fbafe 100%, + #8dc9ff 100% + ); + } + .githubStar { + display: flex; + font-size: 18px; + color: #4a5e71; + margin-left: 40px; + line-height: 54px; + /*padding-left: 28px;*/ + /*background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTEyIDBDNS4zNzQgMCAwIDUuMzczIDAgMTJjMCA1LjMwMiAzLjQzOCA5LjggOC4yMDcgMTEuMzg3LjU5OS4xMTEuNzkzLS4yNjEuNzkzLS41Nzd2LTIuMjM0Yy0zLjMzOC43MjYtNC4wMzMtMS40MTYtNC4wMzMtMS40MTYtLjU0Ni0xLjM4Ny0xLjMzMy0xLjc1Ni0xLjMzMy0xLjc1Ni0xLjA4OS0uNzQ1LjA4My0uNzI5LjA4My0uNzI5IDEuMjA1LjA4NCAxLjgzOSAxLjIzNyAxLjgzOSAxLjIzNyAxLjA3IDEuODM0IDIuODA3IDEuMzA0IDMuNDkyLjk5Ny4xMDctLjc3NS40MTgtMS4zMDUuNzYyLTEuNjA0LTIuNjY1LS4zMDUtNS40NjctMS4zMzQtNS40NjctNS45MzEgMC0xLjMxMS40NjktMi4zODEgMS4yMzYtMy4yMjEtLjEyNC0uMzAzLS41MzUtMS41MjQuMTE3LTMuMTc2IDAgMCAxLjAwOC0uMzIyIDMuMzAxIDEuMjNBMTEuNTA5IDExLjUwOSAwIDAgMSAxMiA1LjgwM2MxLjAyLjAwNSAyLjA0Ny4xMzggMy4wMDYuNDA0IDIuMjkxLTEuNTUyIDMuMjk3LTEuMjMgMy4yOTctMS4yMy42NTMgMS42NTMuMjQyIDIuODc0LjExOCAzLjE3Ni43Ny44NCAxLjIzNSAxLjkxMSAxLjIzNSAzLjIyMSAwIDQuNjA5LTIuODA3IDUuNjI0LTUuNDc5IDUuOTIxLjQzLjM3Mi44MjMgMS4xMDIuODIzIDIuMjIydjMuMjkzYzAgLjMxOS4xOTIuNjk0LjgwMS41NzZDMjAuNTY2IDIxLjc5NyAyNCAxNy4zIDI0IDEyYzAtNi42MjctNS4zNzMtMTItMTItMTJ6Ii8+PC9zdmc+) no-repeat 0 center;*/ + /*background-size: 24px 24px;*/ + } + .githubStar:before { + background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTEyIDBDNS4zNzQgMCAwIDUuMzczIDAgMTJjMCA1LjMwMiAzLjQzOCA5LjggOC4yMDcgMTEuMzg3LjU5OS4xMTEuNzkzLS4yNjEuNzkzLS41Nzd2LTIuMjM0Yy0zLjMzOC43MjYtNC4wMzMtMS40MTYtNC4wMzMtMS40MTYtLjU0Ni0xLjM4Ny0xLjMzMy0xLjc1Ni0xLjMzMy0xLjc1Ni0xLjA4OS0uNzQ1LjA4My0uNzI5LjA4My0uNzI5IDEuMjA1LjA4NCAxLjgzOSAxLjIzNyAxLjgzOSAxLjIzNyAxLjA3IDEuODM0IDIuODA3IDEuMzA0IDMuNDkyLjk5Ny4xMDctLjc3NS40MTgtMS4zMDUuNzYyLTEuNjA0LTIuNjY1LS4zMDUtNS40NjctMS4zMzQtNS40NjctNS45MzEgMC0xLjMxMS40NjktMi4zODEgMS4yMzYtMy4yMjEtLjEyNC0uMzAzLS41MzUtMS41MjQuMTE3LTMuMTc2IDAgMCAxLjAwOC0uMzIyIDMuMzAxIDEuMjNBMTEuNTA5IDExLjUwOSAwIDAgMSAxMiA1LjgwM2MxLjAyLjAwNSAyLjA0Ny4xMzggMy4wMDYuNDA0IDIuMjkxLTEuNTUyIDMuMjk3LTEuMjMgMy4yOTctMS4yMy42NTMgMS42NTMuMjQyIDIuODc0LjExOCAzLjE3Ni43Ny44NCAxLjIzNSAxLjkxMSAxLjIzNSAzLjIyMSAwIDQuNjA5LTIuODA3IDUuNjI0LTUuNDc5IDUuOTIxLjQzLjM3Mi44MjMgMS4xMDIuODIzIDIuMjIydjMuMjkzYzAgLjMxOS4xOTIuNjk0LjgwMS41NzZDMjAuNTY2IDIxLjc5NyAyNCAxNy4zIDI0IDEyYzAtNi42MjctNS4zNzMtMTItMTItMTJ6Ii8+PC9zdmc+') no-repeat 0 center; + background-size: 24px 24px; + width: 24px; + height: 54px; + display: inline-block; + content: ''; + margin-right: 6px; + } + } + .actions a { + text-decoration: none; + } + } + .right { + width: 460px; + padding-top: 90px; + margin-right: 40px; + .bigSlogan1 { + background: url('https://img.alicdn.com/imgextra/i4/O1CN01AYMMmi1d4P4hiTpYK_!!6000000003682-2-tps-468-152.png') no-repeat; + width: 234px; + height: 76px; + background-size: 234px 76px; + margin: 0 auto 6px; + } + + .bigSlogan2 { + background: url('https://img.alicdn.com/imgextra/i4/O1CN011JiaU21wvVhMqXI4G_!!6000000006370-2-tps-700-116.png') no-repeat; + width: 350px; + height: 58px; + background-size: 350px 58px; + margin: 0 auto 14px; + } + + .slogan { + font-size: 25px; + color: #708293; + text-align: center; + width: 460px; + } + .slogan strong { + color: #0273dc; + font-weight: normal; + } + .bow { + background: url('https://img.alicdn.com/imgextra/i3/O1CN01L7phqd1ud4WehHiRc_!!6000000006059-2-tps-760-386.png') no-repeat; + width: 380px; + height: 193px; + background-size: 380px 193px; + margin: 8px auto 0; + } + } + } + } +} diff --git a/docs/.dumi/components/Hero/index.tsx b/docs/.dumi/components/Hero/index.tsx index 7c2dfd7ac963..7d68ff14102f 100644 --- a/docs/.dumi/components/Hero/index.tsx +++ b/docs/.dumi/components/Hero/index.tsx @@ -1,149 +1,17 @@ -import React from 'react'; import { TextLoop } from 'react-text-loop-next'; -import styled from 'styled-components'; import { Link } from 'umi'; import { GithubStar } from './GithubStar'; -import { - BG_IMAGE, - BIG_LOGE_IMAGE, - BIG_SLOGAN1_IMAGE, - BIG_SLOGAN2_IMAGE, - BOW_IMAGE, - GITHUB_STAR_IMAGE, -} from './image'; +import styles from './index.less'; -const HeroWrapper = styled.div` - height: 640px; - position: relative; - .bg { - position: absolute; - left: 0; - top: 0; - width: 100%; - background: url('${BG_IMAGE}') repeat-x; - background-position: 0 -40px; - background-size: 140px 700px; - height: 640px; - z-index: 1; - } - .wrapper { - position: relative; - max-width: 1200px; - margin: 0 auto; - display: flex; - z-index: 2; - .left { - flex: 1; - padding-top: 130px; - padding-left: 90px; - .bigLogo { - width: 460px; - height: 213px; - background: url('${BIG_LOGE_IMAGE}') no-repeat; - background-size: 460px 213px; - } - - .actions { - margin-top: 87px; - display: flex; - .button { - background-image: linear-gradient( - 224deg, - #0071da 0%, - #1890ff 100%, - #1890ff 100% - ); - width: 180px; - height: 54px; - line-height: 54px; - text-align: center; - color: #fff; - font-size: 22px; - margin-left: 27px; - } - .button:hover { - background-image: linear-gradient( - 224deg, - #48a4fe 0%, - #6fbafe 100%, - #8dc9ff 100% - ); - } - .githubStar { - display: flex; - font-size: 18px; - color: #4a5e71; - margin-left: 40px; - line-height: 54px; - /*padding-left: 28px;*/ - /*background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTEyIDBDNS4zNzQgMCAwIDUuMzczIDAgMTJjMCA1LjMwMiAzLjQzOCA5LjggOC4yMDcgMTEuMzg3LjU5OS4xMTEuNzkzLS4yNjEuNzkzLS41Nzd2LTIuMjM0Yy0zLjMzOC43MjYtNC4wMzMtMS40MTYtNC4wMzMtMS40MTYtLjU0Ni0xLjM4Ny0xLjMzMy0xLjc1Ni0xLjMzMy0xLjc1Ni0xLjA4OS0uNzQ1LjA4My0uNzI5LjA4My0uNzI5IDEuMjA1LjA4NCAxLjgzOSAxLjIzNyAxLjgzOSAxLjIzNyAxLjA3IDEuODM0IDIuODA3IDEuMzA0IDMuNDkyLjk5Ny4xMDctLjc3NS40MTgtMS4zMDUuNzYyLTEuNjA0LTIuNjY1LS4zMDUtNS40NjctMS4zMzQtNS40NjctNS45MzEgMC0xLjMxMS40NjktMi4zODEgMS4yMzYtMy4yMjEtLjEyNC0uMzAzLS41MzUtMS41MjQuMTE3LTMuMTc2IDAgMCAxLjAwOC0uMzIyIDMuMzAxIDEuMjNBMTEuNTA5IDExLjUwOSAwIDAgMSAxMiA1LjgwM2MxLjAyLjAwNSAyLjA0Ny4xMzggMy4wMDYuNDA0IDIuMjkxLTEuNTUyIDMuMjk3LTEuMjMgMy4yOTctMS4yMy42NTMgMS42NTMuMjQyIDIuODc0LjExOCAzLjE3Ni43Ny44NCAxLjIzNSAxLjkxMSAxLjIzNSAzLjIyMSAwIDQuNjA5LTIuODA3IDUuNjI0LTUuNDc5IDUuOTIxLjQzLjM3Mi44MjMgMS4xMDIuODIzIDIuMjIydjMuMjkzYzAgLjMxOS4xOTIuNjk0LjgwMS41NzZDMjAuNTY2IDIxLjc5NyAyNCAxNy4zIDI0IDEyYzAtNi42MjctNS4zNzMtMTItMTItMTJ6Ii8+PC9zdmc+) no-repeat 0 center;*/ - /*background-size: 24px 24px;*/ - } - .githubStar:before { - background: url('${GITHUB_STAR_IMAGE}') no-repeat 0 center; - background-size: 24px 24px; - width: 24px; - height: 54px; - display: inline-block; - content: ''; - margin-right: 6px; - } - } - .actions a { - text-decoration: none; - } - } - .right { - width: 460px; - padding-top: 90px; - margin-right: 40px; - .bigSlogan1 { - background: url('${BIG_SLOGAN1_IMAGE}') no-repeat; - width: 234px; - height: 76px; - background-size: 234px 76px; - margin: 0 auto 6px; - } - - .bigSlogan2 { - background: url('${BIG_SLOGAN2_IMAGE}') no-repeat; - width: 350px; - height: 58px; - background-size: 350px 58px; - margin: 0 auto 14px; - } - - .slogan { - font-size: 25px; - color: #708293; - text-align: center; - width: 460px; - } - .slogan strong { - color: #0273dc; - font-weight: normal; - } - .bow { - background: url('${BOW_IMAGE}') no-repeat; - width: 380px; - height: 193px; - background-size: 380px 193px; - margin: 8px auto 0; - } - } - } -`; export const Hero = () => { - // TODO: github stars 存 localStorage - // 采用 stale-while-revalidate 的策略 return ( - +
- +
快速上手 →
@@ -174,6 +42,6 @@ export const Hero = () => {
- +
); }; diff --git a/docs/.dumi/components/SectionHeader/index.less b/docs/.dumi/components/SectionHeader/index.less new file mode 100644 index 000000000000..e60f7c3f57b2 --- /dev/null +++ b/docs/.dumi/components/SectionHeader/index.less @@ -0,0 +1,22 @@ +.section { + display: flex; + margin-bottom: 40px; + + :global { + div { + flex: 1; + border-top: 1px solid #ebf0f4; + height: 1px; + margin-top: 18px; + } + + h2 { + font-size: 26px; + color: #2a445d; + text-align: center; + padding: 0 20px; + margin: 0; + font-weight: 400; + } + } +} diff --git a/docs/.dumi/components/SectionHeader/index.tsx b/docs/.dumi/components/SectionHeader/index.tsx index 860111c2770e..b3c7a0391152 100644 --- a/docs/.dumi/components/SectionHeader/index.tsx +++ b/docs/.dumi/components/SectionHeader/index.tsx @@ -1,32 +1,11 @@ -import React from 'react'; -import styled from 'styled-components'; - -const SectionHeaderWrapper = styled.div` - display: flex; - margin-bottom: 40px; - div { - flex: 1; - border-top: 1px solid #ebf0f4; - height: 1px; - margin-top: 18px; - } - - h2 { - font-size: 26px; - color: #2a445d; - text-align: center; - padding: 0 20px; - margin: 0; - font-weight: 400; - } -`; +import styles from './index.less'; export const SectionHeader = (props: { title: string }) => { return ( - +

{props.title}

- +
); }; diff --git a/docs/.dumi/components/WhoIsUsing/index.less b/docs/.dumi/components/WhoIsUsing/index.less new file mode 100644 index 000000000000..3929320fe0ca --- /dev/null +++ b/docs/.dumi/components/WhoIsUsing/index.less @@ -0,0 +1,20 @@ +.who_is_using { + max-width: 1200px; + margin: 0 auto 60px; + + :global { + ul { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 20px; + list-style: none; + padding: 0; + li img { + width: 224px; + height: 81px; + margin: -8px; + } + } + } +} diff --git a/docs/.dumi/components/WhoIsUsing/index.tsx b/docs/.dumi/components/WhoIsUsing/index.tsx index 56b9317fc4f2..4ca8cdbd2aee 100644 --- a/docs/.dumi/components/WhoIsUsing/index.tsx +++ b/docs/.dumi/components/WhoIsUsing/index.tsx @@ -1,27 +1,9 @@ -import React from 'react'; -import styled from 'styled-components'; import { SectionHeader } from '../SectionHeader'; +import styles from './index.less'; -const WhoIsUsingWrapper = styled.div` - max-width: 1200px; - margin: 0 auto 60px; - ul { - display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 20px; - list-style: none; - padding: 0; - li img { - width: 224px; - height: 81px; - margin: -8px; - } - } -`; export const WhoIsUsing = () => { return ( - +
  • @@ -85,6 +67,6 @@ export const WhoIsUsing = () => { />
- +
); }; diff --git a/docs/.dumi/global.less b/docs/.dumi/global.less new file mode 100644 index 000000000000..a94c13e02d50 --- /dev/null +++ b/docs/.dumi/global.less @@ -0,0 +1,9 @@ +// hide mf related docs +.dumi-default-sidebar-group { + a[href="/docs/guides/mfsu"], + a[href="/en-US/docs/guides/mfsu"], + a[href="/docs/max/mf"], + a[href="/en-US/docs/max/mf"] { + display: none; + } +} diff --git a/docs/.dumi/pages/index.en-US.tsx b/docs/.dumi/pages/index.en-US.tsx new file mode 100644 index 000000000000..701433ce0736 --- /dev/null +++ b/docs/.dumi/pages/index.en-US.tsx @@ -0,0 +1 @@ +export { default } from '.'; diff --git a/docs/.dumi/pages/index.less b/docs/.dumi/pages/index.less new file mode 100644 index 000000000000..41518721b2f9 --- /dev/null +++ b/docs/.dumi/pages/index.less @@ -0,0 +1,32 @@ +html[data-prefers-color='dark']{ + .bg { + opacity: 0.1; + } + .bigLogo{ + opacity: 0.8; + } + .githubStar,.section-header-title { + color: rgba(255, 255, 255, 0.7) !important; + } + .section-header-line{ + border-top-color: rgba(255, 255, 255, 0.7) !important; + } + .githubStar:before { + filter: invert(80%); + } + .slogan, .contributing-text, .feature h3, .feature p { + color: rgba(255, 255, 255, 0.8)!important; + } + .bow { + opacity: 0.8; + } + .using-list li { + background-color: rgba(255, 255, 255, 0.2); + overflow: auto; + } + .foot-wrapper { + .left .line h3, .left .line div, .left .line div a { + color: rgba(255, 255, 255, 0.8)!important; + } + } +} diff --git a/docs/.dumi/pages/index.tsx b/docs/.dumi/pages/index.tsx index 09ca51ffb08c..99a98cf2e58d 100644 --- a/docs/.dumi/pages/index.tsx +++ b/docs/.dumi/pages/index.tsx @@ -1,53 +1,16 @@ /** * title: UmiJS - 插件化的企业级前端应用框架 */ -import React from 'react'; -import { createGlobalStyle } from 'styled-components'; import { Contributing } from '../components/Contributing'; import { Features } from '../components/Features'; import { Footer } from '../components/Footer'; import { Hero } from '../components/Hero'; import { WhoIsUsing } from '../components/WhoIsUsing'; - -const GlobalStyle = createGlobalStyle` - html[data-prefers-color='dark']{ - .bg { - opacity: 0.1; - } - .bigLogo{ - opacity: 0.8; - } - .githubStar,.section-header-title { - color: rgba(255, 255, 255, 0.7) !important; - } - .section-header-line{ - border-top-color: rgba(255, 255, 255, 0.7) !important; - } - .githubStar:before { - filter: invert(80%); - } - .slogan, .contributing-text, .feature h3, .feature p { - color: rgba(255, 255, 255, 0.8)!important; - } - .bow { - opacity: 0.8; - } - .using-list li { - background-color: rgba(255, 255, 255, 0.2); - overflow: auto; - } - .foot-wrapper { - .left .line h3, .left .line div, .left .line div a { - color: rgba(255, 255, 255, 0.8)!important; - } - } - } -`; +import './index.less'; const Index = () => { return ( <> - diff --git a/docs/.dumi/theme/builtins/HashAnchorCompat/index.tsx b/docs/.dumi/theme/builtins/HashAnchorCompat/index.tsx new file mode 100644 index 000000000000..0046d5bab1af --- /dev/null +++ b/docs/.dumi/theme/builtins/HashAnchorCompat/index.tsx @@ -0,0 +1,17 @@ +import { useLayoutEffect } from 'react'; + +interface IHashAnchorCompatProps { + from: string; + to: string; +} + +export default function HashAnchorCompat({ from, to }: IHashAnchorCompatProps) { + useLayoutEffect(() => { + const hash = window.location.hash; + if (hash === from) { + window.location.hash = to; + } + }, []); + + return null; +} diff --git a/docs/.dumi/theme/slots/HeaderExtra/index.tsx b/docs/.dumi/theme/slots/HeaderExtra/index.tsx index 1d2cee0b025a..361b842e51ba 100644 --- a/docs/.dumi/theme/slots/HeaderExtra/index.tsx +++ b/docs/.dumi/theme/slots/HeaderExtra/index.tsx @@ -1,5 +1,5 @@ import { ReactComponent as IconDown } from '@ant-design/icons-svg/inline-svg/outlined/down.svg'; -import React, { type FC } from 'react'; +import { type FC } from 'react'; const HeaderExtra: FC = () => { return ( diff --git a/docs/.dumi/tsconfig.json b/docs/.dumi/tsconfig.json new file mode 100644 index 000000000000..a32dd4f239d6 --- /dev/null +++ b/docs/.dumi/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../tsconfig.json", + "include": ["**/*"] +} diff --git a/docs/.dumi/typings.d.ts b/docs/.dumi/typings.d.ts new file mode 100644 index 000000000000..93a065fad667 --- /dev/null +++ b/docs/.dumi/typings.d.ts @@ -0,0 +1,14 @@ +type CSSModuleClasses = { readonly [key: string]: string } +declare module '*.less' { + const classes: CSSModuleClasses + export default classes +} +declare module '*.svg' { + import * as React from 'react'; + export const ReactComponent: React.FunctionComponent & { title?: string }>; + + const src: string + export default src +} diff --git a/docs/.dumirc.ts b/docs/.dumirc.ts index 35cea5562b8a..0d225d02bfb9 100644 --- a/docs/.dumirc.ts +++ b/docs/.dumirc.ts @@ -32,6 +32,10 @@ export default defineConfig({ define: { 'process.env.UMI_VERSION': version, }, + locales: [ + { id: 'zh-CN', name: '中文' }, + { id: 'en-US', name: 'EN' }, + ], themeConfig: { name: 'UmiJS', socialLinks: { @@ -39,173 +43,58 @@ export default defineConfig({ }, footer: 'Open-source MIT Licensed | Copyright © 2017-present', nav: { - mode: 'override', - value: [ + 'zh-CN': [ { title: '介绍', link: '/docs/introduce/introduce', + activePath: '/docs/introduce', }, { title: '指南', link: '/docs/guides/getting-started', + activePath: '/docs/guides', }, { title: 'API', link: '/docs/api/api', + activePath: '/docs/api', }, { title: 'Umi Max', link: '/docs/max/introduce', + activePath: '/docs/max', }, { title: '博客', link: '/blog/umi-4-rc', + activePath: '/blog', }, ], - }, - sidebar: { - '/docs/guides': [ + 'en-US': [ { - children: [ - { - title: '快速上手', - link: '/docs/guides/getting-started', - }, - { - title: '开发环境', - link: 'docs/guides/prepare', - }, - { - title: '目录结构', - link: 'docs/guides/directory-structure', - }, - { - title: '路由', - link: 'docs/guides/routes', - }, - { - title: '插件', - link: 'docs/guides/use-plugins', - }, - { - title: 'Mock', - link: 'docs/guides/mock', - }, - { - title: '代理', - link: 'docs/guides/proxy', - }, - { - title: '样式', - link: 'docs/guides/styling', - }, - { - title: '路由数据加载', - link: 'docs/guides/client-loader', - }, - { - title: 'TypeScript', - link: 'docs/guides/typescript', - }, - { - title: '环境变量', - link: 'docs/guides/env-variables', - }, - { - title: '脚手架', - link: 'docs/guides/boilerplate', - }, - { - title: '微生成器', - link: 'docs/guides/generator', - }, - { - title: '编码规范', - link: 'docs/guides/lint', - }, - { - title: '调试', - link: 'docs/guides/debug', - }, - { - title: '测试', - link: 'docs/guides/test', - }, - { - title: '开发插件', - link: 'docs/guides/plugins', - }, - { - title: '使用 Vue', - link: 'docs/guides/use-vue', - }, - { - title: 'MPA 模式', - link: 'docs/guides/mpa', - }, - ], + title: 'Introduce', + link: '/en-US/docs/introduce/introduce', + activePath: '/en-US/docs/introduce', + }, + { + title: 'Guide', + link: '/en-US/docs/guides/getting-started', + activePath: '/en-US/docs/guides', + }, + { + title: 'API', + link: '/en-US/docs/api/api', + activePath: '/en-US/docs/api', + }, + { + title: 'Umi Max', + link: '/en-US/docs/max/introduce', + activePath: '/en-US/docs/max', }, - ], - '/docs/max': [ { - children: [ - { - title: 'Umi Max 简介', - link: '/docs/max/introduce', - }, - { - title: '布局与菜单', - link: '/docs/max/layout-menu', - }, - { - title: 'antd', - link: '/docs/max/antd', - }, - { - title: '图表', - link: '/docs/max/charts', - }, - { - title: '数据流', - link: '/docs/max/data-flow', - }, - { - title: '请求', - link: '/docs/max/request', - }, - { - title: '权限', - link: '/docs/max/access', - }, - { - title: '国际化', - link: '/docs/max/i18n', - }, - { - title: '微前端', - link: '/docs/max/micro-frontend', - }, - { - title: 'styled-components', - link: '/docs/max/styled-components', - }, - { - title: 'react-query', - link: '/docs/max/react-query', - }, - { - title: 'valtio', - link: '/docs/max/valtio', - }, - { - title: 'dva', - link: '/docs/max/dva', - }, - { - title: '站点统计', - link: '/docs/max/analytics', - }, - ], + title: 'Blog', + link: '/en-US/blog/umi-4-rc', + activePath: '/en-US/blog', }, ], }, diff --git a/docs/docs/blog/code-splitting.en-US.md b/docs/docs/blog/code-splitting.en-US.md new file mode 100644 index 000000000000..5cac55c7c7e3 --- /dev/null +++ b/docs/docs/blog/code-splitting.en-US.md @@ -0,0 +1,50 @@ +--- +toc: content +order: 5 +group: + title: Blog +--- + +# 代码拆分指南 + +Umi 4 默认 按页拆包、按需加载(这近似等同于 Umi 3 中的 `dynamicImport`),通过 [`loading.tsx`](../docs/guides/directory-structure#loadingtsxjsx) 来自定义加载动画。 + +### 使用分包策略 + +Umi 4 内置了不同的代码拆分策略 ( [codeSplitting](../docs/api/config#codesplitting) ) ,通过配置开启: + +```ts +// .umirc.ts +export default { + codeSplitting: { + jsStrategy: 'granularChunks', + }, +}; +``` + +这会按照一定的优化策略进行自动分包,若需手动进行更细致的分包,请参见下文。 + +### 手动拆分 + +当你的产物体积变大时,可进一步手动拆包: + +```ts +import { lazy, Suspense } from 'react' + +// './Page' 该组件将被自动拆出去 +const Page = lazy(() => import('./Page')) + +export default function() { + return ( + loading... + + + ) +} +``` + +通常情况下,我们会手动拆分引用了较大第三方库的组件,实现按需加载。 + +### 分析产物构成 + +通过指定 [ANALYZE](../docs/guides/env-variables#analyze) 环境变量可以分析产物构成,根据分析结果来修改代码和进一步决策。 diff --git a/docs/docs/blog/develop-blog-using-umi.en-US.md b/docs/docs/blog/develop-blog-using-umi.en-US.md new file mode 100644 index 000000000000..43b3d49e9c2b --- /dev/null +++ b/docs/docs/blog/develop-blog-using-umi.en-US.md @@ -0,0 +1,613 @@ +--- +order: 1 +toc: content +group: + title: Blog +--- + +# 使用 Umi 开发一个 Blog + +这篇文章将带领你使用 Umi.js 搭配 [PlanetScale](https://planetscale.com/), [Prisma](https://www.prisma.io/) 和 [Tailwindcss](https://tailwindcss.com/)等服务与技术,开发一个简单的博客网站,并部署到 [Vercel](https://vercel.com) 服务。 + +## 成果展示 + +成果看起来是这样的:你会有一个博客首页展示你的文章 [https://umi-blog-example.vercel.app/](https://umi-blog-example.vercel.app/) + +![博客首页](https://img.alicdn.com/imgextra/i2/O1CN01a9YcgY24tEdndfXsw_!!6000000007448-2-tps-3104-1974.png) + +点击某一篇文章可以看到这篇文章的完整内容:[https://umi-blog-example.vercel.app/posts/5](https://umi-blog-example.vercel.app/posts/5) + +![博客文章页](https://img.alicdn.com/imgextra/i4/O1CN01k84YL21wHCpYx02Yc_!!6000000006282-2-tps-3104-1974.png) + +当然,你还可以在博客中发表新文章:[https://umi-blog-example.vercel.app/posts/create](https://umi-blog-example.vercel.app/posts/create) + +![发表文章页](https://img.alicdn.com/imgextra/i4/O1CN01DZkDt41jvt0BJMZqi_!!6000000004611-2-tps-3104-1974.png) + +前提是你有登入:[https://umi-blog-example.vercel.app/login](https://umi-blog-example.vercel.app/login) + +![博客登入页](https://img.alicdn.com/imgextra/i1/O1CN015ce0oY1uKkfMCa1vq_!!6000000006019-2-tps-3104-1974.png) + +准备好了吗,让我们马上开始吧! + +## 环境准备 + +首先,你必须确保你的本地环境已经准备好进行一个 Umi.js 项目的开发。如果你目前还没有开发过 Umi.js 项目,也没有在本地搭建过开发环境,建议你先阅读 [开发环境](../docs/guides/prepare) 这篇教学。 + +配置完本地环境以后,你已经准备好开始开发 Umi.js 项目了!跟着 [脚手架](../docs/guides/boilerplate) 这篇文档的教学,快速初始化一个 Umi.js 项目吧。 + +### 调整目录结构 + +因为我们的博客网站会使用到 Umi 4 的 API 路由功能,所以我们需要对脚手架自动产生的目录结构进行一些调整。你现在的目录结构应该看起来是这样的: + +```text +. +├── assets +│ └── yay.jpg +├── layouts +│ ├── index.less +│ └── index.tsx +├── node_modules +├── package.json +├── pages +│ ├── docs.tsx +│ └── index.tsx +├── pnpm-lock.yaml +├── tsconfig.json +└── typings.d.ts +``` + +我们需要把 `assets`, `layouts`, `pages` 目录从根目录移动到 `src` 目录下,移动之后他看起来是这样的: + +```text +. +├── src +│ ├── assets +│ │ └── yay.jpg +│ ├── layouts +│ │ ├── index.less +│ │ └── index.tsx +│ └──── pages +│ ├── docs.tsx +│ └── index.tsx +├── node_modules +├── package.json +├── pnpm-lock.yaml +├── tsconfig.json +└── typings.d.ts +``` + +:::info +为什么要这样做呢?这是因为根目录下的 `api` 目录会被我们作为 API 路由生成构建产物的地方,如果我们没有多一层 `src` 目录的话,我们的 API 路由目录就会和构建产物目录冲突啦~ +::: + +### 注册 PlanetScale 服务 + +我们的博客将会把用户和文章的数据保存在 MySQL 数据库中。然而,我们不需要真的自己准备一台服务器来运行数据库,我们可以使用免费的 [PlanetScale](https://planetscale.com/)来一键部署一个开箱即用的数据库! + +首先从 [https://auth.planetscale.com/sign-in](https://auth.planetscale.com/sign-in)登入你的账号,如果你没有注册过,可以选择使用 GitHub 一键登入或是点击 [Sign up for an account](https://auth.planetscale.com/sign-up) 注册一个账号。 + +![登入 PlanetScale](https://img.alicdn.com/imgextra/i4/O1CN01BVVAju1eONxEM9wr5_!!6000000003861-2-tps-2506-1464.png) + +登入之后,在你的 PlanetScale 账号建立一个数据库(如果你是第一次注册,则可以看到他的教学步骤带领你一步步建立一个数据库): + +![建立数据库](https://img.alicdn.com/imgextra/i4/O1CN01St4IQW21lV6f8bpKg_!!6000000007025-2-tps-3104-1974.png) + +建立完成后,点击数据库页面右上角的 **Connect** 按钮: + +![Connect 按钮](https://img.alicdn.com/imgextra/i4/O1CN01Hnyqbo26g4UNnSqoQ_!!6000000007690-2-tps-3104-1974.png) + +你会在弹窗里面看到一个 **Connect With** 的下拉选单,选择 `Prisma`,然后就能获得一串这个格式的字符串: + +```dotenv +DATABASE_URL='mysql://************:************@************.ap-southeast-2.psdb.cloud/umi-blog-example?sslaccept=strict' +``` + +这个字符串就是我们要用来让 Prisma 连接数据库的连线信息,暂时先把他记录起来就可以了 👍 + +### 安装依赖 + +接下来,帮我们的 Umi 项目安装这次教程会用到的依赖: + +```shell +pnpm i -d prisma @types/bcryptjs @types/jsonwebtoken +pnpm i @prisma/client bcryptjs jsonwebtoken +``` + +这两行命令帮我们安装了这些包: + +1. [prisma](https://github.com/prisma/prisma)和 [@prisma/client](https://www.npmjs.com/package/@prisma/client):这两个包让我们可以用 [Prisma](https://www.prisma.io/)来方便地串接数据库,不需要担心任何复杂的 SQL 命令。 +2. [bcryptjs](https://github.com/dcodeIO/bcrypt.js):这个包让我们将用户注册后的密码使用 [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt)哈希加密算法来安全的存储在数据库中。 +3. [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken):这个包让我们可以方便地使用用 [JWT(Json Web Token)](https://jwt.io/) 实现用户鉴权。 + +然后将 `package.json` 中 `scripts` 里面的 `build` 脚本从 + +``` +"scripts": { + "dev": "umi dev", + "build": "umi build", + "postinstall": "umi setup", + "start": "npm run dev" +}, +``` + +改成 + +``` +"scripts": { + "dev": "umi dev", + "build": "prisma generate && umi build", + "postinstall": "umi setup", + "start": "npm run dev" +}, +``` + +这可以确保每次开始构建以前都已经生成好 Prisma 客户端。 + +### 安装 Tailwindcss + +使用 Umi 提供的微生成器来在项目中启用 Tailwindcss : + +```shell +npx umi g tailwindcss +``` + +他会帮我们安装 Tailwindcss 所需要的依赖,然后生成需要的文件。 + +### 初始化页面组件 + +接下来,当你使用 `pnpm dev`启动项目后,可能会看到错误讯息并且启动失败了。这是因为我们在配置中声明了一些页面,但并没有帮他建立对应的页面组件! + +我们可以使用 Umi 的微生成器来自动生成这些页面:`login.tsx`, `posts/post.tsx`, `posts/create.tsx`: + +```shell +npx umi g page login posts/post posts/create +``` + +新增后的目录结构是这样的: + +```text +src +├── assets +│ └── yay.jpg +├── layouts +│ ├── index.less +│ └── index.tsx +└── pages + ├── index.less + ├── index.tsx + ├── login.less + ├── login.tsx + └── posts + ├── create.less + ├── create.tsx + ├── post.less + └── post.tsx +``` + +现在再输入一次 `pnpm dev` 就可以看到我们的网站正常启动了。 + +### 配置 umi 项目 + +最后一步,就是要来对 Umi 项目进行配置,完整的配置可以参考 [配置](../docs/api/config) 这篇教学文档,在本次的教学中,只要按照以下配置即可: + +```ts +// .umirc.ts + +export default { + npmClient: 'pnpm', + apiRoute: { + platform: 'vercel', + }, + routes: [ + { path: '/', component: 'index' }, + { path: '/posts/create', component: 'posts/create' }, + { path: '/login', component: 'login' }, + { path: '/posts/:postId', component: 'posts/post' }, + ], + plugins: [require.resolve('@umijs/plugins/dist/tailwindcss')], + tailwindcss: {}, +}; +``` + +其中,`apiRoute` 这个配置项告诉 Umi 我们的项目启用了 **API 路由** 这个功能,而 `platform: 'vercel'` 代表我们要部署到[Vercel](https://vercel.com) 平台,在 `umi build` 的时候会针对这个平台来将 API 路由进行打包。 + +为了顺利部署项目到 Vercel ,你需要在项目根目录下加入一个 `vercel.json` 配置文件: + +```json +{ + "build": { + "env": { + "ENABLE_FILE_SYSTEM_API": "1" + } + }, + "rewrites": [ + { + "source": "/api/:match*", + "destination": "api/:match*" + } + ] +} +``` + +`route` 这个配置项则声明了我们网站的路由架构,可以看到我们的博客网站有这些页面: + +- `/`: 首页 +- `/posts/create`: 建立文章 +- `/login`: 登入 +- `/posts/:postId`: 某篇文章 + +`plugins` 配置项代表我们启用了哪些 Umi 插件,其中 `@umijs/plugins/dist/tailwindcss` 是在 Umi 中使用 Tailwindcss +的插件。下面一项 `tailwindcss: {}` 则是从配置来启用该插件的意思。 + +## API 路由设计 + +我们的整个博客网站由两大部分构成,一半是运行在浏览器内的前端代码,另一半则是运行在 Serverless Function 中的服务端代码。 + +为什么需要分成两边呢?这是因为有些代码我们不能让他在浏览器内运行,比如说用户鉴权、串接数据库等等的功能,这些必须作为一个服务然后以 API 的形式暴露给前端页面调用,这个部分可以透过 Umi 4 的 API 路由功能来实现。 + +> (这里好像放一张图可以比较清楚地解释) + +因为我们已经在 `.umirc.ts` 配置文件中声明了我们要启用 API 路由功能,现在可以直接在 `src` 目录下添加一个 `api`目录,这个目录下以约定式路由的设计来提供 API 路由的开发。 + +作为一个博客的 API 服务,不难想到我们会需要这些接口来供用户调用: + +1. 用户注册: `POST /api/register` +2. 用户登入: `POST /api/login` +3. 发表文章: `POST /api/posts` +4. 查询所有文章: `GET /api/posts` +5. 查询一篇文章: `GET /api/posts/{postId}` + +所以我们可以在 `src/api` 目录下建立这些新文件: + +```text +src +├── api +│ ├── login.ts +│ ├── register.ts +│ └── posts +│ ├── [postId].ts +│ └── index.ts +... +``` + +:::info +你可能注意到了,这里有一个文件叫做 `[postId].ts`,这个写法代表这个路由可以动态匹配不同的值。例如 `/api/posts/1` 和 `/api/posts/2` 两个请求都会交给 `src/api/posts/[postId].ts`处理,但他们的 `req.params` 分别是 `{ postId: 1 }` 和 `{ postId: 2 }`。 +::: + +这里的每个 `.ts` 文件就是一个 **API Handler**,他们默认导出一个函数用来处理发送到该路径的请求,我们可以暂时先这样写: + +```ts +import type { UmiApiRequest, UmiApiResponse } from 'umi'; + +export default async function (req: UmiApiRequest, res: UmiApiResponse) { + res.status(400).json({ error: 'This API is not implemented yet.' }); +} +``` + +然后你可以试着用浏览器或 [Postman](https://www.postman.com) 访问看看这些 API 路由(例如 `http://localhost:8000/api/login` ),就可以看到你刚刚写的响应数据了 🎉 + +![Not implemented yet](https://img.alicdn.com/imgextra/i3/O1CN01IRTlsd1HXmvCRJUt1_!!6000000000768-2-tps-1302-666.png) + +我们等一下再回来实作这些 API 路由的实际功能,因为有一个更重要的事情要先做。 + +## 定义 Schema + +现在必须要先确定一件事情:我们要保存哪些数据、以怎么样的形式保存在数据库,又是以怎么样的形式响应给前端的? + +### 文章数据 + +文章数据(Post)每笔数据就代表了一篇博客里面的文章,我们可以按自己的系统需求来设计他需要保存的内容,例如我们的范例保存了这些数据: + +- `id`: 文章 ID +- `title`: 文章标题 +- `authorId`: 作者的 ID +- `tags`: 文章的标签(以逗号隔开) +- `imageUrl`: 文章封面图片的链接 +- `content`: 文章的内文(markdown 格式) + +### 用户数据 + +用户数据 (User) 每笔数据代表一个在我们博客注册的用户数据,我们可以按照自己的系统需求来设计他需要保存的内容,例如我们的范例保存了这些数据: + +- `id`: 用户 ID +- `name`: 名称 +- `email`: 邮箱 +- `avatarUrl`: 头像链接 +- `passwordHash`: 加密过的密码 + +### 生成配置 + +> 这个章节可以考虑阅读 [Prisma 官方的教学文档](https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-mysql) + +定义好数据格式以后,我们要让 Prisma 帮我们根据 Schema 设计来生成对应的客户端,并且自动的将数据库迁移至为我们设计的格式, + +#### 连线到数据库 + +第一步,我们在根目录建立一个 `.env` 文件,并且在里面加入刚刚在 [注册 PlanetScale 服务](#注册-planetscale-服务) 章节拿到的连线信息。 + +```dotenv +# .env + +DATABASE_URL='mysql://************:************@************.ap-southeast-2.psdb.cloud/umi-blog-example?sslaccept=strict' +``` + +#### 编写 Prisma 配置 + +第二步,在根目录下建立一个 `prisma/schema.prisma` 文件,并把我们设计的 Schema 按照 [Prisma 语法](https://pris.ly/d/prisma-schema) 写进去文件中: + +```prisma +generator client { + provider = "prisma-client-js" + previewFeatures = ["referentialIntegrity"] +} + +datasource db { + provider = "mysql" + referentialIntegrity = "prisma" + url = env("DATABASE_URL") +} + +model Post { + id Int @id @default(autoincrement()) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + title String @db.VarChar(255) + content String? + author User @relation(fields: [authorId], references: [id]) + authorId Int + imageUrl String? + tags String + + @@index(authorId) +} + +model User { + id Int @id @default(autoincrement()) + email String @unique + passwordHash String + name String? + posts Post[] + avatarUrl String? +} +``` + +完成后,在命令行输入 + +```shell +npx prisma migrate dev --name init +``` + +他会帮我们将 MySQL 数据库迁移为我们定义的格式。 接下来,在命令行输入 + +```shell +npx prisma generate +``` + +他会帮我们生成一个按照我们的 Schema 设计量身定制的客户端包。 + +--- + +至此,我们已经顺利处理完数据库的部分,接下来只要专注于如何在 API 路由中使用 Prisma 客户端包来获取与更新数据即可。 + +## 实现 API 路由 + +我们现在要回头来实现刚刚建立的那些 `api` 目录下的 `.ts` 文件了,只要我们自己清楚: + +1. API 会如何被调用 (path, request header, request body) +2. 我们应该在 API 内做什么事 +3. 响应什么内容回去 (status, response header, response body) + +那么 API 路由的开发就像写编写一个简单的函数一样。 + +### 用户注册 + +当用户对 `/api/register` 发起 `POST` 请求时,代表他们想要在我们的博客网站注册一个账号。 + +:::info +你可以在 [https://github.com/umijs/umi-blog-example/blob/main/src/api/register.ts](https://github.com/umijs/umi-blog-example/blob/main/src/api/register.ts) 找到这个示范的源代码! +::: + +```ts +// src/api/register.ts + +import type { UmiApiRequest, UmiApiResponse } from 'umi'; +import { PrismaClient } from '@prisma/client'; +import bcrypt from 'bcryptjs'; +import { signToken } from '@/utils/jwt'; + +export default async function (req: UmiApiRequest, res: UmiApiResponse) { + switch (req.method) { + // 如果对这个路径发起 POST 请求,代表他想要注册一个账号 + case 'POST': + try { + // 建立一个 Prisma 客户端,他可以帮助我们连线到数据库 + const prisma = new PrismaClient(); + + // 在数据库的 User 表中建立一个新的数据 + const user = await prisma.user.create({ + data: { + email: req.body.email, + + // 密码是经过 bcrypt 加密的 + passwordHash: bcrypt.hashSync(req.body.password, 8), + name: req.body.name, + avatarUrl: req.body.avatarUrl, + }, + }); + + // 把建立成功的用户数据(不包含密码)和 JWT 回传给前端 + res + .status(201) + .setCookie('token', await signToken(user.id)) + .json({ ...user, passwordHash: undefined }); + + // 处理完请求以后记得断开数据库链接 + await prisma.$disconnect(); + } catch (e: any) { + // 如果发生未预期的错误,将对应的错误说明的 Prisma 文档发给用户 + res.status(500).json({ + result: false, + message: + typeof e.code === 'string' + ? 'https://www.prisma.io/docs/reference/api-reference/error-reference#' + + e.code.toLowerCase() + : e, + }); + } + break; + default: + // 如果不是 POST 请求,代表他正在用错误的方式访问这个 API + res.status(405).json({ error: 'Method not allowed' }); + } +} +``` + +完成开发后,可以使用 Postman 对这个 API 发起请求,测试功能是否正常运作。 + +### 用户登入 + +当用户对 `/api/login` 发起 `POST` 请求时,代表他们想要登入我们的博客网站并取得一个 JWT 令牌,这可以让他用于建立新文章。 + +:::info +这个部分留给读者练习,你可以在 [https://github.com/umijs/umi-blog-example/blob/main/src/api/login.ts](https://github.com/umijs/umi-blog-example/blob/main/src/api/login.ts) 找到这个示范的源代码! +::: + +### 发表文章 + +当用户对 `/api/posts` 发起 `POST` 请求时,代表他们想要在我们的博客网站发表一篇文章。 + +:::info +这个部分留给读者练习,你可以在 [https://github.com/umijs/umi-blog-example/blob/main/src/api/posts/index.ts](https://github.com/umijs/umi-blog-example/blob/main/src/api/posts/index.ts) 找到这个示范的源代码! +::: + +### 查询所有文章 + +当用户对 `/api/posts` 发起 `GET` 请求时,代表他们想要查询所有文章的数据。 + +:::info +这个部分留给读者练习,你可以在 [https://github.com/umijs/umi-blog-example/blob/main/src/api/posts/index.ts](https://github.com/umijs/umi-blog-example/blob/main/src/api/posts/index.ts) 找到这个示范的源代码! +::: + +### 查询某篇文章 + +当用户对 `/api/posts/{postId}` 发起 `GET` 请求时,代表他们想要查询某篇文章的数据。 + +:::info +这个部分留给读者练习,你可以在 [https://github.com/umijs/umi-blog-example/blob/main/src/api/posts/%5BpostId%5D.ts](https://github.com/umijs/umi-blog-example/blob/main/src/api/posts/%5BpostId%5D.ts) 找到这个示范的源代码! +::: + +## 实作页面组件 + +在这个章节,我们主要要学习如何在页面组件调用 API,来实现获取文章或注册等前后端交互的行为: + +```jsx +// pages/index.tsx + +import React, { useEffect, useState } from 'react'; +import { history } from "umi"; + +export default function HomePage() { + const [posts, setPosts] = useState(); + return ( +
+ {!posts &&

Loading...

} + {posts &&
+ {posts.map(post =>
+
history.push(`/posts/${post.id}`)}> +

{post.title}

+
+
)} +
} +
+ ); +} +``` + +可以看到我们在首页组件维护了一个 `posts` 状态,当 `posts` 是 `undefined` 时,我们认为是数据尚未加载完成。所以我们可以加入一个 `useEffect`让他在组件加载后对 API 路由发起一个请求,去查询目前所有的文章列表: + +```tsx +// pages/index.tsx + +import React, { useEffect, useState } from 'react'; +import { history } from 'umi'; + +export default function HomePage() { + const [posts, setPosts] = useState(); + + async function refresh() { + try { + const res = await fetch('/api/posts'); + if (res.status !== 200) { + console.error(await res.text()); + } + setPosts(await res.json()); + } catch (err) { + console.error(err); + } + } + + useEffect(() => { + refresh(); + }, []); + + return ( +
+ {!posts &&

Loading...

} + {posts && ( +
+ {posts.map((post) => ( +
+
history.push(`/posts/${post.id}`)}> +

{post.title}

+
+
+ ))} +
+ )} +
+ ); +} +``` + +可以看到我们加入了一个 `refresh` 函数,他会帮我们从 API 路由查询目前的文章列表。若你现在访问这个页面,应该可以看到一开始是 `Loading ...` +等一阵子就会有全部文章的标题被渲染出来的效果。 + +![titles](https://img.alicdn.com/imgextra/i1/O1CN01n3CA371n0PlgkdEvQ_!!6000000005027-2-tps-3104-1974.png) + +最后只要帮他加一点样式: + +![titles-with-style](https://img.alicdn.com/imgextra/i1/O1CN01sfpTVd1IGDLK068gY_!!6000000000865-2-tps-3104-1974.png) + +--- + +其他页面留给读者实作,可以加入自己的想法及样式的设计来实现,源代码可参考:[https://github.com/umijs/umi-blog-example/blob/main/src/pages](https://github.com/umijs/umi-blog-example/blob/main/src/pages) + +## 部署 + +最后,将你的项目提交到 git 服务上,然后登入 [Vercel](https://vercel.com): + +![Vercel](https://img.alicdn.com/imgextra/i2/O1CN01X7LqFx1LbEMYzLT3k_!!6000000001317-2-tps-2720-1710.png) + +如果你的项目代码是提交到 GitHub,那么建议你选择 GitHub 登入,这样你就可以在 Vercel 直接导入现有的代码仓库了 👍 + +![Vercel New Project](https://img.alicdn.com/imgextra/i1/O1CN014qIgle23G171pvX0V_!!6000000007227-2-tps-2720-1818.png) + +导入以后,他会自动检测到这个项目是使用 Umi.js 框架搭建的,并且自动化完成相关的配置,因此直接点击 **Deploy** 即可开始部署! + +![Deploy](https://img.alicdn.com/imgextra/i3/O1CN013Ts04x1tqyv4VhzbW_!!6000000005954-2-tps-1468-1064.png)等他部署完成以后,你的博客就正式上线啦 👍 + +--- + +但这个时候你会发现,网站内的 API 路由没有办法正常工作,这是因为他缺少了连线到数据库需要的环境变量。我们需要帮他配置一下: + +![Settings](https://img.alicdn.com/imgextra/i1/O1CN01OYPPB61G61IKR8chz_!!6000000000572-2-tps-2632-1934.png) + +在项目配置页面,下面有可以设置环境变量的地方: + +![Env](https://img.alicdn.com/imgextra/i4/O1CN01nOLflV1I4lRMwsYHk_!!6000000000840-2-tps-2632-1934.png) + +你可以把 `DATABASE_URL`, `JWT_KEY` 等等你用到的环境变量从这里传入。 + +![Redeploy](https://img.alicdn.com/imgextra/i3/O1CN013dlBGs2506aFTigki_!!6000000007463-2-tps-2644-1890.png) + +加入环境变量以后,点击 **Redeploy** 重新部署一次版本,你的博客就能正常运作啦~ diff --git a/docs/docs/blog/develop-blog-using-umi.md b/docs/docs/blog/develop-blog-using-umi.md index a0216e261333..43b3d49e9c2b 100644 --- a/docs/docs/blog/develop-blog-using-umi.md +++ b/docs/docs/blog/develop-blog-using-umi.md @@ -31,9 +31,9 @@ group: ## 环境准备 -首先,你必须确保你的本地环境已经准备好进行一个 Umi.js 项目的开发。如果你目前还没有开发过 Umi.js 项目,也没有在本地搭建过开发环境,建议你先阅读 [开发环境](../guides/prepare) 这篇教学。 +首先,你必须确保你的本地环境已经准备好进行一个 Umi.js 项目的开发。如果你目前还没有开发过 Umi.js 项目,也没有在本地搭建过开发环境,建议你先阅读 [开发环境](../docs/guides/prepare) 这篇教学。 -配置完本地环境以后,你已经准备好开始开发 Umi.js 项目了!跟着 [脚手架](../guides/boilerplate) 这篇文档的教学,快速初始化一个 Umi.js 项目吧。 +配置完本地环境以后,你已经准备好开始开发 Umi.js 项目了!跟着 [脚手架](../docs/guides/boilerplate) 这篇文档的教学,快速初始化一个 Umi.js 项目吧。 ### 调整目录结构 @@ -188,7 +188,7 @@ src ### 配置 umi 项目 -最后一步,就是要来对 Umi 项目进行配置,完整的配置可以参考 [配置](../api/config) 这篇教学文档,在本次的教学中,只要按照以下配置即可: +最后一步,就是要来对 Umi 项目进行配置,完整的配置可以参考 [配置](../docs/api/config) 这篇教学文档,在本次的教学中,只要按照以下配置即可: ```ts // .umirc.ts diff --git a/docs/docs/blog/legacy-browser.en-US.md b/docs/docs/blog/legacy-browser.en-US.md new file mode 100644 index 000000000000..0d0ed3424bf5 --- /dev/null +++ b/docs/docs/blog/legacy-browser.en-US.md @@ -0,0 +1,127 @@ +--- +toc: content +order: 6 +group: + title: Blog +--- + +# 非现代浏览器兼容 + +## 默认兼容说明 + +Umi 4 默认不支持 IE ,编译兼容目标 `targets` 为 `chrome: 80` ,如需调整,请指定明确的 [targets](../docs/api/config#targets) : + +```ts +// .umirc.ts + +export default { + targets: { chrome: 67 }, +}; +``` + +若想反馈更多关于兼容性的问题,或参与讨论,请前往:[issue / 8656](https://github.com/umijs/umi/issues/8658) + +## 兼容非现代浏览器 + +如果你并不需要兼容至 IE ,只为了提升项目对非现代浏览器的兼容性,可调整兼容目标 [targets](../docs/api/config#targets) 。 + +Umi 4 默认使用现代构建工具,产物生成至 `es6` ,如果你有要打包为 `es5` 产物的考量,请调整配置: + +```ts +// .umirc.ts + +export default { + jsMinifier: 'terser', + cssMinifier: 'cssnano', +}; +``` + +## 兼容旧时代浏览器 ( IE 11 ) + +由于 IE 已经淘汰不再主流,当需要兼容至 IE 时,请阅读以下对策。 + +### 框架自带的 legacy mode + +Umi 4 自带提供一个 `legacy` 配置用于构建降级(使用限制等详见 [legacy](../docs/api/config#legacy) ): + +```ts +// .umirc.ts + +export default { + legacy: {}, +}; +``` + +默认仅在构建时生效,将尝试构建能使 IE 兼容的产物。 + +### legacy mode 的更多自定义 + +`legacy` 开启时,默认会转译全部 `node_modules` ,这在大型项目中,会极大的增加构建时间。 + +若你了解当前项目使用的第三方依赖情况(知道哪些不再提供 `es5` 产物了),可以关闭 `node_modules` 的转换,改为使用 [`extraBabelIncludes`](https://umijs.org/docs/api/config#extrababelincludes) 定点配置那些需要额外纳入转换范围的包。 + +一个例子: + +```ts +// .umirc.ts + +export default { + legacy: { + nodeModulesTransform: false, + }, + extraBabelIncludes: ['some-es6-pkg', /@scope\//], +}; +``` + +### 提高兼容的鲁棒性 + +`legacy` 选项并不能 100% 保证产物 **没有边界情况** 的运行在被淘汰的浏览器内,你可能还需要添加 **前置的** 全量 polyfill 来增强项目的 [鲁棒性](https://baike.baidu.com/item/%E9%B2%81%E6%A3%92%E6%80%A7/832302) 。 + +```ts +// .umirc.ts + +export default { + headScripts: [ + 'http://polyfill.alicdn.com/v3/polyfill.min.js', // or https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js + ], + legacy: {}, +}; +``` + +参考的思路有: + +| 方案 | 说明 | +| :----------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| CDN 引入 | 以 cdn 形式引入 **script 形式且前置的** 、目标浏览器环境缺少的 polyfill js 文件,如 [es6-shim](https://github.com/paulmillr/es6-shim) 。 | +| 人工 core-js | 利用 [core-js](https://github.com/zloirock/core-js) 系工具,如通过 [core-js-builder](https://github.com/zloirock/core-js/tree/master/packages/core-js-builder) 构建自己需要的 polyfill 产物,再以 **前置 script 脚本** 形式引入项目。 | +| 动态 polyfill 服务 | 使用根据当前浏览器请求 UA 动态下发所需 polyfill 的服务,比如 [polyfill.io (alicdn)](http://polyfill.alicdn.com/v3/polyfill.min.js) 或 [polyfill.io (CloudFlare)](https://cdnjs.cloudflare.com/polyfill/) 服务。另外,你还可以使用 [polyfill-service](https://github.com/cdnjs/polyfill-service) 自建相同的动态 polyfill 下发服务。 | + +注: + +1. 当你处于内外网隔离开发环境时,可以考虑将全部 polyfill 的 js 内容传入内网,在内网的 CDN 使用,或放入 public 目录等方式使用。 + +2. 使用 script 前置引入的意义在于,在项目 js 资源运行前就准备好一个完整的、被 polyfill 过 api 的环境。 + +### 在开发环境验证 + +推荐的做法是:构建后在本地通过 [`umi preview`](../docs/api/commands#preview) 或 [`serve`](https://www.npmjs.com/package/serve) 、nginx 等启动服务,来验证产物的 IE 11 运行可行性。 + +当你需要在开发环境验证时: + +1. 将 `legacy.buildOnly` 置为 `false` 。 + +2. 由于 react fresh 、hmr 等开发注入的 es6 代码始终在第一位运行,你需要以 script 形式添加一个前置的 polyfill ,提前准备好环境。 + +```ts +// .umirc.ts + +const isProd = process.env.NODE_ENV === 'production'; +export default { + legacy: { + buildOnly: false, + }, + headScripts: isProd ? [] : ['http://polyfill.alicdn.com/v3/polyfill.min.js'], +}; +``` + +注:IE 11 并不能完整支持开发时的热更新,且缓存可能需要人为在控制台进行清除后才能看到最新的页面,请做好准备。 diff --git a/docs/docs/blog/legacy-browser.md b/docs/docs/blog/legacy-browser.md index d3b3d7e09c74..2fc5d5753431 100644 --- a/docs/docs/blog/legacy-browser.md +++ b/docs/docs/blog/legacy-browser.md @@ -82,7 +82,7 @@ export default { export default { headScripts: [ - 'http://polyfill.alicdn.com/v3/polyfill.min.js', // or https://polyfill.io/v3/polyfill.min.js + 'http://polyfill.alicdn.com/v3/polyfill.min.js', ], legacy: {}, }; @@ -94,7 +94,7 @@ export default { | :----------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | CDN 引入 | 以 cdn 形式引入 **script 形式且前置的** 、目标浏览器环境缺少的 polyfill js 文件,如 [es6-shim](https://github.com/paulmillr/es6-shim) 。 | | 人工 core-js | 利用 [core-js](https://github.com/zloirock/core-js) 系工具,如通过 [core-js-builder](https://github.com/zloirock/core-js/tree/master/packages/core-js-builder) 构建自己需要的 polyfill 产物,再以 **前置 script 脚本** 形式引入项目。 | -| 动态 polyfill 服务 | 使用根据当前浏览器请求 UA 动态下发所需 polyfill 的服务,比如 [polyfill.io](https://polyfill.io/v3/polyfill.min.js) ,考虑到速度,可使用国内的 [alicdn polyfill.io](http://polyfill.alicdn.com/v3/polyfill.min.js) 服务。另外,你还可以使用 [polyfill-service](https://github.com/Financial-Times/polyfill-service) 自建相同的动态 polyfill 下发服务。 | +| 动态 polyfill 服务 | 使用根据当前浏览器请求 UA 动态下发所需 polyfill 的服务,比如 [polyfill.io (alicdn)](http://polyfill.alicdn.com/v3/polyfill.min.js) 或 [polyfill.io (CloudFlare)](https://cdnjs.cloudflare.com/polyfill/) 服务。另外,你还可以使用 [polyfill-service](https://github.com/cdnjs/polyfill-service) 自建相同的动态 polyfill 下发服务。 | 注: diff --git a/docs/docs/blog/mfsu-faster-than-vite.en-US.md b/docs/docs/blog/mfsu-faster-than-vite.en-US.md new file mode 100644 index 000000000000..19df5e5a07f9 --- /dev/null +++ b/docs/docs/blog/mfsu-faster-than-vite.en-US.md @@ -0,0 +1,41 @@ +--- +order: 3 +toc: content +group: + title: Blog +--- + +# 比 Vite 还快的 MFSU + +

+ 编者按:Change the code, don't Workaround! Webpack + 慢就去改他,优化到位后,Bundle 也可以很快。此方案会在 Umi 4 + 中默认开启,适用于既要 Webpack 功能与生态,又想要 Vite 速度的同学们。 +

+ +Umi 4 中同时支持 webpack 和 vite 两种构建方式,跑通了后,迫不及待对比了 Vite 和 Webpack + MFSU 的效果,结果有点意外。关于什么是 MFSU,我在[《SEE Conf: Umi 4 设计思路文字稿》](https://mp.weixin.qq.com/s?__biz=MjM5NDgyODI4MQ%3D%3D&mid=2247484533&idx=1&sn=9b15a67b88ebc95476fce1798eb49146)中有一段详细介绍。 + +

+ + 两个示例、四种模式、四个维度的对比。 + + 两个示例分别是大型的全量 ant-design-pro 和小型的 libs example;四种模式分别是 webpack、webpack + MFSU、webpack + MFSU with esbuild mode、Vite in umi;四个维度分别是无缓存的冷启动、有缓存的热启动、修改代码后的热更新、页面打开速度。 +

+ +多说几点和统计相关的。上述 webpack 相关模式全部开启物理缓存;Vite 是 Umi 中集成后的 Vite,也有担心是不是 Umi 对于 Vite 的误用,经开发者确认,基本排除误用的可能性,大段时间消耗在预编译依赖上;Ant Design Pro 中包含 less 的使用,这是使用 esbuild 无法加速的部分,这有影响,但对于不同模式应该是公平的;下图数据是本地用 13-inch M1 2022 重启电脑后跑 5 次后平均取值的结果;Vite 的热更速度没统计是因为由于 esm 的特性,改完后要等请求过来后处理完才算结束,无法统计,但肯定是很快的。 + +直接上结果。有兴趣手动验证的同学可到 umijs/umi 仓库的不同 example 目录下执行 npm run dev 验证。 + +![](https://img.alicdn.com/imgextra/i4/O1CN01Gz9AA81szqy3BbRfK_!!6000000005838-2-tps-2150-1084.png) + +

+ 图:全量 ant-design-pro 速度对比图 +

+ +![](https://img.alicdn.com/imgextra/i1/O1CN01HNfH7l23L3SRjJUka_!!6000000007238-2-tps-2058-1078.png) + +

+ 图:libs example 速度对比图 +

+ +可以看到,**在这几个场景下,MFSU with esbuild 数据领先。** 四个模式的页面打开速度差不多,所以对比数据没在图中列出,这也是让我意外的点,原以为 Vite 请求多会让页面打开速度变慢,也有可能项目还不够复杂? diff --git a/docs/docs/blog/mfsu-faster-than-vite.md b/docs/docs/blog/mfsu-faster-than-vite.md index b6337e1071dc..19df5e5a07f9 100644 --- a/docs/docs/blog/mfsu-faster-than-vite.md +++ b/docs/docs/blog/mfsu-faster-than-vite.md @@ -19,8 +19,7 @@ Umi 4 中同时支持 webpack 和 vite 两种构建方式,跑通了后,迫 两个示例、四种模式、四个维度的对比。 - 两个示例分别是大型的全量 ant-design-pro 和小型的 libs example;四种模式分别是 webpack、webpack - + MFSU、webpack + MFSU with esbuild mode、Vite in umi;四个维度分别是无缓存的冷启动、有缓存的热启动、修改代码后的热更新、页面打开速度。 + 两个示例分别是大型的全量 ant-design-pro 和小型的 libs example;四种模式分别是 webpack、webpack + MFSU、webpack + MFSU with esbuild mode、Vite in umi;四个维度分别是无缓存的冷启动、有缓存的热启动、修改代码后的热更新、页面打开速度。

多说几点和统计相关的。上述 webpack 相关模式全部开启物理缓存;Vite 是 Umi 中集成后的 Vite,也有担心是不是 Umi 对于 Vite 的误用,经开发者确认,基本排除误用的可能性,大段时间消耗在预编译依赖上;Ant Design Pro 中包含 less 的使用,这是使用 esbuild 无法加速的部分,这有影响,但对于不同模式应该是公平的;下图数据是本地用 13-inch M1 2022 重启电脑后跑 5 次后平均取值的结果;Vite 的热更速度没统计是因为由于 esm 的特性,改完后要等请求过来后处理完才算结束,无法统计,但肯定是很快的。 diff --git a/docs/docs/blog/mfsu-independent-usage.en-US.md b/docs/docs/blog/mfsu-independent-usage.en-US.md new file mode 100644 index 000000000000..68857e23e3c4 --- /dev/null +++ b/docs/docs/blog/mfsu-independent-usage.en-US.md @@ -0,0 +1,257 @@ +--- +toc: content +order: 4 +group: + title: Blog +--- + +# 独立使用 MFSU + +`MFSU` 支持独立在非 umijs 项目中使用,本文将会介绍如何将 `MFSU` 接入你的 webpack 项目。 + +## 示例项目 + +如何接入 MFSU ?提供以下几个 示例项目 配置供参考: + +Webpack 配置示例:examples/mfsu-independent + +CRA v5 配置示例:cra-v5-with-mfsu-example + +## 安装 + +首先安装 `mfsu` 的依赖: + +```bash + pnpm add -D @umijs/mfsu +``` + +## 配置 MFSU + +配置 MFSU 一共需要简单的四步操作,请确保以下所有行为都只在开发环境生效。 + +### 1. 初始化实例 + +第一步,初始化一个 `MFSU` 实例,这是 `MFSU` 的基础: + +```js +// webpack.config.js + +const { MFSU } = require('@umijs/mfsu'); +const webpack = require('webpack'); + +// [mfsu] 1. init instance +const mfsu = new MFSU({ + implementor: webpack, + buildDepWithESBuild: true, +}); +``` + +### 2. 添加中间件 + +第二步,添加 `MFSU` 的 `devServer` 中间件到 webpack-dev-server 中,他将为你提供 `MFSU` 所需打包后的资源: + +#### webpack 5 + +```js +// webpack.config.js + +module.exports = { + devServer: { + // [mfsu] 2. add mfsu middleware + setupMiddlewares(middlewares, devServer) { + middlewares.unshift(...mfsu.getMiddlewares()); + return middlewares; + }, + }, +}; +``` + +#### webpack 4 + +```js +// webpack.config.js + +module.exports = { + devServer: { + // [mfsu] 2. add mfsu middleware + onBeforeSetupMiddleware(devServer) { + for (const middleware of mfsu.getMiddlewares()) { + devServer.app.use(middleware); + } + }, + }, +}; +``` + +### 3. 配置转换器 + +第三步,你需要配置一种源码转换器,他的作用是用来收集、转换依赖导入路径,替换为 `MFSU` 的模块联邦地址(中间件所提供的)。 + +此处提供两种方案:`babel plugins` 或 `esbuild handler` ,一般情况下选择 `babel plugins` 即可。 + +#### Babel Plugins + +向 `babel-loader` 添加 `MFSU` 的 `babel plugins` 即可。 + +```js +// webpack.config.js + +module.exports = { + module: { + rules: [ + // handle javascript source loader + { + test: /\.[jt]sx?$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader', + options: { + plugins: [ + // [mfsu] 3. add mfsu babel plugins + ...mfsu.getBabelPlugins(), + ], + }, + }, + }, + ], + }, +}; +``` + +#### Esbuild handler + +另一种方案是使用内置提供的 `esbuild-loader` 来处理 `js/ts` 资源,**仅用于开发环境** 。 + +:::info +使用这种方案的好处是:在开发环境获得比 `babel` 更快的编译和启动速度 +::: + +```js +// webpack.config.js + +const { esbuildLoader } = require('@umijs/mfsu'); +const esbuild = require('esbuild'); + +module.exports = { + module: { + rules: [ + { + test: /\.[jt]sx?$/, + exclude: /node_modules/, + use: { + loader: esbuildLoader, + options: { + handler: [ + // [mfsu] 3. add mfsu esbuild loader handlers + ...mfsu.getEsbuildLoaderHandler(), + ], + target: 'esnext', + implementation: esbuild, + }, + }, + }, + ], + }, +}; +``` + +:::warning +什么时候我不应该使用 esbuild 方案?
1. 我有自定义的 `babel plugins` 必须在开发环境使用
2. 我需要显示 `css-in-js` 的开发环境友好类名(一般由 babel plugin 提供支持)
3. 在开发环境多适配一套 `esbuild-loader` 的成本大于配置 `babel plugins` 的成本 +::: + +### 4. 设定 webpack 配置 + +第四步,调用 `MFSU` 提供的方法改变你的 webpack 配置,在这里只有增量行为,你无需担心会影响到你原来的配置内容。 + +如下代码所示,`mfsu.setWebpackConfig` 是一个异步方法,为了调用他你需要将原来的 webpack 配置单独抽为一个对象 `config` 之后,再将调用此方法的返回值导出。 + +```js +// webpack.config.js + +const config = { + // origin webpack config +}; + +const depConfig = { + // webpack config for dependencies +}; + +// [mfsu] 4. inject mfsu webpack config +const getConfig = async () => { + await mfsu.setWebpackConfig({ + config, + depConfig, + }); + return config; +}; + +module.exports = getConfig(); +``` + +到此为止,`MFSU` 完全配置完毕,下面可以开始启动项目使用。 + +## 使用 + +进行完 4 步配置后,启动你的项目,你可以从项目根目录得到 `.mfsu` 文件夹,即 `MFSU` 缓存文件夹,请将其添加到 git 的忽略列表(这些缓存文件你不应该提交他们): + +```bash +# .gitignore + +.mfsu +``` + +符合预期时,你已经可以享受 `MFSU` 带来的好处,包括 `esbuild` 快速的打包和二次热启动的提速。 + +## 其他配置 + +以下是其他你可能会用到的 `MFSU` 实例配置: + +```js +const mfsu = new MFSU({ + cwd: process.cwd(), +}); +``` + +其他 Options: + +| option | default | description | +| :-------------------- | :----------------------- | :--------------------------------------------------------------------- | +| `cwd` | `process.cwd()` | 项目根目录 | +| `getCacheDependency` | `() => {}` | 用返回值来对比,使 MFSU cache 无效的函数 | +| `tmpBase` | `${process.cwd()}/.mfsu` | MFSU 缓存存放目录 | +| `unMatchLibs` | `[]` | 手动排除某些不需要被 MFSU 处理的依赖 | +| `runtimePublicPath` | `undefined` | 同 umijs > [`runtimePublicPath`](../docs/api/config#runtimepublicpath) | +| `implementor` | `undefined` | webpack 实例,需要和项目内使用的唯一实例一致 | +| `buildDepWithESBuild` | `false` | 是否使用 `esbuild` 打包依赖 | +| `onMFSUProgress` | `undefined` | 获取 MFSU 编译进度的回调 | + +## 常见问题 + +#### 如何保证我的 MFSU 配置只在开发环境生效? + +使用环境标识避免所有 `MFSU` 在生产环境构建时的配置侵入: + +```js +const isDev = process.env.NODE_ENV === 'development' + +const mfsu = isDev + ? new MFSU({ + implementor: webpack, + buildDepWithESBuild: true, + }) + : undefined + +// e.g. +{ + test: /\.[jt]sx?$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader', + options: { + plugins: [ + ...(isDev ? [] : mfsu.getBabelPlugins()) + ] + } + } +} +``` diff --git a/docs/docs/blog/umi-4-rc.en-US.md b/docs/docs/blog/umi-4-rc.en-US.md new file mode 100644 index 000000000000..a7a85d7498f3 --- /dev/null +++ b/docs/docs/blog/umi-4-rc.en-US.md @@ -0,0 +1,150 @@ +--- +toc: content +order: 2 +group: + title: Blog +--- + +# Umi 4 RC 发布 + +大家好,Umi 4 经过几个月的开发,终于要和大家见面了。相比 Umi 2 到 3,3 到 4 的变化是巨大的,开发时间也更长,但我们尽量把对于开发者的影响降低到最小。按捺住激动的心情,在此先和大家分享下都有哪些变化。 + +🎉 新官网和文档
🚀 MFSU V3 & 默认开启
🎭 双构建引擎和 ESMi
🕸 Webpack 5
⛹🏾‍♂️ React Router 6 & 新路由
🐹 最佳实践迭代
🛡️ 依赖预打包
🤺 Umi Max
🐛 Low Import 研发模式
⚠️ 强约束功能集成
🎈 Import All From Umi 迭代
🍀 srcTranspiler 和 depTranspiler
🌼 jsMinifier 和 cssMinifier
🌸 应用元数据
❄️ 微生成器
🧪 贴心小改进
+ +

+ 新官网和文档。 + 下图是新官网的首页,包括重新梳理的文档、信息结构、以及新写的文档插件。目前包含基础的配置、API、升级和快速上手等基础文档,剩余文档还在紧张编写中。有个变化是之前插件的文档集成到 + Umi 官网中,成为 Umi Max 的一部分,之后无需跳转。 +

+ +![](https://img.alicdn.com/imgextra/i1/O1CN014dDq4L1Zc3guRwcse_!!6000000003214-2-tps-1600-941.png) + +

+ MFSU V3 & 默认开启。 + MFSU 更新了他的第三个大版本,如果你有用 Umi 3 内置的 MFSU 并遇到问题,建议重新尝试,这个版本有很多改进,解决基本所有之前可能会遇到的诡异问题,并且编译速度和页面打开速度都更快。昨天我还有写一篇 + [《比 Vite 更快的 MFSU》](https://mp.weixin.qq.com/s?__biz=MjM5NDgyODI4MQ==&mid=2247484624&idx=1&sn=2addfa8cc2511fbea91faf831195788f)。基于此,我们自信地把这个功能在 + Umi 4 中默认开启。还有值得一提的是,MFSU 可脱离 Umi 运行。 +

+ +![](https://img.alicdn.com/imgextra/i2/O1CN01Znj8HD1mCwz72voXv_!!6000000004919-2-tps-1600-807.png) + +

+ 双构建引擎和 ESMi。 + Umi 4 提供 Vite 和 Webpack 两种构建模式供开发者选择,并尽可能保证他们之间功能的一致性,可能有些同学会喜欢 + dev 用 vite,build 用 webpack 这样的组合。同时基于 Vite 模式实现了 ESMi 的 Client + 端,ESMi 依赖服务端,在外网还无法使用。 +

+ +

+ Webpack 5。Umi 4 + 默认使用 webpack 5 并开启物理缓存。 +

+ +

+ + React Router 6 & 新路由。 + + Umi 4 的路由基于 React Router 6 实现,个人非常喜欢这个版本,因为 Remix 的原因,React + Router 6 从设计上考虑了配置式路由的场景,让我得以删除大量 Umi 3 中关于路由渲染的代码。同时基于此,设计了新的路由结构,方便扩展和在未来处理路由的约定式请求。 +

+ +

+ 最佳实践迭代。 + 针对之前 umijs/plugins 仓库中的插件进行了重写、升级,并整合到主仓库。这么做是为了更好的顶层设计,让官方插件之间的风格更一致。 +

+ +

+ ​​依赖预打包。 + 由于服务企业内部,安全和稳定是其中很重要点,加上最近 colors 和 faker.js 闹得社区沸沸扬扬,谁都不希望睡一觉醒来,自己负责的业务挂了,还背个故障。Umi + 4 接着 Umi 3 继续做依赖预打包的事,并且更彻底,不仅是 node 侧的依赖,部分运行时的依赖也会做锁定,比如 + core-js 和 @babel/runtime。 +

+ +![](https://img.alicdn.com/imgextra/i1/O1CN01h44iJg1T09DNuYOlm_!!6000000002319-2-tps-1600-758.png) + +

+ Umi Max。Umi Max + 是内部 Bigfish + 框架的对外版本,解我们自己的问题,同时也给社区另一个集中化框架的选择。 +

+ +

+ + Low Import 研发模式。 + + 这是 Umi 4 的试验性功能之一,目前已开发完成,解的问题是让开发者少些或不写 import + 语句。项目中大量的 import 其实都可以通过工程化的方式自动处理。Umi 4 里通过 lowImport:{' '} + {} 开启,然后就可以无 import 直接用路由相关的 Link、useLocation 等,数据流相关的 + connect、useModel,antd 组件 Button、Calendar 等,以及其他更多。 +

+ +![](https://img.alicdn.com/imgextra/i4/O1CN0142Vcpt25kMZqjmioe_!!6000000007564-2-tps-1600-631.png) + +

+ 强约束功能集成。Umi + 4 提供 API 让强约束和代码校验变得非常容易。API 包括 + api.onCheck、api.onCheckConfig、api.onCheckPkgJSON 和 + api.onCheckCode,顾名思义,非常好理解他们分别是干嘛的,可以分别对依赖类、代码类和配置类的内容做校验和卡点,适用于团队。 +

+ +

+ + Import All From Umi 迭代。 + + 这是两年前 Umi 3 加的功能,最近发现 Remix、prisma、vitekit 等框架和工具都有类似实现。这种方式有好有坏。好处是通过 + umi 将大量依赖管理起来,用户无需手动安装。坏处是更黑盒,同时有点 Hack。Umi 4 不能解其黑盒问题,但解了 + Hack 问题,让实现无副作用,可以和 Vite、MFSU 等方案无缝结合。 +

+ +

+ + srcTranspiler 和 depTranspiler。 + + 提供针对源码编译和依赖编译更多选择。源码编译可选 babel、swc 和 esbuild,目前没有银弹,合适场景做合适的选择。比如 + swc 由于不支持 top level await,和 mfsu 会有些冲突,但他适用于 build,因为有补丁可以兼容到 + es7;比如 esbuild 适用于 dev,因为快。数据方面以 ant-design-pro 项目为例,源码编译用 + esbuild 相比 babel 在 M1 2020 无缓存情况下会快 3s。 +

+ +

+ + jsMinifier 和 cssMinifier。 + + js 压缩和 css 压缩 Umi 4 默认都用的 esbuild,因为快。同时也提供更多选择,js 压缩还支持 + swc、terser 和 uglifyJs,css 压缩还支持 cssnano。 +

+ +

+ 应用元数据。Umi 4 + 有通过 api.appData + 收集各种项目数据,从配置、路由、package.json、tsconfig.json、npmClient + 到数据流、国际化、antd 用了哪个版本、react 和 react-dom + 的版本等,应有尽有,这对于插件开发者会非常实用,也适用于有统计需求的场景。 +

+ +

+ 微生成器。没错,就是 + modern.js 的微生成器,这功能从 modern.js + 里学习了不少,名字就不改了。举个例子,比如 prettier + 功能,可能不是每个项目都需要,就比较适用于微生成器,按需启用、添加配置、安装依赖。 +

+ +

+ 贴心小改进。 + 还有不少贴心小改进,举两个例子。1 是项目中新增 plugin.ts,会默认作为插件添加,方便项目进行一些插件级的扩展;2 + 是调试问题时通常需要修改编译后的代码看看有没有改对,你把 umi.js 下下来存到项目根目录,umi + 会优先使用这份代码。 +

+ +以上是 Umi 4 目前的新功能。 + +除此之外,还有一些计划在正式版发布之前做的事情。包括 api route、umi server and adapter、route loader、稳定的 lint、更多命令、组件研发 father 4、文档工具 dumi 2 等,会在之后的 RC 版本中与大家见面。 + +欢迎大家尝鲜 Umi 4,官方文档有准备 ant-design-pro 从 Umi 3 到 4 的升级文档。同时 RC 阶段,还准备了一个手把手升级的微信交流群,欢迎 Umi 4 的先行者们加入,祝大家升级顺利,也提前祝大家新年快乐 🧨,🐯 年吉祥。 + +

+ +

diff --git a/docs/docs/blog/umi-4-rc.md b/docs/docs/blog/umi-4-rc.md index a7a85d7498f3..c9f8ac45875f 100644 --- a/docs/docs/blog/umi-4-rc.md +++ b/docs/docs/blog/umi-4-rc.md @@ -22,8 +22,7 @@ group:

MFSU V3 & 默认开启。 MFSU 更新了他的第三个大版本,如果你有用 Umi 3 内置的 MFSU 并遇到问题,建议重新尝试,这个版本有很多改进,解决基本所有之前可能会遇到的诡异问题,并且编译速度和页面打开速度都更快。昨天我还有写一篇 - [《比 Vite 更快的 MFSU》](https://mp.weixin.qq.com/s?__biz=MjM5NDgyODI4MQ==&mid=2247484624&idx=1&sn=2addfa8cc2511fbea91faf831195788f)。基于此,我们自信地把这个功能在 - Umi 4 中默认开启。还有值得一提的是,MFSU 可脱离 Umi 运行。 + 《比 Vite 更快的 MFSU》。基于此,我们自信地把这个功能在Umi 4 中默认开启。还有值得一提的是,MFSU 可脱离 Umi 运行。

![](https://img.alicdn.com/imgextra/i2/O1CN01Znj8HD1mCwz72voXv_!!6000000004919-2-tps-1600-807.png) @@ -138,9 +137,9 @@ group: 以上是 Umi 4 目前的新功能。 -除此之外,还有一些计划在正式版发布之前做的事情。包括 api route、umi server and adapter、route loader、稳定的 lint、更多命令、组件研发 father 4、文档工具 dumi 2 等,会在之后的 RC 版本中与大家见面。 +除此之外,还有一些计划在正式版发布之前做的事情。包括 api route、umi server and adapter、route loader、稳定的 lint、更多命令、组件研发 father 4、文档工具 dumi 2 等,会在之后的 RC 版本中与大家见面。 -欢迎大家尝鲜 Umi 4,官方文档有准备 ant-design-pro 从 Umi 3 到 4 的升级文档。同时 RC 阶段,还准备了一个手把手升级的微信交流群,欢迎 Umi 4 的先行者们加入,祝大家升级顺利,也提前祝大家新年快乐 🧨,🐯 年吉祥。 +欢迎大家尝鲜 Umi 4,官方文档有准备 ant-design-pro 从 Umi 3 到 4 的升级文档。同时 RC 阶段,还准备了一个手把手升级的微信交流群,欢迎 Umi 4 的先行者们加入,祝大家升级顺利,也提前祝大家新年快乐 🧨,🐯 年吉祥。

) { + const hash = createHash('md5'); + hash.update(JSON.stringify(env)); + const result = hash.digest('hex'); + return result; +} +``` + +请格外注意: + +1. 你的项目有哪些文件、依赖会影响项目,配置他们作为依赖,变更时可以使得缓存失效。 + +2. 因为 `process.env` 包括了所有的 nodejs 环境变量,这非常多,如果环境变量在 CI 中每次构建都存在差异,请挑选所需的环境变量,或者排除掉会变化的。 + + ```ts + // 如挑选可能会影响项目内容的环境变量 + createEnvironmentHash({ + NODE_ENV: process.env.NODE_ENV, + // ... + }); + ``` + +### Monorepo 中的项目 + +在 monorepo 中,如何缓存需要前置构建的其他子包,比如构建 `apps/project-umi` 需要先构建好他依赖的子包 `libs/component` ,但是下次 `libs/component` 没有代码改动,如何跳过这部分前置依赖的构建? + +此时推荐你使用 [Turborepo](https://turbo.build/repo) 来做 monorepo 构建方案,具体使用方法请参见 [官方文档](https://turbo.build/repo/docs) 和 [examples](https://github.com/vercel/turbo/tree/main/examples) 。 + +注:如果在 CI 中构建,同样需要容器支持恢复上次的 turbo 缓存,可以通过 [`--cache-dir`](https://turbo.build/repo/docs/reference/command-line-reference#--cache-dir) 选项更改缓存位置。 diff --git a/docs/docs/docs/api/api.en-US.md b/docs/docs/docs/api/api.en-US.md new file mode 100644 index 000000000000..5c7432892927 --- /dev/null +++ b/docs/docs/docs/api/api.en-US.md @@ -0,0 +1,741 @@ +--- +order: 1 +toc: content +translated_at: '2024-03-17T10:47:17.550Z' +--- + +# API + +For ease of search, the following content is sorted alphabetically. + +## umi + +### createBrowserHistory + +Creates a `BrowserHistory` that uses the browser's built-in `history` to track application navigation. It is recommended for use in modern web browsers that support the HTML5 `history` API. + +Type definition is as follows: +```ts +function createBrowserHistory(options?: { window?: Window }) => BrowserHistory; +``` + +Usage example: +```ts +// create a BrowserHistory +import { createBrowserHistory } from 'umi'; +const history = createBrowserHistory(); +// or a iframe BrowserHistory +import { createBrowserHistory } from 'umi'; +const history = createBrowserHistory({ + window: iframe.contentWindow, +}); +``` +### createHashHistory + +`createHashHistory` returns a `HashHistory` instance. The default `window` is the current document's `defaultView`. + +The main difference between `HashHistory` and `BrowserHistory` is that `HashHistory` stores the current location in the hash part of the URL, which means it does not send a request to the server when switching routes. If you are hosting your site on a server that you cannot fully control, or in a single-page Electron application, `HashHistory` is recommended. + +Usage example: +```ts +// create a HashHistory +import { createHashHistory } from 'umi'; +const history = createHashHistory(); +``` + +### createMemoryHistory + +`MemoryHistory` is not operated or read from the address bar. It is also very suitable for testing and other rendering environments. + +```ts +const history = createMemoryHistory(location) +``` + +### createSearchParams + +A utility function that wraps `new URLSearchParams(init)`, supports creating with arrays and objects + +```ts +import { createSearchParams } from 'umi'; + + +// Assuming the path http://a.com?foo=1&bar=2 +createSearchParams(location.search); +createSearchParams("foo=1&bar=2"); +createSearchParams("?foo=1&bar=2"); + +// Key-value pair object +createSearchParams({ foo: 'bar', qux: 'qoo'}).toString() +// foo=bar&qux=qoo + +// Key-value tuple array +createSearchParams([["foo", "1"], ["bar", "2"]]).toString() +// foo=1&bar=2 +``` + +[URLSearchParams documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams) + +### generatePath + +Generates the actual route to be accessed using the given path with parameters and the corresponding params. + +```ts +import { generatePath } from 'umi'; + +generatePath("/users/:id", { id: "42" }); // "/users/42" +generatePath("/files/:type/*", { + type: "img", + "*": "cat.jpg", +}); // "/files/img/cat.jpg" +``` + +### Helmet + +The Helmet component provided by [react-helmet-async](https://github.com/staylor/react-helmet-async), used to dynamically configure tags in the `head` of the page, such as the `title`. + +> Note: To ensure Helmet still works during SSR, be sure to use the Helmet provided by Umi instead of installing react-helmet separately + +```tsx +import { Helmet } from 'umi'; + +export default function Page() { + return ( + + Hello World + + ); +} +``` + +### history + +Operations related to history, used to obtain current route information, execute route jumps, and listen for route changes. + +```ts +// Recommended to use useLocation in components or hooks +import { useLocation } from 'umi'; +export default function Page() { + let location = useLocation(); + return ( +

+ { location.pathname } + { location.search } + { location.hash } +
+ ); +} +``` + +To get the current route information outside of React components and Hooks. + +```ts +// location object, contains pathname, search, and hash +window.location.pathname; +window.location.search; +window.location.hash; +``` + +Imperative route navigation. + +```ts +import { history } from 'umi'; + +// Jump to a specific route +history.push('/list'); + +// Jump to a specific route with parameters +history.push('/list?a=b&c=d#anchor', state); +history.push({ + pathname: '/list', + search: '?a=b&c=d', + hash: 'anchor', + }, + { + some: 'state-data', + } +); + +// Jump to the current path and refresh state +history.push({}, state) + +// Jump back to the previous route +history.back(); +history.go(-1); +``` + +:::info{title=🚨} +Note: `history.push` and `history.replace` require using `state` as the second parameter passed to these two APIs +::: + + +Route listening. + +```ts +import { history } from 'umi'; + +const unlisten = history.listen(({ location, action }) => { + console.log(location.pathname); +}); +unlisten(); +``` + +### Link + +`` is a React component, an `` element with routing jump functionality. + +Type definition is as follows: + +```ts +declare function Link(props: { + prefetch?: boolean; + to: string | Partial<{ pathname: string; search: string; hash: string }>; + replace?: boolean; + state?: any; + reloadDocument?: boolean; +}): React.ReactElement; +``` + +Example: + +```tsx +import { Link } from 'umi'; + +function IndexPage({ user }) { + return {user.name}; +} +``` + +`` supports relative path navigation; `` does not do routing navigation and is equivalent to the jump behavior of ``. + +If `prefetch` is enabled, then when the user hovers over the component, Umi will automatically start preloading the component js files and data for the routing jump. + +### matchPath + +`matchPath` can match a given path with a known route format and return the match result. + +Type definition is as follows: + +```ts +declare function matchPath( + pattern: PathPattern | string, + pathname: string +): PathMatch | null; +interface PathMatch { + params: Params; + pathname: string; + pattern: PathPattern; +} +interface PathPattern { + path: string; + caseSensitive?: boolean; + end?: boolean; +} +``` + +Example: +```ts +import { matchPath } from 'umi'; +const match = matchPath( + { path: "/users/:id" }, + "/users/123", +); +// { +// "params": { "id": "123" }, +// "pathname": "/users/123", +// "pathnameBase": "/users/123", +// "pattern": { "path": "/users/:id" } +// } +``` +### matchRoutes + +`matchRoutes` can match a given path with multiple potential route choices and return the match result. + +Type definition is as follows: + +```ts +declare function matchRoutes( + routes: RouteObject[], + location: Partial | string, + basename?: string +): RouteMatch[] | null; +interface RouteMatch { + params: Params; + pathname: string; + route: RouteObject; +} +``` + +Example: + +```ts +import { matchRoutes } from 'umi'; +const match = matchRoutes( + [ + { + path: "/users/:id", + }, + { + path: "/users/:id/posts/:postId", + }, + ], + "/users/123/posts/456", +); +// [ +// { +// "params": { +// "id": "123", +// "postId": "456" +// }, +// "pathname": "/users/123/posts/456", +// "pathnameBase": "/users/123/posts/456", +// "route": { +// "path": "/users/:id/posts/:postId" +// } +// } +// ] +``` + +### NavLink + +`` is a special form of ``, aware of whether it is in an active routing state. Often used in navigation menus, breadcrumbs, Tabs to display the current selection status. + +Type definition is as follows: + +```ts +declare function NavLink(props: LinkProps & { + caseSensitive?: boolean; + children?: React.ReactNode | ((props: { isActive: boolean }) => React.ReactNode); + className?: string | ((props: { isActive: boolean }) => string | undefined); + end?: boolean; + style?: React.CSSProperties | ((props: { isActive: boolean }) => string | React.CSSProperties); +}): React.ReactElement; +``` + +The examples below use style, className, and children to render the active state. + +```ts +import { NavLink } from 'umi'; + +function Navs() { + return
    +
  • isActive ? { color: 'red' } : undefined}>Messages
  • +
  • isActive ? 'active' : undefined}>Tasks
  • +
  • {({ isActive }) => Blog}
  • +
; +} +``` + +### Outlet + +`` is used to render child routes within a parent route. If the parent route is an exact match, it will render the index route of the child routes (if any). + +Type definition is as follows: + +```ts +interface OutletProps { + context?: unknown; +} +declare function Outlet( + props: OutletProps +): React.ReactElement | null; +``` + +Example: + +```ts +import { Outlet } from 'umi'; + +function Dashboard() { + return ( +
+

Dashboard

+ +
+ ); +} + +function DashboardWithContext() { + return ( +
+

Dashboard

+ +
+ ); +} +``` + +The `context` of the `Outlet` component can be retrieved in the child component using the API `useOutletContext`. + +### resolvePath + +Used to resolve front-end routing jump paths on the client side. + +Type definition is as follows: + +```ts +declare function resolvePath( + to: Partial | string, + fromPathname?: string +): { + pathname: string; + search: string; + hash: string; +}; +``` + +Example: + +```ts +// Same-level relative jump, returns { pathname: '/parent/child', search: '', hash: '' } +resolvePath('child', '/parent'); +resolvePath('./child', '/parent'); +resolvePath('', '/parent/child'); +resolvePath('.', '/parent/child'); + +// Ancestor level relative jump, returns { pathname: '/parent/sibling', search: '', hash: '' } +resolvePath('../sibling', '/parent/child'); +resolvePath('../../parent/sibling', '/other/child'); + +// Absolute jump, returns { pathname: '/target', search: '', hash: '' } +resolvePath('/target', '/parent'); +resolvePath('/target', '/parent/child'); + +// Jump with search and hash, returns { pathname: '/params', search: '?a=b', hash: '#c' } +resolvePath('/params?a=b#c', '/prev'); +``` + +### terminal + +`terminal` is a tool for logging messages from the browser to the node terminal during the development stage. + +Example: +```ts +import {terminal} from 'umi'; +// The following three commands will print logs in different colors on the umi startup terminal +terminal.log('i am log level'); +terminal.warn('i am warn level'); +terminal.error('i am error level'); +``` +Note that `terminal` only takes effect when the environment variable `NODE_ENV` is not `production`; the corresponding log call functions in Umi's build output will not have any effect, so you can leave the calls to `terminal` in your code. + +### useAppData + +`useAppData` returns global application data. + +Type definition is as follows: + +```ts +declare function useAppData(): { + routes: Record; + routeComponents: Record>; + clientRoutes: ClientRoute[]; + pluginManager: any; + rootElement: string; + basename: string; + clientLoaderData: { [routeKey: string]: any }; + preloadRoute: (to: string) => void; +}; +``` +Note: This API might still be adjusted. + +### useLocation + +`useLocation` returns the current location object. + +Type definition is as follows: + +```ts +declare function useLocation(): { + pathname: string; + search: string; + state: unknown; + key: Key; +}; +``` + +One scenario is to perform some side effect operations when location changes, such as page view statistics. + +```ts +import { useLocation } from 'umi'; + +function App() { + const location = useLocation(); + React.useEffect(() => { + ga('send', 'pageview'); + }, [location]); + // ... +} +``` + +### useMatch + +`useMatch` returns match information for the given path; if no match, it will return `null` + +Type definition is as follows: + +```ts +declare function useMatch(pattern: { + path: string; + caseSensitive?: boolean; + end?: boolean; +} | string): { + params: Record; + pathname: string; + pattern: { + path: string; + caseSensitive?: boolean; + end?: boolean; + }; +}; +``` + +Example: +```tsx +import { useMatch } from 'umi'; + +// when url = '/events/12' +const match = useMatch('/events/:eventId'); +console.log(match?.pathname, match?.params.eventId); +// '/events/12 12' +``` + +### useNavigate + +`useNavigate` hook function returns a function that can control jumping; for example, it can be used after submitting a form to jump to another page. + +```ts +declare function useNavigate(): NavigateFunction; + +interface NavigateFunction { + ( + to: To, + options?: { replace?: boolean; state?: any } + ): void; + (delta: number): void; +} +``` + +Example: + +* Jump to path +```ts +import { useNavigate } from 'umi'; + +let navigate = useNavigate(); +navigate("../success", { replace: true }); +``` + +* Go back to the previous page +```ts +import { useNavigate } from 'umi'; + +let navigate = useNavigate(); +navigate(-1); +``` + +### useOutlet + +`useOutlet` returns the child route element currently matched, used internally by the ``. + +Type definition is as follows: +```ts +declare function useOutlet(): React.ReactElement | null; +``` + +Example: +```ts +import { useOutlet } from 'umi'; + +const Layout = ()=>{ + const outlet = useOutlet() + + return
+ {outlet} +
+} +``` + +### useOutletContext + +`useOutletContext` is used to return the `context` mounted on the `Outlet` component. + +Type definition is as follows: +```ts +declare function useOutletContext(): Context; +``` + +Example: +```ts +import { useOutletContext, Outlet } from 'umi'; + +const Layout = () => { + return
+ +
+} + +const SomeRouteComponentUnderLayout = () => { + const layoutContext = useOutletContext(); + + return JSON.stringify(layoutContext) // {"prop":"from Layout"} +} +``` + +### useParams + +The `useParams` hook function returns a read-only key-value pair object of dynamic route matching parameters; child routes will inherit dynamic parameters from parent routes. + +Type definition is as follows: +```ts +declare function useParams< + K extends string = string +>(): Readonly>; +``` + +Example: + +```ts +import { useParams } from 'umi'; + +// Assuming a route configuration user/:uId/repo/:rId +// Current path user/abc/repo/def +const params = useParams() +/* params +{ uId: 'abc', rId: 'def'} +*/ +``` + +### useResolvedPath + +`useResolvedPath` resolves the complete routing information for the target address based on the current path. + +Type definition is as follows: +```ts +declare function useResolvedPath(to: To): Path; +``` + +Example: + +```ts +import { useResolvedPath } from 'umi'; + +const path = useResolvedPath('docs') +/* path +{ pathname: '/a/new/page/docs', search: '', hash: '' } +*/ +``` + +### useRouteData + +`useRouteData` returns the route data of the currently matched route. + +Type definition is as follows: + +```ts +declare function useRouteData(): { + route: Route; +}; +``` +Note: This API might still be adjusted. + +Example: +```ts +import { useRouteData } from 'umi'; + +const route = useRouteData(); +/* route +{ + route: { + path: 'a/page', + id: 'a/page/index', + parentId: '@@/global-layout', + file: 'a/page/index.tsx' + } +} +*/ +``` + +### useRoutes + +`useRoutes` is a hook function to render routes, pass in route configuration and optional parameter `location` to get the rendering result; if there is no matched route, the result is `null`. + +Type definition is as follows: +```ts +declare function useRoutes( + routes: RouteObject[], + location?: Partial | string; +): React.ReactElement | null; +``` + +Example: + +```ts +import * as React from "react"; +import { useRoutes } from "umi"; + +function App() { + let element = useRoutes([ + { + path: "/", + element: , + children: [ + { + path: "messages", + element: , + }, + { path: "tasks", element: }, + ], + }, + { path: "team", element: }, + ]); + + return element; +} +``` + +### useRouteProps + +Read the props attribute of the current route in the route configuration using this hook. You can use this hook to obtain additional information in the route configuration. + +```ts +// .umirc.ts +routes: [ + { + path: '/', + custom_key: '1', + } +] +``` + +```ts +import { useRouteProps } from 'umi' + +export default function Page() { + const routeProps = useRouteProps() + + // use `routeProps.custom_key` +} +``` + +Note: Also applicable to convention-based routing. + +### useSelectedRoutes + +Used to read all the route information hit by the current path. For example, in a `layout`, it is possible to obtain information on all the subroutes hit, and also to obtain parameters configured in `routes`, which is very useful. + +Example: + +```tsx +// layouts/index.tsx + +import { useSelectedRoutes } from 'umi' + +export default function Layout() { + const routes = useSelectedRoutes() + const lastRoute = routes.at(-1) + + if (lastRoute?.pathname === '/some/path') { + return
1 :
+ } + + if ( diff --git a/docs/docs/docs/api/commands.en-US.md b/docs/docs/docs/api/commands.en-US.md new file mode 100644 index 000000000000..279d7db56cd0 --- /dev/null +++ b/docs/docs/docs/api/commands.en-US.md @@ -0,0 +1,308 @@ +--- +order: 4 +toc: content +translated_at: '2024-03-17T10:43:51.227Z' +--- + +# Command Line + +umi offers many built-in command line interfaces to start and build projects, as well as some auxiliary development commands, such as generators. + +To get a list of available commands, you can run the help command in the project directory: + +```bash +umi help +``` + +You should see logs similar to the following: + +```bash +Usage: umi [options] + +Commands: + + build build app for production + config umi config cli + dev dev server for development + help show commands help + lint lint source code using eslint and stylelint + setup setup project + deadcode check dead code + version show umi version + v show umi version + plugin inspect umi plugins + verify-commit verify the commit message, which is usually used with husky. + preview locally preview production build + run run the script commands, support for ts and zx + generate generate code snippets quickly + g generate code snippets quickly + +Run `umi help ` for more information of specific commands. +Visit https://umijs.org/ to learn more about Umi. +``` + +> For ease of lookup, the commands below are sorted alphabetically. + +## build + +Build the project for deployment in a production environment. + +```bash +$ umi build +``` + +## config + +Quickly view and modify configuration via the command line. + +Viewing configuration, you can use `list` or `get`. + +```bash +$ umi config list + - [key: polyfill] false + - [key: externals] { esbuild: true } + +$ umi config get mfsu + - [key: externals] { esbuild: true } +``` + +Modifying configuration, you can use `set` or `remove`. + +```bash +$ umi config set polyfill false +set config:polyfill on /private/tmp/sorrycc-wsYpty/.umirc.ts + +$ umi config remove polyfill +remove config:polyfill on /private/tmp/sorrycc-wsYpty/.umirc.ts +``` + +## dev + +Start a local development server for project development and debugging. + +```bash +$ umi dev + ╔═════════════════════════════════════════════════════╗ + ║ App listening at: ║ + ║ > Local: https://127.0.0.1:8001 ║ +ready - ║ > Network: https://192.168.1.1:8001 ║ + ║ ║ + ║ Now you can open browser with the above addresses👆 ║ + ╚═════════════════════════════════════════════════════╝ +event - compiled successfully in 1051 ms (416 modules) +``` + +## generate + +Used for incrementally generating files or enabling features, the command line alias is `g`. + +When used without any parameters, it will opt for an interactive generator selection. + +```bash +$ umi g +# or +$ umi generate +? Pick generator type › - Use arrow-keys. Return to submit. +❯ Create Pages -- Create a umi page by page name + Enable Prettier -- Enable Prettier +``` + +You can also specify parameters. + +```bash +# Generate route files +$ umi g page index --typescript --less +``` + +## help + +View help. + +```bash +$ umi help +Usage: umi [options] + +Commands: + + build build app for production + config umi config cli + dev dev server for development + help show commands help + setup setup project + version show umi version + plugin inspect umi plugins + generate generate code snippets quickly + +Run `umi help ` for more information of specific commands. +Visit https://umijs.org/ to learn more about Umi. +``` + +You can also specify a command to see detailed help for that command. + +```bash +$ umi help build +Usage: umi build [options] +build app for production. + +Details: + umi build + + # build without compression + COMPRESS=none umi build + + # clean and build + umi build --clean +``` + +## lint + +Used to check and correct code to match rules. + +```bash +$ umi lint +Usage: umi lint + + Support for validation of js, ts, tsx, jsx type files only: umi lint --eslint-only + + Support for validation of css, less and other style files only: umi lint --stylelint-only + + Support for cssinjs mode validation: umi lint --stylelint-only --cssinjs + + Correct the code: --fix + +``` + +## plugin + +Plugin related operations, currently only supports the `list` subcommand. + +List all plugins. + +```bash +$ umi plugin list +- @umijs/core/dist/service/servicePlugin +- @umijs/preset-umi (from preset) +- @umijs/preset-umi/dist/registerMethods (from preset) +- @umijs/preset-umi/dist/features/appData/appData (from preset) +- @umijs/preset-umi/dist/features/check/check (from preset) +- @umijs/preset-umi/dist/features/configPlugins/configPlugins (from preset) +- virtual: config-styles +- virtual: config-scripts +- virtual: config-routes +- virtual: config-plugins +... +``` + +## preview + +The `umi preview` command will launch a local static web server, running the dist folder at http://127.0.0.1:4172, for previewing the production build, supporting proxy, mock, etc. settings. + +You can use the `--port` parameter to configure the service's running port. + +```bash +$ umi preview --port 9527 +``` + +Now the `preview` command will run the server at http://127.0.0.1:9527. + +Use the `--host` parameter to specify the service's running hostname. + +The following user configurations will also take effect during `preview` + +* [https](./config#https) +* [proxy](../guides/proxy) +* [mock](../guides/mock) + +Note that the `dist` directory will change with the configuration of `outputPath`. + +## run + +The `umi run` command allows you to run TypeScript and ESM files like running js with node. You can pair it with [zx](https://github.com/google/zx) for better script command usability. + +```bash +$ umi run ./script.ts +``` + +## setup + +Initialize the project, doing operations like generating temporary files. Usually set in `scripts.postinstall` in package.json. + +```bash +{ + "scripts": { "postinstall": "umi setup" } +} +``` + +## deadcode + +Used to find files in the src directory that are not referenced, and output to the root directory. + +```bash +$ umi deadcode +- Preparing... +- begin check deadCode +- write file /examples/umi-run/DeadCodeList-{timeStamp}.txt +- check dead code end, please be careful if you want to remove them +``` + +## mfsu + +The `umi mfsu` command can be used to view MFSU dependency information, rebuild MFSU dependencies, and clear MFSU dependencies. + +```bash title="Get MFSU command help" +$ umi mfsu +``` + +```bash title="Get MFSU dependency list" +$ umi mfsu ls +warning@4.0.3 +regenerator-runtime/runtime.js@0.13.11 +react/jsx-dev-runtime@18.1.0 +react-intl@3.12.1 +react-error-overlay/lib/index.js@6.0.9 +react@18.1.0 +qiankun@2.8.4 +lodash/noop@4.17.21 +lodash/mergeWith@4.17.21 +lodash/concat@4.17.21 +... +``` + +```bash title="Rebuild MFSU dependency" +$ umi mfsu build +info - Preparing... +info - MFSU eager strategy enabled +warn - Invalidate webpack cache since mfsu cache is missing +info - [MFSU] buildDeps since cacheDependency has changed +... +info - [plugin: @umijs/preset-umi/dist/commands/mfsu/mfsu] [MFSU][eager] build success +``` + +```bash title="Clear MFSU dependency" +$ # Delete dependency information list +$ umi mfsu remove +$ # Delete dependency information list and product files +$ umi mfsu remove --all +``` + +## verifyCommit + +Verify commit message information, usually used in conjunction with [husky](https://github.com/typicode/husky). + +For example, configure the following in `.husky/commit-msg`, + +```bash +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install umi verify-commit $1 +``` + +## version + +View the `umi` version, equivalent to `umi -v`. + +```bash +$ umi version +4.0.0 +``` diff --git a/docs/docs/docs/api/config.en-US.md b/docs/docs/docs/api/config.en-US.md new file mode 100644 index 000000000000..e06f341b1e43 --- /dev/null +++ b/docs/docs/docs/api/config.en-US.md @@ -0,0 +1,591 @@ +--- +order: 2 +toc: content +translated_at: '2024-03-17T10:42:29.295Z' +--- + +# Configuration + +For the custom configurations available in umi, you can use the `.umirc.ts` file or `config/config.ts` in the project root directory. It's noteworthy that both files have the same functionality, just residing in different directories. You have to choose one of them, with `.umirc.ts` having a higher priority. + +> For more information about the directory structure, you can learn more [here](../guides/directory-structure). + +umi's configuration file is a regular node module, which is used when the umi [command line](./commands) is executed and is not included in the browser-side build. + +> For some configurations that are required for the browser-side build, and some configurations that affect the style presentation, in umi they are collectively referred to as "runtime configuration", you can see more about it in [runtime configuration](./runtime-config). + +Here is the simplest example of an umi configuration file: + +```ts +import { defineConfig } from 'umi'; + +export default defineConfig({ + outputPath: 'dist', +}); +``` + +Wrapping configurations with `defineConfig` is to get better spell check support when writing the configuration file. If you don't need it, `export default {}` works too. + +It's important to note that when using umi, you don't need to understand the purpose of each configuration. You can briefly browse through all the configurations that umi supports below, and then, when needed, come back to see how to enable and modify the configurations you need. + +> For convenience, the following configurations are sorted alphabetically. + +## alias + +- Type: `Record` +- Default value: `{}` + +Configure aliases, to map the source in import statements. + +For example: + +```js +{ + alias: { + foo: '/tmp/to/foo', + } +} +``` + +Then in the code, `import 'foo'` will actually become `import '/tmp/to/foo'`. + +Some tips: + +1. It's better to use absolute paths as the value of alias, especially when pointing to a dependency, remember to add `require.resolve`, for instance, + +```js +// ❌ +{ + alias: { + foo: 'foo', + } +} + +// ✅ +{ + alias: { + foo: require.resolve('foo'), + } +} +``` + +2. If you don't want subpaths to be mapped as well, remember to add a `$` suffix, for example + +```js +// import 'foo/bar' will be mapped to import '/tmp/to/foo/bar' +{ + alias: { + foo: '/tmp/to/foo', + } +} + +// import 'foo/bar' will still be import 'foo/bar', and won't be modified +{ + alias: { + foo$: '/tmp/to/foo', + } +} +``` + +## autoprefixer + +- Type: `object` +- Default value: `{ flexbox: 'no-2009' }` + +Used for parsing CSS and adds vendor prefixes to CSS rules using values from Can I Use. It enables autoprefixing, such as automatically adding `-webkit-` prefix. + +For more configurations, please consult [autoprefixer's options](https://github.com/postcss/autoprefixer#options). + +## analyze + +- Type: `object` +- Default value: `{}` + +Specific configuration options for the analyzer plugin when analyzing product composition through the [`ANALYZE`](../guides/env-variables#analyze) environment variable. See [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) + +When using Vite mode, in addition to customizing the configuration of [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer), `excludeAssets`, `generateStatsFile`, `openAnalyzer`, `reportFilename`, `reportTitle` options will automatically adapt. + +## base + +- Type: `string` +- Default value: `/` + +To deploy the umi project in a non-root directory, you can use the base configuration. + +The base configuration allows you to set a routing prefix for your application. For example, with routes `/` and `/users`, after setting base to `/foo/`, you can access the previous routes through `/foo/` and `/foo/users`. + +> Note: The base configuration must be set at build time and can't be changed without rebuilding, because this value is inlined in the client-side package. + +## cacheDirectoryPath + +- Type: `string` +- Default value: `node_modules/.cache` + +By default, Umi stores some cache files generated during the build process in the `node_modules/.cache` directory, such as logger logs, webpack cache, mfsu cache, etc. You can modify Umi's cache file directory using the `cacheDirectoryPath` configuration. + +Example, + +```js +// Change the cache file path to the node_modules/.cache1 folder +cacheDirectoryPath: 'node_modules/.cache1', +``` + +## chainWebpack + +- Type: `(memo, args) => void` +- Default value: `null` + +To extend Umi's built-in webpack configuration, we provide a way to modify the webpack configuration in a chained programming style, based on webpack-chain. See the documentation of webpack-api for specific APIs. + +As shown below: + +```js +export default { + chainWebpack(memo, args) { + return memo; + }, +}; +``` + +This function has two parameters: + +- `memo` is the existing webpack configuration +- `args` contains some additional information and auxiliary objects, currently including `env` and `webpack`. `env` is the current environment, with values of `development` or `production`; `webpack` is the webpack object, from which webpack's built-in plugins can be obtained. + +Usage example: + +```js +export default { + chainWebpack(memo, { env, webpack }) { + // Set alias + memo.resolve.alias.set('foo', '/tmp/to/foo'); + + // Add extra plugins + memo.plugin('hello').use(Plugin, [...args]); + + // Delete Umi's built-in plugin + memo.plugins.delete('hmr'); + }, +}; +``` + +## clickToComponent + +- Type: `{ editor?: string }` +- Default value: `false` + +> Currently, only React projects are supported. + +When this feature is enabled, you can jump to the source code location in the editor by `Option+Click/Alt+Click` on the component. `Option+Right-click/Alt+Right-click` opens the context to view the parent component. + +About parameters. The `editor` parameter defaults to 'vscode', supporting `vscode` & `vscode-insiders`. + +Configure the behavior of clickToComponent, for more details see [click-to-component](https://github.com/ericclemmons/click-to-component). + +Example: + +```ts +// .umirc.ts +export default { + clickToComponent: {}, +}; +``` + +## clientLoader + +- Type: `{}` +- Default value: `false` + +When enabled, you can declare a data loading function `clientLoader` for each route. Extracting the data loading process required by the page into `clientLoader` allows Umi to preload the data before the page components are fully loaded, avoiding the issue of waterfall requests. For details, see [Route Data Preloading](../guides/client-loader). + +Example: + +```ts +// .umirc.ts +export default { + clientLoader: {}, +}; +``` + +Configuration enabled, use in the route component: + +```jsx +// pages/.../some_page.tsx + +import { useClientLoaderData } from 'umi'; + +export default function SomePage() { + const { data } = useClientLoaderData(); + return
{data}
; +} + +export async function clientLoader() { + const data = await fetch('/api/data'); + return data; +} +``` + +## codeSplitting + +- Type: `{ jsStrategy: 'bigVendors' | 'depPerChunk' | 'granularChunks'; jsStrategyOptions: {} }` +- Default value: `null` + +Provide code splitting strategy solutions. + +bigVendors is the big vendors scheme, which packs the files under node_modules in the async chunk together, which can avoid repetition. At the same time, the disadvantages are, 1) the size of a single file is too large, 2) there is no caching efficiency to speak of. + +depPerChunk is similar to bigVendors, but different in that dependencies are split by package name + version, solving bigVendors’ issues with size and caching efficiency. However, it also brings potential problems, possibly leading to more requests. My understanding is that for non-large projects it’s actually fine because, 1) a single page's requests will not include a very large number of dependencies, 2) based on HTTP/2, dozens of requests are not a problem. But, for large or huge projects, a more suitable solution is needed. + +granularChunks take a middle value between bigVendors and depPerChunk, while also having better utilization of caching efficiency. Unless there are special circumstances, the granularChunks strategy is recommended. + +## conventionLayout + +- Type: `boolean` +- Default value: `undefined` + +`src/layouts/index.[tsx|vue|jsx|js]` is conventionally set as layout, enabled by default. It can be disabled by setting `conventionLayout: false`. + +## conventionRoutes + +- Type: `{ base: string; exclude: RegExp[] }` +- Default value: `null` + +Modify the default convention-based route rules, only valid when using umi's convention-based routing. Convention-based routing, also known as file-based routing, means that you don’t need to write configurations manually, as the file system is the routes, and the routing configuration is analyzed through directories and files and their naming. + +When using convention-based routing, it's conventioned that all `(j|t)sx?` files under `src/pages` are routes. + +> You can see more details in [Convention-based Routing](../guides/routes#conventional-routing). + +### base + +`base` is used to set the base path for the routes by convention, by default reading from `src/pages`. If it is a site for documentation, you might need to change it to `./docs`; + +### exclude + +You can use `exclude` to filter some files that are not needed, such as you can use it to exclude files under components, models, etc. + +Example, + +```js +// Do not recognize files under components and models directories as routes +conventionRoutes: { + exclude: [/\/components\//, /\/models\//], +} +``` + +## copy + +- Type: `Array` +- Default value: `[]` + +Configure the files or folders to be copied to the output directory. + +When configuring as a string, it is copied to the product directory by default, such as: + +```ts +copy: ['foo.json', 'src/bar.json'] +``` + +Will produce the following product structure: + +``` ++ dist + - bar.json + - foo.json ++ src + - bar.json +- foo.json +``` + +You can also configure the specific copy location through objects, where the relative path starts from the project root directory: + +```ts +copy: [ + { from: 'from', to: 'dist/output' }, + { from: 'file.json', to: 'dist' } +] +``` + +This time will produce the following product structure: + +``` ++ dist + + output + - foo.json + - file.json ++ from + - foo.json +- file.json +``` + +## crossorigin + +- Type: `{ includes?: string[] }` +- Default value: `false` + +Configure the script tag's crossorigin. If declared, the local script will have a crossorigin="anonymous" attribute. + +Regarding the parameters. The parameter `includes` can allow extra non-local script tags to have this attribute. + +For example: + +``` +crossorigin: {} +``` + +Then the output HTML will have these changes, + +```diff +- + ++ + +``` + +## cssMinifier + +- Type: `string`, optional values: `esbuild`, `cssnano`, `parcelCSS`, `none` +- Default value: `esbuild` + +Configure the tool for minifying CSS during build time; `none` means not to minify. + +Example: + +```js +{ + cssMinifier: 'esbuild' +} +``` + +## cssMinifierOptions + +- Type: `object` +- Default value: `{}` + +Options for the CSS minification tool, `cssMinifier`. + +Example: + +```js +{ + cssMinifier: 'esbuild', + cssMinifierOptions: { + minifyWhitespace: true, + minifySyntax: true, + }, +} +``` + +Consult the corresponding documentation for CSS minification configuration. + +- [esbuild reference](https://esbuild.github.io/api/#minify) +- [cssnano reference](https://cssnano.co/docs/config-file/) +- [parcelCSS reference](https://github.com/parcel-bundler/parcel-css/blob/master/node/index.d.ts) + +## cssPublicPath +- Type: `string` +- Default value: `./` + +Customize the public path for external resources like images and files in CSS. Acts similar to `publicPath`. The default value is `./`. + +## cssLoader + +- Type: `object` +- Default value: `{}` + +Configure css-loader , see [css-loader > options](https://github.com/webpack-contrib/css-loader#options) + +## cssLoaderModules + +- Type: `object` +- Default value: `{}` + +Configure the behavior of CSS modules, see [css-loader > modules](https://github.com/webpack-contrib/css-loader#modules). + +For example: + +```ts +cssLoaderModules: { + // Configure to use camelCase + exportLocalsConvention: 'camelCase' +} +``` + +## deadCode + +- Type: `{ patterns?: string[]; exclude?: string[]; failOnHint?: boolean; detectUnusedFiles?: boolean; detectUnusedExport?: boolean; context?: string }` +- Default value: `false` + +Check for unused files and exports, only enabled at build phase. + +For example: + +``` +deadCode: {} +``` + +Then execute build, if any issues are found, a warning will be printed: + +``` +Warning: There are 1 unused files: + 1. /pages/index.module.less + Please be careful if you want to remove them (¬º-°)¬. +``` + +Configuration items: + + - `patterns` : Scope of code identification, such as `['src/pages/**']` + - `exclude` : Scope to exclude from detection, such as `['src/pages/utils/**']` + - `failOnHint` : Whether to stop the process if detection fails, default `false` not to stop + - `detectUnusedFiles` : Whether to detect unused files, default `true` for detection + - `detectUnusedExport` : Whether to detect unused exports, default `true` for detection + - `context` : The directory to start matching, default as the current project root directory + +## define + +- Type: `Record` +- Default value: As shown below + +``` + { + 'process.env.NODE_ENV' : process.env.NODE_ENV, + 'process.env.HMR' : process.env.HMR, + 'process.env.SOCKET_SERVER': process.env.ERROR_OVERLAY' + } +``` + +Set available variables in the code based on [define-plugin plugin](https://webpack.js.org/plugins/define-plugin/). + +:::warning{title=🚨} +1. Property values will be converted with `JSON.stringify`. +2. The replacement of key values is matched by their syntactic form, for instance, configuring `{'a.b.c': 'abcValue'}` can't replace the code in `a.b?.c`. +::: + +For example, + +``` +define: { FOO: 'bar' } +``` + +Then the code like `console.log(hello, FOO)` will be compiled to `console.log(hello, 'bar')`. + +When you use these variables in a TypeScript project, you need to declare the variable type in the typings file to support ts type hints, for example: + +If your typings file is global: + +```ts +// typings.d.ts +declare const FOO: string; +``` + +If your typings file is non-global (contains import/export): + +```ts +// typings.d.ts +import './other.d.ts'; + +declare global { + const FOO: string; +} +``` +## devtool + +- Type: `string` +- Default value: Dev defaults to `cheap-module-source-map`, no sourcemap by default for build + +Sets the sourcemap generation method. + +Common optional values include: + +- `eval`, the fastest type, but does not support old browsers +- `source-map`, the slowest but most comprehensive type + +Example, + +```js +// Disable sourcemap generation in dev stage +devtool: false; + +// Only set sourcemap for dev stage +devtool: process.env.NODE_ENV === 'development' ? 'eval' : false; +``` + +## classPropertiesLoose +- Type: `object` +- Default value: `{}` + +Set babel class-properties to enable loose mode + +## esbuildMinifyIIFE + +- Type: `boolean` +- Default value: `false` + +Fix the namespace conflict caused by global variables automatically introduced by the esbuild compressor. + +Since Umi 4 defaults to using esbuild as the compressor, the compressor will automatically inject global variables as polyfill, which may cause conflicts like async chunks global variables, conflicts between qiankun sub-apps and main apps' global variables, etc. This issue can be resolved by enabling this option or switching the [`jsMinifier`](#jsminifier-webpack) compressor. + +For more details, see [vite#7948](https://github.com/vitejs/vite/pull/7948). + +Example, +```ts +esbuildMinifyIIFE: true +``` + +## externals + +- Type: `Record | Function` +- Default value: `{}` + +Set which modules are not to be bundled, instead to be imported through ` +``` + +For more details, [see here](https://router.vuejs.org/guide/advanced/composition-api.html#accessing-the-router-and-current-route-inside-setup) + +### router-link + +For more details, [see here](https://router.vuejs.org/guide/#router-link) + +### router-view + +For more details, [see here](https://router.vuejs.org/guide/#router-view) + +## Runtime Configuration + +You can control Vue and Vue-router related configuration through exporting settings in the conventional `src/app.tsx`. + +### router + +Configure router settings + +```ts +// src/app.tsx +export const router: RouterConfig = { + // @ts-ignore + scrollBehavior(to, from) { + console.log('scrollBehavior', to, from); + }, +}; +``` + +### onMounted({app, router}) + +Callback for successful Vue app mount, where you can get instances of app and router for global component registration, route interceptors, etc. + +```ts +export function onMounted({ app, router }: any) { + console.log('onMounted', app, router); + app.provide('umi-hello', { + h: 'hello', + w: 'word', + }); +} +``` + +### rootContainer(container) + +Modify the root component rendered by vue-router. + +For example, to wrap a parent component around the outside + +```ts +import { h } from 'vue' + +export function rootContainer(container) { + return h(ThemeProvider, null, container); +} +``` + +## Examples + +For more examples, see demos: + +* [boilerplate-vue](https://github.com/umijs/umi/tree/master/examples/boilerplate-vue) +* [with-vue-pinia](https://github.com/umijs/umi/tree/master/examples/with-vue-pinia) +* [with-vue-element-plus](https://github.com/umijs/umi/tree/master/examples/with-vue-element-plus) diff --git a/docs/docs/docs/guides/use-vue.md b/docs/docs/docs/guides/use-vue.md index 448784f625f0..2a08f363bb0f 100644 --- a/docs/docs/docs/guides/use-vue.md +++ b/docs/docs/docs/guides/use-vue.md @@ -5,7 +5,7 @@ toc: content # 使用 Vue -本文介绍如何在 Umi 使用 Vue , Umi Vue 大部分配置和 React 相同,这里只列出一些 Vue 独有的配置 +本文介绍如何在 Umi 中使用 Vue , Umi Vue 大部分配置和 React 相同,这里只列出一些 Vue 独有的配置。 ## 启动方式 @@ -30,14 +30,14 @@ export default { ### 配置式路由 :::info -这里仅列出和 React 路由配置差异部分 +这里仅列出和 React 路由配置差异部分。 ::: #### name 命名路由 -除了 `path` 之外,你还可以为任何路由提供 `name` +除了 `path` 之外,你还可以为任何路由提供 `name` : ```ts export default { @@ -51,7 +51,7 @@ export default { } ``` -要链接到一个命名的路由,可以向 `router-link` 组件的 to 属性传递一个对象: +要链接到一个命名的路由,可以向 `router-link` 组件的 `to` 属性传递一个对象: ```html @@ -168,7 +168,7 @@ const onHello = () => { ## 运行时配置 -可以通过在约定的 `src/app.tsx` 通过 export 配置来控制 vue vue-router 相关的配置 +可以通过在约定的 `src/app.tsx` 通过 export 配置来控制 vue vue-router 相关的配置。 ### router @@ -186,7 +186,7 @@ export const router: RouterConfig = { ### onMounted(\{app, router\}) -Vue app mount 成功回调, 这里可以拿到 app 的实例及 router 的实例, 可以进行全局组件注册, 路由拦截器等。 +Vue app mount 成功回调,这里可以拿到 app 的实例及 router 的实例,可以进行全局组件注册,路由拦截器等。 ```ts export function onMounted({ app, router }: any) { @@ -212,9 +212,9 @@ export function rootContainer(container) { } ``` -## examples +## Examples -更多详见 demo +更多详见 demo : * [boilerplate-vue](https://github.com/umijs/umi/tree/master/examples/boilerplate-vue) * [with-vue-pinia](https://github.com/umijs/umi/tree/master/examples/with-vue-pinia) diff --git a/docs/docs/docs/introduce/contributing.en-US.md b/docs/docs/docs/introduce/contributing.en-US.md new file mode 100644 index 000000000000..22549218dd3f --- /dev/null +++ b/docs/docs/docs/introduce/contributing.en-US.md @@ -0,0 +1,198 @@ +--- +order: 3 +toc: content +translated_at: '2024-03-17T09:56:34.842Z' +--- + +# Contributing + +❤️ Loving Umi and want to get involved? Thanks! + +## Environment Setup + +### Node.js and pnpm + +Developing Umi requires Node.js 18+ and `pnpm` v8. + +It is recommended to use [`nvm`](https://github.com/nvm-sh/nvm) to manage Node.js versions to avoid permission issues and easily switch between Node.js versions. Windows developers can use [`nvm-windows`](https://github.com/coreybutler/nvm-windows). + +Install `pnpm` via one of the methods on its [official website](https://pnpm.io/installation). + +### Clone the Project + +```bash +$ git clone git@github.com:umijs/umi.git +$ cd umi +``` + +### Install Dependencies and Build + +```bash +$ pnpm i && pnpm build +``` + +## Developing Umi + +### Start the dev Command + +A must-run command for local development of Umi, for compiling TypeScript files in the `src` directory to the `dist` directory, and incrementally compiles on file changes. + +```bash +$ pnpm dev +``` + +If you find it rather slow, you can also run the `pnpm dev` command for a specific package, for example. + +```bash +$ cd packages/umi +$ pnpm dev +``` + +### Run Example + +The `examples` directory contains various examples used for testing. Running an example is a common way to ensure functions work correctly during Umi development. Each example is equipped with a dev script, so just enter the example and run `pnpm dev`. + +```bash +$ cd examples/boilerplate +$ pnpm dev +``` + +To run in vite mode, add the `--vite` argument, + +```bash +$ pnpm dev --vite +``` + +### Testing + +Currently running tests is fast, completing in just over 10s+. It’s recommended to run tests locally before submitting a PR to reduce Round Trips. + +```bash +$ pnpm test +... +Test Suites: 1 skipped, 43 passed, 43 of 44 total +Tests: 6 skipped, 167 passed, 173 total +Snapshots: 0 total +Time: 13.658 s +Ran all test suites. +``` + +To run tests for specific files, use `pnpm jest` because `pnpm test` runs with turborepo enabled. + +For example, + +```bash +$ pnpm jest packages/plugin-docs/src/compiler.test.ts +``` + +## Contributing to Umi Documentation + +Umi's documentation is implemented by Umi@4 and the `@umijs/plugin-docs` plugin, essentially an Umi project. Execute the following commands in the root directory to start development: + +```bash +# Install Umi document dependencies +$ pnpm doc:deps +# Start Umi document development +# Compilation takes longer on first launch, please be patient +$ pnpm doc:dev +``` + +Open the specified port number to see real-time updates of documentation and results of the `@umijs/plugin-docs` plugin development. + +### Writing Umi Documentation + +Umi documentation is written in MDX format. MDX is an extension of the Markdown format allowing you to insert JSX components while writing Umi documentation. + +:::success{title=🏆︎} +When writing **Documentation**, you can find usable components in `packages/plugin-docs/client/theme-doc/components`. When writing **Blog posts**, usable components can be found in `packages/plugin-docs/client/theme-blog/components`. +::: + +Umi documentation code highlighting is based on [`Rehype Pretty Code`](https://github.com/atomiks/rehype-pretty-code), for full capabilities and instructions, please visit its [official documentation](https://rehype-pretty-code.netlify.app). + +Execute the following command in the root directory to format existing Umi documentation: + +```bash +$ pnpm format:docs +``` + +After formatting the documentation, it is recommended to **only submit the Umi documents you have written or modified**. Different document contributors have varying writing styles and formatting may not always retain the original intended style. + +### Participating in Umi Documentation Plugin Development + +Open a new terminal and execute the following commands: + +```bash +$ cd packages/plugin-docs +$ pnpm dev:css +``` + +Now, when you modify the `tailwind.css` file or TailwindCSS style classes during development, a `tailwind.out.css` stylesheet file will be automatically compiled and generated. + +Umi listens for changes in the `docs` and `packages/plugin-docs/client` directories, but does not listen to changes in `packages/plugin-docs/src`. + +:::info{title=💡} +If you need to compile files in `packages/plugin-docs/src`, please move to the `packages/plugin-docs` directory and execute the `pnpm build` command, then restart development. +::: + +Executing the following command in the root directory to format the code of Umi documentation plugin: + +```bash +$ pnpm format:plugin-docs +``` + +Execute the following command in the root directory to build Umi documentation: + +```bash +$ pnpm doc:build +``` + +## Adding a New Package + +Adding a new package has a script encapsulated, no need to manually copy `package.json`, etc.: + +```bash +# Create package directory +$ mkdir packages/foo +# Initialize package development +$ pnpm bootstrap +``` + +## Updating Dependencies + +> It is not recommended for non-Core Maintainers to update a large number of dependencies because it involves pre-packaging of dependencies and there are many points to note. + +Run `pnpm dep:update` to update dependencies. + +```bash +$ pnpm dep:update +``` + +Since Umi pre-packages some dependencies, after updating dependencies, it's necessary to check if the updated dependency is in devDependencies and whether it has been pre-packaged. If so, execute `pnpm build:deps` in the corresponding package and specify the dependency to update pre-packaged dependency files. + +```bash +$ pnpm build:deps --dep webpack-manifest-plugin +``` + +## Release + +Only Core Maintainers can carry out releases. + +```bash +$ pnpm release +``` + +## Rolling Back through dist-tag + +For example, to roll back to 4.0.81. + +```bash +$ pnpm -rc --filter "./packages/**" exec pnpm dist-tag add \$PNPM_PACKAGE_NAME@4.0.81 latest +``` + +## Joining the Contributor Group + +For those who have submitted Bugfix or Feature type PRs and are interested in participating in maintaining Umi, you can first scan the QR code below with DingTalk (mention your github id), and then I will add you to the group. + + + +If you don't know what you can contribute, you can search TODO or FIXME in the source code. diff --git a/docs/docs/docs/introduce/contributing.md b/docs/docs/docs/introduce/contributing.md index eb8c87ab4377..164c7f602fe5 100644 --- a/docs/docs/docs/introduce/contributing.md +++ b/docs/docs/docs/introduce/contributing.md @@ -11,7 +11,7 @@ toc: content ### Node.js 和 pnpm -开发 Umi 需要 Node.js 16+ 和 `pnpm` v8。 +开发 Umi 需要 Node.js 18+ 和 `pnpm` v8。 推荐使用 [`nvm`](https://github.com/nvm-sh/nvm) 管理 Node.js,避免权限问题的同时,还能够随时切换当前使用的 Node.js 的版本。在 Windows 系统下的开发者可以使用 [`nvm-windows`](https://github.com/coreybutler/nvm-windows)。 @@ -76,7 +76,7 @@ Time: 13.658 s Ran all test suites. ``` -如果需要只跑部分文件的用例,用 `pnpm jest`,因为 `pnpm test` 只开了 turborepo 功能的。 +如果需要只跑部分文件的用例,用 `pnpm jest`,因为 `pnpm test` 是开了 turborepo 功能的。 比如, @@ -180,6 +180,14 @@ $ pnpm build:deps --dep webpack-manifest-plugin $ pnpm release ``` +## 通过 dist-tag 回滚 + +比如要回滚到 4.0.81 。 + +```bash +$ pnpm -rc --filter "./packages/**" exec pnpm dist-tag add \$PNPM_PACKAGE_NAME@4.0.81 latest +``` + ## 加入 Contributor 群 提交过 Bugfix 或 Feature 类 PR 的同学,如果有兴趣一起参与维护 Umi,可先用钉钉扫下方二维码(注明 github id)加我钉钉,然后我会拉到群里。 diff --git a/docs/docs/docs/introduce/faq.en-US.md b/docs/docs/docs/introduce/faq.en-US.md new file mode 100644 index 000000000000..67ddc5e83423 --- /dev/null +++ b/docs/docs/docs/introduce/faq.en-US.md @@ -0,0 +1,207 @@ +--- +order: 5 +toc: content +translated_at: '2024-03-17T09:54:04.320Z' +--- + +# FAQ + +## Can I disable dynamicImport? + +Yes, but it is not recommended to do so. + +1. Install dependencies + +```bash + pnpm i babel-plugin-dynamic-import-node -D +``` + +2. Add `extraBabelPlugins` to the configuration, but only enable it for production + +```ts +// .umirc.ts +export default { + extraBabelPlugins: process.env.NODE_ENV === 'production' + ? ['babel-plugin-dynamic-import-node'] + : [] +} +``` + +## How to configure loading for dynamicImport when it's not present? + +Define `src/loading.tsx`: + +See [Directory Structure > loading.tsx](../guides/directory-structure#loadingtsxjsx) + +## Can I use React 17? + +Since Umi v4 has upgraded the default version of React to v18, be aware of compatibility between dependency libraries and React 18 when using Umi4. If you still need to use React 17, run the following commands and restart. + +```bash + pnpm add react@^17 react-dom@^17 +``` + +## Constantly restarting and refreshing the page after proxying static resources locally + + + +Solution: Configure `SOCKET_SERVER=127.0.0.1:${port}` to start the project + +```bash + SOCKET_SERVER=http://127.0.0.1:8000 pnpm dev +``` + +## Error evaluating function `round`: argument must be a number + + + +Solution: In the new version of less, `/` is recognized as property shorthand by default. To restore the old behavior (where `/` was used as a calculation symbol by default), configure `lessLoader: { math: 'always' }`. + +## The layout configuration option in routes does not take effect + +The layout configuration has been moved to `app.ts`, see [Runtime Config > layout](https://umijs.org/docs/api/runtime-config#layout) + +## Where did document.ejs go and how do I customize the HTML template + +In addition to the injection through the configuration of external [script](https://umijs.org/docs/api/config#scripts), [css](https://umijs.org/docs/api/config#styles), you can also use the project-level plugin to more flexibly modify HTML products, see: [issuecomment-1151088426](https://github.com/umijs/umi-next/issues/868#issuecomment-1151088426) + +## Why are external js files configured in scripts by default inserted after umi.js + +React only starts running after the page has fully loaded, so inserting after `umi.js` will not affect the project. + +If you need to insert it before `umi.js`, see [issuecomment-1176960539](https://github.com/umijs/umi/issues/8442#issuecomment-1176960539) + +## How do I code split with Umi4? + +Umi 4 splits code by page by default. If you feel the need for further optimization, you can use sub-package strategies or manual splitting, see: [Code Splitting Guide](../../blog/code-splitting) + +If you have the requirement to pack all js products into a single `umi.js` file, please disable [dynamicImport](#can-i-disable-dynamicimport). + +## Where did _layout.tsx go and how do I nest routes? + +Umi 4 uses react-router v6, and nested route content is displayed through ``. See: [issuecomment-1206194329](https://github.com/umijs/umi/issues/8850#issuecomment-1206194329) + +## How to use GraphQL + +For configuring `graph-ql` loader, see: [discussions/8218](https://github.com/umijs/umi/discussions/8218) + +## How to use WebAssembly + +Configure as follows: + +```ts +// .umirc.ts + +export default { + chainWebpack(config) { + config.set('experiments', { + ...config.get('experiments'), + asyncWebAssembly: true + }) + + const REG = /\.wasm$/ + + config.module.rule('asset').exclude.add(REG).end(); + + config.module + .rule('wasm') + .test(REG) + .exclude.add(/node_modules/) + .end() + .type('webassembly/async') + .end() + }, +} +``` + +See an actual example: [discussions/8541](https://github.com/umijs/umi/discussions/8541) + +## How to customize loaders + +Depending on the scenario, you may need to exclude the file type you need to load from the static asset rules first and then add your own loader or modify it. Refer to the following examples: + + - [discussions/8218](https://github.com/umijs/umi/discussions/8218) + + - [discussions/8452](https://github.com/umijs/umi/discussions/8452) + +## How to use css modules in third-party packages + +1. Directly publish the source code of third-party packages' `jsx` / `ts` / `tsx` to npm, no need to translate to `js`. Umi 4 supports direct use. + +2. If the third-party package output is `js`, you need to include it for additional processing by babel to support css modules: + +```ts +// .umirc.ts +export default { + extraBabelIncludes: ['your-pkg-name'] +} +``` + +## How to solve the lack of hot updates in npm linked packages + +Umi 4 has `mfsu` enabled by default and ignores changes in `node_modules` by default. Exclude the package from `mfsu` as follows: + +```ts +// .umirc.ts + +export default { + mfsu: { + exclude: ['package-name'] + }, +} +``` + +## What is the priority order of config files for different environments? + +For the detailed loading priority, see [UMI_ENV](../../docs/guides/env-variables#umi_env), and the same applies to `config/config.ts` or `.umirc.ts`. + +## Problems with IE compatibility + +Umi 4 is not IE compatible by default in the context of modern browsers. + +If you need to adjust the build for compatibility targets, for older browsers, or for IE, please refer to [Legacy Browser Compatibility](../../blog/legacy-browser). + +## SSR Issues + +SSR is still an experimental feature and not recommended for production environments. If any issues are encountered, they should be reported on [issues](https://github.com/umijs/umi/issues). + +## Vue / Vite Issues + +Umi 4 now supports Vite mode and Vue. There may be edge cases, so report any issues on [issue](https://github.com/umijs/umi/issues). + +## Why does the pathname obtained from `history` differ from the one obtained from `useLocation`? + +This situation occurs when the project is configured with `base`. `history.location.pathname` reflects the browser's pathname, which includes the `base`. Route-related hooks, however, return the **frontend route** definition's pathname, which does not include the `base`. [Reference](../guides/routes#location-information). + +## How to change the compression encoding format of the output + +By default, the js/css compressor `esbuild` uses `ascii` encoding for compression, which may lead to the encoding of Chinese characters and increase the size of the output. + +Adjust the encoding to `utf8` to prevent character conversion: + +```ts +// .umirc.ts +export default { + jsMinifierOptions: { charset: 'utf8' }, + cssMinifierOptions: { charset: 'utf8' } +} +``` + +Or switch the compressor to resolve this: + +```ts +// .umirc.ts +export default { + jsMinifier: 'terser', + cssMinifier: 'cssnano' +} +``` + +## How to configure devServer options + +Umi 4 no longer supports configuring `devServer`, but you can find alternatives as follows: + +1. Use the [`proxy`](../api/config#proxy) option to set up a proxy, and modify request header information through `onProxyReq`, see [#10760](https://github.com/umijs/umi/issues/10760#issuecomment-1471158059). + +2. Write a [project-level plugin](../guides/use-plugins#project-level-plugins) to insert an express middleware to modify requests, see [#10060](https://github.com/umijs/umi/issues/10060#issuecomment-1471519707). + diff --git a/docs/docs/docs/introduce/introduce.en-US.md b/docs/docs/docs/introduce/introduce.en-US.md new file mode 100644 index 000000000000..37caeeb5b581 --- /dev/null +++ b/docs/docs/docs/introduce/introduce.en-US.md @@ -0,0 +1,57 @@ +--- +order: 1 +toc: content +translated_at: '2024-03-17T09:52:32.853Z' +--- + +# Introduction to Umi + +
+ + +## What is Umi? + +Umi, pronounced as "Wu Mi" in Chinese, is an extensible enterprise-level front-end application framework. Umi is based on routing, supporting both configuration-based routing and convention-based routing, ensuring the completeness of routing features and further extending functionalities based on this. Accompanied by a plugin system with a complete lifecycle, it covers every lifecycle from the source code to the build product, supporting various functional extensions and business needs. + +Umi is the underlying front-end framework of Ant Group, serving directly or indirectly over 10,000 applications, including Java, Node, H5 Wireless, Hybrid applications, pure front-end assets applications, CMS applications, Electron applications, Serverless applications, and more. It has served our internal users well and many external users, including Taobao system, Feizhu, Alibaba Cloud, ByteDance, Tencent, Koubei, Meituan, etc. In ByteDance's [research report](https://zhuanlan.zhihu.com/p/403206195) in 2021, Umi was the choice of 25.33% of developers. + +Umi has many interesting features, such as: + +1. **Enterprise-level**, considering more in terms of security, stability, best practices, and constraint ability
+2. **Plugin-based**, everything can be modified, and Umi itself is also composed of plugins
+3. **MFSU**, a Webpack packaging solution faster than Vite
+4. Complete routing based on React Router 6
+5. The fastest request by default
+6. SSR & SSG
+7. Stable white-box performance with ESLint and Jest
+8. Framework-level integration of React 18
+9. Best practices for Monorepo
+... + +## When Not to Use Umi? + +If your project, + +1. Needs to support IE 8 or lower browsers
+2. Needs to support React versions below 16.8.0
+3. Needs to run in environments below Node 14
+4. Has strong webpack customization needs and subjective willingness
+5. Needs to choose different routing solutions
+... + +Umi might not be suitable for you. + + +## Why Not? + +### create-react-app + +create-react-app is a scaffolding tool and not the same type as meta frameworks like Umi, next.js, remix, ice, modern.js, etc. Scaffolding can quickly start a project, which is sufficient for individual projects, but not enough for teams. Because using scaffolding is like spilt water; once it starts, it cannot iterate. Meanwhile, the encapsulation and abstraction that scaffolding can do are very limited. + +### next.js + +If SSR is needed, next.js is a very good choice (of course, Umi also supports SSR); but if only CSR is needed, Umi would be a better choice. By comparison, Umi has better extensibility; and Umi offers many more down-to-earth features, such as configuration-based routing, patch scheme, integration of antd, micro frontends, internationalization, permissions, etc.; at the same time, Umi is more stable, because it locks all dependencies that can be locked and proactively updates regularly. A certain subversion of Umi will not fail to run due to reinstallation of dependencies. + +### remix + +Remix is a framework I really like, and Umi 4 has copied (learned) a lot from it. But Remix is a Server framework, its built-in loaders and actions run on the server side, so it requires certain deployment environments. Umi applies loaders, actions, and the request mechanism of Remix to both the client and server side, not only making server requests fast but also achieving theoretically fastest values for pure CSR projects. At the same time, Remix is based on esbuild for packaging, which may not be suitable for projects with compatibility requirements or especially large dependencies. diff --git a/docs/docs/docs/introduce/introduce.md b/docs/docs/docs/introduce/introduce.md index 800eef9f3fce..916a111a8b02 100644 --- a/docs/docs/docs/introduce/introduce.md +++ b/docs/docs/docs/introduce/introduce.md @@ -9,7 +9,7 @@ toc: content ## Umi 是什么? -Umi,中文发音为「乌米」,是可扩展的企业级前端应用框架。Umi 以路由为基础的,同时支持配置式路由和约定式路由,保证路由的功能完备,并以此进行功能扩展。然后配以生命周期完善的插件体系,覆盖从源码到构建产物的每个生命周期,支持各种功能扩展和业务需求。 +Umi,中文发音为「乌米」,是可扩展的企业级前端应用框架。Umi 以路由为基础,同时支持配置式路由和约定式路由,保证路由的功能完备,并以此进行功能扩展。然后配以生命周期完善的插件体系,覆盖从源码到构建产物的每个生命周期,支持各种功能扩展和业务需求。 Umi 是蚂蚁集团的底层前端框架,已直接或间接地服务了 10000+ 应用,包括 Java、Node、H5 无线、离线(Hybrid)应用、纯前端 assets 应用、CMS 应用、Electron 应用、Serverless 应用等。他已经很好地服务了我们的内部用户,同时也服务了不少外部用户,包括淘系、飞猪、阿里云、字节、腾讯、口碑、美团等。在 2021 年字节的[调研报告](https://zhuanlan.zhihu.com/p/403206195)中,Umi 是其中 25.33% 开发者的选择。 @@ -49,7 +49,7 @@ create-react-app 是脚手架,和 Umi、next.js、remix、ice、modern.js 等 ### next.js -如果要做 SSR,next.js 是非常好的选择(当然,Umi 也支持 SSR);而如果只做 CSR,Umi 会是更好的选择。相比之下,Umi 的扩展性会更好;并且 Umi 做了很多更贴地气的功能,比如配置式路由、补丁方案、antd 的接入、微前端、国际化、权限等;同时 Umi 会更稳定,因为他锁了能锁的全部依赖,定期主动更新,某一个子版本的 Umi,不会因为重装依赖之后而跑不起来。 +如果要做 SSR,next.js 是非常好的选择(当然,Umi 也支持 SSR);而如果只做 CSR,Umi 会是更好的选择。相比之下,Umi 的扩展性会更好;并且 Umi 做了很多更贴地气的功能,比如配置式路由、补丁方案、antd 的接入、微前端、国际化、权限等;同时 Umi 会更稳定,因为他锁了能锁的全部依赖,定期主动更新。某一个子版本的 Umi,不会因为重装依赖之后而跑不起来。 ### remix diff --git a/docs/docs/docs/introduce/philosophy.en-US.md b/docs/docs/docs/introduce/philosophy.en-US.md new file mode 100644 index 000000000000..fd2f4801fb83 --- /dev/null +++ b/docs/docs/docs/introduce/philosophy.en-US.md @@ -0,0 +1,66 @@ +--- +order: 2 +toc: content +translated_at: '2024-03-17T09:51:30.781Z' +--- + +# Design Philosophy + +Umi has gone from 1 to 4, experimenting with many things, both successes and failures. We have gradually accumulated these successful experiences, guiding us on how to build a robust enterprise-level framework. + +The design philosophy includes: + +1. Technological Convergence +2. Plugins and Plugin Collections +3. Best Practices +4. Enterprise-Level +5. import all from umi +6. Compile-Time Framework +7. Dependency Prepacking +8. Fast by Default +9. Constraints and Openness + +Below, we introduce the first five points, while the last four points (6-9) had a detailed share at the SEE Conf on January 8, 2022, see [SEE Conf: Umi 4 Design Philosophy Manuscript](https://mp.weixin.qq.com/s?__biz=MjM5NDgyODI4MQ%3D%3D&mid=2247484533&idx=1&sn=9b15a67b88ebc95476fce1798eb49146). + +## Technological Convergence + +
+ +
+ +Technological convergence is particularly important for teams, encompassing two meanings: 1) convergence of technology stacks and 2) convergence of dependencies. Convergence of technology stacks refers to the plethora of technology stacks available in the community, with numerous choices for each technical direction, such as data flows which alone could number over 100, and how developers should make their choice; After converging the technology stack, it's also necessary to converge dependencies, as the projects of developers within a team should not have many fragmented dependencies, each of which comes with an upgrading cost. + +We hope that once developers depend on Umi, they no longer need to worry about dependencies like babel, webpack, postcss, react, react-router, etc., and by depending on @umijs/max, they need not be concerned with dependencies and technology stacks of developing mid-end projects. + +## Plugins and Plugin Collections + +
+ +
+ +Umi satisfies different scenarios and business needs through the mechanism of plugins and plugin collections. A plugin is to extend a function, whereas a plugin collection is to extend a category of business. For example, to support vue, we could have `@umijs/preset-vue`, including build and runtime related to vue; to support the H5 application type, there could be `@umijs/preset-h5`, aggregating H5 related functionalities together. + +As an analogy, plugin collections are similar to babel's presets and eslint's configs. + +## Best Practices + +Best practice is what we believe to be the best way to do something at the moment. The subject is us, so it could be relatively subjective. For instance, in aspects like routing, patch solutions, data flow, requests, permissions, internationalization, micro-frontends, icons usage, editor usage, charts, forms, etc., Umi will offer our best practices. Most of these practices come from internal practices and discussions at Ant Group, with some from the community. They are subjective and time-sensitive, so there might be relatively frequent iterations. + +The need for best practices arises, 1) because there are too many solutions in the community to choose from, and 2) many people lack the energy, experience, or even willingness to make choices. Especially for non-professional front-end developers, having choices is better than having none, regardless of what those choices might be. + +## Enterprise-Level + +The npm community is "deteriorating" with political, malicious, advertisement, and job-seeking packages frequently appearing. Thus, how to ensure your project won’t “crash overnight” is an unavoidable issue for frameworks providing services to enterprises. + +Umi achieves this by locking down versions, prepacking dependencies, hacking eslint to lock eslint's dependencies, and using configuration to lock down babel patch dependencies, so that Umi won't crash after you reinstall node_modules, aiming to be "Still Usable in Ten Years". + +## import all from umi + +Many may be hearing about this for the first time. import all from umi means all imports come from `umi`. For instance, dva is not `import { connect } from 'dva'`, but `import { connect } from 'umi'`, exported from Umi. The methods exported not only come from Umi itself but also from Umi plugins. + +```ts +// A large number of plugins provide additional exports for umi +import { connect, useModel, useIntl, useRequest, MicroApp, ... } from 'umi'; +``` + +The advantage is that Umi manages a large number of dependencies so users don’t need to manually install them; at the same time, developers will also have fewer import statements in their code. diff --git a/docs/docs/docs/introduce/philosophy.md b/docs/docs/docs/introduce/philosophy.md index 32f39b67644f..0fc950eed242 100644 --- a/docs/docs/docs/introduce/philosophy.md +++ b/docs/docs/docs/introduce/philosophy.md @@ -54,7 +54,7 @@ Umi 通过写死版本、依赖预打包、通过 eslint hack 锁定 eslint 依 ## import all from umi -很多人可能都第一次听到。import all from umi 意思是所有 import 都来自 `umi`。比如 dva 不是 `import { connect } from 'dva'`,而是 `import { connect } from 'umi'`,从 umi 中导出。导出的方法不仅来自 umi 自身,还来自 umi 插件。 +很多人可能都第一次听到。import all from umi 意思是所有 import 都来自 `umi`。比如 dva 不是 `import { connect } from 'dva'`,而是 `import { connect } from 'umi'`,从 Umi 中导出。导出的方法不仅来自 Umi 自身,还来自 Umi 插件。 这是两年前 Umi 3 加的功能,最近发现 Remix、prisma、vitekit 等框架和工具都有类似实现。 diff --git a/docs/docs/docs/introduce/upgrade-to-umi-4.en-US.md b/docs/docs/docs/introduce/upgrade-to-umi-4.en-US.md new file mode 100644 index 000000000000..21a6c645535d --- /dev/null +++ b/docs/docs/docs/introduce/upgrade-to-umi-4.en-US.md @@ -0,0 +1,305 @@ +--- +order: 4 +toc: content +translated_at: '2024-03-17T09:50:41.558Z' +--- + +# Upgrade to Umi 4 + +## Upgrade Steps + +Upgrading to Umi 4 can be completed in just a few easy steps, which can simply be described as - "Reinstall dependencies, modify configuration": + +1. **Dependency Handling** +2. **Start Command** +3. **Upgrading Non-Official Plugins** +4. **Configuration Layer Migration** +5. **Code Layer Modifications** + +### Dependency Handling + +Your project's `package.json` needs to upgrade Umi and replace the corresponding Umi plugins. + +If `umi@3` was developed using a combination of `umi` + `@umijs/preset-react`, then you can directly upgrade using the new `max`. + +```diff +{ + "devDependencies": { ++ "@umijs/max": "^4.0.0", +- "umi": "^3.0.0", +- "@umijs/preset-react": "^1.2.2" + } +} +``` + +Delete `node_module`, then execute `npm install` to reinstall dependencies. + +### Start Command + +If using `@umijs/max`, you can replace `umi` with the `max` command, such as `max dev`, `max build`, etc. + +`umi@4` moved some pre-project operations to the `setup` command, such as `umi g tmp` commands in umi@3, which need to be replaced with `umi setup` + +`package.json` + +```diff +{ + "scripts": { +- "build": "umi build", ++ "build": "max build", +- "postinstall": "umi g tmp", ++ "postinstall": "max setup", +- "start": "umi dev", ++ "start": "max dev", + } +} +``` + +### Upgrading Non-Official Plugins + +For some non-Umi official Umi plugins used in the project, please contact the relevant authors to update them in a timely manner according to [plugin api changes](../api/plugin-api). + +When migrating the project, you can first turn off references to the corresponding plugin packages, such as temporarily commenting out the `plugins` in the configuration, and removing all dependencies starting with `umi-plugin-`, `@umijs/plugin-`, and `@umijs/preset-` in package.json. + +### Configuration Layer Migration + +**Configurations provided by max** are as follows in `config/config.ts`: + +> It’s worth noting that some rules that were conventionally enabled by plugins need to be explicitly configured in `umi@4`, as we want less 'black box' behavior in `umi@4`. + +```typescript +import { defineConfig, utils } from 'umi'; + +export default defineConfig({ + model: {}, + antd: {}, + request: {}, + initialState: {}, + mock: { + include: ['src/pages/**/_mock.ts'], + }, + dva: {}, + layout: { + // https://umijs.org/docs/max/layout-menu#configuration-at-build-time + title: 'UmiJS', + locale: true, + }, + // https://umijs.org/zh-CN/plugins/plugin-locale + locale: { + // default zh-CN + default: 'zh-CN', + antd: true, + // default true, when it is true, will use `navigator.language` overwrite default + baseNavigator: true, + }, +}); +``` + +**Configurations with differences** are as follows in `config/config.ts`: + +```typescript +import { defineConfig, utils } from 'umi'; + +export default defineConfig({ +- fastRefresh: {}, ++ fastRefresh: true, + dva: { + // The parameter hmr is no longer supported +- hmr: true, + }, +// Default webpack5 +- webpack5: {}, +}) +``` + +### Code Layer Modifications + +Umi 4 upgrades `react-router@5` to `react-router@6`, so there are some differences in the use of related api. + +Props are empty objects by default, the following properties cannot be taken directly from props ![image](https://img.alicdn.com/imgextra/i4/O1CN01H9ScQv21ymaLkwZ8p_!!6000000007054-2-tps-1210-374.png) + +#### children + +```typescript +import { Outlet } from 'umi'; +; +``` + +Mainly needs modifications in the global layout + +Such as `layouts/index.tsx`: + +```diff +import React from 'react'; ++ import { Outlet } from 'umi'; + +export default function Layout(props) { + return ( +
+- { props.children } ++ +
+ ); +} +``` + +Change the way that route components rendered with `React.cloneElement`, for example: + +```diff +import React from 'react'; ++ import { Outlet } from 'umi'; + +export default function RouteComponent(props) { + return ( +
+- { React.cloneElement(props.children, { someProp: 'p1' }) } ++ +
+ ); +} +``` + +Change components to get values from `useOutletContext` + +```diff +import React from 'react'; ++ import { useOutletContext } from 'umi'; + +- export function Comp(props){ ++ export function Comp() { ++ const props = useOutletContext(); + + return props.someProp; +} +``` + +#### history + +```diff ++ import { history } from 'umi'; +export default function Page(props) { + return ( +
{ +- props.history.push('list'); ++ history.push('list'); + }}> +
+ ); +} +``` + +#### location + +> It’s recommended to use useLocation in components or hooks, and window.location elsewhere. + +```diff +export default function Page(props) { ++ const { location } = window; + return ( +
+- { props.location } ++ { location } +
+ ); +} +``` + +Or + +```diff ++ import { useLocation } from 'umi'; +export default function Page(props) { ++ let location = useLocation(); + return ( +
+- { props.location } ++ { location } +
+ ); +} +``` + +#### match + +```diff ++ import { useMatch } from 'umi'; +export default function Page(props) { ++ const match = useMatch({ path: 'list/search/:type' }); + return ( +
+- { props.match } ++ { match } +
+ ); +} +``` + +In the use of class component components: + +```diff +import { matchPath } from 'umi'; +class Page extends Component { ++ match = matchPath({ path: 'list/search/:type' }, window.location.pathname); + state = {} + render() { + return ( +
+- {this.props.match.type} ++ {this.match.type} +
+ ) + } +} +``` +For more `Umi` related [api](https://umijs.org/docs/api/api) + +Pay attention to the difference in match data: + +``` +// match v5 +isExact: true +params: {} +path: "/users/abc" +url: "/users/abc" + +// match v6 +params:{ } +pathname: "/list/search/articles" +pathnameBase: "/list/search/articles" +pattern: {path: 'list/search/:type'} +``` + +For more changes and API updates, please refer to [react-router@6](https://reactrouter.com/docs/en/v6/api#uselocation) + +After completing the above operations, execute `max dev`, and visit [http://localhost:8000](http://localhost:8000), please verify all functions meet expectations. + +If your project cannot start normally, you may need to do the following: + +## Configuration Changes + +TODO + +## FAQ + +### Can't find query in location? + +Query in location is no longer supported, later it’s recommended to use [search](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) + +```diff +- const { query } = history.location; ++ import { parse } from 'query-string'; ++ const query = parse(history.location.search); +``` + +### Can't find *.d file, or its reference + +In `umi@3`, importing would automatically find the corresponding `.d.ts` file, such as: + +`import { ButtonType } from './button';` + +If there is a `.button.d.ts` file, it will correctly execute in `umi@3`, but it will cause an error in umi@4, you may need more standardized type references. + +```diff +- import { ButtonType } from './button'; ++ import type { ButtonType } from './button.d'; +``` diff --git a/docs/docs/docs/introduce/upgrade-to-umi-4.md b/docs/docs/docs/introduce/upgrade-to-umi-4.md index 2680d91e93fb..77112efa8aed 100644 --- a/docs/docs/docs/introduce/upgrade-to-umi-4.md +++ b/docs/docs/docs/introduce/upgrade-to-umi-4.md @@ -34,7 +34,7 @@ toc: content ### 启动命令 -如果使用了 `@umijs/max` 可以使用 `max` 命令来替换 `umi`,`max dev`,`max build` 等 +如果使用了 `@umijs/max` 可以使用 `max` 命令来替换 `umi`,`max dev`,`max build` 等。 `umi@4` 将一些项目前置操作放到了 `setup` 命令中,如 umi@3 中的 `umi g tmp` 等命令,需要使用 `umi setup` 替换 diff --git a/docs/docs/docs/max/access.en-US.md b/docs/docs/docs/max/access.en-US.md new file mode 100644 index 000000000000..3b5a950219e1 --- /dev/null +++ b/docs/docs/docs/max/access.en-US.md @@ -0,0 +1,168 @@ +--- +order: 7 +toc: content +translated_at: '2024-03-17T09:49:43.250Z' +--- + +# Permissions + +## How to Enable + +Configuring activation. Requires `src/access.ts` to provide permission configuration. + +```ts +export default { + access: {}, + // access plugin depends on the initial State so it needs to be enabled at the same time + initialState: {}, +}; +``` + +## Introduction + +We have agreed that `src/access.ts` is our permission definition file, which needs to export a function by default. The method will be executed when the project is initialized. This method needs to return an object, where each value of the object corresponds to a defined permission. As shown below: + +```js +// src/access.ts +export default function (initialState) { + const { userId, role } = initialState; + + return { + canReadFoo: true, + canUpdateFoo: role === 'admin', + canDeleteFoo: (foo) => { + return foo.ownerId === userId; + }, + }; +} +``` + +Where `initialState` is the data provided by the initialization state plugin `initial-state`, you can use this data to initialize your user permissions. + +## Configuration + +### Extended Routing Configuration + +With the [layout](./layout-menu) plugin, you can easily implement permission control for some pages. As shown below, users can access the page only if they have the canReadPageA permission (defined in `src/access.ts`). Otherwise, it will render the default permission error page built into the Layout plugin by default. + +```ts +export const routes = [ + { + path: '/pageA', + component: 'PageA', + access: 'canReadPageA', // Some key of the permission definition return value + }, +]; +``` + +### Custom Permission Page Configuration + +As mentioned above, to configure a custom permission page, you need to define it in `src/app.tsx`. + +```tsx +export const layout: RunTimeLayoutConfig = () => { + return { + // Customize the 403 page + unAccessible:
'unAccessible'
, + // Customize the 404 page + noFound:
'noFound'
, + }; +}; +``` + +#### access + +- Type: `string` + +The corresponding permission name. + +## API + +### useAccess + +We provide a hook for obtaining permission-related information in components, as shown below: + +```js +import React from 'react'; +import { useAccess } from 'umi'; + +const PageA = (props) => { + const { foo } = props; + the access = useAccess(); + + if (access.canReadFoo) { + // If can read Foo, then... + } + + return <>TODO; +}; + +export default PageA; +``` + +Combined with the `Access` component, it's easy to control the permissions of elements within pages. + +### Access + +You can use the `useAccess` hook and the `` component provided by the plugin to control permissions in your application. The `Access` component supports the following properties: + +#### accessible + +- Type: `boolean` + +Whether permission is granted, usually obtained through `useAccess` and passed in. + +#### fallback + +- Type: `React.ReactNode` + +The display when there is no permission, by default no content is displayed without permission. + +### children + +- Type: `React.ReactNode` + +What is displayed when permission is granted. + +A complete example is as follows: + +```js +import React from 'react'; +import { useAccess, Access } from 'umi'; + +const PageA = (props) => { + const { foo } = props; + const access = useAccess(); // members of access: canReadFoo, canUpdateFoo, canDeleteFoo + + if (access.canReadFoo) { + // If can read Foo, then... + } + + return ( +
+ Can not read foo content.
} + > + Foo content. +
+ Can not update foo.
} + > + Update foo. + + Can not delete foo.
} + > + Delete foo. + +
+ ); +}; +``` + +- The return value `access` of `useAccess()` is the set of permissions defined in `src/access.ts`, which can be used to control the flow of code execution within components. + +- The `` component has two properties: `accessible` and `fallback`. When `accessible` is `true`, it will render the child component; when `accessible` is `false`, it will render the `ReactNode` corresponding to the `fallback` property. diff --git a/docs/docs/docs/max/analytics.en-US.md b/docs/docs/docs/max/analytics.en-US.md new file mode 100644 index 000000000000..748c02bccbc7 --- /dev/null +++ b/docs/docs/docs/max/analytics.en-US.md @@ -0,0 +1,31 @@ +--- +order: 14 +toc: content +translated_at: '2024-03-17T09:48:57.403Z' +--- + +# Site Statistics + +`@umijs/max` has built-in site statistics functionality, currently supporting [Google Analytics](https://analytics.google.com/analytics/web/) and [Baidu Analytics](https://tongji.baidu.com/web/welcome/login) + +## How to Enable + +Configure it to be enabled and enter the respective analytics service key as required. + +Example: + +```ts +{ + analytics: { + ga_v2: 'G-abcdefg', // google analytics key (GA 4) + baidu: 'baidu_tongji_key', + + // If you are using the old version GA v1, please use `ga` to configure + ga: 'ga_old_key' + } +} +``` + +### Environment Variables + +The key for [Google Analytics 4](https://support.google.com/analytics/answer/10089681) can also be configured through the environment variable `GA_V2_KEY`, and the old version uses `GA_KEY`. diff --git a/docs/docs/docs/max/antd.en-US.md b/docs/docs/docs/max/antd.en-US.md new file mode 100644 index 000000000000..f05848c4c9a1 --- /dev/null +++ b/docs/docs/docs/max/antd.en-US.md @@ -0,0 +1,232 @@ +--- +order: 3 +toc: content +translated_at: '2024-03-17T09:48:51.045Z' +--- + +# antd + +Integration of the antd component library. + +## How to Enable + +Configure to enable, example: + +```ts +// config/config.ts +export default { + antd: { + // configProvider + configProvider: {}, + // themes + dark: true, + compact: true, + // babel-plugin-import + import: true, + // less or css, default less + style: 'less', + // shortcut of `configProvider.theme` + // used to configure theme token, antd v5 only + theme: {}, + // antd valid for version 5.1.0 or higher, default: undefined + appConfig: {}, + // Transform DayJS to MomentJS + momentPicker: true, + // Add StyleProvider for legacy browsers + styleProvider: { + hashPriority: 'high', + legacyTransformer: true, + }, + }, +}; +``` + +## Introduction + +Includes the following features: + +1. Built-in [antd](https://ant.design/), the current built-in version is `^4.0.0` +2. On-demand compilation based on [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) +3. When using antd@4, you can switch to the dark theme with one click, see the image below + +![](https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*mYU9R4YFxscAAAAAAAAAAABkARQnAQ) + +## Configuration + +### Build-time Configuration + +Note: Build-time configuration will go through JSON conversion, so here you can only set configurations that conform to the JSON format. For function configurations like `algorithm`, set them at [Runtime Configuration](#runtime-configuration). + +#### dark + +Enables dark theme. + +- Type: `boolean` +- Default: `false` + +#### compact + +Enables compact theme. + +- Type: `boolean` +- Default: `false` + +For example: + +```ts +export default { + antd: { + dark: true, + compact: true, + }, +}; +``` + +Dark theme activation is only supported with antd version 4. Compact theme is supported with `antd@>4.1.0`. + +#### import + +- Type: `boolean` + +Configure `antd`'s `babel-plugin-import` for on-demand loading. + +#### style + +- Type: `"less" | "css"` +- Default: `less` + +Configure the use of `antd` styles, default is `less`. + +#### configProvider + +- Type: `object` + +Configure `antd`'s `configProvider`. + +#### theme + +- Type: `object` + +Configure theme token for `antd@5`, equivalent to setting `configProvider.theme`, and this configuration item has higher priority. + +**Note: This configuration is only available for antd v5** + +#### appConfig + +- Type: `object` + +Configure the App wrapper component for `antd`, please note that for `antd@5.1.0 ~ 5.2.3`, it can only be enabled through `appConfig: {}`, and only `antd >=5.3.0` supports more App configuration projects. + +**Note: This configuration is only available for antd v5.1.0 and above** + +#### momentPicker + +- Type: `boolean` + +Configure whether `antd`'s `DatePicker`, `TimePicker`, `Calendar` components use `moment` as the date processing library, default is `false`. + +**Note: This configuration is only available for antd v5 and above** + +#### styleProvider + +- Type: `object` + +Configure `antd`'s `StyleProvider` component, which is used to support legacy browsers, such as IE11. When your project is configured with `legacy` or `targets` that include `ie`, it will automatically be downgraded, no manual configuration required. + +**Note:** + +1. This configuration is only available for antd v5 and above. + +2. The downgrade of CSS relies on [`@ant-design/cssinjs`](https://ant.design/docs/react/compatible-style-cn). If you have explicitly installed `antd`, please also install and ensure that your `@ant-design/cssinjs` version corresponds correctly with `antd`. + +### Runtime Configuration + +In the runtime configuration of `app.ts(x)`, you can modify the values of antd's `ConfigProvider`. Before using this feature, **make sure you have enabled the `antd.configProvider` option**, otherwise changes to `ConfigProvider` will not take effect: + +```ts +// .umirc.ts + + antd: { + configProvider: {} + } +``` + +For example, to configure antd 5's theme preset algorithm and the maximum number of `message` notifications: + +```ts +// app.ts +import { RuntimeAntdConfig } from 'umi'; +import { theme } from 'antd'; + +export const antd: RuntimeAntdConfig = (memo) => { + memo.theme ??= {}; + memo.theme.algorithm = theme.darkAlgorithm; // Configure the preset dark algorithm for antd5 + + memo.appConfig = { + message: { + // Configure the maximum number of messages displayed, when exceeding the limit, the earliest messages will be automatically closed + maxCount: 3, + } + } + + return memo; +}; +``` + +### Dynamically Switch Global Configuration + +**Note: This feature is only available for antd v5** + +Use `useAntdConfig` / `useAntdConfigSetter` methods to dynamically get and modify antd's `ConfigProvider` configuration, which can typically be used to dynamically modify themes. + +Note: This feature depends on `ConfigProvider`, please also enable `configProvider: {}`. + +```tsx +import { Layout, Space, Button, version, theme, MappingAlgorithm } from 'antd'; +import { useAntdConfig, useAntdConfigSetter } from 'umi'; +const { darkAlgorithm, defaultAlgorithm } = theme; + +export default function Page() { + const setAntdConfig = useAntdConfigSetter(); + const antdConfig = useAntdConfig(); + return ( + +

with antd@{version}

+ + isDarkTheme + { + // This configuration will deep merge with the original configuration + setAntdConfig({ + theme: { + algorithm: [ + data ? darkAlgorithm : defaultAlgorithm, + ], + }, + }); + // or + setAntdConfig((config) => { + const algorithm = config.theme!.algorithm as MappingAlgorithm[]; + if (algorithm.includes(darkAlgorithm)) { + config.theme!.algorithm = [defaultAlgorithm] + } else { + config.theme!.algorithm = [darkAlgorithm]; + } + return config; + }); + }} + > + +
+ ); +} +``` + +Using `setAntdConfig`, you can dynamically modify any property supported by [antd@5 ConfigProvider](https://ant.design/components/config-provider-cn). + +## FAQ + +### How to use other versions of antd? + +Install the version of antd you need in your project. diff --git a/docs/docs/docs/max/antd.md b/docs/docs/docs/max/antd.md index fbea51df2169..511a5801f8ee 100644 --- a/docs/docs/docs/max/antd.md +++ b/docs/docs/docs/max/antd.md @@ -131,11 +131,25 @@ export default { 配置 `antd` 的 `StyleProvider` 组件,该组件用于兼容低版本浏览器,如 IE11。当你的项目配置了 `legacy` 或者 `targets` 包含 `ie` 时,会自动进行降级处理,不需要手动配置。 -**注意:该配置项仅 antd v5 及以上可用** +**注意:** + +1. 该配置项仅 antd v5 及以上可用。 + +2. 降级 CSS 需要依赖 [`@ant-design/cssinjs`](https://ant.design/docs/react/compatible-style-cn) ,若你显示安装了 `antd` ,请安装并确保你的 `@ant-design/cssinjs` 版本与 `antd` 正确对应。 ### 运行时配置 -在 app.ts(x) 文件中可以对 antd 进行更丰富的配置,比如配置 antd5 的预设算法和 message 最大显示数: +在 `app.ts(x)` 运行时配置中可以修改 antd `ConfigProvider` 的值,使用此功能前,**确保你已经打开了 `antd.configProvider` 选项**,否则对 `ConfigProvider` 的修改不会生效: + +```ts +// .umirc.ts + + antd: { + configProvider: {} + } +``` + +如配置 antd 5 的主题预设算法和 `message` 弹出框最大数: ```ts // app.ts @@ -157,6 +171,58 @@ export const antd: RuntimeAntdConfig = (memo) => { }; ``` +### 动态切换全局配置 + +**注意:该功能仅 antd v5 可用** + +通过 `useAntdConfig` / `useAntdConfigSetter` 方法来动态获取、修改 antd 的 `ConfigProvider` 配置,通常可用于动态修改主题。 + +注:此功能需依赖 `ConfigProvider` ,请一并开启 `configProvider: {}` 。 + +```tsx +import { Layout, Space, Button, version, theme, MappingAlgorithm } from 'antd'; +import { useAntdConfig, useAntdConfigSetter } from 'umi'; +const { darkAlgorithm, defaultAlgorithm } = theme; + +export default function Page() { + const setAntdConfig = useAntdConfigSetter(); + const antdConfig = useAntdConfig(); + return ( + +

with antd@{version}

+ + isDarkTheme + { + // 此配置会与原配置深合并 + setAntdConfig({ + theme: { + algorithm: [ + data ? darkAlgorithm : defaultAlgorithm, + ], + }, + }); + // or + setAntdConfig((config) => { + const algorithm = config.theme!.algorithm as MappingAlgorithm[]; + if (algorithm.includes(darkAlgorithm)) { + config.theme!.algorithm = [defaultAlgorithm] + } else { + config.theme!.algorithm = [darkAlgorithm]; + } + return config; + }); + }} + > + +
+ ); +} +``` + +使用 `setAntdConfig` 可以动态修改 [antd@5 ConfigProvider](https://ant.design/components/config-provider-cn) 组件支持的所有属性。 + ## FAQ ### 如何使用 antd 的其他版本? diff --git a/docs/docs/docs/max/charts.en-US.md b/docs/docs/docs/max/charts.en-US.md new file mode 100644 index 000000000000..0a19465bf39b --- /dev/null +++ b/docs/docs/docs/max/charts.en-US.md @@ -0,0 +1,535 @@ +--- +order: 4 +toc: content +translated_at: '2024-03-17T09:39:12.613Z' +--- + +# Charts + +The Umi team recommends using [Ant Design Charts](https://charts.ant.design/) or [Pro Components](https://procomponents.ant.design/) in line with Ant Design to add visualization charts 📈 to your project. + +This tutorial will provide you with some common use cases. + +## Ant Design Charts + +Ant Design Charts is a React implementation of the [AntV](https://antv.vision/en) project, developed by the data visualization team of Ant Group. + +You can install the complete Ant Design Charts package: + +```bash +pnpm install @ant-design/charts +``` + +You can also just include the sub-packages you use, for example: + +```bash +# Install statistical chart package +pnpm install @ant-design/plots +``` + +In the example usage below, we will keep imports to a minimum. + +You can also directly read the complete [Getting Started documentation](https://charts.ant.design/en/docs/manual/getting-started) and [Chart Examples](https://charts.ant.design/en/examples/gallery) of Ant Design Charts. + +### Line Chart + +Now, we need to create a line chart to display [these data](https://gw.alipayobjects.com/os/bmw-prod/1d565782-dde4-4bb6-8946-ea6a38ccf184.json). + +First, include the statistical chart package: + +```bash +pnpm install @ant-design/plots +``` + +Write code to fetch the data (omitted below): + +```tsx +import { useState, useEffect } from 'react'; + +const DemoLine = () => { + const [data, setData] = useState([]); + + useEffect(() => { + asyncFetch(); + }, []); + + const asyncFetch = () => { + fetch('https://gw.alipayobjects.com/os/bmw-prod/1d565782-dde4-4bb6-8946-ea6a38ccf184.json') + .then((response) => response.json()) + .then((json) => setData(json)) + .catch((error) => { + console.log('fetch data failed', error); + }); + }; +}; +``` + +Thus, we have obtained the data and saved the JSON object's content to `data`. Each data object is like: + +```json +{ + "Date": "2010-01", + "scales": 1998, +} +``` + +Display the data on the line chart: + +```tsx +import React from 'react'; +import { Line } from '@ant-design/plots'; + +const DemoLine: React.FC = () => { + // fetch data + + const config = { + data, + padding: 'auto', + xField: 'Date', + yField: 'scales', + xAxis: { + // type: 'timeCat', + tickCount: 5, + }, + smooth: true, + }; + + return ; +}; +``` + +In this, the `Date` attribute in `data` will serve as the X-axis horizontal axis of the line chart, and the `scales` attribute will serve as the Y-axis vertical axis for drawing. + +The complete line chart code and effect can be viewed on [this page](https://charts.ant.design/en/examples/line/basic#spline). + +### Column Chart + +Now, we need to display the page load time through a column chart. + +First, include the statistical chart package: + +```bash +pnpm install @ant-design/plots +``` + +Suppose we have the following `data`: + +```ts +const data = [ + { + type: '0-1 seconds', + value: 0.55, + }, + { + type: '1-3 seconds', + value: 0.21, + }, + { + type: '3-5 seconds', + value: 0.13, + }, + { + type: '5+ seconds', + value: 0.11, + }, +]; +``` + +Especially, for the case of `5+ seconds`, we want to mark it with a bright color. Then we can write the column chart code as follows: + +```tsx +import React from 'react'; +import { Column } from '@ant-design/plots'; + +const DemoColumn: React.FC = () => { + // fetch data + + const paletteSemanticRed = '#F4664A'; + const brandColor = '#5B8FF9'; + const config = { + data, + xField: 'type', + yField: 'value', + seriesField: '', + color: ({ type }) => { + if (type === '5+ seconds') { + return paletteSemanticRed; + } + + return brandColor; + }, + legend: false, + xAxis: { + label: { + autoHide: true, + autoRotate: false, + }, + }, + }; + + return ; +}; +``` + +The complete column chart code and effect can be viewed on [this page](https://charts.ant.design/en/examples/column/basic#color). + +### Word Cloud + +Now, we need to display the names of some countries in the world in a word cloud manner. The more populous the country, the larger the font size of its name in the word cloud. + +First, include the statistical chart package: + +```bash +pnpm install @ant-design/plots +``` + +Get the [`data`](https://gw.alipayobjects.com/os/antfincdn/jPKbal7r9r/mock.json) containing country population figures. It looks like: + +```json +{ + "country": "China", + "value": 1383220000, + "category": "asia", +} +``` + +Render the data to get the word cloud: + +```tsx +import React from 'react'; +import { WordCloud } from '@ant-design/plots'; + +const DemoWordCloud: React.FC = () => { + // fetch data + + const config = { + data, + wordField: 'country', + weightField: 'value', + color: '#122c6a', + interactions: [ + { + type: 'element-active', + }, + ], + state: { + active: { + style: { + lineWidth: 2, + }, + }, + }, + }; + + return ; +}; +``` + +The complete word cloud code and effect can be viewed on [this page](https://charts.ant.design/en/examples/more-plots/word-cloud#basic). + +### Dot Map + +Now, we need to display the distribution of cities and districts in our country on the map in the form of dots. + +First, include the map package: + +```bash +pnpm install @ant-design/maps +``` + +Get the [`data`](https://gw.alipayobjects.com/os/antfincdn/g5hIthhKlr/quanguoshixianweizhi.json) containing all district data. It looks like: + +```json +{ + "list": [ + { + "lnglat": [ + 116.258446, + 37.686622 + ], + "name": "Jing County", + "style": 2 + }, + // ... + ] +} +``` + +Where, `style` of `0` stands for municipal city, `1` for county-level city, and `2` for district. + +Render the data to get the dot map: + +```tsx +import React from 'react'; +import { DotMap } from '@ant-design/maps'; + +const DemoDotMap: React.FC = () => { + // fetch data + + const config = { + map: { + type: 'mapbox', + style: 'dark', + zoom: 3, + center: [107.4976, 32.1697], + pitch: 0, + }, + source: { + data, + parser: { + type: 'json', + coordinates: 'lnglat', + }, + }, + size: 4, + color: { + field: 'style', + value: ({ style }) => { + if (style == 0) { + return '#14B4C9'; + } else if (style == 1) { + return '#3771D9'; + } else { + return '#B8EFE2'; + } + }, + }, + legend: { + type: 'category', + position: 'bottomleft', + items: [ + { + color: '#14B4C9', + value: 'Municipal city', + }, + { + color: '#3771D9', + value: 'County-level city', + }, + { + color: '#B8EFE2', + value: 'District', + }, + ], + }, + }; + + return ; +}; +``` + +The complete dot map code and effect can be viewed on [this page](https://charts.ant.design/en/examples/map-dot/map-scatter#distribution-cities). + +## Pro Components + +Pro Components are aimed at mid-to-background applications, offering a higher degree of abstraction on top of Ant Design, providing a higher-level design specification to help developers quickly build high-quality pages. + +You should import the sub-packages you use as needed: + +```bash +# Import advanced table +pnpm install @ant-design/pro-table + +# Import advanced list +pnpm install @ant-design/pro-list +``` + +You can also directly read Pro Components' complete [Getting Started documentation](https://procomponents.ant.design/docs/getting-started), [Table Examples](https://procomponents.ant.design/components/table) and [List Examples](https://procomponents.ant.design/components/list). + +The examples below will assume you have already imported the sub-packages you will use. + +### Pro Table Advanced Table + +Now, you need to quickly build a table containing members and related information. + +Member information is as follows: + +```ts +const realNames = ['Ma Baba', 'Zhang Sanfeng', 'Fei Peng', 'Xu Changqing']; +const nickNames = ['Baba', 'Junbao', 'Jingtian', 'Mr. Xu']; +const emails = ['baba@antfin.com', 'junbao@antfin.com', 'jingtian@antfin.com', 'xvzhangmen@antfin.com']; +const phones = ['18800001234', '13900002345', '17200003456', '17800004567']; +``` + +Define a `Member` type: + +```ts +export type Member = { + id: number; + realName: string; + nickName: string; + email: string; + phone: string; +}; +``` + +Process member information to build a `Member` array: + +```ts +const memberList: Member[] = []; + +for (let i = 0; i < realNames.length; i++) { + memberList.push({ + id: `${102047 + i}`, + realName: realNames[i], + nickName: nickNames[i], + email: emails[i], + phone: phones[i], + }); +} +``` + +Pass the array to Pro Table to quickly build the table: + +```tsx +import React from 'react'; +import type { ProColumns } from '@ant-design/pro-table'; +import ProTable from '@ant-design/pro-table'; + +// resolve member info list + +const MemberList: React.FC = () => { + const columns: ProColumns[] = [ + { + dataIndex: 'realName', + title: 'Name', + }, + { + dataIndex: 'nickName', + title: 'Nickname', + }, + { + dataIndex: 'email', + title: 'Account', + }, + { + dataIndex: 'phone', + title: 'Phone number', + }, + { + title: 'Action', + dataIndex: 'x', + valueType: 'option', + render: (_, record) => { + return [
Edit, Remove]; + }, + }, + ]; + + return ( + + columns={columns} + request={(params, sorter, filter) => { + console.log(params, sorter, filter); + return Promise.resolve({ + data: memberList, + success: true, + }); + }} + rowKey="id" + pagination={{ + showQuickJumper: true, + }} + toolBarRender={false} + search={false} + /> + ); +} +``` + +The complete table code and effect can be viewed on [this page](https://procomponents.ant.design/components/table). + +### Pro List Advanced List + +Now, you need to quickly build a list containing test information. + +Test information is as follows: + +```ts +export type Test = { + id: number; + name: string; + image: string; + desc: string; +}; + +const testList: Test[] = [ + { + id: 9903, + name: 'Yuque\'s Sky', + image: + 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', + desc: 'Covered all test cases for the login module', + }, + { + id: 9904, + name: 'Ant Design', + image: + 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', + desc: 'Covered all test cases, all scenarios have been verified under the Node 17 testing environment', + }, + { + id: 9905, + name: 'Ant Group Experience Technology', + image: + 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', + desc: 'Covered all testing requirements, all scenarios have been verified under the Ubuntu 14.04 testing environment', + }, + { + id: 9906, + name: 'TechUI', + image: + 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', + desc: 'Covered all testing requirements, all scenarios have been verified under MacOS testing environment', + }, +]; +``` + +Pass the test information to Pro List to quickly build the list: + +```tsx +import React from 'react'; +import { Button } from 'antd'; +import ProList from '@ant-design/pro-list'; + +// resolve test info list + +const MemberList: React.FC = () => { + return ( + + toolBarRender={() => { + return [ + , + ]; + }} + rowKey="id" + headerTitle="Test Results" + dataSource={testList} + showActions="hover" + showExtra="hover" + metas={{ + title: { + dataIndex: 'name', + }, + avatar: { + dataIndex: 'image', + }, + description: { + dataIndex: 'desc', + }, + actions: { + render: (text, row) => [ + Link, + Alert, + View, + ], + }, + }} + /> + ); +} +``` + +The complete list code and effect can be viewed on [this page](https://procomponents.ant.design/components/list). diff --git a/docs/docs/docs/max/data-flow.en-US.md b/docs/docs/docs/max/data-flow.en-US.md new file mode 100644 index 000000000000..48ad620e9d07 --- /dev/null +++ b/docs/docs/docs/max/data-flow.en-US.md @@ -0,0 +1,231 @@ +--- +order: 5 +toc: content +translated_at: '2024-03-18T00:49:20.502Z' +--- + +# Data Stream + +`@umi/max` has a built-in **data flow management** [plugin](https://github.com/umijs/umi/blob/master/packages/plugins/src/model.ts), which is a lightweight data management solution based on the `hooks` paradigm. It can be used to manage global shared data in Umi projects. + +## Getting Started + +### Creating a Model + +The data flow management plugin adopts a conventional directory structure. We agree that Model files can be introduced in the `src/models`, `src/pages/xxxx/models/` directories, and in `src/pages/xxxx/model.{js,jsx,ts,tsx}` files. +Model files can have one of four suffix formats: `.(tsx|ts|jsx|js)`. The **namespace** generation rule is as follows. + +| Path | Namespace | Description | +| :--- |:--- | :--- | +| `src/models/count.ts` | `count` | Defining model in `src/models` directory does not support directory nesting | +| `src/pages/pageA/model.ts` | `pageA.model` | | +| `src/pages/pageB/models/product.ts` | `pageB.product` | | +| `src/pages/pageB/models/fruit/apple.ts` | `pageB.fruit.apple` | Definition in `pages/xxx/models` supports nested models | + +A Model is essentially a custom `hook` with no "black magic" for the user to worry about. + +When we need to access the global data in the Model, we can call the namespace directly. For example, for a Model file `userModel.ts`, its namespace is `userModel`. + +Write a function with a default export: + +```ts +// src/models/userModel.ts +export default function Page() { + const user = { + username: 'umi', + }; + + return { user }; +}; +``` + +This is a Model. What the plugin does is turn the state or data in it into **global data**, providing the same state or data to different components using that Model. + +:::info{title=💡} +The Model file needs to export a function by default, which defines a `hook`. Files that do not conform to this standard will be filtered out and cannot be called by namespace. +::: + +It's allowed to use other `hooks` in a Model. Take a counter as an example: + +```ts +// src/models/counterModel.ts +import { useState, useCallback } from 'react'; + +export default function Page() { + const [counter, setCounter] = useState(0); + + const increment = useCallback(() => setCounter((c) => c + 1), []); + const decrement = useCallback(() => setCounter((c) => c - 1), []); + + return { counter, increment, decrement }; +}; +``` + +In real-world projects, we usually need to request backend interfaces to obtain the data we need. Now let's expand the previous example of fetching user information: + +```ts +// src/models/userModel.ts +import { useState } from 'react'; +import { getUser } from '@/services/user'; + +export default function Page() { + const [user, setUser] = useState({}); + const [loading, setLoading] = useState(true); + + useEffect(() => { + getUser().then((res) => { + setUser(res); + setLoading(false); + }); + }, []); + + return { + user, + loading, + }; +}; +``` + +If you use [ahooks](https://ahooks.js.org) in your project, you can organize your code like this: + +```ts +// src/models/userModel.ts +import { useRequest } from 'ahooks'; +import { getUser } from '@/services/user'; + +export default function Page() { + const { data: user, loading: loading } = useRequest(async () => { + const res = await getUser(); + if (res) { + return res; + } + return {}; + }); + + return { + user, + loading, + }; +}; +``` + +### Using a Model + +Now, you want to use a global Model in a certain component. Taking the user information as an example, you only need to call the `useModel` hook function: + +```tsx +// src/components/Username/index.tsx +import { useModel } from 'umi'; + +export default function Page() { + const { user, loading } = useModel('userModel'); + + return ( + {loading ? <>:
{user.username}
} + ); +} +``` + +The `useModel()` method's argument is the Model's **namespace**. + +:::info{title=💡} +If you use VSCode as the IDE for developing Umi projects, it's recommended to use it in conjunction with the [@umijs/plugin-model](https://marketplace.visualstudio.com/items?itemName=litiany4.umijs-plugin-model) plugin. It allows you to quickly jump to the file that defines the Model: + +![vscode - @umijs/plugin-model plugin demo](https://gw.alipayobjects.com/zos/antfincdn/WcVbbF6KG2/1577073518336-afe6f03d-f817-491a-848a-5feeb4ecd72b.gif) +::: + +## Performance Optimization + +The `useModel()` method can accept an optional second parameter. When a component only needs to use part of the Model and is not interested in changes to other parameters, you can pass in a function to filter. Take the operation button for the counter as an example: + +```tsx +// src/components/CounterActions/index.tsx +import { useModel } from 'umi'; + +export default function Page() { + const { add, minus } = useModel('counterModel', (model) => ({ + add: model.increment, + minus: model.decrement, + })); + + return ( +
+ + +
+ ); +}; +``` + +The above component is not interested in the `counter` value in the counter Model, and only needs to use the `increment()` and `decrement()` methods provided by the Model. Therefore, we passed in a function as the second argument for the `useModel()` method, and its return value will be used as the return value of the `useModel()` method. + +This way, we have filtered out the frequently changing `counter` value, avoiding the performance loss caused by the component's repetitive rendering. + +## Global Initial State + +`@umi/max` has a built-in **global initial state management** [plugin](https://github.com/umijs/umi/blob/master/packages/plugins/src/initial-state.ts), which allows you to quickly build and access the global initial state of Umi projects within components. + +The global initial state is a special Model. + +The global initial state is created at the very beginning of the entire Umi project. Write the export method `getInitialState()` in `src/app.ts`, and its return value will become the global initial state. For example: + +```ts +// src/app.ts +import { fetchInitialData } from '@/services/initial'; + +export async function getInitialState() { + const initialData = await fetchInitialData(); + return initialData; +} +``` + +Now, various plugins and your defined components can directly access this global initial state through `useModel('@@initialState')` as shown below: + +```tsx +import { useModel } from 'umi'; + +export default function Page() { + const { initialState, loading, error, refresh, setInitialState } = + useModel('@@initialState'); + return <>{initialState}; +}; +``` + +| Object Property | Type | Description | +| --- | --- | --- | +| `initialState` | `any` | The return value of the exported `getInitialState()` method | +| `loading` | `boolean` | Whether the `getInitialState()` or `refresh()` method is in progress. Before the initial state is obtained for the first time, the rendering of other parts of the page will be **blocked** | +| `error` | `Error` | If an error occurs while running the exported `getInitialState()` method, the error message | +| `refresh` | `() => void` | Re-execute the `getInitialState` method and obtain a new global initial state | +| `setInitialState` | `(state: any) => void` | Manually set the value of `initialState`, after manually setting it, `loading` will be set to `false` | + +## Qiankun Parent-Child Communication + +`@umi/max` has a built-in **Qiankun Micro-Frontend** [plugin](https://github.com/umijs/umi/blob/master/packages/plugins/src/qiankun.ts), which allows micro-applications to obtain the data Model passed from the parent application through the `useModel('@@qiankunStateFromMaster')` method, thereby achieving communication between parent and child applications. + +For specific usage, please refer to the [micro-frontend's parent-child communication chapter](./micro-frontend#parent-child-communication). + +## API + +### `useModel` + +`useModel()` is a hook function that provides the ability to use a Model. It accepts two parameters: + +| Parameter | Type | Description | +| --- | --- | --- | +| `namespace` | `String` | The namespace of the Model file | +| `updater` | `(model: any) => any` | Optional parameter. Passing in a function, the return value of which is the Model state or data currently needed by the component, and it serves as the return value of the `useModel()` method. It plays a significant role in optimizing component performance. | + +```tsx +// src/components/AdminInfo/index.tsx +import { useModel } from 'umi'; + +export default function Page() { + const { user, fetchUser } = useModel('adminModel', (model) => ({ + user: model.admin, + fetchUser: model.fetchAdmin, + })); + + return <>hello; +}; +``` diff --git a/docs/docs/docs/max/dva.en-US.md b/docs/docs/docs/max/dva.en-US.md new file mode 100644 index 000000000000..1504bc32848b --- /dev/null +++ b/docs/docs/docs/max/dva.en-US.md @@ -0,0 +1,343 @@ +--- +order: 13 +toc: content +translated_at: '2024-03-17T09:17:48.666Z' +--- + +# dva + +## Why We Need State Management + +React components are essentially built through JSX and styles according to the state to form the final UI. It is the change in state that actually dynamizes the page. For simple frontend applications, the application data management needs can be met by the component's own state plus the parent component passing state via props. However, when the application scales to a certain degree, it will lead to very complex states maintained within components. Coupled with the state transfer between components, data management can easily become chaotic. A minor modification can lead to unpredictable side effects. + +Therefore, we need pure UI components that, apart from rendering logic, do not mix other logics (such as network requests). This requires us to find a way to extract business logic unrelated to rendering, forming an independent layer (which is managed by the model in the `src/models` folder in Umi) to manage. All components are downgraded to `stateless components` that solely depend on props for rendering. In this way, the UI layer no longer needs to worry about rendering unrelated logics and focuses on UI rendering. (Note: The components mentioned here mainly refer to the page components under page, whereas the components under component should be relatively universal components that should also rely solely on props for rendering, and they should not have a model. Data should be passed to them via props in the page components). + +## Simple Data Sharing + +For simple applications that do not require complex data flows, only some simple data sharing is needed. We recommend using [Middle Platform Best Practices Simple Data Flow](./data-flow). + +## How Umi Manages State + +As shown in the figure below, Umi has built in [Dva](https://dvajs.com) to provide a set of state management solutions: + +![undefined](https://gw.alipayobjects.com/zos/skylark/48f9ff5f-ab11-4896-9fb6-65cdd83340de/2018/png/dcb7073b-fc0c-4e2c-aa39-93ac249d715c.png) + +Data is uniformly managed in the models of `src/models`, components strive not to maintain data as much as possible, but to associate with the data in the model through connect. When there is an operation on the page, an action is triggered to request the backend interface and modify the data in the model, separating the business logic into a cyclic closed loop, allowing the data to flow unidirectionally within it, making the application easier to maintain. This idea originally came from Facebook's [flux](http://facebook.github.io/flux/). Let's take a closer look at how to implement such logic in Umi. + +### Configuring dva + +First, you need to configure `dva: {}` to activate the dva plugin built into Umi. + +### Adding a model + +Umi will automatically mount the model definition in `src/models` by default, you just need to create a new file in the model folder to add a model to manage component states. + +After 2.0, to better support the demand loading of mobile H5 projects and the organization of models in large projects, we will also default mount the model under a certain page folder, you can refer to [Directory Structure Explanation](../guides/directory-structure) for specific structure. However, it is worth noting that the namespace of the model is global, and you still need to ensure your namespace is unique (the default is the file name). For most projects, we recommend managing them uniformly in the model, without using this function. + +The model writing refers to the following example: + +```js +import { queryUsers, queryUser } from '../../services/user'; + +export default { + state: { + user: {}, + }, + + effects: { + *queryUser({ payload }, { call, put }) { + const { data } = yield call(queryUser, payload); + yield put({ type: 'queryUserSuccess', payload: data }); + }, + }, + + reducers: { + queryUserSuccess(state, { payload }) { + return { + ...state, + user: payload, + }; + }, + }, + + test(state) { + console.log('test'); + return state; + }, +}; +``` + +### Connecting the Component and Model + +After creating the model, you can conveniently connect the model and component together in the component through the ES6 [Decorator](http://es6.ruanyifeng.com/#docs/decorator). Then you can access the data in the model through `this.props.[modelName]` in the component. (In the corresponding model, the default namespace is the file name) + +Component example is as follows: + +```javascript +import React, { Component } from 'react'; +import { connect } from 'umi'; + +@connect(({ user }) => ({ + user, +})) +class UserInfo extends Component { + constructor(props) { + super(props); + } + render() { + return
{this.props.user.name}
; + } +} + +export default UserInfo; +``` + +### Dispatching Events in Components + +The connect method also adds `dispatch` to `this.props`, and you can call it to trigger the effects or reducer in the model to modify the data in the model when the user triggers a certain event. As shown below: + +```javascript +import React, { Component } from 'react'; +import { connect } from 'umi'; + +@connect(({ user }) => ({ + user, +})) +class UserInfo extends Component { + constructor(props) { + super(props); + } + render() { + return ( +
{ + this.props.dispatch({ + type: 'user/test', + }); + }} + > + {this.props.user.name} +
+ ); + } +} + +export default UserInfo; +``` + +### Modifying Data + +After dispatching an action, it will find an effect or reducer defined in the model according to the type in the action. + +If it's an effect, it can request back-end data, and then trigger a reducer to modify the data. After the data is modified by the reducer, the component will update according to the latest data, thus completing a data flow. + +## Documentation + +### Model Definition + +A model can define the following parts: + +- namespace # The namespace of the model, uniquely identifying a model, can be omitted if it is the same as the file name +- state # Data in the model +- effects # Asynchronous actions, used to send asynchronous requests +- reducers # Synchronous actions, used to modify state + +### Connect + +`Connect` is used to associate a model and a component, adding related data and `dispatch` to the component's `props`. As shown below: + +```jsx +import React, { Component } from 'react'; +import { connect } from 'umi'; + +const mapModelToProps = allModels => { + return { + test: 'hello world', + // props you want connect to Component + }; +}; + +@connect(mapModelToProps) +class UserInfo extends Component { + render() { + return
{this.props.test}
; + } +} + +export default UserInfo; +``` + +It is recommended to call connect through annotation, which is equivalent to `export default connect(mapModelToProps)(UserInfo);`. Connect accepts a parameter, a method, where you receive all the model information and need to return the object to be added to props. In the example above, you can get the string 'hello world' through `this.props.test`. + +### Dispatch + +At the same time as using `connect` to associate the component and the model, the framework will also add a `this.props.dispatch` method. With this method, you can trigger an action to the model. As shown below: + +```jsx +render () { + return
{ + this.props.dispacth({ + type: 'modelnamespace/actionname', + sometestdata: 'xxx', + othertestata: {}, + }).then(() => { + // it will return a promise + // action success + }); + }}>test
+} +``` + +The actions triggered by `this.props.dispatch` are divided into two categories: effect and reducer. Below are more details on them. + +### Reducer + +Reducer is a function that handles the logic of modifying data (synchronously, cannot request back-end). It accepts state and action, returning the old or new state. That is: `(state, action) => state`. + +#### Add, Delete, Modify + +Taking todos as an example. + +```javascript +exports default { + namespace: 'todos', + state: [], + reducers: { + add(state, { payload: todo }) { + return state.concat(todo); + }, + remove(state, { payload: id }) { + return state.filter(todo => todo.id !== id); + }, + update(state, { payload: updatedTodo }) { + return state.map(todo => { + if (todo.id === updatedTodo.id) { + return { ...todo, ...updatedTodo }; + } else { + return todo; + } + }); + }, + }, +}; +``` + +#### Add, Delete, Modify Nested Data + +It is recommended to keep at most one layer of nesting to maintain state flatness. Deep nesting makes reducer hard to write and maintain. + +```javascript +app.model({ + namespace: 'app', + state: { + todos: [], + loading: false, + }, + reducers: { + add(state, { payload: todo }) { + const todos = state.todos.concat(todo); + return { ...state, todos }; + }, + }, +}); +``` + +Below is an example of deep nesting, which should be avoided as much as possible. + +```javascript +app.model({ + namespace: 'app', + state: { + a: { + b: { + todos: [], + loading: false, + }, + }, + }, + reducers: { + add(state, { payload: todo }) { + const todos = state.a.b.todos.concat(todo); + const b = { ...state.a.b, todos }; + const a = { ...state.a, b }; + return { ...state, a }; + }, + }, +}); +``` + +### Effect + +Effects are defined in the model. It is also a type of action, mainly used for asynchronous communication with the back-end. After requesting and receiving the necessary data from the back-end through effects, you can again send a reducer through the put method to modify the data. + +Effect supports asynchronous request through ES6 [Generator function](http://es6.ruanyifeng.com/#docs/generator), see the example below: + +```javascript +export default { + namespace: 'todos', + effects: { + *addRemote({ payload: todo }, { put, call }) { + yield call(addTodo, todo); + yield put({ type: 'add', payload: todo }); + }, + }, +}; +``` + +Actions defined in effects must be Generator functions defined through `*`, and asynchronous logic is triggered through the keyword `yield` in the function. + +#### Effects + +##### put + +Used to trigger an action. + +```javascript +yield put({ type: 'todos/add', payload: 'Learn Dva' }); +``` + +##### call + +Used to call asynchronous logic, supporting promise. + +```javascript +const result = yield call(fetch, '/todos'); +``` + +##### select + +Used to get data from state. + +```javascript +const todos = yield select(state => state.todos); +``` + +### loading + +The framework will by default add a model with the namespace loading, containing information related to loading of asynchronous effects in this model, its state format is as follows: + +```js +{ + global: Boolean, // Whether there is really asynchronous request being sent + models: { + [modelnamespace]: Boolean, // The loading situation for each specific model + }, + effects: { + [modelnamespace/effectname]: Boolean, // The loading situation for each specific effect + }, +} +``` + +You can use this model to implement loading animations in components. + +## Debugging + +### redux + +Since the underlying layer of dva is based on redux, you can install redux's [development tools](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=zh-CN) to view the data and change records in the model. + +![reduxdevtool](https://lh3.googleusercontent.com/wfhSnnYEQc3TCXbRTpTloa-XZesgDt0xAogzGoLF1BUCU04aYhdwAjueJYTtDxfRiqjUfC539g=w640-h400-e365) + +## References + +- [dva official website](https://dvajs.com/) diff --git a/docs/docs/docs/max/i18n.en-US.md b/docs/docs/docs/max/i18n.en-US.md new file mode 100644 index 000000000000..979082ac6a6c --- /dev/null +++ b/docs/docs/docs/max/i18n.en-US.md @@ -0,0 +1,529 @@ +--- +order: 8 +toc: content +translated_at: '2024-03-17T09:15:38.373Z' +--- + +# Internationalization + +`@umi/max` comes with the [Internationalization plugin](https://github.com/umijs/umi/blob/master/packages/plugins/src/locale.ts), which easily integrates internationalization features into your Umi application. + +## Getting Started + +The internationalization plugin adopts a convention-based directory structure, where we conventionally import multilingual files in the `src/locales` directory. + +The naming of multilingual files should follow this specification: `.(js|json|ts)`. Here, `` is a delimiter, which defaults to `-`, and can be configured through the `baseSeparator` option. + +For example, if you need to introduce support for Simplified Chinese and English in your project, you can create `zh-CN.ts` and `en-US.ts` files in the `src/locales` directory: + +```diff +src + + locales + + zh-CN.ts + + en-US.ts + pages +``` + +Configure the internationalization plugin in `.umirc.ts`: + +```ts +export default { + locale: { + // Default to using src/locales/zh-CN.ts as a multilingual file + default: 'zh-CN', + baseSeparator: '-', + }, +}; +``` + +For more introductions to configuration, see the [Configuring Plugins](#configuring-plugins) section. + +Now, add your first multilingual content: + +```ts +// src/locales/zh-CN.ts +export default { + welcome: '欢迎光临 Umi 的世界!', +}; +``` + +```ts +// src/locales/en-US.ts +export default { + welcome: "Welcome to Umi's world!", +}; +``` + +You can also use `.json` files to store multilingual content: + +```json +// src/locales/zh-CN.json +{ + "welcome": "欢迎光临 Umi 的世界!", +} + +// src/locales/en-US.json +{ + "welcome": "Welcome to Umi's world!", +} +``` + +Everything is ready, now you can use multilingual content in Umi. Leave it to our `` component, just pass in the previous `welcome` as the value of the parameter `id`: + +```tsx +import { FormattedMessage } from 'umi'; + +export default function Page() { + return ( +
+ +
+ ); +}; +``` + +The rendered result is as follows: + +```html + +
欢迎光临 Umi 的世界!
+ + +
Welcome to Umi's world!
+``` + +## Using in Component Parameters + +In some cases, you need to pass multilingual content as a parameter to a certain component. This can be achieved through the `intl` object: + +```tsx +import { Alert } from 'antd'; +import { useIntl } from 'umi'; + +export default function Page() { + const intl = useIntl(); + const msg = intl.formatMessage({ + id: 'welcome', + }); + + return ; +}; +``` + +At the bottom layer, the internationalization plugin is encapsulated based on [`react-intl`](https://github.com/formatjs/formatjs/tree/main/packages/react-intl) and supports all its interfaces. For details, see [this document](https://github.com/formatjs/formatjs/blob/main/website/docs/react-intl/api.md). + +In the code above, we used the `useIntl()` interface provided by `react-intl` to initialize the `intl` object and called the [`formatMessage()`](https://github.com/formatjs/formatjs/blob/main/website/docs/react-intl/api.md#formatmessage) method of this object to format the string. + +## Formatting Strings + +You may want to dynamically interpolate in multilingual translations, so you can write multilingual content like this: + +```ts +// src/locales/zh-CN.ts +export default { + user: { + welcome: '{name},今天也是美好的一天!', + }, +}; +``` + +```ts +// src/locales/en-US.ts +export default { + user: { + welcome: '{name}, what a nice day!', + }, +}; +``` + +Above, we wrote special syntax `{name}`, which allows us to dynamically assign values at runtime: + +```tsx +import { FormattedMessage } from 'umi'; + +export default function Page() { + return ( +

+ +

+ ); +}; +``` + +If you wish to achieve this through the `intl` object, you can do so by assigning it like this: + +```tsx +import { useIntl } from 'umi'; + +export default function Page() { + const intl = useIntl(); + the msg = intl.formatMessage( + { + id: 'user.welcome', + }, + { + name: '张三', + }, + ); + + return

{msg}

; +}; +``` + +Note that the key-value pair object used for assignment should be passed as the second parameter of the `formatMessage()` method. + +The rendered result is as follows: + +```html + +

张三,今天也是美好的一天!

+ + +

张三, what a nice day!

+``` + +## Switching Languages + +The preset `` component can help you quickly add the feature of switching languages to your project, just write it like this: + +```tsx +import { SelectLang } from 'umi'; + +export default function Page() { + return ; +}; +``` + +In many cases, you may need to write your own language-switching component. This is where the `setLocale()` interface comes in handy: + +```ts +import { setLocale } from 'umi'; + +// Refresh the page when switching +setLocale('en-US'); +``` + +When switching languages using this method, the current page will be refreshed by default. You can set its second parameter to `false` to switch languages without refreshing: + +```ts +// Do not refresh the page when switching +setLocale('en-US', false); +``` + +If you need to switch to the default language, just call this method without passing any parameters: + +```ts +// If your default language is zh-CN +// Then the following call has the same effect as setLocale('zh-CN') +setLocale(); +``` + +## Multilingual Default Values + +For the sake of page consistency, if Umi does not find the content corresponding to the `id` in the current multilingual file, it will directly render the `id` as the content on the page. + +For example, if the following multilingual files are written: + +```ts +// src/locales/zh-CN.ts +export default { + table: { + submit: '提交表单', + }, +}; +``` + +```ts +// src/locales/en-US.ts +export default { + // table: { + // submit: 'SUBMIT TABLE', + // }, +}; +``` + +With the following component: + +```tsx +import { Button } from 'antd'; +import { FormattedMessage } from 'umi'; + +export default function Page() { + return ( + + ); +}; +``` + +The rendered result is: + +```html + + + + + +``` + +Especially, if you need to give a default value without completing internationalization adaptation, you can use the `defaultMessage` parameter: + +```tsx +import { Button } from 'antd'; +import { FormattedMessage } from 'umi'; + +export default function Page() { + return ( + + ); +}; +``` + +When using the `formatMessage()` method, you can do the same: + +```tsx +import { Button } from 'antd'; +import { useIntl } from 'umi'; + +export default function Page() { + const intl = useIntl(); + the msg = intl.formatMessage({ + id: 'table.submit', + defaultMessage: 'SUBMIT TABLE', + }); + + return ; +}; +``` + +Using `defaultMessage` to configure default values is not recommended as this will result in writing a large amount of repetitive internationalization content. The best case is that during your internationalization adaptation, ensure that each multilingual file contains all the keys used. + +## Introduction to Common Interfaces + +### `addLocale` Dynamically Add Language Support + +Without creating and writing separate multilingual files, you can dynamically add language support at runtime using the `addLocale()` interface. It accepts three parameters: + +| Parameter | Type | Description | +| --------- | ---- | ----------- | +| `name` | `String` | Key of the multilingual | +| `message` | `Object` | Multilingual content object | +| `options` | `Object` | `momentLocale` and `antd` configurations | + +For example, if you want to dynamically introduce Traditional Chinese multilingual support, you can write code as follows: + +```ts +import { addLocale } from 'umi'; +import zhTW from 'antd/es/locale/zh_TW'; + +addLocale( + 'zh-TW', + { + welcome: '歡迎光臨 Umi 的世界!', + }, + { + momentLocale: 'zh-tw', + antd: zhTW, + }, +); +``` + +### `getAllLocales` Get Multilingual List + +You can get an array of all current multilingual options through the `getAllLocales()` interface, including multilingual options added through the `addLocale()` method. This interface defaults to looking for files in the `src/locales` directory that are like `zh-CN.(js|json|ts)` and returns the Key of the multilingual. + +```ts +import { getAllLocales } from 'umi'; + +getAllLocales(); +// [en-US, zh-CN, ...] +``` + +### `getLocale` Get the Currently Selected Language + +You can get the currently selected language through the `getLocale()` interface: + +```ts +import { getLocale } from 'umi'; + +getLocale(); +// zh-CN +``` + +### `useIntl` Get `intl` Object + +`useIntl()` is likely to be the most commonly used interface in your development. Through it, you can obtain the `intl` object, and further execute methods such as `formatMessage()` to achieve your diverse needs: + +```json +// src/locales/en-US.json +{ + "welcome": "Hi, {name}." +} +``` + +```ts +import { useIntl } from 'umi'; + +const intl = useIntl(); +const msg = intl.formatMessage( + { + id: 'welcome', + }, + { + name: 'Jackson', + }, +); +console.log(msg); +// Hi, Jackson. +``` + +For more uses of the `intl` object, please refer to the [interface documentation of `react-intl`](https://github.com/formatjs/formatjs/blob/main/website/docs/react-intl/api.md). + +### `setLocale` Set Language + +You can dynamically set the current language using the `setLocale()` interface through programming. It has two parameters: + +| Parameter | Type | Description | +| --------- | ---- | ----------- | +| `lang` | `String` | The language to switch to | +| `realReload` | `Boolean` | Whether to refresh the page when switching, default is `true` to refresh | + +```ts +import { setLocale } from 'umi'; + +// Refresh the page when switching +setLocale('en-US'); + +// Do not refresh the page when switching +setLocale('en-US', false); +``` + +## Configuring Plugins + +You can configure the internationalization plugin in `.umirc.ts`. The default values are as follows: + +```ts +export default { + locale: { + antd: false, // If `antd` is included in project dependencies, then default to true + baseNavigator: true, + baseSeparator: '-', + default: 'zh-CN', + title: false, + useLocalStorage: true, + }, +}; +``` + +The detailed introduction to the configuration is as follows: + +| Configuration Item | Type | Default Value | Description | +| ------------------ | ---- | ------------- | ----------- | +| `antd` | `Boolean` | `false`; if the project contains `antd` dependency, then `true` | `antd` internationalization support. For more introduction, refer to [this document](https://ant.design/docs/react/i18n-cn). | +| `baseNavigator` | `Boolean` | `true` | Enable **browser language detection**. By default, the recognition of the current language environment follows: `localStorage` `umi_locale` value > browser detection > `default` set default language > `zh-CN` | +| `baseSeparator` | `String` | `-` | **Delimiter** between Language and Country. The default is `-`, resulting in languages and directory files like `zh-CN`, `en-US` and `sk`, etc. If specified as `_`, then `default` defaults to `zh_CN`. | +| `default` | `String` | `zh-CN` | **Default language** of the project. When a specific language is not detected, use the default language set by `default`. | +| `title` | `Boolean` | `false` | Enable [**title internationalization**](#title-internationalization). | +| `useLocalStorage` | `Boolean` | `true` | Automatically using `localStorage` to save the currently used language. | + +### Title Internationalization + +Add a `title` item in the route configuration to enable internationalization support, automatically converting the page title to the corresponding multilingual content. + +For example, the multilingual files are written as follows: + +```ts +// src/locales/zh-CN.ts +export default { + 'site.title': 'Umi - 企业级 React 应用开发框架', + 'about.title': 'Umi - 关于我', +}; +``` + +```ts +// src/locales/en-US.ts +export default { + 'site.title': 'Umi - Enterprise-level React Application Framework', + 'about.title': 'Umi - About me', +}; +``` + +Configure the route content as follows: + +```ts +// .umirc.ts +export default { + title: 'site.title', + routes: [ + { + path: '/', + component: 'Index', + }, + { + path: '/about', + component: 'About', + title: 'about.title', + }, + ], +}; +``` + +When visiting the page: + +- `/` route. When the multilingual option is `zh-CN`, the page title is `Umi - 企业级 React 应用开发框架`; for `en-US`, the page title is `Umi - Enterprise-level React Application Framework`. +- `/about` route. When the multilingual option is `zh-CN`, the page title is `Umi - 关于我`; for `en-US`, the page title is `Umi - About me`. + +## Runtime Expansion + +The internationalization plugin allows you to expand and customize it at runtime. + +### Custom `getLocale` + +You can customize the logic of the `getLocale()` method for getting the page language, for example, by recognizing the link `?locale=en-US`, make `en-US` the language of the current page: + +```ts +// src/app.ts +import qs from 'qs'; + +export const locale = { + getLocale() { + const { search } = window.location; + const { locale = 'zh-CN'} = qs.parse(search, { ignoreQueryPrefix: true }); + return locale; + }, +}; +``` + +### Custom Option Configuration +Umi’s i18n is implemented based on `react-intl`. +When you need to configure more `react-intl` initialization options, you can configure them in `app.ts`. You can refer to the [react-intl documentation](https://formatjs.io/docs/react-intl/components) for specific configuration options +```js +// src/app.ts +import { RuntimeConfig } from '@umijs/max' + +export const locale: RuntimeConfig['locale'] = { + textComponent: 'span', + onError: () => { + console.log('error handler...'); + } + // locale: string + // formats: CustomFormats + // messages: Record | Record + // defaultLocale: string + // defaultFormats: CustomFormats + // timeZone?: string + // textComponent?: React.ComponentType | keyof React.ReactHTML + // wrapRichTextChunksInFragment?: boolean + // defaultRichTextElements?: Record> + // onError(err: string): void +} + +``` +## FAQ + +### Why not use the `formatMessage` syntax sugar directly? + +Although `formatMessage` is very convenient to use directly, it is detached from React's lifecycle. The most serious issue is that switching languages cannot trigger DOM re-rendering. To solve this problem, we need to refresh the browser when switching languages, which is a poor user experience. Therefore, we recommend using `useIntl` or `injectIntl`, which can achieve the same functionality. diff --git a/docs/docs/docs/max/introduce.en-US.md b/docs/docs/docs/max/introduce.en-US.md new file mode 100644 index 000000000000..6efc6270e9db --- /dev/null +++ b/docs/docs/docs/max/introduce.en-US.md @@ -0,0 +1,49 @@ +--- +order: 1 +toc: content +translated_at: '2024-03-17T09:02:46.141Z' +--- + +# Umi Max Introduction + +Umi, as an extensible enterprise-level front end application framework, has already served 10,000+ applications within Ant Group, either directly or indirectly. Throughout the process of engineering practice, it has solved numerous common problems encountered in front end development, and these experiences have been accumulated into various Umi plugins. In order to make it more convenient for developers to utilize these plugins, we have integrated them into `@umijs/max` based on their open-source foundation. This allows developers to immediately obtain the same development experience as developing Umi applications within Ant Group through a scaffold. + +## How to use + +By selecting the `Ant Design Pro` template when using `create-umi`, you can use `@umijs/max` to create a project. + +```bash {4} +$ npx create-umi@latest +? Pick Umi App Template › - Use arrow-keys. Return to submit. + Simple App +❯ Ant Design Pro + Vue Simple App +``` + +:::info{title=💡} +In Umi Max projects, use the command line `max{:bash}` instead of the original `umi{:bash}`, as shown below. +::: + +```bash /max/ +$ npx max g jest +``` + +Newly created projects come with the following plugins installed by default, which can be enabled as needed: + +- [Access Control](./access) +- [Site Analytics](./analytics) +- [Ant Design (Antd)](./antd) +- [Charts](./charts) +- [dva](./dva) +- [Initial State](./data-flow#global-initial-state) +- [Data Flow](./data-flow) +- [Layout and Menu](./layout-menu) +- [Internationalization (i18n)](./i18n) +- [model](./data-flow) +- [Qiankun Micro-frontends](./micro-frontend) +- [Request Library](./request) +- [Tailwind CSS](./tailwindcss) +- [CSS-IN-JS](./styled-components) +- [Request Strategy](./react-query) +- [Global Data Store Strategy](./valtio) +- [Module Federation](./mf) diff --git a/docs/docs/docs/max/layout-menu.en-US.md b/docs/docs/docs/max/layout-menu.en-US.md new file mode 100644 index 000000000000..34c68a592c41 --- /dev/null +++ b/docs/docs/docs/max/layout-menu.en-US.md @@ -0,0 +1,243 @@ +--- +order: 2 +toc: content +translated_at: '2024-03-17T09:01:40.363Z' +--- + +# Layout and Menu + +## How to Enable + +Configure to enable. + +```ts +// config/config.ts +export default { + layout: { + title: 'your app title', + }, +}; +``` + +## Introduction + +To further reduce R&D costs, we have integrated the layout as a Umi plugin. With simple configurations, you can have the Ant Design Layout ([ProLayout](https://procomponents.ant.design/components/layout)), including the navigation and sidebar. Thus, users don't need to worry about the layout. + +- The default is Ant Design's Layout [@ant-design/pro-layout](https://www.npmjs.com/package/@ant-design/pro-layout), supporting all of its configuration items. +- The top navigation/side menu is automatically generated based on the configuration in the route. +- Default support for 403/404 handling of routes and Error Boundary. +- Used in conjunction with the `access` [plugin](./access), it can control route permissions. +- Used in conjunction with the `initial-state` [plugin](https://github.com/umijs/umi/blob/master/packages/plugins/src/initial-state.ts) and [data flow](./data-flow) plugins, it can display default user login information. + +> Want dynamic menus? See here [Advanced Usage of Menu](https://beta-pro.ant.design/docs/advanced-menu-cn) + +## Configuration + +### Build-time Configuration + +The plugin can be enabled through the `layout` property in the `config/config.ts` configuration file. + +```ts +import { defineConfig } from 'umi'; + +export default defineConfig({ + layout: { + title: 'Ant Design', + locale: false, // Default is enabled, can be disabled if menu internationalization is not needed + }, +}); +``` + +#### title + +- Type: `string` +- Default: `name` in package.json + +The product name displayed in the upper left corner of the layout, the default value is the package name. + +#### locale + +- Type: `boolean` +- Default: `false` + +Whether to start internationalization configuration. After enabling, the menu names configured in the route will be treated as the keys for menu name internationalization. The plugin will look for the corresponding text in the locales file for `menu.[key]`, with the default value as that key, and the value of the name field configured in the route is the corresponding key value. If the menu is a multi-level route, assuming a second-level route menu, then the plugin will look for the corresponding text in the locales file for `menu.[key].[key]`. This feature requires the configuration of [`i18n`](./i18n). Can be configured as `false` to disable if menu internationalization is not needed. + +### Runtime Configuration + +Runtime configuration is written in `src/app.tsx`, with the key as `layout`. + +```tsx +import { RunTimeLayoutConfig } from '@umijs/max'; + +export const layout: RunTimeLayoutConfig = (initialState) => { + return { + // Commonly used properties + title: 'Ant Design', + logo: 'https://img.alicdn.com/tfs/TB1YHEpwUT1gK0jSZFhXXaAtVXa-28-27.svg', + + // Default layout adjustments + rightContentRender: () => , + footerRender: () =>
, + menuHeaderRender: undefined, + + // Other properties see: https://procomponents.ant.design/components/layout#prolayout + }; +}; +``` + +In addition to the plugin's unique configuration supported below, the runtime configuration supports all the build-time configurations and is passed through to [`@ant-design/pro-layout`](https://procomponents.ant.design/components/layout#prolayout). + +#### title + +- Type: `string` +- Default: `name` in package.json + +The product name displayed in the upper left corner of the layout, the default value is the package name. + +#### logo + +- Type: `string` +- default: Ant Design Logo + +The product logo displayed before the product name in the upper left corner. + +#### logout + +- Type: `(initialState: any) => void` +- Default: `null` + +Used for the default Layout's UI in runtime configuration, handling the logout click logic, by default no action is taken. + +> Note: By default, the logout button is not displayed in the upper right corner. It needs to be displayed in conjunction with the runtime configuration `app.ts(x)`'s `getInitialState` returning an object. + +#### rightRender + +- Type: `(initialState: any) => React.ReactNode` +- Default: Displays the username, avatar, logout-related components + +`initialState` is the object returned by `getInitialState` in the runtime configuration `app.ts(x)`. + +#### ErrorBoundary + +- Type: `ReactNode` +- Default: Ant Design Pro's error page. + +The component displayed after an error occurs. + +### Extended Route Configuration + +The Layout plugin, based on Umi's routing, encapsulates more configuration items, supporting more configuration capabilities. Newly added: + +- Sidebar menu configuration. +- Layout route level display/hide related configuration. +- Configuration-style implementation of permission routes by combining with the permissions plugin. + +Example as follows: + +```typescript +// config/route.ts +export const routes: IBestAFSRoute[] = [ + { + path: '/welcome', + component: 'IndexPage', + name: 'Welcome', // This notation is compatible + icon: 'testicon', + // For more features see + // https://beta-pro.ant.design/docs/advanced-menu + // --- + // Open in a new page + target: '_blank', + // Don't show the top bar + headerRender: false, + // Don't show the footer + footerRender: false, + // Don't show the menu + menuRender: false, + // Don't show the menu header + menuHeaderRender: false, + // Permission configuration, needs to be used with the plugin-access + access: 'canRead', + // Hide submenu + hideChildrenInMenu: true, + // Hide self and submenu + hideInMenu: true, + // Hide in breadcrumb + hideInBreadcrumb: true, + // Sub-items up, still displayed, + flatMenu: true, + }, +]; +``` + +#### name + +- Type: `string` + +The name displayed on the menu, if absent, that menu is not displayed. + +#### icon + +- Type: `string` + +The antd icon displayed on the menu, to support on-demand loading, the layout plugin will automatically convert it into an Antd icon's dom. The supported types can be found in [antd icon](https://ant.design/components/icon-cn/). Examples: + +```ts +// Line style +icon: 'home'; // Line style can be abbreviated +icon: 'HomeOutlined'; + +// Solid style +icon: 'HomeFilled'; + +// Two-tone style +icon: 'HomeTwoTone'; +``` + +#### access + +- Type: `string` + +When used together with the `plugin-access` plugin. + +The permissions plugin will match the access string configured by the user here with all of the user's permissions. If a matching item is found, and if the value of that permission is false, then when the user visits that route, a 403 page is displayed by default. + +#### locale + +- Type: `string` + +The internationalization configuration for the menu, the internationalization key is `menu.${submenu-name}.${name}`. + +#### flatMenu + +- Type: `boolean` + +Default is false. When true, this item is only hidden in the menu, and its sub-items are brought up and still displayed. + +Flattening the menu, if you only want the sub-level menu to not display itself, it can be configured to true. + +```tsx +const before = [{ name: '111' }, { name: '222', children: [{ name: '333' }] }]; +// flatMenu = true +const after = [{ name: '111' }, { name: '222' }, { name: '333' }]; +``` + +#### xxxRender + +- Type: `boolean` + +Setting xxxRender to false, some layout modules can be hidden + +- `headerRender=false` Do not show the top bar +- `footerRender=false` Do not show the footer +- `menuRender=false` Do not show the menu +- `menuHeaderRender=false` Do not show the menu's title and logo + +#### hideInXXX + +- Type: `boolean` + +hideInXXX can manage the rendering of the menu. + +- `hideChildrenInMenu=true` Hide submenu +- `hideInMenu=true` Hide self and submenu +- `hideInBreadcrumb=true` Hide in breadcrumb diff --git a/docs/docs/docs/max/layout-menu.md b/docs/docs/docs/max/layout-menu.md index e8d94739a0bb..fdcd1f0d2f25 100644 --- a/docs/docs/docs/max/layout-menu.md +++ b/docs/docs/docs/max/layout-menu.md @@ -115,15 +115,9 @@ export const layout: RunTimeLayoutConfig = (initialState) => { `initialState` 是运行时配置 `app.ts(x)` 中的 `getInitialState` 返回的对象。 -#### onError +#### ErrorBoundary -- Type: `(error: Error, info: any) => void;` - -发生错误后的回调(可做一些错误日志上报,打点等)。 - -#### ErrorComponent - -- Type: `(error: Error) => React.ReactElement;` +- Type: `ReactNode` - Default: Ant Design Pro 的错误页。 发生错误后展示的组件。 @@ -197,6 +191,8 @@ icon: 'HomeFilled'; icon: 'HomeTwoTone'; ``` +兼容[icons](../../docs/api/config#icons)功能,打开icons功能后,可以使用图标集或者本地的图标。具体请参考icons功能的相关配置和使用方法。 + #### access - Type: `string` diff --git a/docs/docs/docs/max/mf.en-US.md b/docs/docs/docs/max/mf.en-US.md new file mode 100644 index 000000000000..702215bb07be --- /dev/null +++ b/docs/docs/docs/max/mf.en-US.md @@ -0,0 +1,432 @@ +--- +order: 17 +toc: content +translated_at: '2024-03-17T08:55:33.242Z' +--- + +# Module Federation Plugin + +Using Module Federation functionality in Umi projects. + +:::warning{title=🚨} +Module Federation functionality requires browser support for `Top Level Await` feature. Please pay attention to browser support ([Browser support status](https://caniuse.com/?search=top%20level%20await)) when using it in production environment. +::: + +## Configuration + +### Configuring the use of remote modules + +@umijs/max projects + +```ts +// .umirc.ts +import { defineConfig } from '@umijs/max'; + +const shared = { + react: { + singleton: true, + eager: true, + }, + 'react-dom': { + singleton: true, + eager: true, + }, +}; + +export default defineConfig({ + // Module Federation plugin is already built-in, just enable the configuration + mf: { + remotes: [ + { + // Optional, if not configured, the current remotes[].name field is used + aliasName: 'mfNameAlias', + name: 'theMfName', + entry: 'https://to.the.remote.com/remote.js', + }, + ], + + // Configure MF shared modules + shared, + }, +}); +``` + +Regular Umi projects + +```ts +// .umirc.ts +import { defineConfig } from 'umi'; + +const shared = { + react: { + singleton: true, + eager: true, + }, + 'react-dom': { + singleton: true, + eager: true, + }, +}; + +export default defineConfig({ + plugins: ['@umijs/plugins/dist/mf'], // Import plugin + mf: { + remotes: [ + { + // Optional, if not configured, the current remotes[].name field is used + aliasName: 'mfNameAlias', + name: 'theMfName', + entry: 'https://to.the.remote.com/remote.js', + }, + ], + + // Configure MF shared modules + shared, + }, +}); +``` + +In the project, you can now use `import XXX from 'mfNameAlias/XXXX'` to use the content of remote modules. + +#### Runtime remote module loading + +If you need to decide the remote module's loading address at runtime (based on the running environment), you can configure it as follows: + +```ts +// .umirc.ts +defineConfig({ + mf: { + remotes: [ + { + name: 'theMfName', + keyResolver: `(function(){ + try { + return window.injectInfo.env || 'PROD' + } catch(e) { + return 'PROD'} + })()`, + entries: { + PRE: 'http://pre.mf.com/remote.js', + PROD: 'http://produ.mf.com/remote.js', + TEST: 'http://test.dev.mf.com/remote.js', + DEV: 'http://127.0.0.1:8000/remote.js', + }, + }, + ], + shared, + }, +}); +``` + +- When using runtime remote module loading logic, do not configure `remotes[]#entry`, the plugin will prioritize this field. +- `keyResolver` is used to decide which key of `entries` to use at runtime; using an _Immediately Invoked Function Expression_ is recommended and can implement more complex functionality in the function. Does not support asynchronous functions. +- `keyResolver` can also use static values, configured as `keyResolver: '"PROD"'` + +### Configuration for exporting remote modules + +For the current project to provide remote modules, use the following configuration field for the module name + +```ts +// .umirc.ts +// Extracting the variable is for consistent configuration with MFSU +const remoteMFName = 'remoteMFName'; + +defineConfig({ + mf: { + name: remoteMFName, + + // Optional, library type of remote module, if the module needs to be used in a Qiankun sub-application, the suggested value is recommended, + // Note that the name here must be consistent with the final MF module name + // library: { type: "window", name: "exportMFName" }, + }, +}); +``` + +:::info{title=🚨} +The configured module name must be a valid Javascript variable name! +::: + +The modules exported follow the convention, taking the directory names under `src/exposes` as the export items, and the export file is the index file under that directory, for example + +```txt +src/exposes/ +├── Button +│   └── index.jsx +├── Head +│   └── index.ts +└── Form + └── index.tsx +``` + +The corresponding Module Federation exposes are + +```js +{ + './Button': 'src/exposes/Button/index.jsx', + './Button': 'src/exposes/Head/index.ts', + './Form' : 'src/exposes/Form/index.tsx', +} +``` + +### Disabling MF product hash + +By default, when the user enables `hash: true`, the entry file in the MF product will automatically carry a hash, such as `remote.123abc.js`. You can disable it by setting `remoteHash: false` (resulting in `remote.js`), at which point you may need to modify nginx/CDN/gateway response header configuration to remove the cache for the `remote.js` file, otherwise the new build will not take effect. + +Note: More harm without hash and recommended practices are detailed in [issue #11711](https://github.com/umijs/umi/issues/11711) + + +```ts +mf: { + remoteHash: false +} +``` + +## Runtime API + +### When to use runtime API? + +Configuring with `import()` can easily use the Module Federation functionality. However, consider using runtime API if you have the following needs: + +- When loading a remote module fails, the page needs to use a fallback component +- The loading address of the remote module cannot be determined by a synchronous function (requires asynchronous call) +- The loading address and module name of the remote module need to be determined at runtime + +### safeMfImport + +A fail-safe remote module loading function, interface definition as follows: + +```ts +safeMfImport(moduleSpecifier: string, fallback: any): Promise +``` + +Combined with `React.lazy` can implement lazy loading of remote modules + +```ts +import { safeMfImport } from '@umijs/max'; +import React, { Suspense } from 'react'; + +const RemoteCounter = React.lazy(() => { + return safeMfImport('remoteCounter/Counter', { default: () => 'Fallback' }); +}); + +export default function Page() { + return ( + + + + ); +}; +``` + +:::info{title=🚨} +- Note that the fallback ***component*** needs to be wrapped in the object's `default` field to mimic a module. +- `remoteCounter/Counter` needs to correspond with the configuration. +::: + +[Example code](https://github.com/umijs/umi/blob/master/examples/mf-host/src/pages/safe-import.tsx) + +### safeRemoteComponent + +This API is a higher-order component that encapsulates `safeMfImport`, interface definition as follows: + +```ts +safeRemoteComponent> + (opts: { + moduleSpecifier:string; + fallbackComponent: React.ComponentType; // Fallback component if remote component fails to load + loadingElement: React.ReactNode ; // Loading display for component loading + } ): T +``` + +Example: + +```ts +const RemoteCounter = safeRemoteComponent>({ + moduleSpecifier: 'remoteCounter/Counter', + fallbackComponent: () => 'fallbacked', + loadingElement: 'Loading', +}); + +export default function Page() { + return ( +
+ +
+ ); +}; +``` + +[Example code](https://github.com/umijs/umi/blob/master/examples/mf-host/src/pages/safe-remote-component.tsx) + +### rawMfImport + +Loading remote modules, interface as follows. + +```ts +rawMfImport(opts: { + entry: string; + remoteName: string; + moduleName: string; +}): Promise +``` + +Example + +```ts +const RemoteCounter = React.lazy(() => { + return rawMfImport({ + entry: 'http://localhost:8001/remote.js', + moduleName: 'Counter', + remoteName: 'remoteCounter', + }); +}); +``` + +[Example code](https://github.com/umijs/umi/blob/master/examples/mf-host/src/pages/raw-mf-import.tsx) + +### safeRemoteComponentWithMfConfig + +A higher-order component that encapsulates `rawMfImport`: + +```ts +type RawRemoteComponentOpts ={ + mfConfig:{ + entry:string; + remoteName: string; + moduleName: string; + }; + fallbackComponent: ComponentType; + loadingElement: ReactNode; +} +safeRemoteComponentWithMfConfig>(opts: RawRemoteComponentOpts): T +``` + +Example + +```ts +const RemoteCounter = safeRemoteComponentWithMfConfig< + React.FC<{ init?: number }> +>({ + mfConfig: { + entry: 'http://localhost:8001/remote.js', + moduleName: 'Counter', + remoteName: 'remoteCounter', + }, + fallbackComponent: () => 'raw Fallback', + loadingElement: 'raw Loading', +}); + +export default function Page() { + return ; +}; +``` + +[Example code](https://github.com/umijs/umi/blob/master/examples/mf-host/src/pages/raw-mf-component.tsx) + +### registerMfRemote + +Dynamically registers Module Federation module remote configurations. + +```ts +type MFModuleRegisterRequest = { entry: string; remoteName: string; aliasName?:string; } +registerMfRemote (opts: MFModuleRegisterRequest): void +``` + +When using `safeMfImport` or `safeRemoteComponent`, `moduleSpecifier` must be a configured remote module. While calling `rawMfImport` is somewhat verbose, `registerMfRemote` can be used to register first, then use the succinct `safeMfImport` and `safeRemoteComponent`. + +```ts +registerMfRemote({ + aliasName: 'registered', + remoteName: 'remoteCounter', + entry: 'http://127.0.0.1:8001/remote.js', +}); + +const RemoteCounter = React.lazy(() => { + return safeMfImport('registered/Counter', { default: null }); +}); +``` + +[Example code](https://github.com/umijs/umi/blob/master/examples/mf-host/src/pages/register-then-import.tsx) + +## Using with MFSU + +The Module Federation plugin automatically modifies MFSU's **default** configuration based on plugin configuration to allow both features to work normally during the development stage, the principle is as follows: + +Assume we have the following mf plugin configuration + +```ts +// .umirc.ts +export default defineConfig({ + mf: { + name: 'remoteMFName', + remotes: [ + { + name: 'remote1', + entry: 'https://to.the.remote.com/remote.js', + }, + { + aliasName: 'aliasRemote', + name: 'remote2', + entry: 'https://to.the.remote.com/remote2.js', + }, + ], + shared: { + react: { + singleton: true, + eager: true, + }, + 'react-dom': { + singleton: true, + eager: true, + }, + } + }, +}); +``` + +The corresponding final effective configuration is as follows + +```ts +{ + mfsu: { + // mf plugin automatically fills in the following default configurations compatible with MFSU + // MFSU can also debug MF modules in the DEV stage + remoteName: 'remoteMFName', + remoteAliases: ['remote1', 'aliasRemote'], + shared: { + react: { + singleton: true, + eager: true, + }, + 'react-dom': { + singleton: true, + eager: true, + }, + } + }, + mf: { + name: 'remoteMFName', + remotes: [ + { + name: 'remote1', + entry: 'https://to.the.remote.com/remote.js', + }, + { + aliasName: 'aliasRemote', + name: 'remote2', + entry: 'https://to.the.remote.com/remote2.js', + }, + ], + shared: { + react: { + singleton: true, + eager: true, + }, + 'react-dom': { + singleton: true, + eager: true, + }, + }, + }, +} +``` diff --git a/docs/docs/docs/max/mf.md b/docs/docs/docs/max/mf.md index 49b9036d56e3..ac8a7305a511 100644 --- a/docs/docs/docs/max/mf.md +++ b/docs/docs/docs/max/mf.md @@ -167,6 +167,19 @@ src/exposes/ } ``` +### 关闭 MF 产物 hash + +默认情况下,当用户开启 `hash: true` 时, MF 产物中入口文件将自动携带 hash ,如 `remote.123abc.js` ,可通过设定 `remoteHash: false` 关闭(将得到 `remote.js` ),此时你可能需要修改 nginx / CDN / 网关 的响应头配置来去除该 `remote.js` 文件的缓存,否则新构建将无法生效。 + +注:没有 hash 的更多危害与推荐做法详见 [issue #11711](https://github.com/umijs/umi/issues/11711) + + +```ts +mf: { + remoteHash: false +} +``` + ## 运行时 API ### 何时需要使用运行时 API ? diff --git a/docs/docs/docs/max/micro-frontend.en-US.md b/docs/docs/docs/max/micro-frontend.en-US.md new file mode 100644 index 000000000000..e3090346e560 --- /dev/null +++ b/docs/docs/docs/max/micro-frontend.en-US.md @@ -0,0 +1,470 @@ +--- +order: 9 +toc: content +translated_at: '2024-03-17T08:50:33.783Z' +--- + +# Micro Frontends + +`@umi/max` has a built-in **Qiankun Micro Frontends** [plugin](https://github.com/umijs/umi/blob/master/packages/plugins/src/qiankun.ts), which can enable the Qiankun micro frontend development mode with one click, helping you easily integrate Qiankun micro applications in your Umi project, and build a production-ready micro frontend architecture system. + +For more information about Qiankun Micro Frontends, please refer to [this page](https://qiankun.umijs.org/zh/guide). + +## Micro Frontend Example + +![Micro Frontend Example](https://gw.alipayobjects.com/mdn/rms_655822/afts/img/A*TroZSp_cH0MAAAAAAAAAAAAAARQnAQ) + +As shown in the picture above: In the parent application, after switching routes through the navigation bar, the content displayed below comes from different child applications. Child applications support being opened independently; child applications also support arbitrary nesting among themselves. + +Another more intuitive understanding: Both the parent and child applications are **independent front-end projects**. The parent application can introduce child applications internally, and child applications can also continue to introduce grandchild applications internally, and so on. + +When an application can be introduced by other applications as a child application, it becomes what we call a micro application. + +## Getting Started + +:::success{title=🏆︎} + +This tutorial assumes that you have a basic understanding of what micro frontends are, what Qiankun micro applications are, and how to use Qiankun micro applications. + +::: + +### Configure the Parent Application + +First, you need to configure the parent application and register information related to the child applications so that the parent application can recognize and introduce the child applications internally. + +There are mainly two ways to register child applications: + +- Register child applications through the plugin. +- Register child applications at runtime. + +#### Register Child Applications Through the Plugin + +Modify the Umi configuration file of the parent application and add the following content: + +```ts +// .umirc.ts +export default { + qiankun: { + master: { + apps: [ + { + name: 'app1', + entry: '//localhost:7001', + }, + { + name: 'app2', + entry: '//localhost:7002', + }, + ], + }, + }, +}; +``` + +Where `name` is the name of the child application, which is needed when introducing the child application; `entry` is the HTTP address where the child application is running; the full API of `master` object can be [seen here](#masteroptions). + +#### Register Child Applications at Runtime + +Modify the Umi configuration file of the parent application and add the following content: + +```ts +// .umirc.ts +export default { + qiankun: { + master: {}, + }, +}; +``` + +Modify the `src/app.ts` file of the parent application and export the `qiankun` object: + +```ts +// src/app.ts +export const qiankun = { + apps: [ + { + name: 'app1', + entry: '//localhost:7001', + }, + { + name: 'app2', + entry: '//localhost:7002', + }, + ], +}; +``` + +### Configure the Child Application + +Child applications need to export necessary lifecycle hooks for the parent application to call at the appropriate time. + +Assuming your child application project is **developed based on Umi** and **the `qiankun` [plugin](https://github.com/umijs/umi/blob/master/packages/plugins/src/qiankun.ts) is introduced**. If not, you can follow [this tutorial](https://qiankun.umijs.org/zh/guide/getting-started#%E5%BE%AE%E5%BA%94%E7%94%A8) to configure. + +Modify the Umi configuration file of the child application and add the following content: + +```ts +// .umirc.ts +export default { + qiankun: { + slave: {}, + }, +}; +``` + +This way, the micro frontend plugin will automatically create the necessary lifecycle hooks and methods for the Qiankun child application in the project, Easy as a cake! + +### Introduce Child Applications + +To introduce child applications in the parent application, the plugin provides three different implementation methods: + +- Introduce child applications based on routing. +- Introduce child applications through the `` component. +- Introduce child applications through the `` component. + +#### Introduce Child Applications Based on Routing + +Manually configure the `routes` item in the `.umirc.ts` file by binding child applications through routing. When to use: + +- When the child application contains a complete routing switching logic. +- When the routing of parent and child applications is interrelated. + +Now, if we want to load child applications `app1` and `app2` on the `/app1/project` and `/app2` routes, respectively, we can configure the parent application's routing as follows: + +```ts +// .umirc.ts +export default { + routes: [ + { + path: '/', + component: '@/layouts/index.tsx', + routes: [ + { + path: '/app1', + component: '@/layouts/app-layout.tsx', + routes: [ + // Configure the route associated with micro application app1 + { + // Adding a * wildcard means associating all sub-routes under /app1/project to the micro application app1 + path: '/project/*', + microApp: 'app1', + }, + ], + }, + // Configure the route associated with app2 + { + path: '/app2/*', + microApp: 'app2', + }, + ], + }, + ], +}; +``` + +After configuration, the base route of the child application will be set to the `path` configured in the main application at runtime. + +For example, in the above configuration, we specified the path associated with app1 as `/app1/project`. Suppose there is a route configured as `/user` in app1. When we want to access the page corresponding to `/user` in the parent application, the browser's URL needs to be `base + /user`, which is the `/app1/project/user` path, otherwise, the child application will render a blank or 404 page because it cannot match the correct route. + +The `qiankun` plugin extends the original Umi routing object and adds a `microApp` field, which is the `name` of the registered child application. After switching to the corresponding route, Umi will use the `` component to render this child application and replace the original route's `component`. + +The extended Umi routing object API can be [seen here](#route). + +#### Introduce Child Applications Through the `` Component + +Load (or unload) child applications through the `` component. When to use: + +- When the child application contains a complete routing switching logic. +- When the routing of parent and child applications is interrelated. + +Now, if we want to introduce child application `app1` in a certain page of the parent application, we can write the code as follows: + +```tsx +import { MicroApp } from 'umi'; + +export default function Page() { + return ; +} +``` + +When using this method to introduce child applications, the routing of parent and child applications will correspond one-to-one. For example, when the parent application's routing is `/some/page`, the child application's routing will be the same as `/some/page`. When switching child application routing, the parent application will switch synchronously. + +If the parent application's route includes a prefix, you can configure the `base` attribute to ensure that the routing of the parent and child applications correspond correctly. For example, when the parent application's route is `/prefix/router-path/some/page`, if we want the child application's route to be `/some/page`, we can modify the code as follows: + +```tsx +import { MicroApp } from 'umi'; + +export default function Page() { + return ; +} +``` + +#### Introduce Child Applications Through the `` Component + +Load (or unload) child applications through the `` component. When to use: + +- Only use the specified route of the child application. +- When the routing of parent and child applications is independent of each other. + +The `` component is a variant of the `` component. You need to explicitly provide the `url` attribute as the route of the child application. When the route of the parent application changes, the route of the child application **will not change**. + +Now, if we want to introduce child application `app2` inside a certain component of the parent application, with the route of the child application being `/some/page`, we can write the code as follows: + +```tsx +import { MicroAppWithMemoHistory } from 'umi'; + +export default function Page() { + return ; +} +``` + +### Jumping Between Child Applications + +If child applications are introduced **through the routing binding method**, inside other child applications, you can use `` to jump to the corresponding route. Take child applications `app1` and `app2` as examples: + +```tsx +// In app1 +import { MicroAppLink } from 'umi'; + +export default function Page() { + return ( + <> + {/* The jump link is /app2/home */} + + + + + ); +} +``` + +In the above example, after clicking the button, the parent application's routing becomes `/app2/home`, rendering the page of child application `app2` with an internal routing of `/home`. Similarly, if you want to go back to child application app1 from child application app2, you can write the code as follows: + +```tsx +// In app2 +import { MicroAppLink } from 'umi'; + +export default function Page() { + return ( + <> + {/* The jump link is /app1/project/home */} + + + + + ); +} +``` + +You can also jump from the child application to the specified route of the parent application: + +```tsx +// In the child application +import { MicroAppLink } from 'umi'; + +export default function Page() { + return ( + <> + {/* The jump link is /table */} + + + + + ); +} +``` + +## Child Application Lifecycle + +Qiankun implemented some additional lifecycle hooks on the basis of single-spa. In the order of the micro application's lifecycle, the complete list of supported lifecycle hooks by Qiankun is as follows: + +- `beforeLoad`, called **before the micro applications start fetching**. Initially, the micro application state is `NOT_LOADED`. +- [`load`](https://single-spa.js.org/docs/building-applications/#load), called **when the micro application is fetched**. The micro application state becomes `LOADING_SOURCE_CODE` when starting to fetch the micro application. If fetched successfully, the state becomes `NOT_BOOTSTRAPPED`; if the fetch fails, the state becomes `LOAD_ERROR`. +- [`bootstrap`](https://single-spa.js.org/docs/building-applications/#bootstrap), called **when the micro application finishes initializing**. The micro application state becomes `BOOTSTRAPPING` when starting to initialize the micro application. When initialization is finished, the state becomes `NOT_MOUNTED`. +- `beforeMount`, called **every time before the micro application starts mounting**. +- [`mount`](https://single-spa.js.org/docs/building-applications/#mount), called **every time when the micro application starts mounting**. The micro application state becomes `MOUNTING`. +- `afterMount`, called **every time when the micro application finishes mounting**. The micro application state becomes `MOUNTED`. +- `beforeUnmount`, called **every time before the micro application starts unmounting**. +- [`unmount`](https://single-spa.js.org/docs/building-applications/#unmount), called **every time when the micro application starts unmounting**. The micro application state becomes `UNMOUNTING`. +- `afterUnmount`, called **every time when the micro application finishes unmounting**. The micro application state becomes `NOT_MOUNTED`. +- [`unload`](https://single-spa.js.org/docs/building-applications/#unload), called **when the micro application is fully unloaded**. The micro application state becomes `NOT_LOADED`. + +In addition, there is a special lifecycle hook `update`, which is effective only when introducing micro applications through the `` or `` component: it is called **manually when the micro application in the `MOUNTED` state is refreshed**. When starting to update, the micro application state becomes `UPDATING`; when the update is completed, the state becomes `MOUNTED` again. + +You can refresh the child application manually like this: + +```tsx +import { useRef } from 'react'; +import { MicroApp } from 'umi'; + +export default function Page() { + const microAppRef = useRef(); + + // When this method is executed, the child application is updated + const updateMicroApp = () => { + microAppRef.current?.update(); + }; + + return ; +} +``` + +When you need to add some custom logic in the lifecycle of the child application, you can configure it globally in the parent application as well as configure it individually in the child application. + +### Parent Application Configures Lifecycle Hooks + +Export the `qiankun` object in the `src/app.ts` of the parent application for global configuration. All child applications will implement these lifecycle hooks: + +```ts +// src/app.ts +export const qiankun = { + lifeCycles: { + // For all child applications, print props information when mounting is finished + async afterMount(props) { + console.log(props); + }, + }, +}; +``` + +### Child Application Configures Lifecycle Hooks + +Export the `qiankun` object in the `src/app.ts` of the child application to implement lifecycle hooks. The child application supports configuring `bootstrap`, `mount`, and `unmount` hooks at runtime: + +```ts +// src/app.ts +export const qiankun = { + // Before the application loads + async bootstrap(props) { + console.log('app1 bootstrap', props); + }, + // Triggered before the application render + async mount(props) { + console.log('app1 mount', props); + }, + // Triggered after the application unmounts + async unmount(props) { + console.log('app1 unmount', props); + }, +}; +``` + +## Communication Between Parent and Child Applications + +There are two ways to implement communication between parent and child applications: + +- Communication based on `useModel()`. This is the solution **recommended** by Umi. +- Communication based on configuration. + +### Communication Based on `useModel()` + +This communication method is based on the [data flow](https://github.com/umijs/umi/blob/master/packages/plugins/src/model.ts) plugin, which is already integrated into the `@umi/max` solution. + +This communication method requires the child application to be **developed based on Umi** and to **introduce the data flow plugin**. + +For detailed introduction to this plugin, see [Data Flow Guide](./data-flow). + +#### The Main Application Passes Data + +If child applications are introduced through the routing method, you need to export a function named `useQiankunStateForSlave()` in the `src/app.ts` of the parent application. The return value of this function will be passed to the child application: + +```ts +// src/app.ts +export function useQiankunStateForSlave() { + const [globalState, setGlobalState] = useState({ + slogan: 'Hello MicroFrontend', + }); + + return { + globalState, + setGlobalState, + }; +} +``` + +If child applications are introduced through the component method, directly pass the data as component parameters to the child application: + +```tsx +import { useState } from 'react'; +import { MicroApp } from 'umi'; + +export default function Page() { + const [globalState, setGlobalState] = useState({ + slogan: 'Hello MicroFrontend', + }); + + return ( + + ); +} +``` + +#### Child Application Consumes Data + +The child application will automatically generate a global Model, whose namespace is `@@qiankunStateFromMaster`. Through the `useModel()` method, child applications are allowed to get and consume the data passed by the parent application in any component, as follows: + +```tsx +import { useModel } from 'umi'; + +export default function Page() { + const masterProps = useModel('@@qiankunStateFromMaster'); + return
{JSON.stringify(masterProps)}
; +} +``` + +Or you can obtain and consume the data passed by the parent application through the higher-order method `connectMaster()`, as shown below: + +```tsx +import { connectMaster } from 'umi'; + +function MyPage(props) { + return
{JSON.stringify(props)}
; +} + +export default connectMaster(MyPage); +``` + +The child application can also obtain and consume the `props` properties in the lifecycle hooks [configured according to the requirements](#child-application-configures-lifecycle-hooks). + +Especially, when the parent application introduces the child application through the `` or `` component method, an additional `setLoading()` method will be passed to the child application. This allows the child application to execute this method at the appropriate time to mark the child application as loaded: + +```tsx +const masterProps = useModel('@@qiankunStateFromMaster'); +masterProps.setLoading(false); + +// Or +function MyPage(props) { + props.setLoading(false); +} +connectMaster(MyPage); +``` + +When the child application finishes mounting and becomes `MOUNTED`, it will automatically be marked as loaded. + +### Communication Based on Configuration + +When [registering the child application](#configure-the-parent-application) in the parent application configuration, the `props` attribute can be passed, transferring data to the child application. + +For example, modify the `src/app.ts` of the parent application's `qiankun` export method as follows: + +```ts +// src/app.ts +export const qiankun = { + apps: [ + { + name: 'app1', + entry: '//localhost:7001', + props: { + accountOnClick: (event) => console.log(event), + accountName: 'Alex', + accountAge: 21, + }, + }, + ], +}; +``` + +The child application can obtain and consume the `props` properties in the lifecycle hooks [configured according to the requirements](# diff --git a/docs/docs/docs/max/micro-frontend.md b/docs/docs/docs/max/micro-frontend.md index 9e4bed0ad69a..1ebcada4136e 100644 --- a/docs/docs/docs/max/micro-frontend.md +++ b/docs/docs/docs/max/micro-frontend.md @@ -22,7 +22,9 @@ toc: content ## 开始使用 :::success{title=🏆︎} + 本教程假设您对什么是微前端,什么是 Qiankun 微应用,以及如何使用 Qiankun 微应用已经有了基本的了解。 + ::: ### 配置父应用 @@ -159,7 +161,8 @@ export default { ``` 配置好后,子应用的路由 base 会在运行时被设置为主应用中配置的 `path`。 -例如,在上面的配置中,我们指定了 app1 关联的 path 为 `/app1/project`,假如 app1 里有一个路由配置为 `/user`,当我们想在父应用中访问 `/user` 对应的页面时,浏览器的 url 需要是 `base + /user`,即 `/app1/project/user` 路径,否则子应用会因为无法匹配到正确的路由而渲染空白或404页面。 + +例如,在上面的配置中,我们指定了 app1 关联的 path 为 `/app1/project`,假如 app1 里有一个路由配置为 `/user`,当我们想在父应用中访问 `/user` 对应的页面时,浏览器的 url 需要是 `base + /user`,即 `/app1/project/user` 路径,否则子应用会因为无法匹配到正确的路由而渲染空白或 404 页面。 `qiankun` 插件拓展了 Umi 原有的路由对象,新增了 `microApp` 字段,它的值为注册子应用的 `name`。切换到对应路由后,Umi 将会使用 `` 组件渲染此子应用,并替换原来路由的 `component`。 @@ -179,7 +182,7 @@ import { MicroApp } from 'umi'; export default function Page() { return ; -}; +} ``` 使用该方式引入子应用时,父子应用的路由将一一对应。例如,当父应用路由为 `/some/page` 时,子应用路由同样为 `/some/page`。切换子应用路由时,父应用将同步切换。 @@ -190,8 +193,8 @@ export default function Page() { import { MicroApp } from 'umi'; export default function Page() { - return -}; + return ; +} ``` #### `` 组件引入子应用 @@ -210,7 +213,7 @@ import { MicroAppWithMemoHistory } from 'umi'; export default function Page() { return ; -}; +} ``` ### 子应用之间跳转 @@ -243,7 +246,7 @@ export default function Page() { return ( <> {/* 跳转链接为 /app1/project/home */} - + @@ -289,7 +292,7 @@ Qiankun 在 single-spa 的基础上实现了一些额外的生命钩子。按照 您可以像这样手动刷新子应用: ```tsx -import React, { useRef } from 'react'; +import { useRef } from 'react'; import { MicroApp } from 'umi'; export default function Page() { @@ -301,7 +304,7 @@ export default function Page() { }; return ; -}; +} ``` 当您需要在子应用的生命周期里添加一些自定义的逻辑时,既可以在父应用中进行全局配置,也可以在子应用中进行单独配置。 @@ -380,7 +383,7 @@ export function useQiankunStateForSlave() { 如果通过组件的模式引入子应用,直接将数据以组件参数的形式传递给子应用即可: ```tsx -import React, { useState } from 'react'; +import { useState } from 'react'; import { MicroApp } from 'umi'; export default function Page() { @@ -395,7 +398,7 @@ export default function Page() { setGlobalState={setGlobalState} /> ); -}; +} ``` #### 子应用消费数据 @@ -408,7 +411,7 @@ import { useModel } from 'umi'; export default function Page() { const masterProps = useModel('@@qiankunStateFromMaster'); return
{JSON.stringify(masterProps)}
; -}; +} ``` 或者可以通过高阶方法 `connectMaster()` 来获取并消费父应用透传的数据,如下所示: @@ -509,14 +512,14 @@ import { MicroApp } from 'umi'; export default function Page() { return ; -}; +} ``` #### 自定义加载动画 如果您没有使用 antd 作为项目组件库,或希望覆盖默认的加载动画样式时,可以设置一个自定义的加载组件 `loader` 作为子应用的加载动画。 -通过路由的模式引入的子应用,目前只支持在运行时配置,代码如下: +通过路由的模式引入的子应用,只支持在运行时配置,代码如下: ```tsx // .app.tsx @@ -535,7 +538,7 @@ export const qiankun = () => ({ }); ``` -如果通过组件的模式引入子应用,直接将 `loader` 作为参数传入即可: +通过组件的模式引入子应用,直接将 `loader` 作为参数传入即可: ```tsx import CustomLoader from '@/components/CustomLoader'; @@ -548,25 +551,36 @@ export default function Page() { loader={(loading) => } /> ); -}; +} ``` 其中,`loading` 为 `boolean` 类型参数,为 `true` 时表示仍在加载状态,为 `false` 时表示加载状态已结束。 -如果多个子应用同时存在自定义 loading 的诉求,每个都配置一遍是比较繁琐的,此时可以通过定义主应用的配置来解决,比如说: +如果项目中希望多个子应用使用统一的自定义加载动画,可以通过在主应用配置 `defaultLoader` 来完成 + ```ts // .umirc.ts qiankun: { master: { - loader: '@/CustomLoader', + defaultLoader: '@/defaultLoader', }, }, ``` -其中,`loader` 为文件路径,统一约定放在 [src 目录](../guides/directory-structure.md#src-目录) 下,在 umi 中 `@` 即代表 `src` 目录。 -`CustomLoader` 跟上述实现一致,接收一个 `loading` 为 `boolean` 类型的参数。 +其中,`defaultLoader` 为文件路径,统一约定放在 [src 目录](../guides/directory-structure.md#src-目录) 下,在 umi 中 `@` 即代表 `src` 目录。 -注意:`master.loader` 不默认开启加载动画,开启动画需要将 `autoSetLoading` 设置为 `true`。 +`defaultLoader` 跟上述 `loader` 的实现一致,接收一个 `loading` 为 `boolean` 类型的参数。 + +```tsx +// defaultLoader.tsx +import { Spin } from 'antd'; + +export default function (loading: boolean) { + return ; +} +``` + +注意:`loader` 的优先级高于 `defaultLoader`。 ### 子应用错误捕获 @@ -576,6 +590,8 @@ qiankun: { 当您使用 antd 作为项目组件库时,可以向子应用传入 `autoCaptureError` 属性以开启子应用错误捕获能力,插件将会自动调用 antd 的 [`` 组件](https://ant.design/components/result-cn/)作为错误捕获组件。 +如(文案语言会自动读取 umi locale 配置切换): + 如果通过路由的模式引入子应用,可以配置如下: ```ts @@ -600,13 +616,32 @@ import { MicroApp } from 'umi'; export default function Page() { return ; -}; +} ``` #### 自定义错误捕获组件 如果您没有使用 antd 作为项目组件库,或希望覆盖默认的错误捕获组件样式时,可以设置一个自定义的组件 `errorBoundary` 作为子应用的错误捕获组件。 +通过路由的模式引入的子应用,只支持在运行时配置,代码如下: + +```tsx +// .app.tsx +import CustomErrorBoundary from '@/components/CustomErrorBoundary'; + +export const qiankun = () => ({ + routes: [ + { + path: '/app1', + microApp: 'app1', + microAppProps: { + errorBoundary: (error) => , + }, + }, + ], +}); +``` + 通过组件的模式引入子应用,将 `errorBoundary` 作为参数传入即可: ```tsx @@ -620,11 +655,35 @@ export default function Page() { errorBoundary={(error) => } /> ); -}; +} ``` 其中,`error` 为 `Error` 类型参数。 +如果项目中希望多个子应用使用统一的自定义错误捕获组件,可以通过在主应用配置 `defaultErrorBoundary` 来完成 + +```ts +// .umirc.ts +qiankun: { + master: { + defaultErrorBoundary: '@/defaultErrorBoundary', + }, +}, +``` + +其中,`defaultErrorBoundary` 为文件路径,统一约定放在 [src 目录](../guides/directory-structure.md#src-目录) 下,在 umi 中 `@` 即代表 `src` 目录。 + +`defaultErrorBoundary` 跟上述 `errorBoundary` 的实现一致,接收一个 `error` 为 `Error` 类型的参数。 + +```tsx +// defaultErrorBoundary.tsx +export default function (error: Error) { + return
{error?.message}
; +} +``` + +注意:`errorBoundary` 的优先级高于 `defaultErrorBoundary`。 + ## 环境变量 如果您有一些不能显式编写在 `.umirc.ts` 或 `src/app.ts` 中的配置信息,可以将它们存放在环境变量文件中。例如编写父应用的环境变量文件 `.env` 如下: @@ -683,9 +742,10 @@ export default { | 属性 | 必填 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | --- | | `enable` | 否 | 启用 Qiankun 微应用插件,设置为 `false` 时为不启用 | `boolean` | `undefined` | -| `loader` | 否 | 统一配置微应用加载动画的文件,设置文件路径即可 | `string` | - | | `apps` | 是 | 微应用配置 | [`App[]`](#app) | `undefined` | | `routes` | 否 | 微应用运行时的路由 | [`Route[]`](#route) | `undefined` | +| `defaultErrorBoundary` | 否 | 子应用默认的错误捕获组件,值为文件路径 | `string` | - | +| `defaultLoader` | 否 | 子应用默认的加载动画,值为文件路径 | `string` | - | | `sandbox` | 否 | 是否开启沙箱模式 | `boolean \| { strictStyleIsolation: boolean, experimentalStyleIsolation: boolean }` | `true` | | `prefetch` | 否 | 是否启用微应用预加载 | `boolean \| 'all' \| string[] \| (( apps: RegistrableApp[] ) => { criticalAppNames: string[]; minorAppsName: string[] })` | `true` | @@ -725,25 +785,28 @@ export default { | `className` | 否 | 微应用的样式类 | `string` | `undefined` | | `wrapperClassName` | 否 | 包裹微应用加载组件、错误捕获组件和微应用的样式类,仅在启用加载组件或错误捕获组件时有效 | `string` | `undefined` | - ## FAQ ### 子应用的生命周期钩子加载了,但是页面没有渲染 + 如果页面没有报错,且通过查看 DOM 发现子应用的根节点已经有了,只是内容是空,这种基本可以确定是因为当前 url 没有匹配到子应用的任何路由导致的。 比如我们在主应用中配置了: + ```js { path: '/app1', microApp: 'app1', } ``` + 子应用的路由配置是: + ```js { path: '/user', component: './User', } ``` -那么我们必须通过 `/app1/user` 路径才能正常的访问到子应用的 user 页面。 +那么我们必须通过 `/app1/user` 路径才能正常的访问到子应用的 user 页面。 diff --git a/docs/docs/docs/max/react-query.en-US.md b/docs/docs/docs/max/react-query.en-US.md new file mode 100644 index 000000000000..591826297fe1 --- /dev/null +++ b/docs/docs/docs/max/react-query.en-US.md @@ -0,0 +1,93 @@ +--- +order: 11 +toc: content +translated_at: '2024-03-17T08:46:49.932Z' +--- + +# react-query + +@umijs/max comes with the [react-query](https://tanstack.com/query/) request strategy (which is the same as @tanstack/react-query). + +## How to enable + +If using @umijs/max, enable by configuring. + +```ts +export default { + reactQuery: {}, +} +``` + +If using umi, first install the `@umijs/plugins` dependency, then enable through configuration. + +```bash +$ pnpm i @umijs/plugins -D +``` + +```ts +export default { + plugins: ['@umijs/plugins/dist/react-query'], + reactQuery: {}, +} +``` + +## Features + +The plugin does a few things for you, + +1. Enable react query's devtool in dev mode, which can be disabled with `reactQuery: { devtool: false }`, and the option is configured in app.ts through `export const reactQuery = { devtool }`. + +2. Register a global QueryClient, which can be disabled with `reactQuery: { queryClient: false }`, and the option is configured in app.ts through `export const reactQuery = { queryClient }`. + +3. Most of react-query's exports can be imported and used from `umi` or `@umijs/max`. + +## Configuration + +The following configurations can be done in `reactQuery`. + +- `devtool`: boolean, whether to enable the official react query devtool, default `true` +- `queryClient`: boolean, whether to register a global QueryClient and QueryClientProvider, default `true` + +For example: + +```ts +export default { + reactQuery: { + devtool: false, + queryClient: false, + }, +} +``` + +Note: The above two configurations need to be configured in `app.ts` at runtime. + +## Runtime Configuration + +Includes the following configurations. + +- `devtool`: object +- `queryClient`: object + +For example: + +```ts +const API_SERVER = '/path/to/api/server'; +export const reactQuery = { + devtool: { + initialIsOpen: true, + }, + queryClient: { + defaultOptions: { + queries: { + queryFn: async ({ queryKey }) => { + const res = await fetch(`${API_SERVER}/${queryKey.join('/')}`); + if (res.status !== 200) { + throw new Error(res.statusText); + } + return res.json(); + } + } + } + }, +}; +``` diff --git a/docs/docs/docs/max/react-query.md b/docs/docs/docs/max/react-query.md index 180ec5932bd1..29552d7f49f5 100644 --- a/docs/docs/docs/max/react-query.md +++ b/docs/docs/docs/max/react-query.md @@ -29,6 +29,14 @@ export default { } ``` +:::info +注:在使用时,请务必检查关于 `refetchOnWindowFocus` 的配置项,详见 [运行时配置项](#运行时配置项) 。 +::: + +## 版本 + +默认使用的是 [TanStack Query](https://tanstack.com/query/latest) v4 版本,若需使用最新 v5 版本,手动安装 v5 版本的 `@tanstack/react-query` 与 `@tanstack/react-query-devtools` 依赖即可。 + ## 特性 插件帮你做了几件事, @@ -44,7 +52,7 @@ export default { 可以在 `reactQuery` 中做以下配置。 - `devtool`: boolean,是否开启 react query 官方 devtool 工具,默认 `true` -- `queryClient`: boolean, 是否注册全局的 QueryClient 和 QueryClientProvier,默认 `true` +- `queryClient`: boolean, 是否注册全局的 QueryClient 和 QueryClientProvider,默认 `true` 比如: @@ -66,27 +74,26 @@ export default { - `devtool`:object - `queryClient`: object -比如: +例子: ```ts -const API_SERVER = '/path/to/api/server'; -export const reactQuery = { +// src/app.ts + +import { RuntimeReactQueryType } from 'umi'; + +export const reactQuery: RuntimeReactQueryType = { devtool: { initialIsOpen: true, }, queryClient: { - defaultOptions: { - queries: { - queryFn: async ({ queryKey }) => { - const res = await fetch(`${API_SERVER}/${queryKey.join('/')}`); - if (res.status !== 200) { - throw new Error(res.statusText); - } - return res.json(); - } - } - } + defaultOptions: { + queries: { + // 🟡 此配置具有的表现往往令人出乎意料,若无特殊需求,请默认关闭 + refetchOnWindowFocus: false, + }, + }, }, }; ``` +注:绝大多数项目中,**你都应该默认设定 `refetchOnWindowFocus: false`** ,否则将引发出人意料的反复获取数据效果(这在 SWR 中被称为 [`revalidateOnFocus`](https://swr.vercel.app/zh-CN/docs/api#options) )。 diff --git a/docs/docs/docs/max/request.en-US.md b/docs/docs/docs/max/request.en-US.md new file mode 100644 index 000000000000..1312e80d4481 --- /dev/null +++ b/docs/docs/docs/max/request.en-US.md @@ -0,0 +1,406 @@ +--- +order: 6 +toc: content +translated_at: '2024-03-17T08:46:03.932Z' +--- + +# Request + +`@umijs/max` has built-in plugin solution. It offers a unified network request and error handling solution based on [axios](https://axios-http.com/) and ahooks' `useRequest` from [ahooks](https://ahooks-v2.surge.sh). + +```js +import { request, useRequest } from 'umi'; + +request; +useRequest; +``` + +## Configuration +### Build-time configuration +```js +export default { + request: { + dataField: 'data' + }, +}; +``` + +Build-time configuration allows configuring `dataField` for useRequest, with its default being `data`. This setting primarily facilitates direct data consumption by useRequest. If you wish to access the raw data returned by the backend when consuming data, configure `dataField` to `''` here. + +For example, if your backend returns data in the following format. + +```js +{ + success: true, + data: 123, + code: 1, +} +``` + +Then useRequest can directly consume the `data`, which would be 123, instead of `{ success, data, code }`. + +### Runtime configuration + +In `src/app.ts`, you can customize the request settings for your project by configuring the request item. + +```ts +import type { RequestConfig } from 'umi'; + +export const request: RequestConfig = { + timeout: 1000, + // other axios options you want + errorConfig: { + errorHandler(){ + }, + errorThrower(){ + } + }, + requestInterceptors: [], + responseInterceptors: [] +}; +``` + +Besides `errorConfig`, `requestInterceptors`, and `responseInterceptors`, other configurations are directly passed through to [axios](https://axios-http.com/docs/req_config)'s request configuration. **The rules configured here apply to all** `request` and `useRequest` **methods**. + +The runtime configuration options of `plugin-request` are introduced below. At the end of this section, we will provide a complete runtime configuration example, describing its functionality in detail. + +#### errorConfig +If you want to set a unified error handling scheme for your requests, you can configure it here. + +`errorThrower` takes the data returned by your backend and needs to throw an error you define. You can process the backend data here as needed. + +Our `request` will catch the error thrown by `errorThrower` and execute your `errorHandler` method, which accepts two arguments. The first argument is the caught error, and the second argument is the request's opts. + +`errorHandler` and `errorThrower` need to be used together. A complete example is provided at the end of the document. + +If you find this way of error handling too complicated, you can directly implement your error handling in the interceptors. + +:::info{title=🚨} +`errorThrower` is implemented using `responseInterceptors`, triggered when `data.success` is `false`. +::: + +#### requestInterceptors +Add request phase interceptors to the request method. + +Pass in an array where each element is an interceptor. They will be registered on the axios instance in order. The syntax for writing interceptors is consistent with axios request interceptor. It needs to take the request config as an argument and return it. + +We recommend using `RequestConfig`, which helps you write your interceptors in a standardized manner. + +e.g. +```ts +const request: RequestConfig = { + requestInterceptors: [ + // directly write a function as an interceptor + (url, options) => + { + // do something + return { url, options } + }, + // a tuple, the first element is the request interceptor, the second is the error handler + [(url, options) => {return { url, options }}, (error) => {return Promise.reject(error)}], + // array, omitting error handler + [(url, options) => {return { url, options }}] + ] + +} +``` + +Furthermore, to better accommodate umi-request, we allow umi-request interceptor syntax, even though it might not pass TypeScript's syntax check. + +#### responseInterceptors +Add response phase interceptors to the request method. + +Pass in an array where each element is an interceptor. They will be registered on the axios instance in order. The syntax for writing interceptors is consistent with axios response interceptor. It takes the axios response as an argument and returns it. + +We recommend using `RequestConfig`, which helps you write your interceptors in a standardized manner. + +e.g. +```ts +const request: RequestConfig = { + responseInterceptors: [ + // directly write a function as an interceptor + (response) => + { + // No need for asynchronous processing to read response body content, can directly read from data, some fields can be found in the config + const { data = {} as any, config } = response; + // do something + return response + }, + // a tuple, the first element is the request interceptor, the second is the error handler + [(response) => {return response}, (error) => {return Promise.reject(error)}], + // array, omitting error handler + [(response) => {return response}] + ] + +} +``` + +**Note: We will register interceptors according to your array sequence, but their execution order follows axios's convention, with request interceptors added later executing first, and response interceptors added later executing last** + +## API +### useRequest +The plugin has built-in [@ahooksjs/useRequest](https://ahooks-v2.js.org/hooks/async), allowing you to consume data simply and conveniently within components. The example is as follows: +```typescript +import { useRequest } from 'umi'; + +export default function Page() { + const { data, error, loading } = useRequest(() => { + return services.getUserList('/api/test'); + }); + if (loading) { + return
loading...
; + } + if (error) { + return
{error.message}
; + } + return
{data.name}
; +}; +``` +In the above code, `data` is not the data returned by your backend, but its internal `data`, (because the default build-time configuration is 'data') + +It should be noted that ahooks has been updated to 3.0, but for making it less difficult for `umi@3` projects to upgrade, we continued to use ahooks 2.0 + + +### request +By `import { request } from '@@/plugin-request'`, you can use the built-in request method. + +`request` accepts `options` in addition to passing through all of [axios](https://axios-http.com/docs/req_config)'s config, we also added a few extra attributes `skipErrorHandler`, `getResponse`, `requestInterceptors` and `responseInterceptors`. + +The example is as follows: +```typescript +request('/api/user', { + params: { name : 1 }, + timeout: 2000, + // other axios options + skipErrorHandler: true, + getResponse: false, + requestInterceptors: [], + responseInterceptors: [], +} +``` + +When you want a particular request to skip error handling, you can achieve this by setting `skipErrorHandler` to `true`. + +request returns the data from your backend by default, if you wish to receive the complete response structure from axios, it can be achieved by passing `{ getResponse: true }`. + +`requestInterceptors` and `responseInterceptors` are written in the same way as the interceptors in runtime configuration, but the difference is that the interceptors registered here are "one-off". Furthermore, the interceptors written here will be registered after those in the runtime configuration. + +**Note: When you have used errorHandler, the response interceptors registered here will be ineffective, because errorHandler will throw error** + +### RequestConfig +This is an interface definition that can help you better configure runtime settings. +```typescript +import type { RequestConfig } from 'umi'; + +export const request:RequestConfig = {}; +``` +Note that you should add type when importing + +## umi@3 to umi@4 +In the upgrade from `umi@3` to `umi@4`, we discontinued umi-request and chose axios as the default request solution. Some functionality changes occurred in this switch. + +### Changes in runtime configuration +Compared to `umi@3`, `umi@4`'s runtime configuration has undergone significant changes. +```diff + export const request: RequestConfig = { + errorConfig: { +++ errorHandler: () => {}, +++ errorThrower: () => {} +-- errorPage: '', +-- adaptor: ()=>{}, + }; +-- middlewares: [], +++ requestInterceptors: [], +++ responseInterceptors: [], + ... // Differences between umi-request and axios. + }; +``` + +- umi-request's configuration items have become axios's configuration items. +- Removed the middlewares middleware. You can use axios's [interceptors](https://axios-http.com/docs/interceptors) to achieve the same functionality. +- errorConfig removed all original settings, adding errorHandler and errorThrower for unified error handling settings. + +Replacing middleware. For a `umi@3` middleware, content before the `next()` method should be placed in `requestInterceptors`, while content after the `next()` method should be placed in `responseInterceptors`. + +```ts + +// Middleware +async function middleware(ctx, next) { + const { url, options } = req; + if (url.indexOf('/api') !== 0) { + ctx.req.url = `/api/v1/${url}`; + } + await next(); + if (!ctx.res.success) { + // do something + } +} + +// Interceptor +{ + requestInterceptors:[ + (config) => { + if (config.url.indexOf('/api') !== 0) { + config.url = `/api/v1/${url}`; + } + return config; + } + ], + responseInterceptors: [ + (response) => { + if(!response.data.success){ + // do something + } + } + ] +} +``` + +### Changes in request method parameters +[umi-request](https://github.com/umijs/umi-request#request-options) and [axios](https://axios-http.com/docs/req_config) have some differences in configuration items. You can compare them by referring to their respective documentation. + +### GET request parameter serialization + +[Umi@3](https://github.com/umijs/umi-request/blob/master/src/middleware/simpleGet.js) uses the same Key to serialize arrays by default. Umi@4 requests based on axios, by default, serialize in the form with brackets `[]`. + +```tsx +// Umi@3 +import { useRequest } from 'umi'; +// a: [1,2,3] => a=1&a=2&a=3 + +// Umi@4 +import { useRequest } from '@umijs/max'; +// a: [1,2,3] => a[]=1&a[]=2&a[]=3 +``` + +If you wish to maintain the Umi@3 form, you can do so: + +```ts +// src/app.[ts|tsx] + +/** @doc https://github.com/sindresorhus/query-string#arrayformat-1 */ ++ import queryString from 'query-string'; + +export const request: RequestConfig = { ++ paramsSerializer(params) { ++ return queryString.stringify(params); ++ }, + ... +} +``` + +## Runtime configuration example +Here's a complete example of runtime configuration, to help you better customize the request scheme for your project. + +```ts +import { RequestConfig } from './request'; + +// Error handling scheme: Error types +enum ErrorShowType { + SILENT = 0, + WARN_MESSAGE = 1, + ERROR_MESSAGE = 2, + NOTIFICATION = 3, + REDIRECT = 9, +} +// Response data structure agreed with the backend +interface ResponseStructure { + success: boolean; + data: any; + errorCode?: number; + errorMessage?: string; + showType?: ErrorShowType; +} + +// Runtime configuration +export const request: RequestConfig = { + // Unified request settings + timeout: 1000, + headers: {'X-Requested-With': 'XMLHttpRequest'}, + + // Error handling: umi@3's error handling scheme. + errorConfig: { + // Error throwing + errorThrower: (res: ResponseStructure) => { + const { success, data, errorCode, errorMessage, showType } = res; + if (!success) { + const error: any = new Error(errorMessage); + error.name = 'BizError'; + error.info = { errorCode, errorMessage, showType, data }; + throw error; // Throw custom error + } + }, + // Error catching and handling + errorHandler: (error: any, opts: any) => { + if (opts?.skipErrorHandler) throw error; + // The errors thrown by our errorThrower. + if (error.name === 'BizError') { + const errorInfo: ResponseStructure | undefined = error.info; + if (errorInfo) { + const { errorMessage, errorCode } = errorInfo; + switch (errorInfo.showType) { + case ErrorShowType.SILENT: + // do nothing + break; + case ErrorShowType.WARN_MESSAGE: + message.warn(errorMessage); + break; + case ErrorShowType.ERROR_MESSAGE: + message.error(errorMessage); + break; + case ErrorShowType.NOTIFICATION: + notification.open({ + description: errorMessage, + message: errorCode, + }); + break; + case ErrorShowType.REDIRECT: + // TODO: redirect + break; + default: + message.error(errorMessage); + } + } + } else if (error.response) { + // Axios error + // The request was made, and the server responded with a status code that falls out of the range of 2xx + message.error(`Response status:${error.response.status}`); + } else if (error.request) { + // The request was made but no response was received + // \`error.request\` is an instance of XMLHttpRequest in the browser and an instance of + // http.ClientRequest in node.js + message.error('None response! Please retry.'); + } else { + // Something happened in setting up the request that triggered an error + message.error('Request error, please retry.'); + } + }, + + }, + + // Request interceptors + requestInterceptors: [ + (config) => { + // Intercept request configurations for personalized processing. + const url = config.url.concat('?token = 123'); + return { ...config, url}; + } + ], + + // Response interceptors + responseInterceptors: [ + (response) => { + // Intercept the response data for personalized processing + const { data } = response; + if(!data.success){ + message.error('Request failed!'); + } + return response; + } + ] +}; +``` + +The above example's error handling scheme is derived from `umi@3`'s built-in error handling. In this version, we removed it to allow users greater freedom in customizing their error handling schemes. If you still want to use it, you can paste this runtime configuration into your project. + +You can also write your own error handling through response interceptors, **not limited to errorConfig**. diff --git a/docs/docs/docs/max/styled-components.en-US.md b/docs/docs/docs/max/styled-components.en-US.md new file mode 100644 index 000000000000..2a36b8e4acef --- /dev/null +++ b/docs/docs/docs/max/styled-components.en-US.md @@ -0,0 +1,94 @@ +--- +order: 10 +toc: content +translated_at: '2024-03-17T08:11:13.382Z' +--- + +# styled-components + +@umijs/max comes with the [styled-components](https://styled-components.com/) styling solution built-in. + +## Enabling + +For @umijs/max, enable by configuring. + +```ts {2} +export default { + styledComponents: {}, +} +``` + +For umi, first install `@umijs/plugins` dependency, then enable through configuration. + +```bash +$ pnpm i @umijs/plugins -D +``` + +```ts +export default { + plugins: ['@umijs/plugins/dist/styled-components'], + styledComponents: {}, +} +``` + +## Features + +The plugin does a few things for you, + +1. Most of the styled-components exports can be imported from `umi` or `@umijs/max`. + +2. Supports enabling the styled-components babel plugin through configuration in dev mode only. + +3. Supports declaring global styles via runtime configuration. + +## Configuration Options + +The following configurations can be made in `styledComponents`. + +- `babelPlugin`: Object, enable the styled-components babel plugin, effective in dev mode only + +For example: + +```ts +export default { + styledComponents: { + babelPlugin: {}, + }, +} +``` + +When your import source is not `umi` / `@umijs/max`, you need to configure the import source to `topLevelImportPaths` to make the babel plugin work, such as: + +```ts +import { styled } from 'alita' +``` + +```ts +export default { + styledComponents: { + babelPlugin: { + topLevelImportPaths: ['alita'] + }, + }, +} +``` + +## Runtime Configuration Options + +Includes the following configurations. + +- `GlobalStyle`: ReactComponent + +For example: + +```ts +import { createGlobalStyle } from "umi"; + +export const styledComponents = { + GlobalStyle: createGlobalStyle` + h1 { + background: #ccc; + } + ` +} +``` diff --git a/docs/docs/docs/max/styled-components.md b/docs/docs/docs/max/styled-components.md index 0bb77889390c..bc8d461752c2 100644 --- a/docs/docs/docs/max/styled-components.md +++ b/docs/docs/docs/max/styled-components.md @@ -55,6 +55,22 @@ export default { } ``` +当你的导入来源不是 `umi` / `@umijs/max` 时,需将导入来源配置到 `topLevelImportPaths` 才可以使该 babel 插件生效,如: + +```ts +import { styled } from 'alita' +``` + +```ts +export default { + styledComponents: { + babelPlugin: { + topLevelImportPaths: ['alita'] + }, + }, +} +``` + ## 运行时配置项 包含以下配置。 @@ -64,7 +80,7 @@ export default { 比如: ```ts -import {createGlobalStyle} from "umi"; +import { createGlobalStyle } from "umi"; export const styledComponents = { GlobalStyle: createGlobalStyle` diff --git a/docs/docs/docs/max/tailwindcss.mdd b/docs/docs/docs/max/tailwindcss.md similarity index 100% rename from docs/docs/docs/max/tailwindcss.mdd rename to docs/docs/docs/max/tailwindcss.md diff --git a/docs/docs/docs/max/valtio.en-US.md b/docs/docs/docs/max/valtio.en-US.md new file mode 100644 index 000000000000..60a0a8b488d5 --- /dev/null +++ b/docs/docs/docs/max/valtio.en-US.md @@ -0,0 +1,198 @@ +--- +order: 12 +toc: content +translated_at: '2024-03-17T08:10:46.432Z' +--- + +# valtio + +@umijs/max comes with a built-in valtio data flow solution. + +## Enable valtio + +Configure to enable. + +```ts +export default { + valtio: {}, +} +``` + +## Getting Started + +### Basic Usage + +Extremely simple. + +```ts +import { proxy, useSnapshot } from 'umi'; + +// 1. Define data +const state = proxy({ count: 0 }); +// 2. Use data +const snap = useSnapshot(state); +snap.count; +// 3. Update data +state.count += 1; +``` + +### Access Outside React + +Naturally supported. + +```ts +import { proxy } from 'umi'; + +const state = proxy({ count: 0 }); +state.count; +state.count += 1; +``` + +### Data Deduction + +```ts +import { proxyWithComputed } from 'umi'; + +const state = proxyWithComputed({ + count: 0, +}, { + double: snap => snap.count * 2, +}); +``` + +### Actions and Async Actions + +Two ways to use, can be combined with state or separated. + +```ts +import { proxy } from 'umi'; + +// Method one: Combine +const state = proxy({ + count: 0, + actions: { + add() { + // Note, do not use this.count, will error when called based on snap + state.count += 1; + }, + } +}); +// Method two: Separate +const state = proxy({ count: 0 }); +const actions = { + add() { + state.count += 1; + }, + // Async action + async addAsync() { + state.count += await fetch('/api/add'); + }, +}; +``` + +### Splitting and Combining Data Structures + +```ts +import { proxy } from 'umi'; + +// For example, as follows defined +// state.foo and state.bar are both proxies, can be split and used +const state = proxy({ + foo: { a: 1 }, + bar: { b: 1 }, +}); + +// Combination +const foo = proxy({ a: 1 }); +const bar = proxy({ b: 1 }); +const state = proxy({ foo, bar }); +``` + +### Component Encapsulation + +If the content of props is unrelated to state, it can be left unhandled; if related, wrap it with context as follows, while synchronizing props to state data. + +```ts +import { proxy } from 'umi'; + +// 1. createContext +const MyContext = createContext(); +// 2. Provider +const value = useRef(proxy({ count: 0 })).current; + +// 3. useContext +useContext(MyContext); +``` + +### Redux DevTools Support + +```ts +import { proxy, proxyWithDevtools } from 'umi'; + +const state = proxy({ count: 0 }); +proxyWithDevtools(state, { name: 'count', enabled: true }); +``` + +### Redo & Undo Support + +```ts +import { proxyWithHistory } from 'umi'; + +const state = proxyWithHistory({ + count: 0, +}); +state.value.count; +state.value.count += 1; +state.undo(); +state.redo(); +state.history; +``` + +### Persistent Cache + +To be implemented. + +```ts +import { proxyWithPersistent } from 'umi'; + +const state = proxyWithPersistent({ + count: 0, +}, { + type: 'localStorage', + key: 'count', +}); +``` + +### Extension + +Valtio is based on a composable extension approach, which provides better type hints compared to the middleware approach. For instance, to implement the earlier mentioned proxyWithPersistent, a simpler solution would be as follows, + +```ts +export function proxyWithPersist(val: V, opts: { + key: string; +}) { + const local = localStorage.getItem(opts.key); + const state = proxy(local ? JSON.parse(local) : val); + subscribe(state, () => { + localStorage.setItem(opts.key, JSON.stringify(snapshot(state))); + }); + return state; +} +``` + +### Compatibility + +1) Requires React 16.8 or above, 2) Does not support IE 11, 3) map and set cannot be used directly, need to use the valtio provided proxyMap and proxySet instead. + +```ts +import { proxy, proxyMap } from 'umi'; + +const state = proxy({ + todos: proxyMap([[1, {id:1,text:'Learn Umi'}]]), + filter: 'all', +}); +``` + +### Testing + +You can test the store directly, or test React components based on the store. Write cases as usual, the latter are recommended to use @testing-library/react. diff --git a/docs/package.json b/docs/package.json index 400c37441eda..8f705078e1bb 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,7 @@ { "name": "@umijs/docs", - "version": "0.0.1", + "version": "1.0.0", + "private": true, "scripts": { "build": "dumi build", "dev": "dumi dev", @@ -9,10 +10,9 @@ }, "dependencies": { "@ant-design/icons-svg": "^4.2.1", - "react-countup": "^6.4.2", - "styled-components": "6.0.0-rc.0" + "react-countup": "^6.4.2" }, "devDependencies": { - "dumi": "^2.2.5" + "dumi": "^2.2.16" } } diff --git a/docs/plugin.ts b/docs/plugin.ts new file mode 100644 index 000000000000..189e2edf4345 --- /dev/null +++ b/docs/plugin.ts @@ -0,0 +1,11 @@ +import { IApi } from 'dumi'; + +export default (api: IApi) => { + api.modifyBabelPresetOpts((memo) => { + // we do not write UI library so enable it + // https://github.com/umijs/dumi/commit/c5e6c8877f5b57f649e47b664e2a6d2701961f73 + memo.pluginAutoCSSModules = {}; + + return memo; + }); +}; diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 59d38c145338..3527c37c40ef 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "jsx": "react", + "jsx": "react-jsx", "strict": true, "skipLibCheck": true, "esModuleInterop": true, @@ -10,5 +10,5 @@ "@@/*": [".dumi/tmp/*"] } }, - "include": [".dumi/**/*", ".dumirc.ts"] + "include": [".dumirc.ts"] } diff --git a/examples/ant-design-pro/config/config.ts b/examples/ant-design-pro/config/config.ts index 9537b4cf3432..dd3369651db6 100644 --- a/examples/ant-design-pro/config/config.ts +++ b/examples/ant-design-pro/config/config.ts @@ -39,7 +39,7 @@ export default defineConfig({ // TODO: vite mode don't support ie 11 // ie: 11, }, - // umi routes: https://umijs.org/docs/routing + // umi routes: https://umijs.org/docs/guides/routes routes: [ { path: '/user', @@ -338,5 +338,6 @@ export default defineConfig({ codeSplitting: { jsStrategy: 'granularChunks', }, - ui: {}, + // ui: {}, + mako: {}, }); diff --git a/examples/ant-design-pro/config/routes.ts b/examples/ant-design-pro/config/routes.ts deleted file mode 100644 index ea518bbaddee..000000000000 --- a/examples/ant-design-pro/config/routes.ts +++ /dev/null @@ -1,58 +0,0 @@ -export default [ - { - path: '/user', - layout: false, - routes: [ - { - path: '/user', - routes: [ - { - name: 'login', - path: '/user/login', - component: './user/Login', - }, - ], - }, - { - component: './404', - }, - ], - }, - { - path: '/welcome', - name: 'welcome', - icon: 'smile', - component: './Welcome', - }, - { - path: '/admin', - name: 'admin', - icon: 'crown', - access: 'canAdmin', - component: './Admin', - routes: [ - { - path: '/admin/sub-page', - name: 'sub-page', - icon: 'smile', - component: './Welcome', - }, - { - component: './404', - }, - ], - }, - { - name: 'list.table-list', - icon: 'table', - path: '/list', - component: './TableList', - }, - { - path: '/', - redirect: '/welcome', - }, - { - component: './404', - }, -]; diff --git a/examples/ant-design-pro/src/app.tsx b/examples/ant-design-pro/src/app.tsx index 0848c9e0d5f7..b92889440561 100644 --- a/examples/ant-design-pro/src/app.tsx +++ b/examples/ant-design-pro/src/app.tsx @@ -10,12 +10,6 @@ import { currentUser as queryCurrentUser } from './services/ant-design-pro/api'; const isDev = process.env.NODE_ENV === 'development'; const loginPath = '/user/login'; -// TODO: 不知道这是啥? -/** 获取用户信息比较慢的时候会展示一个 loading */ -// export const initialStateConfig = { -// loading: , -// }; - /** * @see https://umijs.org/zh-CN/plugins/plugin-initial-state * */ diff --git a/examples/ant-design-pro/src/loading.tsx b/examples/ant-design-pro/src/loading.tsx new file mode 100644 index 000000000000..abea1a7ef8a9 --- /dev/null +++ b/examples/ant-design-pro/src/loading.tsx @@ -0,0 +1,5 @@ +import { PageLoading } from '@ant-design/pro-components'; +const Loading = () => { + return ; +}; +export default Loading; diff --git a/examples/antd-pro-create/package.json b/examples/antd-pro-create/package.json index 6b5b11ea5e6c..dcbbde374867 100644 --- a/examples/antd-pro-create/package.json +++ b/examples/antd-pro-create/package.json @@ -85,8 +85,7 @@ "prettier": "^2.8.4", "start-server-and-test": "^1.15.2", "swagger-ui-dist": "^4.14.2", - "typescript": "^4.9.4", - "umi-presets-pro": "^1.0.5", + "umi-presets-pro": "^2.0.3", "umi-serve": "^1.9.11" }, "engines": { diff --git a/examples/create-umi-pro/package.json b/examples/create-umi-pro/package.json index bde3f5aa7d28..238b08b23efc 100644 --- a/examples/create-umi-pro/package.json +++ b/examples/create-umi-pro/package.json @@ -30,7 +30,6 @@ "prettier": "^2.8.4", "prettier-plugin-organize-imports": "^3.2.2", "prettier-plugin-packagejson": "^2.4.3", - "start-server-and-test": "^1.15.2", - "typescript": "^4.9.4" + "start-server-and-test": "^1.15.2" } } diff --git a/examples/create-umi-simple/package.json b/examples/create-umi-simple/package.json index 8b4b6758deed..43714d2b5234 100644 --- a/examples/create-umi-simple/package.json +++ b/examples/create-umi-simple/package.json @@ -21,7 +21,6 @@ "@types/react-dom": "^18.0.10", "cross-env": "^7.0.3", "cypress": "^12.0.0", - "start-server-and-test": "^1.15.2", - "typescript": "^4.9.4" + "start-server-and-test": "^1.15.2" } } diff --git a/examples/libs/package.json b/examples/libs/package.json index e8c1c1254815..f5a9163355bb 100644 --- a/examples/libs/package.json +++ b/examples/libs/package.json @@ -15,7 +15,7 @@ "react-redux": "^8.0.5", "redux": "^4.2.1", "swiper": "^8.4.5", - "swr": "2.0.4", + "swr": "^2.2.5", "umi": "workspace:*" } } diff --git a/examples/max/.umirc.ts b/examples/max/.umirc.ts index 3dbb892f951d..3ff7983d7f4c 100644 --- a/examples/max/.umirc.ts +++ b/examples/max/.umirc.ts @@ -5,13 +5,13 @@ export default defineConfig({ { title: 'site.title', path: '/', - icon: 'PlaySquareFilled', + icon: 'ic:baseline-14mp', component: 'index', name: 'index', }, { path: '/users', - icon: 'SmileFilled', + icon: 'local:rice', component: 'users', name: 'users', wrappers: ['@/wrappers/foo', '@/wrappers/bar'], @@ -105,6 +105,7 @@ export default defineConfig({ jsStrategy: 'granularChunks', }, icons: { + autoInstall: {}, include: ['local:rice', 'local:logo/umi', 'ant-design:fire-twotone'], }, }); diff --git a/examples/max/app.ts b/examples/max/app.ts index 55b9a051990d..6638bb0f9bb5 100644 --- a/examples/max/app.ts +++ b/examples/max/app.ts @@ -1,5 +1,4 @@ -// @ts-ignore -import type { RequestConfig } from '@@/plugin-request'; +import type { RequestConfig, RequestInterceptorAxios } from '@umijs/max'; import { message } from 'antd'; import { notification } from 'antd/es'; @@ -62,12 +61,16 @@ interface ResponseStructure { showType?: number; } +const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); + export const request: RequestConfig = { requestInterceptors: [ - (config) => { - console.log('Interceptor:', config); + (async (config) => { + console.log('Async Interceptor before :', config); + await sleep(500); + console.log('Async Interceptor after :', config); return config; - }, + }) satisfies RequestInterceptorAxios, (url, options) => { console.log(url, options); return { url, options }; @@ -78,6 +81,12 @@ export const request: RequestConfig = { console.log('responseInterceptor', res); return res; }, + async (res) => { + console.log('Async responseInterceptor before', res); + await sleep(500); + console.log('Async responseInterceptor after', res); + return res; + }, ], errorConfig: { errorHandler: (error: any, opts: any) => { diff --git a/examples/max/cypress/e2e/smoke.cy.ts b/examples/max/cypress/e2e/smoke.cy.ts index 9f5d7e0622eb..0f1c3c0ea61f 100644 --- a/examples/max/cypress/e2e/smoke.cy.ts +++ b/examples/max/cypress/e2e/smoke.cy.ts @@ -47,11 +47,30 @@ describe('Basic Test', () => { cy.get('li.ant-pro-base-menu-menu-item').contains('dva'); }); - it('can change local', () => { + it('can change Chinese locale render page', () => { cy.get('.ant-dropdown-trigger').find('i.anticon').click(); cy.contains('简体中文').click(); cy.get('li.ant-pro-base-menu-menu-item').contains('首页'); + cy.get('section#locales div.hello').should('have.text', '你好'); + cy.get('section#locales h1').should('have.text', '世界!'); + cy.get('section#locales div.user-welcome').should( + 'have.text', + '你好, 朋友', + ); + }); + + it('can change English locale render page', () => { + cy.get('.ant-dropdown-trigger').find('i.anticon').click(); + + cy.contains('English').click(); + cy.get('li.ant-pro-base-menu-menu-item').contains('Index'); + cy.get('section#locales div.hello').should('have.text', 'Hello'); + cy.get('section#locales h1').should('have.text', 'World!'); + cy.get('section#locales div.user-welcome').should( + 'have.text', + 'hello, friend', + ); }); it('tailwind css', () => { diff --git a/examples/max/locales/en-US.js b/examples/max/locales/en-US.js index f6b03f6b49ee..a0c32d0621c0 100644 --- a/examples/max/locales/en-US.js +++ b/examples/max/locales/en-US.js @@ -3,4 +3,7 @@ export default { World: 'World!', 'site.title': 'Index', 'about.title': 'About', + user:{ + welcome: 'hello, friend', + }, }; diff --git a/examples/max/locales/zh-CN.js b/examples/max/locales/zh-CN.js index 8eb2a829d1c8..87cab87664e7 100644 --- a/examples/max/locales/zh-CN.js +++ b/examples/max/locales/zh-CN.js @@ -3,4 +3,7 @@ export default { World: '世界!', 'site.title': '首页', 'about.title': '关于', + user:{ + welcome: '你好, 朋友', + } }; diff --git a/examples/max/package.json b/examples/max/package.json index ed643b96d75b..3f03f810cb20 100644 --- a/examples/max/package.json +++ b/examples/max/package.json @@ -18,10 +18,13 @@ "@ant-design/icons": "^4.7.0", "@umijs/max": "workspace:*", "antd": "^4.23.2", - "react": "18.1.0", - "react-dom": "18.1.0" + "dayjs": "^1.11.7", + "react": "18.3.1", + "react-dom": "18.3.1" }, "devDependencies": { + "@iconify-json/ic": "1.1.17", + "@iconify-json/solar": "1.1.9", "cross-env": "^7.0.3", "cypress": "^12.0.0", "start-server-and-test": "^1.15.2", diff --git a/examples/max/pages/dva.tsx b/examples/max/pages/dva.tsx index a8378537b1d7..9a5e9b7509c4 100644 --- a/examples/max/pages/dva.tsx +++ b/examples/max/pages/dva.tsx @@ -1,7 +1,6 @@ // @ts-ignore import { connect } from '@@/plugin-dva'; -// @ts-ignore -import dayjs from 'moment'; +import dayjs from 'dayjs'; function mapStateToProps(state: any) { return { count: state.count }; diff --git a/examples/max/pages/index.tsx b/examples/max/pages/index.tsx index f460a5942982..92f0e51c91c0 100644 --- a/examples/max/pages/index.tsx +++ b/examples/max/pages/index.tsx @@ -25,14 +25,21 @@ export default function HomePage() { const access = useAccess(); console.log('access', access); const intl = useIntl(); + return (

index page

-
{intl.formatMessage({ id: 'HELLO' })}
- + {/* 中英文语言切换 */} +
+
{intl.formatMessage({ id: 'HELLO' })}
+ +
+ {intl.formatMessage({ id: 'user.welcome' })} +
+
+
+
+ to home +
+ ); +}; + +export default About; diff --git a/examples/ssg-basename/src/pages/index.tsx b/examples/ssg-basename/src/pages/index.tsx new file mode 100644 index 000000000000..9385801fa5d1 --- /dev/null +++ b/examples/ssg-basename/src/pages/index.tsx @@ -0,0 +1,24 @@ +import React, { useState } from 'react'; +import { Link } from 'umi'; + +const Home = () => { + const [num, setNum] = useState(0); + return ( +
+
+ HOME page + +
+ +
+ to about +
+ ); +}; + +export default Home; diff --git a/examples/ssr-basename/.umirc.ts b/examples/ssr-basename/.umirc.ts new file mode 100644 index 000000000000..6b596c65a98c --- /dev/null +++ b/examples/ssr-basename/.umirc.ts @@ -0,0 +1,5 @@ +export default { + ssr: {}, + exportStatic: {}, + base: '/base/', +}; diff --git a/examples/ssr-basename/package.json b/examples/ssr-basename/package.json new file mode 100644 index 000000000000..7b471696e43a --- /dev/null +++ b/examples/ssr-basename/package.json @@ -0,0 +1,14 @@ +{ + "name": "@example/ssr-basename", + "private": true, + "description": "该案例用于测试 SSR 中带 basename 的情况. 在 dev 或 build 下, 服务端需要返回正确的 html 片段, 比如 a 标签需要有正确的 base 前缀", + "scripts": { + "build": "umi build", + "dev": "umi dev", + "setup": "umi setup", + "start": "npm run dev" + }, + "dependencies": { + "umi": "workspace:*" + } +} diff --git a/examples/ssr-basename/src/layouts/index.tsx b/examples/ssr-basename/src/layouts/index.tsx new file mode 100644 index 000000000000..6ec507a5a7fa --- /dev/null +++ b/examples/ssr-basename/src/layouts/index.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +import { Outlet } from 'umi'; + +const Layout = () => { + return ( +
+
HEADER
+ +
+ ); +}; + +export default Layout; diff --git a/examples/ssr-basename/src/pages/about/index.tsx b/examples/ssr-basename/src/pages/about/index.tsx new file mode 100644 index 000000000000..e5d53662f556 --- /dev/null +++ b/examples/ssr-basename/src/pages/about/index.tsx @@ -0,0 +1,24 @@ +import React, { useState } from 'react'; +import { Link } from 'umi'; + +const About = () => { + const [num, setNum] = useState(0); + + return ( +
+
+ ABOUT page + +
+
+ to home +
+ ); +}; + +export default About; diff --git a/examples/ssr-basename/src/pages/index.tsx b/examples/ssr-basename/src/pages/index.tsx new file mode 100644 index 000000000000..9385801fa5d1 --- /dev/null +++ b/examples/ssr-basename/src/pages/index.tsx @@ -0,0 +1,24 @@ +import React, { useState } from 'react'; +import { Link } from 'umi'; + +const Home = () => { + const [num, setNum] = useState(0); + return ( +
+
+ HOME page + +
+ +
+ to about +
+ ); +}; + +export default Home; diff --git a/examples/ssr-demo/.umirc.ts b/examples/ssr-demo/.umirc.ts index 18627a8fbbc7..3226de45a815 100644 --- a/examples/ssr-demo/.umirc.ts +++ b/examples/ssr-demo/.umirc.ts @@ -1,10 +1,18 @@ export default { svgr: {}, hash: true, + mfsu: false, routePrefetch: {}, manifest: {}, clientLoader: {}, - ssr: { - serverBuildPath: './umi.server.js', - }, + ssr: {}, + exportStatic: {}, + styles: [`body { color: red; }`], + // mako: {}, + metas: [ + { + name: 'test', + content: 'content', + }, + ], }; diff --git a/examples/ssr-demo/mako.config.json b/examples/ssr-demo/mako.config.json new file mode 100644 index 000000000000..1ade5ccbfab6 --- /dev/null +++ b/examples/ssr-demo/mako.config.json @@ -0,0 +1,4 @@ +{ + "moduleIdStrategy": "named", + "devtool": false +} diff --git a/examples/ssr-demo/package.json b/examples/ssr-demo/package.json index 564ea9a69734..3b81a184639b 100644 --- a/examples/ssr-demo/package.json +++ b/examples/ssr-demo/package.json @@ -9,6 +9,8 @@ "start:prod": "node ./production-server.js" }, "dependencies": { + "@ant-design/cssinjs": "^1.18.5", + "antd": "^5", "express": "4.18.2", "umi": "workspace:*" } diff --git a/examples/ssr-demo/plugin.ts b/examples/ssr-demo/plugin.ts new file mode 100644 index 000000000000..c6f5bd1b336b --- /dev/null +++ b/examples/ssr-demo/plugin.ts @@ -0,0 +1,28 @@ +import { IApi } from 'umi'; + +export default (api: IApi) => { + // Only for mock, this hack is incomplete, do not use it in production environment + api.onBeforeMiddleware(({ app }) => { + app.use((req, res, next) => { + if (req.query?.fallback) { + // modify response + const originWrite = res.write; + // @ts-ignore + res.write = function (chunk) { + const isHtml = ~(res.getHeader('Content-Type') as string)?.indexOf( + 'text/html', + ); + if (isHtml) { + chunk instanceof Buffer && (chunk = chunk.toString()); + chunk = chunk.replace( + /window\.__UMI_LOADER_DATA__/, + 'window.__UMI_LOADER_DATA_FALLBACK__', + ); + } + originWrite.apply(this, arguments as any); + }; + } + next(); + }); + }); +}; diff --git a/examples/ssr-demo/src/layouts/index.tsx b/examples/ssr-demo/src/layouts/index.tsx new file mode 100644 index 000000000000..06c6f7ea086c --- /dev/null +++ b/examples/ssr-demo/src/layouts/index.tsx @@ -0,0 +1,23 @@ +import { createCache, extractStyle, StyleProvider } from '@ant-design/cssinjs'; +import { useState } from 'react'; +import { Outlet, useServerInsertedHTML } from 'umi'; + +export default function Layout() { + const [cssCache] = useState(() => createCache()); + + useServerInsertedHTML(() => { + const style = extractStyle(cssCache, { plain: true }); + return ( + + ); + }); + + return ( + + + + ); +} diff --git a/examples/ssr-demo/src/pages/index.tsx b/examples/ssr-demo/src/pages/index.tsx index 1c1efec02c6d..a86932621d0b 100644 --- a/examples/ssr-demo/src/pages/index.tsx +++ b/examples/ssr-demo/src/pages/index.tsx @@ -1,7 +1,12 @@ -import React from 'react'; +import { Input } from 'antd'; +import { useId } from 'react'; import { + ClientLoader, Link, + MetadataLoader, + ServerLoader, useClientLoaderData, + useLoaderData, useServerInsertedHTML, useServerLoaderData, } from 'umi'; @@ -15,22 +20,34 @@ import './index.less'; import styles from './index.less'; // @ts-ignore import umiLogo from './umi.png'; +// @ts-ignore export default function HomePage() { const clientLoaderData = useClientLoaderData(); - const serverLoaderData = useServerLoaderData(); + const serverLoaderData = useServerLoaderData(); + const loaderData = useLoaderData(); useServerInsertedHTML(() => { - return
inserted html
; + return ( + + ); }); + const id = useId(); + return (
-

Hello~

+

Hello~1

+

id: {id}

This is index.tsx

I should be pink

I should be cyan

client loader data: {JSON.stringify(clientLoaderData)}

server loader data: {JSON.stringify(serverLoaderData)}

+

merge loader data: {JSON.stringify(loaderData)}

); } -export async function clientLoader() { +export const clientLoader: ClientLoader = async ({}) => { await new Promise((resolve) => setTimeout(resolve, Math.random() * 1000)); - return { message: 'data from client loader of index.tsx' }; -} + return { clientMessage: 'data from client loader of index.tsx' }; +}; +clientLoader.hydrate = true; -export async function serverLoader() { +export const serverLoader: ServerLoader = async (req) => { + const url = req?.request?.url; await new Promise((resolve) => setTimeout(resolve, Math.random() * 1000)); - return { message: 'data from server loader of index.tsx' }; -} + return { serverMessage: `data from server loader of index.tsx, url: ${url}` }; +}; + +// SEO-设置页面的TDK +export const metadataLoader: MetadataLoader<{ message: string }> = ( + serverLoaderData, +) => { + return { + title: '开发者学堂 - 支付宝开放平台', + description: '支付宝小程序开发入门实战经验在线课程,让更多的开发者获得成长', + keywords: ['小程序开发', '入门', '实战', '小程序云'], + lang: 'zh-CN', + metas: [ + { + name: 'msg', + content: serverLoaderData.message, + }, + ], + }; +}; diff --git a/examples/ssr-demo/src/pages/users/user2/info.tsx b/examples/ssr-demo/src/pages/users/user2/info.tsx index 42300dde65e0..a78084122427 100644 --- a/examples/ssr-demo/src/pages/users/user2/info.tsx +++ b/examples/ssr-demo/src/pages/users/user2/info.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { useClientLoaderData, useServerLoaderData } from 'umi'; export default () => { @@ -20,5 +19,5 @@ export async function clientLoader() { export async function serverLoader() { await new Promise((resolve) => setTimeout(resolve, Math.random() * 1000)); - return { message: 'data from server loader of users/user2/info.tsx' }; + return { messageUser2: 'data from server loader of users/user2/info.tsx' }; } diff --git a/examples/ssr-demo/tsconfig.json b/examples/ssr-demo/tsconfig.json new file mode 100644 index 000000000000..133cfd82a23f --- /dev/null +++ b/examples/ssr-demo/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./src/.umi/tsconfig.json" +} diff --git a/examples/ssr-todos/.env.local b/examples/ssr-todos/.env.local deleted file mode 100644 index e08e7361b1eb..000000000000 --- a/examples/ssr-todos/.env.local +++ /dev/null @@ -1 +0,0 @@ -AUTH_TOKEN_KEY='bearer 0af8a3f3cd92fc1f268348561df50a99cd1190b700770986ad4fabc54ad4b0d30a37dbd0f46d791255e1bb4eb92d9d45be50bafd7ce6c3f40d54d1363f16b3eebeff40522b754bf400b141b11a189cc0378a6ca302987e490b2a71c2f7ad64b47a3b9ee7390f75a69495dc8d294d0a6af28780708491d399af62f89565bed1c2' diff --git a/examples/ssr-todos/.umirc.ts b/examples/ssr-todos/.umirc.ts index 7154379446bf..daea61ad5fea 100644 --- a/examples/ssr-todos/.umirc.ts +++ b/examples/ssr-todos/.umirc.ts @@ -1,9 +1,5 @@ -export default { - ssr: { - platform: 'vercel', - }, - // hash: true, - apiRoute: { - platform: 'vercel', - }, -}; +import { defineConfig } from 'umi'; + +export default defineConfig({ + ssr: {}, +}); diff --git a/examples/ssr-todos/package.json b/examples/ssr-todos/package.json index dc5330d84588..701ee342496b 100644 --- a/examples/ssr-todos/package.json +++ b/examples/ssr-todos/package.json @@ -9,8 +9,12 @@ "start:prod": "node ./production-server.js" }, "dependencies": { - "express": "4.18.2", - "isomorphic-unfetch": "^4.0.2", + "axios": "^1.6.2", "umi": "workspace:*" + }, + "devDependencies": { + "@types/express": "^4.17.21", + "cors": "^2.8.5", + "express": "4.18.2" } } diff --git a/examples/ssr-todos/plugin.ts b/examples/ssr-todos/plugin.ts new file mode 100644 index 000000000000..da15ce4382ff --- /dev/null +++ b/examples/ssr-todos/plugin.ts @@ -0,0 +1,10 @@ +import express from 'express'; +import type { IApi } from 'umi'; +const { todoServer } = require('./todo'); + +export default (api: IApi) => { + api.onBeforeMiddleware(({ app }) => { + app.use(express.json()); + todoServer(app); + }); +}; diff --git a/examples/ssr-todos/production-server.js b/examples/ssr-todos/production-server.js index 475db2a87388..dc40b12a6dd2 100644 --- a/examples/ssr-todos/production-server.js +++ b/examples/ssr-todos/production-server.js @@ -1,13 +1,14 @@ const express = require('express'); +const cors = require('cors'); const app = express(); -const port = 3000; +const { todoServer } = require('./todo'); +const port = 8000; -// app.use(async (req, res, next) => { -// if (req.path.match(/([0-9]+|umi)\.js/)) { -// await new Promise((resolve) => setTimeout(resolve, 1000)); -// } -// next(); -// }); +app.use(cors()) +app.use(express.json()) + +// mock server api +todoServer(app) // Logger middleware app.use((req, res, next) => { diff --git a/examples/ssr-todos/src/api/todos.ts b/examples/ssr-todos/src/api/todos.ts deleted file mode 100644 index 92a841477794..000000000000 --- a/examples/ssr-todos/src/api/todos.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { UmiApiRequest, UmiApiResponse } from 'umi'; -import { createTodos, deleteTodo, updateTodo } from '../services/todos'; - -export default async function (req: UmiApiRequest, res: UmiApiResponse) { - if (req.method === 'POST') { - const data = await createTodos(JSON.parse(req.body)); - res.status(200).json({ success: true, data }); - } else if (req.method === 'DELETE') { - const data = await deleteTodo(JSON.parse(req.body).id); - res.status(200).json({ success: true, data }); - } else if (req.method === 'PUT') { - console.log('>> Update', req.query); - const id = req.query.id as string; - const data = await updateTodo(id, JSON.parse(req.body)); - res.status(200).json({ success: true, data }); - } else { - res.status(200).json({ success: false }); - } -} diff --git a/examples/ssr-todos/src/api/todos/$id.ts b/examples/ssr-todos/src/api/todos/$id.ts deleted file mode 100644 index 902ca3407b90..000000000000 --- a/examples/ssr-todos/src/api/todos/$id.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { UmiApiRequest, UmiApiResponse } from 'umi'; -import { updateTodo } from '../../services/todos'; - -export default async function (req: UmiApiRequest, res: UmiApiResponse) { - if (req.method === 'PUT') { - console.log('>> Update', req.params); - const id = req.params.id; - const data = await updateTodo(id, JSON.parse(req.body)); - res.status(200).json({ success: true, data }); - } -} diff --git a/examples/ssr-todos/src/pages/index.tsx b/examples/ssr-todos/src/pages/index.tsx index 3e21c4c9ad04..37658c6e7531 100644 --- a/examples/ssr-todos/src/pages/index.tsx +++ b/examples/ssr-todos/src/pages/index.tsx @@ -1,117 +1,140 @@ -import React from 'react'; -// @ts-ignore -import { useServerLoaderData, __useFetcher } from 'umi'; -import { listTodos } from '../services/todos'; -// @ts-ignore +import React, { useState } from 'react'; +import { useServerLoaderData } from 'umi'; +import { + createTodos, + deleteTodo, + getTodoList, + ITodo, + updateTodo, +} from '../services/todos'; import styles from './index.css'; -interface Todo { - id: string; - attributes: { - title: string; - done: boolean; - notes: string; - }; +interface ITodoProps { + data: ITodo; + refresh: () => Promise; + onChange: (data: Partial) => void; } -function Todo(props: { todo: Todo }) { - const fetcher = __useFetcher(); - function deleteHandler() { - console.log('Delete todo', props.todo.id); - fetch(`/api/todos`, { - method: 'DELETE', - body: JSON.stringify({ id: props.todo.id }), - }) - .then(() => { - fetcher.load(); - }) - .catch((e) => { - console.error(e); - }); - } - function changeDoneHandler(e: any) { - console.log('Change todo', props.todo.id); - fetch(`/api/todos?id=${props.todo.id}`, { - method: 'PUT', - body: JSON.stringify({ done: e.target.checked }), - }) - .then(() => { - fetcher.load(); - }) - .catch((e) => { - console.error(e); - }); - } +function Todo({ refresh, data, onChange }: ITodoProps) { + const id = data.id!; + + const deleteHandler = async () => { + console.log('Delete todo', id); + await deleteTodo(id); + await refresh(); + }; + + const changeDoneHandler = async (e: React.ChangeEvent) => { + console.log('Change todo', id, e.target.checked); + await updateTodo({ + id, + done: e.target.checked, + }); + await refresh(); + }; + + const changeTitleHandler = async () => { + await updateTodo({ + id, + title: data.title, + }); + await refresh(); + }; + return (
- {props.todo.attributes.title} + { + onChange({ + title: e.target.value, + }); + }} + /> + + +
); } -function Todos() { - const { data }: { data: { data: Todo[] } } = useServerLoaderData(); - return ( -
    - {data.data.map((todo) => { - return ( -
  • - -
  • - ); - })} -
+export default function HomePage() { + const serverLoaderData = useServerLoaderData().data; + const [todoList, setTodoList] = useState( + serverLoaderData?.data || [], ); -} -function Creator() { - const fetcher = __useFetcher(); - function submitHandler(e: any) { + const refresh = async () => { + const { data } = await getTodoList(); + setTodoList(data!); + }; + + const submitHandler = async (e: React.FormEvent) => { e.preventDefault(); - const title = e.target.title.value; - e.target.title.value = ''; - console.log('Create todo', title); - fetch('/api/todos', { - method: 'POST', - body: JSON.stringify({ title }), - }) - .then(() => { - fetcher.load(); - }) - .catch((e) => { - console.error(e); - }); - } - return ( -
-
- - -
-
- ); -} + const target = e.target as any as { title: { value: string } }; + await createTodos({ + title: target.title.value, + }); + target.title.value = ''; + await refresh(); + }; -export default function HomePage() { return (

Todos

- - +
+
+ + +
+
+
    + {todoList.map((todo) => { + return ( +
  • + { + setTodoList((prev) => { + const targetIdx = prev.findIndex( + (item) => item.id === todo.id, + ); + if (~targetIdx) { + const newData = { + ...prev[targetIdx], + ...data, + }; + return [ + ...prev.slice(0, targetIdx), + newData, + ...prev.slice(targetIdx + 1), + ]; + } + return prev; + }); + }} + /> +
  • + ); + })} +
); } -export async function serverLoader() { - return await listTodos(); -} +export const serverLoader = async () => { + const res = await getTodoList(); + return res; +}; diff --git a/examples/ssr-todos/src/services/todos.ts b/examples/ssr-todos/src/services/todos.ts index be35bb0e5059..405fd8873f2f 100644 --- a/examples/ssr-todos/src/services/todos.ts +++ b/examples/ssr-todos/src/services/todos.ts @@ -1,57 +1,47 @@ -import fetch from 'isomorphic-unfetch'; - -const API = 'http://localhost:1337/api/todos'; -const AUTH_TOKEN_KEY = process.env.AUTH_TOKEN_KEY!; - -export async function listTodos() { - return await ( - await fetch(API, { - headers: { - Authorization: AUTH_TOKEN_KEY, - }, - }) - ).json(); +import axios from 'axios'; + +const request = axios.create({ + baseURL: `http://localhost:8000/api`, + timeout: 10 * 1e3, +}); + +request.interceptors.response.use( + (response) => { + const isSuccess = response.data?.code === 0; + if (!isSuccess) { + return Promise.reject(response.data); + } + return response.data; + }, + (error) => { + return Promise.reject(error); + }, +); + +export interface ITodo { + id?: string; + title?: string; + done?: boolean; +} + +type IResponse = Promise<{ + data: T | null; + code: number; + message?: string; +}>; + +export function getTodoList() { + return request.get('/todo/list') as IResponse; } -export async function createTodos(data: { title: string }) { - const body = JSON.stringify({ data }); - return await ( - await fetch(API, { - method: 'POST', - headers: { - Authorization: AUTH_TOKEN_KEY, - 'Content-Type': 'application/json', - }, - body, - }) - ).json(); +export function createTodos(data: ITodo) { + return request.post('/todo/add', data) as IResponse; } -export async function updateTodo( - id: string, - data: { title?: string; completed?: boolean }, -) { - const body = JSON.stringify({ data }); - return await ( - await fetch(`${API}/${id}`, { - method: 'PUT', - headers: { - Authorization: AUTH_TOKEN_KEY, - 'Content-Type': 'application/json', - }, - body, - }) - ).json(); +export function updateTodo(data: ITodo & { id: string }) { + return request.post(`/todo/update`, data) as IResponse; } -export async function deleteTodo(id: string) { - return await ( - await fetch(`${API}/${id}`, { - method: 'DELETE', - headers: { - Authorization: AUTH_TOKEN_KEY, - 'Content-Type': 'application/json', - }, - }) - ).json(); +export function deleteTodo(id: string) { + return request.post(`/todo/delete`, { id }) as IResponse; } diff --git a/examples/ssr-todos/todo.js b/examples/ssr-todos/todo.js new file mode 100644 index 000000000000..2e03ec71e701 --- /dev/null +++ b/examples/ssr-todos/todo.js @@ -0,0 +1,67 @@ + +const todoList = [ + { + done: false, + id: 0, + title: 'Todo 1', + } +]; + +/** + * @param {import('express').Express} app + */ +function todoServer(app) { + const useGET = (path, handler) => { + app.get(path, handler); + } + const usePOST = (path, handler) => { + app.post(path, handler) + } + + useGET('/api/todo/list', (req, res) => { + res.json({ data: todoList, code: 0 }) + }) + + usePOST('/api/todo/add', (req, res) => { + const { title } = req.body + const target = { + id: Date.now(), + title: title || '', + done: false, + } + todoList.push(target); + res.json({ data: target, code: 0 }) + }) + + usePOST('/api/todo/update', (req, res) => { + const { id, title, done } = req.body; + const targetIdx = todoList.findIndex((item) => item.id == id); + if (~targetIdx) { + const target = todoList[targetIdx]; + const newTarget = { + ...target, + ...(title === undefined ? {} : { title }), + ...(done === undefined ? {} : { done }), + } + todoList[targetIdx] = newTarget; + res.json({ data: target, code: 0 }) + } else { + res.json({ data: null, code: -1, message: 'Not found' }) + } + }) + + usePOST('/api/todo/delete', (req, res) => { + const { id } = req.body; + const idx = todoList.findIndex((item) => item.id == id); + if (~idx) { + todoList.splice(idx, 1); + res.json({ data: null, code: 0 }) + } else { + res.json({ data: null, code: -1, message: 'Not found' }) + } + }) +} + +module.exports = { + todoServer, +} diff --git a/examples/ssr-todos/tsconfig.json b/examples/ssr-todos/tsconfig.json new file mode 100644 index 000000000000..133cfd82a23f --- /dev/null +++ b/examples/ssr-todos/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./src/.umi/tsconfig.json" +} diff --git a/examples/ssr-todos/typings.d.ts b/examples/ssr-todos/typings.d.ts new file mode 100644 index 000000000000..9ae2fc424b9d --- /dev/null +++ b/examples/ssr-todos/typings.d.ts @@ -0,0 +1 @@ +import 'umi/typings'; diff --git a/examples/ssr-todos/vercel.json b/examples/ssr-todos/vercel.json deleted file mode 100644 index aa2921328734..000000000000 --- a/examples/ssr-todos/vercel.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "routes": [ - { - "src": "/", - "dest": "/api/umi.server" - }, - { - "src": "/__serverLoader", - "dest": "/api/umi.server" - } - ] -} diff --git a/examples/test-test/esm_only_pkg/main.js b/examples/test-test/esm_only_pkg/main.js new file mode 100644 index 000000000000..c9aacefb2cd1 --- /dev/null +++ b/examples/test-test/esm_only_pkg/main.js @@ -0,0 +1,2 @@ +export default "in_esm_only_pkg"; + diff --git a/examples/test-test/esm_only_pkg/package.json b/examples/test-test/esm_only_pkg/package.json new file mode 100644 index 000000000000..7efeabbe89a5 --- /dev/null +++ b/examples/test-test/esm_only_pkg/package.json @@ -0,0 +1,6 @@ +{ + "name": "esm_only_pkg", + "version": "1.0.0", + "module": "main.js", + "dependencies": {} +} diff --git a/examples/test-test/foo.test.ts b/examples/test-test/foo.test.ts index 5a2039fb0498..3ae84888adcf 100644 --- a/examples/test-test/foo.test.ts +++ b/examples/test-test/foo.test.ts @@ -21,6 +21,7 @@ test('class', () => { return 'foo'; } } + const a = new A(); expect(a.foo()).toEqual('foo'); }); diff --git a/examples/test-test/importEsmOnlyPackage.test.ts b/examples/test-test/importEsmOnlyPackage.test.ts new file mode 100644 index 000000000000..e35da2f7d46c --- /dev/null +++ b/examples/test-test/importEsmOnlyPackage.test.ts @@ -0,0 +1,6 @@ +// @ts-ignore +import x from './esm_only_pkg'; + +test('import from esm only pkg', () => { + expect(x).toEqual('in_esm_only_pkg'); +}); diff --git a/examples/test-test/package.json b/examples/test-test/package.json index 68fdd04f4ea4..6819b7b3868f 100644 --- a/examples/test-test/package.json +++ b/examples/test-test/package.json @@ -17,7 +17,6 @@ "@types/jest": "^29.2.5", "@types/testing-library__jest-dom": "^5.14.5", "jest": "^29.4.3", - "ts-node": "^10", - "typescript": "^4.9.4" + "ts-node": "^10" } } diff --git a/examples/test-test/utils/mjs.mjs b/examples/test-test/utils/mjs.mjs new file mode 100644 index 000000000000..c874d5ad9aad --- /dev/null +++ b/examples/test-test/utils/mjs.mjs @@ -0,0 +1,3 @@ +export default function mjs() { + return 'mjs' +}; diff --git a/examples/test-test/utils/mjs.test.ts b/examples/test-test/utils/mjs.test.ts new file mode 100644 index 000000000000..2fd212b31203 --- /dev/null +++ b/examples/test-test/utils/mjs.test.ts @@ -0,0 +1,5 @@ +import mjs from './mjs.mjs'; + +it('imports from mjs', () => { + expect(mjs()).toBe('mjs'); +}); diff --git a/examples/test-vitest/package.json b/examples/test-vitest/package.json index 704c17fd5207..d477f49e774d 100644 --- a/examples/test-vitest/package.json +++ b/examples/test-vitest/package.json @@ -13,7 +13,6 @@ "@types/react-test-renderer": "^18.0.0", "@vitejs/plugin-react": "3.0.1", "react-test-renderer": "^18.2.0", - "typescript": "^4.9.4", "vitest": "^0.16.0" } } diff --git a/examples/with-antd-5/.umirc.ts b/examples/with-antd-5/.umirc.ts index e44d040dc177..3dc0e48482ab 100644 --- a/examples/with-antd-5/.umirc.ts +++ b/examples/with-antd-5/.umirc.ts @@ -11,6 +11,10 @@ export default { colorPrimary: '#1DA57A', }, }, + styleProvider: { + hashPriority: 'high', + legacyTransformer: true, + }, // dark: true, compact: true, /** diff --git a/examples/with-antd-5/app.ts b/examples/with-antd-5/app.ts index 61774c929b2a..5c663679a3f0 100644 --- a/examples/with-antd-5/app.ts +++ b/examples/with-antd-5/app.ts @@ -1,3 +1,4 @@ +import { theme } from 'antd'; import { RuntimeAntdConfig } from 'umi'; export const antd: RuntimeAntdConfig = (memo) => { @@ -5,5 +6,7 @@ export const antd: RuntimeAntdConfig = (memo) => { memo.appConfig.message ??= {}; memo.appConfig.message.duration = 5; + memo.theme!.algorithm = theme.darkAlgorithm; + return memo; }; diff --git a/examples/with-antd-5/package.json b/examples/with-antd-5/package.json index ca0a3dd6a5ab..87fbee1b1fe1 100644 --- a/examples/with-antd-5/package.json +++ b/examples/with-antd-5/package.json @@ -8,8 +8,9 @@ "start": "npm run dev" }, "dependencies": { + "@ant-design/cssinjs": "^1.16.0", "@umijs/plugins": "workspace:*", - "antd": "^5.3.0", + "antd": "^5.8.4", "umi": "workspace:*" } } diff --git a/examples/with-antd-5/pages/index.tsx b/examples/with-antd-5/pages/index.tsx index 7534eeba7293..3929015c9c71 100644 --- a/examples/with-antd-5/pages/index.tsx +++ b/examples/with-antd-5/pages/index.tsx @@ -1,18 +1,49 @@ -import { App, Button, Space, theme, version } from 'antd'; -import React, { useState } from 'react'; -import { getLocale, setLocale, useIntl } from 'umi'; +import { + App, + Button, + MappingAlgorithm, + Space, + Switch, + theme, + version, +} from 'antd'; +import type { ConfigProviderProps } from 'antd/es/config-provider'; +import { useState } from 'react'; +import { + getLocale, + setLocale, + useAntdConfig, + useAntdConfigSetter, + useIntl, +} from 'umi'; +const { useToken, darkAlgorithm, defaultAlgorithm, compactAlgorithm } = theme; + +const checkHasAlgorithm = ( + antdConfig: ConfigProviderProps, + algorithm: MappingAlgorithm, +) => { + if (!antdConfig?.theme?.algorithm) { + return false; + } + const nowAlgorithm = Array.isArray(antdConfig?.theme?.algorithm) + ? antdConfig?.theme?.algorithm + : [antdConfig?.theme?.algorithm]; + return nowAlgorithm?.includes(algorithm); +}; export default function Page() { + const setAntdConfig = useAntdConfigSetter(); + const antdConfig = useAntdConfig(); const [isZh, setIsZh] = useState(true); // 若要使用 useApp hook,须先在 antd 插件中配置 appConfig const { message, modal } = App.useApp(); const locale = getLocale(); - const { token } = theme.useToken(); + const { token } = useToken(); const showModal = () => { modal.confirm({ title: 'Hai', - content: '注意 Modal 内的按钮样式应该和页面中的按钮样一致', + content: '注意 Modal 内的按钮样式应该和页面中的按钮样式一致', maskClosable: true, }); }; @@ -25,7 +56,19 @@ export default function Page() { // app.txt 中配置了 appConfig.message.duration = 5 message.info('Hai'); }; - + const isDark = checkHasAlgorithm(antdConfig, darkAlgorithm); + const isCompact = checkHasAlgorithm(antdConfig, compactAlgorithm); + const changeTheme = (theme: MappingAlgorithm) => { + setAntdConfig((config) => { + const algorithm = config.theme!.algorithm as MappingAlgorithm[]; + if (algorithm.includes(theme)) { + config.theme!.algorithm = algorithm.filter((item) => item !== theme); + } else { + config.theme!.algorithm = [...algorithm, theme]; + } + return config; + }); + }; return (
+ {Math.random()}

with antd@{version}

@@ -49,6 +93,24 @@ export default function Page() { {msg} + + isDarkTheme + { + changeTheme(darkAlgorithm); + }} + > + + + isCompactTheme + { + changeTheme(compactAlgorithm); + }} + > +
); } diff --git a/examples/with-antd-5/tsconfig.json b/examples/with-antd-5/tsconfig.json new file mode 100644 index 000000000000..7fa7937c8056 --- /dev/null +++ b/examples/with-antd-5/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./.umi/tsconfig.json" +} diff --git a/examples/with-monaco-editor-react/package.json b/examples/with-monaco-editor-react/package.json index 9bd3e8724e7c..9178bf8920e8 100644 --- a/examples/with-monaco-editor-react/package.json +++ b/examples/with-monaco-editor-react/package.json @@ -12,7 +12,6 @@ }, "devDependencies": { "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.10", - "typescript": "^4.9.4" + "@types/react-dom": "^18.0.10" } } diff --git a/examples/with-monaco-editor/package.json b/examples/with-monaco-editor/package.json index 76d4383cff05..883a32f3b8bf 100644 --- a/examples/with-monaco-editor/package.json +++ b/examples/with-monaco-editor/package.json @@ -14,7 +14,6 @@ "devDependencies": { "@types/node": "^18.11.18", "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.10", - "typescript": "^4.9.4" + "@types/react-dom": "^18.0.10" } } diff --git a/examples/with-no-compress-for-sse/.umirc.ts b/examples/with-no-compress-for-sse/.umirc.ts new file mode 100644 index 000000000000..ff8b4c56321a --- /dev/null +++ b/examples/with-no-compress-for-sse/.umirc.ts @@ -0,0 +1 @@ +export default {}; diff --git a/examples/with-no-compress-for-sse/package.json b/examples/with-no-compress-for-sse/package.json new file mode 100644 index 000000000000..28e4f258fb40 --- /dev/null +++ b/examples/with-no-compress-for-sse/package.json @@ -0,0 +1,16 @@ +{ + "name": "@example/with-no-compress-for-sse", + "private": true, + "scripts": { + "build": "umi build", + "dev": "umi dev", + "dev:nocompress": "cross-env UMI_DEV_SERVER_COMPRESS=none npm run dev", + "start": "npm run dev" + }, + "dependencies": { + "umi": "workspace:*" + }, + "devDependencies": { + "cross-env": "^7.0.3" + } +} diff --git a/examples/with-no-compress-for-sse/pages/index.tsx b/examples/with-no-compress-for-sse/pages/index.tsx new file mode 100644 index 000000000000..2ef38e04f2ef --- /dev/null +++ b/examples/with-no-compress-for-sse/pages/index.tsx @@ -0,0 +1,52 @@ +import React, { useEffect, useState } from 'react'; + +class Event { + data: string; + timeString: string; + + constructor(data: string) { + this.data = data; + this.timeString = new Date().toLocaleTimeString(); + } +} + +export default function HomePage() { + const [events, setEvents] = useState([]); + + useEffect(() => { + console.log('开始请求'); + const eventSource = new EventSource('/events/number'); + let startEvent = new Event('开始请求'); + setEvents((prev) => [...prev, startEvent]); + eventSource.onmessage = function (e: any) { + let item = new Event(e.data); + setEvents((prev) => [...prev, item]); + }; + eventSource.onerror = (e) => { + console.log('EventSource failed:', e); + eventSource.close(); + }; + }, []); + + return ( +
+

{`演示:当默认存在 compress 时,数据无法流式获取。`}

+ + + + + + + + + {events.map((event, index) => ( + + + + + ))} + +
事件内容接收时间
{event.data}{event.timeString}
+
+ ); +} diff --git a/examples/with-no-compress-for-sse/plugin.ts b/examples/with-no-compress-for-sse/plugin.ts new file mode 100644 index 000000000000..e3d4901cdbbb --- /dev/null +++ b/examples/with-no-compress-for-sse/plugin.ts @@ -0,0 +1,8 @@ +import { IApi } from 'umi'; +import { sseMiddleware } from './sse-middleware'; + +export default (api: IApi) => { + api.onBeforeMiddleware(({ app }) => { + sseMiddleware(app); + }); +}; diff --git a/examples/with-no-compress-for-sse/readme.md b/examples/with-no-compress-for-sse/readme.md new file mode 100644 index 000000000000..15e5513baac3 --- /dev/null +++ b/examples/with-no-compress-for-sse/readme.md @@ -0,0 +1,9 @@ +# with-no-compress-for-sse + +### 背景 + +[来源](https://github.com/umijs/umi/issues/12144),在开发环境下由于 umi dev server 内置了 `compress` 中间件,导致 SSE 流在开发时传递不符合预期。 + +### 解决 + +本示例演示了此问题,并通过启动时附加 `UMI_DEV_SERVER_COMPRESS=none` 来关闭 `compress` 中间件,使 SSE 在本地开发时正常运作。 diff --git a/examples/with-no-compress-for-sse/sse-middleware.ts b/examples/with-no-compress-for-sse/sse-middleware.ts new file mode 100644 index 000000000000..bddbfcb10b11 --- /dev/null +++ b/examples/with-no-compress-for-sse/sse-middleware.ts @@ -0,0 +1,29 @@ +import type { Express } from '@umijs/bundler-utils/compiled/express'; + +export const sseMiddleware = (app: Express) => { + app.get('/events/number', (req, res) => { + console.log('new connection'); + res.writeHead(200, { + 'Content-Type': 'text/event-stream', + 'Cache-Control': 'no-cache', + Connection: 'keep-alive', + }); + + let counter = 1; + const intervalId = setInterval(() => { + if (counter === 5) { + clearInterval(intervalId); + res.end(`data: 事件${counter}\n\n`); + return; + } + res.write(`data: 事件${counter}\n\n`); + + counter++; + }, 1000); + + req.on('close', () => { + clearInterval(intervalId); + res.end(); + }); + }); +}; diff --git a/examples/with-react-16/.gitignore b/examples/with-react-16/.gitignore new file mode 100644 index 000000000000..9e8a6f26e2ee --- /dev/null +++ b/examples/with-react-16/.gitignore @@ -0,0 +1,7 @@ +/.env.local +/.umirc.local.ts +/.umirc.local.js +/config/config.local.ts +/config/config.local.js +/src/.umi +/.umi diff --git a/examples/with-react-16/.umirc.ts b/examples/with-react-16/.umirc.ts new file mode 100644 index 000000000000..a54025ff4b9b --- /dev/null +++ b/examples/with-react-16/.umirc.ts @@ -0,0 +1,4 @@ +export default { + routes: [{ path: '/', component: 'index' }], + npmClient: 'pnpm', +}; diff --git a/examples/with-react-16/package.json b/examples/with-react-16/package.json new file mode 100644 index 000000000000..1e17516e232f --- /dev/null +++ b/examples/with-react-16/package.json @@ -0,0 +1,16 @@ +{ + "name": "@example/with-react-16", + "private": true, + "scripts": { + "build": "umi build", + "dev": "umi dev", + "preview": "umi preview", + "setup": "umi setup", + "start": "npm run dev" + }, + "dependencies": { + "react": "^16.14.0", + "react-dom": "^16.14.0", + "umi": "workspace:*" + } +} diff --git a/examples/with-react-16/pages/index.tsx b/examples/with-react-16/pages/index.tsx new file mode 100644 index 000000000000..9efbc6d1c6e2 --- /dev/null +++ b/examples/with-react-16/pages/index.tsx @@ -0,0 +1,6 @@ +import { useState } from 'react'; + +export default function HomePage() { + const [count] = useState(0); + return
React: {count}
; +} diff --git a/examples/with-react-query-v5/.umirc.ts b/examples/with-react-query-v5/.umirc.ts new file mode 100644 index 000000000000..38a5d9a5a541 --- /dev/null +++ b/examples/with-react-query-v5/.umirc.ts @@ -0,0 +1,4 @@ +export default { + plugins: ['@umijs/plugins/dist/react-query'], + reactQuery: {}, +}; diff --git a/examples/with-react-query-v5/app.ts b/examples/with-react-query-v5/app.ts new file mode 100644 index 000000000000..3dd82a872e80 --- /dev/null +++ b/examples/with-react-query-v5/app.ts @@ -0,0 +1,14 @@ +import { RuntimeReactQueryType } from 'umi'; + +export const reactQuery: RuntimeReactQueryType = { + queryClient: { + defaultOptions: { + queries: { + refetchOnWindowFocus: false, + }, + }, + }, + devtool: { + buttonPosition: 'bottom-left', + }, +}; diff --git a/examples/with-react-query-v5/package.json b/examples/with-react-query-v5/package.json new file mode 100644 index 000000000000..7dd6b67be53e --- /dev/null +++ b/examples/with-react-query-v5/package.json @@ -0,0 +1,14 @@ +{ + "name": "@example/with-react-query-v5", + "private": true, + "scripts": { + "build": "umi build", + "dev": "umi dev", + "start": "npm run dev" + }, + "dependencies": { + "@tanstack/react-query": "^5.28.6", + "@tanstack/react-query-devtools": "^5.28.6", + "umi": "workspace:*" + } +} diff --git a/examples/with-react-query-v5/pages/index.tsx b/examples/with-react-query-v5/pages/index.tsx new file mode 100644 index 000000000000..df573f5ae6cf --- /dev/null +++ b/examples/with-react-query-v5/pages/index.tsx @@ -0,0 +1,30 @@ +import { useQuery } from 'umi'; +import '../style.less'; + +export default function HomePage() { + const { isFetching, data } = useQuery({ + queryKey: ['repoData'], + queryFn: () => { + return new Promise<{ stargazers_count: number }>((resolve, _) => { + setTimeout(async () => { + const res = await fetch('https://api.github.com/repos/umijs/umi'); + const json = await res.json(); + resolve(json); + }, 500); + }); + }, + }); + + return ( +
+
+

UmiJS x react-query v5

+ {isFetching ? ( +

Loading ...

+ ) : ( +

UmiJS has {data?.stargazers_count} stars now!

+ )} +
+
+ ); +} diff --git a/examples/with-react-query-v5/readme.md b/examples/with-react-query-v5/readme.md new file mode 100644 index 000000000000..cfb2bd497bb8 --- /dev/null +++ b/examples/with-react-query-v5/readme.md @@ -0,0 +1,3 @@ +# react-query-v5 + +An example of using [UmiJS](https://umijs.org/zh-CN) with [react-query](https://github.com/TanStack/query) v5. diff --git a/examples/with-react-query-v5/style.less b/examples/with-react-query-v5/style.less new file mode 100644 index 000000000000..6f08a19486e5 --- /dev/null +++ b/examples/with-react-query-v5/style.less @@ -0,0 +1,22 @@ +body { + font-family: 'Lucida Sans', sans-serif; +} + +.container { + width: 100%; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + + div { + display: flex; + flex-direction: column; + align-items: center; + } + + .title { + font-size: 64px; + } + +} diff --git a/examples/with-react-query-v5/tsconfig.json b/examples/with-react-query-v5/tsconfig.json new file mode 100644 index 000000000000..7fa7937c8056 --- /dev/null +++ b/examples/with-react-query-v5/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./.umi/tsconfig.json" +} diff --git a/examples/with-react-query/app.ts b/examples/with-react-query/app.ts new file mode 100644 index 000000000000..7433df6cf8a8 --- /dev/null +++ b/examples/with-react-query/app.ts @@ -0,0 +1,14 @@ +import { RuntimeReactQueryType } from 'umi'; + +export const reactQuery: RuntimeReactQueryType = { + queryClient: { + defaultOptions: { + queries: { + refetchOnWindowFocus: false, + }, + }, + }, + devtool: { + position: 'bottom-left', + }, +}; diff --git a/examples/with-react-query/pages/index.tsx b/examples/with-react-query/pages/index.tsx index d26d1dc11457..eccf592e95b8 100644 --- a/examples/with-react-query/pages/index.tsx +++ b/examples/with-react-query/pages/index.tsx @@ -2,7 +2,7 @@ import { useQuery } from 'umi'; import '../style.less'; export default function HomePage() { - const { isLoading, data } = useQuery(['repoData'], () => + const { isFetching, data } = useQuery(['repoData'], () => fetch('https://api.github.com/repos/umijs/umi').then((res) => res.json()), ); @@ -10,7 +10,7 @@ export default function HomePage() {

UmiJS x react-query

- {isLoading &&

Loading ...

} + {isFetching &&

Loading ...

} {data &&

UmiJS has {data.stargazers_count} stars now!

}
diff --git a/examples/with-react-query/tsconfig.json b/examples/with-react-query/tsconfig.json new file mode 100644 index 000000000000..7fa7937c8056 --- /dev/null +++ b/examples/with-react-query/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./.umi/tsconfig.json" +} diff --git a/examples/with-request/package.json b/examples/with-request/package.json index 43fac80f5fd1..a5135825a293 100644 --- a/examples/with-request/package.json +++ b/examples/with-request/package.json @@ -12,7 +12,6 @@ }, "devDependencies": { "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.10", - "typescript": "^4.9.4" + "@types/react-dom": "^18.0.10" } } diff --git a/examples/with-sass/package.json b/examples/with-sass/package.json index 98426e61ccd6..41cc6487f23b 100644 --- a/examples/with-sass/package.json +++ b/examples/with-sass/package.json @@ -12,7 +12,6 @@ "devDependencies": { "@types/react": "^18.0.26", "@types/react-dom": "^18.0.10", - "sass": "^1.57.1", - "typescript": "^4.9.4" + "sass": "^1.57.1" } } diff --git a/examples/with-styled-components/global.d.ts b/examples/with-styled-components/global.d.ts new file mode 100644 index 000000000000..bcac06dcb6bf --- /dev/null +++ b/examples/with-styled-components/global.d.ts @@ -0,0 +1,9 @@ +import type { CSSProp } from "styled-components"; + +interface MyTheme {} + +declare module "react" { + interface Attributes { + css?: CSSProp + } +} diff --git a/examples/with-styled-components/package.json b/examples/with-styled-components/package.json index 2d6d2c6190de..99108b26d796 100644 --- a/examples/with-styled-components/package.json +++ b/examples/with-styled-components/package.json @@ -8,6 +8,7 @@ }, "dependencies": { "@umijs/plugins": "workspace:*", + "styled-components": "6.1.1", "umi": "workspace:*" } } diff --git a/examples/with-styled-components/pages/css.tsx b/examples/with-styled-components/pages/css.tsx new file mode 100644 index 000000000000..dc3ef824c148 --- /dev/null +++ b/examples/with-styled-components/pages/css.tsx @@ -0,0 +1,21 @@ +import { css, styled } from 'umi'; + +const Style = styled.div` + ${css` + font-size: 18px; + `}; +`; + +export default function Page() { + return ( + + ); +} diff --git a/examples/with-styled-components/tsconfig.json b/examples/with-styled-components/tsconfig.json new file mode 100644 index 000000000000..7fa7937c8056 --- /dev/null +++ b/examples/with-styled-components/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./.umi/tsconfig.json" +} diff --git a/examples/with-stylus/.umirc.ts b/examples/with-stylus/.umirc.ts new file mode 100644 index 000000000000..244177d8ed08 --- /dev/null +++ b/examples/with-stylus/.umirc.ts @@ -0,0 +1,3 @@ +export default { + npmClient: 'pnpm', +}; diff --git a/examples/with-stylus/package.json b/examples/with-stylus/package.json new file mode 100644 index 000000000000..7919e5fd275f --- /dev/null +++ b/examples/with-stylus/package.json @@ -0,0 +1,17 @@ +{ + "name": "@example/with-stylus", + "private": true, + "scripts": { + "build": "umi build", + "dev": "umi dev", + "start": "npm run dev" + }, + "dependencies": { + "umi": "workspace:*" + }, + "devDependencies": { + "@types/react": "^18.0.26", + "@types/react-dom": "^18.0.10", + "stylus": "^0.60.0" + } +} diff --git a/examples/with-stylus/pages/index.styl b/examples/with-stylus/pages/index.styl new file mode 100644 index 000000000000..a1a25a99d0c7 --- /dev/null +++ b/examples/with-stylus/pages/index.styl @@ -0,0 +1,6 @@ +primary-color = rgb(121, 202, 242); + +.title + background primary-color; + display inline-block; + color red diff --git a/examples/with-stylus/pages/index.tsx b/examples/with-stylus/pages/index.tsx new file mode 100644 index 000000000000..ecd65dedb040 --- /dev/null +++ b/examples/with-stylus/pages/index.tsx @@ -0,0 +1,10 @@ +import './index.styl'; +import styles from './index.styl'; + +export default function Page() { + return ( +
+

Umi working with Stylus

+
+ ); +} diff --git a/examples/with-stylus/readme.md b/examples/with-stylus/readme.md new file mode 100644 index 000000000000..15a707b61acc --- /dev/null +++ b/examples/with-stylus/readme.md @@ -0,0 +1,3 @@ +# with-stylus + +An example of using [UmiJS](https://umijs.org/zh-CN) with [Stylus](https://stylus-lang.com/). diff --git a/examples/with-stylus/tsconfig.json b/examples/with-stylus/tsconfig.json new file mode 100644 index 000000000000..7fa7937c8056 --- /dev/null +++ b/examples/with-stylus/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./.umi/tsconfig.json" +} diff --git a/examples/with-unocss/.umirc.ts b/examples/with-unocss/.umirc.ts index ed6e6aae8513..049a2fb3b7a1 100644 --- a/examples/with-unocss/.umirc.ts +++ b/examples/with-unocss/.umirc.ts @@ -1,4 +1,5 @@ export default { + mako: {}, plugins: [require.resolve('@umijs/plugins/dist/unocss')], unocss: { watch: ['pages/**/*.tsx'], diff --git a/examples/with-valtio/.umirc.ts b/examples/with-valtio/.umirc.ts index 00dc1e91653b..66e1a689b1c3 100644 --- a/examples/with-valtio/.umirc.ts +++ b/examples/with-valtio/.umirc.ts @@ -1,4 +1,4 @@ export default { plugins: ['@umijs/plugins/dist/valtio'], - mfsu: false, + valtio: {}, }; diff --git a/examples/with-vue-pinia/.umirc.ts b/examples/with-vue-pinia/.umirc.ts index 304f7cf5aa0d..91624297e906 100644 --- a/examples/with-vue-pinia/.umirc.ts +++ b/examples/with-vue-pinia/.umirc.ts @@ -3,5 +3,12 @@ export default { npmClient: 'pnpm', crossorigin: {}, presets: [require.resolve('@umijs/preset-vue')], - polyfill: false, + // polyfill: false, + targets: { + chrome: 49, + }, + vite: {}, + viteLegacy: { + renderModernChunks: true, + }, }; diff --git a/examples/with-vue-pinia/plugin.ts b/examples/with-vue-pinia/plugin.ts new file mode 100644 index 000000000000..84d8ff98d3e8 --- /dev/null +++ b/examples/with-vue-pinia/plugin.ts @@ -0,0 +1,15 @@ +import type { IApi } from 'umi'; + +export default function (api: IApi) { + api.registerPlugins([ + { + id: `custom: config-viteLegacy`, + key: 'viteLegacy', + config: { + schema({ zod }) { + return zod.object({}); + }, + }, + }, + ]); +} diff --git a/examples/with-zod/package.json b/examples/with-zod/package.json index eab8ac94e86f..c25a444784cd 100644 --- a/examples/with-zod/package.json +++ b/examples/with-zod/package.json @@ -11,7 +11,6 @@ }, "devDependencies": { "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.10", - "typescript": "^4.9.4" + "@types/react-dom": "^18.0.10" } } diff --git a/index.js b/index.js new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/lerna.json b/lerna.json index ee831f259d45..0bc6030a9630 100644 --- a/lerna.json +++ b/lerna.json @@ -1,4 +1,4 @@ { - "version": "4.0.76", + "version": "4.3.34", "workspaces": ["packages/*"] } diff --git a/libs/valtio/package.json b/libs/valtio/package.json index 6c0776e82cb4..c1959e6d828a 100644 --- a/libs/valtio/package.json +++ b/libs/valtio/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/valtio", - "version": "1.0.3", + "version": "1.0.4", "description": "Umi.js valtio plugin", "keywords": [], "homepage": "https://github.com/umijs/umi/tree/master/libs/valtio", @@ -23,7 +23,7 @@ "test": "jest" }, "dependencies": { - "valtio": "1.10.5" + "valtio": "1.11.2" }, "publishConfig": { "access": "public" diff --git a/libs/valtio/src/index.ts b/libs/valtio/src/index.ts index aabe873e2a4c..73a598024465 100644 --- a/libs/valtio/src/index.ts +++ b/libs/valtio/src/index.ts @@ -1,4 +1,4 @@ -export { proxy, snapshot, subscribe, useSnapshot } from 'valtio'; +export { proxy, ref, snapshot, subscribe, useSnapshot } from 'valtio'; export { derive, devtools as proxyWithDevtools, @@ -9,6 +9,7 @@ export { subscribeKey, underive, useProxy, + watch, } from 'valtio/utils'; // TODO: diff --git a/package.json b/package.json index c7325f2bc70b..23501db0a4e4 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "release": "umi-scripts release", "setup": "pnpm --filter @umijs/ui run setup", "setup:webstorm": "umi-scripts setupWebStorm", + "sync:mako": "umi-scripts syncMako", "sync:tnpm": "umi-scripts syncTnpm", "test": "jest", "test:clean": "umi-scripts turbo test --no-cache --parallel -- --clearCache", @@ -65,8 +66,8 @@ "@types/jest": "^29.2.5", "@types/node": "^18.11.18", "@types/qs": "^6.9.7", - "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.10", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", "@types/resolve": "^1.20.2", "@types/rimraf": "3.0.2", "@types/tunnel": "^0.0.3", @@ -80,10 +81,10 @@ "@umijs/server": "workspace:*", "@umijs/utils": "workspace:*", "@vercel/ncc": "0.33.3", - "browserslist": "4.21.5", + "browserslist": "4.22.2", "dts-packer": "^0.0.3", "expect-playwright": "^0.8.0", - "father": "^4.1.5", + "father": "4.1.5", "git-repo-info": "^2.1.1", "husky": "^8.0.3", "jest": "^29.4.3", @@ -100,8 +101,8 @@ "prettier-plugin-organize-imports": "^3.2.2", "prettier-plugin-packagejson": "^2.4.3", "qs": "^6.11.0", - "react": "18.1.0", - "react-dom": "18.1.0", + "react": "18.3.1", + "react-dom": "18.3.1", "react-text-loop-next": "0.0.3", "regenerator-runtime": "^0.13.11", "resolve": "^1.22.0", @@ -110,19 +111,22 @@ "ts-node": "^10.7.0", "tsx": "^3.12.2", "tunnel": "^0.0.6", - "turbo": "^1.9.3", + "turbo": "1.9.3", "typescript": "^4.9.4", "uglify-js": "^3.17.4", "umi": "workspace:*", "umi-scripts": "workspace:*", "zx": "^7.1.1" }, - "packageManager": "pnpm@8.6.2", + "packageManager": "pnpm@8.11.0", "engines": { "node": ">=14", - "pnpm": "^8.6.2" + "pnpm": "^8.11.0" + }, + "//": { + "why-overrides-parcel-watcher": "https://github.com/parcel-bundler/watcher/issues/156", + "why-overrides-browserslist": "See scripts/bundleDeps.ts" }, - "//why-overrides-browserslist": "See scripts/bundleDeps.ts", "pnpm": { "peerDependencyRules": { "ignoreMissing": [ @@ -138,6 +142,7 @@ ] }, "overrides": { + "@parcel/watcher": "2.1.0", "browserslist": "$browserslist" } }, diff --git a/packages/ast/package.json b/packages/ast/package.json index ccde89aafeb8..6171712c42d0 100644 --- a/packages/ast/package.json +++ b/packages/ast/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/ast", - "version": "4.0.76", + "version": "4.3.34", "description": "@umijs/ast", "homepage": "https://github.com/umijs/umi/tree/master/packages/ast#readme", "bugs": "https://github.com/umijs/umi/issues", diff --git a/packages/babel-preset-umi/package.json b/packages/babel-preset-umi/package.json index a423c9d13919..0cf5dde7f2f2 100644 --- a/packages/babel-preset-umi/package.json +++ b/packages/babel-preset-umi/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/babel-preset-umi", - "version": "4.0.76", + "version": "4.3.34", "description": "Official babel preset for umi.", "homepage": "https://github.com/umijs/umi/tree/master/packages/babel-preset-umi#readme", "bugs": "https://github.com/umijs/umi/issues", @@ -21,12 +21,11 @@ "test": "umi-scripts jest-turbo" }, "dependencies": { - "@babel/runtime": "7.21.0", + "@babel/runtime": "7.23.6", "@bloomberg/record-tuple-polyfill": "0.0.4", "@umijs/bundler-utils": "workspace:*", "@umijs/utils": "workspace:*", - "babel-plugin-styled-components": "2.1.1", - "core-js": "3.28.0" + "core-js": "3.34.0" }, "publishConfig": { "access": "public" diff --git a/packages/babel-preset-umi/src/index.ts b/packages/babel-preset-umi/src/index.ts index faffc6ab587e..72d10acbc327 100644 --- a/packages/babel-preset-umi/src/index.ts +++ b/packages/babel-preset-umi/src/index.ts @@ -15,7 +15,6 @@ interface IOpts { pluginAutoCSSModules: any; stripExports: { exports: string[] }; classPropertiesLoose: any; - pluginStyledComponents: any; pluginDecorators: any; } @@ -67,12 +66,6 @@ export default (_context: any, opts: IOpts) => { ], ].filter(Boolean), plugins: [ - opts.pluginStyledComponents && [ - require.resolve('babel-plugin-styled-components'), - { - ...opts.pluginStyledComponents, - }, - ], // TC39 Proposals // class-static-block // decorators diff --git a/packages/bundler-esbuild/package.json b/packages/bundler-esbuild/package.json index 7e4f80382531..6686da6a785c 100644 --- a/packages/bundler-esbuild/package.json +++ b/packages/bundler-esbuild/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/bundler-esbuild", - "version": "4.0.76", + "version": "4.3.34", "description": "@umijs/bundler-esbuild", "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-esbuild#readme", "bugs": "https://github.com/umijs/umi/issues", diff --git a/packages/bundler-utils/compiled/babel/index.js b/packages/bundler-utils/compiled/babel/index.js index df4e89d9d53c..9aad4c340334 100644 --- a/packages/bundler-utils/compiled/babel/index.js +++ b/packages/bundler-utils/compiled/babel/index.js @@ -1,7 +1,7 @@ /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 78941: +/***/ 40854: /***/ (function(module) { function webpackEmptyAsyncContext(req) { @@ -15,46 +15,24 @@ function webpackEmptyAsyncContext(req) { } webpackEmptyAsyncContext.keys = function() { return []; }; webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; -webpackEmptyAsyncContext.id = 78941; +webpackEmptyAsyncContext.id = 40854; module.exports = webpackEmptyAsyncContext; /***/ }), -/***/ 85179: -/***/ (function(module) { - -function webpackEmptyAsyncContext(req) { - // Here Promise.resolve().then() is used instead of new Promise() to prevent - // uncaught exception popping up in devtools - return Promise.resolve().then(function() { - var e = new Error("Cannot find module '" + req + "'"); - e.code = 'MODULE_NOT_FOUND'; - throw e; - }); -} -webpackEmptyAsyncContext.keys = function() { return []; }; -webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; -webpackEmptyAsyncContext.id = 85179; -module.exports = webpackEmptyAsyncContext; - -/***/ }), - -/***/ 55514: +/***/ 28348: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { (function (global, factory) { - true ? module.exports = factory(__nccwpck_require__(46974), __nccwpck_require__(99721)) : + true ? module.exports = factory(__nccwpck_require__(72215), __nccwpck_require__(11885)) : 0; })(this, (function (traceMapping, genMapping) { 'use strict'; - const SOURCELESS_MAPPING = { - source: null, - column: null, - line: null, - name: null, - content: null, - }; + const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null); const EMPTY_SOURCES = []; + function SegmentObject(source, line, column, name, content) { + return { source, line, column, name, content }; + } function Source(map, sources, source, content) { return { map, @@ -82,15 +60,14 @@ module.exports = webpackEmptyAsyncContext; * resolving each mapping in terms of the original source files. */ function traceMappings(tree) { + // TODO: Eventually support sourceRoot, which has to be removed because the sources are already + // fully resolved. We'll need to make sources relative to the sourceRoot before adding them. const gen = new genMapping.GenMapping({ file: tree.map.file }); const { sources: rootSources, map } = tree; const rootNames = map.names; const rootMappings = traceMapping.decodedMappings(map); for (let i = 0; i < rootMappings.length; i++) { const segments = rootMappings[i]; - let lastSource = null; - let lastSourceLine = null; - let lastSourceColumn = null; for (let j = 0; j < segments.length; j++) { const segment = segments[j]; const genCol = segment[0]; @@ -105,18 +82,9 @@ module.exports = webpackEmptyAsyncContext; if (traced == null) continue; } - // So we traced a segment down into its original source file. Now push a - // new segment pointing to this location. const { column, line, name, content, source } = traced; - if (line === lastSourceLine && column === lastSourceColumn && source === lastSource) { - continue; - } - lastSourceLine = line; - lastSourceColumn = column; - lastSource = source; - // Sigh, TypeScript can't figure out source/line/column are either all null, or all non-null... - genMapping.addSegment(gen, i, genCol, source, line, column, name); - if (content != null) + genMapping.maybeAddSegment(gen, i, genCol, source, line, column, name); + if (source && content != null) genMapping.setSourceContent(gen, source, content); } } @@ -128,7 +96,7 @@ module.exports = webpackEmptyAsyncContext; */ function originalPositionFor(source, line, column, name) { if (!source.map) { - return { column, line, name, source: source.source, content: source.content }; + return SegmentObject(source.source, line, column, name, source.content); } const segment = traceMapping.traceSegment(source.map, line, column); // If we couldn't find a segment, then this doesn't exist in the sourcemap. @@ -209,7 +177,7 @@ module.exports = webpackEmptyAsyncContext; */ class SourceMap { constructor(map, options) { - const out = options.decodedMappings ? genMapping.decodedMap(map) : genMapping.encodedMap(map); + const out = options.decodedMappings ? genMapping.toDecodedMap(map) : genMapping.toEncodedMap(map); this.version = out.version; // SourceMap spec says this should be first. this.file = out.file; this.mappings = out.mappings; @@ -254,7 +222,7 @@ module.exports = webpackEmptyAsyncContext; /***/ }), -/***/ 25780: +/***/ 41694: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -264,23 +232,19 @@ exports.__esModule = true; exports.presetEnvSilentDebugHeader = void 0; exports.stringifyTargets = stringifyTargets; exports.stringifyTargetsMultiline = stringifyTargetsMultiline; - -var _helperCompilationTargets = __nccwpck_require__(77116); - +var _helperCompilationTargets = __nccwpck_require__(91047); const presetEnvSilentDebugHeader = "#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets"; exports.presetEnvSilentDebugHeader = presetEnvSilentDebugHeader; - function stringifyTargetsMultiline(targets) { return JSON.stringify((0, _helperCompilationTargets.prettifyTargets)(targets), null, 2); } - function stringifyTargets(targets) { return JSON.stringify(targets).replace(/,/g, ", ").replace(/^\{"/, '{ "').replace(/"\}$/, '" }'); } /***/ }), -/***/ 14606: +/***/ 29636: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -288,17 +252,12 @@ function stringifyTargets(targets) { exports.__esModule = true; exports["default"] = void 0; - -var _babel = _interopRequireWildcard(__nccwpck_require__(27324)); - +var _babel = _interopRequireWildcard(__nccwpck_require__(65258)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - const { types: t } = _babel.default || _babel; - class ImportsCache { constructor(resolver) { this._imports = new WeakMap(); @@ -306,54 +265,43 @@ class ImportsCache { this._lastImports = new WeakMap(); this._resolver = resolver; } - - storeAnonymous(programPath, url, // eslint-disable-next-line no-undef + storeAnonymous(programPath, url, + // eslint-disable-next-line no-undef getVal) { const key = this._normalizeKey(programPath, url); - const imports = this._ensure(this._anonymousImports, programPath, Set); - if (imports.has(key)) return; const node = getVal(programPath.node.sourceType === "script", t.stringLiteral(this._resolver(url))); imports.add(key); - this._injectImport(programPath, node); } - storeNamed(programPath, url, name, getVal) { const key = this._normalizeKey(programPath, url, name); - const imports = this._ensure(this._imports, programPath, Map); - if (!imports.has(key)) { const { node, name: id } = getVal(programPath.node.sourceType === "script", t.stringLiteral(this._resolver(url)), t.identifier(name)); imports.set(key, id); - this._injectImport(programPath, node); } - return t.identifier(imports.get(key)); } - _injectImport(programPath, node) { const lastImport = this._lastImports.get(programPath); - let newNodes; - - if (lastImport && lastImport.node && // Sometimes the AST is modified and the "last import" + if (lastImport && lastImport.node && + // Sometimes the AST is modified and the "last import" // we have has been replaced lastImport.parent === programPath.node && lastImport.container === programPath.node.body) { newNodes = lastImport.insertAfter(node); } else { newNodes = programPath.unshiftContainer("body", node); } - const newNode = newNodes[newNodes.length - 1]; - this._lastImports.set(programPath, newNode); + /* let lastImport; programPath.get("body").forEach(path => { @@ -374,37 +322,32 @@ class ImportsCache { lastImport = path; } });*/ - } _ensure(map, programPath, Collection) { let collection = map.get(programPath); - if (!collection) { collection = new Collection(); map.set(programPath, collection); } - return collection; } - _normalizeKey(programPath, url, name = "") { const { sourceType - } = programPath.node; // If we rely on the imported binding (the "name" parameter), we also need to cache + } = programPath.node; + + // If we rely on the imported binding (the "name" parameter), we also need to cache // based on the sourceType. This is because the module transforms change the names // of the import variables. - return `${name && sourceType}::${url}::${name}`; } - } - exports["default"] = ImportsCache; /***/ }), -/***/ 34064: +/***/ 98261: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -412,49 +355,32 @@ exports["default"] = ImportsCache; exports.__esModule = true; exports["default"] = definePolyfillProvider; - var _helperPluginUtils = __nccwpck_require__(36028); - -var _helperCompilationTargets = _interopRequireWildcard(__nccwpck_require__(77116)); - -var _utils = __nccwpck_require__(82429); - -var _importsCache = _interopRequireDefault(__nccwpck_require__(14606)); - -var _debugUtils = __nccwpck_require__(25780); - -var _normalizeOptions = __nccwpck_require__(77834); - -var v = _interopRequireWildcard(__nccwpck_require__(15167)); - -var deps = _interopRequireWildcard(__nccwpck_require__(37394)); - -var _metaResolver = _interopRequireDefault(__nccwpck_require__(19770)); - +var _helperCompilationTargets = _interopRequireWildcard(__nccwpck_require__(91047)); +var _utils = __nccwpck_require__(81530); +var _importsCache = _interopRequireDefault(__nccwpck_require__(29636)); +var _debugUtils = __nccwpck_require__(41694); +var _normalizeOptions = __nccwpck_require__(80873); +var v = _interopRequireWildcard(__nccwpck_require__(63233)); +var deps = _interopRequireWildcard(__nccwpck_require__(24704)); +var _metaResolver = _interopRequireDefault(__nccwpck_require__(23894)); const _excluded = ["method", "targets", "ignoreBrowserslistConfig", "configPath", "debug", "shouldInjectPolyfill", "absoluteImports"]; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } - const getTargets = _helperCompilationTargets.default.default || _helperCompilationTargets.default; - function resolveOptions(options, babelApi) { const { - method, - targets: targetsOption, - ignoreBrowserslistConfig, - configPath, - debug, - shouldInjectPolyfill, - absoluteImports - } = options, - providerOptions = _objectWithoutPropertiesLoose(options, _excluded); - + method, + targets: targetsOption, + ignoreBrowserslistConfig, + configPath, + debug, + shouldInjectPolyfill, + absoluteImports + } = options, + providerOptions = _objectWithoutPropertiesLoose(options, _excluded); if (isEmpty(options)) { throw new Error(`\ This plugin requires options, for example: @@ -466,14 +392,12 @@ This plugin requires options, for example: See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usage.md`); } - let methodName; if (method === "usage-global") methodName = "usageGlobal";else if (method === "entry-global") methodName = "entryGlobal";else if (method === "usage-pure") methodName = "usagePure";else if (typeof method !== "string") { throw new Error(".method must be a string"); } else { throw new Error(`.method must be one of "entry-global", "usage-global"` + ` or "usage-pure" (received ${JSON.stringify(method)})`); } - if (typeof shouldInjectPolyfill === "function") { if (options.include || options.exclude) { throw new Error(`.include and .exclude are not supported when using the` + ` .shouldInjectPolyfill function.`); @@ -481,14 +405,12 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag } else if (shouldInjectPolyfill != null) { throw new Error(`.shouldInjectPolyfill must be a function, or undefined` + ` (received ${JSON.stringify(shouldInjectPolyfill)})`); } - if (absoluteImports != null && typeof absoluteImports !== "boolean" && typeof absoluteImports !== "string") { throw new Error(`.absoluteImports must be a boolean, a string, or undefined` + ` (received ${JSON.stringify(absoluteImports)})`); } - let targets; - - if ( // If any browserslist-related option is specified, fallback to the old + if ( + // If any browserslist-related option is specified, fallback to the old // behavior of not using the targets specified in the top-level options. targetsOption || configPath || ignoreBrowserslistConfig) { const targetsObj = typeof targetsOption === "string" || Array.isArray(targetsOption) ? { @@ -501,7 +423,6 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag } else { targets = babelApi.targets(); } - return { method, methodName, @@ -512,7 +433,6 @@ See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usag providerOptions: providerOptions }; } - function instantiateProvider(factory, options, missingDependencies, dirname, debugLog, babelApi) { const { method, @@ -523,8 +443,9 @@ function instantiateProvider(factory, options, missingDependencies, dirname, deb providerOptions, absoluteImports } = resolveOptions(options, babelApi); - const getUtils = (0, _utils.createUtilsGetter)(new _importsCache.default(moduleName => deps.resolve(dirname, moduleName, absoluteImports))); // eslint-disable-next-line prefer-const + const getUtils = (0, _utils.createUtilsGetter)(new _importsCache.default(moduleName => deps.resolve(dirname, moduleName, absoluteImports))); + // eslint-disable-next-line prefer-const let include, exclude; let polyfillsSupport; let polyfillsNames; @@ -536,70 +457,55 @@ function instantiateProvider(factory, options, missingDependencies, dirname, deb method: options.method, targets, createMetaResolver: _metaResolver.default, - shouldInjectPolyfill(name) { if (polyfillsNames === undefined) { throw new Error(`Internal error in the ${factory.name} provider: ` + `shouldInjectPolyfill() can't be called during initialization.`); } - if (!polyfillsNames.has(name)) { console.warn(`Internal error in the ${providerName} provider: ` + `unknown polyfill "${name}".`); } - if (filterPolyfills && !filterPolyfills(name)) return false; let shouldInject = (0, _helperCompilationTargets.isRequired)(name, targets, { compatData: polyfillsSupport, includes: include, excludes: exclude }); - if (shouldInjectPolyfill) { shouldInject = shouldInjectPolyfill(name, shouldInject); - if (typeof shouldInject !== "boolean") { throw new Error(`.shouldInjectPolyfill must return a boolean.`); } } - return shouldInject; }, - debug(name) { var _debugLog, _debugLog$polyfillsSu; - debugLog().found = true; if (!debug || !name) return; if (debugLog().polyfills.has(providerName)) return; debugLog().polyfills.add(name); (_debugLog$polyfillsSu = (_debugLog = debugLog()).polyfillsSupport) != null ? _debugLog$polyfillsSu : _debugLog.polyfillsSupport = polyfillsSupport; }, - assertDependency(name, version = "*") { if (missingDependencies === false) return; - if (absoluteImports) { // If absoluteImports is not false, we will try resolving // the dependency and throw if it's not possible. We can // skip the check here. return; } - const dep = version === "*" ? name : `${name}@^${version}`; const found = missingDependencies.all ? false : mapGetOr(depsCache, `${name} :: ${dirname}`, () => deps.has(dirname, name)); - if (!found) { debugLog().missingDeps.add(dep); } } - }; const provider = factory(api, providerOptions, dirname); const providerName = provider.name || factory.name; - if (typeof provider[methodName] !== "function") { throw new Error(`The "${providerName}" provider doesn't support the "${method}" polyfilling method.`); } - if (Array.isArray(provider.polyfills)) { polyfillsNames = new Set(provider.polyfills); filterPolyfills = provider.filterPolyfills; @@ -610,7 +516,6 @@ function instantiateProvider(factory, options, missingDependencies, dirname, deb } else { polyfillsNames = new Set(); } - ({ include, exclude @@ -621,18 +526,15 @@ function instantiateProvider(factory, options, missingDependencies, dirname, deb targets, provider, providerName, - callProvider(payload, path) { const utils = getUtils(path); provider[methodName](payload, utils, path); } - }; } - function definePolyfillProvider(factory) { return (0, _helperPluginUtils.declare)((babelApi, options, dirname) => { - babelApi.assertVersion(7); + babelApi.assertVersion("^7.0.0 || ^8.0.0-alpha.0"); const { traverse } = babelApi; @@ -648,23 +550,19 @@ function definePolyfillProvider(factory) { } = instantiateProvider(factory, options, missingDependencies, dirname, () => debugLog, babelApi); const createVisitor = method === "entry-global" ? v.entry : v.usage; const visitor = provider.visitor ? traverse.visitors.merge([createVisitor(callProvider), provider.visitor]) : createVisitor(callProvider); - if (debug && debug !== _debugUtils.presetEnvSilentDebugHeader) { console.log(`${providerName}: \`DEBUG\` option`); console.log(`\nUsing targets: ${(0, _debugUtils.stringifyTargetsMultiline)(targets)}`); console.log(`\nUsing polyfills with \`${method}\` method:`); } - const { runtimeName } = provider; return { name: "inject-polyfills", visitor, - pre(file) { var _provider$pre; - if (runtimeName) { if (file.get("runtimeHelpersModuleName") && file.get("runtimeHelpersModuleName") !== runtimeName) { console.warn(`Two different polyfill providers` + ` (${file.get("runtimeHelpersModuleProvider")}` + ` and ${providerName}) are trying to define two` + ` conflicting @babel/runtime alternatives:` + ` ${file.get("runtimeHelpersModuleName")} and ${runtimeName}.` + ` The second one will be ignored.`); @@ -673,7 +571,6 @@ function definePolyfillProvider(factory) { file.set("runtimeHelpersModuleProvider", providerName); } } - debugLog = { polyfills: new Set(), polyfillsSupport: undefined, @@ -683,12 +580,9 @@ function definePolyfillProvider(factory) { }; (_provider$pre = provider.pre) == null ? void 0 : _provider$pre.apply(this, arguments); }, - post() { var _provider$post; - (_provider$post = provider.post) == null ? void 0 : _provider$post.apply(this, arguments); - if (missingDependencies !== false) { if (missingDependencies.log === "per-file") { deps.logMissing(debugLog.missingDeps); @@ -696,24 +590,19 @@ function definePolyfillProvider(factory) { deps.laterLogMissing(debugLog.missingDeps); } } - if (!debug) return; if (this.filename) console.log(`\n[${this.filename}]`); - if (debugLog.polyfills.size === 0) { console.log(method === "entry-global" ? debugLog.found ? `Based on your targets, the ${providerName} polyfill did not add any polyfill.` : `The entry point for the ${providerName} polyfill has not been found.` : `Based on your code and targets, the ${providerName} polyfill did not add any polyfill.`); return; } - if (method === "entry-global") { console.log(`The ${providerName} polyfill entry has been replaced with ` + `the following polyfills:`); } else { console.log(`The ${providerName} polyfill added the following polyfills:`); } - for (const name of debugLog.polyfills) { var _debugLog$polyfillsSu2; - if ((_debugLog$polyfillsSu2 = debugLog.polyfillsSupport) != null && _debugLog$polyfillsSu2[name]) { const filteredTargets = (0, _helperCompilationTargets.getInclusionReasons)(name, targets, debugLog.polyfillsSupport); const formattedTargets = JSON.stringify(filteredTargets).replace(/,/g, ", ").replace(/^\{"/, '{ "').replace(/"\}$/, '" }'); @@ -723,29 +612,24 @@ function definePolyfillProvider(factory) { } } } - }; }); } - function mapGetOr(map, key, getDefault) { let val = map.get(key); - if (val === undefined) { val = getDefault(); map.set(key, val); } - return val; } - function isEmpty(obj) { return Object.keys(obj).length === 0; } /***/ }), -/***/ 19770: +/***/ 23894: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -753,11 +637,8 @@ function isEmpty(obj) { exports.__esModule = true; exports["default"] = createMetaResolver; - -var _utils = __nccwpck_require__(82429); - +var _utils = __nccwpck_require__(81530); const PossibleGlobalObjects = new Set(["global", "globalThis", "self", "window"]); - function createMetaResolver(polyfills) { const { static: staticP, @@ -772,14 +653,12 @@ function createMetaResolver(polyfills) { name: meta.name }; } - if (meta.kind === "property" || meta.kind === "in") { const { placement, object, key } = meta; - if (object && placement === "static") { if (globalP && PossibleGlobalObjects.has(object) && (0, _utils.has)(globalP, key)) { return { @@ -788,7 +667,6 @@ function createMetaResolver(polyfills) { name: key }; } - if (staticP && (0, _utils.has)(staticP, object) && (0, _utils.has)(staticP[object], key)) { return { kind: "static", @@ -797,7 +675,6 @@ function createMetaResolver(polyfills) { }; } } - if (instanceP && (0, _utils.has)(instanceP, key)) { return { kind: "instance", @@ -811,7 +688,7 @@ function createMetaResolver(polyfills) { /***/ }), -/***/ 37394: +/***/ 24704: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -822,20 +699,14 @@ exports.has = has; exports.laterLogMissing = laterLogMissing; exports.logMissing = logMissing; exports.resolve = resolve; - var _path = _interopRequireDefault(__nccwpck_require__(71017)); - var _lodash = _interopRequireDefault(__nccwpck_require__(20345)); - var _resolve = _interopRequireDefault(__nccwpck_require__(97001)); - var _module = __nccwpck_require__(98188); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - const nativeRequireResolve = parseFloat(process.versions.node) >= 8.9; - // eslint-disable-line + function myResolve(name, basedir) { if (nativeRequireResolve) { return require.resolve(name, { @@ -847,15 +718,12 @@ function myResolve(name, basedir) { }).replace(/\\/g, "/"); } } - function resolve(dirname, moduleName, absoluteImports) { if (absoluteImports === false) return moduleName; let basedir = dirname; - if (typeof absoluteImports === "string") { basedir = _path.default.resolve(basedir, absoluteImports); } - try { return myResolve(moduleName, basedir); } catch (err) { @@ -867,7 +735,6 @@ function resolve(dirname, moduleName, absoluteImports) { }); } } - function has(basedir, name) { try { myResolve(name, basedir); @@ -876,20 +743,17 @@ function has(basedir, name) { return false; } } - function logMissing(missingDeps) { if (missingDeps.size === 0) return; const deps = Array.from(missingDeps).sort().join(" "); console.warn("\nSome polyfills have been added but are not present in your dependencies.\n" + "Please run one of the following commands:\n" + `\tnpm install --save ${deps}\n` + `\tyarn add ${deps}\n`); process.exitCode = 1; } - let allMissingDeps = new Set(); const laterLogMissingDependencies = (0, _lodash.default)(() => { logMissing(allMissingDeps); allMissingDeps = new Set(); }, 100); - function laterLogMissing(missingDeps) { if (missingDeps.size === 0) return; missingDeps.forEach(name => allMissingDeps.add(name)); @@ -898,7 +762,7 @@ function laterLogMissing(missingDeps) { /***/ }), -/***/ 77834: +/***/ 80873: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -907,65 +771,54 @@ function laterLogMissing(missingDeps) { exports.__esModule = true; exports.applyMissingDependenciesDefaults = applyMissingDependenciesDefaults; exports.validateIncludeExclude = validateIncludeExclude; - -var _utils = __nccwpck_require__(82429); - +var _utils = __nccwpck_require__(81530); function patternToRegExp(pattern) { if (pattern instanceof RegExp) return pattern; - try { return new RegExp(`^${pattern}$`); } catch (_unused) { return null; } } - function buildUnusedError(label, unused) { if (!unused.length) return ""; return ` - The following "${label}" patterns didn't match any polyfill:\n` + unused.map(original => ` ${String(original)}\n`).join(""); } - function buldDuplicatesError(duplicates) { if (!duplicates.size) return ""; return ` - The following polyfills were matched both by "include" and "exclude" patterns:\n` + Array.from(duplicates, name => ` ${name}\n`).join(""); } - function validateIncludeExclude(provider, polyfills, includePatterns, excludePatterns) { let current; - const filter = pattern => { const regexp = patternToRegExp(pattern); if (!regexp) return false; let matched = false; - for (const polyfill of polyfills) { if (regexp.test(polyfill)) { matched = true; current.add(polyfill); } } - return !matched; - }; // prettier-ignore - + }; + // prettier-ignore const include = current = new Set(); - const unusedInclude = Array.from(includePatterns).filter(filter); // prettier-ignore + const unusedInclude = Array.from(includePatterns).filter(filter); + // prettier-ignore const exclude = current = new Set(); const unusedExclude = Array.from(excludePatterns).filter(filter); const duplicates = (0, _utils.intersection)(include, exclude); - if (duplicates.size > 0 || unusedInclude.length > 0 || unusedExclude.length > 0) { throw new Error(`Error while validating the "${provider}" provider options:\n` + buildUnusedError("include", unusedInclude) + buildUnusedError("exclude", unusedExclude) + buldDuplicatesError(duplicates)); } - return { include, exclude }; } - function applyMissingDependenciesDefaults(options, babelApi) { const { missingDependencies = {} @@ -986,7 +839,7 @@ function applyMissingDependenciesDefaults(options, babelApi) { /***/ }), -/***/ 82429: +/***/ 81530: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1000,116 +853,83 @@ exports.has = has; exports.intersection = intersection; exports.resolveKey = resolveKey; exports.resolveSource = resolveSource; - -var _babel = _interopRequireWildcard(__nccwpck_require__(27324)); - +var _babel = _interopRequireWildcard(__nccwpck_require__(65258)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - const { types: t, template: template } = _babel.default || _babel; - function intersection(a, b) { const result = new Set(); a.forEach(v => b.has(v) && result.add(v)); return result; } - function has(object, key) { return Object.prototype.hasOwnProperty.call(object, key); } - function getType(target) { return Object.prototype.toString.call(target).slice(8, -1); } - function resolveId(path) { - if (path.isIdentifier() && !path.scope.hasBinding(path.node.name, - /* noGlobals */ - true)) { + if (path.isIdentifier() && !path.scope.hasBinding(path.node.name, /* noGlobals */true)) { return path.node.name; } - - const { - deopt - } = path.evaluate(); - - if (deopt && deopt.isIdentifier()) { - return deopt.node.name; + if (path.isPure()) { + const { + deopt + } = path.evaluate(); + if (deopt && deopt.isIdentifier()) { + return deopt.node.name; + } } } - function resolveKey(path, computed = false) { const { scope } = path; if (path.isStringLiteral()) return path.node.value; const isIdentifier = path.isIdentifier(); - if (isIdentifier && !(computed || path.parent.computed)) { return path.node.name; } - if (computed && path.isMemberExpression() && path.get("object").isIdentifier({ name: "Symbol" - }) && !scope.hasBinding("Symbol", - /* noGlobals */ - true)) { + }) && !scope.hasBinding("Symbol", /* noGlobals */true)) { const sym = resolveKey(path.get("property"), path.node.computed); if (sym) return "Symbol." + sym; } - - if (!isIdentifier || scope.hasBinding(path.node.name, - /* noGlobals */ - true)) { + if (isIdentifier ? scope.hasBinding(path.node.name, /* noGlobals */true) : path.isPure()) { const { value } = path.evaluate(); if (typeof value === "string") return value; } } - function resolveSource(obj) { if (obj.isMemberExpression() && obj.get("property").isIdentifier({ name: "prototype" })) { const id = resolveId(obj.get("object")); - if (id) { return { id, placement: "prototype" }; } - return { id: null, placement: null }; } - const id = resolveId(obj); - if (id) { return { id, placement: "static" }; } - - const { - value - } = obj.evaluate(); - - if (value !== undefined) { - return { - id: getType(value), - placement: "prototype" - }; - } else if (obj.isRegExpLiteral()) { + if (obj.isRegExpLiteral()) { return { id: "RegExp", placement: "prototype" @@ -1119,20 +939,27 @@ function resolveSource(obj) { id: "Function", placement: "prototype" }; + } else if (obj.isPure()) { + const { + value + } = obj.evaluate(); + if (value !== undefined) { + return { + id: getType(value), + placement: "prototype" + }; + } } - return { id: null, placement: null }; } - function getImportSource({ node }) { if (node.specifiers.length === 0) return node.source.value; } - function getRequireSource({ node }) { @@ -1140,18 +967,15 @@ function getRequireSource({ const { expression } = node; - if (t.isCallExpression(expression) && t.isIdentifier(expression.callee) && expression.callee.name === "require" && expression.arguments.length === 1 && t.isStringLiteral(expression.arguments[0])) { return expression.arguments[0].value; } } - function hoist(node) { // @ts-expect-error node._blockHoist = 3; return node; } - function createUtilsGetter(cache) { return path => { const prog = path.findParent(p => p.isProgram()); @@ -1161,7 +985,6 @@ function createUtilsGetter(cache) { return isScript ? template.statement.ast`require(${source})` : t.importDeclaration([], source); }); }, - injectNamedImport(url, name, hint = name) { return cache.storeNamed(prog, url, name, (isScript, source, name) => { const id = prog.scope.generateUidIdentifier(hint); @@ -1173,7 +996,6 @@ function createUtilsGetter(cache) { }; }); }, - injectDefaultImport(url, hint = url) { return cache.storeNamed(prog, url, "default", (isScript, source) => { const id = prog.scope.generateUidIdentifier(hint); @@ -1183,14 +1005,13 @@ function createUtilsGetter(cache) { }; }); } - }; }; } /***/ }), -/***/ 8627: +/***/ 59280: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1198,9 +1019,7 @@ function createUtilsGetter(cache) { exports.__esModule = true; exports["default"] = void 0; - -var _utils = __nccwpck_require__(82429); - +var _utils = __nccwpck_require__(81530); var _default = callProvider => ({ ImportDeclaration(path) { const source = (0, _utils.getImportSource)(path); @@ -1210,7 +1029,6 @@ var _default = callProvider => ({ source }, path); }, - Program(path) { path.get("body").forEach(bodyPath => { const source = (0, _utils.getRequireSource)(bodyPath); @@ -1221,14 +1039,12 @@ var _default = callProvider => ({ }, bodyPath); }); } - }); - exports["default"] = _default; /***/ }), -/***/ 15167: +/***/ 63233: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1236,20 +1052,15 @@ exports["default"] = _default; exports.__esModule = true; exports.usage = exports.entry = void 0; - -var _usage = _interopRequireDefault(__nccwpck_require__(496)); - +var _usage = _interopRequireDefault(__nccwpck_require__(70571)); exports.usage = _usage.default; - -var _entry = _interopRequireDefault(__nccwpck_require__(8627)); - +var _entry = _interopRequireDefault(__nccwpck_require__(59280)); exports.entry = _entry.default; - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), -/***/ 496: +/***/ 70571: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1257,9 +1068,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de exports.__esModule = true; exports["default"] = void 0; - -var _utils = __nccwpck_require__(82429); - +var _utils = __nccwpck_require__(81530); var _default = callProvider => { function property(object, key, placement, path) { return callProvider({ @@ -1269,7 +1078,6 @@ var _default = callProvider => { placement }, path); } - return { // Symbol(), new Promise ReferencedIdentifier(path) { @@ -1285,50 +1093,46 @@ var _default = callProvider => { name }, path); }, - MemberExpression(path) { const key = (0, _utils.resolveKey)(path.get("property"), path.node.computed); if (!key || key === "prototype") return; const object = path.get("object"); - if (object.isIdentifier()) { const binding = object.scope.getBinding(object.node.name); if (binding && binding.path.isImportNamespaceSpecifier()) return; } - const source = (0, _utils.resolveSource)(object); return property(source.id, key, source.placement, path); }, - ObjectPattern(path) { const { parentPath, parent } = path; - let obj; // const { keys, values } = Object + let obj; + // const { keys, values } = Object if (parentPath.isVariableDeclarator()) { - obj = parentPath.get("init"); // ({ keys, values } = Object) + obj = parentPath.get("init"); + // ({ keys, values } = Object) } else if (parentPath.isAssignmentExpression()) { - obj = parentPath.get("right"); // !function ({ keys, values }) {...} (Object) + obj = parentPath.get("right"); + // !function ({ keys, values }) {...} (Object) // resolution does not work after properties transform :-( } else if (parentPath.isFunction()) { const grand = parentPath.parentPath; - if (grand.isCallExpression() || grand.isNewExpression()) { if (grand.node.callee === parent) { obj = grand.get("arguments")[path.key]; } } } - let id = null; let placement = null; if (obj) ({ id, placement } = (0, _utils.resolveSource)(obj)); - for (const prop of path.get("properties")) { if (prop.isObjectProperty()) { const key = (0, _utils.resolveKey)(prop.get("key")); @@ -1336,7 +1140,6 @@ var _default = callProvider => { } } }, - BinaryExpression(path) { if (path.node.operator !== "in") return; const source = (0, _utils.resolveSource)(path.get("right")); @@ -1349,15 +1152,13 @@ var _default = callProvider => { placement: source.placement }, path); } - }; }; - exports["default"] = _default; /***/ }), -/***/ 33113: +/***/ 58656: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1386,7 +1187,7 @@ exports["default"] = _default; /***/ }), -/***/ 74227: +/***/ 94961: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1415,7 +1216,7 @@ exports["default"] = _default; /***/ }), -/***/ 92476: +/***/ 69861: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1444,7 +1245,7 @@ exports["default"] = _default; /***/ }), -/***/ 4370: +/***/ 20797: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1473,7 +1274,7 @@ exports["default"] = _default; /***/ }), -/***/ 13021: +/***/ 46972: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1502,7 +1303,7 @@ exports["default"] = _default; /***/ }), -/***/ 8203: +/***/ 14362: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1531,7 +1332,7 @@ exports["default"] = _default; /***/ }), -/***/ 90194: +/***/ 45142: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1560,7 +1361,7 @@ exports["default"] = _default; /***/ }), -/***/ 88999: +/***/ 70400: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1589,7 +1390,7 @@ exports["default"] = _default; /***/ }), -/***/ 99617: +/***/ 94339: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1618,7 +1419,7 @@ exports["default"] = _default; /***/ }), -/***/ 57580: +/***/ 40311: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1647,7 +1448,7 @@ exports["default"] = _default; /***/ }), -/***/ 63664: +/***/ 36156: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1676,7 +1477,7 @@ exports["default"] = _default; /***/ }), -/***/ 73508: +/***/ 70110: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1705,7 +1506,7 @@ exports["default"] = _default; /***/ }), -/***/ 63652: +/***/ 99617: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1734,7 +1535,7 @@ exports["default"] = _default; /***/ }), -/***/ 50811: +/***/ 52495: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1763,7 +1564,7 @@ exports["default"] = _default; /***/ }), -/***/ 53331: +/***/ 62166: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1792,7 +1593,7 @@ exports["default"] = _default; /***/ }), -/***/ 88523: +/***/ 81003: /***/ (function(module, exports) { "use strict"; @@ -1844,7 +1645,7 @@ module.exports = exports.default; /***/ }), -/***/ 19687: +/***/ 54976: /***/ (function(module, exports) { "use strict"; @@ -1887,7 +1688,7 @@ module.exports = exports.default; /***/ }), -/***/ 57645: +/***/ 35136: /***/ (function(module, exports) { "use strict"; @@ -1936,7 +1737,7 @@ module.exports = exports.default; /***/ }), -/***/ 99148: +/***/ 57275: /***/ (function(module, exports) { "use strict"; @@ -1990,7 +1791,7 @@ module.exports = exports.default; /***/ }), -/***/ 83467: +/***/ 47742: /***/ (function(module, exports) { "use strict"; @@ -2039,7 +1840,7 @@ module.exports = exports.default; /***/ }), -/***/ 36437: +/***/ 26513: /***/ (function(module, exports) { "use strict"; @@ -2554,191 +2355,11 @@ module.exports = exports.default; /***/ }), -/***/ 99721: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -(function (global, factory) { - true ? factory(exports, __nccwpck_require__(65036), __nccwpck_require__(33248)) : - 0; -})(this, (function (exports, setArray, sourcemapCodec) { 'use strict'; - - /** - * A low-level API to associate a generated position with an original source position. Line and - * column here are 0-based, unlike `addMapping`. - */ - exports.addSegment = void 0; - /** - * A high-level API to associate a generated position with an original source position. Line is - * 1-based, but column is 0-based, due to legacy behavior in `source-map` library. - */ - exports.addMapping = void 0; - /** - * Adds/removes the content of the source file to the source map. - */ - exports.setSourceContent = void 0; - /** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - exports.decodedMap = void 0; - /** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - exports.encodedMap = void 0; - /** - * Returns an array of high-level mapping objects for every recorded segment, which could then be - * passed to the `source-map` library. - */ - exports.allMappings = void 0; - /** - * Provides the state to generate a sourcemap. - */ - class GenMapping { - constructor({ file, sourceRoot } = {}) { - this._names = new setArray.SetArray(); - this._sources = new setArray.SetArray(); - this._sourcesContent = []; - this._mappings = []; - this.file = file; - this.sourceRoot = sourceRoot; - } - } - (() => { - exports.addSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name) => { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, } = map; - const line = getLine(mappings, genLine); - if (source == null) { - const seg = [genColumn]; - const index = getColumnIndex(line, genColumn, seg); - return insert(line, index, seg); - } - const sourcesIndex = setArray.put(sources, source); - const seg = name - ? [genColumn, sourcesIndex, sourceLine, sourceColumn, setArray.put(names, name)] - : [genColumn, sourcesIndex, sourceLine, sourceColumn]; - const index = getColumnIndex(line, genColumn, seg); - if (sourcesIndex === sourcesContent.length) - sourcesContent[sourcesIndex] = null; - insert(line, index, seg); - }; - exports.addMapping = (map, mapping) => { - const { generated, source, original, name } = mapping; - return exports.addSegment(map, generated.line - 1, generated.column, source, original == null ? undefined : original.line - 1, original === null || original === void 0 ? void 0 : original.column, name); - }; - exports.setSourceContent = (map, source, content) => { - const { _sources: sources, _sourcesContent: sourcesContent } = map; - sourcesContent[setArray.put(sources, source)] = content; - }; - exports.decodedMap = (map) => { - const { file, sourceRoot, _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, } = map; - return { - version: 3, - file, - names: names.array, - sourceRoot: sourceRoot || undefined, - sources: sources.array, - sourcesContent, - mappings, - }; - }; - exports.encodedMap = (map) => { - const decoded = exports.decodedMap(map); - return Object.assign(Object.assign({}, decoded), { mappings: sourcemapCodec.encode(decoded.mappings) }); - }; - exports.allMappings = (map) => { - const out = []; - const { _mappings: mappings, _sources: sources, _names: names } = map; - for (let i = 0; i < mappings.length; i++) { - const line = mappings[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const generated = { line: i + 1, column: seg[0] }; - let source = undefined; - let original = undefined; - let name = undefined; - if (seg.length !== 1) { - source = sources.array[seg[1]]; - original = { line: seg[2] + 1, column: seg[3] }; - if (seg.length === 5) - name = names.array[seg[4]]; - } - out.push({ generated, source, original, name }); - } - } - return out; - }; - })(); - function getLine(mappings, index) { - for (let i = mappings.length; i <= index; i++) { - mappings[i] = []; - } - return mappings[index]; - } - function getColumnIndex(line, column, seg) { - let index = line.length; - for (let i = index - 1; i >= 0; i--, index--) { - const current = line[i]; - const col = current[0]; - if (col > column) - continue; - if (col < column) - break; - const cmp = compare(current, seg); - if (cmp === 0) - return index; - if (cmp < 0) - break; - } - return index; - } - function compare(a, b) { - let cmp = compareNum(a.length, b.length); - if (cmp !== 0) - return cmp; - // We've already checked genColumn - if (a.length === 1) - return 0; - cmp = compareNum(a[1], b[1]); - if (cmp !== 0) - return cmp; - cmp = compareNum(a[2], b[2]); - if (cmp !== 0) - return cmp; - cmp = compareNum(a[3], b[3]); - if (cmp !== 0) - return cmp; - if (a.length === 4) - return 0; - return compareNum(a[4], b[4]); - } - function compareNum(a, b) { - return a - b; - } - function insert(array, index, value) { - if (index === -1) - return; - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; - } - - exports.GenMapping = GenMapping; - - Object.defineProperty(exports, '__esModule', { value: true }); - -})); -//# sourceMappingURL=gen-mapping.umd.js.map - - -/***/ }), - -/***/ 95937: +/***/ 11885: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { (function (global, factory) { - true ? factory(exports, __nccwpck_require__(65036), __nccwpck_require__(33248), __nccwpck_require__(46974)) : + true ? factory(exports, __nccwpck_require__(71465), __nccwpck_require__(99112), __nccwpck_require__(72215)) : 0; })(this, (function (exports, setArray, sourcemapCodec, traceMapping) { 'use strict'; @@ -2976,7 +2597,7 @@ module.exports = exports.default; /***/ }), -/***/ 69413: +/***/ 54446: /***/ (function(module) { (function (global, factory) { @@ -3232,7 +2853,7 @@ module.exports = exports.default; /***/ }), -/***/ 65036: +/***/ 71465: /***/ (function(__unused_webpack_module, exports) { (function (global, factory) { @@ -3296,7 +2917,7 @@ module.exports = exports.default; /***/ }), -/***/ 33248: +/***/ 99112: /***/ (function(__unused_webpack_module, exports) { (function (global, factory) { @@ -3477,11 +3098,11 @@ module.exports = exports.default; /***/ }), -/***/ 46974: +/***/ 72215: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { (function (global, factory) { - true ? factory(exports, __nccwpck_require__(33248), __nccwpck_require__(69413)) : + true ? factory(exports, __nccwpck_require__(99112), __nccwpck_require__(54446)) : 0; })(this, (function (exports, sourcemapCodec, resolveUri) { 'use strict'; @@ -3837,7 +3458,7 @@ module.exports = exports.default; const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; this.version = version; this.file = file; - this.names = names; + this.names = names || []; this.sourceRoot = sourceRoot; this.sources = sources; this.sourcesContent = sourcesContent; @@ -4223,7 +3844,7 @@ Object.defineProperty(module, 'exports', { /***/ }), -/***/ 26788: +/***/ 64470: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -4231,9 +3852,7 @@ Object.defineProperty(module, 'exports', { exports.__esModule = true; exports["default"] = _default; - function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - const webPolyfills = { "web.timers": {}, "web.immediate": {}, @@ -4244,7 +3863,6 @@ const purePolyfills = { "es6.parse-int": {}, "es7.string.at": {} }; - function _default(targets, method, polyfills) { const targetNames = Object.keys(targets); const isAnyTarget = !targetNames.length; @@ -4254,7 +3872,7 @@ function _default(targets, method, polyfills) { /***/ }), -/***/ 57677: +/***/ 44927: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -4262,11 +3880,8 @@ function _default(targets, method, polyfills) { exports.__esModule = true; exports.StaticProperties = exports.InstanceProperties = exports.CommonIterators = exports.BuiltIns = void 0; - -var _corejs2BuiltIns = _interopRequireDefault(__nccwpck_require__(55368)); - +var _corejs2BuiltIns = _interopRequireDefault(__nccwpck_require__(65838)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - const define = (name, pure, global = [], meta) => { return { name, @@ -4275,15 +3890,11 @@ const define = (name, pure, global = [], meta) => { meta }; }; - const pureAndGlobal = (pure, global, minRuntimeVersion = null) => define(global[0], pure, global, { minRuntimeVersion }); - const globalOnly = global => define(global[0], null, global); - const pureOnly = (pure, name) => define(name, pure, []); - const ArrayNatureIterators = ["es6.object.to-string", "es6.array.iterator", "web.dom.iterable"]; const CommonIterators = ["es6.string.iterator", ...ArrayNatureIterators]; exports.CommonIterators = CommonIterators; @@ -4372,14 +3983,13 @@ const InstanceProperties = { trimRight: globalOnly(["es7.string.trim-right"]), trimStart: globalOnly(["es7.string.trim-left"]), values: globalOnly(ArrayNatureIterators) -}; // This isn't present in older @babel/compat-data versions +}; +// This isn't present in older @babel/compat-data versions exports.InstanceProperties = InstanceProperties; - if ("es6.array.slice" in _corejs2BuiltIns.default) { InstanceProperties.slice = globalOnly(["es6.array.slice"]); } - const StaticProperties = { Array: { from: pureAndGlobal("array/from", ["es6.symbol", "es6.array.from", ...CommonIterators]), @@ -4492,7 +4102,7 @@ exports.StaticProperties = StaticProperties; /***/ }), -/***/ 31879: +/***/ 60496: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -4500,16 +4110,15 @@ exports.StaticProperties = StaticProperties; exports.__esModule = true; exports.hasMinVersion = hasMinVersion; - -var _semver = _interopRequireDefault(__nccwpck_require__(8999)); - +var _semver = _interopRequireDefault(__nccwpck_require__(72641)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function hasMinVersion(minVersion, runtimeVersion) { // If the range is unavailable, we're running the script during Babel's // build process, and we want to assume that all versions are satisfied so // that the built output will include all definitions. - if (!runtimeVersion || !minVersion) return true; // semver.intersects() has some surprising behavior with comparing ranges + if (!runtimeVersion || !minVersion) return true; + + // semver.intersects() has some surprising behavior with comparing ranges // with preprelease versions. We add '^' to ensure that we are always // comparing ranges with ranges, which sidesteps this logic. // For example: @@ -4526,40 +4135,30 @@ function hasMinVersion(minVersion, runtimeVersion) { // // Note: If this is found to have issues, please also revist the logic in // babel-core's availableHelper() API. - if (_semver.default.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`; return !_semver.default.intersects(`<${minVersion}`, runtimeVersion) && !_semver.default.intersects(`>=8.0.0`, runtimeVersion); } /***/ }), -/***/ 15951: +/***/ 63886: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; +var __webpack_unused_export__; -exports.__esModule = true; -exports["default"] = void 0; - -var _corejs2BuiltIns = _interopRequireDefault(__nccwpck_require__(55368)); - -var _builtInDefinitions = __nccwpck_require__(57677); - -var _addPlatformSpecificPolyfills = _interopRequireDefault(__nccwpck_require__(26788)); - -var _helpers = __nccwpck_require__(31879); - -var _helperDefinePolyfillProvider = _interopRequireDefault(__nccwpck_require__(34064)); - -var _babel = _interopRequireWildcard(__nccwpck_require__(27324)); - +__webpack_unused_export__ = true; +exports.Z = void 0; +var _corejs2BuiltIns = _interopRequireDefault(__nccwpck_require__(65838)); +var _builtInDefinitions = __nccwpck_require__(44927); +var _addPlatformSpecificPolyfills = _interopRequireDefault(__nccwpck_require__(64470)); +var _helpers = __nccwpck_require__(60496); +var _helperDefinePolyfillProvider = _interopRequireDefault(__nccwpck_require__(98261)); +var _babel = _interopRequireWildcard(__nccwpck_require__(65258)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - const { types: t } = _babel.default || _babel; @@ -4567,7 +4166,6 @@ const BABEL_RUNTIME = "@babel/runtime-corejs2"; const presetEnvCompat = "#__secret_key__@babel/preset-env__compatibility"; const runtimeCompat = "#__secret_key__@babel/runtime__compatibility"; const has = Function.call.bind(Object.hasOwnProperty); - var _default = (0, _helperDefinePolyfillProvider.default)(function (api, { [presetEnvCompat]: { entryInjectRegenerator = false, @@ -4591,7 +4189,6 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function (api, { } = api; const polyfills = (0, _addPlatformSpecificPolyfills.default)(api.targets, method, _corejs2BuiltIns.default); const coreJSBase = useBabelRuntime ? `${BABEL_RUNTIME}/core-js` : method === "usage-pure" ? "core-js/library/fn" : "core-js/modules"; - function inject(name, utils) { if (typeof name === "string") { // Some polyfills aren't always available, for example @@ -4600,13 +4197,10 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function (api, { debug(name); utils.injectGlobalImport(`${coreJSBase}/${name}.js`); } - return; } - name.forEach(name => inject(name, utils)); } - function maybeInjectPure(desc, hint, utils) { let { pure, @@ -4614,48 +4208,39 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function (api, { name } = desc; if (!pure || !shouldInjectPolyfill(name)) return; - if (runtimeVersion && meta && meta.minRuntimeVersion && !(0, _helpers.hasMinVersion)(meta && meta.minRuntimeVersion, runtimeVersion)) { return; - } // Unfortunately core-js and @babel/runtime-corejs2 don't have the same - // directory structure, so we need to special case this. - + } + // Unfortunately core-js and @babel/runtime-corejs2 don't have the same + // directory structure, so we need to special case this. if (useBabelRuntime && pure === "symbol/index") pure = "symbol"; return utils.injectDefaultImport(`${coreJSBase}/${pure}${ext}`, hint); } - return { name: "corejs2", runtimeName: noRuntimeName ? null : BABEL_RUNTIME, polyfills, - entryGlobal(meta, utils, path) { if (meta.kind === "import" && meta.source === "core-js") { debug(null); inject(Object.keys(polyfills), utils); - if (entryInjectRegenerator) { utils.injectGlobalImport("regenerator-runtime/runtime.js"); } - path.remove(); } }, - usageGlobal(meta, utils) { const resolved = resolve(meta); if (!resolved) return; let deps = resolved.desc.global; - if (resolved.kind !== "global" && "object" in meta && meta.object && meta.placement === "prototype") { const low = meta.object.toLowerCase(); deps = deps.filter(m => m.includes(low)); } - inject(deps, utils); }, - usagePure(meta, utils, path) { if (meta.kind === "in") { if (meta.key === "Symbol.iterator") { @@ -4665,16 +4250,13 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function (api, { return; } - if (path.parentPath.isUnaryExpression({ operator: "delete" })) return; - if (meta.kind === "property") { // We can't compile destructuring. if (!path.isMemberExpression()) return; if (!path.isReferenced()) return; - if (meta.key === "Symbol.iterator" && shouldInjectPolyfill("es6.symbol") && path.parentPath.isCallExpression({ callee: path.node }) && path.parentPath.node.arguments.length === 0) { @@ -4683,13 +4265,11 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function (api, { return; } } - const resolved = resolve(meta); if (!resolved) return; const id = maybeInjectPure(resolved.desc, resolved.name, utils); if (id) path.replaceWith(id); }, - visitor: method === "usage-global" && { // yield* YieldExpression(path) { @@ -4697,62 +4277,55 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function (api, { inject("web.dom.iterable", api.getUtils(path)); } }, - // for-of, [a, b] = c "ForOfStatement|ArrayPattern"(path) { _builtInDefinitions.CommonIterators.forEach(name => inject(name, api.getUtils(path))); } - } }; }); - -exports["default"] = _default; +exports.Z = _default; /***/ }), -/***/ 16432: +/***/ 20620: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -module.exports = __nccwpck_require__(52260); +module.exports = __nccwpck_require__(33408); /***/ }), -/***/ 5399: +/***/ 48856: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -module.exports = __nccwpck_require__(61274); +module.exports = __nccwpck_require__(22604); /***/ }), -/***/ 54700: +/***/ 74580: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -module.exports = __nccwpck_require__(16943); +module.exports = __nccwpck_require__(57695); /***/ }), -/***/ 78679: +/***/ 71371: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; exports.__esModule = true; -exports.StaticProperties = exports.PromiseDependenciesWithIterators = exports.PromiseDependencies = exports.InstanceProperties = exports.CommonIterators = exports.BuiltIns = void 0; - -var _data = _interopRequireDefault(__nccwpck_require__(16432)); - +exports.StaticProperties = exports.PromiseDependenciesWithIterators = exports.PromiseDependencies = exports.InstanceProperties = exports.DecoratorMetadataDependencies = exports.CommonIterators = exports.BuiltIns = void 0; +var _data = _interopRequireDefault(__nccwpck_require__(20620)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - const polyfillsOrder = {}; Object.keys(_data.default).forEach((name, index) => { polyfillsOrder[name] = index; }); - const define = (pure, global, name = global[0], exclude) => { return { name, @@ -4761,9 +4334,7 @@ const define = (pure, global, name = global[0], exclude) => { exclude }; }; - const typed = name => define(null, [name, ...TypedArrayDependencies]); - const ArrayNatureIterators = ["es.array.iterator", "web.dom-collections.iterator"]; const CommonIterators = ["es.string.iterator", ...ArrayNatureIterators]; exports.CommonIterators = CommonIterators; @@ -4782,24 +4353,27 @@ const SetDependencies = ["es.set", "esnext.set.add-all", "esnext.set.delete-all" const WeakMapDependencies = ["es.weak-map", "esnext.weak-map.delete-all", "esnext.weak-map.emplace", ...CommonIteratorsWithTag]; const WeakSetDependencies = ["es.weak-set", "esnext.weak-set.add-all", "esnext.weak-set.delete-all", ...CommonIteratorsWithTag]; const DOMExceptionDependencies = ["web.dom-exception.constructor", "web.dom-exception.stack", "web.dom-exception.to-string-tag", "es.error.to-string"]; -const URLSearchParamsDependencies = ["web.url-search-params", "web.url-search-params.size", ...CommonIteratorsWithTag]; +const URLSearchParamsDependencies = ["web.url-search-params", "web.url-search-params.delete", "web.url-search-params.has", "web.url-search-params.size", ...CommonIteratorsWithTag]; const AsyncIteratorDependencies = ["esnext.async-iterator.constructor", ...PromiseDependencies]; const AsyncIteratorProblemMethods = ["esnext.async-iterator.every", "esnext.async-iterator.filter", "esnext.async-iterator.find", "esnext.async-iterator.flat-map", "esnext.async-iterator.for-each", "esnext.async-iterator.map", "esnext.async-iterator.reduce", "esnext.async-iterator.some"]; const IteratorDependencies = ["esnext.iterator.constructor", "es.object.to-string"]; +const DecoratorMetadataDependencies = ["esnext.symbol.metadata", "esnext.function.metadata"]; +exports.DecoratorMetadataDependencies = DecoratorMetadataDependencies; const TypedArrayStaticMethods = { from: define(null, ["es.typed-array.from"]), fromAsync: define(null, ["esnext.typed-array.from-async", ...PromiseDependenciesWithIterators]), of: define(null, ["es.typed-array.of"]) }; +const DataViewDependencies = ["es.data-view", "es.array-buffer.slice", "es.object.to-string"]; const BuiltIns = { - AsyncDisposableStack: define("async-disposable-stack", ["esnext.async-disposable-stack.constructor", "es.object.to-string", "esnext.async-iterator.async-dispose", "esnext.iterator.dispose", ...PromiseDependencies, ...SuppressedErrorDependencies]), + AsyncDisposableStack: define("async-disposable-stack/index", ["esnext.async-disposable-stack.constructor", "es.object.to-string", "esnext.async-iterator.async-dispose", "esnext.iterator.dispose", ...PromiseDependencies, ...SuppressedErrorDependencies]), AsyncIterator: define("async-iterator/index", AsyncIteratorDependencies), AggregateError: define("aggregate-error", ["es.aggregate-error", ...ErrorDependencies, ...CommonIteratorsWithTag, "es.aggregate-error.cause"]), ArrayBuffer: define(null, ["es.array-buffer.constructor", "es.array-buffer.slice", "es.object.to-string"]), - DataView: define(null, ["es.data-view", "es.array-buffer.slice", "es.object.to-string"]), + DataView: define(null, DataViewDependencies), Date: define(null, ["es.date.to-string"]), - DOMException: define("dom-exception", DOMExceptionDependencies), - DisposableStack: define("disposable-stack", ["esnext.disposable-stack.constructor", "es.object.to-string", "esnext.iterator.dispose", ...SuppressedErrorDependencies]), + DOMException: define("dom-exception/index", DOMExceptionDependencies), + DisposableStack: define("disposable-stack/index", ["esnext.disposable-stack.constructor", "es.object.to-string", "esnext.iterator.dispose", ...SuppressedErrorDependencies]), Error: define(null, ErrorDependencies), EvalError: define(null, ErrorDependencies), Float32Array: typed("es.typed-array.float32-array"), @@ -4896,6 +4470,7 @@ const StaticProperties = { degrees: define("math/degrees", ["esnext.math.degrees"]), expm1: define("math/expm1", ["es.math.expm1"]), fround: define("math/fround", ["es.math.fround"]), + f16round: define("math/f16round", ["esnext.math.f16round"]), fscale: define("math/fscale", ["esnext.math.fscale"]), hypot: define("math/hypot", ["es.math.hypot"]), iaddh: define("math/iaddh", ["esnext.math.iaddh"]), @@ -4947,6 +4522,7 @@ const StaticProperties = { getOwnPropertyNames: define("object/get-own-property-names", ["es.object.get-own-property-names"]), getOwnPropertySymbols: define("object/get-own-property-symbols", ["es.symbol"]), getPrototypeOf: define("object/get-prototype-of", ["es.object.get-prototype-of"]), + groupBy: define("object/group-by", ["esnext.object.group-by", "es.object.create"]), hasOwn: define("object/has-own", ["es.object.has-own"]), is: define("object/is", ["es.object.is"]), isExtensible: define("object/is-extensible", ["es.object.is-extensible"]), @@ -4963,7 +4539,8 @@ const StaticProperties = { allSettled: define(null, ["es.promise.all-settled", ...PromiseDependenciesWithIterators]), any: define(null, ["es.promise.any", "es.aggregate-error", ...PromiseDependenciesWithIterators]), race: define(null, PromiseDependenciesWithIterators), - try: define(null, ["esnext.promise.try", ...PromiseDependenciesWithIterators]) + try: define(null, ["esnext.promise.try", ...PromiseDependencies]), + withResolvers: define(null, ["esnext.promise.with-resolvers", ...PromiseDependencies]) }, Reflect: { apply: define("reflect/apply", ["es.reflect.apply"]), @@ -4989,6 +4566,9 @@ const StaticProperties = { set: define("reflect/set", ["es.reflect.set"]), setPrototypeOf: define("reflect/set-prototype-of", ["es.reflect.set-prototype-of"]) }, + RegExp: { + escape: define("regexp/escape", ["esnext.regexp.escape"]) + }, Set: { from: define(null, ["esnext.set.from", ...SetDependencies]), of: define(null, ["esnext.set.of", ...SetDependencies]) @@ -5007,13 +4587,15 @@ const StaticProperties = { hasInstance: define("symbol/has-instance", ["es.symbol.has-instance", "es.function.has-instance"]), isConcatSpreadable: define("symbol/is-concat-spreadable", ["es.symbol.is-concat-spreadable", "es.array.concat"]), isRegistered: define("symbol/is-registered", ["esnext.symbol.is-registered", "es.symbol"]), + isRegisteredSymbol: define("symbol/is-registered-symbol", ["esnext.symbol.is-registered-symbol", "es.symbol"]), isWellKnown: define("symbol/is-well-known", ["esnext.symbol.is-well-known", "es.symbol"]), + isWellKnownSymbol: define("symbol/is-well-known-symbol", ["esnext.symbol.is-well-known-symbol", "es.symbol"]), iterator: define("symbol/iterator", ["es.symbol.iterator", ...CommonIteratorsWithTag]), keyFor: define("symbol/key-for", [], "es.symbol"), match: define("symbol/match", ["es.symbol.match", "es.string.match"]), matcher: define("symbol/matcher", ["esnext.symbol.matcher"]), matchAll: define("symbol/match-all", ["es.symbol.match-all", "es.string.match-all"]), - metadata: define("symbol/metadata", ["esnext.symbol.metadata"]), + metadata: define("symbol/metadata", DecoratorMetadataDependencies), metadataKey: define("symbol/metadata-key", ["esnext.symbol.metadata-key"]), observable: define("symbol/observable", ["esnext.symbol.observable"]), patternMatch: define("symbol/pattern-match", ["esnext.symbol.pattern-match"]), @@ -5054,7 +4636,8 @@ const StaticProperties = { exports.StaticProperties = StaticProperties; const InstanceProperties = { asIndexedPairs: define("instance/asIndexedPairs", ["esnext.async-iterator.as-indexed-pairs", ...AsyncIteratorDependencies, "esnext.iterator.as-indexed-pairs", ...IteratorDependencies]), - at: define("instance/at", [// TODO: We should introduce overloaded instance methods definition + at: define("instance/at", [ + // TODO: We should introduce overloaded instance methods definition // Before that is implemented, the `esnext.string.at` must be the first // In pure mode, the provider resolves the descriptor as a "pure" `esnext.string.at` // and treats the compat-data of `esnext.string.at` as the compat-data of @@ -5073,11 +4656,12 @@ const InstanceProperties = { demethodize: define("instance/demethodize", ["esnext.function.demethodize"]), description: define(null, ["es.symbol", "es.symbol.description"]), dotAll: define(null, ["es.regexp.dot-all"]), - drop: define("instance/drop", ["esnext.async-iterator.drop", ...AsyncIteratorDependencies, "esnext.iterator.drop", ...IteratorDependencies]), + drop: define(null, ["esnext.async-iterator.drop", ...AsyncIteratorDependencies, "esnext.iterator.drop", ...IteratorDependencies]), emplace: define("instance/emplace", ["esnext.map.emplace", "esnext.weak-map.emplace"]), endsWith: define("instance/ends-with", ["es.string.ends-with"]), entries: define("instance/entries", ArrayNatureIteratorsWithTag), - every: define("instance/every", ["es.array.every", "esnext.async-iterator.every", // TODO: add async iterator dependencies when we support sub-dependencies + every: define("instance/every", ["es.array.every", "esnext.async-iterator.every", + // TODO: add async iterator dependencies when we support sub-dependencies // esnext.async-iterator.every depends on es.promise // but we don't want to pull es.promise when esnext.async-iterator is disabled // @@ -5096,6 +4680,8 @@ const InstanceProperties = { flags: define("instance/flags", ["es.regexp.flags"]), flatMap: define("instance/flat-map", ["es.array.flat-map", "es.array.unscopables.flat-map", "esnext.async-iterator.flat-map", "esnext.iterator.flat-map", ...IteratorDependencies]), flat: define("instance/flat", ["es.array.flat", "es.array.unscopables.flat"]), + getFloat16: define(null, ["esnext.data-view.get-float16", ...DataViewDependencies]), + getUint8Clamped: define(null, ["esnext.data-view.get-uint8-clamped", ...DataViewDependencies]), getYear: define(null, ["es.date.get-year"]), group: define("instance/group", ["esnext.array.group"]), groupBy: define("instance/group-by", ["esnext.array.group-by"]), @@ -5105,9 +4691,9 @@ const InstanceProperties = { fontsize: define(null, ["es.string.fontsize"]), forEach: define("instance/for-each", ["es.array.for-each", "esnext.async-iterator.for-each", "esnext.iterator.for-each", ...IteratorDependencies, "web.dom-collections.for-each"]), includes: define("instance/includes", ["es.array.includes", "es.string.includes"]), - indexed: define("instance/indexed", ["esnext.async-iterator.indexed", ...AsyncIteratorDependencies, "esnext.iterator.indexed", ...IteratorDependencies]), + indexed: define(null, ["esnext.async-iterator.indexed", ...AsyncIteratorDependencies, "esnext.iterator.indexed", ...IteratorDependencies]), indexOf: define("instance/index-of", ["es.array.index-of"]), - isWellFormed: define("instance/is-well-formed", ["esnext.string.is-well-formed"]), + isWellFormed: define("instance/is-well-formed", ["es.string.is-well-formed"]), italic: define(null, ["es.string.italics"]), join: define(null, ["es.array.join"]), keys: define("instance/keys", ArrayNatureIteratorsWithTag), @@ -5129,6 +4715,8 @@ const InstanceProperties = { replaceAll: define("instance/replace-all", ["es.string.replace-all", "es.string.replace", "es.regexp.exec"]), reverse: define("instance/reverse", ["es.array.reverse"]), search: define(null, ["es.string.search", "es.regexp.exec"]), + setFloat16: define(null, ["esnext.data-view.set-float16", ...DataViewDependencies]), + setUint8Clamped: define(null, ["esnext.data-view.set-uint8-clamped", ...DataViewDependencies]), setYear: define(null, ["es.date.set-year"]), slice: define("instance/slice", ["es.array.slice"]), small: define(null, ["es.string.small"]), @@ -5142,9 +4730,9 @@ const InstanceProperties = { sub: define(null, ["es.string.sub"]), substr: define(null, ["es.string.substr"]), sup: define(null, ["es.string.sup"]), - take: define("instance/take", ["esnext.async-iterator.take", ...AsyncIteratorDependencies, "esnext.iterator.take", ...IteratorDependencies]), + take: define(null, ["esnext.async-iterator.take", ...AsyncIteratorDependencies, "esnext.iterator.take", ...IteratorDependencies]), test: define(null, ["es.regexp.test", "es.regexp.exec"]), - toArray: define("instance/to-array", ["esnext.async-iterator.to-array", ...AsyncIteratorDependencies, "esnext.iterator.to-array", ...IteratorDependencies]), + toArray: define(null, ["esnext.async-iterator.to-array", ...AsyncIteratorDependencies, "esnext.iterator.to-array", ...IteratorDependencies]), toAsync: define(null, ["esnext.iterator.to-async", ...IteratorDependencies, ...AsyncIteratorDependencies, ...AsyncIteratorProblemMethods]), toExponential: define(null, ["es.number.to-exponential"]), toFixed: define(null, ["es.number.to-fixed"]), @@ -5156,7 +4744,7 @@ const InstanceProperties = { toSorted: define("instance/to-sorted", ["es.array.to-sorted", "es.array.sort"]), toSpliced: define("instance/to-spliced", ["es.array.to-spliced"]), toString: define(null, ["es.object.to-string", "es.error.to-string", "es.date.to-string", "es.regexp.to-string"]), - toWellFormed: define("instance/to-well-formed", ["esnext.string.to-well-formed"]), + toWellFormed: define("instance/to-well-formed", ["es.string.to-well-formed"]), trim: define("instance/trim", ["es.string.trim"]), trimEnd: define("instance/trim-end", ["es.string.trim-end"]), trimLeft: define("instance/trim-left", ["es.string.trim-start"]), @@ -5177,7 +4765,7 @@ exports.InstanceProperties = InstanceProperties; /***/ }), -/***/ 44727: +/***/ 84604: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -5185,38 +4773,24 @@ exports.InstanceProperties = InstanceProperties; exports.__esModule = true; exports["default"] = void 0; - -var _data = _interopRequireDefault(__nccwpck_require__(16432)); - -var _shippedProposals = _interopRequireDefault(__nccwpck_require__(73815)); - -var _getModulesListForTargetVersion = _interopRequireDefault(__nccwpck_require__(54700)); - -var _builtInDefinitions = __nccwpck_require__(78679); - -var _usageFilters = _interopRequireDefault(__nccwpck_require__(28840)); - -var _babel = _interopRequireWildcard(__nccwpck_require__(27324)); - -var _utils = __nccwpck_require__(59829); - -var _helperDefinePolyfillProvider = _interopRequireDefault(__nccwpck_require__(34064)); - +var _data = _interopRequireDefault(__nccwpck_require__(20620)); +var _shippedProposals = _interopRequireDefault(__nccwpck_require__(15525)); +var _getModulesListForTargetVersion = _interopRequireDefault(__nccwpck_require__(74580)); +var _builtInDefinitions = __nccwpck_require__(71371); +var _usageFilters = _interopRequireDefault(__nccwpck_require__(78309)); +var _babel = _interopRequireWildcard(__nccwpck_require__(65258)); +var _utils = __nccwpck_require__(57026); +var _helperDefinePolyfillProvider = _interopRequireDefault(__nccwpck_require__(98261)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - const { types: t } = _babel.default || _babel; const presetEnvCompat = "#__secret_key__@babel/preset-env__compatibility"; const runtimeCompat = "#__secret_key__@babel/runtime__compatibility"; const uniqueObjects = ["array", "string", "iterator", "async-iterator", "dom-collections"].map(v => new RegExp(`[a-z]*\\.${v}\\..*`)); - const esnextFallback = (name, cb) => { if (cb(name)) return true; if (!name.startsWith("es.")) return false; @@ -5224,7 +4798,6 @@ const esnextFallback = (name, cb) => { if (!_data.default[fallback]) return false; return cb(fallback); }; - var _default = (0, _helperDefinePolyfillProvider.default)(function ({ getUtils, method, @@ -5251,21 +4824,17 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({ instance: _builtInDefinitions.InstanceProperties }); const available = new Set((0, _getModulesListForTargetVersion.default)(version)); - function getCoreJSPureBase(useProposalBase) { return useBabelRuntime ? useProposalBase ? `${_utils.BABEL_RUNTIME}/core-js` : `${_utils.BABEL_RUNTIME}/core-js-stable` : useProposalBase ? "core-js-pure/features" : "core-js-pure/stable"; } - function maybeInjectGlobalImpl(name, utils) { if (shouldInjectPolyfill(name)) { debug(name); utils.injectGlobalImport((0, _utils.coreJSModule)(name)); return true; } - return false; } - function maybeInjectGlobal(names, utils, fallback = true) { for (const name of names) { if (fallback) { @@ -5275,93 +4844,75 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({ } } } - function maybeInjectPure(desc, hint, utils, object) { if (desc.pure && !(object && desc.exclude && desc.exclude.includes(object)) && esnextFallback(desc.name, shouldInjectPolyfill)) { const { name } = desc; let useProposalBase = false; - if (proposals || shippedProposals && name.startsWith("esnext.")) { useProposalBase = true; } else if (name.startsWith("es.") && !available.has(name)) { useProposalBase = true; } - const coreJSPureBase = getCoreJSPureBase(useProposalBase); return utils.injectDefaultImport(`${coreJSPureBase}/${desc.pure}${ext}`, hint); } } - function isFeatureStable(name) { if (name.startsWith("esnext.")) { - const esName = `es.${name.slice(7)}`; // If its imaginative esName is not in latest compat data, it means + const esName = `es.${name.slice(7)}`; + // If its imaginative esName is not in latest compat data, it means // the proposal is not stage 4 - return esName in _data.default; } - return true; } - return { name: "corejs3", runtimeName: noRuntimeName ? null : _utils.BABEL_RUNTIME, polyfills: _data.default, - filterPolyfills(name) { if (!available.has(name)) return false; if (proposals || method === "entry-global") return true; - if (shippedProposals && _shippedProposals.default.has(name)) { return true; } - return isFeatureStable(name); }, - entryGlobal(meta, utils, path) { if (meta.kind !== "import") return; const modules = (0, _utils.isCoreJSSource)(meta.source); if (!modules) return; - if (modules.length === 1 && meta.source === (0, _utils.coreJSModule)(modules[0]) && shouldInjectPolyfill(modules[0])) { // Avoid infinite loop: do not replace imports with a new copy of // themselves. debug(null); return; } - const modulesSet = new Set(modules); const filteredModules = modules.filter(module => { if (!module.startsWith("esnext.")) return true; const stable = module.replace("esnext.", "es."); - if (modulesSet.has(stable) && shouldInjectPolyfill(stable)) { return false; } - return true; }); maybeInjectGlobal(filteredModules, utils, false); path.remove(); }, - usageGlobal(meta, utils, path) { const resolved = resolve(meta); if (!resolved) return; if ((0, _usageFilters.default)(resolved.desc, path)) return; let deps = resolved.desc.global; - if (resolved.kind !== "global" && "object" in meta && meta.object && meta.placement === "prototype") { const low = meta.object.toLowerCase(); deps = deps.filter(m => uniqueObjects.some(v => v.test(m)) ? m.includes(low) : true); } - maybeInjectGlobal(deps, utils); }, - usagePure(meta, utils, path) { if (meta.kind === "in") { if (meta.key === "Symbol.iterator") { @@ -5371,28 +4922,23 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({ return; } - if (path.parentPath.isUnaryExpression({ operator: "delete" })) return; - if (meta.kind === "property") { // We can't compile destructuring and updateExpression. if (!path.isMemberExpression()) return; if (!path.isReferenced()) return; if (path.parentPath.isUpdateExpression()) return; - if (t.isSuper(path.node.object)) { return; } - if (meta.key === "Symbol.iterator") { if (!shouldInjectPolyfill("es.symbol.iterator")) return; const { parent, node } = path; - if (t.isCallExpression(parent, { callee: node })) { @@ -5405,15 +4951,12 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({ } else { path.replaceWith(t.callExpression(utils.injectDefaultImport((0, _utils.coreJSPureHelper)("get-iterator-method", useBabelRuntime, ext), "getIteratorMethod"), [path.node.object])); } - return; } } - let resolved = resolve(meta); if (!resolved) return; if ((0, _usageFilters.default)(resolved.desc, path)) return; - if (useBabelRuntime && resolved.desc.pure && resolved.desc.pure.slice(-6) === "/index") { // Remove /index, since it doesn't exist in @babel/runtime-corejs3s resolved = _extends({}, resolved, { @@ -5422,22 +4965,22 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({ }) }); } - if (resolved.kind === "global") { const id = maybeInjectPure(resolved.desc, resolved.name, utils); if (id) path.replaceWith(id); } else if (resolved.kind === "static") { - const id = maybeInjectPure(resolved.desc, resolved.name, utils, // @ts-expect-error + const id = maybeInjectPure(resolved.desc, resolved.name, utils, + // @ts-expect-error meta.object); if (id) path.replaceWith(id); } else if (resolved.kind === "instance") { - const id = maybeInjectPure(resolved.desc, `${resolved.name}InstanceProperty`, utils, // @ts-expect-error + const id = maybeInjectPure(resolved.desc, `${resolved.name}InstanceProperty`, utils, + // @ts-expect-error meta.object); if (!id) return; const { node } = path; - if (t.isCallExpression(path.parent, { callee: node })) { @@ -5447,13 +4990,11 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({ } } }, - visitor: method === "usage-global" && { // import("foo") CallExpression(path) { if (path.get("callee").isImport()) { const utils = getUtils(path); - if (isWebpack) { // Webpack uses Promise.all to handle dynamic import. maybeInjectGlobal(_builtInDefinitions.PromiseDependenciesWithIterators, utils); @@ -5462,42 +5003,47 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({ } } }, - // (async function () { }).finally(...) Function(path) { if (path.node.async) { maybeInjectGlobal(_builtInDefinitions.PromiseDependencies, getUtils(path)); } }, - // for-of, [a, b] = c "ForOfStatement|ArrayPattern"(path) { maybeInjectGlobal(_builtInDefinitions.CommonIterators, getUtils(path)); }, - // [...spread] SpreadElement(path) { if (!path.parentPath.isObjectExpression()) { maybeInjectGlobal(_builtInDefinitions.CommonIterators, getUtils(path)); } }, - // yield* YieldExpression(path) { if (path.node.delegate) { maybeInjectGlobal(_builtInDefinitions.CommonIterators, getUtils(path)); } + }, + // Decorators metadata + Class(path) { + var _path$node$decorators; + const hasDecorators = ((_path$node$decorators = path.node.decorators) == null ? void 0 : _path$node$decorators.length) || path.node.body.body.some(el => { + var _decorators; + return (_decorators = el.decorators) == null ? void 0 : _decorators.length; + }); + if (hasDecorators) { + maybeInjectGlobal(_builtInDefinitions.DecoratorMetadataDependencies, getUtils(path)); + } } - } }; }); - exports["default"] = _default; /***/ }), -/***/ 73815: +/***/ 15525: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -5505,15 +5051,13 @@ exports["default"] = _default; exports.__esModule = true; exports["default"] = void 0; - // This file is automatically generated by scripts/build-corejs3-shipped-proposals.mjs -var _default = new Set(["esnext.array.from-async", "esnext.array.group", "esnext.array.group-to-map", "esnext.array-buffer.detached", "esnext.array-buffer.transfer", "esnext.array-buffer.transfer-to-fixed-length", "esnext.json.is-raw-json", "esnext.json.parse", "esnext.json.raw-json", "esnext.set.difference.v2", "esnext.set.intersection.v2", "esnext.set.is-disjoint-from.v2", "esnext.set.is-subset-of.v2", "esnext.set.is-superset-of.v2", "esnext.set.symmetric-difference.v2", "esnext.set.union.v2", "esnext.string.is-well-formed", "esnext.string.to-well-formed"]); - +var _default = new Set(["esnext.array.from-async", "esnext.array.group", "esnext.array.group-to-map", "esnext.array-buffer.detached", "esnext.array-buffer.transfer", "esnext.array-buffer.transfer-to-fixed-length", "esnext.iterator.constructor", "esnext.iterator.drop", "esnext.iterator.every", "esnext.iterator.filter", "esnext.iterator.find", "esnext.iterator.flat-map", "esnext.iterator.for-each", "esnext.iterator.from", "esnext.iterator.map", "esnext.iterator.reduce", "esnext.iterator.some", "esnext.iterator.take", "esnext.iterator.to-array", "esnext.json.is-raw-json", "esnext.json.parse", "esnext.json.raw-json", "esnext.map.group-by", "esnext.object.group-by", "esnext.promise.with-resolvers", "esnext.set.difference.v2", "esnext.set.intersection.v2", "esnext.set.is-disjoint-from.v2", "esnext.set.is-subset-of.v2", "esnext.set.is-superset-of.v2", "esnext.set.symmetric-difference.v2", "esnext.set.union.v2", "esnext.symbol.async-dispose", "esnext.symbol.dispose"]); exports["default"] = _default; /***/ }), -/***/ 28840: +/***/ 78309: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -5521,23 +5065,17 @@ exports["default"] = _default; exports.__esModule = true; exports["default"] = canSkipPolyfill; - -var _babel = _interopRequireWildcard(__nccwpck_require__(27324)); - +var _babel = _interopRequireWildcard(__nccwpck_require__(65258)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - const { types: t } = _babel.default || _babel; - function canSkipPolyfill(desc, path) { const { node, parent } = path; - switch (desc.name) { case "es.string.split": { @@ -5553,7 +5091,7 @@ function canSkipPolyfill(desc, path) { /***/ }), -/***/ 59829: +/***/ 57026: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -5565,29 +5103,21 @@ exports.callMethod = callMethod; exports.coreJSModule = coreJSModule; exports.coreJSPureHelper = coreJSPureHelper; exports.isCoreJSSource = isCoreJSSource; - -var _babel = _interopRequireWildcard(__nccwpck_require__(27324)); - -var _entries = _interopRequireDefault(__nccwpck_require__(5399)); - +var _babel = _interopRequireWildcard(__nccwpck_require__(65258)); +var _entries = _interopRequireDefault(__nccwpck_require__(48856)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - const { types: t } = _babel.default || _babel; const BABEL_RUNTIME = "@babel/runtime-corejs3"; exports.BABEL_RUNTIME = BABEL_RUNTIME; - function callMethod(path, id) { const { object } = path.node; let context1, context2; - if (t.isIdentifier(object)) { context1 = object; context2 = t.cloneNode(object); @@ -5595,44 +5125,36 @@ function callMethod(path, id) { context1 = path.scope.generateDeclaredUidIdentifier("context"); context2 = t.assignmentExpression("=", t.cloneNode(context1), object); } - path.replaceWith(t.memberExpression(t.callExpression(id, [context2]), t.identifier("call"))); path.parentPath.unshiftContainer("arguments", context1); } - function isCoreJSSource(source) { if (typeof source === "string") { source = source.replace(/\\/g, "/").replace(/(\/(index)?)?(\.js)?$/i, "").toLowerCase(); } - return Object.prototype.hasOwnProperty.call(_entries.default, source) && _entries.default[source]; } - function coreJSModule(name) { return `core-js/modules/${name}.js`; } - function coreJSPureHelper(name, useBabelRuntime, ext) { return useBabelRuntime ? `${BABEL_RUNTIME}/core-js/${name}${ext}` : `core-js-pure/features/${name}.js`; } /***/ }), -/***/ 33786: +/***/ 10864: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; +var __webpack_unused_export__; -exports.__esModule = true; -exports["default"] = void 0; - -var _helperDefinePolyfillProvider = _interopRequireDefault(__nccwpck_require__(34064)); - +__webpack_unused_export__ = true; +exports.Z = void 0; +var _helperDefinePolyfillProvider = _interopRequireDefault(__nccwpck_require__(98261)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - const runtimeCompat = "#__secret_key__@babel/runtime__compatibility"; - var _default = (0, _helperDefinePolyfillProvider.default)(({ debug, targets, @@ -5641,7 +5163,6 @@ var _default = (0, _helperDefinePolyfillProvider.default)(({ if (!shallowEqual(targets, babel.targets())) { throw new Error("This plugin does not use the targets option. Only preset-env's targets" + " or top-level targets need to be configured for this plugin to work." + " See https://github.com/babel/babel-polyfills/issues/36 for more" + " details."); } - const { [runtimeCompat]: { useBabelRuntime = false @@ -5650,43 +5171,34 @@ var _default = (0, _helperDefinePolyfillProvider.default)(({ return { name: "regenerator", polyfills: ["regenerator-runtime"], - usageGlobal(meta, utils) { if (isRegenerator(meta)) { debug("regenerator-runtime"); utils.injectGlobalImport("regenerator-runtime/runtime.js"); } }, - usagePure(meta, utils, path) { if (isRegenerator(meta)) { let pureName = "regenerator-runtime"; - if (useBabelRuntime) { var _get; - const runtimeName = (_get = path.hub.file.get("runtimeHelpersModuleName")) != null ? _get : "@babel/runtime"; pureName = `${runtimeName}/regenerator`; } - path.replaceWith(utils.injectDefaultImport(pureName, "regenerator-runtime")); } } - }; }); - -exports["default"] = _default; - +exports.Z = _default; const isRegenerator = meta => meta.kind === "global" && meta.name === "regeneratorRuntime"; - function shallowEqual(obj1, obj2) { return JSON.stringify(obj1) === JSON.stringify(obj2); } /***/ }), -/***/ 78769: +/***/ 34955: /***/ (function(module) { function BrowserslistError(message) { @@ -5705,21 +5217,22 @@ module.exports = BrowserslistError /***/ }), -/***/ 82333: +/***/ 62509: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -var jsReleases = __nccwpck_require__(68074) -var agents = (__nccwpck_require__(84562)/* .agents */ .D) -var jsEOL = __nccwpck_require__(31660) +var jsReleases = __nccwpck_require__(29750) +var agents = (__nccwpck_require__(24730)/* .agents */ .D) +var jsEOL = __nccwpck_require__(37629) var path = __nccwpck_require__(71017) -var e2c = __nccwpck_require__(79476) +var e2c = __nccwpck_require__(32767) -var BrowserslistError = __nccwpck_require__(78769) -var parse = __nccwpck_require__(96621) -var env = __nccwpck_require__(28477) // Will load browser.js in webpack +var BrowserslistError = __nccwpck_require__(34955) +var parse = __nccwpck_require__(8884) +var env = __nccwpck_require__(57591) // Will load browser.js in webpack var YEAR = 365.259641 * 24 * 60 * 60 * 1000 -var ANDROID_EVERGREEN_FIRST = 37 +var ANDROID_EVERGREEN_FIRST = '37' +var OP_MOB_BLINK_FIRST = 14 // Helpers @@ -5933,21 +5446,6 @@ function cloneData(data) { } } -function mapVersions(data, map) { - data.versions = data.versions.map(function (i) { - return map[i] || i - }) - data.released = data.released.map(function (i) { - return map[i] || i - }) - var fixedDate = {} - for (var i in data.releaseDate) { - fixedDate[map[i] || i] = data.releaseDate[i] - } - data.releaseDate = fixedDate - return data -} - function byName(name, context) { name = name.toLowerCase() name = browserslist.aliases[name] || name @@ -5958,9 +5456,6 @@ function byName(name, context) { } else { var cloned = cloneData(desktop) cloned.name = name - if (name === 'op_mob') { - cloned = mapVersions(cloned, { '10.0-10.1': '10' }) - } return cloned } } @@ -5968,18 +5463,31 @@ function byName(name, context) { } function normalizeAndroidVersions(androidVersions, chromeVersions) { - var firstEvergreen = ANDROID_EVERGREEN_FIRST - var last = chromeVersions[chromeVersions.length - 1] + var iFirstEvergreen = chromeVersions.indexOf(ANDROID_EVERGREEN_FIRST) return androidVersions .filter(function (version) { return /^(?:[2-4]\.|[34]$)/.test(version) }) - .concat(chromeVersions.slice(firstEvergreen - last - 1)) + .concat(chromeVersions.slice(iFirstEvergreen)) +} + +function copyObject(obj) { + var copy = {} + for (var key in obj) { + copy[key] = obj[key] + } + return copy } function normalizeAndroidData(android, chrome) { android.released = normalizeAndroidVersions(android.released, chrome.released) android.versions = normalizeAndroidVersions(android.versions, chrome.versions) + android.releaseDate = copyObject(android.releaseDate) + android.released.forEach(function (v) { + if (android.releaseDate[v] === undefined) { + android.releaseDate[v] = chrome.releaseDate[v] + } + }) return android } @@ -5998,16 +5506,34 @@ function unknownQuery(query) { ) } -function filterAndroid(list, versions, context) { - if (context.mobileToDesktop) return list - var released = browserslist.data.android.released - var last = released[released.length - 1] - var diff = last - ANDROID_EVERGREEN_FIRST - versions - if (diff > 0) { +// Adjusts last X versions queries for some mobile browsers, +// where caniuse data jumps from a legacy version to the latest +function filterJumps(list, name, nVersions, context) { + var jump = 1 + switch (name) { + case 'android': + if (context.mobileToDesktop) return list + var released = browserslist.data.chrome.released + jump = released.length - released.indexOf(ANDROID_EVERGREEN_FIRST) + break + case 'op_mob': + var latest = browserslist.data.op_mob.released.slice(-1)[0] + jump = getMajor(latest) - OP_MOB_BLINK_FIRST + 1 + break + default: + return list + } + if (nVersions <= jump) { return list.slice(-1) - } else { - return list.slice(diff - 1) } + return list.slice(jump - 1 - nVersions) +} + +function isSupported(flags, withPartial) { + return ( + typeof flags === 'string' && + (flags.indexOf('y') >= 0 || (withPartial && flags.indexOf('a') >= 0)) + ) } function resolve(queries, context) { @@ -6169,11 +5695,11 @@ browserslist.aliases = { // Can I Use only provides a few versions for some browsers (e.g. and_chr). // Fallback to a similar browser for unknown versions +// Note op_mob is not included as its chromium versions are not in sync with Opera desktop browserslist.desktopNames = { and_chr: 'chrome', and_ff: 'firefox', ie_mob: 'ie', - op_mob: 'opera', android: 'chrome' // has extra processing logic } @@ -6299,9 +5825,7 @@ var QUERIES = { if (!data) return selected var list = getMajorVersions(data.released, node.versions) list = list.map(nameMapper(data.name)) - if (data.name === 'android') { - list = filterAndroid(list, node.versions, context) - } + list = filterJumps(list, data.name, node.versions, context) return selected.concat(list) }, []) } @@ -6315,9 +5839,7 @@ var QUERIES = { if (!data) return selected var list = data.released.slice(-node.versions) list = list.map(nameMapper(data.name)) - if (data.name === 'android') { - list = filterAndroid(list, node.versions, context) - } + list = filterJumps(list, data.name, node.versions, context) return selected.concat(list) }, []) } @@ -6350,9 +5872,7 @@ var QUERIES = { var data = checkName(node.browser, context) var validVersions = getMajorVersions(data.released, node.versions) var list = validVersions.map(nameMapper(data.name)) - if (data.name === 'android') { - list = filterAndroid(list, node.versions, context) - } + list = filterJumps(list, data.name, node.versions, context) return list } }, @@ -6384,9 +5904,7 @@ var QUERIES = { select: function (context, node) { var data = checkName(node.browser, context) var list = data.released.slice(-node.versions).map(nameMapper(data.name)) - if (data.name === 'android') { - list = filterAndroid(list, node.versions, context) - } + list = filterJumps(list, data.name, node.versions, context) return list } }, @@ -6596,18 +6114,31 @@ var QUERIES = { select: coverQuery }, supports: { - matches: ['feature'], - regexp: /^supports\s+([\w-]+)$/, + matches: ['supportType', 'feature'], + regexp: /^(?:(fully|partially) )?supports\s+([\w-]+)$/, select: function (context, node) { env.loadFeature(browserslist.cache, node.feature) + var withPartial = node.supportType !== 'fully' var features = browserslist.cache[node.feature] - return Object.keys(features).reduce(function (result, version) { - var flags = features[version] - if (flags.indexOf('y') >= 0 || flags.indexOf('a') >= 0) { - result.push(version) - } - return result - }, []) + var result = [] + for (var name in features) { + var data = byName(name, context) + // Only check desktop when latest released mobile has support + var checkDesktop = + context.mobileToDesktop && + name in browserslist.desktopNames && + isSupported(features[name][data.released.slice(-1)[0]], withPartial) + data.versions.forEach(function (version) { + var flags = features[name][version] + if (flags === undefined && checkDesktop) { + flags = features[browserslist.desktopNames[name]][version] + } + if (isSupported(flags, withPartial)) { + result.push(name + ' ' + version) + } + }) + } + return result } }, electron_range: { @@ -6702,7 +6233,7 @@ var QUERIES = { matches: [], regexp: /^(firefox|ff|fx)\s+esr$/i, select: function () { - return ['firefox 102'] + return ['firefox 115'] } }, opera_mini_all: { @@ -6889,8 +6420,6 @@ var QUERIES = { } } - browserslist.versionAliases.op_mob['59'] = '58' - browserslist.nodeVersions = jsReleases.map(function (release) { return release.version }) @@ -6901,15 +6430,15 @@ module.exports = browserslist /***/ }), -/***/ 28477: +/***/ 57591: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -var feature = (__nccwpck_require__(33501)["default"]) -var region = (__nccwpck_require__(26777)["default"]) +var feature = (__nccwpck_require__(65673)["default"]) +var region = (__nccwpck_require__(69459)["default"]) var path = __nccwpck_require__(71017) var fs = __nccwpck_require__(57147) -var BrowserslistError = __nccwpck_require__(78769) +var BrowserslistError = __nccwpck_require__(34955) var IS_SECTION = /^\s*\[(.+)]\s*$/ var CONFIG_PATTERN = /^browserslist-config-/ @@ -7178,8 +6707,9 @@ module.exports = { var stats = feature(compressed).stats features[name] = {} for (var i in stats) { + features[name][i] = {} for (var j in stats[i]) { - features[name][i + ' ' + j] = stats[i][j] + features[name][i][j] = stats[i][j] } } }, @@ -7317,7 +6847,7 @@ module.exports = { /***/ }), -/***/ 96621: +/***/ 8884: /***/ (function(module) { var AND_REGEXP = /^\s+and\s+(.*)/i @@ -7481,23 +7011,23 @@ module.exports = bufferFrom /***/ }), -/***/ 12567: +/***/ 29521: /***/ (function(module) { -module.exports={A:{A:{J:0.0131217,E:0.00621152,F:0.0581246,G:0.0774995,A:0.00968743,B:0.571559,AC:0.009298},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","AC","J","E","F","G","A","B","","",""],E:"IE",F:{AC:962323200,J:998870400,E:1161129600,F:1237420800,G:1300060800,A:1346716800,B:1381968000}},B:{A:{C:0.003773,K:0.004267,L:0.004268,H:0.003773,M:0.003702,N:0.003773,O:0.015092,P:0,Q:0.004298,R:0.00944,S:0.004043,T:0.003773,U:0.003773,V:0.003974,W:0.003901,X:0.004318,Y:0.003773,Z:0.004118,a:0.003939,b:0.007546,c:0.004118,d:0.003939,f:0.003801,g:0.003901,h:0.003855,i:0.003929,j:0.003901,k:0.003773,l:0.007546,m:0.003773,n:0.011319,o:0.011319,p:0.018865,q:0.033957,r:1.13945,s:2.85239,D:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","K","L","H","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","f","g","h","i","j","k","l","m","n","o","p","q","r","s","D","","",""],E:"Edge",F:{C:1438128000,K:1447286400,L:1470096000,H:1491868800,M:1508198400,N:1525046400,O:1542067200,P:1579046400,Q:1581033600,R:1586736000,S:1590019200,T:1594857600,U:1598486400,V:1602201600,W:1605830400,X:1611360000,Y:1614816000,Z:1618358400,a:1622073600,b:1626912000,c:1630627200,d:1632441600,f:1634774400,g:1637539200,h:1641427200,i:1643932800,j:1646265600,k:1649635200,l:1651190400,m:1653955200,n:1655942400,o:1659657600,p:1661990400,q:1664755200,r:1666915200,s:1670198400,D:1673481600},D:{C:"ms",K:"ms",L:"ms",H:"ms",M:"ms",N:"ms",O:"ms"}},C:{A:{"0":0.004118,"1":0.004317,"2":0.004393,"3":0.004418,"4":0.008834,"5":0.008322,"6":0.008928,"7":0.004471,"8":0.009284,"9":0.004707,BC:0.004118,sB:0.004271,I:0.011703,t:0.004879,J:0.020136,E:0.005725,F:0.004525,G:0.00533,A:0.004283,B:0.007546,C:0.004471,K:0.004486,L:0.00453,H:0.008322,M:0.004417,N:0.004425,O:0.004161,u:0.004443,v:0.004283,w:0.008322,x:0.013698,y:0.004161,z:0.008786,AB:0.009076,BB:0.007546,CB:0.004783,DB:0.003929,EB:0.004783,FB:0.00487,GB:0.005029,HB:0.0047,IB:0.094325,JB:0.007546,KB:0.003867,LB:0.004525,MB:0.004293,NB:0.003773,OB:0.004538,PB:0.008282,QB:0.011601,RB:0.052822,SB:0.011601,TB:0.003929,UB:0.003974,VB:0.007546,WB:0.011601,XB:0.003939,tB:0.003773,YB:0.003929,uB:0.004356,ZB:0.004425,aB:0.008322,bB:0.00415,cB:0.004267,dB:0.003801,eB:0.004267,fB:0.003773,gB:0.00415,hB:0.004293,iB:0.004425,jB:0.003773,e:0.00415,kB:0.00415,lB:0.004318,mB:0.004356,nB:0.003974,oB:0.033957,P:0.003773,Q:0.003773,R:0.003773,vB:0.003773,S:0.003773,T:0.003929,U:0.004268,V:0.003801,W:0.011319,X:0.007546,Y:0.003773,Z:0.003773,a:0.018865,b:0.003801,c:0.003855,d:0.018865,f:0.003773,g:0.003773,h:0.003901,i:0.003901,j:0.007546,k:0.007546,l:0.007546,m:0.083006,n:0.030184,o:0.015092,p:0.030184,q:0.049049,r:1.12058,s:0.939477,D:0.011319,wB:0,xB:0,CC:0.008786,DC:0.00487},B:"moz",C:["BC","sB","CC","DC","I","t","J","E","F","G","A","B","C","K","L","H","M","N","O","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","tB","YB","uB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","e","kB","lB","mB","nB","oB","P","Q","R","vB","S","T","U","V","W","X","Y","Z","a","b","c","d","f","g","h","i","j","k","l","m","n","o","p","q","r","s","D","wB","xB",""],E:"Firefox",F:{"0":1379376000,"1":1386633600,"2":1391472000,"3":1395100800,"4":1398729600,"5":1402358400,"6":1405987200,"7":1409616000,"8":1413244800,"9":1417392000,BC:1161648000,sB:1213660800,CC:1246320000,DC:1264032000,I:1300752000,t:1308614400,J:1313452800,E:1317081600,F:1317081600,G:1320710400,A:1324339200,B:1327968000,C:1331596800,K:1335225600,L:1338854400,H:1342483200,M:1346112000,N:1349740800,O:1353628800,u:1357603200,v:1361232000,w:1364860800,x:1368489600,y:1372118400,z:1375747200,AB:1421107200,BB:1424736000,CB:1428278400,DB:1431475200,EB:1435881600,FB:1439251200,GB:1442880000,HB:1446508800,IB:1450137600,JB:1453852800,KB:1457395200,LB:1461628800,MB:1465257600,NB:1470096000,OB:1474329600,PB:1479168000,QB:1485216000,RB:1488844800,SB:1492560000,TB:1497312000,UB:1502150400,VB:1506556800,WB:1510617600,XB:1516665600,tB:1520985600,YB:1525824000,uB:1529971200,ZB:1536105600,aB:1540252800,bB:1544486400,cB:1548720000,dB:1552953600,eB:1558396800,fB:1562630400,gB:1567468800,hB:1571788800,iB:1575331200,jB:1578355200,e:1581379200,kB:1583798400,lB:1586304000,mB:1588636800,nB:1591056000,oB:1593475200,P:1595894400,Q:1598313600,R:1600732800,vB:1603152000,S:1605571200,T:1607990400,U:1611619200,V:1614038400,W:1616457600,X:1618790400,Y:1622505600,Z:1626134400,a:1628553600,b:1630972800,c:1633392000,d:1635811200,f:1638835200,g:1641859200,h:1644364800,i:1646697600,j:1649116800,k:1651536000,l:1653955200,m:1656374400,n:1658793600,o:1661212800,p:1663632000,q:1666051200,r:1668470400,s:1670889600,D:1673913600,wB:null,xB:null}},D:{A:{"0":0.004461,"1":0.004141,"2":0.004326,"3":0.0047,"4":0.004538,"5":0.008322,"6":0.008596,"7":0.004566,"8":0.004118,"9":0.007546,I:0.004706,t:0.004879,J:0.004879,E:0.005591,F:0.005591,G:0.005591,A:0.004534,B:0.004464,C:0.010424,K:0.0083,L:0.004706,H:0.015087,M:0.004393,N:0.004393,O:0.008652,u:0.008322,v:0.004393,w:0.004317,x:0.003901,y:0.008786,z:0.003939,AB:0.003901,BB:0.004335,CB:0.004464,DB:0.015092,EB:0.003867,FB:0.015092,GB:0.003773,HB:0.003974,IB:0.007546,JB:0.007948,KB:0.003974,LB:0.003867,MB:0.007546,NB:0.022638,OB:0.049049,PB:0.003867,QB:0.003929,RB:0.007546,SB:0.011319,TB:0.003867,UB:0.007546,VB:0.045276,WB:0.003773,XB:0.003773,tB:0.003773,YB:0.011319,uB:0.011319,ZB:0.003773,aB:0.015092,bB:0.003773,cB:0.011319,dB:0.030184,eB:0.007546,fB:0.007546,gB:0.079233,hB:0.026411,iB:0.011319,jB:0.03773,e:0.011319,kB:0.045276,lB:0.041503,mB:0.026411,nB:0.011319,oB:0.033957,P:0.120736,Q:0.041503,R:0.041503,S:0.07546,T:0.045276,U:0.094325,V:0.07546,W:0.079233,X:0.018865,Y:0.033957,Z:0.026411,a:0.056595,b:0.041503,c:0.049049,d:0.033957,f:0.022638,g:0.041503,h:0.056595,i:0.098098,j:0.049049,k:0.079233,l:0.060368,m:0.098098,n:0.279202,o:0.124509,p:0.192423,q:0.286748,r:3.64849,s:16.8389,D:0.033957,wB:0.018865,xB:0.011319,EC:0},B:"webkit",C:["","","","","","I","t","J","E","F","G","A","B","C","K","L","H","M","N","O","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","tB","YB","uB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","e","kB","lB","mB","nB","oB","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","f","g","h","i","j","k","l","m","n","o","p","q","r","s","D","wB","xB","EC"],E:"Chrome",F:{"0":1357862400,"1":1361404800,"2":1364428800,"3":1369094400,"4":1374105600,"5":1376956800,"6":1384214400,"7":1389657600,"8":1392940800,"9":1397001600,I:1264377600,t:1274745600,J:1283385600,E:1287619200,F:1291248000,G:1296777600,A:1299542400,B:1303862400,C:1307404800,K:1312243200,L:1316131200,H:1316131200,M:1319500800,N:1323734400,O:1328659200,u:1332892800,v:1337040000,w:1340668800,x:1343692800,y:1348531200,z:1352246400,AB:1400544000,BB:1405468800,CB:1409011200,DB:1412640000,EB:1416268800,FB:1421798400,GB:1425513600,HB:1429401600,IB:1432080000,JB:1437523200,KB:1441152000,LB:1444780800,MB:1449014400,NB:1453248000,OB:1456963200,PB:1460592000,QB:1464134400,RB:1469059200,SB:1472601600,TB:1476230400,UB:1480550400,VB:1485302400,WB:1489017600,XB:1492560000,tB:1496707200,YB:1500940800,uB:1504569600,ZB:1508198400,aB:1512518400,bB:1516752000,cB:1520294400,dB:1523923200,eB:1527552000,fB:1532390400,gB:1536019200,hB:1539648000,iB:1543968000,jB:1548720000,e:1552348800,kB:1555977600,lB:1559606400,mB:1564444800,nB:1568073600,oB:1571702400,P:1575936000,Q:1580860800,R:1586304000,S:1589846400,T:1594684800,U:1598313600,V:1601942400,W:1605571200,X:1611014400,Y:1614556800,Z:1618272000,a:1621987200,b:1626739200,c:1630368000,d:1632268800,f:1634601600,g:1637020800,h:1641340800,i:1643673600,j:1646092800,k:1648512000,l:1650931200,m:1653350400,n:1655769600,o:1659398400,p:1661817600,q:1664236800,r:1666656000,s:1669680000,D:1673308800,wB:null,xB:null,EC:null}},E:{A:{I:0,t:0.008322,J:0.004656,E:0.004465,F:0.003974,G:0.003929,A:0.004425,B:0.004318,C:0.003801,K:0.018865,L:0.094325,H:0.022638,FC:0,yB:0.008692,GC:0.011319,HC:0.00456,IC:0.004283,JC:0.022638,zB:0.007802,pB:0.007546,qB:0.033957,"0B":0.18865,KC:0.256564,LC:0.041503,"1B":0.03773,"2B":0.094325,"3B":0.192423,"4B":1.313,rB:0.162239,"5B":0.64141,"6B":0.143374,"7B":0,MC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","FC","yB","I","t","GC","J","HC","E","IC","F","G","JC","A","zB","B","pB","C","qB","K","0B","L","KC","H","LC","1B","2B","3B","4B","rB","5B","6B","7B","MC","",""],E:"Safari",F:{FC:1205798400,yB:1226534400,I:1244419200,t:1275868800,GC:1311120000,J:1343174400,HC:1382400000,E:1382400000,IC:1410998400,F:1413417600,G:1443657600,JC:1458518400,A:1474329600,zB:1490572800,B:1505779200,pB:1522281600,C:1537142400,qB:1553472000,K:1568851200,"0B":1585008000,L:1600214400,KC:1619395200,H:1632096000,LC:1635292800,"1B":1639353600,"2B":1647216000,"3B":1652745600,"4B":1658275200,rB:1662940800,"5B":1666569600,"6B":1670889600,"7B":1674432000,MC:null}},F:{A:{"0":0.006015,"1":0.005595,"2":0.004393,"3":0.007546,"4":0.004879,"5":0.004879,"6":0.003773,"7":0.005152,"8":0.005014,"9":0.009758,G:0.0082,B:0.016581,C:0.004317,H:0.00685,M:0.00685,N:0.00685,O:0.005014,u:0.006015,v:0.004879,w:0.006597,x:0.006597,y:0.013434,z:0.006702,AB:0.004879,BB:0.003773,CB:0.004283,DB:0.004367,EB:0.004534,FB:0.007546,GB:0.004227,HB:0.004418,IB:0.004161,JB:0.004227,KB:0.004725,LB:0.015092,MB:0.008942,NB:0.004707,OB:0.004827,PB:0.004707,QB:0.004707,RB:0.004326,SB:0.008922,TB:0.014349,UB:0.004425,VB:0.00472,WB:0.004425,XB:0.004425,YB:0.00472,ZB:0.004532,aB:0.004566,bB:0.02283,cB:0.00867,dB:0.004656,eB:0.004642,fB:0.003929,gB:0.00944,hB:0.004293,iB:0.003929,jB:0.004298,e:0.096692,kB:0.004201,lB:0.004141,mB:0.004257,nB:0.003939,oB:0.008236,P:0.003855,Q:0.003939,R:0.008514,vB:0.003939,S:0.003939,T:0.003702,U:0.007546,V:0.003855,W:0.003855,X:0.003929,Y:0.007802,Z:0.011703,a:0.007546,b:0.207515,c:0,d:0,NC:0.00685,OC:0,PC:0.008392,QC:0.004706,pB:0.006229,"8B":0.004879,RC:0.008786,qB:0.00472},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","G","NC","OC","PC","QC","B","pB","8B","RC","C","qB","H","M","N","O","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","e","kB","lB","mB","nB","oB","P","Q","R","vB","S","T","U","V","W","X","Y","Z","a","b","c","d","","",""],E:"Opera",F:{"0":1413331200,"1":1417132800,"2":1422316800,"3":1425945600,"4":1430179200,"5":1433808000,"6":1438646400,"7":1442448000,"8":1445904000,"9":1449100800,G:1150761600,NC:1223424000,OC:1251763200,PC:1267488000,QC:1277942400,B:1292457600,pB:1302566400,"8B":1309219200,RC:1323129600,C:1323129600,qB:1352073600,H:1372723200,M:1377561600,N:1381104000,O:1386288000,u:1390867200,v:1393891200,w:1399334400,x:1401753600,y:1405987200,z:1409616000,AB:1454371200,BB:1457308800,CB:1462320000,DB:1465344000,EB:1470096000,FB:1474329600,GB:1477267200,HB:1481587200,IB:1486425600,JB:1490054400,KB:1494374400,LB:1498003200,MB:1502236800,NB:1506470400,OB:1510099200,PB:1515024000,QB:1517961600,RB:1521676800,SB:1525910400,TB:1530144000,UB:1534982400,VB:1537833600,WB:1543363200,XB:1548201600,YB:1554768000,ZB:1561593600,aB:1566259200,bB:1570406400,cB:1573689600,dB:1578441600,eB:1583971200,fB:1587513600,gB:1592956800,hB:1595894400,iB:1600128000,jB:1603238400,e:1613520000,kB:1612224000,lB:1616544000,mB:1619568000,nB:1623715200,oB:1627948800,P:1631577600,Q:1633392000,R:1635984000,vB:1638403200,S:1642550400,T:1644969600,U:1647993600,V:1650412800,W:1652745600,X:1654646400,Y:1657152000,Z:1660780800,a:1663113600,b:1668816000,c:1668643200,d:1671062400},D:{G:"o",B:"o",C:"o",NC:"o",OC:"o",PC:"o",QC:"o",pB:"o","8B":"o",RC:"o",qB:"o"}},G:{A:{F:0,yB:0,SC:0,"9B":0.00470195,TC:0.00470195,UC:0.00313463,VC:0.0141058,WC:0.00626926,XC:0.0188078,YC:0.0611253,ZC:0.00783658,aC:0.106577,bC:0.0282117,cC:0.0266444,dC:0.0250771,eC:0.405935,fC:0.0423175,gC:0.0109712,hC:0.0391829,iC:0.141058,jC:0.340108,kC:0.647301,lC:0.186511,"1B":0.239799,"2B":0.304059,"3B":0.546993,"4B":2.31493,rB:2.09864,"5B":6.33196,"6B":0.694321,"7B":0.0156732},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","yB","SC","9B","TC","UC","VC","F","WC","XC","YC","ZC","aC","bC","cC","dC","eC","fC","gC","hC","iC","jC","kC","lC","1B","2B","3B","4B","rB","5B","6B","7B","","",""],E:"Safari on iOS",F:{yB:1270252800,SC:1283904000,"9B":1299628800,TC:1331078400,UC:1359331200,VC:1394409600,F:1410912000,WC:1413763200,XC:1442361600,YC:1458518400,ZC:1473724800,aC:1490572800,bC:1505779200,cC:1522281600,dC:1537142400,eC:1553472000,fC:1568851200,gC:1572220800,hC:1580169600,iC:1585008000,jC:1600214400,kC:1619395200,lC:1632096000,"1B":1639353600,"2B":1647216000,"3B":1652659200,"4B":1658275200,rB:1662940800,"5B":1666569600,"6B":1670889600,"7B":1674432000}},H:{A:{mC:0.966988},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mC","","",""],E:"Opera Mini",F:{mC:1426464000}},I:{A:{sB:0,I:0.0306951,D:0,nC:0,oC:0.0204634,pC:0,qC:0.0204634,"9B":0.0818537,rC:0,sC:0.4195},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","nC","oC","pC","sB","I","qC","9B","rC","sC","D","","",""],E:"Android Browser",F:{nC:1256515200,oC:1274313600,pC:1291593600,sB:1298332800,I:1318896000,qC:1341792000,"9B":1374624000,rC:1386547200,sC:1401667200,D:1673568000}},J:{A:{E:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","E","A","","",""],E:"Blackberry Browser",F:{E:1325376000,A:1359504000}},K:{A:{A:0,B:0,C:0,e:0.0111391,pB:0,"8B":0,qB:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","pB","8B","C","qB","e","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752000,pB:1314835200,"8B":1318291200,C:1330300800,qB:1349740800,e:1673827200},D:{e:"webkit"}},L:{A:{D:41.5426},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","","",""],E:"Chrome for Android",F:{D:1673568000}},M:{A:{D:0.292716},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","","",""],E:"Firefox for Android",F:{D:1673913600}},N:{A:{A:0.0115934,B:0.022664},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456000}},O:{A:{tC:1.75007},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","tC","","",""],E:"UC Browser for Android",F:{tC:1634688000},D:{tC:"webkit"}},P:{A:{I:0.166409,uC:0.0103543,vC:0.010304,wC:0.0520028,xC:0.0103584,yC:0.0104443,zB:0.0105043,zC:0.0312017,"0C":0.0104006,"1C":0.0520028,"2C":0.0624033,"3C":0.0312017,rB:0.114406,"4C":0.124807,"5C":0.249613,"6C":2.25692},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","uC","vC","wC","xC","yC","zB","zC","0C","1C","2C","3C","rB","4C","5C","6C","","",""],E:"Samsung Internet",F:{I:1461024000,uC:1481846400,vC:1509408000,wC:1528329600,xC:1546128000,yC:1554163200,zB:1567900800,zC:1582588800,"0C":1593475200,"1C":1605657600,"2C":1618531200,"3C":1629072000,rB:1640736000,"4C":1651708800,"5C":1659657600,"6C":1667260800}},Q:{A:{"0B":0.199296},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","0B","","",""],E:"QQ Browser",F:{"0B":1663718400}},R:{A:{"7C":0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","7C","","",""],E:"Baidu Browser",F:{"7C":1663027200}},S:{A:{"8C":0.068508},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","8C","","",""],E:"KaiOS Browser",F:{"8C":1527811200}}}; +module.exports={A:{A:{J:0,D:0,E:0.0125552,F:0.062776,A:0,B:0.364101,QC:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","QC","J","D","E","F","A","B","","",""],E:"IE",F:{QC:962323200,J:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968000}},B:{A:{"0":0.013452,"1":0.013452,"2":0.017936,"3":0.02242,"4":0.026904,"5":0.040356,"6":0.461852,"7":0.816088,C:0.008968,K:0.008968,L:0.013452,G:0.008968,M:0,N:0.004484,O:0.008968,P:0,Q:0,R:0,S:0,T:0.004484,U:0.004484,V:0,W:0.219716,X:0,Y:0,Z:0,a:0,b:0.013452,c:0,d:0,e:0,f:0,g:0,h:0,i:0.017936,j:0,k:0,l:0,m:0,n:0,u:0,v:0.004484,w:0.008968,x:0.013452,y:0.085196,z:0.013452,o:3.48407,H:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","K","L","G","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","u","v","w","x","y","z","0","1","2","3","4","5","6","7","o","H","","",""],E:"Edge",F:{"0":1678665600,"1":1680825600,"2":1683158400,"3":1685664000,"4":1689897600,"5":1692576000,"6":1694649600,"7":1697155200,C:1438128000,K:1447286400,L:1470096000,G:1491868800,M:1508198400,N:1525046400,O:1542067200,P:1579046400,Q:1581033600,R:1586736000,S:1590019200,T:1594857600,U:1598486400,V:1602201600,W:1605830400,X:1611360000,Y:1614816000,Z:1618358400,a:1622073600,b:1626912000,c:1630627200,d:1632441600,e:1634774400,f:1637539200,g:1641427200,h:1643932800,i:1646265600,j:1649635200,k:1651190400,l:1653955200,m:1655942400,n:1659657600,u:1661990400,v:1664755200,w:1666915200,x:1670198400,y:1673481600,z:1675900800,o:1698969600,H:1701993600},D:{C:"ms",K:"ms",L:"ms",G:"ms",M:"ms",N:"ms",O:"ms"}},C:{A:{"0":0.008968,"1":0.008968,"2":0.017936,"3":0.017936,"4":0.372172,"5":0.017936,"6":0.017936,"7":0.13452,"8":0,"9":0,RC:0,"5B":0,I:0,J:0,D:0.004484,E:0,F:0,A:0,B:0.026904,C:0.013452,K:0,L:0,G:0,M:0,N:0,O:0,p:0,q:0,r:0,s:0,AB:0,BB:0,CB:0,DB:0,EB:0,FB:0,GB:0,HB:0,IB:0,JB:0,KB:0,LB:0,MB:0,NB:0,OB:0,PB:0,QB:0,RB:0,SB:0,TB:0.004484,UB:0.004484,VB:0,WB:0,XB:0,YB:0.031388,ZB:0,aB:0.013452,bB:0,cB:0.062776,dB:0.008968,eB:0.017936,fB:0.004484,gB:0.02242,hB:0,iB:0,"6B":0.008968,jB:0,"7B":0,kB:0,lB:0.004484,mB:0,nB:0,oB:0,pB:0,qB:0.004484,rB:0,sB:0,tB:0,uB:0.008968,t:0,vB:0,wB:0,xB:0,yB:0.004484,zB:0.026904,P:0,Q:0,R:0,"8B":0,S:0.004484,T:0,U:0,V:0,W:0,X:0.008968,Y:0,Z:0,a:0.013452,b:0,c:0,d:0.004484,e:0,f:0,g:0,h:0,i:0,j:0,k:0.004484,l:0.031388,m:0.031388,n:0,u:0.004484,v:0.004484,w:0.004484,x:0.008968,y:0.008968,z:0.008968,o:1.43488,H:0.372172,"9B":0,AC:0,BC:0,SC:0,TC:0,UC:0},B:"moz",C:["RC","5B","TC","UC","I","8","J","D","E","F","A","B","C","K","L","G","M","N","O","9","p","q","r","s","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","6B","jB","7B","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","t","vB","wB","xB","yB","zB","P","Q","R","8B","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","u","v","w","x","y","z","0","1","2","3","4","5","6","7","o","H","9B","AC","BC","SC"],E:"Firefox",F:{"0":1678752000,"1":1681171200,"2":1683590400,"3":1686009600,"4":1688428800,"5":1690848000,"6":1693267200,"7":1695686400,"8":1308614400,"9":1357603200,RC:1161648000,"5B":1213660800,TC:1246320000,UC:1264032000,I:1300752000,J:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968000,C:1331596800,K:1335225600,L:1338854400,G:1342483200,M:1346112000,N:1349740800,O:1353628800,p:1361232000,q:1364860800,r:1368489600,s:1372118400,AB:1375747200,BB:1379376000,CB:1386633600,DB:1391472000,EB:1395100800,FB:1398729600,GB:1402358400,HB:1405987200,IB:1409616000,JB:1413244800,KB:1417392000,LB:1421107200,MB:1424736000,NB:1428278400,OB:1431475200,PB:1435881600,QB:1439251200,RB:1442880000,SB:1446508800,TB:1450137600,UB:1453852800,VB:1457395200,WB:1461628800,XB:1465257600,YB:1470096000,ZB:1474329600,aB:1479168000,bB:1485216000,cB:1488844800,dB:1492560000,eB:1497312000,fB:1502150400,gB:1506556800,hB:1510617600,iB:1516665600,"6B":1520985600,jB:1525824000,"7B":1529971200,kB:1536105600,lB:1540252800,mB:1544486400,nB:1548720000,oB:1552953600,pB:1558396800,qB:1562630400,rB:1567468800,sB:1571788800,tB:1575331200,uB:1578355200,t:1581379200,vB:1583798400,wB:1586304000,xB:1588636800,yB:1591056000,zB:1593475200,P:1595894400,Q:1598313600,R:1600732800,"8B":1603152000,S:1605571200,T:1607990400,U:1611619200,V:1614038400,W:1616457600,X:1618790400,Y:1622505600,Z:1626134400,a:1628553600,b:1630972800,c:1633392000,d:1635811200,e:1638835200,f:1641859200,g:1644364800,h:1646697600,i:1649116800,j:1651536000,k:1653955200,l:1656374400,m:1658793600,n:1661212800,u:1663632000,v:1666051200,w:1668470400,x:1670889600,y:1673913600,z:1676332800,o:1698105600,H:1700524800,"9B":1702944000,AC:null,BC:null,SC:null}},D:{A:{"0":0.094164,"1":0.116584,"2":0.20178,"3":0.219716,"4":0.147972,"5":0.497724,"6":0.69502,"7":5.40322,"8":0,"9":0,I:0,J:0,D:0,E:0,F:0,A:0,B:0,C:0,K:0,L:0,G:0,M:0,N:0,O:0,p:0,q:0,r:0,s:0,AB:0,BB:0,CB:0,DB:0,EB:0,FB:0,GB:0,HB:0,IB:0,JB:0,KB:0.004484,LB:0,MB:0,NB:0,OB:0.013452,PB:0,QB:0,RB:0.004484,SB:0,TB:0,UB:0,VB:0.008968,WB:0,XB:0.008968,YB:0.026904,ZB:0.031388,aB:0.008968,bB:0.004484,cB:0.004484,dB:0.008968,eB:0,fB:0.008968,gB:0.026904,hB:0.013452,iB:0.004484,"6B":0,jB:0.035872,"7B":0.013452,kB:0,lB:0.008968,mB:0.004484,nB:0.008968,oB:0.02242,pB:0.004484,qB:0.013452,rB:0.049324,sB:0.192812,tB:0.013452,uB:0.017936,t:0.026904,vB:0.026904,wB:0.02242,xB:0.058292,yB:0.02242,zB:0.026904,P:0.161424,Q:0.049324,R:0.04484,S:0.053808,T:0.026904,U:0.076228,V:0.062776,W:0.08968,X:0.026904,Y:0.026904,Z:0.035872,a:0.080712,b:0.040356,c:0.116584,d:0.040356,e:0.017936,f:0.017936,g:0.02242,h:0.06726,i:0.035872,j:0.035872,k:0.049324,l:0.035872,m:0.38114,n:0.049324,u:0.049324,v:0.062776,w:0.058292,x:0.1121,y:1.78912,z:0.080712,o:14.703,H:0.02242,"9B":0.013452,AC:0,BC:0},B:"webkit",C:["","","","","","","I","8","J","D","E","F","A","B","C","K","L","G","M","N","O","9","p","q","r","s","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","6B","jB","7B","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","t","vB","wB","xB","yB","zB","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","u","v","w","x","y","z","0","1","2","3","4","5","6","7","o","H","9B","AC","BC"],E:"Chrome",F:{"0":1678147200,"1":1680566400,"2":1682985600,"3":1685404800,"4":1689724800,"5":1692057600,"6":1694476800,"7":1696896000,"8":1274745600,"9":1332892800,I:1264377600,J:1283385600,D:1287619200,E:1291248000,F:1296777600,A:1299542400,B:1303862400,C:1307404800,K:1312243200,L:1316131200,G:1316131200,M:1319500800,N:1323734400,O:1328659200,p:1337040000,q:1340668800,r:1343692800,s:1348531200,AB:1352246400,BB:1357862400,CB:1361404800,DB:1364428800,EB:1369094400,FB:1374105600,GB:1376956800,HB:1384214400,IB:1389657600,JB:1392940800,KB:1397001600,LB:1400544000,MB:1405468800,NB:1409011200,OB:1412640000,PB:1416268800,QB:1421798400,RB:1425513600,SB:1429401600,TB:1432080000,UB:1437523200,VB:1441152000,WB:1444780800,XB:1449014400,YB:1453248000,ZB:1456963200,aB:1460592000,bB:1464134400,cB:1469059200,dB:1472601600,eB:1476230400,fB:1480550400,gB:1485302400,hB:1489017600,iB:1492560000,"6B":1496707200,jB:1500940800,"7B":1504569600,kB:1508198400,lB:1512518400,mB:1516752000,nB:1520294400,oB:1523923200,pB:1527552000,qB:1532390400,rB:1536019200,sB:1539648000,tB:1543968000,uB:1548720000,t:1552348800,vB:1555977600,wB:1559606400,xB:1564444800,yB:1568073600,zB:1571702400,P:1575936000,Q:1580860800,R:1586304000,S:1589846400,T:1594684800,U:1598313600,V:1601942400,W:1605571200,X:1611014400,Y:1614556800,Z:1618272000,a:1621987200,b:1626739200,c:1630368000,d:1632268800,e:1634601600,f:1637020800,g:1641340800,h:1643673600,i:1646092800,j:1648512000,k:1650931200,l:1653350400,m:1655769600,n:1659398400,u:1661817600,v:1664236800,w:1666656000,x:1669680000,y:1673308800,z:1675728000,o:1698710400,H:1701993600,"9B":null,AC:null,BC:null}},E:{A:{"8":0,I:0,J:0,D:0,E:0,F:0,A:0,B:0,C:0,K:0.013452,L:0.085196,G:0.017936,VC:0,CC:0,WC:0.008968,XC:0,YC:0,ZC:0.06726,DC:0,"0B":0.008968,"1B":0.02242,EC:0.1121,aC:0.206264,bC:0.040356,FC:0.031388,GC:0.06726,"2B":0.103132,cC:0.520144,"3B":0.06726,HC:0.17936,IC:0.165908,JC:0.367688,KC:0.143488,LC:0.295944,dC:2.08058,"4B":0.443916,MC:0.686052,NC:0.017936,eC:0,fC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","VC","CC","I","8","WC","J","XC","D","YC","E","F","ZC","A","DC","B","0B","C","1B","K","EC","L","aC","G","bC","FC","GC","2B","cC","3B","HC","IC","JC","KC","LC","dC","4B","MC","NC","eC","fC",""],E:"Safari",F:{"8":1275868800,VC:1205798400,CC:1226534400,I:1244419200,WC:1311120000,J:1343174400,XC:1382400000,D:1382400000,YC:1410998400,E:1413417600,F:1443657600,ZC:1458518400,A:1474329600,DC:1490572800,B:1505779200,"0B":1522281600,C:1537142400,"1B":1553472000,K:1568851200,EC:1585008000,L:1600214400,aC:1619395200,G:1632096000,bC:1635292800,FC:1639353600,GC:1647216000,"2B":1652745600,cC:1658275200,"3B":1662940800,HC:1666569600,IC:1670889600,JC:1674432000,KC:1679875200,LC:1684368000,dC:1690156800,"4B":1695686400,MC:1698192000,NC:1702252800,eC:null,fC:null}},F:{A:{"9":0,F:0,B:0,C:0,G:0,M:0,N:0,O:0,p:0,q:0,r:0,s:0,AB:0,BB:0,CB:0,DB:0,EB:0,FB:0,GB:0,HB:0,IB:0,JB:0,KB:0,LB:0,MB:0,NB:0,OB:0,PB:0,QB:0,RB:0,SB:0,TB:0,UB:0,VB:0,WB:0.013452,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,t:0,vB:0,wB:0,xB:0,yB:0,zB:0,P:0,Q:0,R:0,"8B":0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0,c:0,d:0,e:0.053808,f:0,g:0,h:0,i:0.004484,j:0.004484,k:0.004484,l:0.914736,m:0.161424,n:0.663632,gC:0,hC:0,iC:0,jC:0,"0B":0,OC:0,kC:0,"1B":0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","F","gC","hC","iC","jC","B","0B","OC","kC","C","1B","G","M","N","O","9","p","q","r","s","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","t","vB","wB","xB","yB","zB","P","Q","R","8B","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","","",""],E:"Opera",F:{"9":1390867200,F:1150761600,gC:1223424000,hC:1251763200,iC:1267488000,jC:1277942400,B:1292457600,"0B":1302566400,OC:1309219200,kC:1323129600,C:1323129600,"1B":1352073600,G:1372723200,M:1377561600,N:1381104000,O:1386288000,p:1393891200,q:1399334400,r:1401753600,s:1405987200,AB:1409616000,BB:1413331200,CB:1417132800,DB:1422316800,EB:1425945600,FB:1430179200,GB:1433808000,HB:1438646400,IB:1442448000,JB:1445904000,KB:1449100800,LB:1454371200,MB:1457308800,NB:1462320000,OB:1465344000,PB:1470096000,QB:1474329600,RB:1477267200,SB:1481587200,TB:1486425600,UB:1490054400,VB:1494374400,WB:1498003200,XB:1502236800,YB:1506470400,ZB:1510099200,aB:1515024000,bB:1517961600,cB:1521676800,dB:1525910400,eB:1530144000,fB:1534982400,gB:1537833600,hB:1543363200,iB:1548201600,jB:1554768000,kB:1561593600,lB:1566259200,mB:1570406400,nB:1573689600,oB:1578441600,pB:1583971200,qB:1587513600,rB:1592956800,sB:1595894400,tB:1600128000,uB:1603238400,t:1613520000,vB:1612224000,wB:1616544000,xB:1619568000,yB:1623715200,zB:1627948800,P:1631577600,Q:1633392000,R:1635984000,"8B":1638403200,S:1642550400,T:1644969600,U:1647993600,V:1650412800,W:1652745600,X:1654646400,Y:1657152000,Z:1660780800,a:1663113600,b:1668816000,c:1668643200,d:1671062400,e:1675209600,f:1677024000,g:1679529600,h:1681948800,i:1684195200,j:1687219200,k:1690329600,l:1692748800,m:1696204800,n:1699920000},D:{F:"o",B:"o",C:"o",gC:"o",hC:"o",iC:"o",jC:"o","0B":"o",OC:"o",kC:"o","1B":"o"}},G:{A:{E:0,CC:0,lC:0,PC:0.00276131,mC:0.00276131,nC:0.00690327,oC:0.00966458,pC:0.00138065,qC:0.0110452,rC:0.0345164,sC:0.00276131,tC:0.0497036,uC:0.0248518,vC:0.0207098,wC:0.0124259,xC:0.226427,yC:0.00552262,zC:0.0248518,"0C":0.0138065,"1C":0.040039,"2C":0.107691,"3C":0.171201,"4C":0.0690327,FC:0.0828393,GC:0.0925039,"2B":0.129782,"5C":0.682043,"3B":0.320312,HC:0.642004,IC:0.306505,JC:0.575733,KC:0.121498,LC:0.306505,"6C":5.19264,"4B":1.556,MC:2.6122,NC:0.0731747},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","CC","lC","PC","mC","nC","oC","E","pC","qC","rC","sC","tC","uC","vC","wC","xC","yC","zC","0C","1C","2C","3C","4C","FC","GC","2B","5C","3B","HC","IC","JC","KC","LC","6C","4B","MC","NC","",""],E:"Safari on iOS",F:{CC:1270252800,lC:1283904000,PC:1299628800,mC:1331078400,nC:1359331200,oC:1394409600,E:1410912000,pC:1413763200,qC:1442361600,rC:1458518400,sC:1473724800,tC:1490572800,uC:1505779200,vC:1522281600,wC:1537142400,xC:1553472000,yC:1568851200,zC:1572220800,"0C":1580169600,"1C":1585008000,"2C":1600214400,"3C":1619395200,"4C":1632096000,FC:1639353600,GC:1647216000,"2B":1652659200,"5C":1658275200,"3B":1662940800,HC:1666569600,IC:1670889600,JC:1674432000,KC:1679875200,LC:1684368000,"6C":1690156800,"4B":1694995200,MC:1698192000,NC:null}},H:{A:{"7C":0.06},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","7C","","",""],E:"Opera Mini",F:{"7C":1426464000}},I:{A:{"5B":0.0000512988,I:0.000102598,H:0.510372,"8C":0,"9C":0.000102598,AD:0,BD:0.0000512988,PC:0.000359092,CD:0,DD:0.00148767},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","8C","9C","AD","5B","I","BD","PC","CD","DD","H","","",""],E:"Android Browser",F:{"8C":1256515200,"9C":1274313600,AD:1291593600,"5B":1298332800,I:1318896000,BD:1341792000,PC:1374624000,CD:1386547200,DD:1401667200,H:1701734400}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376000,A:1359504000}},K:{A:{A:0,B:0,C:0,t:1.08181,"0B":0,OC:0,"1B":0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","0B","OC","C","1B","t","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752000,"0B":1314835200,OC:1318291200,C:1330300800,"1B":1349740800,t:1673827200},D:{t:"webkit"}},L:{A:{H:36.3992},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","H","","",""],E:"Chrome for Android",F:{H:1701734400}},M:{A:{o:0.286832},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","o","","",""],E:"Firefox for Android",F:{o:1698105600}},N:{A:{A:0,B:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456000}},O:{A:{"2B":0.794304},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","2B","","",""],E:"UC Browser for Android",F:{"2B":1687132800},D:{"2B":"webkit"}},P:{A:{I:0.109121,p:0.0436483,q:0.0982088,r:0.250978,s:1.83323,ED:0,FD:0,GD:0.0327363,HD:0,ID:0,DC:0,JD:0.0109121,KD:0,LD:0.0109121,MD:0,ND:0,"3B":0.0218242,"4B":0.0327363,OD:0.0218242,PD:0.0436483},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","ED","FD","GD","HD","ID","DC","JD","KD","LD","MD","ND","3B","4B","OD","PD","p","q","r","s","","",""],E:"Samsung Internet",F:{I:1461024000,ED:1481846400,FD:1509408000,GD:1528329600,HD:1546128000,ID:1554163200,DC:1567900800,JD:1582588800,KD:1593475200,LD:1605657600,MD:1618531200,ND:1629072000,"3B":1640736000,"4B":1651708800,OD:1659657600,PD:1667260800,p:1677369600,q:1684454400,r:1689292800,s:1697587200}},Q:{A:{EC:0.143416},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","EC","","",""],E:"QQ Browser",F:{EC:1663718400}},R:{A:{QD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","QD","","",""],E:"Baidu Browser",F:{QD:1663027200}},S:{A:{RD:0.066192,SD:0},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","RD","SD","","",""],E:"KaiOS Browser",F:{RD:1527811200,SD:1631664000}}}; /***/ }), -/***/ 47534: +/***/ 96570: /***/ (function(module) { -module.exports={"0":"25","1":"26","2":"27","3":"28","4":"29","5":"30","6":"31","7":"32","8":"33","9":"34",A:"10",B:"11",C:"12",D:"109",E:"7",F:"8",G:"9",H:"15",I:"4",J:"6",K:"13",L:"14",M:"16",N:"17",O:"18",P:"79",Q:"80",R:"81",S:"83",T:"84",U:"85",V:"86",W:"87",X:"88",Y:"89",Z:"90",a:"91",b:"92",c:"93",d:"94",e:"73",f:"95",g:"96",h:"97",i:"98",j:"99",k:"100",l:"101",m:"102",n:"103",o:"104",p:"105",q:"106",r:"107",s:"108",t:"5",u:"19",v:"20",w:"21",x:"22",y:"23",z:"24",AB:"35",BB:"36",CB:"37",DB:"38",EB:"39",FB:"40",GB:"41",HB:"42",IB:"43",JB:"44",KB:"45",LB:"46",MB:"47",NB:"48",OB:"49",PB:"50",QB:"51",RB:"52",SB:"53",TB:"54",UB:"55",VB:"56",WB:"57",XB:"58",YB:"60",ZB:"62",aB:"63",bB:"64",cB:"65",dB:"66",eB:"67",fB:"68",gB:"69",hB:"70",iB:"71",jB:"72",kB:"74",lB:"75",mB:"76",nB:"77",oB:"78",pB:"11.1",qB:"12.1",rB:"16.0",sB:"3",tB:"59",uB:"61",vB:"82",wB:"110",xB:"111",yB:"3.2",zB:"10.1","0B":"13.1","1B":"15.2-15.3","2B":"15.4","3B":"15.5","4B":"15.6","5B":"16.1","6B":"16.2","7B":"16.3","8B":"11.5","9B":"4.2-4.3",AC:"5.5",BC:"2",CC:"3.5",DC:"3.6",EC:"112",FC:"3.1",GC:"5.1",HC:"6.1",IC:"7.1",JC:"9.1",KC:"14.1",LC:"15.1",MC:"TP",NC:"9.5-9.6",OC:"10.0-10.1",PC:"10.5",QC:"10.6",RC:"11.6",SC:"4.0-4.1",TC:"5.0-5.1",UC:"6.0-6.1",VC:"7.0-7.1",WC:"8.1-8.4",XC:"9.0-9.2",YC:"9.3",ZC:"10.0-10.2",aC:"10.3",bC:"11.0-11.2",cC:"11.3-11.4",dC:"12.0-12.1",eC:"12.2-12.5",fC:"13.0-13.1",gC:"13.2",hC:"13.3",iC:"13.4-13.7",jC:"14.0-14.4",kC:"14.5-14.8",lC:"15.0-15.1",mC:"all",nC:"2.1",oC:"2.2",pC:"2.3",qC:"4.1",rC:"4.4",sC:"4.4.3-4.4.4",tC:"13.4",uC:"5.0-5.4",vC:"6.2-6.4",wC:"7.2-7.4",xC:"8.2",yC:"9.2",zC:"11.1-11.2","0C":"12.0","1C":"13.0","2C":"14.0","3C":"15.0","4C":"17.0","5C":"18.0","6C":"19.0","7C":"13.18","8C":"2.5"}; +module.exports={"0":"111","1":"112","2":"113","3":"114","4":"115","5":"116","6":"117","7":"118","8":"5","9":"19",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"15",H:"120",I:"4",J:"6",K:"13",L:"14",M:"16",N:"17",O:"18",P:"79",Q:"80",R:"81",S:"83",T:"84",U:"85",V:"86",W:"87",X:"88",Y:"89",Z:"90",a:"91",b:"92",c:"93",d:"94",e:"95",f:"96",g:"97",h:"98",i:"99",j:"100",k:"101",l:"102",m:"103",n:"104",o:"119",p:"20",q:"21",r:"22",s:"23",t:"73",u:"105",v:"106",w:"107",x:"108",y:"109",z:"110",AB:"24",BB:"25",CB:"26",DB:"27",EB:"28",FB:"29",GB:"30",HB:"31",IB:"32",JB:"33",KB:"34",LB:"35",MB:"36",NB:"37",OB:"38",PB:"39",QB:"40",RB:"41",SB:"42",TB:"43",UB:"44",VB:"45",WB:"46",XB:"47",YB:"48",ZB:"49",aB:"50",bB:"51",cB:"52",dB:"53",eB:"54",fB:"55",gB:"56",hB:"57",iB:"58",jB:"60",kB:"62",lB:"63",mB:"64",nB:"65",oB:"66",pB:"67",qB:"68",rB:"69",sB:"70",tB:"71",uB:"72",vB:"74",wB:"75",xB:"76",yB:"77",zB:"78","0B":"11.1","1B":"12.1","2B":"15.5","3B":"16.0","4B":"17.0","5B":"3","6B":"59","7B":"61","8B":"82","9B":"121",AC:"122",BC:"123",CC:"3.2",DC:"10.1",EC:"13.1",FC:"15.2-15.3",GC:"15.4",HC:"16.1",IC:"16.2",JC:"16.3",KC:"16.4",LC:"16.5",MC:"17.1",NC:"17.2",OC:"11.5",PC:"4.2-4.3",QC:"5.5",RC:"2",SC:"124",TC:"3.5",UC:"3.6",VC:"3.1",WC:"5.1",XC:"6.1",YC:"7.1",ZC:"9.1",aC:"14.1",bC:"15.1",cC:"15.6",dC:"16.6",eC:"17.3",fC:"TP",gC:"9.5-9.6",hC:"10.0-10.1",iC:"10.5",jC:"10.6",kC:"11.6",lC:"4.0-4.1",mC:"5.0-5.1",nC:"6.0-6.1",oC:"7.0-7.1",pC:"8.1-8.4",qC:"9.0-9.2",rC:"9.3",sC:"10.0-10.2",tC:"10.3",uC:"11.0-11.2",vC:"11.3-11.4",wC:"12.0-12.1",xC:"12.2-12.5",yC:"13.0-13.1",zC:"13.2","0C":"13.3","1C":"13.4-13.7","2C":"14.0-14.4","3C":"14.5-14.8","4C":"15.0-15.1","5C":"15.6-15.7","6C":"16.6-16.7","7C":"all","8C":"2.1","9C":"2.2",AD:"2.3",BD:"4.1",CD:"4.4",DD:"4.4.3-4.4.4",ED:"5.0-5.4",FD:"6.2-6.4",GD:"7.2-7.4",HD:"8.2",ID:"9.2",JD:"11.1-11.2",KD:"12.0",LD:"13.0",MD:"14.0",ND:"15.0",OD:"18.0",PD:"19.0",QD:"13.18",RD:"2.5",SD:"3.0-3.1"}; /***/ }), -/***/ 50483: +/***/ 28701: /***/ (function(module) { module.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}; @@ -7505,7 +7035,7 @@ module.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"i /***/ }), -/***/ 86359: +/***/ 73307: /***/ (function(module) { module.exports = { @@ -7521,7 +7051,7 @@ module.exports = { /***/ }), -/***/ 53391: +/***/ 68730: /***/ (function(module) { module.exports = { @@ -7537,15 +7067,15 @@ module.exports = { /***/ }), -/***/ 84562: +/***/ 24730: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -const browsers = (__nccwpck_require__(59219).browsers) -const versions = (__nccwpck_require__(59964).browserVersions) -const agentsData = __nccwpck_require__(12567) +const browsers = (__nccwpck_require__(41783).browsers) +const versions = (__nccwpck_require__(43179).browserVersions) +const agentsData = __nccwpck_require__(29521) function unpackBrowserVersions(versionsData) { return Object.keys(versionsData).reduce((usage, version) => { @@ -7592,32 +7122,32 @@ module.exports.D = Object.keys(agentsData).reduce((map, key) => { /***/ }), -/***/ 59964: +/***/ 43179: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -module.exports.browserVersions = __nccwpck_require__(47534) +module.exports.browserVersions = __nccwpck_require__(96570) /***/ }), -/***/ 59219: +/***/ 41783: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -module.exports.browsers = __nccwpck_require__(50483) +module.exports.browsers = __nccwpck_require__(28701) /***/ }), -/***/ 33501: +/***/ 65673: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -const statuses = __nccwpck_require__(86359) -const supported = __nccwpck_require__(53391) -const browsers = (__nccwpck_require__(59219).browsers) -const versions = (__nccwpck_require__(59964).browserVersions) +const statuses = __nccwpck_require__(73307) +const supported = __nccwpck_require__(68730) +const browsers = (__nccwpck_require__(41783).browsers) +const versions = (__nccwpck_require__(43179).browserVersions) const MATH2LOG = Math.log(2) @@ -7641,7 +7171,11 @@ function unpackSupport(cipher) { } function unpackFeature(packed) { - let unpacked = { status: statuses[packed.B], title: packed.C } + let unpacked = { + status: statuses[packed.B], + title: packed.C, + shown: packed.D + } unpacked.stats = Object.keys(packed.A).reduce((browserStats, key) => { let browser = packed.A[key] browserStats[browsers[key]] = Object.keys(browser).reduce( @@ -7664,13 +7198,13 @@ module.exports["default"] = unpackFeature /***/ }), -/***/ 26777: +/***/ 69459: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -const browsers = (__nccwpck_require__(59219).browsers) +const browsers = (__nccwpck_require__(41783).browsers) function unpackRegion(packed) { return Object.keys(packed).reduce((list, browser) => { @@ -9383,60 +8917,94 @@ module.exports = function (basedir, relfiles) { /***/ }), -/***/ 62213: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 90237: +/***/ (function(__unused_webpack_module, exports) { "use strict"; -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); -var SafeBuffer = __nccwpck_require__(23767); Object.defineProperty(exports, "commentRegex", ({ get: function getCommentRegex () { - return /^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/mg; + // Groups: 1: media type, 2: MIME type, 3: charset, 4: encoding, 5: data. + return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg; } })); + Object.defineProperty(exports, "mapFileCommentRegex", ({ get: function getMapFileCommentRegex () { // Matches sourceMappingURL in either // or /* comment styles. - return /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg; + return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg; } })); +var decodeBase64; +if (typeof Buffer !== 'undefined') { + if (typeof Buffer.from === 'function') { + decodeBase64 = decodeBase64WithBufferFrom; + } else { + decodeBase64 = decodeBase64WithNewBuffer; + } +} else { + decodeBase64 = decodeBase64WithAtob; +} + +function decodeBase64WithBufferFrom(base64) { + return Buffer.from(base64, 'base64').toString(); +} + +function decodeBase64WithNewBuffer(base64) { + if (typeof value === 'number') { + throw new TypeError('The value to decode must not be of type number.'); + } + return new Buffer(base64, 'base64').toString(); +} -function decodeBase64(base64) { - return (SafeBuffer.Buffer.from(base64, 'base64') || "").toString(); +function decodeBase64WithAtob(base64) { + return decodeURIComponent(escape(atob(base64))); } function stripComment(sm) { return sm.split(',').pop(); } -function readFromFileMap(sm, dir) { - // NOTE: this will only work on the server since it attempts to read the map file - +function readFromFileMap(sm, read) { var r = exports.mapFileCommentRegex.exec(sm); - // for some odd reason //# .. captures in 1 and /* .. */ in 2 var filename = r[1] || r[2]; - var filepath = path.resolve(dir, filename); try { - return fs.readFileSync(filepath, 'utf8'); + var sm = read(filename); + if (sm != null && typeof sm.catch === 'function') { + return sm.catch(throwError); + } else { + return sm; + } } catch (e) { - throw new Error('An error occurred while trying to read the map file at ' + filepath + '\n' + e); + throwError(e); + } + + function throwError(e) { + throw new Error('An error occurred while trying to read the map file at ' + filename + '\n' + e.stack); } } function Converter (sm, opts) { opts = opts || {}; - if (opts.isFileComment) sm = readFromFileMap(sm, opts.commentFileDir); - if (opts.hasComment) sm = stripComment(sm); - if (opts.isEncoded) sm = decodeBase64(sm); - if (opts.isJSON || opts.isEncoded) sm = JSON.parse(sm); + if (opts.hasComment) { + sm = stripComment(sm); + } + + if (opts.encoding === 'base64') { + sm = decodeBase64(sm); + } else if (opts.encoding === 'uri') { + sm = decodeURIComponent(sm); + } + + if (opts.isJSON || opts.encoding) { + sm = JSON.parse(sm); + } this.sourcemap = sm; } @@ -9445,15 +9013,50 @@ Converter.prototype.toJSON = function (space) { return JSON.stringify(this.sourcemap, null, space); }; -Converter.prototype.toBase64 = function () { +if (typeof Buffer !== 'undefined') { + if (typeof Buffer.from === 'function') { + Converter.prototype.toBase64 = encodeBase64WithBufferFrom; + } else { + Converter.prototype.toBase64 = encodeBase64WithNewBuffer; + } +} else { + Converter.prototype.toBase64 = encodeBase64WithBtoa; +} + +function encodeBase64WithBufferFrom() { var json = this.toJSON(); - return (SafeBuffer.Buffer.from(json, 'utf8') || "").toString('base64'); + return Buffer.from(json, 'utf8').toString('base64'); +} + +function encodeBase64WithNewBuffer() { + var json = this.toJSON(); + if (typeof json === 'number') { + throw new TypeError('The json to encode must not be of type number.'); + } + return new Buffer(json, 'utf8').toString('base64'); +} + +function encodeBase64WithBtoa() { + var json = this.toJSON(); + return btoa(unescape(encodeURIComponent(json))); +} + +Converter.prototype.toURI = function () { + var json = this.toJSON(); + return encodeURIComponent(json); }; Converter.prototype.toComment = function (options) { - var base64 = this.toBase64(); - var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; - return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data; + var encoding, content, data; + if (options != null && options.encoding === 'uri') { + encoding = ''; + content = this.toURI(); + } else { + encoding = ';base64'; + content = this.toBase64(); + } + data = 'sourceMappingURL=data:application/json;charset=utf-8' + encoding + ',' + content; + return options != null && options.multiline ? '/*# ' + data + ' */' : '//# ' + data; }; // returns copy instead of original @@ -9483,20 +9086,42 @@ exports.fromJSON = function (json) { return new Converter(json, { isJSON: true }); }; +exports.fromURI = function (uri) { + return new Converter(uri, { encoding: 'uri' }); +}; + exports.fromBase64 = function (base64) { - return new Converter(base64, { isEncoded: true }); + return new Converter(base64, { encoding: 'base64' }); }; exports.fromComment = function (comment) { + var m, encoding; comment = comment .replace(/^\/\*/g, '//') .replace(/\*\/$/g, ''); - - return new Converter(comment, { isEncoded: true, hasComment: true }); + m = exports.commentRegex.exec(comment); + encoding = m && m[4] || 'uri'; + return new Converter(comment, { encoding: encoding, hasComment: true }); }; -exports.fromMapFileComment = function (comment, dir) { - return new Converter(comment, { commentFileDir: dir, isFileComment: true, isJSON: true }); +function makeConverter(sm) { + return new Converter(sm, { isJSON: true }); +} + +exports.fromMapFileComment = function (comment, read) { + if (typeof read === 'string') { + throw new Error( + 'String directory paths are no longer supported with `fromMapFileComment`\n' + + 'Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading' + ) + } + + var sm = readFromFileMap(comment, read); + if (sm != null && typeof sm.then === 'function') { + return sm.then(makeConverter); + } else { + return makeConverter(sm); + } }; // Finds last sourcemap comment in file or returns null if none was found @@ -9506,9 +9131,15 @@ exports.fromSource = function (content) { }; // Finds last sourcemap comment in file or returns null if none was found -exports.fromMapFileSource = function (content, dir) { +exports.fromMapFileSource = function (content, read) { + if (typeof read === 'string') { + throw new Error( + 'String directory paths are no longer supported with `fromMapFileSource`\n' + + 'Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading' + ) + } var m = content.match(exports.mapFileCommentRegex); - return m ? exports.fromMapFileComment(m.pop(), dir) : null; + return m ? exports.fromMapFileComment(m.pop(), read) : null; }; exports.removeComments = function (src) { @@ -9527,102 +9158,7 @@ exports.generateMapFileComment = function (file, options) { /***/ }), -/***/ 16943: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -const { compare, intersection, semver } = __nccwpck_require__(18337); -const modulesByVersions = __nccwpck_require__(375); -const modules = __nccwpck_require__(46038); - -module.exports = function (raw) { - const corejs = semver(raw); - if (corejs.major !== 3) { - throw RangeError('This version of `core-js-compat` works only with `core-js@3`.'); - } - const result = []; - for (const version of Object.keys(modulesByVersions)) { - if (compare(version, '<=', corejs)) { - result.push(...modulesByVersions[version]); - } - } - return intersection(result, modules); -}; - - -/***/ }), - -/***/ 18337: -/***/ (function(module) { - -"use strict"; - -// eslint-disable-next-line es/no-object-hasown -- safe -const has = Object.hasOwn || Function.call.bind({}.hasOwnProperty); - -function semver(input) { - if (input instanceof semver) return input; - // eslint-disable-next-line new-cap -- ok - if (!(this instanceof semver)) return new semver(input); - const match = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/.exec(input); - if (!match) throw TypeError(`Invalid version: ${ input }`); - const [, $major, $minor, $patch] = match; - this.major = +$major; - this.minor = $minor ? +$minor : 0; - this.patch = $patch ? +$patch : 0; -} - -semver.prototype.toString = function () { - return `${ this.major }.${ this.minor }.${ this.patch }`; -}; - -function compare($a, operator, $b) { - const a = semver($a); - const b = semver($b); - for (const component of ['major', 'minor', 'patch']) { - if (a[component] < b[component]) return operator === '<' || operator === '<=' || operator === '!='; - if (a[component] > b[component]) return operator === '>' || operator === '>=' || operator === '!='; - } return operator === '==' || operator === '<=' || operator === '>='; -} - -function filterOutStabilizedProposals(modules) { - const modulesSet = new Set(modules); - - for (const $module of modulesSet) { - if ($module.startsWith('esnext.') && modulesSet.has($module.replace(/^esnext\./, 'es.'))) { - modulesSet.delete($module); - } - } - - return [...modulesSet]; -} - -function intersection(list, order) { - const set = list instanceof Set ? list : new Set(list); - return order.filter(name => set.has(name)); -} - -function sortObjectByKey(object, fn) { - return Object.keys(object).sort(fn).reduce((memo, key) => { - memo[key] = object[key]; - return memo; - }, {}); -} - -module.exports = { - compare, - filterOutStabilizedProposals, - has, - intersection, - semver, - sortObjectByKey, -}; - - -/***/ }), - -/***/ 79476: +/***/ 32767: /***/ (function(module) { module.exports = { @@ -9728,7 +9264,49 @@ module.exports = { "20.3": "104", "21.0": "106", "21.1": "106", - "22.0": "108" + "21.2": "106", + "21.3": "106", + "21.4": "106", + "22.0": "108", + "22.1": "108", + "22.2": "108", + "22.3": "108", + "23.0": "110", + "23.1": "110", + "23.2": "110", + "23.3": "110", + "24.0": "112", + "24.1": "112", + "24.2": "112", + "24.3": "112", + "24.4": "112", + "24.5": "112", + "24.6": "112", + "24.7": "112", + "24.8": "112", + "25.0": "114", + "25.1": "114", + "25.2": "114", + "25.3": "114", + "25.4": "114", + "25.5": "114", + "25.6": "114", + "25.7": "114", + "25.8": "114", + "25.9": "114", + "26.0": "116", + "26.1": "116", + "26.2": "116", + "26.3": "116", + "26.4": "116", + "26.5": "116", + "26.6": "116", + "27.0": "118", + "27.1": "118", + "27.2": "118", + "28.0": "120", + "28.1": "120", + "29.0": "121" }; /***/ }), @@ -9846,7 +9424,7 @@ module.exports.sync = (filename, opts = {}) => { /***/ }), -/***/ 88850: +/***/ 90095: /***/ (function(module) { "use strict"; @@ -9855,43 +9433,75 @@ module.exports.sync = (filename, opts = {}) => { /* eslint no-invalid-this: 1 */ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var slice = Array.prototype.slice; var toStr = Object.prototype.toString; +var max = Math.max; var funcType = '[object Function]'; +var concatty = function concatty(a, b) { + var arr = []; + + for (var i = 0; i < a.length; i += 1) { + arr[i] = a[i]; + } + for (var j = 0; j < b.length; j += 1) { + arr[j + a.length] = b[j]; + } + + return arr; +}; + +var slicy = function slicy(arrLike, offset) { + var arr = []; + for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { + arr[j] = arrLike[i]; + } + return arr; +}; + +var joiny = function (arr, joiner) { + var str = ''; + for (var i = 0; i < arr.length; i += 1) { + str += arr[i]; + if (i + 1 < arr.length) { + str += joiner; + } + } + return str; +}; + module.exports = function bind(that) { var target = this; - if (typeof target !== 'function' || toStr.call(target) !== funcType) { + if (typeof target !== 'function' || toStr.apply(target) !== funcType) { throw new TypeError(ERROR_MESSAGE + target); } - var args = slice.call(arguments, 1); + var args = slicy(arguments, 1); var bound; var binder = function () { if (this instanceof bound) { var result = target.apply( this, - args.concat(slice.call(arguments)) + concatty(args, arguments) ); if (Object(result) === result) { return result; } return this; - } else { - return target.apply( - that, - args.concat(slice.call(arguments)) - ); } + return target.apply( + that, + concatty(args, arguments) + ); + }; - var boundLength = Math.max(0, target.length - args.length); + var boundLength = max(0, target.length - args.length); var boundArgs = []; for (var i = 0; i < boundLength; i++) { - boundArgs.push('$' + i); + boundArgs[i] = '$' + i; } - bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder); + bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); if (target.prototype) { var Empty = function Empty() {}; @@ -9906,13 +9516,13 @@ module.exports = function bind(that) { /***/ }), -/***/ 32796: +/***/ 9303: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -var implementation = __nccwpck_require__(88850); +var implementation = __nccwpck_require__(90095); module.exports = Function.prototype.bind || implementation; @@ -10332,7 +9942,7 @@ module.exports = (flag, argv) => { "use strict"; -var bind = __nccwpck_require__(32796); +var bind = __nccwpck_require__(9303); module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); @@ -13208,7 +12818,7 @@ module.exports = LRUCache const fs = __nccwpck_require__(57147); const path = __nccwpck_require__(71017); const pify = __nccwpck_require__(46801); -const semver = __nccwpck_require__(76185); +const semver = __nccwpck_require__(30876); const defaults = { mode: 0o777 & (~process.umask()), @@ -13655,7 +13265,7 @@ module.exports = (input, options) => { /***/ }), -/***/ 57251: +/***/ 15652: /***/ (function(module, exports, __nccwpck_require__) { "use strict"; @@ -13666,53 +13276,45 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.addHook = addHook; - var _module = _interopRequireDefault(__nccwpck_require__(98188)); - var _path = _interopRequireDefault(__nccwpck_require__(71017)); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - /* (c) 2015 Ari Porad (@ariporad) . License: ariporad.mit-license.org */ -const nodeModulesRegex = /^(?:.*[\\/])?node_modules(?:[\\/].*)?$/; // Guard against poorly mocked module constructors. +const nodeModulesRegex = /^(?:.*[\\/])?node_modules(?:[\\/].*)?$/; +// Guard against poorly mocked module constructors. const Module = module.constructor.length > 1 ? module.constructor : _module.default; const HOOK_RETURNED_NOTHING_ERROR_MESSAGE = '[Pirates] A hook returned a non-string, or nothing at all! This is a' + ' violation of intergalactic law!\n' + '--------------------\n' + 'If you have no idea what this means or what Pirates is, let me explain: ' + 'Pirates is a module that makes is easy to implement require hooks. One of' + " the require hooks you're using uses it. One of these require hooks" + " didn't return anything from it's handler, so we don't know what to" + ' do. You might want to debug this.'; + /** * @param {string} filename The filename to check. * @param {string[]} exts The extensions to hook. Should start with '.' (ex. ['.js']). * @param {Matcher|null} matcher A matcher function, will be called with path to a file. Should return truthy if the file should be hooked, falsy otherwise. * @param {boolean} ignoreNodeModules Auto-ignore node_modules. Independent of any matcher. */ - function shouldCompile(filename, exts, matcher, ignoreNodeModules) { if (typeof filename !== 'string') { return false; } - if (exts.indexOf(_path.default.extname(filename)) === -1) { return false; } - const resolvedFilename = _path.default.resolve(filename); - if (ignoreNodeModules && nodeModulesRegex.test(resolvedFilename)) { return false; } - if (matcher && typeof matcher === 'function') { return !!matcher(resolvedFilename); } - return true; } + /** * @callback Hook The hook. Accepts the code of the module and the filename. * @param {string} code * @param {string} filename * @returns {string} */ - /** * @callback Matcher A matcher function, will be called with path to a file. * @@ -13720,12 +13322,10 @@ function shouldCompile(filename, exts, matcher, ignoreNodeModules) { * @param {string} path * @returns {boolean} */ - /** * @callback RevertFunction Reverts the hook when called. * @returns {void} */ - /** * @typedef {object} Options * @property {Matcher|null} [matcher=null] A matcher function, will be called with path to a file. @@ -13748,40 +13348,33 @@ function shouldCompile(filename, exts, matcher, ignoreNodeModules) { * @param {Options} [opts] Options * @returns {RevertFunction} The `revert` function. Reverts the hook when called. */ - - function addHook(hook, opts = {}) { let reverted = false; const loaders = []; const oldLoaders = []; - let exts; // We need to do this to fix #15. Basically, if you use a non-standard extension (ie. .jsx), then + let exts; + + // We need to do this to fix #15. Basically, if you use a non-standard extension (ie. .jsx), then // We modify the .js loader, then use the modified .js loader for as the base for .jsx. // This prevents that. - const originalJSLoader = Module._extensions['.js']; const matcher = opts.matcher || null; const ignoreNodeModules = opts.ignoreNodeModules !== false; exts = opts.extensions || opts.exts || opts.extension || opts.ext || ['.js']; - if (!Array.isArray(exts)) { exts = [exts]; } - exts.forEach(ext => { if (typeof ext !== 'string') { throw new TypeError(`Invalid Extension: ${ext}`); } - const oldLoader = Module._extensions[ext] || originalJSLoader; oldLoaders[ext] = Module._extensions[ext]; - loaders[ext] = Module._extensions[ext] = function newLoader(mod, filename) { let compile; - if (!reverted) { if (shouldCompile(filename, exts, matcher, ignoreNodeModules)) { compile = mod._compile; - mod._compile = function _compile(code) { // reset the compile immediately as otherwise we end up having the // compile function being changed even though this loader might be reverted @@ -13790,16 +13383,13 @@ function addHook(hook, opts = {}) { // The compile function is also anyway created new when the loader is called a second time. mod._compile = compile; const newCode = hook(code, filename); - if (typeof newCode !== 'string') { throw new Error(HOOK_RETURNED_NOTHING_ERROR_MESSAGE); } - return mod._compile(newCode, filename); }; } } - oldLoader(mod, filename); }; }); @@ -13840,17 +13430,17 @@ module.exports.sync = cwd => { /***/ }), -/***/ 28739: +/***/ 6614: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -var _interopRequireDefault = __nccwpck_require__(75077); +var _interopRequireDefault = __nccwpck_require__(48870); var _assert = _interopRequireDefault(__nccwpck_require__(39491)); -var leap = _interopRequireWildcard(__nccwpck_require__(50015)); -var meta = _interopRequireWildcard(__nccwpck_require__(39937)); -var util = _interopRequireWildcard(__nccwpck_require__(58597)); +var leap = _interopRequireWildcard(__nccwpck_require__(1071)); +var meta = _interopRequireWildcard(__nccwpck_require__(65679)); +var util = _interopRequireWildcard(__nccwpck_require__(75397)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /** @@ -13903,8 +13493,13 @@ exports.Emitter = Emitter; // the amazingly convenient benefit of allowing the exact value of the // location to be determined at any time, even after generating code that // refers to the location. +// We use 'Number.MAX_VALUE' to mark uninitialized location. We can safely do +// so because no code can realistically have about 1.8e+308 locations before +// hitting memory limit of the machine it's running on. For comparison, the +// estimated number of atoms in the observable universe is around 1e+80. +var PENDING_LOCATION = Number.MAX_VALUE; Ep.loc = function () { - var l = util.getTypes().numericLiteral(-1); + var l = util.getTypes().numericLiteral(PENDING_LOCATION); this.insertedLocs.add(l); return l; }; @@ -13920,7 +13515,7 @@ Ep.getContextId = function () { Ep.mark = function (loc) { util.getTypes().assertLiteral(loc); var index = this.listing.length; - if (loc.value === -1) { + if (loc.value === PENDING_LOCATION) { loc.value = index; } else { // Locations can be marked redundantly, but their values cannot change @@ -14305,7 +13900,7 @@ Ep.explodeStatement = function (path, labelId) { }); }); self.mark(after); - if (defaultLoc.value === -1) { + if (defaultLoc.value === PENDING_LOCATION) { self.mark(defaultLoc); _assert["default"].strictEqual(after.value, defaultLoc.value); } @@ -14460,7 +14055,7 @@ Ep.updateContextPrevLoc = function (loc) { var t = util.getTypes(); if (loc) { t.assertLiteral(loc); - if (loc.value === -1) { + if (loc.value === PENDING_LOCATION) { // If an uninitialized location literal was passed in, set its value // to the current this.listing.length. loc.value = this.listing.length; @@ -14746,13 +14341,13 @@ Ep.explodeClass = function (path) { /***/ }), -/***/ 2758: +/***/ 75723: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -var util = _interopRequireWildcard(__nccwpck_require__(58597)); +var util = _interopRequireWildcard(__nccwpck_require__(75397)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /** @@ -14885,7 +14480,7 @@ exports.hoist = function (funPath) { /***/ }), -/***/ 81301: +/***/ 54888: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -14893,7 +14488,7 @@ exports.hoist = function (funPath) { exports.__esModule = true; exports["default"] = _default; -var _visit = __nccwpck_require__(58291); +var _visit = __nccwpck_require__(8371); /** * Copyright (c) 2014-present, Facebook, Inc. * @@ -14921,17 +14516,17 @@ function _default(context) { /***/ }), -/***/ 50015: +/***/ 1071: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -var _interopRequireDefault = __nccwpck_require__(75077); +var _interopRequireDefault = __nccwpck_require__(48870); var _assert = _interopRequireDefault(__nccwpck_require__(39491)); -var _emit = __nccwpck_require__(28739); +var _emit = __nccwpck_require__(6614); var _util = __nccwpck_require__(73837); -var _util2 = __nccwpck_require__(58597); +var _util2 = __nccwpck_require__(75397); /** * Copyright (c) 2014-present, Facebook, Inc. * @@ -15071,15 +14666,15 @@ LMp.getContinueLoc = function (label) { /***/ }), -/***/ 39937: +/***/ 65679: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -var _interopRequireDefault = __nccwpck_require__(75077); +var _interopRequireDefault = __nccwpck_require__(48870); var _assert = _interopRequireDefault(__nccwpck_require__(39491)); -var _util = __nccwpck_require__(58597); +var _util = __nccwpck_require__(75397); /** * Copyright (c) 2014-present, Facebook, Inc. * @@ -15180,7 +14775,7 @@ exports.containsLeap = makePredicate("containsLeap", leapTypes); /***/ }), -/***/ 75889: +/***/ 617: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -15188,7 +14783,7 @@ exports.containsLeap = makePredicate("containsLeap", leapTypes); exports.__esModule = true; exports["default"] = replaceShorthandObjectMethod; -var util = _interopRequireWildcard(__nccwpck_require__(58597)); +var util = _interopRequireWildcard(__nccwpck_require__(75397)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /** @@ -15270,7 +14865,7 @@ function replaceShorthandObjectMethod(path) { /***/ }), -/***/ 58597: +/***/ 75397: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -15326,7 +14921,7 @@ function replaceWithOrRemove(path, replacement) { /***/ }), -/***/ 58291: +/***/ 8371: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -15339,12 +14934,12 @@ function replaceWithOrRemove(path, replacement) { -var _interopRequireDefault = __nccwpck_require__(75077); +var _interopRequireDefault = __nccwpck_require__(48870); var _assert = _interopRequireDefault(__nccwpck_require__(39491)); -var _hoist = __nccwpck_require__(2758); -var _emit = __nccwpck_require__(28739); -var _replaceShorthandObjectMethod = _interopRequireDefault(__nccwpck_require__(75889)); -var util = _interopRequireWildcard(__nccwpck_require__(58597)); +var _hoist = __nccwpck_require__(75723); +var _emit = __nccwpck_require__(6614); +var _replaceShorthandObjectMethod = _interopRequireDefault(__nccwpck_require__(617)); +var util = _interopRequireWildcard(__nccwpck_require__(75397)); function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } exports.getVisitor = function (_ref) { @@ -15623,7 +15218,7 @@ var awaitVisitor = { /***/ }), -/***/ 49558: +/***/ 71622: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -15736,7 +15331,7 @@ exports.UNICODE_IGNORE_CASE = new Map([ /***/ }), -/***/ 65389: +/***/ 49650: /***/ (function(module) { module.exports = new Map([ @@ -16399,19 +15994,19 @@ module.exports = new Map([ /***/ }), -/***/ 90086: +/***/ 64864: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -const generate = (__nccwpck_require__(23498).generate); +const generate = (__nccwpck_require__(50131).generate); const parse = (__nccwpck_require__(68456).parse); const regenerate = __nccwpck_require__(42304); const unicodeMatchProperty = __nccwpck_require__(14760); const unicodeMatchPropertyValue = __nccwpck_require__(86176); -const iuMappings = __nccwpck_require__(65389); -const ESCAPE_SETS = __nccwpck_require__(49558); +const iuMappings = __nccwpck_require__(49650); +const ESCAPE_SETS = __nccwpck_require__(71622); function flatMap(array, callback) { const result = []; @@ -16432,16 +16027,20 @@ const SPECIAL_CHARS = /([\\^$.*+?()[\]{}|])/g; // character classes (if any). const UNICODE_SET = regenerate().addRange(0x0, 0x10FFFF); +const ASTRAL_SET = regenerate().addRange(0x10000, 0x10FFFF); + +const NEWLINE_SET = regenerate().add( + // `LineTerminator`s (https://mths.be/es6#sec-line-terminators): + 0x000A, // Line Feed + 0x000D, // Carriage Return + 0x2028, // Line Separator + 0x2029 // Paragraph Separator +); + // Prepare a Regenerate set containing all code points that are supposed to be // matched by `/./u`. https://mths.be/es6#sec-atom const DOT_SET_UNICODE = UNICODE_SET.clone() // all Unicode code points - .remove( - // minus `LineTerminator`s (https://mths.be/es6#sec-line-terminators): - 0x000A, // Line Feed - 0x000D, // Carriage Return - 0x2028, // Line Separator - 0x2029 // Paragraph Separator - ); + .remove(NEWLINE_SET); const getCharacterClassEscapeSet = (character, unicode, ignoreCase) => { if (unicode) { @@ -16531,12 +16130,23 @@ const getUnicodePropertyEscapeCharacterClassData = (property, isNegative) => { return data; }; +function configNeedCaseFoldAscii() { + return !!config.modifiersData.i; +} + +function configNeedCaseFoldUnicode() { + // config.modifiersData.i : undefined | false + if (config.modifiersData.i === false) return false; + if (!config.transform.unicodeFlag) return false; + return Boolean(config.modifiersData.i || config.flags.ignoreCase); +} + // Given a range of code points, add any case-folded code points in that range // to a set. regenerate.prototype.iuAddRange = function(min, max) { const $this = this; do { - const folded = caseFold(min); + const folded = caseFold(min, configNeedCaseFoldAscii(), configNeedCaseFoldUnicode()); if (folded) { $this.add(folded); } @@ -16546,7 +16156,7 @@ regenerate.prototype.iuAddRange = function(min, max) { regenerate.prototype.iuRemoveRange = function(min, max) { const $this = this; do { - const folded = caseFold(min); + const folded = caseFold(min, configNeedCaseFoldAscii(), configNeedCaseFoldUnicode()); if (folded) { $this.remove(folded); } @@ -16555,7 +16165,13 @@ regenerate.prototype.iuRemoveRange = function(min, max) { }; const update = (item, pattern) => { - let tree = parse(pattern, config.useUnicodeFlag ? 'u' : ''); + let tree = parse(pattern, config.useUnicodeFlag ? 'u' : '', { + lookbehind: true, + namedGroups: true, + unicodePropertyEscape: true, + unicodeSet: true, + modifiers: true, + }); switch (tree.type) { case 'characterClass': case 'group': @@ -16579,8 +16195,17 @@ const wrap = (tree, pattern) => { }; }; -const caseFold = (codePoint) => { - return iuMappings.get(codePoint) || false; +const caseFold = (codePoint, includeAscii, includeUnicode) => { + let folded = (includeUnicode ? iuMappings.get(codePoint) : undefined) || []; + if (typeof folded === 'number') folded = [folded]; + if (includeAscii) { + if (codePoint >= 0x41 && codePoint <= 0x5A) { + folded.push(codePoint + 0x20); + } else if (codePoint >= 0x61 && codePoint <= 0x7A) { + folded.push(codePoint - 0x20); + } + } + return folded.length == 0 ? false : folded; }; const buildHandler = (action) => { @@ -16721,8 +16346,11 @@ const getCharacterClassEmptyData = () => ({ }); const maybeFold = (codePoint) => { - if (config.flags.ignoreCase && config.transform.unicodeFlag) { - const folded = caseFold(codePoint); + const caseFoldAscii = configNeedCaseFoldAscii(); + const caseFoldUnicode = configNeedCaseFoldUnicode(); + + if (caseFoldAscii || caseFoldUnicode) { + const folded = caseFold(codePoint, caseFoldAscii, caseFoldUnicode); if (folded) { return [codePoint, folded]; } @@ -16733,6 +16361,9 @@ const maybeFold = (codePoint) => { const computeClassStrings = (classStrings, regenerateOptions) => { let data = getCharacterClassEmptyData(); + const caseFoldAscii = configNeedCaseFoldAscii(); + const caseFoldUnicode = configNeedCaseFoldUnicode(); + for (const string of classStrings.strings) { if (string.characters.length === 1) { maybeFold(string.characters[0].codePoint).forEach((cp) => { @@ -16740,11 +16371,11 @@ const computeClassStrings = (classStrings, regenerateOptions) => { }); } else { let stringifiedString; - if (config.flags.ignoreCase && config.transform.unicodeFlag) { + if (caseFoldUnicode || caseFoldAscii) { stringifiedString = ''; for (const ch of string.characters) { let set = regenerate(ch.codePoint); - const folded = caseFold(ch.codePoint); + const folded = maybeFold(ch.codePoint); if (folded) set.add(folded); stringifiedString += set.toString(regenerateOptions); } @@ -16774,10 +16405,12 @@ const computeCharacterClass = (characterClassItem, regenerateOptions) => { case 'intersection': handlePositive = buildHandler('intersection'); handleNegative = buildHandler('subtraction'); + if (config.transform.unicodeSetsFlag) data.transformed = true; break; case 'subtraction': handlePositive = buildHandler('subtraction'); handleNegative = buildHandler('intersection'); + if (config.transform.unicodeSetsFlag) data.transformed = true; break; // The `default` clause is only here as a safeguard; it should never be // reached. Code coverage tools should ignore it. @@ -16786,6 +16419,9 @@ const computeCharacterClass = (characterClassItem, regenerateOptions) => { throw new Error(`Unknown character class kind: ${ characterClassItem.kind }`); } + const caseFoldAscii = configNeedCaseFoldAscii(); + const caseFoldUnicode = configNeedCaseFoldUnicode(); + for (const item of characterClassItem.body) { switch (item.type) { case 'value': @@ -16797,8 +16433,9 @@ const computeCharacterClass = (characterClassItem, regenerateOptions) => { const min = item.min.codePoint; const max = item.max.codePoint; handlePositive.range(data, min, max); - if (config.flags.ignoreCase && config.transform.unicodeFlag) { + if (caseFoldAscii || caseFoldUnicode) { handlePositive.iuRange(data, min, max); + data.transformed = true; } break; case 'characterClassEscape': @@ -16857,7 +16494,38 @@ const processCharacterClass = ( if (config.useUnicodeFlag) { update(characterClassItem, `[^${setStr[0] === '[' ? setStr.slice(1, -1) : setStr}]`) } else { - update(characterClassItem, `(?!${setStr})[\\s\\S]`) + if (config.flags.unicode) { + if (config.flags.ignoreCase) { + const astralCharsSet = singleChars.clone().intersection(ASTRAL_SET); + // Assumption: singleChars do not contain lone surrogates. + // Regex like /[^\ud800]/u is not supported + const surrogateOrBMPSetStr = singleChars + .clone() + .remove(astralCharsSet) + .addRange(0xd800, 0xdfff) + .toString({ bmpOnly: true }); + // Don't generate negative lookahead for astral characters + // because the case folding is not working anyway as we break + // code points into surrogate pairs. + const astralNegativeSetStr = ASTRAL_SET + .clone() + .remove(astralCharsSet) + .toString(regenerateOptions); + // The transform here does not support lone surrogates. + update( + characterClassItem, + `(?!${surrogateOrBMPSetStr})[\\s\\S]|${astralNegativeSetStr}` + ); + } else { + // Generate negative set directly when case folding is not involved. + update( + characterClassItem, + UNICODE_SET.clone().remove(singleChars).toString(regenerateOptions) + ); + } + } else { + update(characterClassItem, `(?!${setStr})[\\s\\S]`); + } } } else { const hasEmptyString = longStrings.has(''); @@ -16880,15 +16548,40 @@ const assertNoUnmatchedReferences = (groups) => { } }; +const processModifiers = (item, regenerateOptions, groups) => { + const enabling = item.modifierFlags.enabling; + const disabling = item.modifierFlags.disabling; + + delete item.modifierFlags; + item.behavior = 'ignore'; + + const oldData = Object.assign({}, config.modifiersData); + + enabling.split('').forEach(flag => { + config.modifiersData[flag] = true; + }); + disabling.split('').forEach(flag => { + config.modifiersData[flag] = false; + }); + + item.body = item.body.map(term => { + return processTerm(term, regenerateOptions, groups); + }); + + config.modifiersData = oldData; + + return item; +} + const processTerm = (item, regenerateOptions, groups) => { switch (item.type) { case 'dot': if (config.transform.unicodeFlag) { update( item, - getUnicodeDotSet(config.flags.dotAll).toString(regenerateOptions) + getUnicodeDotSet(config.flags.dotAll || config.modifiersData.s).toString(regenerateOptions) ); - } else if (config.transform.dotAllFlag) { + } else if (config.transform.dotAllFlag || config.modifiersData.s) { // TODO: consider changing this at the regenerate level. update(item, '[\\s\\S]'); } @@ -16959,6 +16652,9 @@ const processTerm = (item, regenerateOptions, groups) => { delete groups.unmatchedReferences[name]; } } + if (item.modifierFlags && config.transform.modifiers) { + return processModifiers(item, regenerateOptions, groups); + } /* falls through */ case 'quantifier': item.body = item.body.map(term => { @@ -16982,12 +16678,8 @@ const processTerm = (item, regenerateOptions, groups) => { case 'value': const codePoint = item.codePoint; const set = regenerate(codePoint); - if (config.flags.ignoreCase && config.transform.unicodeFlag) { - const folded = caseFold(codePoint); - if (folded) { - set.add(folded); - } - } + const folded = maybeFold(codePoint); + set.add(folded); update(item, set.toString(regenerateOptions)); break; case 'reference': @@ -17027,8 +16719,14 @@ const processTerm = (item, regenerateOptions, groups) => { } break; case 'anchor': + if (config.modifiersData.m) { + if (item.kind == 'start') { + update(item, `(?:^|(?<=${NEWLINE_SET.toString()}))`); + } else if (item.kind == 'end') { + update(item, `(?:$|(?=${NEWLINE_SET.toString()}))`); + } + } case 'empty': - case 'group': // Nothing to do here. break; // The `default` clause is only here as a safeguard; it should never be @@ -17046,6 +16744,7 @@ const config = { 'unicode': false, 'unicodeSets': false, 'dotAll': false, + 'multiline': false, }, 'transform': { 'dotAllFlag': false, @@ -17053,6 +16752,12 @@ const config = { 'unicodeSetsFlag': false, 'unicodePropertyEscapes': false, 'namedGroups': false, + 'modifiers': false, + }, + 'modifiersData': { + 'i': undefined, + 's': undefined, + 'm': undefined, }, get useUnicodeFlag() { return (this.flags.unicode || this.flags.unicodeSets) && !this.transform.unicodeFlag; @@ -17073,14 +16778,16 @@ const validateOptions = (options) => { throw new Error(`.${key} must be false (default) or 'transform'.`); } break; + case 'modifiers': case 'unicodeSetsFlag': if (value != null && value !== false && value !== 'parse' && value !== 'transform') { throw new Error(`.${key} must be false (default), 'parse' or 'transform'.`); } break; case 'onNamedGroup': + case 'onNewFlags': if (value != null && typeof value !== 'function') { - throw new Error('.onNamedGroup must be a function.'); + throw new Error(`.${key} must be a function.`); } break; default: @@ -17099,6 +16806,7 @@ const rewritePattern = (pattern, flags, options) => { config.flags.unicodeSets = hasFlag(flags, 'v'); config.flags.ignoreCase = hasFlag(flags, 'i'); config.flags.dotAll = hasFlag(flags, 's'); + config.flags.multiline = hasFlag(flags, 'm'); config.transform.dotAllFlag = config.flags.dotAll && transform(options, 'dotAllFlag'); config.transform.unicodeFlag = (config.flags.unicode || config.flags.unicodeSets) && transform(options, 'unicodeFlag'); @@ -17109,9 +16817,15 @@ const rewritePattern = (pattern, flags, options) => { transform(options, 'unicodeFlag') || transform(options, 'unicodePropertyEscapes') ); config.transform.namedGroups = transform(options, 'namedGroups'); + config.transform.modifiers = transform(options, 'modifiers'); + + config.modifiersData.i = undefined; + config.modifiersData.s = undefined; + config.modifiersData.m = undefined; const regjsparserFeatures = { 'unicodeSet': Boolean(options && options.unicodeSetsFlag), + 'modifiers': Boolean(options && options.modifiers), // Enable every stable RegExp feature by default 'unicodePropertyEscape': true, @@ -17133,9 +16847,57 @@ const rewritePattern = (pattern, flags, options) => { }; const tree = parse(pattern, flags, regjsparserFeatures); + + if (config.transform.modifiers) { + if (/\(\?[a-z]*-[a-z]+:/.test(pattern)) { + // the pattern _likely_ contain inline disabled modifiers + // we need to traverse to make sure that they are actually modifiers and to collect them + const allDisabledModifiers = Object.create(null) + const itemStack = [tree]; + let node; + while (node = itemStack.pop(), node != undefined) { + if (Array.isArray(node)) { + Array.prototype.push.apply(itemStack, node); + } else if (typeof node == 'object' && node != null) { + for (const key of Object.keys(node)) { + const value = node[key]; + if (key == 'modifierFlags') { + if (value.disabling.length > 0){ + value.disabling.split('').forEach((flag)=>{ + allDisabledModifiers[flag] = true + }); + } + } else if (typeof value == 'object' && value != null) { + itemStack.push(value); + } + } + } + } + for (const flag of Object.keys(allDisabledModifiers)) { + config.modifiersData[flag] = true; + } + } + } + // Note: `processTerm` mutates `tree` and `groups`. processTerm(tree, regenerateOptions, groups); assertNoUnmatchedReferences(groups); + + const onNewFlags = options && options.onNewFlags; + if (onNewFlags) { + let newFlags = flags.split('').filter((flag) => !config.modifiersData[flag]).join(''); + if (config.transform.unicodeSetsFlag) { + newFlags = newFlags.replace('v', 'u'); + } + if (config.transform.unicodeFlag) { + newFlags = newFlags.replace('u', ''); + } + if (config.transform.dotAllFlag === 'transform') { + newFlags = newFlags.replace('s', ''); + } + onNewFlags(newFlags); + } + return generate(tree); }; @@ -17144,4580 +16906,3929 @@ module.exports = rewritePattern; /***/ }), -/***/ 71622: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 68456: +/***/ (function(module) { "use strict"; -// Generated using `npm run build`. Do not edit. - +// regjsparser +// +// ================================================================== +// +// See ECMA-262 Standard: 15.10.1 +// +// NOTE: The ECMA-262 standard uses the term "Assertion" for /^/. Here the +// term "Anchor" is used. +// +// Pattern :: +// Disjunction +// +// Disjunction :: +// Alternative +// Alternative | Disjunction +// +// Alternative :: +// [empty] +// Alternative Term +// +// Term :: +// Anchor +// Atom +// Atom Quantifier +// +// Anchor :: +// ^ +// $ +// \ b +// \ B +// ( ? = Disjunction ) +// ( ? ! Disjunction ) +// ( ? < = Disjunction ) +// ( ? < ! Disjunction ) +// +// Quantifier :: +// QuantifierPrefix +// QuantifierPrefix ? +// +// QuantifierPrefix :: +// * +// + +// ? +// { DecimalDigits } +// { DecimalDigits , } +// { DecimalDigits , DecimalDigits } +// +// Atom :: +// PatternCharacter +// . +// \ AtomEscape +// CharacterClass +// ( GroupSpecifier Disjunction ) +// ( ? : Disjunction ) +// +// PatternCharacter :: +// SourceCharacter but not any of: ^ $ \ . * + ? ( ) [ ] { } | +// +// AtomEscape :: +// DecimalEscape +// CharacterClassEscape +// CharacterEscape +// k GroupName +// +// CharacterEscape[U] :: +// ControlEscape +// c ControlLetter +// HexEscapeSequence +// RegExpUnicodeEscapeSequence[?U] (ES6) +// IdentityEscape[?U] +// +// ControlEscape :: +// one of f n r t v +// ControlLetter :: +// one of +// a b c d e f g h i j k l m n o p q r s t u v w x y z +// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z +// +// IdentityEscape :: +// SourceCharacter but not c +// +// DecimalEscape :: +// DecimalIntegerLiteral [lookahead ∉ DecimalDigit] +// +// CharacterClassEscape :: +// one of d D s S w W +// +// CharacterClass :: +// [ [lookahead ∉ {^}] ClassRanges ] +// [ ^ ClassRanges ] +// +// ClassRanges :: +// [empty] +// [~V] NonemptyClassRanges +// [+V] ClassContents +// +// NonemptyClassRanges :: +// ClassAtom +// ClassAtom NonemptyClassRangesNoDash +// ClassAtom - ClassAtom ClassRanges +// +// NonemptyClassRangesNoDash :: +// ClassAtom +// ClassAtomNoDash NonemptyClassRangesNoDash +// ClassAtomNoDash - ClassAtom ClassRanges +// +// ClassAtom :: +// - +// ClassAtomNoDash +// +// ClassAtomNoDash :: +// SourceCharacter but not one of \ or ] or - +// \ ClassEscape +// +// ClassEscape :: +// DecimalEscape +// b +// CharacterEscape +// CharacterClassEscape +// +// GroupSpecifier :: +// [empty] +// ? GroupName +// +// GroupName :: +// < RegExpIdentifierName > +// +// RegExpIdentifierName :: +// RegExpIdentifierStart +// RegExpIdentifierName RegExpIdentifierContinue +// +// RegExpIdentifierStart :: +// UnicodeIDStart +// $ +// _ +// \ RegExpUnicodeEscapeSequence +// +// RegExpIdentifierContinue :: +// UnicodeIDContinue +// $ +// _ +// \ RegExpUnicodeEscapeSequence +// +// +// +// -------------------------------------------------------------- +// NOTE: The following productions refer to the "set notation and +// properties of strings" proposal. +// https://github.com/tc39/proposal-regexp-set-notation +// -------------------------------------------------------------- +// +// ClassContents :: +// ClassUnion +// ClassIntersection +// ClassSubtraction +// +// ClassUnion :: +// ClassRange ClassUnion? +// ClassOperand ClassUnion? +// +// ClassIntersection :: +// ClassOperand && [lookahead ≠ &] ClassOperand +// ClassIntersection && [lookahead ≠ &] ClassOperand +// +// ClassSubtraction :: +// ClassOperand -- ClassOperand +// ClassSubtraction -- ClassOperand +// +// ClassOperand :: +// ClassCharacter +// ClassStrings +// NestedClass +// +// NestedClass :: +// [ [lookahead ≠ ^] ClassRanges[+U,+V] ] +// [ ^ ClassRanges[+U,+V] ] +// \ CharacterClassEscape[+U, +V] +// +// ClassRange :: +// ClassCharacter - ClassCharacter +// +// ClassCharacter :: +// [lookahead ∉ ClassReservedDouble] SourceCharacter but not ClassSyntaxCharacter +// \ CharacterEscape[+U] +// \ ClassHalfOfDouble +// \ b +// +// ClassSyntaxCharacter :: +// one of ( ) [ ] { } / - \ | +// +// ClassStrings :: +// ( ClassString MoreClassStrings? ) +// +// MoreClassStrings :: +// | ClassString MoreClassStrings? +// +// ClassString :: +// [empty] +// NonEmptyClassString +// +// NonEmptyClassString :: +// ClassCharacter NonEmptyClassString? +// +// ClassReservedDouble :: +// one of && !! ## $$ %% ** ++ ,, .. :: ;; << == >> ?? @@ ^^ __ `` ~~ +// +// ClassHalfOfDouble :: +// one of & - ! # % , : ; < = > @ _ ` ~ +// +// -------------------------------------------------------------- +// NOTE: The following productions refer to the +// "Regular Expression Pattern Modifiers for ECMAScript" proposal. +// https://github.com/tc39/proposal-regexp-modifiers +// -------------------------------------------------------------- +// +// Atom :: +// ( ? RegularExpressionFlags : Disjunction ) +// ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction ) +// -const regenerate = __nccwpck_require__(42304); -exports.REGULAR = new Map([ - ['d', regenerate() - .addRange(0x30, 0x39)], - ['D', regenerate() - .addRange(0x0, 0x2F) - .addRange(0x3A, 0xFFFF)], - ['s', regenerate(0x20, 0xA0, 0x1680, 0x202F, 0x205F, 0x3000, 0xFEFF) - .addRange(0x9, 0xD) - .addRange(0x2000, 0x200A) - .addRange(0x2028, 0x2029)], - ['S', regenerate() - .addRange(0x0, 0x8) - .addRange(0xE, 0x1F) - .addRange(0x21, 0x9F) - .addRange(0xA1, 0x167F) - .addRange(0x1681, 0x1FFF) - .addRange(0x200B, 0x2027) - .addRange(0x202A, 0x202E) - .addRange(0x2030, 0x205E) - .addRange(0x2060, 0x2FFF) - .addRange(0x3001, 0xFEFE) - .addRange(0xFF00, 0xFFFF)], - ['w', regenerate(0x5F) - .addRange(0x30, 0x39) - .addRange(0x41, 0x5A) - .addRange(0x61, 0x7A)], - ['W', regenerate(0x60) - .addRange(0x0, 0x2F) - .addRange(0x3A, 0x40) - .addRange(0x5B, 0x5E) - .addRange(0x7B, 0xFFFF)] -]); +(function() { -exports.UNICODE = new Map([ - ['d', regenerate() - .addRange(0x30, 0x39)], - ['D', regenerate() - .addRange(0x0, 0x2F) - .addRange(0x3A, 0x10FFFF)], - ['s', regenerate(0x20, 0xA0, 0x1680, 0x202F, 0x205F, 0x3000, 0xFEFF) - .addRange(0x9, 0xD) - .addRange(0x2000, 0x200A) - .addRange(0x2028, 0x2029)], - ['S', regenerate() - .addRange(0x0, 0x8) - .addRange(0xE, 0x1F) - .addRange(0x21, 0x9F) - .addRange(0xA1, 0x167F) - .addRange(0x1681, 0x1FFF) - .addRange(0x200B, 0x2027) - .addRange(0x202A, 0x202E) - .addRange(0x2030, 0x205E) - .addRange(0x2060, 0x2FFF) - .addRange(0x3001, 0xFEFE) - .addRange(0xFF00, 0x10FFFF)], - ['w', regenerate(0x5F) - .addRange(0x30, 0x39) - .addRange(0x41, 0x5A) - .addRange(0x61, 0x7A)], - ['W', regenerate(0x60) - .addRange(0x0, 0x2F) - .addRange(0x3A, 0x40) - .addRange(0x5B, 0x5E) - .addRange(0x7B, 0x10FFFF)] -]); + var fromCodePoint = String.fromCodePoint || (function() { + // Implementation taken from + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint -exports.UNICODE_IGNORE_CASE = new Map([ - ['d', regenerate() - .addRange(0x30, 0x39)], - ['D', regenerate() - .addRange(0x0, 0x2F) - .addRange(0x3A, 0x10FFFF)], - ['s', regenerate(0x20, 0xA0, 0x1680, 0x202F, 0x205F, 0x3000, 0xFEFF) - .addRange(0x9, 0xD) - .addRange(0x2000, 0x200A) - .addRange(0x2028, 0x2029)], - ['S', regenerate() - .addRange(0x0, 0x8) - .addRange(0xE, 0x1F) - .addRange(0x21, 0x9F) - .addRange(0xA1, 0x167F) - .addRange(0x1681, 0x1FFF) - .addRange(0x200B, 0x2027) - .addRange(0x202A, 0x202E) - .addRange(0x2030, 0x205E) - .addRange(0x2060, 0x2FFF) - .addRange(0x3001, 0xFEFE) - .addRange(0xFF00, 0x10FFFF)], - ['w', regenerate(0x5F, 0x17F, 0x212A) - .addRange(0x30, 0x39) - .addRange(0x41, 0x5A) - .addRange(0x61, 0x7A)], - ['W', regenerate(0x60) - .addRange(0x0, 0x2F) - .addRange(0x3A, 0x40) - .addRange(0x5B, 0x5E) - .addRange(0x7B, 0x17E) - .addRange(0x180, 0x2129) - .addRange(0x212B, 0x10FFFF)] -]); + var stringFromCharCode = String.fromCharCode; + var floor = Math.floor; + return function fromCodePoint() { + var MAX_SIZE = 0x4000; + var codeUnits = []; + var highSurrogate; + var lowSurrogate; + var index = -1; + var length = arguments.length; + if (!length) { + return ''; + } + var result = ''; + while (++index < length) { + var codePoint = Number(arguments[index]); + if ( + !isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity` + codePoint < 0 || // not a valid Unicode code point + codePoint > 0x10FFFF || // not a valid Unicode code point + floor(codePoint) != codePoint // not an integer + ) { + throw RangeError('Invalid code point: ' + codePoint); + } + if (codePoint <= 0xFFFF) { // BMP code point + codeUnits.push(codePoint); + } else { // Astral code point; split in surrogate halves + // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + codePoint -= 0x10000; + highSurrogate = (codePoint >> 10) + 0xD800; + lowSurrogate = (codePoint % 0x400) + 0xDC00; + codeUnits.push(highSurrogate, lowSurrogate); + } + if (index + 1 == length || codeUnits.length > MAX_SIZE) { + result += stringFromCharCode.apply(null, codeUnits); + codeUnits.length = 0; + } + } + return result; + }; + }()); -/***/ }), + function parse(str, flags, features) { + if (!features) { + features = {}; + } + function addRaw(node) { + node.raw = str.substring(node.range[0], node.range[1]); + return node; + } -/***/ 49650: -/***/ (function(module) { + function updateRawStart(node, start) { + node.range[0] = start; + return addRaw(node); + } -module.exports = new Map([ - [0x4B, 0x212A], - [0x53, 0x17F], - [0x6B, 0x212A], - [0x73, 0x17F], - [0xB5, 0x39C], - [0xC5, 0x212B], - [0xDF, 0x1E9E], - [0xE5, 0x212B], - [0x17F, 0x53], - [0x1C4, 0x1C5], - [0x1C5, 0x1C4], - [0x1C7, 0x1C8], - [0x1C8, 0x1C7], - [0x1CA, 0x1CB], - [0x1CB, 0x1CA], - [0x1F1, 0x1F2], - [0x1F2, 0x1F1], - [0x345, 0x1FBE], - [0x392, 0x3D0], - [0x395, 0x3F5], - [0x398, 0x3F4], - [0x399, 0x1FBE], - [0x39A, 0x3F0], - [0x39C, 0xB5], - [0x3A0, 0x3D6], - [0x3A1, 0x3F1], - [0x3A3, 0x3C2], - [0x3A6, 0x3D5], - [0x3A9, 0x2126], - [0x3B8, 0x3F4], - [0x3C2, 0x3A3], - [0x3C9, 0x2126], - [0x3D0, 0x392], - [0x3D1, 0x3F4], - [0x3D5, 0x3A6], - [0x3D6, 0x3A0], - [0x3F0, 0x39A], - [0x3F1, 0x3A1], - [0x3F4, [ - 0x398, - 0x3D1, - 0x3B8 - ]], - [0x3F5, 0x395], - [0x412, 0x1C80], - [0x414, 0x1C81], - [0x41E, 0x1C82], - [0x421, 0x1C83], - [0x422, 0x1C85], - [0x42A, 0x1C86], - [0x462, 0x1C87], - [0x1C80, 0x412], - [0x1C81, 0x414], - [0x1C82, 0x41E], - [0x1C83, 0x421], - [0x1C84, 0x1C85], - [0x1C85, [ - 0x422, - 0x1C84 - ]], - [0x1C86, 0x42A], - [0x1C87, 0x462], - [0x1C88, 0xA64A], - [0x1E60, 0x1E9B], - [0x1E9B, 0x1E60], - [0x1E9E, 0xDF], - [0x1F80, 0x1F88], - [0x1F81, 0x1F89], - [0x1F82, 0x1F8A], - [0x1F83, 0x1F8B], - [0x1F84, 0x1F8C], - [0x1F85, 0x1F8D], - [0x1F86, 0x1F8E], - [0x1F87, 0x1F8F], - [0x1F88, 0x1F80], - [0x1F89, 0x1F81], - [0x1F8A, 0x1F82], - [0x1F8B, 0x1F83], - [0x1F8C, 0x1F84], - [0x1F8D, 0x1F85], - [0x1F8E, 0x1F86], - [0x1F8F, 0x1F87], - [0x1F90, 0x1F98], - [0x1F91, 0x1F99], - [0x1F92, 0x1F9A], - [0x1F93, 0x1F9B], - [0x1F94, 0x1F9C], - [0x1F95, 0x1F9D], - [0x1F96, 0x1F9E], - [0x1F97, 0x1F9F], - [0x1F98, 0x1F90], - [0x1F99, 0x1F91], - [0x1F9A, 0x1F92], - [0x1F9B, 0x1F93], - [0x1F9C, 0x1F94], - [0x1F9D, 0x1F95], - [0x1F9E, 0x1F96], - [0x1F9F, 0x1F97], - [0x1FA0, 0x1FA8], - [0x1FA1, 0x1FA9], - [0x1FA2, 0x1FAA], - [0x1FA3, 0x1FAB], - [0x1FA4, 0x1FAC], - [0x1FA5, 0x1FAD], - [0x1FA6, 0x1FAE], - [0x1FA7, 0x1FAF], - [0x1FA8, 0x1FA0], - [0x1FA9, 0x1FA1], - [0x1FAA, 0x1FA2], - [0x1FAB, 0x1FA3], - [0x1FAC, 0x1FA4], - [0x1FAD, 0x1FA5], - [0x1FAE, 0x1FA6], - [0x1FAF, 0x1FA7], - [0x1FB3, 0x1FBC], - [0x1FBC, 0x1FB3], - [0x1FBE, [ - 0x345, - 0x399 - ]], - [0x1FC3, 0x1FCC], - [0x1FCC, 0x1FC3], - [0x1FF3, 0x1FFC], - [0x1FFC, 0x1FF3], - [0x2126, [ - 0x3A9, - 0x3C9 - ]], - [0x212A, 0x4B], - [0x212B, [ - 0xC5, - 0xE5 - ]], - [0xA64A, 0x1C88], - [0x10400, 0x10428], - [0x10401, 0x10429], - [0x10402, 0x1042A], - [0x10403, 0x1042B], - [0x10404, 0x1042C], - [0x10405, 0x1042D], - [0x10406, 0x1042E], - [0x10407, 0x1042F], - [0x10408, 0x10430], - [0x10409, 0x10431], - [0x1040A, 0x10432], - [0x1040B, 0x10433], - [0x1040C, 0x10434], - [0x1040D, 0x10435], - [0x1040E, 0x10436], - [0x1040F, 0x10437], - [0x10410, 0x10438], - [0x10411, 0x10439], - [0x10412, 0x1043A], - [0x10413, 0x1043B], - [0x10414, 0x1043C], - [0x10415, 0x1043D], - [0x10416, 0x1043E], - [0x10417, 0x1043F], - [0x10418, 0x10440], - [0x10419, 0x10441], - [0x1041A, 0x10442], - [0x1041B, 0x10443], - [0x1041C, 0x10444], - [0x1041D, 0x10445], - [0x1041E, 0x10446], - [0x1041F, 0x10447], - [0x10420, 0x10448], - [0x10421, 0x10449], - [0x10422, 0x1044A], - [0x10423, 0x1044B], - [0x10424, 0x1044C], - [0x10425, 0x1044D], - [0x10426, 0x1044E], - [0x10427, 0x1044F], - [0x10428, 0x10400], - [0x10429, 0x10401], - [0x1042A, 0x10402], - [0x1042B, 0x10403], - [0x1042C, 0x10404], - [0x1042D, 0x10405], - [0x1042E, 0x10406], - [0x1042F, 0x10407], - [0x10430, 0x10408], - [0x10431, 0x10409], - [0x10432, 0x1040A], - [0x10433, 0x1040B], - [0x10434, 0x1040C], - [0x10435, 0x1040D], - [0x10436, 0x1040E], - [0x10437, 0x1040F], - [0x10438, 0x10410], - [0x10439, 0x10411], - [0x1043A, 0x10412], - [0x1043B, 0x10413], - [0x1043C, 0x10414], - [0x1043D, 0x10415], - [0x1043E, 0x10416], - [0x1043F, 0x10417], - [0x10440, 0x10418], - [0x10441, 0x10419], - [0x10442, 0x1041A], - [0x10443, 0x1041B], - [0x10444, 0x1041C], - [0x10445, 0x1041D], - [0x10446, 0x1041E], - [0x10447, 0x1041F], - [0x10448, 0x10420], - [0x10449, 0x10421], - [0x1044A, 0x10422], - [0x1044B, 0x10423], - [0x1044C, 0x10424], - [0x1044D, 0x10425], - [0x1044E, 0x10426], - [0x1044F, 0x10427], - [0x104B0, 0x104D8], - [0x104B1, 0x104D9], - [0x104B2, 0x104DA], - [0x104B3, 0x104DB], - [0x104B4, 0x104DC], - [0x104B5, 0x104DD], - [0x104B6, 0x104DE], - [0x104B7, 0x104DF], - [0x104B8, 0x104E0], - [0x104B9, 0x104E1], - [0x104BA, 0x104E2], - [0x104BB, 0x104E3], - [0x104BC, 0x104E4], - [0x104BD, 0x104E5], - [0x104BE, 0x104E6], - [0x104BF, 0x104E7], - [0x104C0, 0x104E8], - [0x104C1, 0x104E9], - [0x104C2, 0x104EA], - [0x104C3, 0x104EB], - [0x104C4, 0x104EC], - [0x104C5, 0x104ED], - [0x104C6, 0x104EE], - [0x104C7, 0x104EF], - [0x104C8, 0x104F0], - [0x104C9, 0x104F1], - [0x104CA, 0x104F2], - [0x104CB, 0x104F3], - [0x104CC, 0x104F4], - [0x104CD, 0x104F5], - [0x104CE, 0x104F6], - [0x104CF, 0x104F7], - [0x104D0, 0x104F8], - [0x104D1, 0x104F9], - [0x104D2, 0x104FA], - [0x104D3, 0x104FB], - [0x104D8, 0x104B0], - [0x104D9, 0x104B1], - [0x104DA, 0x104B2], - [0x104DB, 0x104B3], - [0x104DC, 0x104B4], - [0x104DD, 0x104B5], - [0x104DE, 0x104B6], - [0x104DF, 0x104B7], - [0x104E0, 0x104B8], - [0x104E1, 0x104B9], - [0x104E2, 0x104BA], - [0x104E3, 0x104BB], - [0x104E4, 0x104BC], - [0x104E5, 0x104BD], - [0x104E6, 0x104BE], - [0x104E7, 0x104BF], - [0x104E8, 0x104C0], - [0x104E9, 0x104C1], - [0x104EA, 0x104C2], - [0x104EB, 0x104C3], - [0x104EC, 0x104C4], - [0x104ED, 0x104C5], - [0x104EE, 0x104C6], - [0x104EF, 0x104C7], - [0x104F0, 0x104C8], - [0x104F1, 0x104C9], - [0x104F2, 0x104CA], - [0x104F3, 0x104CB], - [0x104F4, 0x104CC], - [0x104F5, 0x104CD], - [0x104F6, 0x104CE], - [0x104F7, 0x104CF], - [0x104F8, 0x104D0], - [0x104F9, 0x104D1], - [0x104FA, 0x104D2], - [0x104FB, 0x104D3], - [0x10570, 0x10597], - [0x10571, 0x10598], - [0x10572, 0x10599], - [0x10573, 0x1059A], - [0x10574, 0x1059B], - [0x10575, 0x1059C], - [0x10576, 0x1059D], - [0x10577, 0x1059E], - [0x10578, 0x1059F], - [0x10579, 0x105A0], - [0x1057A, 0x105A1], - [0x1057C, 0x105A3], - [0x1057D, 0x105A4], - [0x1057E, 0x105A5], - [0x1057F, 0x105A6], - [0x10580, 0x105A7], - [0x10581, 0x105A8], - [0x10582, 0x105A9], - [0x10583, 0x105AA], - [0x10584, 0x105AB], - [0x10585, 0x105AC], - [0x10586, 0x105AD], - [0x10587, 0x105AE], - [0x10588, 0x105AF], - [0x10589, 0x105B0], - [0x1058A, 0x105B1], - [0x1058C, 0x105B3], - [0x1058D, 0x105B4], - [0x1058E, 0x105B5], - [0x1058F, 0x105B6], - [0x10590, 0x105B7], - [0x10591, 0x105B8], - [0x10592, 0x105B9], - [0x10594, 0x105BB], - [0x10595, 0x105BC], - [0x10597, 0x10570], - [0x10598, 0x10571], - [0x10599, 0x10572], - [0x1059A, 0x10573], - [0x1059B, 0x10574], - [0x1059C, 0x10575], - [0x1059D, 0x10576], - [0x1059E, 0x10577], - [0x1059F, 0x10578], - [0x105A0, 0x10579], - [0x105A1, 0x1057A], - [0x105A3, 0x1057C], - [0x105A4, 0x1057D], - [0x105A5, 0x1057E], - [0x105A6, 0x1057F], - [0x105A7, 0x10580], - [0x105A8, 0x10581], - [0x105A9, 0x10582], - [0x105AA, 0x10583], - [0x105AB, 0x10584], - [0x105AC, 0x10585], - [0x105AD, 0x10586], - [0x105AE, 0x10587], - [0x105AF, 0x10588], - [0x105B0, 0x10589], - [0x105B1, 0x1058A], - [0x105B3, 0x1058C], - [0x105B4, 0x1058D], - [0x105B5, 0x1058E], - [0x105B6, 0x1058F], - [0x105B7, 0x10590], - [0x105B8, 0x10591], - [0x105B9, 0x10592], - [0x105BB, 0x10594], - [0x105BC, 0x10595], - [0x10C80, 0x10CC0], - [0x10C81, 0x10CC1], - [0x10C82, 0x10CC2], - [0x10C83, 0x10CC3], - [0x10C84, 0x10CC4], - [0x10C85, 0x10CC5], - [0x10C86, 0x10CC6], - [0x10C87, 0x10CC7], - [0x10C88, 0x10CC8], - [0x10C89, 0x10CC9], - [0x10C8A, 0x10CCA], - [0x10C8B, 0x10CCB], - [0x10C8C, 0x10CCC], - [0x10C8D, 0x10CCD], - [0x10C8E, 0x10CCE], - [0x10C8F, 0x10CCF], - [0x10C90, 0x10CD0], - [0x10C91, 0x10CD1], - [0x10C92, 0x10CD2], - [0x10C93, 0x10CD3], - [0x10C94, 0x10CD4], - [0x10C95, 0x10CD5], - [0x10C96, 0x10CD6], - [0x10C97, 0x10CD7], - [0x10C98, 0x10CD8], - [0x10C99, 0x10CD9], - [0x10C9A, 0x10CDA], - [0x10C9B, 0x10CDB], - [0x10C9C, 0x10CDC], - [0x10C9D, 0x10CDD], - [0x10C9E, 0x10CDE], - [0x10C9F, 0x10CDF], - [0x10CA0, 0x10CE0], - [0x10CA1, 0x10CE1], - [0x10CA2, 0x10CE2], - [0x10CA3, 0x10CE3], - [0x10CA4, 0x10CE4], - [0x10CA5, 0x10CE5], - [0x10CA6, 0x10CE6], - [0x10CA7, 0x10CE7], - [0x10CA8, 0x10CE8], - [0x10CA9, 0x10CE9], - [0x10CAA, 0x10CEA], - [0x10CAB, 0x10CEB], - [0x10CAC, 0x10CEC], - [0x10CAD, 0x10CED], - [0x10CAE, 0x10CEE], - [0x10CAF, 0x10CEF], - [0x10CB0, 0x10CF0], - [0x10CB1, 0x10CF1], - [0x10CB2, 0x10CF2], - [0x10CC0, 0x10C80], - [0x10CC1, 0x10C81], - [0x10CC2, 0x10C82], - [0x10CC3, 0x10C83], - [0x10CC4, 0x10C84], - [0x10CC5, 0x10C85], - [0x10CC6, 0x10C86], - [0x10CC7, 0x10C87], - [0x10CC8, 0x10C88], - [0x10CC9, 0x10C89], - [0x10CCA, 0x10C8A], - [0x10CCB, 0x10C8B], - [0x10CCC, 0x10C8C], - [0x10CCD, 0x10C8D], - [0x10CCE, 0x10C8E], - [0x10CCF, 0x10C8F], - [0x10CD0, 0x10C90], - [0x10CD1, 0x10C91], - [0x10CD2, 0x10C92], - [0x10CD3, 0x10C93], - [0x10CD4, 0x10C94], - [0x10CD5, 0x10C95], - [0x10CD6, 0x10C96], - [0x10CD7, 0x10C97], - [0x10CD8, 0x10C98], - [0x10CD9, 0x10C99], - [0x10CDA, 0x10C9A], - [0x10CDB, 0x10C9B], - [0x10CDC, 0x10C9C], - [0x10CDD, 0x10C9D], - [0x10CDE, 0x10C9E], - [0x10CDF, 0x10C9F], - [0x10CE0, 0x10CA0], - [0x10CE1, 0x10CA1], - [0x10CE2, 0x10CA2], - [0x10CE3, 0x10CA3], - [0x10CE4, 0x10CA4], - [0x10CE5, 0x10CA5], - [0x10CE6, 0x10CA6], - [0x10CE7, 0x10CA7], - [0x10CE8, 0x10CA8], - [0x10CE9, 0x10CA9], - [0x10CEA, 0x10CAA], - [0x10CEB, 0x10CAB], - [0x10CEC, 0x10CAC], - [0x10CED, 0x10CAD], - [0x10CEE, 0x10CAE], - [0x10CEF, 0x10CAF], - [0x10CF0, 0x10CB0], - [0x10CF1, 0x10CB1], - [0x10CF2, 0x10CB2], - [0x118A0, 0x118C0], - [0x118A1, 0x118C1], - [0x118A2, 0x118C2], - [0x118A3, 0x118C3], - [0x118A4, 0x118C4], - [0x118A5, 0x118C5], - [0x118A6, 0x118C6], - [0x118A7, 0x118C7], - [0x118A8, 0x118C8], - [0x118A9, 0x118C9], - [0x118AA, 0x118CA], - [0x118AB, 0x118CB], - [0x118AC, 0x118CC], - [0x118AD, 0x118CD], - [0x118AE, 0x118CE], - [0x118AF, 0x118CF], - [0x118B0, 0x118D0], - [0x118B1, 0x118D1], - [0x118B2, 0x118D2], - [0x118B3, 0x118D3], - [0x118B4, 0x118D4], - [0x118B5, 0x118D5], - [0x118B6, 0x118D6], - [0x118B7, 0x118D7], - [0x118B8, 0x118D8], - [0x118B9, 0x118D9], - [0x118BA, 0x118DA], - [0x118BB, 0x118DB], - [0x118BC, 0x118DC], - [0x118BD, 0x118DD], - [0x118BE, 0x118DE], - [0x118BF, 0x118DF], - [0x118C0, 0x118A0], - [0x118C1, 0x118A1], - [0x118C2, 0x118A2], - [0x118C3, 0x118A3], - [0x118C4, 0x118A4], - [0x118C5, 0x118A5], - [0x118C6, 0x118A6], - [0x118C7, 0x118A7], - [0x118C8, 0x118A8], - [0x118C9, 0x118A9], - [0x118CA, 0x118AA], - [0x118CB, 0x118AB], - [0x118CC, 0x118AC], - [0x118CD, 0x118AD], - [0x118CE, 0x118AE], - [0x118CF, 0x118AF], - [0x118D0, 0x118B0], - [0x118D1, 0x118B1], - [0x118D2, 0x118B2], - [0x118D3, 0x118B3], - [0x118D4, 0x118B4], - [0x118D5, 0x118B5], - [0x118D6, 0x118B6], - [0x118D7, 0x118B7], - [0x118D8, 0x118B8], - [0x118D9, 0x118B9], - [0x118DA, 0x118BA], - [0x118DB, 0x118BB], - [0x118DC, 0x118BC], - [0x118DD, 0x118BD], - [0x118DE, 0x118BE], - [0x118DF, 0x118BF], - [0x16E40, 0x16E60], - [0x16E41, 0x16E61], - [0x16E42, 0x16E62], - [0x16E43, 0x16E63], - [0x16E44, 0x16E64], - [0x16E45, 0x16E65], - [0x16E46, 0x16E66], - [0x16E47, 0x16E67], - [0x16E48, 0x16E68], - [0x16E49, 0x16E69], - [0x16E4A, 0x16E6A], - [0x16E4B, 0x16E6B], - [0x16E4C, 0x16E6C], - [0x16E4D, 0x16E6D], - [0x16E4E, 0x16E6E], - [0x16E4F, 0x16E6F], - [0x16E50, 0x16E70], - [0x16E51, 0x16E71], - [0x16E52, 0x16E72], - [0x16E53, 0x16E73], - [0x16E54, 0x16E74], - [0x16E55, 0x16E75], - [0x16E56, 0x16E76], - [0x16E57, 0x16E77], - [0x16E58, 0x16E78], - [0x16E59, 0x16E79], - [0x16E5A, 0x16E7A], - [0x16E5B, 0x16E7B], - [0x16E5C, 0x16E7C], - [0x16E5D, 0x16E7D], - [0x16E5E, 0x16E7E], - [0x16E5F, 0x16E7F], - [0x16E60, 0x16E40], - [0x16E61, 0x16E41], - [0x16E62, 0x16E42], - [0x16E63, 0x16E43], - [0x16E64, 0x16E44], - [0x16E65, 0x16E45], - [0x16E66, 0x16E46], - [0x16E67, 0x16E47], - [0x16E68, 0x16E48], - [0x16E69, 0x16E49], - [0x16E6A, 0x16E4A], - [0x16E6B, 0x16E4B], - [0x16E6C, 0x16E4C], - [0x16E6D, 0x16E4D], - [0x16E6E, 0x16E4E], - [0x16E6F, 0x16E4F], - [0x16E70, 0x16E50], - [0x16E71, 0x16E51], - [0x16E72, 0x16E52], - [0x16E73, 0x16E53], - [0x16E74, 0x16E54], - [0x16E75, 0x16E55], - [0x16E76, 0x16E56], - [0x16E77, 0x16E57], - [0x16E78, 0x16E58], - [0x16E79, 0x16E59], - [0x16E7A, 0x16E5A], - [0x16E7B, 0x16E5B], - [0x16E7C, 0x16E5C], - [0x16E7D, 0x16E5D], - [0x16E7E, 0x16E5E], - [0x16E7F, 0x16E5F], - [0x1E900, 0x1E922], - [0x1E901, 0x1E923], - [0x1E902, 0x1E924], - [0x1E903, 0x1E925], - [0x1E904, 0x1E926], - [0x1E905, 0x1E927], - [0x1E906, 0x1E928], - [0x1E907, 0x1E929], - [0x1E908, 0x1E92A], - [0x1E909, 0x1E92B], - [0x1E90A, 0x1E92C], - [0x1E90B, 0x1E92D], - [0x1E90C, 0x1E92E], - [0x1E90D, 0x1E92F], - [0x1E90E, 0x1E930], - [0x1E90F, 0x1E931], - [0x1E910, 0x1E932], - [0x1E911, 0x1E933], - [0x1E912, 0x1E934], - [0x1E913, 0x1E935], - [0x1E914, 0x1E936], - [0x1E915, 0x1E937], - [0x1E916, 0x1E938], - [0x1E917, 0x1E939], - [0x1E918, 0x1E93A], - [0x1E919, 0x1E93B], - [0x1E91A, 0x1E93C], - [0x1E91B, 0x1E93D], - [0x1E91C, 0x1E93E], - [0x1E91D, 0x1E93F], - [0x1E91E, 0x1E940], - [0x1E91F, 0x1E941], - [0x1E920, 0x1E942], - [0x1E921, 0x1E943], - [0x1E922, 0x1E900], - [0x1E923, 0x1E901], - [0x1E924, 0x1E902], - [0x1E925, 0x1E903], - [0x1E926, 0x1E904], - [0x1E927, 0x1E905], - [0x1E928, 0x1E906], - [0x1E929, 0x1E907], - [0x1E92A, 0x1E908], - [0x1E92B, 0x1E909], - [0x1E92C, 0x1E90A], - [0x1E92D, 0x1E90B], - [0x1E92E, 0x1E90C], - [0x1E92F, 0x1E90D], - [0x1E930, 0x1E90E], - [0x1E931, 0x1E90F], - [0x1E932, 0x1E910], - [0x1E933, 0x1E911], - [0x1E934, 0x1E912], - [0x1E935, 0x1E913], - [0x1E936, 0x1E914], - [0x1E937, 0x1E915], - [0x1E938, 0x1E916], - [0x1E939, 0x1E917], - [0x1E93A, 0x1E918], - [0x1E93B, 0x1E919], - [0x1E93C, 0x1E91A], - [0x1E93D, 0x1E91B], - [0x1E93E, 0x1E91C], - [0x1E93F, 0x1E91D], - [0x1E940, 0x1E91E], - [0x1E941, 0x1E91F], - [0x1E942, 0x1E920], - [0x1E943, 0x1E921] -]); + function createAnchor(kind, rawLength) { + return addRaw({ + type: 'anchor', + kind: kind, + range: [ + pos - rawLength, + pos + ] + }); + } + function createValue(kind, codePoint, from, to) { + return addRaw({ + type: 'value', + kind: kind, + codePoint: codePoint, + range: [from, to] + }); + } -/***/ }), + function createEscaped(kind, codePoint, value, fromOffset) { + fromOffset = fromOffset || 0; + return createValue(kind, codePoint, pos - (value.length + fromOffset), pos); + } -/***/ 64864: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + function createCharacter(matches) { + var _char = matches[0]; + var first = _char.charCodeAt(0); + if (isUnicodeMode) { + var second; + if (_char.length === 1 && first >= 0xD800 && first <= 0xDBFF) { + second = lookahead().charCodeAt(0); + if (second >= 0xDC00 && second <= 0xDFFF) { + // Unicode surrogate pair + pos++; + return createValue( + 'symbol', + (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000, + pos - 2, pos); + } + } + } + return createValue('symbol', first, pos - 1, pos); + } -"use strict"; + function createDisjunction(alternatives, from, to) { + return addRaw({ + type: 'disjunction', + body: alternatives, + range: [ + from, + to + ] + }); + } + function createDot() { + return addRaw({ + type: 'dot', + range: [ + pos - 1, + pos + ] + }); + } -const generate = (__nccwpck_require__(50131).generate); -const parse = (__nccwpck_require__(68456).parse); -const regenerate = __nccwpck_require__(42304); -const unicodeMatchProperty = __nccwpck_require__(14760); -const unicodeMatchPropertyValue = __nccwpck_require__(86176); -const iuMappings = __nccwpck_require__(49650); -const ESCAPE_SETS = __nccwpck_require__(71622); + function createCharacterClassEscape(value) { + return addRaw({ + type: 'characterClassEscape', + value: value, + range: [ + pos - 2, + pos + ] + }); + } -function flatMap(array, callback) { - const result = []; - array.forEach(item => { - const res = callback(item); - if (Array.isArray(res)) { - result.push.apply(result, res); - } else { - result.push(res); - } - }); - return result; -} + function createReference(matchIndex) { + return addRaw({ + type: 'reference', + matchIndex: parseInt(matchIndex, 10), + range: [ + pos - 1 - matchIndex.length, + pos + ] + }); + } -const SPECIAL_CHARS = /([\\^$.*+?()[\]{}|])/g; + function createNamedReference(name) { + return addRaw({ + type: 'reference', + name: name, + range: [ + name.range[0] - 3, + pos + ] + }); + } -// Prepare a Regenerate set containing all code points, used for negative -// character classes (if any). -const UNICODE_SET = regenerate().addRange(0x0, 0x10FFFF); + function createGroup(behavior, disjunction, from, to) { + return addRaw({ + type: 'group', + behavior: behavior, + body: disjunction, + range: [ + from, + to + ] + }); + } -const ASTRAL_SET = regenerate().addRange(0x10000, 0x10FFFF); + function createQuantifier(min, max, from, to, symbol) { + if (to == null) { + from = pos - 1; + to = pos; + } -const NEWLINE_SET = regenerate().add( - // `LineTerminator`s (https://mths.be/es6#sec-line-terminators): - 0x000A, // Line Feed - 0x000D, // Carriage Return - 0x2028, // Line Separator - 0x2029 // Paragraph Separator -); + return addRaw({ + type: 'quantifier', + min: min, + max: max, + greedy: true, + body: null, // set later on + symbol: symbol, + range: [ + from, + to + ] + }); + } -// Prepare a Regenerate set containing all code points that are supposed to be -// matched by `/./u`. https://mths.be/es6#sec-atom -const DOT_SET_UNICODE = UNICODE_SET.clone() // all Unicode code points - .remove(NEWLINE_SET); + function createAlternative(terms, from, to) { + return addRaw({ + type: 'alternative', + body: terms, + range: [ + from, + to + ] + }); + } -const getCharacterClassEscapeSet = (character, unicode, ignoreCase) => { - if (unicode) { - if (ignoreCase) { - return ESCAPE_SETS.UNICODE_IGNORE_CASE.get(character); - } - return ESCAPE_SETS.UNICODE.get(character); - } - return ESCAPE_SETS.REGULAR.get(character); -}; + function createCharacterClass(contents, negative, from, to) { + return addRaw({ + type: 'characterClass', + kind: contents.kind, + body: contents.body, + negative: negative, + range: [ + from, + to + ] + }); + } -const getUnicodeDotSet = (dotAll) => { - return dotAll ? UNICODE_SET : DOT_SET_UNICODE; -}; + function createClassRange(min, max, from, to) { + // See 15.10.2.15: + if (min.codePoint > max.codePoint) { + bail('invalid range in character class', min.raw + '-' + max.raw, from, to); + } -const getUnicodePropertyValueSet = (property, value) => { - const path = value ? - `${ property }/${ value }` : - `Binary_Property/${ property }`; - try { - return require(`regenerate-unicode-properties/${ path }.js`); - } catch (exception) { - throw new Error( - `Failed to recognize value \`${ value }\` for property ` + - `\`${ property }\`.` - ); - } -}; + return addRaw({ + type: 'characterClassRange', + min: min, + max: max, + range: [ + from, + to + ] + }); + } -const handleLoneUnicodePropertyNameOrValue = (value) => { - // It could be a `General_Category` value or a binary property. - // Note: `unicodeMatchPropertyValue` throws on invalid values. - try { - const property = 'General_Category'; - const category = unicodeMatchPropertyValue(property, value); - return getUnicodePropertyValueSet(property, category); - } catch (exception) {} - // It’s not a `General_Category` value, so check if it’s a property - // of strings. - try { - return getUnicodePropertyValueSet('Property_of_Strings', value); - } catch (exception) {} - // Lastly, check if it’s a binary property of single code points. - // Note: `unicodeMatchProperty` throws on invalid properties. - const property = unicodeMatchProperty(value); - return getUnicodePropertyValueSet(property); -}; + function createClassStrings(strings, from, to) { + return addRaw({ + type: 'classStrings', + strings: strings, + range: [from, to] + }); + } -const getUnicodePropertyEscapeSet = (value, isNegative) => { - const parts = value.split('='); - const firstPart = parts[0]; - let set; - if (parts.length == 1) { - set = handleLoneUnicodePropertyNameOrValue(firstPart); - } else { - // The pattern consists of two parts, i.e. `Property=Value`. - const property = unicodeMatchProperty(firstPart); - const value = unicodeMatchPropertyValue(property, parts[1]); - set = getUnicodePropertyValueSet(property, value); - } - if (isNegative) { - if (set.strings) { - throw new Error('Cannot negate Unicode property of strings'); - } - return { - characters: UNICODE_SET.clone().remove(set.characters), - strings: new Set() - }; - } - return { - characters: set.characters.clone(), - strings: set.strings - // We need to escape strings like *️⃣ to make sure that they can be safely used in unions. - ? new Set(set.strings.map(str => str.replace(SPECIAL_CHARS, '\\$1'))) - : new Set() - }; -}; - -const getUnicodePropertyEscapeCharacterClassData = (property, isNegative) => { - const set = getUnicodePropertyEscapeSet(property, isNegative); - const data = getCharacterClassEmptyData(); - data.singleChars = set.characters; - if (set.strings.size > 0) { - data.longStrings = set.strings; - data.maybeIncludesStrings = true; - } - return data; -}; + function createClassString(characters, from, to) { + return addRaw({ + type: 'classString', + characters: characters, + range: [from, to] + }); + } -function configNeedCaseFoldAscii() { - return !!config.modifiersData.i; -} + function flattenBody(body) { + if (body.type === 'alternative') { + return body.body; + } else { + return [body]; + } + } -function configNeedCaseFoldUnicode() { - // config.modifiersData.i : undefined | false - if (config.modifiersData.i === false) return false; - if (!config.transform.unicodeFlag) return false; - return Boolean(config.modifiersData.i || config.flags.ignoreCase); -} + function incr(amount) { + amount = (amount || 1); + var res = str.substring(pos, pos + amount); + pos += (amount || 1); + return res; + } -// Given a range of code points, add any case-folded code points in that range -// to a set. -regenerate.prototype.iuAddRange = function(min, max) { - const $this = this; - do { - const folded = caseFold(min, configNeedCaseFoldAscii(), configNeedCaseFoldUnicode()); - if (folded) { - $this.add(folded); - } - } while (++min <= max); - return $this; -}; -regenerate.prototype.iuRemoveRange = function(min, max) { - const $this = this; - do { - const folded = caseFold(min, configNeedCaseFoldAscii(), configNeedCaseFoldUnicode()); - if (folded) { - $this.remove(folded); - } - } while (++min <= max); - return $this; -}; + function skip(value) { + if (!match(value)) { + bail('character', value); + } + } -const update = (item, pattern) => { - let tree = parse(pattern, config.useUnicodeFlag ? 'u' : '', { - lookbehind: true, - namedGroups: true, - unicodePropertyEscape: true, - unicodeSet: true, - modifiers: true, - }); - switch (tree.type) { - case 'characterClass': - case 'group': - case 'value': - // No wrapping needed. - break; - default: - // Wrap the pattern in a non-capturing group. - tree = wrap(tree, pattern); - } - Object.assign(item, tree); -}; + function match(value) { + if (str.indexOf(value, pos) === pos) { + return incr(value.length); + } + } -const wrap = (tree, pattern) => { - // Wrap the pattern in a non-capturing group. - return { - 'type': 'group', - 'behavior': 'ignore', - 'body': [tree], - 'raw': `(?:${ pattern })` - }; -}; + function lookahead() { + return str[pos]; + } -const caseFold = (codePoint, includeAscii, includeUnicode) => { - let folded = (includeUnicode ? iuMappings.get(codePoint) : undefined) || []; - if (typeof folded === 'number') folded = [folded]; - if (includeAscii) { - if (codePoint >= 0x41 && codePoint <= 0x5A) { - folded.push(codePoint + 0x20); - } else if (codePoint >= 0x61 && codePoint <= 0x7A) { - folded.push(codePoint - 0x20); - } - } - return folded.length == 0 ? false : folded; -}; + function current(value) { + return str.indexOf(value, pos) === pos; + } -const buildHandler = (action) => { - switch (action) { - case 'union': - return { - single: (data, cp) => { - data.singleChars.add(cp); - }, - regSet: (data, set2) => { - data.singleChars.add(set2); - }, - range: (data, start, end) => { - data.singleChars.addRange(start, end); - }, - iuRange: (data, start, end) => { - data.singleChars.iuAddRange(start, end); - }, - nested: (data, nestedData) => { - data.singleChars.add(nestedData.singleChars); - for (const str of nestedData.longStrings) data.longStrings.add(str); - if (nestedData.maybeIncludesStrings) data.maybeIncludesStrings = true; - } - }; - case 'union-negative': { - const regSet = (data, set2) => { - data.singleChars = UNICODE_SET.clone().remove(set2).add(data.singleChars); - }; - return { - single: (data, cp) => { - const unicode = UNICODE_SET.clone(); - data.singleChars = data.singleChars.contains(cp) ? unicode : unicode.remove(cp); - }, - regSet: regSet, - range: (data, start, end) => { - data.singleChars = UNICODE_SET.clone().removeRange(start, end).add(data.singleChars); - }, - iuRange: (data, start, end) => { - data.singleChars = UNICODE_SET.clone().iuRemoveRange(start, end).add(data.singleChars); - }, - nested: (data, nestedData) => { - regSet(data, nestedData.singleChars); - if (nestedData.maybeIncludesStrings) throw new Error('ASSERTION ERROR'); - } - }; - } - case 'intersection': { - const regSet = (data, set2) => { - if (data.first) data.singleChars = set2; - else data.singleChars.intersection(set2); - }; - return { - single: (data, cp) => { - data.singleChars = data.first || data.singleChars.contains(cp) ? regenerate(cp) : regenerate(); - data.longStrings.clear(); - data.maybeIncludesStrings = false; - }, - regSet: (data, set) => { - regSet(data, set); - data.longStrings.clear(); - data.maybeIncludesStrings = false; - }, - range: (data, start, end) => { - if (data.first) data.singleChars.addRange(start, end); - else data.singleChars.intersection(regenerate().addRange(start, end)); - data.longStrings.clear(); - data.maybeIncludesStrings = false; - }, - iuRange: (data, start, end) => { - if (data.first) data.singleChars.iuAddRange(start, end); - else data.singleChars.intersection(regenerate().iuAddRange(start, end)); - data.longStrings.clear(); - data.maybeIncludesStrings = false; - }, - nested: (data, nestedData) => { - regSet(data, nestedData.singleChars); + function next(value) { + return str[pos + 1] === value; + } - if (data.first) { - data.longStrings = nestedData.longStrings; - data.maybeIncludesStrings = nestedData.maybeIncludesStrings; - } else { - for (const str of data.longStrings) { - if (!nestedData.longStrings.has(str)) data.longStrings.delete(str); - } - if (!nestedData.maybeIncludesStrings) data.maybeIncludesStrings = false; - } - } - }; - } - case 'subtraction': { - const regSet = (data, set2) => { - if (data.first) data.singleChars.add(set2); - else data.singleChars.remove(set2); - }; - return { - single: (data, cp) => { - if (data.first) data.singleChars.add(cp); - else data.singleChars.remove(cp); - }, - regSet: regSet, - range: (data, start, end) => { - if (data.first) data.singleChars.addRange(start, end); - else data.singleChars.removeRange(start, end); - }, - iuRange: (data, start, end) => { - if (data.first) data.singleChars.iuAddRange(start, end); - else data.singleChars.iuRemoveRange(start, end); - }, - nested: (data, nestedData) => { - regSet(data, nestedData.singleChars); + function matchReg(regExp) { + var subStr = str.substring(pos); + var res = subStr.match(regExp); + if (res) { + res.range = []; + res.range[0] = pos; + incr(res[0].length); + res.range[1] = pos; + } + return res; + } - if (data.first) { - data.longStrings = nestedData.longStrings; - data.maybeIncludesStrings = nestedData.maybeIncludesStrings; - } else { - for (const str of data.longStrings) { - if (nestedData.longStrings.has(str)) data.longStrings.delete(str); - } - } - } - }; - } - // The `default` clause is only here as a safeguard; it should never be - // reached. Code coverage tools should ignore it. - /* istanbul ignore next */ - default: - throw new Error(`Unknown set action: ${ characterClassItem.kind }`); - } -}; + function parseDisjunction() { + // Disjunction :: + // Alternative + // Alternative | Disjunction + var res = [], from = pos; + res.push(parseAlternative()); -const getCharacterClassEmptyData = () => ({ - transformed: config.transform.unicodeFlag, - singleChars: regenerate(), - longStrings: new Set(), - hasEmptyString: false, - first: true, - maybeIncludesStrings: false -}); + while (match('|')) { + res.push(parseAlternative()); + } -const maybeFold = (codePoint) => { - const caseFoldAscii = configNeedCaseFoldAscii(); - const caseFoldUnicode = configNeedCaseFoldUnicode(); + if (res.length === 1) { + return res[0]; + } - if (caseFoldAscii || caseFoldUnicode) { - const folded = caseFold(codePoint, caseFoldAscii, caseFoldUnicode); - if (folded) { - return [codePoint, folded]; - } - } - return [codePoint]; -}; + return createDisjunction(res, from, pos); + } -const computeClassStrings = (classStrings, regenerateOptions) => { - let data = getCharacterClassEmptyData(); + function parseAlternative() { + var res = [], from = pos; + var term; - const caseFoldAscii = configNeedCaseFoldAscii(); - const caseFoldUnicode = configNeedCaseFoldUnicode(); + // Alternative :: + // [empty] + // Alternative Term + while (term = parseTerm()) { + res.push(term); + } - for (const string of classStrings.strings) { - if (string.characters.length === 1) { - maybeFold(string.characters[0].codePoint).forEach((cp) => { - data.singleChars.add(cp); - }); - } else { - let stringifiedString; - if (caseFoldUnicode || caseFoldAscii) { - stringifiedString = ''; - for (const ch of string.characters) { - let set = regenerate(ch.codePoint); - const folded = maybeFold(ch.codePoint); - if (folded) set.add(folded); - stringifiedString += set.toString(regenerateOptions); - } - } else { - stringifiedString = string.characters.map(ch => generate(ch)).join('') - } + if (res.length === 1) { + return res[0]; + } - data.longStrings.add(stringifiedString); - data.maybeIncludesStrings = true; - } - } + return createAlternative(res, from, pos); + } - return data; -} + function parseTerm() { + // Term :: + // Anchor + // Atom + // Atom Quantifier -const computeCharacterClass = (characterClassItem, regenerateOptions) => { - let data = getCharacterClassEmptyData(); + if (pos >= str.length || current('|') || current(')')) { + return null; /* Means: The term is empty */ + } - let handlePositive; - let handleNegative; + var anchor = parseAnchor(); - switch (characterClassItem.kind) { - case 'union': - handlePositive = buildHandler('union'); - handleNegative = buildHandler('union-negative'); - break; - case 'intersection': - handlePositive = buildHandler('intersection'); - handleNegative = buildHandler('subtraction'); - if (config.transform.unicodeSetsFlag) data.transformed = true; - break; - case 'subtraction': - handlePositive = buildHandler('subtraction'); - handleNegative = buildHandler('intersection'); - if (config.transform.unicodeSetsFlag) data.transformed = true; - break; - // The `default` clause is only here as a safeguard; it should never be - // reached. Code coverage tools should ignore it. - /* istanbul ignore next */ - default: - throw new Error(`Unknown character class kind: ${ characterClassItem.kind }`); - } + if (anchor) { + return anchor; + } - const caseFoldAscii = configNeedCaseFoldAscii(); - const caseFoldUnicode = configNeedCaseFoldUnicode(); + var atom = parseAtomAndExtendedAtom(); + var quantifier; + if (!atom) { + // Check if a quantifier is following. A quantifier without an atom + // is an error. + var pos_backup = pos + quantifier = parseQuantifier() || false; + if (quantifier) { + pos = pos_backup + bail('Expected atom'); + } - for (const item of characterClassItem.body) { - switch (item.type) { - case 'value': - maybeFold(item.codePoint).forEach((cp) => { - handlePositive.single(data, cp); - }); - break; - case 'characterClassRange': - const min = item.min.codePoint; - const max = item.max.codePoint; - handlePositive.range(data, min, max); - if (caseFoldAscii || caseFoldUnicode) { - handlePositive.iuRange(data, min, max); - data.transformed = true; - } - break; - case 'characterClassEscape': - handlePositive.regSet(data, getCharacterClassEscapeSet( - item.value, - config.flags.unicode, - config.flags.ignoreCase - )); - break; - case 'unicodePropertyEscape': - const nestedData = getUnicodePropertyEscapeCharacterClassData(item.value, item.negative); - handlePositive.nested(data, nestedData); - data.transformed = - data.transformed || - config.transform.unicodePropertyEscapes || - (config.transform.unicodeSetsFlag && nestedData.maybeIncludesStrings); - break; - case 'characterClass': - const handler = item.negative ? handleNegative : handlePositive; - const res = computeCharacterClass(item, regenerateOptions); - handler.nested(data, res); - data.transformed = true; - break; - case 'classStrings': - handlePositive.nested(data, computeClassStrings(item, regenerateOptions)); - data.transformed = true; - break; - // The `default` clause is only here as a safeguard; it should never be - // reached. Code coverage tools should ignore it. - /* istanbul ignore next */ - default: - throw new Error(`Unknown term type: ${ item.type }`); - } + // If no unicode flag, then try to parse ExtendedAtom -> ExtendedPatternCharacter. + // ExtendedPatternCharacter + var res; + if (!isUnicodeMode && (res = matchReg(/^{/))) { + atom = createCharacter(res); + } else { + bail('Expected atom'); + } + } + quantifier = parseQuantifier() || false; + if (quantifier) { + quantifier.body = flattenBody(atom); + // The quantifier contains the atom. Therefore, the beginning of the + // quantifier range is given by the beginning of the atom. + updateRawStart(quantifier, atom.range[0]); + return quantifier; + } + return atom; + } - data.first = false; - } + function parseGroup(matchA, typeA, matchB, typeB) { + var type = null, from = pos; - if (characterClassItem.negative && data.maybeIncludesStrings) { - throw new SyntaxError('Cannot negate set containing strings'); - } + if (match(matchA)) { + type = typeA; + } else if (match(matchB)) { + type = typeB; + } else { + return false; + } - return data; -} + return finishGroup(type, from); + } -const processCharacterClass = ( - characterClassItem, - regenerateOptions, - computed = computeCharacterClass(characterClassItem, regenerateOptions) -) => { - const negative = characterClassItem.negative; - const { singleChars, transformed, longStrings } = computed; - if (transformed) { - const setStr = singleChars.toString(regenerateOptions); + function finishGroup(type, from) { + var body = parseDisjunction(); + if (!body) { + bail('Expected disjunction'); + } + skip(')'); + var group = createGroup(type, flattenBody(body), from, pos); - if (negative) { - if (config.useUnicodeFlag) { - update(characterClassItem, `[^${setStr[0] === '[' ? setStr.slice(1, -1) : setStr}]`) - } else { - if (config.flags.unicode) { - if (config.flags.ignoreCase) { - const astralCharsSet = singleChars.clone().intersection(ASTRAL_SET); - // Assumption: singleChars do not contain lone surrogates. - // Regex like /[^\ud800]/u is not supported - const surrogateOrBMPSetStr = singleChars - .clone() - .remove(astralCharsSet) - .addRange(0xd800, 0xdfff) - .toString({ bmpOnly: true }); - // Don't generate negative lookahead for astral characters - // because the case folding is not working anyway as we break - // code points into surrogate pairs. - const astralNegativeSetStr = ASTRAL_SET - .clone() - .remove(astralCharsSet) - .toString(regenerateOptions); - // The transform here does not support lone surrogates. - update( - characterClassItem, - `(?!${surrogateOrBMPSetStr})[\\s\\S]|${astralNegativeSetStr}` - ); - } else { - // Generate negative set directly when case folding is not involved. - update( - characterClassItem, - UNICODE_SET.clone().remove(singleChars).toString(regenerateOptions) - ); - } - } else { - update(characterClassItem, `(?!${setStr})[\\s\\S]`); - } - } - } else { - const hasEmptyString = longStrings.has(''); - const pieces = Array.from(longStrings).sort((a, b) => b.length - a.length); + if (type == 'normal') { + // Keep track of the number of closed groups. This is required for + // parseDecimalEscape(). In case the string is parsed a second time the + // value already holds the total count and no incrementation is required. + if (firstIteration) { + closedCaptureCounter++; + } + } + return group; + } - if (setStr !== '[]' || longStrings.size === 0) { - pieces.splice(pieces.length - (hasEmptyString ? 1 : 0), 0, setStr); - } + function parseAnchor() { + // Anchor :: + // ^ + // $ + // \ b + // \ B + // ( ? = Disjunction ) + // ( ? ! Disjunction ) - update(characterClassItem, pieces.join('|')); - } - } - return characterClassItem; -}; + if (match('^')) { + return createAnchor('start', 1 /* rawLength */); + } else if (match('$')) { + return createAnchor('end', 1 /* rawLength */); + } else if (match('\\b')) { + return createAnchor('boundary', 2 /* rawLength */); + } else if (match('\\B')) { + return createAnchor('not-boundary', 2 /* rawLength */); + } else { + return parseGroup('(?=', 'lookahead', '(?!', 'negativeLookahead'); + } + } -const assertNoUnmatchedReferences = (groups) => { - const unmatchedReferencesNames = Object.keys(groups.unmatchedReferences); - if (unmatchedReferencesNames.length > 0) { - throw new Error(`Unknown group names: ${unmatchedReferencesNames}`); - } -}; + function parseQuantifier() { + // Quantifier :: + // QuantifierPrefix + // QuantifierPrefix ? + // + // QuantifierPrefix :: + // * + // + + // ? + // { DecimalDigits } + // { DecimalDigits , } + // { DecimalDigits , DecimalDigits } -const processModifiers = (item, regenerateOptions, groups) => { - const enabling = item.modifierFlags.enabling; - const disabling = item.modifierFlags.disabling; + var res, from = pos; + var quantifier; + var min, max; - delete item.modifierFlags; - item.behavior = 'ignore'; + if (match('*')) { + quantifier = createQuantifier(0, undefined, undefined, undefined, '*'); + } + else if (match('+')) { + quantifier = createQuantifier(1, undefined, undefined, undefined, "+"); + } + else if (match('?')) { + quantifier = createQuantifier(0, 1, undefined, undefined, "?"); + } + else if (res = matchReg(/^\{([0-9]+)\}/)) { + min = parseInt(res[1], 10); + quantifier = createQuantifier(min, min, res.range[0], res.range[1]); + } + else if (res = matchReg(/^\{([0-9]+),\}/)) { + min = parseInt(res[1], 10); + quantifier = createQuantifier(min, undefined, res.range[0], res.range[1]); + } + else if (res = matchReg(/^\{([0-9]+),([0-9]+)\}/)) { + min = parseInt(res[1], 10); + max = parseInt(res[2], 10); + if (min > max) { + bail('numbers out of order in {} quantifier', '', from, pos); + } + quantifier = createQuantifier(min, max, res.range[0], res.range[1]); + } - const oldData = Object.assign({}, config.modifiersData); + if ((min && !Number.isSafeInteger(min)) || (max && !Number.isSafeInteger(max))) { + bail("iterations outside JS safe integer range in quantifier", "", from, pos); + } - enabling.split('').forEach(flag => { - config.modifiersData[flag] = true; - }); - disabling.split('').forEach(flag => { - config.modifiersData[flag] = false; - }); + if (quantifier) { + if (match('?')) { + quantifier.greedy = false; + quantifier.range[1] += 1; + } + } - item.body = item.body.map(term => { - return processTerm(term, regenerateOptions, groups); - }); + return quantifier; + } - config.modifiersData = oldData; + function parseAtomAndExtendedAtom() { + // Parsing Atom and ExtendedAtom together due to redundancy. + // ExtendedAtom is defined in Apendix B of the ECMA-262 standard. + // + // SEE: https://www.ecma-international.org/ecma-262/10.0/index.html#prod-annexB-ExtendedPatternCharacter + // + // Atom :: + // PatternCharacter + // . + // \ AtomEscape + // CharacterClass + // ( GroupSpecifier Disjunction ) + // ( ? RegularExpressionFlags : Disjunction ) + // ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction ) + // ExtendedAtom :: + // ExtendedPatternCharacter + // ExtendedPatternCharacter :: + // SourceCharacter but not one of ^$\.*+?()[| - return item; -} + var res; -const processTerm = (item, regenerateOptions, groups) => { - switch (item.type) { - case 'dot': - if (config.transform.unicodeFlag) { - update( - item, - getUnicodeDotSet(config.flags.dotAll || config.modifiersData.s).toString(regenerateOptions) - ); - } else if (config.transform.dotAllFlag || config.modifiersData.s) { - // TODO: consider changing this at the regenerate level. - update(item, '[\\s\\S]'); - } - break; - case 'characterClass': - item = processCharacterClass(item, regenerateOptions); - break; - case 'unicodePropertyEscape': - const data = getUnicodePropertyEscapeCharacterClassData(item.value, item.negative); - if (data.maybeIncludesStrings) { - if (!config.flags.unicodeSets) { - throw new Error( - 'Properties of strings are only supported when using the unicodeSets (v) flag.' - ); - } - if (config.transform.unicodeSetsFlag) { - data.transformed = true; - item = processCharacterClass(item, regenerateOptions, data); - } - } else if (config.transform.unicodePropertyEscapes) { - update( - item, - data.singleChars.toString(regenerateOptions) - ); - } - break; - case 'characterClassEscape': - if (config.transform.unicodeFlag) { - update( - item, - getCharacterClassEscapeSet( - item.value, - /* config.transform.unicodeFlag implies config.flags.unicode */ true, - config.flags.ignoreCase - ).toString(regenerateOptions) - ); - } - break; - case 'group': - if (item.behavior == 'normal') { - groups.lastIndex++; - } - if (item.name) { - const name = item.name.value; + // jviereck: allow ']', '}' here as well to be compatible with browser's + // implementations: ']'.match(/]/); + if (res = matchReg(/^[^^$\\.*+?()[\]{}|]/)) { + // PatternCharacter + return createCharacter(res); + } + else if (!isUnicodeMode && (res = matchReg(/^(?:]|})/))) { + // ExtendedPatternCharacter, first part. See parseTerm. + return createCharacter(res); + } + else if (match('.')) { + // . + return createDot(); + } + else if (match('\\')) { + // \ AtomEscape + res = parseAtomEscape(); + if (!res) { + if (!isUnicodeMode && lookahead() == 'c') { + // B.1.4 ExtendedAtom + // \[lookahead = c] + return createValue('symbol', 92, pos - 1, pos); + } + bail('atomEscape'); + } + return res; + } + else if (res = parseCharacterClass()) { + return res; + } + else if (features.lookbehind && (res = parseGroup('(?<=', 'lookbehind', '(?"); + var group = finishGroup("normal", name.range[0] - 3); + group.name = name; + return group; + } + else if (features.modifiers && str.indexOf("(?") == pos && str[pos+2] != ":") { + return parseModifiersGroup(); + } + else { + // ( Disjunction ) + // ( ? : Disjunction ) + return parseGroup('(?:', 'ignore', '(', 'normal'); + } + } - if (groups.namesConflicts[name]) { - throw new Error( - `Group '${ name }' has already been defined in this context.` - ); - } - groups.namesConflicts[name] = true; + function parseModifiersGroup() { + function hasDupChar(str) { + var i = 0; + while (i < str.length) { + if (str.indexOf(str[i], i + 1) != -1) { + return true; + } + i++; + } + return false; + } - if (config.transform.namedGroups) { - delete item.name; - } + var from = pos; + incr(2); - const index = groups.lastIndex; - if (!groups.names[name]) { - groups.names[name] = []; - } - groups.names[name].push(index); + var enablingFlags = matchReg(/^[sim]+/); + var disablingFlags; + if(match("-")){ + disablingFlags = matchReg(/^[sim]+/); + if (!disablingFlags) { + bail('Invalid flags for modifiers group'); + } + } else if(!enablingFlags){ + bail('Invalid flags for modifiers group'); + } - if (groups.onNamedGroup) { - groups.onNamedGroup.call(null, name, index); - } + enablingFlags = enablingFlags ? enablingFlags[0] : ""; + disablingFlags = disablingFlags ? disablingFlags[0] : ""; - if (groups.unmatchedReferences[name]) { - delete groups.unmatchedReferences[name]; - } - } - if (item.modifierFlags && config.transform.modifiers) { - return processModifiers(item, regenerateOptions, groups); - } - /* falls through */ - case 'quantifier': - item.body = item.body.map(term => { - return processTerm(term, regenerateOptions, groups); - }); - break; - case 'disjunction': - const outerNamesConflicts = groups.namesConflicts; - item.body = item.body.map(term => { - groups.namesConflicts = Object.create(outerNamesConflicts); - return processTerm(term, regenerateOptions, groups); - }); - break; - case 'alternative': - item.body = flatMap(item.body, term => { - const res = processTerm(term, regenerateOptions, groups); - // Alternatives cannot contain alternatives; flatten them. - return res.type === 'alternative' ? res.body : res; - }); - break; - case 'value': - const codePoint = item.codePoint; - const set = regenerate(codePoint); - const folded = maybeFold(codePoint); - set.add(folded); - update(item, set.toString(regenerateOptions)); - break; - case 'reference': - if (item.name) { - const name = item.name.value; - const indexes = groups.names[name]; - if (!indexes) { - groups.unmatchedReferences[name] = true; - } + var flags = enablingFlags + disablingFlags; + if(flags.length > 3 || hasDupChar(flags)) { + bail('flags cannot be duplicated for modifiers group'); + } - if (config.transform.namedGroups) { - if (indexes) { - const body = indexes.map(index => ({ - 'type': 'reference', - 'matchIndex': index, - 'raw': '\\' + index, - })); - if (body.length === 1) { - return body[0]; - } - return { - 'type': 'alternative', - 'body': body, - 'raw': body.map(term => term.raw).join(''), - }; - } + skip(":"); - // This named reference comes before the group where it’s defined, - // so it’s always an empty match. - return { - 'type': 'group', - 'behavior': 'ignore', - 'body': [], - 'raw': '(?:)', - }; - } - } - break; - case 'anchor': - if (config.modifiersData.m) { - if (item.kind == 'start') { - update(item, `(?:^|(?<=${NEWLINE_SET.toString()}))`); - } else if (item.kind == 'end') { - update(item, `(?:$|(?=${NEWLINE_SET.toString()}))`); - } - } - case 'empty': - // Nothing to do here. - break; - // The `default` clause is only here as a safeguard; it should never be - // reached. Code coverage tools should ignore it. - /* istanbul ignore next */ - default: - throw new Error(`Unknown term type: ${ item.type }`); - } - return item; -}; + var modifiersGroup = finishGroup("ignore", from); -const config = { - 'flags': { - 'ignoreCase': false, - 'unicode': false, - 'unicodeSets': false, - 'dotAll': false, - 'multiline': false, - }, - 'transform': { - 'dotAllFlag': false, - 'unicodeFlag': false, - 'unicodeSetsFlag': false, - 'unicodePropertyEscapes': false, - 'namedGroups': false, - 'modifiers': false, - }, - 'modifiersData': { - 'i': undefined, - 's': undefined, - 'm': undefined, - }, - get useUnicodeFlag() { - return (this.flags.unicode || this.flags.unicodeSets) && !this.transform.unicodeFlag; - } -}; + modifiersGroup.modifierFlags = { + enabling: enablingFlags, + disabling: disablingFlags + }; -const validateOptions = (options) => { - if (!options) return; + return modifiersGroup; + } - for (const key of Object.keys(options)) { - const value = options[key]; - switch (key) { - case 'dotAllFlag': - case 'unicodeFlag': - case 'unicodePropertyEscapes': - case 'namedGroups': - if (value != null && value !== false && value !== 'transform') { - throw new Error(`.${key} must be false (default) or 'transform'.`); - } - break; - case 'modifiers': - case 'unicodeSetsFlag': - if (value != null && value !== false && value !== 'parse' && value !== 'transform') { - throw new Error(`.${key} must be false (default), 'parse' or 'transform'.`); - } - break; - case 'onNamedGroup': - case 'onNewFlags': - if (value != null && typeof value !== 'function') { - throw new Error(`.${key} must be a function.`); - } - break; - default: - throw new Error(`.${key} is not a valid regexpu-core option.`); - } - } -}; + function parseUnicodeSurrogatePairEscape(firstEscape) { + if (isUnicodeMode) { + var first, second; + if (firstEscape.kind == 'unicodeEscape' && + (first = firstEscape.codePoint) >= 0xD800 && first <= 0xDBFF && + current('\\') && next('u') ) { + var prevPos = pos; + pos++; + var secondEscape = parseClassEscape(); + if (secondEscape.kind == 'unicodeEscape' && + (second = secondEscape.codePoint) >= 0xDC00 && second <= 0xDFFF) { + // Unicode surrogate pair + firstEscape.range[1] = secondEscape.range[1]; + firstEscape.codePoint = (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; + firstEscape.type = 'value'; + firstEscape.kind = 'unicodeCodePointEscape'; + addRaw(firstEscape); + } + else { + pos = prevPos; + } + } + } + return firstEscape; + } -const hasFlag = (flags, flag) => flags ? flags.includes(flag) : false; -const transform = (options, name) => options ? options[name] === 'transform' : false; + function parseClassEscape() { + return parseAtomEscape(true); + } -const rewritePattern = (pattern, flags, options) => { - validateOptions(options); + function parseAtomEscape(insideCharacterClass) { + // AtomEscape :: + // DecimalEscape + // CharacterEscape + // CharacterClassEscape + // k GroupName - config.flags.unicode = hasFlag(flags, 'u'); - config.flags.unicodeSets = hasFlag(flags, 'v'); - config.flags.ignoreCase = hasFlag(flags, 'i'); - config.flags.dotAll = hasFlag(flags, 's'); - config.flags.multiline = hasFlag(flags, 'm'); - - config.transform.dotAllFlag = config.flags.dotAll && transform(options, 'dotAllFlag'); - config.transform.unicodeFlag = (config.flags.unicode || config.flags.unicodeSets) && transform(options, 'unicodeFlag'); - config.transform.unicodeSetsFlag = config.flags.unicodeSets && transform(options, 'unicodeSetsFlag'); - - // unicodeFlag: 'transform' implies unicodePropertyEscapes: 'transform' - config.transform.unicodePropertyEscapes = config.flags.unicode && ( - transform(options, 'unicodeFlag') || transform(options, 'unicodePropertyEscapes') - ); - config.transform.namedGroups = transform(options, 'namedGroups'); - config.transform.modifiers = transform(options, 'modifiers'); - - config.modifiersData.i = undefined; - config.modifiersData.s = undefined; - config.modifiersData.m = undefined; - - const regjsparserFeatures = { - 'unicodeSet': Boolean(options && options.unicodeSetsFlag), - 'modifiers': Boolean(options && options.modifiers), - - // Enable every stable RegExp feature by default - 'unicodePropertyEscape': true, - 'namedGroups': true, - 'lookbehind': true, - }; - - const regenerateOptions = { - 'hasUnicodeFlag': config.useUnicodeFlag, - 'bmpOnly': !config.flags.unicode - }; - - const groups = { - 'onNamedGroup': options && options.onNamedGroup, - 'lastIndex': 0, - 'names': Object.create(null), // { [name]: Array } - 'namesConflicts': Object.create(null), // { [name]: true } - 'unmatchedReferences': Object.create(null) // { [name]: true } - }; - - const tree = parse(pattern, flags, regjsparserFeatures); - - if (config.transform.modifiers) { - if (/\(\?[a-z]*-[a-z]+:/.test(pattern)) { - // the pattern _likely_ contain inline disabled modifiers - // we need to traverse to make sure that they are actually modifiers and to collect them - const allDisabledModifiers = Object.create(null) - const itemStack = [tree]; - let node; - while (node = itemStack.pop(), node != undefined) { - if (Array.isArray(node)) { - Array.prototype.push.apply(itemStack, node); - } else if (typeof node == 'object' && node != null) { - for (const key of Object.keys(node)) { - const value = node[key]; - if (key == 'modifierFlags') { - if (value.disabling.length > 0){ - value.disabling.split('').forEach((flag)=>{ - allDisabledModifiers[flag] = true - }); - } - } else if (typeof value == 'object' && value != null) { - itemStack.push(value); - } - } - } - } - for (const flag of Object.keys(allDisabledModifiers)) { - config.modifiersData[flag] = true; - } - } - } - - // Note: `processTerm` mutates `tree` and `groups`. - processTerm(tree, regenerateOptions, groups); - assertNoUnmatchedReferences(groups); - - const onNewFlags = options && options.onNewFlags; - if (onNewFlags) { - let newFlags = flags.split('').filter((flag) => !config.modifiersData[flag]).join(''); - if (config.transform.unicodeSetsFlag) { - newFlags = newFlags.replace('v', 'u'); - } - if (config.transform.unicodeFlag) { - newFlags = newFlags.replace('u', ''); - } - if (config.transform.dotAllFlag === 'transform') { - newFlags = newFlags.replace('s', ''); - } - onNewFlags(newFlags); - } - - return generate(tree); -}; + var res, from = pos; -module.exports = rewritePattern; + res = parseDecimalEscape(insideCharacterClass) || parseNamedReference(); + if (res) { + return res; + } + // For ClassEscape + if (insideCharacterClass) { + // b + if (match('b')) { + // 15.10.2.19 + // The production ClassEscape :: b evaluates by returning the + // CharSet containing the one character (Unicode value 0008). + return createEscaped('singleEscape', 0x0008, '\\b'); + } else if (match('B')) { + bail('\\B not possible inside of CharacterClass', '', from); + } else if (!isUnicodeMode && (res = matchReg(/^c([0-9])/))) { + // B.1.4 + // c ClassControlLetter, ClassControlLetter = DecimalDigit + return createEscaped('controlLetter', res[1] + 16, res[1], 2); + } else if (!isUnicodeMode && (res = matchReg(/^c_/))) { + // B.1.4 + // c ClassControlLetter, ClassControlLetter = _ + return createEscaped('controlLetter', 31, '_', 2); + } + // [+U] - + if (isUnicodeMode && match('-')) { + return createEscaped('singleEscape', 0x002d, '\\-'); + } + } -/***/ }), + res = parseCharacterClassEscape() || parseCharacterEscape(); -/***/ 23498: -/***/ (function(module, exports, __nccwpck_require__) { + return res; + } -/* module decorator */ module = __nccwpck_require__.nmd(module); -/*! - * regjsgen 0.5.2 - * Copyright 2014-2020 Benjamin Tan - * Available under the MIT license - */ -;(function() { - 'use strict'; - // Used to determine if values are of the language type `Object`. - var objectTypes = { - 'function': true, - 'object': true - }; + function parseDecimalEscape(insideCharacterClass) { + // DecimalEscape :: + // DecimalIntegerLiteral [lookahead ∉ DecimalDigit] - // Used as a reference to the global object. - var root = (objectTypes[typeof window] && window) || this; + var res, match, from = pos; - // Detect free variable `exports`. - var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports; + if (res = matchReg(/^(?!0)\d+/)) { + match = res[0]; + var refIdx = parseInt(res[0], 10); + if (refIdx <= closedCaptureCounter && !insideCharacterClass) { + // If the number is smaller than the normal-groups found so + // far, then it is a reference... + return createReference(res[0]); + } else { + // ... otherwise it needs to be interpreted as a octal (if the + // number is in an octal format). If it is NOT octal format, + // then the slash is ignored and the number is matched later + // as normal characters. - // Detect free variable `module`. - var hasFreeModule = objectTypes["object"] && module && !module.nodeType; + // Recall the negative decision to decide if the input must be parsed + // a second time with the total normal-groups. + backrefDenied.push(refIdx); - // Detect free variable `global` from Node.js or Browserified code and use it as `root`. - var freeGlobal = freeExports && hasFreeModule && typeof global == 'object' && global; - if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) { - root = freeGlobal; - } + // \1 octal escapes are disallowed in unicode mode, but they might + // be references to groups which haven't been parsed yet. + // We must parse a second time to determine if \1 is a reference + // or an octal scape, and then we can report the error. + if (firstIteration) { + shouldReparse = true; + } else { + bailOctalEscapeIfUnicode(from, pos); + } - // Used to check objects for own properties. - var hasOwnProperty = Object.prototype.hasOwnProperty; + // Reset the position again, as maybe only parts of the previous + // matched numbers are actual octal numbers. E.g. in '019' only + // the '01' should be matched. + incr(-res[0].length); + if (res = matchReg(/^[0-7]{1,3}/)) { + return createEscaped('octal', parseInt(res[0], 8), res[0], 1); + } else { + // If we end up here, we have a case like /\91/. Then the + // first slash is to be ignored and the 9 & 1 to be treated + // like ordinary characters. Create a character for the + // first number only here - other number-characters + // (if available) will be matched later. + res = createCharacter(matchReg(/^[89]/)); + return updateRawStart(res, res.range[0] - 1); + } + } + } + // Only allow octal numbers in the following. All matched numbers start + // with a zero (if the do not, the previous if-branch is executed). + // If the number is not octal format and starts with zero (e.g. `091`) + // then only the zeros `0` is treated here and the `91` are ordinary + // characters. + // Example: + // /\091/.exec('\091')[0].length === 3 + else if (res = matchReg(/^[0-7]{1,3}/)) { + match = res[0]; + if (match !== '0') { + bailOctalEscapeIfUnicode(from, pos); + } + if (/^0{1,3}$/.test(match)) { + // If they are all zeros, then only take the first one. + return createEscaped('null', 0x0000, '0', match.length); + } else { + return createEscaped('octal', parseInt(match, 8), match, 1); + } + } + return false; + } - /*--------------------------------------------------------------------------*/ + function bailOctalEscapeIfUnicode(from, pos) { + if (isUnicodeMode) { + bail("Invalid decimal escape in unicode mode", null, from, pos); + } + } - // Generates a string based on the given code point. - // Based on https://mths.be/fromcodepoint by @mathias. - function fromCodePoint() { - var codePoint = Number(arguments[0]); + function parseCharacterClassEscape() { + // CharacterClassEscape :: one of d D s S w W + var res; + if (res = matchReg(/^[dDsSwW]/)) { + return createCharacterClassEscape(res[0]); + } else if (features.unicodePropertyEscape && isUnicodeMode && (res = matchReg(/^([pP])\{([^\}]+)\}/))) { + // https://github.com/jviereck/regjsparser/issues/77 + return addRaw({ + type: 'unicodePropertyEscape', + negative: res[1] === 'P', + value: res[2], + range: [res.range[0] - 1, res.range[1]], + raw: res[0] + }); + } else if (features.unicodeSet && hasUnicodeSetFlag && match('q{')) { + return parseClassStrings(); + } + return false; + } - if ( - !isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity` - codePoint < 0 || // not a valid Unicode code point - codePoint > 0x10FFFF || // not a valid Unicode code point - Math.floor(codePoint) != codePoint // not an integer - ) { - throw RangeError('Invalid code point: ' + codePoint); + function parseNamedReference() { + if (features.namedGroups && matchReg(/^k<(?=.*?>)/)) { + var name = parseIdentifier(); + skip('>'); + return createNamedReference(name); + } } - if (codePoint <= 0xFFFF) { - // BMP code point - return String.fromCharCode(codePoint); - } else { - // Astral code point; split in surrogate halves - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - codePoint -= 0x10000; - var highSurrogate = (codePoint >> 10) + 0xD800; - var lowSurrogate = (codePoint % 0x400) + 0xDC00; - return String.fromCharCode(highSurrogate, lowSurrogate); + function parseRegExpUnicodeEscapeSequence() { + var res; + if (res = matchReg(/^u([0-9a-fA-F]{4})/)) { + // UnicodeEscapeSequence + return parseUnicodeSurrogatePairEscape( + createEscaped('unicodeEscape', parseInt(res[1], 16), res[1], 2) + ); + } else if (isUnicodeMode && (res = matchReg(/^u\{([0-9a-fA-F]+)\}/))) { + // RegExpUnicodeEscapeSequence (ES6 Unicode code point escape) + return createEscaped('unicodeCodePointEscape', parseInt(res[1], 16), res[1], 4); + } } - } - /*--------------------------------------------------------------------------*/ + function parseCharacterEscape() { + // CharacterEscape :: + // ControlEscape + // c ControlLetter + // HexEscapeSequence + // UnicodeEscapeSequence + // IdentityEscape - // Ensures that nodes have the correct types. - var assertTypeRegexMap = {}; - function assertType(type, expected) { - if (expected.indexOf('|') == -1) { - if (type == expected) { - return; + var res; + var from = pos; + if (res = matchReg(/^[fnrtv]/)) { + // ControlEscape + var codePoint = 0; + switch (res[0]) { + case 't': codePoint = 0x009; break; + case 'n': codePoint = 0x00A; break; + case 'v': codePoint = 0x00B; break; + case 'f': codePoint = 0x00C; break; + case 'r': codePoint = 0x00D; break; + } + return createEscaped('singleEscape', codePoint, '\\' + res[0]); + } else if (res = matchReg(/^c([a-zA-Z])/)) { + // c ControlLetter + return createEscaped('controlLetter', res[1].charCodeAt(0) % 32, res[1], 2); + } else if (res = matchReg(/^x([0-9a-fA-F]{2})/)) { + // HexEscapeSequence + return createEscaped('hexadecimalEscape', parseInt(res[1], 16), res[1], 2); + } else if (res = parseRegExpUnicodeEscapeSequence()) { + if (!res || res.codePoint > 0x10FFFF) { + bail('Invalid escape sequence', null, from, pos); + } + return res; + } else { + // IdentityEscape + return parseIdentityEscape(); } + } - throw Error('Invalid node type: ' + type + '; expected type: ' + expected); + function parseIdentifierAtom(check) { + var ch = lookahead(); + var from = pos; + if (ch === '\\') { + incr(); + var esc = parseRegExpUnicodeEscapeSequence(); + if (!esc || !check(esc.codePoint)) { + bail('Invalid escape sequence', null, from, pos); + } + return fromCodePoint(esc.codePoint); + } + var code = ch.charCodeAt(0); + if (code >= 0xD800 && code <= 0xDBFF) { + ch += str[pos + 1]; + var second = ch.charCodeAt(1); + if (second >= 0xDC00 && second <= 0xDFFF) { + // Unicode surrogate pair + code = (code - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; + } + } + if (!check(code)) return; + incr(); + if (code > 0xFFFF) incr(); + return ch; } - expected = hasOwnProperty.call(assertTypeRegexMap, expected) - ? assertTypeRegexMap[expected] - : (assertTypeRegexMap[expected] = RegExp('^(?:' + expected + ')$')); + function parseIdentifier() { + // RegExpIdentifierName :: + // RegExpIdentifierStart + // RegExpIdentifierName RegExpIdentifierContinue + // + // RegExpIdentifierStart :: + // UnicodeIDStart + // $ + // _ + // \ RegExpUnicodeEscapeSequence + // + // RegExpIdentifierContinue :: + // UnicodeIDContinue + // $ + // _ + // \ RegExpUnicodeEscapeSequence + // + // - if (expected.test(type)) { - return; - } + var start = pos; + var res = parseIdentifierAtom(isIdentifierStart); + if (!res) { + bail('Invalid identifier'); + } - throw Error('Invalid node type: ' + type + '; expected types: ' + expected); - } + var ch; + while (ch = parseIdentifierAtom(isIdentifierPart)) { + res += ch; + } - /*--------------------------------------------------------------------------*/ + return addRaw({ + type: 'identifier', + value: res, + range: [start, pos] + }); + } - // Generates a regular expression string based on an AST. - function generate(node) { - var type = node.type; + function isIdentifierStart(ch) { + // Generated by `tools/generate-identifier-regex.js`. + var NonAsciiIdentifierStart = /[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/; - if (hasOwnProperty.call(generators, type)) { - return generators[type](node); + return (ch === 36) || (ch === 95) || // $ (dollar) and _ (underscore) + (ch >= 65 && ch <= 90) || // A..Z + (ch >= 97 && ch <= 122) || // a..z + ((ch >= 0x80) && NonAsciiIdentifierStart.test(fromCodePoint(ch))); } - throw Error('Invalid node type: ' + type); - } + // Taken from the Esprima parser. + function isIdentifierPart(ch) { + // Generated by `tools/generate-identifier-regex.js`. + // eslint-disable-next-line no-misleading-character-class + var NonAsciiIdentifierPartOnly = /[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/; - // Constructs a string by concatentating the output of each term. - function generateSequence(generator, terms, /* optional */ separator) { - var i = -1, - length = terms.length, - result = '', - term; + return isIdentifierStart(ch) || + (ch >= 48 && ch <= 57) || // 0..9 + ((ch >= 0x80) && NonAsciiIdentifierPartOnly.test(fromCodePoint(ch))); + } - while (++i < length) { - term = terms[i]; + function parseIdentityEscape() { + // IdentityEscape :: + // [+U] SyntaxCharacter + // [+U] / + // [~U] SourceCharacterIdentityEscape[?N] + // SourceCharacterIdentityEscape[?N] :: + // [~N] SourceCharacter but not c + // [+N] SourceCharacter but not one of c or k - if (separator && i > 0) result += separator; - // Ensure that `\0` null escapes followed by number symbols are not - // treated as backreferences. + var tmp; + var l = lookahead(); if ( - i + 1 < length && - terms[i].type == 'value' && - terms[i].kind == 'null' && - terms[i + 1].type == 'value' && - terms[i + 1].kind == 'symbol' && - terms[i + 1].codePoint >= 48 && - terms[i + 1].codePoint <= 57 + (isUnicodeMode && /[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(l)) || + (!isUnicodeMode && l !== "c") ) { - result += '\\000'; - continue; + if (l === "k" && features.lookbehind) { + return null; + } + tmp = incr(); + return createEscaped('identifier', tmp.charCodeAt(0), tmp, 1); } - result += generator(term); + return null; } - return result; - } - - /*--------------------------------------------------------------------------*/ + function parseCharacterClass() { + // CharacterClass :: + // [ [lookahead ∉ {^}] ClassRanges ] + // [ ^ ClassRanges ] - function generateAlternative(node) { - assertType(node.type, 'alternative'); + var res, from = pos; + if (res = matchReg(/^\[\^/)) { + res = parseClassRanges(); + skip(']'); + return createCharacterClass(res, true, from, pos); + } else if (match('[')) { + res = parseClassRanges(); + skip(']'); + return createCharacterClass(res, false, from, pos); + } - return generateSequence(generateTerm, node.body); - } + return null; + } - function generateAnchor(node) { - assertType(node.type, 'anchor'); + function parseClassRanges() { + // ClassRanges :: + // [empty] + // [~V] NonemptyClassRanges + // [+V] ClassContents - switch (node.kind) { - case 'start': - return '^'; - case 'end': - return '$'; - case 'boundary': - return '\\b'; - case 'not-boundary': - return '\\B'; - default: - throw Error('Invalid assertion'); + var res; + if (current(']')) { + // Empty array means nothing inside of the ClassRange. + return { kind: 'union', body: [] }; + } else if (hasUnicodeSetFlag) { + return parseClassContents(); + } else { + res = parseNonemptyClassRanges(); + if (!res) { + bail('nonEmptyClassRanges'); + } + return { kind: 'union', body: res }; + } } - } - var atomType = 'anchor|characterClass|characterClassEscape|dot|group|reference|unicodePropertyEscape|value'; + function parseHelperClassRanges(atom) { + var from, to, res, atomTo, dash; + if (current('-') && !next(']')) { + // ClassAtom - ClassAtom ClassRanges + from = atom.range[0]; + dash = createCharacter(match('-')); - function generateAtom(node) { - assertType(node.type, atomType); + atomTo = parseClassAtom(); + if (!atomTo) { + bail('classAtom'); + } + to = pos; - return generate(node); - } + // Parse the next class range if exists. + var classRanges = parseClassRanges(); + if (!classRanges) { + bail('classRanges'); + } - function generateCharacterClass(node) { - assertType(node.type, 'characterClass'); + // Check if both the from and atomTo have codePoints. + if (!('codePoint' in atom) || !('codePoint' in atomTo)) { + if (!isUnicodeMode) { + // If not, don't create a range but treat them as + // `atom` `-` `atom` instead. + // + // SEE: https://tc39.es/ecma262/#sec-regular-expression-patterns-semantics + // NonemptyClassRanges::ClassAtom-ClassAtomClassRanges + // CharacterRangeOrUnion + res = [atom, dash, atomTo]; + } else { + // With unicode flag, both sides must have codePoints if + // one side has a codePoint. + // + // SEE: https://tc39.es/ecma262/#sec-patterns-static-semantics-early-errors + // NonemptyClassRanges :: ClassAtom - ClassAtom ClassRanges + bail('invalid character class'); + } + } else { + res = [createClassRange(atom, atomTo, from, to)]; + } - var kind = node.kind; - var separator = kind === 'intersection' ? '&&' : kind === 'subtraction' ? '--' : ''; + if (classRanges.type === 'empty') { + return res; + } + return res.concat(classRanges.body); + } - return '[' + - (node.negative ? '^' : '') + - generateSequence(generateClassAtom, node.body, separator) + - ']'; - } + res = parseNonemptyClassRangesNoDash(); + if (!res) { + bail('nonEmptyClassRangesNoDash'); + } - function generateCharacterClassEscape(node) { - assertType(node.type, 'characterClassEscape'); + return [atom].concat(res); + } - return '\\' + node.value; - } + function parseNonemptyClassRanges() { + // NonemptyClassRanges :: + // ClassAtom + // ClassAtom NonemptyClassRangesNoDash + // ClassAtom - ClassAtom ClassRanges - function generateCharacterClassRange(node) { - assertType(node.type, 'characterClassRange'); + var atom = parseClassAtom(); + if (!atom) { + bail('classAtom'); + } - var min = node.min, - max = node.max; + if (current(']')) { + // ClassAtom + return [atom]; + } - if (min.type == 'characterClassRange' || max.type == 'characterClassRange') { - throw Error('Invalid character class range'); + // ClassAtom NonemptyClassRangesNoDash + // ClassAtom - ClassAtom ClassRanges + return parseHelperClassRanges(atom); } - return generateClassAtom(min) + '-' + generateClassAtom(max); - } + function parseNonemptyClassRangesNoDash() { + // NonemptyClassRangesNoDash :: + // ClassAtom + // ClassAtomNoDash NonemptyClassRangesNoDash + // ClassAtomNoDash - ClassAtom ClassRanges - function generateClassAtom(node) { - assertType(node.type, 'anchor|characterClass|characterClassEscape|characterClassRange|dot|value|unicodePropertyEscape|classStrings'); + var res = parseClassAtom(); + if (!res) { + bail('classAtom'); + } + if (current(']')) { + // ClassAtom + return res; + } - return generate(node); - } + // ClassAtomNoDash NonemptyClassRangesNoDash + // ClassAtomNoDash - ClassAtom ClassRanges + return parseHelperClassRanges(res); + } - function generateClassStrings(node) { - assertType(node.type, 'classStrings'); + function parseClassAtom() { + // ClassAtom :: + // - + // ClassAtomNoDash + if (match('-')) { + return createCharacter('-'); + } else { + return parseClassAtomNoDash(); + } + } - return '\\q{' + generateSequence(generateClassString, node.strings, '|') + '}'; - } + function parseClassAtomNoDash() { + // ClassAtomNoDash :: + // SourceCharacter but not one of \ or ] or - + // \ ClassEscape - function generateClassString(node) { - assertType(node.type, 'classString'); + var res; + if (res = matchReg(/^[^\\\]-]/)) { + return createCharacter(res[0]); + } else if (match('\\')) { + res = parseClassEscape(); + if (!res) { + bail('classEscape'); + } - return generateSequence(generate, node.characters); - } + return parseUnicodeSurrogatePairEscape(res); + } + } - function generateDisjunction(node) { - assertType(node.type, 'disjunction'); + function parseClassContents() { + // ClassContents :: + // ClassUnion + // ClassIntersection + // ClassSubtraction + // + // ClassUnion :: + // ClassRange ClassUnion? + // ClassOperand ClassUnion? + // + // ClassIntersection :: + // ClassOperand && [lookahead ≠ &] ClassOperand + // ClassIntersection && [lookahead ≠ &] ClassOperand + // + // ClassSubtraction :: + // ClassOperand -- ClassOperand + // ClassSubtraction -- ClassOperand - return generateSequence(generate, node.body, '|'); - } + var body = []; + var kind; + var operand = parseClassOperand(/* allowRanges*/ true); + body.push(operand); - function generateDot(node) { - assertType(node.type, 'dot'); + if (operand.type === 'classRange') { + kind = 'union'; + } else if (current('&')) { + kind = 'intersection'; + } else if (current('-')) { + kind = 'subtraction'; + } else { + kind = 'union'; + } - return '.'; - } + while (!current(']')) { + if (kind === 'intersection') { + skip('&'); + skip('&'); + if (current('&')) { + bail('&& cannot be followed by &. Wrap it in brackets: &&[&].'); + } + } else if (kind === 'subtraction') { + skip('-'); + skip('-'); + } - function generateGroup(node) { - assertType(node.type, 'group'); + operand = parseClassOperand(/* allowRanges*/ kind === 'union'); + body.push(operand); + } - var result = ''; + return { kind: kind, body: body }; + } - switch (node.behavior) { - case 'normal': - if (node.name) { - result += '?<' + generateIdentifier(node.name) + '>'; + function parseClassOperand(allowRanges) { + // ClassOperand :: + // ClassCharacter + // ClassStrings + // NestedClass + // + // NestedClass :: + // [ [lookahead ≠ ^] ClassRanges[+U,+V] ] + // [ ^ ClassRanges[+U,+V] ] + // \ CharacterClassEscape[+U, +V] + // + // ClassRange :: + // ClassCharacter - ClassCharacter + // + // ClassCharacter :: + // [lookahead ∉ ClassReservedDouble] SourceCharacter but not ClassSyntaxCharacter + // \ CharacterEscape[+U] + // \ ClassHalfOfDouble + // \ b + // + // ClassSyntaxCharacter :: + // one of ( ) [ ] { } / - \ | + + var from = pos; + var start, res; + + if (match('\\')) { + // ClassOperand :: + // ... + // ClassStrings + // NestedClass + // + // NestedClass :: + // ... + // \ CharacterClassEscape[+U, +V] + if (res = parseClassEscape()) { + start = res; + } else if (res = parseClassCharacterEscapedHelper()) { + return res; + } else { + bail('Invalid escape', '\\' + lookahead(), from); } - break; - case 'ignore': - result += '?:'; - break; - case 'lookahead': - result += '?='; - break; - case 'negativeLookahead': - result += '?!'; - break; - case 'lookbehind': - result += '?<='; - break; - case 'negativeLookbehind': - result += '?@_`~]/)) { + return createEscaped('identifier', res[0].codePointAt(0), res[0]); + } else if (res = parseCharacterEscape()) { + return res; } else { - quantifier = '{' + min + ',}'; + return null; } - } else if (min == max) { - quantifier = '{' + min + '}'; - } else if (min == 0 && max == 1) { - quantifier = '?'; - } else { - quantifier = '{' + min + ',' + max + '}'; } - if (!node.greedy) { - quantifier += '?'; - } + function parseClassStrings() { + // ClassStrings :: + // \q{ ClassString MoreClassStrings? } - return generateAtom(node.body[0]) + quantifier; - } + // When calling this function, \q{ has already been consumed. + var from = pos - 3; - function generateReference(node) { - assertType(node.type, 'reference'); + var res = []; + do { + res.push(parseClassString()); + } while (match('|')); - if (node.matchIndex) { - return '\\' + node.matchIndex; - } - if (node.name) { - return '\\k<' + generateIdentifier(node.name) + '>'; + skip('}'); + + return createClassStrings(res, from, pos); } - throw new Error('Unknown reference type'); - } + function parseClassString() { + // ClassString :: + // [empty] + // NonEmptyClassString + // + // NonEmptyClassString :: + // ClassCharacter NonEmptyClassString? - function generateTerm(node) { - assertType(node.type, atomType + '|empty|quantifier'); + var res = [], from = pos; + var char; - return generate(node); - } + while (char = parseClassCharacter()) { + res.push(char); + } - function generateUnicodePropertyEscape(node) { - assertType(node.type, 'unicodePropertyEscape'); + return createClassString(res, from, pos); + } - return '\\' + (node.negative ? 'P' : 'p') + '{' + node.value + '}'; - } + function bail(message, details, from, to) { + from = from == null ? pos : from; + to = to == null ? from : to; - function generateValue(node) { - assertType(node.type, 'value'); + var contextStart = Math.max(0, from - 10); + var contextEnd = Math.min(to + 10, str.length); - var kind = node.kind, - codePoint = node.codePoint; + // Output a bit of context and a line pointing to where our error is. + // + // We are assuming that there are no actual newlines in the content as this is a regular expression. + var context = ' ' + str.substring(contextStart, contextEnd); + var pointer = ' ' + new Array(from - contextStart + 1).join(' ') + '^'; - if (typeof codePoint != 'number') { - throw new Error('Invalid code point: ' + codePoint); + throw SyntaxError(message + ' at position ' + from + (details ? ': ' + details : '') + '\n' + context + '\n' + pointer); } - switch (kind) { - case 'controlLetter': - return '\\c' + fromCodePoint(codePoint + 64); - case 'hexadecimalEscape': - return '\\x' + ('00' + codePoint.toString(16).toUpperCase()).slice(-2); - case 'identifier': - return '\\' + fromCodePoint(codePoint); - case 'null': - return '\\' + codePoint; - case 'octal': - return '\\' + ('000' + codePoint.toString(8)).slice(-3); - case 'singleEscape': - switch (codePoint) { - case 0x0008: - return '\\b'; - case 0x0009: - return '\\t'; - case 0x000A: - return '\\n'; - case 0x000B: - return '\\v'; - case 0x000C: - return '\\f'; - case 0x000D: - return '\\r'; - case 0x002D: - return '\\-'; - default: - throw Error('Invalid code point: ' + codePoint); - } - case 'symbol': - return fromCodePoint(codePoint); - case 'unicodeEscape': - return '\\u' + ('0000' + codePoint.toString(16).toUpperCase()).slice(-4); - case 'unicodeCodePointEscape': - return '\\u{' + codePoint.toString(16).toUpperCase() + '}'; - default: - throw Error('Unsupported node kind: ' + kind); + var backrefDenied = []; + var closedCaptureCounter = 0; + var firstIteration = true; + var shouldReparse = false; + var hasUnicodeFlag = (flags || "").indexOf("u") !== -1; + var hasUnicodeSetFlag = (flags || "").indexOf("v") !== -1; + var isUnicodeMode = hasUnicodeFlag || hasUnicodeSetFlag; + var pos = 0; + + if (hasUnicodeSetFlag && !features.unicodeSet) { + throw new Error('The "v" flag is only supported when the .unicodeSet option is enabled.'); } - } - /*--------------------------------------------------------------------------*/ + if (hasUnicodeFlag && hasUnicodeSetFlag) { + throw new Error('The "u" and "v" flags are mutually exclusive.'); + } - // Used to generate strings for each node type. - var generators = { - 'alternative': generateAlternative, - 'anchor': generateAnchor, - 'characterClass': generateCharacterClass, - 'characterClassEscape': generateCharacterClassEscape, - 'characterClassRange': generateCharacterClassRange, - 'classStrings': generateClassStrings, - 'disjunction': generateDisjunction, - 'dot': generateDot, - 'group': generateGroup, - 'quantifier': generateQuantifier, - 'reference': generateReference, - 'unicodePropertyEscape': generateUnicodePropertyEscape, - 'value': generateValue - }; + // Convert the input to a string and treat the empty string special. + str = String(str); + if (str === '') { + str = '(?:)'; + } - /*--------------------------------------------------------------------------*/ + var result = parseDisjunction(); - // Export regjsgen. - var regjsgen = { - 'generate': generate - }; + if (result.range[1] !== str.length) { + bail('Could not parse entire input - got stuck', '', result.range[1]); + } - // Some AMD build optimizers, like r.js, check for condition patterns like the following: - if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { - // Define as an anonymous module so it can be aliased through path mapping. - define(function() { - return regjsgen; + // The spec requires to interpret the `\2` in `/\2()()/` as backreference. + // As the parser collects the number of capture groups as the string is + // parsed it is impossible to make these decisions at the point when the + // `\2` is handled. In case the local decision turns out to be wrong after + // the parsing has finished, the input string is parsed a second time with + // the total number of capture groups set. + // + // SEE: https://github.com/jviereck/regjsparser/issues/70 + shouldReparse = shouldReparse || backrefDenied.some(function (ref) { + return ref <= closedCaptureCounter; }); + if (shouldReparse) { + // Parse the input a second time. + pos = 0; + firstIteration = false; + return parseDisjunction(); + } - root.regjsgen = regjsgen; - } - // Check for `exports` after `define` in case a build optimizer adds an `exports` object. - else if (freeExports && hasFreeModule) { - // Export for CommonJS support. - freeExports.generate = generate; + return result; } - else { - // Export to the global object. - root.regjsgen = regjsgen; + + var regjsparser = { + parse: parse + }; + + if ( true && module.exports) { + module.exports = regjsparser; + } else { + window.regjsparser = regjsparser; } -}.call(this)); + +}()); /***/ }), -/***/ 68456: -/***/ (function(module) { +/***/ 97001: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -"use strict"; -// regjsparser -// -// ================================================================== -// -// See ECMA-262 Standard: 15.10.1 -// -// NOTE: The ECMA-262 standard uses the term "Assertion" for /^/. Here the -// term "Anchor" is used. -// -// Pattern :: -// Disjunction -// -// Disjunction :: -// Alternative -// Alternative | Disjunction -// -// Alternative :: -// [empty] -// Alternative Term -// -// Term :: -// Anchor -// Atom -// Atom Quantifier -// -// Anchor :: -// ^ -// $ -// \ b -// \ B -// ( ? = Disjunction ) -// ( ? ! Disjunction ) -// ( ? < = Disjunction ) -// ( ? < ! Disjunction ) -// -// Quantifier :: -// QuantifierPrefix -// QuantifierPrefix ? -// -// QuantifierPrefix :: -// * -// + -// ? -// { DecimalDigits } -// { DecimalDigits , } -// { DecimalDigits , DecimalDigits } -// -// Atom :: -// PatternCharacter -// . -// \ AtomEscape -// CharacterClass -// ( GroupSpecifier Disjunction ) -// ( ? : Disjunction ) -// -// PatternCharacter :: -// SourceCharacter but not any of: ^ $ \ . * + ? ( ) [ ] { } | -// -// AtomEscape :: -// DecimalEscape -// CharacterClassEscape -// CharacterEscape -// k GroupName -// -// CharacterEscape[U] :: -// ControlEscape -// c ControlLetter -// HexEscapeSequence -// RegExpUnicodeEscapeSequence[?U] (ES6) -// IdentityEscape[?U] -// -// ControlEscape :: -// one of f n r t v -// ControlLetter :: -// one of -// a b c d e f g h i j k l m n o p q r s t u v w x y z -// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z -// -// IdentityEscape :: -// SourceCharacter but not c -// -// DecimalEscape :: -// DecimalIntegerLiteral [lookahead ∉ DecimalDigit] -// -// CharacterClassEscape :: -// one of d D s S w W -// -// CharacterClass :: -// [ [lookahead ∉ {^}] ClassRanges ] -// [ ^ ClassRanges ] -// -// ClassRanges :: -// [empty] -// [~V] NonemptyClassRanges -// [+V] ClassContents -// -// NonemptyClassRanges :: -// ClassAtom -// ClassAtom NonemptyClassRangesNoDash -// ClassAtom - ClassAtom ClassRanges -// -// NonemptyClassRangesNoDash :: -// ClassAtom -// ClassAtomNoDash NonemptyClassRangesNoDash -// ClassAtomNoDash - ClassAtom ClassRanges -// -// ClassAtom :: -// - -// ClassAtomNoDash -// -// ClassAtomNoDash :: -// SourceCharacter but not one of \ or ] or - -// \ ClassEscape -// -// ClassEscape :: -// DecimalEscape -// b -// CharacterEscape -// CharacterClassEscape -// -// GroupSpecifier :: -// [empty] -// ? GroupName -// -// GroupName :: -// < RegExpIdentifierName > -// -// RegExpIdentifierName :: -// RegExpIdentifierStart -// RegExpIdentifierName RegExpIdentifierContinue -// -// RegExpIdentifierStart :: -// UnicodeIDStart -// $ -// _ -// \ RegExpUnicodeEscapeSequence -// -// RegExpIdentifierContinue :: -// UnicodeIDContinue -// $ -// _ -// \ RegExpUnicodeEscapeSequence -// -// -// -// -------------------------------------------------------------- -// NOTE: The following productions refer to the "set notation and -// properties of strings" proposal. -// https://github.com/tc39/proposal-regexp-set-notation -// -------------------------------------------------------------- -// -// ClassContents :: -// ClassUnion -// ClassIntersection -// ClassSubtraction -// -// ClassUnion :: -// ClassRange ClassUnion? -// ClassOperand ClassUnion? -// -// ClassIntersection :: -// ClassOperand && [lookahead ≠ &] ClassOperand -// ClassIntersection && [lookahead ≠ &] ClassOperand -// -// ClassSubtraction :: -// ClassOperand -- ClassOperand -// ClassSubtraction -- ClassOperand -// -// ClassOperand :: -// ClassCharacter -// ClassStrings -// NestedClass -// -// NestedClass :: -// [ [lookahead ≠ ^] ClassRanges[+U,+V] ] -// [ ^ ClassRanges[+U,+V] ] -// \ CharacterClassEscape[+U, +V] -// -// ClassRange :: -// ClassCharacter - ClassCharacter -// -// ClassCharacter :: -// [lookahead ∉ ClassReservedDouble] SourceCharacter but not ClassSyntaxCharacter -// \ CharacterEscape[+U] -// \ ClassHalfOfDouble -// \ b -// -// ClassSyntaxCharacter :: -// one of ( ) [ ] { } / - \ | -// -// ClassStrings :: -// ( ClassString MoreClassStrings? ) -// -// MoreClassStrings :: -// | ClassString MoreClassStrings? -// -// ClassString :: -// [empty] -// NonEmptyClassString -// -// NonEmptyClassString :: -// ClassCharacter NonEmptyClassString? -// -// ClassReservedDouble :: -// one of && !! ## $$ %% ** ++ ,, .. :: ;; << == >> ?? @@ ^^ __ `` ~~ -// -// ClassHalfOfDouble :: -// one of & - ! # % , : ; < = > @ _ ` ~ -// -// -------------------------------------------------------------- -// NOTE: The following productions refer to the -// "Regular Expression Pattern Modifiers for ECMAScript" proposal. -// https://github.com/tc39/proposal-regexp-modifiers -// -------------------------------------------------------------- -// -// Atom :: -// ( ? RegularExpressionFlags : Disjunction ) -// ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction ) -// +var async = __nccwpck_require__(86992); +async.core = __nccwpck_require__(81322); +async.isCore = __nccwpck_require__(64229); +async.sync = __nccwpck_require__(18888); +module.exports = async; -(function() { - var fromCodePoint = String.fromCodePoint || (function() { - // Implementation taken from - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint +/***/ }), - var stringFromCharCode = String.fromCharCode; - var floor = Math.floor; +/***/ 86992: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - return function fromCodePoint() { - var MAX_SIZE = 0x4000; - var codeUnits = []; - var highSurrogate; - var lowSurrogate; - var index = -1; - var length = arguments.length; - if (!length) { - return ''; - } - var result = ''; - while (++index < length) { - var codePoint = Number(arguments[index]); - if ( - !isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity` - codePoint < 0 || // not a valid Unicode code point - codePoint > 0x10FFFF || // not a valid Unicode code point - floor(codePoint) != codePoint // not an integer - ) { - throw RangeError('Invalid code point: ' + codePoint); - } - if (codePoint <= 0xFFFF) { // BMP code point - codeUnits.push(codePoint); - } else { // Astral code point; split in surrogate halves - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - codePoint -= 0x10000; - highSurrogate = (codePoint >> 10) + 0xD800; - lowSurrogate = (codePoint % 0x400) + 0xDC00; - codeUnits.push(highSurrogate, lowSurrogate); +var fs = __nccwpck_require__(57147); +var getHomedir = __nccwpck_require__(83500); +var path = __nccwpck_require__(71017); +var caller = __nccwpck_require__(78978); +var nodeModulesPaths = __nccwpck_require__(56010); +var normalizeOptions = __nccwpck_require__(72336); +var isCore = __nccwpck_require__(40431); + +var realpathFS = fs.realpath && typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath; + +var homedir = getHomedir(); +var defaultPaths = function () { + return [ + path.join(homedir, '.node_modules'), + path.join(homedir, '.node_libraries') + ]; +}; + +var defaultIsFile = function isFile(file, cb) { + fs.stat(file, function (err, stat) { + if (!err) { + return cb(null, stat.isFile() || stat.isFIFO()); } - if (index + 1 == length || codeUnits.length > MAX_SIZE) { - result += stringFromCharCode.apply(null, codeUnits); - codeUnits.length = 0; + if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false); + return cb(err); + }); +}; + +var defaultIsDir = function isDirectory(dir, cb) { + fs.stat(dir, function (err, stat) { + if (!err) { + return cb(null, stat.isDirectory()); } - } - return result; - }; - }()); + if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false); + return cb(err); + }); +}; - function parse(str, flags, features) { - if (!features) { - features = {}; - } - function addRaw(node) { - node.raw = str.substring(node.range[0], node.range[1]); - return node; - } +var defaultRealpath = function realpath(x, cb) { + realpathFS(x, function (realpathErr, realPath) { + if (realpathErr && realpathErr.code !== 'ENOENT') cb(realpathErr); + else cb(null, realpathErr ? x : realPath); + }); +}; - function updateRawStart(node, start) { - node.range[0] = start; - return addRaw(node); +var maybeRealpath = function maybeRealpath(realpath, x, opts, cb) { + if (opts && opts.preserveSymlinks === false) { + realpath(x, cb); + } else { + cb(null, x); } +}; - function createAnchor(kind, rawLength) { - return addRaw({ - type: 'anchor', - kind: kind, - range: [ - pos - rawLength, - pos - ] - }); - } +var defaultReadPackage = function defaultReadPackage(readFile, pkgfile, cb) { + readFile(pkgfile, function (readFileErr, body) { + if (readFileErr) cb(readFileErr); + else { + try { + var pkg = JSON.parse(body); + cb(null, pkg); + } catch (jsonErr) { + cb(null); + } + } + }); +}; - function createValue(kind, codePoint, from, to) { - return addRaw({ - type: 'value', - kind: kind, - codePoint: codePoint, - range: [from, to] - }); +var getPackageCandidates = function getPackageCandidates(x, start, opts) { + var dirs = nodeModulesPaths(start, opts, x); + for (var i = 0; i < dirs.length; i++) { + dirs[i] = path.join(dirs[i], x); } + return dirs; +}; - function createEscaped(kind, codePoint, value, fromOffset) { - fromOffset = fromOffset || 0; - return createValue(kind, codePoint, pos - (value.length + fromOffset), pos); +module.exports = function resolve(x, options, callback) { + var cb = callback; + var opts = options; + if (typeof options === 'function') { + cb = opts; + opts = {}; } - - function createCharacter(matches) { - var _char = matches[0]; - var first = _char.charCodeAt(0); - if (isUnicodeMode) { - var second; - if (_char.length === 1 && first >= 0xD800 && first <= 0xDBFF) { - second = lookahead().charCodeAt(0); - if (second >= 0xDC00 && second <= 0xDFFF) { - // Unicode surrogate pair - pos++; - return createValue( - 'symbol', - (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000, - pos - 2, pos); - } - } - } - return createValue('symbol', first, pos - 1, pos); + if (typeof x !== 'string') { + var err = new TypeError('Path must be a string.'); + return process.nextTick(function () { + cb(err); + }); } - function createDisjunction(alternatives, from, to) { - return addRaw({ - type: 'disjunction', - body: alternatives, - range: [ - from, - to - ] - }); - } + opts = normalizeOptions(x, opts); - function createDot() { - return addRaw({ - type: 'dot', - range: [ - pos - 1, - pos - ] - }); + var isFile = opts.isFile || defaultIsFile; + var isDirectory = opts.isDirectory || defaultIsDir; + var readFile = opts.readFile || fs.readFile; + var realpath = opts.realpath || defaultRealpath; + var readPackage = opts.readPackage || defaultReadPackage; + if (opts.readFile && opts.readPackage) { + var conflictErr = new TypeError('`readFile` and `readPackage` are mutually exclusive.'); + return process.nextTick(function () { + cb(conflictErr); + }); } + var packageIterator = opts.packageIterator; - function createCharacterClassEscape(value) { - return addRaw({ - type: 'characterClassEscape', - value: value, - range: [ - pos - 2, - pos - ] - }); - } + var extensions = opts.extensions || ['.js']; + var includeCoreModules = opts.includeCoreModules !== false; + var basedir = opts.basedir || path.dirname(caller()); + var parent = opts.filename || basedir; - function createReference(matchIndex) { - return addRaw({ - type: 'reference', - matchIndex: parseInt(matchIndex, 10), - range: [ - pos - 1 - matchIndex.length, - pos - ] - }); - } + opts.paths = opts.paths || defaultPaths(); - function createNamedReference(name) { - return addRaw({ - type: 'reference', - name: name, - range: [ - name.range[0] - 3, - pos - ] - }); - } + // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory + var absoluteStart = path.resolve(basedir); - function createGroup(behavior, disjunction, from, to) { - return addRaw({ - type: 'group', - behavior: behavior, - body: disjunction, - range: [ - from, - to - ] - }); - } - - function createQuantifier(min, max, from, to, symbol) { - if (to == null) { - from = pos - 1; - to = pos; - } + maybeRealpath( + realpath, + absoluteStart, + opts, + function (err, realStart) { + if (err) cb(err); + else init(realStart); + } + ); - return addRaw({ - type: 'quantifier', - min: min, - max: max, - greedy: true, - body: null, // set later on - symbol: symbol, - range: [ - from, - to - ] - }); + var res; + function init(basedir) { + if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) { + res = path.resolve(basedir, x); + if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/'; + if ((/\/$/).test(x) && res === basedir) { + loadAsDirectory(res, opts.package, onfile); + } else loadAsFile(res, opts.package, onfile); + } else if (includeCoreModules && isCore(x)) { + return cb(null, x); + } else loadNodeModules(x, basedir, function (err, n, pkg) { + if (err) cb(err); + else if (n) { + return maybeRealpath(realpath, n, opts, function (err, realN) { + if (err) { + cb(err); + } else { + cb(null, realN, pkg); + } + }); + } else { + var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); + moduleError.code = 'MODULE_NOT_FOUND'; + cb(moduleError); + } + }); } - function createAlternative(terms, from, to) { - return addRaw({ - type: 'alternative', - body: terms, - range: [ - from, - to - ] - }); + function onfile(err, m, pkg) { + if (err) cb(err); + else if (m) cb(null, m, pkg); + else loadAsDirectory(res, function (err, d, pkg) { + if (err) cb(err); + else if (d) { + maybeRealpath(realpath, d, opts, function (err, realD) { + if (err) { + cb(err); + } else { + cb(null, realD, pkg); + } + }); + } else { + var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); + moduleError.code = 'MODULE_NOT_FOUND'; + cb(moduleError); + } + }); } - function createCharacterClass(contents, negative, from, to) { - return addRaw({ - type: 'characterClass', - kind: contents.kind, - body: contents.body, - negative: negative, - range: [ - from, - to - ] - }); - } + function loadAsFile(x, thePackage, callback) { + var loadAsFilePackage = thePackage; + var cb = callback; + if (typeof loadAsFilePackage === 'function') { + cb = loadAsFilePackage; + loadAsFilePackage = undefined; + } - function createClassRange(min, max, from, to) { - // See 15.10.2.15: - if (min.codePoint > max.codePoint) { - bail('invalid range in character class', min.raw + '-' + max.raw, from, to); - } + var exts = [''].concat(extensions); + load(exts, x, loadAsFilePackage); - return addRaw({ - type: 'characterClassRange', - min: min, - max: max, - range: [ - from, - to - ] - }); - } + function load(exts, x, loadPackage) { + if (exts.length === 0) return cb(null, undefined, loadPackage); + var file = x + exts[0]; - function createClassStrings(strings, from, to) { - return addRaw({ - type: 'classStrings', - strings: strings, - range: [from, to] - }); - } + var pkg = loadPackage; + if (pkg) onpkg(null, pkg); + else loadpkg(path.dirname(file), onpkg); - function createClassString(characters, from, to) { - return addRaw({ - type: 'classString', - characters: characters, - range: [from, to] - }); + function onpkg(err, pkg_, dir) { + pkg = pkg_; + if (err) return cb(err); + if (dir && pkg && opts.pathFilter) { + var rfile = path.relative(dir, file); + var rel = rfile.slice(0, rfile.length - exts[0].length); + var r = opts.pathFilter(pkg, x, rel); + if (r) return load( + [''].concat(extensions.slice()), + path.resolve(dir, r), + pkg + ); + } + isFile(file, onex); + } + function onex(err, ex) { + if (err) return cb(err); + if (ex) return cb(null, file, pkg); + load(exts.slice(1), x, pkg); + } + } } - function flattenBody(body) { - if (body.type === 'alternative') { - return body.body; - } else { - return [body]; - } - } + function loadpkg(dir, cb) { + if (dir === '' || dir === '/') return cb(null); + if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) { + return cb(null); + } + if ((/[/\\]node_modules[/\\]*$/).test(dir)) return cb(null); - function incr(amount) { - amount = (amount || 1); - var res = str.substring(pos, pos + amount); - pos += (amount || 1); - return res; - } + maybeRealpath(realpath, dir, opts, function (unwrapErr, pkgdir) { + if (unwrapErr) return loadpkg(path.dirname(dir), cb); + var pkgfile = path.join(pkgdir, 'package.json'); + isFile(pkgfile, function (err, ex) { + // on err, ex is false + if (!ex) return loadpkg(path.dirname(dir), cb); - function skip(value) { - if (!match(value)) { - bail('character', value); - } - } + readPackage(readFile, pkgfile, function (err, pkgParam) { + if (err) cb(err); - function match(value) { - if (str.indexOf(value, pos) === pos) { - return incr(value.length); - } - } + var pkg = pkgParam; - function lookahead() { - return str[pos]; + if (pkg && opts.packageFilter) { + pkg = opts.packageFilter(pkg, pkgfile); + } + cb(null, pkg, dir); + }); + }); + }); } - function current(value) { - return str.indexOf(value, pos) === pos; - } + function loadAsDirectory(x, loadAsDirectoryPackage, callback) { + var cb = callback; + var fpkg = loadAsDirectoryPackage; + if (typeof fpkg === 'function') { + cb = fpkg; + fpkg = opts.package; + } - function next(value) { - return str[pos + 1] === value; - } + maybeRealpath(realpath, x, opts, function (unwrapErr, pkgdir) { + if (unwrapErr) return cb(unwrapErr); + var pkgfile = path.join(pkgdir, 'package.json'); + isFile(pkgfile, function (err, ex) { + if (err) return cb(err); + if (!ex) return loadAsFile(path.join(x, 'index'), fpkg, cb); - function matchReg(regExp) { - var subStr = str.substring(pos); - var res = subStr.match(regExp); - if (res) { - res.range = []; - res.range[0] = pos; - incr(res[0].length); - res.range[1] = pos; - } - return res; - } + readPackage(readFile, pkgfile, function (err, pkgParam) { + if (err) return cb(err); - function parseDisjunction() { - // Disjunction :: - // Alternative - // Alternative | Disjunction - var res = [], from = pos; - res.push(parseAlternative()); + var pkg = pkgParam; - while (match('|')) { - res.push(parseAlternative()); - } + if (pkg && opts.packageFilter) { + pkg = opts.packageFilter(pkg, pkgfile); + } - if (res.length === 1) { - return res[0]; - } + if (pkg && pkg.main) { + if (typeof pkg.main !== 'string') { + var mainError = new TypeError('package “' + pkg.name + '” `main` must be a string'); + mainError.code = 'INVALID_PACKAGE_MAIN'; + return cb(mainError); + } + if (pkg.main === '.' || pkg.main === './') { + pkg.main = 'index'; + } + loadAsFile(path.resolve(x, pkg.main), pkg, function (err, m, pkg) { + if (err) return cb(err); + if (m) return cb(null, m, pkg); + if (!pkg) return loadAsFile(path.join(x, 'index'), pkg, cb); - return createDisjunction(res, from, pos); + var dir = path.resolve(x, pkg.main); + loadAsDirectory(dir, pkg, function (err, n, pkg) { + if (err) return cb(err); + if (n) return cb(null, n, pkg); + loadAsFile(path.join(x, 'index'), pkg, cb); + }); + }); + return; + } + + loadAsFile(path.join(x, '/index'), pkg, cb); + }); + }); + }); } - function parseAlternative() { - var res = [], from = pos; - var term; + function processDirs(cb, dirs) { + if (dirs.length === 0) return cb(null, undefined); + var dir = dirs[0]; - // Alternative :: - // [empty] - // Alternative Term - while (term = parseTerm()) { - res.push(term); - } + isDirectory(path.dirname(dir), isdir); - if (res.length === 1) { - return res[0]; - } + function isdir(err, isdir) { + if (err) return cb(err); + if (!isdir) return processDirs(cb, dirs.slice(1)); + loadAsFile(dir, opts.package, onfile); + } - return createAlternative(res, from, pos); + function onfile(err, m, pkg) { + if (err) return cb(err); + if (m) return cb(null, m, pkg); + loadAsDirectory(dir, opts.package, ondir); + } + + function ondir(err, n, pkg) { + if (err) return cb(err); + if (n) return cb(null, n, pkg); + processDirs(cb, dirs.slice(1)); + } } + function loadNodeModules(x, start, cb) { + var thunk = function () { return getPackageCandidates(x, start, opts); }; + processDirs( + cb, + packageIterator ? packageIterator(x, start, thunk, opts) : thunk() + ); + } +}; - function parseTerm() { - // Term :: - // Anchor - // Atom - // Atom Quantifier - if (pos >= str.length || current('|') || current(')')) { - return null; /* Means: The term is empty */ - } +/***/ }), - var anchor = parseAnchor(); +/***/ 78978: +/***/ (function(module) { - if (anchor) { - return anchor; - } +module.exports = function () { + // see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi + var origPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = function (_, stack) { return stack; }; + var stack = (new Error()).stack; + Error.prepareStackTrace = origPrepareStackTrace; + return stack[2].getFileName(); +}; - var atom = parseAtomAndExtendedAtom(); - var quantifier; - if (!atom) { - // Check if a quantifier is following. A quantifier without an atom - // is an error. - var pos_backup = pos - quantifier = parseQuantifier() || false; - if (quantifier) { - pos = pos_backup - bail('Expected atom'); - } - // If no unicode flag, then try to parse ExtendedAtom -> ExtendedPatternCharacter. - // ExtendedPatternCharacter - var res; - if (!isUnicodeMode && (res = matchReg(/^{/))) { - atom = createCharacter(res); - } else { - bail('Expected atom'); +/***/ }), + +/***/ 81322: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +var current = (process.versions && process.versions.node && process.versions.node.split('.')) || []; + +function specifierIncluded(specifier) { + var parts = specifier.split(' '); + var op = parts.length > 1 ? parts[0] : '='; + var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.'); + + for (var i = 0; i < 3; ++i) { + var cur = parseInt(current[i] || 0, 10); + var ver = parseInt(versionParts[i] || 0, 10); + if (cur === ver) { + continue; // eslint-disable-line no-restricted-syntax, no-continue } - } - quantifier = parseQuantifier() || false; - if (quantifier) { - quantifier.body = flattenBody(atom); - // The quantifier contains the atom. Therefore, the beginning of the - // quantifier range is given by the beginning of the atom. - updateRawStart(quantifier, atom.range[0]); - return quantifier; - } - return atom; + if (op === '<') { + return cur < ver; + } else if (op === '>=') { + return cur >= ver; + } + return false; } + return op === '>='; +} - function parseGroup(matchA, typeA, matchB, typeB) { - var type = null, from = pos; +function matchesRange(range) { + var specifiers = range.split(/ ?&& ?/); + if (specifiers.length === 0) { return false; } + for (var i = 0; i < specifiers.length; ++i) { + if (!specifierIncluded(specifiers[i])) { return false; } + } + return true; +} - if (match(matchA)) { - type = typeA; - } else if (match(matchB)) { - type = typeB; - } else { +function versionIncluded(specifierValue) { + if (typeof specifierValue === 'boolean') { return specifierValue; } + if (specifierValue && typeof specifierValue === 'object') { + for (var i = 0; i < specifierValue.length; ++i) { + if (matchesRange(specifierValue[i])) { return true; } + } return false; - } - - return finishGroup(type, from); } + return matchesRange(specifierValue); +} - function finishGroup(type, from) { - var body = parseDisjunction(); - if (!body) { - bail('Expected disjunction'); - } - skip(')'); - var group = createGroup(type, flattenBody(body), from, pos); +var data = __nccwpck_require__(7665); - if (type == 'normal') { - // Keep track of the number of closed groups. This is required for - // parseDecimalEscape(). In case the string is parsed a second time the - // value already holds the total count and no incrementation is required. - if (firstIteration) { - closedCaptureCounter++; - } - } - return group; +var core = {}; +for (var mod in data) { // eslint-disable-line no-restricted-syntax + if (Object.prototype.hasOwnProperty.call(data, mod)) { + core[mod] = versionIncluded(data[mod]); } +} +module.exports = core; - function parseAnchor() { - // Anchor :: - // ^ - // $ - // \ b - // \ B - // ( ? = Disjunction ) - // ( ? ! Disjunction ) - if (match('^')) { - return createAnchor('start', 1 /* rawLength */); - } else if (match('$')) { - return createAnchor('end', 1 /* rawLength */); - } else if (match('\\b')) { - return createAnchor('boundary', 2 /* rawLength */); - } else if (match('\\B')) { - return createAnchor('not-boundary', 2 /* rawLength */); - } else { - return parseGroup('(?=', 'lookahead', '(?!', 'negativeLookahead'); - } +/***/ }), + +/***/ 83500: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + + +var os = __nccwpck_require__(22037); + +// adapted from https://github.com/sindresorhus/os-homedir/blob/11e089f4754db38bb535e5a8416320c4446e8cfd/index.js + +module.exports = os.homedir || function homedir() { + var home = process.env.HOME; + var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME; + + if (process.platform === 'win32') { + return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null; } - function parseQuantifier() { - // Quantifier :: - // QuantifierPrefix - // QuantifierPrefix ? - // - // QuantifierPrefix :: - // * - // + - // ? - // { DecimalDigits } - // { DecimalDigits , } - // { DecimalDigits , DecimalDigits } + if (process.platform === 'darwin') { + return home || (user ? '/Users/' + user : null); + } - var res, from = pos; - var quantifier; - var min, max; + if (process.platform === 'linux') { + return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null)); // eslint-disable-line no-extra-parens + } - if (match('*')) { - quantifier = createQuantifier(0, undefined, undefined, undefined, '*'); - } - else if (match('+')) { - quantifier = createQuantifier(1, undefined, undefined, undefined, "+"); - } - else if (match('?')) { - quantifier = createQuantifier(0, 1, undefined, undefined, "?"); - } - else if (res = matchReg(/^\{([0-9]+)\}/)) { - min = parseInt(res[1], 10); - quantifier = createQuantifier(min, min, res.range[0], res.range[1]); - } - else if (res = matchReg(/^\{([0-9]+),\}/)) { - min = parseInt(res[1], 10); - quantifier = createQuantifier(min, undefined, res.range[0], res.range[1]); - } - else if (res = matchReg(/^\{([0-9]+),([0-9]+)\}/)) { - min = parseInt(res[1], 10); - max = parseInt(res[2], 10); - if (min > max) { - bail('numbers out of order in {} quantifier', '', from, pos); - } - quantifier = createQuantifier(min, max, res.range[0], res.range[1]); - } + return home || null; +}; - if ((min && !Number.isSafeInteger(min)) || (max && !Number.isSafeInteger(max))) { - bail("iterations outside JS safe integer range in quantifier", "", from, pos); - } - if (quantifier) { - if (match('?')) { - quantifier.greedy = false; - quantifier.range[1] += 1; - } - } +/***/ }), - return quantifier; +/***/ 64229: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +var isCoreModule = __nccwpck_require__(40431); + +module.exports = function isCore(x) { + return isCoreModule(x); +}; + + +/***/ }), + +/***/ 56010: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +var path = __nccwpck_require__(71017); +var parse = path.parse || __nccwpck_require__(14187); // eslint-disable-line global-require + +var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) { + var prefix = '/'; + if ((/^([A-Za-z]:)/).test(absoluteStart)) { + prefix = ''; + } else if ((/^\\\\/).test(absoluteStart)) { + prefix = '\\\\'; } - function parseAtomAndExtendedAtom() { - // Parsing Atom and ExtendedAtom together due to redundancy. - // ExtendedAtom is defined in Apendix B of the ECMA-262 standard. - // - // SEE: https://www.ecma-international.org/ecma-262/10.0/index.html#prod-annexB-ExtendedPatternCharacter - // - // Atom :: - // PatternCharacter - // . - // \ AtomEscape - // CharacterClass - // ( GroupSpecifier Disjunction ) - // ( ? RegularExpressionFlags : Disjunction ) - // ( ? RegularExpressionFlags - RegularExpressionFlags : Disjunction ) - // ExtendedAtom :: - // ExtendedPatternCharacter - // ExtendedPatternCharacter :: - // SourceCharacter but not one of ^$\.*+?()[| + var paths = [absoluteStart]; + var parsed = parse(absoluteStart); + while (parsed.dir !== paths[paths.length - 1]) { + paths.push(parsed.dir); + parsed = parse(parsed.dir); + } - var res; + return paths.reduce(function (dirs, aPath) { + return dirs.concat(modules.map(function (moduleDir) { + return path.resolve(prefix, aPath, moduleDir); + })); + }, []); +}; - // jviereck: allow ']', '}' here as well to be compatible with browser's - // implementations: ']'.match(/]/); - if (res = matchReg(/^[^^$\\.*+?()[\]{}|]/)) { - // PatternCharacter - return createCharacter(res); - } - else if (!isUnicodeMode && (res = matchReg(/^(?:]|})/))) { - // ExtendedPatternCharacter, first part. See parseTerm. - return createCharacter(res); - } - else if (match('.')) { - // . - return createDot(); - } - else if (match('\\')) { - // \ AtomEscape - res = parseAtomEscape(); - if (!res) { - if (!isUnicodeMode && lookahead() == 'c') { - // B.1.4 ExtendedAtom - // \[lookahead = c] - return createValue('symbol', 92, pos - 1, pos); - } - bail('atomEscape'); - } - return res; - } - else if (res = parseCharacterClass()) { - return res; - } - else if (features.lookbehind && (res = parseGroup('(?<=', 'lookbehind', '(?"); - var group = finishGroup("normal", name.range[0] - 3); - group.name = name; - return group; - } - else if (features.modifiers && str.indexOf("(?") == pos && str[pos+2] != ":") { - return parseModifiersGroup(); - } - else { - // ( Disjunction ) - // ( ? : Disjunction ) - return parseGroup('(?:', 'ignore', '(', 'normal'); - } +module.exports = function nodeModulesPaths(start, opts, request) { + var modules = opts && opts.moduleDirectory + ? [].concat(opts.moduleDirectory) + : ['node_modules']; + + if (opts && typeof opts.paths === 'function') { + return opts.paths( + request, + start, + function () { return getNodeModulesDirs(start, modules); }, + opts + ); } - function parseModifiersGroup() { - function hasDupChar(str) { - var i = 0; - while (i < str.length) { - if (str.indexOf(str[i], i + 1) != -1) { - return true; - } - i++; - } - return false; - } + var dirs = getNodeModulesDirs(start, modules); + return opts && opts.paths ? dirs.concat(opts.paths) : dirs; +}; - var from = pos; - incr(2); - var enablingFlags = matchReg(/^[sim]+/); - var disablingFlags; - if(match("-")){ - disablingFlags = matchReg(/^[sim]+/); - if (!disablingFlags) { - bail('Invalid flags for modifiers group'); - } - } else if(!enablingFlags){ - bail('Invalid flags for modifiers group'); - } +/***/ }), - enablingFlags = enablingFlags ? enablingFlags[0] : ""; - disablingFlags = disablingFlags ? disablingFlags[0] : ""; +/***/ 72336: +/***/ (function(module) { - var flags = enablingFlags + disablingFlags; - if(flags.length > 3 || hasDupChar(flags)) { - bail('flags cannot be duplicated for modifiers group'); - } +module.exports = function (x, opts) { + /** + * This file is purposefully a passthrough. It's expected that third-party + * environments will override it at runtime in order to inject special logic + * into `resolve` (by manipulating the options). One such example is the PnP + * code path in Yarn. + */ - skip(":"); + return opts || {}; +}; - var modifiersGroup = finishGroup("ignore", from); - modifiersGroup.modifierFlags = { - enabling: enablingFlags, - disabling: disablingFlags - }; +/***/ }), - return modifiersGroup; - } +/***/ 18888: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - function parseUnicodeSurrogatePairEscape(firstEscape) { - if (isUnicodeMode) { - var first, second; - if (firstEscape.kind == 'unicodeEscape' && - (first = firstEscape.codePoint) >= 0xD800 && first <= 0xDBFF && - current('\\') && next('u') ) { - var prevPos = pos; - pos++; - var secondEscape = parseClassEscape(); - if (secondEscape.kind == 'unicodeEscape' && - (second = secondEscape.codePoint) >= 0xDC00 && second <= 0xDFFF) { - // Unicode surrogate pair - firstEscape.range[1] = secondEscape.range[1]; - firstEscape.codePoint = (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - firstEscape.type = 'value'; - firstEscape.kind = 'unicodeCodePointEscape'; - addRaw(firstEscape); - } - else { - pos = prevPos; - } - } - } - return firstEscape; +var isCore = __nccwpck_require__(40431); +var fs = __nccwpck_require__(57147); +var path = __nccwpck_require__(71017); +var getHomedir = __nccwpck_require__(83500); +var caller = __nccwpck_require__(78978); +var nodeModulesPaths = __nccwpck_require__(56010); +var normalizeOptions = __nccwpck_require__(72336); + +var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync; + +var homedir = getHomedir(); +var defaultPaths = function () { + return [ + path.join(homedir, '.node_modules'), + path.join(homedir, '.node_libraries') + ]; +}; + +var defaultIsFile = function isFile(file) { + try { + var stat = fs.statSync(file, { throwIfNoEntry: false }); + } catch (e) { + if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false; + throw e; } + return !!stat && (stat.isFile() || stat.isFIFO()); +}; - function parseClassEscape() { - return parseAtomEscape(true); +var defaultIsDir = function isDirectory(dir) { + try { + var stat = fs.statSync(dir, { throwIfNoEntry: false }); + } catch (e) { + if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false; + throw e; } + return !!stat && stat.isDirectory(); +}; - function parseAtomEscape(insideCharacterClass) { - // AtomEscape :: - // DecimalEscape - // CharacterEscape - // CharacterClassEscape - // k GroupName +var defaultRealpathSync = function realpathSync(x) { + try { + return realpathFS(x); + } catch (realpathErr) { + if (realpathErr.code !== 'ENOENT') { + throw realpathErr; + } + } + return x; +}; - var res, from = pos; +var maybeRealpathSync = function maybeRealpathSync(realpathSync, x, opts) { + if (opts && opts.preserveSymlinks === false) { + return realpathSync(x); + } + return x; +}; - res = parseDecimalEscape(insideCharacterClass) || parseNamedReference(); - if (res) { - return res; - } +var defaultReadPackageSync = function defaultReadPackageSync(readFileSync, pkgfile) { + var body = readFileSync(pkgfile); + try { + var pkg = JSON.parse(body); + return pkg; + } catch (jsonErr) {} +}; - // For ClassEscape - if (insideCharacterClass) { - // b - if (match('b')) { - // 15.10.2.19 - // The production ClassEscape :: b evaluates by returning the - // CharSet containing the one character (Unicode value 0008). - return createEscaped('singleEscape', 0x0008, '\\b'); - } else if (match('B')) { - bail('\\B not possible inside of CharacterClass', '', from); - } else if (!isUnicodeMode && (res = matchReg(/^c([0-9])/))) { - // B.1.4 - // c ClassControlLetter, ClassControlLetter = DecimalDigit - return createEscaped('controlLetter', res[1] + 16, res[1], 2); - } else if (!isUnicodeMode && (res = matchReg(/^c_/))) { - // B.1.4 - // c ClassControlLetter, ClassControlLetter = _ - return createEscaped('controlLetter', 31, '_', 2); - } - // [+U] - - if (isUnicodeMode && match('-')) { - return createEscaped('singleEscape', 0x002d, '\\-'); - } - } +var getPackageCandidates = function getPackageCandidates(x, start, opts) { + var dirs = nodeModulesPaths(start, opts, x); + for (var i = 0; i < dirs.length; i++) { + dirs[i] = path.join(dirs[i], x); + } + return dirs; +}; - res = parseCharacterClassEscape() || parseCharacterEscape(); +module.exports = function resolveSync(x, options) { + if (typeof x !== 'string') { + throw new TypeError('Path must be a string.'); + } + var opts = normalizeOptions(x, options); - return res; + var isFile = opts.isFile || defaultIsFile; + var readFileSync = opts.readFileSync || fs.readFileSync; + var isDirectory = opts.isDirectory || defaultIsDir; + var realpathSync = opts.realpathSync || defaultRealpathSync; + var readPackageSync = opts.readPackageSync || defaultReadPackageSync; + if (opts.readFileSync && opts.readPackageSync) { + throw new TypeError('`readFileSync` and `readPackageSync` are mutually exclusive.'); } + var packageIterator = opts.packageIterator; + var extensions = opts.extensions || ['.js']; + var includeCoreModules = opts.includeCoreModules !== false; + var basedir = opts.basedir || path.dirname(caller()); + var parent = opts.filename || basedir; - function parseDecimalEscape(insideCharacterClass) { - // DecimalEscape :: - // DecimalIntegerLiteral [lookahead ∉ DecimalDigit] + opts.paths = opts.paths || defaultPaths(); - var res, match, from = pos; + // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory + var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts); - if (res = matchReg(/^(?!0)\d+/)) { - match = res[0]; - var refIdx = parseInt(res[0], 10); - if (refIdx <= closedCaptureCounter && !insideCharacterClass) { - // If the number is smaller than the normal-groups found so - // far, then it is a reference... - return createReference(res[0]); - } else { - // ... otherwise it needs to be interpreted as a octal (if the - // number is in an octal format). If it is NOT octal format, - // then the slash is ignored and the number is matched later - // as normal characters. + if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) { + var res = path.resolve(absoluteStart, x); + if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/'; + var m = loadAsFileSync(res) || loadAsDirectorySync(res); + if (m) return maybeRealpathSync(realpathSync, m, opts); + } else if (includeCoreModules && isCore(x)) { + return x; + } else { + var n = loadNodeModulesSync(x, absoluteStart); + if (n) return maybeRealpathSync(realpathSync, n, opts); + } - // Recall the negative decision to decide if the input must be parsed - // a second time with the total normal-groups. - backrefDenied.push(refIdx); + var err = new Error("Cannot find module '" + x + "' from '" + parent + "'"); + err.code = 'MODULE_NOT_FOUND'; + throw err; - // \1 octal escapes are disallowed in unicode mode, but they might - // be references to groups which haven't been parsed yet. - // We must parse a second time to determine if \1 is a reference - // or an octal scape, and then we can report the error. - if (firstIteration) { - shouldReparse = true; - } else { - bailOctalEscapeIfUnicode(from, pos); - } + function loadAsFileSync(x) { + var pkg = loadpkg(path.dirname(x)); - // Reset the position again, as maybe only parts of the previous - // matched numbers are actual octal numbers. E.g. in '019' only - // the '01' should be matched. - incr(-res[0].length); - if (res = matchReg(/^[0-7]{1,3}/)) { - return createEscaped('octal', parseInt(res[0], 8), res[0], 1); - } else { - // If we end up here, we have a case like /\91/. Then the - // first slash is to be ignored and the 9 & 1 to be treated - // like ordinary characters. Create a character for the - // first number only here - other number-characters - // (if available) will be matched later. - res = createCharacter(matchReg(/^[89]/)); - return updateRawStart(res, res.range[0] - 1); - } + if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) { + var rfile = path.relative(pkg.dir, x); + var r = opts.pathFilter(pkg.pkg, x, rfile); + if (r) { + x = path.resolve(pkg.dir, r); // eslint-disable-line no-param-reassign + } } - } - // Only allow octal numbers in the following. All matched numbers start - // with a zero (if the do not, the previous if-branch is executed). - // If the number is not octal format and starts with zero (e.g. `091`) - // then only the zeros `0` is treated here and the `91` are ordinary - // characters. - // Example: - // /\091/.exec('\091')[0].length === 3 - else if (res = matchReg(/^[0-7]{1,3}/)) { - match = res[0]; - if (match !== '0') { - bailOctalEscapeIfUnicode(from, pos); + + if (isFile(x)) { + return x; } - if (/^0{1,3}$/.test(match)) { - // If they are all zeros, then only take the first one. - return createEscaped('null', 0x0000, '0', match.length); - } else { - return createEscaped('octal', parseInt(match, 8), match, 1); + + for (var i = 0; i < extensions.length; i++) { + var file = x + extensions[i]; + if (isFile(file)) { + return file; + } } - } - return false; } - function bailOctalEscapeIfUnicode(from, pos) { - if (isUnicodeMode) { - bail("Invalid decimal escape in unicode mode", null, from, pos); - } - } + function loadpkg(dir) { + if (dir === '' || dir === '/') return; + if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) { + return; + } + if ((/[/\\]node_modules[/\\]*$/).test(dir)) return; - function parseCharacterClassEscape() { - // CharacterClassEscape :: one of d D s S w W - var res; - if (res = matchReg(/^[dDsSwW]/)) { - return createCharacterClassEscape(res[0]); - } else if (features.unicodePropertyEscape && isUnicodeMode && (res = matchReg(/^([pP])\{([^\}]+)\}/))) { - // https://github.com/jviereck/regjsparser/issues/77 - return addRaw({ - type: 'unicodePropertyEscape', - negative: res[1] === 'P', - value: res[2], - range: [res.range[0] - 1, res.range[1]], - raw: res[0] - }); - } else if (features.unicodeSet && hasUnicodeSetFlag && match('q{')) { - return parseClassStrings(); - } - return false; - } + var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), 'package.json'); - function parseNamedReference() { - if (features.namedGroups && matchReg(/^k<(?=.*?>)/)) { - var name = parseIdentifier(); - skip('>'); - return createNamedReference(name); - } - } + if (!isFile(pkgfile)) { + return loadpkg(path.dirname(dir)); + } - function parseRegExpUnicodeEscapeSequence() { - var res; - if (res = matchReg(/^u([0-9a-fA-F]{4})/)) { - // UnicodeEscapeSequence - return parseUnicodeSurrogatePairEscape( - createEscaped('unicodeEscape', parseInt(res[1], 16), res[1], 2) - ); - } else if (isUnicodeMode && (res = matchReg(/^u\{([0-9a-fA-F]+)\}/))) { - // RegExpUnicodeEscapeSequence (ES6 Unicode code point escape) - return createEscaped('unicodeCodePointEscape', parseInt(res[1], 16), res[1], 4); - } - } + var pkg = readPackageSync(readFileSync, pkgfile); - function parseCharacterEscape() { - // CharacterEscape :: - // ControlEscape - // c ControlLetter - // HexEscapeSequence - // UnicodeEscapeSequence - // IdentityEscape + if (pkg && opts.packageFilter) { + // v2 will pass pkgfile + pkg = opts.packageFilter(pkg, /*pkgfile,*/ dir); // eslint-disable-line spaced-comment + } - var res; - var from = pos; - if (res = matchReg(/^[fnrtv]/)) { - // ControlEscape - var codePoint = 0; - switch (res[0]) { - case 't': codePoint = 0x009; break; - case 'n': codePoint = 0x00A; break; - case 'v': codePoint = 0x00B; break; - case 'f': codePoint = 0x00C; break; - case 'r': codePoint = 0x00D; break; - } - return createEscaped('singleEscape', codePoint, '\\' + res[0]); - } else if (res = matchReg(/^c([a-zA-Z])/)) { - // c ControlLetter - return createEscaped('controlLetter', res[1].charCodeAt(0) % 32, res[1], 2); - } else if (res = matchReg(/^x([0-9a-fA-F]{2})/)) { - // HexEscapeSequence - return createEscaped('hexadecimalEscape', parseInt(res[1], 16), res[1], 2); - } else if (res = parseRegExpUnicodeEscapeSequence()) { - if (!res || res.codePoint > 0x10FFFF) { - bail('Invalid escape sequence', null, from, pos); - } - return res; - } else { - // IdentityEscape - return parseIdentityEscape(); - } + return { pkg: pkg, dir: dir }; } - function parseIdentifierAtom(check) { - var ch = lookahead(); - var from = pos; - if (ch === '\\') { - incr(); - var esc = parseRegExpUnicodeEscapeSequence(); - if (!esc || !check(esc.codePoint)) { - bail('Invalid escape sequence', null, from, pos); - } - return fromCodePoint(esc.codePoint); - } - var code = ch.charCodeAt(0); - if (code >= 0xD800 && code <= 0xDBFF) { - ch += str[pos + 1]; - var second = ch.charCodeAt(1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // Unicode surrogate pair - code = (code - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; + function loadAsDirectorySync(x) { + var pkgfile = path.join(maybeRealpathSync(realpathSync, x, opts), '/package.json'); + if (isFile(pkgfile)) { + try { + var pkg = readPackageSync(readFileSync, pkgfile); + } catch (e) {} + + if (pkg && opts.packageFilter) { + // v2 will pass pkgfile + pkg = opts.packageFilter(pkg, /*pkgfile,*/ x); // eslint-disable-line spaced-comment + } + + if (pkg && pkg.main) { + if (typeof pkg.main !== 'string') { + var mainError = new TypeError('package “' + pkg.name + '” `main` must be a string'); + mainError.code = 'INVALID_PACKAGE_MAIN'; + throw mainError; + } + if (pkg.main === '.' || pkg.main === './') { + pkg.main = 'index'; + } + try { + var m = loadAsFileSync(path.resolve(x, pkg.main)); + if (m) return m; + var n = loadAsDirectorySync(path.resolve(x, pkg.main)); + if (n) return n; + } catch (e) {} + } } - } - if (!check(code)) return; - incr(); - if (code > 0xFFFF) incr(); - return ch; + + return loadAsFileSync(path.join(x, '/index')); } - function parseIdentifier() { - // RegExpIdentifierName :: - // RegExpIdentifierStart - // RegExpIdentifierName RegExpIdentifierContinue - // - // RegExpIdentifierStart :: - // UnicodeIDStart - // $ - // _ - // \ RegExpUnicodeEscapeSequence - // - // RegExpIdentifierContinue :: - // UnicodeIDContinue - // $ - // _ - // \ RegExpUnicodeEscapeSequence - // - // + function loadNodeModulesSync(x, start) { + var thunk = function () { return getPackageCandidates(x, start, opts); }; + var dirs = packageIterator ? packageIterator(x, start, thunk, opts) : thunk(); - var start = pos; - var res = parseIdentifierAtom(isIdentifierStart); - if (!res) { - bail('Invalid identifier'); - } + for (var i = 0; i < dirs.length; i++) { + var dir = dirs[i]; + if (isDirectory(path.dirname(dir))) { + var m = loadAsFileSync(dir); + if (m) return m; + var n = loadAsDirectorySync(dir); + if (n) return n; + } + } + } +}; - var ch; - while (ch = parseIdentifierAtom(isIdentifierPart)) { - res += ch; - } - return addRaw({ - type: 'identifier', - value: res, - range: [start, pos] - }); - } +/***/ }), - function isIdentifierStart(ch) { - // Generated by `tools/generate-identifier-regex.js`. - var NonAsciiIdentifierStart = /[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/; +/***/ 30876: +/***/ (function(module, exports) { - return (ch === 36) || (ch === 95) || // $ (dollar) and _ (underscore) - (ch >= 65 && ch <= 90) || // A..Z - (ch >= 97 && ch <= 122) || // a..z - ((ch >= 0x80) && NonAsciiIdentifierStart.test(fromCodePoint(ch))); - } +exports = module.exports = SemVer - // Taken from the Esprima parser. - function isIdentifierPart(ch) { - // Generated by `tools/generate-identifier-regex.js`. - // eslint-disable-next-line no-misleading-character-class - var NonAsciiIdentifierPartOnly = /[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/; +var debug +/* istanbul ignore next */ +if (typeof process === 'object' && + process.env && + process.env.NODE_DEBUG && + /\bsemver\b/i.test(process.env.NODE_DEBUG)) { + debug = function () { + var args = Array.prototype.slice.call(arguments, 0) + args.unshift('SEMVER') + console.log.apply(console, args) + } +} else { + debug = function () {} +} - return isIdentifierStart(ch) || - (ch >= 48 && ch <= 57) || // 0..9 - ((ch >= 0x80) && NonAsciiIdentifierPartOnly.test(fromCodePoint(ch))); - } +// Note: this is the semver.org version of the spec that it implements +// Not necessarily the package version of this code. +exports.SEMVER_SPEC_VERSION = '2.0.0' - function parseIdentityEscape() { - // IdentityEscape :: - // [+U] SyntaxCharacter - // [+U] / - // [~U] SourceCharacterIdentityEscape[?N] - // SourceCharacterIdentityEscape[?N] :: - // [~N] SourceCharacter but not c - // [+N] SourceCharacter but not one of c or k +var MAX_LENGTH = 256 +var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || + /* istanbul ignore next */ 9007199254740991 +// Max safe segment length for coercion. +var MAX_SAFE_COMPONENT_LENGTH = 16 - var tmp; - var l = lookahead(); - if ( - (isUnicodeMode && /[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(l)) || - (!isUnicodeMode && l !== "c") - ) { - if (l === "k" && features.lookbehind) { - return null; - } - tmp = incr(); - return createEscaped('identifier', tmp.charCodeAt(0), tmp, 1); - } +var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 - return null; - } +// The actual regexps go on exports.re +var re = exports.re = [] +var safeRe = exports.safeRe = [] +var src = exports.src = [] +var R = 0 - function parseCharacterClass() { - // CharacterClass :: - // [ [lookahead ∉ {^}] ClassRanges ] - // [ ^ ClassRanges ] +var LETTERDASHNUMBER = '[a-zA-Z0-9-]' - var res, from = pos; - if (res = matchReg(/^\[\^/)) { - res = parseClassRanges(); - skip(']'); - return createCharacterClass(res, true, from, pos); - } else if (match('[')) { - res = parseClassRanges(); - skip(']'); - return createCharacterClass(res, false, from, pos); - } +// Replace some greedy regex tokens to prevent regex dos issues. These regex are +// used internally via the safeRe object since all inputs in this library get +// normalized first to trim and collapse all extra whitespace. The original +// regexes are exported for userland consumption and lower level usage. A +// future breaking change could export the safer regex only with a note that +// all input should have extra whitespace removed. +var safeRegexReplacements = [ + ['\\s', 1], + ['\\d', MAX_LENGTH], + [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], +] - return null; - } +function makeSafeRe (value) { + for (var i = 0; i < safeRegexReplacements.length; i++) { + var token = safeRegexReplacements[i][0] + var max = safeRegexReplacements[i][1] + value = value + .split(token + '*').join(token + '{0,' + max + '}') + .split(token + '+').join(token + '{1,' + max + '}') + } + return value +} - function parseClassRanges() { - // ClassRanges :: - // [empty] - // [~V] NonemptyClassRanges - // [+V] ClassContents +// The following Regular Expressions can be used for tokenizing, +// validating, and parsing SemVer version strings. - var res; - if (current(']')) { - // Empty array means nothing inside of the ClassRange. - return { kind: 'union', body: [] }; - } else if (hasUnicodeSetFlag) { - return parseClassContents(); - } else { - res = parseNonemptyClassRanges(); - if (!res) { - bail('nonEmptyClassRanges'); - } - return { kind: 'union', body: res }; - } - } +// ## Numeric Identifier +// A single `0`, or a non-zero digit followed by zero or more digits. - function parseHelperClassRanges(atom) { - var from, to, res, atomTo, dash; - if (current('-') && !next(']')) { - // ClassAtom - ClassAtom ClassRanges - from = atom.range[0]; - dash = createCharacter(match('-')); +var NUMERICIDENTIFIER = R++ +src[NUMERICIDENTIFIER] = '0|[1-9]\\d*' +var NUMERICIDENTIFIERLOOSE = R++ +src[NUMERICIDENTIFIERLOOSE] = '\\d+' - atomTo = parseClassAtom(); - if (!atomTo) { - bail('classAtom'); - } - to = pos; +// ## Non-numeric Identifier +// Zero or more digits, followed by a letter or hyphen, and then zero or +// more letters, digits, or hyphens. - // Parse the next class range if exists. - var classRanges = parseClassRanges(); - if (!classRanges) { - bail('classRanges'); - } +var NONNUMERICIDENTIFIER = R++ +src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*' - // Check if both the from and atomTo have codePoints. - if (!('codePoint' in atom) || !('codePoint' in atomTo)) { - if (!isUnicodeMode) { - // If not, don't create a range but treat them as - // `atom` `-` `atom` instead. - // - // SEE: https://tc39.es/ecma262/#sec-regular-expression-patterns-semantics - // NonemptyClassRanges::ClassAtom-ClassAtomClassRanges - // CharacterRangeOrUnion - res = [atom, dash, atomTo]; - } else { - // With unicode flag, both sides must have codePoints if - // one side has a codePoint. - // - // SEE: https://tc39.es/ecma262/#sec-patterns-static-semantics-early-errors - // NonemptyClassRanges :: ClassAtom - ClassAtom ClassRanges - bail('invalid character class'); - } - } else { - res = [createClassRange(atom, atomTo, from, to)]; - } +// ## Main Version +// Three dot-separated numeric identifiers. - if (classRanges.type === 'empty') { - return res; - } - return res.concat(classRanges.body); - } +var MAINVERSION = R++ +src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' + + '(' + src[NUMERICIDENTIFIER] + ')\\.' + + '(' + src[NUMERICIDENTIFIER] + ')' - res = parseNonemptyClassRangesNoDash(); - if (!res) { - bail('nonEmptyClassRangesNoDash'); - } +var MAINVERSIONLOOSE = R++ +src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[NUMERICIDENTIFIERLOOSE] + ')' - return [atom].concat(res); - } +// ## Pre-release Version Identifier +// A numeric identifier, or a non-numeric identifier. - function parseNonemptyClassRanges() { - // NonemptyClassRanges :: - // ClassAtom - // ClassAtom NonemptyClassRangesNoDash - // ClassAtom - ClassAtom ClassRanges +var PRERELEASEIDENTIFIER = R++ +src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] + + '|' + src[NONNUMERICIDENTIFIER] + ')' - var atom = parseClassAtom(); - if (!atom) { - bail('classAtom'); - } +var PRERELEASEIDENTIFIERLOOSE = R++ +src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + + '|' + src[NONNUMERICIDENTIFIER] + ')' - if (current(']')) { - // ClassAtom - return [atom]; - } +// ## Pre-release Version +// Hyphen, followed by one or more dot-separated pre-release version +// identifiers. - // ClassAtom NonemptyClassRangesNoDash - // ClassAtom - ClassAtom ClassRanges - return parseHelperClassRanges(atom); - } +var PRERELEASE = R++ +src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + + '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))' - function parseNonemptyClassRangesNoDash() { - // NonemptyClassRangesNoDash :: - // ClassAtom - // ClassAtomNoDash NonemptyClassRangesNoDash - // ClassAtomNoDash - ClassAtom ClassRanges +var PRERELEASELOOSE = R++ +src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + + '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))' - var res = parseClassAtom(); - if (!res) { - bail('classAtom'); - } - if (current(']')) { - // ClassAtom - return res; - } +// ## Build Metadata Identifier +// Any combination of digits, letters, or hyphens. - // ClassAtomNoDash NonemptyClassRangesNoDash - // ClassAtomNoDash - ClassAtom ClassRanges - return parseHelperClassRanges(res); - } +var BUILDIDENTIFIER = R++ +src[BUILDIDENTIFIER] = LETTERDASHNUMBER + '+' - function parseClassAtom() { - // ClassAtom :: - // - - // ClassAtomNoDash - if (match('-')) { - return createCharacter('-'); - } else { - return parseClassAtomNoDash(); - } - } +// ## Build Metadata +// Plus sign, followed by one or more period-separated build metadata +// identifiers. - function parseClassAtomNoDash() { - // ClassAtomNoDash :: - // SourceCharacter but not one of \ or ] or - - // \ ClassEscape +var BUILD = R++ +src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + + '(?:\\.' + src[BUILDIDENTIFIER] + ')*))' - var res; - if (res = matchReg(/^[^\\\]-]/)) { - return createCharacter(res[0]); - } else if (match('\\')) { - res = parseClassEscape(); - if (!res) { - bail('classEscape'); - } +// ## Full Version String +// A main version, followed optionally by a pre-release version and +// build metadata. - return parseUnicodeSurrogatePairEscape(res); - } - } +// Note that the only major, minor, patch, and pre-release sections of +// the version string are capturing groups. The build metadata is not a +// capturing group, because it should not ever be used in version +// comparison. - function parseClassContents() { - // ClassContents :: - // ClassUnion - // ClassIntersection - // ClassSubtraction - // - // ClassUnion :: - // ClassRange ClassUnion? - // ClassOperand ClassUnion? - // - // ClassIntersection :: - // ClassOperand && [lookahead ≠ &] ClassOperand - // ClassIntersection && [lookahead ≠ &] ClassOperand - // - // ClassSubtraction :: - // ClassOperand -- ClassOperand - // ClassSubtraction -- ClassOperand +var FULL = R++ +var FULLPLAIN = 'v?' + src[MAINVERSION] + + src[PRERELEASE] + '?' + + src[BUILD] + '?' - var body = []; - var kind; +src[FULL] = '^' + FULLPLAIN + '$' - var operand = parseClassOperand(/* allowRanges*/ true); - body.push(operand); +// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. +// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty +// common in the npm registry. +var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] + + src[PRERELEASELOOSE] + '?' + + src[BUILD] + '?' - if (operand.type === 'classRange') { - kind = 'union'; - } else if (current('&')) { - kind = 'intersection'; - } else if (current('-')) { - kind = 'subtraction'; - } else { - kind = 'union'; - } +var LOOSE = R++ +src[LOOSE] = '^' + LOOSEPLAIN + '$' - while (!current(']')) { - if (kind === 'intersection') { - skip('&'); - skip('&'); - if (current('&')) { - bail('&& cannot be followed by &. Wrap it in brackets: &&[&].'); - } - } else if (kind === 'subtraction') { - skip('-'); - skip('-'); - } +var GTLT = R++ +src[GTLT] = '((?:<|>)?=?)' - operand = parseClassOperand(/* allowRanges*/ kind === 'union'); - body.push(operand); - } +// Something like "2.*" or "1.2.x". +// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Only the first item is strictly required. +var XRANGEIDENTIFIERLOOSE = R++ +src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' +var XRANGEIDENTIFIER = R++ +src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*' - return { kind: kind, body: body }; - } +var XRANGEPLAIN = R++ +src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + + '(?:' + src[PRERELEASE] + ')?' + + src[BUILD] + '?' + + ')?)?' - function parseClassOperand(allowRanges) { - // ClassOperand :: - // ClassCharacter - // ClassStrings - // NestedClass - // - // NestedClass :: - // [ [lookahead ≠ ^] ClassRanges[+U,+V] ] - // [ ^ ClassRanges[+U,+V] ] - // \ CharacterClassEscape[+U, +V] - // - // ClassRange :: - // ClassCharacter - ClassCharacter - // - // ClassCharacter :: - // [lookahead ∉ ClassReservedDouble] SourceCharacter but not ClassSyntaxCharacter - // \ CharacterEscape[+U] - // \ ClassHalfOfDouble - // \ b - // - // ClassSyntaxCharacter :: - // one of ( ) [ ] { } / - \ | +var XRANGEPLAINLOOSE = R++ +src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:' + src[PRERELEASELOOSE] + ')?' + + src[BUILD] + '?' + + ')?)?' - var from = pos; - var start, res; +var XRANGE = R++ +src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$' +var XRANGELOOSE = R++ +src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$' - if (match('\\')) { - // ClassOperand :: - // ... - // ClassStrings - // NestedClass - // - // NestedClass :: - // ... - // \ CharacterClassEscape[+U, +V] - if (res = parseClassEscape()) { - start = res; - } else if (res = parseClassCharacterEscapedHelper()) { - return res; - } else { - bail('Invalid escape', '\\' + lookahead(), from); - } - } else if (res = parseClassCharacterUnescapedHelper()) { - start = res; - } else if (res = parseCharacterClass()) { - // ClassOperand :: - // ... - // NestedClass - // - // NestedClass :: - // [ [lookahead ≠ ^] ClassRanges[+U,+V] ] - // [ ^ ClassRanges[+U,+V] ] - // ... - return res; - } else { - bail('Invalid character', lookahead()); - } - - if (allowRanges && current('-') && !next('-')) { - skip('-'); - - if (res = parseClassCharacter()) { - // ClassRange :: - // ClassCharacter - ClassCharacter - return createClassRange(start, res, from, pos); - } - - bail('Invalid range end', lookahead()); - } - - // ClassOperand :: - // ClassCharacter - // ... - return start; - } - - function parseClassCharacter() { - // ClassCharacter :: - // [lookahead ∉ ClassReservedDouble] SourceCharacter but not ClassSyntaxCharacter - // \ CharacterEscape[+U] - // \ ClassHalfOfDouble - // \ b +// Coercion. +// Extract anything that could conceivably be a part of a valid semver +var COERCE = R++ +src[COERCE] = '(?:^|[^\\d])' + + '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + + '(?:$|[^\\d])' - if (match('\\')) { - var res, from = pos; - if (res = parseClassCharacterEscapedHelper()) { - return res; - } else { - bail('Invalid escape', '\\' + lookahead(), from); - } - } +// Tilde ranges. +// Meaning is "reasonably at or greater than" +var LONETILDE = R++ +src[LONETILDE] = '(?:~>?)' - return parseClassCharacterUnescapedHelper(); - } +var TILDETRIM = R++ +src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+' +re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g') +safeRe[TILDETRIM] = new RegExp(makeSafeRe(src[TILDETRIM]), 'g') +var tildeTrimReplace = '$1~' - function parseClassCharacterUnescapedHelper() { - // ClassCharacter :: - // [lookahead ∉ ClassReservedDouble] SourceCharacter but not ClassSyntaxCharacter - // ... +var TILDE = R++ +src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$' +var TILDELOOSE = R++ +src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$' - var res; - if (res = matchReg(/^[^()[\]{}/\-\\|]/)) { - return createCharacter(res); - } - } +// Caret ranges. +// Meaning is "at least and backwards compatible with" +var LONECARET = R++ +src[LONECARET] = '(?:\\^)' - function parseClassCharacterEscapedHelper() { - // ClassCharacter :: - // ... - // \ CharacterEscape[+U] - // \ ClassHalfOfDouble - // \ b +var CARETTRIM = R++ +src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+' +re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g') +safeRe[CARETTRIM] = new RegExp(makeSafeRe(src[CARETTRIM]), 'g') +var caretTrimReplace = '$1^' - var res; - if (match('b')) { - return createEscaped('singleEscape', 0x0008, '\\b'); - } else if (match('B')) { - bail('\\B not possible inside of ClassContents', '', pos - 2); - } else if (res = matchReg(/^[&\-!#%,:;<=>@_`~]/)) { - return createEscaped('identifier', res[0].codePointAt(0), res[0]); - } else if (res = parseCharacterEscape()) { - return res; - } else { - return null; - } - } +var CARET = R++ +src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$' +var CARETLOOSE = R++ +src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$' - function parseClassStrings() { - // ClassStrings :: - // \q{ ClassString MoreClassStrings? } +// A simple gt/lt/eq thing, or just "" to indicate "any version" +var COMPARATORLOOSE = R++ +src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$' +var COMPARATOR = R++ +src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$' - // When calling this function, \q{ has already been consumed. - var from = pos - 3; +// An expression to strip any whitespace between the gtlt and the thing +// it modifies, so that `> 1.2.3` ==> `>1.2.3` +var COMPARATORTRIM = R++ +src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + + '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')' - var res = []; - do { - res.push(parseClassString()); - } while (match('|')); +// this one has to use the /g flag +re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g') +safeRe[COMPARATORTRIM] = new RegExp(makeSafeRe(src[COMPARATORTRIM]), 'g') +var comparatorTrimReplace = '$1$2$3' - skip('}'); +// Something like `1.2.3 - 1.2.4` +// Note that these all use the loose form, because they'll be +// checked against either the strict or loose comparator form +// later. +var HYPHENRANGE = R++ +src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' + + '\\s+-\\s+' + + '(' + src[XRANGEPLAIN] + ')' + + '\\s*$' - return createClassStrings(res, from, pos); - } +var HYPHENRANGELOOSE = R++ +src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' + + '\\s+-\\s+' + + '(' + src[XRANGEPLAINLOOSE] + ')' + + '\\s*$' - function parseClassString() { - // ClassString :: - // [empty] - // NonEmptyClassString - // - // NonEmptyClassString :: - // ClassCharacter NonEmptyClassString? +// Star ranges basically just allow anything at all. +var STAR = R++ +src[STAR] = '(<|>)?=?\\s*\\*' - var res = [], from = pos; - var char; +// Compile to actual regexp objects. +// All are flag-free, unless they were created above with a flag. +for (var i = 0; i < R; i++) { + debug(i, src[i]) + if (!re[i]) { + re[i] = new RegExp(src[i]) - while (char = parseClassCharacter()) { - res.push(char); - } + // Replace all greedy whitespace to prevent regex dos issues. These regex are + // used internally via the safeRe object since all inputs in this library get + // normalized first to trim and collapse all extra whitespace. The original + // regexes are exported for userland consumption and lower level usage. A + // future breaking change could export the safer regex only with a note that + // all input should have extra whitespace removed. + safeRe[i] = new RegExp(makeSafeRe(src[i])) + } +} - return createClassString(res, from, pos); +exports.parse = parse +function parse (version, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false } + } - function bail(message, details, from, to) { - from = from == null ? pos : from; - to = to == null ? from : to; - - var contextStart = Math.max(0, from - 10); - var contextEnd = Math.min(to + 10, str.length); + if (version instanceof SemVer) { + return version + } - // Output a bit of context and a line pointing to where our error is. - // - // We are assuming that there are no actual newlines in the content as this is a regular expression. - var context = ' ' + str.substring(contextStart, contextEnd); - var pointer = ' ' + new Array(from - contextStart + 1).join(' ') + '^'; + if (typeof version !== 'string') { + return null + } - throw SyntaxError(message + ' at position ' + from + (details ? ': ' + details : '') + '\n' + context + '\n' + pointer); - } + if (version.length > MAX_LENGTH) { + return null + } - var backrefDenied = []; - var closedCaptureCounter = 0; - var firstIteration = true; - var shouldReparse = false; - var hasUnicodeFlag = (flags || "").indexOf("u") !== -1; - var hasUnicodeSetFlag = (flags || "").indexOf("v") !== -1; - var isUnicodeMode = hasUnicodeFlag || hasUnicodeSetFlag; - var pos = 0; + var r = options.loose ? safeRe[LOOSE] : safeRe[FULL] + if (!r.test(version)) { + return null + } - if (hasUnicodeSetFlag && !features.unicodeSet) { - throw new Error('The "v" flag is only supported when the .unicodeSet option is enabled.'); - } + try { + return new SemVer(version, options) + } catch (er) { + return null + } +} - if (hasUnicodeFlag && hasUnicodeSetFlag) { - throw new Error('The "u" and "v" flags are mutually exclusive.'); - } +exports.valid = valid +function valid (version, options) { + var v = parse(version, options) + return v ? v.version : null +} - // Convert the input to a string and treat the empty string special. - str = String(str); - if (str === '') { - str = '(?:)'; - } +exports.clean = clean +function clean (version, options) { + var s = parse(version.trim().replace(/^[=v]+/, ''), options) + return s ? s.version : null +} - var result = parseDisjunction(); +exports.SemVer = SemVer - if (result.range[1] !== str.length) { - bail('Could not parse entire input - got stuck', '', result.range[1]); +function SemVer (version, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false } - - // The spec requires to interpret the `\2` in `/\2()()/` as backreference. - // As the parser collects the number of capture groups as the string is - // parsed it is impossible to make these decisions at the point when the - // `\2` is handled. In case the local decision turns out to be wrong after - // the parsing has finished, the input string is parsed a second time with - // the total number of capture groups set. - // - // SEE: https://github.com/jviereck/regjsparser/issues/70 - shouldReparse = shouldReparse || backrefDenied.some(function (ref) { - return ref <= closedCaptureCounter; - }); - if (shouldReparse) { - // Parse the input a second time. - pos = 0; - firstIteration = false; - return parseDisjunction(); + } + if (version instanceof SemVer) { + if (version.loose === options.loose) { + return version + } else { + version = version.version } - - return result; + } else if (typeof version !== 'string') { + throw new TypeError('Invalid Version: ' + version) } - var regjsparser = { - parse: parse - }; + if (version.length > MAX_LENGTH) { + throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') + } - if ( true && module.exports) { - module.exports = regjsparser; - } else { - window.regjsparser = regjsparser; + if (!(this instanceof SemVer)) { + return new SemVer(version, options) } -}()); + debug('SemVer', version, options) + this.options = options + this.loose = !!options.loose + var m = version.trim().match(options.loose ? safeRe[LOOSE] : safeRe[FULL]) -/***/ }), + if (!m) { + throw new TypeError('Invalid Version: ' + version) + } -/***/ 97001: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + this.raw = version -var async = __nccwpck_require__(86992); -async.core = __nccwpck_require__(81322); -async.isCore = __nccwpck_require__(64229); -async.sync = __nccwpck_require__(18888); + // these are actually numbers + this.major = +m[1] + this.minor = +m[2] + this.patch = +m[3] -module.exports = async; + if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + throw new TypeError('Invalid major version') + } + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + throw new TypeError('Invalid minor version') + } -/***/ }), + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + throw new TypeError('Invalid patch version') + } -/***/ 86992: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + // numberify any prerelease numeric ids + if (!m[4]) { + this.prerelease = [] + } else { + this.prerelease = m[4].split('.').map(function (id) { + if (/^[0-9]+$/.test(id)) { + var num = +id + if (num >= 0 && num < MAX_SAFE_INTEGER) { + return num + } + } + return id + }) + } -var fs = __nccwpck_require__(57147); -var getHomedir = __nccwpck_require__(83500); -var path = __nccwpck_require__(71017); -var caller = __nccwpck_require__(78978); -var nodeModulesPaths = __nccwpck_require__(56010); -var normalizeOptions = __nccwpck_require__(72336); -var isCore = __nccwpck_require__(40431); + this.build = m[5] ? m[5].split('.') : [] + this.format() +} -var realpathFS = fs.realpath && typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath; +SemVer.prototype.format = function () { + this.version = this.major + '.' + this.minor + '.' + this.patch + if (this.prerelease.length) { + this.version += '-' + this.prerelease.join('.') + } + return this.version +} -var homedir = getHomedir(); -var defaultPaths = function () { - return [ - path.join(homedir, '.node_modules'), - path.join(homedir, '.node_libraries') - ]; -}; +SemVer.prototype.toString = function () { + return this.version +} -var defaultIsFile = function isFile(file, cb) { - fs.stat(file, function (err, stat) { - if (!err) { - return cb(null, stat.isFile() || stat.isFIFO()); - } - if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false); - return cb(err); - }); -}; +SemVer.prototype.compare = function (other) { + debug('SemVer.compare', this.version, this.options, other) + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } -var defaultIsDir = function isDirectory(dir, cb) { - fs.stat(dir, function (err, stat) { - if (!err) { - return cb(null, stat.isDirectory()); - } - if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false); - return cb(err); - }); -}; + return this.compareMain(other) || this.comparePre(other) +} -var defaultRealpath = function realpath(x, cb) { - realpathFS(x, function (realpathErr, realPath) { - if (realpathErr && realpathErr.code !== 'ENOENT') cb(realpathErr); - else cb(null, realpathErr ? x : realPath); - }); -}; +SemVer.prototype.compareMain = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } -var maybeRealpath = function maybeRealpath(realpath, x, opts, cb) { - if (opts && opts.preserveSymlinks === false) { - realpath(x, cb); - } else { - cb(null, x); - } -}; + return compareIdentifiers(this.major, other.major) || + compareIdentifiers(this.minor, other.minor) || + compareIdentifiers(this.patch, other.patch) +} -var defaultReadPackage = function defaultReadPackage(readFile, pkgfile, cb) { - readFile(pkgfile, function (readFileErr, body) { - if (readFileErr) cb(readFileErr); - else { - try { - var pkg = JSON.parse(body); - cb(null, pkg); - } catch (jsonErr) { - cb(null); - } - } - }); -}; +SemVer.prototype.comparePre = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } -var getPackageCandidates = function getPackageCandidates(x, start, opts) { - var dirs = nodeModulesPaths(start, opts, x); - for (var i = 0; i < dirs.length; i++) { - dirs[i] = path.join(dirs[i], x); - } - return dirs; -}; + // NOT having a prerelease is > having one + if (this.prerelease.length && !other.prerelease.length) { + return -1 + } else if (!this.prerelease.length && other.prerelease.length) { + return 1 + } else if (!this.prerelease.length && !other.prerelease.length) { + return 0 + } -module.exports = function resolve(x, options, callback) { - var cb = callback; - var opts = options; - if (typeof options === 'function') { - cb = opts; - opts = {}; - } - if (typeof x !== 'string') { - var err = new TypeError('Path must be a string.'); - return process.nextTick(function () { - cb(err); - }); + var i = 0 + do { + var a = this.prerelease[i] + var b = other.prerelease[i] + debug('prerelease compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) } + } while (++i) +} - opts = normalizeOptions(x, opts); +// preminor will bump the version up to the next minor release, and immediately +// down to pre-release. premajor and prepatch work the same way. +SemVer.prototype.inc = function (release, identifier) { + switch (release) { + case 'premajor': + this.prerelease.length = 0 + this.patch = 0 + this.minor = 0 + this.major++ + this.inc('pre', identifier) + break + case 'preminor': + this.prerelease.length = 0 + this.patch = 0 + this.minor++ + this.inc('pre', identifier) + break + case 'prepatch': + // If this is already a prerelease, it will bump to the next version + // drop any prereleases that might already exist, since they are not + // relevant at this point. + this.prerelease.length = 0 + this.inc('patch', identifier) + this.inc('pre', identifier) + break + // If the input is a non-prerelease version, this acts the same as + // prepatch. + case 'prerelease': + if (this.prerelease.length === 0) { + this.inc('patch', identifier) + } + this.inc('pre', identifier) + break - var isFile = opts.isFile || defaultIsFile; - var isDirectory = opts.isDirectory || defaultIsDir; - var readFile = opts.readFile || fs.readFile; - var realpath = opts.realpath || defaultRealpath; - var readPackage = opts.readPackage || defaultReadPackage; - if (opts.readFile && opts.readPackage) { - var conflictErr = new TypeError('`readFile` and `readPackage` are mutually exclusive.'); - return process.nextTick(function () { - cb(conflictErr); - }); - } - var packageIterator = opts.packageIterator; - - var extensions = opts.extensions || ['.js']; - var includeCoreModules = opts.includeCoreModules !== false; - var basedir = opts.basedir || path.dirname(caller()); - var parent = opts.filename || basedir; - - opts.paths = opts.paths || defaultPaths(); - - // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory - var absoluteStart = path.resolve(basedir); - - maybeRealpath( - realpath, - absoluteStart, - opts, - function (err, realStart) { - if (err) cb(err); - else init(realStart); + case 'major': + // If this is a pre-major version, bump up to the same major version. + // Otherwise increment major. + // 1.0.0-5 bumps to 1.0.0 + // 1.1.0 bumps to 2.0.0 + if (this.minor !== 0 || + this.patch !== 0 || + this.prerelease.length === 0) { + this.major++ + } + this.minor = 0 + this.patch = 0 + this.prerelease = [] + break + case 'minor': + // If this is a pre-minor version, bump up to the same minor version. + // Otherwise increment minor. + // 1.2.0-5 bumps to 1.2.0 + // 1.2.1 bumps to 1.3.0 + if (this.patch !== 0 || this.prerelease.length === 0) { + this.minor++ + } + this.patch = 0 + this.prerelease = [] + break + case 'patch': + // If this is not a pre-release version, it will increment the patch. + // If it is a pre-release it will bump up to the same patch version. + // 1.2.0-5 patches to 1.2.0 + // 1.2.0 patches to 1.2.1 + if (this.prerelease.length === 0) { + this.patch++ + } + this.prerelease = [] + break + // This probably shouldn't be used publicly. + // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. + case 'pre': + if (this.prerelease.length === 0) { + this.prerelease = [0] + } else { + var i = this.prerelease.length + while (--i >= 0) { + if (typeof this.prerelease[i] === 'number') { + this.prerelease[i]++ + i = -2 + } } - ); - - var res; - function init(basedir) { - if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) { - res = path.resolve(basedir, x); - if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/'; - if ((/\/$/).test(x) && res === basedir) { - loadAsDirectory(res, opts.package, onfile); - } else loadAsFile(res, opts.package, onfile); - } else if (includeCoreModules && isCore(x)) { - return cb(null, x); - } else loadNodeModules(x, basedir, function (err, n, pkg) { - if (err) cb(err); - else if (n) { - return maybeRealpath(realpath, n, opts, function (err, realN) { - if (err) { - cb(err); - } else { - cb(null, realN, pkg); - } - }); - } else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - moduleError.code = 'MODULE_NOT_FOUND'; - cb(moduleError); - } - }); - } - - function onfile(err, m, pkg) { - if (err) cb(err); - else if (m) cb(null, m, pkg); - else loadAsDirectory(res, function (err, d, pkg) { - if (err) cb(err); - else if (d) { - maybeRealpath(realpath, d, opts, function (err, realD) { - if (err) { - cb(err); - } else { - cb(null, realD, pkg); - } - }); - } else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - moduleError.code = 'MODULE_NOT_FOUND'; - cb(moduleError); - } - }); - } - - function loadAsFile(x, thePackage, callback) { - var loadAsFilePackage = thePackage; - var cb = callback; - if (typeof loadAsFilePackage === 'function') { - cb = loadAsFilePackage; - loadAsFilePackage = undefined; + if (i === -1) { + // didn't increment anything + this.prerelease.push(0) + } + } + if (identifier) { + // 1.2.0-beta.1 bumps to 1.2.0-beta.2, + // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 + if (this.prerelease[0] === identifier) { + if (isNaN(this.prerelease[1])) { + this.prerelease = [identifier, 0] + } + } else { + this.prerelease = [identifier, 0] } + } + break - var exts = [''].concat(extensions); - load(exts, x, loadAsFilePackage); + default: + throw new Error('invalid increment argument: ' + release) + } + this.format() + this.raw = this.version + return this +} - function load(exts, x, loadPackage) { - if (exts.length === 0) return cb(null, undefined, loadPackage); - var file = x + exts[0]; +exports.inc = inc +function inc (version, release, loose, identifier) { + if (typeof (loose) === 'string') { + identifier = loose + loose = undefined + } - var pkg = loadPackage; - if (pkg) onpkg(null, pkg); - else loadpkg(path.dirname(file), onpkg); + try { + return new SemVer(version, loose).inc(release, identifier).version + } catch (er) { + return null + } +} - function onpkg(err, pkg_, dir) { - pkg = pkg_; - if (err) return cb(err); - if (dir && pkg && opts.pathFilter) { - var rfile = path.relative(dir, file); - var rel = rfile.slice(0, rfile.length - exts[0].length); - var r = opts.pathFilter(pkg, x, rel); - if (r) return load( - [''].concat(extensions.slice()), - path.resolve(dir, r), - pkg - ); - } - isFile(file, onex); - } - function onex(err, ex) { - if (err) return cb(err); - if (ex) return cb(null, file, pkg); - load(exts.slice(1), x, pkg); - } +exports.diff = diff +function diff (version1, version2) { + if (eq(version1, version2)) { + return null + } else { + var v1 = parse(version1) + var v2 = parse(version2) + var prefix = '' + if (v1.prerelease.length || v2.prerelease.length) { + prefix = 'pre' + var defaultResult = 'prerelease' + } + for (var key in v1) { + if (key === 'major' || key === 'minor' || key === 'patch') { + if (v1[key] !== v2[key]) { + return prefix + key } + } } + return defaultResult // may be undefined + } +} - function loadpkg(dir, cb) { - if (dir === '' || dir === '/') return cb(null); - if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) { - return cb(null); - } - if ((/[/\\]node_modules[/\\]*$/).test(dir)) return cb(null); +exports.compareIdentifiers = compareIdentifiers - maybeRealpath(realpath, dir, opts, function (unwrapErr, pkgdir) { - if (unwrapErr) return loadpkg(path.dirname(dir), cb); - var pkgfile = path.join(pkgdir, 'package.json'); - isFile(pkgfile, function (err, ex) { - // on err, ex is false - if (!ex) return loadpkg(path.dirname(dir), cb); +var numeric = /^[0-9]+$/ +function compareIdentifiers (a, b) { + var anum = numeric.test(a) + var bnum = numeric.test(b) - readPackage(readFile, pkgfile, function (err, pkgParam) { - if (err) cb(err); + if (anum && bnum) { + a = +a + b = +b + } - var pkg = pkgParam; + return a === b ? 0 + : (anum && !bnum) ? -1 + : (bnum && !anum) ? 1 + : a < b ? -1 + : 1 +} - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } - cb(null, pkg, dir); - }); - }); - }); - } +exports.rcompareIdentifiers = rcompareIdentifiers +function rcompareIdentifiers (a, b) { + return compareIdentifiers(b, a) +} - function loadAsDirectory(x, loadAsDirectoryPackage, callback) { - var cb = callback; - var fpkg = loadAsDirectoryPackage; - if (typeof fpkg === 'function') { - cb = fpkg; - fpkg = opts.package; - } +exports.major = major +function major (a, loose) { + return new SemVer(a, loose).major +} - maybeRealpath(realpath, x, opts, function (unwrapErr, pkgdir) { - if (unwrapErr) return cb(unwrapErr); - var pkgfile = path.join(pkgdir, 'package.json'); - isFile(pkgfile, function (err, ex) { - if (err) return cb(err); - if (!ex) return loadAsFile(path.join(x, 'index'), fpkg, cb); +exports.minor = minor +function minor (a, loose) { + return new SemVer(a, loose).minor +} - readPackage(readFile, pkgfile, function (err, pkgParam) { - if (err) return cb(err); +exports.patch = patch +function patch (a, loose) { + return new SemVer(a, loose).patch +} - var pkg = pkgParam; +exports.compare = compare +function compare (a, b, loose) { + return new SemVer(a, loose).compare(new SemVer(b, loose)) +} - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } +exports.compareLoose = compareLoose +function compareLoose (a, b) { + return compare(a, b, true) +} - if (pkg && pkg.main) { - if (typeof pkg.main !== 'string') { - var mainError = new TypeError('package “' + pkg.name + '” `main` must be a string'); - mainError.code = 'INVALID_PACKAGE_MAIN'; - return cb(mainError); - } - if (pkg.main === '.' || pkg.main === './') { - pkg.main = 'index'; - } - loadAsFile(path.resolve(x, pkg.main), pkg, function (err, m, pkg) { - if (err) return cb(err); - if (m) return cb(null, m, pkg); - if (!pkg) return loadAsFile(path.join(x, 'index'), pkg, cb); +exports.rcompare = rcompare +function rcompare (a, b, loose) { + return compare(b, a, loose) +} - var dir = path.resolve(x, pkg.main); - loadAsDirectory(dir, pkg, function (err, n, pkg) { - if (err) return cb(err); - if (n) return cb(null, n, pkg); - loadAsFile(path.join(x, 'index'), pkg, cb); - }); - }); - return; - } +exports.sort = sort +function sort (list, loose) { + return list.sort(function (a, b) { + return exports.compare(a, b, loose) + }) +} - loadAsFile(path.join(x, '/index'), pkg, cb); - }); - }); - }); - } +exports.rsort = rsort +function rsort (list, loose) { + return list.sort(function (a, b) { + return exports.rcompare(a, b, loose) + }) +} - function processDirs(cb, dirs) { - if (dirs.length === 0) return cb(null, undefined); - var dir = dirs[0]; +exports.gt = gt +function gt (a, b, loose) { + return compare(a, b, loose) > 0 +} - isDirectory(path.dirname(dir), isdir); +exports.lt = lt +function lt (a, b, loose) { + return compare(a, b, loose) < 0 +} - function isdir(err, isdir) { - if (err) return cb(err); - if (!isdir) return processDirs(cb, dirs.slice(1)); - loadAsFile(dir, opts.package, onfile); - } +exports.eq = eq +function eq (a, b, loose) { + return compare(a, b, loose) === 0 +} - function onfile(err, m, pkg) { - if (err) return cb(err); - if (m) return cb(null, m, pkg); - loadAsDirectory(dir, opts.package, ondir); - } +exports.neq = neq +function neq (a, b, loose) { + return compare(a, b, loose) !== 0 +} - function ondir(err, n, pkg) { - if (err) return cb(err); - if (n) return cb(null, n, pkg); - processDirs(cb, dirs.slice(1)); - } - } - function loadNodeModules(x, start, cb) { - var thunk = function () { return getPackageCandidates(x, start, opts); }; - processDirs( - cb, - packageIterator ? packageIterator(x, start, thunk, opts) : thunk() - ); - } -}; +exports.gte = gte +function gte (a, b, loose) { + return compare(a, b, loose) >= 0 +} +exports.lte = lte +function lte (a, b, loose) { + return compare(a, b, loose) <= 0 +} -/***/ }), +exports.cmp = cmp +function cmp (a, op, b, loose) { + switch (op) { + case '===': + if (typeof a === 'object') + a = a.version + if (typeof b === 'object') + b = b.version + return a === b -/***/ 78978: -/***/ (function(module) { + case '!==': + if (typeof a === 'object') + a = a.version + if (typeof b === 'object') + b = b.version + return a !== b -module.exports = function () { - // see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi - var origPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = function (_, stack) { return stack; }; - var stack = (new Error()).stack; - Error.prepareStackTrace = origPrepareStackTrace; - return stack[2].getFileName(); -}; + case '': + case '=': + case '==': + return eq(a, b, loose) + case '!=': + return neq(a, b, loose) -/***/ }), + case '>': + return gt(a, b, loose) -/***/ 81322: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + case '>=': + return gte(a, b, loose) -var current = (process.versions && process.versions.node && process.versions.node.split('.')) || []; + case '<': + return lt(a, b, loose) -function specifierIncluded(specifier) { - var parts = specifier.split(' '); - var op = parts.length > 1 ? parts[0] : '='; - var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.'); + case '<=': + return lte(a, b, loose) - for (var i = 0; i < 3; ++i) { - var cur = parseInt(current[i] || 0, 10); - var ver = parseInt(versionParts[i] || 0, 10); - if (cur === ver) { - continue; // eslint-disable-line no-restricted-syntax, no-continue - } - if (op === '<') { - return cur < ver; - } else if (op === '>=') { - return cur >= ver; - } - return false; - } - return op === '>='; + default: + throw new TypeError('Invalid operator: ' + op) + } } -function matchesRange(range) { - var specifiers = range.split(/ ?&& ?/); - if (specifiers.length === 0) { return false; } - for (var i = 0; i < specifiers.length; ++i) { - if (!specifierIncluded(specifiers[i])) { return false; } +exports.Comparator = Comparator +function Comparator (comp, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false } - return true; -} + } -function versionIncluded(specifierValue) { - if (typeof specifierValue === 'boolean') { return specifierValue; } - if (specifierValue && typeof specifierValue === 'object') { - for (var i = 0; i < specifierValue.length; ++i) { - if (matchesRange(specifierValue[i])) { return true; } - } - return false; + if (comp instanceof Comparator) { + if (comp.loose === !!options.loose) { + return comp + } else { + comp = comp.value } - return matchesRange(specifierValue); -} + } -var data = __nccwpck_require__(7665); + if (!(this instanceof Comparator)) { + return new Comparator(comp, options) + } -var core = {}; -for (var mod in data) { // eslint-disable-line no-restricted-syntax - if (Object.prototype.hasOwnProperty.call(data, mod)) { - core[mod] = versionIncluded(data[mod]); - } -} -module.exports = core; + comp = comp.trim().split(/\s+/).join(' ') + debug('comparator', comp, options) + this.options = options + this.loose = !!options.loose + this.parse(comp) + if (this.semver === ANY) { + this.value = '' + } else { + this.value = this.operator + this.semver.version + } -/***/ }), + debug('comp', this) +} -/***/ 83500: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - - -var os = __nccwpck_require__(22037); - -// adapted from https://github.com/sindresorhus/os-homedir/blob/11e089f4754db38bb535e5a8416320c4446e8cfd/index.js - -module.exports = os.homedir || function homedir() { - var home = process.env.HOME; - var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME; +var ANY = {} +Comparator.prototype.parse = function (comp) { + var r = this.options.loose ? safeRe[COMPARATORLOOSE] : safeRe[COMPARATOR] + var m = comp.match(r) - if (process.platform === 'win32') { - return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null; - } + if (!m) { + throw new TypeError('Invalid comparator: ' + comp) + } - if (process.platform === 'darwin') { - return home || (user ? '/Users/' + user : null); - } + this.operator = m[1] + if (this.operator === '=') { + this.operator = '' + } - if (process.platform === 'linux') { - return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null)); // eslint-disable-line no-extra-parens - } + // if it literally is just '>' or '' then allow anything. + if (!m[2]) { + this.semver = ANY + } else { + this.semver = new SemVer(m[2], this.options.loose) + } +} - return home || null; -}; +Comparator.prototype.toString = function () { + return this.value +} +Comparator.prototype.test = function (version) { + debug('Comparator.test', version, this.options.loose) -/***/ }), + if (this.semver === ANY) { + return true + } -/***/ 64229: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + if (typeof version === 'string') { + version = new SemVer(version, this.options) + } -var isCoreModule = __nccwpck_require__(40431); + return cmp(version, this.operator, this.semver, this.options) +} -module.exports = function isCore(x) { - return isCoreModule(x); -}; +Comparator.prototype.intersects = function (comp, options) { + if (!(comp instanceof Comparator)) { + throw new TypeError('a Comparator is required') + } + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } -/***/ }), + var rangeTmp -/***/ 56010: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + if (this.operator === '') { + rangeTmp = new Range(comp.value, options) + return satisfies(this.value, rangeTmp, options) + } else if (comp.operator === '') { + rangeTmp = new Range(this.value, options) + return satisfies(comp.semver, rangeTmp, options) + } -var path = __nccwpck_require__(71017); -var parse = path.parse || __nccwpck_require__(14187); // eslint-disable-line global-require + var sameDirectionIncreasing = + (this.operator === '>=' || this.operator === '>') && + (comp.operator === '>=' || comp.operator === '>') + var sameDirectionDecreasing = + (this.operator === '<=' || this.operator === '<') && + (comp.operator === '<=' || comp.operator === '<') + var sameSemVer = this.semver.version === comp.semver.version + var differentDirectionsInclusive = + (this.operator === '>=' || this.operator === '<=') && + (comp.operator === '>=' || comp.operator === '<=') + var oppositeDirectionsLessThan = + cmp(this.semver, '<', comp.semver, options) && + ((this.operator === '>=' || this.operator === '>') && + (comp.operator === '<=' || comp.operator === '<')) + var oppositeDirectionsGreaterThan = + cmp(this.semver, '>', comp.semver, options) && + ((this.operator === '<=' || this.operator === '<') && + (comp.operator === '>=' || comp.operator === '>')) -var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) { - var prefix = '/'; - if ((/^([A-Za-z]:)/).test(absoluteStart)) { - prefix = ''; - } else if ((/^\\\\/).test(absoluteStart)) { - prefix = '\\\\'; - } + return sameDirectionIncreasing || sameDirectionDecreasing || + (sameSemVer && differentDirectionsInclusive) || + oppositeDirectionsLessThan || oppositeDirectionsGreaterThan +} - var paths = [absoluteStart]; - var parsed = parse(absoluteStart); - while (parsed.dir !== paths[paths.length - 1]) { - paths.push(parsed.dir); - parsed = parse(parsed.dir); +exports.Range = Range +function Range (range, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false } + } - return paths.reduce(function (dirs, aPath) { - return dirs.concat(modules.map(function (moduleDir) { - return path.resolve(prefix, aPath, moduleDir); - })); - }, []); -}; - -module.exports = function nodeModulesPaths(start, opts, request) { - var modules = opts && opts.moduleDirectory - ? [].concat(opts.moduleDirectory) - : ['node_modules']; - - if (opts && typeof opts.paths === 'function') { - return opts.paths( - request, - start, - function () { return getNodeModulesDirs(start, modules); }, - opts - ); + if (range instanceof Range) { + if (range.loose === !!options.loose && + range.includePrerelease === !!options.includePrerelease) { + return range + } else { + return new Range(range.raw, options) } + } - var dirs = getNodeModulesDirs(start, modules); - return opts && opts.paths ? dirs.concat(opts.paths) : dirs; -}; - - -/***/ }), + if (range instanceof Comparator) { + return new Range(range.value, options) + } -/***/ 72336: -/***/ (function(module) { + if (!(this instanceof Range)) { + return new Range(range, options) + } -module.exports = function (x, opts) { - /** - * This file is purposefully a passthrough. It's expected that third-party - * environments will override it at runtime in order to inject special logic - * into `resolve` (by manipulating the options). One such example is the PnP - * code path in Yarn. - */ + this.options = options + this.loose = !!options.loose + this.includePrerelease = !!options.includePrerelease - return opts || {}; -}; + // First reduce all whitespace as much as possible so we do not have to rely + // on potentially slow regexes like \s*. This is then stored and used for + // future error messages as well. + this.raw = range + .trim() + .split(/\s+/) + .join(' ') + // First, split based on boolean or || + this.set = this.raw.split('||').map(function (range) { + return this.parseRange(range.trim()) + }, this).filter(function (c) { + // throw out any that are not relevant for whatever reason + return c.length + }) -/***/ }), + if (!this.set.length) { + throw new TypeError('Invalid SemVer Range: ' + this.raw) + } -/***/ 18888: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + this.format() +} -var isCore = __nccwpck_require__(40431); -var fs = __nccwpck_require__(57147); -var path = __nccwpck_require__(71017); -var getHomedir = __nccwpck_require__(83500); -var caller = __nccwpck_require__(78978); -var nodeModulesPaths = __nccwpck_require__(56010); -var normalizeOptions = __nccwpck_require__(72336); +Range.prototype.format = function () { + this.range = this.set.map(function (comps) { + return comps.join(' ').trim() + }).join('||').trim() + return this.range +} -var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync; +Range.prototype.toString = function () { + return this.range +} -var homedir = getHomedir(); -var defaultPaths = function () { - return [ - path.join(homedir, '.node_modules'), - path.join(homedir, '.node_libraries') - ]; -}; +Range.prototype.parseRange = function (range) { + var loose = this.options.loose + // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` + var hr = loose ? safeRe[HYPHENRANGELOOSE] : safeRe[HYPHENRANGE] + range = range.replace(hr, hyphenReplace) + debug('hyphen replace', range) + // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` + range = range.replace(safeRe[COMPARATORTRIM], comparatorTrimReplace) + debug('comparator trim', range, safeRe[COMPARATORTRIM]) -var defaultIsFile = function isFile(file) { - try { - var stat = fs.statSync(file, { throwIfNoEntry: false }); - } catch (e) { - if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false; - throw e; - } - return !!stat && (stat.isFile() || stat.isFIFO()); -}; + // `~ 1.2.3` => `~1.2.3` + range = range.replace(safeRe[TILDETRIM], tildeTrimReplace) -var defaultIsDir = function isDirectory(dir) { - try { - var stat = fs.statSync(dir, { throwIfNoEntry: false }); - } catch (e) { - if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false; - throw e; - } - return !!stat && stat.isDirectory(); -}; + // `^ 1.2.3` => `^1.2.3` + range = range.replace(safeRe[CARETTRIM], caretTrimReplace) -var defaultRealpathSync = function realpathSync(x) { - try { - return realpathFS(x); - } catch (realpathErr) { - if (realpathErr.code !== 'ENOENT') { - throw realpathErr; - } - } - return x; -}; + // At this point, the range is completely trimmed and + // ready to be split into comparators. + var compRe = loose ? safeRe[COMPARATORLOOSE] : safeRe[COMPARATOR] + var set = range.split(' ').map(function (comp) { + return parseComparator(comp, this.options) + }, this).join(' ').split(/\s+/) + if (this.options.loose) { + // in loose mode, throw out any that are not valid comparators + set = set.filter(function (comp) { + return !!comp.match(compRe) + }) + } + set = set.map(function (comp) { + return new Comparator(comp, this.options) + }, this) -var maybeRealpathSync = function maybeRealpathSync(realpathSync, x, opts) { - if (opts && opts.preserveSymlinks === false) { - return realpathSync(x); - } - return x; -}; + return set +} -var defaultReadPackageSync = function defaultReadPackageSync(readFileSync, pkgfile) { - var body = readFileSync(pkgfile); - try { - var pkg = JSON.parse(body); - return pkg; - } catch (jsonErr) {} -}; +Range.prototype.intersects = function (range, options) { + if (!(range instanceof Range)) { + throw new TypeError('a Range is required') + } -var getPackageCandidates = function getPackageCandidates(x, start, opts) { - var dirs = nodeModulesPaths(start, opts, x); - for (var i = 0; i < dirs.length; i++) { - dirs[i] = path.join(dirs[i], x); - } - return dirs; -}; + return this.set.some(function (thisComparators) { + return thisComparators.every(function (thisComparator) { + return range.set.some(function (rangeComparators) { + return rangeComparators.every(function (rangeComparator) { + return thisComparator.intersects(rangeComparator, options) + }) + }) + }) + }) +} -module.exports = function resolveSync(x, options) { - if (typeof x !== 'string') { - throw new TypeError('Path must be a string.'); - } - var opts = normalizeOptions(x, options); +// Mostly just for testing and legacy API reasons +exports.toComparators = toComparators +function toComparators (range, options) { + return new Range(range, options).set.map(function (comp) { + return comp.map(function (c) { + return c.value + }).join(' ').trim().split(' ') + }) +} - var isFile = opts.isFile || defaultIsFile; - var readFileSync = opts.readFileSync || fs.readFileSync; - var isDirectory = opts.isDirectory || defaultIsDir; - var realpathSync = opts.realpathSync || defaultRealpathSync; - var readPackageSync = opts.readPackageSync || defaultReadPackageSync; - if (opts.readFileSync && opts.readPackageSync) { - throw new TypeError('`readFileSync` and `readPackageSync` are mutually exclusive.'); - } - var packageIterator = opts.packageIterator; +// comprised of xranges, tildes, stars, and gtlt's at this point. +// already replaced the hyphen ranges +// turn into a set of JUST comparators. +function parseComparator (comp, options) { + debug('comp', comp, options) + comp = replaceCarets(comp, options) + debug('caret', comp) + comp = replaceTildes(comp, options) + debug('tildes', comp) + comp = replaceXRanges(comp, options) + debug('xrange', comp) + comp = replaceStars(comp, options) + debug('stars', comp) + return comp +} - var extensions = opts.extensions || ['.js']; - var includeCoreModules = opts.includeCoreModules !== false; - var basedir = opts.basedir || path.dirname(caller()); - var parent = opts.filename || basedir; +function isX (id) { + return !id || id.toLowerCase() === 'x' || id === '*' +} - opts.paths = opts.paths || defaultPaths(); +// ~, ~> --> * (any, kinda silly) +// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 +// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 +// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 +// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 +// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 +function replaceTildes (comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceTilde(comp, options) + }).join(' ') +} - // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory - var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts); +function replaceTilde (comp, options) { + var r = options.loose ? safeRe[TILDELOOSE] : safeRe[TILDE] + return comp.replace(r, function (_, M, m, p, pr) { + debug('tilde', comp, _, M, m, p, pr) + var ret - if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) { - var res = path.resolve(absoluteStart, x); - if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/'; - var m = loadAsFileSync(res) || loadAsDirectorySync(res); - if (m) return maybeRealpathSync(realpathSync, m, opts); - } else if (includeCoreModules && isCore(x)) { - return x; + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (isX(p)) { + // ~1.2 == >=1.2.0 <1.3.0 + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } else if (pr) { + debug('replaceTilde pr', pr) + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + (+m + 1) + '.0' } else { - var n = loadNodeModulesSync(x, absoluteStart); - if (n) return maybeRealpathSync(realpathSync, n, opts); + // ~1.2.3 == >=1.2.3 <1.3.0 + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + (+m + 1) + '.0' } - var err = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - err.code = 'MODULE_NOT_FOUND'; - throw err; + debug('tilde return', ret) + return ret + }) +} - function loadAsFileSync(x) { - var pkg = loadpkg(path.dirname(x)); +// ^ --> * (any, kinda silly) +// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 +// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 +// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 +// ^1.2.3 --> >=1.2.3 <2.0.0 +// ^1.2.0 --> >=1.2.0 <2.0.0 +function replaceCarets (comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceCaret(comp, options) + }).join(' ') +} - if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) { - var rfile = path.relative(pkg.dir, x); - var r = opts.pathFilter(pkg.pkg, x, rfile); - if (r) { - x = path.resolve(pkg.dir, r); // eslint-disable-line no-param-reassign - } - } +function replaceCaret (comp, options) { + debug('caret', comp, options) + var r = options.loose ? safeRe[CARETLOOSE] : safeRe[CARET] + return comp.replace(r, function (_, M, m, p, pr) { + debug('caret', comp, _, M, m, p, pr) + var ret - if (isFile(x)) { - return x; + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (isX(p)) { + if (M === '0') { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } else { + ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' + } + } else if (pr) { + debug('replaceCaret pr', pr) + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + m + '.' + (+p + 1) + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + (+m + 1) + '.0' } - - for (var i = 0; i < extensions.length; i++) { - var file = x + extensions[i]; - if (isFile(file)) { - return file; - } + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + (+M + 1) + '.0.0' + } + } else { + debug('no pr') + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + m + '.' + (+p + 1) + } else { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + (+m + 1) + '.0' } + } else { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + (+M + 1) + '.0.0' + } } - function loadpkg(dir) { - if (dir === '' || dir === '/') return; - if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) { - return; - } - if ((/[/\\]node_modules[/\\]*$/).test(dir)) return; - - var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), 'package.json'); - - if (!isFile(pkgfile)) { - return loadpkg(path.dirname(dir)); - } + debug('caret return', ret) + return ret + }) +} - var pkg = readPackageSync(readFileSync, pkgfile); +function replaceXRanges (comp, options) { + debug('replaceXRanges', comp, options) + return comp.split(/\s+/).map(function (comp) { + return replaceXRange(comp, options) + }).join(' ') +} - if (pkg && opts.packageFilter) { - // v2 will pass pkgfile - pkg = opts.packageFilter(pkg, /*pkgfile,*/ dir); // eslint-disable-line spaced-comment - } +function replaceXRange (comp, options) { + comp = comp.trim() + var r = options.loose ? safeRe[XRANGELOOSE] : safeRe[XRANGE] + return comp.replace(r, function (ret, gtlt, M, m, p, pr) { + debug('xRange', comp, ret, gtlt, M, m, p, pr) + var xM = isX(M) + var xm = xM || isX(m) + var xp = xm || isX(p) + var anyX = xp - return { pkg: pkg, dir: dir }; + if (gtlt === '=' && anyX) { + gtlt = '' } - function loadAsDirectorySync(x) { - var pkgfile = path.join(maybeRealpathSync(realpathSync, x, opts), '/package.json'); - if (isFile(pkgfile)) { - try { - var pkg = readPackageSync(readFileSync, pkgfile); - } catch (e) {} - - if (pkg && opts.packageFilter) { - // v2 will pass pkgfile - pkg = opts.packageFilter(pkg, /*pkgfile,*/ x); // eslint-disable-line spaced-comment - } - - if (pkg && pkg.main) { - if (typeof pkg.main !== 'string') { - var mainError = new TypeError('package “' + pkg.name + '” `main` must be a string'); - mainError.code = 'INVALID_PACKAGE_MAIN'; - throw mainError; - } - if (pkg.main === '.' || pkg.main === './') { - pkg.main = 'index'; - } - try { - var m = loadAsFileSync(path.resolve(x, pkg.main)); - if (m) return m; - var n = loadAsDirectorySync(path.resolve(x, pkg.main)); - if (n) return n; - } catch (e) {} - } + if (xM) { + if (gtlt === '>' || gtlt === '<') { + // nothing is allowed + ret = '<0.0.0' + } else { + // nothing is forbidden + ret = '*' + } + } else if (gtlt && anyX) { + // we know patch is an x, because we have any x at all. + // replace X with 0 + if (xm) { + m = 0 + } + p = 0 + + if (gtlt === '>') { + // >1 => >=2.0.0 + // >1.2 => >=1.3.0 + // >1.2.3 => >= 1.2.4 + gtlt = '>=' + if (xm) { + M = +M + 1 + m = 0 + p = 0 + } else { + m = +m + 1 + p = 0 + } + } else if (gtlt === '<=') { + // <=0.7.x is actually <0.8.0, since any 0.7.x should + // pass. Similarly, <=7.x is actually <8.0.0, etc. + gtlt = '<' + if (xm) { + M = +M + 1 + } else { + m = +m + 1 } + } - return loadAsFileSync(path.join(x, '/index')); + ret = gtlt + M + '.' + m + '.' + p + } else if (xm) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (xp) { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' } - function loadNodeModulesSync(x, start) { - var thunk = function () { return getPackageCandidates(x, start, opts); }; - var dirs = packageIterator ? packageIterator(x, start, thunk, opts) : thunk(); + debug('xRange return', ret) - for (var i = 0; i < dirs.length; i++) { - var dir = dirs[i]; - if (isDirectory(path.dirname(dir))) { - var m = loadAsFileSync(dir); - if (m) return m; - var n = loadAsDirectorySync(dir); - if (n) return n; - } - } + return ret + }) +} + +// Because * is AND-ed with everything else in the comparator, +// and '' means "any version", just remove the *s entirely. +function replaceStars (comp, options) { + debug('replaceStars', comp, options) + // Looseness is ignored here. star is always as loose as it gets! + return comp.trim().replace(safeRe[STAR], '') +} + +// This function is passed to string.replace(safeRe[HYPHENRANGE]) +// M, m, patch, prerelease, build +// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 +// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do +// 1.2 - 3.4 => >=1.2.0 <3.5.0 +function hyphenReplace ($0, + from, fM, fm, fp, fpr, fb, + to, tM, tm, tp, tpr, tb) { + if (isX(fM)) { + from = '' + } else if (isX(fm)) { + from = '>=' + fM + '.0.0' + } else if (isX(fp)) { + from = '>=' + fM + '.' + fm + '.0' + } else { + from = '>=' + from + } + + if (isX(tM)) { + to = '' + } else if (isX(tm)) { + to = '<' + (+tM + 1) + '.0.0' + } else if (isX(tp)) { + to = '<' + tM + '.' + (+tm + 1) + '.0' + } else if (tpr) { + to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr + } else { + to = '<=' + to + } + + return (from + ' ' + to).trim() +} + +// if ANY of the sets match ALL of its comparators, then pass +Range.prototype.test = function (version) { + if (!version) { + return false + } + + if (typeof version === 'string') { + version = new SemVer(version, this.options) + } + + for (var i = 0; i < this.set.length; i++) { + if (testSet(this.set[i], version, this.options)) { + return true } -}; + } + return false +} +function testSet (set, version, options) { + for (var i = 0; i < set.length; i++) { + if (!set[i].test(version)) { + return false + } + } -/***/ }), + if (version.prerelease.length && !options.includePrerelease) { + // Find the set of versions that are allowed to have prereleases + // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 + // That should allow `1.2.3-pr.2` to pass. + // However, `1.2.4-alpha.notready` should NOT be allowed, + // even though it's within the range set by the comparators. + for (i = 0; i < set.length; i++) { + debug(set[i].semver) + if (set[i].semver === ANY) { + continue + } -/***/ 23767: -/***/ (function(module, exports, __nccwpck_require__) { + if (set[i].semver.prerelease.length > 0) { + var allowed = set[i].semver + if (allowed.major === version.major && + allowed.minor === version.minor && + allowed.patch === version.patch) { + return true + } + } + } -/* eslint-disable node/no-deprecated-api */ -var buffer = __nccwpck_require__(14300) -var Buffer = buffer.Buffer + // Version has a -pre, but it's not one of the ones we like. + return false + } -// alternative to using Object.keys for old browsers -function copyProps (src, dst) { - for (var key in src) { - dst[key] = src[key] + return true +} + +exports.satisfies = satisfies +function satisfies (version, range, options) { + try { + range = new Range(range, options) + } catch (er) { + return false } + return range.test(version) } -if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { - module.exports = buffer -} else { - // Copy properties from require('buffer') - copyProps(buffer, exports) - exports.Buffer = SafeBuffer + +exports.maxSatisfying = maxSatisfying +function maxSatisfying (versions, range, options) { + var max = null + var maxSV = null + try { + var rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!max || maxSV.compare(v) === -1) { + // compare(max, v, true) + max = v + maxSV = new SemVer(max, options) + } + } + }) + return max } -function SafeBuffer (arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length) +exports.minSatisfying = minSatisfying +function minSatisfying (versions, range, options) { + var min = null + var minSV = null + try { + var rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!min || minSV.compare(v) === 1) { + // compare(min, v, true) + min = v + minSV = new SemVer(min, options) + } + } + }) + return min } -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer) +exports.minVersion = minVersion +function minVersion (range, loose) { + range = new Range(range, loose) + + var minver = new SemVer('0.0.0') + if (range.test(minver)) { + return minver + } + + minver = new SemVer('0.0.0-0') + if (range.test(minver)) { + return minver + } + + minver = null + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i] + + comparators.forEach(function (comparator) { + // Clone to avoid manipulating the comparator's semver object. + var compver = new SemVer(comparator.semver.version) + switch (comparator.operator) { + case '>': + if (compver.prerelease.length === 0) { + compver.patch++ + } else { + compver.prerelease.push(0) + } + compver.raw = compver.format() + /* fallthrough */ + case '': + case '>=': + if (!minver || gt(minver, compver)) { + minver = compver + } + break + case '<': + case '<=': + /* Ignore maximum versions */ + break + /* istanbul ignore next */ + default: + throw new Error('Unexpected operation: ' + comparator.operator) + } + }) + } + + if (minver && range.test(minver)) { + return minver + } + + return null +} -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number') +exports.validRange = validRange +function validRange (range, options) { + try { + // Return '*' instead of '' so that truthiness works. + // This will throw if it's invalid anyway + return new Range(range, options).range || '*' + } catch (er) { + return null } - return Buffer(arg, encodingOrOffset, length) } -SafeBuffer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') +// Determine if version is less than all the versions possible in the range +exports.ltr = ltr +function ltr (version, range, options) { + return outside(version, range, '<', options) +} + +// Determine if version is greater than all the versions possible in the range. +exports.gtr = gtr +function gtr (version, range, options) { + return outside(version, range, '>', options) +} + +exports.outside = outside +function outside (version, range, hilo, options) { + version = new SemVer(version, options) + range = new Range(range, options) + + var gtfn, ltefn, ltfn, comp, ecomp + switch (hilo) { + case '>': + gtfn = gt + ltefn = lte + ltfn = lt + comp = '>' + ecomp = '>=' + break + case '<': + gtfn = lt + ltefn = gte + ltfn = gt + comp = '<' + ecomp = '<=' + break + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } + + // If it satisifes the range it is not outside + if (satisfies(version, range, options)) { + return false } - var buf = Buffer(size) - if (fill !== undefined) { - if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) + + // From now on, variable terms are as if we're in "gtr" mode. + // but note that everything is flipped for the "ltr" function. + + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i] + + var high = null + var low = null + + comparators.forEach(function (comparator) { + if (comparator.semver === ANY) { + comparator = new Comparator('>=0.0.0') + } + high = high || comparator + low = low || comparator + if (gtfn(comparator.semver, high.semver, options)) { + high = comparator + } else if (ltfn(comparator.semver, low.semver, options)) { + low = comparator + } + }) + + // If the edge version comparator has a operator then our version + // isn't outside it + if (high.operator === comp || high.operator === ecomp) { + return false + } + + // If the lowest version comparator has an operator and our version + // is less than it then it isn't higher than the range + if ((!low.operator || low.operator === comp) && + ltefn(version, low.semver)) { + return false + } else if (low.operator === ecomp && ltfn(version, low.semver)) { + return false } - } else { - buf.fill(0) } - return buf + return true } -SafeBuffer.allocUnsafe = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return Buffer(size) +exports.prerelease = prerelease +function prerelease (version, options) { + var parsed = parse(version, options) + return (parsed && parsed.prerelease.length) ? parsed.prerelease : null +} + +exports.intersects = intersects +function intersects (r1, r2, options) { + r1 = new Range(r1, options) + r2 = new Range(r2, options) + return r1.intersects(r2) } -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') +exports.coerce = coerce +function coerce (version) { + if (version instanceof SemVer) { + return version + } + + if (typeof version !== 'string') { + return null } - return buffer.SlowBuffer(size) + + var match = version.match(safeRe[COERCE]) + + if (match == null) { + return null + } + + return parse(match[1] + + '.' + (match[2] || '0') + + '.' + (match[3] || '0')) } /***/ }), -/***/ 76185: +/***/ 72641: /***/ (function(module, exports) { exports = module.exports = SemVer @@ -21748,78 +20859,111 @@ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || // Max safe segment length for coercion. var MAX_SAFE_COMPONENT_LENGTH = 16 +var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 + // The actual regexps go on exports.re var re = exports.re = [] +var safeRe = exports.safeRe = [] var src = exports.src = [] +var t = exports.tokens = {} var R = 0 +function tok (n) { + t[n] = R++ +} + +var LETTERDASHNUMBER = '[a-zA-Z0-9-]' + +// Replace some greedy regex tokens to prevent regex dos issues. These regex are +// used internally via the safeRe object since all inputs in this library get +// normalized first to trim and collapse all extra whitespace. The original +// regexes are exported for userland consumption and lower level usage. A +// future breaking change could export the safer regex only with a note that +// all input should have extra whitespace removed. +var safeRegexReplacements = [ + ['\\s', 1], + ['\\d', MAX_LENGTH], + [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], +] + +function makeSafeRe (value) { + for (var i = 0; i < safeRegexReplacements.length; i++) { + var token = safeRegexReplacements[i][0] + var max = safeRegexReplacements[i][1] + value = value + .split(token + '*').join(token + '{0,' + max + '}') + .split(token + '+').join(token + '{1,' + max + '}') + } + return value +} + // The following Regular Expressions can be used for tokenizing, // validating, and parsing SemVer version strings. // ## Numeric Identifier // A single `0`, or a non-zero digit followed by zero or more digits. -var NUMERICIDENTIFIER = R++ -src[NUMERICIDENTIFIER] = '0|[1-9]\\d*' -var NUMERICIDENTIFIERLOOSE = R++ -src[NUMERICIDENTIFIERLOOSE] = '[0-9]+' +tok('NUMERICIDENTIFIER') +src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*' +tok('NUMERICIDENTIFIERLOOSE') +src[t.NUMERICIDENTIFIERLOOSE] = '\\d+' // ## Non-numeric Identifier // Zero or more digits, followed by a letter or hyphen, and then zero or // more letters, digits, or hyphens. -var NONNUMERICIDENTIFIER = R++ -src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*' +tok('NONNUMERICIDENTIFIER') +src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*' // ## Main Version // Three dot-separated numeric identifiers. -var MAINVERSION = R++ -src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')' +tok('MAINVERSION') +src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + + '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + + '(' + src[t.NUMERICIDENTIFIER] + ')' -var MAINVERSIONLOOSE = R++ -src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')' +tok('MAINVERSIONLOOSE') +src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')' // ## Pre-release Version Identifier // A numeric identifier, or a non-numeric identifier. -var PRERELEASEIDENTIFIER = R++ -src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] + - '|' + src[NONNUMERICIDENTIFIER] + ')' +tok('PRERELEASEIDENTIFIER') +src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] + + '|' + src[t.NONNUMERICIDENTIFIER] + ')' -var PRERELEASEIDENTIFIERLOOSE = R++ -src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + - '|' + src[NONNUMERICIDENTIFIER] + ')' +tok('PRERELEASEIDENTIFIERLOOSE') +src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] + + '|' + src[t.NONNUMERICIDENTIFIER] + ')' // ## Pre-release Version // Hyphen, followed by one or more dot-separated pre-release version // identifiers. -var PRERELEASE = R++ -src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + - '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))' +tok('PRERELEASE') +src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] + + '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))' -var PRERELEASELOOSE = R++ -src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + - '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))' +tok('PRERELEASELOOSE') +src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] + + '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))' // ## Build Metadata Identifier // Any combination of digits, letters, or hyphens. -var BUILDIDENTIFIER = R++ -src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+' +tok('BUILDIDENTIFIER') +src[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+' // ## Build Metadata // Plus sign, followed by one or more period-separated build metadata // identifiers. -var BUILD = R++ -src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + - '(?:\\.' + src[BUILDIDENTIFIER] + ')*))' +tok('BUILD') +src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] + + '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))' // ## Full Version String // A main version, followed optionally by a pre-release version and @@ -21830,129 +20974,137 @@ src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + // capturing group, because it should not ever be used in version // comparison. -var FULL = R++ -var FULLPLAIN = 'v?' + src[MAINVERSION] + - src[PRERELEASE] + '?' + - src[BUILD] + '?' +tok('FULL') +tok('FULLPLAIN') +src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] + + src[t.PRERELEASE] + '?' + + src[t.BUILD] + '?' -src[FULL] = '^' + FULLPLAIN + '$' +src[t.FULL] = '^' + src[t.FULLPLAIN] + '$' // like full, but allows v1.2.3 and =1.2.3, which people do sometimes. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty // common in the npm registry. -var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] + - src[PRERELEASELOOSE] + '?' + - src[BUILD] + '?' +tok('LOOSEPLAIN') +src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] + + src[t.PRERELEASELOOSE] + '?' + + src[t.BUILD] + '?' -var LOOSE = R++ -src[LOOSE] = '^' + LOOSEPLAIN + '$' +tok('LOOSE') +src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$' -var GTLT = R++ -src[GTLT] = '((?:<|>)?=?)' +tok('GTLT') +src[t.GTLT] = '((?:<|>)?=?)' // Something like "2.*" or "1.2.x". // Note that "x.x" is a valid xRange identifer, meaning "any version" // Only the first item is strictly required. -var XRANGEIDENTIFIERLOOSE = R++ -src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' -var XRANGEIDENTIFIER = R++ -src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*' +tok('XRANGEIDENTIFIERLOOSE') +src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' +tok('XRANGEIDENTIFIER') +src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*' -var XRANGEPLAIN = R++ -src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:' + src[PRERELEASE] + ')?' + - src[BUILD] + '?' + +tok('XRANGEPLAIN') +src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + + '(?:' + src[t.PRERELEASE] + ')?' + + src[t.BUILD] + '?' + ')?)?' -var XRANGEPLAINLOOSE = R++ -src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:' + src[PRERELEASELOOSE] + ')?' + - src[BUILD] + '?' + +tok('XRANGEPLAINLOOSE') +src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + + '(?:' + src[t.PRERELEASELOOSE] + ')?' + + src[t.BUILD] + '?' + ')?)?' -var XRANGE = R++ -src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$' -var XRANGELOOSE = R++ -src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$' +tok('XRANGE') +src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$' +tok('XRANGELOOSE') +src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$' // Coercion. // Extract anything that could conceivably be a part of a valid semver -var COERCE = R++ -src[COERCE] = '(?:^|[^\\d])' + +tok('COERCE') +src[t.COERCE] = '(^|[^\\d])' + '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + '(?:$|[^\\d])' +tok('COERCERTL') +re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g') +safeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g') // Tilde ranges. // Meaning is "reasonably at or greater than" -var LONETILDE = R++ -src[LONETILDE] = '(?:~>?)' +tok('LONETILDE') +src[t.LONETILDE] = '(?:~>?)' -var TILDETRIM = R++ -src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+' -re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g') +tok('TILDETRIM') +src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+' +re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g') +safeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g') var tildeTrimReplace = '$1~' -var TILDE = R++ -src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$' -var TILDELOOSE = R++ -src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$' +tok('TILDE') +src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$' +tok('TILDELOOSE') +src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$' // Caret ranges. // Meaning is "at least and backwards compatible with" -var LONECARET = R++ -src[LONECARET] = '(?:\\^)' +tok('LONECARET') +src[t.LONECARET] = '(?:\\^)' -var CARETTRIM = R++ -src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+' -re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g') +tok('CARETTRIM') +src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+' +re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g') +safeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g') var caretTrimReplace = '$1^' -var CARET = R++ -src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$' -var CARETLOOSE = R++ -src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$' +tok('CARET') +src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$' +tok('CARETLOOSE') +src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$' // A simple gt/lt/eq thing, or just "" to indicate "any version" -var COMPARATORLOOSE = R++ -src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$' -var COMPARATOR = R++ -src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$' +tok('COMPARATORLOOSE') +src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$' +tok('COMPARATOR') +src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$' // An expression to strip any whitespace between the gtlt and the thing // it modifies, so that `> 1.2.3` ==> `>1.2.3` -var COMPARATORTRIM = R++ -src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + - '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')' +tok('COMPARATORTRIM') +src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] + + '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')' // this one has to use the /g flag -re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g') +re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g') +safeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g') var comparatorTrimReplace = '$1$2$3' // Something like `1.2.3 - 1.2.4` // Note that these all use the loose form, because they'll be // checked against either the strict or loose comparator form // later. -var HYPHENRANGE = R++ -src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' + +tok('HYPHENRANGE') +src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' + '\\s+-\\s+' + - '(' + src[XRANGEPLAIN] + ')' + + '(' + src[t.XRANGEPLAIN] + ')' + '\\s*$' -var HYPHENRANGELOOSE = R++ -src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' + +tok('HYPHENRANGELOOSE') +src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' + '\\s+-\\s+' + - '(' + src[XRANGEPLAINLOOSE] + ')' + + '(' + src[t.XRANGEPLAINLOOSE] + ')' + '\\s*$' // Star ranges basically just allow anything at all. -var STAR = R++ -src[STAR] = '(<|>)?=?\\s*\\*' +tok('STAR') +src[t.STAR] = '(<|>)?=?\\s*\\*' // Compile to actual regexp objects. // All are flag-free, unless they were created above with a flag. @@ -21960,6 +21112,14 @@ for (var i = 0; i < R; i++) { debug(i, src[i]) if (!re[i]) { re[i] = new RegExp(src[i]) + + // Replace all greedy whitespace to prevent regex dos issues. These regex are + // used internally via the safeRe object since all inputs in this library get + // normalized first to trim and collapse all extra whitespace. The original + // regexes are exported for userland consumption and lower level usage. A + // future breaking change could export the safer regex only with a note that + // all input should have extra whitespace removed. + safeRe[i] = new RegExp(makeSafeRe(src[i])) } } @@ -21984,7 +21144,7 @@ function parse (version, options) { return null } - var r = options.loose ? re[LOOSE] : re[FULL] + var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL] if (!r.test(version)) { return null } @@ -22039,7 +21199,7 @@ function SemVer (version, options) { this.options = options this.loose = !!options.loose - var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL]) + var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]) if (!m) { throw new TypeError('Invalid Version: ' + version) @@ -22147,6 +21307,30 @@ SemVer.prototype.comparePre = function (other) { } while (++i) } +SemVer.prototype.compareBuild = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + var i = 0 + do { + var a = this.build[i] + var b = other.build[i] + debug('prerelease compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) + } + } while (++i) +} + // preminor will bump the version up to the next minor release, and immediately // down to pre-release. premajor and prepatch work the same way. SemVer.prototype.inc = function (release, identifier) { @@ -22341,6 +21525,13 @@ function compareLoose (a, b) { return compare(a, b, true) } +exports.compareBuild = compareBuild +function compareBuild (a, b, loose) { + var versionA = new SemVer(a, loose) + var versionB = new SemVer(b, loose) + return versionA.compare(versionB) || versionA.compareBuild(versionB) +} + exports.rcompare = rcompare function rcompare (a, b, loose) { return compare(b, a, loose) @@ -22349,14 +21540,14 @@ function rcompare (a, b, loose) { exports.sort = sort function sort (list, loose) { return list.sort(function (a, b) { - return exports.compare(a, b, loose) + return exports.compareBuild(a, b, loose) }) } exports.rsort = rsort function rsort (list, loose) { return list.sort(function (a, b) { - return exports.rcompare(a, b, loose) + return exports.compareBuild(b, a, loose) }) } @@ -22453,6 +21644,7 @@ function Comparator (comp, options) { return new Comparator(comp, options) } + comp = comp.trim().split(/\s+/).join(' ') debug('comparator', comp, options) this.options = options this.loose = !!options.loose @@ -22469,14 +21661,14 @@ function Comparator (comp, options) { var ANY = {} Comparator.prototype.parse = function (comp) { - var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR] + var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR] var m = comp.match(r) if (!m) { throw new TypeError('Invalid comparator: ' + comp) } - this.operator = m[1] + this.operator = m[1] !== undefined ? m[1] : '' if (this.operator === '=') { this.operator = '' } @@ -22496,12 +21688,16 @@ Comparator.prototype.toString = function () { Comparator.prototype.test = function (version) { debug('Comparator.test', version, this.options.loose) - if (this.semver === ANY) { + if (this.semver === ANY || version === ANY) { return true } if (typeof version === 'string') { - version = new SemVer(version, this.options) + try { + version = new SemVer(version, this.options) + } catch (er) { + return false + } } return cmp(version, this.operator, this.semver, this.options) @@ -22522,9 +21718,15 @@ Comparator.prototype.intersects = function (comp, options) { var rangeTmp if (this.operator === '') { + if (this.value === '') { + return true + } rangeTmp = new Range(comp.value, options) return satisfies(this.value, rangeTmp, options) } else if (comp.operator === '') { + if (comp.value === '') { + return true + } rangeTmp = new Range(this.value, options) return satisfies(comp.semver, rangeTmp, options) } @@ -22583,9 +21785,16 @@ function Range (range, options) { this.loose = !!options.loose this.includePrerelease = !!options.includePrerelease - // First, split based on boolean or || + // First reduce all whitespace as much as possible so we do not have to rely + // on potentially slow regexes like \s*. This is then stored and used for + // future error messages as well. this.raw = range - this.set = range.split(/\s*\|\|\s*/).map(function (range) { + .trim() + .split(/\s+/) + .join(' ') + + // First, split based on boolean or || + this.set = this.raw.split('||').map(function (range) { return this.parseRange(range.trim()) }, this).filter(function (c) { // throw out any that are not relevant for whatever reason @@ -22593,7 +21802,7 @@ function Range (range, options) { }) if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + range) + throw new TypeError('Invalid SemVer Range: ' + this.raw) } this.format() @@ -22612,20 +21821,19 @@ Range.prototype.toString = function () { Range.prototype.parseRange = function (range) { var loose = this.options.loose - range = range.trim() // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE] + var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE] range = range.replace(hr, hyphenReplace) debug('hyphen replace', range) // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range, re[COMPARATORTRIM]) + range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace) + debug('comparator trim', range, safeRe[t.COMPARATORTRIM]) // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[TILDETRIM], tildeTrimReplace) + range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace) // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[CARETTRIM], caretTrimReplace) + range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace) // normalize spaces range = range.split(/\s+/).join(' ') @@ -22633,7 +21841,7 @@ Range.prototype.parseRange = function (range) { // At this point, the range is completely trimmed and // ready to be split into comparators. - var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR] + var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR] var set = range.split(' ').map(function (comp) { return parseComparator(comp, this.options) }, this).join(' ').split(/\s+/) @@ -22656,16 +21864,40 @@ Range.prototype.intersects = function (range, options) { } return this.set.some(function (thisComparators) { - return thisComparators.every(function (thisComparator) { - return range.set.some(function (rangeComparators) { - return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, options) - }) + return ( + isSatisfiable(thisComparators, options) && + range.set.some(function (rangeComparators) { + return ( + isSatisfiable(rangeComparators, options) && + thisComparators.every(function (thisComparator) { + return rangeComparators.every(function (rangeComparator) { + return thisComparator.intersects(rangeComparator, options) + }) + }) + ) }) - }) + ) }) } +// take a set of comparators and determine whether there +// exists a version which can satisfy it +function isSatisfiable (comparators, options) { + var result = true + var remainingComparators = comparators.slice() + var testComparator = remainingComparators.pop() + + while (result && remainingComparators.length) { + result = remainingComparators.every(function (otherComparator) { + return testComparator.intersects(otherComparator, options) + }) + + testComparator = remainingComparators.pop() + } + + return result +} + // Mostly just for testing and legacy API reasons exports.toComparators = toComparators function toComparators (range, options) { @@ -22709,7 +21941,7 @@ function replaceTildes (comp, options) { } function replaceTilde (comp, options) { - var r = options.loose ? re[TILDELOOSE] : re[TILDE] + var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE] return comp.replace(r, function (_, M, m, p, pr) { debug('tilde', comp, _, M, m, p, pr) var ret @@ -22750,7 +21982,7 @@ function replaceCarets (comp, options) { function replaceCaret (comp, options) { debug('caret', comp, options) - var r = options.loose ? re[CARETLOOSE] : re[CARET] + var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET] return comp.replace(r, function (_, M, m, p, pr) { debug('caret', comp, _, M, m, p, pr) var ret @@ -22809,7 +22041,7 @@ function replaceXRanges (comp, options) { function replaceXRange (comp, options) { comp = comp.trim() - var r = options.loose ? re[XRANGELOOSE] : re[XRANGE] + var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE] return comp.replace(r, function (ret, gtlt, M, m, p, pr) { debug('xRange', comp, ret, gtlt, M, m, p, pr) var xM = isX(M) @@ -22821,10 +22053,14 @@ function replaceXRange (comp, options) { gtlt = '' } + // if we're including prereleases in the match, then we need + // to fix this to -0, the lowest possible prerelease value + pr = options.includePrerelease ? '-0' : '' + if (xM) { if (gtlt === '>' || gtlt === '<') { // nothing is allowed - ret = '<0.0.0' + ret = '<0.0.0-0' } else { // nothing is forbidden ret = '*' @@ -22861,11 +22097,12 @@ function replaceXRange (comp, options) { } } - ret = gtlt + M + '.' + m + '.' + p + ret = gtlt + M + '.' + m + '.' + p + pr } else if (xm) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr } else if (xp) { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + ret = '>=' + M + '.' + m + '.0' + pr + + ' <' + M + '.' + (+m + 1) + '.0' + pr } debug('xRange return', ret) @@ -22879,10 +22116,10 @@ function replaceXRange (comp, options) { function replaceStars (comp, options) { debug('replaceStars', comp, options) // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(re[STAR], '') + return comp.trim().replace(safeRe[t.STAR], '') } -// This function is passed to string.replace(re[HYPHENRANGE]) +// This function is passed to string.replace(re[t.HYPHENRANGE]) // M, m, patch, prerelease, build // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do @@ -22922,7 +22159,11 @@ Range.prototype.test = function (version) { } if (typeof version === 'string') { - version = new SemVer(version, this.options) + try { + version = new SemVer(version, this.options) + } catch (er) { + return false + } } for (var i = 0; i < this.set.length; i++) { @@ -23184,2485 +22425,2611 @@ function intersects (r1, r2, options) { } exports.coerce = coerce -function coerce (version) { +function coerce (version, options) { if (version instanceof SemVer) { return version } + if (typeof version === 'number') { + version = String(version) + } + if (typeof version !== 'string') { return null } - var match = version.match(re[COERCE]) + options = options || {} - if (match == null) { + var match = null + if (!options.rtl) { + match = version.match(safeRe[t.COERCE]) + } else { + // Find the right-most coercible string that does not share + // a terminus with a more left-ward coercible string. + // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' + // + // Walk through the string checking with a /g regexp + // Manually set the index so as to pick up overlapping matches. + // Stop when we get a match that ends at the string end, since no + // coercible string can be more right-ward without the same terminus. + var next + while ((next = safeRe[t.COERCERTL].exec(version)) && + (!match || match.index + match[0].length !== version.length) + ) { + if (!match || + next.index + next[0].length !== match.index + match[0].length) { + match = next + } + safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length + } + // leave it in a clean state + safeRe[t.COERCERTL].lastIndex = -1 + } + + if (match === null) { return null } - return parse(match[1] + - '.' + (match[2] || '0') + - '.' + (match[3] || '0')) + return parse(match[2] + + '.' + (match[3] || '0') + + '.' + (match[4] || '0'), options) } /***/ }), -/***/ 8999: -/***/ (function(module, exports) { - -exports = module.exports = SemVer - -var debug -/* istanbul ignore next */ -if (typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG)) { - debug = function () { - var args = Array.prototype.slice.call(arguments, 0) - args.unshift('SEMVER') - console.log.apply(console, args) - } -} else { - debug = function () {} -} +/***/ 85408: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -exports.SEMVER_SPEC_VERSION = '2.0.0' +"use strict"; +/*! + * shallow-clone + * + * Copyright (c) 2015-present, Jon Schlinkert. + * Released under the MIT License. + */ -var MAX_LENGTH = 256 -var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || - /* istanbul ignore next */ 9007199254740991 -// Max safe segment length for coercion. -var MAX_SAFE_COMPONENT_LENGTH = 16 -// The actual regexps go on exports.re -var re = exports.re = [] -var src = exports.src = [] -var t = exports.tokens = {} -var R = 0 +const valueOf = Symbol.prototype.valueOf; +const typeOf = __nccwpck_require__(49866); -function tok (n) { - t[n] = R++ +function clone(val, deep) { + switch (typeOf(val)) { + case 'array': + return val.slice(); + case 'object': + return Object.assign({}, val); + case 'date': + return new val.constructor(Number(val)); + case 'map': + return new Map(val); + case 'set': + return new Set(val); + case 'buffer': + return cloneBuffer(val); + case 'symbol': + return cloneSymbol(val); + case 'arraybuffer': + return cloneArrayBuffer(val); + case 'float32array': + case 'float64array': + case 'int16array': + case 'int32array': + case 'int8array': + case 'uint16array': + case 'uint32array': + case 'uint8clampedarray': + case 'uint8array': + return cloneTypedArray(val); + case 'regexp': + return cloneRegExp(val); + case 'error': + return Object.create(val); + default: { + return val; + } + } } -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. +function cloneRegExp(val) { + const flags = val.flags !== void 0 ? val.flags : (/\w+$/.exec(val) || void 0); + const re = new val.constructor(val.source, flags); + re.lastIndex = val.lastIndex; + return re; +} -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. +function cloneArrayBuffer(val) { + const res = new val.constructor(val.byteLength); + new Uint8Array(res).set(new Uint8Array(val)); + return res; +} -tok('NUMERICIDENTIFIER') -src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*' -tok('NUMERICIDENTIFIERLOOSE') -src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+' +function cloneTypedArray(val, deep) { + return new val.constructor(val.buffer, val.byteOffset, val.length); +} -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. +function cloneBuffer(val) { + const len = val.length; + const buf = Buffer.allocUnsafe ? Buffer.allocUnsafe(len) : Buffer.from(len); + val.copy(buf); + return buf; +} -tok('NONNUMERICIDENTIFIER') -src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*' +function cloneSymbol(val) { + return valueOf ? Object(valueOf.call(val)) : {}; +} -// ## Main Version -// Three dot-separated numeric identifiers. +/** + * Expose `clone` + */ -tok('MAINVERSION') -src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIER] + ')' +module.exports = clone; -tok('MAINVERSIONLOOSE') -src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')' -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. +/***/ }), -tok('PRERELEASEIDENTIFIER') -src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] + - '|' + src[t.NONNUMERICIDENTIFIER] + ')' +/***/ 16754: +/***/ (function(module, exports, __nccwpck_require__) { -tok('PRERELEASEIDENTIFIERLOOSE') -src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] + - '|' + src[t.NONNUMERICIDENTIFIER] + ')' +/* module decorator */ module = __nccwpck_require__.nmd(module); +var SourceMapConsumer = (__nccwpck_require__(7435).SourceMapConsumer); +var path = __nccwpck_require__(71017); -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. +var fs; +try { + fs = __nccwpck_require__(57147); + if (!fs.existsSync || !fs.readFileSync) { + // fs doesn't have all methods we need + fs = null; + } +} catch (err) { + /* nop */ +} -tok('PRERELEASE') -src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] + - '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))' +var bufferFrom = __nccwpck_require__(80234); -tok('PRERELEASELOOSE') -src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] + - '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))' +/** + * Requires a module which is protected against bundler minification. + * + * @param {NodeModule} mod + * @param {string} request + */ +function dynamicRequire(mod, request) { + return mod.require(request); +} -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. +// Only install once if called multiple times +var errorFormatterInstalled = false; +var uncaughtShimInstalled = false; -tok('BUILDIDENTIFIER') -src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+' +// If true, the caches are reset before a stack trace formatting operation +var emptyCacheBetweenOperations = false; -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. +// Supports {browser, node, auto} +var environment = "auto"; -tok('BUILD') -src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] + - '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))' +// Maps a file path to a string containing the file contents +var fileContentsCache = {}; -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. +// Maps a file path to a source map for that file +var sourceMapCache = {}; -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. +// Regex for detecting source maps +var reSourceMap = /^data:application\/json[^,]+base64,/; -tok('FULL') -tok('FULLPLAIN') -src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] + - src[t.PRERELEASE] + '?' + - src[t.BUILD] + '?' +// Priority list of retrieve handlers +var retrieveFileHandlers = []; +var retrieveMapHandlers = []; -src[t.FULL] = '^' + src[t.FULLPLAIN] + '$' +function isInBrowser() { + if (environment === "browser") + return true; + if (environment === "node") + return false; + return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer")); +} -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -tok('LOOSEPLAIN') -src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] + - src[t.PRERELEASELOOSE] + '?' + - src[t.BUILD] + '?' +function hasGlobalProcessEventEmitter() { + return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function')); +} -tok('LOOSE') -src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$' +function globalProcessVersion() { + if ((typeof process === 'object') && (process !== null)) { + return process.version; + } else { + return ''; + } +} -tok('GTLT') -src[t.GTLT] = '((?:<|>)?=?)' +function globalProcessStderr() { + if ((typeof process === 'object') && (process !== null)) { + return process.stderr; + } +} -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -tok('XRANGEIDENTIFIERLOOSE') -src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' -tok('XRANGEIDENTIFIER') -src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*' +function globalProcessExit(code) { + if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) { + return process.exit(code); + } +} -tok('XRANGEPLAIN') -src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:' + src[t.PRERELEASE] + ')?' + - src[t.BUILD] + '?' + - ')?)?' +function handlerExec(list) { + return function(arg) { + for (var i = 0; i < list.length; i++) { + var ret = list[i](arg); + if (ret) { + return ret; + } + } + return null; + }; +} -tok('XRANGEPLAINLOOSE') -src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:' + src[t.PRERELEASELOOSE] + ')?' + - src[t.BUILD] + '?' + - ')?)?' +var retrieveFile = handlerExec(retrieveFileHandlers); -tok('XRANGE') -src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$' -tok('XRANGELOOSE') -src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$' - -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -tok('COERCE') -src[t.COERCE] = '(^|[^\\d])' + - '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:$|[^\\d])' -tok('COERCERTL') -re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g') - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -tok('LONETILDE') -src[t.LONETILDE] = '(?:~>?)' +retrieveFileHandlers.push(function(path) { + // Trim the path to make sure there is no extra whitespace. + path = path.trim(); + if (/^file:/.test(path)) { + // existsSync/readFileSync can't handle file protocol, but once stripped, it works + path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) { + return drive ? + '' : // file:///C:/dir/file -> C:/dir/file + '/'; // file:///root-dir/file -> /root-dir/file + }); + } + if (path in fileContentsCache) { + return fileContentsCache[path]; + } -tok('TILDETRIM') -src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+' -re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g') -var tildeTrimReplace = '$1~' + var contents = ''; + try { + if (!fs) { + // Use SJAX if we are in the browser + var xhr = new XMLHttpRequest(); + xhr.open('GET', path, /** async */ false); + xhr.send(null); + if (xhr.readyState === 4 && xhr.status === 200) { + contents = xhr.responseText; + } + } else if (fs.existsSync(path)) { + // Otherwise, use the filesystem + contents = fs.readFileSync(path, 'utf8'); + } + } catch (er) { + /* ignore any errors */ + } -tok('TILDE') -src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$' -tok('TILDELOOSE') -src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$' + return fileContentsCache[path] = contents; +}); -// Caret ranges. -// Meaning is "at least and backwards compatible with" -tok('LONECARET') -src[t.LONECARET] = '(?:\\^)' +// Support URLs relative to a directory, but be careful about a protocol prefix +// in case we are in the browser (i.e. directories may start with "http://" or "file:///") +function supportRelativeURL(file, url) { + if (!file) return url; + var dir = path.dirname(file); + var match = /^\w+:\/\/[^\/]*/.exec(dir); + var protocol = match ? match[0] : ''; + var startPath = dir.slice(protocol.length); + if (protocol && /^\/\w\:/.test(startPath)) { + // handle file:///C:/ paths + protocol += '/'; + return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/'); + } + return protocol + path.resolve(dir.slice(protocol.length), url); +} -tok('CARETTRIM') -src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+' -re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g') -var caretTrimReplace = '$1^' +function retrieveSourceMapURL(source) { + var fileData; -tok('CARET') -src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$' -tok('CARETLOOSE') -src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$' + if (isInBrowser()) { + try { + var xhr = new XMLHttpRequest(); + xhr.open('GET', source, false); + xhr.send(null); + fileData = xhr.readyState === 4 ? xhr.responseText : null; -// A simple gt/lt/eq thing, or just "" to indicate "any version" -tok('COMPARATORLOOSE') -src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$' -tok('COMPARATOR') -src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$' + // Support providing a sourceMappingURL via the SourceMap header + var sourceMapHeader = xhr.getResponseHeader("SourceMap") || + xhr.getResponseHeader("X-SourceMap"); + if (sourceMapHeader) { + return sourceMapHeader; + } + } catch (e) { + } + } -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -tok('COMPARATORTRIM') -src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] + - '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')' + // Get the URL of the source map + fileData = retrieveFile(source); + var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg; + // Keep executing the search to find the *last* sourceMappingURL to avoid + // picking up sourceMappingURLs from comments, strings, etc. + var lastMatch, match; + while (match = re.exec(fileData)) lastMatch = match; + if (!lastMatch) return null; + return lastMatch[1]; +}; -// this one has to use the /g flag -re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g') -var comparatorTrimReplace = '$1$2$3' +// Can be overridden by the retrieveSourceMap option to install. Takes a +// generated source filename; returns a {map, optional url} object, or null if +// there is no source map. The map field may be either a string or the parsed +// JSON object (ie, it must be a valid argument to the SourceMapConsumer +// constructor). +var retrieveSourceMap = handlerExec(retrieveMapHandlers); +retrieveMapHandlers.push(function(source) { + var sourceMappingURL = retrieveSourceMapURL(source); + if (!sourceMappingURL) return null; -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -tok('HYPHENRANGE') -src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' + - '\\s+-\\s+' + - '(' + src[t.XRANGEPLAIN] + ')' + - '\\s*$' + // Read the contents of the source map + var sourceMapData; + if (reSourceMap.test(sourceMappingURL)) { + // Support source map URL as a data url + var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1); + sourceMapData = bufferFrom(rawData, "base64").toString(); + sourceMappingURL = source; + } else { + // Support source map URLs relative to the source URL + sourceMappingURL = supportRelativeURL(source, sourceMappingURL); + sourceMapData = retrieveFile(sourceMappingURL); + } -tok('HYPHENRANGELOOSE') -src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' + - '\\s+-\\s+' + - '(' + src[t.XRANGEPLAINLOOSE] + ')' + - '\\s*$' + if (!sourceMapData) { + return null; + } -// Star ranges basically just allow anything at all. -tok('STAR') -src[t.STAR] = '(<|>)?=?\\s*\\*' + return { + url: sourceMappingURL, + map: sourceMapData + }; +}); -// Compile to actual regexp objects. -// All are flag-free, unless they were created above with a flag. -for (var i = 0; i < R; i++) { - debug(i, src[i]) - if (!re[i]) { - re[i] = new RegExp(src[i]) - } -} +function mapSourcePosition(position) { + var sourceMap = sourceMapCache[position.source]; + if (!sourceMap) { + // Call the (overrideable) retrieveSourceMap function to get the source map. + var urlAndMap = retrieveSourceMap(position.source); + if (urlAndMap) { + sourceMap = sourceMapCache[position.source] = { + url: urlAndMap.url, + map: new SourceMapConsumer(urlAndMap.map) + }; -exports.parse = parse -function parse (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false + // Load all sources stored inline with the source map into the file cache + // to pretend like they are already loaded. They may not exist on disk. + if (sourceMap.map.sourcesContent) { + sourceMap.map.sources.forEach(function(source, i) { + var contents = sourceMap.map.sourcesContent[i]; + if (contents) { + var url = supportRelativeURL(sourceMap.url, source); + fileContentsCache[url] = contents; + } + }); + } + } else { + sourceMap = sourceMapCache[position.source] = { + url: null, + map: null + }; } } - if (version instanceof SemVer) { - return version - } + // Resolve the source URL relative to the URL of the source map + if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === 'function') { + var originalPosition = sourceMap.map.originalPositionFor(position); - if (typeof version !== 'string') { - return null + // Only return the original position if a matching line was found. If no + // matching line is found then we return position instead, which will cause + // the stack trace to print the path and line for the compiled file. It is + // better to give a precise location in the compiled file than a vague + // location in the original file. + if (originalPosition.source !== null) { + originalPosition.source = supportRelativeURL( + sourceMap.url, originalPosition.source); + return originalPosition; + } } - if (version.length > MAX_LENGTH) { - return null - } + return position; +} - var r = options.loose ? re[t.LOOSE] : re[t.FULL] - if (!r.test(version)) { - return null +// Parses code generated by FormatEvalOrigin(), a function inside V8: +// https://code.google.com/p/v8/source/browse/trunk/src/messages.js +function mapEvalOrigin(origin) { + // Most eval() calls are in this format + var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); + if (match) { + var position = mapSourcePosition({ + source: match[2], + line: +match[3], + column: match[4] - 1 + }); + return 'eval at ' + match[1] + ' (' + position.source + ':' + + position.line + ':' + (position.column + 1) + ')'; } - try { - return new SemVer(version, options) - } catch (er) { - return null + // Parse nested eval() calls using recursion + match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); + if (match) { + return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; } -} - -exports.valid = valid -function valid (version, options) { - var v = parse(version, options) - return v ? v.version : null -} -exports.clean = clean -function clean (version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null + // Make sure we still return useful information if we didn't find anything + return origin; } -exports.SemVer = SemVer - -function SemVer (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false +// This is copied almost verbatim from the V8 source code at +// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The +// implementation of wrapCallSite() used to just forward to the actual source +// code of CallSite.prototype.toString but unfortunately a new release of V8 +// did something to the prototype chain and broke the shim. The only fix I +// could find was copy/paste. +function CallSiteToString() { + var fileName; + var fileLocation = ""; + if (this.isNative()) { + fileLocation = "native"; + } else { + fileName = this.getScriptNameOrSourceURL(); + if (!fileName && this.isEval()) { + fileLocation = this.getEvalOrigin(); + fileLocation += ", "; // Expecting source position to follow. } - } - if (version instanceof SemVer) { - if (version.loose === options.loose) { - return version + + if (fileName) { + fileLocation += fileName; } else { - version = version.version + // Source code does not originate from a file and is not native, but we + // can still get the source position inside the source string, e.g. in + // an eval string. + fileLocation += ""; + } + var lineNumber = this.getLineNumber(); + if (lineNumber != null) { + fileLocation += ":" + lineNumber; + var columnNumber = this.getColumnNumber(); + if (columnNumber) { + fileLocation += ":" + columnNumber; + } } - } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version) } - if (version.length > MAX_LENGTH) { - throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') + var line = ""; + var functionName = this.getFunctionName(); + var addSuffix = true; + var isConstructor = this.isConstructor(); + var isMethodCall = !(this.isToplevel() || isConstructor); + if (isMethodCall) { + var typeName = this.getTypeName(); + // Fixes shim to be backward compatable with Node v0 to v4 + if (typeName === "[object Object]") { + typeName = "null"; + } + var methodName = this.getMethodName(); + if (functionName) { + if (typeName && functionName.indexOf(typeName) != 0) { + line += typeName + "."; + } + line += functionName; + if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { + line += " [as " + methodName + "]"; + } + } else { + line += typeName + "." + (methodName || ""); + } + } else if (isConstructor) { + line += "new " + (functionName || ""); + } else if (functionName) { + line += functionName; + } else { + line += fileLocation; + addSuffix = false; } - - if (!(this instanceof SemVer)) { - return new SemVer(version, options) + if (addSuffix) { + line += " (" + fileLocation + ")"; } + return line; +} - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose - - var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]) +function cloneCallSite(frame) { + var object = {}; + Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) { + object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name]; + }); + object.toString = CallSiteToString; + return object; +} - if (!m) { - throw new TypeError('Invalid Version: ' + version) +function wrapCallSite(frame, state) { + // provides interface backward compatibility + if (state === undefined) { + state = { nextPosition: null, curPosition: null } } - - this.raw = version - - // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') + if(frame.isNative()) { + state.curPosition = null; + return frame; } - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') - } + // Most call sites will return the source file from getFileName(), but code + // passed to eval() ending in "//# sourceURL=..." will return the source file + // from getScriptNameOrSourceURL() instead + var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); + if (source) { + var line = frame.getLineNumber(); + var column = frame.getColumnNumber() - 1; - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') - } + // Fix position in Node where some (internal) code is prepended. + // See https://github.com/evanw/node-source-map-support/issues/36 + // Header removed in node at ^10.16 || >=11.11.0 + // v11 is not an LTS candidate, we can just test the one version with it. + // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11 + var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/; + var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62; + if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) { + column -= headerLength; + } - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = [] - } else { - this.prerelease = m[4].split('.').map(function (id) { - if (/^[0-9]+$/.test(id)) { - var num = +id - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num - } + var position = mapSourcePosition({ + source: source, + line: line, + column: column + }); + state.curPosition = position; + frame = cloneCallSite(frame); + var originalFunctionName = frame.getFunctionName; + frame.getFunctionName = function() { + if (state.nextPosition == null) { + return originalFunctionName(); } - return id - }) + return state.nextPosition.name || originalFunctionName(); + }; + frame.getFileName = function() { return position.source; }; + frame.getLineNumber = function() { return position.line; }; + frame.getColumnNumber = function() { return position.column + 1; }; + frame.getScriptNameOrSourceURL = function() { return position.source; }; + return frame; } - this.build = m[5] ? m[5].split('.') : [] - this.format() -} - -SemVer.prototype.format = function () { - this.version = this.major + '.' + this.minor + '.' + this.patch - if (this.prerelease.length) { - this.version += '-' + this.prerelease.join('.') + // Code called using eval() needs special handling + var origin = frame.isEval() && frame.getEvalOrigin(); + if (origin) { + origin = mapEvalOrigin(origin); + frame = cloneCallSite(frame); + frame.getEvalOrigin = function() { return origin; }; + return frame; } - return this.version -} -SemVer.prototype.toString = function () { - return this.version + // If we get here then we were unable to change the source position + return frame; } -SemVer.prototype.compare = function (other) { - debug('SemVer.compare', this.version, this.options, other) - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) +// This function is part of the V8 stack trace API, for more info see: +// https://v8.dev/docs/stack-trace-api +function prepareStackTrace(error, stack) { + if (emptyCacheBetweenOperations) { + fileContentsCache = {}; + sourceMapCache = {}; } - return this.compareMain(other) || this.comparePre(other) -} + var name = error.name || 'Error'; + var message = error.message || ''; + var errorString = name + ": " + message; -SemVer.prototype.compareMain = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) + var state = { nextPosition: null, curPosition: null }; + var processedStack = []; + for (var i = stack.length - 1; i >= 0; i--) { + processedStack.push('\n at ' + wrapCallSite(stack[i], state)); + state.nextPosition = state.curPosition; } - - return compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch) + state.curPosition = state.nextPosition = null; + return errorString + processedStack.reverse().join(''); } -SemVer.prototype.comparePre = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } +// Generate position and snippet of original source with pointer +function getErrorSource(error) { + var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); + if (match) { + var source = match[1]; + var line = +match[2]; + var column = +match[3]; - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 - } + // Support the inline sourceContents inside the source map + var contents = fileContentsCache[source]; - var i = 0 - do { - var a = this.prerelease[i] - var b = other.prerelease[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) -} - -SemVer.prototype.compareBuild = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - var i = 0 - do { - var a = this.build[i] - var b = other.build[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) -} - -// preminor will bump the version up to the next minor release, and immediately -// down to pre-release. premajor and prepatch work the same way. -SemVer.prototype.inc = function (release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier) - break - case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier) - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier) - this.inc('pre', identifier) - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier) + // Support files on disk + if (!contents && fs && fs.existsSync(source)) { + try { + contents = fs.readFileSync(source, 'utf8'); + } catch (er) { + contents = ''; } - this.inc('pre', identifier) - break + } - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if (this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0) { - this.major++ - } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ - } - this.patch = 0 - this.prerelease = [] - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++ - } - this.prerelease = [] - break - // This probably shouldn't be used publicly. - // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. - case 'pre': - if (this.prerelease.length === 0) { - this.prerelease = [0] - } else { - var i = this.prerelease.length - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 - } - } - if (i === -1) { - // didn't increment anything - this.prerelease.push(0) - } - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0] - } - } else { - this.prerelease = [identifier, 0] - } + // Format the line from the original source code like node does + if (contents) { + var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; + if (code) { + return source + ':' + line + '\n' + code + '\n' + + new Array(column).join(' ') + '^'; } - break - - default: - throw new Error('invalid increment argument: ' + release) + } } - this.format() - this.raw = this.version - return this + return null; } -exports.inc = inc -function inc (version, release, loose, identifier) { - if (typeof (loose) === 'string') { - identifier = loose - loose = undefined - } +function printErrorAndExit (error) { + var source = getErrorSource(error); - try { - return new SemVer(version, loose).inc(release, identifier).version - } catch (er) { - return null + // Ensure error is printed synchronously and not truncated + var stderr = globalProcessStderr(); + if (stderr && stderr._handle && stderr._handle.setBlocking) { + stderr._handle.setBlocking(true); } -} -exports.diff = diff -function diff (version1, version2) { - if (eq(version1, version2)) { - return null - } else { - var v1 = parse(version1) - var v2 = parse(version2) - var prefix = '' - if (v1.prerelease.length || v2.prerelease.length) { - prefix = 'pre' - var defaultResult = 'prerelease' - } - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return prefix + key - } - } - } - return defaultResult // may be undefined + if (source) { + console.error(); + console.error(source); } + + console.error(error.stack); + globalProcessExit(1); } -exports.compareIdentifiers = compareIdentifiers +function shimEmitUncaughtException () { + var origEmit = process.emit; -var numeric = /^[0-9]+$/ -function compareIdentifiers (a, b) { - var anum = numeric.test(a) - var bnum = numeric.test(b) + process.emit = function (type) { + if (type === 'uncaughtException') { + var hasStack = (arguments[1] && arguments[1].stack); + var hasListeners = (this.listeners(type).length > 0); - if (anum && bnum) { - a = +a - b = +b - } + if (hasStack && !hasListeners) { + return printErrorAndExit(arguments[1]); + } + } - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 + return origEmit.apply(this, arguments); + }; } -exports.rcompareIdentifiers = rcompareIdentifiers -function rcompareIdentifiers (a, b) { - return compareIdentifiers(b, a) -} +var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0); +var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0); -exports.major = major -function major (a, loose) { - return new SemVer(a, loose).major -} +exports.wrapCallSite = wrapCallSite; +exports.getErrorSource = getErrorSource; +exports.mapSourcePosition = mapSourcePosition; +exports.retrieveSourceMap = retrieveSourceMap; -exports.minor = minor -function minor (a, loose) { - return new SemVer(a, loose).minor -} +exports.install = function(options) { + options = options || {}; -exports.patch = patch -function patch (a, loose) { - return new SemVer(a, loose).patch -} + if (options.environment) { + environment = options.environment; + if (["node", "browser", "auto"].indexOf(environment) === -1) { + throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}") + } + } -exports.compare = compare -function compare (a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)) -} + // Allow sources to be found by methods other than reading the files + // directly from disk. + if (options.retrieveFile) { + if (options.overrideRetrieveFile) { + retrieveFileHandlers.length = 0; + } -exports.compareLoose = compareLoose -function compareLoose (a, b) { - return compare(a, b, true) -} + retrieveFileHandlers.unshift(options.retrieveFile); + } -exports.compareBuild = compareBuild -function compareBuild (a, b, loose) { - var versionA = new SemVer(a, loose) - var versionB = new SemVer(b, loose) - return versionA.compare(versionB) || versionA.compareBuild(versionB) -} + // Allow source maps to be found by methods other than reading the files + // directly from disk. + if (options.retrieveSourceMap) { + if (options.overrideRetrieveSourceMap) { + retrieveMapHandlers.length = 0; + } -exports.rcompare = rcompare -function rcompare (a, b, loose) { - return compare(b, a, loose) -} + retrieveMapHandlers.unshift(options.retrieveSourceMap); + } -exports.sort = sort -function sort (list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(a, b, loose) - }) -} + // Support runtime transpilers that include inline source maps + if (options.hookRequire && !isInBrowser()) { + // Use dynamicRequire to avoid including in browser bundles + var Module = dynamicRequire(module, 'module'); + var $compile = Module.prototype._compile; -exports.rsort = rsort -function rsort (list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(b, a, loose) - }) -} + if (!$compile.__sourceMapSupport) { + Module.prototype._compile = function(content, filename) { + fileContentsCache[filename] = content; + sourceMapCache[filename] = undefined; + return $compile.call(this, content, filename); + }; -exports.gt = gt -function gt (a, b, loose) { - return compare(a, b, loose) > 0 -} + Module.prototype._compile.__sourceMapSupport = true; + } + } -exports.lt = lt -function lt (a, b, loose) { - return compare(a, b, loose) < 0 -} + // Configure options + if (!emptyCacheBetweenOperations) { + emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? + options.emptyCacheBetweenOperations : false; + } -exports.eq = eq -function eq (a, b, loose) { - return compare(a, b, loose) === 0 -} + // Install the error reformatter + if (!errorFormatterInstalled) { + errorFormatterInstalled = true; + Error.prepareStackTrace = prepareStackTrace; + } -exports.neq = neq -function neq (a, b, loose) { - return compare(a, b, loose) !== 0 -} + if (!uncaughtShimInstalled) { + var installHandler = 'handleUncaughtExceptions' in options ? + options.handleUncaughtExceptions : true; -exports.gte = gte -function gte (a, b, loose) { - return compare(a, b, loose) >= 0 -} + // Do not override 'uncaughtException' with our own handler in Node.js + // Worker threads. Workers pass the error to the main thread as an event, + // rather than printing something to stderr and exiting. + try { + // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify. + var worker_threads = dynamicRequire(module, 'worker_threads'); + if (worker_threads.isMainThread === false) { + installHandler = false; + } + } catch(e) {} -exports.lte = lte -function lte (a, b, loose) { - return compare(a, b, loose) <= 0 -} + // Provide the option to not install the uncaught exception handler. This is + // to support other uncaught exception handlers (in test frameworks, for + // example). If this handler is not installed and there are no other uncaught + // exception handlers, uncaught exceptions will be caught by node's built-in + // exception handler and the process will still be terminated. However, the + // generated JavaScript code will be shown above the stack trace instead of + // the original source code. + if (installHandler && hasGlobalProcessEventEmitter()) { + uncaughtShimInstalled = true; + shimEmitUncaughtException(); + } + } +}; -exports.cmp = cmp -function cmp (a, op, b, loose) { - switch (op) { - case '===': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a === b +exports.resetRetrieveHandlers = function() { + retrieveFileHandlers.length = 0; + retrieveMapHandlers.length = 0; - case '!==': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a !== b + retrieveFileHandlers = originalRetrieveFileHandlers.slice(0); + retrieveMapHandlers = originalRetrieveMapHandlers.slice(0); - case '': - case '=': - case '==': - return eq(a, b, loose) + retrieveSourceMap = handlerExec(retrieveMapHandlers); + retrieveFile = handlerExec(retrieveFileHandlers); +} - case '!=': - return neq(a, b, loose) - case '>': - return gt(a, b, loose) +/***/ }), - case '>=': - return gte(a, b, loose) +/***/ 99409: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - case '<': - return lt(a, b, loose) +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ - case '<=': - return lte(a, b, loose) +var util = __nccwpck_require__(59308); +var has = Object.prototype.hasOwnProperty; +var hasNativeMap = typeof Map !== "undefined"; - default: - throw new TypeError('Invalid operator: ' + op) - } +/** + * A data structure which is a combination of an array and a set. Adding a new + * member is O(1), testing for membership is O(1), and finding the index of an + * element is O(1). Removing elements from the set is not supported. Only + * strings are supported for membership. + */ +function ArraySet() { + this._array = []; + this._set = hasNativeMap ? new Map() : Object.create(null); } -exports.Comparator = Comparator -function Comparator (comp, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } +/** + * Static method for creating ArraySet instances from an existing array. + */ +ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { + var set = new ArraySet(); + for (var i = 0, len = aArray.length; i < len; i++) { + set.add(aArray[i], aAllowDuplicates); } + return set; +}; - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp +/** + * Return how many unique items are in this ArraySet. If duplicates have been + * added, than those do not count towards the size. + * + * @returns Number + */ +ArraySet.prototype.size = function ArraySet_size() { + return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; +}; + +/** + * Add the given string to this set. + * + * @param String aStr + */ +ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { + var sStr = hasNativeMap ? aStr : util.toSetString(aStr); + var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); + var idx = this._array.length; + if (!isDuplicate || aAllowDuplicates) { + this._array.push(aStr); + } + if (!isDuplicate) { + if (hasNativeMap) { + this._set.set(aStr, idx); } else { - comp = comp.value + this._set[sStr] = idx; } } +}; - if (!(this instanceof Comparator)) { - return new Comparator(comp, options) - } - - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) - - if (this.semver === ANY) { - this.value = '' +/** + * Is the given string a member of this set? + * + * @param String aStr + */ +ArraySet.prototype.has = function ArraySet_has(aStr) { + if (hasNativeMap) { + return this._set.has(aStr); } else { - this.value = this.operator + this.semver.version + var sStr = util.toSetString(aStr); + return has.call(this._set, sStr); } +}; - debug('comp', this) -} - -var ANY = {} -Comparator.prototype.parse = function (comp) { - var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR] - var m = comp.match(r) - - if (!m) { - throw new TypeError('Invalid comparator: ' + comp) +/** + * What is the index of the given string in the array? + * + * @param String aStr + */ +ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { + if (hasNativeMap) { + var idx = this._set.get(aStr); + if (idx >= 0) { + return idx; + } + } else { + var sStr = util.toSetString(aStr); + if (has.call(this._set, sStr)) { + return this._set[sStr]; + } } - this.operator = m[1] !== undefined ? m[1] : '' - if (this.operator === '=') { - this.operator = '' - } + throw new Error('"' + aStr + '" is not in the set.'); +}; - // if it literally is just '>' or '' then allow anything. - if (!m[2]) { - this.semver = ANY - } else { - this.semver = new SemVer(m[2], this.options.loose) +/** + * What is the element at the given index? + * + * @param Number aIdx + */ +ArraySet.prototype.at = function ArraySet_at(aIdx) { + if (aIdx >= 0 && aIdx < this._array.length) { + return this._array[aIdx]; } -} + throw new Error('No element indexed by ' + aIdx); +}; -Comparator.prototype.toString = function () { - return this.value -} +/** + * Returns the array representation of this set (which has the proper indices + * indicated by indexOf). Note that this is a copy of the internal array used + * for storing the members so that no one can mess with internal state. + */ +ArraySet.prototype.toArray = function ArraySet_toArray() { + return this._array.slice(); +}; -Comparator.prototype.test = function (version) { - debug('Comparator.test', version, this.options.loose) +exports.I = ArraySet; - if (this.semver === ANY || version === ANY) { - return true - } - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } +/***/ }), - return cmp(version, this.operator, this.semver, this.options) +/***/ 61019: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + * + * Based on the Base 64 VLQ implementation in Closure Compiler: + * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java + * + * Copyright 2011 The Closure Compiler Authors. All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +var base64 = __nccwpck_require__(28268); + +// A single base 64 digit can contain 6 bits of data. For the base 64 variable +// length quantities we use in the source map spec, the first bit is the sign, +// the next four bits are the actual value, and the 6th bit is the +// continuation bit. The continuation bit tells us whether there are more +// digits in this value following this digit. +// +// Continuation +// | Sign +// | | +// V V +// 101011 + +var VLQ_BASE_SHIFT = 5; + +// binary: 100000 +var VLQ_BASE = 1 << VLQ_BASE_SHIFT; + +// binary: 011111 +var VLQ_BASE_MASK = VLQ_BASE - 1; + +// binary: 100000 +var VLQ_CONTINUATION_BIT = VLQ_BASE; + +/** + * Converts from a two-complement value to a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) + * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) + */ +function toVLQSigned(aValue) { + return aValue < 0 + ? ((-aValue) << 1) + 1 + : (aValue << 1) + 0; } -Comparator.prototype.intersects = function (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') - } +/** + * Converts to a two-complement value from a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 + * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 + */ +function fromVLQSigned(aValue) { + var isNegative = (aValue & 1) === 1; + var shifted = aValue >> 1; + return isNegative + ? -shifted + : shifted; +} - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } +/** + * Returns the base 64 VLQ encoded value. + */ +exports.encode = function base64VLQ_encode(aValue) { + var encoded = ""; + var digit; - var rangeTmp + var vlq = toVLQSigned(aValue); - if (this.operator === '') { - if (this.value === '') { - return true - } - rangeTmp = new Range(comp.value, options) - return satisfies(this.value, rangeTmp, options) - } else if (comp.operator === '') { - if (comp.value === '') { - return true + do { + digit = vlq & VLQ_BASE_MASK; + vlq >>>= VLQ_BASE_SHIFT; + if (vlq > 0) { + // There are still more digits in this value, so we must make sure the + // continuation bit is marked. + digit |= VLQ_CONTINUATION_BIT; } - rangeTmp = new Range(this.value, options) - return satisfies(comp.semver, rangeTmp, options) - } + encoded += base64.encode(digit); + } while (vlq > 0); - var sameDirectionIncreasing = - (this.operator === '>=' || this.operator === '>') && - (comp.operator === '>=' || comp.operator === '>') - var sameDirectionDecreasing = - (this.operator === '<=' || this.operator === '<') && - (comp.operator === '<=' || comp.operator === '<') - var sameSemVer = this.semver.version === comp.semver.version - var differentDirectionsInclusive = - (this.operator === '>=' || this.operator === '<=') && - (comp.operator === '>=' || comp.operator === '<=') - var oppositeDirectionsLessThan = - cmp(this.semver, '<', comp.semver, options) && - ((this.operator === '>=' || this.operator === '>') && - (comp.operator === '<=' || comp.operator === '<')) - var oppositeDirectionsGreaterThan = - cmp(this.semver, '>', comp.semver, options) && - ((this.operator === '<=' || this.operator === '<') && - (comp.operator === '>=' || comp.operator === '>')) + return encoded; +}; - return sameDirectionIncreasing || sameDirectionDecreasing || - (sameSemVer && differentDirectionsInclusive) || - oppositeDirectionsLessThan || oppositeDirectionsGreaterThan -} +/** + * Decodes the next base 64 VLQ value from the given string and returns the + * value and the rest of the string via the out parameter. + */ +exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { + var strLen = aStr.length; + var result = 0; + var shift = 0; + var continuation, digit; -exports.Range = Range -function Range (range, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false + do { + if (aIndex >= strLen) { + throw new Error("Expected more digits in base 64 VLQ value."); } - } - if (range instanceof Range) { - if (range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease) { - return range - } else { - return new Range(range.raw, options) + digit = base64.decode(aStr.charCodeAt(aIndex++)); + if (digit === -1) { + throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); } - } - if (range instanceof Comparator) { - return new Range(range.value, options) - } + continuation = !!(digit & VLQ_CONTINUATION_BIT); + digit &= VLQ_BASE_MASK; + result = result + (digit << shift); + shift += VLQ_BASE_SHIFT; + } while (continuation); - if (!(this instanceof Range)) { - return new Range(range, options) - } + aOutParam.value = fromVLQSigned(result); + aOutParam.rest = aIndex; +}; - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease - // First, split based on boolean or || - this.raw = range - this.set = range.split(/\s*\|\|\s*/).map(function (range) { - return this.parseRange(range.trim()) - }, this).filter(function (c) { - // throw out any that are not relevant for whatever reason - return c.length - }) +/***/ }), - if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + range) - } +/***/ 28268: +/***/ (function(__unused_webpack_module, exports) { - this.format() -} +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ -Range.prototype.format = function () { - this.range = this.set.map(function (comps) { - return comps.join(' ').trim() - }).join('||').trim() - return this.range -} +var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); -Range.prototype.toString = function () { - return this.range -} +/** + * Encode an integer in the range of 0 to 63 to a single base 64 digit. + */ +exports.encode = function (number) { + if (0 <= number && number < intToCharMap.length) { + return intToCharMap[number]; + } + throw new TypeError("Must be between 0 and 63: " + number); +}; -Range.prototype.parseRange = function (range) { - var loose = this.options.loose - range = range.trim() - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE] - range = range.replace(hr, hyphenReplace) - debug('hyphen replace', range) - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range, re[t.COMPARATORTRIM]) +/** + * Decode a single base 64 character code digit to an integer. Returns -1 on + * failure. + */ +exports.decode = function (charCode) { + var bigA = 65; // 'A' + var bigZ = 90; // 'Z' - // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[t.TILDETRIM], tildeTrimReplace) + var littleA = 97; // 'a' + var littleZ = 122; // 'z' - // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[t.CARETTRIM], caretTrimReplace) + var zero = 48; // '0' + var nine = 57; // '9' - // normalize spaces - range = range.split(/\s+/).join(' ') + var plus = 43; // '+' + var slash = 47; // '/' - // At this point, the range is completely trimmed and - // ready to be split into comparators. + var littleOffset = 26; + var numberOffset = 52; - var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR] - var set = range.split(' ').map(function (comp) { - return parseComparator(comp, this.options) - }, this).join(' ').split(/\s+/) - if (this.options.loose) { - // in loose mode, throw out any that are not valid comparators - set = set.filter(function (comp) { - return !!comp.match(compRe) - }) + // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ + if (bigA <= charCode && charCode <= bigZ) { + return (charCode - bigA); } - set = set.map(function (comp) { - return new Comparator(comp, this.options) - }, this) - return set -} - -Range.prototype.intersects = function (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required') + // 26 - 51: abcdefghijklmnopqrstuvwxyz + if (littleA <= charCode && charCode <= littleZ) { + return (charCode - littleA + littleOffset); } - return this.set.some(function (thisComparators) { - return ( - isSatisfiable(thisComparators, options) && - range.set.some(function (rangeComparators) { - return ( - isSatisfiable(rangeComparators, options) && - thisComparators.every(function (thisComparator) { - return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, options) - }) - }) - ) - }) - ) - }) -} - -// take a set of comparators and determine whether there -// exists a version which can satisfy it -function isSatisfiable (comparators, options) { - var result = true - var remainingComparators = comparators.slice() - var testComparator = remainingComparators.pop() + // 52 - 61: 0123456789 + if (zero <= charCode && charCode <= nine) { + return (charCode - zero + numberOffset); + } - while (result && remainingComparators.length) { - result = remainingComparators.every(function (otherComparator) { - return testComparator.intersects(otherComparator, options) - }) + // 62: + + if (charCode == plus) { + return 62; + } - testComparator = remainingComparators.pop() + // 63: / + if (charCode == slash) { + return 63; } - return result -} + // Invalid base64 digit. + return -1; +}; -// Mostly just for testing and legacy API reasons -exports.toComparators = toComparators -function toComparators (range, options) { - return new Range(range, options).set.map(function (comp) { - return comp.map(function (c) { - return c.value - }).join(' ').trim().split(' ') - }) -} -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -function parseComparator (comp, options) { - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp -} +/***/ }), -function isX (id) { - return !id || id.toLowerCase() === 'x' || id === '*' -} +/***/ 98183: +/***/ (function(__unused_webpack_module, exports) { -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 -function replaceTildes (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceTilde(comp, options) - }).join(' ') -} +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ -function replaceTilde (comp, options) { - var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE] - return comp.replace(r, function (_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr) - var ret +exports.GREATEST_LOWER_BOUND = 1; +exports.LEAST_UPPER_BOUND = 2; - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - // ~1.2 == >=1.2.0 <1.3.0 - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else if (pr) { - debug('replaceTilde pr', pr) - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' +/** + * Recursive implementation of binary search. + * + * @param aLow Indices here and lower do not contain the needle. + * @param aHigh Indices here and higher do not contain the needle. + * @param aNeedle The element being searched for. + * @param aHaystack The non-empty array being searched. + * @param aCompare Function which takes two elements and returns -1, 0, or 1. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + */ +function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { + // This function terminates when one of the following is true: + // + // 1. We find the exact element we are looking for. + // + // 2. We did not find the exact element, but we can return the index of + // the next-closest element. + // + // 3. We did not find the exact element, and there is no next-closest + // element than the one we are searching for, so we return -1. + var mid = Math.floor((aHigh - aLow) / 2) + aLow; + var cmp = aCompare(aNeedle, aHaystack[mid], true); + if (cmp === 0) { + // Found the element we are looking for. + return mid; + } + else if (cmp > 0) { + // Our needle is greater than aHaystack[mid]. + if (aHigh - mid > 1) { + // The element is in the upper half. + return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); + } + + // The exact needle element was not found in this haystack. Determine if + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return aHigh < aHaystack.length ? aHigh : -1; } else { - // ~1.2.3 == >=1.2.3 <1.3.0 - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' + return mid; + } + } + else { + // Our needle is less than aHaystack[mid]. + if (mid - aLow > 1) { + // The element is in the lower half. + return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); } - debug('tilde return', ret) - return ret - }) -} - -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 -// ^1.2.3 --> >=1.2.3 <2.0.0 -// ^1.2.0 --> >=1.2.0 <2.0.0 -function replaceCarets (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceCaret(comp, options) - }).join(' ') -} - -function replaceCaret (comp, options) { - debug('caret', comp, options) - var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET] - return comp.replace(r, function (_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr) - var ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - if (M === '0') { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else { - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' - } - } else if (pr) { - debug('replaceCaret pr', pr) - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + (+M + 1) + '.0.0' - } + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports.LEAST_UPPER_BOUND) { + return mid; } else { - debug('no pr') - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + (+M + 1) + '.0.0' - } + return aLow < 0 ? -1 : aLow; } - - debug('caret return', ret) - return ret - }) + } } -function replaceXRanges (comp, options) { - debug('replaceXRanges', comp, options) - return comp.split(/\s+/).map(function (comp) { - return replaceXRange(comp, options) - }).join(' ') -} +/** + * This is an implementation of binary search which will always try and return + * the index of the closest element if there is no exact hit. This is because + * mappings between original and generated line/col pairs are single points, + * and there is an implicit region between each of them, so a miss just means + * that you aren't on the very start of a region. + * + * @param aNeedle The element you are looking for. + * @param aHaystack The array that is being searched. + * @param aCompare A function which takes the needle and an element in the + * array and returns -1, 0, or 1 depending on whether the needle is less + * than, equal to, or greater than the element, respectively. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. + */ +exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { + if (aHaystack.length === 0) { + return -1; + } -function replaceXRange (comp, options) { - comp = comp.trim() - var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE] - return comp.replace(r, function (ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - var xM = isX(M) - var xm = xM || isX(m) - var xp = xm || isX(p) - var anyX = xp + var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, + aCompare, aBias || exports.GREATEST_LOWER_BOUND); + if (index < 0) { + return -1; + } - if (gtlt === '=' && anyX) { - gtlt = '' + // We have found either the exact element, or the next-closest element than + // the one we are searching for. However, there may be more than one such + // element. Make sure we always return the smallest of these. + while (index - 1 >= 0) { + if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { + break; } + --index; + } - // if we're including prereleases in the match, then we need - // to fix this to -0, the lowest possible prerelease value - pr = options.includePrerelease ? '-0' : '' + return index; +}; - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0-0' - } else { - // nothing is forbidden - ret = '*' - } - } else if (gtlt && anyX) { - // we know patch is an x, because we have any x at all. - // replace X with 0 - if (xm) { - m = 0 - } - p = 0 - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - // >1.2.3 => >= 1.2.4 - gtlt = '>=' - if (xm) { - M = +M + 1 - m = 0 - p = 0 - } else { - m = +m + 1 - p = 0 - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) { - M = +M + 1 - } else { - m = +m + 1 - } - } +/***/ }), - ret = gtlt + M + '.' + m + '.' + p + pr - } else if (xm) { - ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr - } else if (xp) { - ret = '>=' + M + '.' + m + '.0' + pr + - ' <' + M + '.' + (+m + 1) + '.0' + pr - } +/***/ 2768: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - debug('xRange return', ret) +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2014 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ - return ret - }) +var util = __nccwpck_require__(59308); + +/** + * Determine whether mappingB is after mappingA with respect to generated + * position. + */ +function generatedPositionAfter(mappingA, mappingB) { + // Optimized for most common case + var lineA = mappingA.generatedLine; + var lineB = mappingB.generatedLine; + var columnA = mappingA.generatedColumn; + var columnB = mappingB.generatedColumn; + return lineB > lineA || lineB == lineA && columnB >= columnA || + util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; } -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -function replaceStars (comp, options) { - debug('replaceStars', comp, options) - // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(re[t.STAR], '') +/** + * A data structure to provide a sorted view of accumulated mappings in a + * performance conscious manner. It trades a neglibable overhead in general + * case for a large speedup in case of mappings being added in order. + */ +function MappingList() { + this._array = []; + this._sorted = true; + // Serves as infimum + this._last = {generatedLine: -1, generatedColumn: 0}; } -// This function is passed to string.replace(re[t.HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0 -function hyphenReplace ($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) { - if (isX(fM)) { - from = '' - } else if (isX(fm)) { - from = '>=' + fM + '.0.0' - } else if (isX(fp)) { - from = '>=' + fM + '.' + fm + '.0' - } else { - from = '>=' + from - } +/** + * Iterate through internal items. This method takes the same arguments that + * `Array.prototype.forEach` takes. + * + * NOTE: The order of the mappings is NOT guaranteed. + */ +MappingList.prototype.unsortedForEach = + function MappingList_forEach(aCallback, aThisArg) { + this._array.forEach(aCallback, aThisArg); + }; - if (isX(tM)) { - to = '' - } else if (isX(tm)) { - to = '<' + (+tM + 1) + '.0.0' - } else if (isX(tp)) { - to = '<' + tM + '.' + (+tm + 1) + '.0' - } else if (tpr) { - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr +/** + * Add the given source mapping. + * + * @param Object aMapping + */ +MappingList.prototype.add = function MappingList_add(aMapping) { + if (generatedPositionAfter(this._last, aMapping)) { + this._last = aMapping; + this._array.push(aMapping); } else { - to = '<=' + to + this._sorted = false; + this._array.push(aMapping); } +}; - return (from + ' ' + to).trim() -} - -// if ANY of the sets match ALL of its comparators, then pass -Range.prototype.test = function (version) { - if (!version) { - return false +/** + * Returns the flat, sorted array of mappings. The mappings are sorted by + * generated position. + * + * WARNING: This method returns internal data without copying, for + * performance. The return value must NOT be mutated, and should be treated as + * an immutable borrow. If you want to take ownership, you must make your own + * copy. + */ +MappingList.prototype.toArray = function MappingList_toArray() { + if (!this._sorted) { + this._array.sort(util.compareByGeneratedPositionsInflated); + this._sorted = true; } + return this._array; +}; - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } +exports.H = MappingList; - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true - } - } - return false -} -function testSet (set, version, options) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false - } - } +/***/ }), - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (i = 0; i < set.length; i++) { - debug(set[i].semver) - if (set[i].semver === ANY) { - continue - } +/***/ 94927: +/***/ (function(__unused_webpack_module, exports) { - if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) { - return true - } - } - } +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ - // Version has a -pre, but it's not one of the ones we like. - return false - } +// It turns out that some (most?) JavaScript engines don't self-host +// `Array.prototype.sort`. This makes sense because C++ will likely remain +// faster than JS when doing raw CPU-intensive sorting. However, when using a +// custom comparator function, calling back and forth between the VM's C++ and +// JIT'd JS is rather slow *and* loses JIT type information, resulting in +// worse generated code for the comparator function than would be optimal. In +// fact, when sorting with a comparator, these costs outweigh the benefits of +// sorting in C++. By using our own JS-implemented Quick Sort (below), we get +// a ~3500ms mean speed-up in `bench/bench.html`. - return true +/** + * Swap the elements indexed by `x` and `y` in the array `ary`. + * + * @param {Array} ary + * The array. + * @param {Number} x + * The index of the first item. + * @param {Number} y + * The index of the second item. + */ +function swap(ary, x, y) { + var temp = ary[x]; + ary[x] = ary[y]; + ary[y] = temp; } -exports.satisfies = satisfies -function satisfies (version, range, options) { - try { - range = new Range(range, options) - } catch (er) { - return false - } - return range.test(version) +/** + * Returns a random integer within the range `low .. high` inclusive. + * + * @param {Number} low + * The lower bound on the range. + * @param {Number} high + * The upper bound on the range. + */ +function randomIntInRange(low, high) { + return Math.round(low + (Math.random() * (high - low))); } -exports.maxSatisfying = maxSatisfying -function maxSatisfying (versions, range, options) { - var max = null - var maxSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { - // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) - } - } - }) - return max -} +/** + * The Quick Sort algorithm. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + * @param {Number} p + * Start index of the array + * @param {Number} r + * End index of the array + */ +function doQuickSort(ary, comparator, p, r) { + // If our lower bound is less than our upper bound, we (1) partition the + // array into two pieces and (2) recurse on each half. If it is not, this is + // the empty array and our base case. -exports.minSatisfying = minSatisfying -function minSatisfying (versions, range, options) { - var min = null - var minSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { - // compare(min, v, true) - min = v - minSV = new SemVer(min, options) - } - } - }) - return min -} + if (p < r) { + // (1) Partitioning. + // + // The partitioning chooses a pivot between `p` and `r` and moves all + // elements that are less than or equal to the pivot to the before it, and + // all the elements that are greater than it after it. The effect is that + // once partition is done, the pivot is in the exact place it will be when + // the array is put in sorted order, and it will not need to be moved + // again. This runs in O(n) time. -exports.minVersion = minVersion -function minVersion (range, loose) { - range = new Range(range, loose) + // Always choose a random pivot so that an input array which is reverse + // sorted does not cause O(n^2) running time. + var pivotIndex = randomIntInRange(p, r); + var i = p - 1; - var minver = new SemVer('0.0.0') - if (range.test(minver)) { - return minver - } + swap(ary, pivotIndex, r); + var pivot = ary[r]; - minver = new SemVer('0.0.0-0') - if (range.test(minver)) { - return minver - } + // Immediately after `j` is incremented in this loop, the following hold + // true: + // + // * Every element in `ary[p .. i]` is less than or equal to the pivot. + // + // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. + for (var j = p; j < r; j++) { + if (comparator(ary[j], pivot) <= 0) { + i += 1; + swap(ary, i, j); + } + } - minver = null - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] + swap(ary, i + 1, j); + var q = i + 1; - comparators.forEach(function (comparator) { - // Clone to avoid manipulating the comparator's semver object. - var compver = new SemVer(comparator.semver.version) - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++ - } else { - compver.prerelease.push(0) - } - compver.raw = compver.format() - /* fallthrough */ - case '': - case '>=': - if (!minver || gt(minver, compver)) { - minver = compver - } - break - case '<': - case '<=': - /* Ignore maximum versions */ - break - /* istanbul ignore next */ - default: - throw new Error('Unexpected operation: ' + comparator.operator) - } - }) - } + // (2) Recurse on each half. - if (minver && range.test(minver)) { - return minver + doQuickSort(ary, comparator, p, q - 1); + doQuickSort(ary, comparator, q + 1, r); } - - return null } -exports.validRange = validRange -function validRange (range, options) { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*' - } catch (er) { - return null - } -} - -// Determine if version is less than all the versions possible in the range -exports.ltr = ltr -function ltr (version, range, options) { - return outside(version, range, '<', options) -} - -// Determine if version is greater than all the versions possible in the range. -exports.gtr = gtr -function gtr (version, range, options) { - return outside(version, range, '>', options) -} - -exports.outside = outside -function outside (version, range, hilo, options) { - version = new SemVer(version, options) - range = new Range(range, options) - - var gtfn, ltefn, ltfn, comp, ecomp - switch (hilo) { - case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break - case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break - default: - throw new TypeError('Must provide a hilo val of "<" or ">"') - } - - // If it satisifes the range it is not outside - if (satisfies(version, range, options)) { - return false - } +/** + * Sort the given array in-place with the given comparator function. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + */ +exports.U = function (ary, comparator) { + doQuickSort(ary, comparator, 0, ary.length - 1); +}; - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] +/***/ }), - var high = null - var low = null +/***/ 75939: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - comparators.forEach(function (comparator) { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator - low = low || comparator - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator - } - }) +var __webpack_unused_export__; +/* -*- Mode: js; js-indent-level: 2; -*- */ +/* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false - } +var util = __nccwpck_require__(59308); +var binarySearch = __nccwpck_require__(98183); +var ArraySet = (__nccwpck_require__(99409)/* .ArraySet */ .I); +var base64VLQ = __nccwpck_require__(61019); +var quickSort = (__nccwpck_require__(94927)/* .quickSort */ .U); - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false - } +function SourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); } - return true -} -exports.prerelease = prerelease -function prerelease (version, options) { - var parsed = parse(version, options) - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null + return sourceMap.sections != null + ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) + : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); } -exports.intersects = intersects -function intersects (r1, r2, options) { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2) +SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { + return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); } -exports.coerce = coerce -function coerce (version, options) { - if (version instanceof SemVer) { - return version - } +/** + * The version of the source mapping spec that we are consuming. + */ +SourceMapConsumer.prototype._version = 3; - if (typeof version === 'number') { - version = String(version) - } +// `__generatedMappings` and `__originalMappings` are arrays that hold the +// parsed mapping coordinates from the source map's "mappings" attribute. They +// are lazily instantiated, accessed via the `_generatedMappings` and +// `_originalMappings` getters respectively, and we only parse the mappings +// and create these arrays once queried for a source location. We jump through +// these hoops because there can be many thousands of mappings, and parsing +// them is expensive, so we only want to do it if we must. +// +// Each object in the arrays is of the form: +// +// { +// generatedLine: The line number in the generated code, +// generatedColumn: The column number in the generated code, +// source: The path to the original source file that generated this +// chunk of code, +// originalLine: The line number in the original source that +// corresponds to this chunk of generated code, +// originalColumn: The column number in the original source that +// corresponds to this chunk of generated code, +// name: The name of the original symbol which generated this chunk of +// code. +// } +// +// All properties except for `generatedLine` and `generatedColumn` can be +// `null`. +// +// `_generatedMappings` is ordered by the generated positions. +// +// `_originalMappings` is ordered by the original positions. - if (typeof version !== 'string') { - return null - } +SourceMapConsumer.prototype.__generatedMappings = null; +Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__generatedMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } - options = options || {} + return this.__generatedMappings; + } +}); - var match = null - if (!options.rtl) { - match = version.match(re[t.COERCE]) - } else { - // Find the right-most coercible string that does not share - // a terminus with a more left-ward coercible string. - // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' - // - // Walk through the string checking with a /g regexp - // Manually set the index so as to pick up overlapping matches. - // Stop when we get a match that ends at the string end, since no - // coercible string can be more right-ward without the same terminus. - var next - while ((next = re[t.COERCERTL].exec(version)) && - (!match || match.index + match[0].length !== version.length) - ) { - if (!match || - next.index + next[0].length !== match.index + match[0].length) { - match = next - } - re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length +SourceMapConsumer.prototype.__originalMappings = null; +Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__originalMappings) { + this._parseMappings(this._mappings, this.sourceRoot); } - // leave it in a clean state - re[t.COERCERTL].lastIndex = -1 - } - if (match === null) { - return null + return this.__originalMappings; } +}); - return parse(match[2] + - '.' + (match[3] || '0') + - '.' + (match[4] || '0'), options) -} +SourceMapConsumer.prototype._charIsMappingSeparator = + function SourceMapConsumer_charIsMappingSeparator(aStr, index) { + var c = aStr.charAt(index); + return c === ";" || c === ","; + }; +/** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ +SourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + throw new Error("Subclasses must implement _parseMappings"); + }; -/***/ }), +SourceMapConsumer.GENERATED_ORDER = 1; +SourceMapConsumer.ORIGINAL_ORDER = 2; -/***/ 85408: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { +SourceMapConsumer.GREATEST_LOWER_BOUND = 1; +SourceMapConsumer.LEAST_UPPER_BOUND = 2; -"use strict"; -/*! - * shallow-clone +/** + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. * - * Copyright (c) 2015-present, Jon Schlinkert. - * Released under the MIT License. + * @param Function aCallback + * The function that is called with each mapping. + * @param Object aContext + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param aOrder + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. */ +SourceMapConsumer.prototype.eachMapping = + function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { + var context = aContext || null; + var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - -const valueOf = Symbol.prototype.valueOf; -const typeOf = __nccwpck_require__(49866); - -function clone(val, deep) { - switch (typeOf(val)) { - case 'array': - return val.slice(); - case 'object': - return Object.assign({}, val); - case 'date': - return new val.constructor(Number(val)); - case 'map': - return new Map(val); - case 'set': - return new Set(val); - case 'buffer': - return cloneBuffer(val); - case 'symbol': - return cloneSymbol(val); - case 'arraybuffer': - return cloneArrayBuffer(val); - case 'float32array': - case 'float64array': - case 'int16array': - case 'int32array': - case 'int8array': - case 'uint16array': - case 'uint32array': - case 'uint8clampedarray': - case 'uint8array': - return cloneTypedArray(val); - case 'regexp': - return cloneRegExp(val); - case 'error': - return Object.create(val); - default: { - return val; + var mappings; + switch (order) { + case SourceMapConsumer.GENERATED_ORDER: + mappings = this._generatedMappings; + break; + case SourceMapConsumer.ORIGINAL_ORDER: + mappings = this._originalMappings; + break; + default: + throw new Error("Unknown order of iteration."); } - } -} -function cloneRegExp(val) { - const flags = val.flags !== void 0 ? val.flags : (/\w+$/.exec(val) || void 0); - const re = new val.constructor(val.source, flags); - re.lastIndex = val.lastIndex; - return re; -} + var sourceRoot = this.sourceRoot; + mappings.map(function (mapping) { + var source = mapping.source === null ? null : this._sources.at(mapping.source); + source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); + return { + source: source, + generatedLine: mapping.generatedLine, + generatedColumn: mapping.generatedColumn, + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: mapping.name === null ? null : this._names.at(mapping.name) + }; + }, this).forEach(aCallback, context); + }; -function cloneArrayBuffer(val) { - const res = new val.constructor(val.byteLength); - new Uint8Array(res).set(new Uint8Array(val)); - return res; -} +/** + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number is 1-based. + * - column: Optional. the column number in the original source. + * The column number is 0-based. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ +SourceMapConsumer.prototype.allGeneratedPositionsFor = + function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { + var line = util.getArg(aArgs, 'line'); -function cloneTypedArray(val, deep) { - return new val.constructor(val.buffer, val.byteOffset, val.length); -} + // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping + // returns the index of the closest mapping less than the needle. By + // setting needle.originalColumn to 0, we thus find the last mapping for + // the given line, provided such a mapping exists. + var needle = { + source: util.getArg(aArgs, 'source'), + originalLine: line, + originalColumn: util.getArg(aArgs, 'column', 0) + }; -function cloneBuffer(val) { - const len = val.length; - const buf = Buffer.allocUnsafe ? Buffer.allocUnsafe(len) : Buffer.from(len); - val.copy(buf); - return buf; -} + needle.source = this._findSourceIndex(needle.source); + if (needle.source < 0) { + return []; + } -function cloneSymbol(val) { - return valueOf ? Object(valueOf.call(val)) : {}; -} + var mappings = []; -/** - * Expose `clone` - */ + var index = this._findMapping(needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + binarySearch.LEAST_UPPER_BOUND); + if (index >= 0) { + var mapping = this._originalMappings[index]; -module.exports = clone; + if (aArgs.column === undefined) { + var originalLine = mapping.originalLine; + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we found. Since + // mappings are sorted, this is guaranteed to find all mappings for + // the line we found. + while (mapping && mapping.originalLine === originalLine) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); -/***/ }), + mapping = this._originalMappings[++index]; + } + } else { + var originalColumn = mapping.originalColumn; -/***/ 16754: -/***/ (function(module, exports, __nccwpck_require__) { + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we were searching for. + // Since mappings are sorted, this is guaranteed to find all mappings for + // the line we are searching for. + while (mapping && + mapping.originalLine === line && + mapping.originalColumn == originalColumn) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); -/* module decorator */ module = __nccwpck_require__.nmd(module); -var SourceMapConsumer = (__nccwpck_require__(7435).SourceMapConsumer); -var path = __nccwpck_require__(71017); + mapping = this._originalMappings[++index]; + } + } + } -var fs; -try { - fs = __nccwpck_require__(57147); - if (!fs.existsSync || !fs.readFileSync) { - // fs doesn't have all methods we need - fs = null; - } -} catch (err) { - /* nop */ -} + return mappings; + }; -var bufferFrom = __nccwpck_require__(80234); +exports.SourceMapConsumer = SourceMapConsumer; /** - * Requires a module which is protected against bundler minification. + * A BasicSourceMapConsumer instance represents a parsed source map which we can + * query for information about the original file positions by giving it a file + * position in the generated source. * - * @param {NodeModule} mod - * @param {string} request + * The first parameter is the raw source map (either as a JSON string, or + * already parsed to an object). According to the spec, source maps have the + * following attributes: + * + * - version: Which version of the source map spec this map is following. + * - sources: An array of URLs to the original source files. + * - names: An array of identifiers which can be referrenced by individual mappings. + * - sourceRoot: Optional. The URL root from which all sources are relative. + * - sourcesContent: Optional. An array of contents of the original source files. + * - mappings: A string of base64 VLQs which contain the actual mappings. + * - file: Optional. The generated file this source map is associated with. + * + * Here is an example source map, taken from the source map spec[0]: + * + * { + * version : 3, + * file: "out.js", + * sourceRoot : "", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AA,AB;;ABCDE;" + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# */ -function dynamicRequire(mod, request) { - return mod.require(request); -} - -// Only install once if called multiple times -var errorFormatterInstalled = false; -var uncaughtShimInstalled = false; +function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } -// If true, the caches are reset before a stack trace formatting operation -var emptyCacheBetweenOperations = false; + var version = util.getArg(sourceMap, 'version'); + var sources = util.getArg(sourceMap, 'sources'); + // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which + // requires the array) to play nice here. + var names = util.getArg(sourceMap, 'names', []); + var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); + var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); + var mappings = util.getArg(sourceMap, 'mappings'); + var file = util.getArg(sourceMap, 'file', null); -// Supports {browser, node, auto} -var environment = "auto"; + // Once again, Sass deviates from the spec and supplies the version as a + // string rather than a number, so we use loose equality checking here. + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } -// Maps a file path to a string containing the file contents -var fileContentsCache = {}; + if (sourceRoot) { + sourceRoot = util.normalize(sourceRoot); + } -// Maps a file path to a source map for that file -var sourceMapCache = {}; + sources = sources + .map(String) + // Some source maps produce relative source paths like "./foo.js" instead of + // "foo.js". Normalize these first so that future comparisons will succeed. + // See bugzil.la/1090768. + .map(util.normalize) + // Always ensure that absolute sources are internally stored relative to + // the source root, if the source root is absolute. Not doing this would + // be particularly problematic when the source root is a prefix of the + // source (valid, but why??). See github issue #199 and bugzil.la/1188982. + .map(function (source) { + return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) + ? util.relative(sourceRoot, source) + : source; + }); -// Regex for detecting source maps -var reSourceMap = /^data:application\/json[^,]+base64,/; + // Pass `true` below to allow duplicate names and sources. While source maps + // are intended to be compressed and deduplicated, the TypeScript compiler + // sometimes generates source maps with duplicates in them. See Github issue + // #72 and bugzil.la/889492. + this._names = ArraySet.fromArray(names.map(String), true); + this._sources = ArraySet.fromArray(sources, true); -// Priority list of retrieve handlers -var retrieveFileHandlers = []; -var retrieveMapHandlers = []; + this._absoluteSources = this._sources.toArray().map(function (s) { + return util.computeSourceURL(sourceRoot, s, aSourceMapURL); + }); -function isInBrowser() { - if (environment === "browser") - return true; - if (environment === "node") - return false; - return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer")); + this.sourceRoot = sourceRoot; + this.sourcesContent = sourcesContent; + this._mappings = mappings; + this._sourceMapURL = aSourceMapURL; + this.file = file; } -function hasGlobalProcessEventEmitter() { - return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function')); -} +BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); +BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; -function globalProcessVersion() { - if ((typeof process === 'object') && (process !== null)) { - return process.version; - } else { - return ''; +/** + * Utility function to find the index of a source. Returns -1 if not + * found. + */ +BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); } -} -function globalProcessStderr() { - if ((typeof process === 'object') && (process !== null)) { - return process.stderr; + if (this._sources.has(relativeSource)) { + return this._sources.indexOf(relativeSource); } -} -function globalProcessExit(code) { - if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) { - return process.exit(code); + // Maybe aSource is an absolute URL as returned by |sources|. In + // this case we can't simply undo the transform. + var i; + for (i = 0; i < this._absoluteSources.length; ++i) { + if (this._absoluteSources[i] == aSource) { + return i; + } } -} -function handlerExec(list) { - return function(arg) { - for (var i = 0; i < list.length; i++) { - var ret = list[i](arg); - if (ret) { - return ret; - } - } - return null; - }; -} + return -1; +}; -var retrieveFile = handlerExec(retrieveFileHandlers); +/** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param SourceMapGenerator aSourceMap + * The source map that will be consumed. + * @param String aSourceMapURL + * The URL at which the source map can be found (optional) + * @returns BasicSourceMapConsumer + */ +BasicSourceMapConsumer.fromSourceMap = + function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { + var smc = Object.create(BasicSourceMapConsumer.prototype); -retrieveFileHandlers.push(function(path) { - // Trim the path to make sure there is no extra whitespace. - path = path.trim(); - if (/^file:/.test(path)) { - // existsSync/readFileSync can't handle file protocol, but once stripped, it works - path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) { - return drive ? - '' : // file:///C:/dir/file -> C:/dir/file - '/'; // file:///root-dir/file -> /root-dir/file + var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); + var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); + smc.sourceRoot = aSourceMap._sourceRoot; + smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), + smc.sourceRoot); + smc.file = aSourceMap._file; + smc._sourceMapURL = aSourceMapURL; + smc._absoluteSources = smc._sources.toArray().map(function (s) { + return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); }); - } - if (path in fileContentsCache) { - return fileContentsCache[path]; - } - var contents = ''; - try { - if (!fs) { - // Use SJAX if we are in the browser - var xhr = new XMLHttpRequest(); - xhr.open('GET', path, /** async */ false); - xhr.send(null); - if (xhr.readyState === 4 && xhr.status === 200) { - contents = xhr.responseText; + // Because we are modifying the entries (by converting string sources and + // names to indices into the sources and names ArraySets), we have to make + // a copy of the entry or else bad things happen. Shared mutable state + // strikes again! See github issue #191. + + var generatedMappings = aSourceMap._mappings.toArray().slice(); + var destGeneratedMappings = smc.__generatedMappings = []; + var destOriginalMappings = smc.__originalMappings = []; + + for (var i = 0, length = generatedMappings.length; i < length; i++) { + var srcMapping = generatedMappings[i]; + var destMapping = new Mapping; + destMapping.generatedLine = srcMapping.generatedLine; + destMapping.generatedColumn = srcMapping.generatedColumn; + + if (srcMapping.source) { + destMapping.source = sources.indexOf(srcMapping.source); + destMapping.originalLine = srcMapping.originalLine; + destMapping.originalColumn = srcMapping.originalColumn; + + if (srcMapping.name) { + destMapping.name = names.indexOf(srcMapping.name); + } + + destOriginalMappings.push(destMapping); } - } else if (fs.existsSync(path)) { - // Otherwise, use the filesystem - contents = fs.readFileSync(path, 'utf8'); + + destGeneratedMappings.push(destMapping); } - } catch (er) { - /* ignore any errors */ - } - return fileContentsCache[path] = contents; -}); + quickSort(smc.__originalMappings, util.compareByOriginalPositions); -// Support URLs relative to a directory, but be careful about a protocol prefix -// in case we are in the browser (i.e. directories may start with "http://" or "file:///") -function supportRelativeURL(file, url) { - if (!file) return url; - var dir = path.dirname(file); - var match = /^\w+:\/\/[^\/]*/.exec(dir); - var protocol = match ? match[0] : ''; - var startPath = dir.slice(protocol.length); - if (protocol && /^\/\w\:/.test(startPath)) { - // handle file:///C:/ paths - protocol += '/'; - return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/'); + return smc; + }; + +/** + * The version of the source mapping spec that we are consuming. + */ +BasicSourceMapConsumer.prototype._version = 3; + +/** + * The list of original sources. + */ +Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { + get: function () { + return this._absoluteSources.slice(); } - return protocol + path.resolve(dir.slice(protocol.length), url); +}); + +/** + * Provide the JIT with a nice shape / hidden class. + */ +function Mapping() { + this.generatedLine = 0; + this.generatedColumn = 0; + this.source = null; + this.originalLine = null; + this.originalColumn = null; + this.name = null; } -function retrieveSourceMapURL(source) { - var fileData; +/** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ +BasicSourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + var generatedLine = 1; + var previousGeneratedColumn = 0; + var previousOriginalLine = 0; + var previousOriginalColumn = 0; + var previousSource = 0; + var previousName = 0; + var length = aStr.length; + var index = 0; + var cachedSegments = {}; + var temp = {}; + var originalMappings = []; + var generatedMappings = []; + var mapping, str, segment, end, value; - if (isInBrowser()) { - try { - var xhr = new XMLHttpRequest(); - xhr.open('GET', source, false); - xhr.send(null); - fileData = xhr.readyState === 4 ? xhr.responseText : null; + while (index < length) { + if (aStr.charAt(index) === ';') { + generatedLine++; + index++; + previousGeneratedColumn = 0; + } + else if (aStr.charAt(index) === ',') { + index++; + } + else { + mapping = new Mapping(); + mapping.generatedLine = generatedLine; - // Support providing a sourceMappingURL via the SourceMap header - var sourceMapHeader = xhr.getResponseHeader("SourceMap") || - xhr.getResponseHeader("X-SourceMap"); - if (sourceMapHeader) { - return sourceMapHeader; - } - } catch (e) { - } - } + // Because each offset is encoded relative to the previous one, + // many segments often have the same encoding. We can exploit this + // fact by caching the parsed variable length fields of each segment, + // allowing us to avoid a second parse if we encounter the same + // segment again. + for (end = index; end < length; end++) { + if (this._charIsMappingSeparator(aStr, end)) { + break; + } + } + str = aStr.slice(index, end); - // Get the URL of the source map - fileData = retrieveFile(source); - var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg; - // Keep executing the search to find the *last* sourceMappingURL to avoid - // picking up sourceMappingURLs from comments, strings, etc. - var lastMatch, match; - while (match = re.exec(fileData)) lastMatch = match; - if (!lastMatch) return null; - return lastMatch[1]; -}; + segment = cachedSegments[str]; + if (segment) { + index += str.length; + } else { + segment = []; + while (index < end) { + base64VLQ.decode(aStr, index, temp); + value = temp.value; + index = temp.rest; + segment.push(value); + } -// Can be overridden by the retrieveSourceMap option to install. Takes a -// generated source filename; returns a {map, optional url} object, or null if -// there is no source map. The map field may be either a string or the parsed -// JSON object (ie, it must be a valid argument to the SourceMapConsumer -// constructor). -var retrieveSourceMap = handlerExec(retrieveMapHandlers); -retrieveMapHandlers.push(function(source) { - var sourceMappingURL = retrieveSourceMapURL(source); - if (!sourceMappingURL) return null; + if (segment.length === 2) { + throw new Error('Found a source, but no line and column'); + } - // Read the contents of the source map - var sourceMapData; - if (reSourceMap.test(sourceMappingURL)) { - // Support source map URL as a data url - var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1); - sourceMapData = bufferFrom(rawData, "base64").toString(); - sourceMappingURL = source; - } else { - // Support source map URLs relative to the source URL - sourceMappingURL = supportRelativeURL(source, sourceMappingURL); - sourceMapData = retrieveFile(sourceMappingURL); - } + if (segment.length === 3) { + throw new Error('Found a source and line, but no column'); + } - if (!sourceMapData) { - return null; - } + cachedSegments[str] = segment; + } - return { - url: sourceMappingURL, - map: sourceMapData - }; -}); + // Generated column. + mapping.generatedColumn = previousGeneratedColumn + segment[0]; + previousGeneratedColumn = mapping.generatedColumn; -function mapSourcePosition(position) { - var sourceMap = sourceMapCache[position.source]; - if (!sourceMap) { - // Call the (overrideable) retrieveSourceMap function to get the source map. - var urlAndMap = retrieveSourceMap(position.source); - if (urlAndMap) { - sourceMap = sourceMapCache[position.source] = { - url: urlAndMap.url, - map: new SourceMapConsumer(urlAndMap.map) - }; + if (segment.length > 1) { + // Original source. + mapping.source = previousSource + segment[1]; + previousSource += segment[1]; - // Load all sources stored inline with the source map into the file cache - // to pretend like they are already loaded. They may not exist on disk. - if (sourceMap.map.sourcesContent) { - sourceMap.map.sources.forEach(function(source, i) { - var contents = sourceMap.map.sourcesContent[i]; - if (contents) { - var url = supportRelativeURL(sourceMap.url, source); - fileContentsCache[url] = contents; + // Original line. + mapping.originalLine = previousOriginalLine + segment[2]; + previousOriginalLine = mapping.originalLine; + // Lines are stored 0-based + mapping.originalLine += 1; + + // Original column. + mapping.originalColumn = previousOriginalColumn + segment[3]; + previousOriginalColumn = mapping.originalColumn; + + if (segment.length > 4) { + // Original name. + mapping.name = previousName + segment[4]; + previousName += segment[4]; } - }); + } + + generatedMappings.push(mapping); + if (typeof mapping.originalLine === 'number') { + originalMappings.push(mapping); + } } - } else { - sourceMap = sourceMapCache[position.source] = { - url: null, - map: null - }; } - } - // Resolve the source URL relative to the URL of the source map - if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === 'function') { - var originalPosition = sourceMap.map.originalPositionFor(position); + quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); + this.__generatedMappings = generatedMappings; - // Only return the original position if a matching line was found. If no - // matching line is found then we return position instead, which will cause - // the stack trace to print the path and line for the compiled file. It is - // better to give a precise location in the compiled file than a vague - // location in the original file. - if (originalPosition.source !== null) { - originalPosition.source = supportRelativeURL( - sourceMap.url, originalPosition.source); - return originalPosition; - } - } + quickSort(originalMappings, util.compareByOriginalPositions); + this.__originalMappings = originalMappings; + }; - return position; -} +/** + * Find the mapping that best matches the hypothetical "needle" mapping that + * we are searching for in the given "haystack" of mappings. + */ +BasicSourceMapConsumer.prototype._findMapping = + function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, + aColumnName, aComparator, aBias) { + // To return the position we are searching for, we must first find the + // mapping for the given position and then return the opposite position it + // points to. Because the mappings are sorted, we can use binary search to + // find the best mapping. -// Parses code generated by FormatEvalOrigin(), a function inside V8: -// https://code.google.com/p/v8/source/browse/trunk/src/messages.js -function mapEvalOrigin(origin) { - // Most eval() calls are in this format - var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); - if (match) { - var position = mapSourcePosition({ - source: match[2], - line: +match[3], - column: match[4] - 1 - }); - return 'eval at ' + match[1] + ' (' + position.source + ':' + - position.line + ':' + (position.column + 1) + ')'; - } + if (aNeedle[aLineName] <= 0) { + throw new TypeError('Line must be greater than or equal to 1, got ' + + aNeedle[aLineName]); + } + if (aNeedle[aColumnName] < 0) { + throw new TypeError('Column must be greater than or equal to 0, got ' + + aNeedle[aColumnName]); + } - // Parse nested eval() calls using recursion - match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); - if (match) { - return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; - } + return binarySearch.search(aNeedle, aMappings, aComparator, aBias); + }; - // Make sure we still return useful information if we didn't find anything - return origin; -} +/** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ +BasicSourceMapConsumer.prototype.computeColumnSpans = + function SourceMapConsumer_computeColumnSpans() { + for (var index = 0; index < this._generatedMappings.length; ++index) { + var mapping = this._generatedMappings[index]; -// This is copied almost verbatim from the V8 source code at -// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The -// implementation of wrapCallSite() used to just forward to the actual source -// code of CallSite.prototype.toString but unfortunately a new release of V8 -// did something to the prototype chain and broke the shim. The only fix I -// could find was copy/paste. -function CallSiteToString() { - var fileName; - var fileLocation = ""; - if (this.isNative()) { - fileLocation = "native"; - } else { - fileName = this.getScriptNameOrSourceURL(); - if (!fileName && this.isEval()) { - fileLocation = this.getEvalOrigin(); - fileLocation += ", "; // Expecting source position to follow. - } + // Mappings do not contain a field for the last generated columnt. We + // can come up with an optimistic estimate, however, by assuming that + // mappings are contiguous (i.e. given two consecutive mappings, the + // first mapping ends where the second one starts). + if (index + 1 < this._generatedMappings.length) { + var nextMapping = this._generatedMappings[index + 1]; - if (fileName) { - fileLocation += fileName; - } else { - // Source code does not originate from a file and is not native, but we - // can still get the source position inside the source string, e.g. in - // an eval string. - fileLocation += ""; - } - var lineNumber = this.getLineNumber(); - if (lineNumber != null) { - fileLocation += ":" + lineNumber; - var columnNumber = this.getColumnNumber(); - if (columnNumber) { - fileLocation += ":" + columnNumber; + if (mapping.generatedLine === nextMapping.generatedLine) { + mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; + continue; + } } + + // The last mapping for each line spans the entire line. + mapping.lastGeneratedColumn = Infinity; } - } + }; - var line = ""; - var functionName = this.getFunctionName(); - var addSuffix = true; - var isConstructor = this.isConstructor(); - var isMethodCall = !(this.isToplevel() || isConstructor); - if (isMethodCall) { - var typeName = this.getTypeName(); - // Fixes shim to be backward compatable with Node v0 to v4 - if (typeName === "[object Object]") { - typeName = "null"; - } - var methodName = this.getMethodName(); - if (functionName) { - if (typeName && functionName.indexOf(typeName) != 0) { - line += typeName + "."; - } - line += functionName; - if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { - line += " [as " + methodName + "]"; - } - } else { - line += typeName + "." + (methodName || ""); - } - } else if (isConstructor) { - line += "new " + (functionName || ""); - } else if (functionName) { - line += functionName; - } else { - line += fileLocation; - addSuffix = false; - } - if (addSuffix) { - line += " (" + fileLocation + ")"; - } - return line; -} - -function cloneCallSite(frame) { - var object = {}; - Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) { - object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name]; - }); - object.toString = CallSiteToString; - return object; -} +/** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ +BasicSourceMapConsumer.prototype.originalPositionFor = + function SourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; -function wrapCallSite(frame, state) { - // provides interface backward compatibility - if (state === undefined) { - state = { nextPosition: null, curPosition: null } - } - if(frame.isNative()) { - state.curPosition = null; - return frame; - } + var index = this._findMapping( + needle, + this._generatedMappings, + "generatedLine", + "generatedColumn", + util.compareByGeneratedPositionsDeflated, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); - // Most call sites will return the source file from getFileName(), but code - // passed to eval() ending in "//# sourceURL=..." will return the source file - // from getScriptNameOrSourceURL() instead - var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); - if (source) { - var line = frame.getLineNumber(); - var column = frame.getColumnNumber() - 1; + if (index >= 0) { + var mapping = this._generatedMappings[index]; - // Fix position in Node where some (internal) code is prepended. - // See https://github.com/evanw/node-source-map-support/issues/36 - // Header removed in node at ^10.16 || >=11.11.0 - // v11 is not an LTS candidate, we can just test the one version with it. - // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11 - var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/; - var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62; - if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) { - column -= headerLength; + if (mapping.generatedLine === needle.generatedLine) { + var source = util.getArg(mapping, 'source', null); + if (source !== null) { + source = this._sources.at(source); + source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); + } + var name = util.getArg(mapping, 'name', null); + if (name !== null) { + name = this._names.at(name); + } + return { + source: source, + line: util.getArg(mapping, 'originalLine', null), + column: util.getArg(mapping, 'originalColumn', null), + name: name + }; + } } - var position = mapSourcePosition({ - source: source, - line: line, - column: column - }); - state.curPosition = position; - frame = cloneCallSite(frame); - var originalFunctionName = frame.getFunctionName; - frame.getFunctionName = function() { - if (state.nextPosition == null) { - return originalFunctionName(); - } - return state.nextPosition.name || originalFunctionName(); + return { + source: null, + line: null, + column: null, + name: null }; - frame.getFileName = function() { return position.source; }; - frame.getLineNumber = function() { return position.line; }; - frame.getColumnNumber = function() { return position.column + 1; }; - frame.getScriptNameOrSourceURL = function() { return position.source; }; - return frame; - } - - // Code called using eval() needs special handling - var origin = frame.isEval() && frame.getEvalOrigin(); - if (origin) { - origin = mapEvalOrigin(origin); - frame = cloneCallSite(frame); - frame.getEvalOrigin = function() { return origin; }; - return frame; - } - - // If we get here then we were unable to change the source position - return frame; -} - -// This function is part of the V8 stack trace API, for more info see: -// https://v8.dev/docs/stack-trace-api -function prepareStackTrace(error, stack) { - if (emptyCacheBetweenOperations) { - fileContentsCache = {}; - sourceMapCache = {}; - } + }; - var name = error.name || 'Error'; - var message = error.message || ''; - var errorString = name + ": " + message; +/** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ +BasicSourceMapConsumer.prototype.hasContentsOfAllSources = + function BasicSourceMapConsumer_hasContentsOfAllSources() { + if (!this.sourcesContent) { + return false; + } + return this.sourcesContent.length >= this._sources.size() && + !this.sourcesContent.some(function (sc) { return sc == null; }); + }; - var state = { nextPosition: null, curPosition: null }; - var processedStack = []; - for (var i = stack.length - 1; i >= 0; i--) { - processedStack.push('\n at ' + wrapCallSite(stack[i], state)); - state.nextPosition = state.curPosition; - } - state.curPosition = state.nextPosition = null; - return errorString + processedStack.reverse().join(''); -} +/** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ +BasicSourceMapConsumer.prototype.sourceContentFor = + function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + if (!this.sourcesContent) { + return null; + } -// Generate position and snippet of original source with pointer -function getErrorSource(error) { - var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); - if (match) { - var source = match[1]; - var line = +match[2]; - var column = +match[3]; + var index = this._findSourceIndex(aSource); + if (index >= 0) { + return this.sourcesContent[index]; + } - // Support the inline sourceContents inside the source map - var contents = fileContentsCache[source]; + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } - // Support files on disk - if (!contents && fs && fs.existsSync(source)) { - try { - contents = fs.readFileSync(source, 'utf8'); - } catch (er) { - contents = ''; + var url; + if (this.sourceRoot != null + && (url = util.urlParse(this.sourceRoot))) { + // XXX: file:// URIs and absolute paths lead to unexpected behavior for + // many users. We can help them out when they expect file:// URIs to + // behave like it would if they were running a local HTTP server. See + // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. + var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); + if (url.scheme == "file" + && this._sources.has(fileUriAbsPath)) { + return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] } - } - // Format the line from the original source code like node does - if (contents) { - var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; - if (code) { - return source + ':' + line + '\n' + code + '\n' + - new Array(column).join(' ') + '^'; + if ((!url.path || url.path == "/") + && this._sources.has("/" + relativeSource)) { + return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; } } - } - return null; -} -function printErrorAndExit (error) { - var source = getErrorSource(error); - - // Ensure error is printed synchronously and not truncated - var stderr = globalProcessStderr(); - if (stderr && stderr._handle && stderr._handle.setBlocking) { - stderr._handle.setBlocking(true); - } + // This function is used recursively from + // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we + // don't want to throw if we can't find the source - we just want to + // return null, so we provide a flag to exit gracefully. + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + relativeSource + '" is not in the SourceMap.'); + } + }; - if (source) { - console.error(); - console.error(source); - } +/** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ +BasicSourceMapConsumer.prototype.generatedPositionFor = + function SourceMapConsumer_generatedPositionFor(aArgs) { + var source = util.getArg(aArgs, 'source'); + source = this._findSourceIndex(source); + if (source < 0) { + return { + line: null, + column: null, + lastColumn: null + }; + } - console.error(error.stack); - globalProcessExit(1); -} + var needle = { + source: source, + originalLine: util.getArg(aArgs, 'line'), + originalColumn: util.getArg(aArgs, 'column') + }; -function shimEmitUncaughtException () { - var origEmit = process.emit; + var index = this._findMapping( + needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); - process.emit = function (type) { - if (type === 'uncaughtException') { - var hasStack = (arguments[1] && arguments[1].stack); - var hasListeners = (this.listeners(type).length > 0); + if (index >= 0) { + var mapping = this._originalMappings[index]; - if (hasStack && !hasListeners) { - return printErrorAndExit(arguments[1]); + if (mapping.source === needle.source) { + return { + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }; } } - return origEmit.apply(this, arguments); + return { + line: null, + column: null, + lastColumn: null + }; }; -} -var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0); -var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0); +__webpack_unused_export__ = BasicSourceMapConsumer; -exports.wrapCallSite = wrapCallSite; -exports.getErrorSource = getErrorSource; -exports.mapSourcePosition = mapSourcePosition; -exports.retrieveSourceMap = retrieveSourceMap; +/** + * An IndexedSourceMapConsumer instance represents a parsed source map which + * we can query for information. It differs from BasicSourceMapConsumer in + * that it takes "indexed" source maps (i.e. ones with a "sections" field) as + * input. + * + * The first parameter is a raw source map (either as a JSON string, or already + * parsed to an object). According to the spec for indexed source maps, they + * have the following attributes: + * + * - version: Which version of the source map spec this map is following. + * - file: Optional. The generated file this source map is associated with. + * - sections: A list of section definitions. + * + * Each value under the "sections" field has two fields: + * - offset: The offset into the original specified at which this section + * begins to apply, defined as an object with a "line" and "column" + * field. + * - map: A source map definition. This source map could also be indexed, + * but doesn't have to be. + * + * Instead of the "map" field, it's also possible to have a "url" field + * specifying a URL to retrieve a source map from, but that's currently + * unsupported. + * + * Here's an example source map, taken from the source map spec[0], but + * modified to omit a section which uses the "url" field. + * + * { + * version : 3, + * file: "app.js", + * sections: [{ + * offset: {line:100, column:10}, + * map: { + * version : 3, + * file: "section.js", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AAAA,E;;ABCDE;" + * } + * }], + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt + */ +function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } -exports.install = function(options) { - options = options || {}; + var version = util.getArg(sourceMap, 'version'); + var sections = util.getArg(sourceMap, 'sections'); - if (options.environment) { - environment = options.environment; - if (["node", "browser", "auto"].indexOf(environment) === -1) { - throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}") - } + if (version != this._version) { + throw new Error('Unsupported version: ' + version); } - // Allow sources to be found by methods other than reading the files - // directly from disk. - if (options.retrieveFile) { - if (options.overrideRetrieveFile) { - retrieveFileHandlers.length = 0; - } + this._sources = new ArraySet(); + this._names = new ArraySet(); - retrieveFileHandlers.unshift(options.retrieveFile); - } + var lastOffset = { + line: -1, + column: 0 + }; + this._sections = sections.map(function (s) { + if (s.url) { + // The url field will require support for asynchronicity. + // See https://github.com/mozilla/source-map/issues/16 + throw new Error('Support for url field in sections not implemented.'); + } + var offset = util.getArg(s, 'offset'); + var offsetLine = util.getArg(offset, 'line'); + var offsetColumn = util.getArg(offset, 'column'); - // Allow source maps to be found by methods other than reading the files - // directly from disk. - if (options.retrieveSourceMap) { - if (options.overrideRetrieveSourceMap) { - retrieveMapHandlers.length = 0; + if (offsetLine < lastOffset.line || + (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { + throw new Error('Section offsets must be ordered and non-overlapping.'); } + lastOffset = offset; - retrieveMapHandlers.unshift(options.retrieveSourceMap); - } + return { + generatedOffset: { + // The offset fields are 0-based, but we use 1-based indices when + // encoding/decoding from VLQ. + generatedLine: offsetLine + 1, + generatedColumn: offsetColumn + 1 + }, + consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) + } + }); +} - // Support runtime transpilers that include inline source maps - if (options.hookRequire && !isInBrowser()) { - // Use dynamicRequire to avoid including in browser bundles - var Module = dynamicRequire(module, 'module'); - var $compile = Module.prototype._compile; +IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); +IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - if (!$compile.__sourceMapSupport) { - Module.prototype._compile = function(content, filename) { - fileContentsCache[filename] = content; - sourceMapCache[filename] = undefined; - return $compile.call(this, content, filename); - }; +/** + * The version of the source mapping spec that we are consuming. + */ +IndexedSourceMapConsumer.prototype._version = 3; - Module.prototype._compile.__sourceMapSupport = true; +/** + * The list of original sources. + */ +Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { + get: function () { + var sources = []; + for (var i = 0; i < this._sections.length; i++) { + for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { + sources.push(this._sections[i].consumer.sources[j]); + } } + return sources; } +}); - // Configure options - if (!emptyCacheBetweenOperations) { - emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? - options.emptyCacheBetweenOperations : false; - } - - // Install the error reformatter - if (!errorFormatterInstalled) { - errorFormatterInstalled = true; - Error.prepareStackTrace = prepareStackTrace; - } - - if (!uncaughtShimInstalled) { - var installHandler = 'handleUncaughtExceptions' in options ? - options.handleUncaughtExceptions : true; - - // Do not override 'uncaughtException' with our own handler in Node.js - // Worker threads. Workers pass the error to the main thread as an event, - // rather than printing something to stderr and exiting. - try { - // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify. - var worker_threads = dynamicRequire(module, 'worker_threads'); - if (worker_threads.isMainThread === false) { - installHandler = false; - } - } catch(e) {} - - // Provide the option to not install the uncaught exception handler. This is - // to support other uncaught exception handlers (in test frameworks, for - // example). If this handler is not installed and there are no other uncaught - // exception handlers, uncaught exceptions will be caught by node's built-in - // exception handler and the process will still be terminated. However, the - // generated JavaScript code will be shown above the stack trace instead of - // the original source code. - if (installHandler && hasGlobalProcessEventEmitter()) { - uncaughtShimInstalled = true; - shimEmitUncaughtException(); - } - } -}; - -exports.resetRetrieveHandlers = function() { - retrieveFileHandlers.length = 0; - retrieveMapHandlers.length = 0; - - retrieveFileHandlers = originalRetrieveFileHandlers.slice(0); - retrieveMapHandlers = originalRetrieveMapHandlers.slice(0); - - retrieveSourceMap = handlerExec(retrieveMapHandlers); - retrieveFile = handlerExec(retrieveFileHandlers); -} - - -/***/ }), +/** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ +IndexedSourceMapConsumer.prototype.originalPositionFor = + function IndexedSourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; -/***/ 99409: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + // Find the section containing the generated position we're trying to map + // to an original position. + var sectionIndex = binarySearch.search(needle, this._sections, + function(needle, section) { + var cmp = needle.generatedLine - section.generatedOffset.generatedLine; + if (cmp) { + return cmp; + } -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ + return (needle.generatedColumn - + section.generatedOffset.generatedColumn); + }); + var section = this._sections[sectionIndex]; -var util = __nccwpck_require__(59308); -var has = Object.prototype.hasOwnProperty; -var hasNativeMap = typeof Map !== "undefined"; + if (!section) { + return { + source: null, + line: null, + column: null, + name: null + }; + } -/** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ -function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); -} + return section.consumer.originalPositionFor({ + line: needle.generatedLine - + (section.generatedOffset.generatedLine - 1), + column: needle.generatedColumn - + (section.generatedOffset.generatedLine === needle.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + bias: aArgs.bias + }); + }; /** - * Static method for creating ArraySet instances from an existing array. + * Return true if we have the source content for every source in the source + * map, false otherwise. */ -ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; -}; +IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = + function IndexedSourceMapConsumer_hasContentsOfAllSources() { + return this._sections.every(function (s) { + return s.consumer.hasContentsOfAllSources(); + }); + }; /** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. */ -ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; -}; +IndexedSourceMapConsumer.prototype.sourceContentFor = + function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; -/** - * Add the given string to this set. - * - * @param String aStr - */ -ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; + var content = section.consumer.sourceContentFor(aSource, true); + if (content) { + return content; + } } - } -}; + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + aSource + '" is not in the SourceMap.'); + } + }; /** - * Is the given string a member of this set? + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: * - * @param String aStr - */ -ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } -}; - -/** - * What is the index of the given string in the array? + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. * - * @param String aStr + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. */ -ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; +IndexedSourceMapConsumer.prototype.generatedPositionFor = + function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + // Only consider this section if the requested source is in the list of + // sources of the consumer. + if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { + continue; + } + var generatedPosition = section.consumer.generatedPositionFor(aArgs); + if (generatedPosition) { + var ret = { + line: generatedPosition.line + + (section.generatedOffset.generatedLine - 1), + column: generatedPosition.column + + (section.generatedOffset.generatedLine === generatedPosition.line + ? section.generatedOffset.generatedColumn - 1 + : 0) + }; + return ret; + } } - } - throw new Error('"' + aStr + '" is not in the set.'); -}; + return { + line: null, + column: null + }; + }; /** - * What is the element at the given index? - * - * @param Number aIdx + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). */ -ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); -}; +IndexedSourceMapConsumer.prototype._parseMappings = + function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { + this.__generatedMappings = []; + this.__originalMappings = []; + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + var sectionMappings = section.consumer._generatedMappings; + for (var j = 0; j < sectionMappings.length; j++) { + var mapping = sectionMappings[j]; -/** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ -ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); -}; + var source = section.consumer._sources.at(mapping.source); + source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); + this._sources.add(source); + source = this._sources.indexOf(source); -exports.I = ArraySet; + var name = null; + if (mapping.name) { + name = section.consumer._names.at(mapping.name); + this._names.add(name); + name = this._names.indexOf(name); + } + + // The mappings coming from the consumer for the section have + // generated positions relative to the start of the section, so we + // need to offset them to be relative to the start of the concatenated + // generated file. + var adjustedMapping = { + source: source, + generatedLine: mapping.generatedLine + + (section.generatedOffset.generatedLine - 1), + generatedColumn: mapping.generatedColumn + + (section.generatedOffset.generatedLine === mapping.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: name + }; + + this.__generatedMappings.push(adjustedMapping); + if (typeof adjustedMapping.originalLine === 'number') { + this.__originalMappings.push(adjustedMapping); + } + } + } + + quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); + quickSort(this.__originalMappings, util.compareByOriginalPositions); + }; + +__webpack_unused_export__ = IndexedSourceMapConsumer; /***/ }), -/***/ 61019: +/***/ 10746: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { /* -*- Mode: js; js-indent-level: 2; -*- */ @@ -25670,548 +25037,854 @@ exports.I = ArraySet; * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -var base64 = __nccwpck_require__(28268); - -// A single base 64 digit can contain 6 bits of data. For the base 64 variable -// length quantities we use in the source map spec, the first bit is the sign, -// the next four bits are the actual value, and the 6th bit is the -// continuation bit. The continuation bit tells us whether there are more -// digits in this value following this digit. -// -// Continuation -// | Sign -// | | -// V V -// 101011 - -var VLQ_BASE_SHIFT = 5; - -// binary: 100000 -var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - -// binary: 011111 -var VLQ_BASE_MASK = VLQ_BASE - 1; - -// binary: 100000 -var VLQ_CONTINUATION_BIT = VLQ_BASE; +var base64VLQ = __nccwpck_require__(61019); +var util = __nccwpck_require__(59308); +var ArraySet = (__nccwpck_require__(99409)/* .ArraySet */ .I); +var MappingList = (__nccwpck_require__(2768)/* .MappingList */ .H); /** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) + * An instance of the SourceMapGenerator represents a source map which is + * being built incrementally. You may pass an object with the following + * properties: + * + * - file: The filename of the generated source. + * - sourceRoot: A root for all relative URLs in this source map. */ -function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; +function SourceMapGenerator(aArgs) { + if (!aArgs) { + aArgs = {}; + } + this._file = util.getArg(aArgs, 'file', null); + this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); + this._skipValidation = util.getArg(aArgs, 'skipValidation', false); + this._sources = new ArraySet(); + this._names = new ArraySet(); + this._mappings = new MappingList(); + this._sourcesContents = null; } -/** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ -function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; -} +SourceMapGenerator.prototype._version = 3; /** - * Returns the base 64 VLQ encoded value. + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param aSourceMapConsumer The SourceMap. */ -exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; +SourceMapGenerator.fromSourceMap = + function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { + var sourceRoot = aSourceMapConsumer.sourceRoot; + var generator = new SourceMapGenerator({ + file: aSourceMapConsumer.file, + sourceRoot: sourceRoot + }); + aSourceMapConsumer.eachMapping(function (mapping) { + var newMapping = { + generated: { + line: mapping.generatedLine, + column: mapping.generatedColumn + } + }; - var vlq = toVLQSigned(aValue); + if (mapping.source != null) { + newMapping.source = mapping.source; + if (sourceRoot != null) { + newMapping.source = util.relative(sourceRoot, newMapping.source); + } - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); + newMapping.original = { + line: mapping.originalLine, + column: mapping.originalColumn + }; - return encoded; -}; + if (mapping.name != null) { + newMapping.name = mapping.name; + } + } + + generator.addMapping(newMapping); + }); + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var sourceRelative = sourceFile; + if (sourceRoot !== null) { + sourceRelative = util.relative(sourceRoot, sourceFile); + } + + if (!generator._sources.has(sourceRelative)) { + generator._sources.add(sourceRelative); + } + + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + generator.setSourceContent(sourceFile, content); + } + }); + return generator; + }; /** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. */ -exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; +SourceMapGenerator.prototype.addMapping = + function SourceMapGenerator_addMapping(aArgs) { + var generated = util.getArg(aArgs, 'generated'); + var original = util.getArg(aArgs, 'original', null); + var source = util.getArg(aArgs, 'source', null); + var name = util.getArg(aArgs, 'name', null); - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); + if (!this._skipValidation) { + this._validateMapping(generated, original, source, name); } - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); + if (source != null) { + source = String(source); + if (!this._sources.has(source)) { + this._sources.add(source); + } } - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; -}; - - -/***/ }), + if (name != null) { + name = String(name); + if (!this._names.has(name)) { + this._names.add(name); + } + } -/***/ 28268: -/***/ (function(__unused_webpack_module, exports) { + this._mappings.add({ + generatedLine: generated.line, + generatedColumn: generated.column, + originalLine: original != null && original.line, + originalColumn: original != null && original.column, + source: source, + name: name + }); + }; -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause +/** + * Set the source content for a source file. */ +SourceMapGenerator.prototype.setSourceContent = + function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { + var source = aSourceFile; + if (this._sourceRoot != null) { + source = util.relative(this._sourceRoot, source); + } -var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); + if (aSourceContent != null) { + // Add the source content to the _sourcesContents map. + // Create a new _sourcesContents map if the property is null. + if (!this._sourcesContents) { + this._sourcesContents = Object.create(null); + } + this._sourcesContents[util.toSetString(source)] = aSourceContent; + } else if (this._sourcesContents) { + // Remove the source file from the _sourcesContents map. + // If the _sourcesContents map is empty, set the property to null. + delete this._sourcesContents[util.toSetString(source)]; + if (Object.keys(this._sourcesContents).length === 0) { + this._sourcesContents = null; + } + } + }; /** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param aSourceMapConsumer The source map to be applied. + * @param aSourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param aSourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. */ -exports.encode = function (number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); -}; +SourceMapGenerator.prototype.applySourceMap = + function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { + var sourceFile = aSourceFile; + // If aSourceFile is omitted, we will use the file property of the SourceMap + if (aSourceFile == null) { + if (aSourceMapConsumer.file == null) { + throw new Error( + 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + + 'or the source map\'s "file" property. Both were omitted.' + ); + } + sourceFile = aSourceMapConsumer.file; + } + var sourceRoot = this._sourceRoot; + // Make "sourceFile" relative if an absolute Url is passed. + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + // Applying the SourceMap can add and remove items from the sources and + // the names array. + var newSources = new ArraySet(); + var newNames = new ArraySet(); -/** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ -exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' + // Find mappings for the "sourceFile" + this._mappings.unsortedForEach(function (mapping) { + if (mapping.source === sourceFile && mapping.originalLine != null) { + // Check if it can be mapped by the source map, then update the mapping. + var original = aSourceMapConsumer.originalPositionFor({ + line: mapping.originalLine, + column: mapping.originalColumn + }); + if (original.source != null) { + // Copy mapping + mapping.source = original.source; + if (aSourceMapPath != null) { + mapping.source = util.join(aSourceMapPath, mapping.source) + } + if (sourceRoot != null) { + mapping.source = util.relative(sourceRoot, mapping.source); + } + mapping.originalLine = original.line; + mapping.originalColumn = original.column; + if (original.name != null) { + mapping.name = original.name; + } + } + } - var littleA = 97; // 'a' - var littleZ = 122; // 'z' + var source = mapping.source; + if (source != null && !newSources.has(source)) { + newSources.add(source); + } - var zero = 48; // '0' - var nine = 57; // '9' + var name = mapping.name; + if (name != null && !newNames.has(name)) { + newNames.add(name); + } - var plus = 43; // '+' - var slash = 47; // '/' + }, this); + this._sources = newSources; + this._names = newNames; - var littleOffset = 26; - var numberOffset = 52; + // Copy sourcesContents of applied map. + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aSourceMapPath != null) { + sourceFile = util.join(aSourceMapPath, sourceFile); + } + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + this.setSourceContent(sourceFile, content); + } + }, this); + }; - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } +/** + * A mapping can have one of the three levels of data: + * + * 1. Just the generated position. + * 2. The Generated position, original position, and original source. + * 3. Generated and original position, original source, as well as a name + * token. + * + * To maintain consistency, we validate that any new mapping being added falls + * in to one of these categories. + */ +SourceMapGenerator.prototype._validateMapping = + function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, + aName) { + // When aOriginal is truthy but has empty values for .line and .column, + // it is most likely a programmer error. In this case we throw a very + // specific error message to try to guide them the right way. + // For example: https://github.com/Polymer/polymer-bundler/pull/519 + if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { + throw new Error( + 'original.line and original.column are not numbers -- you probably meant to omit ' + + 'the original mapping entirely and only map the generated position. If so, pass ' + + 'null for the original mapping instead of an object with empty or null values.' + ); + } - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } + if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aGenerated.line > 0 && aGenerated.column >= 0 + && !aOriginal && !aSource && !aName) { + // Case 1. + return; + } + else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aOriginal && 'line' in aOriginal && 'column' in aOriginal + && aGenerated.line > 0 && aGenerated.column >= 0 + && aOriginal.line > 0 && aOriginal.column >= 0 + && aSource) { + // Cases 2 and 3. + return; + } + else { + throw new Error('Invalid mapping: ' + JSON.stringify({ + generated: aGenerated, + source: aSource, + original: aOriginal, + name: aName + })); + } + }; - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } +/** + * Serialize the accumulated mappings in to the stream of base 64 VLQs + * specified by the source map format. + */ +SourceMapGenerator.prototype._serializeMappings = + function SourceMapGenerator_serializeMappings() { + var previousGeneratedColumn = 0; + var previousGeneratedLine = 1; + var previousOriginalColumn = 0; + var previousOriginalLine = 0; + var previousName = 0; + var previousSource = 0; + var result = ''; + var next; + var mapping; + var nameIdx; + var sourceIdx; - // 62: + - if (charCode == plus) { - return 62; - } + var mappings = this._mappings.toArray(); + for (var i = 0, len = mappings.length; i < len; i++) { + mapping = mappings[i]; + next = '' - // 63: / - if (charCode == slash) { - return 63; - } + if (mapping.generatedLine !== previousGeneratedLine) { + previousGeneratedColumn = 0; + while (mapping.generatedLine !== previousGeneratedLine) { + next += ';'; + previousGeneratedLine++; + } + } + else { + if (i > 0) { + if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { + continue; + } + next += ','; + } + } - // Invalid base64 digit. - return -1; -}; + next += base64VLQ.encode(mapping.generatedColumn + - previousGeneratedColumn); + previousGeneratedColumn = mapping.generatedColumn; + if (mapping.source != null) { + sourceIdx = this._sources.indexOf(mapping.source); + next += base64VLQ.encode(sourceIdx - previousSource); + previousSource = sourceIdx; -/***/ }), + // lines are stored 0-based in SourceMap spec version 3 + next += base64VLQ.encode(mapping.originalLine - 1 + - previousOriginalLine); + previousOriginalLine = mapping.originalLine - 1; -/***/ 98183: -/***/ (function(__unused_webpack_module, exports) { + next += base64VLQ.encode(mapping.originalColumn + - previousOriginalColumn); + previousOriginalColumn = mapping.originalColumn; -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ + if (mapping.name != null) { + nameIdx = this._names.indexOf(mapping.name); + next += base64VLQ.encode(nameIdx - previousName); + previousName = nameIdx; + } + } -exports.GREATEST_LOWER_BOUND = 1; -exports.LEAST_UPPER_BOUND = 2; + result += next; + } + + return result; + }; + +SourceMapGenerator.prototype._generateSourcesContent = + function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { + return aSources.map(function (source) { + if (!this._sourcesContents) { + return null; + } + if (aSourceRoot != null) { + source = util.relative(aSourceRoot, source); + } + var key = util.toSetString(source); + return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) + ? this._sourcesContents[key] + : null; + }, this); + }; /** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. + * Externalize the source map. */ -function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next-closest element. - // - // 3. We did not find the exact element, and there is no next-closest - // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // Our needle is greater than aHaystack[mid]. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); +SourceMapGenerator.prototype.toJSON = + function SourceMapGenerator_toJSON() { + var map = { + version: this._version, + sources: this._sources.toArray(), + names: this._names.toArray(), + mappings: this._serializeMappings() + }; + if (this._file != null) { + map.file = this._file; } - - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; + if (this._sourceRoot != null) { + map.sourceRoot = this._sourceRoot; } - } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); + if (this._sourcesContents) { + map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); } - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } -} + return map; + }; /** - * This is an implementation of binary search which will always try and return - * the index of the closest element if there is no exact hit. This is because - * mappings between original and generated line/col pairs are single points, - * and there is an implicit region between each of them, so a miss just means - * that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. + * Render the source map being generated to a string. */ -exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, - aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } - - // We have found either the exact element, or the next-closest element than - // the one we are searching for. However, there may be more than one such - // element. Make sure we always return the smallest of these. - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } +SourceMapGenerator.prototype.toString = + function SourceMapGenerator_toString() { + return JSON.stringify(this.toJSON()); + }; - return index; -}; +exports.h = SourceMapGenerator; /***/ }), -/***/ 2768: +/***/ 86129: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +var __webpack_unused_export__; /* -*- Mode: js; js-indent-level: 2; -*- */ /* - * Copyright 2014 Mozilla Foundation and contributors + * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ +var SourceMapGenerator = (__nccwpck_require__(10746)/* .SourceMapGenerator */ .h); var util = __nccwpck_require__(59308); -/** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ -function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; -} +// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other +// operating systems these days (capturing the result). +var REGEX_NEWLINE = /(\r?\n)/; -/** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ -function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; -} +// Newline character code for charCodeAt() comparisons +var NEWLINE_CODE = 10; + +// Private symbol for identifying `SourceNode`s when multiple versions of +// the source-map library are loaded. This MUST NOT CHANGE across +// versions! +var isSourceNode = "$$$isSourceNode$$$"; /** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. + * SourceNodes provide a way to abstract over interpolating/concatenating + * snippets of generated JavaScript source code while maintaining the line and + * column information associated with the original source code. * - * NOTE: The order of the mappings is NOT guaranteed. + * @param aLine The original line number. + * @param aColumn The original column number. + * @param aSource The original source's filename. + * @param aChunks Optional. An array of strings which are snippets of + * generated JS, or other SourceNodes. + * @param aName The original identifier. */ -MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; +function SourceNode(aLine, aColumn, aSource, aChunks, aName) { + this.children = []; + this.sourceContents = {}; + this.line = aLine == null ? null : aLine; + this.column = aColumn == null ? null : aColumn; + this.source = aSource == null ? null : aSource; + this.name = aName == null ? null : aName; + this[isSourceNode] = true; + if (aChunks != null) this.add(aChunks); +} /** - * Add the given source mapping. + * Creates a SourceNode from generated code and a SourceMapConsumer. * - * @param Object aMapping + * @param aGeneratedCode The generated code + * @param aSourceMapConsumer The SourceMap for the generated code + * @param aRelativePath Optional. The path that relative sources in the + * SourceMapConsumer should be relative to. */ -MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } -}; +SourceNode.fromStringWithSourceMap = + function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { + // The SourceNode we want to fill with the generated code + // and the SourceMap + var node = new SourceNode(); -/** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ -MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; -}; + // All even indices of this array are one line of the generated code, + // while all odd indices are the newlines between two adjacent lines + // (since `REGEX_NEWLINE` captures its match). + // Processed fragments are accessed by calling `shiftNextLine`. + var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); + var remainingLinesIndex = 0; + var shiftNextLine = function() { + var lineContents = getNextLine(); + // The last line of a file might not have a newline. + var newLine = getNextLine() || ""; + return lineContents + newLine; -exports.H = MappingList; + function getNextLine() { + return remainingLinesIndex < remainingLines.length ? + remainingLines[remainingLinesIndex++] : undefined; + } + }; + // We need to remember the position of "remainingLines" + var lastGeneratedLine = 1, lastGeneratedColumn = 0; -/***/ }), + // The generate SourceNodes we need a code range. + // To extract it current and last mapping is used. + // Here we store the last mapping. + var lastMapping = null; -/***/ 94927: -/***/ (function(__unused_webpack_module, exports) { + aSourceMapConsumer.eachMapping(function (mapping) { + if (lastMapping !== null) { + // We add the code from "lastMapping" to "mapping": + // First check if there is a new line in between. + if (lastGeneratedLine < mapping.generatedLine) { + // Associate first line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + lastGeneratedLine++; + lastGeneratedColumn = 0; + // The remaining code is added without mapping + } else { + // There is no new line in between. + // Associate the code between "lastGeneratedColumn" and + // "mapping.generatedColumn" with "lastMapping" + var nextLine = remainingLines[remainingLinesIndex] || ''; + var code = nextLine.substr(0, mapping.generatedColumn - + lastGeneratedColumn); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - + lastGeneratedColumn); + lastGeneratedColumn = mapping.generatedColumn; + addMappingWithCode(lastMapping, code); + // No more remaining code, continue + lastMapping = mapping; + return; + } + } + // We add the generated code until the first mapping + // to the SourceNode without any mapping. + // Each line is added as separate string. + while (lastGeneratedLine < mapping.generatedLine) { + node.add(shiftNextLine()); + lastGeneratedLine++; + } + if (lastGeneratedColumn < mapping.generatedColumn) { + var nextLine = remainingLines[remainingLinesIndex] || ''; + node.add(nextLine.substr(0, mapping.generatedColumn)); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); + lastGeneratedColumn = mapping.generatedColumn; + } + lastMapping = mapping; + }, this); + // We have processed all mappings. + if (remainingLinesIndex < remainingLines.length) { + if (lastMapping) { + // Associate the remaining code in the current line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + } + // and add the remaining lines without any mapping + node.add(remainingLines.splice(remainingLinesIndex).join("")); + } -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ + // Copy sourcesContent into SourceNode + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aRelativePath != null) { + sourceFile = util.join(aRelativePath, sourceFile); + } + node.setSourceContent(sourceFile, content); + } + }); -// It turns out that some (most?) JavaScript engines don't self-host -// `Array.prototype.sort`. This makes sense because C++ will likely remain -// faster than JS when doing raw CPU-intensive sorting. However, when using a -// custom comparator function, calling back and forth between the VM's C++ and -// JIT'd JS is rather slow *and* loses JIT type information, resulting in -// worse generated code for the comparator function than would be optimal. In -// fact, when sorting with a comparator, these costs outweigh the benefits of -// sorting in C++. By using our own JS-implemented Quick Sort (below), we get -// a ~3500ms mean speed-up in `bench/bench.html`. + return node; + + function addMappingWithCode(mapping, code) { + if (mapping === null || mapping.source === undefined) { + node.add(code); + } else { + var source = aRelativePath + ? util.join(aRelativePath, mapping.source) + : mapping.source; + node.add(new SourceNode(mapping.originalLine, + mapping.originalColumn, + source, + code, + mapping.name)); + } + } + }; /** - * Swap the elements indexed by `x` and `y` in the array `ary`. + * Add a chunk of generated JS to this source node. * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. */ -function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; -} +SourceNode.prototype.add = function SourceNode_add(aChunk) { + if (Array.isArray(aChunk)) { + aChunk.forEach(function (chunk) { + this.add(chunk); + }, this); + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + if (aChunk) { + this.children.push(aChunk); + } + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; +}; /** - * Returns a random integer within the range `low .. high` inclusive. + * Add a chunk of generated JS to the beginning of this source node. * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. */ -function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); -} +SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { + if (Array.isArray(aChunk)) { + for (var i = aChunk.length-1; i >= 0; i--) { + this.prepend(aChunk[i]); + } + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + this.children.unshift(aChunk); + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; +}; /** - * The Quick Sort algorithm. + * Walk over the tree of JS snippets in this node and its children. The + * walking function is called once for each snippet of JS and is passed that + * snippet and the its original associated source's line/column location. * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array + * @param aFn The traversal function. */ -function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. +SourceNode.prototype.walk = function SourceNode_walk(aFn) { + var chunk; + for (var i = 0, len = this.children.length; i < len; i++) { + chunk = this.children[i]; + if (chunk[isSourceNode]) { + chunk.walk(aFn); + } + else { + if (chunk !== '') { + aFn(chunk, { source: this.source, + line: this.line, + column: this.column, + name: this.name }); + } + } + } +}; - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. +/** + * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between + * each of `this.children`. + * + * @param aSep The separator. + */ +SourceNode.prototype.join = function SourceNode_join(aSep) { + var newChildren; + var i; + var len = this.children.length; + if (len > 0) { + newChildren = []; + for (i = 0; i < len-1; i++) { + newChildren.push(this.children[i]); + newChildren.push(aSep); + } + newChildren.push(this.children[i]); + this.children = newChildren; + } + return this; +}; - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; +/** + * Call String.prototype.replace on the very right-most source snippet. Useful + * for trimming whitespace from the end of a source node, etc. + * + * @param aPattern The pattern to replace. + * @param aReplacement The thing to replace the pattern with. + */ +SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { + var lastChild = this.children[this.children.length - 1]; + if (lastChild[isSourceNode]) { + lastChild.replaceRight(aPattern, aReplacement); + } + else if (typeof lastChild === 'string') { + this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); + } + else { + this.children.push(''.replace(aPattern, aReplacement)); + } + return this; +}; - swap(ary, pivotIndex, r); - var pivot = ary[r]; +/** + * Set the source content for a source file. This will be added to the SourceMapGenerator + * in the sourcesContent field. + * + * @param aSourceFile The filename of the source file + * @param aSourceContent The content of the source file + */ +SourceNode.prototype.setSourceContent = + function SourceNode_setSourceContent(aSourceFile, aSourceContent) { + this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; + }; - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); +/** + * Walk over the tree of SourceNodes. The walking function is called for each + * source file content and is passed the filename and source content. + * + * @param aFn The traversal function. + */ +SourceNode.prototype.walkSourceContents = + function SourceNode_walkSourceContents(aFn) { + for (var i = 0, len = this.children.length; i < len; i++) { + if (this.children[i][isSourceNode]) { + this.children[i].walkSourceContents(aFn); } } - swap(ary, i + 1, j); - var q = i + 1; - - // (2) Recurse on each half. + var sources = Object.keys(this.sourceContents); + for (var i = 0, len = sources.length; i < len; i++) { + aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); + } + }; - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } -} +/** + * Return the string representation of this source node. Walks over the tree + * and concatenates all the various snippets together to one string. + */ +SourceNode.prototype.toString = function SourceNode_toString() { + var str = ""; + this.walk(function (chunk) { + str += chunk; + }); + return str; +}; /** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. + * Returns the string representation of this source node along with a source + * map. */ -exports.U = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); +SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { + var generated = { + code: "", + line: 1, + column: 0 + }; + var map = new SourceMapGenerator(aArgs); + var sourceMappingActive = false; + var lastOriginalSource = null; + var lastOriginalLine = null; + var lastOriginalColumn = null; + var lastOriginalName = null; + this.walk(function (chunk, original) { + generated.code += chunk; + if (original.source !== null + && original.line !== null + && original.column !== null) { + if(lastOriginalSource !== original.source + || lastOriginalLine !== original.line + || lastOriginalColumn !== original.column + || lastOriginalName !== original.name) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + lastOriginalSource = original.source; + lastOriginalLine = original.line; + lastOriginalColumn = original.column; + lastOriginalName = original.name; + sourceMappingActive = true; + } else if (sourceMappingActive) { + map.addMapping({ + generated: { + line: generated.line, + column: generated.column + } + }); + lastOriginalSource = null; + sourceMappingActive = false; + } + for (var idx = 0, length = chunk.length; idx < length; idx++) { + if (chunk.charCodeAt(idx) === NEWLINE_CODE) { + generated.line++; + generated.column = 0; + // Mappings end at eol + if (idx + 1 === length) { + lastOriginalSource = null; + sourceMappingActive = false; + } else if (sourceMappingActive) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + } else { + generated.column++; + } + } + }); + this.walkSourceContents(function (sourceFile, sourceContent) { + map.setSourceContent(sourceFile, sourceContent); + }); + + return { code: generated.code, map: map }; }; +__webpack_unused_export__ = SourceNode; + /***/ }), -/***/ 75939: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 59308: +/***/ (function(__unused_webpack_module, exports) { -var __webpack_unused_export__; /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -26219,87969 +25892,2214 @@ var __webpack_unused_export__; * http://opensource.org/licenses/BSD-3-Clause */ -var util = __nccwpck_require__(59308); -var binarySearch = __nccwpck_require__(98183); -var ArraySet = (__nccwpck_require__(99409)/* .ArraySet */ .I); -var base64VLQ = __nccwpck_require__(61019); -var quickSort = (__nccwpck_require__(94927)/* .quickSort */ .U); - -function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); +/** + * This is a helper function for getting values from parameter/options + * objects. + * + * @param args The object we are extracting values from + * @param name The name of the property we are getting. + * @param defaultValue An optional value to return if the property is missing + * from the object. If this is not specified and the property is missing, an + * error will be thrown. + */ +function getArg(aArgs, aName, aDefaultValue) { + if (aName in aArgs) { + return aArgs[aName]; + } else if (arguments.length === 3) { + return aDefaultValue; + } else { + throw new Error('"' + aName + '" is a required argument.'); } - - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); } +exports.getArg = getArg; -SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); -} +var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; +var dataUrlRegexp = /^data:.+\,.+$/; -/** - * The version of the source mapping spec that we are consuming. - */ -SourceMapConsumer.prototype._version = 3; +function urlParse(aUrl) { + var match = aUrl.match(urlRegexp); + if (!match) { + return null; + } + return { + scheme: match[1], + auth: match[2], + host: match[3], + port: match[4], + path: match[5] + }; +} +exports.urlParse = urlParse; -// `__generatedMappings` and `__originalMappings` are arrays that hold the -// parsed mapping coordinates from the source map's "mappings" attribute. They -// are lazily instantiated, accessed via the `_generatedMappings` and -// `_originalMappings` getters respectively, and we only parse the mappings -// and create these arrays once queried for a source location. We jump through -// these hoops because there can be many thousands of mappings, and parsing -// them is expensive, so we only want to do it if we must. -// -// Each object in the arrays is of the form: -// -// { -// generatedLine: The line number in the generated code, -// generatedColumn: The column number in the generated code, -// source: The path to the original source file that generated this -// chunk of code, -// originalLine: The line number in the original source that -// corresponds to this chunk of generated code, -// originalColumn: The column number in the original source that -// corresponds to this chunk of generated code, -// name: The name of the original symbol which generated this chunk of -// code. -// } -// -// All properties except for `generatedLine` and `generatedColumn` can be -// `null`. -// -// `_generatedMappings` is ordered by the generated positions. -// -// `_originalMappings` is ordered by the original positions. +function urlGenerate(aParsedUrl) { + var url = ''; + if (aParsedUrl.scheme) { + url += aParsedUrl.scheme + ':'; + } + url += '//'; + if (aParsedUrl.auth) { + url += aParsedUrl.auth + '@'; + } + if (aParsedUrl.host) { + url += aParsedUrl.host; + } + if (aParsedUrl.port) { + url += ":" + aParsedUrl.port + } + if (aParsedUrl.path) { + url += aParsedUrl.path; + } + return url; +} +exports.urlGenerate = urlGenerate; -SourceMapConsumer.prototype.__generatedMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); +/** + * Normalizes a path, or the path portion of a URL: + * + * - Replaces consecutive slashes with one slash. + * - Removes unnecessary '.' parts. + * - Removes unnecessary '/..' parts. + * + * Based on code in the Node.js 'path' core module. + * + * @param aPath The path or url to normalize. + */ +function normalize(aPath) { + var path = aPath; + var url = urlParse(aPath); + if (url) { + if (!url.path) { + return aPath; } - - return this.__generatedMappings; + path = url.path; } -}); + var isAbsolute = exports.isAbsolute(path); -SourceMapConsumer.prototype.__originalMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); + var parts = path.split(/\/+/); + for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { + part = parts[i]; + if (part === '.') { + parts.splice(i, 1); + } else if (part === '..') { + up++; + } else if (up > 0) { + if (part === '') { + // The first part is blank if the path is absolute. Trying to go + // above the root is a no-op. Therefore we can remove all '..' parts + // directly after the root. + parts.splice(i + 1, up); + up = 0; + } else { + parts.splice(i, 2); + up--; + } } + } + path = parts.join('/'); - return this.__originalMappings; + if (path === '') { + path = isAbsolute ? '/' : '.'; } -}); -SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; + if (url) { + url.path = path; + return urlGenerate(url); + } + return path; +} +exports.normalize = normalize; /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). + * Joins two paths/URLs. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be joined with the root. + * + * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a + * scheme-relative URL: Then the scheme of aRoot, if any, is prepended + * first. + * - Otherwise aPath is a path. If aRoot is a URL, then its path portion + * is updated with the result and aRoot is returned. Otherwise the result + * is returned. + * - If aPath is absolute, the result is aPath. + * - Otherwise the two paths are joined with a slash. + * - Joining for example 'http://' and 'www.example.com' is also supported. */ -SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; +function join(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + if (aPath === "") { + aPath = "."; + } + var aPathUrl = urlParse(aPath); + var aRootUrl = urlParse(aRoot); + if (aRootUrl) { + aRoot = aRootUrl.path || '/'; + } -SourceMapConsumer.GENERATED_ORDER = 1; -SourceMapConsumer.ORIGINAL_ORDER = 2; + // `join(foo, '//www.example.org')` + if (aPathUrl && !aPathUrl.scheme) { + if (aRootUrl) { + aPathUrl.scheme = aRootUrl.scheme; + } + return urlGenerate(aPathUrl); + } -SourceMapConsumer.GREATEST_LOWER_BOUND = 1; -SourceMapConsumer.LEAST_UPPER_BOUND = 2; + if (aPathUrl || aPath.match(dataUrlRegexp)) { + return aPath; + } -/** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ -SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; + // `join('http://', 'www.example.com')` + if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { + aRootUrl.host = aPath; + return urlGenerate(aRootUrl); + } - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } + var joined = aPath.charAt(0) === '/' + ? aPath + : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; + if (aRootUrl) { + aRootUrl.path = joined; + return urlGenerate(aRootUrl); + } + return joined; +} +exports.join = join; + +exports.isAbsolute = function (aPath) { + return aPath.charAt(0) === '/' || urlRegexp.test(aPath); +}; /** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number is 1-based. - * - column: Optional. the column number in the original source. - * The column number is 0-based. - * - * and an array of objects is returned, each with the following properties: + * Make a path relative to a URL or another path. * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. + * @param aRoot The root path or URL. + * @param aPath The path or URL to be made relative to aRoot. */ -SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); +function relative(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; + aRoot = aRoot.replace(/\/$/, ''); - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; + // It is possible for the path to be above the root. In this case, simply + // checking whether the root is a prefix of the path won't work. Instead, we + // need to remove components from the root one by one, until either we find + // a prefix that fits, or we run out of components to remove. + var level = 0; + while (aPath.indexOf(aRoot + '/') !== 0) { + var index = aRoot.lastIndexOf("/"); + if (index < 0) { + return aPath; } - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; + // If the only part of the root that is left is the scheme (i.e. http://, + // file:///, etc.), one or more slashes (/), or simply nothing at all, we + // have exhausted all components, so the path is not relative to the root. + aRoot = aRoot.slice(0, index); + if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { + return aPath; + } - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); + ++level; + } - mapping = this._originalMappings[++index]; - } - } - } + // Make sure we add a "../" for each component we removed from the root. + return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); +} +exports.relative = relative; - return mappings; - }; +var supportsNullProto = (function () { + var obj = Object.create(null); + return !('__proto__' in obj); +}()); -exports.SourceMapConsumer = SourceMapConsumer; +function identity (s) { + return s; +} /** - * A BasicSourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The first parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } + * Because behavior goes wacky when you set `__proto__` on objects, we + * have to prefix all the strings in our set with an arbitrary character. * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. + * See https://github.com/mozilla/source-map/pull/31 and + * https://github.com/mozilla/source-map/issues/30 * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# + * @param String aStr */ -function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); +function toSetString(aStr) { + if (isProtoString(aStr)) { + return '$' + aStr; } - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); + return aStr; +} +exports.toSetString = supportsNullProto ? identity : toSetString; - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); +function fromSetString(aStr) { + if (isProtoString(aStr)) { + return aStr.slice(1); } - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); + return aStr; +} +exports.fromSetString = supportsNullProto ? identity : fromSetString; + +function isProtoString(s) { + if (!s) { + return false; } - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); + var length = s.length; - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); + if (length < 9 /* "__proto__".length */) { + return false; + } - this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); + if (s.charCodeAt(length - 1) !== 95 /* '_' */ || + s.charCodeAt(length - 2) !== 95 /* '_' */ || + s.charCodeAt(length - 3) !== 111 /* 'o' */ || + s.charCodeAt(length - 4) !== 116 /* 't' */ || + s.charCodeAt(length - 5) !== 111 /* 'o' */ || + s.charCodeAt(length - 6) !== 114 /* 'r' */ || + s.charCodeAt(length - 7) !== 112 /* 'p' */ || + s.charCodeAt(length - 8) !== 95 /* '_' */ || + s.charCodeAt(length - 9) !== 95 /* '_' */) { + return false; + } - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; -} + for (var i = length - 10; i >= 0; i--) { + if (s.charCodeAt(i) !== 36 /* '$' */) { + return false; + } + } -BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; + return true; +} /** - * Utility function to find the index of a source. Returns -1 if not - * found. + * Comparator between two mappings where the original positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same original source/line/column, but different generated + * line and column the same. Useful when searching for a mapping with a + * stubbed out mapping. */ -BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); +function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { + var cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; } - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; } - // Maybe aSource is an absolute URL as returned by |sources|. In - // this case we can't simply undo the transform. - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0 || onlyCompareOriginal) { + return cmp; } - return -1; -}; + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } -/** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @param String aSourceMapURL - * The URL at which the source map can be found (optional) - * @returns BasicSourceMapConsumer + cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); +} +exports.compareByOriginalPositions = compareByOriginalPositions; + +/** + * Comparator between two mappings with deflated source and name indices where + * the generated positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same generated line and column, but different + * source/name/original line and column the same. Useful when searching for a + * mapping with a stubbed out mapping. */ -BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); +function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0 || onlyCompareGenerated) { + return cmp; + } - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; + return strcmp(mappingA.name, mappingB.name); +} +exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } +function strcmp(aStr1, aStr2) { + if (aStr1 === aStr2) { + return 0; + } - destOriginalMappings.push(destMapping); - } + if (aStr1 === null) { + return 1; // aStr2 !== null + } - destGeneratedMappings.push(destMapping); - } + if (aStr2 === null) { + return -1; // aStr1 !== null + } - quickSort(smc.__originalMappings, util.compareByOriginalPositions); + if (aStr1 > aStr2) { + return 1; + } - return smc; - }; + return -1; +} /** - * The version of the source mapping spec that we are consuming. + * Comparator between two mappings with inflated source and name strings where + * the generated positions are compared. */ -BasicSourceMapConsumer.prototype._version = 3; +function compareByGeneratedPositionsInflated(mappingA, mappingB) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } -/** - * The list of original sources. - */ -Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._absoluteSources.slice(); + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; } -}); + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); +} +exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; /** - * Provide the JIT with a nice shape / hidden class. + * Strip any JSON XSSI avoidance prefix from the string (as documented + * in the source maps specification), and then parse the string as + * JSON. */ -function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; +function parseSourceMapInput(str) { + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); } +exports.parseSourceMapInput = parseSourceMapInput; /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). + * Compute the URL of a source given the the source root, the source's + * URL, and the source map's URL. */ -BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; +function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { + sourceURL = sourceURL || ''; - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; - } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; + if (sourceRoot) { + // This follows what Chrome does. + if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { + sourceRoot += '/'; + } + // The spec says: + // Line 4: An optional source root, useful for relocating source + // files on a server or removing repeated values in the + // “sources” entry. This value is prepended to the individual + // entries in the “source” field. + sourceURL = sourceRoot + sourceURL; + } - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); + // Historically, SourceMapConsumer did not take the sourceMapURL as + // a parameter. This mode is still somewhat supported, which is why + // this code block is conditional. However, it's preferable to pass + // the source map URL to SourceMapConsumer, so that this function + // can implement the source URL resolution algorithm as outlined in + // the spec. This block is basically the equivalent of: + // new URL(sourceURL, sourceMapURL).toString() + // ... except it avoids using URL, which wasn't available in the + // older releases of node still supported by this library. + // + // The spec says: + // If the sources are not absolute URLs after prepending of the + // “sourceRoot”, the sources are resolved relative to the + // SourceMap (like resolving script src in a html document). + if (sourceMapURL) { + var parsed = urlParse(sourceMapURL); + if (!parsed) { + throw new Error("sourceMapURL could not be parsed"); + } + if (parsed.path) { + // Strip the last path component, but keep the "/". + var index = parsed.path.lastIndexOf('/'); + if (index >= 0) { + parsed.path = parsed.path.substring(0, index + 1); + } + } + sourceURL = join(urlGenerate(parsed), sourceURL); + } - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } + return normalize(sourceURL); +} +exports.computeSourceURL = computeSourceURL; - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } +/***/ }), - cachedSegments[str] = segment; - } +/***/ 7435: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; +/* + * Copyright 2009-2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE.txt or: + * http://opensource.org/licenses/BSD-3-Clause + */ +/* unused reexport */ __nccwpck_require__(10746)/* .SourceMapGenerator */ .h; +exports.SourceMapConsumer = __nccwpck_require__(75939).SourceMapConsumer; +/* unused reexport */ __nccwpck_require__(86129); - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; +/***/ }), - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; +/***/ 12332: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } +"use strict"; - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); - } - } - } +const os = __nccwpck_require__(22037); +const hasFlag = __nccwpck_require__(60419); - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; +const env = process.env; - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; +let forceColor; +if (hasFlag('no-color') || + hasFlag('no-colors') || + hasFlag('color=false')) { + forceColor = false; +} else if (hasFlag('color') || + hasFlag('colors') || + hasFlag('color=true') || + hasFlag('color=always')) { + forceColor = true; +} +if ('FORCE_COLOR' in env) { + forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; +} -/** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ -BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. +function translateLevel(level) { + if (level === 0) { + return false; + } - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } + return { + level, + hasBasic: true, + has256: level >= 2, + has16m: level >= 3 + }; +} - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; +function supportsColor(stream) { + if (forceColor === false) { + return 0; + } -/** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ -BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; + if (hasFlag('color=16m') || + hasFlag('color=full') || + hasFlag('color=truecolor')) { + return 3; + } - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; + if (hasFlag('color=256')) { + return 2; + } - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } + if (stream && !stream.isTTY && forceColor !== true) { + return 0; + } - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; + const min = forceColor ? 1 : 0; -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; + if (process.platform === 'win32') { + // Node.js 7.5.0 is the first version of Node.js to include a patch to + // libuv that enables 256 color output on Windows. Anything earlier and it + // won't work. However, here we target Node.js 8 at minimum as it is an LTS + // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows + // release that supports 256 colors. Windows 10 build 14931 is the first release + // that supports 16m/TrueColor. + const osRelease = os.release().split('.'); + if ( + Number(process.versions.node.split('.')[0]) >= 8 && + Number(osRelease[0]) >= 10 && + Number(osRelease[2]) >= 10586 + ) { + return Number(osRelease[2]) >= 14931 ? 3 : 2; + } - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); + return 1; + } - if (index >= 0) { - var mapping = this._generatedMappings[index]; + if ('CI' in env) { + if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { + return 1; + } - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, 'name', null); - if (name !== null) { - name = this._names.at(name); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name - }; - } - } + return min; + } - return { - source: null, - line: null, - column: null, - name: null - }; - }; + if ('TEAMCITY_VERSION' in env) { + return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; + } -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; + if (env.COLORTERM === 'truecolor') { + return 3; + } -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } + if ('TERM_PROGRAM' in env) { + const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - var index = this._findSourceIndex(aSource); - if (index >= 0) { - return this.sourcesContent[index]; - } - - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } - - if ((!url.path || url.path == "/") - && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; - } - } - - // This function is used recursively from - // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we - // don't want to throw if we can't find the source - we just want to - // return null, so we provide a flag to exit gracefully. - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; + switch (env.TERM_PROGRAM) { + case 'iTerm.app': + return version >= 3 ? 3 : 2; + case 'Apple_Terminal': + return 2; + // No default + } + } -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } + if (/-256(color)?$/i.test(env.TERM)) { + return 2; + } - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; + if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { + return 1; + } - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); + if ('COLORTERM' in env) { + return 1; + } - if (index >= 0) { - var mapping = this._originalMappings[index]; + if (env.TERM === 'dumb') { + return min; + } - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - } + return min; +} - return { - line: null, - column: null, - lastColumn: null - }; - }; +function getSupportLevel(stream) { + const level = supportsColor(stream); + return translateLevel(level); +} -__webpack_unused_export__ = BasicSourceMapConsumer; +module.exports = { + supportsColor: getSupportLevel, + stdout: getSupportLevel(process.stdout), + stderr: getSupportLevel(process.stderr) +}; -/** - * An IndexedSourceMapConsumer instance represents a parsed source map which - * we can query for information. It differs from BasicSourceMapConsumer in - * that it takes "indexed" source maps (i.e. ones with a "sections" field) as - * input. - * - * The first parameter is a raw source map (either as a JSON string, or already - * parsed to an object). According to the spec for indexed source maps, they - * have the following attributes: - * - * - version: Which version of the source map spec this map is following. - * - file: Optional. The generated file this source map is associated with. - * - sections: A list of section definitions. - * - * Each value under the "sections" field has two fields: - * - offset: The offset into the original specified at which this section - * begins to apply, defined as an object with a "line" and "column" - * field. - * - map: A source map definition. This source map could also be indexed, - * but doesn't have to be. - * - * Instead of the "map" field, it's also possible to have a "url" field - * specifying a URL to retrieve a source map from, but that's currently - * unsupported. - * - * Here's an example source map, taken from the source map spec[0], but - * modified to omit a section which uses the "url" field. - * - * { - * version : 3, - * file: "app.js", - * sections: [{ - * offset: {line:100, column:10}, - * map: { - * version : 3, - * file: "section.js", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AAAA,E;;ABCDE;" - * } - * }], - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt - */ -function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); +/***/ }), - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } +/***/ 36802: +/***/ (function(module) { - this._sources = new ArraySet(); - this._names = new ArraySet(); +"use strict"; - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); - } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); - } - lastOffset = offset; +let fastProto = null; - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) - } - }); +// Creates an object with permanently fast properties in V8. See Toon Verwaest's +// post https://medium.com/@tverwaes/setting-up-prototypes-in-v8-ec9c9491dfe2#5f62 +// for more details. Use %HasFastProperties(object) and the Node.js flag +// --allow-natives-syntax to check whether an object has fast properties. +function FastObject(o) { + // A prototype object will have "fast properties" enabled once it is checked + // against the inline property cache of a function, e.g. fastProto.property: + // https://github.com/v8/v8/blob/6.0.122/test/mjsunit/fast-prototype.js#L48-L63 + if (fastProto !== null && typeof fastProto.property) { + const result = fastProto; + fastProto = FastObject.prototype = null; + return result; + } + fastProto = FastObject.prototype = o == null ? Object.create(null) : o; + return new FastObject; } -IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; +// Initialize the inline property cache of FastObject +FastObject(); -/** - * The version of the source mapping spec that we are consuming. - */ -IndexedSourceMapConsumer.prototype._version = 3; +module.exports = function toFastproperties(o) { + return FastObject(o); +}; -/** - * The list of original sources. - */ -Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } -}); -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; +/***/ }), - // Find the section containing the generated position we're trying to map - // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } +/***/ 25435: +/***/ (function(module) { - return (needle.generatedColumn - - section.generatedOffset.generatedColumn); - }); - var section = this._sections[sectionIndex]; +module.exports = new Set([ + // Non-binary properties: + 'General_Category', + 'Script', + 'Script_Extensions', + // Binary properties: + 'Alphabetic', + 'Any', + 'ASCII', + 'ASCII_Hex_Digit', + 'Assigned', + 'Bidi_Control', + 'Bidi_Mirrored', + 'Case_Ignorable', + 'Cased', + 'Changes_When_Casefolded', + 'Changes_When_Casemapped', + 'Changes_When_Lowercased', + 'Changes_When_NFKC_Casefolded', + 'Changes_When_Titlecased', + 'Changes_When_Uppercased', + 'Dash', + 'Default_Ignorable_Code_Point', + 'Deprecated', + 'Diacritic', + 'Emoji', + 'Emoji_Component', + 'Emoji_Modifier', + 'Emoji_Modifier_Base', + 'Emoji_Presentation', + 'Extended_Pictographic', + 'Extender', + 'Grapheme_Base', + 'Grapheme_Extend', + 'Hex_Digit', + 'ID_Continue', + 'ID_Start', + 'Ideographic', + 'IDS_Binary_Operator', + 'IDS_Trinary_Operator', + 'Join_Control', + 'Logical_Order_Exception', + 'Lowercase', + 'Math', + 'Noncharacter_Code_Point', + 'Pattern_Syntax', + 'Pattern_White_Space', + 'Quotation_Mark', + 'Radical', + 'Regional_Indicator', + 'Sentence_Terminal', + 'Soft_Dotted', + 'Terminal_Punctuation', + 'Unified_Ideograph', + 'Uppercase', + 'Variation_Selector', + 'White_Space', + 'XID_Continue', + 'XID_Start' +]); - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - return section.consumer.originalPositionFor({ - line: needle.generatedLine - - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - - (section.generatedOffset.generatedLine === needle.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - bias: aArgs.bias - }); - }; +/***/ }), -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; +/***/ 14760: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; +"use strict"; - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; +const canonicalProperties = __nccwpck_require__(25435); +const propertyAliases = __nccwpck_require__(61788); - // Only consider this section if the requested source is in the list of - // sources of the consumer. - if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + - (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + - (section.generatedOffset.generatedLine === generatedPosition.line - ? section.generatedOffset.generatedColumn - 1 - : 0) - }; - return ret; - } - } +const matchProperty = function(property) { + if (canonicalProperties.has(property)) { + return property; + } + if (propertyAliases.has(property)) { + return propertyAliases.get(property); + } + throw new Error(`Unknown property: ${ property }`); +}; - return { - line: null, - column: null - }; - }; +module.exports = matchProperty; -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); +/***/ }), - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } +/***/ 86080: +/***/ (function(module) { - // The mappings coming from the consumer for the section have - // generated positions relative to the start of the section, so we - // need to offset them to be relative to the start of the concatenated - // generated file. - var adjustedMapping = { - source: source, - generatedLine: mapping.generatedLine + - (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + - (section.generatedOffset.generatedLine === mapping.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: name - }; - - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); - } - } - } - - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - -__webpack_unused_export__ = IndexedSourceMapConsumer; - - -/***/ }), - -/***/ 10746: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var base64VLQ = __nccwpck_require__(61019); -var util = __nccwpck_require__(59308); -var ArraySet = (__nccwpck_require__(99409)/* .ArraySet */ .I); -var MappingList = (__nccwpck_require__(2768)/* .MappingList */ .H); - -/** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ -function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; -} - -SourceMapGenerator.prototype._version = 3; - -/** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ -SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } - - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } - - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - -/** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ -SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); - - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; - -/** - * Set the source content for a source file. - */ -SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - -/** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ -SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); - - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - - }, this); - this._sources = newSources; - this._names = newNames; - - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; - -/** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ -SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - // When aOriginal is truthy but has empty values for .line and .column, - // it is most likely a programmer error. In this case we throw a very - // specific error message to try to guide them the right way. - // For example: https://github.com/Polymer/polymer-bundler/pull/519 - if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { - throw new Error( - 'original.line and original.column are not numbers -- you probably meant to omit ' + - 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' - ); - } - - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - -/** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ -SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; - - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = '' - - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; - } - } - - next += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - - // lines are stored 0-based in SourceMap spec version 3 - next += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - - next += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - - result += next; - } - - return result; - }; - -SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) - ? this._sourcesContents[key] - : null; - }, this); - }; - -/** - * Externalize the source map. - */ -SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - - return map; - }; - -/** - * Render the source map being generated to a string. - */ -SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - -exports.h = SourceMapGenerator; - - -/***/ }), - -/***/ 86129: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -var __webpack_unused_export__; -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var SourceMapGenerator = (__nccwpck_require__(10746)/* .SourceMapGenerator */ .h); -var util = __nccwpck_require__(59308); - -// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other -// operating systems these days (capturing the result). -var REGEX_NEWLINE = /(\r?\n)/; - -// Newline character code for charCodeAt() comparisons -var NEWLINE_CODE = 10; - -// Private symbol for identifying `SourceNode`s when multiple versions of -// the source-map library are loaded. This MUST NOT CHANGE across -// versions! -var isSourceNode = "$$$isSourceNode$$$"; - -/** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ -function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); -} - -/** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ -SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - // The last line of a file might not have a newline. - var newLine = getNextLine() || ""; - return lineContents + newLine; - - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? - remainingLines[remainingLinesIndex++] : undefined; - } - }; - - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; - - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || ''; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ''; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.splice(remainingLinesIndex).join("")); - } - - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - - return node; - - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } - } - }; - -/** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } -}; - -/** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ -SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; -}; - -/** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ -SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; -}; - -/** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ -SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - -/** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - -/** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ -SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; -}; - -/** - * Returns the string representation of this source node along with a source - * map. - */ -SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - - return { code: generated.code, map: map }; -}; - -__webpack_unused_export__ = SourceNode; - - -/***/ }), - -/***/ 59308: -/***/ (function(__unused_webpack_module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -/** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ -function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } -} -exports.getArg = getArg; - -var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; -var dataUrlRegexp = /^data:.+\,.+$/; - -function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; -} -exports.urlParse = urlParse; - -function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; -} -exports.urlGenerate = urlGenerate; - -/** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consecutive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ -function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; -} -exports.normalize = normalize; - -/** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ -function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; -} -exports.join = join; - -exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath); -}; - -/** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ -function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - - aRoot = aRoot.replace(/\/$/, ''); - - // It is possible for the path to be above the root. In this case, simply - // checking whether the root is a prefix of the path won't work. Instead, we - // need to remove components from the root one by one, until either we find - // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } - - // If the only part of the root that is left is the scheme (i.e. http://, - // file:///, etc.), one or more slashes (/), or simply nothing at all, we - // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - - ++level; - } - - // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); -} -exports.relative = relative; - -var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); -}()); - -function identity (s) { - return s; -} - -/** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ -function toSetString(aStr) { - if (isProtoString(aStr)) { - return '$' + aStr; - } - - return aStr; -} -exports.toSetString = supportsNullProto ? identity : toSetString; - -function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - - return aStr; -} -exports.fromSetString = supportsNullProto ? identity : fromSetString; - -function isProtoString(s) { - if (!s) { - return false; - } - - var length = s.length; - - if (length < 9 /* "__proto__".length */) { - return false; - } - - if (s.charCodeAt(length - 1) !== 95 /* '_' */ || - s.charCodeAt(length - 2) !== 95 /* '_' */ || - s.charCodeAt(length - 3) !== 111 /* 'o' */ || - s.charCodeAt(length - 4) !== 116 /* 't' */ || - s.charCodeAt(length - 5) !== 111 /* 'o' */ || - s.charCodeAt(length - 6) !== 114 /* 'r' */ || - s.charCodeAt(length - 7) !== 112 /* 'p' */ || - s.charCodeAt(length - 8) !== 95 /* '_' */ || - s.charCodeAt(length - 9) !== 95 /* '_' */) { - return false; - } - - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36 /* '$' */) { - return false; - } - } - - return true; -} - -/** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ -function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByOriginalPositions = compareByOriginalPositions; - -/** - * Comparator between two mappings with deflated source and name indices where - * the generated positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ -function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - -function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - - if (aStr1 === null) { - return 1; // aStr2 !== null - } - - if (aStr2 === null) { - return -1; // aStr1 !== null - } - - if (aStr1 > aStr2) { - return 1; - } - - return -1; -} - -/** - * Comparator between two mappings with inflated source and name strings where - * the generated positions are compared. - */ -function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - -/** - * Strip any JSON XSSI avoidance prefix from the string (as documented - * in the source maps specification), and then parse the string as - * JSON. - */ -function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); -} -exports.parseSourceMapInput = parseSourceMapInput; - -/** - * Compute the URL of a source given the the source root, the source's - * URL, and the source map's URL. - */ -function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ''; - - if (sourceRoot) { - // This follows what Chrome does. - if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { - sourceRoot += '/'; - } - // The spec says: - // Line 4: An optional source root, useful for relocating source - // files on a server or removing repeated values in the - // “sources” entry. This value is prepended to the individual - // entries in the “source” field. - sourceURL = sourceRoot + sourceURL; - } - - // Historically, SourceMapConsumer did not take the sourceMapURL as - // a parameter. This mode is still somewhat supported, which is why - // this code block is conditional. However, it's preferable to pass - // the source map URL to SourceMapConsumer, so that this function - // can implement the source URL resolution algorithm as outlined in - // the spec. This block is basically the equivalent of: - // new URL(sourceURL, sourceMapURL).toString() - // ... except it avoids using URL, which wasn't available in the - // older releases of node still supported by this library. - // - // The spec says: - // If the sources are not absolute URLs after prepending of the - // “sourceRoot”, the sources are resolved relative to the - // SourceMap (like resolving script src in a html document). - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); - } - if (parsed.path) { - // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/'); - if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1); - } - } - sourceURL = join(urlGenerate(parsed), sourceURL); - } - - return normalize(sourceURL); -} -exports.computeSourceURL = computeSourceURL; - - -/***/ }), - -/***/ 7435: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -/* unused reexport */ __nccwpck_require__(10746)/* .SourceMapGenerator */ .h; -exports.SourceMapConsumer = __nccwpck_require__(75939).SourceMapConsumer; -/* unused reexport */ __nccwpck_require__(86129); - - -/***/ }), - -/***/ 12332: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -const os = __nccwpck_require__(22037); -const hasFlag = __nccwpck_require__(60419); - -const env = process.env; - -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - forceColor = false; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = true; -} -if ('FORCE_COLOR' in env) { - forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(stream) { - if (forceColor === false) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (stream && !stream.isTTY && forceColor !== true) { - return 0; - } - - const min = forceColor ? 1 : 0; - - if (process.platform === 'win32') { - // Node.js 7.5.0 is the first version of Node.js to include a patch to - // libuv that enables 256 color output on Windows. Anything earlier and it - // won't work. However, here we target Node.js 8 at minimum as it is an LTS - // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows - // release that supports 256 colors. Windows 10 build 14931 is the first release - // that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(process.versions.node.split('.')[0]) >= 8 && - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - if (env.TERM === 'dumb') { - return min; - } - - return min; -} - -function getSupportLevel(stream) { - const level = supportsColor(stream); - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel(process.stdout), - stderr: getSupportLevel(process.stderr) -}; - - -/***/ }), - -/***/ 36802: -/***/ (function(module) { - -"use strict"; - - -let fastProto = null; - -// Creates an object with permanently fast properties in V8. See Toon Verwaest's -// post https://medium.com/@tverwaes/setting-up-prototypes-in-v8-ec9c9491dfe2#5f62 -// for more details. Use %HasFastProperties(object) and the Node.js flag -// --allow-natives-syntax to check whether an object has fast properties. -function FastObject(o) { - // A prototype object will have "fast properties" enabled once it is checked - // against the inline property cache of a function, e.g. fastProto.property: - // https://github.com/v8/v8/blob/6.0.122/test/mjsunit/fast-prototype.js#L48-L63 - if (fastProto !== null && typeof fastProto.property) { - const result = fastProto; - fastProto = FastObject.prototype = null; - return result; - } - fastProto = FastObject.prototype = o == null ? Object.create(null) : o; - return new FastObject; -} - -// Initialize the inline property cache of FastObject -FastObject(); - -module.exports = function toFastproperties(o) { - return FastObject(o); -}; - - -/***/ }), - -/***/ 25435: -/***/ (function(module) { - -module.exports = new Set([ - // Non-binary properties: - 'General_Category', - 'Script', - 'Script_Extensions', - // Binary properties: - 'Alphabetic', - 'Any', - 'ASCII', - 'ASCII_Hex_Digit', - 'Assigned', - 'Bidi_Control', - 'Bidi_Mirrored', - 'Case_Ignorable', - 'Cased', - 'Changes_When_Casefolded', - 'Changes_When_Casemapped', - 'Changes_When_Lowercased', - 'Changes_When_NFKC_Casefolded', - 'Changes_When_Titlecased', - 'Changes_When_Uppercased', - 'Dash', - 'Default_Ignorable_Code_Point', - 'Deprecated', - 'Diacritic', - 'Emoji', - 'Emoji_Component', - 'Emoji_Modifier', - 'Emoji_Modifier_Base', - 'Emoji_Presentation', - 'Extended_Pictographic', - 'Extender', - 'Grapheme_Base', - 'Grapheme_Extend', - 'Hex_Digit', - 'ID_Continue', - 'ID_Start', - 'Ideographic', - 'IDS_Binary_Operator', - 'IDS_Trinary_Operator', - 'Join_Control', - 'Logical_Order_Exception', - 'Lowercase', - 'Math', - 'Noncharacter_Code_Point', - 'Pattern_Syntax', - 'Pattern_White_Space', - 'Quotation_Mark', - 'Radical', - 'Regional_Indicator', - 'Sentence_Terminal', - 'Soft_Dotted', - 'Terminal_Punctuation', - 'Unified_Ideograph', - 'Uppercase', - 'Variation_Selector', - 'White_Space', - 'XID_Continue', - 'XID_Start' -]); - - -/***/ }), - -/***/ 14760: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - - -const canonicalProperties = __nccwpck_require__(25435); -const propertyAliases = __nccwpck_require__(17070); - -const matchProperty = function(property) { - if (canonicalProperties.has(property)) { - return property; - } - if (propertyAliases.has(property)) { - return propertyAliases.get(property); - } - throw new Error(`Unknown property: ${ property }`); -}; - -module.exports = matchProperty; - - -/***/ }), - -/***/ 86080: -/***/ (function(module) { - -module.exports = new Map([ - ['General_Category', new Map([ - ['C', 'Other'], - ['Cc', 'Control'], - ['cntrl', 'Control'], - ['Cf', 'Format'], - ['Cn', 'Unassigned'], - ['Co', 'Private_Use'], - ['Cs', 'Surrogate'], - ['L', 'Letter'], - ['LC', 'Cased_Letter'], - ['Ll', 'Lowercase_Letter'], - ['Lm', 'Modifier_Letter'], - ['Lo', 'Other_Letter'], - ['Lt', 'Titlecase_Letter'], - ['Lu', 'Uppercase_Letter'], - ['M', 'Mark'], - ['Combining_Mark', 'Mark'], - ['Mc', 'Spacing_Mark'], - ['Me', 'Enclosing_Mark'], - ['Mn', 'Nonspacing_Mark'], - ['N', 'Number'], - ['Nd', 'Decimal_Number'], - ['digit', 'Decimal_Number'], - ['Nl', 'Letter_Number'], - ['No', 'Other_Number'], - ['P', 'Punctuation'], - ['punct', 'Punctuation'], - ['Pc', 'Connector_Punctuation'], - ['Pd', 'Dash_Punctuation'], - ['Pe', 'Close_Punctuation'], - ['Pf', 'Final_Punctuation'], - ['Pi', 'Initial_Punctuation'], - ['Po', 'Other_Punctuation'], - ['Ps', 'Open_Punctuation'], - ['S', 'Symbol'], - ['Sc', 'Currency_Symbol'], - ['Sk', 'Modifier_Symbol'], - ['Sm', 'Math_Symbol'], - ['So', 'Other_Symbol'], - ['Z', 'Separator'], - ['Zl', 'Line_Separator'], - ['Zp', 'Paragraph_Separator'], - ['Zs', 'Space_Separator'], - ['Other', 'Other'], - ['Control', 'Control'], - ['Format', 'Format'], - ['Unassigned', 'Unassigned'], - ['Private_Use', 'Private_Use'], - ['Surrogate', 'Surrogate'], - ['Letter', 'Letter'], - ['Cased_Letter', 'Cased_Letter'], - ['Lowercase_Letter', 'Lowercase_Letter'], - ['Modifier_Letter', 'Modifier_Letter'], - ['Other_Letter', 'Other_Letter'], - ['Titlecase_Letter', 'Titlecase_Letter'], - ['Uppercase_Letter', 'Uppercase_Letter'], - ['Mark', 'Mark'], - ['Spacing_Mark', 'Spacing_Mark'], - ['Enclosing_Mark', 'Enclosing_Mark'], - ['Nonspacing_Mark', 'Nonspacing_Mark'], - ['Number', 'Number'], - ['Decimal_Number', 'Decimal_Number'], - ['Letter_Number', 'Letter_Number'], - ['Other_Number', 'Other_Number'], - ['Punctuation', 'Punctuation'], - ['Connector_Punctuation', 'Connector_Punctuation'], - ['Dash_Punctuation', 'Dash_Punctuation'], - ['Close_Punctuation', 'Close_Punctuation'], - ['Final_Punctuation', 'Final_Punctuation'], - ['Initial_Punctuation', 'Initial_Punctuation'], - ['Other_Punctuation', 'Other_Punctuation'], - ['Open_Punctuation', 'Open_Punctuation'], - ['Symbol', 'Symbol'], - ['Currency_Symbol', 'Currency_Symbol'], - ['Modifier_Symbol', 'Modifier_Symbol'], - ['Math_Symbol', 'Math_Symbol'], - ['Other_Symbol', 'Other_Symbol'], - ['Separator', 'Separator'], - ['Line_Separator', 'Line_Separator'], - ['Paragraph_Separator', 'Paragraph_Separator'], - ['Space_Separator', 'Space_Separator'] - ])], - ['Script', new Map([ - ['Adlm', 'Adlam'], - ['Aghb', 'Caucasian_Albanian'], - ['Ahom', 'Ahom'], - ['Arab', 'Arabic'], - ['Armi', 'Imperial_Aramaic'], - ['Armn', 'Armenian'], - ['Avst', 'Avestan'], - ['Bali', 'Balinese'], - ['Bamu', 'Bamum'], - ['Bass', 'Bassa_Vah'], - ['Batk', 'Batak'], - ['Beng', 'Bengali'], - ['Bhks', 'Bhaiksuki'], - ['Bopo', 'Bopomofo'], - ['Brah', 'Brahmi'], - ['Brai', 'Braille'], - ['Bugi', 'Buginese'], - ['Buhd', 'Buhid'], - ['Cakm', 'Chakma'], - ['Cans', 'Canadian_Aboriginal'], - ['Cari', 'Carian'], - ['Cham', 'Cham'], - ['Cher', 'Cherokee'], - ['Chrs', 'Chorasmian'], - ['Copt', 'Coptic'], - ['Qaac', 'Coptic'], - ['Cpmn', 'Cypro_Minoan'], - ['Cprt', 'Cypriot'], - ['Cyrl', 'Cyrillic'], - ['Deva', 'Devanagari'], - ['Diak', 'Dives_Akuru'], - ['Dogr', 'Dogra'], - ['Dsrt', 'Deseret'], - ['Dupl', 'Duployan'], - ['Egyp', 'Egyptian_Hieroglyphs'], - ['Elba', 'Elbasan'], - ['Elym', 'Elymaic'], - ['Ethi', 'Ethiopic'], - ['Geor', 'Georgian'], - ['Glag', 'Glagolitic'], - ['Gong', 'Gunjala_Gondi'], - ['Gonm', 'Masaram_Gondi'], - ['Goth', 'Gothic'], - ['Gran', 'Grantha'], - ['Grek', 'Greek'], - ['Gujr', 'Gujarati'], - ['Guru', 'Gurmukhi'], - ['Hang', 'Hangul'], - ['Hani', 'Han'], - ['Hano', 'Hanunoo'], - ['Hatr', 'Hatran'], - ['Hebr', 'Hebrew'], - ['Hira', 'Hiragana'], - ['Hluw', 'Anatolian_Hieroglyphs'], - ['Hmng', 'Pahawh_Hmong'], - ['Hmnp', 'Nyiakeng_Puachue_Hmong'], - ['Hrkt', 'Katakana_Or_Hiragana'], - ['Hung', 'Old_Hungarian'], - ['Ital', 'Old_Italic'], - ['Java', 'Javanese'], - ['Kali', 'Kayah_Li'], - ['Kana', 'Katakana'], - ['Kawi', 'Kawi'], - ['Khar', 'Kharoshthi'], - ['Khmr', 'Khmer'], - ['Khoj', 'Khojki'], - ['Kits', 'Khitan_Small_Script'], - ['Knda', 'Kannada'], - ['Kthi', 'Kaithi'], - ['Lana', 'Tai_Tham'], - ['Laoo', 'Lao'], - ['Latn', 'Latin'], - ['Lepc', 'Lepcha'], - ['Limb', 'Limbu'], - ['Lina', 'Linear_A'], - ['Linb', 'Linear_B'], - ['Lisu', 'Lisu'], - ['Lyci', 'Lycian'], - ['Lydi', 'Lydian'], - ['Mahj', 'Mahajani'], - ['Maka', 'Makasar'], - ['Mand', 'Mandaic'], - ['Mani', 'Manichaean'], - ['Marc', 'Marchen'], - ['Medf', 'Medefaidrin'], - ['Mend', 'Mende_Kikakui'], - ['Merc', 'Meroitic_Cursive'], - ['Mero', 'Meroitic_Hieroglyphs'], - ['Mlym', 'Malayalam'], - ['Modi', 'Modi'], - ['Mong', 'Mongolian'], - ['Mroo', 'Mro'], - ['Mtei', 'Meetei_Mayek'], - ['Mult', 'Multani'], - ['Mymr', 'Myanmar'], - ['Nagm', 'Nag_Mundari'], - ['Nand', 'Nandinagari'], - ['Narb', 'Old_North_Arabian'], - ['Nbat', 'Nabataean'], - ['Newa', 'Newa'], - ['Nkoo', 'Nko'], - ['Nshu', 'Nushu'], - ['Ogam', 'Ogham'], - ['Olck', 'Ol_Chiki'], - ['Orkh', 'Old_Turkic'], - ['Orya', 'Oriya'], - ['Osge', 'Osage'], - ['Osma', 'Osmanya'], - ['Ougr', 'Old_Uyghur'], - ['Palm', 'Palmyrene'], - ['Pauc', 'Pau_Cin_Hau'], - ['Perm', 'Old_Permic'], - ['Phag', 'Phags_Pa'], - ['Phli', 'Inscriptional_Pahlavi'], - ['Phlp', 'Psalter_Pahlavi'], - ['Phnx', 'Phoenician'], - ['Plrd', 'Miao'], - ['Prti', 'Inscriptional_Parthian'], - ['Rjng', 'Rejang'], - ['Rohg', 'Hanifi_Rohingya'], - ['Runr', 'Runic'], - ['Samr', 'Samaritan'], - ['Sarb', 'Old_South_Arabian'], - ['Saur', 'Saurashtra'], - ['Sgnw', 'SignWriting'], - ['Shaw', 'Shavian'], - ['Shrd', 'Sharada'], - ['Sidd', 'Siddham'], - ['Sind', 'Khudawadi'], - ['Sinh', 'Sinhala'], - ['Sogd', 'Sogdian'], - ['Sogo', 'Old_Sogdian'], - ['Sora', 'Sora_Sompeng'], - ['Soyo', 'Soyombo'], - ['Sund', 'Sundanese'], - ['Sylo', 'Syloti_Nagri'], - ['Syrc', 'Syriac'], - ['Tagb', 'Tagbanwa'], - ['Takr', 'Takri'], - ['Tale', 'Tai_Le'], - ['Talu', 'New_Tai_Lue'], - ['Taml', 'Tamil'], - ['Tang', 'Tangut'], - ['Tavt', 'Tai_Viet'], - ['Telu', 'Telugu'], - ['Tfng', 'Tifinagh'], - ['Tglg', 'Tagalog'], - ['Thaa', 'Thaana'], - ['Thai', 'Thai'], - ['Tibt', 'Tibetan'], - ['Tirh', 'Tirhuta'], - ['Tnsa', 'Tangsa'], - ['Toto', 'Toto'], - ['Ugar', 'Ugaritic'], - ['Vaii', 'Vai'], - ['Vith', 'Vithkuqi'], - ['Wara', 'Warang_Citi'], - ['Wcho', 'Wancho'], - ['Xpeo', 'Old_Persian'], - ['Xsux', 'Cuneiform'], - ['Yezi', 'Yezidi'], - ['Yiii', 'Yi'], - ['Zanb', 'Zanabazar_Square'], - ['Zinh', 'Inherited'], - ['Qaai', 'Inherited'], - ['Zyyy', 'Common'], - ['Zzzz', 'Unknown'], - ['Adlam', 'Adlam'], - ['Caucasian_Albanian', 'Caucasian_Albanian'], - ['Arabic', 'Arabic'], - ['Imperial_Aramaic', 'Imperial_Aramaic'], - ['Armenian', 'Armenian'], - ['Avestan', 'Avestan'], - ['Balinese', 'Balinese'], - ['Bamum', 'Bamum'], - ['Bassa_Vah', 'Bassa_Vah'], - ['Batak', 'Batak'], - ['Bengali', 'Bengali'], - ['Bhaiksuki', 'Bhaiksuki'], - ['Bopomofo', 'Bopomofo'], - ['Brahmi', 'Brahmi'], - ['Braille', 'Braille'], - ['Buginese', 'Buginese'], - ['Buhid', 'Buhid'], - ['Chakma', 'Chakma'], - ['Canadian_Aboriginal', 'Canadian_Aboriginal'], - ['Carian', 'Carian'], - ['Cherokee', 'Cherokee'], - ['Chorasmian', 'Chorasmian'], - ['Coptic', 'Coptic'], - ['Cypro_Minoan', 'Cypro_Minoan'], - ['Cypriot', 'Cypriot'], - ['Cyrillic', 'Cyrillic'], - ['Devanagari', 'Devanagari'], - ['Dives_Akuru', 'Dives_Akuru'], - ['Dogra', 'Dogra'], - ['Deseret', 'Deseret'], - ['Duployan', 'Duployan'], - ['Egyptian_Hieroglyphs', 'Egyptian_Hieroglyphs'], - ['Elbasan', 'Elbasan'], - ['Elymaic', 'Elymaic'], - ['Ethiopic', 'Ethiopic'], - ['Georgian', 'Georgian'], - ['Glagolitic', 'Glagolitic'], - ['Gunjala_Gondi', 'Gunjala_Gondi'], - ['Masaram_Gondi', 'Masaram_Gondi'], - ['Gothic', 'Gothic'], - ['Grantha', 'Grantha'], - ['Greek', 'Greek'], - ['Gujarati', 'Gujarati'], - ['Gurmukhi', 'Gurmukhi'], - ['Hangul', 'Hangul'], - ['Han', 'Han'], - ['Hanunoo', 'Hanunoo'], - ['Hatran', 'Hatran'], - ['Hebrew', 'Hebrew'], - ['Hiragana', 'Hiragana'], - ['Anatolian_Hieroglyphs', 'Anatolian_Hieroglyphs'], - ['Pahawh_Hmong', 'Pahawh_Hmong'], - ['Nyiakeng_Puachue_Hmong', 'Nyiakeng_Puachue_Hmong'], - ['Katakana_Or_Hiragana', 'Katakana_Or_Hiragana'], - ['Old_Hungarian', 'Old_Hungarian'], - ['Old_Italic', 'Old_Italic'], - ['Javanese', 'Javanese'], - ['Kayah_Li', 'Kayah_Li'], - ['Katakana', 'Katakana'], - ['Kharoshthi', 'Kharoshthi'], - ['Khmer', 'Khmer'], - ['Khojki', 'Khojki'], - ['Khitan_Small_Script', 'Khitan_Small_Script'], - ['Kannada', 'Kannada'], - ['Kaithi', 'Kaithi'], - ['Tai_Tham', 'Tai_Tham'], - ['Lao', 'Lao'], - ['Latin', 'Latin'], - ['Lepcha', 'Lepcha'], - ['Limbu', 'Limbu'], - ['Linear_A', 'Linear_A'], - ['Linear_B', 'Linear_B'], - ['Lycian', 'Lycian'], - ['Lydian', 'Lydian'], - ['Mahajani', 'Mahajani'], - ['Makasar', 'Makasar'], - ['Mandaic', 'Mandaic'], - ['Manichaean', 'Manichaean'], - ['Marchen', 'Marchen'], - ['Medefaidrin', 'Medefaidrin'], - ['Mende_Kikakui', 'Mende_Kikakui'], - ['Meroitic_Cursive', 'Meroitic_Cursive'], - ['Meroitic_Hieroglyphs', 'Meroitic_Hieroglyphs'], - ['Malayalam', 'Malayalam'], - ['Mongolian', 'Mongolian'], - ['Mro', 'Mro'], - ['Meetei_Mayek', 'Meetei_Mayek'], - ['Multani', 'Multani'], - ['Myanmar', 'Myanmar'], - ['Nag_Mundari', 'Nag_Mundari'], - ['Nandinagari', 'Nandinagari'], - ['Old_North_Arabian', 'Old_North_Arabian'], - ['Nabataean', 'Nabataean'], - ['Nko', 'Nko'], - ['Nushu', 'Nushu'], - ['Ogham', 'Ogham'], - ['Ol_Chiki', 'Ol_Chiki'], - ['Old_Turkic', 'Old_Turkic'], - ['Oriya', 'Oriya'], - ['Osage', 'Osage'], - ['Osmanya', 'Osmanya'], - ['Old_Uyghur', 'Old_Uyghur'], - ['Palmyrene', 'Palmyrene'], - ['Pau_Cin_Hau', 'Pau_Cin_Hau'], - ['Old_Permic', 'Old_Permic'], - ['Phags_Pa', 'Phags_Pa'], - ['Inscriptional_Pahlavi', 'Inscriptional_Pahlavi'], - ['Psalter_Pahlavi', 'Psalter_Pahlavi'], - ['Phoenician', 'Phoenician'], - ['Miao', 'Miao'], - ['Inscriptional_Parthian', 'Inscriptional_Parthian'], - ['Rejang', 'Rejang'], - ['Hanifi_Rohingya', 'Hanifi_Rohingya'], - ['Runic', 'Runic'], - ['Samaritan', 'Samaritan'], - ['Old_South_Arabian', 'Old_South_Arabian'], - ['Saurashtra', 'Saurashtra'], - ['SignWriting', 'SignWriting'], - ['Shavian', 'Shavian'], - ['Sharada', 'Sharada'], - ['Siddham', 'Siddham'], - ['Khudawadi', 'Khudawadi'], - ['Sinhala', 'Sinhala'], - ['Sogdian', 'Sogdian'], - ['Old_Sogdian', 'Old_Sogdian'], - ['Sora_Sompeng', 'Sora_Sompeng'], - ['Soyombo', 'Soyombo'], - ['Sundanese', 'Sundanese'], - ['Syloti_Nagri', 'Syloti_Nagri'], - ['Syriac', 'Syriac'], - ['Tagbanwa', 'Tagbanwa'], - ['Takri', 'Takri'], - ['Tai_Le', 'Tai_Le'], - ['New_Tai_Lue', 'New_Tai_Lue'], - ['Tamil', 'Tamil'], - ['Tangut', 'Tangut'], - ['Tai_Viet', 'Tai_Viet'], - ['Telugu', 'Telugu'], - ['Tifinagh', 'Tifinagh'], - ['Tagalog', 'Tagalog'], - ['Thaana', 'Thaana'], - ['Tibetan', 'Tibetan'], - ['Tirhuta', 'Tirhuta'], - ['Tangsa', 'Tangsa'], - ['Ugaritic', 'Ugaritic'], - ['Vai', 'Vai'], - ['Vithkuqi', 'Vithkuqi'], - ['Warang_Citi', 'Warang_Citi'], - ['Wancho', 'Wancho'], - ['Old_Persian', 'Old_Persian'], - ['Cuneiform', 'Cuneiform'], - ['Yezidi', 'Yezidi'], - ['Yi', 'Yi'], - ['Zanabazar_Square', 'Zanabazar_Square'], - ['Inherited', 'Inherited'], - ['Common', 'Common'], - ['Unknown', 'Unknown'] - ])], - ['Script_Extensions', new Map([ - ['Adlm', 'Adlam'], - ['Aghb', 'Caucasian_Albanian'], - ['Ahom', 'Ahom'], - ['Arab', 'Arabic'], - ['Armi', 'Imperial_Aramaic'], - ['Armn', 'Armenian'], - ['Avst', 'Avestan'], - ['Bali', 'Balinese'], - ['Bamu', 'Bamum'], - ['Bass', 'Bassa_Vah'], - ['Batk', 'Batak'], - ['Beng', 'Bengali'], - ['Bhks', 'Bhaiksuki'], - ['Bopo', 'Bopomofo'], - ['Brah', 'Brahmi'], - ['Brai', 'Braille'], - ['Bugi', 'Buginese'], - ['Buhd', 'Buhid'], - ['Cakm', 'Chakma'], - ['Cans', 'Canadian_Aboriginal'], - ['Cari', 'Carian'], - ['Cham', 'Cham'], - ['Cher', 'Cherokee'], - ['Chrs', 'Chorasmian'], - ['Copt', 'Coptic'], - ['Qaac', 'Coptic'], - ['Cpmn', 'Cypro_Minoan'], - ['Cprt', 'Cypriot'], - ['Cyrl', 'Cyrillic'], - ['Deva', 'Devanagari'], - ['Diak', 'Dives_Akuru'], - ['Dogr', 'Dogra'], - ['Dsrt', 'Deseret'], - ['Dupl', 'Duployan'], - ['Egyp', 'Egyptian_Hieroglyphs'], - ['Elba', 'Elbasan'], - ['Elym', 'Elymaic'], - ['Ethi', 'Ethiopic'], - ['Geor', 'Georgian'], - ['Glag', 'Glagolitic'], - ['Gong', 'Gunjala_Gondi'], - ['Gonm', 'Masaram_Gondi'], - ['Goth', 'Gothic'], - ['Gran', 'Grantha'], - ['Grek', 'Greek'], - ['Gujr', 'Gujarati'], - ['Guru', 'Gurmukhi'], - ['Hang', 'Hangul'], - ['Hani', 'Han'], - ['Hano', 'Hanunoo'], - ['Hatr', 'Hatran'], - ['Hebr', 'Hebrew'], - ['Hira', 'Hiragana'], - ['Hluw', 'Anatolian_Hieroglyphs'], - ['Hmng', 'Pahawh_Hmong'], - ['Hmnp', 'Nyiakeng_Puachue_Hmong'], - ['Hrkt', 'Katakana_Or_Hiragana'], - ['Hung', 'Old_Hungarian'], - ['Ital', 'Old_Italic'], - ['Java', 'Javanese'], - ['Kali', 'Kayah_Li'], - ['Kana', 'Katakana'], - ['Kawi', 'Kawi'], - ['Khar', 'Kharoshthi'], - ['Khmr', 'Khmer'], - ['Khoj', 'Khojki'], - ['Kits', 'Khitan_Small_Script'], - ['Knda', 'Kannada'], - ['Kthi', 'Kaithi'], - ['Lana', 'Tai_Tham'], - ['Laoo', 'Lao'], - ['Latn', 'Latin'], - ['Lepc', 'Lepcha'], - ['Limb', 'Limbu'], - ['Lina', 'Linear_A'], - ['Linb', 'Linear_B'], - ['Lisu', 'Lisu'], - ['Lyci', 'Lycian'], - ['Lydi', 'Lydian'], - ['Mahj', 'Mahajani'], - ['Maka', 'Makasar'], - ['Mand', 'Mandaic'], - ['Mani', 'Manichaean'], - ['Marc', 'Marchen'], - ['Medf', 'Medefaidrin'], - ['Mend', 'Mende_Kikakui'], - ['Merc', 'Meroitic_Cursive'], - ['Mero', 'Meroitic_Hieroglyphs'], - ['Mlym', 'Malayalam'], - ['Modi', 'Modi'], - ['Mong', 'Mongolian'], - ['Mroo', 'Mro'], - ['Mtei', 'Meetei_Mayek'], - ['Mult', 'Multani'], - ['Mymr', 'Myanmar'], - ['Nagm', 'Nag_Mundari'], - ['Nand', 'Nandinagari'], - ['Narb', 'Old_North_Arabian'], - ['Nbat', 'Nabataean'], - ['Newa', 'Newa'], - ['Nkoo', 'Nko'], - ['Nshu', 'Nushu'], - ['Ogam', 'Ogham'], - ['Olck', 'Ol_Chiki'], - ['Orkh', 'Old_Turkic'], - ['Orya', 'Oriya'], - ['Osge', 'Osage'], - ['Osma', 'Osmanya'], - ['Ougr', 'Old_Uyghur'], - ['Palm', 'Palmyrene'], - ['Pauc', 'Pau_Cin_Hau'], - ['Perm', 'Old_Permic'], - ['Phag', 'Phags_Pa'], - ['Phli', 'Inscriptional_Pahlavi'], - ['Phlp', 'Psalter_Pahlavi'], - ['Phnx', 'Phoenician'], - ['Plrd', 'Miao'], - ['Prti', 'Inscriptional_Parthian'], - ['Rjng', 'Rejang'], - ['Rohg', 'Hanifi_Rohingya'], - ['Runr', 'Runic'], - ['Samr', 'Samaritan'], - ['Sarb', 'Old_South_Arabian'], - ['Saur', 'Saurashtra'], - ['Sgnw', 'SignWriting'], - ['Shaw', 'Shavian'], - ['Shrd', 'Sharada'], - ['Sidd', 'Siddham'], - ['Sind', 'Khudawadi'], - ['Sinh', 'Sinhala'], - ['Sogd', 'Sogdian'], - ['Sogo', 'Old_Sogdian'], - ['Sora', 'Sora_Sompeng'], - ['Soyo', 'Soyombo'], - ['Sund', 'Sundanese'], - ['Sylo', 'Syloti_Nagri'], - ['Syrc', 'Syriac'], - ['Tagb', 'Tagbanwa'], - ['Takr', 'Takri'], - ['Tale', 'Tai_Le'], - ['Talu', 'New_Tai_Lue'], - ['Taml', 'Tamil'], - ['Tang', 'Tangut'], - ['Tavt', 'Tai_Viet'], - ['Telu', 'Telugu'], - ['Tfng', 'Tifinagh'], - ['Tglg', 'Tagalog'], - ['Thaa', 'Thaana'], - ['Thai', 'Thai'], - ['Tibt', 'Tibetan'], - ['Tirh', 'Tirhuta'], - ['Tnsa', 'Tangsa'], - ['Toto', 'Toto'], - ['Ugar', 'Ugaritic'], - ['Vaii', 'Vai'], - ['Vith', 'Vithkuqi'], - ['Wara', 'Warang_Citi'], - ['Wcho', 'Wancho'], - ['Xpeo', 'Old_Persian'], - ['Xsux', 'Cuneiform'], - ['Yezi', 'Yezidi'], - ['Yiii', 'Yi'], - ['Zanb', 'Zanabazar_Square'], - ['Zinh', 'Inherited'], - ['Qaai', 'Inherited'], - ['Zyyy', 'Common'], - ['Zzzz', 'Unknown'], - ['Adlam', 'Adlam'], - ['Caucasian_Albanian', 'Caucasian_Albanian'], - ['Arabic', 'Arabic'], - ['Imperial_Aramaic', 'Imperial_Aramaic'], - ['Armenian', 'Armenian'], - ['Avestan', 'Avestan'], - ['Balinese', 'Balinese'], - ['Bamum', 'Bamum'], - ['Bassa_Vah', 'Bassa_Vah'], - ['Batak', 'Batak'], - ['Bengali', 'Bengali'], - ['Bhaiksuki', 'Bhaiksuki'], - ['Bopomofo', 'Bopomofo'], - ['Brahmi', 'Brahmi'], - ['Braille', 'Braille'], - ['Buginese', 'Buginese'], - ['Buhid', 'Buhid'], - ['Chakma', 'Chakma'], - ['Canadian_Aboriginal', 'Canadian_Aboriginal'], - ['Carian', 'Carian'], - ['Cherokee', 'Cherokee'], - ['Chorasmian', 'Chorasmian'], - ['Coptic', 'Coptic'], - ['Cypro_Minoan', 'Cypro_Minoan'], - ['Cypriot', 'Cypriot'], - ['Cyrillic', 'Cyrillic'], - ['Devanagari', 'Devanagari'], - ['Dives_Akuru', 'Dives_Akuru'], - ['Dogra', 'Dogra'], - ['Deseret', 'Deseret'], - ['Duployan', 'Duployan'], - ['Egyptian_Hieroglyphs', 'Egyptian_Hieroglyphs'], - ['Elbasan', 'Elbasan'], - ['Elymaic', 'Elymaic'], - ['Ethiopic', 'Ethiopic'], - ['Georgian', 'Georgian'], - ['Glagolitic', 'Glagolitic'], - ['Gunjala_Gondi', 'Gunjala_Gondi'], - ['Masaram_Gondi', 'Masaram_Gondi'], - ['Gothic', 'Gothic'], - ['Grantha', 'Grantha'], - ['Greek', 'Greek'], - ['Gujarati', 'Gujarati'], - ['Gurmukhi', 'Gurmukhi'], - ['Hangul', 'Hangul'], - ['Han', 'Han'], - ['Hanunoo', 'Hanunoo'], - ['Hatran', 'Hatran'], - ['Hebrew', 'Hebrew'], - ['Hiragana', 'Hiragana'], - ['Anatolian_Hieroglyphs', 'Anatolian_Hieroglyphs'], - ['Pahawh_Hmong', 'Pahawh_Hmong'], - ['Nyiakeng_Puachue_Hmong', 'Nyiakeng_Puachue_Hmong'], - ['Katakana_Or_Hiragana', 'Katakana_Or_Hiragana'], - ['Old_Hungarian', 'Old_Hungarian'], - ['Old_Italic', 'Old_Italic'], - ['Javanese', 'Javanese'], - ['Kayah_Li', 'Kayah_Li'], - ['Katakana', 'Katakana'], - ['Kharoshthi', 'Kharoshthi'], - ['Khmer', 'Khmer'], - ['Khojki', 'Khojki'], - ['Khitan_Small_Script', 'Khitan_Small_Script'], - ['Kannada', 'Kannada'], - ['Kaithi', 'Kaithi'], - ['Tai_Tham', 'Tai_Tham'], - ['Lao', 'Lao'], - ['Latin', 'Latin'], - ['Lepcha', 'Lepcha'], - ['Limbu', 'Limbu'], - ['Linear_A', 'Linear_A'], - ['Linear_B', 'Linear_B'], - ['Lycian', 'Lycian'], - ['Lydian', 'Lydian'], - ['Mahajani', 'Mahajani'], - ['Makasar', 'Makasar'], - ['Mandaic', 'Mandaic'], - ['Manichaean', 'Manichaean'], - ['Marchen', 'Marchen'], - ['Medefaidrin', 'Medefaidrin'], - ['Mende_Kikakui', 'Mende_Kikakui'], - ['Meroitic_Cursive', 'Meroitic_Cursive'], - ['Meroitic_Hieroglyphs', 'Meroitic_Hieroglyphs'], - ['Malayalam', 'Malayalam'], - ['Mongolian', 'Mongolian'], - ['Mro', 'Mro'], - ['Meetei_Mayek', 'Meetei_Mayek'], - ['Multani', 'Multani'], - ['Myanmar', 'Myanmar'], - ['Nag_Mundari', 'Nag_Mundari'], - ['Nandinagari', 'Nandinagari'], - ['Old_North_Arabian', 'Old_North_Arabian'], - ['Nabataean', 'Nabataean'], - ['Nko', 'Nko'], - ['Nushu', 'Nushu'], - ['Ogham', 'Ogham'], - ['Ol_Chiki', 'Ol_Chiki'], - ['Old_Turkic', 'Old_Turkic'], - ['Oriya', 'Oriya'], - ['Osage', 'Osage'], - ['Osmanya', 'Osmanya'], - ['Old_Uyghur', 'Old_Uyghur'], - ['Palmyrene', 'Palmyrene'], - ['Pau_Cin_Hau', 'Pau_Cin_Hau'], - ['Old_Permic', 'Old_Permic'], - ['Phags_Pa', 'Phags_Pa'], - ['Inscriptional_Pahlavi', 'Inscriptional_Pahlavi'], - ['Psalter_Pahlavi', 'Psalter_Pahlavi'], - ['Phoenician', 'Phoenician'], - ['Miao', 'Miao'], - ['Inscriptional_Parthian', 'Inscriptional_Parthian'], - ['Rejang', 'Rejang'], - ['Hanifi_Rohingya', 'Hanifi_Rohingya'], - ['Runic', 'Runic'], - ['Samaritan', 'Samaritan'], - ['Old_South_Arabian', 'Old_South_Arabian'], - ['Saurashtra', 'Saurashtra'], - ['SignWriting', 'SignWriting'], - ['Shavian', 'Shavian'], - ['Sharada', 'Sharada'], - ['Siddham', 'Siddham'], - ['Khudawadi', 'Khudawadi'], - ['Sinhala', 'Sinhala'], - ['Sogdian', 'Sogdian'], - ['Old_Sogdian', 'Old_Sogdian'], - ['Sora_Sompeng', 'Sora_Sompeng'], - ['Soyombo', 'Soyombo'], - ['Sundanese', 'Sundanese'], - ['Syloti_Nagri', 'Syloti_Nagri'], - ['Syriac', 'Syriac'], - ['Tagbanwa', 'Tagbanwa'], - ['Takri', 'Takri'], - ['Tai_Le', 'Tai_Le'], - ['New_Tai_Lue', 'New_Tai_Lue'], - ['Tamil', 'Tamil'], - ['Tangut', 'Tangut'], - ['Tai_Viet', 'Tai_Viet'], - ['Telugu', 'Telugu'], - ['Tifinagh', 'Tifinagh'], - ['Tagalog', 'Tagalog'], - ['Thaana', 'Thaana'], - ['Tibetan', 'Tibetan'], - ['Tirhuta', 'Tirhuta'], - ['Tangsa', 'Tangsa'], - ['Ugaritic', 'Ugaritic'], - ['Vai', 'Vai'], - ['Vithkuqi', 'Vithkuqi'], - ['Warang_Citi', 'Warang_Citi'], - ['Wancho', 'Wancho'], - ['Old_Persian', 'Old_Persian'], - ['Cuneiform', 'Cuneiform'], - ['Yezidi', 'Yezidi'], - ['Yi', 'Yi'], - ['Zanabazar_Square', 'Zanabazar_Square'], - ['Inherited', 'Inherited'], - ['Common', 'Common'], - ['Unknown', 'Unknown'] - ])] -]); - - -/***/ }), - -/***/ 86176: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - - -const propertyToValueAliases = __nccwpck_require__(86080); - -const matchPropertyValue = function(property, value) { - const aliasToValue = propertyToValueAliases.get(property); - if (!aliasToValue) { - throw new Error(`Unknown property \`${ property }\`.`); - } - const canonicalValue = aliasToValue.get(value); - if (canonicalValue) { - return canonicalValue; - } - throw new Error( - `Unknown value \`${ value }\` for property \`${ property }\`.` - ); -}; - -module.exports = matchPropertyValue; - - -/***/ }), - -/***/ 17070: -/***/ (function(module) { - -// Generated using `npm run build`. Do not edit! -module.exports = new Map([ - ['scx', 'Script_Extensions'], - ['sc', 'Script'], - ['gc', 'General_Category'], - ['AHex', 'ASCII_Hex_Digit'], - ['Alpha', 'Alphabetic'], - ['Bidi_C', 'Bidi_Control'], - ['Bidi_M', 'Bidi_Mirrored'], - ['Cased', 'Cased'], - ['CI', 'Case_Ignorable'], - ['CWCF', 'Changes_When_Casefolded'], - ['CWCM', 'Changes_When_Casemapped'], - ['CWKCF', 'Changes_When_NFKC_Casefolded'], - ['CWL', 'Changes_When_Lowercased'], - ['CWT', 'Changes_When_Titlecased'], - ['CWU', 'Changes_When_Uppercased'], - ['Dash', 'Dash'], - ['Dep', 'Deprecated'], - ['DI', 'Default_Ignorable_Code_Point'], - ['Dia', 'Diacritic'], - ['EBase', 'Emoji_Modifier_Base'], - ['EComp', 'Emoji_Component'], - ['EMod', 'Emoji_Modifier'], - ['Emoji', 'Emoji'], - ['EPres', 'Emoji_Presentation'], - ['Ext', 'Extender'], - ['ExtPict', 'Extended_Pictographic'], - ['Gr_Base', 'Grapheme_Base'], - ['Gr_Ext', 'Grapheme_Extend'], - ['Hex', 'Hex_Digit'], - ['IDC', 'ID_Continue'], - ['Ideo', 'Ideographic'], - ['IDS', 'ID_Start'], - ['IDSB', 'IDS_Binary_Operator'], - ['IDST', 'IDS_Trinary_Operator'], - ['Join_C', 'Join_Control'], - ['LOE', 'Logical_Order_Exception'], - ['Lower', 'Lowercase'], - ['Math', 'Math'], - ['NChar', 'Noncharacter_Code_Point'], - ['Pat_Syn', 'Pattern_Syntax'], - ['Pat_WS', 'Pattern_White_Space'], - ['QMark', 'Quotation_Mark'], - ['Radical', 'Radical'], - ['RI', 'Regional_Indicator'], - ['SD', 'Soft_Dotted'], - ['STerm', 'Sentence_Terminal'], - ['Term', 'Terminal_Punctuation'], - ['UIdeo', 'Unified_Ideograph'], - ['Upper', 'Uppercase'], - ['VS', 'Variation_Selector'], - ['WSpace', 'White_Space'], - ['space', 'White_Space'], - ['XIDC', 'XID_Continue'], - ['XIDS', 'XID_Start'] -]); - - -/***/ }), - -/***/ 42889: -/***/ (function(module) { - -"use strict"; - -module.exports = function (Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value - } - } -} - - -/***/ }), - -/***/ 35358: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -module.exports = Yallist - -Yallist.Node = Node -Yallist.create = Yallist - -function Yallist (list) { - var self = this - if (!(self instanceof Yallist)) { - self = new Yallist() - } - - self.tail = null - self.head = null - self.length = 0 - - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item) - }) - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]) - } - } - - return self -} - -Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list') - } - - var next = node.next - var prev = node.prev - - if (next) { - next.prev = prev - } - - if (prev) { - prev.next = next - } - - if (node === this.head) { - this.head = next - } - if (node === this.tail) { - this.tail = prev - } - - node.list.length-- - node.next = null - node.prev = null - node.list = null - - return next -} - -Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var head = this.head - node.list = this - node.next = head - if (head) { - head.prev = node - } - - this.head = node - if (!this.tail) { - this.tail = node - } - this.length++ -} - -Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var tail = this.tail - node.list = this - node.prev = tail - if (tail) { - tail.next = node - } - - this.tail = node - if (!this.head) { - this.head = node - } - this.length++ -} - -Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined - } - - var res = this.tail.value - this.tail = this.tail.prev - if (this.tail) { - this.tail.next = null - } else { - this.head = null - } - this.length-- - return res -} - -Yallist.prototype.shift = function () { - if (!this.head) { - return undefined - } - - var res = this.head.value - this.head = this.head.next - if (this.head) { - this.head.prev = null - } else { - this.tail = null - } - this.length-- - return res -} - -Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this) - walker = walker.next - } -} - -Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this) - walker = walker.prev - } -} - -Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.next - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.prev - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.next - } - return res -} - -Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.prev - } - return res -} - -Yallist.prototype.reduce = function (fn, initial) { - var acc - var walker = this.head - if (arguments.length > 1) { - acc = initial - } else if (this.head) { - walker = this.head.next - acc = this.head.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i) - walker = walker.next - } - - return acc -} - -Yallist.prototype.reduceReverse = function (fn, initial) { - var acc - var walker = this.tail - if (arguments.length > 1) { - acc = initial - } else if (this.tail) { - walker = this.tail.prev - acc = this.tail.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i) - walker = walker.prev - } - - return acc -} - -Yallist.prototype.toArray = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value - walker = walker.next - } - return arr -} - -Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value - walker = walker.prev - } - return arr -} - -Yallist.prototype.slice = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.splice = function (start, deleteCount /*, ...nodes */) { - if (start > this.length) { - start = this.length - 1 - } - if (start < 0) { - start = this.length + start; - } - - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next - } - - var ret = [] - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value) - walker = this.removeNode(walker) - } - if (walker === null) { - walker = this.tail - } - - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev - } - - for (var i = 2; i < arguments.length; i++) { - walker = insert(this, walker, arguments[i]) - } - return ret; -} - -Yallist.prototype.reverse = function () { - var head = this.head - var tail = this.tail - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev - walker.prev = walker.next - walker.next = p - } - this.head = tail - this.tail = head - return this -} - -function insert (self, node, value) { - var inserted = node === self.head ? - new Node(value, null, node, self) : - new Node(value, node, node.next, self) - - if (inserted.next === null) { - self.tail = inserted - } - if (inserted.prev === null) { - self.head = inserted - } - - self.length++ - - return inserted -} - -function push (self, item) { - self.tail = new Node(item, self.tail, null, self) - if (!self.head) { - self.head = self.tail - } - self.length++ -} - -function unshift (self, item) { - self.head = new Node(item, null, self.head, self) - if (!self.tail) { - self.tail = self.head - } - self.length++ -} - -function Node (value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list) - } - - this.list = list - this.value = value - - if (prev) { - prev.next = this - this.prev = prev - } else { - this.prev = null - } - - if (next) { - next.prev = this - this.next = next - } else { - this.next = null - } -} - -try { - // add if support for Symbol.iterator is present - __nccwpck_require__(42889)(Yallist) -} catch (er) {} - - -/***/ }), - -/***/ 33234: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -// Babel >= 7.22.0 renamed packages -// https://babeljs.io/blog/2023/05/26/7.22.0 -const babelTransformDeps = { - exportNamespaceFrom: () => __nccwpck_require__(14097), - classProperties: () => __nccwpck_require__(92861), - privateMethods: () => __nccwpck_require__(63263), - privatePropertyInObject: () => __nccwpck_require__(25172) -} - -module.exports = { - codeFrame: () => __nccwpck_require__(93995), - core: () => __nccwpck_require__(27324), - generator: () => __nccwpck_require__(35761), - helperModuleImports: () => __nccwpck_require__(45423), - parser: () => __nccwpck_require__(42973), - - // tc39 - pluginProposalDecorators: () => __nccwpck_require__(21096), - pluginProposalDoExpressions: () => - __nccwpck_require__(57765), - pluginProposalExportDefaultFrom: () => - __nccwpck_require__(69671), - pluginProposalExportNamespaceFrom: babelTransformDeps.exportNamespaceFrom, - pluginTransformExportNamespaceFrom: babelTransformDeps.exportNamespaceFrom, - pluginProposalFunctionBind: () => - __nccwpck_require__(22956), - pluginProposalPartialApplication: () => - __nccwpck_require__(37606), - pluginProposalPipelineOperator: () => - __nccwpck_require__(35825), - pluginProposalRecordAndTuple: () => - __nccwpck_require__(92091), - - pluginTransformRuntime: () => __nccwpck_require__(94143), - - // preset - presetEnv: () => __nccwpck_require__(59803), - presetReact: () => __nccwpck_require__(82291), - presetTypescript: () => __nccwpck_require__(10188), - - register: () => __nccwpck_require__(88738), - template: () => __nccwpck_require__(52738), - traverse: () => __nccwpck_require__(34160), - types: () => __nccwpck_require__(53501), - - // class-properties: class 使用 loose 模式需要 - pluginProposalClassProperties: babelTransformDeps.classProperties, - pluginTransformClassProperties: babelTransformDeps.classProperties, - // private-methods - pluginProposalPrivateMethods: babelTransformDeps.privateMethods, - pluginTransformPrivateMethods: babelTransformDeps.privateMethods, - // private-property-in-object - pluginProposalPrivatePropertyInObject: babelTransformDeps.privatePropertyInObject, - pluginTransformPrivatePropertyInObject: babelTransformDeps.privatePropertyInObject -}; - - -/***/ }), - -/***/ 34755: -/***/ (function(module) { - -"use strict"; -module.exports = require("@umijs/utils/compiled/debug"); - -/***/ }), - -/***/ 39491: -/***/ (function(module) { - -"use strict"; -module.exports = require("assert"); - -/***/ }), - -/***/ 14300: -/***/ (function(module) { - -"use strict"; -module.exports = require("buffer"); - -/***/ }), - -/***/ 57147: -/***/ (function(module) { - -"use strict"; -module.exports = require("fs"); - -/***/ }), - -/***/ 98188: -/***/ (function(module) { - -"use strict"; -module.exports = require("module"); - -/***/ }), - -/***/ 22037: -/***/ (function(module) { - -"use strict"; -module.exports = require("os"); - -/***/ }), - -/***/ 71017: -/***/ (function(module) { - -"use strict"; -module.exports = require("path"); - -/***/ }), - -/***/ 77282: -/***/ (function(module) { - -"use strict"; -module.exports = require("process"); - -/***/ }), - -/***/ 42304: -/***/ (function(module) { - -"use strict"; -module.exports = require("regenerate"); - -/***/ }), - -/***/ 57310: -/***/ (function(module) { - -"use strict"; -module.exports = require("url"); - -/***/ }), - -/***/ 73837: -/***/ (function(module) { - -"use strict"; -module.exports = require("util"); - -/***/ }), - -/***/ 84655: -/***/ (function(module) { - -"use strict"; -module.exports = require("v8"); - -/***/ }), - -/***/ 71267: -/***/ (function(module) { - -"use strict"; -module.exports = require("worker_threads"); - -/***/ }), - -/***/ 92588: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.codeFrameColumns = codeFrameColumns; -exports["default"] = _default; - -var _highlight = __nccwpck_require__(32326); - -let deprecationWarningShown = false; - -function getDefs(chalk) { - return { - gutter: chalk.grey, - marker: chalk.red.bold, - message: chalk.red.bold - }; -} - -const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; - -function getMarkerLines(loc, source, opts) { - const startLoc = Object.assign({ - column: 0, - line: -1 - }, loc.start); - const endLoc = Object.assign({}, startLoc, loc.end); - const { - linesAbove = 2, - linesBelow = 3 - } = opts || {}; - const startLine = startLoc.line; - const startColumn = startLoc.column; - const endLine = endLoc.line; - const endColumn = endLoc.column; - let start = Math.max(startLine - (linesAbove + 1), 0); - let end = Math.min(source.length, endLine + linesBelow); - - if (startLine === -1) { - start = 0; - } - - if (endLine === -1) { - end = source.length; - } - - const lineDiff = endLine - startLine; - const markerLines = {}; - - if (lineDiff) { - for (let i = 0; i <= lineDiff; i++) { - const lineNumber = i + startLine; - - if (!startColumn) { - markerLines[lineNumber] = true; - } else if (i === 0) { - const sourceLength = source[lineNumber - 1].length; - markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1]; - } else if (i === lineDiff) { - markerLines[lineNumber] = [0, endColumn]; - } else { - const sourceLength = source[lineNumber - i].length; - markerLines[lineNumber] = [0, sourceLength]; - } - } - } else { - if (startColumn === endColumn) { - if (startColumn) { - markerLines[startLine] = [startColumn, 0]; - } else { - markerLines[startLine] = true; - } - } else { - markerLines[startLine] = [startColumn, endColumn - startColumn]; - } - } - - return { - start, - end, - markerLines - }; -} - -function codeFrameColumns(rawLines, loc, opts = {}) { - const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); - const chalk = (0, _highlight.getChalk)(opts); - const defs = getDefs(chalk); - - const maybeHighlight = (chalkFn, string) => { - return highlighted ? chalkFn(string) : string; - }; - - const lines = rawLines.split(NEWLINE); - const { - start, - end, - markerLines - } = getMarkerLines(loc, lines, opts); - const hasColumns = loc.start && typeof loc.start.column === "number"; - const numberMaxWidth = String(end).length; - const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines; - let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => { - const number = start + 1 + index; - const paddedNumber = ` ${number}`.slice(-numberMaxWidth); - const gutter = ` ${paddedNumber} |`; - const hasMarker = markerLines[number]; - const lastMarkerLine = !markerLines[number + 1]; - - if (hasMarker) { - let markerLine = ""; - - if (Array.isArray(hasMarker)) { - const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " "); - const numberOfMarkers = hasMarker[1] || 1; - markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join(""); - - if (lastMarkerLine && opts.message) { - markerLine += " " + maybeHighlight(defs.message, opts.message); - } - } - - return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join(""); - } else { - return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`; - } - }).join("\n"); - - if (opts.message && !hasColumns) { - frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`; - } - - if (highlighted) { - return chalk.reset(frame); - } else { - return frame; - } -} - -function _default(rawLines, lineNumber, colNumber, opts = {}) { - if (!deprecationWarningShown) { - deprecationWarningShown = true; - const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; - - if (process.emitWarning) { - process.emitWarning(message, "DeprecationWarning"); - } else { - const deprecationError = new Error(message); - deprecationError.name = "DeprecationWarning"; - console.warn(new Error(message)); - } - } - - colNumber = Math.max(colNumber, 0); - const location = { - start: { - column: colNumber, - line: lineNumber - } - }; - return codeFrameColumns(rawLines, location, opts); -} - -/***/ }), - -/***/ 93995: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.codeFrameColumns = codeFrameColumns; -exports["default"] = _default; -var _highlight = __nccwpck_require__(32326); -let deprecationWarningShown = false; -function getDefs(chalk) { - return { - gutter: chalk.grey, - marker: chalk.red.bold, - message: chalk.red.bold - }; -} -const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; -function getMarkerLines(loc, source, opts) { - const startLoc = Object.assign({ - column: 0, - line: -1 - }, loc.start); - const endLoc = Object.assign({}, startLoc, loc.end); - const { - linesAbove = 2, - linesBelow = 3 - } = opts || {}; - const startLine = startLoc.line; - const startColumn = startLoc.column; - const endLine = endLoc.line; - const endColumn = endLoc.column; - let start = Math.max(startLine - (linesAbove + 1), 0); - let end = Math.min(source.length, endLine + linesBelow); - if (startLine === -1) { - start = 0; - } - if (endLine === -1) { - end = source.length; - } - const lineDiff = endLine - startLine; - const markerLines = {}; - if (lineDiff) { - for (let i = 0; i <= lineDiff; i++) { - const lineNumber = i + startLine; - if (!startColumn) { - markerLines[lineNumber] = true; - } else if (i === 0) { - const sourceLength = source[lineNumber - 1].length; - markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1]; - } else if (i === lineDiff) { - markerLines[lineNumber] = [0, endColumn]; - } else { - const sourceLength = source[lineNumber - i].length; - markerLines[lineNumber] = [0, sourceLength]; - } - } - } else { - if (startColumn === endColumn) { - if (startColumn) { - markerLines[startLine] = [startColumn, 0]; - } else { - markerLines[startLine] = true; - } - } else { - markerLines[startLine] = [startColumn, endColumn - startColumn]; - } - } - return { - start, - end, - markerLines - }; -} -function codeFrameColumns(rawLines, loc, opts = {}) { - const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); - const chalk = (0, _highlight.getChalk)(opts); - const defs = getDefs(chalk); - const maybeHighlight = (chalkFn, string) => { - return highlighted ? chalkFn(string) : string; - }; - const lines = rawLines.split(NEWLINE); - const { - start, - end, - markerLines - } = getMarkerLines(loc, lines, opts); - const hasColumns = loc.start && typeof loc.start.column === "number"; - const numberMaxWidth = String(end).length; - const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines; - let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => { - const number = start + 1 + index; - const paddedNumber = ` ${number}`.slice(-numberMaxWidth); - const gutter = ` ${paddedNumber} |`; - const hasMarker = markerLines[number]; - const lastMarkerLine = !markerLines[number + 1]; - if (hasMarker) { - let markerLine = ""; - if (Array.isArray(hasMarker)) { - const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " "); - const numberOfMarkers = hasMarker[1] || 1; - markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join(""); - if (lastMarkerLine && opts.message) { - markerLine += " " + maybeHighlight(defs.message, opts.message); - } - } - return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join(""); - } else { - return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`; - } - }).join("\n"); - if (opts.message && !hasColumns) { - frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`; - } - if (highlighted) { - return chalk.reset(frame); - } else { - return frame; - } -} -function _default(rawLines, lineNumber, colNumber, opts = {}) { - if (!deprecationWarningShown) { - deprecationWarningShown = true; - const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; - if (process.emitWarning) { - process.emitWarning(message, "DeprecationWarning"); - } else { - const deprecationError = new Error(message); - deprecationError.name = "DeprecationWarning"; - console.warn(new Error(message)); - } - } - colNumber = Math.max(colNumber, 0); - const location = { - start: { - column: colNumber, - line: lineNumber - } - }; - return codeFrameColumns(rawLines, location, opts); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 55368: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2 -module.exports = __nccwpck_require__(5585); - - -/***/ }), - -/***/ 65729: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -module.exports = __nccwpck_require__(14584); - - -/***/ }), - -/***/ 48753: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -module.exports = __nccwpck_require__(98673); - - -/***/ }), - -/***/ 45611: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -module.exports = __nccwpck_require__(46720); - - -/***/ }), - -/***/ 48590: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -module.exports = __nccwpck_require__(78831); - - -/***/ }), - -/***/ 71902: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.assertSimpleType = assertSimpleType; -exports.makeStrongCache = makeStrongCache; -exports.makeStrongCacheSync = makeStrongCacheSync; -exports.makeWeakCache = makeWeakCache; -exports.makeWeakCacheSync = makeWeakCacheSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _async = __nccwpck_require__(10202); -var _util = __nccwpck_require__(33215); -const synchronize = gen => { - return _gensync()(gen).sync; -}; -function* genTrue() { - return true; -} -function makeWeakCache(handler) { - return makeCachedFunction(WeakMap, handler); -} -function makeWeakCacheSync(handler) { - return synchronize(makeWeakCache(handler)); -} -function makeStrongCache(handler) { - return makeCachedFunction(Map, handler); -} -function makeStrongCacheSync(handler) { - return synchronize(makeStrongCache(handler)); -} -function makeCachedFunction(CallCache, handler) { - const callCacheSync = new CallCache(); - const callCacheAsync = new CallCache(); - const futureCache = new CallCache(); - return function* cachedFunction(arg, data) { - const asyncContext = yield* (0, _async.isAsync)(); - const callCache = asyncContext ? callCacheAsync : callCacheSync; - const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data); - if (cached.valid) return cached.value; - const cache = new CacheConfigurator(data); - const handlerResult = handler(arg, cache); - let finishLock; - let value; - if ((0, _util.isIterableIterator)(handlerResult)) { - value = yield* (0, _async.onFirstPause)(handlerResult, () => { - finishLock = setupAsyncLocks(cache, futureCache, arg); - }); - } else { - value = handlerResult; - } - updateFunctionCache(callCache, cache, arg, value); - if (finishLock) { - futureCache.delete(arg); - finishLock.release(value); - } - return value; - }; -} -function* getCachedValue(cache, arg, data) { - const cachedValue = cache.get(arg); - if (cachedValue) { - for (const { - value, - valid - } of cachedValue) { - if (yield* valid(data)) return { - valid: true, - value - }; - } - } - return { - valid: false, - value: null - }; -} -function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) { - const cached = yield* getCachedValue(callCache, arg, data); - if (cached.valid) { - return cached; - } - if (asyncContext) { - const cached = yield* getCachedValue(futureCache, arg, data); - if (cached.valid) { - const value = yield* (0, _async.waitFor)(cached.value.promise); - return { - valid: true, - value - }; - } - } - return { - valid: false, - value: null - }; -} -function setupAsyncLocks(config, futureCache, arg) { - const finishLock = new Lock(); - updateFunctionCache(futureCache, config, arg, finishLock); - return finishLock; -} -function updateFunctionCache(cache, config, arg, value) { - if (!config.configured()) config.forever(); - let cachedValue = cache.get(arg); - config.deactivate(); - switch (config.mode()) { - case "forever": - cachedValue = [{ - value, - valid: genTrue - }]; - cache.set(arg, cachedValue); - break; - case "invalidate": - cachedValue = [{ - value, - valid: config.validator() - }]; - cache.set(arg, cachedValue); - break; - case "valid": - if (cachedValue) { - cachedValue.push({ - value, - valid: config.validator() - }); - } else { - cachedValue = [{ - value, - valid: config.validator() - }]; - cache.set(arg, cachedValue); - } - } -} -class CacheConfigurator { - constructor(data) { - this._active = true; - this._never = false; - this._forever = false; - this._invalidate = false; - this._configured = false; - this._pairs = []; - this._data = void 0; - this._data = data; - } - simple() { - return makeSimpleConfigurator(this); - } - mode() { - if (this._never) return "never"; - if (this._forever) return "forever"; - if (this._invalidate) return "invalidate"; - return "valid"; - } - forever() { - if (!this._active) { - throw new Error("Cannot change caching after evaluation has completed."); - } - if (this._never) { - throw new Error("Caching has already been configured with .never()"); - } - this._forever = true; - this._configured = true; - } - never() { - if (!this._active) { - throw new Error("Cannot change caching after evaluation has completed."); - } - if (this._forever) { - throw new Error("Caching has already been configured with .forever()"); - } - this._never = true; - this._configured = true; - } - using(handler) { - if (!this._active) { - throw new Error("Cannot change caching after evaluation has completed."); - } - if (this._never || this._forever) { - throw new Error("Caching has already been configured with .never or .forever()"); - } - this._configured = true; - const key = handler(this._data); - const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`); - if ((0, _async.isThenable)(key)) { - return key.then(key => { - this._pairs.push([key, fn]); - return key; - }); - } - this._pairs.push([key, fn]); - return key; - } - invalidate(handler) { - this._invalidate = true; - return this.using(handler); - } - validator() { - const pairs = this._pairs; - return function* (data) { - for (const [key, fn] of pairs) { - if (key !== (yield* fn(data))) return false; - } - return true; - }; - } - deactivate() { - this._active = false; - } - configured() { - return this._configured; - } -} -function makeSimpleConfigurator(cache) { - function cacheFn(val) { - if (typeof val === "boolean") { - if (val) cache.forever();else cache.never(); - return; - } - return cache.using(() => assertSimpleType(val())); - } - cacheFn.forever = () => cache.forever(); - cacheFn.never = () => cache.never(); - cacheFn.using = cb => cache.using(() => assertSimpleType(cb())); - cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb())); - return cacheFn; -} -function assertSimpleType(value) { - if ((0, _async.isThenable)(value)) { - throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`); - } - if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") { - throw new Error("Cache keys must be either string, boolean, number, null, or undefined."); - } - return value; -} -class Lock { - constructor() { - this.released = false; - this.promise = void 0; - this._resolve = void 0; - this.promise = new Promise(resolve => { - this._resolve = resolve; - }); - } - release(value) { - this.released = true; - this._resolve(value); - } -} -0 && 0; - -//# sourceMappingURL=caching.js.map - - -/***/ }), - -/***/ 74323: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildPresetChain = buildPresetChain; -exports.buildPresetChainWalker = void 0; -exports.buildRootChain = buildRootChain; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -var _options = __nccwpck_require__(42241); -var _patternToRegex = __nccwpck_require__(63932); -var _printer = __nccwpck_require__(9418); -var _rewriteStackTrace = __nccwpck_require__(69349); -var _configError = __nccwpck_require__(31344); -var _files = __nccwpck_require__(37541); -var _caching = __nccwpck_require__(71902); -var _configDescriptors = __nccwpck_require__(51933); -const debug = _debug()("babel:config:config-chain"); -function* buildPresetChain(arg, context) { - const chain = yield* buildPresetChainWalker(arg, context); - if (!chain) return null; - return { - plugins: dedupDescriptors(chain.plugins), - presets: dedupDescriptors(chain.presets), - options: chain.options.map(o => normalizeOptions(o)), - files: new Set() - }; -} -const buildPresetChainWalker = makeChainWalker({ - root: preset => loadPresetDescriptors(preset), - env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName), - overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index), - overridesEnv: (preset, index, envName) => loadPresetOverridesEnvDescriptors(preset)(index)(envName), - createLogger: () => () => {} -}); -exports.buildPresetChainWalker = buildPresetChainWalker; -const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors)); -const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName))); -const loadPresetOverridesDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index))); -const loadPresetOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index, envName)))); -function* buildRootChain(opts, context) { - let configReport, babelRcReport; - const programmaticLogger = new _printer.ConfigPrinter(); - const programmaticChain = yield* loadProgrammaticChain({ - options: opts, - dirname: context.cwd - }, context, undefined, programmaticLogger); - if (!programmaticChain) return null; - const programmaticReport = yield* programmaticLogger.output(); - let configFile; - if (typeof opts.configFile === "string") { - configFile = yield* (0, _files.loadConfig)(opts.configFile, context.cwd, context.envName, context.caller); - } else if (opts.configFile !== false) { - configFile = yield* (0, _files.findRootConfig)(context.root, context.envName, context.caller); - } - let { - babelrc, - babelrcRoots - } = opts; - let babelrcRootsDirectory = context.cwd; - const configFileChain = emptyChain(); - const configFileLogger = new _printer.ConfigPrinter(); - if (configFile) { - const validatedFile = validateConfigFile(configFile); - const result = yield* loadFileChain(validatedFile, context, undefined, configFileLogger); - if (!result) return null; - configReport = yield* configFileLogger.output(); - if (babelrc === undefined) { - babelrc = validatedFile.options.babelrc; - } - if (babelrcRoots === undefined) { - babelrcRootsDirectory = validatedFile.dirname; - babelrcRoots = validatedFile.options.babelrcRoots; - } - mergeChain(configFileChain, result); - } - let ignoreFile, babelrcFile; - let isIgnored = false; - const fileChain = emptyChain(); - if ((babelrc === true || babelrc === undefined) && typeof context.filename === "string") { - const pkgData = yield* (0, _files.findPackageData)(context.filename); - if (pkgData && babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)) { - ({ - ignore: ignoreFile, - config: babelrcFile - } = yield* (0, _files.findRelativeConfig)(pkgData, context.envName, context.caller)); - if (ignoreFile) { - fileChain.files.add(ignoreFile.filepath); - } - if (ignoreFile && shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)) { - isIgnored = true; - } - if (babelrcFile && !isIgnored) { - const validatedFile = validateBabelrcFile(babelrcFile); - const babelrcLogger = new _printer.ConfigPrinter(); - const result = yield* loadFileChain(validatedFile, context, undefined, babelrcLogger); - if (!result) { - isIgnored = true; - } else { - babelRcReport = yield* babelrcLogger.output(); - mergeChain(fileChain, result); - } - } - if (babelrcFile && isIgnored) { - fileChain.files.add(babelrcFile.filepath); - } - } - } - if (context.showConfig) { - console.log(`Babel configs on "${context.filename}" (ascending priority):\n` + [configReport, babelRcReport, programmaticReport].filter(x => !!x).join("\n\n") + "\n-----End Babel configs-----"); - } - const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain); - return { - plugins: isIgnored ? [] : dedupDescriptors(chain.plugins), - presets: isIgnored ? [] : dedupDescriptors(chain.presets), - options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)), - fileHandling: isIgnored ? "ignored" : "transpile", - ignore: ignoreFile || undefined, - babelrc: babelrcFile || undefined, - config: configFile || undefined, - files: chain.files - }; -} -function babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory) { - if (typeof babelrcRoots === "boolean") return babelrcRoots; - const absoluteRoot = context.root; - if (babelrcRoots === undefined) { - return pkgData.directories.indexOf(absoluteRoot) !== -1; - } - let babelrcPatterns = babelrcRoots; - if (!Array.isArray(babelrcPatterns)) { - babelrcPatterns = [babelrcPatterns]; - } - babelrcPatterns = babelrcPatterns.map(pat => { - return typeof pat === "string" ? _path().resolve(babelrcRootsDirectory, pat) : pat; - }); - if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) { - return pkgData.directories.indexOf(absoluteRoot) !== -1; - } - return babelrcPatterns.some(pat => { - if (typeof pat === "string") { - pat = (0, _patternToRegex.default)(pat, babelrcRootsDirectory); - } - return pkgData.directories.some(directory => { - return matchPattern(pat, babelrcRootsDirectory, directory, context); - }); - }); -} -const validateConfigFile = (0, _caching.makeWeakCacheSync)(file => ({ - filepath: file.filepath, - dirname: file.dirname, - options: (0, _options.validate)("configfile", file.options, file.filepath) -})); -const validateBabelrcFile = (0, _caching.makeWeakCacheSync)(file => ({ - filepath: file.filepath, - dirname: file.dirname, - options: (0, _options.validate)("babelrcfile", file.options, file.filepath) -})); -const validateExtendFile = (0, _caching.makeWeakCacheSync)(file => ({ - filepath: file.filepath, - dirname: file.dirname, - options: (0, _options.validate)("extendsfile", file.options, file.filepath) -})); -const loadProgrammaticChain = makeChainWalker({ - root: input => buildRootDescriptors(input, "base", _configDescriptors.createCachedDescriptors), - env: (input, envName) => buildEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, envName), - overrides: (input, index) => buildOverrideDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index), - overridesEnv: (input, index, envName) => buildOverrideEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index, envName), - createLogger: (input, context, baseLogger) => buildProgrammaticLogger(input, context, baseLogger) -}); -const loadFileChainWalker = makeChainWalker({ - root: file => loadFileDescriptors(file), - env: (file, envName) => loadFileEnvDescriptors(file)(envName), - overrides: (file, index) => loadFileOverridesDescriptors(file)(index), - overridesEnv: (file, index, envName) => loadFileOverridesEnvDescriptors(file)(index)(envName), - createLogger: (file, context, baseLogger) => buildFileLogger(file.filepath, context, baseLogger) -}); -function* loadFileChain(input, context, files, baseLogger) { - const chain = yield* loadFileChainWalker(input, context, files, baseLogger); - if (chain) { - chain.files.add(input.filepath); - } - return chain; -} -const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(file => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors)); -const loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))); -const loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))); -const loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName)))); -function buildFileLogger(filepath, context, baseLogger) { - if (!baseLogger) { - return () => {}; - } - return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Config, { - filepath - }); -} -function buildRootDescriptors({ - dirname, - options -}, alias, descriptors) { - return descriptors(dirname, options, alias); -} -function buildProgrammaticLogger(_, context, baseLogger) { - var _context$caller; - if (!baseLogger) { - return () => {}; - } - return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Programmatic, { - callerName: (_context$caller = context.caller) == null ? void 0 : _context$caller.name - }); -} -function buildEnvDescriptors({ - dirname, - options -}, alias, descriptors, envName) { - const opts = options.env && options.env[envName]; - return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null; -} -function buildOverrideDescriptors({ - dirname, - options -}, alias, descriptors, index) { - const opts = options.overrides && options.overrides[index]; - if (!opts) throw new Error("Assertion failure - missing override"); - return descriptors(dirname, opts, `${alias}.overrides[${index}]`); -} -function buildOverrideEnvDescriptors({ - dirname, - options -}, alias, descriptors, index, envName) { - const override = options.overrides && options.overrides[index]; - if (!override) throw new Error("Assertion failure - missing override"); - const opts = override.env && override.env[envName]; - return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null; -} -function makeChainWalker({ - root, - env, - overrides, - overridesEnv, - createLogger -}) { - return function* chainWalker(input, context, files = new Set(), baseLogger) { - const { - dirname - } = input; - const flattenedConfigs = []; - const rootOpts = root(input); - if (configIsApplicable(rootOpts, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: rootOpts, - envName: undefined, - index: undefined - }); - const envOpts = env(input, context.envName); - if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: envOpts, - envName: context.envName, - index: undefined - }); - } - (rootOpts.options.overrides || []).forEach((_, index) => { - const overrideOps = overrides(input, index); - if (configIsApplicable(overrideOps, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: overrideOps, - index, - envName: undefined - }); - const overrideEnvOpts = overridesEnv(input, index, context.envName); - if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: overrideEnvOpts, - index, - envName: context.envName - }); - } - } - }); - } - if (flattenedConfigs.some(({ - config: { - options: { - ignore, - only - } - } - }) => shouldIgnore(context, ignore, only, dirname))) { - return null; - } - const chain = emptyChain(); - const logger = createLogger(input, context, baseLogger); - for (const { - config, - index, - envName - } of flattenedConfigs) { - if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) { - return null; - } - logger(config, index, envName); - yield* mergeChainOpts(chain, config); - } - return chain; - }; -} -function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) { - if (opts.extends === undefined) return true; - const file = yield* (0, _files.loadConfig)(opts.extends, dirname, context.envName, context.caller); - if (files.has(file)) { - throw new Error(`Configuration cycle detected loading ${file.filepath}.\n` + `File already loaded following the config chain:\n` + Array.from(files, file => ` - ${file.filepath}`).join("\n")); - } - files.add(file); - const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger); - files.delete(file); - if (!fileChain) return false; - mergeChain(chain, fileChain); - return true; -} -function mergeChain(target, source) { - target.options.push(...source.options); - target.plugins.push(...source.plugins); - target.presets.push(...source.presets); - for (const file of source.files) { - target.files.add(file); - } - return target; -} -function* mergeChainOpts(target, { - options, - plugins, - presets -}) { - target.options.push(options); - target.plugins.push(...(yield* plugins())); - target.presets.push(...(yield* presets())); - return target; -} -function emptyChain() { - return { - options: [], - presets: [], - plugins: [], - files: new Set() - }; -} -function normalizeOptions(opts) { - const options = Object.assign({}, opts); - delete options.extends; - delete options.env; - delete options.overrides; - delete options.plugins; - delete options.presets; - delete options.passPerPreset; - delete options.ignore; - delete options.only; - delete options.test; - delete options.include; - delete options.exclude; - if (Object.prototype.hasOwnProperty.call(options, "sourceMap")) { - options.sourceMaps = options.sourceMap; - delete options.sourceMap; - } - return options; -} -function dedupDescriptors(items) { - const map = new Map(); - const descriptors = []; - for (const item of items) { - if (typeof item.value === "function") { - const fnKey = item.value; - let nameMap = map.get(fnKey); - if (!nameMap) { - nameMap = new Map(); - map.set(fnKey, nameMap); - } - let desc = nameMap.get(item.name); - if (!desc) { - desc = { - value: item - }; - descriptors.push(desc); - if (!item.ownPass) nameMap.set(item.name, desc); - } else { - desc.value = item; - } - } else { - descriptors.push({ - value: item - }); - } - } - return descriptors.reduce((acc, desc) => { - acc.push(desc.value); - return acc; - }, []); -} -function configIsApplicable({ - options -}, dirname, context, configName) { - return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName)); -} -function configFieldIsApplicable(context, test, dirname, configName) { - const patterns = Array.isArray(test) ? test : [test]; - return matchesPatterns(context, patterns, dirname, configName); -} -function ignoreListReplacer(_key, value) { - if (value instanceof RegExp) { - return String(value); - } - return value; -} -function shouldIgnore(context, ignore, only, dirname) { - if (ignore && matchesPatterns(context, ignore, dirname)) { - var _context$filename; - const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`; - debug(message); - if (context.showConfig) { - console.log(message); - } - return true; - } - if (only && !matchesPatterns(context, only, dirname)) { - var _context$filename2; - const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`; - debug(message); - if (context.showConfig) { - console.log(message); - } - return true; - } - return false; -} -function matchesPatterns(context, patterns, dirname, configName) { - return patterns.some(pattern => matchPattern(pattern, dirname, context.filename, context, configName)); -} -function matchPattern(pattern, dirname, pathToTest, context, configName) { - if (typeof pattern === "function") { - return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { - dirname, - envName: context.envName, - caller: context.caller - }); - } - if (typeof pathToTest !== "string") { - throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName); - } - if (typeof pattern === "string") { - pattern = (0, _patternToRegex.default)(pattern, dirname); - } - return pattern.test(pathToTest); -} -0 && 0; - -//# sourceMappingURL=config-chain.js.map - - -/***/ }), - -/***/ 51933: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createCachedDescriptors = createCachedDescriptors; -exports.createDescriptor = createDescriptor; -exports.createUncachedDescriptors = createUncachedDescriptors; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _functional = __nccwpck_require__(9954); -var _files = __nccwpck_require__(37541); -var _item = __nccwpck_require__(42426); -var _caching = __nccwpck_require__(71902); -var _resolveTargets = __nccwpck_require__(40435); -function isEqualDescriptor(a, b) { - return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && (a.file && a.file.request) === (b.file && b.file.request) && (a.file && a.file.resolved) === (b.file && b.file.resolved); -} -function* handlerOf(value) { - return value; -} -function optionsWithResolvedBrowserslistConfigFile(options, dirname) { - if (typeof options.browserslistConfigFile === "string") { - options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname); - } - return options; -} -function createCachedDescriptors(dirname, options, alias) { - const { - plugins, - presets, - passPerPreset - } = options; - return { - options: optionsWithResolvedBrowserslistConfigFile(options, dirname), - plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]), - presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([]) - }; -} -function createUncachedDescriptors(dirname, options, alias) { - return { - options: optionsWithResolvedBrowserslistConfigFile(options, dirname), - plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)), - presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset)) - }; -} -const PRESET_DESCRIPTOR_CACHE = new WeakMap(); -const createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => { - const dirname = cache.using(dir => dir); - return (0, _caching.makeStrongCacheSync)(alias => (0, _caching.makeStrongCache)(function* (passPerPreset) { - const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset); - return descriptors.map(desc => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc)); - })); -}); -const PLUGIN_DESCRIPTOR_CACHE = new WeakMap(); -const createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => { - const dirname = cache.using(dir => dir); - return (0, _caching.makeStrongCache)(function* (alias) { - const descriptors = yield* createPluginDescriptors(items, dirname, alias); - return descriptors.map(desc => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc)); - }); -}); -const DEFAULT_OPTIONS = {}; -function loadCachedDescriptor(cache, desc) { - const { - value, - options = DEFAULT_OPTIONS - } = desc; - if (options === false) return desc; - let cacheByOptions = cache.get(value); - if (!cacheByOptions) { - cacheByOptions = new WeakMap(); - cache.set(value, cacheByOptions); - } - let possibilities = cacheByOptions.get(options); - if (!possibilities) { - possibilities = []; - cacheByOptions.set(options, possibilities); - } - if (possibilities.indexOf(desc) === -1) { - const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc)); - if (matches.length > 0) { - return matches[0]; - } - possibilities.push(desc); - } - return desc; -} -function* createPresetDescriptors(items, dirname, alias, passPerPreset) { - return yield* createDescriptors("preset", items, dirname, alias, passPerPreset); -} -function* createPluginDescriptors(items, dirname, alias) { - return yield* createDescriptors("plugin", items, dirname, alias); -} -function* createDescriptors(type, items, dirname, alias, ownPass) { - const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, { - type, - alias: `${alias}$${index}`, - ownPass: !!ownPass - }))); - assertNoDuplicates(descriptors); - return descriptors; -} -function* createDescriptor(pair, dirname, { - type, - alias, - ownPass -}) { - const desc = (0, _item.getItemDescriptor)(pair); - if (desc) { - return desc; - } - let name; - let options; - let value = pair; - if (Array.isArray(value)) { - if (value.length === 3) { - [value, options, name] = value; - } else { - [value, options] = value; - } - } - let file = undefined; - let filepath = null; - if (typeof value === "string") { - if (typeof type !== "string") { - throw new Error("To resolve a string-based item, the type of item must be given"); - } - const resolver = type === "plugin" ? _files.loadPlugin : _files.loadPreset; - const request = value; - ({ - filepath, - value - } = yield* resolver(value, dirname)); - file = { - request, - resolved: filepath - }; - } - if (!value) { - throw new Error(`Unexpected falsy value: ${String(value)}`); - } - if (typeof value === "object" && value.__esModule) { - if (value.default) { - value = value.default; - } else { - throw new Error("Must export a default export when using ES6 modules."); - } - } - if (typeof value !== "object" && typeof value !== "function") { - throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`); - } - if (filepath !== null && typeof value === "object" && value) { - throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`); - } - return { - name, - alias: filepath || alias, - value, - options, - dirname, - ownPass, - file - }; -} -function assertNoDuplicates(items) { - const map = new Map(); - for (const item of items) { - if (typeof item.value !== "function") continue; - let nameMap = map.get(item.value); - if (!nameMap) { - nameMap = new Set(); - map.set(item.value, nameMap); - } - if (nameMap.has(item.name)) { - const conflicts = items.filter(i => i.value === item.value); - throw new Error([`Duplicate plugin/preset detected.`, `If you'd like to use two separate instances of a plugin,`, `they need separate names, e.g.`, ``, ` plugins: [`, ` ['some-plugin', {}],`, ` ['some-plugin', {}, 'some unique name'],`, ` ]`, ``, `Duplicates detected are:`, `${JSON.stringify(conflicts, null, 2)}`].join("\n")); - } - nameMap.add(item.name); - } -} -0 && 0; - -//# sourceMappingURL=config-descriptors.js.map - - -/***/ }), - -/***/ 71634: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ROOT_CONFIG_FILENAMES = void 0; -exports.findConfigUpwards = findConfigUpwards; -exports.findRelativeConfig = findRelativeConfig; -exports.findRootConfig = findRootConfig; -exports.loadConfig = loadConfig; -exports.resolveShowConfigPath = resolveShowConfigPath; -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -function _fs() { - const data = __nccwpck_require__(57147); - _fs = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _json() { - const data = __nccwpck_require__(66361); - _json = function () { - return data; - }; - return data; -} -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _caching = __nccwpck_require__(71902); -var _configApi = __nccwpck_require__(98841); -var _utils = __nccwpck_require__(77526); -var _moduleTypes = __nccwpck_require__(85703); -var _patternToRegex = __nccwpck_require__(63932); -var _configError = __nccwpck_require__(31344); -var fs = __nccwpck_require__(66904); -function _module() { - const data = __nccwpck_require__(98188); - _module = function () { - return data; - }; - return data; -} -var _rewriteStackTrace = __nccwpck_require__(69349); -const debug = _debug()("babel:config:loading:files:configuration"); -const ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"]; -exports.ROOT_CONFIG_FILENAMES = ROOT_CONFIG_FILENAMES; -const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"]; -const BABELIGNORE_FILENAME = ".babelignore"; -const LOADING_CONFIGS = new Set(); -const readConfigCode = (0, _caching.makeStrongCache)(function* readConfigCode(filepath, cache) { - if (!_fs().existsSync(filepath)) { - cache.never(); - return null; - } - if (LOADING_CONFIGS.has(filepath)) { - cache.never(); - debug("Auto-ignoring usage of config %o.", filepath); - return { - filepath, - dirname: _path().dirname(filepath), - options: {} - }; - } - let options; - try { - LOADING_CONFIGS.add(filepath); - options = yield* (0, _moduleTypes.default)(filepath, "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously."); - } finally { - LOADING_CONFIGS.delete(filepath); - } - let assertCache = false; - if (typeof options === "function") { - yield* []; - options = (0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache)); - assertCache = true; - } - if (!options || typeof options !== "object" || Array.isArray(options)) { - throw new _configError.default(`Configuration should be an exported JavaScript object.`, filepath); - } - if (typeof options.then === "function") { - throw new _configError.default(`You appear to be using an async configuration, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously return your config.`, filepath); - } - if (assertCache && !cache.configured()) throwConfigError(filepath); - return { - filepath, - dirname: _path().dirname(filepath), - options - }; -}); -const packageToBabelConfig = (0, _caching.makeWeakCacheSync)(file => { - const babel = file.options["babel"]; - if (typeof babel === "undefined") return null; - if (typeof babel !== "object" || Array.isArray(babel) || babel === null) { - throw new _configError.default(`.babel property must be an object`, file.filepath); - } - return { - filepath: file.filepath, - dirname: file.dirname, - options: babel - }; -}); -const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => { - let options; - try { - options = _json().parse(content); - } catch (err) { - throw new _configError.default(`Error while parsing config - ${err.message}`, filepath); - } - if (!options) throw new _configError.default(`No config detected`, filepath); - if (typeof options !== "object") { - throw new _configError.default(`Config returned typeof ${typeof options}`, filepath); - } - if (Array.isArray(options)) { - throw new _configError.default(`Expected config object but found array`, filepath); - } - delete options["$schema"]; - return { - filepath, - dirname: _path().dirname(filepath), - options - }; -}); -const readIgnoreConfig = (0, _utils.makeStaticFileCache)((filepath, content) => { - const ignoreDir = _path().dirname(filepath); - const ignorePatterns = content.split("\n").map(line => line.replace(/#(.*?)$/, "").trim()).filter(line => !!line); - for (const pattern of ignorePatterns) { - if (pattern[0] === "!") { - throw new _configError.default(`Negation of file paths is not supported.`, filepath); - } - } - return { - filepath, - dirname: _path().dirname(filepath), - ignore: ignorePatterns.map(pattern => (0, _patternToRegex.default)(pattern, ignoreDir)) - }; -}); -function findConfigUpwards(rootDir) { - let dirname = rootDir; - for (;;) { - for (const filename of ROOT_CONFIG_FILENAMES) { - if (_fs().existsSync(_path().join(dirname, filename))) { - return dirname; - } - } - const nextDir = _path().dirname(dirname); - if (dirname === nextDir) break; - dirname = nextDir; - } - return null; -} -function* findRelativeConfig(packageData, envName, caller) { - let config = null; - let ignore = null; - const dirname = _path().dirname(packageData.filepath); - for (const loc of packageData.directories) { - if (!config) { - var _packageData$pkg; - config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, ((_packageData$pkg = packageData.pkg) == null ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null); - } - if (!ignore) { - const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME); - ignore = yield* readIgnoreConfig(ignoreLoc); - if (ignore) { - debug("Found ignore %o from %o.", ignore.filepath, dirname); - } - } - } - return { - config, - ignore - }; -} -function findRootConfig(dirname, envName, caller) { - return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller); -} -function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) { - const configs = yield* _gensync().all(names.map(filename => readConfig(_path().join(dirname, filename), envName, caller))); - const config = configs.reduce((previousConfig, config) => { - if (config && previousConfig) { - throw new _configError.default(`Multiple configuration files found. Please remove one:\n` + ` - ${_path().basename(previousConfig.filepath)}\n` + ` - ${config.filepath}\n` + `from ${dirname}`); - } - return config || previousConfig; - }, previousConfig); - if (config) { - debug("Found configuration %o from %o.", config.filepath, dirname); - } - return config; -} -function* loadConfig(name, dirname, envName, caller) { - const filepath = (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { - paths: [b] - }, M = __nccwpck_require__(98188)) => { - let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); - if (f) return f; - f = new Error(`Cannot resolve module '${r}'`); - f.code = "MODULE_NOT_FOUND"; - throw f; - })(name, { - paths: [dirname] - }); - const conf = yield* readConfig(filepath, envName, caller); - if (!conf) { - throw new _configError.default(`Config file contains no configuration data`, filepath); - } - debug("Loaded config %o from %o.", name, dirname); - return conf; -} -function readConfig(filepath, envName, caller) { - const ext = _path().extname(filepath); - switch (ext) { - case ".js": - case ".cjs": - case ".mjs": - case ".cts": - return readConfigCode(filepath, { - envName, - caller - }); - default: - return readConfigJSON5(filepath); - } -} -function* resolveShowConfigPath(dirname) { - const targetPath = process.env.BABEL_SHOW_CONFIG_FOR; - if (targetPath != null) { - const absolutePath = _path().resolve(dirname, targetPath); - const stats = yield* fs.stat(absolutePath); - if (!stats.isFile()) { - throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`); - } - return absolutePath; - } - return null; -} -function throwConfigError(filepath) { - throw new _configError.default(`\ -Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured -for various types of caching, using the first param of their handler functions: - -module.exports = function(api) { - // The API exposes the following: - - // Cache the returned value forever and don't call this function again. - api.cache(true); - - // Don't cache at all. Not recommended because it will be very slow. - api.cache(false); - - // Cached based on the value of some function. If this function returns a value different from - // a previously-encountered value, the plugins will re-evaluate. - var env = api.cache(() => process.env.NODE_ENV); - - // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for - // any possible NODE_ENV value that might come up during plugin execution. - var isProd = api.cache(() => process.env.NODE_ENV === "production"); - - // .cache(fn) will perform a linear search though instances to find the matching plugin based - // based on previous instantiated plugins. If you want to recreate the plugin and discard the - // previous instance whenever something changes, you may use: - var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production"); - - // Note, we also expose the following more-verbose versions of the above examples: - api.cache.forever(); // api.cache(true) - api.cache.never(); // api.cache(false) - api.cache.using(fn); // api.cache(fn) - - // Return the value that will be cached. - return { }; -};`, filepath); -} -0 && 0; - -//# sourceMappingURL=configuration.js.map - - -/***/ }), - -/***/ 23310: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = resolve; -function _module() { - const data = __nccwpck_require__(98188); - _module = function () { - return data; - }; - return data; -} -var _importMetaResolve = __nccwpck_require__(50250); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -let import_; -try { - import_ = __nccwpck_require__(15950); -} catch (_unused) {} -const importMetaResolveP = import_ && process.execArgv.includes("--experimental-import-meta-resolve") ? import_("data:text/javascript,export default import.meta.resolve").then(m => m.default || _importMetaResolve.resolve, () => _importMetaResolve.resolve) : Promise.resolve(_importMetaResolve.resolve); -function resolve(_x, _x2) { - return _resolve.apply(this, arguments); -} -function _resolve() { - _resolve = _asyncToGenerator(function* (specifier, parent) { - return (yield importMetaResolveP)(specifier, parent); - }); - return _resolve.apply(this, arguments); -} -0 && 0; - -//# sourceMappingURL=import-meta-resolve.js.map - - -/***/ }), - -/***/ 37541: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "ROOT_CONFIG_FILENAMES", ({ - enumerable: true, - get: function () { - return _configuration.ROOT_CONFIG_FILENAMES; - } -})); -Object.defineProperty(exports, "findConfigUpwards", ({ - enumerable: true, - get: function () { - return _configuration.findConfigUpwards; - } -})); -Object.defineProperty(exports, "findPackageData", ({ - enumerable: true, - get: function () { - return _package.findPackageData; - } -})); -Object.defineProperty(exports, "findRelativeConfig", ({ - enumerable: true, - get: function () { - return _configuration.findRelativeConfig; - } -})); -Object.defineProperty(exports, "findRootConfig", ({ - enumerable: true, - get: function () { - return _configuration.findRootConfig; - } -})); -Object.defineProperty(exports, "loadConfig", ({ - enumerable: true, - get: function () { - return _configuration.loadConfig; - } -})); -Object.defineProperty(exports, "loadPlugin", ({ - enumerable: true, - get: function () { - return plugins.loadPlugin; - } -})); -Object.defineProperty(exports, "loadPreset", ({ - enumerable: true, - get: function () { - return plugins.loadPreset; - } -})); -exports.resolvePreset = exports.resolvePlugin = void 0; -Object.defineProperty(exports, "resolveShowConfigPath", ({ - enumerable: true, - get: function () { - return _configuration.resolveShowConfigPath; - } -})); -var _package = __nccwpck_require__(87161); -var _configuration = __nccwpck_require__(71634); -var plugins = __nccwpck_require__(81904); -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -({}); -const resolvePlugin = _gensync()(plugins.resolvePlugin).sync; -exports.resolvePlugin = resolvePlugin; -const resolvePreset = _gensync()(plugins.resolvePreset).sync; -exports.resolvePreset = resolvePreset; -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 85703: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = loadCodeDefault; -exports.supportsESM = void 0; -var _async = __nccwpck_require__(10202); -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _url() { - const data = __nccwpck_require__(57310); - _url = function () { - return data; - }; - return data; -} -function _module() { - const data = __nccwpck_require__(98188); - _module = function () { - return data; - }; - return data; -} -function _semver() { - const data = __nccwpck_require__(8999); - _semver = function () { - return data; - }; - return data; -} -var _rewriteStackTrace = __nccwpck_require__(69349); -var _configError = __nccwpck_require__(31344); -var _transformFile = __nccwpck_require__(38889); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -let import_; -try { - import_ = __nccwpck_require__(15950); -} catch (_unused) {} -const supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2"); -exports.supportsESM = supportsESM; -function* loadCodeDefault(filepath, asyncError, fallbackToTranspiledModule = false) { - switch (_path().extname(filepath)) { - case ".cjs": - return loadCjsDefault(filepath, fallbackToTranspiledModule); - case ".mjs": - break; - case ".cts": - return loadCtsDefault(filepath); - default: - try { - return loadCjsDefault(filepath, fallbackToTranspiledModule); - } catch (e) { - if (e.code !== "ERR_REQUIRE_ESM") throw e; - } - } - if (yield* (0, _async.isAsync)()) { - return yield* (0, _async.waitFor)(loadMjsDefault(filepath)); - } - throw new _configError.default(asyncError, filepath); -} -function loadCtsDefault(filepath) { - const ext = ".cts"; - const hasTsSupport = !!(require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]); - let handler; - if (!hasTsSupport) { - const opts = { - babelrc: false, - configFile: false, - sourceType: "script", - sourceMaps: "inline", - presets: [[getTSPreset(filepath), Object.assign({ - disallowAmbiguousJSXLike: true, - allExtensions: true, - onlyRemoveTypeImports: true, - optimizeConstEnums: true - }, { - allowDeclareFields: true - })]] - }; - handler = function (m, filename) { - if (handler && filename.endsWith(ext)) { - return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, { - filename - })).code, filename); - } - return require.extensions[".js"](m, filename); - }; - require.extensions[ext] = handler; - } - try { - return (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath); - } finally { - if (!hasTsSupport) { - if (require.extensions[ext] === handler) delete require.extensions[ext]; - handler = undefined; - } - } -} -function loadCjsDefault(filepath, fallbackToTranspiledModule) { - const module = (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath); - return module != null && module.__esModule ? module.default || (fallbackToTranspiledModule ? module : undefined) : module; -} -function loadMjsDefault(_x) { - return _loadMjsDefault.apply(this, arguments); -} -function _loadMjsDefault() { - _loadMjsDefault = _asyncToGenerator(function* (filepath) { - if (!import_) { - throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath); - } - const module = yield (0, _rewriteStackTrace.endHiddenCallStack)(import_)((0, _url().pathToFileURL)(filepath)); - return module.default; - }); - return _loadMjsDefault.apply(this, arguments); -} -function getTSPreset(filepath) { - try { - return __nccwpck_require__(84617); - } catch (error) { - if (error.code !== "MODULE_NOT_FOUND") throw error; - let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!"; - if (process.versions.pnp) { - message += ` -If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file: - -packageExtensions: -\t"@babel/core@*": -\t\tpeerDependencies: -\t\t\t"@babel/preset-typescript": "*" -`; - } - throw new _configError.default(message, filepath); - } -} -0 && 0; - -//# sourceMappingURL=module-types.js.map - - -/***/ }), - -/***/ 87161: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.findPackageData = findPackageData; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -var _utils = __nccwpck_require__(77526); -var _configError = __nccwpck_require__(31344); -const PACKAGE_FILENAME = "package.json"; -const readConfigPackage = (0, _utils.makeStaticFileCache)((filepath, content) => { - let options; - try { - options = JSON.parse(content); - } catch (err) { - throw new _configError.default(`Error while parsing JSON - ${err.message}`, filepath); - } - if (!options) throw new Error(`${filepath}: No config detected`); - if (typeof options !== "object") { - throw new _configError.default(`Config returned typeof ${typeof options}`, filepath); - } - if (Array.isArray(options)) { - throw new _configError.default(`Expected config object but found array`, filepath); - } - return { - filepath, - dirname: _path().dirname(filepath), - options - }; -}); -function* findPackageData(filepath) { - let pkg = null; - const directories = []; - let isPackage = true; - let dirname = _path().dirname(filepath); - while (!pkg && _path().basename(dirname) !== "node_modules") { - directories.push(dirname); - pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME)); - const nextLoc = _path().dirname(dirname); - if (dirname === nextLoc) { - isPackage = false; - break; - } - dirname = nextLoc; - } - return { - filepath, - directories, - pkg, - isPackage - }; -} -0 && 0; - -//# sourceMappingURL=package.js.map - - -/***/ }), - -/***/ 81904: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.loadPlugin = loadPlugin; -exports.loadPreset = loadPreset; -exports.resolvePlugin = resolvePlugin; -exports.resolvePreset = resolvePreset; -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _async = __nccwpck_require__(10202); -var _moduleTypes = __nccwpck_require__(85703); -function _url() { - const data = __nccwpck_require__(57310); - _url = function () { - return data; - }; - return data; -} -var _importMetaResolve = __nccwpck_require__(23310); -function _module() { - const data = __nccwpck_require__(98188); - _module = function () { - return data; - }; - return data; -} -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -const debug = _debug()("babel:config:loading:files:plugins"); -const EXACT_RE = /^module:/; -const BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/; -const BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/; -const BABEL_PLUGIN_ORG_RE = /^(@babel\/)(?!plugin-|[^/]+\/)/; -const BABEL_PRESET_ORG_RE = /^(@babel\/)(?!preset-|[^/]+\/)/; -const OTHER_PLUGIN_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/; -const OTHER_PRESET_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/; -const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/; -function* resolvePlugin(name, dirname) { - return yield* resolveStandardizedName("plugin", name, dirname); -} -function* resolvePreset(name, dirname) { - return yield* resolveStandardizedName("preset", name, dirname); -} -function* loadPlugin(name, dirname) { - const filepath = yield* resolvePlugin(name, dirname); - const value = yield* requireModule("plugin", filepath); - debug("Loaded plugin %o from %o.", name, dirname); - return { - filepath, - value - }; -} -function* loadPreset(name, dirname) { - const filepath = yield* resolvePreset(name, dirname); - const value = yield* requireModule("preset", filepath); - debug("Loaded preset %o from %o.", name, dirname); - return { - filepath, - value - }; -} -function standardizeName(type, name) { - if (_path().isAbsolute(name)) return name; - const isPreset = type === "preset"; - return name.replace(isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE, `babel-${type}-`).replace(isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE, `$1${type}-`).replace(isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE, `$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`).replace(EXACT_RE, ""); -} -function* resolveAlternativesHelper(type, name) { - const standardizedName = standardizeName(type, name); - const { - error, - value - } = yield standardizedName; - if (!error) return value; - if (error.code !== "MODULE_NOT_FOUND") throw error; - if (standardizedName !== name && !(yield name).error) { - error.message += `\n- If you want to resolve "${name}", use "module:${name}"`; - } - if (!(yield standardizeName(type, "@babel/" + name)).error) { - error.message += `\n- Did you mean "@babel/${name}"?`; - } - const oppositeType = type === "preset" ? "plugin" : "preset"; - if (!(yield standardizeName(oppositeType, name)).error) { - error.message += `\n- Did you accidentally pass a ${oppositeType} as a ${type}?`; - } - throw error; -} -function tryRequireResolve(id, { - paths: [dirname] -}) { - try { - return { - error: null, - value: (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { - paths: [b] - }, M = __nccwpck_require__(98188)) => { - let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); - if (f) return f; - f = new Error(`Cannot resolve module '${r}'`); - f.code = "MODULE_NOT_FOUND"; - throw f; - })(id, { - paths: [dirname] - }) - }; - } catch (error) { - return { - error, - value: null - }; - } -} -function tryImportMetaResolve(_x, _x2) { - return _tryImportMetaResolve.apply(this, arguments); -} -function _tryImportMetaResolve() { - _tryImportMetaResolve = _asyncToGenerator(function* (id, options) { - try { - return { - error: null, - value: yield (0, _importMetaResolve.default)(id, options) - }; - } catch (error) { - return { - error, - value: null - }; - } - }); - return _tryImportMetaResolve.apply(this, arguments); -} -function resolveStandardizedNameForRequire(type, name, dirname) { - const it = resolveAlternativesHelper(type, name); - let res = it.next(); - while (!res.done) { - res = it.next(tryRequireResolve(res.value, { - paths: [dirname] - })); - } - return res.value; -} -function resolveStandardizedNameForImport(_x3, _x4, _x5) { - return _resolveStandardizedNameForImport.apply(this, arguments); -} -function _resolveStandardizedNameForImport() { - _resolveStandardizedNameForImport = _asyncToGenerator(function* (type, name, dirname) { - const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href; - const it = resolveAlternativesHelper(type, name); - let res = it.next(); - while (!res.done) { - res = it.next(yield tryImportMetaResolve(res.value, parentUrl)); - } - return (0, _url().fileURLToPath)(res.value); - }); - return _resolveStandardizedNameForImport.apply(this, arguments); -} -const resolveStandardizedName = _gensync()({ - sync(type, name, dirname = process.cwd()) { - return resolveStandardizedNameForRequire(type, name, dirname); - }, - async(type, name, dirname = process.cwd()) { - return _asyncToGenerator(function* () { - if (!_moduleTypes.supportsESM) { - return resolveStandardizedNameForRequire(type, name, dirname); - } - try { - return yield resolveStandardizedNameForImport(type, name, dirname); - } catch (e) { - try { - return resolveStandardizedNameForRequire(type, name, dirname); - } catch (e2) { - if (e.type === "MODULE_NOT_FOUND") throw e; - if (e2.type === "MODULE_NOT_FOUND") throw e2; - throw e; - } - } - })(); - } -}); -{ - var LOADING_MODULES = new Set(); -} -function* requireModule(type, name) { - { - if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) { - throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.'); - } - } - try { - { - LOADING_MODULES.add(name); - } - return yield* (0, _moduleTypes.default)(name, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously.", true); - } catch (err) { - err.message = `[BABEL]: ${err.message} (While processing: ${name})`; - throw err; - } finally { - { - LOADING_MODULES.delete(name); - } - } -} -0 && 0; - -//# sourceMappingURL=plugins.js.map - - -/***/ }), - -/***/ 77526: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.makeStaticFileCache = makeStaticFileCache; -var _caching = __nccwpck_require__(71902); -var fs = __nccwpck_require__(66904); -function _fs2() { - const data = __nccwpck_require__(57147); - _fs2 = function () { - return data; - }; - return data; -} -function makeStaticFileCache(fn) { - return (0, _caching.makeStrongCache)(function* (filepath, cache) { - const cached = cache.invalidate(() => fileMtime(filepath)); - if (cached === null) { - return null; - } - return fn(filepath, yield* fs.readFile(filepath, "utf8")); - }); -} -function fileMtime(filepath) { - if (!_fs2().existsSync(filepath)) return null; - try { - return +_fs2().statSync(filepath).mtime; - } catch (e) { - if (e.code !== "ENOENT" && e.code !== "ENOTDIR") throw e; - } - return null; -} -0 && 0; - -//# sourceMappingURL=utils.js.map - - -/***/ }), - -/***/ 84716: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _async = __nccwpck_require__(10202); -var _util = __nccwpck_require__(33215); -var context = __nccwpck_require__(90454); -var _plugin = __nccwpck_require__(29949); -var _item = __nccwpck_require__(42426); -var _configChain = __nccwpck_require__(74323); -var _deepArray = __nccwpck_require__(18597); -function _traverse() { - const data = __nccwpck_require__(37386); - _traverse = function () { - return data; - }; - return data; -} -var _caching = __nccwpck_require__(71902); -var _options = __nccwpck_require__(42241); -var _plugins = __nccwpck_require__(94970); -var _configApi = __nccwpck_require__(98841); -var _partial = __nccwpck_require__(16644); -var _configError = __nccwpck_require__(31344); -var _default = _gensync()(function* loadFullConfig(inputOpts) { - var _opts$assumptions; - const result = yield* (0, _partial.default)(inputOpts); - if (!result) { - return null; - } - const { - options, - context, - fileHandling - } = result; - if (fileHandling === "ignored") { - return null; - } - const optionDefaults = {}; - const { - plugins, - presets - } = options; - if (!plugins || !presets) { - throw new Error("Assertion failure - plugins and presets exist"); - } - const presetContext = Object.assign({}, context, { - targets: options.targets - }); - const toDescriptor = item => { - const desc = (0, _item.getItemDescriptor)(item); - if (!desc) { - throw new Error("Assertion failure - must be config item"); - } - return desc; - }; - const presetsDescriptors = presets.map(toDescriptor); - const initialPluginsDescriptors = plugins.map(toDescriptor); - const pluginDescriptorsByPass = [[]]; - const passes = []; - const externalDependencies = []; - const ignored = yield* enhanceError(context, function* recursePresetDescriptors(rawPresets, pluginDescriptorsPass) { - const presets = []; - for (let i = 0; i < rawPresets.length; i++) { - const descriptor = rawPresets[i]; - if (descriptor.options !== false) { - try { - var preset = yield* loadPresetDescriptor(descriptor, presetContext); - } catch (e) { - if (e.code === "BABEL_UNKNOWN_OPTION") { - (0, _options.checkNoUnwrappedItemOptionPairs)(rawPresets, i, "preset", e); - } - throw e; - } - externalDependencies.push(preset.externalDependencies); - if (descriptor.ownPass) { - presets.push({ - preset: preset.chain, - pass: [] - }); - } else { - presets.unshift({ - preset: preset.chain, - pass: pluginDescriptorsPass - }); - } - } - } - if (presets.length > 0) { - pluginDescriptorsByPass.splice(1, 0, ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass)); - for (const { - preset, - pass - } of presets) { - if (!preset) return true; - pass.push(...preset.plugins); - const ignored = yield* recursePresetDescriptors(preset.presets, pass); - if (ignored) return true; - preset.options.forEach(opts => { - (0, _util.mergeOptions)(optionDefaults, opts); - }); - } - } - })(presetsDescriptors, pluginDescriptorsByPass[0]); - if (ignored) return null; - const opts = optionDefaults; - (0, _util.mergeOptions)(opts, options); - const pluginContext = Object.assign({}, presetContext, { - assumptions: (_opts$assumptions = opts.assumptions) != null ? _opts$assumptions : {} - }); - yield* enhanceError(context, function* loadPluginDescriptors() { - pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors); - for (const descs of pluginDescriptorsByPass) { - const pass = []; - passes.push(pass); - for (let i = 0; i < descs.length; i++) { - const descriptor = descs[i]; - if (descriptor.options !== false) { - try { - var plugin = yield* loadPluginDescriptor(descriptor, pluginContext); - } catch (e) { - if (e.code === "BABEL_UNKNOWN_PLUGIN_PROPERTY") { - (0, _options.checkNoUnwrappedItemOptionPairs)(descs, i, "plugin", e); - } - throw e; - } - pass.push(plugin); - externalDependencies.push(plugin.externalDependencies); - } - } - } - })(); - opts.plugins = passes[0]; - opts.presets = passes.slice(1).filter(plugins => plugins.length > 0).map(plugins => ({ - plugins - })); - opts.passPerPreset = opts.presets.length > 0; - return { - options: opts, - passes: passes, - externalDependencies: (0, _deepArray.finalize)(externalDependencies) - }; -}); -exports["default"] = _default; -function enhanceError(context, fn) { - return function* (arg1, arg2) { - try { - return yield* fn(arg1, arg2); - } catch (e) { - if (!/^\[BABEL\]/.test(e.message)) { - var _context$filename; - e.message = `[BABEL] ${(_context$filename = context.filename) != null ? _context$filename : "unknown file"}: ${e.message}`; - } - throw e; - } - }; -} -const makeDescriptorLoader = apiFactory => (0, _caching.makeWeakCache)(function* ({ - value, - options, - dirname, - alias -}, cache) { - if (options === false) throw new Error("Assertion failure"); - options = options || {}; - const externalDependencies = []; - let item = value; - if (typeof value === "function") { - const factory = (0, _async.maybeAsync)(value, `You appear to be using an async plugin/preset, but Babel has been called synchronously`); - const api = Object.assign({}, context, apiFactory(cache, externalDependencies)); - try { - item = yield* factory(api, options, dirname); - } catch (e) { - if (alias) { - e.message += ` (While processing: ${JSON.stringify(alias)})`; - } - throw e; - } - } - if (!item || typeof item !== "object") { - throw new Error("Plugin/Preset did not return an object."); - } - if ((0, _async.isThenable)(item)) { - yield* []; - throw new Error(`You appear to be using a promise as a plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version. ` + `As an alternative, you can prefix the promise with "await". ` + `(While processing: ${JSON.stringify(alias)})`); - } - if (externalDependencies.length > 0 && (!cache.configured() || cache.mode() === "forever")) { - let error = `A plugin/preset has external untracked dependencies ` + `(${externalDependencies[0]}), but the cache `; - if (!cache.configured()) { - error += `has not been configured to be invalidated when the external dependencies change. `; - } else { - error += ` has been configured to never be invalidated. `; - } - error += `Plugins/presets should configure their cache to be invalidated when the external ` + `dependencies change, for example using \`api.cache.invalidate(() => ` + `statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n` + `(While processing: ${JSON.stringify(alias)})`; - throw new Error(error); - } - return { - value: item, - options, - dirname, - alias, - externalDependencies: (0, _deepArray.finalize)(externalDependencies) - }; -}); -const pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI); -const presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI); -const instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ - value, - options, - dirname, - alias, - externalDependencies -}, cache) { - const pluginObj = (0, _plugins.validatePluginObject)(value); - const plugin = Object.assign({}, pluginObj); - if (plugin.visitor) { - plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor)); - } - if (plugin.inherits) { - const inheritsDescriptor = { - name: undefined, - alias: `${alias}$inherits`, - value: plugin.inherits, - options, - dirname - }; - const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, run => { - return cache.invalidate(data => run(inheritsDescriptor, data)); - }); - plugin.pre = chain(inherits.pre, plugin.pre); - plugin.post = chain(inherits.post, plugin.post); - plugin.manipulateOptions = chain(inherits.manipulateOptions, plugin.manipulateOptions); - plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]); - if (inherits.externalDependencies.length > 0) { - if (externalDependencies.length === 0) { - externalDependencies = inherits.externalDependencies; - } else { - externalDependencies = (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]); - } - } - } - return new _plugin.default(plugin, options, alias, externalDependencies); -}); -function* loadPluginDescriptor(descriptor, context) { - if (descriptor.value instanceof _plugin.default) { - if (descriptor.options) { - throw new Error("Passed options to an existing Plugin instance will not work."); - } - return descriptor.value; - } - return yield* instantiatePlugin(yield* pluginDescriptorLoader(descriptor, context), context); -} -const needsFilename = val => val && typeof val !== "function"; -const validateIfOptionNeedsFilename = (options, descriptor) => { - if (needsFilename(options.test) || needsFilename(options.include) || needsFilename(options.exclude)) { - const formattedPresetName = descriptor.name ? `"${descriptor.name}"` : "/* your preset */"; - throw new _configError.default([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`, `\`\`\``, `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`, `\`\`\``, `See https://babeljs.io/docs/en/options#filename for more information.`].join("\n")); - } -}; -const validatePreset = (preset, context, descriptor) => { - if (!context.filename) { - const { - options - } = preset; - validateIfOptionNeedsFilename(options, descriptor); - if (options.overrides) { - options.overrides.forEach(overrideOptions => validateIfOptionNeedsFilename(overrideOptions, descriptor)); - } - } -}; -const instantiatePreset = (0, _caching.makeWeakCacheSync)(({ - value, - dirname, - alias, - externalDependencies -}) => { - return { - options: (0, _options.validate)("preset", value), - alias, - dirname, - externalDependencies - }; -}); -function* loadPresetDescriptor(descriptor, context) { - const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context)); - validatePreset(preset, context, descriptor); - return { - chain: yield* (0, _configChain.buildPresetChain)(preset, context), - externalDependencies: preset.externalDependencies - }; -} -function chain(a, b) { - const fns = [a, b].filter(Boolean); - if (fns.length <= 1) return fns[0]; - return function (...args) { - for (const fn of fns) { - fn.apply(this, args); - } - }; -} -0 && 0; - -//# sourceMappingURL=full.js.map - - -/***/ }), - -/***/ 98841: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.makeConfigAPI = makeConfigAPI; -exports.makePluginAPI = makePluginAPI; -exports.makePresetAPI = makePresetAPI; -function _semver() { - const data = __nccwpck_require__(8999); - _semver = function () { - return data; - }; - return data; -} -var _ = __nccwpck_require__(90454); -var _caching = __nccwpck_require__(71902); -function makeConfigAPI(cache) { - const env = value => cache.using(data => { - if (typeof value === "undefined") return data.envName; - if (typeof value === "function") { - return (0, _caching.assertSimpleType)(value(data.envName)); - } - return (Array.isArray(value) ? value : [value]).some(entry => { - if (typeof entry !== "string") { - throw new Error("Unexpected non-string value"); - } - return entry === data.envName; - }); - }); - const caller = cb => cache.using(data => (0, _caching.assertSimpleType)(cb(data.caller))); - return { - version: _.version, - cache: cache.simple(), - env, - async: () => false, - caller, - assertVersion - }; -} -function makePresetAPI(cache, externalDependencies) { - const targets = () => JSON.parse(cache.using(data => JSON.stringify(data.targets))); - const addExternalDependency = ref => { - externalDependencies.push(ref); - }; - return Object.assign({}, makeConfigAPI(cache), { - targets, - addExternalDependency - }); -} -function makePluginAPI(cache, externalDependencies) { - const assumption = name => cache.using(data => data.assumptions[name]); - return Object.assign({}, makePresetAPI(cache, externalDependencies), { - assumption - }); -} -function assertVersion(range) { - if (typeof range === "number") { - if (!Number.isInteger(range)) { - throw new Error("Expected string or integer value."); - } - range = `^${range}.0.0-0`; - } - if (typeof range !== "string") { - throw new Error("Expected string or integer value."); - } - if (_semver().satisfies(_.version, range)) return; - const limit = Error.stackTraceLimit; - if (typeof limit === "number" && limit < 25) { - Error.stackTraceLimit = 25; - } - const err = new Error(`Requires Babel "${range}", but was loaded with "${_.version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); - if (typeof limit === "number") { - Error.stackTraceLimit = limit; - } - throw Object.assign(err, { - code: "BABEL_VERSION_UNSUPPORTED", - version: _.version, - range - }); -} -0 && 0; - -//# sourceMappingURL=config-api.js.map - - -/***/ }), - -/***/ 18597: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.finalize = finalize; -exports.flattenToSet = flattenToSet; -function finalize(deepArr) { - return Object.freeze(deepArr); -} -function flattenToSet(arr) { - const result = new Set(); - const stack = [arr]; - while (stack.length > 0) { - for (const el of stack.pop()) { - if (Array.isArray(el)) stack.push(el);else result.add(el); - } - } - return result; -} -0 && 0; - -//# sourceMappingURL=deep-array.js.map - - -/***/ }), - -/***/ 87615: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getEnv = getEnv; -function getEnv(defaultValue = "development") { - return process.env.BABEL_ENV || process.env.NODE_ENV || defaultValue; -} -0 && 0; - -//# sourceMappingURL=environment.js.map - - -/***/ }), - -/***/ 89153: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createConfigItem = createConfigItem; -exports.createConfigItemSync = exports.createConfigItemAsync = void 0; -Object.defineProperty(exports, "default", ({ - enumerable: true, - get: function () { - return _full.default; - } -})); -exports.loadPartialConfigSync = exports.loadPartialConfigAsync = exports.loadPartialConfig = exports.loadOptionsSync = exports.loadOptionsAsync = exports.loadOptions = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _full = __nccwpck_require__(84716); -var _partial = __nccwpck_require__(16644); -var _item = __nccwpck_require__(42426); -const loadOptionsRunner = _gensync()(function* (opts) { - var _config$options; - const config = yield* (0, _full.default)(opts); - return (_config$options = config == null ? void 0 : config.options) != null ? _config$options : null; -}); -const createConfigItemRunner = _gensync()(_item.createConfigItem); -const maybeErrback = runner => (argOrCallback, maybeCallback) => { - let arg; - let callback; - if (maybeCallback === undefined && typeof argOrCallback === "function") { - callback = argOrCallback; - arg = undefined; - } else { - callback = maybeCallback; - arg = argOrCallback; - } - return callback ? runner.errback(arg, callback) : runner.sync(arg); -}; -const loadPartialConfig = maybeErrback(_partial.loadPartialConfig); -exports.loadPartialConfig = loadPartialConfig; -const loadPartialConfigSync = _partial.loadPartialConfig.sync; -exports.loadPartialConfigSync = loadPartialConfigSync; -const loadPartialConfigAsync = _partial.loadPartialConfig.async; -exports.loadPartialConfigAsync = loadPartialConfigAsync; -const loadOptions = maybeErrback(loadOptionsRunner); -exports.loadOptions = loadOptions; -const loadOptionsSync = loadOptionsRunner.sync; -exports.loadOptionsSync = loadOptionsSync; -const loadOptionsAsync = loadOptionsRunner.async; -exports.loadOptionsAsync = loadOptionsAsync; -const createConfigItemSync = createConfigItemRunner.sync; -exports.createConfigItemSync = createConfigItemSync; -const createConfigItemAsync = createConfigItemRunner.async; -exports.createConfigItemAsync = createConfigItemAsync; -function createConfigItem(target, options, callback) { - if (callback !== undefined) { - return createConfigItemRunner.errback(target, options, callback); - } else if (typeof options === "function") { - return createConfigItemRunner.errback(target, undefined, callback); - } else { - return createConfigItemRunner.sync(target, options); - } -} -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 42426: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createConfigItem = createConfigItem; -exports.createItemFromDescriptor = createItemFromDescriptor; -exports.getItemDescriptor = getItemDescriptor; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -var _configDescriptors = __nccwpck_require__(51933); -function createItemFromDescriptor(desc) { - return new ConfigItem(desc); -} -function* createConfigItem(value, { - dirname = ".", - type -} = {}) { - const descriptor = yield* (0, _configDescriptors.createDescriptor)(value, _path().resolve(dirname), { - type, - alias: "programmatic item" - }); - return createItemFromDescriptor(descriptor); -} -const CONFIG_ITEM_BRAND = Symbol.for("@babel/core@7 - ConfigItem"); -function getItemDescriptor(item) { - if (item != null && item[CONFIG_ITEM_BRAND]) { - return item._descriptor; - } - return undefined; -} -class ConfigItem { - constructor(descriptor) { - this._descriptor = void 0; - this[CONFIG_ITEM_BRAND] = true; - this.value = void 0; - this.options = void 0; - this.dirname = void 0; - this.name = void 0; - this.file = void 0; - this._descriptor = descriptor; - Object.defineProperty(this, "_descriptor", { - enumerable: false - }); - Object.defineProperty(this, CONFIG_ITEM_BRAND, { - enumerable: false - }); - this.value = this._descriptor.value; - this.options = this._descriptor.options; - this.dirname = this._descriptor.dirname; - this.name = this._descriptor.name; - this.file = this._descriptor.file ? { - request: this._descriptor.file.request, - resolved: this._descriptor.file.resolved - } : undefined; - Object.freeze(this); - } -} -Object.freeze(ConfigItem.prototype); -0 && 0; - -//# sourceMappingURL=item.js.map - - -/***/ }), - -/***/ 16644: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = loadPrivatePartialConfig; -exports.loadPartialConfig = void 0; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _plugin = __nccwpck_require__(29949); -var _util = __nccwpck_require__(33215); -var _item = __nccwpck_require__(42426); -var _configChain = __nccwpck_require__(74323); -var _environment = __nccwpck_require__(87615); -var _options = __nccwpck_require__(42241); -var _files = __nccwpck_require__(37541); -var _resolveTargets = __nccwpck_require__(40435); -const _excluded = ["showIgnoredFiles"]; -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function resolveRootMode(rootDir, rootMode) { - switch (rootMode) { - case "root": - return rootDir; - case "upward-optional": - { - const upwardRootDir = (0, _files.findConfigUpwards)(rootDir); - return upwardRootDir === null ? rootDir : upwardRootDir; - } - case "upward": - { - const upwardRootDir = (0, _files.findConfigUpwards)(rootDir); - if (upwardRootDir !== null) return upwardRootDir; - throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not ` + `be found when searching upward from "${rootDir}".\n` + `One of the following config files must be in the directory tree: ` + `"${_files.ROOT_CONFIG_FILENAMES.join(", ")}".`), { - code: "BABEL_ROOT_NOT_FOUND", - dirname: rootDir - }); - } - default: - throw new Error(`Assertion failure - unknown rootMode value.`); - } -} -function* loadPrivatePartialConfig(inputOpts) { - if (inputOpts != null && (typeof inputOpts !== "object" || Array.isArray(inputOpts))) { - throw new Error("Babel options must be an object, null, or undefined"); - } - const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}; - const { - envName = (0, _environment.getEnv)(), - cwd = ".", - root: rootDir = ".", - rootMode = "root", - caller, - cloneInputAst = true - } = args; - const absoluteCwd = _path().resolve(cwd); - const absoluteRootDir = resolveRootMode(_path().resolve(absoluteCwd, rootDir), rootMode); - const filename = typeof args.filename === "string" ? _path().resolve(cwd, args.filename) : undefined; - const showConfigPath = yield* (0, _files.resolveShowConfigPath)(absoluteCwd); - const context = { - filename, - cwd: absoluteCwd, - root: absoluteRootDir, - envName, - caller, - showConfig: showConfigPath === filename - }; - const configChain = yield* (0, _configChain.buildRootChain)(args, context); - if (!configChain) return null; - const merged = { - assumptions: {} - }; - configChain.options.forEach(opts => { - (0, _util.mergeOptions)(merged, opts); - }); - const options = Object.assign({}, merged, { - targets: (0, _resolveTargets.resolveTargets)(merged, absoluteRootDir), - cloneInputAst, - babelrc: false, - configFile: false, - browserslistConfigFile: false, - passPerPreset: false, - envName: context.envName, - cwd: context.cwd, - root: context.root, - rootMode: "root", - filename: typeof context.filename === "string" ? context.filename : undefined, - plugins: configChain.plugins.map(descriptor => (0, _item.createItemFromDescriptor)(descriptor)), - presets: configChain.presets.map(descriptor => (0, _item.createItemFromDescriptor)(descriptor)) - }); - return { - options, - context, - fileHandling: configChain.fileHandling, - ignore: configChain.ignore, - babelrc: configChain.babelrc, - config: configChain.config, - files: configChain.files - }; -} -const loadPartialConfig = _gensync()(function* (opts) { - let showIgnoredFiles = false; - if (typeof opts === "object" && opts !== null && !Array.isArray(opts)) { - var _opts = opts; - ({ - showIgnoredFiles - } = _opts); - opts = _objectWithoutPropertiesLoose(_opts, _excluded); - _opts; - } - const result = yield* loadPrivatePartialConfig(opts); - if (!result) return null; - const { - options, - babelrc, - ignore, - config, - fileHandling, - files - } = result; - if (fileHandling === "ignored" && !showIgnoredFiles) { - return null; - } - (options.plugins || []).forEach(item => { - if (item.value instanceof _plugin.default) { - throw new Error("Passing cached plugin instances is not supported in " + "babel.loadPartialConfig()"); - } - }); - return new PartialConfig(options, babelrc ? babelrc.filepath : undefined, ignore ? ignore.filepath : undefined, config ? config.filepath : undefined, fileHandling, files); -}); -exports.loadPartialConfig = loadPartialConfig; -class PartialConfig { - constructor(options, babelrc, ignore, config, fileHandling, files) { - this.options = void 0; - this.babelrc = void 0; - this.babelignore = void 0; - this.config = void 0; - this.fileHandling = void 0; - this.files = void 0; - this.options = options; - this.babelignore = ignore; - this.babelrc = babelrc; - this.config = config; - this.fileHandling = fileHandling; - this.files = files; - Object.freeze(this); - } - hasFilesystemConfig() { - return this.babelrc !== undefined || this.config !== undefined; - } -} -Object.freeze(PartialConfig.prototype); -0 && 0; - -//# sourceMappingURL=partial.js.map - - -/***/ }), - -/***/ 63932: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = pathToPattern; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -const sep = `\\${_path().sep}`; -const endSep = `(?:${sep}|$)`; -const substitution = `[^${sep}]+`; -const starPat = `(?:${substitution}${sep})`; -const starPatLast = `(?:${substitution}${endSep})`; -const starStarPat = `${starPat}*?`; -const starStarPatLast = `${starPat}*?${starPatLast}?`; -function escapeRegExp(string) { - return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"); -} -function pathToPattern(pattern, dirname) { - const parts = _path().resolve(dirname, pattern).split(_path().sep); - return new RegExp(["^", ...parts.map((part, i) => { - const last = i === parts.length - 1; - if (part === "**") return last ? starStarPatLast : starStarPat; - if (part === "*") return last ? starPatLast : starPat; - if (part.indexOf("*.") === 0) { - return substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep); - } - return escapeRegExp(part) + (last ? endSep : sep); - })].join("")); -} -0 && 0; - -//# sourceMappingURL=pattern-to-regex.js.map - - -/***/ }), - -/***/ 29949: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _deepArray = __nccwpck_require__(18597); -class Plugin { - constructor(plugin, options, key, externalDependencies = (0, _deepArray.finalize)([])) { - this.key = void 0; - this.manipulateOptions = void 0; - this.post = void 0; - this.pre = void 0; - this.visitor = void 0; - this.parserOverride = void 0; - this.generatorOverride = void 0; - this.options = void 0; - this.externalDependencies = void 0; - this.key = plugin.name || key; - this.manipulateOptions = plugin.manipulateOptions; - this.post = plugin.post; - this.pre = plugin.pre; - this.visitor = plugin.visitor || {}; - this.parserOverride = plugin.parserOverride; - this.generatorOverride = plugin.generatorOverride; - this.options = options; - this.externalDependencies = externalDependencies; - } -} -exports["default"] = Plugin; -0 && 0; - -//# sourceMappingURL=plugin.js.map - - -/***/ }), - -/***/ 9418: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ConfigPrinter = exports.ChainFormatter = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -const ChainFormatter = { - Programmatic: 0, - Config: 1 -}; -exports.ChainFormatter = ChainFormatter; -const Formatter = { - title(type, callerName, filepath) { - let title = ""; - if (type === ChainFormatter.Programmatic) { - title = "programmatic options"; - if (callerName) { - title += " from " + callerName; - } - } else { - title = "config " + filepath; - } - return title; - }, - loc(index, envName) { - let loc = ""; - if (index != null) { - loc += `.overrides[${index}]`; - } - if (envName != null) { - loc += `.env["${envName}"]`; - } - return loc; - }, - *optionsAndDescriptors(opt) { - const content = Object.assign({}, opt.options); - delete content.overrides; - delete content.env; - const pluginDescriptors = [...(yield* opt.plugins())]; - if (pluginDescriptors.length) { - content.plugins = pluginDescriptors.map(d => descriptorToConfig(d)); - } - const presetDescriptors = [...(yield* opt.presets())]; - if (presetDescriptors.length) { - content.presets = [...presetDescriptors].map(d => descriptorToConfig(d)); - } - return JSON.stringify(content, undefined, 2); - } -}; -function descriptorToConfig(d) { - var _d$file; - let name = (_d$file = d.file) == null ? void 0 : _d$file.request; - if (name == null) { - if (typeof d.value === "object") { - name = d.value; - } else if (typeof d.value === "function") { - name = `[Function: ${d.value.toString().slice(0, 50)} ... ]`; - } - } - if (name == null) { - name = "[Unknown]"; - } - if (d.options === undefined) { - return name; - } else if (d.name == null) { - return [name, d.options]; - } else { - return [name, d.options, d.name]; - } -} -class ConfigPrinter { - constructor() { - this._stack = []; - } - configure(enabled, type, { - callerName, - filepath - }) { - if (!enabled) return () => {}; - return (content, index, envName) => { - this._stack.push({ - type, - callerName, - filepath, - content, - index, - envName - }); - }; - } - static *format(config) { - let title = Formatter.title(config.type, config.callerName, config.filepath); - const loc = Formatter.loc(config.index, config.envName); - if (loc) title += ` ${loc}`; - const content = yield* Formatter.optionsAndDescriptors(config.content); - return `${title}\n${content}`; - } - *output() { - if (this._stack.length === 0) return ""; - const configs = yield* _gensync().all(this._stack.map(s => ConfigPrinter.format(s))); - return configs.join("\n\n"); - } -} -exports.ConfigPrinter = ConfigPrinter; -0 && 0; - -//# sourceMappingURL=printer.js.map - - -/***/ }), - -/***/ 40435: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.resolveBrowserslistConfigFile = resolveBrowserslistConfigFile; -exports.resolveTargets = resolveTargets; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _helperCompilationTargets() { - const data = __nccwpck_require__(37250); - _helperCompilationTargets = function () { - return data; - }; - return data; -} -({}); -function resolveBrowserslistConfigFile(browserslistConfigFile, configFileDir) { - return _path().resolve(configFileDir, browserslistConfigFile); -} -function resolveTargets(options, root) { - const optTargets = options.targets; - let targets; - if (typeof optTargets === "string" || Array.isArray(optTargets)) { - targets = { - browsers: optTargets - }; - } else if (optTargets) { - if ("esmodules" in optTargets) { - targets = Object.assign({}, optTargets, { - esmodules: "intersect" - }); - } else { - targets = optTargets; - } - } - const { - browserslistConfigFile - } = options; - let configFile; - let ignoreBrowserslistConfig = false; - if (typeof browserslistConfigFile === "string") { - configFile = browserslistConfigFile; - } else { - ignoreBrowserslistConfig = browserslistConfigFile === false; - } - return (0, _helperCompilationTargets().default)(targets, { - ignoreBrowserslistConfig, - configFile, - configPath: root, - browserslistEnv: options.browserslistEnv - }); -} -0 && 0; - -//# sourceMappingURL=resolve-targets.js.map - - -/***/ }), - -/***/ 33215: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.isIterableIterator = isIterableIterator; -exports.mergeOptions = mergeOptions; -function mergeOptions(target, source) { - for (const k of Object.keys(source)) { - if ((k === "parserOpts" || k === "generatorOpts" || k === "assumptions") && source[k]) { - const parserOpts = source[k]; - const targetObj = target[k] || (target[k] = {}); - mergeDefaultFields(targetObj, parserOpts); - } else { - const val = source[k]; - if (val !== undefined) target[k] = val; - } - } -} -function mergeDefaultFields(target, source) { - for (const k of Object.keys(source)) { - const val = source[k]; - if (val !== undefined) target[k] = val; - } -} -function isIterableIterator(value) { - return !!value && typeof value.next === "function" && typeof value[Symbol.iterator] === "function"; -} -0 && 0; - -//# sourceMappingURL=util.js.map - - -/***/ }), - -/***/ 21878: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.access = access; -exports.assertArray = assertArray; -exports.assertAssumptions = assertAssumptions; -exports.assertBabelrcSearch = assertBabelrcSearch; -exports.assertBoolean = assertBoolean; -exports.assertCallerMetadata = assertCallerMetadata; -exports.assertCompact = assertCompact; -exports.assertConfigApplicableTest = assertConfigApplicableTest; -exports.assertConfigFileSearch = assertConfigFileSearch; -exports.assertFunction = assertFunction; -exports.assertIgnoreList = assertIgnoreList; -exports.assertInputSourceMap = assertInputSourceMap; -exports.assertObject = assertObject; -exports.assertPluginList = assertPluginList; -exports.assertRootMode = assertRootMode; -exports.assertSourceMaps = assertSourceMaps; -exports.assertSourceType = assertSourceType; -exports.assertString = assertString; -exports.assertTargets = assertTargets; -exports.msg = msg; -function _helperCompilationTargets() { - const data = __nccwpck_require__(37250); - _helperCompilationTargets = function () { - return data; - }; - return data; -} -var _options = __nccwpck_require__(42241); -function msg(loc) { - switch (loc.type) { - case "root": - return ``; - case "env": - return `${msg(loc.parent)}.env["${loc.name}"]`; - case "overrides": - return `${msg(loc.parent)}.overrides[${loc.index}]`; - case "option": - return `${msg(loc.parent)}.${loc.name}`; - case "access": - return `${msg(loc.parent)}[${JSON.stringify(loc.name)}]`; - default: - throw new Error(`Assertion failure: Unknown type ${loc.type}`); - } -} -function access(loc, name) { - return { - type: "access", - name, - parent: loc - }; -} -function assertRootMode(loc, value) { - if (value !== undefined && value !== "root" && value !== "upward" && value !== "upward-optional") { - throw new Error(`${msg(loc)} must be a "root", "upward", "upward-optional" or undefined`); - } - return value; -} -function assertSourceMaps(loc, value) { - if (value !== undefined && typeof value !== "boolean" && value !== "inline" && value !== "both") { - throw new Error(`${msg(loc)} must be a boolean, "inline", "both", or undefined`); - } - return value; -} -function assertCompact(loc, value) { - if (value !== undefined && typeof value !== "boolean" && value !== "auto") { - throw new Error(`${msg(loc)} must be a boolean, "auto", or undefined`); - } - return value; -} -function assertSourceType(loc, value) { - if (value !== undefined && value !== "module" && value !== "script" && value !== "unambiguous") { - throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`); - } - return value; -} -function assertCallerMetadata(loc, value) { - const obj = assertObject(loc, value); - if (obj) { - if (typeof obj.name !== "string") { - throw new Error(`${msg(loc)} set but does not contain "name" property string`); - } - for (const prop of Object.keys(obj)) { - const propLoc = access(loc, prop); - const value = obj[prop]; - if (value != null && typeof value !== "boolean" && typeof value !== "string" && typeof value !== "number") { - throw new Error(`${msg(propLoc)} must be null, undefined, a boolean, a string, or a number.`); - } - } - } - return value; -} -function assertInputSourceMap(loc, value) { - if (value !== undefined && typeof value !== "boolean" && (typeof value !== "object" || !value)) { - throw new Error(`${msg(loc)} must be a boolean, object, or undefined`); - } - return value; -} -function assertString(loc, value) { - if (value !== undefined && typeof value !== "string") { - throw new Error(`${msg(loc)} must be a string, or undefined`); - } - return value; -} -function assertFunction(loc, value) { - if (value !== undefined && typeof value !== "function") { - throw new Error(`${msg(loc)} must be a function, or undefined`); - } - return value; -} -function assertBoolean(loc, value) { - if (value !== undefined && typeof value !== "boolean") { - throw new Error(`${msg(loc)} must be a boolean, or undefined`); - } - return value; -} -function assertObject(loc, value) { - if (value !== undefined && (typeof value !== "object" || Array.isArray(value) || !value)) { - throw new Error(`${msg(loc)} must be an object, or undefined`); - } - return value; -} -function assertArray(loc, value) { - if (value != null && !Array.isArray(value)) { - throw new Error(`${msg(loc)} must be an array, or undefined`); - } - return value; -} -function assertIgnoreList(loc, value) { - const arr = assertArray(loc, value); - if (arr) { - arr.forEach((item, i) => assertIgnoreItem(access(loc, i), item)); - } - return arr; -} -function assertIgnoreItem(loc, value) { - if (typeof value !== "string" && typeof value !== "function" && !(value instanceof RegExp)) { - throw new Error(`${msg(loc)} must be an array of string/Function/RegExp values, or undefined`); - } - return value; -} -function assertConfigApplicableTest(loc, value) { - if (value === undefined) { - return value; - } - if (Array.isArray(value)) { - value.forEach((item, i) => { - if (!checkValidTest(item)) { - throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`); - } - }); - } else if (!checkValidTest(value)) { - throw new Error(`${msg(loc)} must be a string/Function/RegExp, or an array of those`); - } - return value; -} -function checkValidTest(value) { - return typeof value === "string" || typeof value === "function" || value instanceof RegExp; -} -function assertConfigFileSearch(loc, value) { - if (value !== undefined && typeof value !== "boolean" && typeof value !== "string") { - throw new Error(`${msg(loc)} must be a undefined, a boolean, a string, ` + `got ${JSON.stringify(value)}`); - } - return value; -} -function assertBabelrcSearch(loc, value) { - if (value === undefined || typeof value === "boolean") { - return value; - } - if (Array.isArray(value)) { - value.forEach((item, i) => { - if (!checkValidTest(item)) { - throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`); - } - }); - } else if (!checkValidTest(value)) { - throw new Error(`${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp ` + `or an array of those, got ${JSON.stringify(value)}`); - } - return value; -} -function assertPluginList(loc, value) { - const arr = assertArray(loc, value); - if (arr) { - arr.forEach((item, i) => assertPluginItem(access(loc, i), item)); - } - return arr; -} -function assertPluginItem(loc, value) { - if (Array.isArray(value)) { - if (value.length === 0) { - throw new Error(`${msg(loc)} must include an object`); - } - if (value.length > 3) { - throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`); - } - assertPluginTarget(access(loc, 0), value[0]); - if (value.length > 1) { - const opts = value[1]; - if (opts !== undefined && opts !== false && (typeof opts !== "object" || Array.isArray(opts) || opts === null)) { - throw new Error(`${msg(access(loc, 1))} must be an object, false, or undefined`); - } - } - if (value.length === 3) { - const name = value[2]; - if (name !== undefined && typeof name !== "string") { - throw new Error(`${msg(access(loc, 2))} must be a string, or undefined`); - } - } - } else { - assertPluginTarget(loc, value); - } - return value; -} -function assertPluginTarget(loc, value) { - if ((typeof value !== "object" || !value) && typeof value !== "string" && typeof value !== "function") { - throw new Error(`${msg(loc)} must be a string, object, function`); - } - return value; -} -function assertTargets(loc, value) { - if ((0, _helperCompilationTargets().isBrowsersQueryValid)(value)) return value; - if (typeof value !== "object" || !value || Array.isArray(value)) { - throw new Error(`${msg(loc)} must be a string, an array of strings or an object`); - } - const browsersLoc = access(loc, "browsers"); - const esmodulesLoc = access(loc, "esmodules"); - assertBrowsersList(browsersLoc, value.browsers); - assertBoolean(esmodulesLoc, value.esmodules); - for (const key of Object.keys(value)) { - const val = value[key]; - const subLoc = access(loc, key); - if (key === "esmodules") assertBoolean(subLoc, val);else if (key === "browsers") assertBrowsersList(subLoc, val);else if (!Object.hasOwnProperty.call(_helperCompilationTargets().TargetNames, key)) { - const validTargets = Object.keys(_helperCompilationTargets().TargetNames).join(", "); - throw new Error(`${msg(subLoc)} is not a valid target. Supported targets are ${validTargets}`); - } else assertBrowserVersion(subLoc, val); - } - return value; -} -function assertBrowsersList(loc, value) { - if (value !== undefined && !(0, _helperCompilationTargets().isBrowsersQueryValid)(value)) { - throw new Error(`${msg(loc)} must be undefined, a string or an array of strings`); - } -} -function assertBrowserVersion(loc, value) { - if (typeof value === "number" && Math.round(value) === value) return; - if (typeof value === "string") return; - throw new Error(`${msg(loc)} must be a string or an integer number`); -} -function assertAssumptions(loc, value) { - if (value === undefined) return; - if (typeof value !== "object" || value === null) { - throw new Error(`${msg(loc)} must be an object or undefined.`); - } - let root = loc; - do { - root = root.parent; - } while (root.type !== "root"); - const inPreset = root.source === "preset"; - for (const name of Object.keys(value)) { - const subLoc = access(loc, name); - if (!_options.assumptionsNames.has(name)) { - throw new Error(`${msg(subLoc)} is not a supported assumption.`); - } - if (typeof value[name] !== "boolean") { - throw new Error(`${msg(subLoc)} must be a boolean.`); - } - if (inPreset && value[name] === false) { - throw new Error(`${msg(subLoc)} cannot be set to 'false' inside presets.`); - } - } - return value; -} -0 && 0; - -//# sourceMappingURL=option-assertions.js.map - - -/***/ }), - -/***/ 42241: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.assumptionsNames = void 0; -exports.checkNoUnwrappedItemOptionPairs = checkNoUnwrappedItemOptionPairs; -exports.validate = validate; -var _removed = __nccwpck_require__(13373); -var _optionAssertions = __nccwpck_require__(21878); -var _configError = __nccwpck_require__(31344); -const ROOT_VALIDATORS = { - cwd: _optionAssertions.assertString, - root: _optionAssertions.assertString, - rootMode: _optionAssertions.assertRootMode, - configFile: _optionAssertions.assertConfigFileSearch, - caller: _optionAssertions.assertCallerMetadata, - filename: _optionAssertions.assertString, - filenameRelative: _optionAssertions.assertString, - code: _optionAssertions.assertBoolean, - ast: _optionAssertions.assertBoolean, - cloneInputAst: _optionAssertions.assertBoolean, - envName: _optionAssertions.assertString -}; -const BABELRC_VALIDATORS = { - babelrc: _optionAssertions.assertBoolean, - babelrcRoots: _optionAssertions.assertBabelrcSearch -}; -const NONPRESET_VALIDATORS = { - extends: _optionAssertions.assertString, - ignore: _optionAssertions.assertIgnoreList, - only: _optionAssertions.assertIgnoreList, - targets: _optionAssertions.assertTargets, - browserslistConfigFile: _optionAssertions.assertConfigFileSearch, - browserslistEnv: _optionAssertions.assertString -}; -const COMMON_VALIDATORS = { - inputSourceMap: _optionAssertions.assertInputSourceMap, - presets: _optionAssertions.assertPluginList, - plugins: _optionAssertions.assertPluginList, - passPerPreset: _optionAssertions.assertBoolean, - assumptions: _optionAssertions.assertAssumptions, - env: assertEnvSet, - overrides: assertOverridesList, - test: _optionAssertions.assertConfigApplicableTest, - include: _optionAssertions.assertConfigApplicableTest, - exclude: _optionAssertions.assertConfigApplicableTest, - retainLines: _optionAssertions.assertBoolean, - comments: _optionAssertions.assertBoolean, - shouldPrintComment: _optionAssertions.assertFunction, - compact: _optionAssertions.assertCompact, - minified: _optionAssertions.assertBoolean, - auxiliaryCommentBefore: _optionAssertions.assertString, - auxiliaryCommentAfter: _optionAssertions.assertString, - sourceType: _optionAssertions.assertSourceType, - wrapPluginVisitorMethod: _optionAssertions.assertFunction, - highlightCode: _optionAssertions.assertBoolean, - sourceMaps: _optionAssertions.assertSourceMaps, - sourceMap: _optionAssertions.assertSourceMaps, - sourceFileName: _optionAssertions.assertString, - sourceRoot: _optionAssertions.assertString, - parserOpts: _optionAssertions.assertObject, - generatorOpts: _optionAssertions.assertObject -}; -{ - Object.assign(COMMON_VALIDATORS, { - getModuleId: _optionAssertions.assertFunction, - moduleRoot: _optionAssertions.assertString, - moduleIds: _optionAssertions.assertBoolean, - moduleId: _optionAssertions.assertString - }); -} -const knownAssumptions = ["arrayLikeIsIterable", "constantReexports", "constantSuper", "enumerableModuleMeta", "ignoreFunctionLength", "ignoreToPrimitiveHint", "iterableIsArray", "mutableTemplateObject", "noClassCalls", "noDocumentAll", "noIncompleteNsImportDetection", "noNewArrows", "objectRestNoSymbols", "privateFieldsAsSymbols", "privateFieldsAsProperties", "pureGetters", "setClassMethods", "setComputedProperties", "setPublicClassFields", "setSpreadProperties", "skipForOfIteratorClosing", "superIsCallableConstructor"]; -const assumptionsNames = new Set(knownAssumptions); -exports.assumptionsNames = assumptionsNames; -function getSource(loc) { - return loc.type === "root" ? loc.source : getSource(loc.parent); -} -function validate(type, opts, filename) { - try { - return validateNested({ - type: "root", - source: type - }, opts); - } catch (error) { - const configError = new _configError.default(error.message, filename); - if (error.code) configError.code = error.code; - throw configError; - } -} -function validateNested(loc, opts) { - const type = getSource(loc); - assertNoDuplicateSourcemap(opts); - Object.keys(opts).forEach(key => { - const optLoc = { - type: "option", - name: key, - parent: loc - }; - if (type === "preset" && NONPRESET_VALIDATORS[key]) { - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in preset options`); - } - if (type !== "arguments" && ROOT_VALIDATORS[key]) { - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options`); - } - if (type !== "arguments" && type !== "configfile" && BABELRC_VALIDATORS[key]) { - if (type === "babelrcfile" || type === "extendsfile") { - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, ` + `or babel.config.js/config file options`); - } - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options, or babel.config.js/config file options`); - } - const validator = COMMON_VALIDATORS[key] || NONPRESET_VALIDATORS[key] || BABELRC_VALIDATORS[key] || ROOT_VALIDATORS[key] || throwUnknownError; - validator(optLoc, opts[key]); - }); - return opts; -} -function throwUnknownError(loc) { - const key = loc.name; - if (_removed.default[key]) { - const { - message, - version = 5 - } = _removed.default[key]; - throw new Error(`Using removed Babel ${version} option: ${(0, _optionAssertions.msg)(loc)} - ${message}`); - } else { - const unknownOptErr = new Error(`Unknown option: ${(0, _optionAssertions.msg)(loc)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`); - unknownOptErr.code = "BABEL_UNKNOWN_OPTION"; - throw unknownOptErr; - } -} -function has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -} -function assertNoDuplicateSourcemap(opts) { - if (has(opts, "sourceMap") && has(opts, "sourceMaps")) { - throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both"); - } -} -function assertEnvSet(loc, value) { - if (loc.parent.type === "env") { - throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside of another .env block`); - } - const parent = loc.parent; - const obj = (0, _optionAssertions.assertObject)(loc, value); - if (obj) { - for (const envName of Object.keys(obj)) { - const env = (0, _optionAssertions.assertObject)((0, _optionAssertions.access)(loc, envName), obj[envName]); - if (!env) continue; - const envLoc = { - type: "env", - name: envName, - parent - }; - validateNested(envLoc, env); - } - } - return obj; -} -function assertOverridesList(loc, value) { - if (loc.parent.type === "env") { - throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .env block`); - } - if (loc.parent.type === "overrides") { - throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .overrides block`); - } - const parent = loc.parent; - const arr = (0, _optionAssertions.assertArray)(loc, value); - if (arr) { - for (const [index, item] of arr.entries()) { - const objLoc = (0, _optionAssertions.access)(loc, index); - const env = (0, _optionAssertions.assertObject)(objLoc, item); - if (!env) throw new Error(`${(0, _optionAssertions.msg)(objLoc)} must be an object`); - const overridesLoc = { - type: "overrides", - index, - parent - }; - validateNested(overridesLoc, env); - } - } - return arr; -} -function checkNoUnwrappedItemOptionPairs(items, index, type, e) { - if (index === 0) return; - const lastItem = items[index - 1]; - const thisItem = items[index]; - if (lastItem.file && lastItem.options === undefined && typeof thisItem.value === "object") { - e.message += `\n- Maybe you meant to use\n` + `"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(thisItem.value, undefined, 2)}]\n]\n` + `To be a valid ${type}, its name and options should be wrapped in a pair of brackets`; - } -} -0 && 0; - -//# sourceMappingURL=options.js.map - - -/***/ }), - -/***/ 94970: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.validatePluginObject = validatePluginObject; -var _optionAssertions = __nccwpck_require__(21878); -const VALIDATORS = { - name: _optionAssertions.assertString, - manipulateOptions: _optionAssertions.assertFunction, - pre: _optionAssertions.assertFunction, - post: _optionAssertions.assertFunction, - inherits: _optionAssertions.assertFunction, - visitor: assertVisitorMap, - parserOverride: _optionAssertions.assertFunction, - generatorOverride: _optionAssertions.assertFunction -}; -function assertVisitorMap(loc, value) { - const obj = (0, _optionAssertions.assertObject)(loc, value); - if (obj) { - Object.keys(obj).forEach(prop => assertVisitorHandler(prop, obj[prop])); - if (obj.enter || obj.exit) { - throw new Error(`${(0, _optionAssertions.msg)(loc)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`); - } - } - return obj; -} -function assertVisitorHandler(key, value) { - if (value && typeof value === "object") { - Object.keys(value).forEach(handler => { - if (handler !== "enter" && handler !== "exit") { - throw new Error(`.visitor["${key}"] may only have .enter and/or .exit handlers.`); - } - }); - } else if (typeof value !== "function") { - throw new Error(`.visitor["${key}"] must be a function`); - } - return value; -} -function validatePluginObject(obj) { - const rootPath = { - type: "root", - source: "plugin" - }; - Object.keys(obj).forEach(key => { - const validator = VALIDATORS[key]; - if (validator) { - const optLoc = { - type: "option", - name: key, - parent: rootPath - }; - validator(optLoc, obj[key]); - } else { - const invalidPluginPropertyError = new Error(`.${key} is not a valid Plugin property`); - invalidPluginPropertyError.code = "BABEL_UNKNOWN_PLUGIN_PROPERTY"; - throw invalidPluginPropertyError; - } - }); - return obj; -} -0 && 0; - -//# sourceMappingURL=plugins.js.map - - -/***/ }), - -/***/ 13373: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _default = { - auxiliaryComment: { - message: "Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`" - }, - blacklist: { - message: "Put the specific transforms you want in the `plugins` option" - }, - breakConfig: { - message: "This is not a necessary option in Babel 6" - }, - experimental: { - message: "Put the specific transforms you want in the `plugins` option" - }, - externalHelpers: { - message: "Use the `external-helpers` plugin instead. " + "Check out http://babeljs.io/docs/plugins/external-helpers/" - }, - extra: { - message: "" - }, - jsxPragma: { - message: "use the `pragma` option in the `react-jsx` plugin. " + "Check out http://babeljs.io/docs/plugins/transform-react-jsx/" - }, - loose: { - message: "Specify the `loose` option for the relevant plugin you are using " + "or use a preset that sets the option." - }, - metadataUsedHelpers: { - message: "Not required anymore as this is enabled by default" - }, - modules: { - message: "Use the corresponding module transform plugin in the `plugins` option. " + "Check out http://babeljs.io/docs/plugins/#modules" - }, - nonStandard: { - message: "Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. " + "Also check out the react preset http://babeljs.io/docs/plugins/preset-react/" - }, - optional: { - message: "Put the specific transforms you want in the `plugins` option" - }, - sourceMapName: { - message: "The `sourceMapName` option has been removed because it makes more sense for the " + "tooling that calls Babel to assign `map.file` themselves." - }, - stage: { - message: "Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets" - }, - whitelist: { - message: "Put the specific transforms you want in the `plugins` option" - }, - resolveModuleSource: { - version: 6, - message: "Use `babel-plugin-module-resolver@3`'s 'resolvePath' options" - }, - metadata: { - version: 6, - message: "Generated plugin metadata is always included in the output result" - }, - sourceMapTarget: { - version: 6, - message: "The `sourceMapTarget` option has been removed because it makes more sense for the tooling " + "that calls Babel to assign `map.file` themselves." - } -}; -exports["default"] = _default; -0 && 0; - -//# sourceMappingURL=removed.js.map - - -/***/ }), - -/***/ 31344: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _rewriteStackTrace = __nccwpck_require__(69349); -class ConfigError extends Error { - constructor(message, filename) { - super(message); - (0, _rewriteStackTrace.expectedError)(this); - if (filename) (0, _rewriteStackTrace.injectVirtualStackFrame)(this, filename); - } -} -exports["default"] = ConfigError; -0 && 0; - -//# sourceMappingURL=config-error.js.map - - -/***/ }), - -/***/ 69349: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.beginHiddenCallStack = beginHiddenCallStack; -exports.endHiddenCallStack = endHiddenCallStack; -exports.expectedError = expectedError; -exports.injectVirtualStackFrame = injectVirtualStackFrame; -const ErrorToString = Function.call.bind(Error.prototype.toString); -const SUPPORTED = !!Error.captureStackTrace; -const START_HIDING = "startHiding - secret - don't use this - v1"; -const STOP_HIDING = "stopHiding - secret - don't use this - v1"; -const expectedErrors = new WeakSet(); -const virtualFrames = new WeakMap(); -function CallSite(filename) { - return Object.create({ - isNative: () => false, - isConstructor: () => false, - isToplevel: () => true, - getFileName: () => filename, - getLineNumber: () => undefined, - getColumnNumber: () => undefined, - getFunctionName: () => undefined, - getMethodName: () => undefined, - getTypeName: () => undefined, - toString: () => filename - }); -} -function injectVirtualStackFrame(error, filename) { - if (!SUPPORTED) return; - let frames = virtualFrames.get(error); - if (!frames) virtualFrames.set(error, frames = []); - frames.push(CallSite(filename)); - return error; -} -function expectedError(error) { - if (!SUPPORTED) return; - expectedErrors.add(error); - return error; -} -function beginHiddenCallStack(fn) { - if (!SUPPORTED) return fn; - return Object.defineProperty(function (...args) { - setupPrepareStackTrace(); - return fn(...args); - }, "name", { - value: STOP_HIDING - }); -} -function endHiddenCallStack(fn) { - if (!SUPPORTED) return fn; - return Object.defineProperty(function (...args) { - return fn(...args); - }, "name", { - value: START_HIDING - }); -} -function setupPrepareStackTrace() { - setupPrepareStackTrace = () => {}; - const { - prepareStackTrace = defaultPrepareStackTrace - } = Error; - const MIN_STACK_TRACE_LIMIT = 50; - Error.stackTraceLimit && (Error.stackTraceLimit = Math.max(Error.stackTraceLimit, MIN_STACK_TRACE_LIMIT)); - Error.prepareStackTrace = function stackTraceRewriter(err, trace) { - let newTrace = []; - const isExpected = expectedErrors.has(err); - let status = isExpected ? "hiding" : "unknown"; - for (let i = 0; i < trace.length; i++) { - const name = trace[i].getFunctionName(); - if (name === START_HIDING) { - status = "hiding"; - } else if (name === STOP_HIDING) { - if (status === "hiding") { - status = "showing"; - if (virtualFrames.has(err)) { - newTrace.unshift(...virtualFrames.get(err)); - } - } else if (status === "unknown") { - newTrace = trace; - break; - } - } else if (status !== "hiding") { - newTrace.push(trace[i]); - } - } - return prepareStackTrace(err, newTrace); - }; -} -function defaultPrepareStackTrace(err, trace) { - if (trace.length === 0) return ErrorToString(err); - return `${ErrorToString(err)}\n at ${trace.join("\n at ")}`; -} -0 && 0; - -//# sourceMappingURL=rewrite-stack-trace.js.map - - -/***/ }), - -/***/ 10202: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.forwardAsync = forwardAsync; -exports.isAsync = void 0; -exports.isThenable = isThenable; -exports.maybeAsync = maybeAsync; -exports.waitFor = exports.onFirstPause = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -const runGenerator = _gensync()(function* (item) { - return yield* item; -}); -const isAsync = _gensync()({ - sync: () => false, - errback: cb => cb(null, true) -}); -exports.isAsync = isAsync; -function maybeAsync(fn, message) { - return _gensync()({ - sync(...args) { - const result = fn.apply(this, args); - if (isThenable(result)) throw new Error(message); - return result; - }, - async(...args) { - return Promise.resolve(fn.apply(this, args)); - } - }); -} -const withKind = _gensync()({ - sync: cb => cb("sync"), - async: function () { - var _ref = _asyncToGenerator(function* (cb) { - return cb("async"); - }); - return function async(_x) { - return _ref.apply(this, arguments); - }; - }() -}); -function forwardAsync(action, cb) { - const g = _gensync()(action); - return withKind(kind => { - const adapted = g[kind]; - return cb(adapted); - }); -} -const onFirstPause = _gensync()({ - name: "onFirstPause", - arity: 2, - sync: function (item) { - return runGenerator.sync(item); - }, - errback: function (item, firstPause, cb) { - let completed = false; - runGenerator.errback(item, (err, value) => { - completed = true; - cb(err, value); - }); - if (!completed) { - firstPause(); - } - } -}); -exports.onFirstPause = onFirstPause; -const waitFor = _gensync()({ - sync: x => x, - async: function () { - var _ref2 = _asyncToGenerator(function* (x) { - return x; - }); - return function async(_x2) { - return _ref2.apply(this, arguments); - }; - }() -}); -exports.waitFor = waitFor; -function isThenable(val) { - return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function"; -} -0 && 0; - -//# sourceMappingURL=async.js.map - - -/***/ }), - -/***/ 66904: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.stat = exports.readFile = void 0; -function _fs() { - const data = __nccwpck_require__(57147); - _fs = function () { - return data; - }; - return data; -} -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -const readFile = _gensync()({ - sync: _fs().readFileSync, - errback: _fs().readFile -}); -exports.readFile = readFile; -const stat = _gensync()({ - sync: _fs().statSync, - errback: _fs().stat -}); -exports.stat = stat; -0 && 0; - -//# sourceMappingURL=fs.js.map - - -/***/ }), - -/***/ 9954: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.once = once; -var _async = __nccwpck_require__(10202); -function once(fn) { - let result; - let resultP; - return function* () { - if (result) return result; - if (!(yield* (0, _async.isAsync)())) return result = yield* fn(); - if (resultP) return yield* (0, _async.waitFor)(resultP); - let resolve, reject; - resultP = new Promise((res, rej) => { - resolve = res; - reject = rej; - }); - try { - result = yield* fn(); - resultP = null; - resolve(result); - return result; - } catch (error) { - reject(error); - throw error; - } - }; -} -0 && 0; - -//# sourceMappingURL=functional.js.map - - -/***/ }), - -/***/ 90454: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.DEFAULT_EXTENSIONS = void 0; -Object.defineProperty(exports, "File", ({ - enumerable: true, - get: function () { - return _file.default; - } -})); -exports.OptionManager = void 0; -exports.Plugin = Plugin; -Object.defineProperty(exports, "buildExternalHelpers", ({ - enumerable: true, - get: function () { - return _buildExternalHelpers.default; - } -})); -Object.defineProperty(exports, "createConfigItem", ({ - enumerable: true, - get: function () { - return _config.createConfigItem; - } -})); -Object.defineProperty(exports, "createConfigItemAsync", ({ - enumerable: true, - get: function () { - return _config.createConfigItemAsync; - } -})); -Object.defineProperty(exports, "createConfigItemSync", ({ - enumerable: true, - get: function () { - return _config.createConfigItemSync; - } -})); -Object.defineProperty(exports, "getEnv", ({ - enumerable: true, - get: function () { - return _environment.getEnv; - } -})); -Object.defineProperty(exports, "loadOptions", ({ - enumerable: true, - get: function () { - return _config.loadOptions; - } -})); -Object.defineProperty(exports, "loadOptionsAsync", ({ - enumerable: true, - get: function () { - return _config.loadOptionsAsync; - } -})); -Object.defineProperty(exports, "loadOptionsSync", ({ - enumerable: true, - get: function () { - return _config.loadOptionsSync; - } -})); -Object.defineProperty(exports, "loadPartialConfig", ({ - enumerable: true, - get: function () { - return _config.loadPartialConfig; - } -})); -Object.defineProperty(exports, "loadPartialConfigAsync", ({ - enumerable: true, - get: function () { - return _config.loadPartialConfigAsync; - } -})); -Object.defineProperty(exports, "loadPartialConfigSync", ({ - enumerable: true, - get: function () { - return _config.loadPartialConfigSync; - } -})); -Object.defineProperty(exports, "parse", ({ - enumerable: true, - get: function () { - return _parse.parse; - } -})); -Object.defineProperty(exports, "parseAsync", ({ - enumerable: true, - get: function () { - return _parse.parseAsync; - } -})); -Object.defineProperty(exports, "parseSync", ({ - enumerable: true, - get: function () { - return _parse.parseSync; - } -})); -Object.defineProperty(exports, "resolvePlugin", ({ - enumerable: true, - get: function () { - return _files.resolvePlugin; - } -})); -Object.defineProperty(exports, "resolvePreset", ({ - enumerable: true, - get: function () { - return _files.resolvePreset; - } -})); -Object.defineProperty((0, exports), "template", { - enumerable: true, - get: function () { - return _template().default; - } -}); -Object.defineProperty((0, exports), "tokTypes", { - enumerable: true, - get: function () { - return _parser().tokTypes; - } -}); -Object.defineProperty(exports, "transform", ({ - enumerable: true, - get: function () { - return _transform.transform; - } -})); -Object.defineProperty(exports, "transformAsync", ({ - enumerable: true, - get: function () { - return _transform.transformAsync; - } -})); -Object.defineProperty(exports, "transformFile", ({ - enumerable: true, - get: function () { - return _transformFile.transformFile; - } -})); -Object.defineProperty(exports, "transformFileAsync", ({ - enumerable: true, - get: function () { - return _transformFile.transformFileAsync; - } -})); -Object.defineProperty(exports, "transformFileSync", ({ - enumerable: true, - get: function () { - return _transformFile.transformFileSync; - } -})); -Object.defineProperty(exports, "transformFromAst", ({ - enumerable: true, - get: function () { - return _transformAst.transformFromAst; - } -})); -Object.defineProperty(exports, "transformFromAstAsync", ({ - enumerable: true, - get: function () { - return _transformAst.transformFromAstAsync; - } -})); -Object.defineProperty(exports, "transformFromAstSync", ({ - enumerable: true, - get: function () { - return _transformAst.transformFromAstSync; - } -})); -Object.defineProperty(exports, "transformSync", ({ - enumerable: true, - get: function () { - return _transform.transformSync; - } -})); -Object.defineProperty((0, exports), "traverse", { - enumerable: true, - get: function () { - return _traverse().default; - } -}); -exports.version = exports.types = void 0; -var _file = __nccwpck_require__(5801); -var _buildExternalHelpers = __nccwpck_require__(50009); -var _files = __nccwpck_require__(37541); -var _environment = __nccwpck_require__(87615); -function _types() { - const data = __nccwpck_require__(89316); - _types = function () { - return data; - }; - return data; -} -Object.defineProperty((0, exports), "types", { - enumerable: true, - get: function () { - return _types(); - } -}); -function _parser() { - const data = __nccwpck_require__(66003); - _parser = function () { - return data; - }; - return data; -} -function _traverse() { - const data = __nccwpck_require__(37386); - _traverse = function () { - return data; - }; - return data; -} -function _template() { - const data = __nccwpck_require__(80940); - _template = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(89153); -var _transform = __nccwpck_require__(51043); -var _transformFile = __nccwpck_require__(38889); -var _transformAst = __nccwpck_require__(51794); -var _parse = __nccwpck_require__(66109); -function _module() { - const data = __nccwpck_require__(98188); - _module = function () { - return data; - }; - return data; -} -var thisFile = __nccwpck_require__(90454); -const version = "7.21.0"; -exports.version = version; -const DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); -exports.DEFAULT_EXTENSIONS = DEFAULT_EXTENSIONS; -class OptionManager { - init(opts) { - return (0, _config.loadOptionsSync)(opts); - } -} -exports.OptionManager = OptionManager; -function Plugin(alias) { - throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`); -} -; -0 && (0); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 66109: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.parse = void 0; -exports.parseAsync = parseAsync; -exports.parseSync = parseSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(89153); -var _parser = __nccwpck_require__(92469); -var _normalizeOpts = __nccwpck_require__(19646); -var _rewriteStackTrace = __nccwpck_require__(69349); -const parseRunner = _gensync()(function* parse(code, opts) { - const config = yield* (0, _config.default)(opts); - if (config === null) { - return null; - } - return yield* (0, _parser.default)(config.passes, (0, _normalizeOpts.default)(config), code); -}); -const parse = function parse(code, opts, callback) { - if (typeof opts === "function") { - callback = opts; - opts = undefined; - } - if (callback === undefined) { - { - return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(code, opts); - } - } - (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.errback)(code, opts, callback); -}; -exports.parse = parse; -function parseSync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(...args); -} -function parseAsync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.async)(...args); -} -0 && 0; - -//# sourceMappingURL=parse.js.map - - -/***/ }), - -/***/ 92469: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = parser; -function _parser() { - const data = __nccwpck_require__(66003); - _parser = function () { - return data; - }; - return data; -} -function _codeFrame() { - const data = __nccwpck_require__(92588); - _codeFrame = function () { - return data; - }; - return data; -} -var _missingPluginHelper = __nccwpck_require__(51645); -function* parser(pluginPasses, { - parserOpts, - highlightCode = true, - filename = "unknown" -}, code) { - try { - const results = []; - for (const plugins of pluginPasses) { - for (const plugin of plugins) { - const { - parserOverride - } = plugin; - if (parserOverride) { - const ast = parserOverride(code, parserOpts, _parser().parse); - if (ast !== undefined) results.push(ast); - } - } - } - if (results.length === 0) { - return (0, _parser().parse)(code, parserOpts); - } else if (results.length === 1) { - yield* []; - if (typeof results[0].then === "function") { - throw new Error(`You appear to be using an async parser plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); - } - return results[0]; - } - throw new Error("More than one plugin attempted to override parsing."); - } catch (err) { - if (err.code === "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED") { - err.message += "\nConsider renaming the file to '.mjs', or setting sourceType:module " + "or sourceType:unambiguous in your Babel config for this file."; - } - const { - loc, - missingPlugin - } = err; - if (loc) { - const codeFrame = (0, _codeFrame().codeFrameColumns)(code, { - start: { - line: loc.line, - column: loc.column + 1 - } - }, { - highlightCode - }); - if (missingPlugin) { - err.message = `${filename}: ` + (0, _missingPluginHelper.default)(missingPlugin[0], loc, codeFrame); - } else { - err.message = `${filename}: ${err.message}\n\n` + codeFrame; - } - err.code = "BABEL_PARSE_ERROR"; - } - throw err; - } -} -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 51645: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = generateMissingPluginMessage; -const pluginNameMap = { - asyncDoExpressions: { - syntax: { - name: "@babel/plugin-syntax-async-do-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions" - } - }, - decimal: { - syntax: { - name: "@babel/plugin-syntax-decimal", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal" - } - }, - decorators: { - syntax: { - name: "@babel/plugin-syntax-decorators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators" - }, - transform: { - name: "@babel/plugin-proposal-decorators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators" - } - }, - doExpressions: { - syntax: { - name: "@babel/plugin-syntax-do-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions" - }, - transform: { - name: "@babel/plugin-proposal-do-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions" - } - }, - exportDefaultFrom: { - syntax: { - name: "@babel/plugin-syntax-export-default-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from" - }, - transform: { - name: "@babel/plugin-proposal-export-default-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from" - } - }, - flow: { - syntax: { - name: "@babel/plugin-syntax-flow", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow" - }, - transform: { - name: "@babel/preset-flow", - url: "https://github.com/babel/babel/tree/main/packages/babel-preset-flow" - } - }, - functionBind: { - syntax: { - name: "@babel/plugin-syntax-function-bind", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind" - }, - transform: { - name: "@babel/plugin-proposal-function-bind", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind" - } - }, - functionSent: { - syntax: { - name: "@babel/plugin-syntax-function-sent", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent" - }, - transform: { - name: "@babel/plugin-proposal-function-sent", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent" - } - }, - jsx: { - syntax: { - name: "@babel/plugin-syntax-jsx", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx" - }, - transform: { - name: "@babel/preset-react", - url: "https://github.com/babel/babel/tree/main/packages/babel-preset-react" - } - }, - importAssertions: { - syntax: { - name: "@babel/plugin-syntax-import-assertions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions" - } - }, - pipelineOperator: { - syntax: { - name: "@babel/plugin-syntax-pipeline-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator" - }, - transform: { - name: "@babel/plugin-proposal-pipeline-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator" - } - }, - recordAndTuple: { - syntax: { - name: "@babel/plugin-syntax-record-and-tuple", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple" - } - }, - regexpUnicodeSets: { - syntax: { - name: "@babel/plugin-syntax-unicode-sets-regex", - url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md" - }, - transform: { - name: "@babel/plugin-proposal-unicode-sets-regex", - url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md" - } - }, - throwExpressions: { - syntax: { - name: "@babel/plugin-syntax-throw-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions" - }, - transform: { - name: "@babel/plugin-proposal-throw-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions" - } - }, - typescript: { - syntax: { - name: "@babel/plugin-syntax-typescript", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript" - }, - transform: { - name: "@babel/preset-typescript", - url: "https://github.com/babel/babel/tree/main/packages/babel-preset-typescript" - } - }, - asyncGenerators: { - syntax: { - name: "@babel/plugin-syntax-async-generators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators" - }, - transform: { - name: "@babel/plugin-proposal-async-generator-functions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-async-generator-functions" - } - }, - classProperties: { - syntax: { - name: "@babel/plugin-syntax-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" - }, - transform: { - name: "@babel/plugin-proposal-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-class-properties" - } - }, - classPrivateProperties: { - syntax: { - name: "@babel/plugin-syntax-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" - }, - transform: { - name: "@babel/plugin-proposal-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-class-properties" - } - }, - classPrivateMethods: { - syntax: { - name: "@babel/plugin-syntax-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" - }, - transform: { - name: "@babel/plugin-proposal-private-methods", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-private-methods" - } - }, - classStaticBlock: { - syntax: { - name: "@babel/plugin-syntax-class-static-block", - url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block" - }, - transform: { - name: "@babel/plugin-proposal-class-static-block", - url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-class-static-block" - } - }, - dynamicImport: { - syntax: { - name: "@babel/plugin-syntax-dynamic-import", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import" - } - }, - exportNamespaceFrom: { - syntax: { - name: "@babel/plugin-syntax-export-namespace-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from" - }, - transform: { - name: "@babel/plugin-proposal-export-namespace-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-namespace-from" - } - }, - importMeta: { - syntax: { - name: "@babel/plugin-syntax-import-meta", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta" - } - }, - logicalAssignment: { - syntax: { - name: "@babel/plugin-syntax-logical-assignment-operators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators" - }, - transform: { - name: "@babel/plugin-proposal-logical-assignment-operators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-logical-assignment-operators" - } - }, - moduleStringNames: { - syntax: { - name: "@babel/plugin-syntax-module-string-names", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names" - } - }, - numericSeparator: { - syntax: { - name: "@babel/plugin-syntax-numeric-separator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator" - }, - transform: { - name: "@babel/plugin-proposal-numeric-separator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-numeric-separator" - } - }, - nullishCoalescingOperator: { - syntax: { - name: "@babel/plugin-syntax-nullish-coalescing-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator" - }, - transform: { - name: "@babel/plugin-proposal-nullish-coalescing-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator" - } - }, - objectRestSpread: { - syntax: { - name: "@babel/plugin-syntax-object-rest-spread", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread" - }, - transform: { - name: "@babel/plugin-proposal-object-rest-spread", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-object-rest-spread" - } - }, - optionalCatchBinding: { - syntax: { - name: "@babel/plugin-syntax-optional-catch-binding", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding" - }, - transform: { - name: "@babel/plugin-proposal-optional-catch-binding", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-optional-catch-binding" - } - }, - optionalChaining: { - syntax: { - name: "@babel/plugin-syntax-optional-chaining", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining" - }, - transform: { - name: "@babel/plugin-proposal-optional-chaining", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-optional-chaining" - } - }, - privateIn: { - syntax: { - name: "@babel/plugin-syntax-private-property-in-object", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object" - }, - transform: { - name: "@babel/plugin-proposal-private-property-in-object", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-private-property-in-object" - } - } -}; -pluginNameMap.privateIn.syntax = pluginNameMap.privateIn.transform; -const getNameURLCombination = ({ - name, - url -}) => `${name} (${url})`; -function generateMissingPluginMessage(missingPluginName, loc, codeFrame) { - let helpMessage = `Support for the experimental syntax '${missingPluginName}' isn't currently enabled ` + `(${loc.line}:${loc.column + 1}):\n\n` + codeFrame; - const pluginInfo = pluginNameMap[missingPluginName]; - if (pluginInfo) { - const { - syntax: syntaxPlugin, - transform: transformPlugin - } = pluginInfo; - if (syntaxPlugin) { - const syntaxPluginInfo = getNameURLCombination(syntaxPlugin); - if (transformPlugin) { - const transformPluginInfo = getNameURLCombination(transformPlugin); - const sectionType = transformPlugin.name.startsWith("@babel/plugin") ? "plugins" : "presets"; - helpMessage += `\n\nAdd ${transformPluginInfo} to the '${sectionType}' section of your Babel config to enable transformation. -If you want to leave it as-is, add ${syntaxPluginInfo} to the 'plugins' section to enable parsing.`; - } else { - helpMessage += `\n\nAdd ${syntaxPluginInfo} to the 'plugins' section of your Babel config ` + `to enable parsing.`; - } - } - } - return helpMessage; -} -0 && 0; - -//# sourceMappingURL=missing-plugin-helper.js.map - - -/***/ }), - -/***/ 50009: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -function helpers() { - const data = __nccwpck_require__(87149); - helpers = function () { - return data; - }; - return data; -} -function _generator() { - const data = __nccwpck_require__(84709); - _generator = function () { - return data; - }; - return data; -} -function _template() { - const data = __nccwpck_require__(80940); - _template = function () { - return data; - }; - return data; -} -function _t() { - const data = __nccwpck_require__(89316); - _t = function () { - return data; - }; - return data; -} -var _file = __nccwpck_require__(5801); -const { - arrayExpression, - assignmentExpression, - binaryExpression, - blockStatement, - callExpression, - cloneNode, - conditionalExpression, - exportNamedDeclaration, - exportSpecifier, - expressionStatement, - functionExpression, - identifier, - memberExpression, - objectExpression, - program, - stringLiteral, - unaryExpression, - variableDeclaration, - variableDeclarator -} = _t(); -const buildUmdWrapper = replacements => _template().default.statement` - (function (root, factory) { - if (typeof define === "function" && define.amd) { - define(AMD_ARGUMENTS, factory); - } else if (typeof exports === "object") { - factory(COMMON_ARGUMENTS); - } else { - factory(BROWSER_ARGUMENTS); - } - })(UMD_ROOT, function (FACTORY_PARAMETERS) { - FACTORY_BODY - }); - `(replacements); -function buildGlobal(allowlist) { - const namespace = identifier("babelHelpers"); - const body = []; - const container = functionExpression(null, [identifier("global")], blockStatement(body)); - const tree = program([expressionStatement(callExpression(container, [conditionalExpression(binaryExpression("===", unaryExpression("typeof", identifier("global")), stringLiteral("undefined")), identifier("self"), identifier("global"))]))]); - body.push(variableDeclaration("var", [variableDeclarator(namespace, assignmentExpression("=", memberExpression(identifier("global"), namespace), objectExpression([])))])); - buildHelpers(body, namespace, allowlist); - return tree; -} -function buildModule(allowlist) { - const body = []; - const refs = buildHelpers(body, null, allowlist); - body.unshift(exportNamedDeclaration(null, Object.keys(refs).map(name => { - return exportSpecifier(cloneNode(refs[name]), identifier(name)); - }))); - return program(body, [], "module"); -} -function buildUmd(allowlist) { - const namespace = identifier("babelHelpers"); - const body = []; - body.push(variableDeclaration("var", [variableDeclarator(namespace, identifier("global"))])); - buildHelpers(body, namespace, allowlist); - return program([buildUmdWrapper({ - FACTORY_PARAMETERS: identifier("global"), - BROWSER_ARGUMENTS: assignmentExpression("=", memberExpression(identifier("root"), namespace), objectExpression([])), - COMMON_ARGUMENTS: identifier("exports"), - AMD_ARGUMENTS: arrayExpression([stringLiteral("exports")]), - FACTORY_BODY: body, - UMD_ROOT: identifier("this") - })]); -} -function buildVar(allowlist) { - const namespace = identifier("babelHelpers"); - const body = []; - body.push(variableDeclaration("var", [variableDeclarator(namespace, objectExpression([]))])); - const tree = program(body); - buildHelpers(body, namespace, allowlist); - body.push(expressionStatement(namespace)); - return tree; -} -function buildHelpers(body, namespace, allowlist) { - const getHelperReference = name => { - return namespace ? memberExpression(namespace, identifier(name)) : identifier(`_${name}`); - }; - const refs = {}; - helpers().list.forEach(function (name) { - if (allowlist && allowlist.indexOf(name) < 0) return; - const ref = refs[name] = getHelperReference(name); - helpers().ensure(name, _file.default); - const { - nodes - } = helpers().get(name, getHelperReference, ref); - body.push(...nodes); - }); - return refs; -} -function _default(allowlist, outputType = "global") { - let tree; - const build = { - global: buildGlobal, - module: buildModule, - umd: buildUmd, - var: buildVar - }[outputType]; - if (build) { - tree = build(allowlist); - } else { - throw new Error(`Unsupported output type ${outputType}`); - } - return (0, _generator().default)(tree).code; -} -0 && 0; - -//# sourceMappingURL=build-external-helpers.js.map - - -/***/ }), - -/***/ 51794: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.transformFromAst = void 0; -exports.transformFromAstAsync = transformFromAstAsync; -exports.transformFromAstSync = transformFromAstSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(89153); -var _transformation = __nccwpck_require__(48511); -var _rewriteStackTrace = __nccwpck_require__(69349); -const transformFromAstRunner = _gensync()(function* (ast, code, opts) { - const config = yield* (0, _config.default)(opts); - if (config === null) return null; - if (!ast) throw new Error("No AST given"); - return yield* (0, _transformation.run)(config, code, ast); -}); -const transformFromAst = function transformFromAst(ast, code, optsOrCallback, maybeCallback) { - let opts; - let callback; - if (typeof optsOrCallback === "function") { - callback = optsOrCallback; - opts = undefined; - } else { - opts = optsOrCallback; - callback = maybeCallback; - } - if (callback === undefined) { - { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(ast, code, opts); - } - } - (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.errback)(ast, code, opts, callback); -}; -exports.transformFromAst = transformFromAst; -function transformFromAstSync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(...args); -} -function transformFromAstAsync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.async)(...args); -} -0 && 0; - -//# sourceMappingURL=transform-ast.js.map - - -/***/ }), - -/***/ 38889: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.transformFile = transformFile; -exports.transformFileAsync = transformFileAsync; -exports.transformFileSync = transformFileSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(89153); -var _transformation = __nccwpck_require__(48511); -var fs = __nccwpck_require__(66904); -({}); -const transformFileRunner = _gensync()(function* (filename, opts) { - const options = Object.assign({}, opts, { - filename - }); - const config = yield* (0, _config.default)(options); - if (config === null) return null; - const code = yield* fs.readFile(filename, "utf8"); - return yield* (0, _transformation.run)(config, code); -}); -function transformFile(...args) { - return transformFileRunner.errback(...args); -} -function transformFileSync(...args) { - return transformFileRunner.sync(...args); -} -function transformFileAsync(...args) { - return transformFileRunner.async(...args); -} -0 && 0; - -//# sourceMappingURL=transform-file.js.map - - -/***/ }), - -/***/ 51043: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.transform = void 0; -exports.transformAsync = transformAsync; -exports.transformSync = transformSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(89153); -var _transformation = __nccwpck_require__(48511); -var _rewriteStackTrace = __nccwpck_require__(69349); -const transformRunner = _gensync()(function* transform(code, opts) { - const config = yield* (0, _config.default)(opts); - if (config === null) return null; - return yield* (0, _transformation.run)(config, code); -}); -const transform = function transform(code, optsOrCallback, maybeCallback) { - let opts; - let callback; - if (typeof optsOrCallback === "function") { - callback = optsOrCallback; - opts = undefined; - } else { - opts = optsOrCallback; - callback = maybeCallback; - } - if (callback === undefined) { - { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code, opts); - } - } - (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.errback)(code, opts, callback); -}; -exports.transform = transform; -function transformSync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(...args); -} -function transformAsync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.async)(...args); -} -0 && 0; - -//# sourceMappingURL=transform.js.map - - -/***/ }), - -/***/ 36784: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = loadBlockHoistPlugin; -function _traverse() { - const data = __nccwpck_require__(37386); - _traverse = function () { - return data; - }; - return data; -} -var _plugin = __nccwpck_require__(29949); -let LOADED_PLUGIN; -const blockHoistPlugin = { - name: "internal.blockHoist", - visitor: { - Block: { - exit({ - node - }) { - const { - body - } = node; - let max = Math.pow(2, 30) - 1; - let hasChange = false; - for (let i = 0; i < body.length; i++) { - const n = body[i]; - const p = priority(n); - if (p > max) { - hasChange = true; - break; - } - max = p; - } - if (!hasChange) return; - node.body = stableSort(body.slice()); - } - } - } -}; -function loadBlockHoistPlugin() { - if (!LOADED_PLUGIN) { - LOADED_PLUGIN = new _plugin.default(Object.assign({}, blockHoistPlugin, { - visitor: _traverse().default.explode(blockHoistPlugin.visitor) - }), {}); - } - return LOADED_PLUGIN; -} -function priority(bodyNode) { - const priority = bodyNode == null ? void 0 : bodyNode._blockHoist; - if (priority == null) return 1; - if (priority === true) return 2; - return priority; -} -function stableSort(body) { - const buckets = Object.create(null); - for (let i = 0; i < body.length; i++) { - const n = body[i]; - const p = priority(n); - const bucket = buckets[p] || (buckets[p] = []); - bucket.push(n); - } - const keys = Object.keys(buckets).map(k => +k).sort((a, b) => b - a); - let index = 0; - for (const key of keys) { - const bucket = buckets[key]; - for (const n of bucket) { - body[index++] = n; - } - } - return body; -} -0 && 0; - -//# sourceMappingURL=block-hoist-plugin.js.map - - -/***/ }), - -/***/ 5801: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -function helpers() { - const data = __nccwpck_require__(87149); - helpers = function () { - return data; - }; - return data; -} -function _traverse() { - const data = __nccwpck_require__(37386); - _traverse = function () { - return data; - }; - return data; -} -function _codeFrame() { - const data = __nccwpck_require__(92588); - _codeFrame = function () { - return data; - }; - return data; -} -function _t() { - const data = __nccwpck_require__(89316); - _t = function () { - return data; - }; - return data; -} -function _helperModuleTransforms() { - const data = __nccwpck_require__(24091); - _helperModuleTransforms = function () { - return data; - }; - return data; -} -function _semver() { - const data = __nccwpck_require__(8999); - _semver = function () { - return data; - }; - return data; -} -const { - cloneNode, - interpreterDirective -} = _t(); -const errorVisitor = { - enter(path, state) { - const loc = path.node.loc; - if (loc) { - state.loc = loc; - path.stop(); - } - } -}; -class File { - constructor(options, { - code, - ast, - inputMap - }) { - this._map = new Map(); - this.opts = void 0; - this.declarations = {}; - this.path = void 0; - this.ast = void 0; - this.scope = void 0; - this.metadata = {}; - this.code = ""; - this.inputMap = void 0; - this.hub = { - file: this, - getCode: () => this.code, - getScope: () => this.scope, - addHelper: this.addHelper.bind(this), - buildError: this.buildCodeFrameError.bind(this) - }; - this.opts = options; - this.code = code; - this.ast = ast; - this.inputMap = inputMap; - this.path = _traverse().NodePath.get({ - hub: this.hub, - parentPath: null, - parent: this.ast, - container: this.ast, - key: "program" - }).setContext(); - this.scope = this.path.scope; - } - get shebang() { - const { - interpreter - } = this.path.node; - return interpreter ? interpreter.value : ""; - } - set shebang(value) { - if (value) { - this.path.get("interpreter").replaceWith(interpreterDirective(value)); - } else { - this.path.get("interpreter").remove(); - } - } - set(key, val) { - if (key === "helpersNamespace") { - throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility." + "If you are using @babel/plugin-external-helpers you will need to use a newer " + "version than the one you currently have installed. " + "If you have your own implementation, you'll want to explore using 'helperGenerator' " + "alongside 'file.availableHelper()'."); - } - this._map.set(key, val); - } - get(key) { - return this._map.get(key); - } - has(key) { - return this._map.has(key); - } - getModuleName() { - return (0, _helperModuleTransforms().getModuleName)(this.opts, this.opts); - } - addImport() { - throw new Error("This API has been removed. If you're looking for this " + "functionality in Babel 7, you should import the " + "'@babel/helper-module-imports' module and use the functions exposed " + " from that module, such as 'addNamed' or 'addDefault'."); - } - availableHelper(name, versionRange) { - let minVersion; - try { - minVersion = helpers().minVersion(name); - } catch (err) { - if (err.code !== "BABEL_HELPER_UNKNOWN") throw err; - return false; - } - if (typeof versionRange !== "string") return true; - if (_semver().valid(versionRange)) versionRange = `^${versionRange}`; - return !_semver().intersects(`<${minVersion}`, versionRange) && !_semver().intersects(`>=8.0.0`, versionRange); - } - addHelper(name) { - const declar = this.declarations[name]; - if (declar) return cloneNode(declar); - const generator = this.get("helperGenerator"); - if (generator) { - const res = generator(name); - if (res) return res; - } - helpers().ensure(name, File); - const uid = this.declarations[name] = this.scope.generateUidIdentifier(name); - const dependencies = {}; - for (const dep of helpers().getDependencies(name)) { - dependencies[dep] = this.addHelper(dep); - } - const { - nodes, - globals - } = helpers().get(name, dep => dependencies[dep], uid, Object.keys(this.scope.getAllBindings())); - globals.forEach(name => { - if (this.path.scope.hasBinding(name, true)) { - this.path.scope.rename(name); - } - }); - nodes.forEach(node => { - node._compact = true; - }); - this.path.unshiftContainer("body", nodes); - this.path.get("body").forEach(path => { - if (nodes.indexOf(path.node) === -1) return; - if (path.isVariableDeclaration()) this.scope.registerDeclaration(path); - }); - return uid; - } - addTemplateObject() { - throw new Error("This function has been moved into the template literal transform itself."); - } - buildCodeFrameError(node, msg, _Error = SyntaxError) { - let loc = node && (node.loc || node._loc); - if (!loc && node) { - const state = { - loc: null - }; - (0, _traverse().default)(node, errorVisitor, this.scope, state); - loc = state.loc; - let txt = "This is an error on an internal node. Probably an internal error."; - if (loc) txt += " Location has been estimated."; - msg += ` (${txt})`; - } - if (loc) { - const { - highlightCode = true - } = this.opts; - msg += "\n" + (0, _codeFrame().codeFrameColumns)(this.code, { - start: { - line: loc.start.line, - column: loc.start.column + 1 - }, - end: loc.end && loc.start.line === loc.end.line ? { - line: loc.end.line, - column: loc.end.column + 1 - } : undefined - }, { - highlightCode - }); - } - return new _Error(msg); - } -} -exports["default"] = File; -0 && 0; - -//# sourceMappingURL=file.js.map - - -/***/ }), - -/***/ 16575: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = generateCode; -function _convertSourceMap() { - const data = __nccwpck_require__(62213); - _convertSourceMap = function () { - return data; - }; - return data; -} -function _generator() { - const data = __nccwpck_require__(84709); - _generator = function () { - return data; - }; - return data; -} -var _mergeMap = __nccwpck_require__(22185); -function generateCode(pluginPasses, file) { - const { - opts, - ast, - code, - inputMap - } = file; - const { - generatorOpts - } = opts; - generatorOpts.inputSourceMap = inputMap == null ? void 0 : inputMap.toObject(); - const results = []; - for (const plugins of pluginPasses) { - for (const plugin of plugins) { - const { - generatorOverride - } = plugin; - if (generatorOverride) { - const result = generatorOverride(ast, generatorOpts, code, _generator().default); - if (result !== undefined) results.push(result); - } - } - } - let result; - if (results.length === 0) { - result = (0, _generator().default)(ast, generatorOpts, code); - } else if (results.length === 1) { - result = results[0]; - if (typeof result.then === "function") { - throw new Error(`You appear to be using an async codegen plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version.`); - } - } else { - throw new Error("More than one plugin attempted to override codegen."); - } - let { - code: outputCode, - decodedMap: outputMap = result.map - } = result; - if (result.__mergedMap) { - outputMap = Object.assign({}, result.map); - } else { - if (outputMap) { - if (inputMap) { - outputMap = (0, _mergeMap.default)(inputMap.toObject(), outputMap, generatorOpts.sourceFileName); - } else { - outputMap = result.map; - } - } - } - if (opts.sourceMaps === "inline" || opts.sourceMaps === "both") { - outputCode += "\n" + _convertSourceMap().fromObject(outputMap).toComment(); - } - if (opts.sourceMaps === "inline") { - outputMap = null; - } - return { - outputCode, - outputMap - }; -} -0 && 0; - -//# sourceMappingURL=generate.js.map - - -/***/ }), - -/***/ 22185: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = mergeSourceMap; -function _remapping() { - const data = __nccwpck_require__(55514); - _remapping = function () { - return data; - }; - return data; -} -function mergeSourceMap(inputMap, map, sourceFileName) { - const source = sourceFileName.replace(/\\/g, "/"); - let found = false; - const result = _remapping()(rootless(map), (s, ctx) => { - if (s === source && !found) { - found = true; - ctx.source = ""; - return rootless(inputMap); - } - return null; - }); - if (typeof inputMap.sourceRoot === "string") { - result.sourceRoot = inputMap.sourceRoot; - } - return Object.assign({}, result); -} -function rootless(map) { - return Object.assign({}, map, { - sourceRoot: null - }); -} -0 && 0; - -//# sourceMappingURL=merge-map.js.map - - -/***/ }), - -/***/ 48511: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.run = run; -function _traverse() { - const data = __nccwpck_require__(37386); - _traverse = function () { - return data; - }; - return data; -} -var _pluginPass = __nccwpck_require__(65459); -var _blockHoistPlugin = __nccwpck_require__(36784); -var _normalizeOpts = __nccwpck_require__(19646); -var _normalizeFile = __nccwpck_require__(57142); -var _generate = __nccwpck_require__(16575); -var _deepArray = __nccwpck_require__(18597); -function* run(config, code, ast) { - const file = yield* (0, _normalizeFile.default)(config.passes, (0, _normalizeOpts.default)(config), code, ast); - const opts = file.opts; - try { - yield* transformFile(file, config.passes); - } catch (e) { - var _opts$filename; - e.message = `${(_opts$filename = opts.filename) != null ? _opts$filename : "unknown file"}: ${e.message}`; - if (!e.code) { - e.code = "BABEL_TRANSFORM_ERROR"; - } - throw e; - } - let outputCode, outputMap; - try { - if (opts.code !== false) { - ({ - outputCode, - outputMap - } = (0, _generate.default)(config.passes, file)); - } - } catch (e) { - var _opts$filename2; - e.message = `${(_opts$filename2 = opts.filename) != null ? _opts$filename2 : "unknown file"}: ${e.message}`; - if (!e.code) { - e.code = "BABEL_GENERATE_ERROR"; - } - throw e; - } - return { - metadata: file.metadata, - options: opts, - ast: opts.ast === true ? file.ast : null, - code: outputCode === undefined ? null : outputCode, - map: outputMap === undefined ? null : outputMap, - sourceType: file.ast.program.sourceType, - externalDependencies: (0, _deepArray.flattenToSet)(config.externalDependencies) - }; -} -function* transformFile(file, pluginPasses) { - for (const pluginPairs of pluginPasses) { - const passPairs = []; - const passes = []; - const visitors = []; - for (const plugin of pluginPairs.concat([(0, _blockHoistPlugin.default)()])) { - const pass = new _pluginPass.default(file, plugin.key, plugin.options); - passPairs.push([plugin, pass]); - passes.push(pass); - visitors.push(plugin.visitor); - } - for (const [plugin, pass] of passPairs) { - const fn = plugin.pre; - if (fn) { - const result = fn.call(pass, file); - yield* []; - if (isThenable(result)) { - throw new Error(`You appear to be using an plugin with an async .pre, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); - } - } - } - const visitor = _traverse().default.visitors.merge(visitors, passes, file.opts.wrapPluginVisitorMethod); - (0, _traverse().default)(file.ast, visitor, file.scope); - for (const [plugin, pass] of passPairs) { - const fn = plugin.post; - if (fn) { - const result = fn.call(pass, file); - yield* []; - if (isThenable(result)) { - throw new Error(`You appear to be using an plugin with an async .post, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); - } - } - } - } -} -function isThenable(val) { - return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function"; -} -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 57142: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = normalizeFile; -function _fs() { - const data = __nccwpck_require__(57147); - _fs = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -function _t() { - const data = __nccwpck_require__(89316); - _t = function () { - return data; - }; - return data; -} -function _convertSourceMap() { - const data = __nccwpck_require__(62213); - _convertSourceMap = function () { - return data; - }; - return data; -} -var _file = __nccwpck_require__(5801); -var _parser = __nccwpck_require__(92469); -var _cloneDeep = __nccwpck_require__(4533); -const { - file, - traverseFast -} = _t(); -const debug = _debug()("babel:transform:file"); -const INLINE_SOURCEMAP_REGEX = /^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/; -const EXTERNAL_SOURCEMAP_REGEX = /^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/; -function* normalizeFile(pluginPasses, options, code, ast) { - code = `${code || ""}`; - if (ast) { - if (ast.type === "Program") { - ast = file(ast, [], []); - } else if (ast.type !== "File") { - throw new Error("AST root must be a Program or File node"); - } - if (options.cloneInputAst) { - ast = (0, _cloneDeep.default)(ast); - } - } else { - ast = yield* (0, _parser.default)(pluginPasses, options, code); - } - let inputMap = null; - if (options.inputSourceMap !== false) { - if (typeof options.inputSourceMap === "object") { - inputMap = _convertSourceMap().fromObject(options.inputSourceMap); - } - if (!inputMap) { - const lastComment = extractComments(INLINE_SOURCEMAP_REGEX, ast); - if (lastComment) { - try { - inputMap = _convertSourceMap().fromComment(lastComment); - } catch (err) { - debug("discarding unknown inline input sourcemap", err); - } - } - } - if (!inputMap) { - const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast); - if (typeof options.filename === "string" && lastComment) { - try { - const match = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment); - const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8"); - inputMap = _convertSourceMap().fromJSON(inputMapContent); - } catch (err) { - debug("discarding unknown file input sourcemap", err); - } - } else if (lastComment) { - debug("discarding un-loadable file input sourcemap"); - } - } - } - return new _file.default(options, { - code, - ast: ast, - inputMap - }); -} -function extractCommentsFromList(regex, comments, lastComment) { - if (comments) { - comments = comments.filter(({ - value - }) => { - if (regex.test(value)) { - lastComment = value; - return false; - } - return true; - }); - } - return [comments, lastComment]; -} -function extractComments(regex, ast) { - let lastComment = null; - traverseFast(ast, node => { - [node.leadingComments, lastComment] = extractCommentsFromList(regex, node.leadingComments, lastComment); - [node.innerComments, lastComment] = extractCommentsFromList(regex, node.innerComments, lastComment); - [node.trailingComments, lastComment] = extractCommentsFromList(regex, node.trailingComments, lastComment); - }); - return lastComment; -} -0 && 0; - -//# sourceMappingURL=normalize-file.js.map - - -/***/ }), - -/***/ 19646: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = normalizeOptions; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function normalizeOptions(config) { - const { - filename, - cwd, - filenameRelative = typeof filename === "string" ? _path().relative(cwd, filename) : "unknown", - sourceType = "module", - inputSourceMap, - sourceMaps = !!inputSourceMap, - sourceRoot = config.options.moduleRoot, - sourceFileName = _path().basename(filenameRelative), - comments = true, - compact = "auto" - } = config.options; - const opts = config.options; - const options = Object.assign({}, opts, { - parserOpts: Object.assign({ - sourceType: _path().extname(filenameRelative) === ".mjs" ? "module" : sourceType, - sourceFileName: filename, - plugins: [] - }, opts.parserOpts), - generatorOpts: Object.assign({ - filename, - auxiliaryCommentBefore: opts.auxiliaryCommentBefore, - auxiliaryCommentAfter: opts.auxiliaryCommentAfter, - retainLines: opts.retainLines, - comments, - shouldPrintComment: opts.shouldPrintComment, - compact, - minified: opts.minified, - sourceMaps, - sourceRoot, - sourceFileName - }, opts.generatorOpts) - }); - for (const plugins of config.passes) { - for (const plugin of plugins) { - if (plugin.manipulateOptions) { - plugin.manipulateOptions(options, options.parserOpts); - } - } - } - return options; -} -0 && 0; - -//# sourceMappingURL=normalize-opts.js.map - - -/***/ }), - -/***/ 65459: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -class PluginPass { - constructor(file, key, options) { - this._map = new Map(); - this.key = void 0; - this.file = void 0; - this.opts = void 0; - this.cwd = void 0; - this.filename = void 0; - this.key = key; - this.file = file; - this.opts = options || {}; - this.cwd = file.opts.cwd; - this.filename = file.opts.filename; - } - set(key, val) { - this._map.set(key, val); - } - get(key) { - return this._map.get(key); - } - availableHelper(name, versionRange) { - return this.file.availableHelper(name, versionRange); - } - addHelper(name) { - return this.file.addHelper(name); - } - addImport() { - return this.file.addImport(); - } - buildCodeFrameError(node, msg, _Error) { - return this.file.buildCodeFrameError(node, msg, _Error); - } -} -exports["default"] = PluginPass; -{ - PluginPass.prototype.getModuleName = function getModuleName() { - return this.file.getModuleName(); - }; -} -0 && 0; - -//# sourceMappingURL=plugin-pass.js.map - - -/***/ }), - -/***/ 4533: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -function deepClone(value, cache) { - if (value !== null) { - if (cache.has(value)) return cache.get(value); - let cloned; - if (Array.isArray(value)) { - cloned = new Array(value.length); - cache.set(value, cloned); - for (let i = 0; i < value.length; i++) { - cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache); - } - } else { - cloned = {}; - cache.set(value, cloned); - const keys = Object.keys(value); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache); - } - } - return cloned; - } - return value; -} -function _default(value) { - if (typeof value !== "object") return value; - return deepClone(value, new Map()); -} -0 && 0; - -//# sourceMappingURL=clone-deep.js.map - - -/***/ }), - -/***/ 50250: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.moduleResolve = moduleResolve; -exports.resolve = resolve; -function _url() { - const data = __nccwpck_require__(57310); - _url = function () { - return data; - }; - return data; -} -function _fs() { - const data = _interopRequireWildcard(__nccwpck_require__(57147), true); - _fs = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _assert() { - const data = __nccwpck_require__(39491); - _assert = function () { - return data; - }; - return data; -} -function _util() { - const data = __nccwpck_require__(73837); - _util = function () { - return data; - }; - return data; -} -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -var re$3 = { - exports: {} -}; -const SEMVER_SPEC_VERSION = '2.0.0'; -const MAX_LENGTH$2 = 256; -const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991; -const MAX_SAFE_COMPONENT_LENGTH = 16; -var constants = { - SEMVER_SPEC_VERSION, - MAX_LENGTH: MAX_LENGTH$2, - MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1, - MAX_SAFE_COMPONENT_LENGTH -}; -const debug$1 = typeof process === 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error('SEMVER', ...args) : () => {}; -var debug_1 = debug$1; -(function (module, exports) { - const { - MAX_SAFE_COMPONENT_LENGTH - } = constants; - const debug = debug_1; - exports = module.exports = {}; - const re = exports.re = []; - const src = exports.src = []; - const t = exports.t = {}; - let R = 0; - const createToken = (name, value, isGlobal) => { - const index = R++; - debug(name, index, value); - t[name] = index; - src[index] = value; - re[index] = new RegExp(value, isGlobal ? 'g' : undefined); - }; - createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*'); - createToken('NUMERICIDENTIFIERLOOSE', '[0-9]+'); - createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*'); - createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})`); - createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`); - createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); - createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); - createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+'); - createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); - createToken('FULLPLAIN', `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`); - createToken('FULL', `^${src[t.FULLPLAIN]}$`); - createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`); - createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`); - createToken('GTLT', '((?:<|>)?=?)'); - createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); - createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); - createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`); - createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`); - createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); - createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); - createToken('COERCE', `${'(^|[^\\d])' + '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:$|[^\\d])`); - createToken('COERCERTL', src[t.COERCE], true); - createToken('LONETILDE', '(?:~>?)'); - createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true); - exports.tildeTrimReplace = '$1~'; - createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); - createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken('LONECARET', '(?:\\^)'); - createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true); - exports.caretTrimReplace = '$1^'; - createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); - createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); - createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); - createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true); - exports.comparatorTrimReplace = '$1$2$3'; - createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\s*$`); - createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\s*$`); - createToken('STAR', '(<|>)?=?\\s*\\*'); - createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$'); - createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$'); -})(re$3, re$3.exports); -const opts = ['includePrerelease', 'loose', 'rtl']; -const parseOptions$2 = options => !options ? {} : typeof options !== 'object' ? { - loose: true -} : opts.filter(k => options[k]).reduce((o, k) => { - o[k] = true; - return o; -}, {}); -var parseOptions_1 = parseOptions$2; -const numeric = /^[0-9]+$/; -const compareIdentifiers$1 = (a, b) => { - const anum = numeric.test(a); - const bnum = numeric.test(b); - if (anum && bnum) { - a = +a; - b = +b; - } - return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; -}; -const rcompareIdentifiers = (a, b) => compareIdentifiers$1(b, a); -var identifiers = { - compareIdentifiers: compareIdentifiers$1, - rcompareIdentifiers -}; -const debug = debug_1; -const { - MAX_LENGTH: MAX_LENGTH$1, - MAX_SAFE_INTEGER -} = constants; -const { - re: re$2, - t: t$2 -} = re$3.exports; -const parseOptions$1 = parseOptions_1; -const { - compareIdentifiers -} = identifiers; -class SemVer$c { - constructor(version, options) { - options = parseOptions$1(options); - if (version instanceof SemVer$c) { - if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) { - return version; - } else { - version = version.version; - } - } else if (typeof version !== 'string') { - throw new TypeError(`Invalid Version: ${version}`); - } - if (version.length > MAX_LENGTH$1) { - throw new TypeError(`version is longer than ${MAX_LENGTH$1} characters`); - } - debug('SemVer', version, options); - this.options = options; - this.loose = !!options.loose; - this.includePrerelease = !!options.includePrerelease; - const m = version.trim().match(options.loose ? re$2[t$2.LOOSE] : re$2[t$2.FULL]); - if (!m) { - throw new TypeError(`Invalid Version: ${version}`); - } - this.raw = version; - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version'); - } - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version'); - } - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version'); - } - if (!m[4]) { - this.prerelease = []; - } else { - this.prerelease = m[4].split('.').map(id => { - if (/^[0-9]+$/.test(id)) { - const num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num; - } - } - return id; - }); - } - this.build = m[5] ? m[5].split('.') : []; - this.format(); - } - format() { - this.version = `${this.major}.${this.minor}.${this.patch}`; - if (this.prerelease.length) { - this.version += `-${this.prerelease.join('.')}`; - } - return this.version; - } - toString() { - return this.version; - } - compare(other) { - debug('SemVer.compare', this.version, this.options, other); - if (!(other instanceof SemVer$c)) { - if (typeof other === 'string' && other === this.version) { - return 0; - } - other = new SemVer$c(other, this.options); - } - if (other.version === this.version) { - return 0; - } - return this.compareMain(other) || this.comparePre(other); - } - compareMain(other) { - if (!(other instanceof SemVer$c)) { - other = new SemVer$c(other, this.options); - } - return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch); - } - comparePre(other) { - if (!(other instanceof SemVer$c)) { - other = new SemVer$c(other, this.options); - } - if (this.prerelease.length && !other.prerelease.length) { - return -1; - } else if (!this.prerelease.length && other.prerelease.length) { - return 1; - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0; - } - let i = 0; - do { - const a = this.prerelease[i]; - const b = other.prerelease[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) { - return 0; - } else if (b === undefined) { - return 1; - } else if (a === undefined) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } - compareBuild(other) { - if (!(other instanceof SemVer$c)) { - other = new SemVer$c(other, this.options); - } - let i = 0; - do { - const a = this.build[i]; - const b = other.build[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) { - return 0; - } else if (b === undefined) { - return 1; - } else if (a === undefined) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } - inc(release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc('pre', identifier); - break; - case 'preminor': - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc('pre', identifier); - break; - case 'prepatch': - this.prerelease.length = 0; - this.inc('patch', identifier); - this.inc('pre', identifier); - break; - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier); - } - this.inc('pre', identifier); - break; - case 'major': - if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) { - this.major++; - } - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break; - case 'minor': - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++; - } - this.patch = 0; - this.prerelease = []; - break; - case 'patch': - if (this.prerelease.length === 0) { - this.patch++; - } - this.prerelease = []; - break; - case 'pre': - if (this.prerelease.length === 0) { - this.prerelease = [0]; - } else { - let i = this.prerelease.length; - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++; - i = -2; - } - } - if (i === -1) { - this.prerelease.push(0); - } - } - if (identifier) { - if (compareIdentifiers(this.prerelease[0], identifier) === 0) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0]; - } - } else { - this.prerelease = [identifier, 0]; - } - } - break; - default: - throw new Error(`invalid increment argument: ${release}`); - } - this.format(); - this.raw = this.version; - return this; - } -} -var semver$2 = SemVer$c; -const { - MAX_LENGTH -} = constants; -const { - re: re$1, - t: t$1 -} = re$3.exports; -const SemVer$b = semver$2; -const parseOptions = parseOptions_1; -const parse$5 = (version, options) => { - options = parseOptions(options); - if (version instanceof SemVer$b) { - return version; - } - if (typeof version !== 'string') { - return null; - } - if (version.length > MAX_LENGTH) { - return null; - } - const r = options.loose ? re$1[t$1.LOOSE] : re$1[t$1.FULL]; - if (!r.test(version)) { - return null; - } - try { - return new SemVer$b(version, options); - } catch (er) { - return null; - } -}; -var parse_1 = parse$5; -const parse$4 = parse_1; -const valid$1 = (version, options) => { - const v = parse$4(version, options); - return v ? v.version : null; -}; -var valid_1 = valid$1; -const parse$3 = parse_1; -const clean = (version, options) => { - const s = parse$3(version.trim().replace(/^[=v]+/, ''), options); - return s ? s.version : null; -}; -var clean_1 = clean; -const SemVer$a = semver$2; -const inc = (version, release, options, identifier) => { - if (typeof options === 'string') { - identifier = options; - options = undefined; - } - try { - return new SemVer$a(version instanceof SemVer$a ? version.version : version, options).inc(release, identifier).version; - } catch (er) { - return null; - } -}; -var inc_1 = inc; -const SemVer$9 = semver$2; -const compare$a = (a, b, loose) => new SemVer$9(a, loose).compare(new SemVer$9(b, loose)); -var compare_1 = compare$a; -const compare$9 = compare_1; -const eq$2 = (a, b, loose) => compare$9(a, b, loose) === 0; -var eq_1 = eq$2; -const parse$2 = parse_1; -const eq$1 = eq_1; -const diff = (version1, version2) => { - if (eq$1(version1, version2)) { - return null; - } else { - const v1 = parse$2(version1); - const v2 = parse$2(version2); - const hasPre = v1.prerelease.length || v2.prerelease.length; - const prefix = hasPre ? 'pre' : ''; - const defaultResult = hasPre ? 'prerelease' : ''; - for (const key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return prefix + key; - } - } - } - return defaultResult; - } -}; -var diff_1 = diff; -const SemVer$8 = semver$2; -const major = (a, loose) => new SemVer$8(a, loose).major; -var major_1 = major; -const SemVer$7 = semver$2; -const minor = (a, loose) => new SemVer$7(a, loose).minor; -var minor_1 = minor; -const SemVer$6 = semver$2; -const patch = (a, loose) => new SemVer$6(a, loose).patch; -var patch_1 = patch; -const parse$1 = parse_1; -const prerelease = (version, options) => { - const parsed = parse$1(version, options); - return parsed && parsed.prerelease.length ? parsed.prerelease : null; -}; -var prerelease_1 = prerelease; -const compare$8 = compare_1; -const rcompare = (a, b, loose) => compare$8(b, a, loose); -var rcompare_1 = rcompare; -const compare$7 = compare_1; -const compareLoose = (a, b) => compare$7(a, b, true); -var compareLoose_1 = compareLoose; -const SemVer$5 = semver$2; -const compareBuild$2 = (a, b, loose) => { - const versionA = new SemVer$5(a, loose); - const versionB = new SemVer$5(b, loose); - return versionA.compare(versionB) || versionA.compareBuild(versionB); -}; -var compareBuild_1 = compareBuild$2; -const compareBuild$1 = compareBuild_1; -const sort = (list, loose) => list.sort((a, b) => compareBuild$1(a, b, loose)); -var sort_1 = sort; -const compareBuild = compareBuild_1; -const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)); -var rsort_1 = rsort; -const compare$6 = compare_1; -const gt$3 = (a, b, loose) => compare$6(a, b, loose) > 0; -var gt_1 = gt$3; -const compare$5 = compare_1; -const lt$2 = (a, b, loose) => compare$5(a, b, loose) < 0; -var lt_1 = lt$2; -const compare$4 = compare_1; -const neq$1 = (a, b, loose) => compare$4(a, b, loose) !== 0; -var neq_1 = neq$1; -const compare$3 = compare_1; -const gte$2 = (a, b, loose) => compare$3(a, b, loose) >= 0; -var gte_1 = gte$2; -const compare$2 = compare_1; -const lte$2 = (a, b, loose) => compare$2(a, b, loose) <= 0; -var lte_1 = lte$2; -const eq = eq_1; -const neq = neq_1; -const gt$2 = gt_1; -const gte$1 = gte_1; -const lt$1 = lt_1; -const lte$1 = lte_1; -const cmp = (a, op, b, loose) => { - switch (op) { - case '===': - if (typeof a === 'object') { - a = a.version; - } - if (typeof b === 'object') { - b = b.version; - } - return a === b; - case '!==': - if (typeof a === 'object') { - a = a.version; - } - if (typeof b === 'object') { - b = b.version; - } - return a !== b; - case '': - case '=': - case '==': - return eq(a, b, loose); - case '!=': - return neq(a, b, loose); - case '>': - return gt$2(a, b, loose); - case '>=': - return gte$1(a, b, loose); - case '<': - return lt$1(a, b, loose); - case '<=': - return lte$1(a, b, loose); - default: - throw new TypeError(`Invalid operator: ${op}`); - } -}; -var cmp_1 = cmp; -const SemVer$4 = semver$2; -const parse = parse_1; -const { - re, - t -} = re$3.exports; -const coerce = (version, options) => { - if (version instanceof SemVer$4) { - return version; - } - if (typeof version === 'number') { - version = String(version); - } - if (typeof version !== 'string') { - return null; - } - options = options || {}; - let match = null; - if (!options.rtl) { - match = version.match(re[t.COERCE]); - } else { - let next; - while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) { - if (!match || next.index + next[0].length !== match.index + match[0].length) { - match = next; - } - re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length; - } - re[t.COERCERTL].lastIndex = -1; - } - if (match === null) { - return null; - } - return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options); -}; -var coerce_1 = coerce; -var iterator; -var hasRequiredIterator; -function requireIterator() { - if (hasRequiredIterator) return iterator; - hasRequiredIterator = 1; - iterator = function (Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value; - } - }; - }; - return iterator; -} -var yallist; -var hasRequiredYallist; -function requireYallist() { - if (hasRequiredYallist) return yallist; - hasRequiredYallist = 1; - yallist = Yallist; - Yallist.Node = Node; - Yallist.create = Yallist; - function Yallist(list) { - var self = this; - if (!(self instanceof Yallist)) { - self = new Yallist(); - } - self.tail = null; - self.head = null; - self.length = 0; - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item); - }); - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]); - } - } - return self; - } - Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list'); - } - var next = node.next; - var prev = node.prev; - if (next) { - next.prev = prev; - } - if (prev) { - prev.next = next; - } - if (node === this.head) { - this.head = next; - } - if (node === this.tail) { - this.tail = prev; - } - node.list.length--; - node.next = null; - node.prev = null; - node.list = null; - return next; - }; - Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var head = this.head; - node.list = this; - node.next = head; - if (head) { - head.prev = node; - } - this.head = node; - if (!this.tail) { - this.tail = node; - } - this.length++; - }; - Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var tail = this.tail; - node.list = this; - node.prev = tail; - if (tail) { - tail.next = node; - } - this.tail = node; - if (!this.head) { - this.head = node; - } - this.length++; - }; - Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined; - } - var res = this.tail.value; - this.tail = this.tail.prev; - if (this.tail) { - this.tail.next = null; - } else { - this.head = null; - } - this.length--; - return res; - }; - Yallist.prototype.shift = function () { - if (!this.head) { - return undefined; - } - var res = this.head.value; - this.head = this.head.next; - if (this.head) { - this.head.prev = null; - } else { - this.tail = null; - } - this.length--; - return res; - }; - Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this; - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this); - walker = walker.next; - } - }; - Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this; - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this); - walker = walker.prev; - } - }; - Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - walker = walker.next; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - walker = walker.prev; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.next; - } - return res; - }; - Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.prev; - } - return res; - }; - Yallist.prototype.reduce = function (fn, initial) { - var acc; - var walker = this.head; - if (arguments.length > 1) { - acc = initial; - } else if (this.head) { - walker = this.head.next; - acc = this.head.value; - } else { - throw new TypeError('Reduce of empty list with no initial value'); - } - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i); - walker = walker.next; - } - return acc; - }; - Yallist.prototype.reduceReverse = function (fn, initial) { - var acc; - var walker = this.tail; - if (arguments.length > 1) { - acc = initial; - } else if (this.tail) { - walker = this.tail.prev; - acc = this.tail.value; - } else { - throw new TypeError('Reduce of empty list with no initial value'); - } - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i); - walker = walker.prev; - } - return acc; - }; - Yallist.prototype.toArray = function () { - var arr = new Array(this.length); - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.next; - } - return arr; - }; - Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length); - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.prev; - } - return arr; - }; - Yallist.prototype.slice = function (from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next; - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev; - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.splice = function (start, deleteCount, ...nodes) { - if (start > this.length) { - start = this.length - 1; - } - if (start < 0) { - start = this.length + start; - } - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next; - } - var ret = []; - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value); - walker = this.removeNode(walker); - } - if (walker === null) { - walker = this.tail; - } - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev; - } - for (var i = 0; i < nodes.length; i++) { - walker = insert(this, walker, nodes[i]); - } - return ret; - }; - Yallist.prototype.reverse = function () { - var head = this.head; - var tail = this.tail; - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev; - walker.prev = walker.next; - walker.next = p; - } - this.head = tail; - this.tail = head; - return this; - }; - function insert(self, node, value) { - var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self); - if (inserted.next === null) { - self.tail = inserted; - } - if (inserted.prev === null) { - self.head = inserted; - } - self.length++; - return inserted; - } - function push(self, item) { - self.tail = new Node(item, self.tail, null, self); - if (!self.head) { - self.head = self.tail; - } - self.length++; - } - function unshift(self, item) { - self.head = new Node(item, null, self.head, self); - if (!self.tail) { - self.tail = self.head; - } - self.length++; - } - function Node(value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list); - } - this.list = list; - this.value = value; - if (prev) { - prev.next = this; - this.prev = prev; - } else { - this.prev = null; - } - if (next) { - next.prev = this; - this.next = next; - } else { - this.next = null; - } - } - try { - requireIterator()(Yallist); - } catch (er) {} - return yallist; -} -var lruCache; -var hasRequiredLruCache; -function requireLruCache() { - if (hasRequiredLruCache) return lruCache; - hasRequiredLruCache = 1; - const Yallist = requireYallist(); - const MAX = Symbol('max'); - const LENGTH = Symbol('length'); - const LENGTH_CALCULATOR = Symbol('lengthCalculator'); - const ALLOW_STALE = Symbol('allowStale'); - const MAX_AGE = Symbol('maxAge'); - const DISPOSE = Symbol('dispose'); - const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet'); - const LRU_LIST = Symbol('lruList'); - const CACHE = Symbol('cache'); - const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet'); - const naiveLength = () => 1; - class LRUCache { - constructor(options) { - if (typeof options === 'number') options = { - max: options - }; - if (!options) options = {}; - if (options.max && (typeof options.max !== 'number' || options.max < 0)) throw new TypeError('max must be a non-negative number'); - this[MAX] = options.max || Infinity; - const lc = options.length || naiveLength; - this[LENGTH_CALCULATOR] = typeof lc !== 'function' ? naiveLength : lc; - this[ALLOW_STALE] = options.stale || false; - if (options.maxAge && typeof options.maxAge !== 'number') throw new TypeError('maxAge must be a number'); - this[MAX_AGE] = options.maxAge || 0; - this[DISPOSE] = options.dispose; - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false; - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false; - this.reset(); - } - set max(mL) { - if (typeof mL !== 'number' || mL < 0) throw new TypeError('max must be a non-negative number'); - this[MAX] = mL || Infinity; - trim(this); - } - get max() { - return this[MAX]; - } - set allowStale(allowStale) { - this[ALLOW_STALE] = !!allowStale; - } - get allowStale() { - return this[ALLOW_STALE]; - } - set maxAge(mA) { - if (typeof mA !== 'number') throw new TypeError('maxAge must be a non-negative number'); - this[MAX_AGE] = mA; - trim(this); - } - get maxAge() { - return this[MAX_AGE]; - } - set lengthCalculator(lC) { - if (typeof lC !== 'function') lC = naiveLength; - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC; - this[LENGTH] = 0; - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key); - this[LENGTH] += hit.length; - }); - } - trim(this); - } - get lengthCalculator() { - return this[LENGTH_CALCULATOR]; - } - get length() { - return this[LENGTH]; - } - get itemCount() { - return this[LRU_LIST].length; - } - rforEach(fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev; - forEachStep(this, fn, walker, thisp); - walker = prev; - } - } - forEach(fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next; - forEachStep(this, fn, walker, thisp); - walker = next; - } - } - keys() { - return this[LRU_LIST].toArray().map(k => k.key); - } - values() { - return this[LRU_LIST].toArray().map(k => k.value); - } - reset() { - if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)); - } - this[CACHE] = new Map(); - this[LRU_LIST] = new Yallist(); - this[LENGTH] = 0; - } - dump() { - return this[LRU_LIST].map(hit => isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h); - } - dumpLru() { - return this[LRU_LIST]; - } - set(key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE]; - if (maxAge && typeof maxAge !== 'number') throw new TypeError('maxAge must be a number'); - const now = maxAge ? Date.now() : 0; - const len = this[LENGTH_CALCULATOR](value, key); - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)); - return false; - } - const node = this[CACHE].get(key); - const item = node.value; - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value); - } - item.now = now; - item.maxAge = maxAge; - item.value = value; - this[LENGTH] += len - item.length; - item.length = len; - this.get(key); - trim(this); - return true; - } - const hit = new Entry(key, value, len, now, maxAge); - if (hit.length > this[MAX]) { - if (this[DISPOSE]) this[DISPOSE](key, value); - return false; - } - this[LENGTH] += hit.length; - this[LRU_LIST].unshift(hit); - this[CACHE].set(key, this[LRU_LIST].head); - trim(this); - return true; - } - has(key) { - if (!this[CACHE].has(key)) return false; - const hit = this[CACHE].get(key).value; - return !isStale(this, hit); - } - get(key) { - return get(this, key, true); - } - peek(key) { - return get(this, key, false); - } - pop() { - const node = this[LRU_LIST].tail; - if (!node) return null; - del(this, node); - return node.value; - } - del(key) { - del(this, this[CACHE].get(key)); - } - load(arr) { - this.reset(); - const now = Date.now(); - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l]; - const expiresAt = hit.e || 0; - if (expiresAt === 0) this.set(hit.k, hit.v);else { - const maxAge = expiresAt - now; - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge); - } - } - } - } - prune() { - this[CACHE].forEach((value, key) => get(this, key, false)); - } - } - const get = (self, key, doUse) => { - const node = self[CACHE].get(key); - if (node) { - const hit = node.value; - if (isStale(self, hit)) { - del(self, node); - if (!self[ALLOW_STALE]) return undefined; - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now(); - self[LRU_LIST].unshiftNode(node); - } - } - return hit.value; - } - }; - const isStale = (self, hit) => { - if (!hit || !hit.maxAge && !self[MAX_AGE]) return false; - const diff = Date.now() - hit.now; - return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE]; - }; - const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;) { - const prev = walker.prev; - del(self, walker); - walker = prev; - } - } - }; - const del = (self, node) => { - if (node) { - const hit = node.value; - if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value); - self[LENGTH] -= hit.length; - self[CACHE].delete(hit.key); - self[LRU_LIST].removeNode(node); - } - }; - class Entry { - constructor(key, value, length, now, maxAge) { - this.key = key; - this.value = value; - this.length = length; - this.now = now; - this.maxAge = maxAge || 0; - } - } - const forEachStep = (self, fn, node, thisp) => { - let hit = node.value; - if (isStale(self, hit)) { - del(self, node); - if (!self[ALLOW_STALE]) hit = undefined; - } - if (hit) fn.call(thisp, hit.value, hit.key, self); - }; - lruCache = LRUCache; - return lruCache; -} -var range; -var hasRequiredRange; -function requireRange() { - if (hasRequiredRange) return range; - hasRequiredRange = 1; - class Range { - constructor(range, options) { - options = parseOptions(options); - if (range instanceof Range) { - if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) { - return range; - } else { - return new Range(range.raw, options); - } - } - if (range instanceof Comparator) { - this.raw = range.value; - this.set = [[range]]; - this.format(); - return this; - } - this.options = options; - this.loose = !!options.loose; - this.includePrerelease = !!options.includePrerelease; - this.raw = range; - this.set = range.split('||').map(r => this.parseRange(r.trim())).filter(c => c.length); - if (!this.set.length) { - throw new TypeError(`Invalid SemVer Range: ${range}`); - } - if (this.set.length > 1) { - const first = this.set[0]; - this.set = this.set.filter(c => !isNullSet(c[0])); - if (this.set.length === 0) { - this.set = [first]; - } else if (this.set.length > 1) { - for (const c of this.set) { - if (c.length === 1 && isAny(c[0])) { - this.set = [c]; - break; - } - } - } - } - this.format(); - } - format() { - this.range = this.set.map(comps => { - return comps.join(' ').trim(); - }).join('||').trim(); - return this.range; - } - toString() { - return this.range; - } - parseRange(range) { - range = range.trim(); - const memoOpts = Object.keys(this.options).join(','); - const memoKey = `parseRange:${memoOpts}:${range}`; - const cached = cache.get(memoKey); - if (cached) { - return cached; - } - const loose = this.options.loose; - const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; - range = range.replace(hr, hyphenReplace(this.options.includePrerelease)); - debug('hyphen replace', range); - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace); - debug('comparator trim', range); - range = range.replace(re[t.TILDETRIM], tildeTrimReplace); - range = range.replace(re[t.CARETTRIM], caretTrimReplace); - range = range.split(/\s+/).join(' '); - let rangeList = range.split(' ').map(comp => parseComparator(comp, this.options)).join(' ').split(/\s+/).map(comp => replaceGTE0(comp, this.options)); - if (loose) { - rangeList = rangeList.filter(comp => { - debug('loose invalid filter', comp, this.options); - return !!comp.match(re[t.COMPARATORLOOSE]); - }); - } - debug('range list', rangeList); - const rangeMap = new Map(); - const comparators = rangeList.map(comp => new Comparator(comp, this.options)); - for (const comp of comparators) { - if (isNullSet(comp)) { - return [comp]; - } - rangeMap.set(comp.value, comp); - } - if (rangeMap.size > 1 && rangeMap.has('')) { - rangeMap.delete(''); - } - const result = [...rangeMap.values()]; - cache.set(memoKey, result); - return result; - } - intersects(range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required'); - } - return this.set.some(thisComparators => { - return isSatisfiable(thisComparators, options) && range.set.some(rangeComparators => { - return isSatisfiable(rangeComparators, options) && thisComparators.every(thisComparator => { - return rangeComparators.every(rangeComparator => { - return thisComparator.intersects(rangeComparator, options); - }); - }); - }); - }); - } - test(version) { - if (!version) { - return false; - } - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options); - } catch (er) { - return false; - } - } - for (let i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true; - } - } - return false; - } - } - range = Range; - const LRU = requireLruCache(); - const cache = new LRU({ - max: 1000 - }); - const parseOptions = parseOptions_1; - const Comparator = requireComparator(); - const debug = debug_1; - const SemVer = semver$2; - const { - re, - t, - comparatorTrimReplace, - tildeTrimReplace, - caretTrimReplace - } = re$3.exports; - const isNullSet = c => c.value === '<0.0.0-0'; - const isAny = c => c.value === ''; - const isSatisfiable = (comparators, options) => { - let result = true; - const remainingComparators = comparators.slice(); - let testComparator = remainingComparators.pop(); - while (result && remainingComparators.length) { - result = remainingComparators.every(otherComparator => { - return testComparator.intersects(otherComparator, options); - }); - testComparator = remainingComparators.pop(); - } - return result; - }; - const parseComparator = (comp, options) => { - debug('comp', comp, options); - comp = replaceCarets(comp, options); - debug('caret', comp); - comp = replaceTildes(comp, options); - debug('tildes', comp); - comp = replaceXRanges(comp, options); - debug('xrange', comp); - comp = replaceStars(comp, options); - debug('stars', comp); - return comp; - }; - const isX = id => !id || id.toLowerCase() === 'x' || id === '*'; - const replaceTildes = (comp, options) => comp.trim().split(/\s+/).map(c => { - return replaceTilde(c, options); - }).join(' '); - const replaceTilde = (comp, options) => { - const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]; - return comp.replace(r, (_, M, m, p, pr) => { - debug('tilde', comp, _, M, m, p, pr); - let ret; - if (isX(M)) { - ret = ''; - } else if (isX(m)) { - ret = `>=${M}.0.0 <${+M + 1}.0.0-0`; - } else if (isX(p)) { - ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`; - } else if (pr) { - debug('replaceTilde pr', pr); - ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`; - } else { - ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`; - } - debug('tilde return', ret); - return ret; - }); - }; - const replaceCarets = (comp, options) => comp.trim().split(/\s+/).map(c => { - return replaceCaret(c, options); - }).join(' '); - const replaceCaret = (comp, options) => { - debug('caret', comp, options); - const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]; - const z = options.includePrerelease ? '-0' : ''; - return comp.replace(r, (_, M, m, p, pr) => { - debug('caret', comp, _, M, m, p, pr); - let ret; - if (isX(M)) { - ret = ''; - } else if (isX(m)) { - ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`; - } else if (isX(p)) { - if (M === '0') { - ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`; - } else { - ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`; - } - } else if (pr) { - debug('replaceCaret pr', pr); - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`; - } else { - ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`; - } - } else { - ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`; - } - } else { - debug('no pr'); - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`; - } else { - ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`; - } - } else { - ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`; - } - } - debug('caret return', ret); - return ret; - }); - }; - const replaceXRanges = (comp, options) => { - debug('replaceXRanges', comp, options); - return comp.split(/\s+/).map(c => { - return replaceXRange(c, options); - }).join(' '); - }; - const replaceXRange = (comp, options) => { - comp = comp.trim(); - const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]; - return comp.replace(r, (ret, gtlt, M, m, p, pr) => { - debug('xRange', comp, ret, gtlt, M, m, p, pr); - const xM = isX(M); - const xm = xM || isX(m); - const xp = xm || isX(p); - const anyX = xp; - if (gtlt === '=' && anyX) { - gtlt = ''; - } - pr = options.includePrerelease ? '-0' : ''; - if (xM) { - if (gtlt === '>' || gtlt === '<') { - ret = '<0.0.0-0'; - } else { - ret = '*'; - } - } else if (gtlt && anyX) { - if (xm) { - m = 0; - } - p = 0; - if (gtlt === '>') { - gtlt = '>='; - if (xm) { - M = +M + 1; - m = 0; - p = 0; - } else { - m = +m + 1; - p = 0; - } - } else if (gtlt === '<=') { - gtlt = '<'; - if (xm) { - M = +M + 1; - } else { - m = +m + 1; - } - } - if (gtlt === '<') { - pr = '-0'; - } - ret = `${gtlt + M}.${m}.${p}${pr}`; - } else if (xm) { - ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`; - } else if (xp) { - ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`; - } - debug('xRange return', ret); - return ret; - }); - }; - const replaceStars = (comp, options) => { - debug('replaceStars', comp, options); - return comp.trim().replace(re[t.STAR], ''); - }; - const replaceGTE0 = (comp, options) => { - debug('replaceGTE0', comp, options); - return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], ''); - }; - const hyphenReplace = incPr => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) => { - if (isX(fM)) { - from = ''; - } else if (isX(fm)) { - from = `>=${fM}.0.0${incPr ? '-0' : ''}`; - } else if (isX(fp)) { - from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`; - } else if (fpr) { - from = `>=${from}`; - } else { - from = `>=${from}${incPr ? '-0' : ''}`; - } - if (isX(tM)) { - to = ''; - } else if (isX(tm)) { - to = `<${+tM + 1}.0.0-0`; - } else if (isX(tp)) { - to = `<${tM}.${+tm + 1}.0-0`; - } else if (tpr) { - to = `<=${tM}.${tm}.${tp}-${tpr}`; - } else if (incPr) { - to = `<${tM}.${tm}.${+tp + 1}-0`; - } else { - to = `<=${to}`; - } - return `${from} ${to}`.trim(); - }; - const testSet = (set, version, options) => { - for (let i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false; - } - } - if (version.prerelease.length && !options.includePrerelease) { - for (let i = 0; i < set.length; i++) { - debug(set[i].semver); - if (set[i].semver === Comparator.ANY) { - continue; - } - if (set[i].semver.prerelease.length > 0) { - const allowed = set[i].semver; - if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) { - return true; - } - } - } - return false; - } - return true; - }; - return range; -} -var comparator; -var hasRequiredComparator; -function requireComparator() { - if (hasRequiredComparator) return comparator; - hasRequiredComparator = 1; - const ANY = Symbol('SemVer ANY'); - class Comparator { - static get ANY() { - return ANY; - } - constructor(comp, options) { - options = parseOptions(options); - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp; - } else { - comp = comp.value; - } - } - debug('comparator', comp, options); - this.options = options; - this.loose = !!options.loose; - this.parse(comp); - if (this.semver === ANY) { - this.value = ''; - } else { - this.value = this.operator + this.semver.version; - } - debug('comp', this); - } - parse(comp) { - const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]; - const m = comp.match(r); - if (!m) { - throw new TypeError(`Invalid comparator: ${comp}`); - } - this.operator = m[1] !== undefined ? m[1] : ''; - if (this.operator === '=') { - this.operator = ''; - } - if (!m[2]) { - this.semver = ANY; - } else { - this.semver = new SemVer(m[2], this.options.loose); - } - } - toString() { - return this.value; - } - test(version) { - debug('Comparator.test', version, this.options.loose); - if (this.semver === ANY || version === ANY) { - return true; - } - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options); - } catch (er) { - return false; - } - } - return cmp(version, this.operator, this.semver, this.options); - } - intersects(comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required'); - } - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - }; - } - if (this.operator === '') { - if (this.value === '') { - return true; - } - return new Range(comp.value, options).test(this.value); - } else if (comp.operator === '') { - if (comp.value === '') { - return true; - } - return new Range(this.value, options).test(comp.semver); - } - const sameDirectionIncreasing = (this.operator === '>=' || this.operator === '>') && (comp.operator === '>=' || comp.operator === '>'); - const sameDirectionDecreasing = (this.operator === '<=' || this.operator === '<') && (comp.operator === '<=' || comp.operator === '<'); - const sameSemVer = this.semver.version === comp.semver.version; - const differentDirectionsInclusive = (this.operator === '>=' || this.operator === '<=') && (comp.operator === '>=' || comp.operator === '<='); - const oppositeDirectionsLessThan = cmp(this.semver, '<', comp.semver, options) && (this.operator === '>=' || this.operator === '>') && (comp.operator === '<=' || comp.operator === '<'); - const oppositeDirectionsGreaterThan = cmp(this.semver, '>', comp.semver, options) && (this.operator === '<=' || this.operator === '<') && (comp.operator === '>=' || comp.operator === '>'); - return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan; - } - } - comparator = Comparator; - const parseOptions = parseOptions_1; - const { - re, - t - } = re$3.exports; - const cmp = cmp_1; - const debug = debug_1; - const SemVer = semver$2; - const Range = requireRange(); - return comparator; -} -const Range$8 = requireRange(); -const satisfies$3 = (version, range, options) => { - try { - range = new Range$8(range, options); - } catch (er) { - return false; - } - return range.test(version); -}; -var satisfies_1 = satisfies$3; -const Range$7 = requireRange(); -const toComparators = (range, options) => new Range$7(range, options).set.map(comp => comp.map(c => c.value).join(' ').trim().split(' ')); -var toComparators_1 = toComparators; -const SemVer$3 = semver$2; -const Range$6 = requireRange(); -const maxSatisfying = (versions, range, options) => { - let max = null; - let maxSV = null; - let rangeObj = null; - try { - rangeObj = new Range$6(range, options); - } catch (er) { - return null; - } - versions.forEach(v => { - if (rangeObj.test(v)) { - if (!max || maxSV.compare(v) === -1) { - max = v; - maxSV = new SemVer$3(max, options); - } - } - }); - return max; -}; -var maxSatisfying_1 = maxSatisfying; -const SemVer$2 = semver$2; -const Range$5 = requireRange(); -const minSatisfying = (versions, range, options) => { - let min = null; - let minSV = null; - let rangeObj = null; - try { - rangeObj = new Range$5(range, options); - } catch (er) { - return null; - } - versions.forEach(v => { - if (rangeObj.test(v)) { - if (!min || minSV.compare(v) === 1) { - min = v; - minSV = new SemVer$2(min, options); - } - } - }); - return min; -}; -var minSatisfying_1 = minSatisfying; -const SemVer$1 = semver$2; -const Range$4 = requireRange(); -const gt$1 = gt_1; -const minVersion = (range, loose) => { - range = new Range$4(range, loose); - let minver = new SemVer$1('0.0.0'); - if (range.test(minver)) { - return minver; - } - minver = new SemVer$1('0.0.0-0'); - if (range.test(minver)) { - return minver; - } - minver = null; - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i]; - let setMin = null; - comparators.forEach(comparator => { - const compver = new SemVer$1(comparator.semver.version); - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++; - } else { - compver.prerelease.push(0); - } - compver.raw = compver.format(); - case '': - case '>=': - if (!setMin || gt$1(compver, setMin)) { - setMin = compver; - } - break; - case '<': - case '<=': - break; - default: - throw new Error(`Unexpected operation: ${comparator.operator}`); - } - }); - if (setMin && (!minver || gt$1(minver, setMin))) { - minver = setMin; - } - } - if (minver && range.test(minver)) { - return minver; - } - return null; -}; -var minVersion_1 = minVersion; -const Range$3 = requireRange(); -const validRange = (range, options) => { - try { - return new Range$3(range, options).range || '*'; - } catch (er) { - return null; - } -}; -var valid = validRange; -const SemVer = semver$2; -const Comparator$1 = requireComparator(); -const { - ANY: ANY$1 -} = Comparator$1; -const Range$2 = requireRange(); -const satisfies$2 = satisfies_1; -const gt = gt_1; -const lt = lt_1; -const lte = lte_1; -const gte = gte_1; -const outside$2 = (version, range, hilo, options) => { - version = new SemVer(version, options); - range = new Range$2(range, options); - let gtfn, ltefn, ltfn, comp, ecomp; - switch (hilo) { - case '>': - gtfn = gt; - ltefn = lte; - ltfn = lt; - comp = '>'; - ecomp = '>='; - break; - case '<': - gtfn = lt; - ltefn = gte; - ltfn = gt; - comp = '<'; - ecomp = '<='; - break; - default: - throw new TypeError('Must provide a hilo val of "<" or ">"'); - } - if (satisfies$2(version, range, options)) { - return false; - } - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i]; - let high = null; - let low = null; - comparators.forEach(comparator => { - if (comparator.semver === ANY$1) { - comparator = new Comparator$1('>=0.0.0'); - } - high = high || comparator; - low = low || comparator; - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator; - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator; - } - }); - if (high.operator === comp || high.operator === ecomp) { - return false; - } - if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) { - return false; - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false; - } - } - return true; -}; -var outside_1 = outside$2; -const outside$1 = outside_1; -const gtr = (version, range, options) => outside$1(version, range, '>', options); -var gtr_1 = gtr; -const outside = outside_1; -const ltr = (version, range, options) => outside(version, range, '<', options); -var ltr_1 = ltr; -const Range$1 = requireRange(); -const intersects = (r1, r2, options) => { - r1 = new Range$1(r1, options); - r2 = new Range$1(r2, options); - return r1.intersects(r2); -}; -var intersects_1 = intersects; -const satisfies$1 = satisfies_1; -const compare$1 = compare_1; -var simplify = (versions, range, options) => { - const set = []; - let first = null; - let prev = null; - const v = versions.sort((a, b) => compare$1(a, b, options)); - for (const version of v) { - const included = satisfies$1(version, range, options); - if (included) { - prev = version; - if (!first) { - first = version; - } - } else { - if (prev) { - set.push([first, prev]); - } - prev = null; - first = null; - } - } - if (first) { - set.push([first, null]); - } - const ranges = []; - for (const [min, max] of set) { - if (min === max) { - ranges.push(min); - } else if (!max && min === v[0]) { - ranges.push('*'); - } else if (!max) { - ranges.push(`>=${min}`); - } else if (min === v[0]) { - ranges.push(`<=${max}`); - } else { - ranges.push(`${min} - ${max}`); - } - } - const simplified = ranges.join(' || '); - const original = typeof range.raw === 'string' ? range.raw : String(range); - return simplified.length < original.length ? simplified : range; -}; -const Range = requireRange(); -const Comparator = requireComparator(); -const { - ANY -} = Comparator; -const satisfies = satisfies_1; -const compare = compare_1; -const subset = (sub, dom, options = {}) => { - if (sub === dom) { - return true; - } - sub = new Range(sub, options); - dom = new Range(dom, options); - let sawNonNull = false; - OUTER: for (const simpleSub of sub.set) { - for (const simpleDom of dom.set) { - const isSub = simpleSubset(simpleSub, simpleDom, options); - sawNonNull = sawNonNull || isSub !== null; - if (isSub) { - continue OUTER; - } - } - if (sawNonNull) { - return false; - } - } - return true; -}; -const simpleSubset = (sub, dom, options) => { - if (sub === dom) { - return true; - } - if (sub.length === 1 && sub[0].semver === ANY) { - if (dom.length === 1 && dom[0].semver === ANY) { - return true; - } else if (options.includePrerelease) { - sub = [new Comparator('>=0.0.0-0')]; - } else { - sub = [new Comparator('>=0.0.0')]; - } - } - if (dom.length === 1 && dom[0].semver === ANY) { - if (options.includePrerelease) { - return true; - } else { - dom = [new Comparator('>=0.0.0')]; - } - } - const eqSet = new Set(); - let gt, lt; - for (const c of sub) { - if (c.operator === '>' || c.operator === '>=') { - gt = higherGT(gt, c, options); - } else if (c.operator === '<' || c.operator === '<=') { - lt = lowerLT(lt, c, options); - } else { - eqSet.add(c.semver); - } - } - if (eqSet.size > 1) { - return null; - } - let gtltComp; - if (gt && lt) { - gtltComp = compare(gt.semver, lt.semver, options); - if (gtltComp > 0) { - return null; - } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) { - return null; - } - } - for (const eq of eqSet) { - if (gt && !satisfies(eq, String(gt), options)) { - return null; - } - if (lt && !satisfies(eq, String(lt), options)) { - return null; - } - for (const c of dom) { - if (!satisfies(eq, String(c), options)) { - return false; - } - } - return true; - } - let higher, lower; - let hasDomLT, hasDomGT; - let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false; - let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false; - if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === '<' && needDomLTPre.prerelease[0] === 0) { - needDomLTPre = false; - } - for (const c of dom) { - hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='; - hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='; - if (gt) { - if (needDomGTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) { - needDomGTPre = false; - } - } - if (c.operator === '>' || c.operator === '>=') { - higher = higherGT(gt, c, options); - if (higher === c && higher !== gt) { - return false; - } - } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) { - return false; - } - } - if (lt) { - if (needDomLTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) { - needDomLTPre = false; - } - } - if (c.operator === '<' || c.operator === '<=') { - lower = lowerLT(lt, c, options); - if (lower === c && lower !== lt) { - return false; - } - } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) { - return false; - } - } - if (!c.operator && (lt || gt) && gtltComp !== 0) { - return false; - } - } - if (gt && hasDomLT && !lt && gtltComp !== 0) { - return false; - } - if (lt && hasDomGT && !gt && gtltComp !== 0) { - return false; - } - if (needDomGTPre || needDomLTPre) { - return false; - } - return true; -}; -const higherGT = (a, b, options) => { - if (!a) { - return b; - } - const comp = compare(a.semver, b.semver, options); - return comp > 0 ? a : comp < 0 ? b : b.operator === '>' && a.operator === '>=' ? b : a; -}; -const lowerLT = (a, b, options) => { - if (!a) { - return b; - } - const comp = compare(a.semver, b.semver, options); - return comp < 0 ? a : comp > 0 ? b : b.operator === '<' && a.operator === '<=' ? b : a; -}; -var subset_1 = subset; -const internalRe = re$3.exports; -var semver$1 = { - re: internalRe.re, - src: internalRe.src, - tokens: internalRe.t, - SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, - SemVer: semver$2, - compareIdentifiers: identifiers.compareIdentifiers, - rcompareIdentifiers: identifiers.rcompareIdentifiers, - parse: parse_1, - valid: valid_1, - clean: clean_1, - inc: inc_1, - diff: diff_1, - major: major_1, - minor: minor_1, - patch: patch_1, - prerelease: prerelease_1, - compare: compare_1, - rcompare: rcompare_1, - compareLoose: compareLoose_1, - compareBuild: compareBuild_1, - sort: sort_1, - rsort: rsort_1, - gt: gt_1, - lt: lt_1, - eq: eq_1, - neq: neq_1, - gte: gte_1, - lte: lte_1, - cmp: cmp_1, - coerce: coerce_1, - Comparator: requireComparator(), - Range: requireRange(), - satisfies: satisfies_1, - toComparators: toComparators_1, - maxSatisfying: maxSatisfying_1, - minSatisfying: minSatisfying_1, - minVersion: minVersion_1, - validRange: valid, - outside: outside_1, - gtr: gtr_1, - ltr: ltr_1, - intersects: intersects_1, - simplifyRange: simplify, - subset: subset_1 -}; -var semver = semver$1; -var builtins = function ({ - version = process.version, - experimental = false -} = {}) { - var coreModules = ['assert', 'buffer', 'child_process', 'cluster', 'console', 'constants', 'crypto', 'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'https', 'module', 'net', 'os', 'path', 'punycode', 'querystring', 'readline', 'repl', 'stream', 'string_decoder', 'sys', 'timers', 'tls', 'tty', 'url', 'util', 'vm', 'zlib']; - if (semver.lt(version, '6.0.0')) coreModules.push('freelist'); - if (semver.gte(version, '1.0.0')) coreModules.push('v8'); - if (semver.gte(version, '1.1.0')) coreModules.push('process'); - if (semver.gte(version, '8.0.0')) coreModules.push('inspector'); - if (semver.gte(version, '8.1.0')) coreModules.push('async_hooks'); - if (semver.gte(version, '8.4.0')) coreModules.push('http2'); - if (semver.gte(version, '8.5.0')) coreModules.push('perf_hooks'); - if (semver.gte(version, '10.0.0')) coreModules.push('trace_events'); - if (semver.gte(version, '10.5.0') && (experimental || semver.gte(version, '12.0.0'))) { - coreModules.push('worker_threads'); - } - if (semver.gte(version, '12.16.0') && experimental) { - coreModules.push('wasi'); - } - return coreModules; -}; -const reader = { - read -}; -function read(jsonPath) { - return find(_path().dirname(jsonPath)); -} -function find(dir) { - try { - const string = _fs().default.readFileSync(_path().toNamespacedPath(_path().join(dir, 'package.json')), 'utf8'); - return { - string - }; - } catch (error) { - if (error.code === 'ENOENT') { - const parent = _path().dirname(dir); - if (dir !== parent) return find(parent); - return { - string: undefined - }; - } - throw error; - } -} -const isWindows = process.platform === 'win32'; -const own$1 = {}.hasOwnProperty; -const codes = {}; -const messages = new Map(); -const nodeInternalPrefix = '__node_internal_'; -let userStackTraceLimit; -codes.ERR_INVALID_MODULE_SPECIFIER = createError('ERR_INVALID_MODULE_SPECIFIER', (request, reason, base = undefined) => { - return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ''}`; -}, TypeError); -codes.ERR_INVALID_PACKAGE_CONFIG = createError('ERR_INVALID_PACKAGE_CONFIG', (path, base, message) => { - return `Invalid package config ${path}${base ? ` while importing ${base}` : ''}${message ? `. ${message}` : ''}`; -}, Error); -codes.ERR_INVALID_PACKAGE_TARGET = createError('ERR_INVALID_PACKAGE_TARGET', (pkgPath, key, target, isImport = false, base = undefined) => { - const relError = typeof target === 'string' && !isImport && target.length > 0 && !target.startsWith('./'); - if (key === '.') { - _assert()(isImport === false); - return `Invalid "exports" main target ${JSON.stringify(target)} defined ` + `in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ''}${relError ? '; targets must start with "./"' : ''}`; - } - return `Invalid "${isImport ? 'imports' : 'exports'}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ''}${relError ? '; targets must start with "./"' : ''}`; -}, Error); -codes.ERR_MODULE_NOT_FOUND = createError('ERR_MODULE_NOT_FOUND', (path, base, type = 'package') => { - return `Cannot find ${type} '${path}' imported from ${base}`; -}, Error); -codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError('ERR_PACKAGE_IMPORT_NOT_DEFINED', (specifier, packagePath, base) => { - return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath}package.json` : ''} imported from ${base}`; -}, TypeError); -codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError('ERR_PACKAGE_PATH_NOT_EXPORTED', (pkgPath, subpath, base = undefined) => { - if (subpath === '.') return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ''}`; - return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ''}`; -}, Error); -codes.ERR_UNSUPPORTED_DIR_IMPORT = createError('ERR_UNSUPPORTED_DIR_IMPORT', "Directory import '%s' is not supported " + 'resolving ES modules imported from %s', Error); -codes.ERR_UNKNOWN_FILE_EXTENSION = createError('ERR_UNKNOWN_FILE_EXTENSION', 'Unknown file extension "%s" for %s', TypeError); -codes.ERR_INVALID_ARG_VALUE = createError('ERR_INVALID_ARG_VALUE', (name, value, reason = 'is invalid') => { - let inspected = (0, _util().inspect)(value); - if (inspected.length > 128) { - inspected = `${inspected.slice(0, 128)}...`; - } - const type = name.includes('.') ? 'property' : 'argument'; - return `The ${type} '${name}' ${reason}. Received ${inspected}`; -}, TypeError); -codes.ERR_UNSUPPORTED_ESM_URL_SCHEME = createError('ERR_UNSUPPORTED_ESM_URL_SCHEME', url => { - let message = 'Only file and data URLs are supported by the default ESM loader'; - if (isWindows && url.protocol.length === 2) { - message += '. On Windows, absolute paths must be valid file:// URLs'; - } - message += `. Received protocol '${url.protocol}'`; - return message; -}, Error); -function createError(sym, value, def) { - messages.set(sym, value); - return makeNodeErrorWithCode(def, sym); -} -function makeNodeErrorWithCode(Base, key) { - return NodeError; - function NodeError(...args) { - const limit = Error.stackTraceLimit; - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0; - const error = new Base(); - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit; - const message = getMessage(key, args, error); - Object.defineProperty(error, 'message', { - value: message, - enumerable: false, - writable: true, - configurable: true - }); - Object.defineProperty(error, 'toString', { - value() { - return `${this.name} [${key}]: ${this.message}`; - }, - enumerable: false, - writable: true, - configurable: true - }); - addCodeToName(error, Base.name, key); - error.code = key; - return error; - } -} -const addCodeToName = hideStackFrames(function (error, name, code) { - error = captureLargerStackTrace(error); - error.name = `${name} [${code}]`; - error.stack; - if (name === 'SystemError') { - Object.defineProperty(error, 'name', { - value: name, - enumerable: false, - writable: true, - configurable: true - }); - } else { - delete error.name; - } -}); -function isErrorStackTraceLimitWritable() { - const desc = Object.getOwnPropertyDescriptor(Error, 'stackTraceLimit'); - if (desc === undefined) { - return Object.isExtensible(Error); - } - return own$1.call(desc, 'writable') ? desc.writable : desc.set !== undefined; -} -function hideStackFrames(fn) { - const hidden = nodeInternalPrefix + fn.name; - Object.defineProperty(fn, 'name', { - value: hidden - }); - return fn; -} -const captureLargerStackTrace = hideStackFrames(function (error) { - const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable(); - if (stackTraceLimitIsWritable) { - userStackTraceLimit = Error.stackTraceLimit; - Error.stackTraceLimit = Number.POSITIVE_INFINITY; - } - Error.captureStackTrace(error); - if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit; - return error; -}); -function getMessage(key, args, self) { - const message = messages.get(key); - if (typeof message === 'function') { - _assert()(message.length <= args.length, `Code: ${key}; The provided arguments length (${args.length}) does not ` + `match the required ones (${message.length}).`); - return Reflect.apply(message, self, args); - } - const expectedLength = (message.match(/%[dfijoOs]/g) || []).length; - _assert()(expectedLength === args.length, `Code: ${key}; The provided arguments length (${args.length}) does not ` + `match the required ones (${expectedLength}).`); - if (args.length === 0) return message; - args.unshift(message); - return Reflect.apply(_util().format, null, args); -} -const { - ERR_UNKNOWN_FILE_EXTENSION -} = codes; -const extensionFormatMap = { - __proto__: null, - '.cjs': 'commonjs', - '.js': 'module', - '.mjs': 'module' -}; -function defaultGetFormat(url) { - if (url.startsWith('node:')) { - return { - format: 'builtin' - }; - } - const parsed = new (_url().URL)(url); - if (parsed.protocol === 'data:') { - const { - 1: mime - } = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(parsed.pathname) || [null, null]; - const format = mime === 'text/javascript' ? 'module' : null; - return { - format - }; - } - if (parsed.protocol === 'file:') { - const ext = _path().extname(parsed.pathname); - let format; - if (ext === '.js') { - format = getPackageType(parsed.href) === 'module' ? 'module' : 'commonjs'; - } else { - format = extensionFormatMap[ext]; - } - if (!format) { - throw new ERR_UNKNOWN_FILE_EXTENSION(ext, (0, _url().fileURLToPath)(url)); - } - return { - format: format || null - }; - } - return { - format: null - }; -} -const listOfBuiltins = builtins(); -const { - ERR_INVALID_MODULE_SPECIFIER, - ERR_INVALID_PACKAGE_CONFIG, - ERR_INVALID_PACKAGE_TARGET, - ERR_MODULE_NOT_FOUND, - ERR_PACKAGE_IMPORT_NOT_DEFINED, - ERR_PACKAGE_PATH_NOT_EXPORTED, - ERR_UNSUPPORTED_DIR_IMPORT, - ERR_UNSUPPORTED_ESM_URL_SCHEME, - ERR_INVALID_ARG_VALUE -} = codes; -const own = {}.hasOwnProperty; -const DEFAULT_CONDITIONS = Object.freeze(['node', 'import']); -const DEFAULT_CONDITIONS_SET = new Set(DEFAULT_CONDITIONS); -const invalidSegmentRegEx = /(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/; -const patternRegEx = /\*/g; -const encodedSepRegEx = /%2f|%2c/i; -const emittedPackageWarnings = new Set(); -const packageJsonCache = new Map(); -function emitFolderMapDeprecation(match, pjsonUrl, isExports, base) { - const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl); - if (emittedPackageWarnings.has(pjsonPath + '|' + match)) return; - emittedPackageWarnings.add(pjsonPath + '|' + match); - process.emitWarning(`Use of deprecated folder mapping "${match}" in the ${isExports ? '"exports"' : '"imports"'} field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ''}.\n` + `Update this package.json to use a subpath pattern like "${match}*".`, 'DeprecationWarning', 'DEP0148'); -} -function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) { - const { - format - } = defaultGetFormat(url.href); - if (format !== 'module') return; - const path = (0, _url().fileURLToPath)(url.href); - const pkgPath = (0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)); - const basePath = (0, _url().fileURLToPath)(base); - if (main) process.emitWarning(`Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, ` + `excluding the full filename and extension to the resolved file at "${path.slice(pkgPath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is` + 'deprecated for ES modules.', 'DeprecationWarning', 'DEP0151');else process.emitWarning(`No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path.slice(pkgPath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`, 'DeprecationWarning', 'DEP0151'); -} -function getConditionsSet(conditions) { - if (conditions !== undefined && conditions !== DEFAULT_CONDITIONS) { - if (!Array.isArray(conditions)) { - throw new ERR_INVALID_ARG_VALUE('conditions', conditions, 'expected an array'); - } - return new Set(conditions); - } - return DEFAULT_CONDITIONS_SET; -} -function tryStatSync(path) { - try { - return (0, _fs().statSync)(path); - } catch (_unused) { - return new (_fs().Stats)(); - } -} -function getPackageConfig(path, specifier, base) { - const existing = packageJsonCache.get(path); - if (existing !== undefined) { - return existing; - } - const source = reader.read(path).string; - if (source === undefined) { - const packageConfig = { - pjsonPath: path, - exists: false, - main: undefined, - name: undefined, - type: 'none', - exports: undefined, - imports: undefined - }; - packageJsonCache.set(path, packageConfig); - return packageConfig; - } - let packageJson; - try { - packageJson = JSON.parse(source); - } catch (error) { - throw new ERR_INVALID_PACKAGE_CONFIG(path, (base ? `"${specifier}" from ` : '') + (0, _url().fileURLToPath)(base || specifier), error.message); - } - const { - exports, - imports, - main, - name, - type - } = packageJson; - const packageConfig = { - pjsonPath: path, - exists: true, - main: typeof main === 'string' ? main : undefined, - name: typeof name === 'string' ? name : undefined, - type: type === 'module' || type === 'commonjs' ? type : 'none', - exports, - imports: imports && typeof imports === 'object' ? imports : undefined - }; - packageJsonCache.set(path, packageConfig); - return packageConfig; -} -function getPackageScopeConfig(resolved) { - let packageJsonUrl = new (_url().URL)('./package.json', resolved); - while (true) { - const packageJsonPath = packageJsonUrl.pathname; - if (packageJsonPath.endsWith('node_modules/package.json')) break; - const packageConfig = getPackageConfig((0, _url().fileURLToPath)(packageJsonUrl), resolved); - if (packageConfig.exists) return packageConfig; - const lastPackageJsonUrl = packageJsonUrl; - packageJsonUrl = new (_url().URL)('../package.json', packageJsonUrl); - if (packageJsonUrl.pathname === lastPackageJsonUrl.pathname) break; - } - const packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); - const packageConfig = { - pjsonPath: packageJsonPath, - exists: false, - main: undefined, - name: undefined, - type: 'none', - exports: undefined, - imports: undefined - }; - packageJsonCache.set(packageJsonPath, packageConfig); - return packageConfig; -} -function fileExists(url) { - return tryStatSync((0, _url().fileURLToPath)(url)).isFile(); -} -function legacyMainResolve(packageJsonUrl, packageConfig, base) { - let guess; - if (packageConfig.main !== undefined) { - guess = new (_url().URL)(`./${packageConfig.main}`, packageJsonUrl); - if (fileExists(guess)) return guess; - const tries = [`./${packageConfig.main}.js`, `./${packageConfig.main}.json`, `./${packageConfig.main}.node`, `./${packageConfig.main}/index.js`, `./${packageConfig.main}/index.json`, `./${packageConfig.main}/index.node`]; - let i = -1; - while (++i < tries.length) { - guess = new (_url().URL)(tries[i], packageJsonUrl); - if (fileExists(guess)) break; - guess = undefined; - } - if (guess) { - emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main); - return guess; - } - } - const tries = ['./index.js', './index.json', './index.node']; - let i = -1; - while (++i < tries.length) { - guess = new (_url().URL)(tries[i], packageJsonUrl); - if (fileExists(guess)) break; - guess = undefined; - } - if (guess) { - emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main); - return guess; - } - throw new ERR_MODULE_NOT_FOUND((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), (0, _url().fileURLToPath)(base)); -} -function finalizeResolution(resolved, base) { - if (encodedSepRegEx.test(resolved.pathname)) throw new ERR_INVALID_MODULE_SPECIFIER(resolved.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base)); - const path = (0, _url().fileURLToPath)(resolved); - const stats = tryStatSync(path.endsWith('/') ? path.slice(-1) : path); - if (stats.isDirectory()) { - const error = new ERR_UNSUPPORTED_DIR_IMPORT(path, (0, _url().fileURLToPath)(base)); - error.url = String(resolved); - throw error; - } - if (!stats.isFile()) { - throw new ERR_MODULE_NOT_FOUND(path || resolved.pathname, base && (0, _url().fileURLToPath)(base), 'module'); - } - return resolved; -} -function throwImportNotDefined(specifier, packageJsonUrl, base) { - throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier, packageJsonUrl && (0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), (0, _url().fileURLToPath)(base)); -} -function throwExportsNotFound(subpath, packageJsonUrl, base) { - throw new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base)); -} -function throwInvalidSubpath(subpath, packageJsonUrl, internal, base) { - const reason = `request is not a valid subpath for the "${internal ? 'imports' : 'exports'}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`; - throw new ERR_INVALID_MODULE_SPECIFIER(subpath, reason, base && (0, _url().fileURLToPath)(base)); -} -function throwInvalidPackageTarget(subpath, target, packageJsonUrl, internal, base) { - target = typeof target === 'object' && target !== null ? JSON.stringify(target, null, '') : `${target}`; - throw new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base)); -} -function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, conditions) { - if (subpath !== '' && !pattern && target[target.length - 1] !== '/') throwInvalidPackageTarget(match, target, packageJsonUrl, internal, base); - if (!target.startsWith('./')) { - if (internal && !target.startsWith('../') && !target.startsWith('/')) { - let isURL = false; - try { - new (_url().URL)(target); - isURL = true; - } catch (_unused2) {} - if (!isURL) { - const exportTarget = pattern ? target.replace(patternRegEx, subpath) : target + subpath; - return packageResolve(exportTarget, packageJsonUrl, conditions); - } - } - throwInvalidPackageTarget(match, target, packageJsonUrl, internal, base); - } - if (invalidSegmentRegEx.test(target.slice(2))) throwInvalidPackageTarget(match, target, packageJsonUrl, internal, base); - const resolved = new (_url().URL)(target, packageJsonUrl); - const resolvedPath = resolved.pathname; - const packagePath = new (_url().URL)('.', packageJsonUrl).pathname; - if (!resolvedPath.startsWith(packagePath)) throwInvalidPackageTarget(match, target, packageJsonUrl, internal, base); - if (subpath === '') return resolved; - if (invalidSegmentRegEx.test(subpath)) throwInvalidSubpath(match + subpath, packageJsonUrl, internal, base); - if (pattern) return new (_url().URL)(resolved.href.replace(patternRegEx, subpath)); - return new (_url().URL)(subpath, resolved); -} -function isArrayIndex(key) { - const keyNumber = Number(key); - if (`${keyNumber}` !== key) return false; - return keyNumber >= 0 && keyNumber < 0xffffffff; -} -function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, conditions) { - if (typeof target === 'string') { - return resolvePackageTargetString(target, subpath, packageSubpath, packageJsonUrl, base, pattern, internal, conditions); - } - if (Array.isArray(target)) { - const targetList = target; - if (targetList.length === 0) return null; - let lastException; - let i = -1; - while (++i < targetList.length) { - const targetItem = targetList[i]; - let resolved; - try { - resolved = resolvePackageTarget(packageJsonUrl, targetItem, subpath, packageSubpath, base, pattern, internal, conditions); - } catch (error) { - lastException = error; - if (error.code === 'ERR_INVALID_PACKAGE_TARGET') continue; - throw error; - } - if (resolved === undefined) continue; - if (resolved === null) { - lastException = null; - continue; - } - return resolved; - } - if (lastException === undefined || lastException === null) { - return lastException; - } - throw lastException; - } - if (typeof target === 'object' && target !== null) { - const keys = Object.getOwnPropertyNames(target); - let i = -1; - while (++i < keys.length) { - const key = keys[i]; - if (isArrayIndex(key)) { - throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl), base, '"exports" cannot contain numeric property keys.'); - } - } - i = -1; - while (++i < keys.length) { - const key = keys[i]; - if (key === 'default' || conditions && conditions.has(key)) { - const conditionalTarget = target[key]; - const resolved = resolvePackageTarget(packageJsonUrl, conditionalTarget, subpath, packageSubpath, base, pattern, internal, conditions); - if (resolved === undefined) continue; - return resolved; - } - } - return undefined; - } - if (target === null) { - return null; - } - throwInvalidPackageTarget(packageSubpath, target, packageJsonUrl, internal, base); -} -function isConditionalExportsMainSugar(exports, packageJsonUrl, base) { - if (typeof exports === 'string' || Array.isArray(exports)) return true; - if (typeof exports !== 'object' || exports === null) return false; - const keys = Object.getOwnPropertyNames(exports); - let isConditionalSugar = false; - let i = 0; - let j = -1; - while (++j < keys.length) { - const key = keys[j]; - const curIsConditionalSugar = key === '' || key[0] !== '.'; - if (i++ === 0) { - isConditionalSugar = curIsConditionalSugar; - } else if (isConditionalSugar !== curIsConditionalSugar) { - throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl), base, '"exports" cannot contain some keys starting with \'.\' and some not.' + ' The exports object must either be an object of package subpath keys' + ' or an object of main entry condition name keys only.'); - } - } - return isConditionalSugar; -} -function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) { - let exports = packageConfig.exports; - if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) exports = { - '.': exports - }; - if (own.call(exports, packageSubpath)) { - const target = exports[packageSubpath]; - const resolved = resolvePackageTarget(packageJsonUrl, target, '', packageSubpath, base, false, false, conditions); - if (resolved === null || resolved === undefined) throwExportsNotFound(packageSubpath, packageJsonUrl, base); - return { - resolved, - exact: true - }; - } - let bestMatch = ''; - const keys = Object.getOwnPropertyNames(exports); - let i = -1; - while (++i < keys.length) { - const key = keys[i]; - if (key[key.length - 1] === '*' && packageSubpath.startsWith(key.slice(0, -1)) && packageSubpath.length >= key.length && key.length > bestMatch.length) { - bestMatch = key; - } else if (key[key.length - 1] === '/' && packageSubpath.startsWith(key) && key.length > bestMatch.length) { - bestMatch = key; - } - } - if (bestMatch) { - const target = exports[bestMatch]; - const pattern = bestMatch[bestMatch.length - 1] === '*'; - const subpath = packageSubpath.slice(bestMatch.length - (pattern ? 1 : 0)); - const resolved = resolvePackageTarget(packageJsonUrl, target, subpath, bestMatch, base, pattern, false, conditions); - if (resolved === null || resolved === undefined) throwExportsNotFound(packageSubpath, packageJsonUrl, base); - if (!pattern) emitFolderMapDeprecation(bestMatch, packageJsonUrl, true, base); - return { - resolved, - exact: pattern - }; - } - throwExportsNotFound(packageSubpath, packageJsonUrl, base); -} -function packageImportsResolve(name, base, conditions) { - if (name === '#' || name.startsWith('#/')) { - const reason = 'is not a valid internal imports specifier name'; - throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, (0, _url().fileURLToPath)(base)); - } - let packageJsonUrl; - const packageConfig = getPackageScopeConfig(base); - if (packageConfig.exists) { - packageJsonUrl = (0, _url().pathToFileURL)(packageConfig.pjsonPath); - const imports = packageConfig.imports; - if (imports) { - if (own.call(imports, name)) { - const resolved = resolvePackageTarget(packageJsonUrl, imports[name], '', name, base, false, true, conditions); - if (resolved !== null) return { - resolved, - exact: true - }; - } else { - let bestMatch = ''; - const keys = Object.getOwnPropertyNames(imports); - let i = -1; - while (++i < keys.length) { - const key = keys[i]; - if (key[key.length - 1] === '*' && name.startsWith(key.slice(0, -1)) && name.length >= key.length && key.length > bestMatch.length) { - bestMatch = key; - } else if (key[key.length - 1] === '/' && name.startsWith(key) && key.length > bestMatch.length) { - bestMatch = key; - } - } - if (bestMatch) { - const target = imports[bestMatch]; - const pattern = bestMatch[bestMatch.length - 1] === '*'; - const subpath = name.slice(bestMatch.length - (pattern ? 1 : 0)); - const resolved = resolvePackageTarget(packageJsonUrl, target, subpath, bestMatch, base, pattern, true, conditions); - if (resolved !== null) { - if (!pattern) emitFolderMapDeprecation(bestMatch, packageJsonUrl, false, base); - return { - resolved, - exact: pattern - }; - } - } - } - } - } - throwImportNotDefined(name, packageJsonUrl, base); -} -function getPackageType(url) { - const packageConfig = getPackageScopeConfig(url); - return packageConfig.type; -} -function parsePackageName(specifier, base) { - let separatorIndex = specifier.indexOf('/'); - let validPackageName = true; - let isScoped = false; - if (specifier[0] === '@') { - isScoped = true; - if (separatorIndex === -1 || specifier.length === 0) { - validPackageName = false; - } else { - separatorIndex = specifier.indexOf('/', separatorIndex + 1); - } - } - const packageName = separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex); - let i = -1; - while (++i < packageName.length) { - if (packageName[i] === '%' || packageName[i] === '\\') { - validPackageName = false; - break; - } - } - if (!validPackageName) { - throw new ERR_INVALID_MODULE_SPECIFIER(specifier, 'is not a valid package name', (0, _url().fileURLToPath)(base)); - } - const packageSubpath = '.' + (separatorIndex === -1 ? '' : specifier.slice(separatorIndex)); - return { - packageName, - packageSubpath, - isScoped - }; -} -function packageResolve(specifier, base, conditions) { - const { - packageName, - packageSubpath, - isScoped - } = parsePackageName(specifier, base); - const packageConfig = getPackageScopeConfig(base); - if (packageConfig.exists) { - const packageJsonUrl = (0, _url().pathToFileURL)(packageConfig.pjsonPath); - if (packageConfig.name === packageName && packageConfig.exports !== undefined && packageConfig.exports !== null) { - return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions).resolved; - } - } - let packageJsonUrl = new (_url().URL)('./node_modules/' + packageName + '/package.json', base); - let packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); - let lastPath; - do { - const stat = tryStatSync(packageJsonPath.slice(0, -13)); - if (!stat.isDirectory()) { - lastPath = packageJsonPath; - packageJsonUrl = new (_url().URL)((isScoped ? '../../../../node_modules/' : '../../../node_modules/') + packageName + '/package.json', packageJsonUrl); - packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); - continue; - } - const packageConfig = getPackageConfig(packageJsonPath, specifier, base); - if (packageConfig.exports !== undefined && packageConfig.exports !== null) return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions).resolved; - if (packageSubpath === '.') return legacyMainResolve(packageJsonUrl, packageConfig, base); - return new (_url().URL)(packageSubpath, packageJsonUrl); - } while (packageJsonPath.length !== lastPath.length); - throw new ERR_MODULE_NOT_FOUND(packageName, (0, _url().fileURLToPath)(base)); -} -function isRelativeSpecifier(specifier) { - if (specifier[0] === '.') { - if (specifier.length === 1 || specifier[1] === '/') return true; - if (specifier[1] === '.' && (specifier.length === 2 || specifier[2] === '/')) { - return true; - } - } - return false; -} -function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) { - if (specifier === '') return false; - if (specifier[0] === '/') return true; - return isRelativeSpecifier(specifier); -} -function moduleResolve(specifier, base, conditions) { - let resolved; - if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) { - resolved = new (_url().URL)(specifier, base); - } else if (specifier[0] === '#') { - ({ - resolved - } = packageImportsResolve(specifier, base, conditions)); - } else { - try { - resolved = new (_url().URL)(specifier); - } catch (_unused3) { - resolved = packageResolve(specifier, base, conditions); - } - } - return finalizeResolution(resolved, base); -} -function defaultResolve(specifier, context = {}) { - const { - parentURL - } = context; - let parsed; - try { - parsed = new (_url().URL)(specifier); - if (parsed.protocol === 'data:') { - return { - url: specifier - }; - } - } catch (_unused4) {} - if (parsed && parsed.protocol === 'node:') return { - url: specifier - }; - if (parsed && parsed.protocol !== 'file:' && parsed.protocol !== 'data:') throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed); - if (listOfBuiltins.includes(specifier)) { - return { - url: 'node:' + specifier - }; - } - if (parentURL.startsWith('data:')) { - new (_url().URL)(specifier, parentURL); - } - const conditions = getConditionsSet(context.conditions); - let url = moduleResolve(specifier, new (_url().URL)(parentURL), conditions); - const urlPath = (0, _url().fileURLToPath)(url); - const real = (0, _fs().realpathSync)(urlPath); - const old = url; - url = (0, _url().pathToFileURL)(real + (urlPath.endsWith(_path().sep) ? '/' : '')); - url.search = old.search; - url.hash = old.hash; - return { - url: `${url}` - }; -} -function resolve(_x, _x2) { - return _resolve.apply(this, arguments); -} -function _resolve() { - _resolve = _asyncToGenerator(function* (specifier, parent) { - if (!parent) { - throw new Error('Please pass `parent`: `import-meta-resolve` cannot ponyfill that'); - } - try { - return defaultResolve(specifier, { - parentURL: parent - }).url; - } catch (error) { - return error.code === 'ERR_UNSUPPORTED_DIR_IMPORT' ? error.url : Promise.reject(error); - } - }); - return _resolve.apply(this, arguments); -} -0 && 0; - -//# sourceMappingURL=import-meta-resolve.js.map - - -/***/ }), - -/***/ 69703: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.assertSimpleType = assertSimpleType; -exports.makeStrongCache = makeStrongCache; -exports.makeStrongCacheSync = makeStrongCacheSync; -exports.makeWeakCache = makeWeakCache; -exports.makeWeakCacheSync = makeWeakCacheSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _async = __nccwpck_require__(31528); -var _util = __nccwpck_require__(28822); -const synchronize = gen => { - return _gensync()(gen).sync; -}; -function* genTrue() { - return true; -} -function makeWeakCache(handler) { - return makeCachedFunction(WeakMap, handler); -} -function makeWeakCacheSync(handler) { - return synchronize(makeWeakCache(handler)); -} -function makeStrongCache(handler) { - return makeCachedFunction(Map, handler); -} -function makeStrongCacheSync(handler) { - return synchronize(makeStrongCache(handler)); -} -function makeCachedFunction(CallCache, handler) { - const callCacheSync = new CallCache(); - const callCacheAsync = new CallCache(); - const futureCache = new CallCache(); - return function* cachedFunction(arg, data) { - const asyncContext = yield* (0, _async.isAsync)(); - const callCache = asyncContext ? callCacheAsync : callCacheSync; - const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data); - if (cached.valid) return cached.value; - const cache = new CacheConfigurator(data); - const handlerResult = handler(arg, cache); - let finishLock; - let value; - if ((0, _util.isIterableIterator)(handlerResult)) { - value = yield* (0, _async.onFirstPause)(handlerResult, () => { - finishLock = setupAsyncLocks(cache, futureCache, arg); - }); - } else { - value = handlerResult; - } - updateFunctionCache(callCache, cache, arg, value); - if (finishLock) { - futureCache.delete(arg); - finishLock.release(value); - } - return value; - }; -} -function* getCachedValue(cache, arg, data) { - const cachedValue = cache.get(arg); - if (cachedValue) { - for (const { - value, - valid - } of cachedValue) { - if (yield* valid(data)) return { - valid: true, - value - }; - } - } - return { - valid: false, - value: null - }; -} -function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) { - const cached = yield* getCachedValue(callCache, arg, data); - if (cached.valid) { - return cached; - } - if (asyncContext) { - const cached = yield* getCachedValue(futureCache, arg, data); - if (cached.valid) { - const value = yield* (0, _async.waitFor)(cached.value.promise); - return { - valid: true, - value - }; - } - } - return { - valid: false, - value: null - }; -} -function setupAsyncLocks(config, futureCache, arg) { - const finishLock = new Lock(); - updateFunctionCache(futureCache, config, arg, finishLock); - return finishLock; -} -function updateFunctionCache(cache, config, arg, value) { - if (!config.configured()) config.forever(); - let cachedValue = cache.get(arg); - config.deactivate(); - switch (config.mode()) { - case "forever": - cachedValue = [{ - value, - valid: genTrue - }]; - cache.set(arg, cachedValue); - break; - case "invalidate": - cachedValue = [{ - value, - valid: config.validator() - }]; - cache.set(arg, cachedValue); - break; - case "valid": - if (cachedValue) { - cachedValue.push({ - value, - valid: config.validator() - }); - } else { - cachedValue = [{ - value, - valid: config.validator() - }]; - cache.set(arg, cachedValue); - } - } -} -class CacheConfigurator { - constructor(data) { - this._active = true; - this._never = false; - this._forever = false; - this._invalidate = false; - this._configured = false; - this._pairs = []; - this._data = void 0; - this._data = data; - } - simple() { - return makeSimpleConfigurator(this); - } - mode() { - if (this._never) return "never"; - if (this._forever) return "forever"; - if (this._invalidate) return "invalidate"; - return "valid"; - } - forever() { - if (!this._active) { - throw new Error("Cannot change caching after evaluation has completed."); - } - if (this._never) { - throw new Error("Caching has already been configured with .never()"); - } - this._forever = true; - this._configured = true; - } - never() { - if (!this._active) { - throw new Error("Cannot change caching after evaluation has completed."); - } - if (this._forever) { - throw new Error("Caching has already been configured with .forever()"); - } - this._never = true; - this._configured = true; - } - using(handler) { - if (!this._active) { - throw new Error("Cannot change caching after evaluation has completed."); - } - if (this._never || this._forever) { - throw new Error("Caching has already been configured with .never or .forever()"); - } - this._configured = true; - const key = handler(this._data); - const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`); - if ((0, _async.isThenable)(key)) { - return key.then(key => { - this._pairs.push([key, fn]); - return key; - }); - } - this._pairs.push([key, fn]); - return key; - } - invalidate(handler) { - this._invalidate = true; - return this.using(handler); - } - validator() { - const pairs = this._pairs; - return function* (data) { - for (const [key, fn] of pairs) { - if (key !== (yield* fn(data))) return false; - } - return true; - }; - } - deactivate() { - this._active = false; - } - configured() { - return this._configured; - } -} -function makeSimpleConfigurator(cache) { - function cacheFn(val) { - if (typeof val === "boolean") { - if (val) cache.forever();else cache.never(); - return; - } - return cache.using(() => assertSimpleType(val())); - } - cacheFn.forever = () => cache.forever(); - cacheFn.never = () => cache.never(); - cacheFn.using = cb => cache.using(() => assertSimpleType(cb())); - cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb())); - return cacheFn; -} -function assertSimpleType(value) { - if ((0, _async.isThenable)(value)) { - throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`); - } - if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") { - throw new Error("Cache keys must be either string, boolean, number, null, or undefined."); - } - return value; -} -class Lock { - constructor() { - this.released = false; - this.promise = void 0; - this._resolve = void 0; - this.promise = new Promise(resolve => { - this._resolve = resolve; - }); - } - release(value) { - this.released = true; - this._resolve(value); - } -} -0 && 0; - -//# sourceMappingURL=caching.js.map - - -/***/ }), - -/***/ 21356: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildPresetChain = buildPresetChain; -exports.buildPresetChainWalker = void 0; -exports.buildRootChain = buildRootChain; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -var _options = __nccwpck_require__(10330); -var _patternToRegex = __nccwpck_require__(64513); -var _printer = __nccwpck_require__(28141); -var _rewriteStackTrace = __nccwpck_require__(36680); -var _configError = __nccwpck_require__(9813); -var _files = __nccwpck_require__(86268); -var _caching = __nccwpck_require__(69703); -var _configDescriptors = __nccwpck_require__(88258); -const debug = _debug()("babel:config:config-chain"); -function* buildPresetChain(arg, context) { - const chain = yield* buildPresetChainWalker(arg, context); - if (!chain) return null; - return { - plugins: dedupDescriptors(chain.plugins), - presets: dedupDescriptors(chain.presets), - options: chain.options.map(o => normalizeOptions(o)), - files: new Set() - }; -} -const buildPresetChainWalker = makeChainWalker({ - root: preset => loadPresetDescriptors(preset), - env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName), - overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index), - overridesEnv: (preset, index, envName) => loadPresetOverridesEnvDescriptors(preset)(index)(envName), - createLogger: () => () => {} -}); -exports.buildPresetChainWalker = buildPresetChainWalker; -const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors)); -const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName))); -const loadPresetOverridesDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index))); -const loadPresetOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index, envName)))); -function* buildRootChain(opts, context) { - let configReport, babelRcReport; - const programmaticLogger = new _printer.ConfigPrinter(); - const programmaticChain = yield* loadProgrammaticChain({ - options: opts, - dirname: context.cwd - }, context, undefined, programmaticLogger); - if (!programmaticChain) return null; - const programmaticReport = yield* programmaticLogger.output(); - let configFile; - if (typeof opts.configFile === "string") { - configFile = yield* (0, _files.loadConfig)(opts.configFile, context.cwd, context.envName, context.caller); - } else if (opts.configFile !== false) { - configFile = yield* (0, _files.findRootConfig)(context.root, context.envName, context.caller); - } - let { - babelrc, - babelrcRoots - } = opts; - let babelrcRootsDirectory = context.cwd; - const configFileChain = emptyChain(); - const configFileLogger = new _printer.ConfigPrinter(); - if (configFile) { - const validatedFile = validateConfigFile(configFile); - const result = yield* loadFileChain(validatedFile, context, undefined, configFileLogger); - if (!result) return null; - configReport = yield* configFileLogger.output(); - if (babelrc === undefined) { - babelrc = validatedFile.options.babelrc; - } - if (babelrcRoots === undefined) { - babelrcRootsDirectory = validatedFile.dirname; - babelrcRoots = validatedFile.options.babelrcRoots; - } - mergeChain(configFileChain, result); - } - let ignoreFile, babelrcFile; - let isIgnored = false; - const fileChain = emptyChain(); - if ((babelrc === true || babelrc === undefined) && typeof context.filename === "string") { - const pkgData = yield* (0, _files.findPackageData)(context.filename); - if (pkgData && babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)) { - ({ - ignore: ignoreFile, - config: babelrcFile - } = yield* (0, _files.findRelativeConfig)(pkgData, context.envName, context.caller)); - if (ignoreFile) { - fileChain.files.add(ignoreFile.filepath); - } - if (ignoreFile && shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)) { - isIgnored = true; - } - if (babelrcFile && !isIgnored) { - const validatedFile = validateBabelrcFile(babelrcFile); - const babelrcLogger = new _printer.ConfigPrinter(); - const result = yield* loadFileChain(validatedFile, context, undefined, babelrcLogger); - if (!result) { - isIgnored = true; - } else { - babelRcReport = yield* babelrcLogger.output(); - mergeChain(fileChain, result); - } - } - if (babelrcFile && isIgnored) { - fileChain.files.add(babelrcFile.filepath); - } - } - } - if (context.showConfig) { - console.log(`Babel configs on "${context.filename}" (ascending priority):\n` + [configReport, babelRcReport, programmaticReport].filter(x => !!x).join("\n\n") + "\n-----End Babel configs-----"); - } - const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain); - return { - plugins: isIgnored ? [] : dedupDescriptors(chain.plugins), - presets: isIgnored ? [] : dedupDescriptors(chain.presets), - options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)), - fileHandling: isIgnored ? "ignored" : "transpile", - ignore: ignoreFile || undefined, - babelrc: babelrcFile || undefined, - config: configFile || undefined, - files: chain.files - }; -} -function babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory) { - if (typeof babelrcRoots === "boolean") return babelrcRoots; - const absoluteRoot = context.root; - if (babelrcRoots === undefined) { - return pkgData.directories.indexOf(absoluteRoot) !== -1; - } - let babelrcPatterns = babelrcRoots; - if (!Array.isArray(babelrcPatterns)) { - babelrcPatterns = [babelrcPatterns]; - } - babelrcPatterns = babelrcPatterns.map(pat => { - return typeof pat === "string" ? _path().resolve(babelrcRootsDirectory, pat) : pat; - }); - if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) { - return pkgData.directories.indexOf(absoluteRoot) !== -1; - } - return babelrcPatterns.some(pat => { - if (typeof pat === "string") { - pat = (0, _patternToRegex.default)(pat, babelrcRootsDirectory); - } - return pkgData.directories.some(directory => { - return matchPattern(pat, babelrcRootsDirectory, directory, context); - }); - }); -} -const validateConfigFile = (0, _caching.makeWeakCacheSync)(file => ({ - filepath: file.filepath, - dirname: file.dirname, - options: (0, _options.validate)("configfile", file.options, file.filepath) -})); -const validateBabelrcFile = (0, _caching.makeWeakCacheSync)(file => ({ - filepath: file.filepath, - dirname: file.dirname, - options: (0, _options.validate)("babelrcfile", file.options, file.filepath) -})); -const validateExtendFile = (0, _caching.makeWeakCacheSync)(file => ({ - filepath: file.filepath, - dirname: file.dirname, - options: (0, _options.validate)("extendsfile", file.options, file.filepath) -})); -const loadProgrammaticChain = makeChainWalker({ - root: input => buildRootDescriptors(input, "base", _configDescriptors.createCachedDescriptors), - env: (input, envName) => buildEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, envName), - overrides: (input, index) => buildOverrideDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index), - overridesEnv: (input, index, envName) => buildOverrideEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index, envName), - createLogger: (input, context, baseLogger) => buildProgrammaticLogger(input, context, baseLogger) -}); -const loadFileChainWalker = makeChainWalker({ - root: file => loadFileDescriptors(file), - env: (file, envName) => loadFileEnvDescriptors(file)(envName), - overrides: (file, index) => loadFileOverridesDescriptors(file)(index), - overridesEnv: (file, index, envName) => loadFileOverridesEnvDescriptors(file)(index)(envName), - createLogger: (file, context, baseLogger) => buildFileLogger(file.filepath, context, baseLogger) -}); -function* loadFileChain(input, context, files, baseLogger) { - const chain = yield* loadFileChainWalker(input, context, files, baseLogger); - if (chain) { - chain.files.add(input.filepath); - } - return chain; -} -const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(file => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors)); -const loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))); -const loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))); -const loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName)))); -function buildFileLogger(filepath, context, baseLogger) { - if (!baseLogger) { - return () => {}; - } - return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Config, { - filepath - }); -} -function buildRootDescriptors({ - dirname, - options -}, alias, descriptors) { - return descriptors(dirname, options, alias); -} -function buildProgrammaticLogger(_, context, baseLogger) { - var _context$caller; - if (!baseLogger) { - return () => {}; - } - return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Programmatic, { - callerName: (_context$caller = context.caller) == null ? void 0 : _context$caller.name - }); -} -function buildEnvDescriptors({ - dirname, - options -}, alias, descriptors, envName) { - const opts = options.env && options.env[envName]; - return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null; -} -function buildOverrideDescriptors({ - dirname, - options -}, alias, descriptors, index) { - const opts = options.overrides && options.overrides[index]; - if (!opts) throw new Error("Assertion failure - missing override"); - return descriptors(dirname, opts, `${alias}.overrides[${index}]`); -} -function buildOverrideEnvDescriptors({ - dirname, - options -}, alias, descriptors, index, envName) { - const override = options.overrides && options.overrides[index]; - if (!override) throw new Error("Assertion failure - missing override"); - const opts = override.env && override.env[envName]; - return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null; -} -function makeChainWalker({ - root, - env, - overrides, - overridesEnv, - createLogger -}) { - return function* chainWalker(input, context, files = new Set(), baseLogger) { - const { - dirname - } = input; - const flattenedConfigs = []; - const rootOpts = root(input); - if (configIsApplicable(rootOpts, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: rootOpts, - envName: undefined, - index: undefined - }); - const envOpts = env(input, context.envName); - if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: envOpts, - envName: context.envName, - index: undefined - }); - } - (rootOpts.options.overrides || []).forEach((_, index) => { - const overrideOps = overrides(input, index); - if (configIsApplicable(overrideOps, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: overrideOps, - index, - envName: undefined - }); - const overrideEnvOpts = overridesEnv(input, index, context.envName); - if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) { - flattenedConfigs.push({ - config: overrideEnvOpts, - index, - envName: context.envName - }); - } - } - }); - } - if (flattenedConfigs.some(({ - config: { - options: { - ignore, - only - } - } - }) => shouldIgnore(context, ignore, only, dirname))) { - return null; - } - const chain = emptyChain(); - const logger = createLogger(input, context, baseLogger); - for (const { - config, - index, - envName - } of flattenedConfigs) { - if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) { - return null; - } - logger(config, index, envName); - yield* mergeChainOpts(chain, config); - } - return chain; - }; -} -function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) { - if (opts.extends === undefined) return true; - const file = yield* (0, _files.loadConfig)(opts.extends, dirname, context.envName, context.caller); - if (files.has(file)) { - throw new Error(`Configuration cycle detected loading ${file.filepath}.\n` + `File already loaded following the config chain:\n` + Array.from(files, file => ` - ${file.filepath}`).join("\n")); - } - files.add(file); - const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger); - files.delete(file); - if (!fileChain) return false; - mergeChain(chain, fileChain); - return true; -} -function mergeChain(target, source) { - target.options.push(...source.options); - target.plugins.push(...source.plugins); - target.presets.push(...source.presets); - for (const file of source.files) { - target.files.add(file); - } - return target; -} -function* mergeChainOpts(target, { - options, - plugins, - presets -}) { - target.options.push(options); - target.plugins.push(...(yield* plugins())); - target.presets.push(...(yield* presets())); - return target; -} -function emptyChain() { - return { - options: [], - presets: [], - plugins: [], - files: new Set() - }; -} -function normalizeOptions(opts) { - const options = Object.assign({}, opts); - delete options.extends; - delete options.env; - delete options.overrides; - delete options.plugins; - delete options.presets; - delete options.passPerPreset; - delete options.ignore; - delete options.only; - delete options.test; - delete options.include; - delete options.exclude; - if (Object.prototype.hasOwnProperty.call(options, "sourceMap")) { - options.sourceMaps = options.sourceMap; - delete options.sourceMap; - } - return options; -} -function dedupDescriptors(items) { - const map = new Map(); - const descriptors = []; - for (const item of items) { - if (typeof item.value === "function") { - const fnKey = item.value; - let nameMap = map.get(fnKey); - if (!nameMap) { - nameMap = new Map(); - map.set(fnKey, nameMap); - } - let desc = nameMap.get(item.name); - if (!desc) { - desc = { - value: item - }; - descriptors.push(desc); - if (!item.ownPass) nameMap.set(item.name, desc); - } else { - desc.value = item; - } - } else { - descriptors.push({ - value: item - }); - } - } - return descriptors.reduce((acc, desc) => { - acc.push(desc.value); - return acc; - }, []); -} -function configIsApplicable({ - options -}, dirname, context, configName) { - return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName)); -} -function configFieldIsApplicable(context, test, dirname, configName) { - const patterns = Array.isArray(test) ? test : [test]; - return matchesPatterns(context, patterns, dirname, configName); -} -function ignoreListReplacer(_key, value) { - if (value instanceof RegExp) { - return String(value); - } - return value; -} -function shouldIgnore(context, ignore, only, dirname) { - if (ignore && matchesPatterns(context, ignore, dirname)) { - var _context$filename; - const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`; - debug(message); - if (context.showConfig) { - console.log(message); - } - return true; - } - if (only && !matchesPatterns(context, only, dirname)) { - var _context$filename2; - const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`; - debug(message); - if (context.showConfig) { - console.log(message); - } - return true; - } - return false; -} -function matchesPatterns(context, patterns, dirname, configName) { - return patterns.some(pattern => matchPattern(pattern, dirname, context.filename, context, configName)); -} -function matchPattern(pattern, dirname, pathToTest, context, configName) { - if (typeof pattern === "function") { - return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { - dirname, - envName: context.envName, - caller: context.caller - }); - } - if (typeof pathToTest !== "string") { - throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName); - } - if (typeof pattern === "string") { - pattern = (0, _patternToRegex.default)(pattern, dirname); - } - return pattern.test(pathToTest); -} -0 && 0; - -//# sourceMappingURL=config-chain.js.map - - -/***/ }), - -/***/ 88258: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createCachedDescriptors = createCachedDescriptors; -exports.createDescriptor = createDescriptor; -exports.createUncachedDescriptors = createUncachedDescriptors; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _functional = __nccwpck_require__(43657); -var _files = __nccwpck_require__(86268); -var _item = __nccwpck_require__(30168); -var _caching = __nccwpck_require__(69703); -var _resolveTargets = __nccwpck_require__(8727); -function isEqualDescriptor(a, b) { - return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && (a.file && a.file.request) === (b.file && b.file.request) && (a.file && a.file.resolved) === (b.file && b.file.resolved); -} -function* handlerOf(value) { - return value; -} -function optionsWithResolvedBrowserslistConfigFile(options, dirname) { - if (typeof options.browserslistConfigFile === "string") { - options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname); - } - return options; -} -function createCachedDescriptors(dirname, options, alias) { - const { - plugins, - presets, - passPerPreset - } = options; - return { - options: optionsWithResolvedBrowserslistConfigFile(options, dirname), - plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]), - presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([]) - }; -} -function createUncachedDescriptors(dirname, options, alias) { - return { - options: optionsWithResolvedBrowserslistConfigFile(options, dirname), - plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)), - presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset)) - }; -} -const PRESET_DESCRIPTOR_CACHE = new WeakMap(); -const createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => { - const dirname = cache.using(dir => dir); - return (0, _caching.makeStrongCacheSync)(alias => (0, _caching.makeStrongCache)(function* (passPerPreset) { - const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset); - return descriptors.map(desc => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc)); - })); -}); -const PLUGIN_DESCRIPTOR_CACHE = new WeakMap(); -const createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => { - const dirname = cache.using(dir => dir); - return (0, _caching.makeStrongCache)(function* (alias) { - const descriptors = yield* createPluginDescriptors(items, dirname, alias); - return descriptors.map(desc => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc)); - }); -}); -const DEFAULT_OPTIONS = {}; -function loadCachedDescriptor(cache, desc) { - const { - value, - options = DEFAULT_OPTIONS - } = desc; - if (options === false) return desc; - let cacheByOptions = cache.get(value); - if (!cacheByOptions) { - cacheByOptions = new WeakMap(); - cache.set(value, cacheByOptions); - } - let possibilities = cacheByOptions.get(options); - if (!possibilities) { - possibilities = []; - cacheByOptions.set(options, possibilities); - } - if (possibilities.indexOf(desc) === -1) { - const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc)); - if (matches.length > 0) { - return matches[0]; - } - possibilities.push(desc); - } - return desc; -} -function* createPresetDescriptors(items, dirname, alias, passPerPreset) { - return yield* createDescriptors("preset", items, dirname, alias, passPerPreset); -} -function* createPluginDescriptors(items, dirname, alias) { - return yield* createDescriptors("plugin", items, dirname, alias); -} -function* createDescriptors(type, items, dirname, alias, ownPass) { - const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, { - type, - alias: `${alias}$${index}`, - ownPass: !!ownPass - }))); - assertNoDuplicates(descriptors); - return descriptors; -} -function* createDescriptor(pair, dirname, { - type, - alias, - ownPass -}) { - const desc = (0, _item.getItemDescriptor)(pair); - if (desc) { - return desc; - } - let name; - let options; - let value = pair; - if (Array.isArray(value)) { - if (value.length === 3) { - [value, options, name] = value; - } else { - [value, options] = value; - } - } - let file = undefined; - let filepath = null; - if (typeof value === "string") { - if (typeof type !== "string") { - throw new Error("To resolve a string-based item, the type of item must be given"); - } - const resolver = type === "plugin" ? _files.loadPlugin : _files.loadPreset; - const request = value; - ({ - filepath, - value - } = yield* resolver(value, dirname)); - file = { - request, - resolved: filepath - }; - } - if (!value) { - throw new Error(`Unexpected falsy value: ${String(value)}`); - } - if (typeof value === "object" && value.__esModule) { - if (value.default) { - value = value.default; - } else { - throw new Error("Must export a default export when using ES6 modules."); - } - } - if (typeof value !== "object" && typeof value !== "function") { - throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`); - } - if (filepath !== null && typeof value === "object" && value) { - throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`); - } - return { - name, - alias: filepath || alias, - value, - options, - dirname, - ownPass, - file - }; -} -function assertNoDuplicates(items) { - const map = new Map(); - for (const item of items) { - if (typeof item.value !== "function") continue; - let nameMap = map.get(item.value); - if (!nameMap) { - nameMap = new Set(); - map.set(item.value, nameMap); - } - if (nameMap.has(item.name)) { - const conflicts = items.filter(i => i.value === item.value); - throw new Error([`Duplicate plugin/preset detected.`, `If you'd like to use two separate instances of a plugin,`, `they need separate names, e.g.`, ``, ` plugins: [`, ` ['some-plugin', {}],`, ` ['some-plugin', {}, 'some unique name'],`, ` ]`, ``, `Duplicates detected are:`, `${JSON.stringify(conflicts, null, 2)}`].join("\n")); - } - nameMap.add(item.name); - } -} -0 && 0; - -//# sourceMappingURL=config-descriptors.js.map - - -/***/ }), - -/***/ 65941: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ROOT_CONFIG_FILENAMES = void 0; -exports.findConfigUpwards = findConfigUpwards; -exports.findRelativeConfig = findRelativeConfig; -exports.findRootConfig = findRootConfig; -exports.loadConfig = loadConfig; -exports.resolveShowConfigPath = resolveShowConfigPath; -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -function _fs() { - const data = __nccwpck_require__(57147); - _fs = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _json() { - const data = __nccwpck_require__(66361); - _json = function () { - return data; - }; - return data; -} -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _caching = __nccwpck_require__(69703); -var _configApi = __nccwpck_require__(51976); -var _utils = __nccwpck_require__(24119); -var _moduleTypes = __nccwpck_require__(56207); -var _patternToRegex = __nccwpck_require__(64513); -var _configError = __nccwpck_require__(9813); -var fs = __nccwpck_require__(72421); -var _rewriteStackTrace = __nccwpck_require__(36680); -const debug = _debug()("babel:config:loading:files:configuration"); -const ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"]; -exports.ROOT_CONFIG_FILENAMES = ROOT_CONFIG_FILENAMES; -const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"]; -const BABELIGNORE_FILENAME = ".babelignore"; -const LOADING_CONFIGS = new Set(); -const readConfigCode = (0, _caching.makeStrongCache)(function* readConfigCode(filepath, cache) { - if (!_fs().existsSync(filepath)) { - cache.never(); - return null; - } - if (LOADING_CONFIGS.has(filepath)) { - cache.never(); - debug("Auto-ignoring usage of config %o.", filepath); - return { - filepath, - dirname: _path().dirname(filepath), - options: {} - }; - } - let options; - try { - LOADING_CONFIGS.add(filepath); - options = yield* (0, _moduleTypes.default)(filepath, "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously."); - } finally { - LOADING_CONFIGS.delete(filepath); - } - let assertCache = false; - if (typeof options === "function") { - yield* []; - options = (0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache)); - assertCache = true; - } - if (!options || typeof options !== "object" || Array.isArray(options)) { - throw new _configError.default(`Configuration should be an exported JavaScript object.`, filepath); - } - if (typeof options.then === "function") { - throw new _configError.default(`You appear to be using an async configuration, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously return your config.`, filepath); - } - if (assertCache && !cache.configured()) throwConfigError(filepath); - return { - filepath, - dirname: _path().dirname(filepath), - options - }; -}); -const packageToBabelConfig = (0, _caching.makeWeakCacheSync)(file => { - const babel = file.options["babel"]; - if (typeof babel === "undefined") return null; - if (typeof babel !== "object" || Array.isArray(babel) || babel === null) { - throw new _configError.default(`.babel property must be an object`, file.filepath); - } - return { - filepath: file.filepath, - dirname: file.dirname, - options: babel - }; -}); -const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => { - let options; - try { - options = _json().parse(content); - } catch (err) { - throw new _configError.default(`Error while parsing config - ${err.message}`, filepath); - } - if (!options) throw new _configError.default(`No config detected`, filepath); - if (typeof options !== "object") { - throw new _configError.default(`Config returned typeof ${typeof options}`, filepath); - } - if (Array.isArray(options)) { - throw new _configError.default(`Expected config object but found array`, filepath); - } - delete options["$schema"]; - return { - filepath, - dirname: _path().dirname(filepath), - options - }; -}); -const readIgnoreConfig = (0, _utils.makeStaticFileCache)((filepath, content) => { - const ignoreDir = _path().dirname(filepath); - const ignorePatterns = content.split("\n").map(line => line.replace(/#(.*?)$/, "").trim()).filter(line => !!line); - for (const pattern of ignorePatterns) { - if (pattern[0] === "!") { - throw new _configError.default(`Negation of file paths is not supported.`, filepath); - } - } - return { - filepath, - dirname: _path().dirname(filepath), - ignore: ignorePatterns.map(pattern => (0, _patternToRegex.default)(pattern, ignoreDir)) - }; -}); -function findConfigUpwards(rootDir) { - let dirname = rootDir; - for (;;) { - for (const filename of ROOT_CONFIG_FILENAMES) { - if (_fs().existsSync(_path().join(dirname, filename))) { - return dirname; - } - } - const nextDir = _path().dirname(dirname); - if (dirname === nextDir) break; - dirname = nextDir; - } - return null; -} -function* findRelativeConfig(packageData, envName, caller) { - let config = null; - let ignore = null; - const dirname = _path().dirname(packageData.filepath); - for (const loc of packageData.directories) { - if (!config) { - var _packageData$pkg; - config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, ((_packageData$pkg = packageData.pkg) == null ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null); - } - if (!ignore) { - const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME); - ignore = yield* readIgnoreConfig(ignoreLoc); - if (ignore) { - debug("Found ignore %o from %o.", ignore.filepath, dirname); - } - } - } - return { - config, - ignore - }; -} -function findRootConfig(dirname, envName, caller) { - return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller); -} -function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) { - const configs = yield* _gensync().all(names.map(filename => readConfig(_path().join(dirname, filename), envName, caller))); - const config = configs.reduce((previousConfig, config) => { - if (config && previousConfig) { - throw new _configError.default(`Multiple configuration files found. Please remove one:\n` + ` - ${_path().basename(previousConfig.filepath)}\n` + ` - ${config.filepath}\n` + `from ${dirname}`); - } - return config || previousConfig; - }, previousConfig); - if (config) { - debug("Found configuration %o from %o.", config.filepath, dirname); - } - return config; -} -function* loadConfig(name, dirname, envName, caller) { - const filepath = (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { - paths: [b] - }, M = __nccwpck_require__(98188)) => { - let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); - if (f) return f; - f = new Error(`Cannot resolve module '${r}'`); - f.code = "MODULE_NOT_FOUND"; - throw f; - })(name, { - paths: [dirname] - }); - const conf = yield* readConfig(filepath, envName, caller); - if (!conf) { - throw new _configError.default(`Config file contains no configuration data`, filepath); - } - debug("Loaded config %o from %o.", name, dirname); - return conf; -} -function readConfig(filepath, envName, caller) { - const ext = _path().extname(filepath); - switch (ext) { - case ".js": - case ".cjs": - case ".mjs": - case ".cts": - return readConfigCode(filepath, { - envName, - caller - }); - default: - return readConfigJSON5(filepath); - } -} -function* resolveShowConfigPath(dirname) { - const targetPath = process.env.BABEL_SHOW_CONFIG_FOR; - if (targetPath != null) { - const absolutePath = _path().resolve(dirname, targetPath); - const stats = yield* fs.stat(absolutePath); - if (!stats.isFile()) { - throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`); - } - return absolutePath; - } - return null; -} -function throwConfigError(filepath) { - throw new _configError.default(`\ -Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured -for various types of caching, using the first param of their handler functions: - -module.exports = function(api) { - // The API exposes the following: - - // Cache the returned value forever and don't call this function again. - api.cache(true); - - // Don't cache at all. Not recommended because it will be very slow. - api.cache(false); - - // Cached based on the value of some function. If this function returns a value different from - // a previously-encountered value, the plugins will re-evaluate. - var env = api.cache(() => process.env.NODE_ENV); - - // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for - // any possible NODE_ENV value that might come up during plugin execution. - var isProd = api.cache(() => process.env.NODE_ENV === "production"); - - // .cache(fn) will perform a linear search though instances to find the matching plugin based - // based on previous instantiated plugins. If you want to recreate the plugin and discard the - // previous instance whenever something changes, you may use: - var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production"); - - // Note, we also expose the following more-verbose versions of the above examples: - api.cache.forever(); // api.cache(true) - api.cache.never(); // api.cache(false) - api.cache.using(fn); // api.cache(fn) - - // Return the value that will be cached. - return { }; -};`, filepath); -} -0 && 0; - -//# sourceMappingURL=configuration.js.map - - -/***/ }), - -/***/ 32183: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = resolve; -var _importMetaResolve = __nccwpck_require__(79405); -let importMetaResolve; -{ - importMetaResolve = _importMetaResolve.resolve; -} -function resolve(specifier, parent) { - return importMetaResolve(specifier, parent); -} -0 && 0; - -//# sourceMappingURL=import-meta-resolve.js.map - - -/***/ }), - -/***/ 86268: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "ROOT_CONFIG_FILENAMES", ({ - enumerable: true, - get: function () { - return _configuration.ROOT_CONFIG_FILENAMES; - } -})); -Object.defineProperty(exports, "findConfigUpwards", ({ - enumerable: true, - get: function () { - return _configuration.findConfigUpwards; - } -})); -Object.defineProperty(exports, "findPackageData", ({ - enumerable: true, - get: function () { - return _package.findPackageData; - } -})); -Object.defineProperty(exports, "findRelativeConfig", ({ - enumerable: true, - get: function () { - return _configuration.findRelativeConfig; - } -})); -Object.defineProperty(exports, "findRootConfig", ({ - enumerable: true, - get: function () { - return _configuration.findRootConfig; - } -})); -Object.defineProperty(exports, "loadConfig", ({ - enumerable: true, - get: function () { - return _configuration.loadConfig; - } -})); -Object.defineProperty(exports, "loadPlugin", ({ - enumerable: true, - get: function () { - return _plugins.loadPlugin; - } -})); -Object.defineProperty(exports, "loadPreset", ({ - enumerable: true, - get: function () { - return _plugins.loadPreset; - } -})); -Object.defineProperty(exports, "resolvePlugin", ({ - enumerable: true, - get: function () { - return _plugins.resolvePlugin; - } -})); -Object.defineProperty(exports, "resolvePreset", ({ - enumerable: true, - get: function () { - return _plugins.resolvePreset; - } -})); -Object.defineProperty(exports, "resolveShowConfigPath", ({ - enumerable: true, - get: function () { - return _configuration.resolveShowConfigPath; - } -})); -var _package = __nccwpck_require__(80989); -var _configuration = __nccwpck_require__(65941); -var _plugins = __nccwpck_require__(55425); -({}); -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 56207: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = loadCodeDefault; -exports.supportsESM = void 0; -var _async = __nccwpck_require__(31528); -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _url() { - const data = __nccwpck_require__(57310); - _url = function () { - return data; - }; - return data; -} -function _semver() { - const data = __nccwpck_require__(8999); - _semver = function () { - return data; - }; - return data; -} -var _rewriteStackTrace = __nccwpck_require__(36680); -var _configError = __nccwpck_require__(9813); -var _transformFile = __nccwpck_require__(28519); -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -let import_; -try { - import_ = __nccwpck_require__(59534); -} catch (_unused) {} -const supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2"); -exports.supportsESM = supportsESM; -function* loadCodeDefault(filepath, asyncError) { - switch (_path().extname(filepath)) { - case ".cjs": - { - return loadCjsDefault(filepath, arguments[2]); - } - case ".mjs": - break; - case ".cts": - return loadCtsDefault(filepath); - default: - try { - { - return loadCjsDefault(filepath, arguments[2]); - } - } catch (e) { - if (e.code !== "ERR_REQUIRE_ESM") throw e; - } - } - if (yield* (0, _async.isAsync)()) { - return yield* (0, _async.waitFor)(loadMjsDefault(filepath)); - } - throw new _configError.default(asyncError, filepath); -} -function loadCtsDefault(filepath) { - const ext = ".cts"; - const hasTsSupport = !!(require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]); - let handler; - if (!hasTsSupport) { - const opts = { - babelrc: false, - configFile: false, - sourceType: "unambiguous", - sourceMaps: "inline", - sourceFileName: _path().basename(filepath), - presets: [[getTSPreset(filepath), Object.assign({ - onlyRemoveTypeImports: true, - optimizeConstEnums: true - }, { - allowDeclareFields: true - })]] - }; - handler = function (m, filename) { - if (handler && filename.endsWith(ext)) { - try { - return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, { - filename - })).code, filename); - } catch (error) { - if (!hasTsSupport) { - const packageJson = __nccwpck_require__(64566); - if (_semver().lt(packageJson.version, "7.21.4")) { - console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`."); - } - } - throw error; - } - } - return require.extensions[".js"](m, filename); - }; - require.extensions[ext] = handler; - } - try { - const module = (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath); - return module != null && module.__esModule ? module.default : module; - } finally { - if (!hasTsSupport) { - if (require.extensions[ext] === handler) delete require.extensions[ext]; - handler = undefined; - } - } -} -function loadCjsDefault(filepath) { - const module = (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath); - { - return module != null && module.__esModule ? module.default || (arguments[1] ? module : undefined) : module; - } -} -function loadMjsDefault(_x) { - return _loadMjsDefault.apply(this, arguments); -} -function _loadMjsDefault() { - _loadMjsDefault = _asyncToGenerator(function* (filepath) { - if (!import_) { - throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath); - } - const module = yield (0, _rewriteStackTrace.endHiddenCallStack)(import_)((0, _url().pathToFileURL)(filepath)); - return module.default; - }); - return _loadMjsDefault.apply(this, arguments); -} -function getTSPreset(filepath) { - try { - return __nccwpck_require__(84617); - } catch (error) { - if (error.code !== "MODULE_NOT_FOUND") throw error; - let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!"; - { - if (process.versions.pnp) { - message += ` -If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file: - -packageExtensions: -\t"@babel/core@*": -\t\tpeerDependencies: -\t\t\t"@babel/preset-typescript": "*" -`; - } - } - throw new _configError.default(message, filepath); - } -} -0 && 0; - -//# sourceMappingURL=module-types.js.map - - -/***/ }), - -/***/ 80989: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.findPackageData = findPackageData; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -var _utils = __nccwpck_require__(24119); -var _configError = __nccwpck_require__(9813); -const PACKAGE_FILENAME = "package.json"; -const readConfigPackage = (0, _utils.makeStaticFileCache)((filepath, content) => { - let options; - try { - options = JSON.parse(content); - } catch (err) { - throw new _configError.default(`Error while parsing JSON - ${err.message}`, filepath); - } - if (!options) throw new Error(`${filepath}: No config detected`); - if (typeof options !== "object") { - throw new _configError.default(`Config returned typeof ${typeof options}`, filepath); - } - if (Array.isArray(options)) { - throw new _configError.default(`Expected config object but found array`, filepath); - } - return { - filepath, - dirname: _path().dirname(filepath), - options - }; -}); -function* findPackageData(filepath) { - let pkg = null; - const directories = []; - let isPackage = true; - let dirname = _path().dirname(filepath); - while (!pkg && _path().basename(dirname) !== "node_modules") { - directories.push(dirname); - pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME)); - const nextLoc = _path().dirname(dirname); - if (dirname === nextLoc) { - isPackage = false; - break; - } - dirname = nextLoc; - } - return { - filepath, - directories, - pkg, - isPackage - }; -} -0 && 0; - -//# sourceMappingURL=package.js.map - - -/***/ }), - -/***/ 55425: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.loadPlugin = loadPlugin; -exports.loadPreset = loadPreset; -exports.resolvePreset = exports.resolvePlugin = void 0; -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -var _async = __nccwpck_require__(31528); -var _moduleTypes = __nccwpck_require__(56207); -function _url() { - const data = __nccwpck_require__(57310); - _url = function () { - return data; - }; - return data; -} -var _importMetaResolve = __nccwpck_require__(32183); -const debug = _debug()("babel:config:loading:files:plugins"); -const EXACT_RE = /^module:/; -const BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/; -const BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/; -const BABEL_PLUGIN_ORG_RE = /^(@babel\/)(?!plugin-|[^/]+\/)/; -const BABEL_PRESET_ORG_RE = /^(@babel\/)(?!preset-|[^/]+\/)/; -const OTHER_PLUGIN_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/; -const OTHER_PRESET_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/; -const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/; -const resolvePlugin = resolveStandardizedName.bind(null, "plugin"); -exports.resolvePlugin = resolvePlugin; -const resolvePreset = resolveStandardizedName.bind(null, "preset"); -exports.resolvePreset = resolvePreset; -function* loadPlugin(name, dirname) { - const filepath = resolvePlugin(name, dirname, yield* (0, _async.isAsync)()); - const value = yield* requireModule("plugin", filepath); - debug("Loaded plugin %o from %o.", name, dirname); - return { - filepath, - value - }; -} -function* loadPreset(name, dirname) { - const filepath = resolvePreset(name, dirname, yield* (0, _async.isAsync)()); - const value = yield* requireModule("preset", filepath); - debug("Loaded preset %o from %o.", name, dirname); - return { - filepath, - value - }; -} -function standardizeName(type, name) { - if (_path().isAbsolute(name)) return name; - const isPreset = type === "preset"; - return name.replace(isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE, `babel-${type}-`).replace(isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE, `$1${type}-`).replace(isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE, `$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`).replace(EXACT_RE, ""); -} -function* resolveAlternativesHelper(type, name) { - const standardizedName = standardizeName(type, name); - const { - error, - value - } = yield standardizedName; - if (!error) return value; - if (error.code !== "MODULE_NOT_FOUND") throw error; - if (standardizedName !== name && !(yield name).error) { - error.message += `\n- If you want to resolve "${name}", use "module:${name}"`; - } - if (!(yield standardizeName(type, "@babel/" + name)).error) { - error.message += `\n- Did you mean "@babel/${name}"?`; - } - const oppositeType = type === "preset" ? "plugin" : "preset"; - if (!(yield standardizeName(oppositeType, name)).error) { - error.message += `\n- Did you accidentally pass a ${oppositeType} as a ${type}?`; - } - if (type === "plugin") { - const transformName = standardizedName.replace("-proposal-", "-transform-"); - if (transformName !== standardizedName && !(yield transformName).error) { - error.message += `\n- Did you mean "${transformName}"?`; - } - } - error.message += `\n -Make sure that all the Babel plugins and presets you are using -are defined as dependencies or devDependencies in your package.json -file. It's possible that the missing plugin is loaded by a preset -you are using that forgot to add the plugin to its dependencies: you -can workaround this problem by explicitly adding the missing package -to your top-level package.json. -`; - throw error; -} -function tryRequireResolve(id, dirname) { - try { - if (dirname) { - return { - error: null, - value: (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { - paths: [b] - }, M = __nccwpck_require__(98188)) => { - let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); - if (f) return f; - f = new Error(`Cannot resolve module '${r}'`); - f.code = "MODULE_NOT_FOUND"; - throw f; - })(id, { - paths: [dirname] - }) - }; - } else { - return { - error: null, - value: require.resolve(id) - }; - } - } catch (error) { - return { - error, - value: null - }; - } -} -function tryImportMetaResolve(id, options) { - try { - return { - error: null, - value: (0, _importMetaResolve.default)(id, options) - }; - } catch (error) { - return { - error, - value: null - }; - } -} -function resolveStandardizedNameForRequire(type, name, dirname) { - const it = resolveAlternativesHelper(type, name); - let res = it.next(); - while (!res.done) { - res = it.next(tryRequireResolve(res.value, dirname)); - } - return res.value; -} -function resolveStandardizedNameForImport(type, name, dirname) { - const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href; - const it = resolveAlternativesHelper(type, name); - let res = it.next(); - while (!res.done) { - res = it.next(tryImportMetaResolve(res.value, parentUrl)); - } - return (0, _url().fileURLToPath)(res.value); -} -function resolveStandardizedName(type, name, dirname, resolveESM) { - if (!_moduleTypes.supportsESM || !resolveESM) { - return resolveStandardizedNameForRequire(type, name, dirname); - } - try { - return resolveStandardizedNameForImport(type, name, dirname); - } catch (e) { - try { - return resolveStandardizedNameForRequire(type, name, dirname); - } catch (e2) { - if (e.type === "MODULE_NOT_FOUND") throw e; - if (e2.type === "MODULE_NOT_FOUND") throw e2; - throw e; - } - } -} -{ - var LOADING_MODULES = new Set(); -} -function* requireModule(type, name) { - { - if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) { - throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.'); - } - } - try { - { - LOADING_MODULES.add(name); - } - { - return yield* (0, _moduleTypes.default)(name, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously.", true); - } - } catch (err) { - err.message = `[BABEL]: ${err.message} (While processing: ${name})`; - throw err; - } finally { - { - LOADING_MODULES.delete(name); - } - } -} -0 && 0; - -//# sourceMappingURL=plugins.js.map - - -/***/ }), - -/***/ 24119: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.makeStaticFileCache = makeStaticFileCache; -var _caching = __nccwpck_require__(69703); -var fs = __nccwpck_require__(72421); -function _fs2() { - const data = __nccwpck_require__(57147); - _fs2 = function () { - return data; - }; - return data; -} -function makeStaticFileCache(fn) { - return (0, _caching.makeStrongCache)(function* (filepath, cache) { - const cached = cache.invalidate(() => fileMtime(filepath)); - if (cached === null) { - return null; - } - return fn(filepath, yield* fs.readFile(filepath, "utf8")); - }); -} -function fileMtime(filepath) { - if (!_fs2().existsSync(filepath)) return null; - try { - return +_fs2().statSync(filepath).mtime; - } catch (e) { - if (e.code !== "ENOENT" && e.code !== "ENOTDIR") throw e; - } - return null; -} -0 && 0; - -//# sourceMappingURL=utils.js.map - - -/***/ }), - -/***/ 99286: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _async = __nccwpck_require__(31528); -var _util = __nccwpck_require__(28822); -var context = __nccwpck_require__(27324); -var _plugin = __nccwpck_require__(29367); -var _item = __nccwpck_require__(30168); -var _configChain = __nccwpck_require__(21356); -var _deepArray = __nccwpck_require__(5078); -function _traverse() { - const data = __nccwpck_require__(34160); - _traverse = function () { - return data; - }; - return data; -} -var _caching = __nccwpck_require__(69703); -var _options = __nccwpck_require__(10330); -var _plugins = __nccwpck_require__(35463); -var _configApi = __nccwpck_require__(51976); -var _partial = __nccwpck_require__(80286); -var _configError = __nccwpck_require__(9813); -var _default = _gensync()(function* loadFullConfig(inputOpts) { - var _opts$assumptions; - const result = yield* (0, _partial.default)(inputOpts); - if (!result) { - return null; - } - const { - options, - context, - fileHandling - } = result; - if (fileHandling === "ignored") { - return null; - } - const optionDefaults = {}; - const { - plugins, - presets - } = options; - if (!plugins || !presets) { - throw new Error("Assertion failure - plugins and presets exist"); - } - const presetContext = Object.assign({}, context, { - targets: options.targets - }); - const toDescriptor = item => { - const desc = (0, _item.getItemDescriptor)(item); - if (!desc) { - throw new Error("Assertion failure - must be config item"); - } - return desc; - }; - const presetsDescriptors = presets.map(toDescriptor); - const initialPluginsDescriptors = plugins.map(toDescriptor); - const pluginDescriptorsByPass = [[]]; - const passes = []; - const externalDependencies = []; - const ignored = yield* enhanceError(context, function* recursePresetDescriptors(rawPresets, pluginDescriptorsPass) { - const presets = []; - for (let i = 0; i < rawPresets.length; i++) { - const descriptor = rawPresets[i]; - if (descriptor.options !== false) { - try { - var preset = yield* loadPresetDescriptor(descriptor, presetContext); - } catch (e) { - if (e.code === "BABEL_UNKNOWN_OPTION") { - (0, _options.checkNoUnwrappedItemOptionPairs)(rawPresets, i, "preset", e); - } - throw e; - } - externalDependencies.push(preset.externalDependencies); - if (descriptor.ownPass) { - presets.push({ - preset: preset.chain, - pass: [] - }); - } else { - presets.unshift({ - preset: preset.chain, - pass: pluginDescriptorsPass - }); - } - } - } - if (presets.length > 0) { - pluginDescriptorsByPass.splice(1, 0, ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass)); - for (const { - preset, - pass - } of presets) { - if (!preset) return true; - pass.push(...preset.plugins); - const ignored = yield* recursePresetDescriptors(preset.presets, pass); - if (ignored) return true; - preset.options.forEach(opts => { - (0, _util.mergeOptions)(optionDefaults, opts); - }); - } - } - })(presetsDescriptors, pluginDescriptorsByPass[0]); - if (ignored) return null; - const opts = optionDefaults; - (0, _util.mergeOptions)(opts, options); - const pluginContext = Object.assign({}, presetContext, { - assumptions: (_opts$assumptions = opts.assumptions) != null ? _opts$assumptions : {} - }); - yield* enhanceError(context, function* loadPluginDescriptors() { - pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors); - for (const descs of pluginDescriptorsByPass) { - const pass = []; - passes.push(pass); - for (let i = 0; i < descs.length; i++) { - const descriptor = descs[i]; - if (descriptor.options !== false) { - try { - var plugin = yield* loadPluginDescriptor(descriptor, pluginContext); - } catch (e) { - if (e.code === "BABEL_UNKNOWN_PLUGIN_PROPERTY") { - (0, _options.checkNoUnwrappedItemOptionPairs)(descs, i, "plugin", e); - } - throw e; - } - pass.push(plugin); - externalDependencies.push(plugin.externalDependencies); - } - } - } - })(); - opts.plugins = passes[0]; - opts.presets = passes.slice(1).filter(plugins => plugins.length > 0).map(plugins => ({ - plugins - })); - opts.passPerPreset = opts.presets.length > 0; - return { - options: opts, - passes: passes, - externalDependencies: (0, _deepArray.finalize)(externalDependencies) - }; -}); -exports["default"] = _default; -function enhanceError(context, fn) { - return function* (arg1, arg2) { - try { - return yield* fn(arg1, arg2); - } catch (e) { - if (!/^\[BABEL\]/.test(e.message)) { - var _context$filename; - e.message = `[BABEL] ${(_context$filename = context.filename) != null ? _context$filename : "unknown file"}: ${e.message}`; - } - throw e; - } - }; -} -const makeDescriptorLoader = apiFactory => (0, _caching.makeWeakCache)(function* ({ - value, - options, - dirname, - alias -}, cache) { - if (options === false) throw new Error("Assertion failure"); - options = options || {}; - const externalDependencies = []; - let item = value; - if (typeof value === "function") { - const factory = (0, _async.maybeAsync)(value, `You appear to be using an async plugin/preset, but Babel has been called synchronously`); - const api = Object.assign({}, context, apiFactory(cache, externalDependencies)); - try { - item = yield* factory(api, options, dirname); - } catch (e) { - if (alias) { - e.message += ` (While processing: ${JSON.stringify(alias)})`; - } - throw e; - } - } - if (!item || typeof item !== "object") { - throw new Error("Plugin/Preset did not return an object."); - } - if ((0, _async.isThenable)(item)) { - yield* []; - throw new Error(`You appear to be using a promise as a plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version. ` + `As an alternative, you can prefix the promise with "await". ` + `(While processing: ${JSON.stringify(alias)})`); - } - if (externalDependencies.length > 0 && (!cache.configured() || cache.mode() === "forever")) { - let error = `A plugin/preset has external untracked dependencies ` + `(${externalDependencies[0]}), but the cache `; - if (!cache.configured()) { - error += `has not been configured to be invalidated when the external dependencies change. `; - } else { - error += ` has been configured to never be invalidated. `; - } - error += `Plugins/presets should configure their cache to be invalidated when the external ` + `dependencies change, for example using \`api.cache.invalidate(() => ` + `statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n` + `(While processing: ${JSON.stringify(alias)})`; - throw new Error(error); - } - return { - value: item, - options, - dirname, - alias, - externalDependencies: (0, _deepArray.finalize)(externalDependencies) - }; -}); -const pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI); -const presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI); -const instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ - value, - options, - dirname, - alias, - externalDependencies -}, cache) { - const pluginObj = (0, _plugins.validatePluginObject)(value); - const plugin = Object.assign({}, pluginObj); - if (plugin.visitor) { - plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor)); - } - if (plugin.inherits) { - const inheritsDescriptor = { - name: undefined, - alias: `${alias}$inherits`, - value: plugin.inherits, - options, - dirname - }; - const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, run => { - return cache.invalidate(data => run(inheritsDescriptor, data)); - }); - plugin.pre = chain(inherits.pre, plugin.pre); - plugin.post = chain(inherits.post, plugin.post); - plugin.manipulateOptions = chain(inherits.manipulateOptions, plugin.manipulateOptions); - plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]); - if (inherits.externalDependencies.length > 0) { - if (externalDependencies.length === 0) { - externalDependencies = inherits.externalDependencies; - } else { - externalDependencies = (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]); - } - } - } - return new _plugin.default(plugin, options, alias, externalDependencies); -}); -function* loadPluginDescriptor(descriptor, context) { - if (descriptor.value instanceof _plugin.default) { - if (descriptor.options) { - throw new Error("Passed options to an existing Plugin instance will not work."); - } - return descriptor.value; - } - return yield* instantiatePlugin(yield* pluginDescriptorLoader(descriptor, context), context); -} -const needsFilename = val => val && typeof val !== "function"; -const validateIfOptionNeedsFilename = (options, descriptor) => { - if (needsFilename(options.test) || needsFilename(options.include) || needsFilename(options.exclude)) { - const formattedPresetName = descriptor.name ? `"${descriptor.name}"` : "/* your preset */"; - throw new _configError.default([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`, `\`\`\``, `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`, `\`\`\``, `See https://babeljs.io/docs/en/options#filename for more information.`].join("\n")); - } -}; -const validatePreset = (preset, context, descriptor) => { - if (!context.filename) { - const { - options - } = preset; - validateIfOptionNeedsFilename(options, descriptor); - if (options.overrides) { - options.overrides.forEach(overrideOptions => validateIfOptionNeedsFilename(overrideOptions, descriptor)); - } - } -}; -const instantiatePreset = (0, _caching.makeWeakCacheSync)(({ - value, - dirname, - alias, - externalDependencies -}) => { - return { - options: (0, _options.validate)("preset", value), - alias, - dirname, - externalDependencies - }; -}); -function* loadPresetDescriptor(descriptor, context) { - const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context)); - validatePreset(preset, context, descriptor); - return { - chain: yield* (0, _configChain.buildPresetChain)(preset, context), - externalDependencies: preset.externalDependencies - }; -} -function chain(a, b) { - const fns = [a, b].filter(Boolean); - if (fns.length <= 1) return fns[0]; - return function (...args) { - for (const fn of fns) { - fn.apply(this, args); - } - }; -} -0 && 0; - -//# sourceMappingURL=full.js.map - - -/***/ }), - -/***/ 51976: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.makeConfigAPI = makeConfigAPI; -exports.makePluginAPI = makePluginAPI; -exports.makePresetAPI = makePresetAPI; -function _semver() { - const data = __nccwpck_require__(8999); - _semver = function () { - return data; - }; - return data; -} -var _ = __nccwpck_require__(27324); -var _caching = __nccwpck_require__(69703); -function makeConfigAPI(cache) { - const env = value => cache.using(data => { - if (typeof value === "undefined") return data.envName; - if (typeof value === "function") { - return (0, _caching.assertSimpleType)(value(data.envName)); - } - return (Array.isArray(value) ? value : [value]).some(entry => { - if (typeof entry !== "string") { - throw new Error("Unexpected non-string value"); - } - return entry === data.envName; - }); - }); - const caller = cb => cache.using(data => (0, _caching.assertSimpleType)(cb(data.caller))); - return { - version: _.version, - cache: cache.simple(), - env, - async: () => false, - caller, - assertVersion - }; -} -function makePresetAPI(cache, externalDependencies) { - const targets = () => JSON.parse(cache.using(data => JSON.stringify(data.targets))); - const addExternalDependency = ref => { - externalDependencies.push(ref); - }; - return Object.assign({}, makeConfigAPI(cache), { - targets, - addExternalDependency - }); -} -function makePluginAPI(cache, externalDependencies) { - const assumption = name => cache.using(data => data.assumptions[name]); - return Object.assign({}, makePresetAPI(cache, externalDependencies), { - assumption - }); -} -function assertVersion(range) { - if (typeof range === "number") { - if (!Number.isInteger(range)) { - throw new Error("Expected string or integer value."); - } - range = `^${range}.0.0-0`; - } - if (typeof range !== "string") { - throw new Error("Expected string or integer value."); - } - ; - if (_semver().satisfies(_.version, range)) return; - const limit = Error.stackTraceLimit; - if (typeof limit === "number" && limit < 25) { - Error.stackTraceLimit = 25; - } - const err = new Error(`Requires Babel "${range}", but was loaded with "${_.version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); - if (typeof limit === "number") { - Error.stackTraceLimit = limit; - } - throw Object.assign(err, { - code: "BABEL_VERSION_UNSUPPORTED", - version: _.version, - range - }); -} -0 && 0; - -//# sourceMappingURL=config-api.js.map - - -/***/ }), - -/***/ 5078: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.finalize = finalize; -exports.flattenToSet = flattenToSet; -function finalize(deepArr) { - return Object.freeze(deepArr); -} -function flattenToSet(arr) { - const result = new Set(); - const stack = [arr]; - while (stack.length > 0) { - for (const el of stack.pop()) { - if (Array.isArray(el)) stack.push(el);else result.add(el); - } - } - return result; -} -0 && 0; - -//# sourceMappingURL=deep-array.js.map - - -/***/ }), - -/***/ 82501: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getEnv = getEnv; -function getEnv(defaultValue = "development") { - return process.env.BABEL_ENV || process.env.NODE_ENV || defaultValue; -} -0 && 0; - -//# sourceMappingURL=environment.js.map - - -/***/ }), - -/***/ 48695: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createConfigItem = createConfigItem; -exports.createConfigItemSync = exports.createConfigItemAsync = void 0; -Object.defineProperty(exports, "default", ({ - enumerable: true, - get: function () { - return _full.default; - } -})); -exports.loadPartialConfigSync = exports.loadPartialConfigAsync = exports.loadPartialConfig = exports.loadOptionsSync = exports.loadOptionsAsync = exports.loadOptions = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _full = __nccwpck_require__(99286); -var _partial = __nccwpck_require__(80286); -var _item = __nccwpck_require__(30168); -const loadOptionsRunner = _gensync()(function* (opts) { - var _config$options; - const config = yield* (0, _full.default)(opts); - return (_config$options = config == null ? void 0 : config.options) != null ? _config$options : null; -}); -const createConfigItemRunner = _gensync()(_item.createConfigItem); -const maybeErrback = runner => (argOrCallback, maybeCallback) => { - let arg; - let callback; - if (maybeCallback === undefined && typeof argOrCallback === "function") { - callback = argOrCallback; - arg = undefined; - } else { - callback = maybeCallback; - arg = argOrCallback; - } - if (!callback) { - return runner.sync(arg); - } - runner.errback(arg, callback); -}; -const loadPartialConfig = maybeErrback(_partial.loadPartialConfig); -exports.loadPartialConfig = loadPartialConfig; -const loadPartialConfigSync = _partial.loadPartialConfig.sync; -exports.loadPartialConfigSync = loadPartialConfigSync; -const loadPartialConfigAsync = _partial.loadPartialConfig.async; -exports.loadPartialConfigAsync = loadPartialConfigAsync; -const loadOptions = maybeErrback(loadOptionsRunner); -exports.loadOptions = loadOptions; -const loadOptionsSync = loadOptionsRunner.sync; -exports.loadOptionsSync = loadOptionsSync; -const loadOptionsAsync = loadOptionsRunner.async; -exports.loadOptionsAsync = loadOptionsAsync; -const createConfigItemSync = createConfigItemRunner.sync; -exports.createConfigItemSync = createConfigItemSync; -const createConfigItemAsync = createConfigItemRunner.async; -exports.createConfigItemAsync = createConfigItemAsync; -function createConfigItem(target, options, callback) { - if (callback !== undefined) { - createConfigItemRunner.errback(target, options, callback); - } else if (typeof options === "function") { - createConfigItemRunner.errback(target, undefined, callback); - } else { - return createConfigItemRunner.sync(target, options); - } -} -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 30168: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createConfigItem = createConfigItem; -exports.createItemFromDescriptor = createItemFromDescriptor; -exports.getItemDescriptor = getItemDescriptor; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -var _configDescriptors = __nccwpck_require__(88258); -function createItemFromDescriptor(desc) { - return new ConfigItem(desc); -} -function* createConfigItem(value, { - dirname = ".", - type -} = {}) { - const descriptor = yield* (0, _configDescriptors.createDescriptor)(value, _path().resolve(dirname), { - type, - alias: "programmatic item" - }); - return createItemFromDescriptor(descriptor); -} -const CONFIG_ITEM_BRAND = Symbol.for("@babel/core@7 - ConfigItem"); -function getItemDescriptor(item) { - if (item != null && item[CONFIG_ITEM_BRAND]) { - return item._descriptor; - } - return undefined; -} -class ConfigItem { - constructor(descriptor) { - this._descriptor = void 0; - this[CONFIG_ITEM_BRAND] = true; - this.value = void 0; - this.options = void 0; - this.dirname = void 0; - this.name = void 0; - this.file = void 0; - this._descriptor = descriptor; - Object.defineProperty(this, "_descriptor", { - enumerable: false - }); - Object.defineProperty(this, CONFIG_ITEM_BRAND, { - enumerable: false - }); - this.value = this._descriptor.value; - this.options = this._descriptor.options; - this.dirname = this._descriptor.dirname; - this.name = this._descriptor.name; - this.file = this._descriptor.file ? { - request: this._descriptor.file.request, - resolved: this._descriptor.file.resolved - } : undefined; - Object.freeze(this); - } -} -Object.freeze(ConfigItem.prototype); -0 && 0; - -//# sourceMappingURL=item.js.map - - -/***/ }), - -/***/ 80286: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = loadPrivatePartialConfig; -exports.loadPartialConfig = void 0; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _plugin = __nccwpck_require__(29367); -var _util = __nccwpck_require__(28822); -var _item = __nccwpck_require__(30168); -var _configChain = __nccwpck_require__(21356); -var _environment = __nccwpck_require__(82501); -var _options = __nccwpck_require__(10330); -var _files = __nccwpck_require__(86268); -var _resolveTargets = __nccwpck_require__(8727); -const _excluded = ["showIgnoredFiles"]; -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function resolveRootMode(rootDir, rootMode) { - switch (rootMode) { - case "root": - return rootDir; - case "upward-optional": - { - const upwardRootDir = (0, _files.findConfigUpwards)(rootDir); - return upwardRootDir === null ? rootDir : upwardRootDir; - } - case "upward": - { - const upwardRootDir = (0, _files.findConfigUpwards)(rootDir); - if (upwardRootDir !== null) return upwardRootDir; - throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not ` + `be found when searching upward from "${rootDir}".\n` + `One of the following config files must be in the directory tree: ` + `"${_files.ROOT_CONFIG_FILENAMES.join(", ")}".`), { - code: "BABEL_ROOT_NOT_FOUND", - dirname: rootDir - }); - } - default: - throw new Error(`Assertion failure - unknown rootMode value.`); - } -} -function* loadPrivatePartialConfig(inputOpts) { - if (inputOpts != null && (typeof inputOpts !== "object" || Array.isArray(inputOpts))) { - throw new Error("Babel options must be an object, null, or undefined"); - } - const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}; - const { - envName = (0, _environment.getEnv)(), - cwd = ".", - root: rootDir = ".", - rootMode = "root", - caller, - cloneInputAst = true - } = args; - const absoluteCwd = _path().resolve(cwd); - const absoluteRootDir = resolveRootMode(_path().resolve(absoluteCwd, rootDir), rootMode); - const filename = typeof args.filename === "string" ? _path().resolve(cwd, args.filename) : undefined; - const showConfigPath = yield* (0, _files.resolveShowConfigPath)(absoluteCwd); - const context = { - filename, - cwd: absoluteCwd, - root: absoluteRootDir, - envName, - caller, - showConfig: showConfigPath === filename - }; - const configChain = yield* (0, _configChain.buildRootChain)(args, context); - if (!configChain) return null; - const merged = { - assumptions: {} - }; - configChain.options.forEach(opts => { - (0, _util.mergeOptions)(merged, opts); - }); - const options = Object.assign({}, merged, { - targets: (0, _resolveTargets.resolveTargets)(merged, absoluteRootDir), - cloneInputAst, - babelrc: false, - configFile: false, - browserslistConfigFile: false, - passPerPreset: false, - envName: context.envName, - cwd: context.cwd, - root: context.root, - rootMode: "root", - filename: typeof context.filename === "string" ? context.filename : undefined, - plugins: configChain.plugins.map(descriptor => (0, _item.createItemFromDescriptor)(descriptor)), - presets: configChain.presets.map(descriptor => (0, _item.createItemFromDescriptor)(descriptor)) - }); - return { - options, - context, - fileHandling: configChain.fileHandling, - ignore: configChain.ignore, - babelrc: configChain.babelrc, - config: configChain.config, - files: configChain.files - }; -} -const loadPartialConfig = _gensync()(function* (opts) { - let showIgnoredFiles = false; - if (typeof opts === "object" && opts !== null && !Array.isArray(opts)) { - var _opts = opts; - ({ - showIgnoredFiles - } = _opts); - opts = _objectWithoutPropertiesLoose(_opts, _excluded); - _opts; - } - const result = yield* loadPrivatePartialConfig(opts); - if (!result) return null; - const { - options, - babelrc, - ignore, - config, - fileHandling, - files - } = result; - if (fileHandling === "ignored" && !showIgnoredFiles) { - return null; - } - (options.plugins || []).forEach(item => { - if (item.value instanceof _plugin.default) { - throw new Error("Passing cached plugin instances is not supported in " + "babel.loadPartialConfig()"); - } - }); - return new PartialConfig(options, babelrc ? babelrc.filepath : undefined, ignore ? ignore.filepath : undefined, config ? config.filepath : undefined, fileHandling, files); -}); -exports.loadPartialConfig = loadPartialConfig; -class PartialConfig { - constructor(options, babelrc, ignore, config, fileHandling, files) { - this.options = void 0; - this.babelrc = void 0; - this.babelignore = void 0; - this.config = void 0; - this.fileHandling = void 0; - this.files = void 0; - this.options = options; - this.babelignore = ignore; - this.babelrc = babelrc; - this.config = config; - this.fileHandling = fileHandling; - this.files = files; - Object.freeze(this); - } - hasFilesystemConfig() { - return this.babelrc !== undefined || this.config !== undefined; - } -} -Object.freeze(PartialConfig.prototype); -0 && 0; - -//# sourceMappingURL=partial.js.map - - -/***/ }), - -/***/ 64513: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = pathToPattern; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -const sep = `\\${_path().sep}`; -const endSep = `(?:${sep}|$)`; -const substitution = `[^${sep}]+`; -const starPat = `(?:${substitution}${sep})`; -const starPatLast = `(?:${substitution}${endSep})`; -const starStarPat = `${starPat}*?`; -const starStarPatLast = `${starPat}*?${starPatLast}?`; -function escapeRegExp(string) { - return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"); -} -function pathToPattern(pattern, dirname) { - const parts = _path().resolve(dirname, pattern).split(_path().sep); - return new RegExp(["^", ...parts.map((part, i) => { - const last = i === parts.length - 1; - if (part === "**") return last ? starStarPatLast : starStarPat; - if (part === "*") return last ? starPatLast : starPat; - if (part.indexOf("*.") === 0) { - return substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep); - } - return escapeRegExp(part) + (last ? endSep : sep); - })].join("")); -} -0 && 0; - -//# sourceMappingURL=pattern-to-regex.js.map - - -/***/ }), - -/***/ 29367: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _deepArray = __nccwpck_require__(5078); -class Plugin { - constructor(plugin, options, key, externalDependencies = (0, _deepArray.finalize)([])) { - this.key = void 0; - this.manipulateOptions = void 0; - this.post = void 0; - this.pre = void 0; - this.visitor = void 0; - this.parserOverride = void 0; - this.generatorOverride = void 0; - this.options = void 0; - this.externalDependencies = void 0; - this.key = plugin.name || key; - this.manipulateOptions = plugin.manipulateOptions; - this.post = plugin.post; - this.pre = plugin.pre; - this.visitor = plugin.visitor || {}; - this.parserOverride = plugin.parserOverride; - this.generatorOverride = plugin.generatorOverride; - this.options = options; - this.externalDependencies = externalDependencies; - } -} -exports["default"] = Plugin; -0 && 0; - -//# sourceMappingURL=plugin.js.map - - -/***/ }), - -/***/ 28141: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ConfigPrinter = exports.ChainFormatter = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -const ChainFormatter = { - Programmatic: 0, - Config: 1 -}; -exports.ChainFormatter = ChainFormatter; -const Formatter = { - title(type, callerName, filepath) { - let title = ""; - if (type === ChainFormatter.Programmatic) { - title = "programmatic options"; - if (callerName) { - title += " from " + callerName; - } - } else { - title = "config " + filepath; - } - return title; - }, - loc(index, envName) { - let loc = ""; - if (index != null) { - loc += `.overrides[${index}]`; - } - if (envName != null) { - loc += `.env["${envName}"]`; - } - return loc; - }, - *optionsAndDescriptors(opt) { - const content = Object.assign({}, opt.options); - delete content.overrides; - delete content.env; - const pluginDescriptors = [...(yield* opt.plugins())]; - if (pluginDescriptors.length) { - content.plugins = pluginDescriptors.map(d => descriptorToConfig(d)); - } - const presetDescriptors = [...(yield* opt.presets())]; - if (presetDescriptors.length) { - content.presets = [...presetDescriptors].map(d => descriptorToConfig(d)); - } - return JSON.stringify(content, undefined, 2); - } -}; -function descriptorToConfig(d) { - var _d$file; - let name = (_d$file = d.file) == null ? void 0 : _d$file.request; - if (name == null) { - if (typeof d.value === "object") { - name = d.value; - } else if (typeof d.value === "function") { - name = `[Function: ${d.value.toString().slice(0, 50)} ... ]`; - } - } - if (name == null) { - name = "[Unknown]"; - } - if (d.options === undefined) { - return name; - } else if (d.name == null) { - return [name, d.options]; - } else { - return [name, d.options, d.name]; - } -} -class ConfigPrinter { - constructor() { - this._stack = []; - } - configure(enabled, type, { - callerName, - filepath - }) { - if (!enabled) return () => {}; - return (content, index, envName) => { - this._stack.push({ - type, - callerName, - filepath, - content, - index, - envName - }); - }; - } - static *format(config) { - let title = Formatter.title(config.type, config.callerName, config.filepath); - const loc = Formatter.loc(config.index, config.envName); - if (loc) title += ` ${loc}`; - const content = yield* Formatter.optionsAndDescriptors(config.content); - return `${title}\n${content}`; - } - *output() { - if (this._stack.length === 0) return ""; - const configs = yield* _gensync().all(this._stack.map(s => ConfigPrinter.format(s))); - return configs.join("\n\n"); - } -} -exports.ConfigPrinter = ConfigPrinter; -0 && 0; - -//# sourceMappingURL=printer.js.map - - -/***/ }), - -/***/ 8727: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.resolveBrowserslistConfigFile = resolveBrowserslistConfigFile; -exports.resolveTargets = resolveTargets; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _helperCompilationTargets() { - const data = __nccwpck_require__(77116); - _helperCompilationTargets = function () { - return data; - }; - return data; -} -({}); -function resolveBrowserslistConfigFile(browserslistConfigFile, configFileDir) { - return _path().resolve(configFileDir, browserslistConfigFile); -} -function resolveTargets(options, root) { - const optTargets = options.targets; - let targets; - if (typeof optTargets === "string" || Array.isArray(optTargets)) { - targets = { - browsers: optTargets - }; - } else if (optTargets) { - if ("esmodules" in optTargets) { - targets = Object.assign({}, optTargets, { - esmodules: "intersect" - }); - } else { - targets = optTargets; - } - } - const { - browserslistConfigFile - } = options; - let configFile; - let ignoreBrowserslistConfig = false; - if (typeof browserslistConfigFile === "string") { - configFile = browserslistConfigFile; - } else { - ignoreBrowserslistConfig = browserslistConfigFile === false; - } - return (0, _helperCompilationTargets().default)(targets, { - ignoreBrowserslistConfig, - configFile, - configPath: root, - browserslistEnv: options.browserslistEnv - }); -} -0 && 0; - -//# sourceMappingURL=resolve-targets.js.map - - -/***/ }), - -/***/ 28822: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.isIterableIterator = isIterableIterator; -exports.mergeOptions = mergeOptions; -function mergeOptions(target, source) { - for (const k of Object.keys(source)) { - if ((k === "parserOpts" || k === "generatorOpts" || k === "assumptions") && source[k]) { - const parserOpts = source[k]; - const targetObj = target[k] || (target[k] = {}); - mergeDefaultFields(targetObj, parserOpts); - } else { - const val = source[k]; - if (val !== undefined) target[k] = val; - } - } -} -function mergeDefaultFields(target, source) { - for (const k of Object.keys(source)) { - const val = source[k]; - if (val !== undefined) target[k] = val; - } -} -function isIterableIterator(value) { - return !!value && typeof value.next === "function" && typeof value[Symbol.iterator] === "function"; -} -0 && 0; - -//# sourceMappingURL=util.js.map - - -/***/ }), - -/***/ 65252: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.access = access; -exports.assertArray = assertArray; -exports.assertAssumptions = assertAssumptions; -exports.assertBabelrcSearch = assertBabelrcSearch; -exports.assertBoolean = assertBoolean; -exports.assertCallerMetadata = assertCallerMetadata; -exports.assertCompact = assertCompact; -exports.assertConfigApplicableTest = assertConfigApplicableTest; -exports.assertConfigFileSearch = assertConfigFileSearch; -exports.assertFunction = assertFunction; -exports.assertIgnoreList = assertIgnoreList; -exports.assertInputSourceMap = assertInputSourceMap; -exports.assertObject = assertObject; -exports.assertPluginList = assertPluginList; -exports.assertRootMode = assertRootMode; -exports.assertSourceMaps = assertSourceMaps; -exports.assertSourceType = assertSourceType; -exports.assertString = assertString; -exports.assertTargets = assertTargets; -exports.msg = msg; -function _helperCompilationTargets() { - const data = __nccwpck_require__(77116); - _helperCompilationTargets = function () { - return data; - }; - return data; -} -var _options = __nccwpck_require__(10330); -function msg(loc) { - switch (loc.type) { - case "root": - return ``; - case "env": - return `${msg(loc.parent)}.env["${loc.name}"]`; - case "overrides": - return `${msg(loc.parent)}.overrides[${loc.index}]`; - case "option": - return `${msg(loc.parent)}.${loc.name}`; - case "access": - return `${msg(loc.parent)}[${JSON.stringify(loc.name)}]`; - default: - throw new Error(`Assertion failure: Unknown type ${loc.type}`); - } -} -function access(loc, name) { - return { - type: "access", - name, - parent: loc - }; -} -function assertRootMode(loc, value) { - if (value !== undefined && value !== "root" && value !== "upward" && value !== "upward-optional") { - throw new Error(`${msg(loc)} must be a "root", "upward", "upward-optional" or undefined`); - } - return value; -} -function assertSourceMaps(loc, value) { - if (value !== undefined && typeof value !== "boolean" && value !== "inline" && value !== "both") { - throw new Error(`${msg(loc)} must be a boolean, "inline", "both", or undefined`); - } - return value; -} -function assertCompact(loc, value) { - if (value !== undefined && typeof value !== "boolean" && value !== "auto") { - throw new Error(`${msg(loc)} must be a boolean, "auto", or undefined`); - } - return value; -} -function assertSourceType(loc, value) { - if (value !== undefined && value !== "module" && value !== "script" && value !== "unambiguous") { - throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`); - } - return value; -} -function assertCallerMetadata(loc, value) { - const obj = assertObject(loc, value); - if (obj) { - if (typeof obj.name !== "string") { - throw new Error(`${msg(loc)} set but does not contain "name" property string`); - } - for (const prop of Object.keys(obj)) { - const propLoc = access(loc, prop); - const value = obj[prop]; - if (value != null && typeof value !== "boolean" && typeof value !== "string" && typeof value !== "number") { - throw new Error(`${msg(propLoc)} must be null, undefined, a boolean, a string, or a number.`); - } - } - } - return value; -} -function assertInputSourceMap(loc, value) { - if (value !== undefined && typeof value !== "boolean" && (typeof value !== "object" || !value)) { - throw new Error(`${msg(loc)} must be a boolean, object, or undefined`); - } - return value; -} -function assertString(loc, value) { - if (value !== undefined && typeof value !== "string") { - throw new Error(`${msg(loc)} must be a string, or undefined`); - } - return value; -} -function assertFunction(loc, value) { - if (value !== undefined && typeof value !== "function") { - throw new Error(`${msg(loc)} must be a function, or undefined`); - } - return value; -} -function assertBoolean(loc, value) { - if (value !== undefined && typeof value !== "boolean") { - throw new Error(`${msg(loc)} must be a boolean, or undefined`); - } - return value; -} -function assertObject(loc, value) { - if (value !== undefined && (typeof value !== "object" || Array.isArray(value) || !value)) { - throw new Error(`${msg(loc)} must be an object, or undefined`); - } - return value; -} -function assertArray(loc, value) { - if (value != null && !Array.isArray(value)) { - throw new Error(`${msg(loc)} must be an array, or undefined`); - } - return value; -} -function assertIgnoreList(loc, value) { - const arr = assertArray(loc, value); - if (arr) { - arr.forEach((item, i) => assertIgnoreItem(access(loc, i), item)); - } - return arr; -} -function assertIgnoreItem(loc, value) { - if (typeof value !== "string" && typeof value !== "function" && !(value instanceof RegExp)) { - throw new Error(`${msg(loc)} must be an array of string/Function/RegExp values, or undefined`); - } - return value; -} -function assertConfigApplicableTest(loc, value) { - if (value === undefined) { - return value; - } - if (Array.isArray(value)) { - value.forEach((item, i) => { - if (!checkValidTest(item)) { - throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`); - } - }); - } else if (!checkValidTest(value)) { - throw new Error(`${msg(loc)} must be a string/Function/RegExp, or an array of those`); - } - return value; -} -function checkValidTest(value) { - return typeof value === "string" || typeof value === "function" || value instanceof RegExp; -} -function assertConfigFileSearch(loc, value) { - if (value !== undefined && typeof value !== "boolean" && typeof value !== "string") { - throw new Error(`${msg(loc)} must be a undefined, a boolean, a string, ` + `got ${JSON.stringify(value)}`); - } - return value; -} -function assertBabelrcSearch(loc, value) { - if (value === undefined || typeof value === "boolean") { - return value; - } - if (Array.isArray(value)) { - value.forEach((item, i) => { - if (!checkValidTest(item)) { - throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`); - } - }); - } else if (!checkValidTest(value)) { - throw new Error(`${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp ` + `or an array of those, got ${JSON.stringify(value)}`); - } - return value; -} -function assertPluginList(loc, value) { - const arr = assertArray(loc, value); - if (arr) { - arr.forEach((item, i) => assertPluginItem(access(loc, i), item)); - } - return arr; -} -function assertPluginItem(loc, value) { - if (Array.isArray(value)) { - if (value.length === 0) { - throw new Error(`${msg(loc)} must include an object`); - } - if (value.length > 3) { - throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`); - } - assertPluginTarget(access(loc, 0), value[0]); - if (value.length > 1) { - const opts = value[1]; - if (opts !== undefined && opts !== false && (typeof opts !== "object" || Array.isArray(opts) || opts === null)) { - throw new Error(`${msg(access(loc, 1))} must be an object, false, or undefined`); - } - } - if (value.length === 3) { - const name = value[2]; - if (name !== undefined && typeof name !== "string") { - throw new Error(`${msg(access(loc, 2))} must be a string, or undefined`); - } - } - } else { - assertPluginTarget(loc, value); - } - return value; -} -function assertPluginTarget(loc, value) { - if ((typeof value !== "object" || !value) && typeof value !== "string" && typeof value !== "function") { - throw new Error(`${msg(loc)} must be a string, object, function`); - } - return value; -} -function assertTargets(loc, value) { - if ((0, _helperCompilationTargets().isBrowsersQueryValid)(value)) return value; - if (typeof value !== "object" || !value || Array.isArray(value)) { - throw new Error(`${msg(loc)} must be a string, an array of strings or an object`); - } - const browsersLoc = access(loc, "browsers"); - const esmodulesLoc = access(loc, "esmodules"); - assertBrowsersList(browsersLoc, value.browsers); - assertBoolean(esmodulesLoc, value.esmodules); - for (const key of Object.keys(value)) { - const val = value[key]; - const subLoc = access(loc, key); - if (key === "esmodules") assertBoolean(subLoc, val);else if (key === "browsers") assertBrowsersList(subLoc, val);else if (!Object.hasOwnProperty.call(_helperCompilationTargets().TargetNames, key)) { - const validTargets = Object.keys(_helperCompilationTargets().TargetNames).join(", "); - throw new Error(`${msg(subLoc)} is not a valid target. Supported targets are ${validTargets}`); - } else assertBrowserVersion(subLoc, val); - } - return value; -} -function assertBrowsersList(loc, value) { - if (value !== undefined && !(0, _helperCompilationTargets().isBrowsersQueryValid)(value)) { - throw new Error(`${msg(loc)} must be undefined, a string or an array of strings`); - } -} -function assertBrowserVersion(loc, value) { - if (typeof value === "number" && Math.round(value) === value) return; - if (typeof value === "string") return; - throw new Error(`${msg(loc)} must be a string or an integer number`); -} -function assertAssumptions(loc, value) { - if (value === undefined) return; - if (typeof value !== "object" || value === null) { - throw new Error(`${msg(loc)} must be an object or undefined.`); - } - let root = loc; - do { - root = root.parent; - } while (root.type !== "root"); - const inPreset = root.source === "preset"; - for (const name of Object.keys(value)) { - const subLoc = access(loc, name); - if (!_options.assumptionsNames.has(name)) { - throw new Error(`${msg(subLoc)} is not a supported assumption.`); - } - if (typeof value[name] !== "boolean") { - throw new Error(`${msg(subLoc)} must be a boolean.`); - } - if (inPreset && value[name] === false) { - throw new Error(`${msg(subLoc)} cannot be set to 'false' inside presets.`); - } - } - return value; -} -0 && 0; - -//# sourceMappingURL=option-assertions.js.map - - -/***/ }), - -/***/ 10330: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.assumptionsNames = void 0; -exports.checkNoUnwrappedItemOptionPairs = checkNoUnwrappedItemOptionPairs; -exports.validate = validate; -var _removed = __nccwpck_require__(91679); -var _optionAssertions = __nccwpck_require__(65252); -var _configError = __nccwpck_require__(9813); -const ROOT_VALIDATORS = { - cwd: _optionAssertions.assertString, - root: _optionAssertions.assertString, - rootMode: _optionAssertions.assertRootMode, - configFile: _optionAssertions.assertConfigFileSearch, - caller: _optionAssertions.assertCallerMetadata, - filename: _optionAssertions.assertString, - filenameRelative: _optionAssertions.assertString, - code: _optionAssertions.assertBoolean, - ast: _optionAssertions.assertBoolean, - cloneInputAst: _optionAssertions.assertBoolean, - envName: _optionAssertions.assertString -}; -const BABELRC_VALIDATORS = { - babelrc: _optionAssertions.assertBoolean, - babelrcRoots: _optionAssertions.assertBabelrcSearch -}; -const NONPRESET_VALIDATORS = { - extends: _optionAssertions.assertString, - ignore: _optionAssertions.assertIgnoreList, - only: _optionAssertions.assertIgnoreList, - targets: _optionAssertions.assertTargets, - browserslistConfigFile: _optionAssertions.assertConfigFileSearch, - browserslistEnv: _optionAssertions.assertString -}; -const COMMON_VALIDATORS = { - inputSourceMap: _optionAssertions.assertInputSourceMap, - presets: _optionAssertions.assertPluginList, - plugins: _optionAssertions.assertPluginList, - passPerPreset: _optionAssertions.assertBoolean, - assumptions: _optionAssertions.assertAssumptions, - env: assertEnvSet, - overrides: assertOverridesList, - test: _optionAssertions.assertConfigApplicableTest, - include: _optionAssertions.assertConfigApplicableTest, - exclude: _optionAssertions.assertConfigApplicableTest, - retainLines: _optionAssertions.assertBoolean, - comments: _optionAssertions.assertBoolean, - shouldPrintComment: _optionAssertions.assertFunction, - compact: _optionAssertions.assertCompact, - minified: _optionAssertions.assertBoolean, - auxiliaryCommentBefore: _optionAssertions.assertString, - auxiliaryCommentAfter: _optionAssertions.assertString, - sourceType: _optionAssertions.assertSourceType, - wrapPluginVisitorMethod: _optionAssertions.assertFunction, - highlightCode: _optionAssertions.assertBoolean, - sourceMaps: _optionAssertions.assertSourceMaps, - sourceMap: _optionAssertions.assertSourceMaps, - sourceFileName: _optionAssertions.assertString, - sourceRoot: _optionAssertions.assertString, - parserOpts: _optionAssertions.assertObject, - generatorOpts: _optionAssertions.assertObject -}; -{ - Object.assign(COMMON_VALIDATORS, { - getModuleId: _optionAssertions.assertFunction, - moduleRoot: _optionAssertions.assertString, - moduleIds: _optionAssertions.assertBoolean, - moduleId: _optionAssertions.assertString - }); -} -const knownAssumptions = ["arrayLikeIsIterable", "constantReexports", "constantSuper", "enumerableModuleMeta", "ignoreFunctionLength", "ignoreToPrimitiveHint", "iterableIsArray", "mutableTemplateObject", "noClassCalls", "noDocumentAll", "noIncompleteNsImportDetection", "noNewArrows", "objectRestNoSymbols", "privateFieldsAsSymbols", "privateFieldsAsProperties", "pureGetters", "setClassMethods", "setComputedProperties", "setPublicClassFields", "setSpreadProperties", "skipForOfIteratorClosing", "superIsCallableConstructor"]; -const assumptionsNames = new Set(knownAssumptions); -exports.assumptionsNames = assumptionsNames; -function getSource(loc) { - return loc.type === "root" ? loc.source : getSource(loc.parent); -} -function validate(type, opts, filename) { - try { - return validateNested({ - type: "root", - source: type - }, opts); - } catch (error) { - const configError = new _configError.default(error.message, filename); - if (error.code) configError.code = error.code; - throw configError; - } -} -function validateNested(loc, opts) { - const type = getSource(loc); - assertNoDuplicateSourcemap(opts); - Object.keys(opts).forEach(key => { - const optLoc = { - type: "option", - name: key, - parent: loc - }; - if (type === "preset" && NONPRESET_VALIDATORS[key]) { - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in preset options`); - } - if (type !== "arguments" && ROOT_VALIDATORS[key]) { - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options`); - } - if (type !== "arguments" && type !== "configfile" && BABELRC_VALIDATORS[key]) { - if (type === "babelrcfile" || type === "extendsfile") { - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, ` + `or babel.config.js/config file options`); - } - throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options, or babel.config.js/config file options`); - } - const validator = COMMON_VALIDATORS[key] || NONPRESET_VALIDATORS[key] || BABELRC_VALIDATORS[key] || ROOT_VALIDATORS[key] || throwUnknownError; - validator(optLoc, opts[key]); - }); - return opts; -} -function throwUnknownError(loc) { - const key = loc.name; - if (_removed.default[key]) { - const { - message, - version = 5 - } = _removed.default[key]; - throw new Error(`Using removed Babel ${version} option: ${(0, _optionAssertions.msg)(loc)} - ${message}`); - } else { - const unknownOptErr = new Error(`Unknown option: ${(0, _optionAssertions.msg)(loc)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`); - unknownOptErr.code = "BABEL_UNKNOWN_OPTION"; - throw unknownOptErr; - } -} -function has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -} -function assertNoDuplicateSourcemap(opts) { - if (has(opts, "sourceMap") && has(opts, "sourceMaps")) { - throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both"); - } -} -function assertEnvSet(loc, value) { - if (loc.parent.type === "env") { - throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside of another .env block`); - } - const parent = loc.parent; - const obj = (0, _optionAssertions.assertObject)(loc, value); - if (obj) { - for (const envName of Object.keys(obj)) { - const env = (0, _optionAssertions.assertObject)((0, _optionAssertions.access)(loc, envName), obj[envName]); - if (!env) continue; - const envLoc = { - type: "env", - name: envName, - parent - }; - validateNested(envLoc, env); - } - } - return obj; -} -function assertOverridesList(loc, value) { - if (loc.parent.type === "env") { - throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .env block`); - } - if (loc.parent.type === "overrides") { - throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .overrides block`); - } - const parent = loc.parent; - const arr = (0, _optionAssertions.assertArray)(loc, value); - if (arr) { - for (const [index, item] of arr.entries()) { - const objLoc = (0, _optionAssertions.access)(loc, index); - const env = (0, _optionAssertions.assertObject)(objLoc, item); - if (!env) throw new Error(`${(0, _optionAssertions.msg)(objLoc)} must be an object`); - const overridesLoc = { - type: "overrides", - index, - parent - }; - validateNested(overridesLoc, env); - } - } - return arr; -} -function checkNoUnwrappedItemOptionPairs(items, index, type, e) { - if (index === 0) return; - const lastItem = items[index - 1]; - const thisItem = items[index]; - if (lastItem.file && lastItem.options === undefined && typeof thisItem.value === "object") { - e.message += `\n- Maybe you meant to use\n` + `"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(thisItem.value, undefined, 2)}]\n]\n` + `To be a valid ${type}, its name and options should be wrapped in a pair of brackets`; - } -} -0 && 0; - -//# sourceMappingURL=options.js.map - - -/***/ }), - -/***/ 35463: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.validatePluginObject = validatePluginObject; -var _optionAssertions = __nccwpck_require__(65252); -const VALIDATORS = { - name: _optionAssertions.assertString, - manipulateOptions: _optionAssertions.assertFunction, - pre: _optionAssertions.assertFunction, - post: _optionAssertions.assertFunction, - inherits: _optionAssertions.assertFunction, - visitor: assertVisitorMap, - parserOverride: _optionAssertions.assertFunction, - generatorOverride: _optionAssertions.assertFunction -}; -function assertVisitorMap(loc, value) { - const obj = (0, _optionAssertions.assertObject)(loc, value); - if (obj) { - Object.keys(obj).forEach(prop => assertVisitorHandler(prop, obj[prop])); - if (obj.enter || obj.exit) { - throw new Error(`${(0, _optionAssertions.msg)(loc)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`); - } - } - return obj; -} -function assertVisitorHandler(key, value) { - if (value && typeof value === "object") { - Object.keys(value).forEach(handler => { - if (handler !== "enter" && handler !== "exit") { - throw new Error(`.visitor["${key}"] may only have .enter and/or .exit handlers.`); - } - }); - } else if (typeof value !== "function") { - throw new Error(`.visitor["${key}"] must be a function`); - } - return value; -} -function validatePluginObject(obj) { - const rootPath = { - type: "root", - source: "plugin" - }; - Object.keys(obj).forEach(key => { - const validator = VALIDATORS[key]; - if (validator) { - const optLoc = { - type: "option", - name: key, - parent: rootPath - }; - validator(optLoc, obj[key]); - } else { - const invalidPluginPropertyError = new Error(`.${key} is not a valid Plugin property`); - invalidPluginPropertyError.code = "BABEL_UNKNOWN_PLUGIN_PROPERTY"; - throw invalidPluginPropertyError; - } - }); - return obj; -} -0 && 0; - -//# sourceMappingURL=plugins.js.map - - -/***/ }), - -/***/ 91679: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _default = { - auxiliaryComment: { - message: "Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`" - }, - blacklist: { - message: "Put the specific transforms you want in the `plugins` option" - }, - breakConfig: { - message: "This is not a necessary option in Babel 6" - }, - experimental: { - message: "Put the specific transforms you want in the `plugins` option" - }, - externalHelpers: { - message: "Use the `external-helpers` plugin instead. " + "Check out http://babeljs.io/docs/plugins/external-helpers/" - }, - extra: { - message: "" - }, - jsxPragma: { - message: "use the `pragma` option in the `react-jsx` plugin. " + "Check out http://babeljs.io/docs/plugins/transform-react-jsx/" - }, - loose: { - message: "Specify the `loose` option for the relevant plugin you are using " + "or use a preset that sets the option." - }, - metadataUsedHelpers: { - message: "Not required anymore as this is enabled by default" - }, - modules: { - message: "Use the corresponding module transform plugin in the `plugins` option. " + "Check out http://babeljs.io/docs/plugins/#modules" - }, - nonStandard: { - message: "Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. " + "Also check out the react preset http://babeljs.io/docs/plugins/preset-react/" - }, - optional: { - message: "Put the specific transforms you want in the `plugins` option" - }, - sourceMapName: { - message: "The `sourceMapName` option has been removed because it makes more sense for the " + "tooling that calls Babel to assign `map.file` themselves." - }, - stage: { - message: "Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets" - }, - whitelist: { - message: "Put the specific transforms you want in the `plugins` option" - }, - resolveModuleSource: { - version: 6, - message: "Use `babel-plugin-module-resolver@3`'s 'resolvePath' options" - }, - metadata: { - version: 6, - message: "Generated plugin metadata is always included in the output result" - }, - sourceMapTarget: { - version: 6, - message: "The `sourceMapTarget` option has been removed because it makes more sense for the tooling " + "that calls Babel to assign `map.file` themselves." - } -}; -exports["default"] = _default; -0 && 0; - -//# sourceMappingURL=removed.js.map - - -/***/ }), - -/***/ 9813: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _rewriteStackTrace = __nccwpck_require__(36680); -class ConfigError extends Error { - constructor(message, filename) { - super(message); - (0, _rewriteStackTrace.expectedError)(this); - if (filename) (0, _rewriteStackTrace.injectVirtualStackFrame)(this, filename); - } -} -exports["default"] = ConfigError; -0 && 0; - -//# sourceMappingURL=config-error.js.map - - -/***/ }), - -/***/ 36680: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.beginHiddenCallStack = beginHiddenCallStack; -exports.endHiddenCallStack = endHiddenCallStack; -exports.expectedError = expectedError; -exports.injectVirtualStackFrame = injectVirtualStackFrame; -const ErrorToString = Function.call.bind(Error.prototype.toString); -const SUPPORTED = !!Error.captureStackTrace; -const START_HIDING = "startHiding - secret - don't use this - v1"; -const STOP_HIDING = "stopHiding - secret - don't use this - v1"; -const expectedErrors = new WeakSet(); -const virtualFrames = new WeakMap(); -function CallSite(filename) { - return Object.create({ - isNative: () => false, - isConstructor: () => false, - isToplevel: () => true, - getFileName: () => filename, - getLineNumber: () => undefined, - getColumnNumber: () => undefined, - getFunctionName: () => undefined, - getMethodName: () => undefined, - getTypeName: () => undefined, - toString: () => filename - }); -} -function injectVirtualStackFrame(error, filename) { - if (!SUPPORTED) return; - let frames = virtualFrames.get(error); - if (!frames) virtualFrames.set(error, frames = []); - frames.push(CallSite(filename)); - return error; -} -function expectedError(error) { - if (!SUPPORTED) return; - expectedErrors.add(error); - return error; -} -function beginHiddenCallStack(fn) { - if (!SUPPORTED) return fn; - return Object.defineProperty(function (...args) { - setupPrepareStackTrace(); - return fn(...args); - }, "name", { - value: STOP_HIDING - }); -} -function endHiddenCallStack(fn) { - if (!SUPPORTED) return fn; - return Object.defineProperty(function (...args) { - return fn(...args); - }, "name", { - value: START_HIDING - }); -} -function setupPrepareStackTrace() { - setupPrepareStackTrace = () => {}; - const { - prepareStackTrace = defaultPrepareStackTrace - } = Error; - const MIN_STACK_TRACE_LIMIT = 50; - Error.stackTraceLimit && (Error.stackTraceLimit = Math.max(Error.stackTraceLimit, MIN_STACK_TRACE_LIMIT)); - Error.prepareStackTrace = function stackTraceRewriter(err, trace) { - let newTrace = []; - const isExpected = expectedErrors.has(err); - let status = isExpected ? "hiding" : "unknown"; - for (let i = 0; i < trace.length; i++) { - const name = trace[i].getFunctionName(); - if (name === START_HIDING) { - status = "hiding"; - } else if (name === STOP_HIDING) { - if (status === "hiding") { - status = "showing"; - if (virtualFrames.has(err)) { - newTrace.unshift(...virtualFrames.get(err)); - } - } else if (status === "unknown") { - newTrace = trace; - break; - } - } else if (status !== "hiding") { - newTrace.push(trace[i]); - } - } - return prepareStackTrace(err, newTrace); - }; -} -function defaultPrepareStackTrace(err, trace) { - if (trace.length === 0) return ErrorToString(err); - return `${ErrorToString(err)}\n at ${trace.join("\n at ")}`; -} -0 && 0; - -//# sourceMappingURL=rewrite-stack-trace.js.map - - -/***/ }), - -/***/ 31528: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.forwardAsync = forwardAsync; -exports.isAsync = void 0; -exports.isThenable = isThenable; -exports.maybeAsync = maybeAsync; -exports.waitFor = exports.onFirstPause = void 0; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -const runGenerator = _gensync()(function* (item) { - return yield* item; -}); -const isAsync = _gensync()({ - sync: () => false, - errback: cb => cb(null, true) -}); -exports.isAsync = isAsync; -function maybeAsync(fn, message) { - return _gensync()({ - sync(...args) { - const result = fn.apply(this, args); - if (isThenable(result)) throw new Error(message); - return result; - }, - async(...args) { - return Promise.resolve(fn.apply(this, args)); - } - }); -} -const withKind = _gensync()({ - sync: cb => cb("sync"), - async: function () { - var _ref = _asyncToGenerator(function* (cb) { - return cb("async"); - }); - return function async(_x) { - return _ref.apply(this, arguments); - }; - }() -}); -function forwardAsync(action, cb) { - const g = _gensync()(action); - return withKind(kind => { - const adapted = g[kind]; - return cb(adapted); - }); -} -const onFirstPause = _gensync()({ - name: "onFirstPause", - arity: 2, - sync: function (item) { - return runGenerator.sync(item); - }, - errback: function (item, firstPause, cb) { - let completed = false; - runGenerator.errback(item, (err, value) => { - completed = true; - cb(err, value); - }); - if (!completed) { - firstPause(); - } - } -}); -exports.onFirstPause = onFirstPause; -const waitFor = _gensync()({ - sync: x => x, - async: function () { - var _ref2 = _asyncToGenerator(function* (x) { - return x; - }); - return function async(_x2) { - return _ref2.apply(this, arguments); - }; - }() -}); -exports.waitFor = waitFor; -function isThenable(val) { - return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function"; -} -0 && 0; - -//# sourceMappingURL=async.js.map - - -/***/ }), - -/***/ 72421: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.stat = exports.readFile = void 0; -function _fs() { - const data = __nccwpck_require__(57147); - _fs = function () { - return data; - }; - return data; -} -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -const readFile = _gensync()({ - sync: _fs().readFileSync, - errback: _fs().readFile -}); -exports.readFile = readFile; -const stat = _gensync()({ - sync: _fs().statSync, - errback: _fs().stat -}); -exports.stat = stat; -0 && 0; - -//# sourceMappingURL=fs.js.map - - -/***/ }), - -/***/ 43657: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.once = once; -var _async = __nccwpck_require__(31528); -function once(fn) { - let result; - let resultP; - return function* () { - if (result) return result; - if (!(yield* (0, _async.isAsync)())) return result = yield* fn(); - if (resultP) return yield* (0, _async.waitFor)(resultP); - let resolve, reject; - resultP = new Promise((res, rej) => { - resolve = res; - reject = rej; - }); - try { - result = yield* fn(); - resultP = null; - resolve(result); - return result; - } catch (error) { - reject(error); - throw error; - } - }; -} -0 && 0; - -//# sourceMappingURL=functional.js.map - - -/***/ }), - -/***/ 27324: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.DEFAULT_EXTENSIONS = void 0; -Object.defineProperty(exports, "File", ({ - enumerable: true, - get: function () { - return _file.default; - } -})); -Object.defineProperty(exports, "buildExternalHelpers", ({ - enumerable: true, - get: function () { - return _buildExternalHelpers.default; - } -})); -Object.defineProperty(exports, "createConfigItem", ({ - enumerable: true, - get: function () { - return _config.createConfigItem; - } -})); -Object.defineProperty(exports, "createConfigItemAsync", ({ - enumerable: true, - get: function () { - return _config.createConfigItemAsync; - } -})); -Object.defineProperty(exports, "createConfigItemSync", ({ - enumerable: true, - get: function () { - return _config.createConfigItemSync; - } -})); -Object.defineProperty(exports, "getEnv", ({ - enumerable: true, - get: function () { - return _environment.getEnv; - } -})); -Object.defineProperty(exports, "loadOptions", ({ - enumerable: true, - get: function () { - return _config.loadOptions; - } -})); -Object.defineProperty(exports, "loadOptionsAsync", ({ - enumerable: true, - get: function () { - return _config.loadOptionsAsync; - } -})); -Object.defineProperty(exports, "loadOptionsSync", ({ - enumerable: true, - get: function () { - return _config.loadOptionsSync; - } -})); -Object.defineProperty(exports, "loadPartialConfig", ({ - enumerable: true, - get: function () { - return _config.loadPartialConfig; - } -})); -Object.defineProperty(exports, "loadPartialConfigAsync", ({ - enumerable: true, - get: function () { - return _config.loadPartialConfigAsync; - } -})); -Object.defineProperty(exports, "loadPartialConfigSync", ({ - enumerable: true, - get: function () { - return _config.loadPartialConfigSync; - } -})); -Object.defineProperty(exports, "parse", ({ - enumerable: true, - get: function () { - return _parse.parse; - } -})); -Object.defineProperty(exports, "parseAsync", ({ - enumerable: true, - get: function () { - return _parse.parseAsync; - } -})); -Object.defineProperty(exports, "parseSync", ({ - enumerable: true, - get: function () { - return _parse.parseSync; - } -})); -Object.defineProperty(exports, "resolvePlugin", ({ - enumerable: true, - get: function () { - return _files.resolvePlugin; - } -})); -Object.defineProperty(exports, "resolvePreset", ({ - enumerable: true, - get: function () { - return _files.resolvePreset; - } -})); -Object.defineProperty((0, exports), "template", { - enumerable: true, - get: function () { - return _template().default; - } -}); -Object.defineProperty((0, exports), "tokTypes", { - enumerable: true, - get: function () { - return _parser().tokTypes; - } -}); -Object.defineProperty(exports, "transform", ({ - enumerable: true, - get: function () { - return _transform.transform; - } -})); -Object.defineProperty(exports, "transformAsync", ({ - enumerable: true, - get: function () { - return _transform.transformAsync; - } -})); -Object.defineProperty(exports, "transformFile", ({ - enumerable: true, - get: function () { - return _transformFile.transformFile; - } -})); -Object.defineProperty(exports, "transformFileAsync", ({ - enumerable: true, - get: function () { - return _transformFile.transformFileAsync; - } -})); -Object.defineProperty(exports, "transformFileSync", ({ - enumerable: true, - get: function () { - return _transformFile.transformFileSync; - } -})); -Object.defineProperty(exports, "transformFromAst", ({ - enumerable: true, - get: function () { - return _transformAst.transformFromAst; - } -})); -Object.defineProperty(exports, "transformFromAstAsync", ({ - enumerable: true, - get: function () { - return _transformAst.transformFromAstAsync; - } -})); -Object.defineProperty(exports, "transformFromAstSync", ({ - enumerable: true, - get: function () { - return _transformAst.transformFromAstSync; - } -})); -Object.defineProperty(exports, "transformSync", ({ - enumerable: true, - get: function () { - return _transform.transformSync; - } -})); -Object.defineProperty((0, exports), "traverse", { - enumerable: true, - get: function () { - return _traverse().default; - } -}); -exports.version = exports.types = void 0; -var _file = __nccwpck_require__(17714); -var _buildExternalHelpers = __nccwpck_require__(614); -var _files = __nccwpck_require__(86268); -var _environment = __nccwpck_require__(82501); -function _types() { - const data = __nccwpck_require__(53501); - _types = function () { - return data; - }; - return data; -} -Object.defineProperty((0, exports), "types", { - enumerable: true, - get: function () { - return _types(); - } -}); -function _parser() { - const data = __nccwpck_require__(42973); - _parser = function () { - return data; - }; - return data; -} -function _traverse() { - const data = __nccwpck_require__(34160); - _traverse = function () { - return data; - }; - return data; -} -function _template() { - const data = __nccwpck_require__(52738); - _template = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(48695); -var _transform = __nccwpck_require__(21508); -var _transformFile = __nccwpck_require__(28519); -var _transformAst = __nccwpck_require__(38887); -var _parse = __nccwpck_require__(37251); -var thisFile = __nccwpck_require__(27324); -const version = "7.22.5"; -exports.version = version; -const DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); -exports.DEFAULT_EXTENSIONS = DEFAULT_EXTENSIONS; -; -{ - { - exports.OptionManager = class OptionManager { - init(opts) { - return (0, _config.loadOptionsSync)(opts); - } - }; - exports.Plugin = function Plugin(alias) { - throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`); - }; - } -} -0 && (0); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 37251: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.parse = void 0; -exports.parseAsync = parseAsync; -exports.parseSync = parseSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(48695); -var _parser = __nccwpck_require__(21277); -var _normalizeOpts = __nccwpck_require__(1977); -var _rewriteStackTrace = __nccwpck_require__(36680); -const parseRunner = _gensync()(function* parse(code, opts) { - const config = yield* (0, _config.default)(opts); - if (config === null) { - return null; - } - return yield* (0, _parser.default)(config.passes, (0, _normalizeOpts.default)(config), code); -}); -const parse = function parse(code, opts, callback) { - if (typeof opts === "function") { - callback = opts; - opts = undefined; - } - if (callback === undefined) { - { - return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(code, opts); - } - } - (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.errback)(code, opts, callback); -}; -exports.parse = parse; -function parseSync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(...args); -} -function parseAsync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.async)(...args); -} -0 && 0; - -//# sourceMappingURL=parse.js.map - - -/***/ }), - -/***/ 21277: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = parser; -function _parser() { - const data = __nccwpck_require__(42973); - _parser = function () { - return data; - }; - return data; -} -function _codeFrame() { - const data = __nccwpck_require__(93995); - _codeFrame = function () { - return data; - }; - return data; -} -var _missingPluginHelper = __nccwpck_require__(17758); -function* parser(pluginPasses, { - parserOpts, - highlightCode = true, - filename = "unknown" -}, code) { - try { - const results = []; - for (const plugins of pluginPasses) { - for (const plugin of plugins) { - const { - parserOverride - } = plugin; - if (parserOverride) { - const ast = parserOverride(code, parserOpts, _parser().parse); - if (ast !== undefined) results.push(ast); - } - } - } - if (results.length === 0) { - return (0, _parser().parse)(code, parserOpts); - } else if (results.length === 1) { - yield* []; - if (typeof results[0].then === "function") { - throw new Error(`You appear to be using an async parser plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); - } - return results[0]; - } - throw new Error("More than one plugin attempted to override parsing."); - } catch (err) { - if (err.code === "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED") { - err.message += "\nConsider renaming the file to '.mjs', or setting sourceType:module " + "or sourceType:unambiguous in your Babel config for this file."; - } - const { - loc, - missingPlugin - } = err; - if (loc) { - const codeFrame = (0, _codeFrame().codeFrameColumns)(code, { - start: { - line: loc.line, - column: loc.column + 1 - } - }, { - highlightCode - }); - if (missingPlugin) { - err.message = `${filename}: ` + (0, _missingPluginHelper.default)(missingPlugin[0], loc, codeFrame); - } else { - err.message = `${filename}: ${err.message}\n\n` + codeFrame; - } - err.code = "BABEL_PARSE_ERROR"; - } - throw err; - } -} -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 17758: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = generateMissingPluginMessage; -const pluginNameMap = { - asyncDoExpressions: { - syntax: { - name: "@babel/plugin-syntax-async-do-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions" - } - }, - decimal: { - syntax: { - name: "@babel/plugin-syntax-decimal", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal" - } - }, - decorators: { - syntax: { - name: "@babel/plugin-syntax-decorators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators" - }, - transform: { - name: "@babel/plugin-proposal-decorators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators" - } - }, - doExpressions: { - syntax: { - name: "@babel/plugin-syntax-do-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions" - }, - transform: { - name: "@babel/plugin-proposal-do-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions" - } - }, - exportDefaultFrom: { - syntax: { - name: "@babel/plugin-syntax-export-default-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from" - }, - transform: { - name: "@babel/plugin-proposal-export-default-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from" - } - }, - flow: { - syntax: { - name: "@babel/plugin-syntax-flow", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow" - }, - transform: { - name: "@babel/preset-flow", - url: "https://github.com/babel/babel/tree/main/packages/babel-preset-flow" - } - }, - functionBind: { - syntax: { - name: "@babel/plugin-syntax-function-bind", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind" - }, - transform: { - name: "@babel/plugin-proposal-function-bind", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind" - } - }, - functionSent: { - syntax: { - name: "@babel/plugin-syntax-function-sent", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent" - }, - transform: { - name: "@babel/plugin-proposal-function-sent", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent" - } - }, - jsx: { - syntax: { - name: "@babel/plugin-syntax-jsx", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx" - }, - transform: { - name: "@babel/preset-react", - url: "https://github.com/babel/babel/tree/main/packages/babel-preset-react" - } - }, - importAttributes: { - syntax: { - name: "@babel/plugin-syntax-import-attributes", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes" - } - }, - pipelineOperator: { - syntax: { - name: "@babel/plugin-syntax-pipeline-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator" - }, - transform: { - name: "@babel/plugin-proposal-pipeline-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator" - } - }, - recordAndTuple: { - syntax: { - name: "@babel/plugin-syntax-record-and-tuple", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple" - } - }, - throwExpressions: { - syntax: { - name: "@babel/plugin-syntax-throw-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions" - }, - transform: { - name: "@babel/plugin-proposal-throw-expressions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions" - } - }, - typescript: { - syntax: { - name: "@babel/plugin-syntax-typescript", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript" - }, - transform: { - name: "@babel/preset-typescript", - url: "https://github.com/babel/babel/tree/main/packages/babel-preset-typescript" - } - } -}; -{ - Object.assign(pluginNameMap, { - asyncGenerators: { - syntax: { - name: "@babel/plugin-syntax-async-generators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators" - }, - transform: { - name: "@babel/plugin-transform-async-generator-functions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions" - } - }, - classProperties: { - syntax: { - name: "@babel/plugin-syntax-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" - }, - transform: { - name: "@babel/plugin-transform-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" - } - }, - classPrivateProperties: { - syntax: { - name: "@babel/plugin-syntax-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" - }, - transform: { - name: "@babel/plugin-transform-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" - } - }, - classPrivateMethods: { - syntax: { - name: "@babel/plugin-syntax-class-properties", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" - }, - transform: { - name: "@babel/plugin-transform-private-methods", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods" - } - }, - classStaticBlock: { - syntax: { - name: "@babel/plugin-syntax-class-static-block", - url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block" - }, - transform: { - name: "@babel/plugin-transform-class-static-block", - url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block" - } - }, - dynamicImport: { - syntax: { - name: "@babel/plugin-syntax-dynamic-import", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import" - } - }, - exportNamespaceFrom: { - syntax: { - name: "@babel/plugin-syntax-export-namespace-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from" - }, - transform: { - name: "@babel/plugin-transform-export-namespace-from", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from" - } - }, - importAssertions: { - syntax: { - name: "@babel/plugin-syntax-import-assertions", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions" - } - }, - importMeta: { - syntax: { - name: "@babel/plugin-syntax-import-meta", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta" - } - }, - logicalAssignment: { - syntax: { - name: "@babel/plugin-syntax-logical-assignment-operators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators" - }, - transform: { - name: "@babel/plugin-transform-logical-assignment-operators", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators" - } - }, - moduleStringNames: { - syntax: { - name: "@babel/plugin-syntax-module-string-names", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names" - } - }, - numericSeparator: { - syntax: { - name: "@babel/plugin-syntax-numeric-separator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator" - }, - transform: { - name: "@babel/plugin-transform-numeric-separator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator" - } - }, - nullishCoalescingOperator: { - syntax: { - name: "@babel/plugin-syntax-nullish-coalescing-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator" - }, - transform: { - name: "@babel/plugin-transform-nullish-coalescing-operator", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator" - } - }, - objectRestSpread: { - syntax: { - name: "@babel/plugin-syntax-object-rest-spread", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread" - }, - transform: { - name: "@babel/plugin-transform-object-rest-spread", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread" - } - }, - optionalCatchBinding: { - syntax: { - name: "@babel/plugin-syntax-optional-catch-binding", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding" - }, - transform: { - name: "@babel/plugin-transform-optional-catch-binding", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding" - } - }, - optionalChaining: { - syntax: { - name: "@babel/plugin-syntax-optional-chaining", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining" - }, - transform: { - name: "@babel/plugin-transform-optional-chaining", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining" - } - }, - privateIn: { - syntax: { - name: "@babel/plugin-syntax-private-property-in-object", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object" - }, - transform: { - name: "@babel/plugin-transform-private-property-in-object", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object" - } - }, - regexpUnicodeSets: { - syntax: { - name: "@babel/plugin-syntax-unicode-sets-regex", - url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md" - }, - transform: { - name: "@babel/plugin-transform-unicode-sets-regex", - url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md" - } - } - }); -} -const getNameURLCombination = ({ - name, - url -}) => `${name} (${url})`; -function generateMissingPluginMessage(missingPluginName, loc, codeFrame) { - let helpMessage = `Support for the experimental syntax '${missingPluginName}' isn't currently enabled ` + `(${loc.line}:${loc.column + 1}):\n\n` + codeFrame; - const pluginInfo = pluginNameMap[missingPluginName]; - if (pluginInfo) { - const { - syntax: syntaxPlugin, - transform: transformPlugin - } = pluginInfo; - if (syntaxPlugin) { - const syntaxPluginInfo = getNameURLCombination(syntaxPlugin); - if (transformPlugin) { - const transformPluginInfo = getNameURLCombination(transformPlugin); - const sectionType = transformPlugin.name.startsWith("@babel/plugin") ? "plugins" : "presets"; - helpMessage += `\n\nAdd ${transformPluginInfo} to the '${sectionType}' section of your Babel config to enable transformation. -If you want to leave it as-is, add ${syntaxPluginInfo} to the 'plugins' section to enable parsing.`; - } else { - helpMessage += `\n\nAdd ${syntaxPluginInfo} to the 'plugins' section of your Babel config ` + `to enable parsing.`; - } - } - } - return helpMessage; -} -0 && 0; - -//# sourceMappingURL=missing-plugin-helper.js.map - - -/***/ }), - -/***/ 614: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -function helpers() { - const data = __nccwpck_require__(8205); - helpers = function () { - return data; - }; - return data; -} -function _generator() { - const data = __nccwpck_require__(35761); - _generator = function () { - return data; - }; - return data; -} -function _template() { - const data = __nccwpck_require__(52738); - _template = function () { - return data; - }; - return data; -} -function _t() { - const data = __nccwpck_require__(53501); - _t = function () { - return data; - }; - return data; -} -var _file = __nccwpck_require__(17714); -const { - arrayExpression, - assignmentExpression, - binaryExpression, - blockStatement, - callExpression, - cloneNode, - conditionalExpression, - exportNamedDeclaration, - exportSpecifier, - expressionStatement, - functionExpression, - identifier, - memberExpression, - objectExpression, - program, - stringLiteral, - unaryExpression, - variableDeclaration, - variableDeclarator -} = _t(); -const buildUmdWrapper = replacements => _template().default.statement` - (function (root, factory) { - if (typeof define === "function" && define.amd) { - define(AMD_ARGUMENTS, factory); - } else if (typeof exports === "object") { - factory(COMMON_ARGUMENTS); - } else { - factory(BROWSER_ARGUMENTS); - } - })(UMD_ROOT, function (FACTORY_PARAMETERS) { - FACTORY_BODY - }); - `(replacements); -function buildGlobal(allowlist) { - const namespace = identifier("babelHelpers"); - const body = []; - const container = functionExpression(null, [identifier("global")], blockStatement(body)); - const tree = program([expressionStatement(callExpression(container, [conditionalExpression(binaryExpression("===", unaryExpression("typeof", identifier("global")), stringLiteral("undefined")), identifier("self"), identifier("global"))]))]); - body.push(variableDeclaration("var", [variableDeclarator(namespace, assignmentExpression("=", memberExpression(identifier("global"), namespace), objectExpression([])))])); - buildHelpers(body, namespace, allowlist); - return tree; -} -function buildModule(allowlist) { - const body = []; - const refs = buildHelpers(body, null, allowlist); - body.unshift(exportNamedDeclaration(null, Object.keys(refs).map(name => { - return exportSpecifier(cloneNode(refs[name]), identifier(name)); - }))); - return program(body, [], "module"); -} -function buildUmd(allowlist) { - const namespace = identifier("babelHelpers"); - const body = []; - body.push(variableDeclaration("var", [variableDeclarator(namespace, identifier("global"))])); - buildHelpers(body, namespace, allowlist); - return program([buildUmdWrapper({ - FACTORY_PARAMETERS: identifier("global"), - BROWSER_ARGUMENTS: assignmentExpression("=", memberExpression(identifier("root"), namespace), objectExpression([])), - COMMON_ARGUMENTS: identifier("exports"), - AMD_ARGUMENTS: arrayExpression([stringLiteral("exports")]), - FACTORY_BODY: body, - UMD_ROOT: identifier("this") - })]); -} -function buildVar(allowlist) { - const namespace = identifier("babelHelpers"); - const body = []; - body.push(variableDeclaration("var", [variableDeclarator(namespace, objectExpression([]))])); - const tree = program(body); - buildHelpers(body, namespace, allowlist); - body.push(expressionStatement(namespace)); - return tree; -} -function buildHelpers(body, namespace, allowlist) { - const getHelperReference = name => { - return namespace ? memberExpression(namespace, identifier(name)) : identifier(`_${name}`); - }; - const refs = {}; - helpers().list.forEach(function (name) { - if (allowlist && allowlist.indexOf(name) < 0) return; - const ref = refs[name] = getHelperReference(name); - helpers().ensure(name, _file.default); - const { - nodes - } = helpers().get(name, getHelperReference, ref); - body.push(...nodes); - }); - return refs; -} -function _default(allowlist, outputType = "global") { - let tree; - const build = { - global: buildGlobal, - module: buildModule, - umd: buildUmd, - var: buildVar - }[outputType]; - if (build) { - tree = build(allowlist); - } else { - throw new Error(`Unsupported output type ${outputType}`); - } - return (0, _generator().default)(tree).code; -} -0 && 0; - -//# sourceMappingURL=build-external-helpers.js.map - - -/***/ }), - -/***/ 38887: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.transformFromAst = void 0; -exports.transformFromAstAsync = transformFromAstAsync; -exports.transformFromAstSync = transformFromAstSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(48695); -var _transformation = __nccwpck_require__(9205); -var _rewriteStackTrace = __nccwpck_require__(36680); -const transformFromAstRunner = _gensync()(function* (ast, code, opts) { - const config = yield* (0, _config.default)(opts); - if (config === null) return null; - if (!ast) throw new Error("No AST given"); - return yield* (0, _transformation.run)(config, code, ast); -}); -const transformFromAst = function transformFromAst(ast, code, optsOrCallback, maybeCallback) { - let opts; - let callback; - if (typeof optsOrCallback === "function") { - callback = optsOrCallback; - opts = undefined; - } else { - opts = optsOrCallback; - callback = maybeCallback; - } - if (callback === undefined) { - { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(ast, code, opts); - } - } - (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.errback)(ast, code, opts, callback); -}; -exports.transformFromAst = transformFromAst; -function transformFromAstSync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(...args); -} -function transformFromAstAsync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.async)(...args); -} -0 && 0; - -//# sourceMappingURL=transform-ast.js.map - - -/***/ }), - -/***/ 28519: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.transformFile = transformFile; -exports.transformFileAsync = transformFileAsync; -exports.transformFileSync = transformFileSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(48695); -var _transformation = __nccwpck_require__(9205); -var fs = __nccwpck_require__(72421); -({}); -const transformFileRunner = _gensync()(function* (filename, opts) { - const options = Object.assign({}, opts, { - filename - }); - const config = yield* (0, _config.default)(options); - if (config === null) return null; - const code = yield* fs.readFile(filename, "utf8"); - return yield* (0, _transformation.run)(config, code); -}); -function transformFile(...args) { - transformFileRunner.errback(...args); -} -function transformFileSync(...args) { - return transformFileRunner.sync(...args); -} -function transformFileAsync(...args) { - return transformFileRunner.async(...args); -} -0 && 0; - -//# sourceMappingURL=transform-file.js.map - - -/***/ }), - -/***/ 21508: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.transform = void 0; -exports.transformAsync = transformAsync; -exports.transformSync = transformSync; -function _gensync() { - const data = __nccwpck_require__(3531); - _gensync = function () { - return data; - }; - return data; -} -var _config = __nccwpck_require__(48695); -var _transformation = __nccwpck_require__(9205); -var _rewriteStackTrace = __nccwpck_require__(36680); -const transformRunner = _gensync()(function* transform(code, opts) { - const config = yield* (0, _config.default)(opts); - if (config === null) return null; - return yield* (0, _transformation.run)(config, code); -}); -const transform = function transform(code, optsOrCallback, maybeCallback) { - let opts; - let callback; - if (typeof optsOrCallback === "function") { - callback = optsOrCallback; - opts = undefined; - } else { - opts = optsOrCallback; - callback = maybeCallback; - } - if (callback === undefined) { - { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code, opts); - } - } - (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.errback)(code, opts, callback); -}; -exports.transform = transform; -function transformSync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(...args); -} -function transformAsync(...args) { - return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.async)(...args); -} -0 && 0; - -//# sourceMappingURL=transform.js.map - - -/***/ }), - -/***/ 78485: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = loadBlockHoistPlugin; -function _traverse() { - const data = __nccwpck_require__(34160); - _traverse = function () { - return data; - }; - return data; -} -var _plugin = __nccwpck_require__(29367); -let LOADED_PLUGIN; -const blockHoistPlugin = { - name: "internal.blockHoist", - visitor: { - Block: { - exit({ - node - }) { - const { - body - } = node; - let max = Math.pow(2, 30) - 1; - let hasChange = false; - for (let i = 0; i < body.length; i++) { - const n = body[i]; - const p = priority(n); - if (p > max) { - hasChange = true; - break; - } - max = p; - } - if (!hasChange) return; - node.body = stableSort(body.slice()); - } - } - } -}; -function loadBlockHoistPlugin() { - if (!LOADED_PLUGIN) { - LOADED_PLUGIN = new _plugin.default(Object.assign({}, blockHoistPlugin, { - visitor: _traverse().default.explode(blockHoistPlugin.visitor) - }), {}); - } - return LOADED_PLUGIN; -} -function priority(bodyNode) { - const priority = bodyNode == null ? void 0 : bodyNode._blockHoist; - if (priority == null) return 1; - if (priority === true) return 2; - return priority; -} -function stableSort(body) { - const buckets = Object.create(null); - for (let i = 0; i < body.length; i++) { - const n = body[i]; - const p = priority(n); - const bucket = buckets[p] || (buckets[p] = []); - bucket.push(n); - } - const keys = Object.keys(buckets).map(k => +k).sort((a, b) => b - a); - let index = 0; - for (const key of keys) { - const bucket = buckets[key]; - for (const n of bucket) { - body[index++] = n; - } - } - return body; -} -0 && 0; - -//# sourceMappingURL=block-hoist-plugin.js.map - - -/***/ }), - -/***/ 17714: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -function helpers() { - const data = __nccwpck_require__(8205); - helpers = function () { - return data; - }; - return data; -} -function _traverse() { - const data = __nccwpck_require__(34160); - _traverse = function () { - return data; - }; - return data; -} -function _codeFrame() { - const data = __nccwpck_require__(93995); - _codeFrame = function () { - return data; - }; - return data; -} -function _t() { - const data = __nccwpck_require__(53501); - _t = function () { - return data; - }; - return data; -} -function _helperModuleTransforms() { - const data = __nccwpck_require__(98501); - _helperModuleTransforms = function () { - return data; - }; - return data; -} -function _semver() { - const data = __nccwpck_require__(8999); - _semver = function () { - return data; - }; - return data; -} -const { - cloneNode, - interpreterDirective -} = _t(); -const errorVisitor = { - enter(path, state) { - const loc = path.node.loc; - if (loc) { - state.loc = loc; - path.stop(); - } - } -}; -class File { - constructor(options, { - code, - ast, - inputMap - }) { - this._map = new Map(); - this.opts = void 0; - this.declarations = {}; - this.path = void 0; - this.ast = void 0; - this.scope = void 0; - this.metadata = {}; - this.code = ""; - this.inputMap = void 0; - this.hub = { - file: this, - getCode: () => this.code, - getScope: () => this.scope, - addHelper: this.addHelper.bind(this), - buildError: this.buildCodeFrameError.bind(this) - }; - this.opts = options; - this.code = code; - this.ast = ast; - this.inputMap = inputMap; - this.path = _traverse().NodePath.get({ - hub: this.hub, - parentPath: null, - parent: this.ast, - container: this.ast, - key: "program" - }).setContext(); - this.scope = this.path.scope; - } - get shebang() { - const { - interpreter - } = this.path.node; - return interpreter ? interpreter.value : ""; - } - set shebang(value) { - if (value) { - this.path.get("interpreter").replaceWith(interpreterDirective(value)); - } else { - this.path.get("interpreter").remove(); - } - } - set(key, val) { - if (key === "helpersNamespace") { - throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility." + "If you are using @babel/plugin-external-helpers you will need to use a newer " + "version than the one you currently have installed. " + "If you have your own implementation, you'll want to explore using 'helperGenerator' " + "alongside 'file.availableHelper()'."); - } - this._map.set(key, val); - } - get(key) { - return this._map.get(key); - } - has(key) { - return this._map.has(key); - } - getModuleName() { - return (0, _helperModuleTransforms().getModuleName)(this.opts, this.opts); - } - addImport() { - throw new Error("This API has been removed. If you're looking for this " + "functionality in Babel 7, you should import the " + "'@babel/helper-module-imports' module and use the functions exposed " + " from that module, such as 'addNamed' or 'addDefault'."); - } - availableHelper(name, versionRange) { - let minVersion; - try { - minVersion = helpers().minVersion(name); - } catch (err) { - if (err.code !== "BABEL_HELPER_UNKNOWN") throw err; - return false; - } - if (typeof versionRange !== "string") return true; - if (_semver().valid(versionRange)) versionRange = `^${versionRange}`; - return !_semver().intersects(`<${minVersion}`, versionRange) && !_semver().intersects(`>=8.0.0`, versionRange); - } - addHelper(name) { - const declar = this.declarations[name]; - if (declar) return cloneNode(declar); - const generator = this.get("helperGenerator"); - if (generator) { - const res = generator(name); - if (res) return res; - } - helpers().ensure(name, File); - const uid = this.declarations[name] = this.scope.generateUidIdentifier(name); - const dependencies = {}; - for (const dep of helpers().getDependencies(name)) { - dependencies[dep] = this.addHelper(dep); - } - const { - nodes, - globals - } = helpers().get(name, dep => dependencies[dep], uid, Object.keys(this.scope.getAllBindings())); - globals.forEach(name => { - if (this.path.scope.hasBinding(name, true)) { - this.path.scope.rename(name); - } - }); - nodes.forEach(node => { - node._compact = true; - }); - this.path.unshiftContainer("body", nodes); - this.path.get("body").forEach(path => { - if (nodes.indexOf(path.node) === -1) return; - if (path.isVariableDeclaration()) this.scope.registerDeclaration(path); - }); - return uid; - } - addTemplateObject() { - throw new Error("This function has been moved into the template literal transform itself."); - } - buildCodeFrameError(node, msg, _Error = SyntaxError) { - let loc = node && (node.loc || node._loc); - if (!loc && node) { - const state = { - loc: null - }; - (0, _traverse().default)(node, errorVisitor, this.scope, state); - loc = state.loc; - let txt = "This is an error on an internal node. Probably an internal error."; - if (loc) txt += " Location has been estimated."; - msg += ` (${txt})`; - } - if (loc) { - const { - highlightCode = true - } = this.opts; - msg += "\n" + (0, _codeFrame().codeFrameColumns)(this.code, { - start: { - line: loc.start.line, - column: loc.start.column + 1 - }, - end: loc.end && loc.start.line === loc.end.line ? { - line: loc.end.line, - column: loc.end.column + 1 - } : undefined - }, { - highlightCode - }); - } - return new _Error(msg); - } -} -exports["default"] = File; -0 && 0; - -//# sourceMappingURL=file.js.map - - -/***/ }), - -/***/ 8146: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = generateCode; -function _convertSourceMap() { - const data = __nccwpck_require__(62213); - _convertSourceMap = function () { - return data; - }; - return data; -} -function _generator() { - const data = __nccwpck_require__(35761); - _generator = function () { - return data; - }; - return data; -} -var _mergeMap = __nccwpck_require__(41901); -function generateCode(pluginPasses, file) { - const { - opts, - ast, - code, - inputMap - } = file; - const { - generatorOpts - } = opts; - generatorOpts.inputSourceMap = inputMap == null ? void 0 : inputMap.toObject(); - const results = []; - for (const plugins of pluginPasses) { - for (const plugin of plugins) { - const { - generatorOverride - } = plugin; - if (generatorOverride) { - const result = generatorOverride(ast, generatorOpts, code, _generator().default); - if (result !== undefined) results.push(result); - } - } - } - let result; - if (results.length === 0) { - result = (0, _generator().default)(ast, generatorOpts, code); - } else if (results.length === 1) { - result = results[0]; - if (typeof result.then === "function") { - throw new Error(`You appear to be using an async codegen plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version.`); - } - } else { - throw new Error("More than one plugin attempted to override codegen."); - } - let { - code: outputCode, - decodedMap: outputMap = result.map - } = result; - if (result.__mergedMap) { - outputMap = Object.assign({}, result.map); - } else { - if (outputMap) { - if (inputMap) { - outputMap = (0, _mergeMap.default)(inputMap.toObject(), outputMap, generatorOpts.sourceFileName); - } else { - outputMap = result.map; - } - } - } - if (opts.sourceMaps === "inline" || opts.sourceMaps === "both") { - outputCode += "\n" + _convertSourceMap().fromObject(outputMap).toComment(); - } - if (opts.sourceMaps === "inline") { - outputMap = null; - } - return { - outputCode, - outputMap - }; -} -0 && 0; - -//# sourceMappingURL=generate.js.map - - -/***/ }), - -/***/ 41901: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = mergeSourceMap; -function _remapping() { - const data = __nccwpck_require__(55514); - _remapping = function () { - return data; - }; - return data; -} -function mergeSourceMap(inputMap, map, sourceFileName) { - const source = sourceFileName.replace(/\\/g, "/"); - let found = false; - const result = _remapping()(rootless(map), (s, ctx) => { - if (s === source && !found) { - found = true; - ctx.source = ""; - return rootless(inputMap); - } - return null; - }); - if (typeof inputMap.sourceRoot === "string") { - result.sourceRoot = inputMap.sourceRoot; - } - return Object.assign({}, result); -} -function rootless(map) { - return Object.assign({}, map, { - sourceRoot: null - }); -} -0 && 0; - -//# sourceMappingURL=merge-map.js.map - - -/***/ }), - -/***/ 9205: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.run = run; -function _traverse() { - const data = __nccwpck_require__(34160); - _traverse = function () { - return data; - }; - return data; -} -var _pluginPass = __nccwpck_require__(6242); -var _blockHoistPlugin = __nccwpck_require__(78485); -var _normalizeOpts = __nccwpck_require__(1977); -var _normalizeFile = __nccwpck_require__(43202); -var _generate = __nccwpck_require__(8146); -var _deepArray = __nccwpck_require__(5078); -function* run(config, code, ast) { - const file = yield* (0, _normalizeFile.default)(config.passes, (0, _normalizeOpts.default)(config), code, ast); - const opts = file.opts; - try { - yield* transformFile(file, config.passes); - } catch (e) { - var _opts$filename; - e.message = `${(_opts$filename = opts.filename) != null ? _opts$filename : "unknown file"}: ${e.message}`; - if (!e.code) { - e.code = "BABEL_TRANSFORM_ERROR"; - } - throw e; - } - let outputCode, outputMap; - try { - if (opts.code !== false) { - ({ - outputCode, - outputMap - } = (0, _generate.default)(config.passes, file)); - } - } catch (e) { - var _opts$filename2; - e.message = `${(_opts$filename2 = opts.filename) != null ? _opts$filename2 : "unknown file"}: ${e.message}`; - if (!e.code) { - e.code = "BABEL_GENERATE_ERROR"; - } - throw e; - } - return { - metadata: file.metadata, - options: opts, - ast: opts.ast === true ? file.ast : null, - code: outputCode === undefined ? null : outputCode, - map: outputMap === undefined ? null : outputMap, - sourceType: file.ast.program.sourceType, - externalDependencies: (0, _deepArray.flattenToSet)(config.externalDependencies) - }; -} -function* transformFile(file, pluginPasses) { - for (const pluginPairs of pluginPasses) { - const passPairs = []; - const passes = []; - const visitors = []; - for (const plugin of pluginPairs.concat([(0, _blockHoistPlugin.default)()])) { - const pass = new _pluginPass.default(file, plugin.key, plugin.options); - passPairs.push([plugin, pass]); - passes.push(pass); - visitors.push(plugin.visitor); - } - for (const [plugin, pass] of passPairs) { - const fn = plugin.pre; - if (fn) { - const result = fn.call(pass, file); - yield* []; - if (isThenable(result)) { - throw new Error(`You appear to be using an plugin with an async .pre, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); - } - } - } - const visitor = _traverse().default.visitors.merge(visitors, passes, file.opts.wrapPluginVisitorMethod); - (0, _traverse().default)(file.ast, visitor, file.scope); - for (const [plugin, pass] of passPairs) { - const fn = plugin.post; - if (fn) { - const result = fn.call(pass, file); - yield* []; - if (isThenable(result)) { - throw new Error(`You appear to be using an plugin with an async .post, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); - } - } - } - } -} -function isThenable(val) { - return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function"; -} -0 && 0; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 43202: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = normalizeFile; -function _fs() { - const data = __nccwpck_require__(57147); - _fs = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _debug() { - const data = __nccwpck_require__(34755); - _debug = function () { - return data; - }; - return data; -} -function _t() { - const data = __nccwpck_require__(53501); - _t = function () { - return data; - }; - return data; -} -function _convertSourceMap() { - const data = __nccwpck_require__(62213); - _convertSourceMap = function () { - return data; - }; - return data; -} -var _file = __nccwpck_require__(17714); -var _parser = __nccwpck_require__(21277); -var _cloneDeep = __nccwpck_require__(35243); -const { - file, - traverseFast -} = _t(); -const debug = _debug()("babel:transform:file"); -const INLINE_SOURCEMAP_REGEX = /^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/; -const EXTERNAL_SOURCEMAP_REGEX = /^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/; -function* normalizeFile(pluginPasses, options, code, ast) { - code = `${code || ""}`; - if (ast) { - if (ast.type === "Program") { - ast = file(ast, [], []); - } else if (ast.type !== "File") { - throw new Error("AST root must be a Program or File node"); - } - if (options.cloneInputAst) { - ast = (0, _cloneDeep.default)(ast); - } - } else { - ast = yield* (0, _parser.default)(pluginPasses, options, code); - } - let inputMap = null; - if (options.inputSourceMap !== false) { - if (typeof options.inputSourceMap === "object") { - inputMap = _convertSourceMap().fromObject(options.inputSourceMap); - } - if (!inputMap) { - const lastComment = extractComments(INLINE_SOURCEMAP_REGEX, ast); - if (lastComment) { - try { - inputMap = _convertSourceMap().fromComment(lastComment); - } catch (err) { - debug("discarding unknown inline input sourcemap", err); - } - } - } - if (!inputMap) { - const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast); - if (typeof options.filename === "string" && lastComment) { - try { - const match = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment); - const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8"); - inputMap = _convertSourceMap().fromJSON(inputMapContent); - } catch (err) { - debug("discarding unknown file input sourcemap", err); - } - } else if (lastComment) { - debug("discarding un-loadable file input sourcemap"); - } - } - } - return new _file.default(options, { - code, - ast: ast, - inputMap - }); -} -function extractCommentsFromList(regex, comments, lastComment) { - if (comments) { - comments = comments.filter(({ - value - }) => { - if (regex.test(value)) { - lastComment = value; - return false; - } - return true; - }); - } - return [comments, lastComment]; -} -function extractComments(regex, ast) { - let lastComment = null; - traverseFast(ast, node => { - [node.leadingComments, lastComment] = extractCommentsFromList(regex, node.leadingComments, lastComment); - [node.innerComments, lastComment] = extractCommentsFromList(regex, node.innerComments, lastComment); - [node.trailingComments, lastComment] = extractCommentsFromList(regex, node.trailingComments, lastComment); - }); - return lastComment; -} -0 && 0; - -//# sourceMappingURL=normalize-file.js.map - - -/***/ }), - -/***/ 1977: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = normalizeOptions; -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function normalizeOptions(config) { - const { - filename, - cwd, - filenameRelative = typeof filename === "string" ? _path().relative(cwd, filename) : "unknown", - sourceType = "module", - inputSourceMap, - sourceMaps = !!inputSourceMap, - sourceRoot = config.options.moduleRoot, - sourceFileName = _path().basename(filenameRelative), - comments = true, - compact = "auto" - } = config.options; - const opts = config.options; - const options = Object.assign({}, opts, { - parserOpts: Object.assign({ - sourceType: _path().extname(filenameRelative) === ".mjs" ? "module" : sourceType, - sourceFileName: filename, - plugins: [] - }, opts.parserOpts), - generatorOpts: Object.assign({ - filename, - auxiliaryCommentBefore: opts.auxiliaryCommentBefore, - auxiliaryCommentAfter: opts.auxiliaryCommentAfter, - retainLines: opts.retainLines, - comments, - shouldPrintComment: opts.shouldPrintComment, - compact, - minified: opts.minified, - sourceMaps, - sourceRoot, - sourceFileName - }, opts.generatorOpts) - }); - for (const plugins of config.passes) { - for (const plugin of plugins) { - if (plugin.manipulateOptions) { - plugin.manipulateOptions(options, options.parserOpts); - } - } - } - return options; -} -0 && 0; - -//# sourceMappingURL=normalize-opts.js.map - - -/***/ }), - -/***/ 6242: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -class PluginPass { - constructor(file, key, options) { - this._map = new Map(); - this.key = void 0; - this.file = void 0; - this.opts = void 0; - this.cwd = void 0; - this.filename = void 0; - this.key = key; - this.file = file; - this.opts = options || {}; - this.cwd = file.opts.cwd; - this.filename = file.opts.filename; - } - set(key, val) { - this._map.set(key, val); - } - get(key) { - return this._map.get(key); - } - availableHelper(name, versionRange) { - return this.file.availableHelper(name, versionRange); - } - addHelper(name) { - return this.file.addHelper(name); - } - buildCodeFrameError(node, msg, _Error) { - return this.file.buildCodeFrameError(node, msg, _Error); - } -} -exports["default"] = PluginPass; -{ - PluginPass.prototype.getModuleName = function getModuleName() { - return this.file.getModuleName(); - }; - PluginPass.prototype.addImport = function addImport() { - this.file.addImport(); - }; -} -0 && 0; - -//# sourceMappingURL=plugin-pass.js.map - - -/***/ }), - -/***/ 35243: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -function deepClone(value, cache) { - if (value !== null) { - if (cache.has(value)) return cache.get(value); - let cloned; - if (Array.isArray(value)) { - cloned = new Array(value.length); - cache.set(value, cloned); - for (let i = 0; i < value.length; i++) { - cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache); - } - } else { - cloned = {}; - cache.set(value, cloned); - const keys = Object.keys(value); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache); - } - } - return cloned; - } - return value; -} -function _default(value) { - if (typeof value !== "object") return value; - return deepClone(value, new Map()); -} -0 && 0; - -//# sourceMappingURL=clone-deep.js.map - - -/***/ }), - -/***/ 79405: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.moduleResolve = moduleResolve; -exports.resolve = resolve; -function _assert() { - const data = __nccwpck_require__(39491); - _assert = function () { - return data; - }; - return data; -} -function _fs() { - const data = _interopRequireWildcard(__nccwpck_require__(57147), true); - _fs = function () { - return data; - }; - return data; -} -function _process() { - const data = __nccwpck_require__(77282); - _process = function () { - return data; - }; - return data; -} -function _url() { - const data = __nccwpck_require__(57310); - _url = function () { - return data; - }; - return data; -} -function _path() { - const data = __nccwpck_require__(71017); - _path = function () { - return data; - }; - return data; -} -function _module() { - const data = __nccwpck_require__(98188); - _module = function () { - return data; - }; - return data; -} -function _v() { - const data = __nccwpck_require__(84655); - _v = function () { - return data; - }; - return data; -} -function _util() { - const data = __nccwpck_require__(73837); - _util = function () { - return data; - }; - return data; -} -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -const isWindows = _process().platform === 'win32'; -const own$1 = {}.hasOwnProperty; -const classRegExp = /^([A-Z][a-z\d]*)+$/; -const kTypes = new Set(['string', 'function', 'number', 'object', 'Function', 'Object', 'boolean', 'bigint', 'symbol']); -const codes = {}; -function formatList(array, type = 'and') { - return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(', ')}, ${type} ${array[array.length - 1]}`; -} -const messages = new Map(); -const nodeInternalPrefix = '__node_internal_'; -let userStackTraceLimit; -codes.ERR_INVALID_ARG_TYPE = createError('ERR_INVALID_ARG_TYPE', (name, expected, actual) => { - _assert()(typeof name === 'string', "'name' must be a string"); - if (!Array.isArray(expected)) { - expected = [expected]; - } - let message = 'The '; - if (name.endsWith(' argument')) { - message += `${name} `; - } else { - const type = name.includes('.') ? 'property' : 'argument'; - message += `"${name}" ${type} `; - } - message += 'must be '; - const types = []; - const instances = []; - const other = []; - for (const value of expected) { - _assert()(typeof value === 'string', 'All expected entries have to be of type string'); - if (kTypes.has(value)) { - types.push(value.toLowerCase()); - } else if (classRegExp.exec(value) === null) { - _assert()(value !== 'object', 'The value "object" should be written as "Object"'); - other.push(value); - } else { - instances.push(value); - } - } - if (instances.length > 0) { - const pos = types.indexOf('object'); - if (pos !== -1) { - types.slice(pos, 1); - instances.push('Object'); - } - } - if (types.length > 0) { - message += `${types.length > 1 ? 'one of type' : 'of type'} ${formatList(types, 'or')}`; - if (instances.length > 0 || other.length > 0) message += ' or '; - } - if (instances.length > 0) { - message += `an instance of ${formatList(instances, 'or')}`; - if (other.length > 0) message += ' or '; - } - if (other.length > 0) { - if (other.length > 1) { - message += `one of ${formatList(other, 'or')}`; - } else { - if (other[0].toLowerCase() !== other[0]) message += 'an '; - message += `${other[0]}`; - } - } - message += `. Received ${determineSpecificType(actual)}`; - return message; -}, TypeError); -codes.ERR_INVALID_MODULE_SPECIFIER = createError('ERR_INVALID_MODULE_SPECIFIER', (request, reason, base = undefined) => { - return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ''}`; -}, TypeError); -codes.ERR_INVALID_PACKAGE_CONFIG = createError('ERR_INVALID_PACKAGE_CONFIG', (path, base, message) => { - return `Invalid package config ${path}${base ? ` while importing ${base}` : ''}${message ? `. ${message}` : ''}`; -}, Error); -codes.ERR_INVALID_PACKAGE_TARGET = createError('ERR_INVALID_PACKAGE_TARGET', (pkgPath, key, target, isImport = false, base = undefined) => { - const relError = typeof target === 'string' && !isImport && target.length > 0 && !target.startsWith('./'); - if (key === '.') { - _assert()(isImport === false); - return `Invalid "exports" main target ${JSON.stringify(target)} defined ` + `in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ''}${relError ? '; targets must start with "./"' : ''}`; - } - return `Invalid "${isImport ? 'imports' : 'exports'}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ''}${relError ? '; targets must start with "./"' : ''}`; -}, Error); -codes.ERR_MODULE_NOT_FOUND = createError('ERR_MODULE_NOT_FOUND', (path, base, type = 'package') => { - return `Cannot find ${type} '${path}' imported from ${base}`; -}, Error); -codes.ERR_NETWORK_IMPORT_DISALLOWED = createError('ERR_NETWORK_IMPORT_DISALLOWED', "import of '%s' by %s is not supported: %s", Error); -codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError('ERR_PACKAGE_IMPORT_NOT_DEFINED', (specifier, packagePath, base) => { - return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath}package.json` : ''} imported from ${base}`; -}, TypeError); -codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError('ERR_PACKAGE_PATH_NOT_EXPORTED', (pkgPath, subpath, base = undefined) => { - if (subpath === '.') return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ''}`; - return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ''}`; -}, Error); -codes.ERR_UNSUPPORTED_DIR_IMPORT = createError('ERR_UNSUPPORTED_DIR_IMPORT', "Directory import '%s' is not supported " + 'resolving ES modules imported from %s', Error); -codes.ERR_UNKNOWN_FILE_EXTENSION = createError('ERR_UNKNOWN_FILE_EXTENSION', (ext, path) => { - return `Unknown file extension "${ext}" for ${path}`; -}, TypeError); -codes.ERR_INVALID_ARG_VALUE = createError('ERR_INVALID_ARG_VALUE', (name, value, reason = 'is invalid') => { - let inspected = (0, _util().inspect)(value); - if (inspected.length > 128) { - inspected = `${inspected.slice(0, 128)}...`; - } - const type = name.includes('.') ? 'property' : 'argument'; - return `The ${type} '${name}' ${reason}. Received ${inspected}`; -}, TypeError); -codes.ERR_UNSUPPORTED_ESM_URL_SCHEME = createError('ERR_UNSUPPORTED_ESM_URL_SCHEME', (url, supported) => { - let message = `Only URLs with a scheme in: ${formatList(supported)} are supported by the default ESM loader`; - if (isWindows && url.protocol.length === 2) { - message += '. On Windows, absolute paths must be valid file:// URLs'; - } - message += `. Received protocol '${url.protocol}'`; - return message; -}, Error); -function createError(sym, value, def) { - messages.set(sym, value); - return makeNodeErrorWithCode(def, sym); -} -function makeNodeErrorWithCode(Base, key) { - return NodeError; - function NodeError(...args) { - const limit = Error.stackTraceLimit; - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0; - const error = new Base(); - if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit; - const message = getMessage(key, args, error); - Object.defineProperties(error, { - message: { - value: message, - enumerable: false, - writable: true, - configurable: true - }, - toString: { - value() { - return `${this.name} [${key}]: ${this.message}`; - }, - enumerable: false, - writable: true, - configurable: true - } - }); - captureLargerStackTrace(error); - error.code = key; - return error; - } -} -function isErrorStackTraceLimitWritable() { - try { - if (_v().startupSnapshot.isBuildingSnapshot()) { - return false; - } - } catch (_unused) {} - const desc = Object.getOwnPropertyDescriptor(Error, 'stackTraceLimit'); - if (desc === undefined) { - return Object.isExtensible(Error); - } - return own$1.call(desc, 'writable') && desc.writable !== undefined ? desc.writable : desc.set !== undefined; -} -function hideStackFrames(fn) { - const hidden = nodeInternalPrefix + fn.name; - Object.defineProperty(fn, 'name', { - value: hidden - }); - return fn; -} -const captureLargerStackTrace = hideStackFrames(function (error) { - const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable(); - if (stackTraceLimitIsWritable) { - userStackTraceLimit = Error.stackTraceLimit; - Error.stackTraceLimit = Number.POSITIVE_INFINITY; - } - Error.captureStackTrace(error); - if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit; - return error; -}); -function getMessage(key, args, self) { - const message = messages.get(key); - _assert()(message !== undefined, 'expected `message` to be found'); - if (typeof message === 'function') { - _assert()(message.length <= args.length, `Code: ${key}; The provided arguments length (${args.length}) does not ` + `match the required ones (${message.length}).`); - return Reflect.apply(message, self, args); - } - const regex = /%[dfijoOs]/g; - let expectedLength = 0; - while (regex.exec(message) !== null) expectedLength++; - _assert()(expectedLength === args.length, `Code: ${key}; The provided arguments length (${args.length}) does not ` + `match the required ones (${expectedLength}).`); - if (args.length === 0) return message; - args.unshift(message); - return Reflect.apply(_util().format, null, args); -} -function determineSpecificType(value) { - if (value === null || value === undefined) { - return String(value); - } - if (typeof value === 'function' && value.name) { - return `function ${value.name}`; - } - if (typeof value === 'object') { - if (value.constructor && value.constructor.name) { - return `an instance of ${value.constructor.name}`; - } - return `${(0, _util().inspect)(value, { - depth: -1 - })}`; - } - let inspected = (0, _util().inspect)(value, { - colors: false - }); - if (inspected.length > 28) { - inspected = `${inspected.slice(0, 25)}...`; - } - return `type ${typeof value} (${inspected})`; -} -const reader = { - read -}; -var packageJsonReader = reader; -function read(jsonPath) { - try { - const string = _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), 'package.json')), 'utf8'); - return { - string - }; - } catch (error) { - const exception = error; - if (exception.code === 'ENOENT') { - return { - string: undefined - }; - } - throw exception; - } -} -const { - ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 -} = codes; -const packageJsonCache = new Map(); -function getPackageConfig(path, specifier, base) { - const existing = packageJsonCache.get(path); - if (existing !== undefined) { - return existing; - } - const source = packageJsonReader.read(path).string; - if (source === undefined) { - const packageConfig = { - pjsonPath: path, - exists: false, - main: undefined, - name: undefined, - type: 'none', - exports: undefined, - imports: undefined - }; - packageJsonCache.set(path, packageConfig); - return packageConfig; - } - let packageJson; - try { - packageJson = JSON.parse(source); - } catch (error) { - const exception = error; - throw new ERR_INVALID_PACKAGE_CONFIG$1(path, (base ? `"${specifier}" from ` : '') + (0, _url().fileURLToPath)(base || specifier), exception.message); - } - const { - exports, - imports, - main, - name, - type - } = packageJson; - const packageConfig = { - pjsonPath: path, - exists: true, - main: typeof main === 'string' ? main : undefined, - name: typeof name === 'string' ? name : undefined, - type: type === 'module' || type === 'commonjs' ? type : 'none', - exports, - imports: imports && typeof imports === 'object' ? imports : undefined - }; - packageJsonCache.set(path, packageConfig); - return packageConfig; -} -function getPackageScopeConfig(resolved) { - let packageJsonUrl = new (_url().URL)('package.json', resolved); - while (true) { - const packageJsonPath = packageJsonUrl.pathname; - if (packageJsonPath.endsWith('node_modules/package.json')) break; - const packageConfig = getPackageConfig((0, _url().fileURLToPath)(packageJsonUrl), resolved); - if (packageConfig.exists) return packageConfig; - const lastPackageJsonUrl = packageJsonUrl; - packageJsonUrl = new (_url().URL)('../package.json', packageJsonUrl); - if (packageJsonUrl.pathname === lastPackageJsonUrl.pathname) break; - } - const packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); - const packageConfig = { - pjsonPath: packageJsonPath, - exists: false, - main: undefined, - name: undefined, - type: 'none', - exports: undefined, - imports: undefined - }; - packageJsonCache.set(packageJsonPath, packageConfig); - return packageConfig; -} -function getPackageType(url) { - const packageConfig = getPackageScopeConfig(url); - return packageConfig.type; -} -const { - ERR_UNKNOWN_FILE_EXTENSION -} = codes; -const hasOwnProperty = {}.hasOwnProperty; -const extensionFormatMap = { - __proto__: null, - '.cjs': 'commonjs', - '.js': 'module', - '.json': 'json', - '.mjs': 'module' -}; -function mimeToFormat(mime) { - if (mime && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime)) return 'module'; - if (mime === 'application/json') return 'json'; - return null; -} -const protocolHandlers = { - __proto__: null, - 'data:': getDataProtocolModuleFormat, - 'file:': getFileProtocolModuleFormat, - 'http:': getHttpProtocolModuleFormat, - 'https:': getHttpProtocolModuleFormat, - 'node:'() { - return 'builtin'; - } -}; -function getDataProtocolModuleFormat(parsed) { - const { - 1: mime - } = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(parsed.pathname) || [null, null, null]; - return mimeToFormat(mime); -} -function extname(url) { - const pathname = url.pathname; - let index = pathname.length; - while (index--) { - const code = pathname.codePointAt(index); - if (code === 47) { - return ''; - } - if (code === 46) { - return pathname.codePointAt(index - 1) === 47 ? '' : pathname.slice(index); - } - } - return ''; -} -function getFileProtocolModuleFormat(url, _context, ignoreErrors) { - const ext = extname(url); - if (ext === '.js') { - return getPackageType(url) === 'module' ? 'module' : 'commonjs'; - } - const format = extensionFormatMap[ext]; - if (format) return format; - if (ignoreErrors) { - return undefined; - } - const filepath = (0, _url().fileURLToPath)(url); - throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath); -} -function getHttpProtocolModuleFormat() {} -function defaultGetFormatWithoutErrors(url, context) { - if (!hasOwnProperty.call(protocolHandlers, url.protocol)) { - return null; - } - return protocolHandlers[url.protocol](url, context, true) || null; -} -const { - ERR_INVALID_ARG_VALUE -} = codes; -const DEFAULT_CONDITIONS = Object.freeze(['node', 'import']); -const DEFAULT_CONDITIONS_SET = new Set(DEFAULT_CONDITIONS); -function getDefaultConditions() { - return DEFAULT_CONDITIONS; -} -function getDefaultConditionsSet() { - return DEFAULT_CONDITIONS_SET; -} -function getConditionsSet(conditions) { - if (conditions !== undefined && conditions !== getDefaultConditions()) { - if (!Array.isArray(conditions)) { - throw new ERR_INVALID_ARG_VALUE('conditions', conditions, 'expected an array'); - } - return new Set(conditions); - } - return getDefaultConditionsSet(); -} -const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace]; -const experimentalNetworkImports = false; -const { - ERR_NETWORK_IMPORT_DISALLOWED, - ERR_INVALID_MODULE_SPECIFIER, - ERR_INVALID_PACKAGE_CONFIG, - ERR_INVALID_PACKAGE_TARGET, - ERR_MODULE_NOT_FOUND, - ERR_PACKAGE_IMPORT_NOT_DEFINED, - ERR_PACKAGE_PATH_NOT_EXPORTED, - ERR_UNSUPPORTED_DIR_IMPORT, - ERR_UNSUPPORTED_ESM_URL_SCHEME -} = codes; -const own = {}.hasOwnProperty; -const invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i; -const deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i; -const invalidPackageNameRegEx = /^\.|%|\\/; -const patternRegEx = /\*/g; -const encodedSepRegEx = /%2f|%5c/i; -const emittedPackageWarnings = new Set(); -const doubleSlashRegEx = /[/\\]{2}/; -function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) { - const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl); - const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null; - _process().emitWarning(`Use of deprecated ${double ? 'double slash' : 'leading or trailing slash matching'} resolving "${target}" for module ` + `request "${request}" ${request === match ? '' : `matched to "${match}" `}in the "${internal ? 'imports' : 'exports'}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ''}.`, 'DeprecationWarning', 'DEP0166'); -} -function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) { - const format = defaultGetFormatWithoutErrors(url, { - parentURL: base.href - }); - if (format !== 'module') return; - const path = (0, _url().fileURLToPath)(url.href); - const pkgPath = (0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)); - const basePath = (0, _url().fileURLToPath)(base); - if (main) _process().emitWarning(`Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, ` + `excluding the full filename and extension to the resolved file at "${path.slice(pkgPath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is` + 'deprecated for ES modules.', 'DeprecationWarning', 'DEP0151');else _process().emitWarning(`No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path.slice(pkgPath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`, 'DeprecationWarning', 'DEP0151'); -} -function tryStatSync(path) { - try { - return (0, _fs().statSync)(path); - } catch (_unused2) { - return new (_fs().Stats)(); - } -} -function fileExists(url) { - const stats = (0, _fs().statSync)(url, { - throwIfNoEntry: false - }); - const isFile = stats ? stats.isFile() : undefined; - return isFile === null || isFile === undefined ? false : isFile; -} -function legacyMainResolve(packageJsonUrl, packageConfig, base) { - let guess; - if (packageConfig.main !== undefined) { - guess = new (_url().URL)(packageConfig.main, packageJsonUrl); - if (fileExists(guess)) return guess; - const tries = [`./${packageConfig.main}.js`, `./${packageConfig.main}.json`, `./${packageConfig.main}.node`, `./${packageConfig.main}/index.js`, `./${packageConfig.main}/index.json`, `./${packageConfig.main}/index.node`]; - let i = -1; - while (++i < tries.length) { - guess = new (_url().URL)(tries[i], packageJsonUrl); - if (fileExists(guess)) break; - guess = undefined; - } - if (guess) { - emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main); - return guess; - } - } - const tries = ['./index.js', './index.json', './index.node']; - let i = -1; - while (++i < tries.length) { - guess = new (_url().URL)(tries[i], packageJsonUrl); - if (fileExists(guess)) break; - guess = undefined; - } - if (guess) { - emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main); - return guess; - } - throw new ERR_MODULE_NOT_FOUND((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), (0, _url().fileURLToPath)(base)); -} -function finalizeResolution(resolved, base, preserveSymlinks) { - if (encodedSepRegEx.exec(resolved.pathname) !== null) throw new ERR_INVALID_MODULE_SPECIFIER(resolved.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base)); - const filePath = (0, _url().fileURLToPath)(resolved); - const stats = tryStatSync(filePath.endsWith('/') ? filePath.slice(-1) : filePath); - if (stats.isDirectory()) { - const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, _url().fileURLToPath)(base)); - error.url = String(resolved); - throw error; - } - if (!stats.isFile()) { - throw new ERR_MODULE_NOT_FOUND(filePath || resolved.pathname, base && (0, _url().fileURLToPath)(base), 'module'); - } - if (!preserveSymlinks) { - const real = (0, _fs().realpathSync)(filePath); - const { - search, - hash - } = resolved; - resolved = (0, _url().pathToFileURL)(real + (filePath.endsWith(_path().sep) ? '/' : '')); - resolved.search = search; - resolved.hash = hash; - } - return resolved; -} -function importNotDefined(specifier, packageJsonUrl, base) { - return new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier, packageJsonUrl && (0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), (0, _url().fileURLToPath)(base)); -} -function exportsNotFound(subpath, packageJsonUrl, base) { - return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base)); -} -function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) { - const reason = `request is not a valid match in pattern "${match}" for the "${internal ? 'imports' : 'exports'}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`; - throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base)); -} -function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) { - target = typeof target === 'object' && target !== null ? JSON.stringify(target, null, '') : `${target}`; - return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base)); -} -function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) { - if (subpath !== '' && !pattern && target[target.length - 1] !== '/') throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); - if (!target.startsWith('./')) { - if (internal && !target.startsWith('../') && !target.startsWith('/')) { - let isURL = false; - try { - new (_url().URL)(target); - isURL = true; - } catch (_unused3) {} - if (!isURL) { - const exportTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target + subpath; - return packageResolve(exportTarget, packageJsonUrl, conditions); - } - } - throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); - } - if (invalidSegmentRegEx.exec(target.slice(2)) !== null) { - if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) { - if (!isPathMap) { - const request = pattern ? match.replace('*', () => subpath) : match + subpath; - const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target; - emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, true); - } - } else { - throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); - } - } - const resolved = new (_url().URL)(target, packageJsonUrl); - const resolvedPath = resolved.pathname; - const packagePath = new (_url().URL)('.', packageJsonUrl).pathname; - if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); - if (subpath === '') return resolved; - if (invalidSegmentRegEx.exec(subpath) !== null) { - const request = pattern ? match.replace('*', () => subpath) : match + subpath; - if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) { - if (!isPathMap) { - const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target; - emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, false); - } - } else { - throwInvalidSubpath(request, match, packageJsonUrl, internal, base); - } - } - if (pattern) { - return new (_url().URL)(RegExpPrototypeSymbolReplace.call(patternRegEx, resolved.href, () => subpath)); - } - return new (_url().URL)(subpath, resolved); -} -function isArrayIndex(key) { - const keyNumber = Number(key); - if (`${keyNumber}` !== key) return false; - return keyNumber >= 0 && keyNumber < 0xffffffff; -} -function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions) { - if (typeof target === 'string') { - return resolvePackageTargetString(target, subpath, packageSubpath, packageJsonUrl, base, pattern, internal, isPathMap, conditions); - } - if (Array.isArray(target)) { - const targetList = target; - if (targetList.length === 0) return null; - let lastException; - let i = -1; - while (++i < targetList.length) { - const targetItem = targetList[i]; - let resolveResult; - try { - resolveResult = resolvePackageTarget(packageJsonUrl, targetItem, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions); - } catch (error) { - const exception = error; - lastException = exception; - if (exception.code === 'ERR_INVALID_PACKAGE_TARGET') continue; - throw error; - } - if (resolveResult === undefined) continue; - if (resolveResult === null) { - lastException = null; - continue; - } - return resolveResult; - } - if (lastException === undefined || lastException === null) { - return null; - } - throw lastException; - } - if (typeof target === 'object' && target !== null) { - const keys = Object.getOwnPropertyNames(target); - let i = -1; - while (++i < keys.length) { - const key = keys[i]; - if (isArrayIndex(key)) { - throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl), base, '"exports" cannot contain numeric property keys.'); - } - } - i = -1; - while (++i < keys.length) { - const key = keys[i]; - if (key === 'default' || conditions && conditions.has(key)) { - const conditionalTarget = target[key]; - const resolveResult = resolvePackageTarget(packageJsonUrl, conditionalTarget, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions); - if (resolveResult === undefined) continue; - return resolveResult; - } - } - return null; - } - if (target === null) { - return null; - } - throw invalidPackageTarget(packageSubpath, target, packageJsonUrl, internal, base); -} -function isConditionalExportsMainSugar(exports, packageJsonUrl, base) { - if (typeof exports === 'string' || Array.isArray(exports)) return true; - if (typeof exports !== 'object' || exports === null) return false; - const keys = Object.getOwnPropertyNames(exports); - let isConditionalSugar = false; - let i = 0; - let j = -1; - while (++j < keys.length) { - const key = keys[j]; - const curIsConditionalSugar = key === '' || key[0] !== '.'; - if (i++ === 0) { - isConditionalSugar = curIsConditionalSugar; - } else if (isConditionalSugar !== curIsConditionalSugar) { - throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl), base, '"exports" cannot contain some keys starting with \'.\' and some not.' + ' The exports object must either be an object of package subpath keys' + ' or an object of main entry condition name keys only.'); - } - } - return isConditionalSugar; -} -function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) { - const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl); - if (emittedPackageWarnings.has(pjsonPath + '|' + match)) return; - emittedPackageWarnings.add(pjsonPath + '|' + match); - _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match}" in the ` + `"exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ''}. Mapping specifiers ending in "/" is no longer supported.`, 'DeprecationWarning', 'DEP0155'); -} -function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) { - let exports = packageConfig.exports; - if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) { - exports = { - '.': exports - }; - } - if (own.call(exports, packageSubpath) && !packageSubpath.includes('*') && !packageSubpath.endsWith('/')) { - const target = exports[packageSubpath]; - const resolveResult = resolvePackageTarget(packageJsonUrl, target, '', packageSubpath, base, false, false, false, conditions); - if (resolveResult === null || resolveResult === undefined) { - throw exportsNotFound(packageSubpath, packageJsonUrl, base); - } - return resolveResult; - } - let bestMatch = ''; - let bestMatchSubpath = ''; - const keys = Object.getOwnPropertyNames(exports); - let i = -1; - while (++i < keys.length) { - const key = keys[i]; - const patternIndex = key.indexOf('*'); - if (patternIndex !== -1 && packageSubpath.startsWith(key.slice(0, patternIndex))) { - if (packageSubpath.endsWith('/')) { - emitTrailingSlashPatternDeprecation(packageSubpath, packageJsonUrl, base); - } - const patternTrailer = key.slice(patternIndex + 1); - if (packageSubpath.length >= key.length && packageSubpath.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf('*') === patternIndex) { - bestMatch = key; - bestMatchSubpath = packageSubpath.slice(patternIndex, packageSubpath.length - patternTrailer.length); - } - } - } - if (bestMatch) { - const target = exports[bestMatch]; - const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith('/'), conditions); - if (resolveResult === null || resolveResult === undefined) { - throw exportsNotFound(packageSubpath, packageJsonUrl, base); - } - return resolveResult; - } - throw exportsNotFound(packageSubpath, packageJsonUrl, base); -} -function patternKeyCompare(a, b) { - const aPatternIndex = a.indexOf('*'); - const bPatternIndex = b.indexOf('*'); - const baseLengthA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; - const baseLengthB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; - if (baseLengthA > baseLengthB) return -1; - if (baseLengthB > baseLengthA) return 1; - if (aPatternIndex === -1) return 1; - if (bPatternIndex === -1) return -1; - if (a.length > b.length) return -1; - if (b.length > a.length) return 1; - return 0; -} -function packageImportsResolve(name, base, conditions) { - if (name === '#' || name.startsWith('#/') || name.endsWith('/')) { - const reason = 'is not a valid internal imports specifier name'; - throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, (0, _url().fileURLToPath)(base)); - } - let packageJsonUrl; - const packageConfig = getPackageScopeConfig(base); - if (packageConfig.exists) { - packageJsonUrl = (0, _url().pathToFileURL)(packageConfig.pjsonPath); - const imports = packageConfig.imports; - if (imports) { - if (own.call(imports, name) && !name.includes('*')) { - const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], '', name, base, false, true, false, conditions); - if (resolveResult !== null && resolveResult !== undefined) { - return resolveResult; - } - } else { - let bestMatch = ''; - let bestMatchSubpath = ''; - const keys = Object.getOwnPropertyNames(imports); - let i = -1; - while (++i < keys.length) { - const key = keys[i]; - const patternIndex = key.indexOf('*'); - if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) { - const patternTrailer = key.slice(patternIndex + 1); - if (name.length >= key.length && name.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf('*') === patternIndex) { - bestMatch = key; - bestMatchSubpath = name.slice(patternIndex, name.length - patternTrailer.length); - } - } - } - if (bestMatch) { - const target = imports[bestMatch]; - const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions); - if (resolveResult !== null && resolveResult !== undefined) { - return resolveResult; - } - } - } - } - } - throw importNotDefined(name, packageJsonUrl, base); -} -function parsePackageName(specifier, base) { - let separatorIndex = specifier.indexOf('/'); - let validPackageName = true; - let isScoped = false; - if (specifier[0] === '@') { - isScoped = true; - if (separatorIndex === -1 || specifier.length === 0) { - validPackageName = false; - } else { - separatorIndex = specifier.indexOf('/', separatorIndex + 1); - } - } - const packageName = separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex); - if (invalidPackageNameRegEx.exec(packageName) !== null) { - validPackageName = false; - } - if (!validPackageName) { - throw new ERR_INVALID_MODULE_SPECIFIER(specifier, 'is not a valid package name', (0, _url().fileURLToPath)(base)); - } - const packageSubpath = '.' + (separatorIndex === -1 ? '' : specifier.slice(separatorIndex)); - return { - packageName, - packageSubpath, - isScoped - }; -} -function packageResolve(specifier, base, conditions) { - if (_module().builtinModules.includes(specifier)) { - return new (_url().URL)('node:' + specifier); - } - const { - packageName, - packageSubpath, - isScoped - } = parsePackageName(specifier, base); - const packageConfig = getPackageScopeConfig(base); - if (packageConfig.exists) { - const packageJsonUrl = (0, _url().pathToFileURL)(packageConfig.pjsonPath); - if (packageConfig.name === packageName && packageConfig.exports !== undefined && packageConfig.exports !== null) { - return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions); - } - } - let packageJsonUrl = new (_url().URL)('./node_modules/' + packageName + '/package.json', base); - let packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); - let lastPath; - do { - const stat = tryStatSync(packageJsonPath.slice(0, -13)); - if (!stat.isDirectory()) { - lastPath = packageJsonPath; - packageJsonUrl = new (_url().URL)((isScoped ? '../../../../node_modules/' : '../../../node_modules/') + packageName + '/package.json', packageJsonUrl); - packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); - continue; - } - const packageConfig = getPackageConfig(packageJsonPath, specifier, base); - if (packageConfig.exports !== undefined && packageConfig.exports !== null) { - return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions); - } - if (packageSubpath === '.') { - return legacyMainResolve(packageJsonUrl, packageConfig, base); - } - return new (_url().URL)(packageSubpath, packageJsonUrl); - } while (packageJsonPath.length !== lastPath.length); - throw new ERR_MODULE_NOT_FOUND(packageName, (0, _url().fileURLToPath)(base)); -} -function isRelativeSpecifier(specifier) { - if (specifier[0] === '.') { - if (specifier.length === 1 || specifier[1] === '/') return true; - if (specifier[1] === '.' && (specifier.length === 2 || specifier[2] === '/')) { - return true; - } - } - return false; -} -function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) { - if (specifier === '') return false; - if (specifier[0] === '/') return true; - return isRelativeSpecifier(specifier); -} -function moduleResolve(specifier, base, conditions, preserveSymlinks) { - const protocol = base.protocol; - const isRemote = protocol === 'http:' || protocol === 'https:'; - let resolved; - if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) { - resolved = new (_url().URL)(specifier, base); - } else if (!isRemote && specifier[0] === '#') { - resolved = packageImportsResolve(specifier, base, conditions); - } else { - try { - resolved = new (_url().URL)(specifier); - } catch (_unused4) { - if (!isRemote) { - resolved = packageResolve(specifier, base, conditions); - } - } - } - _assert()(resolved !== undefined, 'expected to be defined'); - if (resolved.protocol !== 'file:') { - return resolved; - } - return finalizeResolution(resolved, base, preserveSymlinks); -} -function checkIfDisallowedImport(specifier, parsed, parsedParentURL) { - if (parsedParentURL) { - const parentProtocol = parsedParentURL.protocol; - if (parentProtocol === 'http:' || parentProtocol === 'https:') { - if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) { - const parsedProtocol = parsed == null ? void 0 : parsed.protocol; - if (parsedProtocol && parsedProtocol !== 'https:' && parsedProtocol !== 'http:') { - throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, 'remote imports cannot import from a local location.'); - } - return { - url: (parsed == null ? void 0 : parsed.href) || '' - }; - } - if (_module().builtinModules.includes(specifier)) { - throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, 'remote imports cannot import from a local location.'); - } - throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, 'only relative and absolute specifiers are supported.'); - } - } -} -function isURL(self) { - return Boolean(self && typeof self === 'object' && 'href' in self && typeof self.href === 'string' && 'protocol' in self && typeof self.protocol === 'string' && self.href && self.protocol); -} -function throwIfInvalidParentURL(parentURL) { - if (parentURL === undefined) { - return; - } - if (typeof parentURL !== 'string' && !isURL(parentURL)) { - throw new codes.ERR_INVALID_ARG_TYPE('parentURL', ['string', 'URL'], parentURL); - } -} -function throwIfUnsupportedURLProtocol(url) { - const protocol = url.protocol; - if (protocol !== 'file:' && protocol !== 'data:' && protocol !== 'node:') { - throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(url); - } -} -function throwIfUnsupportedURLScheme(parsed, experimentalNetworkImports) { - const protocol = parsed == null ? void 0 : parsed.protocol; - if (protocol && protocol !== 'file:' && protocol !== 'data:' && (!experimentalNetworkImports || protocol !== 'https:' && protocol !== 'http:')) { - throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed, ['file', 'data'].concat(experimentalNetworkImports ? ['https', 'http'] : [])); - } -} -function defaultResolve(specifier, context = {}) { - const { - parentURL - } = context; - _assert()(parentURL !== undefined, 'expected `parentURL` to be defined'); - throwIfInvalidParentURL(parentURL); - let parsedParentURL; - if (parentURL) { - try { - parsedParentURL = new (_url().URL)(parentURL); - } catch (_unused5) {} - } - let parsed; - try { - parsed = shouldBeTreatedAsRelativeOrAbsolutePath(specifier) ? new (_url().URL)(specifier, parsedParentURL) : new (_url().URL)(specifier); - const protocol = parsed.protocol; - if (protocol === 'data:' || experimentalNetworkImports && (protocol === 'https:' || protocol === 'http:')) { - return { - url: parsed.href, - format: null - }; - } - } catch (_unused6) {} - const maybeReturn = checkIfDisallowedImport(specifier, parsed, parsedParentURL); - if (maybeReturn) return maybeReturn; - if (parsed && parsed.protocol === 'node:') return { - url: specifier - }; - throwIfUnsupportedURLScheme(parsed, experimentalNetworkImports); - const conditions = getConditionsSet(context.conditions); - const url = moduleResolve(specifier, new (_url().URL)(parentURL), conditions, false); - throwIfUnsupportedURLProtocol(url); - return { - url: url.href, - format: defaultGetFormatWithoutErrors(url, { - parentURL - }) - }; -} -function resolve(specifier, parent) { - if (!parent) { - throw new Error('Please pass `parent`: `import-meta-resolve` cannot ponyfill that'); - } - try { - return defaultResolve(specifier, { - parentURL: parent - }).url; - } catch (error) { - const exception = error; - if (exception.code === 'ERR_UNSUPPORTED_DIR_IMPORT' && typeof exception.url === 'string') { - return exception.url; - } - throw error; - } -} -0 && 0; - -//# sourceMappingURL=import-meta-resolve.js.map - - -/***/ }), - -/***/ 39369: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -class Buffer { - constructor(map) { - this._map = null; - this._buf = ""; - this._str = ""; - this._appendCount = 0; - this._last = 0; - this._queue = []; - this._queueCursor = 0; - this._canMarkIdName = true; - this._position = { - line: 1, - column: 0 - }; - this._sourcePosition = { - identifierName: undefined, - identifierNamePos: undefined, - line: undefined, - column: undefined, - filename: undefined - }; - this._map = map; - this._allocQueue(); - } - _allocQueue() { - const queue = this._queue; - for (let i = 0; i < 16; i++) { - queue.push({ - char: 0, - repeat: 1, - line: undefined, - column: undefined, - identifierName: undefined, - identifierNamePos: undefined, - filename: "" - }); - } - } - _pushQueue(char, repeat, line, column, filename) { - const cursor = this._queueCursor; - if (cursor === this._queue.length) { - this._allocQueue(); - } - const item = this._queue[cursor]; - item.char = char; - item.repeat = repeat; - item.line = line; - item.column = column; - item.filename = filename; - this._queueCursor++; - } - _popQueue() { - if (this._queueCursor === 0) { - throw new Error("Cannot pop from empty queue"); - } - return this._queue[--this._queueCursor]; - } - get() { - this._flush(); - const map = this._map; - const result = { - code: (this._buf + this._str).trimRight(), - decodedMap: map == null ? void 0 : map.getDecoded(), - get __mergedMap() { - return this.map; - }, - get map() { - const resultMap = map ? map.get() : null; - result.map = resultMap; - return resultMap; - }, - set map(value) { - Object.defineProperty(result, "map", { - value, - writable: true - }); - }, - get rawMappings() { - const mappings = map == null ? void 0 : map.getRawMappings(); - result.rawMappings = mappings; - return mappings; - }, - set rawMappings(value) { - Object.defineProperty(result, "rawMappings", { - value, - writable: true - }); - } - }; - return result; - } - append(str, maybeNewline) { - this._flush(); - this._append(str, this._sourcePosition, maybeNewline); - } - appendChar(char) { - this._flush(); - this._appendChar(char, 1, this._sourcePosition); - } - queue(char) { - if (char === 10) { - while (this._queueCursor !== 0) { - const char = this._queue[this._queueCursor - 1].char; - if (char !== 32 && char !== 9) { - break; - } - this._queueCursor--; - } - } - const sourcePosition = this._sourcePosition; - this._pushQueue(char, 1, sourcePosition.line, sourcePosition.column, sourcePosition.filename); - } - queueIndentation(char, repeat) { - this._pushQueue(char, repeat, undefined, undefined, undefined); - } - _flush() { - const queueCursor = this._queueCursor; - const queue = this._queue; - for (let i = 0; i < queueCursor; i++) { - const item = queue[i]; - this._appendChar(item.char, item.repeat, item); - } - this._queueCursor = 0; - } - _appendChar(char, repeat, sourcePos) { - this._last = char; - this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char); - if (char !== 10) { - this._mark(sourcePos.line, sourcePos.column, sourcePos.identifierName, sourcePos.identifierNamePos, sourcePos.filename); - this._position.column += repeat; - } else { - this._position.line++; - this._position.column = 0; - } - if (this._canMarkIdName) { - sourcePos.identifierName = undefined; - sourcePos.identifierNamePos = undefined; - } - } - _append(str, sourcePos, maybeNewline) { - const len = str.length; - const position = this._position; - this._last = str.charCodeAt(len - 1); - if (++this._appendCount > 4096) { - +this._str; - this._buf += this._str; - this._str = str; - this._appendCount = 0; - } else { - this._str += str; - } - if (!maybeNewline && !this._map) { - position.column += len; - return; - } - const { - column, - identifierName, - identifierNamePos, - filename - } = sourcePos; - let line = sourcePos.line; - if ((identifierName != null || identifierNamePos != null) && this._canMarkIdName) { - sourcePos.identifierName = undefined; - sourcePos.identifierNamePos = undefined; - } - let i = str.indexOf("\n"); - let last = 0; - if (i !== 0) { - this._mark(line, column, identifierName, identifierNamePos, filename); - } - while (i !== -1) { - position.line++; - position.column = 0; - last = i + 1; - if (last < len && line !== undefined) { - this._mark(++line, 0, null, null, filename); - } - i = str.indexOf("\n", last); - } - position.column += len - last; - } - _mark(line, column, identifierName, identifierNamePos, filename) { - var _this$_map; - (_this$_map = this._map) == null ? void 0 : _this$_map.mark(this._position, line, column, identifierName, identifierNamePos, filename); - } - removeTrailingNewline() { - const queueCursor = this._queueCursor; - if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 10) { - this._queueCursor--; - } - } - removeLastSemicolon() { - const queueCursor = this._queueCursor; - if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 59) { - this._queueCursor--; - } - } - getLastChar() { - const queueCursor = this._queueCursor; - return queueCursor !== 0 ? this._queue[queueCursor - 1].char : this._last; - } - getNewlineCount() { - const queueCursor = this._queueCursor; - let count = 0; - if (queueCursor === 0) return this._last === 10 ? 1 : 0; - for (let i = queueCursor - 1; i >= 0; i--) { - if (this._queue[i].char !== 10) { - break; - } - count++; - } - return count === queueCursor && this._last === 10 ? count + 1 : count; - } - endsWithCharAndNewline() { - const queue = this._queue; - const queueCursor = this._queueCursor; - if (queueCursor !== 0) { - const lastCp = queue[queueCursor - 1].char; - if (lastCp !== 10) return; - if (queueCursor > 1) { - return queue[queueCursor - 2].char; - } else { - return this._last; - } - } - } - hasContent() { - return this._queueCursor !== 0 || !!this._last; - } - exactSource(loc, cb) { - if (!this._map) return cb(); - this.source("start", loc); - const identifierName = loc.identifierName; - const sourcePos = this._sourcePosition; - if (identifierName) { - this._canMarkIdName = false; - sourcePos.identifierName = identifierName; - } - cb(); - if (identifierName) { - this._canMarkIdName = true; - sourcePos.identifierName = undefined; - sourcePos.identifierNamePos = undefined; - } - this.source("end", loc); - } - source(prop, loc) { - if (!this._map) return; - this._normalizePosition(prop, loc, 0, 0); - } - sourceWithOffset(prop, loc, lineOffset, columnOffset) { - if (!this._map) return; - this._normalizePosition(prop, loc, lineOffset, columnOffset); - } - withSource(prop, loc, cb) { - if (!this._map) return cb(); - this.source(prop, loc); - cb(); - } - _normalizePosition(prop, loc, lineOffset, columnOffset) { - const pos = loc[prop]; - const target = this._sourcePosition; - if (pos) { - target.line = pos.line + lineOffset; - target.column = pos.column + columnOffset; - target.filename = loc.filename; - } - } - getCurrentColumn() { - const queue = this._queue; - const queueCursor = this._queueCursor; - let lastIndex = -1; - let len = 0; - for (let i = 0; i < queueCursor; i++) { - const item = queue[i]; - if (item.char === 10) { - lastIndex = len; - } - len += item.repeat; - } - return lastIndex === -1 ? this._position.column + len : len - 1 - lastIndex; - } - getCurrentLine() { - let count = 0; - const queue = this._queue; - for (let i = 0; i < this._queueCursor; i++) { - if (queue[i].char === 10) { - count++; - } - } - return this._position.line + count; - } -} -exports["default"] = Buffer; - -//# sourceMappingURL=buffer.js.map - - -/***/ }), - -/***/ 39213: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.BlockStatement = BlockStatement; -exports.Directive = Directive; -exports.DirectiveLiteral = DirectiveLiteral; -exports.File = File; -exports.InterpreterDirective = InterpreterDirective; -exports.Placeholder = Placeholder; -exports.Program = Program; -function File(node) { - if (node.program) { - this.print(node.program.interpreter, node); - } - this.print(node.program, node); -} -function Program(node) { - var _node$directives; - this.noIndentInnerCommentsHere(); - this.printInnerComments(); - const directivesLen = (_node$directives = node.directives) == null ? void 0 : _node$directives.length; - if (directivesLen) { - var _node$directives$trai; - const newline = node.body.length ? 2 : 1; - this.printSequence(node.directives, node, { - trailingCommentsLineOffset: newline - }); - if (!((_node$directives$trai = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai.length)) { - this.newline(newline); - } - } - this.printSequence(node.body, node); -} -function BlockStatement(node) { - var _node$directives2; - this.tokenChar(123); - const directivesLen = (_node$directives2 = node.directives) == null ? void 0 : _node$directives2.length; - if (directivesLen) { - var _node$directives$trai2; - const newline = node.body.length ? 2 : 1; - this.printSequence(node.directives, node, { - indent: true, - trailingCommentsLineOffset: newline - }); - if (!((_node$directives$trai2 = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai2.length)) { - this.newline(newline); - } - } - this.printSequence(node.body, node, { - indent: true - }); - this.sourceWithOffset("end", node.loc, 0, -1); - this.rightBrace(); -} -function Directive(node) { - this.print(node.value, node); - this.semicolon(); -} -const unescapedSingleQuoteRE = /(?:^|[^\\])(?:\\\\)*'/; -const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/; -function DirectiveLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.token(raw); - return; - } - const { - value - } = node; - if (!unescapedDoubleQuoteRE.test(value)) { - this.token(`"${value}"`); - } else if (!unescapedSingleQuoteRE.test(value)) { - this.token(`'${value}'`); - } else { - throw new Error("Malformed AST: it is not possible to print a directive containing" + " both unescaped single and double quotes."); - } -} -function InterpreterDirective(node) { - this.token(`#!${node.value}`); - this.newline(1, true); -} -function Placeholder(node) { - this.token("%%"); - this.print(node.name); - this.token("%%"); - if (node.expectedNode === "Statement") { - this.semicolon(); - } -} - -//# sourceMappingURL=base.js.map - - -/***/ }), - -/***/ 98489: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ClassAccessorProperty = ClassAccessorProperty; -exports.ClassBody = ClassBody; -exports.ClassExpression = exports.ClassDeclaration = ClassDeclaration; -exports.ClassMethod = ClassMethod; -exports.ClassPrivateMethod = ClassPrivateMethod; -exports.ClassPrivateProperty = ClassPrivateProperty; -exports.ClassProperty = ClassProperty; -exports.StaticBlock = StaticBlock; -exports._classMethodHead = _classMethodHead; -var _t = __nccwpck_require__(53501); -const { - isExportDefaultDeclaration, - isExportNamedDeclaration -} = _t; -function ClassDeclaration(node, parent) { - const inExport = isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent); - if (!inExport || !this._shouldPrintDecoratorsBeforeExport(parent)) { - this.printJoin(node.decorators, node); - } - if (node.declare) { - this.word("declare"); - this.space(); - } - if (node.abstract) { - this.word("abstract"); - this.space(); - } - this.word("class"); - if (node.id) { - this.space(); - this.print(node.id, node); - } - this.print(node.typeParameters, node); - if (node.superClass) { - this.space(); - this.word("extends"); - this.space(); - this.print(node.superClass, node); - this.print(node.superTypeParameters, node); - } - if (node.implements) { - this.space(); - this.word("implements"); - this.space(); - this.printList(node.implements, node); - } - this.space(); - this.print(node.body, node); -} -function ClassBody(node) { - this.tokenChar(123); - if (node.body.length === 0) { - this.tokenChar(125); - } else { - this.newline(); - this.indent(); - this.printSequence(node.body, node); - this.dedent(); - if (!this.endsWith(10)) this.newline(); - this.sourceWithOffset("end", node.loc, 0, -1); - this.rightBrace(); - } -} -function ClassProperty(node) { - var _node$key$loc, _node$key$loc$end; - this.printJoin(node.decorators, node); - const endLine = (_node$key$loc = node.key.loc) == null ? void 0 : (_node$key$loc$end = _node$key$loc.end) == null ? void 0 : _node$key$loc$end.line; - if (endLine) this.catchUp(endLine); - this.tsPrintClassMemberModifiers(node); - if (node.computed) { - this.tokenChar(91); - this.print(node.key, node); - this.tokenChar(93); - } else { - this._variance(node); - this.print(node.key, node); - } - if (node.optional) { - this.tokenChar(63); - } - if (node.definite) { - this.tokenChar(33); - } - this.print(node.typeAnnotation, node); - if (node.value) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.value, node); - } - this.semicolon(); -} -function ClassAccessorProperty(node) { - var _node$key$loc2, _node$key$loc2$end; - this.printJoin(node.decorators, node); - const endLine = (_node$key$loc2 = node.key.loc) == null ? void 0 : (_node$key$loc2$end = _node$key$loc2.end) == null ? void 0 : _node$key$loc2$end.line; - if (endLine) this.catchUp(endLine); - this.tsPrintClassMemberModifiers(node); - this.word("accessor", true); - this.space(); - if (node.computed) { - this.tokenChar(91); - this.print(node.key, node); - this.tokenChar(93); - } else { - this._variance(node); - this.print(node.key, node); - } - if (node.optional) { - this.tokenChar(63); - } - if (node.definite) { - this.tokenChar(33); - } - this.print(node.typeAnnotation, node); - if (node.value) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.value, node); - } - this.semicolon(); -} -function ClassPrivateProperty(node) { - this.printJoin(node.decorators, node); - if (node.static) { - this.word("static"); - this.space(); - } - this.print(node.key, node); - this.print(node.typeAnnotation, node); - if (node.value) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.value, node); - } - this.semicolon(); -} -function ClassMethod(node) { - this._classMethodHead(node); - this.space(); - this.print(node.body, node); -} -function ClassPrivateMethod(node) { - this._classMethodHead(node); - this.space(); - this.print(node.body, node); -} -function _classMethodHead(node) { - var _node$key$loc3, _node$key$loc3$end; - this.printJoin(node.decorators, node); - const endLine = (_node$key$loc3 = node.key.loc) == null ? void 0 : (_node$key$loc3$end = _node$key$loc3.end) == null ? void 0 : _node$key$loc3$end.line; - if (endLine) this.catchUp(endLine); - this.tsPrintClassMemberModifiers(node); - this._methodHead(node); -} -function StaticBlock(node) { - this.word("static"); - this.space(); - this.tokenChar(123); - if (node.body.length === 0) { - this.tokenChar(125); - } else { - this.newline(); - this.printSequence(node.body, node, { - indent: true - }); - this.sourceWithOffset("end", node.loc, 0, -1); - this.rightBrace(); - } -} - -//# sourceMappingURL=classes.js.map - - -/***/ }), - -/***/ 87497: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression; -exports.AssignmentPattern = AssignmentPattern; -exports.AwaitExpression = AwaitExpression; -exports.BindExpression = BindExpression; -exports.CallExpression = CallExpression; -exports.ConditionalExpression = ConditionalExpression; -exports.Decorator = Decorator; -exports.DoExpression = DoExpression; -exports.EmptyStatement = EmptyStatement; -exports.ExpressionStatement = ExpressionStatement; -exports.Import = Import; -exports.MemberExpression = MemberExpression; -exports.MetaProperty = MetaProperty; -exports.ModuleExpression = ModuleExpression; -exports.NewExpression = NewExpression; -exports.OptionalCallExpression = OptionalCallExpression; -exports.OptionalMemberExpression = OptionalMemberExpression; -exports.ParenthesizedExpression = ParenthesizedExpression; -exports.PrivateName = PrivateName; -exports.SequenceExpression = SequenceExpression; -exports.Super = Super; -exports.ThisExpression = ThisExpression; -exports.UnaryExpression = UnaryExpression; -exports.UpdateExpression = UpdateExpression; -exports.V8IntrinsicIdentifier = V8IntrinsicIdentifier; -exports.YieldExpression = YieldExpression; -exports._shouldPrintDecoratorsBeforeExport = _shouldPrintDecoratorsBeforeExport; -var _t = __nccwpck_require__(53501); -var n = __nccwpck_require__(81300); -const { - isCallExpression, - isLiteral, - isMemberExpression, - isNewExpression -} = _t; -function UnaryExpression(node) { - if (node.operator === "void" || node.operator === "delete" || node.operator === "typeof" || node.operator === "throw") { - this.word(node.operator); - this.space(); - } else { - this.token(node.operator); - } - this.print(node.argument, node); -} -function DoExpression(node) { - if (node.async) { - this.word("async", true); - this.space(); - } - this.word("do"); - this.space(); - this.print(node.body, node); -} -function ParenthesizedExpression(node) { - this.tokenChar(40); - this.print(node.expression, node); - this.tokenChar(41); -} -function UpdateExpression(node) { - if (node.prefix) { - this.token(node.operator); - this.print(node.argument, node); - } else { - this.printTerminatorless(node.argument, node, true); - this.token(node.operator); - } -} -function ConditionalExpression(node) { - this.print(node.test, node); - this.space(); - this.tokenChar(63); - this.space(); - this.print(node.consequent, node); - this.space(); - this.tokenChar(58); - this.space(); - this.print(node.alternate, node); -} -function NewExpression(node, parent) { - this.word("new"); - this.space(); - this.print(node.callee, node); - if (this.format.minified && node.arguments.length === 0 && !node.optional && !isCallExpression(parent, { - callee: node - }) && !isMemberExpression(parent) && !isNewExpression(parent)) { - return; - } - this.print(node.typeArguments, node); - this.print(node.typeParameters, node); - if (node.optional) { - this.token("?."); - } - this.tokenChar(40); - this.printList(node.arguments, node); - this.tokenChar(41); -} -function SequenceExpression(node) { - this.printList(node.expressions, node); -} -function ThisExpression() { - this.word("this"); -} -function Super() { - this.word("super"); -} -function isDecoratorMemberExpression(node) { - switch (node.type) { - case "Identifier": - return true; - case "MemberExpression": - return !node.computed && node.property.type === "Identifier" && isDecoratorMemberExpression(node.object); - default: - return false; - } -} -function shouldParenthesizeDecoratorExpression(node) { - if (node.type === "ParenthesizedExpression") { - return false; - } - return !isDecoratorMemberExpression(node.type === "CallExpression" ? node.callee : node); -} -function _shouldPrintDecoratorsBeforeExport(node) { - if (typeof this.format.decoratorsBeforeExport === "boolean") { - return this.format.decoratorsBeforeExport; - } - return typeof node.start === "number" && node.start === node.declaration.start; -} -function Decorator(node) { - this.tokenChar(64); - const { - expression - } = node; - if (shouldParenthesizeDecoratorExpression(expression)) { - this.tokenChar(40); - this.print(expression, node); - this.tokenChar(41); - } else { - this.print(expression, node); - } - this.newline(); -} -function OptionalMemberExpression(node) { - this.print(node.object, node); - if (!node.computed && isMemberExpression(node.property)) { - throw new TypeError("Got a MemberExpression for MemberExpression property"); - } - let computed = node.computed; - if (isLiteral(node.property) && typeof node.property.value === "number") { - computed = true; - } - if (node.optional) { - this.token("?."); - } - if (computed) { - this.tokenChar(91); - this.print(node.property, node); - this.tokenChar(93); - } else { - if (!node.optional) { - this.tokenChar(46); - } - this.print(node.property, node); - } -} -function OptionalCallExpression(node) { - this.print(node.callee, node); - this.print(node.typeParameters, node); - if (node.optional) { - this.token("?."); - } - this.print(node.typeArguments, node); - this.tokenChar(40); - this.printList(node.arguments, node); - this.tokenChar(41); -} -function CallExpression(node) { - this.print(node.callee, node); - this.print(node.typeArguments, node); - this.print(node.typeParameters, node); - this.tokenChar(40); - this.printList(node.arguments, node); - this.tokenChar(41); -} -function Import() { - this.word("import"); -} -function AwaitExpression(node) { - this.word("await"); - if (node.argument) { - this.space(); - this.printTerminatorless(node.argument, node, false); - } -} -function YieldExpression(node) { - this.word("yield", true); - if (node.delegate) { - this.tokenChar(42); - if (node.argument) { - this.space(); - this.print(node.argument, node); - } - } else { - if (node.argument) { - this.space(); - this.printTerminatorless(node.argument, node, false); - } - } -} -function EmptyStatement() { - this.semicolon(true); -} -function ExpressionStatement(node) { - this.print(node.expression, node); - this.semicolon(); -} -function AssignmentPattern(node) { - this.print(node.left, node); - if (node.left.optional) this.tokenChar(63); - this.print(node.left.typeAnnotation, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.right, node); -} -function AssignmentExpression(node, parent) { - const parens = this.inForStatementInitCounter && node.operator === "in" && !n.needsParens(node, parent); - if (parens) { - this.tokenChar(40); - } - this.print(node.left, node); - this.space(); - if (node.operator === "in" || node.operator === "instanceof") { - this.word(node.operator); - } else { - this.token(node.operator); - } - this.space(); - this.print(node.right, node); - if (parens) { - this.tokenChar(41); - } -} -function BindExpression(node) { - this.print(node.object, node); - this.token("::"); - this.print(node.callee, node); -} -function MemberExpression(node) { - this.print(node.object, node); - if (!node.computed && isMemberExpression(node.property)) { - throw new TypeError("Got a MemberExpression for MemberExpression property"); - } - let computed = node.computed; - if (isLiteral(node.property) && typeof node.property.value === "number") { - computed = true; - } - if (computed) { - this.tokenChar(91); - this.print(node.property, node); - this.tokenChar(93); - } else { - this.tokenChar(46); - this.print(node.property, node); - } -} -function MetaProperty(node) { - this.print(node.meta, node); - this.tokenChar(46); - this.print(node.property, node); -} -function PrivateName(node) { - this.tokenChar(35); - this.print(node.id, node); -} -function V8IntrinsicIdentifier(node) { - this.tokenChar(37); - this.word(node.name); -} -function ModuleExpression(node) { - this.word("module", true); - this.space(); - this.tokenChar(123); - this.indent(); - const { - body - } = node; - if (body.body.length || body.directives.length) { - this.newline(); - } - this.print(body, node); - this.dedent(); - this.sourceWithOffset("end", node.loc, 0, -1); - this.rightBrace(); -} - -//# sourceMappingURL=expressions.js.map - - -/***/ }), - -/***/ 54273: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.AnyTypeAnnotation = AnyTypeAnnotation; -exports.ArrayTypeAnnotation = ArrayTypeAnnotation; -exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation; -exports.BooleanTypeAnnotation = BooleanTypeAnnotation; -exports.DeclareClass = DeclareClass; -exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration; -exports.DeclareExportDeclaration = DeclareExportDeclaration; -exports.DeclareFunction = DeclareFunction; -exports.DeclareInterface = DeclareInterface; -exports.DeclareModule = DeclareModule; -exports.DeclareModuleExports = DeclareModuleExports; -exports.DeclareOpaqueType = DeclareOpaqueType; -exports.DeclareTypeAlias = DeclareTypeAlias; -exports.DeclareVariable = DeclareVariable; -exports.DeclaredPredicate = DeclaredPredicate; -exports.EmptyTypeAnnotation = EmptyTypeAnnotation; -exports.EnumBooleanBody = EnumBooleanBody; -exports.EnumBooleanMember = EnumBooleanMember; -exports.EnumDeclaration = EnumDeclaration; -exports.EnumDefaultedMember = EnumDefaultedMember; -exports.EnumNumberBody = EnumNumberBody; -exports.EnumNumberMember = EnumNumberMember; -exports.EnumStringBody = EnumStringBody; -exports.EnumStringMember = EnumStringMember; -exports.EnumSymbolBody = EnumSymbolBody; -exports.ExistsTypeAnnotation = ExistsTypeAnnotation; -exports.FunctionTypeAnnotation = FunctionTypeAnnotation; -exports.FunctionTypeParam = FunctionTypeParam; -exports.IndexedAccessType = IndexedAccessType; -exports.InferredPredicate = InferredPredicate; -exports.InterfaceDeclaration = InterfaceDeclaration; -exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends; -exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation; -exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation; -exports.MixedTypeAnnotation = MixedTypeAnnotation; -exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation; -exports.NullableTypeAnnotation = NullableTypeAnnotation; -Object.defineProperty(exports, "NumberLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _types2.NumericLiteral; - } -})); -exports.NumberTypeAnnotation = NumberTypeAnnotation; -exports.ObjectTypeAnnotation = ObjectTypeAnnotation; -exports.ObjectTypeCallProperty = ObjectTypeCallProperty; -exports.ObjectTypeIndexer = ObjectTypeIndexer; -exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot; -exports.ObjectTypeProperty = ObjectTypeProperty; -exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty; -exports.OpaqueType = OpaqueType; -exports.OptionalIndexedAccessType = OptionalIndexedAccessType; -exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier; -Object.defineProperty(exports, "StringLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _types2.StringLiteral; - } -})); -exports.StringTypeAnnotation = StringTypeAnnotation; -exports.SymbolTypeAnnotation = SymbolTypeAnnotation; -exports.ThisTypeAnnotation = ThisTypeAnnotation; -exports.TupleTypeAnnotation = TupleTypeAnnotation; -exports.TypeAlias = TypeAlias; -exports.TypeAnnotation = TypeAnnotation; -exports.TypeCastExpression = TypeCastExpression; -exports.TypeParameter = TypeParameter; -exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation; -exports.TypeofTypeAnnotation = TypeofTypeAnnotation; -exports.UnionTypeAnnotation = UnionTypeAnnotation; -exports.Variance = Variance; -exports.VoidTypeAnnotation = VoidTypeAnnotation; -exports._interfaceish = _interfaceish; -exports._variance = _variance; -var _t = __nccwpck_require__(53501); -var _modules = __nccwpck_require__(68281); -var _types2 = __nccwpck_require__(29111); -const { - isDeclareExportDeclaration, - isStatement -} = _t; -function AnyTypeAnnotation() { - this.word("any"); -} -function ArrayTypeAnnotation(node) { - this.print(node.elementType, node, true); - this.tokenChar(91); - this.tokenChar(93); -} -function BooleanTypeAnnotation() { - this.word("boolean"); -} -function BooleanLiteralTypeAnnotation(node) { - this.word(node.value ? "true" : "false"); -} -function NullLiteralTypeAnnotation() { - this.word("null"); -} -function DeclareClass(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.word("class"); - this.space(); - this._interfaceish(node); -} -function DeclareFunction(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.word("function"); - this.space(); - this.print(node.id, node); - this.print(node.id.typeAnnotation.typeAnnotation, node); - if (node.predicate) { - this.space(); - this.print(node.predicate, node); - } - this.semicolon(); -} -function InferredPredicate() { - this.tokenChar(37); - this.word("checks"); -} -function DeclaredPredicate(node) { - this.tokenChar(37); - this.word("checks"); - this.tokenChar(40); - this.print(node.value, node); - this.tokenChar(41); -} -function DeclareInterface(node) { - this.word("declare"); - this.space(); - this.InterfaceDeclaration(node); -} -function DeclareModule(node) { - this.word("declare"); - this.space(); - this.word("module"); - this.space(); - this.print(node.id, node); - this.space(); - this.print(node.body, node); -} -function DeclareModuleExports(node) { - this.word("declare"); - this.space(); - this.word("module"); - this.tokenChar(46); - this.word("exports"); - this.print(node.typeAnnotation, node); -} -function DeclareTypeAlias(node) { - this.word("declare"); - this.space(); - this.TypeAlias(node); -} -function DeclareOpaqueType(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.OpaqueType(node); -} -function DeclareVariable(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.word("var"); - this.space(); - this.print(node.id, node); - this.print(node.id.typeAnnotation, node); - this.semicolon(); -} -function DeclareExportDeclaration(node) { - this.word("declare"); - this.space(); - this.word("export"); - this.space(); - if (node.default) { - this.word("default"); - this.space(); - } - FlowExportDeclaration.call(this, node); -} -function DeclareExportAllDeclaration(node) { - this.word("declare"); - this.space(); - _modules.ExportAllDeclaration.call(this, node); -} -function EnumDeclaration(node) { - const { - id, - body - } = node; - this.word("enum"); - this.space(); - this.print(id, node); - this.print(body, node); -} -function enumExplicitType(context, name, hasExplicitType) { - if (hasExplicitType) { - context.space(); - context.word("of"); - context.space(); - context.word(name); - } - context.space(); -} -function enumBody(context, node) { - const { - members - } = node; - context.token("{"); - context.indent(); - context.newline(); - for (const member of members) { - context.print(member, node); - context.newline(); - } - if (node.hasUnknownMembers) { - context.token("..."); - context.newline(); - } - context.dedent(); - context.token("}"); -} -function EnumBooleanBody(node) { - const { - explicitType - } = node; - enumExplicitType(this, "boolean", explicitType); - enumBody(this, node); -} -function EnumNumberBody(node) { - const { - explicitType - } = node; - enumExplicitType(this, "number", explicitType); - enumBody(this, node); -} -function EnumStringBody(node) { - const { - explicitType - } = node; - enumExplicitType(this, "string", explicitType); - enumBody(this, node); -} -function EnumSymbolBody(node) { - enumExplicitType(this, "symbol", true); - enumBody(this, node); -} -function EnumDefaultedMember(node) { - const { - id - } = node; - this.print(id, node); - this.tokenChar(44); -} -function enumInitializedMember(context, node) { - const { - id, - init - } = node; - context.print(id, node); - context.space(); - context.token("="); - context.space(); - context.print(init, node); - context.token(","); -} -function EnumBooleanMember(node) { - enumInitializedMember(this, node); -} -function EnumNumberMember(node) { - enumInitializedMember(this, node); -} -function EnumStringMember(node) { - enumInitializedMember(this, node); -} -function FlowExportDeclaration(node) { - if (node.declaration) { - const declar = node.declaration; - this.print(declar, node); - if (!isStatement(declar)) this.semicolon(); - } else { - this.tokenChar(123); - if (node.specifiers.length) { - this.space(); - this.printList(node.specifiers, node); - this.space(); - } - this.tokenChar(125); - if (node.source) { - this.space(); - this.word("from"); - this.space(); - this.print(node.source, node); - } - this.semicolon(); - } -} -function ExistsTypeAnnotation() { - this.tokenChar(42); -} -function FunctionTypeAnnotation(node, parent) { - this.print(node.typeParameters, node); - this.tokenChar(40); - if (node.this) { - this.word("this"); - this.tokenChar(58); - this.space(); - this.print(node.this.typeAnnotation, node); - if (node.params.length || node.rest) { - this.tokenChar(44); - this.space(); - } - } - this.printList(node.params, node); - if (node.rest) { - if (node.params.length) { - this.tokenChar(44); - this.space(); - } - this.token("..."); - this.print(node.rest, node); - } - this.tokenChar(41); - if (parent && (parent.type === "ObjectTypeCallProperty" || parent.type === "ObjectTypeInternalSlot" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method)) { - this.tokenChar(58); - } else { - this.space(); - this.token("=>"); - } - this.space(); - this.print(node.returnType, node); -} -function FunctionTypeParam(node) { - this.print(node.name, node); - if (node.optional) this.tokenChar(63); - if (node.name) { - this.tokenChar(58); - this.space(); - } - this.print(node.typeAnnotation, node); -} -function InterfaceExtends(node) { - this.print(node.id, node); - this.print(node.typeParameters, node, true); -} -function _interfaceish(node) { - var _node$extends; - this.print(node.id, node); - this.print(node.typeParameters, node); - if ((_node$extends = node.extends) != null && _node$extends.length) { - this.space(); - this.word("extends"); - this.space(); - this.printList(node.extends, node); - } - if (node.mixins && node.mixins.length) { - this.space(); - this.word("mixins"); - this.space(); - this.printList(node.mixins, node); - } - if (node.implements && node.implements.length) { - this.space(); - this.word("implements"); - this.space(); - this.printList(node.implements, node); - } - this.space(); - this.print(node.body, node); -} -function _variance(node) { - if (node.variance) { - if (node.variance.kind === "plus") { - this.tokenChar(43); - } else if (node.variance.kind === "minus") { - this.tokenChar(45); - } - } -} -function InterfaceDeclaration(node) { - this.word("interface"); - this.space(); - this._interfaceish(node); -} -function andSeparator() { - this.space(); - this.tokenChar(38); - this.space(); -} -function InterfaceTypeAnnotation(node) { - this.word("interface"); - if (node.extends && node.extends.length) { - this.space(); - this.word("extends"); - this.space(); - this.printList(node.extends, node); - } - this.space(); - this.print(node.body, node); -} -function IntersectionTypeAnnotation(node) { - this.printJoin(node.types, node, { - separator: andSeparator - }); -} -function MixedTypeAnnotation() { - this.word("mixed"); -} -function EmptyTypeAnnotation() { - this.word("empty"); -} -function NullableTypeAnnotation(node) { - this.tokenChar(63); - this.print(node.typeAnnotation, node); -} -function NumberTypeAnnotation() { - this.word("number"); -} -function StringTypeAnnotation() { - this.word("string"); -} -function ThisTypeAnnotation() { - this.word("this"); -} -function TupleTypeAnnotation(node) { - this.tokenChar(91); - this.printList(node.types, node); - this.tokenChar(93); -} -function TypeofTypeAnnotation(node) { - this.word("typeof"); - this.space(); - this.print(node.argument, node); -} -function TypeAlias(node) { - this.word("type"); - this.space(); - this.print(node.id, node); - this.print(node.typeParameters, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.right, node); - this.semicolon(); -} -function TypeAnnotation(node) { - this.tokenChar(58); - this.space(); - if (node.optional) this.tokenChar(63); - this.print(node.typeAnnotation, node); -} -function TypeParameterInstantiation(node) { - this.tokenChar(60); - this.printList(node.params, node, {}); - this.tokenChar(62); -} -function TypeParameter(node) { - this._variance(node); - this.word(node.name); - if (node.bound) { - this.print(node.bound, node); - } - if (node.default) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.default, node); - } -} -function OpaqueType(node) { - this.word("opaque"); - this.space(); - this.word("type"); - this.space(); - this.print(node.id, node); - this.print(node.typeParameters, node); - if (node.supertype) { - this.tokenChar(58); - this.space(); - this.print(node.supertype, node); - } - if (node.impltype) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.impltype, node); - } - this.semicolon(); -} -function ObjectTypeAnnotation(node) { - if (node.exact) { - this.token("{|"); - } else { - this.tokenChar(123); - } - const props = [...node.properties, ...(node.callProperties || []), ...(node.indexers || []), ...(node.internalSlots || [])]; - if (props.length) { - this.newline(); - this.space(); - this.printJoin(props, node, { - addNewlines(leading) { - if (leading && !props[0]) return 1; - }, - indent: true, - statement: true, - iterator: () => { - if (props.length !== 1 || node.inexact) { - this.tokenChar(44); - this.space(); - } - } - }); - this.space(); - } - if (node.inexact) { - this.indent(); - this.token("..."); - if (props.length) { - this.newline(); - } - this.dedent(); - } - if (node.exact) { - this.token("|}"); - } else { - this.tokenChar(125); - } -} -function ObjectTypeInternalSlot(node) { - if (node.static) { - this.word("static"); - this.space(); - } - this.tokenChar(91); - this.tokenChar(91); - this.print(node.id, node); - this.tokenChar(93); - this.tokenChar(93); - if (node.optional) this.tokenChar(63); - if (!node.method) { - this.tokenChar(58); - this.space(); - } - this.print(node.value, node); -} -function ObjectTypeCallProperty(node) { - if (node.static) { - this.word("static"); - this.space(); - } - this.print(node.value, node); -} -function ObjectTypeIndexer(node) { - if (node.static) { - this.word("static"); - this.space(); - } - this._variance(node); - this.tokenChar(91); - if (node.id) { - this.print(node.id, node); - this.tokenChar(58); - this.space(); - } - this.print(node.key, node); - this.tokenChar(93); - this.tokenChar(58); - this.space(); - this.print(node.value, node); -} -function ObjectTypeProperty(node) { - if (node.proto) { - this.word("proto"); - this.space(); - } - if (node.static) { - this.word("static"); - this.space(); - } - if (node.kind === "get" || node.kind === "set") { - this.word(node.kind); - this.space(); - } - this._variance(node); - this.print(node.key, node); - if (node.optional) this.tokenChar(63); - if (!node.method) { - this.tokenChar(58); - this.space(); - } - this.print(node.value, node); -} -function ObjectTypeSpreadProperty(node) { - this.token("..."); - this.print(node.argument, node); -} -function QualifiedTypeIdentifier(node) { - this.print(node.qualification, node); - this.tokenChar(46); - this.print(node.id, node); -} -function SymbolTypeAnnotation() { - this.word("symbol"); -} -function orSeparator() { - this.space(); - this.tokenChar(124); - this.space(); -} -function UnionTypeAnnotation(node) { - this.printJoin(node.types, node, { - separator: orSeparator - }); -} -function TypeCastExpression(node) { - this.tokenChar(40); - this.print(node.expression, node); - this.print(node.typeAnnotation, node); - this.tokenChar(41); -} -function Variance(node) { - if (node.kind === "plus") { - this.tokenChar(43); - } else { - this.tokenChar(45); - } -} -function VoidTypeAnnotation() { - this.word("void"); -} -function IndexedAccessType(node) { - this.print(node.objectType, node, true); - this.tokenChar(91); - this.print(node.indexType, node); - this.tokenChar(93); -} -function OptionalIndexedAccessType(node) { - this.print(node.objectType, node); - if (node.optional) { - this.token("?."); - } - this.tokenChar(91); - this.print(node.indexType, node); - this.tokenChar(93); -} - -//# sourceMappingURL=flow.js.map - - -/***/ }), - -/***/ 42395: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -var _templateLiterals = __nccwpck_require__(96395); -Object.keys(_templateLiterals).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _templateLiterals[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _templateLiterals[key]; - } - }); -}); -var _expressions = __nccwpck_require__(87497); -Object.keys(_expressions).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _expressions[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _expressions[key]; - } - }); -}); -var _statements = __nccwpck_require__(46207); -Object.keys(_statements).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _statements[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _statements[key]; - } - }); -}); -var _classes = __nccwpck_require__(98489); -Object.keys(_classes).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _classes[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _classes[key]; - } - }); -}); -var _methods = __nccwpck_require__(64195); -Object.keys(_methods).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _methods[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _methods[key]; - } - }); -}); -var _modules = __nccwpck_require__(68281); -Object.keys(_modules).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _modules[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _modules[key]; - } - }); -}); -var _types = __nccwpck_require__(29111); -Object.keys(_types).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _types[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _types[key]; - } - }); -}); -var _flow = __nccwpck_require__(54273); -Object.keys(_flow).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _flow[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _flow[key]; - } - }); -}); -var _base = __nccwpck_require__(39213); -Object.keys(_base).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _base[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _base[key]; - } - }); -}); -var _jsx = __nccwpck_require__(44953); -Object.keys(_jsx).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _jsx[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _jsx[key]; - } - }); -}); -var _typescript = __nccwpck_require__(75086); -Object.keys(_typescript).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _typescript[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _typescript[key]; - } - }); -}); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 44953: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.JSXAttribute = JSXAttribute; -exports.JSXClosingElement = JSXClosingElement; -exports.JSXClosingFragment = JSXClosingFragment; -exports.JSXElement = JSXElement; -exports.JSXEmptyExpression = JSXEmptyExpression; -exports.JSXExpressionContainer = JSXExpressionContainer; -exports.JSXFragment = JSXFragment; -exports.JSXIdentifier = JSXIdentifier; -exports.JSXMemberExpression = JSXMemberExpression; -exports.JSXNamespacedName = JSXNamespacedName; -exports.JSXOpeningElement = JSXOpeningElement; -exports.JSXOpeningFragment = JSXOpeningFragment; -exports.JSXSpreadAttribute = JSXSpreadAttribute; -exports.JSXSpreadChild = JSXSpreadChild; -exports.JSXText = JSXText; -function JSXAttribute(node) { - this.print(node.name, node); - if (node.value) { - this.tokenChar(61); - this.print(node.value, node); - } -} -function JSXIdentifier(node) { - this.word(node.name); -} -function JSXNamespacedName(node) { - this.print(node.namespace, node); - this.tokenChar(58); - this.print(node.name, node); -} -function JSXMemberExpression(node) { - this.print(node.object, node); - this.tokenChar(46); - this.print(node.property, node); -} -function JSXSpreadAttribute(node) { - this.tokenChar(123); - this.token("..."); - this.print(node.argument, node); - this.tokenChar(125); -} -function JSXExpressionContainer(node) { - this.tokenChar(123); - this.print(node.expression, node); - this.tokenChar(125); -} -function JSXSpreadChild(node) { - this.tokenChar(123); - this.token("..."); - this.print(node.expression, node); - this.tokenChar(125); -} -function JSXText(node) { - const raw = this.getPossibleRaw(node); - if (raw !== undefined) { - this.token(raw, true); - } else { - this.token(node.value, true); - } -} -function JSXElement(node) { - const open = node.openingElement; - this.print(open, node); - if (open.selfClosing) return; - this.indent(); - for (const child of node.children) { - this.print(child, node); - } - this.dedent(); - this.print(node.closingElement, node); -} -function spaceSeparator() { - this.space(); -} -function JSXOpeningElement(node) { - this.tokenChar(60); - this.print(node.name, node); - this.print(node.typeParameters, node); - if (node.attributes.length > 0) { - this.space(); - this.printJoin(node.attributes, node, { - separator: spaceSeparator - }); - } - if (node.selfClosing) { - this.space(); - this.token("/>"); - } else { - this.tokenChar(62); - } -} -function JSXClosingElement(node) { - this.token(""); - this.space(); - this.print(node.body, node); -} -function hasTypesOrComments(node, param) { - var _param$leadingComment, _param$trailingCommen; - return !!(node.typeParameters || node.returnType || node.predicate || param.typeAnnotation || param.optional || (_param$leadingComment = param.leadingComments) != null && _param$leadingComment.length || (_param$trailingCommen = param.trailingComments) != null && _param$trailingCommen.length); -} -function _getFuncIdName(idNode, parent) { - let id = idNode; - if (!id && parent) { - const parentType = parent.type; - if (parentType === "VariableDeclarator") { - id = parent.id; - } else if (parentType === "AssignmentExpression" || parentType === "AssignmentPattern") { - id = parent.left; - } else if (parentType === "ObjectProperty" || parentType === "ClassProperty") { - if (!parent.computed || parent.key.type === "StringLiteral") { - id = parent.key; - } - } else if (parentType === "ClassPrivateProperty" || parentType === "ClassAccessorProperty") { - id = parent.key; - } - } - if (!id) return; - let nameInfo; - if (id.type === "Identifier") { - var _id$loc, _id$loc2; - nameInfo = { - pos: (_id$loc = id.loc) == null ? void 0 : _id$loc.start, - name: ((_id$loc2 = id.loc) == null ? void 0 : _id$loc2.identifierName) || id.name - }; - } else if (id.type === "PrivateName") { - var _id$loc3; - nameInfo = { - pos: (_id$loc3 = id.loc) == null ? void 0 : _id$loc3.start, - name: "#" + id.id.name - }; - } else if (id.type === "StringLiteral") { - var _id$loc4; - nameInfo = { - pos: (_id$loc4 = id.loc) == null ? void 0 : _id$loc4.start, - name: id.value - }; - } - return nameInfo; -} - -//# sourceMappingURL=methods.js.map - - -/***/ }), - -/***/ 68281: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ExportAllDeclaration = ExportAllDeclaration; -exports.ExportDefaultDeclaration = ExportDefaultDeclaration; -exports.ExportDefaultSpecifier = ExportDefaultSpecifier; -exports.ExportNamedDeclaration = ExportNamedDeclaration; -exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier; -exports.ExportSpecifier = ExportSpecifier; -exports.ImportAttribute = ImportAttribute; -exports.ImportDeclaration = ImportDeclaration; -exports.ImportDefaultSpecifier = ImportDefaultSpecifier; -exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier; -exports.ImportSpecifier = ImportSpecifier; -exports._printAssertions = _printAssertions; -var _t = __nccwpck_require__(53501); -const { - isClassDeclaration, - isExportDefaultSpecifier, - isExportNamespaceSpecifier, - isImportDefaultSpecifier, - isImportNamespaceSpecifier, - isStatement -} = _t; -function ImportSpecifier(node) { - if (node.importKind === "type" || node.importKind === "typeof") { - this.word(node.importKind); - this.space(); - } - this.print(node.imported, node); - if (node.local && node.local.name !== node.imported.name) { - this.space(); - this.word("as"); - this.space(); - this.print(node.local, node); - } -} -function ImportDefaultSpecifier(node) { - this.print(node.local, node); -} -function ExportDefaultSpecifier(node) { - this.print(node.exported, node); -} -function ExportSpecifier(node) { - if (node.exportKind === "type") { - this.word("type"); - this.space(); - } - this.print(node.local, node); - if (node.exported && node.local.name !== node.exported.name) { - this.space(); - this.word("as"); - this.space(); - this.print(node.exported, node); - } -} -function ExportNamespaceSpecifier(node) { - this.tokenChar(42); - this.space(); - this.word("as"); - this.space(); - this.print(node.exported, node); -} -function _printAssertions(node) { - this.word("assert"); - this.space(); - this.tokenChar(123); - this.space(); - this.printList(node.assertions, node); - this.space(); - this.tokenChar(125); -} -function ExportAllDeclaration(node) { - var _node$assertions; - this.word("export"); - this.space(); - if (node.exportKind === "type") { - this.word("type"); - this.space(); - } - this.tokenChar(42); - this.space(); - this.word("from"); - this.space(); - if ((_node$assertions = node.assertions) != null && _node$assertions.length) { - this.print(node.source, node, true); - this.space(); - this._printAssertions(node); - } else { - this.print(node.source, node); - } - this.semicolon(); -} -function maybePrintDecoratorsBeforeExport(printer, node) { - if (isClassDeclaration(node.declaration) && printer._shouldPrintDecoratorsBeforeExport(node)) { - printer.printJoin(node.declaration.decorators, node); - } -} -function ExportNamedDeclaration(node) { - maybePrintDecoratorsBeforeExport(this, node); - this.word("export"); - this.space(); - if (node.declaration) { - const declar = node.declaration; - this.print(declar, node); - if (!isStatement(declar)) this.semicolon(); - } else { - if (node.exportKind === "type") { - this.word("type"); - this.space(); - } - const specifiers = node.specifiers.slice(0); - let hasSpecial = false; - for (;;) { - const first = specifiers[0]; - if (isExportDefaultSpecifier(first) || isExportNamespaceSpecifier(first)) { - hasSpecial = true; - this.print(specifiers.shift(), node); - if (specifiers.length) { - this.tokenChar(44); - this.space(); - } - } else { - break; - } - } - if (specifiers.length || !specifiers.length && !hasSpecial) { - this.tokenChar(123); - if (specifiers.length) { - this.space(); - this.printList(specifiers, node); - this.space(); - } - this.tokenChar(125); - } - if (node.source) { - var _node$assertions2; - this.space(); - this.word("from"); - this.space(); - if ((_node$assertions2 = node.assertions) != null && _node$assertions2.length) { - this.print(node.source, node, true); - this.space(); - this._printAssertions(node); - } else { - this.print(node.source, node); - } - } - this.semicolon(); - } -} -function ExportDefaultDeclaration(node) { - maybePrintDecoratorsBeforeExport(this, node); - this.word("export"); - this.noIndentInnerCommentsHere(); - this.space(); - this.word("default"); - this.space(); - const declar = node.declaration; - this.print(declar, node); - if (!isStatement(declar)) this.semicolon(); -} -function ImportDeclaration(node) { - var _node$assertions3; - this.word("import"); - this.space(); - const isTypeKind = node.importKind === "type" || node.importKind === "typeof"; - if (isTypeKind) { - this.noIndentInnerCommentsHere(); - this.word(node.importKind); - this.space(); - } else if (node.module) { - this.noIndentInnerCommentsHere(); - this.word("module"); - this.space(); - } - const specifiers = node.specifiers.slice(0); - const hasSpecifiers = !!specifiers.length; - while (hasSpecifiers) { - const first = specifiers[0]; - if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) { - this.print(specifiers.shift(), node); - if (specifiers.length) { - this.tokenChar(44); - this.space(); - } - } else { - break; - } - } - if (specifiers.length) { - this.tokenChar(123); - this.space(); - this.printList(specifiers, node); - this.space(); - this.tokenChar(125); - } else if (isTypeKind && !hasSpecifiers) { - this.tokenChar(123); - this.tokenChar(125); - } - if (hasSpecifiers || isTypeKind) { - this.space(); - this.word("from"); - this.space(); - } - if ((_node$assertions3 = node.assertions) != null && _node$assertions3.length) { - this.print(node.source, node, true); - this.space(); - this._printAssertions(node); - } else { - this.print(node.source, node); - } - { - var _node$attributes; - if ((_node$attributes = node.attributes) != null && _node$attributes.length) { - this.space(); - this.word("with"); - this.space(); - this.printList(node.attributes, node); - } - } - this.semicolon(); -} -function ImportAttribute(node) { - this.print(node.key); - this.tokenChar(58); - this.space(); - this.print(node.value); -} -function ImportNamespaceSpecifier(node) { - this.tokenChar(42); - this.space(); - this.word("as"); - this.space(); - this.print(node.local, node); -} - -//# sourceMappingURL=modules.js.map - - -/***/ }), - -/***/ 46207: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.BreakStatement = BreakStatement; -exports.CatchClause = CatchClause; -exports.ContinueStatement = ContinueStatement; -exports.DebuggerStatement = DebuggerStatement; -exports.DoWhileStatement = DoWhileStatement; -exports.ForOfStatement = exports.ForInStatement = void 0; -exports.ForStatement = ForStatement; -exports.IfStatement = IfStatement; -exports.LabeledStatement = LabeledStatement; -exports.ReturnStatement = ReturnStatement; -exports.SwitchCase = SwitchCase; -exports.SwitchStatement = SwitchStatement; -exports.ThrowStatement = ThrowStatement; -exports.TryStatement = TryStatement; -exports.VariableDeclaration = VariableDeclaration; -exports.VariableDeclarator = VariableDeclarator; -exports.WhileStatement = WhileStatement; -exports.WithStatement = WithStatement; -var _t = __nccwpck_require__(53501); -const { - isFor, - isForStatement, - isIfStatement, - isStatement -} = _t; -function WithStatement(node) { - this.word("with"); - this.space(); - this.tokenChar(40); - this.print(node.object, node); - this.tokenChar(41); - this.printBlock(node); -} -function IfStatement(node) { - this.word("if"); - this.space(); - this.tokenChar(40); - this.print(node.test, node); - this.tokenChar(41); - this.space(); - const needsBlock = node.alternate && isIfStatement(getLastStatement(node.consequent)); - if (needsBlock) { - this.tokenChar(123); - this.newline(); - this.indent(); - } - this.printAndIndentOnComments(node.consequent, node); - if (needsBlock) { - this.dedent(); - this.newline(); - this.tokenChar(125); - } - if (node.alternate) { - if (this.endsWith(125)) this.space(); - this.word("else"); - this.space(); - this.printAndIndentOnComments(node.alternate, node); - } -} -function getLastStatement(statement) { - const { - body - } = statement; - if (isStatement(body) === false) { - return statement; - } - return getLastStatement(body); -} -function ForStatement(node) { - this.word("for"); - this.space(); - this.tokenChar(40); - this.inForStatementInitCounter++; - this.print(node.init, node); - this.inForStatementInitCounter--; - this.tokenChar(59); - if (node.test) { - this.space(); - this.print(node.test, node); - } - this.tokenChar(59); - if (node.update) { - this.space(); - this.print(node.update, node); - } - this.tokenChar(41); - this.printBlock(node); -} -function WhileStatement(node) { - this.word("while"); - this.space(); - this.tokenChar(40); - this.print(node.test, node); - this.tokenChar(41); - this.printBlock(node); -} -function ForXStatement(node) { - this.word("for"); - this.space(); - const isForOf = node.type === "ForOfStatement"; - if (isForOf && node.await) { - this.word("await"); - this.space(); - } - this.noIndentInnerCommentsHere(); - this.tokenChar(40); - this.print(node.left, node); - this.space(); - this.word(isForOf ? "of" : "in"); - this.space(); - this.print(node.right, node); - this.tokenChar(41); - this.printBlock(node); -} -const ForInStatement = ForXStatement; -exports.ForInStatement = ForInStatement; -const ForOfStatement = ForXStatement; -exports.ForOfStatement = ForOfStatement; -function DoWhileStatement(node) { - this.word("do"); - this.space(); - this.print(node.body, node); - this.space(); - this.word("while"); - this.space(); - this.tokenChar(40); - this.print(node.test, node); - this.tokenChar(41); - this.semicolon(); -} -function printStatementAfterKeyword(printer, node, parent, isLabel) { - if (node) { - printer.space(); - printer.printTerminatorless(node, parent, isLabel); - } - printer.semicolon(); -} -function BreakStatement(node) { - this.word("break"); - printStatementAfterKeyword(this, node.label, node, true); -} -function ContinueStatement(node) { - this.word("continue"); - printStatementAfterKeyword(this, node.label, node, true); -} -function ReturnStatement(node) { - this.word("return"); - printStatementAfterKeyword(this, node.argument, node, false); -} -function ThrowStatement(node) { - this.word("throw"); - printStatementAfterKeyword(this, node.argument, node, false); -} -function LabeledStatement(node) { - this.print(node.label, node); - this.tokenChar(58); - this.space(); - this.print(node.body, node); -} -function TryStatement(node) { - this.word("try"); - this.space(); - this.print(node.block, node); - this.space(); - if (node.handlers) { - this.print(node.handlers[0], node); - } else { - this.print(node.handler, node); - } - if (node.finalizer) { - this.space(); - this.word("finally"); - this.space(); - this.print(node.finalizer, node); - } -} -function CatchClause(node) { - this.word("catch"); - this.space(); - if (node.param) { - this.tokenChar(40); - this.print(node.param, node); - this.print(node.param.typeAnnotation, node); - this.tokenChar(41); - this.space(); - } - this.print(node.body, node); -} -function SwitchStatement(node) { - this.word("switch"); - this.space(); - this.tokenChar(40); - this.print(node.discriminant, node); - this.tokenChar(41); - this.space(); - this.tokenChar(123); - this.printSequence(node.cases, node, { - indent: true, - addNewlines(leading, cas) { - if (!leading && node.cases[node.cases.length - 1] === cas) return -1; - } - }); - this.tokenChar(125); -} -function SwitchCase(node) { - if (node.test) { - this.word("case"); - this.space(); - this.print(node.test, node); - this.tokenChar(58); - } else { - this.word("default"); - this.tokenChar(58); - } - if (node.consequent.length) { - this.newline(); - this.printSequence(node.consequent, node, { - indent: true - }); - } -} -function DebuggerStatement() { - this.word("debugger"); - this.semicolon(); -} -function VariableDeclaration(node, parent) { - if (node.declare) { - this.word("declare"); - this.space(); - } - const { - kind - } = node; - this.word(kind, kind === "using"); - this.space(); - let hasInits = false; - if (!isFor(parent)) { - for (const declar of node.declarations) { - if (declar.init) { - hasInits = true; - } - } - } - this.printList(node.declarations, node, { - separator: hasInits ? function () { - this.tokenChar(44); - this.newline(); - } : undefined, - indent: node.declarations.length > 1 ? true : false - }); - if (isFor(parent)) { - if (isForStatement(parent)) { - if (parent.init === node) return; - } else { - if (parent.left === node) return; - } - } - this.semicolon(); -} -function VariableDeclarator(node) { - this.print(node.id, node); - if (node.definite) this.tokenChar(33); - this.print(node.id.typeAnnotation, node); - if (node.init) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.init, node); - } -} - -//# sourceMappingURL=statements.js.map - - -/***/ }), - -/***/ 96395: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.TaggedTemplateExpression = TaggedTemplateExpression; -exports.TemplateElement = TemplateElement; -exports.TemplateLiteral = TemplateLiteral; -function TaggedTemplateExpression(node) { - this.print(node.tag, node); - this.print(node.typeParameters, node); - this.print(node.quasi, node); -} -function TemplateElement(node, parent) { - const isFirst = parent.quasis[0] === node; - const isLast = parent.quasis[parent.quasis.length - 1] === node; - const value = (isFirst ? "`" : "}") + node.value.raw + (isLast ? "`" : "${"); - this.token(value, true); -} -function TemplateLiteral(node) { - const quasis = node.quasis; - for (let i = 0; i < quasis.length; i++) { - this.print(quasis[i], node); - if (i + 1 < quasis.length) { - this.print(node.expressions[i], node); - } - } -} - -//# sourceMappingURL=template-literals.js.map - - -/***/ }), - -/***/ 29111: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ArgumentPlaceholder = ArgumentPlaceholder; -exports.ArrayPattern = exports.ArrayExpression = ArrayExpression; -exports.BigIntLiteral = BigIntLiteral; -exports.BooleanLiteral = BooleanLiteral; -exports.DecimalLiteral = DecimalLiteral; -exports.Identifier = Identifier; -exports.NullLiteral = NullLiteral; -exports.NumericLiteral = NumericLiteral; -exports.ObjectPattern = exports.ObjectExpression = ObjectExpression; -exports.ObjectMethod = ObjectMethod; -exports.ObjectProperty = ObjectProperty; -exports.PipelineBareFunction = PipelineBareFunction; -exports.PipelinePrimaryTopicReference = PipelinePrimaryTopicReference; -exports.PipelineTopicExpression = PipelineTopicExpression; -exports.RecordExpression = RecordExpression; -exports.RegExpLiteral = RegExpLiteral; -exports.SpreadElement = exports.RestElement = RestElement; -exports.StringLiteral = StringLiteral; -exports.TopicReference = TopicReference; -exports.TupleExpression = TupleExpression; -var _t = __nccwpck_require__(53501); -var _jsesc = __nccwpck_require__(92095); -const { - isAssignmentPattern, - isIdentifier -} = _t; -function Identifier(node) { - var _node$loc; - this.sourceIdentifierName(((_node$loc = node.loc) == null ? void 0 : _node$loc.identifierName) || node.name); - this.word(node.name); -} -function ArgumentPlaceholder() { - this.tokenChar(63); -} -function RestElement(node) { - this.token("..."); - this.print(node.argument, node); -} -function ObjectExpression(node) { - const props = node.properties; - this.tokenChar(123); - if (props.length) { - this.space(); - this.printList(props, node, { - indent: true, - statement: true - }); - this.space(); - } - this.sourceWithOffset("end", node.loc, 0, -1); - this.tokenChar(125); -} -function ObjectMethod(node) { - this.printJoin(node.decorators, node); - this._methodHead(node); - this.space(); - this.print(node.body, node); -} -function ObjectProperty(node) { - this.printJoin(node.decorators, node); - if (node.computed) { - this.tokenChar(91); - this.print(node.key, node); - this.tokenChar(93); - } else { - if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) { - this.print(node.value, node); - return; - } - this.print(node.key, node); - if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) { - return; - } - } - this.tokenChar(58); - this.space(); - this.print(node.value, node); -} -function ArrayExpression(node) { - const elems = node.elements; - const len = elems.length; - this.tokenChar(91); - for (let i = 0; i < elems.length; i++) { - const elem = elems[i]; - if (elem) { - if (i > 0) this.space(); - this.print(elem, node); - if (i < len - 1) this.tokenChar(44); - } else { - this.tokenChar(44); - } - } - this.tokenChar(93); -} -function RecordExpression(node) { - const props = node.properties; - let startToken; - let endToken; - if (this.format.recordAndTupleSyntaxType === "bar") { - startToken = "{|"; - endToken = "|}"; - } else if (this.format.recordAndTupleSyntaxType !== "hash" && this.format.recordAndTupleSyntaxType != null) { - throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`); - } else { - startToken = "#{"; - endToken = "}"; - } - this.token(startToken); - if (props.length) { - this.space(); - this.printList(props, node, { - indent: true, - statement: true - }); - this.space(); - } - this.token(endToken); -} -function TupleExpression(node) { - const elems = node.elements; - const len = elems.length; - let startToken; - let endToken; - if (this.format.recordAndTupleSyntaxType === "bar") { - startToken = "[|"; - endToken = "|]"; - } else if (this.format.recordAndTupleSyntaxType === "hash") { - startToken = "#["; - endToken = "]"; - } else { - throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`); - } - this.token(startToken); - for (let i = 0; i < elems.length; i++) { - const elem = elems[i]; - if (elem) { - if (i > 0) this.space(); - this.print(elem, node); - if (i < len - 1) this.tokenChar(44); - } - } - this.token(endToken); -} -function RegExpLiteral(node) { - this.word(`/${node.pattern}/${node.flags}`); -} -function BooleanLiteral(node) { - this.word(node.value ? "true" : "false"); -} -function NullLiteral() { - this.word("null"); -} -function NumericLiteral(node) { - const raw = this.getPossibleRaw(node); - const opts = this.format.jsescOption; - const value = node.value + ""; - if (opts.numbers) { - this.number(_jsesc(node.value, opts)); - } else if (raw == null) { - this.number(value); - } else if (this.format.minified) { - this.number(raw.length < value.length ? raw : value); - } else { - this.number(raw); - } -} -function StringLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.token(raw); - return; - } - const val = _jsesc(node.value, Object.assign(this.format.jsescOption, this.format.jsonCompatibleStrings && { - json: true - })); - return this.token(val); -} -function BigIntLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.word(raw); - return; - } - this.word(node.value + "n"); -} -function DecimalLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.word(raw); - return; - } - this.word(node.value + "m"); -} -const validTopicTokenSet = new Set(["^^", "@@", "^", "%", "#"]); -function TopicReference() { - const { - topicToken - } = this.format; - if (validTopicTokenSet.has(topicToken)) { - this.token(topicToken); - } else { - const givenTopicTokenJSON = JSON.stringify(topicToken); - const validTopics = Array.from(validTopicTokenSet, v => JSON.stringify(v)); - throw new Error(`The "topicToken" generator option must be one of ` + `${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`); - } -} -function PipelineTopicExpression(node) { - this.print(node.expression, node); -} -function PipelineBareFunction(node) { - this.print(node.callee, node); -} -function PipelinePrimaryTopicReference() { - this.tokenChar(35); -} - -//# sourceMappingURL=types.js.map - - -/***/ }), - -/***/ 75086: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.TSAnyKeyword = TSAnyKeyword; -exports.TSArrayType = TSArrayType; -exports.TSSatisfiesExpression = exports.TSAsExpression = TSTypeExpression; -exports.TSBigIntKeyword = TSBigIntKeyword; -exports.TSBooleanKeyword = TSBooleanKeyword; -exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration; -exports.TSConditionalType = TSConditionalType; -exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration; -exports.TSConstructorType = TSConstructorType; -exports.TSDeclareFunction = TSDeclareFunction; -exports.TSDeclareMethod = TSDeclareMethod; -exports.TSEnumDeclaration = TSEnumDeclaration; -exports.TSEnumMember = TSEnumMember; -exports.TSExportAssignment = TSExportAssignment; -exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments; -exports.TSExternalModuleReference = TSExternalModuleReference; -exports.TSFunctionType = TSFunctionType; -exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration; -exports.TSImportType = TSImportType; -exports.TSIndexSignature = TSIndexSignature; -exports.TSIndexedAccessType = TSIndexedAccessType; -exports.TSInferType = TSInferType; -exports.TSInstantiationExpression = TSInstantiationExpression; -exports.TSInterfaceBody = TSInterfaceBody; -exports.TSInterfaceDeclaration = TSInterfaceDeclaration; -exports.TSIntersectionType = TSIntersectionType; -exports.TSIntrinsicKeyword = TSIntrinsicKeyword; -exports.TSLiteralType = TSLiteralType; -exports.TSMappedType = TSMappedType; -exports.TSMethodSignature = TSMethodSignature; -exports.TSModuleBlock = TSModuleBlock; -exports.TSModuleDeclaration = TSModuleDeclaration; -exports.TSNamedTupleMember = TSNamedTupleMember; -exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration; -exports.TSNeverKeyword = TSNeverKeyword; -exports.TSNonNullExpression = TSNonNullExpression; -exports.TSNullKeyword = TSNullKeyword; -exports.TSNumberKeyword = TSNumberKeyword; -exports.TSObjectKeyword = TSObjectKeyword; -exports.TSOptionalType = TSOptionalType; -exports.TSParameterProperty = TSParameterProperty; -exports.TSParenthesizedType = TSParenthesizedType; -exports.TSPropertySignature = TSPropertySignature; -exports.TSQualifiedName = TSQualifiedName; -exports.TSRestType = TSRestType; -exports.TSStringKeyword = TSStringKeyword; -exports.TSSymbolKeyword = TSSymbolKeyword; -exports.TSThisType = TSThisType; -exports.TSTupleType = TSTupleType; -exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration; -exports.TSTypeAnnotation = TSTypeAnnotation; -exports.TSTypeAssertion = TSTypeAssertion; -exports.TSTypeLiteral = TSTypeLiteral; -exports.TSTypeOperator = TSTypeOperator; -exports.TSTypeParameter = TSTypeParameter; -exports.TSTypeParameterDeclaration = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation; -exports.TSTypePredicate = TSTypePredicate; -exports.TSTypeQuery = TSTypeQuery; -exports.TSTypeReference = TSTypeReference; -exports.TSUndefinedKeyword = TSUndefinedKeyword; -exports.TSUnionType = TSUnionType; -exports.TSUnknownKeyword = TSUnknownKeyword; -exports.TSVoidKeyword = TSVoidKeyword; -exports.tsPrintClassMemberModifiers = tsPrintClassMemberModifiers; -exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType; -exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName; -exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase; -exports.tsPrintTypeLiteralOrInterfaceBody = tsPrintTypeLiteralOrInterfaceBody; -function TSTypeAnnotation(node) { - this.tokenChar(58); - this.space(); - if (node.optional) this.tokenChar(63); - this.print(node.typeAnnotation, node); -} -function TSTypeParameterInstantiation(node, parent) { - this.tokenChar(60); - this.printList(node.params, node, {}); - if (parent.type === "ArrowFunctionExpression" && node.params.length === 1) { - this.tokenChar(44); - } - this.tokenChar(62); -} -function TSTypeParameter(node) { - if (node.in) { - this.word("in"); - this.space(); - } - if (node.out) { - this.word("out"); - this.space(); - } - this.word(node.name); - if (node.constraint) { - this.space(); - this.word("extends"); - this.space(); - this.print(node.constraint, node); - } - if (node.default) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.default, node); - } -} -function TSParameterProperty(node) { - if (node.accessibility) { - this.word(node.accessibility); - this.space(); - } - if (node.readonly) { - this.word("readonly"); - this.space(); - } - this._param(node.parameter); -} -function TSDeclareFunction(node, parent) { - if (node.declare) { - this.word("declare"); - this.space(); - } - this._functionHead(node, parent); - this.tokenChar(59); -} -function TSDeclareMethod(node) { - this._classMethodHead(node); - this.tokenChar(59); -} -function TSQualifiedName(node) { - this.print(node.left, node); - this.tokenChar(46); - this.print(node.right, node); -} -function TSCallSignatureDeclaration(node) { - this.tsPrintSignatureDeclarationBase(node); - this.tokenChar(59); -} -function TSConstructSignatureDeclaration(node) { - this.word("new"); - this.space(); - this.tsPrintSignatureDeclarationBase(node); - this.tokenChar(59); -} -function TSPropertySignature(node) { - const { - readonly, - initializer - } = node; - if (readonly) { - this.word("readonly"); - this.space(); - } - this.tsPrintPropertyOrMethodName(node); - this.print(node.typeAnnotation, node); - if (initializer) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(initializer, node); - } - this.tokenChar(59); -} -function tsPrintPropertyOrMethodName(node) { - if (node.computed) { - this.tokenChar(91); - } - this.print(node.key, node); - if (node.computed) { - this.tokenChar(93); - } - if (node.optional) { - this.tokenChar(63); - } -} -function TSMethodSignature(node) { - const { - kind - } = node; - if (kind === "set" || kind === "get") { - this.word(kind); - this.space(); - } - this.tsPrintPropertyOrMethodName(node); - this.tsPrintSignatureDeclarationBase(node); - this.tokenChar(59); -} -function TSIndexSignature(node) { - const { - readonly, - static: isStatic - } = node; - if (isStatic) { - this.word("static"); - this.space(); - } - if (readonly) { - this.word("readonly"); - this.space(); - } - this.tokenChar(91); - this._parameters(node.parameters, node); - this.tokenChar(93); - this.print(node.typeAnnotation, node); - this.tokenChar(59); -} -function TSAnyKeyword() { - this.word("any"); -} -function TSBigIntKeyword() { - this.word("bigint"); -} -function TSUnknownKeyword() { - this.word("unknown"); -} -function TSNumberKeyword() { - this.word("number"); -} -function TSObjectKeyword() { - this.word("object"); -} -function TSBooleanKeyword() { - this.word("boolean"); -} -function TSStringKeyword() { - this.word("string"); -} -function TSSymbolKeyword() { - this.word("symbol"); -} -function TSVoidKeyword() { - this.word("void"); -} -function TSUndefinedKeyword() { - this.word("undefined"); -} -function TSNullKeyword() { - this.word("null"); -} -function TSNeverKeyword() { - this.word("never"); -} -function TSIntrinsicKeyword() { - this.word("intrinsic"); -} -function TSThisType() { - this.word("this"); -} -function TSFunctionType(node) { - this.tsPrintFunctionOrConstructorType(node); -} -function TSConstructorType(node) { - if (node.abstract) { - this.word("abstract"); - this.space(); - } - this.word("new"); - this.space(); - this.tsPrintFunctionOrConstructorType(node); -} -function tsPrintFunctionOrConstructorType(node) { - const { - typeParameters - } = node; - const parameters = node.parameters; - this.print(typeParameters, node); - this.tokenChar(40); - this._parameters(parameters, node); - this.tokenChar(41); - this.space(); - this.token("=>"); - this.space(); - const returnType = node.typeAnnotation; - this.print(returnType.typeAnnotation, node); -} -function TSTypeReference(node) { - this.print(node.typeName, node, true); - this.print(node.typeParameters, node, true); -} -function TSTypePredicate(node) { - if (node.asserts) { - this.word("asserts"); - this.space(); - } - this.print(node.parameterName); - if (node.typeAnnotation) { - this.space(); - this.word("is"); - this.space(); - this.print(node.typeAnnotation.typeAnnotation); - } -} -function TSTypeQuery(node) { - this.word("typeof"); - this.space(); - this.print(node.exprName); - if (node.typeParameters) { - this.print(node.typeParameters, node); - } -} -function TSTypeLiteral(node) { - this.tsPrintTypeLiteralOrInterfaceBody(node.members, node); -} -function tsPrintTypeLiteralOrInterfaceBody(members, node) { - tsPrintBraced(this, members, node); -} -function tsPrintBraced(printer, members, node) { - printer.token("{"); - if (members.length) { - printer.indent(); - printer.newline(); - for (const member of members) { - printer.print(member, node); - printer.newline(); - } - printer.dedent(); - } - printer.sourceWithOffset("end", node.loc, 0, -1); - printer.rightBrace(); -} -function TSArrayType(node) { - this.print(node.elementType, node, true); - this.token("[]"); -} -function TSTupleType(node) { - this.tokenChar(91); - this.printList(node.elementTypes, node); - this.tokenChar(93); -} -function TSOptionalType(node) { - this.print(node.typeAnnotation, node); - this.tokenChar(63); -} -function TSRestType(node) { - this.token("..."); - this.print(node.typeAnnotation, node); -} -function TSNamedTupleMember(node) { - this.print(node.label, node); - if (node.optional) this.tokenChar(63); - this.tokenChar(58); - this.space(); - this.print(node.elementType, node); -} -function TSUnionType(node) { - tsPrintUnionOrIntersectionType(this, node, "|"); -} -function TSIntersectionType(node) { - tsPrintUnionOrIntersectionType(this, node, "&"); -} -function tsPrintUnionOrIntersectionType(printer, node, sep) { - printer.printJoin(node.types, node, { - separator() { - this.space(); - this.token(sep); - this.space(); - } - }); -} -function TSConditionalType(node) { - this.print(node.checkType); - this.space(); - this.word("extends"); - this.space(); - this.print(node.extendsType); - this.space(); - this.tokenChar(63); - this.space(); - this.print(node.trueType); - this.space(); - this.tokenChar(58); - this.space(); - this.print(node.falseType); -} -function TSInferType(node) { - this.token("infer"); - this.space(); - this.print(node.typeParameter); -} -function TSParenthesizedType(node) { - this.tokenChar(40); - this.print(node.typeAnnotation, node); - this.tokenChar(41); -} -function TSTypeOperator(node) { - this.word(node.operator); - this.space(); - this.print(node.typeAnnotation, node); -} -function TSIndexedAccessType(node) { - this.print(node.objectType, node, true); - this.tokenChar(91); - this.print(node.indexType, node); - this.tokenChar(93); -} -function TSMappedType(node) { - const { - nameType, - optional, - readonly, - typeParameter - } = node; - this.tokenChar(123); - this.space(); - if (readonly) { - tokenIfPlusMinus(this, readonly); - this.word("readonly"); - this.space(); - } - this.tokenChar(91); - this.word(typeParameter.name); - this.space(); - this.word("in"); - this.space(); - this.print(typeParameter.constraint, typeParameter); - if (nameType) { - this.space(); - this.word("as"); - this.space(); - this.print(nameType, node); - } - this.tokenChar(93); - if (optional) { - tokenIfPlusMinus(this, optional); - this.tokenChar(63); - } - this.tokenChar(58); - this.space(); - this.print(node.typeAnnotation, node); - this.space(); - this.tokenChar(125); -} -function tokenIfPlusMinus(self, tok) { - if (tok !== true) { - self.token(tok); - } -} -function TSLiteralType(node) { - this.print(node.literal, node); -} -function TSExpressionWithTypeArguments(node) { - this.print(node.expression, node); - this.print(node.typeParameters, node); -} -function TSInterfaceDeclaration(node) { - const { - declare, - id, - typeParameters, - extends: extendz, - body - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - this.word("interface"); - this.space(); - this.print(id, node); - this.print(typeParameters, node); - if (extendz != null && extendz.length) { - this.space(); - this.word("extends"); - this.space(); - this.printList(extendz, node); - } - this.space(); - this.print(body, node); -} -function TSInterfaceBody(node) { - this.tsPrintTypeLiteralOrInterfaceBody(node.body, node); -} -function TSTypeAliasDeclaration(node) { - const { - declare, - id, - typeParameters, - typeAnnotation - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - this.word("type"); - this.space(); - this.print(id, node); - this.print(typeParameters, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(typeAnnotation, node); - this.tokenChar(59); -} -function TSTypeExpression(node) { - var _expression$trailingC; - const { - type, - expression, - typeAnnotation - } = node; - const forceParens = !!((_expression$trailingC = expression.trailingComments) != null && _expression$trailingC.length); - this.print(expression, node, true, undefined, forceParens); - this.space(); - this.word(type === "TSAsExpression" ? "as" : "satisfies"); - this.space(); - this.print(typeAnnotation, node); -} -function TSTypeAssertion(node) { - const { - typeAnnotation, - expression - } = node; - this.tokenChar(60); - this.print(typeAnnotation, node); - this.tokenChar(62); - this.space(); - this.print(expression, node); -} -function TSInstantiationExpression(node) { - this.print(node.expression, node); - this.print(node.typeParameters, node); -} -function TSEnumDeclaration(node) { - const { - declare, - const: isConst, - id, - members - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - if (isConst) { - this.word("const"); - this.space(); - } - this.word("enum"); - this.space(); - this.print(id, node); - this.space(); - tsPrintBraced(this, members, node); -} -function TSEnumMember(node) { - const { - id, - initializer - } = node; - this.print(id, node); - if (initializer) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(initializer, node); - } - this.tokenChar(44); -} -function TSModuleDeclaration(node) { - const { - declare, - id - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - if (!node.global) { - this.word(id.type === "Identifier" ? "namespace" : "module"); - this.space(); - } - this.print(id, node); - if (!node.body) { - this.tokenChar(59); - return; - } - let body = node.body; - while (body.type === "TSModuleDeclaration") { - this.tokenChar(46); - this.print(body.id, body); - body = body.body; - } - this.space(); - this.print(body, node); -} -function TSModuleBlock(node) { - tsPrintBraced(this, node.body, node); -} -function TSImportType(node) { - const { - argument, - qualifier, - typeParameters - } = node; - this.word("import"); - this.tokenChar(40); - this.print(argument, node); - this.tokenChar(41); - if (qualifier) { - this.tokenChar(46); - this.print(qualifier, node); - } - if (typeParameters) { - this.print(typeParameters, node); - } -} -function TSImportEqualsDeclaration(node) { - const { - isExport, - id, - moduleReference - } = node; - if (isExport) { - this.word("export"); - this.space(); - } - this.word("import"); - this.space(); - this.print(id, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(moduleReference, node); - this.tokenChar(59); -} -function TSExternalModuleReference(node) { - this.token("require("); - this.print(node.expression, node); - this.tokenChar(41); -} -function TSNonNullExpression(node) { - this.print(node.expression, node); - this.tokenChar(33); -} -function TSExportAssignment(node) { - this.word("export"); - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.expression, node); - this.tokenChar(59); -} -function TSNamespaceExportDeclaration(node) { - this.word("export"); - this.space(); - this.word("as"); - this.space(); - this.word("namespace"); - this.space(); - this.print(node.id, node); -} -function tsPrintSignatureDeclarationBase(node) { - const { - typeParameters - } = node; - const parameters = node.parameters; - this.print(typeParameters, node); - this.tokenChar(40); - this._parameters(parameters, node); - this.tokenChar(41); - const returnType = node.typeAnnotation; - this.print(returnType, node); -} -function tsPrintClassMemberModifiers(node) { - const isField = node.type === "ClassAccessorProperty" || node.type === "ClassProperty"; - if (isField && node.declare) { - this.word("declare"); - this.space(); - } - if (node.accessibility) { - this.word(node.accessibility); - this.space(); - } - if (node.static) { - this.word("static"); - this.space(); - } - if (node.override) { - this.word("override"); - this.space(); - } - if (node.abstract) { - this.word("abstract"); - this.space(); - } - if (isField && node.readonly) { - this.word("readonly"); - this.space(); - } -} - -//# sourceMappingURL=typescript.js.map - - -/***/ }), - -/***/ 84709: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.CodeGenerator = void 0; -exports["default"] = generate; -var _sourceMap = __nccwpck_require__(30127); -var _printer = __nccwpck_require__(55136); -class Generator extends _printer.default { - constructor(ast, opts = {}, code) { - const format = normalizeOptions(code, opts); - const map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null; - super(format, map); - this.ast = void 0; - this.ast = ast; - } - generate() { - return super.generate(this.ast); - } -} -function normalizeOptions(code, opts) { - const format = { - auxiliaryCommentBefore: opts.auxiliaryCommentBefore, - auxiliaryCommentAfter: opts.auxiliaryCommentAfter, - shouldPrintComment: opts.shouldPrintComment, - retainLines: opts.retainLines, - retainFunctionParens: opts.retainFunctionParens, - comments: opts.comments == null || opts.comments, - compact: opts.compact, - minified: opts.minified, - concise: opts.concise, - indent: { - adjustMultilineComment: true, - style: " " - }, - jsescOption: Object.assign({ - quotes: "double", - wrap: true, - minimal: false - }, opts.jsescOption), - recordAndTupleSyntaxType: opts.recordAndTupleSyntaxType, - topicToken: opts.topicToken - }; - { - format.decoratorsBeforeExport = opts.decoratorsBeforeExport; - format.jsonCompatibleStrings = opts.jsonCompatibleStrings; - } - if (format.minified) { - format.compact = true; - format.shouldPrintComment = format.shouldPrintComment || (() => format.comments); - } else { - format.shouldPrintComment = format.shouldPrintComment || (value => format.comments || value.includes("@license") || value.includes("@preserve")); - } - if (format.compact === "auto") { - format.compact = code.length > 500000; - if (format.compact) { - console.error("[BABEL] Note: The code generator has deoptimised the styling of " + `${opts.filename} as it exceeds the max of ${"500KB"}.`); - } - } - if (format.compact) { - format.indent.adjustMultilineComment = false; - } - const { - auxiliaryCommentBefore, - auxiliaryCommentAfter, - shouldPrintComment - } = format; - if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) { - format.auxiliaryCommentBefore = undefined; - } - if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) { - format.auxiliaryCommentAfter = undefined; - } - return format; -} -class CodeGenerator { - constructor(ast, opts, code) { - this._generator = void 0; - this._generator = new Generator(ast, opts, code); - } - generate() { - return this._generator.generate(); - } -} -exports.CodeGenerator = CodeGenerator; -function generate(ast, opts, code) { - const gen = new Generator(ast, opts, code); - return gen.generate(); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 81300: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.needsParens = needsParens; -exports.needsWhitespace = needsWhitespace; -exports.needsWhitespaceAfter = needsWhitespaceAfter; -exports.needsWhitespaceBefore = needsWhitespaceBefore; -var whitespace = __nccwpck_require__(31541); -var parens = __nccwpck_require__(74167); -var _t = __nccwpck_require__(53501); -const { - FLIPPED_ALIAS_KEYS, - isCallExpression, - isExpressionStatement, - isMemberExpression, - isNewExpression -} = _t; -function expandAliases(obj) { - const newObj = {}; - function add(type, func) { - const fn = newObj[type]; - newObj[type] = fn ? function (node, parent, stack) { - const result = fn(node, parent, stack); - return result == null ? func(node, parent, stack) : result; - } : func; - } - for (const type of Object.keys(obj)) { - const aliases = FLIPPED_ALIAS_KEYS[type]; - if (aliases) { - for (const alias of aliases) { - add(alias, obj[type]); - } - } else { - add(type, obj[type]); - } - } - return newObj; -} -const expandedParens = expandAliases(parens); -const expandedWhitespaceNodes = expandAliases(whitespace.nodes); -function find(obj, node, parent, printStack) { - const fn = obj[node.type]; - return fn ? fn(node, parent, printStack) : null; -} -function isOrHasCallExpression(node) { - if (isCallExpression(node)) { - return true; - } - return isMemberExpression(node) && isOrHasCallExpression(node.object); -} -function needsWhitespace(node, parent, type) { - if (!node) return false; - if (isExpressionStatement(node)) { - node = node.expression; - } - const flag = find(expandedWhitespaceNodes, node, parent); - if (typeof flag === "number") { - return (flag & type) !== 0; - } - return false; -} -function needsWhitespaceBefore(node, parent) { - return needsWhitespace(node, parent, 1); -} -function needsWhitespaceAfter(node, parent) { - return needsWhitespace(node, parent, 2); -} -function needsParens(node, parent, printStack) { - if (!parent) return false; - if (isNewExpression(parent) && parent.callee === node) { - if (isOrHasCallExpression(node)) return true; - } - return find(expandedParens, node, parent, printStack); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 74167: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ArrowFunctionExpression = ArrowFunctionExpression; -exports.AssignmentExpression = AssignmentExpression; -exports.Binary = Binary; -exports.BinaryExpression = BinaryExpression; -exports.ClassExpression = ClassExpression; -exports.ConditionalExpression = ConditionalExpression; -exports.DoExpression = DoExpression; -exports.FunctionExpression = FunctionExpression; -exports.FunctionTypeAnnotation = FunctionTypeAnnotation; -exports.Identifier = Identifier; -exports.LogicalExpression = LogicalExpression; -exports.NullableTypeAnnotation = NullableTypeAnnotation; -exports.ObjectExpression = ObjectExpression; -exports.OptionalIndexedAccessType = OptionalIndexedAccessType; -exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression; -exports.SequenceExpression = SequenceExpression; -exports.TSTypeAssertion = exports.TSSatisfiesExpression = exports.TSAsExpression = TSAsExpression; -exports.TSInferType = TSInferType; -exports.TSInstantiationExpression = TSInstantiationExpression; -exports.TSIntersectionType = exports.TSUnionType = TSUnionType; -exports.UnaryLike = UnaryLike; -exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation; -exports.UpdateExpression = UpdateExpression; -exports.AwaitExpression = exports.YieldExpression = YieldExpression; -var _t = __nccwpck_require__(53501); -const { - isArrayTypeAnnotation, - isArrowFunctionExpression, - isAssignmentExpression, - isAwaitExpression, - isBinary, - isBinaryExpression, - isUpdateExpression, - isCallExpression, - isClass, - isClassExpression, - isConditional, - isConditionalExpression, - isExportDeclaration, - isExportDefaultDeclaration, - isExpressionStatement, - isFor, - isForInStatement, - isForOfStatement, - isForStatement, - isFunctionExpression, - isIfStatement, - isIndexedAccessType, - isIntersectionTypeAnnotation, - isLogicalExpression, - isMemberExpression, - isNewExpression, - isNullableTypeAnnotation, - isObjectPattern, - isOptionalCallExpression, - isOptionalMemberExpression, - isReturnStatement, - isSequenceExpression, - isSwitchStatement, - isTSArrayType, - isTSAsExpression, - isTSInstantiationExpression, - isTSIntersectionType, - isTSNonNullExpression, - isTSOptionalType, - isTSRestType, - isTSTypeAssertion, - isTSUnionType, - isTaggedTemplateExpression, - isThrowStatement, - isTypeAnnotation, - isUnaryLike, - isUnionTypeAnnotation, - isVariableDeclarator, - isWhileStatement, - isYieldExpression, - isTSSatisfiesExpression -} = _t; -const PRECEDENCE = { - "||": 0, - "??": 0, - "|>": 0, - "&&": 1, - "|": 2, - "^": 3, - "&": 4, - "==": 5, - "===": 5, - "!=": 5, - "!==": 5, - "<": 6, - ">": 6, - "<=": 6, - ">=": 6, - in: 6, - instanceof: 6, - ">>": 7, - "<<": 7, - ">>>": 7, - "+": 8, - "-": 8, - "*": 9, - "/": 9, - "%": 9, - "**": 10 -}; -function isTSTypeExpression(node) { - return isTSAsExpression(node) || isTSSatisfiesExpression(node) || isTSTypeAssertion(node); -} -const isClassExtendsClause = (node, parent) => isClass(parent, { - superClass: node -}); -const hasPostfixPart = (node, parent) => (isMemberExpression(parent) || isOptionalMemberExpression(parent)) && parent.object === node || (isCallExpression(parent) || isOptionalCallExpression(parent) || isNewExpression(parent)) && parent.callee === node || isTaggedTemplateExpression(parent) && parent.tag === node || isTSNonNullExpression(parent); -function NullableTypeAnnotation(node, parent) { - return isArrayTypeAnnotation(parent); -} -function FunctionTypeAnnotation(node, parent, printStack) { - if (printStack.length < 3) return; - return isUnionTypeAnnotation(parent) || isIntersectionTypeAnnotation(parent) || isArrayTypeAnnotation(parent) || isTypeAnnotation(parent) && isArrowFunctionExpression(printStack[printStack.length - 3]); -} -function UpdateExpression(node, parent) { - return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent); -} -function ObjectExpression(node, parent, printStack) { - return isFirstInContext(printStack, 1 | 2); -} -function DoExpression(node, parent, printStack) { - return !node.async && isFirstInContext(printStack, 1); -} -function Binary(node, parent) { - if (node.operator === "**" && isBinaryExpression(parent, { - operator: "**" - })) { - return parent.left === node; - } - if (isClassExtendsClause(node, parent)) { - return true; - } - if (hasPostfixPart(node, parent) || isUnaryLike(parent) || isAwaitExpression(parent)) { - return true; - } - if (isBinary(parent)) { - const parentOp = parent.operator; - const parentPos = PRECEDENCE[parentOp]; - const nodeOp = node.operator; - const nodePos = PRECEDENCE[nodeOp]; - if (parentPos === nodePos && parent.right === node && !isLogicalExpression(parent) || parentPos > nodePos) { - return true; - } - } -} -function UnionTypeAnnotation(node, parent) { - return isArrayTypeAnnotation(parent) || isNullableTypeAnnotation(parent) || isIntersectionTypeAnnotation(parent) || isUnionTypeAnnotation(parent); -} -function OptionalIndexedAccessType(node, parent) { - return isIndexedAccessType(parent, { - objectType: node - }); -} -function TSAsExpression() { - return true; -} -function TSUnionType(node, parent) { - return isTSArrayType(parent) || isTSOptionalType(parent) || isTSIntersectionType(parent) || isTSUnionType(parent) || isTSRestType(parent); -} -function TSInferType(node, parent) { - return isTSArrayType(parent) || isTSOptionalType(parent); -} -function TSInstantiationExpression(node, parent) { - return (isCallExpression(parent) || isOptionalCallExpression(parent) || isNewExpression(parent) || isTSInstantiationExpression(parent)) && !!parent.typeParameters; -} -function BinaryExpression(node, parent) { - return node.operator === "in" && (isVariableDeclarator(parent) || isFor(parent)); -} -function SequenceExpression(node, parent) { - if (isForStatement(parent) || isThrowStatement(parent) || isReturnStatement(parent) || isIfStatement(parent) && parent.test === node || isWhileStatement(parent) && parent.test === node || isForInStatement(parent) && parent.right === node || isSwitchStatement(parent) && parent.discriminant === node || isExpressionStatement(parent) && parent.expression === node) { - return false; - } - return true; -} -function YieldExpression(node, parent) { - return isBinary(parent) || isUnaryLike(parent) || hasPostfixPart(node, parent) || isAwaitExpression(parent) && isYieldExpression(node) || isConditionalExpression(parent) && node === parent.test || isClassExtendsClause(node, parent); -} -function ClassExpression(node, parent, printStack) { - return isFirstInContext(printStack, 1 | 4); -} -function UnaryLike(node, parent) { - return hasPostfixPart(node, parent) || isBinaryExpression(parent, { - operator: "**", - left: node - }) || isClassExtendsClause(node, parent); -} -function FunctionExpression(node, parent, printStack) { - return isFirstInContext(printStack, 1 | 4); -} -function ArrowFunctionExpression(node, parent) { - return isExportDeclaration(parent) || ConditionalExpression(node, parent); -} -function ConditionalExpression(node, parent) { - if (isUnaryLike(parent) || isBinary(parent) || isConditionalExpression(parent, { - test: node - }) || isAwaitExpression(parent) || isTSTypeExpression(parent)) { - return true; - } - return UnaryLike(node, parent); -} -function OptionalMemberExpression(node, parent) { - return isCallExpression(parent, { - callee: node - }) || isMemberExpression(parent, { - object: node - }); -} -function AssignmentExpression(node, parent) { - if (isObjectPattern(node.left)) { - return true; - } else { - return ConditionalExpression(node, parent); - } -} -function LogicalExpression(node, parent) { - if (isTSTypeExpression(parent)) return true; - switch (node.operator) { - case "||": - if (!isLogicalExpression(parent)) return false; - return parent.operator === "??" || parent.operator === "&&"; - case "&&": - return isLogicalExpression(parent, { - operator: "??" - }); - case "??": - return isLogicalExpression(parent) && parent.operator !== "??"; - } -} -function Identifier(node, parent, printStack) { - var _node$extra; - if ((_node$extra = node.extra) != null && _node$extra.parenthesized && isAssignmentExpression(parent, { - left: node - }) && (isFunctionExpression(parent.right) || isClassExpression(parent.right)) && parent.right.id == null) { - return true; - } - if (node.name === "let") { - const isFollowedByBracket = isMemberExpression(parent, { - object: node, - computed: true - }) || isOptionalMemberExpression(parent, { - object: node, - computed: true, - optional: false - }); - return isFirstInContext(printStack, isFollowedByBracket ? 1 | 8 | 16 | 32 : 32); - } - return node.name === "async" && isForOfStatement(parent) && node === parent.left; -} -function isFirstInContext(printStack, checkParam) { - const expressionStatement = checkParam & 1; - const arrowBody = checkParam & 2; - const exportDefault = checkParam & 4; - const forHead = checkParam & 8; - const forInHead = checkParam & 16; - const forOfHead = checkParam & 32; - let i = printStack.length - 1; - if (i <= 0) return; - let node = printStack[i]; - i--; - let parent = printStack[i]; - while (i >= 0) { - if (expressionStatement && isExpressionStatement(parent, { - expression: node - }) || exportDefault && isExportDefaultDeclaration(parent, { - declaration: node - }) || arrowBody && isArrowFunctionExpression(parent, { - body: node - }) || forHead && isForStatement(parent, { - init: node - }) || forInHead && isForInStatement(parent, { - left: node - }) || forOfHead && isForOfStatement(parent, { - left: node - })) { - return true; - } - if (i > 0 && (hasPostfixPart(node, parent) && !isNewExpression(parent) || isSequenceExpression(parent) && parent.expressions[0] === node || isUpdateExpression(parent) && !parent.prefix || isConditional(parent, { - test: node - }) || isBinary(parent, { - left: node - }) || isAssignmentExpression(parent, { - left: node - }))) { - node = parent; - i--; - parent = printStack[i]; - } else { - return false; - } - } - return false; -} - -//# sourceMappingURL=parentheses.js.map - - -/***/ }), - -/***/ 31541: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.nodes = void 0; -var _t = __nccwpck_require__(53501); -const { - FLIPPED_ALIAS_KEYS, - isArrayExpression, - isAssignmentExpression, - isBinary, - isBlockStatement, - isCallExpression, - isFunction, - isIdentifier, - isLiteral, - isMemberExpression, - isObjectExpression, - isOptionalCallExpression, - isOptionalMemberExpression, - isStringLiteral -} = _t; -function crawlInternal(node, state) { - if (!node) return state; - if (isMemberExpression(node) || isOptionalMemberExpression(node)) { - crawlInternal(node.object, state); - if (node.computed) crawlInternal(node.property, state); - } else if (isBinary(node) || isAssignmentExpression(node)) { - crawlInternal(node.left, state); - crawlInternal(node.right, state); - } else if (isCallExpression(node) || isOptionalCallExpression(node)) { - state.hasCall = true; - crawlInternal(node.callee, state); - } else if (isFunction(node)) { - state.hasFunction = true; - } else if (isIdentifier(node)) { - state.hasHelper = state.hasHelper || node.callee && isHelper(node.callee); - } - return state; -} -function crawl(node) { - return crawlInternal(node, { - hasCall: false, - hasFunction: false, - hasHelper: false - }); -} -function isHelper(node) { - if (!node) return false; - if (isMemberExpression(node)) { - return isHelper(node.object) || isHelper(node.property); - } else if (isIdentifier(node)) { - return node.name === "require" || node.name.charCodeAt(0) === 95; - } else if (isCallExpression(node)) { - return isHelper(node.callee); - } else if (isBinary(node) || isAssignmentExpression(node)) { - return isIdentifier(node.left) && isHelper(node.left) || isHelper(node.right); - } else { - return false; - } -} -function isType(node) { - return isLiteral(node) || isObjectExpression(node) || isArrayExpression(node) || isIdentifier(node) || isMemberExpression(node); -} -const nodes = { - AssignmentExpression(node) { - const state = crawl(node.right); - if (state.hasCall && state.hasHelper || state.hasFunction) { - return state.hasFunction ? 1 | 2 : 2; - } - }, - SwitchCase(node, parent) { - return (!!node.consequent.length || parent.cases[0] === node ? 1 : 0) | (!node.consequent.length && parent.cases[parent.cases.length - 1] === node ? 2 : 0); - }, - LogicalExpression(node) { - if (isFunction(node.left) || isFunction(node.right)) { - return 2; - } - }, - Literal(node) { - if (isStringLiteral(node) && node.value === "use strict") { - return 2; - } - }, - CallExpression(node) { - if (isFunction(node.callee) || isHelper(node)) { - return 1 | 2; - } - }, - OptionalCallExpression(node) { - if (isFunction(node.callee)) { - return 1 | 2; - } - }, - VariableDeclaration(node) { - for (let i = 0; i < node.declarations.length; i++) { - const declar = node.declarations[i]; - let enabled = isHelper(declar.id) && !isType(declar.init); - if (!enabled && declar.init) { - const state = crawl(declar.init); - enabled = isHelper(declar.init) && state.hasCall || state.hasFunction; - } - if (enabled) { - return 1 | 2; - } - } - }, - IfStatement(node) { - if (isBlockStatement(node.consequent)) { - return 1 | 2; - } - } -}; -exports.nodes = nodes; -nodes.ObjectProperty = nodes.ObjectTypeProperty = nodes.ObjectMethod = function (node, parent) { - if (parent.properties[0] === node) { - return 1; - } -}; -nodes.ObjectTypeCallProperty = function (node, parent) { - var _parent$properties; - if (parent.callProperties[0] === node && !((_parent$properties = parent.properties) != null && _parent$properties.length)) { - return 1; - } -}; -nodes.ObjectTypeIndexer = function (node, parent) { - var _parent$properties2, _parent$callPropertie; - if (parent.indexers[0] === node && !((_parent$properties2 = parent.properties) != null && _parent$properties2.length) && !((_parent$callPropertie = parent.callProperties) != null && _parent$callPropertie.length)) { - return 1; - } -}; -nodes.ObjectTypeInternalSlot = function (node, parent) { - var _parent$properties3, _parent$callPropertie2, _parent$indexers; - if (parent.internalSlots[0] === node && !((_parent$properties3 = parent.properties) != null && _parent$properties3.length) && !((_parent$callPropertie2 = parent.callProperties) != null && _parent$callPropertie2.length) && !((_parent$indexers = parent.indexers) != null && _parent$indexers.length)) { - return 1; - } -}; -[["Function", true], ["Class", true], ["Loop", true], ["LabeledStatement", true], ["SwitchStatement", true], ["TryStatement", true]].forEach(function ([type, amounts]) { - [type].concat(FLIPPED_ALIAS_KEYS[type] || []).forEach(function (type) { - const ret = amounts ? 1 | 2 : 0; - nodes[type] = () => ret; - }); -}); - -//# sourceMappingURL=whitespace.js.map - - -/***/ }), - -/***/ 55136: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _buffer = __nccwpck_require__(39369); -var n = __nccwpck_require__(81300); -var _t = __nccwpck_require__(53501); -var generatorFunctions = __nccwpck_require__(42395); -const { - isFunction, - isStatement, - isClassBody, - isTSInterfaceBody, - isTSEnumDeclaration -} = _t; -const SCIENTIFIC_NOTATION = /e/i; -const ZERO_DECIMAL_INTEGER = /\.0+$/; -const NON_DECIMAL_LITERAL = /^0[box]/; -const PURE_ANNOTATION_RE = /^\s*[@#]__PURE__\s*$/; -const HAS_NEWLINE = /[\n\r\u2028\u2029]/; -const HAS_BlOCK_COMMENT_END = /\*\//; -const { - needsParens -} = n; -class Printer { - constructor(format, map) { - this.inForStatementInitCounter = 0; - this._printStack = []; - this._indent = 0; - this._indentChar = 0; - this._indentRepeat = 0; - this._insideAux = false; - this._parenPushNewlineState = null; - this._noLineTerminator = false; - this._printAuxAfterOnNextUserNode = false; - this._printedComments = new Set(); - this._endsWithInteger = false; - this._endsWithWord = false; - this._lastCommentLine = 0; - this._endsWithInnerRaw = false; - this._indentInnerComments = true; - this.format = format; - this._buf = new _buffer.default(map); - this._indentChar = format.indent.style.charCodeAt(0); - this._indentRepeat = format.indent.style.length; - this._inputMap = map == null ? void 0 : map._inputMap; - } - generate(ast) { - this.print(ast); - this._maybeAddAuxComment(); - return this._buf.get(); - } - indent() { - if (this.format.compact || this.format.concise) return; - this._indent++; - } - dedent() { - if (this.format.compact || this.format.concise) return; - this._indent--; - } - semicolon(force = false) { - this._maybeAddAuxComment(); - if (force) { - this._appendChar(59); - } else { - this._queue(59); - } - this._noLineTerminator = false; - } - rightBrace() { - if (this.format.minified) { - this._buf.removeLastSemicolon(); - } - this.tokenChar(125); - } - space(force = false) { - if (this.format.compact) return; - if (force) { - this._space(); - } else if (this._buf.hasContent()) { - const lastCp = this.getLastChar(); - if (lastCp !== 32 && lastCp !== 10) { - this._space(); - } - } - } - word(str, noLineTerminatorAfter = false) { - this._maybePrintInnerComments(); - if (this._endsWithWord || str.charCodeAt(0) === 47 && this.endsWith(47)) { - this._space(); - } - this._maybeAddAuxComment(); - this._append(str, false); - this._endsWithWord = true; - this._noLineTerminator = noLineTerminatorAfter; - } - number(str) { - this.word(str); - this._endsWithInteger = Number.isInteger(+str) && !NON_DECIMAL_LITERAL.test(str) && !SCIENTIFIC_NOTATION.test(str) && !ZERO_DECIMAL_INTEGER.test(str) && str.charCodeAt(str.length - 1) !== 46; - } - token(str, maybeNewline = false) { - this._maybePrintInnerComments(); - const lastChar = this.getLastChar(); - const strFirst = str.charCodeAt(0); - if (lastChar === 33 && str === "--" || strFirst === 43 && lastChar === 43 || strFirst === 45 && lastChar === 45 || strFirst === 46 && this._endsWithInteger) { - this._space(); - } - this._maybeAddAuxComment(); - this._append(str, maybeNewline); - this._noLineTerminator = false; - } - tokenChar(char) { - this._maybePrintInnerComments(); - const lastChar = this.getLastChar(); - if (char === 43 && lastChar === 43 || char === 45 && lastChar === 45 || char === 46 && this._endsWithInteger) { - this._space(); - } - this._maybeAddAuxComment(); - this._appendChar(char); - this._noLineTerminator = false; - } - newline(i = 1, force) { - if (i <= 0) return; - if (!force) { - if (this.format.retainLines || this.format.compact) return; - if (this.format.concise) { - this.space(); - return; - } - } - if (i > 2) i = 2; - i -= this._buf.getNewlineCount(); - for (let j = 0; j < i; j++) { - this._newline(); - } - return; - } - endsWith(char) { - return this.getLastChar() === char; - } - getLastChar() { - return this._buf.getLastChar(); - } - endsWithCharAndNewline() { - return this._buf.endsWithCharAndNewline(); - } - removeTrailingNewline() { - this._buf.removeTrailingNewline(); - } - exactSource(loc, cb) { - if (!loc) return cb(); - this._catchUp("start", loc); - this._buf.exactSource(loc, cb); - } - source(prop, loc) { - if (!loc) return; - this._catchUp(prop, loc); - this._buf.source(prop, loc); - } - sourceWithOffset(prop, loc, lineOffset, columnOffset) { - if (!loc) return; - this._catchUp(prop, loc); - this._buf.sourceWithOffset(prop, loc, lineOffset, columnOffset); - } - withSource(prop, loc, cb) { - if (!loc) return cb(); - this._catchUp(prop, loc); - this._buf.withSource(prop, loc, cb); - } - sourceIdentifierName(identifierName, pos) { - if (!this._buf._canMarkIdName) return; - const sourcePosition = this._buf._sourcePosition; - sourcePosition.identifierNamePos = pos; - sourcePosition.identifierName = identifierName; - } - _space() { - this._queue(32); - } - _newline() { - this._queue(10); - } - _append(str, maybeNewline) { - this._maybeAddParen(str); - this._maybeIndent(str.charCodeAt(0)); - this._buf.append(str, maybeNewline); - this._endsWithWord = false; - this._endsWithInteger = false; - } - _appendChar(char) { - this._maybeAddParenChar(char); - this._maybeIndent(char); - this._buf.appendChar(char); - this._endsWithWord = false; - this._endsWithInteger = false; - } - _queue(char) { - this._maybeAddParenChar(char); - this._maybeIndent(char); - this._buf.queue(char); - this._endsWithWord = false; - this._endsWithInteger = false; - } - _maybeIndent(firstChar) { - if (this._indent && firstChar !== 10 && this.endsWith(10)) { - this._buf.queueIndentation(this._indentChar, this._getIndent()); - } - } - _shouldIndent(firstChar) { - if (this._indent && firstChar !== 10 && this.endsWith(10)) { - return true; - } - } - _maybeAddParenChar(char) { - const parenPushNewlineState = this._parenPushNewlineState; - if (!parenPushNewlineState) return; - if (char === 32) { - return; - } - if (char !== 10) { - this._parenPushNewlineState = null; - return; - } - this.tokenChar(40); - this.indent(); - parenPushNewlineState.printed = true; - } - _maybeAddParen(str) { - const parenPushNewlineState = this._parenPushNewlineState; - if (!parenPushNewlineState) return; - const len = str.length; - let i; - for (i = 0; i < len && str.charCodeAt(i) === 32; i++) continue; - if (i === len) { - return; - } - const cha = str.charCodeAt(i); - if (cha !== 10) { - if (cha !== 47 || i + 1 === len) { - this._parenPushNewlineState = null; - return; - } - const chaPost = str.charCodeAt(i + 1); - if (chaPost === 42) { - if (PURE_ANNOTATION_RE.test(str.slice(i + 2, len - 2))) { - return; - } - } else if (chaPost !== 47) { - this._parenPushNewlineState = null; - return; - } - } - this.tokenChar(40); - this.indent(); - parenPushNewlineState.printed = true; - } - catchUp(line) { - if (!this.format.retainLines) return; - const count = line - this._buf.getCurrentLine(); - for (let i = 0; i < count; i++) { - this._newline(); - } - } - _catchUp(prop, loc) { - if (!this.format.retainLines) return; - const pos = loc ? loc[prop] : null; - if ((pos == null ? void 0 : pos.line) != null) { - const count = pos.line - this._buf.getCurrentLine(); - for (let i = 0; i < count; i++) { - this._newline(); - } - } - } - _getIndent() { - return this._indentRepeat * this._indent; - } - printTerminatorless(node, parent, isLabel) { - if (isLabel) { - this._noLineTerminator = true; - this.print(node, parent); - } else { - const terminatorState = { - printed: false - }; - this._parenPushNewlineState = terminatorState; - this.print(node, parent); - if (terminatorState.printed) { - this.dedent(); - this.newline(); - this.tokenChar(41); - } - } - } - print(node, parent, noLineTerminatorAfter, trailingCommentsLineOffset, forceParens) { - if (!node) return; - this._endsWithInnerRaw = false; - const nodeType = node.type; - const format = this.format; - const oldConcise = format.concise; - if (node._compact) { - format.concise = true; - } - const printMethod = this[nodeType]; - if (printMethod === undefined) { - throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`); - } - this._printStack.push(node); - const oldInAux = this._insideAux; - this._insideAux = node.loc == undefined; - this._maybeAddAuxComment(this._insideAux && !oldInAux); - let shouldPrintParens = false; - if (forceParens) { - shouldPrintParens = true; - } else if (format.retainFunctionParens && nodeType === "FunctionExpression" && node.extra && node.extra.parenthesized) { - shouldPrintParens = true; - } else { - shouldPrintParens = needsParens(node, parent, this._printStack); - } - if (shouldPrintParens) { - this.tokenChar(40); - this._endsWithInnerRaw = false; - } - this._lastCommentLine = 0; - this._printLeadingComments(node, parent); - const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc; - this.exactSource(loc, printMethod.bind(this, node, parent)); - if (shouldPrintParens) { - this._printTrailingComments(node, parent); - this.tokenChar(41); - this._noLineTerminator = noLineTerminatorAfter; - } else if (noLineTerminatorAfter && !this._noLineTerminator) { - this._noLineTerminator = true; - this._printTrailingComments(node, parent); - } else { - this._printTrailingComments(node, parent, trailingCommentsLineOffset); - } - this._printStack.pop(); - format.concise = oldConcise; - this._insideAux = oldInAux; - this._endsWithInnerRaw = false; - } - _maybeAddAuxComment(enteredPositionlessNode) { - if (enteredPositionlessNode) this._printAuxBeforeComment(); - if (!this._insideAux) this._printAuxAfterComment(); - } - _printAuxBeforeComment() { - if (this._printAuxAfterOnNextUserNode) return; - this._printAuxAfterOnNextUserNode = true; - const comment = this.format.auxiliaryCommentBefore; - if (comment) { - this._printComment({ - type: "CommentBlock", - value: comment - }, 0); - } - } - _printAuxAfterComment() { - if (!this._printAuxAfterOnNextUserNode) return; - this._printAuxAfterOnNextUserNode = false; - const comment = this.format.auxiliaryCommentAfter; - if (comment) { - this._printComment({ - type: "CommentBlock", - value: comment - }, 0); - } - } - getPossibleRaw(node) { - const extra = node.extra; - if (extra && extra.raw != null && extra.rawValue != null && node.value === extra.rawValue) { - return extra.raw; - } - } - printJoin(nodes, parent, opts = {}) { - if (!(nodes != null && nodes.length)) return; - if (opts.indent) this.indent(); - const newlineOpts = { - addNewlines: opts.addNewlines, - nextNodeStartLine: 0 - }; - const separator = opts.separator ? opts.separator.bind(this) : null; - const len = nodes.length; - for (let i = 0; i < len; i++) { - const node = nodes[i]; - if (!node) continue; - if (opts.statement) this._printNewline(i === 0, newlineOpts); - this.print(node, parent, undefined, opts.trailingCommentsLineOffset || 0); - opts.iterator == null ? void 0 : opts.iterator(node, i); - if (i < len - 1) separator == null ? void 0 : separator(); - if (opts.statement) { - if (i + 1 === len) { - this.newline(1); - } else { - var _nextNode$loc; - const nextNode = nodes[i + 1]; - newlineOpts.nextNodeStartLine = ((_nextNode$loc = nextNode.loc) == null ? void 0 : _nextNode$loc.start.line) || 0; - this._printNewline(true, newlineOpts); - } - } - } - if (opts.indent) this.dedent(); - } - printAndIndentOnComments(node, parent) { - const indent = node.leadingComments && node.leadingComments.length > 0; - if (indent) this.indent(); - this.print(node, parent); - if (indent) this.dedent(); - } - printBlock(parent) { - const node = parent.body; - if (node.type !== "EmptyStatement") { - this.space(); - } - this.print(node, parent); - } - _printTrailingComments(node, parent, lineOffset) { - const { - innerComments, - trailingComments - } = node; - if (innerComments != null && innerComments.length) { - this._printComments(2, innerComments, node, parent, lineOffset); - } - if (trailingComments != null && trailingComments.length) { - this._printComments(2, trailingComments, node, parent, lineOffset); - } - } - _printLeadingComments(node, parent) { - const comments = node.leadingComments; - if (!(comments != null && comments.length)) return; - this._printComments(0, comments, node, parent); - } - _maybePrintInnerComments() { - if (this._endsWithInnerRaw) this.printInnerComments(); - this._endsWithInnerRaw = true; - this._indentInnerComments = true; - } - printInnerComments() { - const node = this._printStack[this._printStack.length - 1]; - const comments = node.innerComments; - if (!(comments != null && comments.length)) return; - const hasSpace = this.endsWith(32); - const indent = this._indentInnerComments; - const printedCommentsCount = this._printedComments.size; - if (indent) this.indent(); - this._printComments(1, comments, node); - if (hasSpace && printedCommentsCount !== this._printedComments.size) { - this.space(); - } - if (indent) this.dedent(); - } - noIndentInnerCommentsHere() { - this._indentInnerComments = false; - } - printSequence(nodes, parent, opts = {}) { - opts.statement = true; - return this.printJoin(nodes, parent, opts); - } - printList(items, parent, opts = {}) { - if (opts.separator == null) { - opts.separator = commaSeparator; - } - return this.printJoin(items, parent, opts); - } - _printNewline(newLine, opts) { - if (this.format.retainLines || this.format.compact) return; - if (this.format.concise) { - this.space(); - return; - } - if (!newLine) { - return; - } - const startLine = opts.nextNodeStartLine; - const lastCommentLine = this._lastCommentLine; - if (startLine > 0 && lastCommentLine > 0) { - const offset = startLine - lastCommentLine; - if (offset >= 0) { - this.newline(offset || 1); - return; - } - } - if (this._buf.hasContent()) { - this.newline(1); - } - } - _shouldPrintComment(comment) { - if (comment.ignore) return 0; - if (this._printedComments.has(comment)) return 0; - if (this._noLineTerminator && (HAS_NEWLINE.test(comment.value) || HAS_BlOCK_COMMENT_END.test(comment.value))) { - return 2; - } - this._printedComments.add(comment); - if (!this.format.shouldPrintComment(comment.value)) { - return 0; - } - return 1; - } - _printComment(comment, skipNewLines) { - const noLineTerminator = this._noLineTerminator; - const isBlockComment = comment.type === "CommentBlock"; - const printNewLines = isBlockComment && skipNewLines !== 1 && !this._noLineTerminator; - if (printNewLines && this._buf.hasContent() && skipNewLines !== 2) { - this.newline(1); - } - const lastCharCode = this.getLastChar(); - if (lastCharCode !== 91 && lastCharCode !== 123) { - this.space(); - } - let val; - if (isBlockComment) { - val = `/*${comment.value}*/`; - if (this.format.indent.adjustMultilineComment) { - var _comment$loc; - const offset = (_comment$loc = comment.loc) == null ? void 0 : _comment$loc.start.column; - if (offset) { - const newlineRegex = new RegExp("\\n\\s{1," + offset + "}", "g"); - val = val.replace(newlineRegex, "\n"); - } - let indentSize = this.format.retainLines ? 0 : this._buf.getCurrentColumn(); - if (this._shouldIndent(47) || this.format.retainLines) { - indentSize += this._getIndent(); - } - val = val.replace(/\n(?!$)/g, `\n${" ".repeat(indentSize)}`); - } - } else if (!noLineTerminator) { - val = `//${comment.value}`; - } else { - val = `/*${comment.value}*/`; - } - if (this.endsWith(47)) this._space(); - this.source("start", comment.loc); - this._append(val, isBlockComment); - if (!isBlockComment && !noLineTerminator) { - this.newline(1, true); - } - if (printNewLines && skipNewLines !== 3) { - this.newline(1); - } - } - _printComments(type, comments, node, parent, lineOffset = 0) { - const nodeLoc = node.loc; - const len = comments.length; - let hasLoc = !!nodeLoc; - const nodeStartLine = hasLoc ? nodeLoc.start.line : 0; - const nodeEndLine = hasLoc ? nodeLoc.end.line : 0; - let lastLine = 0; - let leadingCommentNewline = 0; - const maybeNewline = this._noLineTerminator ? function () {} : this.newline.bind(this); - for (let i = 0; i < len; i++) { - const comment = comments[i]; - const shouldPrint = this._shouldPrintComment(comment); - if (shouldPrint === 2) { - hasLoc = false; - break; - } - if (hasLoc && comment.loc && shouldPrint === 1) { - const commentStartLine = comment.loc.start.line; - const commentEndLine = comment.loc.end.line; - if (type === 0) { - let offset = 0; - if (i === 0) { - if (this._buf.hasContent() && (comment.type === "CommentLine" || commentStartLine != commentEndLine)) { - offset = leadingCommentNewline = 1; - } - } else { - offset = commentStartLine - lastLine; - } - lastLine = commentEndLine; - maybeNewline(offset); - this._printComment(comment, 1); - if (i + 1 === len) { - maybeNewline(Math.max(nodeStartLine - lastLine, leadingCommentNewline)); - lastLine = nodeStartLine; - } - } else if (type === 1) { - const offset = commentStartLine - (i === 0 ? nodeStartLine : lastLine); - lastLine = commentEndLine; - maybeNewline(offset); - this._printComment(comment, 1); - if (i + 1 === len) { - maybeNewline(Math.min(1, nodeEndLine - lastLine)); - lastLine = nodeEndLine; - } - } else { - const offset = commentStartLine - (i === 0 ? nodeEndLine - lineOffset : lastLine); - lastLine = commentEndLine; - maybeNewline(offset); - this._printComment(comment, 1); - } - } else { - hasLoc = false; - if (shouldPrint !== 1) { - continue; - } - if (len === 1) { - const singleLine = comment.loc ? comment.loc.start.line === comment.loc.end.line : !HAS_NEWLINE.test(comment.value); - const shouldSkipNewline = singleLine && !isStatement(node) && !isClassBody(parent) && !isTSInterfaceBody(parent) && !isTSEnumDeclaration(parent); - if (type === 0) { - this._printComment(comment, shouldSkipNewline && node.type !== "ObjectExpression" || singleLine && isFunction(parent, { - body: node - }) ? 1 : 0); - } else if (shouldSkipNewline && type === 2) { - this._printComment(comment, 1); - } else { - this._printComment(comment, 0); - } - } else if (type === 1 && !(node.type === "ObjectExpression" && node.properties.length > 1) && node.type !== "ClassBody" && node.type !== "TSInterfaceBody") { - this._printComment(comment, i === 0 ? 2 : i === len - 1 ? 3 : 0); - } else { - this._printComment(comment, 0); - } - } - } - if (type === 2 && hasLoc && lastLine) { - this._lastCommentLine = lastLine; - } - } -} -Object.assign(Printer.prototype, generatorFunctions); -{ - Printer.prototype.Noop = function Noop() {}; -} -var _default = Printer; -exports["default"] = _default; -function commaSeparator() { - this.tokenChar(44); - this.space(); -} - -//# sourceMappingURL=printer.js.map - - -/***/ }), - -/***/ 30127: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _genMapping = __nccwpck_require__(95937); -var _traceMapping = __nccwpck_require__(46974); -class SourceMap { - constructor(opts, code) { - var _opts$sourceFileName; - this._map = void 0; - this._rawMappings = void 0; - this._sourceFileName = void 0; - this._lastGenLine = 0; - this._lastSourceLine = 0; - this._lastSourceColumn = 0; - this._inputMap = void 0; - const map = this._map = new _genMapping.GenMapping({ - sourceRoot: opts.sourceRoot - }); - this._sourceFileName = (_opts$sourceFileName = opts.sourceFileName) == null ? void 0 : _opts$sourceFileName.replace(/\\/g, "/"); - this._rawMappings = undefined; - if (opts.inputSourceMap) { - this._inputMap = new _traceMapping.TraceMap(opts.inputSourceMap); - const resolvedSources = this._inputMap.resolvedSources; - if (resolvedSources.length) { - for (let i = 0; i < resolvedSources.length; i++) { - var _this$_inputMap$sourc; - (0, _genMapping.setSourceContent)(map, resolvedSources[i], (_this$_inputMap$sourc = this._inputMap.sourcesContent) == null ? void 0 : _this$_inputMap$sourc[i]); - } - } - } - if (typeof code === "string" && !opts.inputSourceMap) { - (0, _genMapping.setSourceContent)(map, this._sourceFileName, code); - } else if (typeof code === "object") { - for (const sourceFileName of Object.keys(code)) { - (0, _genMapping.setSourceContent)(map, sourceFileName.replace(/\\/g, "/"), code[sourceFileName]); - } - } - } - get() { - return (0, _genMapping.toEncodedMap)(this._map); - } - getDecoded() { - return (0, _genMapping.toDecodedMap)(this._map); - } - getRawMappings() { - return this._rawMappings || (this._rawMappings = (0, _genMapping.allMappings)(this._map)); - } - mark(generated, line, column, identifierName, identifierNamePos, filename) { - var _originalMapping; - this._rawMappings = undefined; - let originalMapping; - if (line != null) { - if (this._inputMap) { - originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, { - line, - column - }); - if (!originalMapping.name && identifierNamePos) { - const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos); - if (originalIdentifierMapping.name) { - identifierName = originalIdentifierMapping.name; - } - } - } else { - originalMapping = { - source: (filename == null ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName, - line: line, - column: column - }; - } - } - (0, _genMapping.maybeAddMapping)(this._map, { - name: identifierName, - generated, - source: (_originalMapping = originalMapping) == null ? void 0 : _originalMapping.source, - original: originalMapping - }); - } -} -exports["default"] = SourceMap; - -//# sourceMappingURL=source-map.js.map - - -/***/ }), - -/***/ 98462: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -class Buffer { - constructor(map) { - this._map = null; - this._buf = ""; - this._str = ""; - this._appendCount = 0; - this._last = 0; - this._queue = []; - this._queueCursor = 0; - this._canMarkIdName = true; - this._position = { - line: 1, - column: 0 - }; - this._sourcePosition = { - identifierName: undefined, - identifierNamePos: undefined, - line: undefined, - column: undefined, - filename: undefined - }; - this._map = map; - this._allocQueue(); - } - _allocQueue() { - const queue = this._queue; - for (let i = 0; i < 16; i++) { - queue.push({ - char: 0, - repeat: 1, - line: undefined, - column: undefined, - identifierName: undefined, - identifierNamePos: undefined, - filename: "" - }); - } - } - _pushQueue(char, repeat, line, column, filename) { - const cursor = this._queueCursor; - if (cursor === this._queue.length) { - this._allocQueue(); - } - const item = this._queue[cursor]; - item.char = char; - item.repeat = repeat; - item.line = line; - item.column = column; - item.filename = filename; - this._queueCursor++; - } - _popQueue() { - if (this._queueCursor === 0) { - throw new Error("Cannot pop from empty queue"); - } - return this._queue[--this._queueCursor]; - } - get() { - this._flush(); - const map = this._map; - const result = { - code: (this._buf + this._str).trimRight(), - decodedMap: map == null ? void 0 : map.getDecoded(), - get __mergedMap() { - return this.map; - }, - get map() { - const resultMap = map ? map.get() : null; - result.map = resultMap; - return resultMap; - }, - set map(value) { - Object.defineProperty(result, "map", { - value, - writable: true - }); - }, - get rawMappings() { - const mappings = map == null ? void 0 : map.getRawMappings(); - result.rawMappings = mappings; - return mappings; - }, - set rawMappings(value) { - Object.defineProperty(result, "rawMappings", { - value, - writable: true - }); - } - }; - return result; - } - append(str, maybeNewline) { - this._flush(); - this._append(str, this._sourcePosition, maybeNewline); - } - appendChar(char) { - this._flush(); - this._appendChar(char, 1, this._sourcePosition); - } - queue(char) { - if (char === 10) { - while (this._queueCursor !== 0) { - const char = this._queue[this._queueCursor - 1].char; - if (char !== 32 && char !== 9) { - break; - } - this._queueCursor--; - } - } - const sourcePosition = this._sourcePosition; - this._pushQueue(char, 1, sourcePosition.line, sourcePosition.column, sourcePosition.filename); - } - queueIndentation(char, repeat) { - this._pushQueue(char, repeat, undefined, undefined, undefined); - } - _flush() { - const queueCursor = this._queueCursor; - const queue = this._queue; - for (let i = 0; i < queueCursor; i++) { - const item = queue[i]; - this._appendChar(item.char, item.repeat, item); - } - this._queueCursor = 0; - } - _appendChar(char, repeat, sourcePos) { - this._last = char; - this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char); - if (char !== 10) { - this._mark(sourcePos.line, sourcePos.column, sourcePos.identifierName, sourcePos.identifierNamePos, sourcePos.filename); - this._position.column += repeat; - } else { - this._position.line++; - this._position.column = 0; - } - if (this._canMarkIdName) { - sourcePos.identifierName = undefined; - sourcePos.identifierNamePos = undefined; - } - } - _append(str, sourcePos, maybeNewline) { - const len = str.length; - const position = this._position; - this._last = str.charCodeAt(len - 1); - if (++this._appendCount > 4096) { - +this._str; - this._buf += this._str; - this._str = str; - this._appendCount = 0; - } else { - this._str += str; - } - if (!maybeNewline && !this._map) { - position.column += len; - return; - } - const { - column, - identifierName, - identifierNamePos, - filename - } = sourcePos; - let line = sourcePos.line; - if ((identifierName != null || identifierNamePos != null) && this._canMarkIdName) { - sourcePos.identifierName = undefined; - sourcePos.identifierNamePos = undefined; - } - let i = str.indexOf("\n"); - let last = 0; - if (i !== 0) { - this._mark(line, column, identifierName, identifierNamePos, filename); - } - while (i !== -1) { - position.line++; - position.column = 0; - last = i + 1; - if (last < len && line !== undefined) { - this._mark(++line, 0, null, null, filename); - } - i = str.indexOf("\n", last); - } - position.column += len - last; - } - _mark(line, column, identifierName, identifierNamePos, filename) { - var _this$_map; - (_this$_map = this._map) == null ? void 0 : _this$_map.mark(this._position, line, column, identifierName, identifierNamePos, filename); - } - removeTrailingNewline() { - const queueCursor = this._queueCursor; - if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 10) { - this._queueCursor--; - } - } - removeLastSemicolon() { - const queueCursor = this._queueCursor; - if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 59) { - this._queueCursor--; - } - } - getLastChar() { - const queueCursor = this._queueCursor; - return queueCursor !== 0 ? this._queue[queueCursor - 1].char : this._last; - } - getNewlineCount() { - const queueCursor = this._queueCursor; - let count = 0; - if (queueCursor === 0) return this._last === 10 ? 1 : 0; - for (let i = queueCursor - 1; i >= 0; i--) { - if (this._queue[i].char !== 10) { - break; - } - count++; - } - return count === queueCursor && this._last === 10 ? count + 1 : count; - } - endsWithCharAndNewline() { - const queue = this._queue; - const queueCursor = this._queueCursor; - if (queueCursor !== 0) { - const lastCp = queue[queueCursor - 1].char; - if (lastCp !== 10) return; - if (queueCursor > 1) { - return queue[queueCursor - 2].char; - } else { - return this._last; - } - } - } - hasContent() { - return this._queueCursor !== 0 || !!this._last; - } - exactSource(loc, cb) { - if (!this._map) { - cb(); - return; - } - this.source("start", loc); - const identifierName = loc.identifierName; - const sourcePos = this._sourcePosition; - if (identifierName) { - this._canMarkIdName = false; - sourcePos.identifierName = identifierName; - } - cb(); - if (identifierName) { - this._canMarkIdName = true; - sourcePos.identifierName = undefined; - sourcePos.identifierNamePos = undefined; - } - this.source("end", loc); - } - source(prop, loc) { - if (!this._map) return; - this._normalizePosition(prop, loc, 0, 0); - } - sourceWithOffset(prop, loc, lineOffset, columnOffset) { - if (!this._map) return; - this._normalizePosition(prop, loc, lineOffset, columnOffset); - } - withSource(prop, loc, cb) { - if (this._map) { - this.source(prop, loc); - } - cb(); - } - _normalizePosition(prop, loc, lineOffset, columnOffset) { - const pos = loc[prop]; - const target = this._sourcePosition; - if (pos) { - target.line = pos.line + lineOffset; - target.column = pos.column + columnOffset; - target.filename = loc.filename; - } - } - getCurrentColumn() { - const queue = this._queue; - const queueCursor = this._queueCursor; - let lastIndex = -1; - let len = 0; - for (let i = 0; i < queueCursor; i++) { - const item = queue[i]; - if (item.char === 10) { - lastIndex = len; - } - len += item.repeat; - } - return lastIndex === -1 ? this._position.column + len : len - 1 - lastIndex; - } - getCurrentLine() { - let count = 0; - const queue = this._queue; - for (let i = 0; i < this._queueCursor; i++) { - if (queue[i].char === 10) { - count++; - } - } - return this._position.line + count; - } -} -exports["default"] = Buffer; - -//# sourceMappingURL=buffer.js.map - - -/***/ }), - -/***/ 99778: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.BlockStatement = BlockStatement; -exports.Directive = Directive; -exports.DirectiveLiteral = DirectiveLiteral; -exports.File = File; -exports.InterpreterDirective = InterpreterDirective; -exports.Placeholder = Placeholder; -exports.Program = Program; -function File(node) { - if (node.program) { - this.print(node.program.interpreter, node); - } - this.print(node.program, node); -} -function Program(node) { - var _node$directives; - this.noIndentInnerCommentsHere(); - this.printInnerComments(); - const directivesLen = (_node$directives = node.directives) == null ? void 0 : _node$directives.length; - if (directivesLen) { - var _node$directives$trai; - const newline = node.body.length ? 2 : 1; - this.printSequence(node.directives, node, { - trailingCommentsLineOffset: newline - }); - if (!((_node$directives$trai = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai.length)) { - this.newline(newline); - } - } - this.printSequence(node.body, node); -} -function BlockStatement(node) { - var _node$directives2; - this.tokenChar(123); - const directivesLen = (_node$directives2 = node.directives) == null ? void 0 : _node$directives2.length; - if (directivesLen) { - var _node$directives$trai2; - const newline = node.body.length ? 2 : 1; - this.printSequence(node.directives, node, { - indent: true, - trailingCommentsLineOffset: newline - }); - if (!((_node$directives$trai2 = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai2.length)) { - this.newline(newline); - } - } - this.printSequence(node.body, node, { - indent: true - }); - this.rightBrace(node); -} -function Directive(node) { - this.print(node.value, node); - this.semicolon(); -} -const unescapedSingleQuoteRE = /(?:^|[^\\])(?:\\\\)*'/; -const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/; -function DirectiveLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.token(raw); - return; - } - const { - value - } = node; - if (!unescapedDoubleQuoteRE.test(value)) { - this.token(`"${value}"`); - } else if (!unescapedSingleQuoteRE.test(value)) { - this.token(`'${value}'`); - } else { - throw new Error("Malformed AST: it is not possible to print a directive containing" + " both unescaped single and double quotes."); - } -} -function InterpreterDirective(node) { - this.token(`#!${node.value}`); - this.newline(1, true); -} -function Placeholder(node) { - this.token("%%"); - this.print(node.name); - this.token("%%"); - if (node.expectedNode === "Statement") { - this.semicolon(); - } -} - -//# sourceMappingURL=base.js.map - - -/***/ }), - -/***/ 98155: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ClassAccessorProperty = ClassAccessorProperty; -exports.ClassBody = ClassBody; -exports.ClassExpression = exports.ClassDeclaration = ClassDeclaration; -exports.ClassMethod = ClassMethod; -exports.ClassPrivateMethod = ClassPrivateMethod; -exports.ClassPrivateProperty = ClassPrivateProperty; -exports.ClassProperty = ClassProperty; -exports.StaticBlock = StaticBlock; -exports._classMethodHead = _classMethodHead; -var _t = __nccwpck_require__(53501); -const { - isExportDefaultDeclaration, - isExportNamedDeclaration -} = _t; -function ClassDeclaration(node, parent) { - const inExport = isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent); - if (!inExport || !this._shouldPrintDecoratorsBeforeExport(parent)) { - this.printJoin(node.decorators, node); - } - if (node.declare) { - this.word("declare"); - this.space(); - } - if (node.abstract) { - this.word("abstract"); - this.space(); - } - this.word("class"); - if (node.id) { - this.space(); - this.print(node.id, node); - } - this.print(node.typeParameters, node); - if (node.superClass) { - this.space(); - this.word("extends"); - this.space(); - this.print(node.superClass, node); - this.print(node.superTypeParameters, node); - } - if (node.implements) { - this.space(); - this.word("implements"); - this.space(); - this.printList(node.implements, node); - } - this.space(); - this.print(node.body, node); -} -function ClassBody(node) { - this.tokenChar(123); - if (node.body.length === 0) { - this.tokenChar(125); - } else { - this.newline(); - this.printSequence(node.body, node, { - indent: true - }); - if (!this.endsWith(10)) this.newline(); - this.rightBrace(node); - } -} -function ClassProperty(node) { - var _node$key$loc, _node$key$loc$end; - this.printJoin(node.decorators, node); - const endLine = (_node$key$loc = node.key.loc) == null ? void 0 : (_node$key$loc$end = _node$key$loc.end) == null ? void 0 : _node$key$loc$end.line; - if (endLine) this.catchUp(endLine); - this.tsPrintClassMemberModifiers(node); - if (node.computed) { - this.tokenChar(91); - this.print(node.key, node); - this.tokenChar(93); - } else { - this._variance(node); - this.print(node.key, node); - } - if (node.optional) { - this.tokenChar(63); - } - if (node.definite) { - this.tokenChar(33); - } - this.print(node.typeAnnotation, node); - if (node.value) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.value, node); - } - this.semicolon(); -} -function ClassAccessorProperty(node) { - var _node$key$loc2, _node$key$loc2$end; - this.printJoin(node.decorators, node); - const endLine = (_node$key$loc2 = node.key.loc) == null ? void 0 : (_node$key$loc2$end = _node$key$loc2.end) == null ? void 0 : _node$key$loc2$end.line; - if (endLine) this.catchUp(endLine); - this.tsPrintClassMemberModifiers(node); - this.word("accessor", true); - this.space(); - if (node.computed) { - this.tokenChar(91); - this.print(node.key, node); - this.tokenChar(93); - } else { - this._variance(node); - this.print(node.key, node); - } - if (node.optional) { - this.tokenChar(63); - } - if (node.definite) { - this.tokenChar(33); - } - this.print(node.typeAnnotation, node); - if (node.value) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.value, node); - } - this.semicolon(); -} -function ClassPrivateProperty(node) { - this.printJoin(node.decorators, node); - if (node.static) { - this.word("static"); - this.space(); - } - this.print(node.key, node); - this.print(node.typeAnnotation, node); - if (node.value) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.value, node); - } - this.semicolon(); -} -function ClassMethod(node) { - this._classMethodHead(node); - this.space(); - this.print(node.body, node); -} -function ClassPrivateMethod(node) { - this._classMethodHead(node); - this.space(); - this.print(node.body, node); -} -function _classMethodHead(node) { - var _node$key$loc3, _node$key$loc3$end; - this.printJoin(node.decorators, node); - const endLine = (_node$key$loc3 = node.key.loc) == null ? void 0 : (_node$key$loc3$end = _node$key$loc3.end) == null ? void 0 : _node$key$loc3$end.line; - if (endLine) this.catchUp(endLine); - this.tsPrintClassMemberModifiers(node); - this._methodHead(node); -} -function StaticBlock(node) { - this.word("static"); - this.space(); - this.tokenChar(123); - if (node.body.length === 0) { - this.tokenChar(125); - } else { - this.newline(); - this.printSequence(node.body, node, { - indent: true - }); - this.rightBrace(node); - } -} - -//# sourceMappingURL=classes.js.map - - -/***/ }), - -/***/ 43095: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression; -exports.AssignmentPattern = AssignmentPattern; -exports.AwaitExpression = AwaitExpression; -exports.BindExpression = BindExpression; -exports.CallExpression = CallExpression; -exports.ConditionalExpression = ConditionalExpression; -exports.Decorator = Decorator; -exports.DoExpression = DoExpression; -exports.EmptyStatement = EmptyStatement; -exports.ExpressionStatement = ExpressionStatement; -exports.Import = Import; -exports.MemberExpression = MemberExpression; -exports.MetaProperty = MetaProperty; -exports.ModuleExpression = ModuleExpression; -exports.NewExpression = NewExpression; -exports.OptionalCallExpression = OptionalCallExpression; -exports.OptionalMemberExpression = OptionalMemberExpression; -exports.ParenthesizedExpression = ParenthesizedExpression; -exports.PrivateName = PrivateName; -exports.SequenceExpression = SequenceExpression; -exports.Super = Super; -exports.ThisExpression = ThisExpression; -exports.UnaryExpression = UnaryExpression; -exports.UpdateExpression = UpdateExpression; -exports.V8IntrinsicIdentifier = V8IntrinsicIdentifier; -exports.YieldExpression = YieldExpression; -exports._shouldPrintDecoratorsBeforeExport = _shouldPrintDecoratorsBeforeExport; -var _t = __nccwpck_require__(53501); -var n = __nccwpck_require__(52915); -const { - isCallExpression, - isLiteral, - isMemberExpression, - isNewExpression -} = _t; -function UnaryExpression(node) { - const { - operator - } = node; - if (operator === "void" || operator === "delete" || operator === "typeof" || operator === "throw") { - this.word(operator); - this.space(); - } else { - this.token(operator); - } - this.print(node.argument, node); -} -function DoExpression(node) { - if (node.async) { - this.word("async", true); - this.space(); - } - this.word("do"); - this.space(); - this.print(node.body, node); -} -function ParenthesizedExpression(node) { - this.tokenChar(40); - this.print(node.expression, node); - this.rightParens(node); -} -function UpdateExpression(node) { - if (node.prefix) { - this.token(node.operator); - this.print(node.argument, node); - } else { - this.printTerminatorless(node.argument, node, true); - this.token(node.operator); - } -} -function ConditionalExpression(node) { - this.print(node.test, node); - this.space(); - this.tokenChar(63); - this.space(); - this.print(node.consequent, node); - this.space(); - this.tokenChar(58); - this.space(); - this.print(node.alternate, node); -} -function NewExpression(node, parent) { - this.word("new"); - this.space(); - this.print(node.callee, node); - if (this.format.minified && node.arguments.length === 0 && !node.optional && !isCallExpression(parent, { - callee: node - }) && !isMemberExpression(parent) && !isNewExpression(parent)) { - return; - } - this.print(node.typeArguments, node); - this.print(node.typeParameters, node); - if (node.optional) { - this.token("?."); - } - this.tokenChar(40); - this.printList(node.arguments, node); - this.rightParens(node); -} -function SequenceExpression(node) { - this.printList(node.expressions, node); -} -function ThisExpression() { - this.word("this"); -} -function Super() { - this.word("super"); -} -function isDecoratorMemberExpression(node) { - switch (node.type) { - case "Identifier": - return true; - case "MemberExpression": - return !node.computed && node.property.type === "Identifier" && isDecoratorMemberExpression(node.object); - default: - return false; - } -} -function shouldParenthesizeDecoratorExpression(node) { - if (node.type === "ParenthesizedExpression") { - return false; - } - return !isDecoratorMemberExpression(node.type === "CallExpression" ? node.callee : node); -} -function _shouldPrintDecoratorsBeforeExport(node) { - if (typeof this.format.decoratorsBeforeExport === "boolean") { - return this.format.decoratorsBeforeExport; - } - return typeof node.start === "number" && node.start === node.declaration.start; -} -function Decorator(node) { - this.tokenChar(64); - const { - expression - } = node; - if (shouldParenthesizeDecoratorExpression(expression)) { - this.tokenChar(40); - this.print(expression, node); - this.tokenChar(41); - } else { - this.print(expression, node); - } - this.newline(); -} -function OptionalMemberExpression(node) { - let { - computed - } = node; - const { - optional, - property - } = node; - this.print(node.object, node); - if (!computed && isMemberExpression(property)) { - throw new TypeError("Got a MemberExpression for MemberExpression property"); - } - if (isLiteral(property) && typeof property.value === "number") { - computed = true; - } - if (optional) { - this.token("?."); - } - if (computed) { - this.tokenChar(91); - this.print(property, node); - this.tokenChar(93); - } else { - if (!optional) { - this.tokenChar(46); - } - this.print(property, node); - } -} -function OptionalCallExpression(node) { - this.print(node.callee, node); - this.print(node.typeParameters, node); - if (node.optional) { - this.token("?."); - } - this.print(node.typeArguments, node); - this.tokenChar(40); - this.printList(node.arguments, node); - this.rightParens(node); -} -function CallExpression(node) { - this.print(node.callee, node); - this.print(node.typeArguments, node); - this.print(node.typeParameters, node); - this.tokenChar(40); - this.printList(node.arguments, node); - this.rightParens(node); -} -function Import() { - this.word("import"); -} -function AwaitExpression(node) { - this.word("await"); - if (node.argument) { - this.space(); - this.printTerminatorless(node.argument, node, false); - } -} -function YieldExpression(node) { - this.word("yield", true); - if (node.delegate) { - this.tokenChar(42); - if (node.argument) { - this.space(); - this.print(node.argument, node); - } - } else { - if (node.argument) { - this.space(); - this.printTerminatorless(node.argument, node, false); - } - } -} -function EmptyStatement() { - this.semicolon(true); -} -function ExpressionStatement(node) { - this.print(node.expression, node); - this.semicolon(); -} -function AssignmentPattern(node) { - this.print(node.left, node); - if (node.left.optional) this.tokenChar(63); - this.print(node.left.typeAnnotation, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.right, node); -} -function AssignmentExpression(node, parent) { - const parens = this.inForStatementInitCounter && node.operator === "in" && !n.needsParens(node, parent); - if (parens) { - this.tokenChar(40); - } - this.print(node.left, node); - this.space(); - if (node.operator === "in" || node.operator === "instanceof") { - this.word(node.operator); - } else { - this.token(node.operator); - } - this.space(); - this.print(node.right, node); - if (parens) { - this.tokenChar(41); - } -} -function BindExpression(node) { - this.print(node.object, node); - this.token("::"); - this.print(node.callee, node); -} -function MemberExpression(node) { - this.print(node.object, node); - if (!node.computed && isMemberExpression(node.property)) { - throw new TypeError("Got a MemberExpression for MemberExpression property"); - } - let computed = node.computed; - if (isLiteral(node.property) && typeof node.property.value === "number") { - computed = true; - } - if (computed) { - this.tokenChar(91); - this.print(node.property, node); - this.tokenChar(93); - } else { - this.tokenChar(46); - this.print(node.property, node); - } -} -function MetaProperty(node) { - this.print(node.meta, node); - this.tokenChar(46); - this.print(node.property, node); -} -function PrivateName(node) { - this.tokenChar(35); - this.print(node.id, node); -} -function V8IntrinsicIdentifier(node) { - this.tokenChar(37); - this.word(node.name); -} -function ModuleExpression(node) { - this.word("module", true); - this.space(); - this.tokenChar(123); - this.indent(); - const { - body - } = node; - if (body.body.length || body.directives.length) { - this.newline(); - } - this.print(body, node); - this.dedent(); - this.rightBrace(node); -} - -//# sourceMappingURL=expressions.js.map - - -/***/ }), - -/***/ 57676: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.AnyTypeAnnotation = AnyTypeAnnotation; -exports.ArrayTypeAnnotation = ArrayTypeAnnotation; -exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation; -exports.BooleanTypeAnnotation = BooleanTypeAnnotation; -exports.DeclareClass = DeclareClass; -exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration; -exports.DeclareExportDeclaration = DeclareExportDeclaration; -exports.DeclareFunction = DeclareFunction; -exports.DeclareInterface = DeclareInterface; -exports.DeclareModule = DeclareModule; -exports.DeclareModuleExports = DeclareModuleExports; -exports.DeclareOpaqueType = DeclareOpaqueType; -exports.DeclareTypeAlias = DeclareTypeAlias; -exports.DeclareVariable = DeclareVariable; -exports.DeclaredPredicate = DeclaredPredicate; -exports.EmptyTypeAnnotation = EmptyTypeAnnotation; -exports.EnumBooleanBody = EnumBooleanBody; -exports.EnumBooleanMember = EnumBooleanMember; -exports.EnumDeclaration = EnumDeclaration; -exports.EnumDefaultedMember = EnumDefaultedMember; -exports.EnumNumberBody = EnumNumberBody; -exports.EnumNumberMember = EnumNumberMember; -exports.EnumStringBody = EnumStringBody; -exports.EnumStringMember = EnumStringMember; -exports.EnumSymbolBody = EnumSymbolBody; -exports.ExistsTypeAnnotation = ExistsTypeAnnotation; -exports.FunctionTypeAnnotation = FunctionTypeAnnotation; -exports.FunctionTypeParam = FunctionTypeParam; -exports.IndexedAccessType = IndexedAccessType; -exports.InferredPredicate = InferredPredicate; -exports.InterfaceDeclaration = InterfaceDeclaration; -exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends; -exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation; -exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation; -exports.MixedTypeAnnotation = MixedTypeAnnotation; -exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation; -exports.NullableTypeAnnotation = NullableTypeAnnotation; -Object.defineProperty(exports, "NumberLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _types2.NumericLiteral; - } -})); -exports.NumberTypeAnnotation = NumberTypeAnnotation; -exports.ObjectTypeAnnotation = ObjectTypeAnnotation; -exports.ObjectTypeCallProperty = ObjectTypeCallProperty; -exports.ObjectTypeIndexer = ObjectTypeIndexer; -exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot; -exports.ObjectTypeProperty = ObjectTypeProperty; -exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty; -exports.OpaqueType = OpaqueType; -exports.OptionalIndexedAccessType = OptionalIndexedAccessType; -exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier; -Object.defineProperty(exports, "StringLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _types2.StringLiteral; - } -})); -exports.StringTypeAnnotation = StringTypeAnnotation; -exports.SymbolTypeAnnotation = SymbolTypeAnnotation; -exports.ThisTypeAnnotation = ThisTypeAnnotation; -exports.TupleTypeAnnotation = TupleTypeAnnotation; -exports.TypeAlias = TypeAlias; -exports.TypeAnnotation = TypeAnnotation; -exports.TypeCastExpression = TypeCastExpression; -exports.TypeParameter = TypeParameter; -exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation; -exports.TypeofTypeAnnotation = TypeofTypeAnnotation; -exports.UnionTypeAnnotation = UnionTypeAnnotation; -exports.Variance = Variance; -exports.VoidTypeAnnotation = VoidTypeAnnotation; -exports._interfaceish = _interfaceish; -exports._variance = _variance; -var _t = __nccwpck_require__(53501); -var _modules = __nccwpck_require__(59243); -var _types2 = __nccwpck_require__(1140); -const { - isDeclareExportDeclaration, - isStatement -} = _t; -function AnyTypeAnnotation() { - this.word("any"); -} -function ArrayTypeAnnotation(node) { - this.print(node.elementType, node, true); - this.tokenChar(91); - this.tokenChar(93); -} -function BooleanTypeAnnotation() { - this.word("boolean"); -} -function BooleanLiteralTypeAnnotation(node) { - this.word(node.value ? "true" : "false"); -} -function NullLiteralTypeAnnotation() { - this.word("null"); -} -function DeclareClass(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.word("class"); - this.space(); - this._interfaceish(node); -} -function DeclareFunction(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.word("function"); - this.space(); - this.print(node.id, node); - this.print(node.id.typeAnnotation.typeAnnotation, node); - if (node.predicate) { - this.space(); - this.print(node.predicate, node); - } - this.semicolon(); -} -function InferredPredicate() { - this.tokenChar(37); - this.word("checks"); -} -function DeclaredPredicate(node) { - this.tokenChar(37); - this.word("checks"); - this.tokenChar(40); - this.print(node.value, node); - this.tokenChar(41); -} -function DeclareInterface(node) { - this.word("declare"); - this.space(); - this.InterfaceDeclaration(node); -} -function DeclareModule(node) { - this.word("declare"); - this.space(); - this.word("module"); - this.space(); - this.print(node.id, node); - this.space(); - this.print(node.body, node); -} -function DeclareModuleExports(node) { - this.word("declare"); - this.space(); - this.word("module"); - this.tokenChar(46); - this.word("exports"); - this.print(node.typeAnnotation, node); -} -function DeclareTypeAlias(node) { - this.word("declare"); - this.space(); - this.TypeAlias(node); -} -function DeclareOpaqueType(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.OpaqueType(node); -} -function DeclareVariable(node, parent) { - if (!isDeclareExportDeclaration(parent)) { - this.word("declare"); - this.space(); - } - this.word("var"); - this.space(); - this.print(node.id, node); - this.print(node.id.typeAnnotation, node); - this.semicolon(); -} -function DeclareExportDeclaration(node) { - this.word("declare"); - this.space(); - this.word("export"); - this.space(); - if (node.default) { - this.word("default"); - this.space(); - } - FlowExportDeclaration.call(this, node); -} -function DeclareExportAllDeclaration(node) { - this.word("declare"); - this.space(); - _modules.ExportAllDeclaration.call(this, node); -} -function EnumDeclaration(node) { - const { - id, - body - } = node; - this.word("enum"); - this.space(); - this.print(id, node); - this.print(body, node); -} -function enumExplicitType(context, name, hasExplicitType) { - if (hasExplicitType) { - context.space(); - context.word("of"); - context.space(); - context.word(name); - } - context.space(); -} -function enumBody(context, node) { - const { - members - } = node; - context.token("{"); - context.indent(); - context.newline(); - for (const member of members) { - context.print(member, node); - context.newline(); - } - if (node.hasUnknownMembers) { - context.token("..."); - context.newline(); - } - context.dedent(); - context.token("}"); -} -function EnumBooleanBody(node) { - const { - explicitType - } = node; - enumExplicitType(this, "boolean", explicitType); - enumBody(this, node); -} -function EnumNumberBody(node) { - const { - explicitType - } = node; - enumExplicitType(this, "number", explicitType); - enumBody(this, node); -} -function EnumStringBody(node) { - const { - explicitType - } = node; - enumExplicitType(this, "string", explicitType); - enumBody(this, node); -} -function EnumSymbolBody(node) { - enumExplicitType(this, "symbol", true); - enumBody(this, node); -} -function EnumDefaultedMember(node) { - const { - id - } = node; - this.print(id, node); - this.tokenChar(44); -} -function enumInitializedMember(context, node) { - const { - id, - init - } = node; - context.print(id, node); - context.space(); - context.token("="); - context.space(); - context.print(init, node); - context.token(","); -} -function EnumBooleanMember(node) { - enumInitializedMember(this, node); -} -function EnumNumberMember(node) { - enumInitializedMember(this, node); -} -function EnumStringMember(node) { - enumInitializedMember(this, node); -} -function FlowExportDeclaration(node) { - if (node.declaration) { - const declar = node.declaration; - this.print(declar, node); - if (!isStatement(declar)) this.semicolon(); - } else { - this.tokenChar(123); - if (node.specifiers.length) { - this.space(); - this.printList(node.specifiers, node); - this.space(); - } - this.tokenChar(125); - if (node.source) { - this.space(); - this.word("from"); - this.space(); - this.print(node.source, node); - } - this.semicolon(); - } -} -function ExistsTypeAnnotation() { - this.tokenChar(42); -} -function FunctionTypeAnnotation(node, parent) { - this.print(node.typeParameters, node); - this.tokenChar(40); - if (node.this) { - this.word("this"); - this.tokenChar(58); - this.space(); - this.print(node.this.typeAnnotation, node); - if (node.params.length || node.rest) { - this.tokenChar(44); - this.space(); - } - } - this.printList(node.params, node); - if (node.rest) { - if (node.params.length) { - this.tokenChar(44); - this.space(); - } - this.token("..."); - this.print(node.rest, node); - } - this.tokenChar(41); - const type = parent == null ? void 0 : parent.type; - if (type != null && (type === "ObjectTypeCallProperty" || type === "ObjectTypeInternalSlot" || type === "DeclareFunction" || type === "ObjectTypeProperty" && parent.method)) { - this.tokenChar(58); - } else { - this.space(); - this.token("=>"); - } - this.space(); - this.print(node.returnType, node); -} -function FunctionTypeParam(node) { - this.print(node.name, node); - if (node.optional) this.tokenChar(63); - if (node.name) { - this.tokenChar(58); - this.space(); - } - this.print(node.typeAnnotation, node); -} -function InterfaceExtends(node) { - this.print(node.id, node); - this.print(node.typeParameters, node, true); -} -function _interfaceish(node) { - var _node$extends; - this.print(node.id, node); - this.print(node.typeParameters, node); - if ((_node$extends = node.extends) != null && _node$extends.length) { - this.space(); - this.word("extends"); - this.space(); - this.printList(node.extends, node); - } - if (node.type === "DeclareClass") { - var _node$mixins, _node$implements; - if ((_node$mixins = node.mixins) != null && _node$mixins.length) { - this.space(); - this.word("mixins"); - this.space(); - this.printList(node.mixins, node); - } - if ((_node$implements = node.implements) != null && _node$implements.length) { - this.space(); - this.word("implements"); - this.space(); - this.printList(node.implements, node); - } - } - this.space(); - this.print(node.body, node); -} -function _variance(node) { - var _node$variance; - const kind = (_node$variance = node.variance) == null ? void 0 : _node$variance.kind; - if (kind != null) { - if (kind === "plus") { - this.tokenChar(43); - } else if (kind === "minus") { - this.tokenChar(45); - } - } -} -function InterfaceDeclaration(node) { - this.word("interface"); - this.space(); - this._interfaceish(node); -} -function andSeparator() { - this.space(); - this.tokenChar(38); - this.space(); -} -function InterfaceTypeAnnotation(node) { - var _node$extends2; - this.word("interface"); - if ((_node$extends2 = node.extends) != null && _node$extends2.length) { - this.space(); - this.word("extends"); - this.space(); - this.printList(node.extends, node); - } - this.space(); - this.print(node.body, node); -} -function IntersectionTypeAnnotation(node) { - this.printJoin(node.types, node, { - separator: andSeparator - }); -} -function MixedTypeAnnotation() { - this.word("mixed"); -} -function EmptyTypeAnnotation() { - this.word("empty"); -} -function NullableTypeAnnotation(node) { - this.tokenChar(63); - this.print(node.typeAnnotation, node); -} -function NumberTypeAnnotation() { - this.word("number"); -} -function StringTypeAnnotation() { - this.word("string"); -} -function ThisTypeAnnotation() { - this.word("this"); -} -function TupleTypeAnnotation(node) { - this.tokenChar(91); - this.printList(node.types, node); - this.tokenChar(93); -} -function TypeofTypeAnnotation(node) { - this.word("typeof"); - this.space(); - this.print(node.argument, node); -} -function TypeAlias(node) { - this.word("type"); - this.space(); - this.print(node.id, node); - this.print(node.typeParameters, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.right, node); - this.semicolon(); -} -function TypeAnnotation(node) { - this.tokenChar(58); - this.space(); - if (node.optional) this.tokenChar(63); - this.print(node.typeAnnotation, node); -} -function TypeParameterInstantiation(node) { - this.tokenChar(60); - this.printList(node.params, node, {}); - this.tokenChar(62); -} -function TypeParameter(node) { - this._variance(node); - this.word(node.name); - if (node.bound) { - this.print(node.bound, node); - } - if (node.default) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.default, node); - } -} -function OpaqueType(node) { - this.word("opaque"); - this.space(); - this.word("type"); - this.space(); - this.print(node.id, node); - this.print(node.typeParameters, node); - if (node.supertype) { - this.tokenChar(58); - this.space(); - this.print(node.supertype, node); - } - if (node.impltype) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.impltype, node); - } - this.semicolon(); -} -function ObjectTypeAnnotation(node) { - if (node.exact) { - this.token("{|"); - } else { - this.tokenChar(123); - } - const props = [...node.properties, ...(node.callProperties || []), ...(node.indexers || []), ...(node.internalSlots || [])]; - if (props.length) { - this.newline(); - this.space(); - this.printJoin(props, node, { - addNewlines(leading) { - if (leading && !props[0]) return 1; - }, - indent: true, - statement: true, - iterator: () => { - if (props.length !== 1 || node.inexact) { - this.tokenChar(44); - this.space(); - } - } - }); - this.space(); - } - if (node.inexact) { - this.indent(); - this.token("..."); - if (props.length) { - this.newline(); - } - this.dedent(); - } - if (node.exact) { - this.token("|}"); - } else { - this.tokenChar(125); - } -} -function ObjectTypeInternalSlot(node) { - if (node.static) { - this.word("static"); - this.space(); - } - this.tokenChar(91); - this.tokenChar(91); - this.print(node.id, node); - this.tokenChar(93); - this.tokenChar(93); - if (node.optional) this.tokenChar(63); - if (!node.method) { - this.tokenChar(58); - this.space(); - } - this.print(node.value, node); -} -function ObjectTypeCallProperty(node) { - if (node.static) { - this.word("static"); - this.space(); - } - this.print(node.value, node); -} -function ObjectTypeIndexer(node) { - if (node.static) { - this.word("static"); - this.space(); - } - this._variance(node); - this.tokenChar(91); - if (node.id) { - this.print(node.id, node); - this.tokenChar(58); - this.space(); - } - this.print(node.key, node); - this.tokenChar(93); - this.tokenChar(58); - this.space(); - this.print(node.value, node); -} -function ObjectTypeProperty(node) { - if (node.proto) { - this.word("proto"); - this.space(); - } - if (node.static) { - this.word("static"); - this.space(); - } - if (node.kind === "get" || node.kind === "set") { - this.word(node.kind); - this.space(); - } - this._variance(node); - this.print(node.key, node); - if (node.optional) this.tokenChar(63); - if (!node.method) { - this.tokenChar(58); - this.space(); - } - this.print(node.value, node); -} -function ObjectTypeSpreadProperty(node) { - this.token("..."); - this.print(node.argument, node); -} -function QualifiedTypeIdentifier(node) { - this.print(node.qualification, node); - this.tokenChar(46); - this.print(node.id, node); -} -function SymbolTypeAnnotation() { - this.word("symbol"); -} -function orSeparator() { - this.space(); - this.tokenChar(124); - this.space(); -} -function UnionTypeAnnotation(node) { - this.printJoin(node.types, node, { - separator: orSeparator - }); -} -function TypeCastExpression(node) { - this.tokenChar(40); - this.print(node.expression, node); - this.print(node.typeAnnotation, node); - this.tokenChar(41); -} -function Variance(node) { - if (node.kind === "plus") { - this.tokenChar(43); - } else { - this.tokenChar(45); - } -} -function VoidTypeAnnotation() { - this.word("void"); -} -function IndexedAccessType(node) { - this.print(node.objectType, node, true); - this.tokenChar(91); - this.print(node.indexType, node); - this.tokenChar(93); -} -function OptionalIndexedAccessType(node) { - this.print(node.objectType, node); - if (node.optional) { - this.token("?."); - } - this.tokenChar(91); - this.print(node.indexType, node); - this.tokenChar(93); -} - -//# sourceMappingURL=flow.js.map - - -/***/ }), - -/***/ 65461: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -var _templateLiterals = __nccwpck_require__(70635); -Object.keys(_templateLiterals).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _templateLiterals[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _templateLiterals[key]; - } - }); -}); -var _expressions = __nccwpck_require__(43095); -Object.keys(_expressions).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _expressions[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _expressions[key]; - } - }); -}); -var _statements = __nccwpck_require__(41602); -Object.keys(_statements).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _statements[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _statements[key]; - } - }); -}); -var _classes = __nccwpck_require__(98155); -Object.keys(_classes).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _classes[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _classes[key]; - } - }); -}); -var _methods = __nccwpck_require__(3524); -Object.keys(_methods).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _methods[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _methods[key]; - } - }); -}); -var _modules = __nccwpck_require__(59243); -Object.keys(_modules).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _modules[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _modules[key]; - } - }); -}); -var _types = __nccwpck_require__(1140); -Object.keys(_types).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _types[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _types[key]; - } - }); -}); -var _flow = __nccwpck_require__(57676); -Object.keys(_flow).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _flow[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _flow[key]; - } - }); -}); -var _base = __nccwpck_require__(99778); -Object.keys(_base).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _base[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _base[key]; - } - }); -}); -var _jsx = __nccwpck_require__(74809); -Object.keys(_jsx).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _jsx[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _jsx[key]; - } - }); -}); -var _typescript = __nccwpck_require__(74037); -Object.keys(_typescript).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _typescript[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _typescript[key]; - } - }); -}); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 74809: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.JSXAttribute = JSXAttribute; -exports.JSXClosingElement = JSXClosingElement; -exports.JSXClosingFragment = JSXClosingFragment; -exports.JSXElement = JSXElement; -exports.JSXEmptyExpression = JSXEmptyExpression; -exports.JSXExpressionContainer = JSXExpressionContainer; -exports.JSXFragment = JSXFragment; -exports.JSXIdentifier = JSXIdentifier; -exports.JSXMemberExpression = JSXMemberExpression; -exports.JSXNamespacedName = JSXNamespacedName; -exports.JSXOpeningElement = JSXOpeningElement; -exports.JSXOpeningFragment = JSXOpeningFragment; -exports.JSXSpreadAttribute = JSXSpreadAttribute; -exports.JSXSpreadChild = JSXSpreadChild; -exports.JSXText = JSXText; -function JSXAttribute(node) { - this.print(node.name, node); - if (node.value) { - this.tokenChar(61); - this.print(node.value, node); - } -} -function JSXIdentifier(node) { - this.word(node.name); -} -function JSXNamespacedName(node) { - this.print(node.namespace, node); - this.tokenChar(58); - this.print(node.name, node); -} -function JSXMemberExpression(node) { - this.print(node.object, node); - this.tokenChar(46); - this.print(node.property, node); -} -function JSXSpreadAttribute(node) { - this.tokenChar(123); - this.token("..."); - this.print(node.argument, node); - this.tokenChar(125); -} -function JSXExpressionContainer(node) { - this.tokenChar(123); - this.print(node.expression, node); - this.tokenChar(125); -} -function JSXSpreadChild(node) { - this.tokenChar(123); - this.token("..."); - this.print(node.expression, node); - this.tokenChar(125); -} -function JSXText(node) { - const raw = this.getPossibleRaw(node); - if (raw !== undefined) { - this.token(raw, true); - } else { - this.token(node.value, true); - } -} -function JSXElement(node) { - const open = node.openingElement; - this.print(open, node); - if (open.selfClosing) return; - this.indent(); - for (const child of node.children) { - this.print(child, node); - } - this.dedent(); - this.print(node.closingElement, node); -} -function spaceSeparator() { - this.space(); -} -function JSXOpeningElement(node) { - this.tokenChar(60); - this.print(node.name, node); - this.print(node.typeParameters, node); - if (node.attributes.length > 0) { - this.space(); - this.printJoin(node.attributes, node, { - separator: spaceSeparator - }); - } - if (node.selfClosing) { - this.space(); - this.token("/>"); - } else { - this.tokenChar(62); - } -} -function JSXClosingElement(node) { - this.token(""); - this.space(); - this.print(node.body, node); -} -function hasTypesOrComments(node, param) { - var _param$leadingComment, _param$trailingCommen; - return !!(node.typeParameters || node.returnType || node.predicate || param.typeAnnotation || param.optional || (_param$leadingComment = param.leadingComments) != null && _param$leadingComment.length || (_param$trailingCommen = param.trailingComments) != null && _param$trailingCommen.length); -} -function _getFuncIdName(idNode, parent) { - let id = idNode; - if (!id && parent) { - const parentType = parent.type; - if (parentType === "VariableDeclarator") { - id = parent.id; - } else if (parentType === "AssignmentExpression" || parentType === "AssignmentPattern") { - id = parent.left; - } else if (parentType === "ObjectProperty" || parentType === "ClassProperty") { - if (!parent.computed || parent.key.type === "StringLiteral") { - id = parent.key; - } - } else if (parentType === "ClassPrivateProperty" || parentType === "ClassAccessorProperty") { - id = parent.key; - } - } - if (!id) return; - let nameInfo; - if (id.type === "Identifier") { - var _id$loc, _id$loc2; - nameInfo = { - pos: (_id$loc = id.loc) == null ? void 0 : _id$loc.start, - name: ((_id$loc2 = id.loc) == null ? void 0 : _id$loc2.identifierName) || id.name - }; - } else if (id.type === "PrivateName") { - var _id$loc3; - nameInfo = { - pos: (_id$loc3 = id.loc) == null ? void 0 : _id$loc3.start, - name: "#" + id.id.name - }; - } else if (id.type === "StringLiteral") { - var _id$loc4; - nameInfo = { - pos: (_id$loc4 = id.loc) == null ? void 0 : _id$loc4.start, - name: id.value - }; - } - return nameInfo; -} - -//# sourceMappingURL=methods.js.map - - -/***/ }), - -/***/ 59243: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ExportAllDeclaration = ExportAllDeclaration; -exports.ExportDefaultDeclaration = ExportDefaultDeclaration; -exports.ExportDefaultSpecifier = ExportDefaultSpecifier; -exports.ExportNamedDeclaration = ExportNamedDeclaration; -exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier; -exports.ExportSpecifier = ExportSpecifier; -exports.ImportAttribute = ImportAttribute; -exports.ImportDeclaration = ImportDeclaration; -exports.ImportDefaultSpecifier = ImportDefaultSpecifier; -exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier; -exports.ImportSpecifier = ImportSpecifier; -exports._printAttributes = _printAttributes; -var _t = __nccwpck_require__(53501); -const { - isClassDeclaration, - isExportDefaultSpecifier, - isExportNamespaceSpecifier, - isImportDefaultSpecifier, - isImportNamespaceSpecifier, - isStatement -} = _t; -function ImportSpecifier(node) { - if (node.importKind === "type" || node.importKind === "typeof") { - this.word(node.importKind); - this.space(); - } - this.print(node.imported, node); - if (node.local && node.local.name !== node.imported.name) { - this.space(); - this.word("as"); - this.space(); - this.print(node.local, node); - } -} -function ImportDefaultSpecifier(node) { - this.print(node.local, node); -} -function ExportDefaultSpecifier(node) { - this.print(node.exported, node); -} -function ExportSpecifier(node) { - if (node.exportKind === "type") { - this.word("type"); - this.space(); - } - this.print(node.local, node); - if (node.exported && node.local.name !== node.exported.name) { - this.space(); - this.word("as"); - this.space(); - this.print(node.exported, node); - } -} -function ExportNamespaceSpecifier(node) { - this.tokenChar(42); - this.space(); - this.word("as"); - this.space(); - this.print(node.exported, node); -} -let warningShown = false; -function _printAttributes(node) { - const { - importAttributesKeyword - } = this.format; - const { - attributes, - assertions - } = node; - if (attributes && !importAttributesKeyword && !warningShown) { - warningShown = true; - console.warn(`\ -You are using import attributes, without specifying the desired output syntax. -Please specify the "importAttributesKeyword" generator option, whose value can be one of: - - "with" : \`import { a } from "b" with { type: "json" };\` - - "assert" : \`import { a } from "b" assert { type: "json" };\` - - "with-legacy" : \`import { a } from "b" with type: "json";\` -`); - } - const useAssertKeyword = importAttributesKeyword === "assert" || !importAttributesKeyword && assertions; - this.word(useAssertKeyword ? "assert" : "with"); - this.space(); - if (!useAssertKeyword && importAttributesKeyword !== "with") { - this.printList(attributes || assertions, node); - return; - } - this.tokenChar(123); - this.space(); - this.printList(attributes || assertions, node); - this.space(); - this.tokenChar(125); -} -function ExportAllDeclaration(node) { - var _node$attributes, _node$assertions; - this.word("export"); - this.space(); - if (node.exportKind === "type") { - this.word("type"); - this.space(); - } - this.tokenChar(42); - this.space(); - this.word("from"); - this.space(); - if ((_node$attributes = node.attributes) != null && _node$attributes.length || (_node$assertions = node.assertions) != null && _node$assertions.length) { - this.print(node.source, node, true); - this.space(); - this._printAttributes(node); - } else { - this.print(node.source, node); - } - this.semicolon(); -} -function maybePrintDecoratorsBeforeExport(printer, node) { - if (isClassDeclaration(node.declaration) && printer._shouldPrintDecoratorsBeforeExport(node)) { - printer.printJoin(node.declaration.decorators, node); - } -} -function ExportNamedDeclaration(node) { - maybePrintDecoratorsBeforeExport(this, node); - this.word("export"); - this.space(); - if (node.declaration) { - const declar = node.declaration; - this.print(declar, node); - if (!isStatement(declar)) this.semicolon(); - } else { - if (node.exportKind === "type") { - this.word("type"); - this.space(); - } - const specifiers = node.specifiers.slice(0); - let hasSpecial = false; - for (;;) { - const first = specifiers[0]; - if (isExportDefaultSpecifier(first) || isExportNamespaceSpecifier(first)) { - hasSpecial = true; - this.print(specifiers.shift(), node); - if (specifiers.length) { - this.tokenChar(44); - this.space(); - } - } else { - break; - } - } - if (specifiers.length || !specifiers.length && !hasSpecial) { - this.tokenChar(123); - if (specifiers.length) { - this.space(); - this.printList(specifiers, node); - this.space(); - } - this.tokenChar(125); - } - if (node.source) { - var _node$attributes2, _node$assertions2; - this.space(); - this.word("from"); - this.space(); - if ((_node$attributes2 = node.attributes) != null && _node$attributes2.length || (_node$assertions2 = node.assertions) != null && _node$assertions2.length) { - this.print(node.source, node, true); - this.space(); - this._printAttributes(node); - } else { - this.print(node.source, node); - } - } - this.semicolon(); - } -} -function ExportDefaultDeclaration(node) { - maybePrintDecoratorsBeforeExport(this, node); - this.word("export"); - this.noIndentInnerCommentsHere(); - this.space(); - this.word("default"); - this.space(); - const declar = node.declaration; - this.print(declar, node); - if (!isStatement(declar)) this.semicolon(); -} -function ImportDeclaration(node) { - var _node$attributes3, _node$assertions3; - this.word("import"); - this.space(); - const isTypeKind = node.importKind === "type" || node.importKind === "typeof"; - if (isTypeKind) { - this.noIndentInnerCommentsHere(); - this.word(node.importKind); - this.space(); - } else if (node.module) { - this.noIndentInnerCommentsHere(); - this.word("module"); - this.space(); - } - const specifiers = node.specifiers.slice(0); - const hasSpecifiers = !!specifiers.length; - while (hasSpecifiers) { - const first = specifiers[0]; - if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) { - this.print(specifiers.shift(), node); - if (specifiers.length) { - this.tokenChar(44); - this.space(); - } - } else { - break; - } - } - if (specifiers.length) { - this.tokenChar(123); - this.space(); - this.printList(specifiers, node); - this.space(); - this.tokenChar(125); - } else if (isTypeKind && !hasSpecifiers) { - this.tokenChar(123); - this.tokenChar(125); - } - if (hasSpecifiers || isTypeKind) { - this.space(); - this.word("from"); - this.space(); - } - if ((_node$attributes3 = node.attributes) != null && _node$attributes3.length || (_node$assertions3 = node.assertions) != null && _node$assertions3.length) { - this.print(node.source, node, true); - this.space(); - this._printAttributes(node); - } else { - this.print(node.source, node); - } - this.semicolon(); -} -function ImportAttribute(node) { - this.print(node.key); - this.tokenChar(58); - this.space(); - this.print(node.value); -} -function ImportNamespaceSpecifier(node) { - this.tokenChar(42); - this.space(); - this.word("as"); - this.space(); - this.print(node.local, node); -} - -//# sourceMappingURL=modules.js.map - - -/***/ }), - -/***/ 41602: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.BreakStatement = BreakStatement; -exports.CatchClause = CatchClause; -exports.ContinueStatement = ContinueStatement; -exports.DebuggerStatement = DebuggerStatement; -exports.DoWhileStatement = DoWhileStatement; -exports.ForOfStatement = exports.ForInStatement = void 0; -exports.ForStatement = ForStatement; -exports.IfStatement = IfStatement; -exports.LabeledStatement = LabeledStatement; -exports.ReturnStatement = ReturnStatement; -exports.SwitchCase = SwitchCase; -exports.SwitchStatement = SwitchStatement; -exports.ThrowStatement = ThrowStatement; -exports.TryStatement = TryStatement; -exports.VariableDeclaration = VariableDeclaration; -exports.VariableDeclarator = VariableDeclarator; -exports.WhileStatement = WhileStatement; -exports.WithStatement = WithStatement; -var _t = __nccwpck_require__(53501); -const { - isFor, - isForStatement, - isIfStatement, - isStatement -} = _t; -function WithStatement(node) { - this.word("with"); - this.space(); - this.tokenChar(40); - this.print(node.object, node); - this.tokenChar(41); - this.printBlock(node); -} -function IfStatement(node) { - this.word("if"); - this.space(); - this.tokenChar(40); - this.print(node.test, node); - this.tokenChar(41); - this.space(); - const needsBlock = node.alternate && isIfStatement(getLastStatement(node.consequent)); - if (needsBlock) { - this.tokenChar(123); - this.newline(); - this.indent(); - } - this.printAndIndentOnComments(node.consequent, node); - if (needsBlock) { - this.dedent(); - this.newline(); - this.tokenChar(125); - } - if (node.alternate) { - if (this.endsWith(125)) this.space(); - this.word("else"); - this.space(); - this.printAndIndentOnComments(node.alternate, node); - } -} -function getLastStatement(statement) { - const { - body - } = statement; - if (isStatement(body) === false) { - return statement; - } - return getLastStatement(body); -} -function ForStatement(node) { - this.word("for"); - this.space(); - this.tokenChar(40); - this.inForStatementInitCounter++; - this.print(node.init, node); - this.inForStatementInitCounter--; - this.tokenChar(59); - if (node.test) { - this.space(); - this.print(node.test, node); - } - this.tokenChar(59); - if (node.update) { - this.space(); - this.print(node.update, node); - } - this.tokenChar(41); - this.printBlock(node); -} -function WhileStatement(node) { - this.word("while"); - this.space(); - this.tokenChar(40); - this.print(node.test, node); - this.tokenChar(41); - this.printBlock(node); -} -function ForXStatement(node) { - this.word("for"); - this.space(); - const isForOf = node.type === "ForOfStatement"; - if (isForOf && node.await) { - this.word("await"); - this.space(); - } - this.noIndentInnerCommentsHere(); - this.tokenChar(40); - this.print(node.left, node); - this.space(); - this.word(isForOf ? "of" : "in"); - this.space(); - this.print(node.right, node); - this.tokenChar(41); - this.printBlock(node); -} -const ForInStatement = ForXStatement; -exports.ForInStatement = ForInStatement; -const ForOfStatement = ForXStatement; -exports.ForOfStatement = ForOfStatement; -function DoWhileStatement(node) { - this.word("do"); - this.space(); - this.print(node.body, node); - this.space(); - this.word("while"); - this.space(); - this.tokenChar(40); - this.print(node.test, node); - this.tokenChar(41); - this.semicolon(); -} -function printStatementAfterKeyword(printer, node, parent, isLabel) { - if (node) { - printer.space(); - printer.printTerminatorless(node, parent, isLabel); - } - printer.semicolon(); -} -function BreakStatement(node) { - this.word("break"); - printStatementAfterKeyword(this, node.label, node, true); -} -function ContinueStatement(node) { - this.word("continue"); - printStatementAfterKeyword(this, node.label, node, true); -} -function ReturnStatement(node) { - this.word("return"); - printStatementAfterKeyword(this, node.argument, node, false); -} -function ThrowStatement(node) { - this.word("throw"); - printStatementAfterKeyword(this, node.argument, node, false); -} -function LabeledStatement(node) { - this.print(node.label, node); - this.tokenChar(58); - this.space(); - this.print(node.body, node); -} -function TryStatement(node) { - this.word("try"); - this.space(); - this.print(node.block, node); - this.space(); - if (node.handlers) { - this.print(node.handlers[0], node); - } else { - this.print(node.handler, node); - } - if (node.finalizer) { - this.space(); - this.word("finally"); - this.space(); - this.print(node.finalizer, node); - } -} -function CatchClause(node) { - this.word("catch"); - this.space(); - if (node.param) { - this.tokenChar(40); - this.print(node.param, node); - this.print(node.param.typeAnnotation, node); - this.tokenChar(41); - this.space(); - } - this.print(node.body, node); -} -function SwitchStatement(node) { - this.word("switch"); - this.space(); - this.tokenChar(40); - this.print(node.discriminant, node); - this.tokenChar(41); - this.space(); - this.tokenChar(123); - this.printSequence(node.cases, node, { - indent: true, - addNewlines(leading, cas) { - if (!leading && node.cases[node.cases.length - 1] === cas) return -1; - } - }); - this.rightBrace(node); -} -function SwitchCase(node) { - if (node.test) { - this.word("case"); - this.space(); - this.print(node.test, node); - this.tokenChar(58); - } else { - this.word("default"); - this.tokenChar(58); - } - if (node.consequent.length) { - this.newline(); - this.printSequence(node.consequent, node, { - indent: true - }); - } -} -function DebuggerStatement() { - this.word("debugger"); - this.semicolon(); -} -function VariableDeclaration(node, parent) { - if (node.declare) { - this.word("declare"); - this.space(); - } - const { - kind - } = node; - this.word(kind, kind === "using" || kind === "await using"); - this.space(); - let hasInits = false; - if (!isFor(parent)) { - for (const declar of node.declarations) { - if (declar.init) { - hasInits = true; - } - } - } - this.printList(node.declarations, node, { - separator: hasInits ? function () { - this.tokenChar(44); - this.newline(); - } : undefined, - indent: node.declarations.length > 1 ? true : false - }); - if (isFor(parent)) { - if (isForStatement(parent)) { - if (parent.init === node) return; - } else { - if (parent.left === node) return; - } - } - this.semicolon(); -} -function VariableDeclarator(node) { - this.print(node.id, node); - if (node.definite) this.tokenChar(33); - this.print(node.id.typeAnnotation, node); - if (node.init) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.init, node); - } -} - -//# sourceMappingURL=statements.js.map - - -/***/ }), - -/***/ 70635: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.TaggedTemplateExpression = TaggedTemplateExpression; -exports.TemplateElement = TemplateElement; -exports.TemplateLiteral = TemplateLiteral; -function TaggedTemplateExpression(node) { - this.print(node.tag, node); - this.print(node.typeParameters, node); - this.print(node.quasi, node); -} -function TemplateElement(node, parent) { - const isFirst = parent.quasis[0] === node; - const isLast = parent.quasis[parent.quasis.length - 1] === node; - const value = (isFirst ? "`" : "}") + node.value.raw + (isLast ? "`" : "${"); - this.token(value, true); -} -function TemplateLiteral(node) { - const quasis = node.quasis; - for (let i = 0; i < quasis.length; i++) { - this.print(quasis[i], node); - if (i + 1 < quasis.length) { - this.print(node.expressions[i], node); - } - } -} - -//# sourceMappingURL=template-literals.js.map - - -/***/ }), - -/***/ 1140: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ArgumentPlaceholder = ArgumentPlaceholder; -exports.ArrayPattern = exports.ArrayExpression = ArrayExpression; -exports.BigIntLiteral = BigIntLiteral; -exports.BooleanLiteral = BooleanLiteral; -exports.DecimalLiteral = DecimalLiteral; -exports.Identifier = Identifier; -exports.NullLiteral = NullLiteral; -exports.NumericLiteral = NumericLiteral; -exports.ObjectPattern = exports.ObjectExpression = ObjectExpression; -exports.ObjectMethod = ObjectMethod; -exports.ObjectProperty = ObjectProperty; -exports.PipelineBareFunction = PipelineBareFunction; -exports.PipelinePrimaryTopicReference = PipelinePrimaryTopicReference; -exports.PipelineTopicExpression = PipelineTopicExpression; -exports.RecordExpression = RecordExpression; -exports.RegExpLiteral = RegExpLiteral; -exports.SpreadElement = exports.RestElement = RestElement; -exports.StringLiteral = StringLiteral; -exports.TopicReference = TopicReference; -exports.TupleExpression = TupleExpression; -var _t = __nccwpck_require__(53501); -var _jsesc = __nccwpck_require__(92095); -const { - isAssignmentPattern, - isIdentifier -} = _t; -function Identifier(node) { - var _node$loc; - this.sourceIdentifierName(((_node$loc = node.loc) == null ? void 0 : _node$loc.identifierName) || node.name); - this.word(node.name); -} -function ArgumentPlaceholder() { - this.tokenChar(63); -} -function RestElement(node) { - this.token("..."); - this.print(node.argument, node); -} -function ObjectExpression(node) { - const props = node.properties; - this.tokenChar(123); - if (props.length) { - this.space(); - this.printList(props, node, { - indent: true, - statement: true - }); - this.space(); - } - this.sourceWithOffset("end", node.loc, 0, -1); - this.tokenChar(125); -} -function ObjectMethod(node) { - this.printJoin(node.decorators, node); - this._methodHead(node); - this.space(); - this.print(node.body, node); -} -function ObjectProperty(node) { - this.printJoin(node.decorators, node); - if (node.computed) { - this.tokenChar(91); - this.print(node.key, node); - this.tokenChar(93); - } else { - if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) { - this.print(node.value, node); - return; - } - this.print(node.key, node); - if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) { - return; - } - } - this.tokenChar(58); - this.space(); - this.print(node.value, node); -} -function ArrayExpression(node) { - const elems = node.elements; - const len = elems.length; - this.tokenChar(91); - for (let i = 0; i < elems.length; i++) { - const elem = elems[i]; - if (elem) { - if (i > 0) this.space(); - this.print(elem, node); - if (i < len - 1) this.tokenChar(44); - } else { - this.tokenChar(44); - } - } - this.tokenChar(93); -} -function RecordExpression(node) { - const props = node.properties; - let startToken; - let endToken; - if (this.format.recordAndTupleSyntaxType === "bar") { - startToken = "{|"; - endToken = "|}"; - } else if (this.format.recordAndTupleSyntaxType !== "hash" && this.format.recordAndTupleSyntaxType != null) { - throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`); - } else { - startToken = "#{"; - endToken = "}"; - } - this.token(startToken); - if (props.length) { - this.space(); - this.printList(props, node, { - indent: true, - statement: true - }); - this.space(); - } - this.token(endToken); -} -function TupleExpression(node) { - const elems = node.elements; - const len = elems.length; - let startToken; - let endToken; - if (this.format.recordAndTupleSyntaxType === "bar") { - startToken = "[|"; - endToken = "|]"; - } else if (this.format.recordAndTupleSyntaxType === "hash") { - startToken = "#["; - endToken = "]"; - } else { - throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`); - } - this.token(startToken); - for (let i = 0; i < elems.length; i++) { - const elem = elems[i]; - if (elem) { - if (i > 0) this.space(); - this.print(elem, node); - if (i < len - 1) this.tokenChar(44); - } - } - this.token(endToken); -} -function RegExpLiteral(node) { - this.word(`/${node.pattern}/${node.flags}`); -} -function BooleanLiteral(node) { - this.word(node.value ? "true" : "false"); -} -function NullLiteral() { - this.word("null"); -} -function NumericLiteral(node) { - const raw = this.getPossibleRaw(node); - const opts = this.format.jsescOption; - const value = node.value + ""; - if (opts.numbers) { - this.number(_jsesc(node.value, opts)); - } else if (raw == null) { - this.number(value); - } else if (this.format.minified) { - this.number(raw.length < value.length ? raw : value); - } else { - this.number(raw); - } -} -function StringLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.token(raw); - return; - } - const val = _jsesc(node.value, this.format.jsescOption); - this.token(val); -} -function BigIntLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.word(raw); - return; - } - this.word(node.value + "n"); -} -function DecimalLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.word(raw); - return; - } - this.word(node.value + "m"); -} -const validTopicTokenSet = new Set(["^^", "@@", "^", "%", "#"]); -function TopicReference() { - const { - topicToken - } = this.format; - if (validTopicTokenSet.has(topicToken)) { - this.token(topicToken); - } else { - const givenTopicTokenJSON = JSON.stringify(topicToken); - const validTopics = Array.from(validTopicTokenSet, v => JSON.stringify(v)); - throw new Error(`The "topicToken" generator option must be one of ` + `${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`); - } -} -function PipelineTopicExpression(node) { - this.print(node.expression, node); -} -function PipelineBareFunction(node) { - this.print(node.callee, node); -} -function PipelinePrimaryTopicReference() { - this.tokenChar(35); -} - -//# sourceMappingURL=types.js.map - - -/***/ }), - -/***/ 74037: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.TSAnyKeyword = TSAnyKeyword; -exports.TSArrayType = TSArrayType; -exports.TSSatisfiesExpression = exports.TSAsExpression = TSTypeExpression; -exports.TSBigIntKeyword = TSBigIntKeyword; -exports.TSBooleanKeyword = TSBooleanKeyword; -exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration; -exports.TSConditionalType = TSConditionalType; -exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration; -exports.TSConstructorType = TSConstructorType; -exports.TSDeclareFunction = TSDeclareFunction; -exports.TSDeclareMethod = TSDeclareMethod; -exports.TSEnumDeclaration = TSEnumDeclaration; -exports.TSEnumMember = TSEnumMember; -exports.TSExportAssignment = TSExportAssignment; -exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments; -exports.TSExternalModuleReference = TSExternalModuleReference; -exports.TSFunctionType = TSFunctionType; -exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration; -exports.TSImportType = TSImportType; -exports.TSIndexSignature = TSIndexSignature; -exports.TSIndexedAccessType = TSIndexedAccessType; -exports.TSInferType = TSInferType; -exports.TSInstantiationExpression = TSInstantiationExpression; -exports.TSInterfaceBody = TSInterfaceBody; -exports.TSInterfaceDeclaration = TSInterfaceDeclaration; -exports.TSIntersectionType = TSIntersectionType; -exports.TSIntrinsicKeyword = TSIntrinsicKeyword; -exports.TSLiteralType = TSLiteralType; -exports.TSMappedType = TSMappedType; -exports.TSMethodSignature = TSMethodSignature; -exports.TSModuleBlock = TSModuleBlock; -exports.TSModuleDeclaration = TSModuleDeclaration; -exports.TSNamedTupleMember = TSNamedTupleMember; -exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration; -exports.TSNeverKeyword = TSNeverKeyword; -exports.TSNonNullExpression = TSNonNullExpression; -exports.TSNullKeyword = TSNullKeyword; -exports.TSNumberKeyword = TSNumberKeyword; -exports.TSObjectKeyword = TSObjectKeyword; -exports.TSOptionalType = TSOptionalType; -exports.TSParameterProperty = TSParameterProperty; -exports.TSParenthesizedType = TSParenthesizedType; -exports.TSPropertySignature = TSPropertySignature; -exports.TSQualifiedName = TSQualifiedName; -exports.TSRestType = TSRestType; -exports.TSStringKeyword = TSStringKeyword; -exports.TSSymbolKeyword = TSSymbolKeyword; -exports.TSThisType = TSThisType; -exports.TSTupleType = TSTupleType; -exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration; -exports.TSTypeAnnotation = TSTypeAnnotation; -exports.TSTypeAssertion = TSTypeAssertion; -exports.TSTypeLiteral = TSTypeLiteral; -exports.TSTypeOperator = TSTypeOperator; -exports.TSTypeParameter = TSTypeParameter; -exports.TSTypeParameterDeclaration = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation; -exports.TSTypePredicate = TSTypePredicate; -exports.TSTypeQuery = TSTypeQuery; -exports.TSTypeReference = TSTypeReference; -exports.TSUndefinedKeyword = TSUndefinedKeyword; -exports.TSUnionType = TSUnionType; -exports.TSUnknownKeyword = TSUnknownKeyword; -exports.TSVoidKeyword = TSVoidKeyword; -exports.tsPrintClassMemberModifiers = tsPrintClassMemberModifiers; -exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType; -exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName; -exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase; -exports.tsPrintTypeLiteralOrInterfaceBody = tsPrintTypeLiteralOrInterfaceBody; -function TSTypeAnnotation(node) { - this.tokenChar(58); - this.space(); - if (node.optional) this.tokenChar(63); - this.print(node.typeAnnotation, node); -} -function TSTypeParameterInstantiation(node, parent) { - this.tokenChar(60); - this.printList(node.params, node, {}); - if (parent.type === "ArrowFunctionExpression" && node.params.length === 1) { - this.tokenChar(44); - } - this.tokenChar(62); -} -function TSTypeParameter(node) { - if (node.in) { - this.word("in"); - this.space(); - } - if (node.out) { - this.word("out"); - this.space(); - } - this.word(node.name); - if (node.constraint) { - this.space(); - this.word("extends"); - this.space(); - this.print(node.constraint, node); - } - if (node.default) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.default, node); - } -} -function TSParameterProperty(node) { - if (node.accessibility) { - this.word(node.accessibility); - this.space(); - } - if (node.readonly) { - this.word("readonly"); - this.space(); - } - this._param(node.parameter); -} -function TSDeclareFunction(node, parent) { - if (node.declare) { - this.word("declare"); - this.space(); - } - this._functionHead(node, parent); - this.tokenChar(59); -} -function TSDeclareMethod(node) { - this._classMethodHead(node); - this.tokenChar(59); -} -function TSQualifiedName(node) { - this.print(node.left, node); - this.tokenChar(46); - this.print(node.right, node); -} -function TSCallSignatureDeclaration(node) { - this.tsPrintSignatureDeclarationBase(node); - this.tokenChar(59); -} -function TSConstructSignatureDeclaration(node) { - this.word("new"); - this.space(); - this.tsPrintSignatureDeclarationBase(node); - this.tokenChar(59); -} -function TSPropertySignature(node) { - const { - readonly, - initializer - } = node; - if (readonly) { - this.word("readonly"); - this.space(); - } - this.tsPrintPropertyOrMethodName(node); - this.print(node.typeAnnotation, node); - if (initializer) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(initializer, node); - } - this.tokenChar(59); -} -function tsPrintPropertyOrMethodName(node) { - if (node.computed) { - this.tokenChar(91); - } - this.print(node.key, node); - if (node.computed) { - this.tokenChar(93); - } - if (node.optional) { - this.tokenChar(63); - } -} -function TSMethodSignature(node) { - const { - kind - } = node; - if (kind === "set" || kind === "get") { - this.word(kind); - this.space(); - } - this.tsPrintPropertyOrMethodName(node); - this.tsPrintSignatureDeclarationBase(node); - this.tokenChar(59); -} -function TSIndexSignature(node) { - const { - readonly, - static: isStatic - } = node; - if (isStatic) { - this.word("static"); - this.space(); - } - if (readonly) { - this.word("readonly"); - this.space(); - } - this.tokenChar(91); - this._parameters(node.parameters, node); - this.tokenChar(93); - this.print(node.typeAnnotation, node); - this.tokenChar(59); -} -function TSAnyKeyword() { - this.word("any"); -} -function TSBigIntKeyword() { - this.word("bigint"); -} -function TSUnknownKeyword() { - this.word("unknown"); -} -function TSNumberKeyword() { - this.word("number"); -} -function TSObjectKeyword() { - this.word("object"); -} -function TSBooleanKeyword() { - this.word("boolean"); -} -function TSStringKeyword() { - this.word("string"); -} -function TSSymbolKeyword() { - this.word("symbol"); -} -function TSVoidKeyword() { - this.word("void"); -} -function TSUndefinedKeyword() { - this.word("undefined"); -} -function TSNullKeyword() { - this.word("null"); -} -function TSNeverKeyword() { - this.word("never"); -} -function TSIntrinsicKeyword() { - this.word("intrinsic"); -} -function TSThisType() { - this.word("this"); -} -function TSFunctionType(node) { - this.tsPrintFunctionOrConstructorType(node); -} -function TSConstructorType(node) { - if (node.abstract) { - this.word("abstract"); - this.space(); - } - this.word("new"); - this.space(); - this.tsPrintFunctionOrConstructorType(node); -} -function tsPrintFunctionOrConstructorType(node) { - const { - typeParameters - } = node; - const parameters = node.parameters; - this.print(typeParameters, node); - this.tokenChar(40); - this._parameters(parameters, node); - this.tokenChar(41); - this.space(); - this.token("=>"); - this.space(); - const returnType = node.typeAnnotation; - this.print(returnType.typeAnnotation, node); -} -function TSTypeReference(node) { - this.print(node.typeName, node, true); - this.print(node.typeParameters, node, true); -} -function TSTypePredicate(node) { - if (node.asserts) { - this.word("asserts"); - this.space(); - } - this.print(node.parameterName); - if (node.typeAnnotation) { - this.space(); - this.word("is"); - this.space(); - this.print(node.typeAnnotation.typeAnnotation); - } -} -function TSTypeQuery(node) { - this.word("typeof"); - this.space(); - this.print(node.exprName); - if (node.typeParameters) { - this.print(node.typeParameters, node); - } -} -function TSTypeLiteral(node) { - this.tsPrintTypeLiteralOrInterfaceBody(node.members, node); -} -function tsPrintTypeLiteralOrInterfaceBody(members, node) { - tsPrintBraced(this, members, node); -} -function tsPrintBraced(printer, members, node) { - printer.token("{"); - if (members.length) { - printer.indent(); - printer.newline(); - for (const member of members) { - printer.print(member, node); - printer.newline(); - } - printer.dedent(); - } - printer.rightBrace(node); -} -function TSArrayType(node) { - this.print(node.elementType, node, true); - this.token("[]"); -} -function TSTupleType(node) { - this.tokenChar(91); - this.printList(node.elementTypes, node); - this.tokenChar(93); -} -function TSOptionalType(node) { - this.print(node.typeAnnotation, node); - this.tokenChar(63); -} -function TSRestType(node) { - this.token("..."); - this.print(node.typeAnnotation, node); -} -function TSNamedTupleMember(node) { - this.print(node.label, node); - if (node.optional) this.tokenChar(63); - this.tokenChar(58); - this.space(); - this.print(node.elementType, node); -} -function TSUnionType(node) { - tsPrintUnionOrIntersectionType(this, node, "|"); -} -function TSIntersectionType(node) { - tsPrintUnionOrIntersectionType(this, node, "&"); -} -function tsPrintUnionOrIntersectionType(printer, node, sep) { - printer.printJoin(node.types, node, { - separator() { - this.space(); - this.token(sep); - this.space(); - } - }); -} -function TSConditionalType(node) { - this.print(node.checkType); - this.space(); - this.word("extends"); - this.space(); - this.print(node.extendsType); - this.space(); - this.tokenChar(63); - this.space(); - this.print(node.trueType); - this.space(); - this.tokenChar(58); - this.space(); - this.print(node.falseType); -} -function TSInferType(node) { - this.token("infer"); - this.space(); - this.print(node.typeParameter); -} -function TSParenthesizedType(node) { - this.tokenChar(40); - this.print(node.typeAnnotation, node); - this.tokenChar(41); -} -function TSTypeOperator(node) { - this.word(node.operator); - this.space(); - this.print(node.typeAnnotation, node); -} -function TSIndexedAccessType(node) { - this.print(node.objectType, node, true); - this.tokenChar(91); - this.print(node.indexType, node); - this.tokenChar(93); -} -function TSMappedType(node) { - const { - nameType, - optional, - readonly, - typeParameter - } = node; - this.tokenChar(123); - this.space(); - if (readonly) { - tokenIfPlusMinus(this, readonly); - this.word("readonly"); - this.space(); - } - this.tokenChar(91); - this.word(typeParameter.name); - this.space(); - this.word("in"); - this.space(); - this.print(typeParameter.constraint, typeParameter); - if (nameType) { - this.space(); - this.word("as"); - this.space(); - this.print(nameType, node); - } - this.tokenChar(93); - if (optional) { - tokenIfPlusMinus(this, optional); - this.tokenChar(63); - } - this.tokenChar(58); - this.space(); - this.print(node.typeAnnotation, node); - this.space(); - this.tokenChar(125); -} -function tokenIfPlusMinus(self, tok) { - if (tok !== true) { - self.token(tok); - } -} -function TSLiteralType(node) { - this.print(node.literal, node); -} -function TSExpressionWithTypeArguments(node) { - this.print(node.expression, node); - this.print(node.typeParameters, node); -} -function TSInterfaceDeclaration(node) { - const { - declare, - id, - typeParameters, - extends: extendz, - body - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - this.word("interface"); - this.space(); - this.print(id, node); - this.print(typeParameters, node); - if (extendz != null && extendz.length) { - this.space(); - this.word("extends"); - this.space(); - this.printList(extendz, node); - } - this.space(); - this.print(body, node); -} -function TSInterfaceBody(node) { - this.tsPrintTypeLiteralOrInterfaceBody(node.body, node); -} -function TSTypeAliasDeclaration(node) { - const { - declare, - id, - typeParameters, - typeAnnotation - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - this.word("type"); - this.space(); - this.print(id, node); - this.print(typeParameters, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(typeAnnotation, node); - this.tokenChar(59); -} -function TSTypeExpression(node) { - var _expression$trailingC; - const { - type, - expression, - typeAnnotation - } = node; - const forceParens = !!((_expression$trailingC = expression.trailingComments) != null && _expression$trailingC.length); - this.print(expression, node, true, undefined, forceParens); - this.space(); - this.word(type === "TSAsExpression" ? "as" : "satisfies"); - this.space(); - this.print(typeAnnotation, node); -} -function TSTypeAssertion(node) { - const { - typeAnnotation, - expression - } = node; - this.tokenChar(60); - this.print(typeAnnotation, node); - this.tokenChar(62); - this.space(); - this.print(expression, node); -} -function TSInstantiationExpression(node) { - this.print(node.expression, node); - this.print(node.typeParameters, node); -} -function TSEnumDeclaration(node) { - const { - declare, - const: isConst, - id, - members - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - if (isConst) { - this.word("const"); - this.space(); - } - this.word("enum"); - this.space(); - this.print(id, node); - this.space(); - tsPrintBraced(this, members, node); -} -function TSEnumMember(node) { - const { - id, - initializer - } = node; - this.print(id, node); - if (initializer) { - this.space(); - this.tokenChar(61); - this.space(); - this.print(initializer, node); - } - this.tokenChar(44); -} -function TSModuleDeclaration(node) { - const { - declare, - id - } = node; - if (declare) { - this.word("declare"); - this.space(); - } - if (!node.global) { - this.word(id.type === "Identifier" ? "namespace" : "module"); - this.space(); - } - this.print(id, node); - if (!node.body) { - this.tokenChar(59); - return; - } - let body = node.body; - while (body.type === "TSModuleDeclaration") { - this.tokenChar(46); - this.print(body.id, body); - body = body.body; - } - this.space(); - this.print(body, node); -} -function TSModuleBlock(node) { - tsPrintBraced(this, node.body, node); -} -function TSImportType(node) { - const { - argument, - qualifier, - typeParameters - } = node; - this.word("import"); - this.tokenChar(40); - this.print(argument, node); - this.tokenChar(41); - if (qualifier) { - this.tokenChar(46); - this.print(qualifier, node); - } - if (typeParameters) { - this.print(typeParameters, node); - } -} -function TSImportEqualsDeclaration(node) { - const { - isExport, - id, - moduleReference - } = node; - if (isExport) { - this.word("export"); - this.space(); - } - this.word("import"); - this.space(); - this.print(id, node); - this.space(); - this.tokenChar(61); - this.space(); - this.print(moduleReference, node); - this.tokenChar(59); -} -function TSExternalModuleReference(node) { - this.token("require("); - this.print(node.expression, node); - this.tokenChar(41); -} -function TSNonNullExpression(node) { - this.print(node.expression, node); - this.tokenChar(33); -} -function TSExportAssignment(node) { - this.word("export"); - this.space(); - this.tokenChar(61); - this.space(); - this.print(node.expression, node); - this.tokenChar(59); -} -function TSNamespaceExportDeclaration(node) { - this.word("export"); - this.space(); - this.word("as"); - this.space(); - this.word("namespace"); - this.space(); - this.print(node.id, node); -} -function tsPrintSignatureDeclarationBase(node) { - const { - typeParameters - } = node; - const parameters = node.parameters; - this.print(typeParameters, node); - this.tokenChar(40); - this._parameters(parameters, node); - this.tokenChar(41); - const returnType = node.typeAnnotation; - this.print(returnType, node); -} -function tsPrintClassMemberModifiers(node) { - const isField = node.type === "ClassAccessorProperty" || node.type === "ClassProperty"; - if (isField && node.declare) { - this.word("declare"); - this.space(); - } - if (node.accessibility) { - this.word(node.accessibility); - this.space(); - } - if (node.static) { - this.word("static"); - this.space(); - } - if (node.override) { - this.word("override"); - this.space(); - } - if (node.abstract) { - this.word("abstract"); - this.space(); - } - if (isField && node.readonly) { - this.word("readonly"); - this.space(); - } -} - -//# sourceMappingURL=typescript.js.map - - -/***/ }), - -/***/ 35761: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.CodeGenerator = void 0; -exports["default"] = generate; -var _sourceMap = __nccwpck_require__(59479); -var _printer = __nccwpck_require__(64845); -class Generator extends _printer.default { - constructor(ast, opts = {}, code) { - const format = normalizeOptions(code, opts); - const map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null; - super(format, map); - this.ast = void 0; - this.ast = ast; - } - generate() { - return super.generate(this.ast); - } -} -function normalizeOptions(code, opts) { - const format = { - auxiliaryCommentBefore: opts.auxiliaryCommentBefore, - auxiliaryCommentAfter: opts.auxiliaryCommentAfter, - shouldPrintComment: opts.shouldPrintComment, - retainLines: opts.retainLines, - retainFunctionParens: opts.retainFunctionParens, - comments: opts.comments == null || opts.comments, - compact: opts.compact, - minified: opts.minified, - concise: opts.concise, - indent: { - adjustMultilineComment: true, - style: " " - }, - jsescOption: Object.assign({ - quotes: "double", - wrap: true, - minimal: false - }, opts.jsescOption), - recordAndTupleSyntaxType: opts.recordAndTupleSyntaxType, - topicToken: opts.topicToken, - importAttributesKeyword: opts.importAttributesKeyword - }; - { - format.decoratorsBeforeExport = opts.decoratorsBeforeExport; - format.jsescOption.json = opts.jsonCompatibleStrings; - } - if (format.minified) { - format.compact = true; - format.shouldPrintComment = format.shouldPrintComment || (() => format.comments); - } else { - format.shouldPrintComment = format.shouldPrintComment || (value => format.comments || value.includes("@license") || value.includes("@preserve")); - } - if (format.compact === "auto") { - format.compact = typeof code === "string" && code.length > 500000; - if (format.compact) { - console.error("[BABEL] Note: The code generator has deoptimised the styling of " + `${opts.filename} as it exceeds the max of ${"500KB"}.`); - } - } - if (format.compact) { - format.indent.adjustMultilineComment = false; - } - const { - auxiliaryCommentBefore, - auxiliaryCommentAfter, - shouldPrintComment - } = format; - if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) { - format.auxiliaryCommentBefore = undefined; - } - if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) { - format.auxiliaryCommentAfter = undefined; - } - return format; -} -class CodeGenerator { - constructor(ast, opts, code) { - this._generator = void 0; - this._generator = new Generator(ast, opts, code); - } - generate() { - return this._generator.generate(); - } -} -exports.CodeGenerator = CodeGenerator; -function generate(ast, opts, code) { - const gen = new Generator(ast, opts, code); - return gen.generate(); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 52915: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.needsParens = needsParens; -exports.needsWhitespace = needsWhitespace; -exports.needsWhitespaceAfter = needsWhitespaceAfter; -exports.needsWhitespaceBefore = needsWhitespaceBefore; -var whitespace = __nccwpck_require__(63582); -var parens = __nccwpck_require__(45690); -var _t = __nccwpck_require__(53501); -const { - FLIPPED_ALIAS_KEYS, - isCallExpression, - isExpressionStatement, - isMemberExpression, - isNewExpression -} = _t; -function expandAliases(obj) { - const newObj = {}; - function add(type, func) { - const fn = newObj[type]; - newObj[type] = fn ? function (node, parent, stack) { - const result = fn(node, parent, stack); - return result == null ? func(node, parent, stack) : result; - } : func; - } - for (const type of Object.keys(obj)) { - const aliases = FLIPPED_ALIAS_KEYS[type]; - if (aliases) { - for (const alias of aliases) { - add(alias, obj[type]); - } - } else { - add(type, obj[type]); - } - } - return newObj; -} -const expandedParens = expandAliases(parens); -const expandedWhitespaceNodes = expandAliases(whitespace.nodes); -function find(obj, node, parent, printStack) { - const fn = obj[node.type]; - return fn ? fn(node, parent, printStack) : null; -} -function isOrHasCallExpression(node) { - if (isCallExpression(node)) { - return true; - } - return isMemberExpression(node) && isOrHasCallExpression(node.object); -} -function needsWhitespace(node, parent, type) { - if (!node) return false; - if (isExpressionStatement(node)) { - node = node.expression; - } - const flag = find(expandedWhitespaceNodes, node, parent); - if (typeof flag === "number") { - return (flag & type) !== 0; - } - return false; -} -function needsWhitespaceBefore(node, parent) { - return needsWhitespace(node, parent, 1); -} -function needsWhitespaceAfter(node, parent) { - return needsWhitespace(node, parent, 2); -} -function needsParens(node, parent, printStack) { - if (!parent) return false; - if (isNewExpression(parent) && parent.callee === node) { - if (isOrHasCallExpression(node)) return true; - } - return find(expandedParens, node, parent, printStack); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 45690: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ArrowFunctionExpression = ArrowFunctionExpression; -exports.AssignmentExpression = AssignmentExpression; -exports.Binary = Binary; -exports.BinaryExpression = BinaryExpression; -exports.ClassExpression = ClassExpression; -exports.ConditionalExpression = ConditionalExpression; -exports.DoExpression = DoExpression; -exports.FunctionExpression = FunctionExpression; -exports.FunctionTypeAnnotation = FunctionTypeAnnotation; -exports.Identifier = Identifier; -exports.LogicalExpression = LogicalExpression; -exports.NullableTypeAnnotation = NullableTypeAnnotation; -exports.ObjectExpression = ObjectExpression; -exports.OptionalIndexedAccessType = OptionalIndexedAccessType; -exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression; -exports.SequenceExpression = SequenceExpression; -exports.TSTypeAssertion = exports.TSSatisfiesExpression = exports.TSAsExpression = TSAsExpression; -exports.TSInferType = TSInferType; -exports.TSInstantiationExpression = TSInstantiationExpression; -exports.TSIntersectionType = exports.TSUnionType = TSUnionType; -exports.UnaryLike = UnaryLike; -exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation; -exports.UpdateExpression = UpdateExpression; -exports.AwaitExpression = exports.YieldExpression = YieldExpression; -var _t = __nccwpck_require__(53501); -const { - isArrayTypeAnnotation, - isArrowFunctionExpression, - isAssignmentExpression, - isAwaitExpression, - isBinary, - isBinaryExpression, - isUpdateExpression, - isCallExpression, - isClass, - isClassExpression, - isConditional, - isConditionalExpression, - isExportDeclaration, - isExportDefaultDeclaration, - isExpressionStatement, - isFor, - isForInStatement, - isForOfStatement, - isForStatement, - isFunctionExpression, - isIfStatement, - isIndexedAccessType, - isIntersectionTypeAnnotation, - isLogicalExpression, - isMemberExpression, - isNewExpression, - isNullableTypeAnnotation, - isObjectPattern, - isOptionalCallExpression, - isOptionalMemberExpression, - isReturnStatement, - isSequenceExpression, - isSwitchStatement, - isTSArrayType, - isTSAsExpression, - isTSInstantiationExpression, - isTSIntersectionType, - isTSNonNullExpression, - isTSOptionalType, - isTSRestType, - isTSTypeAssertion, - isTSUnionType, - isTaggedTemplateExpression, - isThrowStatement, - isTypeAnnotation, - isUnaryLike, - isUnionTypeAnnotation, - isVariableDeclarator, - isWhileStatement, - isYieldExpression, - isTSSatisfiesExpression -} = _t; -const PRECEDENCE = { - "||": 0, - "??": 0, - "|>": 0, - "&&": 1, - "|": 2, - "^": 3, - "&": 4, - "==": 5, - "===": 5, - "!=": 5, - "!==": 5, - "<": 6, - ">": 6, - "<=": 6, - ">=": 6, - in: 6, - instanceof: 6, - ">>": 7, - "<<": 7, - ">>>": 7, - "+": 8, - "-": 8, - "*": 9, - "/": 9, - "%": 9, - "**": 10 -}; -function isTSTypeExpression(node) { - return isTSAsExpression(node) || isTSSatisfiesExpression(node) || isTSTypeAssertion(node); -} -const isClassExtendsClause = (node, parent) => isClass(parent, { - superClass: node -}); -const hasPostfixPart = (node, parent) => (isMemberExpression(parent) || isOptionalMemberExpression(parent)) && parent.object === node || (isCallExpression(parent) || isOptionalCallExpression(parent) || isNewExpression(parent)) && parent.callee === node || isTaggedTemplateExpression(parent) && parent.tag === node || isTSNonNullExpression(parent); -function NullableTypeAnnotation(node, parent) { - return isArrayTypeAnnotation(parent); -} -function FunctionTypeAnnotation(node, parent, printStack) { - if (printStack.length < 3) return; - return isUnionTypeAnnotation(parent) || isIntersectionTypeAnnotation(parent) || isArrayTypeAnnotation(parent) || isTypeAnnotation(parent) && isArrowFunctionExpression(printStack[printStack.length - 3]); -} -function UpdateExpression(node, parent) { - return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent); -} -function ObjectExpression(node, parent, printStack) { - return isFirstInContext(printStack, 1 | 2); -} -function DoExpression(node, parent, printStack) { - return !node.async && isFirstInContext(printStack, 1); -} -function Binary(node, parent) { - if (node.operator === "**" && isBinaryExpression(parent, { - operator: "**" - })) { - return parent.left === node; - } - if (isClassExtendsClause(node, parent)) { - return true; - } - if (hasPostfixPart(node, parent) || isUnaryLike(parent) || isAwaitExpression(parent)) { - return true; - } - if (isBinary(parent)) { - const parentOp = parent.operator; - const parentPos = PRECEDENCE[parentOp]; - const nodeOp = node.operator; - const nodePos = PRECEDENCE[nodeOp]; - if (parentPos === nodePos && parent.right === node && !isLogicalExpression(parent) || parentPos > nodePos) { - return true; - } - } -} -function UnionTypeAnnotation(node, parent) { - return isArrayTypeAnnotation(parent) || isNullableTypeAnnotation(parent) || isIntersectionTypeAnnotation(parent) || isUnionTypeAnnotation(parent); -} -function OptionalIndexedAccessType(node, parent) { - return isIndexedAccessType(parent, { - objectType: node - }); -} -function TSAsExpression() { - return true; -} -function TSUnionType(node, parent) { - return isTSArrayType(parent) || isTSOptionalType(parent) || isTSIntersectionType(parent) || isTSUnionType(parent) || isTSRestType(parent); -} -function TSInferType(node, parent) { - return isTSArrayType(parent) || isTSOptionalType(parent); -} -function TSInstantiationExpression(node, parent) { - return (isCallExpression(parent) || isOptionalCallExpression(parent) || isNewExpression(parent) || isTSInstantiationExpression(parent)) && !!parent.typeParameters; -} -function BinaryExpression(node, parent) { - return node.operator === "in" && (isVariableDeclarator(parent) || isFor(parent)); -} -function SequenceExpression(node, parent) { - if (isForStatement(parent) || isThrowStatement(parent) || isReturnStatement(parent) || isIfStatement(parent) && parent.test === node || isWhileStatement(parent) && parent.test === node || isForInStatement(parent) && parent.right === node || isSwitchStatement(parent) && parent.discriminant === node || isExpressionStatement(parent) && parent.expression === node) { - return false; - } - return true; -} -function YieldExpression(node, parent) { - return isBinary(parent) || isUnaryLike(parent) || hasPostfixPart(node, parent) || isAwaitExpression(parent) && isYieldExpression(node) || isConditionalExpression(parent) && node === parent.test || isClassExtendsClause(node, parent); -} -function ClassExpression(node, parent, printStack) { - return isFirstInContext(printStack, 1 | 4); -} -function UnaryLike(node, parent) { - return hasPostfixPart(node, parent) || isBinaryExpression(parent, { - operator: "**", - left: node - }) || isClassExtendsClause(node, parent); -} -function FunctionExpression(node, parent, printStack) { - return isFirstInContext(printStack, 1 | 4); -} -function ArrowFunctionExpression(node, parent) { - return isExportDeclaration(parent) || ConditionalExpression(node, parent); -} -function ConditionalExpression(node, parent) { - if (isUnaryLike(parent) || isBinary(parent) || isConditionalExpression(parent, { - test: node - }) || isAwaitExpression(parent) || isTSTypeExpression(parent)) { - return true; - } - return UnaryLike(node, parent); -} -function OptionalMemberExpression(node, parent) { - return isCallExpression(parent, { - callee: node - }) || isMemberExpression(parent, { - object: node - }); -} -function AssignmentExpression(node, parent) { - if (isObjectPattern(node.left)) { - return true; - } else { - return ConditionalExpression(node, parent); - } -} -function LogicalExpression(node, parent) { - if (isTSTypeExpression(parent)) return true; - switch (node.operator) { - case "||": - if (!isLogicalExpression(parent)) return false; - return parent.operator === "??" || parent.operator === "&&"; - case "&&": - return isLogicalExpression(parent, { - operator: "??" - }); - case "??": - return isLogicalExpression(parent) && parent.operator !== "??"; - } -} -function Identifier(node, parent, printStack) { - var _node$extra; - if ((_node$extra = node.extra) != null && _node$extra.parenthesized && isAssignmentExpression(parent, { - left: node - }) && (isFunctionExpression(parent.right) || isClassExpression(parent.right)) && parent.right.id == null) { - return true; - } - if (node.name === "let") { - const isFollowedByBracket = isMemberExpression(parent, { - object: node, - computed: true - }) || isOptionalMemberExpression(parent, { - object: node, - computed: true, - optional: false - }); - return isFirstInContext(printStack, isFollowedByBracket ? 1 | 8 | 16 | 32 : 32); - } - return node.name === "async" && isForOfStatement(parent) && node === parent.left; -} -function isFirstInContext(printStack, checkParam) { - const expressionStatement = checkParam & 1; - const arrowBody = checkParam & 2; - const exportDefault = checkParam & 4; - const forHead = checkParam & 8; - const forInHead = checkParam & 16; - const forOfHead = checkParam & 32; - let i = printStack.length - 1; - if (i <= 0) return; - let node = printStack[i]; - i--; - let parent = printStack[i]; - while (i >= 0) { - if (expressionStatement && isExpressionStatement(parent, { - expression: node - }) || exportDefault && isExportDefaultDeclaration(parent, { - declaration: node - }) || arrowBody && isArrowFunctionExpression(parent, { - body: node - }) || forHead && isForStatement(parent, { - init: node - }) || forInHead && isForInStatement(parent, { - left: node - }) || forOfHead && isForOfStatement(parent, { - left: node - })) { - return true; - } - if (i > 0 && (hasPostfixPart(node, parent) && !isNewExpression(parent) || isSequenceExpression(parent) && parent.expressions[0] === node || isUpdateExpression(parent) && !parent.prefix || isConditional(parent, { - test: node - }) || isBinary(parent, { - left: node - }) || isAssignmentExpression(parent, { - left: node - }))) { - node = parent; - i--; - parent = printStack[i]; - } else { - return false; - } - } - return false; -} - -//# sourceMappingURL=parentheses.js.map - - -/***/ }), - -/***/ 63582: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.nodes = void 0; -var _t = __nccwpck_require__(53501); -const { - FLIPPED_ALIAS_KEYS, - isArrayExpression, - isAssignmentExpression, - isBinary, - isBlockStatement, - isCallExpression, - isFunction, - isIdentifier, - isLiteral, - isMemberExpression, - isObjectExpression, - isOptionalCallExpression, - isOptionalMemberExpression, - isStringLiteral -} = _t; -function crawlInternal(node, state) { - if (!node) return state; - if (isMemberExpression(node) || isOptionalMemberExpression(node)) { - crawlInternal(node.object, state); - if (node.computed) crawlInternal(node.property, state); - } else if (isBinary(node) || isAssignmentExpression(node)) { - crawlInternal(node.left, state); - crawlInternal(node.right, state); - } else if (isCallExpression(node) || isOptionalCallExpression(node)) { - state.hasCall = true; - crawlInternal(node.callee, state); - } else if (isFunction(node)) { - state.hasFunction = true; - } else if (isIdentifier(node)) { - state.hasHelper = state.hasHelper || node.callee && isHelper(node.callee); - } - return state; -} -function crawl(node) { - return crawlInternal(node, { - hasCall: false, - hasFunction: false, - hasHelper: false - }); -} -function isHelper(node) { - if (!node) return false; - if (isMemberExpression(node)) { - return isHelper(node.object) || isHelper(node.property); - } else if (isIdentifier(node)) { - return node.name === "require" || node.name.charCodeAt(0) === 95; - } else if (isCallExpression(node)) { - return isHelper(node.callee); - } else if (isBinary(node) || isAssignmentExpression(node)) { - return isIdentifier(node.left) && isHelper(node.left) || isHelper(node.right); - } else { - return false; - } -} -function isType(node) { - return isLiteral(node) || isObjectExpression(node) || isArrayExpression(node) || isIdentifier(node) || isMemberExpression(node); -} -const nodes = { - AssignmentExpression(node) { - const state = crawl(node.right); - if (state.hasCall && state.hasHelper || state.hasFunction) { - return state.hasFunction ? 1 | 2 : 2; - } - }, - SwitchCase(node, parent) { - return (!!node.consequent.length || parent.cases[0] === node ? 1 : 0) | (!node.consequent.length && parent.cases[parent.cases.length - 1] === node ? 2 : 0); - }, - LogicalExpression(node) { - if (isFunction(node.left) || isFunction(node.right)) { - return 2; - } - }, - Literal(node) { - if (isStringLiteral(node) && node.value === "use strict") { - return 2; - } - }, - CallExpression(node) { - if (isFunction(node.callee) || isHelper(node)) { - return 1 | 2; - } - }, - OptionalCallExpression(node) { - if (isFunction(node.callee)) { - return 1 | 2; - } - }, - VariableDeclaration(node) { - for (let i = 0; i < node.declarations.length; i++) { - const declar = node.declarations[i]; - let enabled = isHelper(declar.id) && !isType(declar.init); - if (!enabled && declar.init) { - const state = crawl(declar.init); - enabled = isHelper(declar.init) && state.hasCall || state.hasFunction; - } - if (enabled) { - return 1 | 2; - } - } - }, - IfStatement(node) { - if (isBlockStatement(node.consequent)) { - return 1 | 2; - } - } -}; -exports.nodes = nodes; -nodes.ObjectProperty = nodes.ObjectTypeProperty = nodes.ObjectMethod = function (node, parent) { - if (parent.properties[0] === node) { - return 1; - } -}; -nodes.ObjectTypeCallProperty = function (node, parent) { - var _parent$properties; - if (parent.callProperties[0] === node && !((_parent$properties = parent.properties) != null && _parent$properties.length)) { - return 1; - } -}; -nodes.ObjectTypeIndexer = function (node, parent) { - var _parent$properties2, _parent$callPropertie; - if (parent.indexers[0] === node && !((_parent$properties2 = parent.properties) != null && _parent$properties2.length) && !((_parent$callPropertie = parent.callProperties) != null && _parent$callPropertie.length)) { - return 1; - } -}; -nodes.ObjectTypeInternalSlot = function (node, parent) { - var _parent$properties3, _parent$callPropertie2, _parent$indexers; - if (parent.internalSlots[0] === node && !((_parent$properties3 = parent.properties) != null && _parent$properties3.length) && !((_parent$callPropertie2 = parent.callProperties) != null && _parent$callPropertie2.length) && !((_parent$indexers = parent.indexers) != null && _parent$indexers.length)) { - return 1; - } -}; -[["Function", true], ["Class", true], ["Loop", true], ["LabeledStatement", true], ["SwitchStatement", true], ["TryStatement", true]].forEach(function ([type, amounts]) { - [type].concat(FLIPPED_ALIAS_KEYS[type] || []).forEach(function (type) { - const ret = amounts ? 1 | 2 : 0; - nodes[type] = () => ret; - }); -}); - -//# sourceMappingURL=whitespace.js.map - - -/***/ }), - -/***/ 64845: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _buffer = __nccwpck_require__(98462); -var n = __nccwpck_require__(52915); -var _t = __nccwpck_require__(53501); -var generatorFunctions = __nccwpck_require__(65461); -const { - isFunction, - isStatement, - isClassBody, - isTSInterfaceBody, - isTSEnumDeclaration -} = _t; -const SCIENTIFIC_NOTATION = /e/i; -const ZERO_DECIMAL_INTEGER = /\.0+$/; -const NON_DECIMAL_LITERAL = /^0[box]/; -const PURE_ANNOTATION_RE = /^\s*[@#]__PURE__\s*$/; -const HAS_NEWLINE = /[\n\r\u2028\u2029]/; -const HAS_BlOCK_COMMENT_END = /\*\//; -const { - needsParens -} = n; -class Printer { - constructor(format, map) { - this.inForStatementInitCounter = 0; - this._printStack = []; - this._indent = 0; - this._indentChar = 0; - this._indentRepeat = 0; - this._insideAux = false; - this._parenPushNewlineState = null; - this._noLineTerminator = false; - this._printAuxAfterOnNextUserNode = false; - this._printedComments = new Set(); - this._endsWithInteger = false; - this._endsWithWord = false; - this._lastCommentLine = 0; - this._endsWithInnerRaw = false; - this._indentInnerComments = true; - this.format = format; - this._buf = new _buffer.default(map); - this._indentChar = format.indent.style.charCodeAt(0); - this._indentRepeat = format.indent.style.length; - this._inputMap = map == null ? void 0 : map._inputMap; - } - generate(ast) { - this.print(ast); - this._maybeAddAuxComment(); - return this._buf.get(); - } - indent() { - if (this.format.compact || this.format.concise) return; - this._indent++; - } - dedent() { - if (this.format.compact || this.format.concise) return; - this._indent--; - } - semicolon(force = false) { - this._maybeAddAuxComment(); - if (force) { - this._appendChar(59); - } else { - this._queue(59); - } - this._noLineTerminator = false; - } - rightBrace(node) { - if (this.format.minified) { - this._buf.removeLastSemicolon(); - } - this.sourceWithOffset("end", node.loc, 0, -1); - this.tokenChar(125); - } - rightParens(node) { - this.sourceWithOffset("end", node.loc, 0, -1); - this.tokenChar(41); - } - space(force = false) { - if (this.format.compact) return; - if (force) { - this._space(); - } else if (this._buf.hasContent()) { - const lastCp = this.getLastChar(); - if (lastCp !== 32 && lastCp !== 10) { - this._space(); - } - } - } - word(str, noLineTerminatorAfter = false) { - this._maybePrintInnerComments(); - if (this._endsWithWord || str.charCodeAt(0) === 47 && this.endsWith(47)) { - this._space(); - } - this._maybeAddAuxComment(); - this._append(str, false); - this._endsWithWord = true; - this._noLineTerminator = noLineTerminatorAfter; - } - number(str) { - this.word(str); - this._endsWithInteger = Number.isInteger(+str) && !NON_DECIMAL_LITERAL.test(str) && !SCIENTIFIC_NOTATION.test(str) && !ZERO_DECIMAL_INTEGER.test(str) && str.charCodeAt(str.length - 1) !== 46; - } - token(str, maybeNewline = false) { - this._maybePrintInnerComments(); - const lastChar = this.getLastChar(); - const strFirst = str.charCodeAt(0); - if (lastChar === 33 && (str === "--" || strFirst === 61) || strFirst === 43 && lastChar === 43 || strFirst === 45 && lastChar === 45 || strFirst === 46 && this._endsWithInteger) { - this._space(); - } - this._maybeAddAuxComment(); - this._append(str, maybeNewline); - this._noLineTerminator = false; - } - tokenChar(char) { - this._maybePrintInnerComments(); - const lastChar = this.getLastChar(); - if (char === 43 && lastChar === 43 || char === 45 && lastChar === 45 || char === 46 && this._endsWithInteger) { - this._space(); - } - this._maybeAddAuxComment(); - this._appendChar(char); - this._noLineTerminator = false; - } - newline(i = 1, force) { - if (i <= 0) return; - if (!force) { - if (this.format.retainLines || this.format.compact) return; - if (this.format.concise) { - this.space(); - return; - } - } - if (i > 2) i = 2; - i -= this._buf.getNewlineCount(); - for (let j = 0; j < i; j++) { - this._newline(); - } - return; - } - endsWith(char) { - return this.getLastChar() === char; - } - getLastChar() { - return this._buf.getLastChar(); - } - endsWithCharAndNewline() { - return this._buf.endsWithCharAndNewline(); - } - removeTrailingNewline() { - this._buf.removeTrailingNewline(); - } - exactSource(loc, cb) { - if (!loc) { - cb(); - return; - } - this._catchUp("start", loc); - this._buf.exactSource(loc, cb); - } - source(prop, loc) { - if (!loc) return; - this._catchUp(prop, loc); - this._buf.source(prop, loc); - } - sourceWithOffset(prop, loc, lineOffset, columnOffset) { - if (!loc) return; - this._catchUp(prop, loc); - this._buf.sourceWithOffset(prop, loc, lineOffset, columnOffset); - } - withSource(prop, loc, cb) { - if (!loc) { - cb(); - return; - } - this._catchUp(prop, loc); - this._buf.withSource(prop, loc, cb); - } - sourceIdentifierName(identifierName, pos) { - if (!this._buf._canMarkIdName) return; - const sourcePosition = this._buf._sourcePosition; - sourcePosition.identifierNamePos = pos; - sourcePosition.identifierName = identifierName; - } - _space() { - this._queue(32); - } - _newline() { - this._queue(10); - } - _append(str, maybeNewline) { - this._maybeAddParen(str); - this._maybeIndent(str.charCodeAt(0)); - this._buf.append(str, maybeNewline); - this._endsWithWord = false; - this._endsWithInteger = false; - } - _appendChar(char) { - this._maybeAddParenChar(char); - this._maybeIndent(char); - this._buf.appendChar(char); - this._endsWithWord = false; - this._endsWithInteger = false; - } - _queue(char) { - this._maybeAddParenChar(char); - this._maybeIndent(char); - this._buf.queue(char); - this._endsWithWord = false; - this._endsWithInteger = false; - } - _maybeIndent(firstChar) { - if (this._indent && firstChar !== 10 && this.endsWith(10)) { - this._buf.queueIndentation(this._indentChar, this._getIndent()); - } - } - _shouldIndent(firstChar) { - if (this._indent && firstChar !== 10 && this.endsWith(10)) { - return true; - } - } - _maybeAddParenChar(char) { - const parenPushNewlineState = this._parenPushNewlineState; - if (!parenPushNewlineState) return; - if (char === 32) { - return; - } - if (char !== 10) { - this._parenPushNewlineState = null; - return; - } - this.tokenChar(40); - this.indent(); - parenPushNewlineState.printed = true; - } - _maybeAddParen(str) { - const parenPushNewlineState = this._parenPushNewlineState; - if (!parenPushNewlineState) return; - const len = str.length; - let i; - for (i = 0; i < len && str.charCodeAt(i) === 32; i++) continue; - if (i === len) { - return; - } - const cha = str.charCodeAt(i); - if (cha !== 10) { - if (cha !== 47 || i + 1 === len) { - this._parenPushNewlineState = null; - return; - } - const chaPost = str.charCodeAt(i + 1); - if (chaPost === 42) { - if (PURE_ANNOTATION_RE.test(str.slice(i + 2, len - 2))) { - return; - } - } else if (chaPost !== 47) { - this._parenPushNewlineState = null; - return; - } - } - this.tokenChar(40); - this.indent(); - parenPushNewlineState.printed = true; - } - catchUp(line) { - if (!this.format.retainLines) return; - const count = line - this._buf.getCurrentLine(); - for (let i = 0; i < count; i++) { - this._newline(); - } - } - _catchUp(prop, loc) { - var _loc$prop; - if (!this.format.retainLines) return; - const line = loc == null ? void 0 : (_loc$prop = loc[prop]) == null ? void 0 : _loc$prop.line; - if (line != null) { - const count = line - this._buf.getCurrentLine(); - for (let i = 0; i < count; i++) { - this._newline(); - } - } - } - _getIndent() { - return this._indentRepeat * this._indent; - } - printTerminatorless(node, parent, isLabel) { - if (isLabel) { - this._noLineTerminator = true; - this.print(node, parent); - } else { - const terminatorState = { - printed: false - }; - this._parenPushNewlineState = terminatorState; - this.print(node, parent); - if (terminatorState.printed) { - this.dedent(); - this.newline(); - this.tokenChar(41); - } - } - } - print(node, parent, noLineTerminatorAfter, trailingCommentsLineOffset, forceParens) { - var _node$extra; - if (!node) return; - this._endsWithInnerRaw = false; - const nodeType = node.type; - const format = this.format; - const oldConcise = format.concise; - if (node._compact) { - format.concise = true; - } - const printMethod = this[nodeType]; - if (printMethod === undefined) { - throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`); - } - this._printStack.push(node); - const oldInAux = this._insideAux; - this._insideAux = node.loc == undefined; - this._maybeAddAuxComment(this._insideAux && !oldInAux); - const shouldPrintParens = forceParens || format.retainFunctionParens && nodeType === "FunctionExpression" && ((_node$extra = node.extra) == null ? void 0 : _node$extra.parenthesized) || needsParens(node, parent, this._printStack); - if (shouldPrintParens) { - this.tokenChar(40); - this._endsWithInnerRaw = false; - } - this._lastCommentLine = 0; - this._printLeadingComments(node, parent); - const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc; - this.exactSource(loc, printMethod.bind(this, node, parent)); - if (shouldPrintParens) { - this._printTrailingComments(node, parent); - this.tokenChar(41); - this._noLineTerminator = noLineTerminatorAfter; - } else if (noLineTerminatorAfter && !this._noLineTerminator) { - this._noLineTerminator = true; - this._printTrailingComments(node, parent); - } else { - this._printTrailingComments(node, parent, trailingCommentsLineOffset); - } - this._printStack.pop(); - format.concise = oldConcise; - this._insideAux = oldInAux; - this._endsWithInnerRaw = false; - } - _maybeAddAuxComment(enteredPositionlessNode) { - if (enteredPositionlessNode) this._printAuxBeforeComment(); - if (!this._insideAux) this._printAuxAfterComment(); - } - _printAuxBeforeComment() { - if (this._printAuxAfterOnNextUserNode) return; - this._printAuxAfterOnNextUserNode = true; - const comment = this.format.auxiliaryCommentBefore; - if (comment) { - this._printComment({ - type: "CommentBlock", - value: comment - }, 0); - } - } - _printAuxAfterComment() { - if (!this._printAuxAfterOnNextUserNode) return; - this._printAuxAfterOnNextUserNode = false; - const comment = this.format.auxiliaryCommentAfter; - if (comment) { - this._printComment({ - type: "CommentBlock", - value: comment - }, 0); - } - } - getPossibleRaw(node) { - const extra = node.extra; - if (extra && extra.raw != null && extra.rawValue != null && node.value === extra.rawValue) { - return extra.raw; - } - } - printJoin(nodes, parent, opts = {}) { - if (!(nodes != null && nodes.length)) return; - let { - indent - } = opts; - if (indent == null && this.format.retainLines) { - var _nodes$0$loc; - const startLine = (_nodes$0$loc = nodes[0].loc) == null ? void 0 : _nodes$0$loc.start.line; - if (startLine != null && startLine !== this._buf.getCurrentLine()) { - indent = true; - } - } - if (indent) this.indent(); - const newlineOpts = { - addNewlines: opts.addNewlines, - nextNodeStartLine: 0 - }; - const separator = opts.separator ? opts.separator.bind(this) : null; - const len = nodes.length; - for (let i = 0; i < len; i++) { - const node = nodes[i]; - if (!node) continue; - if (opts.statement) this._printNewline(i === 0, newlineOpts); - this.print(node, parent, undefined, opts.trailingCommentsLineOffset || 0); - opts.iterator == null ? void 0 : opts.iterator(node, i); - if (i < len - 1) separator == null ? void 0 : separator(); - if (opts.statement) { - if (i + 1 === len) { - this.newline(1); - } else { - var _nextNode$loc; - const nextNode = nodes[i + 1]; - newlineOpts.nextNodeStartLine = ((_nextNode$loc = nextNode.loc) == null ? void 0 : _nextNode$loc.start.line) || 0; - this._printNewline(true, newlineOpts); - } - } - } - if (indent) this.dedent(); - } - printAndIndentOnComments(node, parent) { - const indent = node.leadingComments && node.leadingComments.length > 0; - if (indent) this.indent(); - this.print(node, parent); - if (indent) this.dedent(); - } - printBlock(parent) { - const node = parent.body; - if (node.type !== "EmptyStatement") { - this.space(); - } - this.print(node, parent); - } - _printTrailingComments(node, parent, lineOffset) { - const { - innerComments, - trailingComments - } = node; - if (innerComments != null && innerComments.length) { - this._printComments(2, innerComments, node, parent, lineOffset); - } - if (trailingComments != null && trailingComments.length) { - this._printComments(2, trailingComments, node, parent, lineOffset); - } - } - _printLeadingComments(node, parent) { - const comments = node.leadingComments; - if (!(comments != null && comments.length)) return; - this._printComments(0, comments, node, parent); - } - _maybePrintInnerComments() { - if (this._endsWithInnerRaw) this.printInnerComments(); - this._endsWithInnerRaw = true; - this._indentInnerComments = true; - } - printInnerComments() { - const node = this._printStack[this._printStack.length - 1]; - const comments = node.innerComments; - if (!(comments != null && comments.length)) return; - const hasSpace = this.endsWith(32); - const indent = this._indentInnerComments; - const printedCommentsCount = this._printedComments.size; - if (indent) this.indent(); - this._printComments(1, comments, node); - if (hasSpace && printedCommentsCount !== this._printedComments.size) { - this.space(); - } - if (indent) this.dedent(); - } - noIndentInnerCommentsHere() { - this._indentInnerComments = false; - } - printSequence(nodes, parent, opts = {}) { - var _opts$indent; - opts.statement = true; - (_opts$indent = opts.indent) != null ? _opts$indent : opts.indent = false; - this.printJoin(nodes, parent, opts); - } - printList(items, parent, opts = {}) { - if (opts.separator == null) { - opts.separator = commaSeparator; - } - this.printJoin(items, parent, opts); - } - _printNewline(newLine, opts) { - const format = this.format; - if (format.retainLines || format.compact) return; - if (format.concise) { - this.space(); - return; - } - if (!newLine) { - return; - } - const startLine = opts.nextNodeStartLine; - const lastCommentLine = this._lastCommentLine; - if (startLine > 0 && lastCommentLine > 0) { - const offset = startLine - lastCommentLine; - if (offset >= 0) { - this.newline(offset || 1); - return; - } - } - if (this._buf.hasContent()) { - this.newline(1); - } - } - _shouldPrintComment(comment) { - if (comment.ignore) return 0; - if (this._printedComments.has(comment)) return 0; - if (this._noLineTerminator && (HAS_NEWLINE.test(comment.value) || HAS_BlOCK_COMMENT_END.test(comment.value))) { - return 2; - } - this._printedComments.add(comment); - if (!this.format.shouldPrintComment(comment.value)) { - return 0; - } - return 1; - } - _printComment(comment, skipNewLines) { - const noLineTerminator = this._noLineTerminator; - const isBlockComment = comment.type === "CommentBlock"; - const printNewLines = isBlockComment && skipNewLines !== 1 && !this._noLineTerminator; - if (printNewLines && this._buf.hasContent() && skipNewLines !== 2) { - this.newline(1); - } - const lastCharCode = this.getLastChar(); - if (lastCharCode !== 91 && lastCharCode !== 123) { - this.space(); - } - let val; - if (isBlockComment) { - val = `/*${comment.value}*/`; - if (this.format.indent.adjustMultilineComment) { - var _comment$loc; - const offset = (_comment$loc = comment.loc) == null ? void 0 : _comment$loc.start.column; - if (offset) { - const newlineRegex = new RegExp("\\n\\s{1," + offset + "}", "g"); - val = val.replace(newlineRegex, "\n"); - } - let indentSize = this.format.retainLines ? 0 : this._buf.getCurrentColumn(); - if (this._shouldIndent(47) || this.format.retainLines) { - indentSize += this._getIndent(); - } - val = val.replace(/\n(?!$)/g, `\n${" ".repeat(indentSize)}`); - } - } else if (!noLineTerminator) { - val = `//${comment.value}`; - } else { - val = `/*${comment.value}*/`; - } - if (this.endsWith(47)) this._space(); - this.source("start", comment.loc); - this._append(val, isBlockComment); - if (!isBlockComment && !noLineTerminator) { - this.newline(1, true); - } - if (printNewLines && skipNewLines !== 3) { - this.newline(1); - } - } - _printComments(type, comments, node, parent, lineOffset = 0) { - const nodeLoc = node.loc; - const len = comments.length; - let hasLoc = !!nodeLoc; - const nodeStartLine = hasLoc ? nodeLoc.start.line : 0; - const nodeEndLine = hasLoc ? nodeLoc.end.line : 0; - let lastLine = 0; - let leadingCommentNewline = 0; - const maybeNewline = this._noLineTerminator ? function () {} : this.newline.bind(this); - for (let i = 0; i < len; i++) { - const comment = comments[i]; - const shouldPrint = this._shouldPrintComment(comment); - if (shouldPrint === 2) { - hasLoc = false; - break; - } - if (hasLoc && comment.loc && shouldPrint === 1) { - const commentStartLine = comment.loc.start.line; - const commentEndLine = comment.loc.end.line; - if (type === 0) { - let offset = 0; - if (i === 0) { - if (this._buf.hasContent() && (comment.type === "CommentLine" || commentStartLine != commentEndLine)) { - offset = leadingCommentNewline = 1; - } - } else { - offset = commentStartLine - lastLine; - } - lastLine = commentEndLine; - maybeNewline(offset); - this._printComment(comment, 1); - if (i + 1 === len) { - maybeNewline(Math.max(nodeStartLine - lastLine, leadingCommentNewline)); - lastLine = nodeStartLine; - } - } else if (type === 1) { - const offset = commentStartLine - (i === 0 ? nodeStartLine : lastLine); - lastLine = commentEndLine; - maybeNewline(offset); - this._printComment(comment, 1); - if (i + 1 === len) { - maybeNewline(Math.min(1, nodeEndLine - lastLine)); - lastLine = nodeEndLine; - } - } else { - const offset = commentStartLine - (i === 0 ? nodeEndLine - lineOffset : lastLine); - lastLine = commentEndLine; - maybeNewline(offset); - this._printComment(comment, 1); - } - } else { - hasLoc = false; - if (shouldPrint !== 1) { - continue; - } - if (len === 1) { - const singleLine = comment.loc ? comment.loc.start.line === comment.loc.end.line : !HAS_NEWLINE.test(comment.value); - const shouldSkipNewline = singleLine && !isStatement(node) && !isClassBody(parent) && !isTSInterfaceBody(parent) && !isTSEnumDeclaration(parent); - if (type === 0) { - this._printComment(comment, shouldSkipNewline && node.type !== "ObjectExpression" || singleLine && isFunction(parent, { - body: node - }) ? 1 : 0); - } else if (shouldSkipNewline && type === 2) { - this._printComment(comment, 1); - } else { - this._printComment(comment, 0); - } - } else if (type === 1 && !(node.type === "ObjectExpression" && node.properties.length > 1) && node.type !== "ClassBody" && node.type !== "TSInterfaceBody") { - this._printComment(comment, i === 0 ? 2 : i === len - 1 ? 3 : 0); - } else { - this._printComment(comment, 0); - } - } - } - if (type === 2 && hasLoc && lastLine) { - this._lastCommentLine = lastLine; - } - } -} -Object.assign(Printer.prototype, generatorFunctions); -{ - Printer.prototype.Noop = function Noop() {}; -} -var _default = Printer; -exports["default"] = _default; -function commaSeparator() { - this.tokenChar(44); - this.space(); -} - -//# sourceMappingURL=printer.js.map - - -/***/ }), - -/***/ 59479: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _genMapping = __nccwpck_require__(95937); -var _traceMapping = __nccwpck_require__(46974); -class SourceMap { - constructor(opts, code) { - var _opts$sourceFileName; - this._map = void 0; - this._rawMappings = void 0; - this._sourceFileName = void 0; - this._lastGenLine = 0; - this._lastSourceLine = 0; - this._lastSourceColumn = 0; - this._inputMap = void 0; - const map = this._map = new _genMapping.GenMapping({ - sourceRoot: opts.sourceRoot - }); - this._sourceFileName = (_opts$sourceFileName = opts.sourceFileName) == null ? void 0 : _opts$sourceFileName.replace(/\\/g, "/"); - this._rawMappings = undefined; - if (opts.inputSourceMap) { - this._inputMap = new _traceMapping.TraceMap(opts.inputSourceMap); - const resolvedSources = this._inputMap.resolvedSources; - if (resolvedSources.length) { - for (let i = 0; i < resolvedSources.length; i++) { - var _this$_inputMap$sourc; - (0, _genMapping.setSourceContent)(map, resolvedSources[i], (_this$_inputMap$sourc = this._inputMap.sourcesContent) == null ? void 0 : _this$_inputMap$sourc[i]); - } - } - } - if (typeof code === "string" && !opts.inputSourceMap) { - (0, _genMapping.setSourceContent)(map, this._sourceFileName, code); - } else if (typeof code === "object") { - for (const sourceFileName of Object.keys(code)) { - (0, _genMapping.setSourceContent)(map, sourceFileName.replace(/\\/g, "/"), code[sourceFileName]); - } - } - } - get() { - return (0, _genMapping.toEncodedMap)(this._map); - } - getDecoded() { - return (0, _genMapping.toDecodedMap)(this._map); - } - getRawMappings() { - return this._rawMappings || (this._rawMappings = (0, _genMapping.allMappings)(this._map)); - } - mark(generated, line, column, identifierName, identifierNamePos, filename) { - var _originalMapping; - this._rawMappings = undefined; - let originalMapping; - if (line != null) { - if (this._inputMap) { - originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, { - line, - column - }); - if (!originalMapping.name && identifierNamePos) { - const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos); - if (originalIdentifierMapping.name) { - identifierName = originalIdentifierMapping.name; - } - } - } else { - originalMapping = { - source: (filename == null ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName, - line: line, - column: column - }; - } - } - (0, _genMapping.maybeAddMapping)(this._map, { - name: identifierName, - generated, - source: (_originalMapping = originalMapping) == null ? void 0 : _originalMapping.source, - original: originalMapping - }); - } -} -exports["default"] = SourceMap; - -//# sourceMappingURL=source-map.js.map - - -/***/ }), - -/***/ 40151: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = annotateAsPure; -var _t = __nccwpck_require__(53501); -const { - addComment -} = _t; -const PURE_ANNOTATION = "#__PURE__"; -const isPureAnnotated = ({ - leadingComments -}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value)); -function annotateAsPure(pathOrNode) { - const node = pathOrNode["node"] || pathOrNode; - if (isPureAnnotated(node)) { - return; - } - addComment(node, "leading", PURE_ANNOTATION); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 4488: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = explode; -var _t = __nccwpck_require__(53501); -const { - assignmentExpression, - cloneNode, - isIdentifier, - isLiteral, - isMemberExpression, - isPrivateName, - isPureish, - isSuper, - memberExpression, - toComputedKey -} = _t; -function getObjRef(node, nodes, scope) { - let ref; - if (isIdentifier(node)) { - if (scope.hasBinding(node.name)) { - return node; - } else { - ref = node; - } - } else if (isMemberExpression(node)) { - ref = node.object; - if (isSuper(ref) || isIdentifier(ref) && scope.hasBinding(ref.name)) { - return ref; - } - } else { - throw new Error(`We can't explode this node type ${node["type"]}`); - } - const temp = scope.generateUidIdentifierBasedOnNode(ref); - scope.push({ - id: temp - }); - nodes.push(assignmentExpression("=", cloneNode(temp), cloneNode(ref))); - return temp; -} -function getPropRef(node, nodes, scope) { - const prop = node.property; - if (isPrivateName(prop)) { - throw new Error("We can't generate property ref for private name, please install `@babel/plugin-transform-class-properties`"); - } - const key = toComputedKey(node, prop); - if (isLiteral(key) && isPureish(key)) return key; - const temp = scope.generateUidIdentifierBasedOnNode(prop); - scope.push({ - id: temp - }); - nodes.push(assignmentExpression("=", cloneNode(temp), cloneNode(prop))); - return temp; -} -function explode(node, nodes, scope) { - const obj = getObjRef(node, nodes, scope); - let ref, uid; - if (isIdentifier(node)) { - ref = cloneNode(node); - uid = obj; - } else { - const prop = getPropRef(node, nodes, scope); - const computed = node.computed || isLiteral(prop); - uid = memberExpression(cloneNode(obj), cloneNode(prop), computed); - ref = memberExpression(cloneNode(obj), cloneNode(prop), computed); - } - return { - uid: uid, - ref: ref - }; -} - -//# sourceMappingURL=explode-assignable-expression.js.map - - -/***/ }), - -/***/ 57533: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _t = __nccwpck_require__(53501); -var _explodeAssignableExpression = __nccwpck_require__(4488); -const { - assignmentExpression, - sequenceExpression -} = _t; -function _default(opts) { - const { - build, - operator - } = opts; - const visitor = { - AssignmentExpression(path) { - const { - node, - scope - } = path; - if (node.operator !== operator + "=") return; - const nodes = []; - const exploded = (0, _explodeAssignableExpression.default)(node.left, nodes, scope); - nodes.push(assignmentExpression("=", exploded.ref, build(exploded.uid, node.right))); - path.replaceWith(sequenceExpression(nodes)); - }, - BinaryExpression(path) { - const { - node - } = path; - if (node.operator === operator) { - path.replaceWith(build(node.left, node.right)); - } - } - }; - return visitor; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 17630: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getInclusionReasons = getInclusionReasons; -var _semver = __nccwpck_require__(8999); -var _pretty = __nccwpck_require__(3391); -var _utils = __nccwpck_require__(79596); -function getInclusionReasons(item, targetVersions, list) { - const minVersions = list[item] || {}; - return Object.keys(targetVersions).reduce((result, env) => { - const minVersion = (0, _utils.getLowestImplementedVersion)(minVersions, env); - const targetVersion = targetVersions[env]; - if (!minVersion) { - result[env] = (0, _pretty.prettifyVersion)(targetVersion); - } else { - const minIsUnreleased = (0, _utils.isUnreleasedVersion)(minVersion, env); - const targetIsUnreleased = (0, _utils.isUnreleasedVersion)(targetVersion, env); - if (!targetIsUnreleased && (minIsUnreleased || _semver.lt(targetVersion.toString(), (0, _utils.semverify)(minVersion)))) { - result[env] = (0, _pretty.prettifyVersion)(targetVersion); - } - } - return result; - }, {}); -} - -//# sourceMappingURL=debug.js.map - - -/***/ }), - -/***/ 74766: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = filterItems; -exports.isRequired = isRequired; -exports.targetsSupported = targetsSupported; -var _semver = __nccwpck_require__(8999); -var _plugins = __nccwpck_require__(48590); -var _utils = __nccwpck_require__(79596); -function targetsSupported(target, support) { - const targetEnvironments = Object.keys(target); - if (targetEnvironments.length === 0) { - return false; - } - const unsupportedEnvironments = targetEnvironments.filter(environment => { - const lowestImplementedVersion = (0, _utils.getLowestImplementedVersion)(support, environment); - - if (!lowestImplementedVersion) { - return true; - } - const lowestTargetedVersion = target[environment]; - - if ((0, _utils.isUnreleasedVersion)(lowestTargetedVersion, environment)) { - return false; - } - - if ((0, _utils.isUnreleasedVersion)(lowestImplementedVersion, environment)) { - return true; - } - if (!_semver.valid(lowestTargetedVersion.toString())) { - throw new Error(`Invalid version passed for target "${environment}": "${lowestTargetedVersion}". ` + "Versions must be in semver format (major.minor.patch)"); - } - return _semver.gt((0, _utils.semverify)(lowestImplementedVersion), lowestTargetedVersion.toString()); - }); - return unsupportedEnvironments.length === 0; -} -function isRequired(name, targets, { - compatData = _plugins, - includes, - excludes -} = {}) { - if (excludes != null && excludes.has(name)) return false; - if (includes != null && includes.has(name)) return true; - return !targetsSupported(targets, compatData[name]); -} -function filterItems(list, includes, excludes, targets, defaultIncludes, defaultExcludes, pluginSyntaxMap) { - const result = new Set(); - const options = { - compatData: list, - includes, - excludes - }; - for (const item in list) { - if (isRequired(item, targets, options)) { - result.add(item); - } else if (pluginSyntaxMap) { - const shippedProposalsSyntax = pluginSyntaxMap.get(item); - if (shippedProposalsSyntax) { - result.add(shippedProposalsSyntax); - } - } - } - if (defaultIncludes) { - defaultIncludes.forEach(item => !excludes.has(item) && result.add(item)); - } - if (defaultExcludes) { - defaultExcludes.forEach(item => !includes.has(item) && result.delete(item)); - } - return result; -} - -//# sourceMappingURL=filter-items.js.map - - -/***/ }), - -/***/ 37250: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "TargetNames", ({ - enumerable: true, - get: function () { - return _options.TargetNames; - } -})); -exports["default"] = getTargets; -Object.defineProperty(exports, "filterItems", ({ - enumerable: true, - get: function () { - return _filterItems.default; - } -})); -Object.defineProperty(exports, "getInclusionReasons", ({ - enumerable: true, - get: function () { - return _debug.getInclusionReasons; - } -})); -exports.isBrowsersQueryValid = isBrowsersQueryValid; -Object.defineProperty(exports, "isRequired", ({ - enumerable: true, - get: function () { - return _filterItems.isRequired; - } -})); -Object.defineProperty(exports, "prettifyTargets", ({ - enumerable: true, - get: function () { - return _pretty.prettifyTargets; - } -})); -Object.defineProperty(exports, "unreleasedLabels", ({ - enumerable: true, - get: function () { - return _targets.unreleasedLabels; - } -})); -var _browserslist = __nccwpck_require__(82333); -var _helperValidatorOption = __nccwpck_require__(97645); -var _nativeModules = __nccwpck_require__(65729); -var _lruCache = __nccwpck_require__(34543); -var _utils = __nccwpck_require__(79596); -var _targets = __nccwpck_require__(49413); -var _options = __nccwpck_require__(45460); -var _pretty = __nccwpck_require__(3391); -var _debug = __nccwpck_require__(17630); -var _filterItems = __nccwpck_require__(74766); -const ESM_SUPPORT = _nativeModules["es6.module"]; -const v = new _helperValidatorOption.OptionValidator("@babel/helper-compilation-targets"); -function validateTargetNames(targets) { - const validTargets = Object.keys(_options.TargetNames); - for (const target of Object.keys(targets)) { - if (!(target in _options.TargetNames)) { - throw new Error(v.formatMessage(`'${target}' is not a valid target -- Did you mean '${(0, _helperValidatorOption.findSuggestion)(target, validTargets)}'?`)); - } - } - return targets; -} -function isBrowsersQueryValid(browsers) { - return typeof browsers === "string" || Array.isArray(browsers) && browsers.every(b => typeof b === "string"); -} -function validateBrowsers(browsers) { - v.invariant(browsers === undefined || isBrowsersQueryValid(browsers), `'${String(browsers)}' is not a valid browserslist query`); - return browsers; -} -function getLowestVersions(browsers) { - return browsers.reduce((all, browser) => { - const [browserName, browserVersion] = browser.split(" "); - const target = _targets.browserNameMap[browserName]; - if (!target) { - return all; - } - try { - const splitVersion = browserVersion.split("-")[0].toLowerCase(); - const isSplitUnreleased = (0, _utils.isUnreleasedVersion)(splitVersion, target); - if (!all[target]) { - all[target] = isSplitUnreleased ? splitVersion : (0, _utils.semverify)(splitVersion); - return all; - } - const version = all[target]; - const isUnreleased = (0, _utils.isUnreleasedVersion)(version, target); - if (isUnreleased && isSplitUnreleased) { - all[target] = (0, _utils.getLowestUnreleased)(version, splitVersion, target); - } else if (isUnreleased) { - all[target] = (0, _utils.semverify)(splitVersion); - } else if (!isUnreleased && !isSplitUnreleased) { - const parsedBrowserVersion = (0, _utils.semverify)(splitVersion); - all[target] = (0, _utils.semverMin)(version, parsedBrowserVersion); - } - } catch (e) {} - return all; - }, {}); -} -function outputDecimalWarning(decimalTargets) { - if (!decimalTargets.length) { - return; - } - console.warn("Warning, the following targets are using a decimal version:\n"); - decimalTargets.forEach(({ - target, - value - }) => console.warn(` ${target}: ${value}`)); - console.warn(` -We recommend using a string for minor/patch versions to avoid numbers like 6.10 -getting parsed as 6.1, which can lead to unexpected behavior. -`); -} -function semverifyTarget(target, value) { - try { - return (0, _utils.semverify)(value); - } catch (error) { - throw new Error(v.formatMessage(`'${value}' is not a valid value for 'targets.${target}'.`)); - } -} - -function nodeTargetParser(value) { - const parsed = value === true || value === "current" ? process.versions.node : semverifyTarget("node", value); - return ["node", parsed]; -} -function defaultTargetParser(target, value) { - const version = (0, _utils.isUnreleasedVersion)(value, target) ? value.toLowerCase() : semverifyTarget(target, value); - return [target, version]; -} -function generateTargets(inputTargets) { - const input = Object.assign({}, inputTargets); - delete input.esmodules; - delete input.browsers; - return input; -} -function resolveTargets(queries, env) { - const resolved = _browserslist(queries, { - mobileToDesktop: true, - env - }); - return getLowestVersions(resolved); -} -const targetsCache = new _lruCache({ - max: 64 -}); -function resolveTargetsCached(queries, env) { - const cacheKey = typeof queries === "string" ? queries : queries.join() + env; - let cached = targetsCache.get(cacheKey); - if (!cached) { - cached = resolveTargets(queries, env); - targetsCache.set(cacheKey, cached); - } - return Object.assign({}, cached); -} -function getTargets(inputTargets = {}, options = {}) { - var _browsers, _browsers2; - let { - browsers, - esmodules - } = inputTargets; - const { - configPath = "." - } = options; - validateBrowsers(browsers); - const input = generateTargets(inputTargets); - let targets = validateTargetNames(input); - const shouldParseBrowsers = !!browsers; - const hasTargets = shouldParseBrowsers || Object.keys(targets).length > 0; - const shouldSearchForConfig = !options.ignoreBrowserslistConfig && !hasTargets; - if (!browsers && shouldSearchForConfig) { - browsers = _browserslist.loadConfig({ - config: options.configFile, - path: configPath, - env: options.browserslistEnv - }); - if (browsers == null) { - { - browsers = []; - } - } - } - - if (esmodules && (esmodules !== "intersect" || !((_browsers = browsers) != null && _browsers.length))) { - browsers = Object.keys(ESM_SUPPORT).map(browser => `${browser} >= ${ESM_SUPPORT[browser]}`).join(", "); - esmodules = false; - } - - if ((_browsers2 = browsers) != null && _browsers2.length) { - const queryBrowsers = resolveTargetsCached(browsers, options.browserslistEnv); - if (esmodules === "intersect") { - for (const browser of Object.keys(queryBrowsers)) { - const version = queryBrowsers[browser]; - const esmSupportVersion = - ESM_SUPPORT[browser]; - if (esmSupportVersion) { - queryBrowsers[browser] = (0, _utils.getHighestUnreleased)(version, (0, _utils.semverify)(esmSupportVersion), browser); - } else { - delete queryBrowsers[browser]; - } - } - } - targets = Object.assign(queryBrowsers, targets); - } - - const result = {}; - const decimalWarnings = []; - for (const target of Object.keys(targets).sort()) { - const value = targets[target]; - - if (typeof value === "number" && value % 1 !== 0) { - decimalWarnings.push({ - target, - value - }); - } - const [parsedTarget, parsedValue] = target === "node" ? nodeTargetParser(value) : defaultTargetParser(target, value); - if (parsedValue) { - result[parsedTarget] = parsedValue; - } - } - outputDecimalWarning(decimalWarnings); - return result; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 45460: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.TargetNames = void 0; -const TargetNames = { - node: "node", - deno: "deno", - chrome: "chrome", - opera: "opera", - edge: "edge", - firefox: "firefox", - safari: "safari", - ie: "ie", - ios: "ios", - android: "android", - electron: "electron", - samsung: "samsung", - rhino: "rhino" -}; -exports.TargetNames = TargetNames; - -//# sourceMappingURL=options.js.map - - -/***/ }), - -/***/ 3391: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.prettifyTargets = prettifyTargets; -exports.prettifyVersion = prettifyVersion; -var _semver = __nccwpck_require__(8999); -var _targets = __nccwpck_require__(49413); -function prettifyVersion(version) { - if (typeof version !== "string") { - return version; - } - const { - major, - minor, - patch - } = _semver.parse(version); - const parts = [major]; - if (minor || patch) { - parts.push(minor); - } - if (patch) { - parts.push(patch); - } - return parts.join("."); -} -function prettifyTargets(targets) { - return Object.keys(targets).reduce((results, target) => { - let value = targets[target]; - const unreleasedLabel = - _targets.unreleasedLabels[target]; - if (typeof value === "string" && unreleasedLabel !== value) { - value = prettifyVersion(value); - } - results[target] = value; - return results; - }, {}); -} - -//# sourceMappingURL=pretty.js.map - - -/***/ }), - -/***/ 49413: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.unreleasedLabels = exports.browserNameMap = void 0; -const unreleasedLabels = { - safari: "tp" -}; -exports.unreleasedLabels = unreleasedLabels; -const browserNameMap = { - and_chr: "chrome", - and_ff: "firefox", - android: "android", - chrome: "chrome", - edge: "edge", - firefox: "firefox", - ie: "ie", - ie_mob: "ie", - ios_saf: "ios", - node: "node", - deno: "deno", - op_mob: "opera", - opera: "opera", - safari: "safari", - samsung: "samsung" -}; -exports.browserNameMap = browserNameMap; - -//# sourceMappingURL=targets.js.map - - -/***/ }), - -/***/ 79596: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getHighestUnreleased = getHighestUnreleased; -exports.getLowestImplementedVersion = getLowestImplementedVersion; -exports.getLowestUnreleased = getLowestUnreleased; -exports.isUnreleasedVersion = isUnreleasedVersion; -exports.semverMin = semverMin; -exports.semverify = semverify; -var _semver = __nccwpck_require__(8999); -var _helperValidatorOption = __nccwpck_require__(97645); -var _targets = __nccwpck_require__(49413); -const versionRegExp = /^(\d+|\d+.\d+)$/; -const v = new _helperValidatorOption.OptionValidator("@babel/helper-compilation-targets"); -function semverMin(first, second) { - return first && _semver.lt(first, second) ? first : second; -} - -function semverify(version) { - if (typeof version === "string" && _semver.valid(version)) { - return version; - } - v.invariant(typeof version === "number" || typeof version === "string" && versionRegExp.test(version), `'${version}' is not a valid version`); - version = version.toString(); - let pos = 0; - let num = 0; - while ((pos = version.indexOf(".", pos + 1)) > 0) { - num++; - } - return version + ".0".repeat(2 - num); -} -function isUnreleasedVersion(version, env) { - const unreleasedLabel = - _targets.unreleasedLabels[env]; - return !!unreleasedLabel && unreleasedLabel === version.toString().toLowerCase(); -} -function getLowestUnreleased(a, b, env) { - const unreleasedLabel = - _targets.unreleasedLabels[env]; - if (a === unreleasedLabel) { - return b; - } - if (b === unreleasedLabel) { - return a; - } - return semverMin(a, b); -} -function getHighestUnreleased(a, b, env) { - return getLowestUnreleased(a, b, env) === a ? b : a; -} -function getLowestImplementedVersion(plugin, environment) { - const result = plugin[environment]; - if (!result && environment === "android") { - return plugin.chrome; - } - return result; -} - -//# sourceMappingURL=utils.js.map - - -/***/ }), - -/***/ 29787: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getInclusionReasons = getInclusionReasons; -var _semver = __nccwpck_require__(8999); -var _pretty = __nccwpck_require__(40223); -var _utils = __nccwpck_require__(12778); -function getInclusionReasons(item, targetVersions, list) { - const minVersions = list[item] || {}; - return Object.keys(targetVersions).reduce((result, env) => { - const minVersion = (0, _utils.getLowestImplementedVersion)(minVersions, env); - const targetVersion = targetVersions[env]; - if (!minVersion) { - result[env] = (0, _pretty.prettifyVersion)(targetVersion); - } else { - const minIsUnreleased = (0, _utils.isUnreleasedVersion)(minVersion, env); - const targetIsUnreleased = (0, _utils.isUnreleasedVersion)(targetVersion, env); - if (!targetIsUnreleased && (minIsUnreleased || _semver.lt(targetVersion.toString(), (0, _utils.semverify)(minVersion)))) { - result[env] = (0, _pretty.prettifyVersion)(targetVersion); - } - } - return result; - }, {}); -} - -//# sourceMappingURL=debug.js.map - - -/***/ }), - -/***/ 34940: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = filterItems; -exports.isRequired = isRequired; -exports.targetsSupported = targetsSupported; -var _semver = __nccwpck_require__(8999); -var _plugins = __nccwpck_require__(48590); -var _utils = __nccwpck_require__(12778); -function targetsSupported(target, support) { - const targetEnvironments = Object.keys(target); - if (targetEnvironments.length === 0) { - return false; - } - const unsupportedEnvironments = targetEnvironments.filter(environment => { - const lowestImplementedVersion = (0, _utils.getLowestImplementedVersion)(support, environment); - if (!lowestImplementedVersion) { - return true; - } - const lowestTargetedVersion = target[environment]; - if ((0, _utils.isUnreleasedVersion)(lowestTargetedVersion, environment)) { - return false; - } - if ((0, _utils.isUnreleasedVersion)(lowestImplementedVersion, environment)) { - return true; - } - if (!_semver.valid(lowestTargetedVersion.toString())) { - throw new Error(`Invalid version passed for target "${environment}": "${lowestTargetedVersion}". ` + "Versions must be in semver format (major.minor.patch)"); - } - return _semver.gt((0, _utils.semverify)(lowestImplementedVersion), lowestTargetedVersion.toString()); - }); - return unsupportedEnvironments.length === 0; -} -function isRequired(name, targets, { - compatData = _plugins, - includes, - excludes -} = {}) { - if (excludes != null && excludes.has(name)) return false; - if (includes != null && includes.has(name)) return true; - return !targetsSupported(targets, compatData[name]); -} -function filterItems(list, includes, excludes, targets, defaultIncludes, defaultExcludes, pluginSyntaxMap) { - const result = new Set(); - const options = { - compatData: list, - includes, - excludes - }; - for (const item in list) { - if (isRequired(item, targets, options)) { - result.add(item); - } else if (pluginSyntaxMap) { - const shippedProposalsSyntax = pluginSyntaxMap.get(item); - if (shippedProposalsSyntax) { - result.add(shippedProposalsSyntax); - } - } - } - if (defaultIncludes) { - defaultIncludes.forEach(item => !excludes.has(item) && result.add(item)); - } - if (defaultExcludes) { - defaultExcludes.forEach(item => !includes.has(item) && result.delete(item)); - } - return result; -} - -//# sourceMappingURL=filter-items.js.map - - -/***/ }), - -/***/ 77116: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "TargetNames", ({ - enumerable: true, - get: function () { - return _options.TargetNames; - } -})); -exports["default"] = getTargets; -Object.defineProperty(exports, "filterItems", ({ - enumerable: true, - get: function () { - return _filterItems.default; - } -})); -Object.defineProperty(exports, "getInclusionReasons", ({ - enumerable: true, - get: function () { - return _debug.getInclusionReasons; - } -})); -exports.isBrowsersQueryValid = isBrowsersQueryValid; -Object.defineProperty(exports, "isRequired", ({ - enumerable: true, - get: function () { - return _filterItems.isRequired; - } -})); -Object.defineProperty(exports, "prettifyTargets", ({ - enumerable: true, - get: function () { - return _pretty.prettifyTargets; - } -})); -Object.defineProperty(exports, "unreleasedLabels", ({ - enumerable: true, - get: function () { - return _targets.unreleasedLabels; - } -})); -var _browserslist = __nccwpck_require__(82333); -var _helperValidatorOption = __nccwpck_require__(97645); -var _nativeModules = __nccwpck_require__(65729); -var _lruCache = __nccwpck_require__(34543); -var _utils = __nccwpck_require__(12778); -var _targets = __nccwpck_require__(29183); -var _options = __nccwpck_require__(9266); -var _pretty = __nccwpck_require__(40223); -var _debug = __nccwpck_require__(29787); -var _filterItems = __nccwpck_require__(34940); -const ESM_SUPPORT = _nativeModules["es6.module"]; -const v = new _helperValidatorOption.OptionValidator("@babel/helper-compilation-targets"); -function validateTargetNames(targets) { - const validTargets = Object.keys(_options.TargetNames); - for (const target of Object.keys(targets)) { - if (!(target in _options.TargetNames)) { - throw new Error(v.formatMessage(`'${target}' is not a valid target -- Did you mean '${(0, _helperValidatorOption.findSuggestion)(target, validTargets)}'?`)); - } - } - return targets; -} -function isBrowsersQueryValid(browsers) { - return typeof browsers === "string" || Array.isArray(browsers) && browsers.every(b => typeof b === "string"); -} -function validateBrowsers(browsers) { - v.invariant(browsers === undefined || isBrowsersQueryValid(browsers), `'${String(browsers)}' is not a valid browserslist query`); - return browsers; -} -function getLowestVersions(browsers) { - return browsers.reduce((all, browser) => { - const [browserName, browserVersion] = browser.split(" "); - const target = _targets.browserNameMap[browserName]; - if (!target) { - return all; - } - try { - const splitVersion = browserVersion.split("-")[0].toLowerCase(); - const isSplitUnreleased = (0, _utils.isUnreleasedVersion)(splitVersion, target); - if (!all[target]) { - all[target] = isSplitUnreleased ? splitVersion : (0, _utils.semverify)(splitVersion); - return all; - } - const version = all[target]; - const isUnreleased = (0, _utils.isUnreleasedVersion)(version, target); - if (isUnreleased && isSplitUnreleased) { - all[target] = (0, _utils.getLowestUnreleased)(version, splitVersion, target); - } else if (isUnreleased) { - all[target] = (0, _utils.semverify)(splitVersion); - } else if (!isUnreleased && !isSplitUnreleased) { - const parsedBrowserVersion = (0, _utils.semverify)(splitVersion); - all[target] = (0, _utils.semverMin)(version, parsedBrowserVersion); - } - } catch (e) {} - return all; - }, {}); -} -function outputDecimalWarning(decimalTargets) { - if (!decimalTargets.length) { - return; - } - console.warn("Warning, the following targets are using a decimal version:\n"); - decimalTargets.forEach(({ - target, - value - }) => console.warn(` ${target}: ${value}`)); - console.warn(` -We recommend using a string for minor/patch versions to avoid numbers like 6.10 -getting parsed as 6.1, which can lead to unexpected behavior. -`); -} -function semverifyTarget(target, value) { - try { - return (0, _utils.semverify)(value); - } catch (error) { - throw new Error(v.formatMessage(`'${value}' is not a valid value for 'targets.${target}'.`)); - } -} -function nodeTargetParser(value) { - const parsed = value === true || value === "current" ? process.versions.node : semverifyTarget("node", value); - return ["node", parsed]; -} -function defaultTargetParser(target, value) { - const version = (0, _utils.isUnreleasedVersion)(value, target) ? value.toLowerCase() : semverifyTarget(target, value); - return [target, version]; -} -function generateTargets(inputTargets) { - const input = Object.assign({}, inputTargets); - delete input.esmodules; - delete input.browsers; - return input; -} -function resolveTargets(queries, env) { - const resolved = _browserslist(queries, { - mobileToDesktop: true, - env - }); - return getLowestVersions(resolved); -} -const targetsCache = new _lruCache({ - max: 64 -}); -function resolveTargetsCached(queries, env) { - const cacheKey = typeof queries === "string" ? queries : queries.join() + env; - let cached = targetsCache.get(cacheKey); - if (!cached) { - cached = resolveTargets(queries, env); - targetsCache.set(cacheKey, cached); - } - return Object.assign({}, cached); -} -function getTargets(inputTargets = {}, options = {}) { - var _browsers, _browsers2; - let { - browsers, - esmodules - } = inputTargets; - const { - configPath = "." - } = options; - validateBrowsers(browsers); - const input = generateTargets(inputTargets); - let targets = validateTargetNames(input); - const shouldParseBrowsers = !!browsers; - const hasTargets = shouldParseBrowsers || Object.keys(targets).length > 0; - const shouldSearchForConfig = !options.ignoreBrowserslistConfig && !hasTargets; - if (!browsers && shouldSearchForConfig) { - browsers = _browserslist.loadConfig({ - config: options.configFile, - path: configPath, - env: options.browserslistEnv - }); - if (browsers == null) { - { - browsers = []; - } - } - } - if (esmodules && (esmodules !== "intersect" || !((_browsers = browsers) != null && _browsers.length))) { - browsers = Object.keys(ESM_SUPPORT).map(browser => `${browser} >= ${ESM_SUPPORT[browser]}`).join(", "); - esmodules = false; - } - if ((_browsers2 = browsers) != null && _browsers2.length) { - const queryBrowsers = resolveTargetsCached(browsers, options.browserslistEnv); - if (esmodules === "intersect") { - for (const browser of Object.keys(queryBrowsers)) { - const version = queryBrowsers[browser]; - const esmSupportVersion = ESM_SUPPORT[browser]; - if (esmSupportVersion) { - queryBrowsers[browser] = (0, _utils.getHighestUnreleased)(version, (0, _utils.semverify)(esmSupportVersion), browser); - } else { - delete queryBrowsers[browser]; - } - } - } - targets = Object.assign(queryBrowsers, targets); - } - const result = {}; - const decimalWarnings = []; - for (const target of Object.keys(targets).sort()) { - const value = targets[target]; - if (typeof value === "number" && value % 1 !== 0) { - decimalWarnings.push({ - target, - value - }); - } - const [parsedTarget, parsedValue] = target === "node" ? nodeTargetParser(value) : defaultTargetParser(target, value); - if (parsedValue) { - result[parsedTarget] = parsedValue; - } - } - outputDecimalWarning(decimalWarnings); - return result; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 9266: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.TargetNames = void 0; -const TargetNames = { - node: "node", - deno: "deno", - chrome: "chrome", - opera: "opera", - edge: "edge", - firefox: "firefox", - safari: "safari", - ie: "ie", - ios: "ios", - android: "android", - electron: "electron", - samsung: "samsung", - rhino: "rhino" -}; -exports.TargetNames = TargetNames; - -//# sourceMappingURL=options.js.map - - -/***/ }), - -/***/ 40223: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.prettifyTargets = prettifyTargets; -exports.prettifyVersion = prettifyVersion; -var _semver = __nccwpck_require__(8999); -var _targets = __nccwpck_require__(29183); -function prettifyVersion(version) { - if (typeof version !== "string") { - return version; - } - const { - major, - minor, - patch - } = _semver.parse(version); - const parts = [major]; - if (minor || patch) { - parts.push(minor); - } - if (patch) { - parts.push(patch); - } - return parts.join("."); -} -function prettifyTargets(targets) { - return Object.keys(targets).reduce((results, target) => { - let value = targets[target]; - const unreleasedLabel = _targets.unreleasedLabels[target]; - if (typeof value === "string" && unreleasedLabel !== value) { - value = prettifyVersion(value); - } - results[target] = value; - return results; - }, {}); -} - -//# sourceMappingURL=pretty.js.map - - -/***/ }), - -/***/ 29183: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.unreleasedLabels = exports.browserNameMap = void 0; -const unreleasedLabels = { - safari: "tp" -}; -exports.unreleasedLabels = unreleasedLabels; -const browserNameMap = { - and_chr: "chrome", - and_ff: "firefox", - android: "android", - chrome: "chrome", - edge: "edge", - firefox: "firefox", - ie: "ie", - ie_mob: "ie", - ios_saf: "ios", - node: "node", - deno: "deno", - op_mob: "opera", - opera: "opera", - safari: "safari", - samsung: "samsung" -}; -exports.browserNameMap = browserNameMap; - -//# sourceMappingURL=targets.js.map - - -/***/ }), - -/***/ 12778: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getHighestUnreleased = getHighestUnreleased; -exports.getLowestImplementedVersion = getLowestImplementedVersion; -exports.getLowestUnreleased = getLowestUnreleased; -exports.isUnreleasedVersion = isUnreleasedVersion; -exports.semverMin = semverMin; -exports.semverify = semverify; -var _semver = __nccwpck_require__(8999); -var _helperValidatorOption = __nccwpck_require__(97645); -var _targets = __nccwpck_require__(29183); -const versionRegExp = /^(\d+|\d+.\d+)$/; -const v = new _helperValidatorOption.OptionValidator("@babel/helper-compilation-targets"); -function semverMin(first, second) { - return first && _semver.lt(first, second) ? first : second; -} -function semverify(version) { - if (typeof version === "string" && _semver.valid(version)) { - return version; - } - v.invariant(typeof version === "number" || typeof version === "string" && versionRegExp.test(version), `'${version}' is not a valid version`); - version = version.toString(); - let pos = 0; - let num = 0; - while ((pos = version.indexOf(".", pos + 1)) > 0) { - num++; - } - return version + ".0".repeat(2 - num); -} -function isUnreleasedVersion(version, env) { - const unreleasedLabel = _targets.unreleasedLabels[env]; - return !!unreleasedLabel && unreleasedLabel === version.toString().toLowerCase(); -} -function getLowestUnreleased(a, b, env) { - const unreleasedLabel = _targets.unreleasedLabels[env]; - if (a === unreleasedLabel) { - return b; - } - if (b === unreleasedLabel) { - return a; - } - return semverMin(a, b); -} -function getHighestUnreleased(a, b, env) { - return getLowestUnreleased(a, b, env) === a ? b : a; -} -function getLowestImplementedVersion(plugin, environment) { - const result = plugin[environment]; - if (!result && environment === "android") { - return plugin.chrome; - } - return result; -} - -//# sourceMappingURL=utils.js.map - - -/***/ }), - -/***/ 36562: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildDecoratedClass = buildDecoratedClass; -exports.hasDecorators = hasDecorators; -exports.hasOwnDecorators = hasOwnDecorators; -var _core = __nccwpck_require__(90454); -var _helperReplaceSupers = __nccwpck_require__(20846); -var _helperFunctionName = __nccwpck_require__(28850); -function hasOwnDecorators(node) { - return !!(node.decorators && node.decorators.length); -} -function hasDecorators(node) { - return hasOwnDecorators(node) || node.body.body.some(hasOwnDecorators); -} -function prop(key, value) { - if (!value) return null; - return _core.types.objectProperty(_core.types.identifier(key), value); -} -function method(key, body) { - return _core.types.objectMethod("method", _core.types.identifier(key), [], _core.types.blockStatement(body)); -} -function takeDecorators(node) { - let result; - if (node.decorators && node.decorators.length > 0) { - result = _core.types.arrayExpression(node.decorators.map(decorator => decorator.expression)); - } - node.decorators = undefined; - return result; -} -function getKey(node) { - if (node.computed) { - return node.key; - } else if (_core.types.isIdentifier(node.key)) { - return _core.types.stringLiteral(node.key.name); - } else { - return _core.types.stringLiteral(String(node.key.value)); - } -} -function extractElementDescriptor(file, classRef, superRef, path) { - const isMethod = path.isClassMethod(); - if (path.isPrivate()) { - throw path.buildCodeFrameError(`Private ${isMethod ? "methods" : "fields"} in decorated classes are not supported yet.`); - } - if (path.node.type === "ClassAccessorProperty") { - throw path.buildCodeFrameError(`Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`); - } - if (path.node.type === "StaticBlock") { - throw path.buildCodeFrameError(`Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`); - } - const { - node, - scope - } = path; - if (!path.isTSDeclareMethod()) { - new _helperReplaceSupers.default({ - methodPath: path, - objectRef: classRef, - superRef, - file, - refToPreserve: classRef - }).replace(); - } - const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean); - if (_core.types.isClassMethod(node)) { - const id = node.computed ? null : node.key; - const transformed = _core.types.toExpression(node); - properties.push(prop("value", (0, _helperFunctionName.default)({ - node: transformed, - id, - scope - }) || transformed)); - } else if (_core.types.isClassProperty(node) && node.value) { - properties.push(method("value", _core.template.statements.ast`return ${node.value}`)); - } else { - properties.push(prop("value", scope.buildUndefinedNode())); - } - path.remove(); - return _core.types.objectExpression(properties); -} -function addDecorateHelper(file) { - return file.addHelper("decorate"); -} -function buildDecoratedClass(ref, path, elements, file) { - const { - node, - scope - } = path; - const initializeId = scope.generateUidIdentifier("initialize"); - const isDeclaration = node.id && path.isDeclaration(); - const isStrict = path.isInStrictMode(); - const { - superClass - } = node; - node.type = "ClassDeclaration"; - if (!node.id) node.id = _core.types.cloneNode(ref); - let superId; - if (superClass) { - superId = scope.generateUidIdentifierBasedOnNode(node.superClass, "super"); - node.superClass = superId; - } - const classDecorators = takeDecorators(node); - const definitions = _core.types.arrayExpression(elements.filter(element => !element.node.abstract && element.node.type !== "TSIndexSignature").map(path => extractElementDescriptor(file, node.id, superId, path))); - const wrapperCall = _core.template.expression.ast` - ${addDecorateHelper(file)}( - ${classDecorators || _core.types.nullLiteral()}, - function (${initializeId}, ${superClass ? _core.types.cloneNode(superId) : null}) { - ${node} - return { F: ${_core.types.cloneNode(node.id)}, d: ${definitions} }; - }, - ${superClass} - ) - `; - if (!isStrict) { - wrapperCall.arguments[1].body.directives.push(_core.types.directive(_core.types.directiveLiteral("use strict"))); - } - let replacement = wrapperCall; - let classPathDesc = "arguments.1.body.body.0"; - if (isDeclaration) { - replacement = _core.template.statement.ast`let ${ref} = ${wrapperCall}`; - classPathDesc = "declarations.0.init." + classPathDesc; - } - return { - instanceNodes: [_core.template.statement.ast`${_core.types.cloneNode(initializeId)}(this)`], - wrapClass(path) { - path.replaceWith(replacement); - return path.get(classPathDesc); - } - }; -} - -//# sourceMappingURL=decorators.js.map - - -/***/ }), - -/***/ 25891: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.FEATURES = void 0; -exports.enableFeature = enableFeature; -exports.isLoose = isLoose; -exports.shouldTransform = shouldTransform; -var _decorators = __nccwpck_require__(36562); -const FEATURES = Object.freeze({ - fields: 1 << 1, - privateMethods: 1 << 2, - decorators: 1 << 3, - privateIn: 1 << 4, - staticBlocks: 1 << 5 -}); -exports.FEATURES = FEATURES; -const featuresSameLoose = new Map([[FEATURES.fields, "@babel/plugin-transform-class-properties"], [FEATURES.privateMethods, "@babel/plugin-transform-private-methods"], [FEATURES.privateIn, "@babel/plugin-transform-private-property-in-object"]]); -const featuresKey = "@babel/plugin-class-features/featuresKey"; -const looseKey = "@babel/plugin-class-features/looseKey"; -const looseLowPriorityKey = "@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing"; -function enableFeature(file, feature, loose) { - if (!hasFeature(file, feature) || canIgnoreLoose(file, feature)) { - file.set(featuresKey, file.get(featuresKey) | feature); - if (loose === "#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error") { - setLoose(file, feature, true); - file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) | feature); - } else if (loose === "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error") { - setLoose(file, feature, false); - file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) | feature); - } else { - setLoose(file, feature, loose); - } - } - let resolvedLoose; - let higherPriorityPluginName; - for (const [mask, name] of featuresSameLoose) { - if (!hasFeature(file, mask)) continue; - const loose = isLoose(file, mask); - if (canIgnoreLoose(file, mask)) { - continue; - } else if (resolvedLoose === !loose) { - throw new Error("'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, " + "@babel/plugin-transform-private-methods and " + "@babel/plugin-transform-private-property-in-object (when they are enabled)."); - } else { - resolvedLoose = loose; - higherPriorityPluginName = name; - } - } - if (resolvedLoose !== undefined) { - for (const [mask, name] of featuresSameLoose) { - if (hasFeature(file, mask) && isLoose(file, mask) !== resolvedLoose) { - setLoose(file, mask, resolvedLoose); - console.warn(`Though the "loose" option was set to "${!resolvedLoose}" in your @babel/preset-env ` + `config, it will not be used for ${name} since the "loose" mode option was set to ` + `"${resolvedLoose}" for ${higherPriorityPluginName}.\nThe "loose" option must be the ` + `same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods ` + `and @babel/plugin-transform-private-property-in-object (when they are enabled): you can ` + `silence this warning by explicitly adding\n` + `\t["${name}", { "loose": ${resolvedLoose} }]\n` + `to the "plugins" section of your Babel config.`); - } - } - } -} -function hasFeature(file, feature) { - return !!(file.get(featuresKey) & feature); -} -function isLoose(file, feature) { - return !!(file.get(looseKey) & feature); -} -function setLoose(file, feature, loose) { - if (loose) file.set(looseKey, file.get(looseKey) | feature);else file.set(looseKey, file.get(looseKey) & ~feature); - file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) & ~feature); -} -function canIgnoreLoose(file, feature) { - return !!(file.get(looseLowPriorityKey) & feature); -} -function shouldTransform(path, file) { - let decoratorPath = null; - let publicFieldPath = null; - let privateFieldPath = null; - let privateMethodPath = null; - let staticBlockPath = null; - if ((0, _decorators.hasOwnDecorators)(path.node)) { - decoratorPath = path.get("decorators.0"); - } - for (const el of path.get("body.body")) { - if (!decoratorPath && (0, _decorators.hasOwnDecorators)(el.node)) { - decoratorPath = el.get("decorators.0"); - } - if (!publicFieldPath && el.isClassProperty()) { - publicFieldPath = el; - } - if (!privateFieldPath && el.isClassPrivateProperty()) { - privateFieldPath = el; - } - if (!privateMethodPath && el.isClassPrivateMethod != null && el.isClassPrivateMethod()) { - privateMethodPath = el; - } - if (!staticBlockPath && el.isStaticBlock != null && el.isStaticBlock()) { - staticBlockPath = el; - } - } - if (decoratorPath && privateFieldPath) { - throw privateFieldPath.buildCodeFrameError("Private fields in decorated classes are not supported yet."); - } - if (decoratorPath && privateMethodPath) { - throw privateMethodPath.buildCodeFrameError("Private methods in decorated classes are not supported yet."); - } - if (decoratorPath && !hasFeature(file, FEATURES.decorators)) { - throw path.buildCodeFrameError("Decorators are not enabled." + "\nIf you are using " + '["@babel/plugin-proposal-decorators", { "version": "legacy" }], ' + 'make sure it comes *before* "@babel/plugin-transform-class-properties" ' + "and enable loose mode, like so:\n" + '\t["@babel/plugin-proposal-decorators", { "version": "legacy" }]\n' + '\t["@babel/plugin-transform-class-properties", { "loose": true }]'); - } - if (privateMethodPath && !hasFeature(file, FEATURES.privateMethods)) { - throw privateMethodPath.buildCodeFrameError("Class private methods are not enabled. " + "Please add `@babel/plugin-transform-private-methods` to your configuration."); - } - if ((publicFieldPath || privateFieldPath) && !hasFeature(file, FEATURES.fields) && !hasFeature(file, FEATURES.privateMethods)) { - throw path.buildCodeFrameError("Class fields are not enabled. " + "Please add `@babel/plugin-transform-class-properties` to your configuration."); - } - if (staticBlockPath && !hasFeature(file, FEATURES.staticBlocks)) { - throw path.buildCodeFrameError("Static class blocks are not enabled. " + "Please add `@babel/plugin-transform-class-static-block` to your configuration."); - } - if (decoratorPath || privateMethodPath || staticBlockPath) { - return true; - } - if ((publicFieldPath || privateFieldPath) && hasFeature(file, FEATURES.fields)) { - return true; - } - return false; -} - -//# sourceMappingURL=features.js.map - - -/***/ }), - -/***/ 98948: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildCheckInRHS = buildCheckInRHS; -exports.buildFieldsInitNodes = buildFieldsInitNodes; -exports.buildPrivateNamesMap = buildPrivateNamesMap; -exports.buildPrivateNamesNodes = buildPrivateNamesNodes; -exports.transformPrivateNamesUsage = transformPrivateNamesUsage; -var _core = __nccwpck_require__(90454); -var _helperReplaceSupers = __nccwpck_require__(20846); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _helperMemberExpressionToFunctions = __nccwpck_require__(85512); -var _helperOptimiseCallExpression = __nccwpck_require__(95756); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); -var ts = __nccwpck_require__(10389); -function buildPrivateNamesMap(props) { - const privateNamesMap = new Map(); - for (const prop of props) { - if (prop.isPrivate()) { - const { - name - } = prop.node.key.id; - const update = privateNamesMap.has(name) ? privateNamesMap.get(name) : { - id: prop.scope.generateUidIdentifier(name), - static: prop.node.static, - method: !prop.isProperty() - }; - if (prop.isClassPrivateMethod()) { - if (prop.node.kind === "get") { - update.getId = prop.scope.generateUidIdentifier(`get_${name}`); - } else if (prop.node.kind === "set") { - update.setId = prop.scope.generateUidIdentifier(`set_${name}`); - } else if (prop.node.kind === "method") { - update.methodId = prop.scope.generateUidIdentifier(name); - } - } - privateNamesMap.set(name, update); - } - } - return privateNamesMap; -} -function buildPrivateNamesNodes(privateNamesMap, privateFieldsAsProperties, privateFieldsAsSymbols, state) { - const initNodes = []; - for (const [name, value] of privateNamesMap) { - const { - static: isStatic, - method: isMethod, - getId, - setId - } = value; - const isAccessor = getId || setId; - const id = _core.types.cloneNode(value.id); - let init; - if (privateFieldsAsProperties) { - init = _core.types.callExpression(state.addHelper("classPrivateFieldLooseKey"), [_core.types.stringLiteral(name)]); - } else if (privateFieldsAsSymbols) { - init = _core.types.callExpression(_core.types.identifier("Symbol"), [_core.types.stringLiteral(name)]); - } else if (!isStatic) { - init = _core.types.newExpression(_core.types.identifier(!isMethod || isAccessor ? "WeakMap" : "WeakSet"), []); - } - if (init) { - (0, _helperAnnotateAsPure.default)(init); - initNodes.push(_core.template.statement.ast`var ${id} = ${init}`); - } - } - return initNodes; -} -function privateNameVisitorFactory(visitor) { - const nestedVisitor = _core.traverse.visitors.merge([Object.assign({}, visitor), _helperEnvironmentVisitor.default]); - const privateNameVisitor = Object.assign({}, visitor, { - Class(path) { - const { - privateNamesMap - } = this; - const body = path.get("body.body"); - const visiblePrivateNames = new Map(privateNamesMap); - const redeclared = []; - for (const prop of body) { - if (!prop.isPrivate()) continue; - const { - name - } = prop.node.key.id; - visiblePrivateNames.delete(name); - redeclared.push(name); - } - if (!redeclared.length) { - return; - } - path.get("body").traverse(nestedVisitor, Object.assign({}, this, { - redeclared - })); - path.traverse(privateNameVisitor, Object.assign({}, this, { - privateNamesMap: visiblePrivateNames - })); - path.skipKey("body"); - } - }); - return privateNameVisitor; -} -const privateNameVisitor = privateNameVisitorFactory({ - PrivateName(path, { - noDocumentAll - }) { - const { - privateNamesMap, - redeclared - } = this; - const { - node, - parentPath - } = path; - if (!parentPath.isMemberExpression({ - property: node - }) && !parentPath.isOptionalMemberExpression({ - property: node - })) { - return; - } - const { - name - } = node.id; - if (!privateNamesMap.has(name)) return; - if (redeclared && redeclared.includes(name)) return; - this.handle(parentPath, noDocumentAll); - } -}); -function unshadow(name, scope, innerBinding) { - while ((_scope = scope) != null && _scope.hasBinding(name) && !scope.bindingIdentifierEquals(name, innerBinding)) { - var _scope; - scope.rename(name); - scope = scope.parent; - } -} -function buildCheckInRHS(rhs, file, inRHSIsObject) { - if (inRHSIsObject || !(file.availableHelper != null && file.availableHelper("checkInRHS"))) return rhs; - return _core.types.callExpression(file.addHelper("checkInRHS"), [rhs]); -} -const privateInVisitor = privateNameVisitorFactory({ - BinaryExpression(path, { - file - }) { - const { - operator, - left, - right - } = path.node; - if (operator !== "in") return; - if (!_core.types.isPrivateName(left)) return; - const { - privateFieldsAsProperties, - privateNamesMap, - redeclared - } = this; - const { - name - } = left.id; - if (!privateNamesMap.has(name)) return; - if (redeclared && redeclared.includes(name)) return; - unshadow(this.classRef.name, path.scope, this.innerBinding); - if (privateFieldsAsProperties) { - const { - id - } = privateNamesMap.get(name); - path.replaceWith(_core.template.expression.ast` - Object.prototype.hasOwnProperty.call(${buildCheckInRHS(right, file)}, ${_core.types.cloneNode(id)}) - `); - return; - } - const { - id, - static: isStatic - } = privateNamesMap.get(name); - if (isStatic) { - path.replaceWith(_core.template.expression.ast`${buildCheckInRHS(right, file)} === ${_core.types.cloneNode(this.classRef)}`); - return; - } - path.replaceWith(_core.template.expression.ast`${_core.types.cloneNode(id)}.has(${buildCheckInRHS(right, file)})`); - } -}); -const privateNameHandlerSpec = { - memoise(member, count) { - const { - scope - } = member; - const { - object - } = member.node; - const memo = scope.maybeGenerateMemoised(object); - if (!memo) { - return; - } - this.memoiser.set(object, memo, count); - }, - receiver(member) { - const { - object - } = member.node; - if (this.memoiser.has(object)) { - return _core.types.cloneNode(this.memoiser.get(object)); - } - return _core.types.cloneNode(object); - }, - get(member) { - const { - classRef, - privateNamesMap, - file, - innerBinding - } = this; - const { - name - } = member.node.property.id; - const { - id, - static: isStatic, - method: isMethod, - methodId, - getId, - setId - } = privateNamesMap.get(name); - const isAccessor = getId || setId; - if (isStatic) { - const helperName = isMethod && !isAccessor ? "classStaticPrivateMethodGet" : "classStaticPrivateFieldSpecGet"; - unshadow(classRef.name, member.scope, innerBinding); - return _core.types.callExpression(file.addHelper(helperName), [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id)]); - } - if (isMethod) { - if (isAccessor) { - if (!getId && setId) { - if (file.availableHelper("writeOnlyError")) { - return _core.types.sequenceExpression([this.receiver(member), _core.types.callExpression(file.addHelper("writeOnlyError"), [_core.types.stringLiteral(`#${name}`)])]); - } - console.warn(`@babel/helpers is outdated, update it to silence this warning.`); - } - return _core.types.callExpression(file.addHelper("classPrivateFieldGet"), [this.receiver(member), _core.types.cloneNode(id)]); - } - return _core.types.callExpression(file.addHelper("classPrivateMethodGet"), [this.receiver(member), _core.types.cloneNode(id), _core.types.cloneNode(methodId)]); - } - return _core.types.callExpression(file.addHelper("classPrivateFieldGet"), [this.receiver(member), _core.types.cloneNode(id)]); - }, - boundGet(member) { - this.memoise(member, 1); - return _core.types.callExpression(_core.types.memberExpression(this.get(member), _core.types.identifier("bind")), [this.receiver(member)]); - }, - set(member, value) { - const { - classRef, - privateNamesMap, - file - } = this; - const { - name - } = member.node.property.id; - const { - id, - static: isStatic, - method: isMethod, - setId, - getId - } = privateNamesMap.get(name); - const isAccessor = getId || setId; - if (isStatic) { - const helperName = isMethod && !isAccessor ? "classStaticPrivateMethodSet" : "classStaticPrivateFieldSpecSet"; - return _core.types.callExpression(file.addHelper(helperName), [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id), value]); - } - if (isMethod) { - if (setId) { - return _core.types.callExpression(file.addHelper("classPrivateFieldSet"), [this.receiver(member), _core.types.cloneNode(id), value]); - } - return _core.types.sequenceExpression([this.receiver(member), value, _core.types.callExpression(file.addHelper("readOnlyError"), [_core.types.stringLiteral(`#${name}`)])]); - } - return _core.types.callExpression(file.addHelper("classPrivateFieldSet"), [this.receiver(member), _core.types.cloneNode(id), value]); - }, - destructureSet(member) { - const { - classRef, - privateNamesMap, - file - } = this; - const { - name - } = member.node.property.id; - const { - id, - static: isStatic - } = privateNamesMap.get(name); - if (isStatic) { - try { - var helper = file.addHelper("classStaticPrivateFieldDestructureSet"); - } catch (_unused) { - throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \n" + "please update @babel/helpers to the latest version."); - } - return _core.types.memberExpression(_core.types.callExpression(helper, [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id)]), _core.types.identifier("value")); - } - return _core.types.memberExpression(_core.types.callExpression(file.addHelper("classPrivateFieldDestructureSet"), [this.receiver(member), _core.types.cloneNode(id)]), _core.types.identifier("value")); - }, - call(member, args) { - this.memoise(member, 1); - return (0, _helperOptimiseCallExpression.default)(this.get(member), this.receiver(member), args, false); - }, - optionalCall(member, args) { - this.memoise(member, 1); - return (0, _helperOptimiseCallExpression.default)(this.get(member), this.receiver(member), args, true); - }, - delete() { - throw new Error("Internal Babel error: deleting private elements is a parsing error."); - } -}; -const privateNameHandlerLoose = { - get(member) { - const { - privateNamesMap, - file - } = this; - const { - object - } = member.node; - const { - name - } = member.node.property.id; - return _core.template.expression`BASE(REF, PROP)[PROP]`({ - BASE: file.addHelper("classPrivateFieldLooseBase"), - REF: _core.types.cloneNode(object), - PROP: _core.types.cloneNode(privateNamesMap.get(name).id) - }); - }, - set() { - throw new Error("private name handler with loose = true don't need set()"); - }, - boundGet(member) { - return _core.types.callExpression(_core.types.memberExpression(this.get(member), _core.types.identifier("bind")), [_core.types.cloneNode(member.node.object)]); - }, - simpleSet(member) { - return this.get(member); - }, - destructureSet(member) { - return this.get(member); - }, - call(member, args) { - return _core.types.callExpression(this.get(member), args); - }, - optionalCall(member, args) { - return _core.types.optionalCallExpression(this.get(member), args, true); - }, - delete() { - throw new Error("Internal Babel error: deleting private elements is a parsing error."); - } -}; -function transformPrivateNamesUsage(ref, path, privateNamesMap, { - privateFieldsAsProperties, - noDocumentAll, - innerBinding -}, state) { - if (!privateNamesMap.size) return; - const body = path.get("body"); - const handler = privateFieldsAsProperties ? privateNameHandlerLoose : privateNameHandlerSpec; - (0, _helperMemberExpressionToFunctions.default)(body, privateNameVisitor, Object.assign({ - privateNamesMap, - classRef: ref, - file: state - }, handler, { - noDocumentAll, - innerBinding - })); - body.traverse(privateInVisitor, { - privateNamesMap, - classRef: ref, - file: state, - privateFieldsAsProperties, - innerBinding - }); -} -function buildPrivateFieldInitLoose(ref, prop, privateNamesMap) { - const { - id - } = privateNamesMap.get(prop.node.key.id.name); - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${_core.types.cloneNode(id)}, { - // configurable is false by default - // enumerable is false by default - writable: true, - value: ${value} - }); - `, prop); -} -function buildPrivateInstanceFieldInitSpec(ref, prop, privateNamesMap, state) { - const { - id - } = privateNamesMap.get(prop.node.key.id.name); - const value = prop.node.value || prop.scope.buildUndefinedNode(); - { - if (!state.availableHelper("classPrivateFieldInitSpec")) { - return inheritPropComments(_core.template.statement.ast`${_core.types.cloneNode(id)}.set(${ref}, { - // configurable is always false for private elements - // enumerable is always false for private elements - writable: true, - value: ${value}, - })`, prop); - } - } - const helper = state.addHelper("classPrivateFieldInitSpec"); - return inheritPropComments(_core.template.statement.ast`${helper}( - ${_core.types.thisExpression()}, - ${_core.types.cloneNode(id)}, - { - writable: true, - value: ${value} - }, - )`, prop); -} -function buildPrivateStaticFieldInitSpec(prop, privateNamesMap) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - getId, - setId, - initAdded - } = privateName; - const isAccessor = getId || setId; - if (!prop.isProperty() && (initAdded || !isAccessor)) return; - if (isAccessor) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - return inheritPropComments(_core.template.statement.ast` - var ${_core.types.cloneNode(id)} = { - // configurable is false by default - // enumerable is false by default - // writable is false by default - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - } - `, prop); - } - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.template.statement.ast` - var ${_core.types.cloneNode(id)} = { - // configurable is false by default - // enumerable is false by default - writable: true, - value: ${value} - }; - `, prop); -} -function buildPrivateMethodInitLoose(ref, prop, privateNamesMap) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - methodId, - id, - getId, - setId, - initAdded - } = privateName; - if (initAdded) return; - if (methodId) { - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - value: ${methodId.name} - }); - `, prop); - } - const isAccessor = getId || setId; - if (isAccessor) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }); - `, prop); - } -} -function buildPrivateInstanceMethodInitSpec(ref, prop, privateNamesMap, state) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - getId, - setId, - initAdded - } = privateName; - if (initAdded) return; - const isAccessor = getId || setId; - if (isAccessor) { - return buildPrivateAccessorInitialization(ref, prop, privateNamesMap, state); - } - return buildPrivateInstanceMethodInitialization(ref, prop, privateNamesMap, state); -} -function buildPrivateAccessorInitialization(ref, prop, privateNamesMap, state) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - getId, - setId - } = privateName; - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - { - if (!state.availableHelper("classPrivateFieldInitSpec")) { - return inheritPropComments(_core.template.statement.ast` - ${id}.set(${ref}, { - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }); - `, prop); - } - } - const helper = state.addHelper("classPrivateFieldInitSpec"); - return inheritPropComments(_core.template.statement.ast`${helper}( - ${_core.types.thisExpression()}, - ${_core.types.cloneNode(id)}, - { - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }, - )`, prop); -} -function buildPrivateInstanceMethodInitialization(ref, prop, privateNamesMap, state) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id - } = privateName; - { - if (!state.availableHelper("classPrivateMethodInitSpec")) { - return inheritPropComments(_core.template.statement.ast`${id}.add(${ref})`, prop); - } - } - const helper = state.addHelper("classPrivateMethodInitSpec"); - return inheritPropComments(_core.template.statement.ast`${helper}( - ${_core.types.thisExpression()}, - ${_core.types.cloneNode(id)} - )`, prop); -} -function buildPublicFieldInitLoose(ref, prop) { - const { - key, - computed - } = prop.node; - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(ref, key, computed || _core.types.isLiteral(key)), value)), prop); -} -function buildPublicFieldInitSpec(ref, prop, state) { - const { - key, - computed - } = prop.node; - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.types.expressionStatement(_core.types.callExpression(state.addHelper("defineProperty"), [ref, computed || _core.types.isLiteral(key) ? key : _core.types.stringLiteral(key.name), value])), prop); -} -function buildPrivateStaticMethodInitLoose(ref, prop, state, privateNamesMap) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - methodId, - getId, - setId, - initAdded - } = privateName; - if (initAdded) return; - const isAccessor = getId || setId; - if (isAccessor) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }) - `, prop); - } - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - value: ${methodId.name} - }); - `, prop); -} -function buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties = false) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - methodId, - getId, - setId, - getterDeclared, - setterDeclared, - static: isStatic - } = privateName; - const { - params, - body, - generator, - async - } = prop.node; - const isGetter = getId && !getterDeclared && params.length === 0; - const isSetter = setId && !setterDeclared && params.length > 0; - let declId = methodId; - if (isGetter) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - getterDeclared: true - })); - declId = getId; - } else if (isSetter) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - setterDeclared: true - })); - declId = setId; - } else if (isStatic && !privateFieldsAsProperties) { - declId = id; - } - return inheritPropComments(_core.types.functionDeclaration(_core.types.cloneNode(declId), params, body, generator, async), prop); -} -const thisContextVisitor = _core.traverse.visitors.merge([{ - ThisExpression(path, state) { - const parent = path.findParent(path => !(0, _helperSkipTransparentExpressionWrappers.isTransparentExprWrapper)(path.node)); - if (_core.types.isUnaryExpression(parent.node, { - operator: "delete" - })) { - path.parentPath.replaceWith(_core.types.booleanLiteral(true)); - return; - } - state.needsClassRef = true; - path.replaceWith(_core.types.cloneNode(state.classRef)); - }, - MetaProperty(path) { - const meta = path.get("meta"); - const property = path.get("property"); - const { - scope - } = path; - if (meta.isIdentifier({ - name: "new" - }) && property.isIdentifier({ - name: "target" - })) { - path.replaceWith(scope.buildUndefinedNode()); - } - } -}, _helperEnvironmentVisitor.default]); -const innerReferencesVisitor = { - ReferencedIdentifier(path, state) { - if (path.scope.bindingIdentifierEquals(path.node.name, state.innerBinding)) { - state.needsClassRef = true; - path.node.name = state.classRef.name; - } - } -}; -function replaceThisContext(path, ref, getSuperRef, file, isStaticBlock, constantSuper, innerBindingRef) { - var _state$classRef; - const state = { - classRef: ref, - needsClassRef: false, - innerBinding: innerBindingRef - }; - const replacer = new _helperReplaceSupers.default({ - methodPath: path, - constantSuper, - file, - refToPreserve: ref, - getSuperRef, - getObjectRef() { - state.needsClassRef = true; - return _core.types.isStaticBlock != null && _core.types.isStaticBlock(path.node) || path.node.static ? ref : _core.types.memberExpression(ref, _core.types.identifier("prototype")); - } - }); - replacer.replace(); - if (isStaticBlock || path.isProperty()) { - path.traverse(thisContextVisitor, state); - } - if (innerBindingRef != null && (_state$classRef = state.classRef) != null && _state$classRef.name && state.classRef.name !== (innerBindingRef == null ? void 0 : innerBindingRef.name)) { - path.traverse(innerReferencesVisitor, state); - } - return state.needsClassRef; -} -function isNameOrLength({ - key, - computed -}) { - if (key.type === "Identifier") { - return !computed && (key.name === "name" || key.name === "length"); - } - if (key.type === "StringLiteral") { - return key.value === "name" || key.value === "length"; - } - return false; -} -function inheritPropComments(node, prop) { - _core.types.inheritLeadingComments(node, prop.node); - _core.types.inheritInnerComments(node, prop.node); - return node; -} -function buildFieldsInitNodes(ref, superRef, props, privateNamesMap, state, setPublicClassFields, privateFieldsAsProperties, constantSuper, innerBindingRef) { - let needsClassRef = false; - let injectSuperRef; - const staticNodes = []; - const instanceNodes = []; - const pureStaticNodes = []; - const getSuperRef = _core.types.isIdentifier(superRef) ? () => superRef : () => { - var _injectSuperRef; - (_injectSuperRef = injectSuperRef) != null ? _injectSuperRef : injectSuperRef = props[0].scope.generateUidIdentifierBasedOnNode(superRef); - return injectSuperRef; - }; - for (const prop of props) { - prop.isClassProperty() && ts.assertFieldTransformed(prop); - const isStatic = !(_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node)) && prop.node.static; - const isInstance = !isStatic; - const isPrivate = prop.isPrivate(); - const isPublic = !isPrivate; - const isField = prop.isProperty(); - const isMethod = !isField; - const isStaticBlock = prop.isStaticBlock == null ? void 0 : prop.isStaticBlock(); - if (isStatic || isMethod && isPrivate || isStaticBlock) { - const replaced = replaceThisContext(prop, ref, getSuperRef, state, isStaticBlock, constantSuper, innerBindingRef); - needsClassRef = needsClassRef || replaced; - } - switch (true) { - case isStaticBlock: - { - const blockBody = prop.node.body; - if (blockBody.length === 1 && _core.types.isExpressionStatement(blockBody[0])) { - staticNodes.push(inheritPropComments(blockBody[0], prop)); - } else { - staticNodes.push(_core.types.inheritsComments(_core.template.statement.ast`(() => { ${blockBody} })()`, prop.node)); - } - break; - } - case isStatic && isPrivate && isField && privateFieldsAsProperties: - needsClassRef = true; - staticNodes.push(buildPrivateFieldInitLoose(_core.types.cloneNode(ref), prop, privateNamesMap)); - break; - case isStatic && isPrivate && isField && !privateFieldsAsProperties: - needsClassRef = true; - staticNodes.push(buildPrivateStaticFieldInitSpec(prop, privateNamesMap)); - break; - case isStatic && isPublic && isField && setPublicClassFields: - if (!isNameOrLength(prop.node)) { - needsClassRef = true; - staticNodes.push(buildPublicFieldInitLoose(_core.types.cloneNode(ref), prop)); - break; - } - case isStatic && isPublic && isField && !setPublicClassFields: - needsClassRef = true; - staticNodes.push(buildPublicFieldInitSpec(_core.types.cloneNode(ref), prop, state)); - break; - case isInstance && isPrivate && isField && privateFieldsAsProperties: - instanceNodes.push(buildPrivateFieldInitLoose(_core.types.thisExpression(), prop, privateNamesMap)); - break; - case isInstance && isPrivate && isField && !privateFieldsAsProperties: - instanceNodes.push(buildPrivateInstanceFieldInitSpec(_core.types.thisExpression(), prop, privateNamesMap, state)); - break; - case isInstance && isPrivate && isMethod && privateFieldsAsProperties: - instanceNodes.unshift(buildPrivateMethodInitLoose(_core.types.thisExpression(), prop, privateNamesMap)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isInstance && isPrivate && isMethod && !privateFieldsAsProperties: - instanceNodes.unshift(buildPrivateInstanceMethodInitSpec(_core.types.thisExpression(), prop, privateNamesMap, state)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isStatic && isPrivate && isMethod && !privateFieldsAsProperties: - needsClassRef = true; - staticNodes.unshift(buildPrivateStaticFieldInitSpec(prop, privateNamesMap)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isStatic && isPrivate && isMethod && privateFieldsAsProperties: - needsClassRef = true; - staticNodes.unshift(buildPrivateStaticMethodInitLoose(_core.types.cloneNode(ref), prop, state, privateNamesMap)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isInstance && isPublic && isField && setPublicClassFields: - instanceNodes.push(buildPublicFieldInitLoose(_core.types.thisExpression(), prop)); - break; - case isInstance && isPublic && isField && !setPublicClassFields: - instanceNodes.push(buildPublicFieldInitSpec(_core.types.thisExpression(), prop, state)); - break; - default: - throw new Error("Unreachable."); - } - } - return { - staticNodes: staticNodes.filter(Boolean), - instanceNodes: instanceNodes.filter(Boolean), - pureStaticNodes: pureStaticNodes.filter(Boolean), - wrapClass(path) { - for (const prop of props) { - prop.node.leadingComments = null; - prop.remove(); - } - if (injectSuperRef) { - path.scope.push({ - id: _core.types.cloneNode(injectSuperRef) - }); - path.set("superClass", _core.types.assignmentExpression("=", injectSuperRef, path.node.superClass)); - } - if (!needsClassRef) return path; - if (path.isClassExpression()) { - path.scope.push({ - id: ref - }); - path.replaceWith(_core.types.assignmentExpression("=", _core.types.cloneNode(ref), path.node)); - } else if (!path.node.id) { - path.node.id = ref; - } - return path; - } - }; -} - -//# sourceMappingURL=fields.js.map - - -/***/ }), - -/***/ 46592: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "FEATURES", ({ - enumerable: true, - get: function () { - return _features.FEATURES; - } -})); -Object.defineProperty(exports, "buildCheckInRHS", ({ - enumerable: true, - get: function () { - return _fields.buildCheckInRHS; - } -})); -exports.createClassFeaturePlugin = createClassFeaturePlugin; -Object.defineProperty(exports, "enableFeature", ({ - enumerable: true, - get: function () { - return _features.enableFeature; - } -})); -Object.defineProperty(exports, "injectInitialization", ({ - enumerable: true, - get: function () { - return _misc.injectInitialization; - } -})); -var _core = __nccwpck_require__(90454); -var _helperFunctionName = __nccwpck_require__(28850); -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -var _semver = __nccwpck_require__(8999); -var _fields = __nccwpck_require__(98948); -var _decorators = __nccwpck_require__(36562); -var _misc = __nccwpck_require__(5772); -var _features = __nccwpck_require__(25891); -var _typescript = __nccwpck_require__(10389); -const versionKey = "@babel/plugin-class-features/version"; -function createClassFeaturePlugin({ - name, - feature, - loose, - manipulateOptions, - api, - inherits -}) { - { - var _api; - (_api = api) != null ? _api : api = { - assumption: () => void 0 - }; - } - const setPublicClassFields = api.assumption("setPublicClassFields"); - const privateFieldsAsSymbols = api.assumption("privateFieldsAsSymbols"); - const privateFieldsAsProperties = api.assumption("privateFieldsAsProperties"); - const constantSuper = api.assumption("constantSuper"); - const noDocumentAll = api.assumption("noDocumentAll"); - if (privateFieldsAsProperties && privateFieldsAsSymbols) { - throw new Error(`Cannot enable both the "privateFieldsAsProperties" and ` + `"privateFieldsAsSymbols" assumptions as the same time.`); - } - const privateFieldsAsSymbolsOrProperties = privateFieldsAsProperties || privateFieldsAsSymbols; - if (loose === true) { - const explicit = []; - if (setPublicClassFields !== undefined) { - explicit.push(`"setPublicClassFields"`); - } - if (privateFieldsAsProperties !== undefined) { - explicit.push(`"privateFieldsAsProperties"`); - } - if (privateFieldsAsSymbols !== undefined) { - explicit.push(`"privateFieldsAsSymbols"`); - } - if (explicit.length !== 0) { - console.warn(`[${name}]: You are using the "loose: true" option and you are` + ` explicitly setting a value for the ${explicit.join(" and ")}` + ` assumption${explicit.length > 1 ? "s" : ""}. The "loose" option` + ` can cause incompatibilities with the other class features` + ` plugins, so it's recommended that you replace it with the` + ` following top-level option:\n` + `\t"assumptions": {\n` + `\t\t"setPublicClassFields": true,\n` + `\t\t"privateFieldsAsSymbols": true\n` + `\t}`); - } - } - return { - name, - manipulateOptions, - inherits, - pre(file) { - (0, _features.enableFeature)(file, feature, loose); - { - if (typeof file.get(versionKey) === "number") { - file.set(versionKey, "7.22.5"); - return; - } - } - if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.22.5")) { - file.set(versionKey, "7.22.5"); - } - }, - visitor: { - Class(path, { - file - }) { - if (file.get(versionKey) !== "7.22.5") return; - if (!(0, _features.shouldTransform)(path, file)) return; - if (path.isClassDeclaration()) (0, _typescript.assertFieldTransformed)(path); - const loose = (0, _features.isLoose)(file, feature); - let constructor; - const isDecorated = (0, _decorators.hasDecorators)(path.node); - const props = []; - const elements = []; - const computedPaths = []; - const privateNames = new Set(); - const body = path.get("body"); - for (const path of body.get("body")) { - if ((path.isClassProperty() || path.isClassMethod()) && path.node.computed) { - computedPaths.push(path); - } - if (path.isPrivate()) { - const { - name - } = path.node.key.id; - const getName = `get ${name}`; - const setName = `set ${name}`; - if (path.isClassPrivateMethod()) { - if (path.node.kind === "get") { - if (privateNames.has(getName) || privateNames.has(name) && !privateNames.has(setName)) { - throw path.buildCodeFrameError("Duplicate private field"); - } - privateNames.add(getName).add(name); - } else if (path.node.kind === "set") { - if (privateNames.has(setName) || privateNames.has(name) && !privateNames.has(getName)) { - throw path.buildCodeFrameError("Duplicate private field"); - } - privateNames.add(setName).add(name); - } - } else { - if (privateNames.has(name) && !privateNames.has(getName) && !privateNames.has(setName) || privateNames.has(name) && (privateNames.has(getName) || privateNames.has(setName))) { - throw path.buildCodeFrameError("Duplicate private field"); - } - privateNames.add(name); - } - } - if (path.isClassMethod({ - kind: "constructor" - })) { - constructor = path; - } else { - elements.push(path); - if (path.isProperty() || path.isPrivate() || path.isStaticBlock != null && path.isStaticBlock()) { - props.push(path); - } - } - } - { - if (!props.length && !isDecorated) return; - } - const innerBinding = path.node.id; - let ref; - if (!innerBinding || path.isClassExpression()) { - (0, _helperFunctionName.default)(path); - ref = path.scope.generateUidIdentifier("class"); - } else { - ref = _core.types.cloneNode(path.node.id); - } - const privateNamesMap = (0, _fields.buildPrivateNamesMap)(props); - const privateNamesNodes = (0, _fields.buildPrivateNamesNodes)(privateNamesMap, privateFieldsAsProperties != null ? privateFieldsAsProperties : loose, privateFieldsAsSymbols != null ? privateFieldsAsSymbols : false, file); - (0, _fields.transformPrivateNamesUsage)(ref, path, privateNamesMap, { - privateFieldsAsProperties: privateFieldsAsSymbolsOrProperties != null ? privateFieldsAsSymbolsOrProperties : loose, - noDocumentAll, - innerBinding - }, file); - let keysNodes, staticNodes, instanceNodes, pureStaticNodes, wrapClass; - { - if (isDecorated) { - staticNodes = pureStaticNodes = keysNodes = []; - ({ - instanceNodes, - wrapClass - } = (0, _decorators.buildDecoratedClass)(ref, path, elements, file)); - } else { - keysNodes = (0, _misc.extractComputedKeys)(path, computedPaths, file); - ({ - staticNodes, - pureStaticNodes, - instanceNodes, - wrapClass - } = (0, _fields.buildFieldsInitNodes)(ref, path.node.superClass, props, privateNamesMap, file, setPublicClassFields != null ? setPublicClassFields : loose, privateFieldsAsSymbolsOrProperties != null ? privateFieldsAsSymbolsOrProperties : loose, constantSuper != null ? constantSuper : loose, innerBinding)); - } - } - if (instanceNodes.length > 0) { - (0, _misc.injectInitialization)(path, constructor, instanceNodes, (referenceVisitor, state) => { - { - if (isDecorated) return; - } - for (const prop of props) { - if (_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node) || prop.node.static) continue; - prop.traverse(referenceVisitor, state); - } - }); - } - const wrappedPath = wrapClass(path); - wrappedPath.insertBefore([...privateNamesNodes, ...keysNodes]); - if (staticNodes.length > 0) { - wrappedPath.insertAfter(staticNodes); - } - if (pureStaticNodes.length > 0) { - wrappedPath.find(parent => parent.isStatement() || parent.isDeclaration()).insertAfter(pureStaticNodes); - } - }, - ExportDefaultDeclaration(path, { - file - }) { - { - if (file.get(versionKey) !== "7.22.5") return; - const decl = path.get("declaration"); - if (decl.isClassDeclaration() && (0, _decorators.hasDecorators)(decl.node)) { - if (decl.node.id) { - (0, _helperSplitExportDeclaration.default)(path); - } else { - decl.node.type = "ClassExpression"; - } - } - } - } - } - }; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 5772: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.extractComputedKeys = extractComputedKeys; -exports.injectInitialization = injectInitialization; -var _core = __nccwpck_require__(90454); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -const findBareSupers = _core.traverse.visitors.merge([{ - Super(path) { - const { - node, - parentPath - } = path; - if (parentPath.isCallExpression({ - callee: node - })) { - this.push(parentPath); - } - } -}, _helperEnvironmentVisitor.default]); -const referenceVisitor = { - "TSTypeAnnotation|TypeAnnotation"(path) { - path.skip(); - }, - ReferencedIdentifier(path, { - scope - }) { - if (scope.hasOwnBinding(path.node.name)) { - scope.rename(path.node.name); - path.skip(); - } - } -}; -function handleClassTDZ(path, state) { - if (state.classBinding && state.classBinding === path.scope.getBinding(path.node.name)) { - const classNameTDZError = state.file.addHelper("classNameTDZError"); - const throwNode = _core.types.callExpression(classNameTDZError, [_core.types.stringLiteral(path.node.name)]); - path.replaceWith(_core.types.sequenceExpression([throwNode, path.node])); - path.skip(); - } -} -const classFieldDefinitionEvaluationTDZVisitor = { - ReferencedIdentifier: handleClassTDZ -}; -function injectInitialization(path, constructor, nodes, renamer) { - if (!nodes.length) return; - const isDerived = !!path.node.superClass; - if (!constructor) { - const newConstructor = _core.types.classMethod("constructor", _core.types.identifier("constructor"), [], _core.types.blockStatement([])); - if (isDerived) { - newConstructor.params = [_core.types.restElement(_core.types.identifier("args"))]; - newConstructor.body.body.push(_core.template.statement.ast`super(...args)`); - } - [constructor] = path.get("body").unshiftContainer("body", newConstructor); - } - if (renamer) { - renamer(referenceVisitor, { - scope: constructor.scope - }); - } - if (isDerived) { - const bareSupers = []; - constructor.traverse(findBareSupers, bareSupers); - let isFirst = true; - for (const bareSuper of bareSupers) { - if (isFirst) { - bareSuper.insertAfter(nodes); - isFirst = false; - } else { - bareSuper.insertAfter(nodes.map(n => _core.types.cloneNode(n))); - } - } - } else { - constructor.get("body").unshiftContainer("body", nodes); - } -} -function extractComputedKeys(path, computedPaths, file) { - const declarations = []; - const state = { - classBinding: path.node.id && path.scope.getBinding(path.node.id.name), - file - }; - for (const computedPath of computedPaths) { - const computedKey = computedPath.get("key"); - if (computedKey.isReferencedIdentifier()) { - handleClassTDZ(computedKey, state); - } else { - computedKey.traverse(classFieldDefinitionEvaluationTDZVisitor, state); - } - const computedNode = computedPath.node; - if (!computedKey.isConstantExpression()) { - const ident = path.scope.generateUidIdentifierBasedOnNode(computedNode.key); - path.scope.push({ - id: ident, - kind: "let" - }); - declarations.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(ident), computedNode.key))); - computedNode.key = _core.types.cloneNode(ident); - } - } - return declarations; -} - -//# sourceMappingURL=misc.js.map - - -/***/ }), - -/***/ 10389: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.assertFieldTransformed = assertFieldTransformed; -function assertFieldTransformed(path) { - if (path.node.declare || false) { - throw path.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by ` + `@babel/plugin-transform-typescript.\n` + `If you have already enabled that plugin (or '@babel/preset-typescript'), make sure ` + `that it runs before any plugin related to additional class features:\n` + ` - @babel/plugin-transform-class-properties\n` + ` - @babel/plugin-transform-private-methods\n` + ` - @babel/plugin-proposal-decorators`); - } -} - -//# sourceMappingURL=typescript.js.map - - -/***/ }), - -/***/ 5975: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildDecoratedClass = buildDecoratedClass; -exports.hasDecorators = hasDecorators; -exports.hasOwnDecorators = hasOwnDecorators; -var _core = __nccwpck_require__(27324); -var _helperReplaceSupers = __nccwpck_require__(20846); -var _helperFunctionName = __nccwpck_require__(28850); -function hasOwnDecorators(node) { - return !!(node.decorators && node.decorators.length); -} -function hasDecorators(node) { - return hasOwnDecorators(node) || node.body.body.some(hasOwnDecorators); -} -function prop(key, value) { - if (!value) return null; - return _core.types.objectProperty(_core.types.identifier(key), value); -} -function method(key, body) { - return _core.types.objectMethod("method", _core.types.identifier(key), [], _core.types.blockStatement(body)); -} -function takeDecorators(node) { - let result; - if (node.decorators && node.decorators.length > 0) { - result = _core.types.arrayExpression(node.decorators.map(decorator => decorator.expression)); - } - node.decorators = undefined; - return result; -} -function getKey(node) { - if (node.computed) { - return node.key; - } else if (_core.types.isIdentifier(node.key)) { - return _core.types.stringLiteral(node.key.name); - } else { - return _core.types.stringLiteral(String(node.key.value)); - } -} -function extractElementDescriptor(file, classRef, superRef, path) { - const isMethod = path.isClassMethod(); - if (path.isPrivate()) { - throw path.buildCodeFrameError(`Private ${isMethod ? "methods" : "fields"} in decorated classes are not supported yet.`); - } - if (path.node.type === "ClassAccessorProperty") { - throw path.buildCodeFrameError(`Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`); - } - if (path.node.type === "StaticBlock") { - throw path.buildCodeFrameError(`Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`); - } - const { - node, - scope - } = path; - if (!path.isTSDeclareMethod()) { - new _helperReplaceSupers.default({ - methodPath: path, - objectRef: classRef, - superRef, - file, - refToPreserve: classRef - }).replace(); - } - const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean); - if (_core.types.isClassMethod(node)) { - const id = node.computed ? null : node.key; - const transformed = _core.types.toExpression(node); - properties.push(prop("value", (0, _helperFunctionName.default)({ - node: transformed, - id, - scope - }) || transformed)); - } else if (_core.types.isClassProperty(node) && node.value) { - properties.push(method("value", _core.template.statements.ast`return ${node.value}`)); - } else { - properties.push(prop("value", scope.buildUndefinedNode())); - } - path.remove(); - return _core.types.objectExpression(properties); -} -function addDecorateHelper(file) { - return file.addHelper("decorate"); -} -function buildDecoratedClass(ref, path, elements, file) { - const { - node, - scope - } = path; - const initializeId = scope.generateUidIdentifier("initialize"); - const isDeclaration = node.id && path.isDeclaration(); - const isStrict = path.isInStrictMode(); - const { - superClass - } = node; - node.type = "ClassDeclaration"; - if (!node.id) node.id = _core.types.cloneNode(ref); - let superId; - if (superClass) { - superId = scope.generateUidIdentifierBasedOnNode(node.superClass, "super"); - node.superClass = superId; - } - const classDecorators = takeDecorators(node); - const definitions = _core.types.arrayExpression(elements.filter(element => !element.node.abstract && element.node.type !== "TSIndexSignature").map(path => extractElementDescriptor(file, node.id, superId, path))); - const wrapperCall = _core.template.expression.ast` - ${addDecorateHelper(file)}( - ${classDecorators || _core.types.nullLiteral()}, - function (${initializeId}, ${superClass ? _core.types.cloneNode(superId) : null}) { - ${node} - return { F: ${_core.types.cloneNode(node.id)}, d: ${definitions} }; - }, - ${superClass} - ) - `; - if (!isStrict) { - wrapperCall.arguments[1].body.directives.push(_core.types.directive(_core.types.directiveLiteral("use strict"))); - } - let replacement = wrapperCall; - let classPathDesc = "arguments.1.body.body.0"; - if (isDeclaration) { - replacement = _core.template.statement.ast`let ${ref} = ${wrapperCall}`; - classPathDesc = "declarations.0.init." + classPathDesc; - } - return { - instanceNodes: [_core.template.statement.ast`${_core.types.cloneNode(initializeId)}(this)`], - wrapClass(path) { - path.replaceWith(replacement); - return path.get(classPathDesc); - } - }; -} - -//# sourceMappingURL=decorators.js.map - - -/***/ }), - -/***/ 31756: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.FEATURES = void 0; -exports.enableFeature = enableFeature; -exports.isLoose = isLoose; -exports.shouldTransform = shouldTransform; -var _decorators = __nccwpck_require__(5975); -const FEATURES = Object.freeze({ - fields: 1 << 1, - privateMethods: 1 << 2, - decorators: 1 << 3, - privateIn: 1 << 4, - staticBlocks: 1 << 5 -}); -exports.FEATURES = FEATURES; -const featuresSameLoose = new Map([[FEATURES.fields, "@babel/plugin-transform-class-properties"], [FEATURES.privateMethods, "@babel/plugin-transform-private-methods"], [FEATURES.privateIn, "@babel/plugin-transform-private-property-in-object"]]); -const featuresKey = "@babel/plugin-class-features/featuresKey"; -const looseKey = "@babel/plugin-class-features/looseKey"; -const looseLowPriorityKey = "@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing"; -function enableFeature(file, feature, loose) { - if (!hasFeature(file, feature) || canIgnoreLoose(file, feature)) { - file.set(featuresKey, file.get(featuresKey) | feature); - if (loose === "#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error") { - setLoose(file, feature, true); - file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) | feature); - } else if (loose === "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error") { - setLoose(file, feature, false); - file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) | feature); - } else { - setLoose(file, feature, loose); - } - } - let resolvedLoose; - let higherPriorityPluginName; - for (const [mask, name] of featuresSameLoose) { - if (!hasFeature(file, mask)) continue; - const loose = isLoose(file, mask); - if (canIgnoreLoose(file, mask)) { - continue; - } else if (resolvedLoose === !loose) { - throw new Error("'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, " + "@babel/plugin-transform-private-methods and " + "@babel/plugin-transform-private-property-in-object (when they are enabled)."); - } else { - resolvedLoose = loose; - higherPriorityPluginName = name; - } - } - if (resolvedLoose !== undefined) { - for (const [mask, name] of featuresSameLoose) { - if (hasFeature(file, mask) && isLoose(file, mask) !== resolvedLoose) { - setLoose(file, mask, resolvedLoose); - console.warn(`Though the "loose" option was set to "${!resolvedLoose}" in your @babel/preset-env ` + `config, it will not be used for ${name} since the "loose" mode option was set to ` + `"${resolvedLoose}" for ${higherPriorityPluginName}.\nThe "loose" option must be the ` + `same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods ` + `and @babel/plugin-transform-private-property-in-object (when they are enabled): you can ` + `silence this warning by explicitly adding\n` + `\t["${name}", { "loose": ${resolvedLoose} }]\n` + `to the "plugins" section of your Babel config.`); - } - } - } -} -function hasFeature(file, feature) { - return !!(file.get(featuresKey) & feature); -} -function isLoose(file, feature) { - return !!(file.get(looseKey) & feature); -} -function setLoose(file, feature, loose) { - if (loose) file.set(looseKey, file.get(looseKey) | feature);else file.set(looseKey, file.get(looseKey) & ~feature); - file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) & ~feature); -} -function canIgnoreLoose(file, feature) { - return !!(file.get(looseLowPriorityKey) & feature); -} -function shouldTransform(path, file) { - let decoratorPath = null; - let publicFieldPath = null; - let privateFieldPath = null; - let privateMethodPath = null; - let staticBlockPath = null; - if ((0, _decorators.hasOwnDecorators)(path.node)) { - decoratorPath = path.get("decorators.0"); - } - for (const el of path.get("body.body")) { - if (!decoratorPath && (0, _decorators.hasOwnDecorators)(el.node)) { - decoratorPath = el.get("decorators.0"); - } - if (!publicFieldPath && el.isClassProperty()) { - publicFieldPath = el; - } - if (!privateFieldPath && el.isClassPrivateProperty()) { - privateFieldPath = el; - } - if (!privateMethodPath && el.isClassPrivateMethod != null && el.isClassPrivateMethod()) { - privateMethodPath = el; - } - if (!staticBlockPath && el.isStaticBlock != null && el.isStaticBlock()) { - staticBlockPath = el; - } - } - if (decoratorPath && privateFieldPath) { - throw privateFieldPath.buildCodeFrameError("Private fields in decorated classes are not supported yet."); - } - if (decoratorPath && privateMethodPath) { - throw privateMethodPath.buildCodeFrameError("Private methods in decorated classes are not supported yet."); - } - if (decoratorPath && !hasFeature(file, FEATURES.decorators)) { - throw path.buildCodeFrameError("Decorators are not enabled." + "\nIf you are using " + '["@babel/plugin-proposal-decorators", { "version": "legacy" }], ' + 'make sure it comes *before* "@babel/plugin-transform-class-properties" ' + "and enable loose mode, like so:\n" + '\t["@babel/plugin-proposal-decorators", { "version": "legacy" }]\n' + '\t["@babel/plugin-transform-class-properties", { "loose": true }]'); - } - if (privateMethodPath && !hasFeature(file, FEATURES.privateMethods)) { - throw privateMethodPath.buildCodeFrameError("Class private methods are not enabled. " + "Please add `@babel/plugin-transform-private-methods` to your configuration."); - } - if ((publicFieldPath || privateFieldPath) && !hasFeature(file, FEATURES.fields) && !hasFeature(file, FEATURES.privateMethods)) { - throw path.buildCodeFrameError("Class fields are not enabled. " + "Please add `@babel/plugin-transform-class-properties` to your configuration."); - } - if (staticBlockPath && !hasFeature(file, FEATURES.staticBlocks)) { - throw path.buildCodeFrameError("Static class blocks are not enabled. " + "Please add `@babel/plugin-transform-class-static-block` to your configuration."); - } - if (decoratorPath || privateMethodPath || staticBlockPath) { - return true; - } - if ((publicFieldPath || privateFieldPath) && hasFeature(file, FEATURES.fields)) { - return true; - } - return false; -} - -//# sourceMappingURL=features.js.map - - -/***/ }), - -/***/ 90506: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildCheckInRHS = buildCheckInRHS; -exports.buildFieldsInitNodes = buildFieldsInitNodes; -exports.buildPrivateNamesMap = buildPrivateNamesMap; -exports.buildPrivateNamesNodes = buildPrivateNamesNodes; -exports.transformPrivateNamesUsage = transformPrivateNamesUsage; -var _core = __nccwpck_require__(27324); -var _helperReplaceSupers = __nccwpck_require__(20846); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _helperMemberExpressionToFunctions = __nccwpck_require__(85512); -var _helperOptimiseCallExpression = __nccwpck_require__(95756); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); -var ts = __nccwpck_require__(22051); -function buildPrivateNamesMap(props) { - const privateNamesMap = new Map(); - for (const prop of props) { - if (prop.isPrivate()) { - const { - name - } = prop.node.key.id; - const update = privateNamesMap.has(name) ? privateNamesMap.get(name) : { - id: prop.scope.generateUidIdentifier(name), - static: prop.node.static, - method: !prop.isProperty() - }; - if (prop.isClassPrivateMethod()) { - if (prop.node.kind === "get") { - update.getId = prop.scope.generateUidIdentifier(`get_${name}`); - } else if (prop.node.kind === "set") { - update.setId = prop.scope.generateUidIdentifier(`set_${name}`); - } else if (prop.node.kind === "method") { - update.methodId = prop.scope.generateUidIdentifier(name); - } - } - privateNamesMap.set(name, update); - } - } - return privateNamesMap; -} -function buildPrivateNamesNodes(privateNamesMap, privateFieldsAsProperties, privateFieldsAsSymbols, state) { - const initNodes = []; - for (const [name, value] of privateNamesMap) { - const { - static: isStatic, - method: isMethod, - getId, - setId - } = value; - const isAccessor = getId || setId; - const id = _core.types.cloneNode(value.id); - let init; - if (privateFieldsAsProperties) { - init = _core.types.callExpression(state.addHelper("classPrivateFieldLooseKey"), [_core.types.stringLiteral(name)]); - } else if (privateFieldsAsSymbols) { - init = _core.types.callExpression(_core.types.identifier("Symbol"), [_core.types.stringLiteral(name)]); - } else if (!isStatic) { - init = _core.types.newExpression(_core.types.identifier(!isMethod || isAccessor ? "WeakMap" : "WeakSet"), []); - } - if (init) { - (0, _helperAnnotateAsPure.default)(init); - initNodes.push(_core.template.statement.ast`var ${id} = ${init}`); - } - } - return initNodes; -} -function privateNameVisitorFactory(visitor) { - const nestedVisitor = _core.traverse.visitors.merge([Object.assign({}, visitor), _helperEnvironmentVisitor.default]); - const privateNameVisitor = Object.assign({}, visitor, { - Class(path) { - const { - privateNamesMap - } = this; - const body = path.get("body.body"); - const visiblePrivateNames = new Map(privateNamesMap); - const redeclared = []; - for (const prop of body) { - if (!prop.isPrivate()) continue; - const { - name - } = prop.node.key.id; - visiblePrivateNames.delete(name); - redeclared.push(name); - } - if (!redeclared.length) { - return; - } - path.get("body").traverse(nestedVisitor, Object.assign({}, this, { - redeclared - })); - path.traverse(privateNameVisitor, Object.assign({}, this, { - privateNamesMap: visiblePrivateNames - })); - path.skipKey("body"); - } - }); - return privateNameVisitor; -} -const privateNameVisitor = privateNameVisitorFactory({ - PrivateName(path, { - noDocumentAll - }) { - const { - privateNamesMap, - redeclared - } = this; - const { - node, - parentPath - } = path; - if (!parentPath.isMemberExpression({ - property: node - }) && !parentPath.isOptionalMemberExpression({ - property: node - })) { - return; - } - const { - name - } = node.id; - if (!privateNamesMap.has(name)) return; - if (redeclared && redeclared.includes(name)) return; - this.handle(parentPath, noDocumentAll); - } -}); -function unshadow(name, scope, innerBinding) { - while ((_scope = scope) != null && _scope.hasBinding(name) && !scope.bindingIdentifierEquals(name, innerBinding)) { - var _scope; - scope.rename(name); - scope = scope.parent; - } -} -function buildCheckInRHS(rhs, file, inRHSIsObject) { - if (inRHSIsObject || !(file.availableHelper != null && file.availableHelper("checkInRHS"))) return rhs; - return _core.types.callExpression(file.addHelper("checkInRHS"), [rhs]); -} -const privateInVisitor = privateNameVisitorFactory({ - BinaryExpression(path, { - file - }) { - const { - operator, - left, - right - } = path.node; - if (operator !== "in") return; - if (!_core.types.isPrivateName(left)) return; - const { - privateFieldsAsProperties, - privateNamesMap, - redeclared - } = this; - const { - name - } = left.id; - if (!privateNamesMap.has(name)) return; - if (redeclared && redeclared.includes(name)) return; - unshadow(this.classRef.name, path.scope, this.innerBinding); - if (privateFieldsAsProperties) { - const { - id - } = privateNamesMap.get(name); - path.replaceWith(_core.template.expression.ast` - Object.prototype.hasOwnProperty.call(${buildCheckInRHS(right, file)}, ${_core.types.cloneNode(id)}) - `); - return; - } - const { - id, - static: isStatic - } = privateNamesMap.get(name); - if (isStatic) { - path.replaceWith(_core.template.expression.ast`${buildCheckInRHS(right, file)} === ${_core.types.cloneNode(this.classRef)}`); - return; - } - path.replaceWith(_core.template.expression.ast`${_core.types.cloneNode(id)}.has(${buildCheckInRHS(right, file)})`); - } -}); -const privateNameHandlerSpec = { - memoise(member, count) { - const { - scope - } = member; - const { - object - } = member.node; - const memo = scope.maybeGenerateMemoised(object); - if (!memo) { - return; - } - this.memoiser.set(object, memo, count); - }, - receiver(member) { - const { - object - } = member.node; - if (this.memoiser.has(object)) { - return _core.types.cloneNode(this.memoiser.get(object)); - } - return _core.types.cloneNode(object); - }, - get(member) { - const { - classRef, - privateNamesMap, - file, - innerBinding - } = this; - const { - name - } = member.node.property.id; - const { - id, - static: isStatic, - method: isMethod, - methodId, - getId, - setId - } = privateNamesMap.get(name); - const isAccessor = getId || setId; - if (isStatic) { - const helperName = isMethod && !isAccessor ? "classStaticPrivateMethodGet" : "classStaticPrivateFieldSpecGet"; - unshadow(classRef.name, member.scope, innerBinding); - return _core.types.callExpression(file.addHelper(helperName), [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id)]); - } - if (isMethod) { - if (isAccessor) { - if (!getId && setId) { - if (file.availableHelper("writeOnlyError")) { - return _core.types.sequenceExpression([this.receiver(member), _core.types.callExpression(file.addHelper("writeOnlyError"), [_core.types.stringLiteral(`#${name}`)])]); - } - console.warn(`@babel/helpers is outdated, update it to silence this warning.`); - } - return _core.types.callExpression(file.addHelper("classPrivateFieldGet"), [this.receiver(member), _core.types.cloneNode(id)]); - } - return _core.types.callExpression(file.addHelper("classPrivateMethodGet"), [this.receiver(member), _core.types.cloneNode(id), _core.types.cloneNode(methodId)]); - } - return _core.types.callExpression(file.addHelper("classPrivateFieldGet"), [this.receiver(member), _core.types.cloneNode(id)]); - }, - boundGet(member) { - this.memoise(member, 1); - return _core.types.callExpression(_core.types.memberExpression(this.get(member), _core.types.identifier("bind")), [this.receiver(member)]); - }, - set(member, value) { - const { - classRef, - privateNamesMap, - file - } = this; - const { - name - } = member.node.property.id; - const { - id, - static: isStatic, - method: isMethod, - setId, - getId - } = privateNamesMap.get(name); - const isAccessor = getId || setId; - if (isStatic) { - const helperName = isMethod && !isAccessor ? "classStaticPrivateMethodSet" : "classStaticPrivateFieldSpecSet"; - return _core.types.callExpression(file.addHelper(helperName), [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id), value]); - } - if (isMethod) { - if (setId) { - return _core.types.callExpression(file.addHelper("classPrivateFieldSet"), [this.receiver(member), _core.types.cloneNode(id), value]); - } - return _core.types.sequenceExpression([this.receiver(member), value, _core.types.callExpression(file.addHelper("readOnlyError"), [_core.types.stringLiteral(`#${name}`)])]); - } - return _core.types.callExpression(file.addHelper("classPrivateFieldSet"), [this.receiver(member), _core.types.cloneNode(id), value]); - }, - destructureSet(member) { - const { - classRef, - privateNamesMap, - file - } = this; - const { - name - } = member.node.property.id; - const { - id, - static: isStatic - } = privateNamesMap.get(name); - if (isStatic) { - try { - var helper = file.addHelper("classStaticPrivateFieldDestructureSet"); - } catch (_unused) { - throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \n" + "please update @babel/helpers to the latest version."); - } - return _core.types.memberExpression(_core.types.callExpression(helper, [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id)]), _core.types.identifier("value")); - } - return _core.types.memberExpression(_core.types.callExpression(file.addHelper("classPrivateFieldDestructureSet"), [this.receiver(member), _core.types.cloneNode(id)]), _core.types.identifier("value")); - }, - call(member, args) { - this.memoise(member, 1); - return (0, _helperOptimiseCallExpression.default)(this.get(member), this.receiver(member), args, false); - }, - optionalCall(member, args) { - this.memoise(member, 1); - return (0, _helperOptimiseCallExpression.default)(this.get(member), this.receiver(member), args, true); - }, - delete() { - throw new Error("Internal Babel error: deleting private elements is a parsing error."); - } -}; -const privateNameHandlerLoose = { - get(member) { - const { - privateNamesMap, - file - } = this; - const { - object - } = member.node; - const { - name - } = member.node.property.id; - return _core.template.expression`BASE(REF, PROP)[PROP]`({ - BASE: file.addHelper("classPrivateFieldLooseBase"), - REF: _core.types.cloneNode(object), - PROP: _core.types.cloneNode(privateNamesMap.get(name).id) - }); - }, - set() { - throw new Error("private name handler with loose = true don't need set()"); - }, - boundGet(member) { - return _core.types.callExpression(_core.types.memberExpression(this.get(member), _core.types.identifier("bind")), [_core.types.cloneNode(member.node.object)]); - }, - simpleSet(member) { - return this.get(member); - }, - destructureSet(member) { - return this.get(member); - }, - call(member, args) { - return _core.types.callExpression(this.get(member), args); - }, - optionalCall(member, args) { - return _core.types.optionalCallExpression(this.get(member), args, true); - }, - delete() { - throw new Error("Internal Babel error: deleting private elements is a parsing error."); - } -}; -function transformPrivateNamesUsage(ref, path, privateNamesMap, { - privateFieldsAsProperties, - noDocumentAll, - innerBinding -}, state) { - if (!privateNamesMap.size) return; - const body = path.get("body"); - const handler = privateFieldsAsProperties ? privateNameHandlerLoose : privateNameHandlerSpec; - (0, _helperMemberExpressionToFunctions.default)(body, privateNameVisitor, Object.assign({ - privateNamesMap, - classRef: ref, - file: state - }, handler, { - noDocumentAll, - innerBinding - })); - body.traverse(privateInVisitor, { - privateNamesMap, - classRef: ref, - file: state, - privateFieldsAsProperties, - innerBinding - }); -} -function buildPrivateFieldInitLoose(ref, prop, privateNamesMap) { - const { - id - } = privateNamesMap.get(prop.node.key.id.name); - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${_core.types.cloneNode(id)}, { - // configurable is false by default - // enumerable is false by default - writable: true, - value: ${value} - }); - `, prop); -} -function buildPrivateInstanceFieldInitSpec(ref, prop, privateNamesMap, state) { - const { - id - } = privateNamesMap.get(prop.node.key.id.name); - const value = prop.node.value || prop.scope.buildUndefinedNode(); - { - if (!state.availableHelper("classPrivateFieldInitSpec")) { - return inheritPropComments(_core.template.statement.ast`${_core.types.cloneNode(id)}.set(${ref}, { - // configurable is always false for private elements - // enumerable is always false for private elements - writable: true, - value: ${value}, - })`, prop); - } - } - const helper = state.addHelper("classPrivateFieldInitSpec"); - return inheritPropComments(_core.template.statement.ast`${helper}( - ${_core.types.thisExpression()}, - ${_core.types.cloneNode(id)}, - { - writable: true, - value: ${value} - }, - )`, prop); -} -function buildPrivateStaticFieldInitSpec(prop, privateNamesMap) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - getId, - setId, - initAdded - } = privateName; - const isAccessor = getId || setId; - if (!prop.isProperty() && (initAdded || !isAccessor)) return; - if (isAccessor) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - return inheritPropComments(_core.template.statement.ast` - var ${_core.types.cloneNode(id)} = { - // configurable is false by default - // enumerable is false by default - // writable is false by default - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - } - `, prop); - } - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.template.statement.ast` - var ${_core.types.cloneNode(id)} = { - // configurable is false by default - // enumerable is false by default - writable: true, - value: ${value} - }; - `, prop); -} -function buildPrivateMethodInitLoose(ref, prop, privateNamesMap) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - methodId, - id, - getId, - setId, - initAdded - } = privateName; - if (initAdded) return; - if (methodId) { - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - value: ${methodId.name} - }); - `, prop); - } - const isAccessor = getId || setId; - if (isAccessor) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }); - `, prop); - } -} -function buildPrivateInstanceMethodInitSpec(ref, prop, privateNamesMap, state) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - getId, - setId, - initAdded - } = privateName; - if (initAdded) return; - const isAccessor = getId || setId; - if (isAccessor) { - return buildPrivateAccessorInitialization(ref, prop, privateNamesMap, state); - } - return buildPrivateInstanceMethodInitialization(ref, prop, privateNamesMap, state); -} -function buildPrivateAccessorInitialization(ref, prop, privateNamesMap, state) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - getId, - setId - } = privateName; - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - { - if (!state.availableHelper("classPrivateFieldInitSpec")) { - return inheritPropComments(_core.template.statement.ast` - ${id}.set(${ref}, { - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }); - `, prop); - } - } - const helper = state.addHelper("classPrivateFieldInitSpec"); - return inheritPropComments(_core.template.statement.ast`${helper}( - ${_core.types.thisExpression()}, - ${_core.types.cloneNode(id)}, - { - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }, - )`, prop); -} -function buildPrivateInstanceMethodInitialization(ref, prop, privateNamesMap, state) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id - } = privateName; - { - if (!state.availableHelper("classPrivateMethodInitSpec")) { - return inheritPropComments(_core.template.statement.ast`${id}.add(${ref})`, prop); - } - } - const helper = state.addHelper("classPrivateMethodInitSpec"); - return inheritPropComments(_core.template.statement.ast`${helper}( - ${_core.types.thisExpression()}, - ${_core.types.cloneNode(id)} - )`, prop); -} -function buildPublicFieldInitLoose(ref, prop) { - const { - key, - computed - } = prop.node; - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(ref, key, computed || _core.types.isLiteral(key)), value)), prop); -} -function buildPublicFieldInitSpec(ref, prop, state) { - const { - key, - computed - } = prop.node; - const value = prop.node.value || prop.scope.buildUndefinedNode(); - return inheritPropComments(_core.types.expressionStatement(_core.types.callExpression(state.addHelper("defineProperty"), [ref, computed || _core.types.isLiteral(key) ? key : _core.types.stringLiteral(key.name), value])), prop); -} -function buildPrivateStaticMethodInitLoose(ref, prop, state, privateNamesMap) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - methodId, - getId, - setId, - initAdded - } = privateName; - if (initAdded) return; - const isAccessor = getId || setId; - if (isAccessor) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - initAdded: true - })); - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, - set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} - }) - `, prop); - } - return inheritPropComments(_core.template.statement.ast` - Object.defineProperty(${ref}, ${id}, { - // configurable is false by default - // enumerable is false by default - // writable is false by default - value: ${methodId.name} - }); - `, prop); -} -function buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties = false) { - const privateName = privateNamesMap.get(prop.node.key.id.name); - const { - id, - methodId, - getId, - setId, - getterDeclared, - setterDeclared, - static: isStatic - } = privateName; - const { - params, - body, - generator, - async - } = prop.node; - const isGetter = getId && !getterDeclared && params.length === 0; - const isSetter = setId && !setterDeclared && params.length > 0; - let declId = methodId; - if (isGetter) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - getterDeclared: true - })); - declId = getId; - } else if (isSetter) { - privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { - setterDeclared: true - })); - declId = setId; - } else if (isStatic && !privateFieldsAsProperties) { - declId = id; - } - return inheritPropComments(_core.types.functionDeclaration(_core.types.cloneNode(declId), params, body, generator, async), prop); -} -const thisContextVisitor = _core.traverse.visitors.merge([{ - ThisExpression(path, state) { - const parent = path.findParent(path => !(0, _helperSkipTransparentExpressionWrappers.isTransparentExprWrapper)(path.node)); - if (_core.types.isUnaryExpression(parent.node, { - operator: "delete" - })) { - path.parentPath.replaceWith(_core.types.booleanLiteral(true)); - return; - } - state.needsClassRef = true; - path.replaceWith(_core.types.cloneNode(state.classRef)); - }, - MetaProperty(path) { - const meta = path.get("meta"); - const property = path.get("property"); - const { - scope - } = path; - if (meta.isIdentifier({ - name: "new" - }) && property.isIdentifier({ - name: "target" - })) { - path.replaceWith(scope.buildUndefinedNode()); - } - } -}, _helperEnvironmentVisitor.default]); -const innerReferencesVisitor = { - ReferencedIdentifier(path, state) { - if (path.scope.bindingIdentifierEquals(path.node.name, state.innerBinding)) { - state.needsClassRef = true; - path.node.name = state.classRef.name; - } - } -}; -function replaceThisContext(path, ref, getSuperRef, file, isStaticBlock, constantSuper, innerBindingRef) { - var _state$classRef; - const state = { - classRef: ref, - needsClassRef: false, - innerBinding: innerBindingRef - }; - const replacer = new _helperReplaceSupers.default({ - methodPath: path, - constantSuper, - file, - refToPreserve: ref, - getSuperRef, - getObjectRef() { - state.needsClassRef = true; - return _core.types.isStaticBlock != null && _core.types.isStaticBlock(path.node) || path.node.static ? ref : _core.types.memberExpression(ref, _core.types.identifier("prototype")); - } - }); - replacer.replace(); - if (isStaticBlock || path.isProperty()) { - path.traverse(thisContextVisitor, state); - } - if (innerBindingRef != null && (_state$classRef = state.classRef) != null && _state$classRef.name && state.classRef.name !== (innerBindingRef == null ? void 0 : innerBindingRef.name)) { - path.traverse(innerReferencesVisitor, state); - } - return state.needsClassRef; -} -function isNameOrLength({ - key, - computed -}) { - if (key.type === "Identifier") { - return !computed && (key.name === "name" || key.name === "length"); - } - if (key.type === "StringLiteral") { - return key.value === "name" || key.value === "length"; - } - return false; -} -function inheritPropComments(node, prop) { - _core.types.inheritLeadingComments(node, prop.node); - _core.types.inheritInnerComments(node, prop.node); - return node; -} -function buildFieldsInitNodes(ref, superRef, props, privateNamesMap, state, setPublicClassFields, privateFieldsAsProperties, constantSuper, innerBindingRef) { - let needsClassRef = false; - let injectSuperRef; - const staticNodes = []; - const instanceNodes = []; - const pureStaticNodes = []; - const getSuperRef = _core.types.isIdentifier(superRef) ? () => superRef : () => { - var _injectSuperRef; - (_injectSuperRef = injectSuperRef) != null ? _injectSuperRef : injectSuperRef = props[0].scope.generateUidIdentifierBasedOnNode(superRef); - return injectSuperRef; - }; - for (const prop of props) { - prop.isClassProperty() && ts.assertFieldTransformed(prop); - const isStatic = !(_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node)) && prop.node.static; - const isInstance = !isStatic; - const isPrivate = prop.isPrivate(); - const isPublic = !isPrivate; - const isField = prop.isProperty(); - const isMethod = !isField; - const isStaticBlock = prop.isStaticBlock == null ? void 0 : prop.isStaticBlock(); - if (isStatic || isMethod && isPrivate || isStaticBlock) { - const replaced = replaceThisContext(prop, ref, getSuperRef, state, isStaticBlock, constantSuper, innerBindingRef); - needsClassRef = needsClassRef || replaced; - } - switch (true) { - case isStaticBlock: - { - const blockBody = prop.node.body; - if (blockBody.length === 1 && _core.types.isExpressionStatement(blockBody[0])) { - staticNodes.push(inheritPropComments(blockBody[0], prop)); - } else { - staticNodes.push(_core.types.inheritsComments(_core.template.statement.ast`(() => { ${blockBody} })()`, prop.node)); - } - break; - } - case isStatic && isPrivate && isField && privateFieldsAsProperties: - needsClassRef = true; - staticNodes.push(buildPrivateFieldInitLoose(_core.types.cloneNode(ref), prop, privateNamesMap)); - break; - case isStatic && isPrivate && isField && !privateFieldsAsProperties: - needsClassRef = true; - staticNodes.push(buildPrivateStaticFieldInitSpec(prop, privateNamesMap)); - break; - case isStatic && isPublic && isField && setPublicClassFields: - if (!isNameOrLength(prop.node)) { - needsClassRef = true; - staticNodes.push(buildPublicFieldInitLoose(_core.types.cloneNode(ref), prop)); - break; - } - case isStatic && isPublic && isField && !setPublicClassFields: - needsClassRef = true; - staticNodes.push(buildPublicFieldInitSpec(_core.types.cloneNode(ref), prop, state)); - break; - case isInstance && isPrivate && isField && privateFieldsAsProperties: - instanceNodes.push(buildPrivateFieldInitLoose(_core.types.thisExpression(), prop, privateNamesMap)); - break; - case isInstance && isPrivate && isField && !privateFieldsAsProperties: - instanceNodes.push(buildPrivateInstanceFieldInitSpec(_core.types.thisExpression(), prop, privateNamesMap, state)); - break; - case isInstance && isPrivate && isMethod && privateFieldsAsProperties: - instanceNodes.unshift(buildPrivateMethodInitLoose(_core.types.thisExpression(), prop, privateNamesMap)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isInstance && isPrivate && isMethod && !privateFieldsAsProperties: - instanceNodes.unshift(buildPrivateInstanceMethodInitSpec(_core.types.thisExpression(), prop, privateNamesMap, state)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isStatic && isPrivate && isMethod && !privateFieldsAsProperties: - needsClassRef = true; - staticNodes.unshift(buildPrivateStaticFieldInitSpec(prop, privateNamesMap)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isStatic && isPrivate && isMethod && privateFieldsAsProperties: - needsClassRef = true; - staticNodes.unshift(buildPrivateStaticMethodInitLoose(_core.types.cloneNode(ref), prop, state, privateNamesMap)); - pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); - break; - case isInstance && isPublic && isField && setPublicClassFields: - instanceNodes.push(buildPublicFieldInitLoose(_core.types.thisExpression(), prop)); - break; - case isInstance && isPublic && isField && !setPublicClassFields: - instanceNodes.push(buildPublicFieldInitSpec(_core.types.thisExpression(), prop, state)); - break; - default: - throw new Error("Unreachable."); - } - } - return { - staticNodes: staticNodes.filter(Boolean), - instanceNodes: instanceNodes.filter(Boolean), - pureStaticNodes: pureStaticNodes.filter(Boolean), - wrapClass(path) { - for (const prop of props) { - prop.node.leadingComments = null; - prop.remove(); - } - if (injectSuperRef) { - path.scope.push({ - id: _core.types.cloneNode(injectSuperRef) - }); - path.set("superClass", _core.types.assignmentExpression("=", injectSuperRef, path.node.superClass)); - } - if (!needsClassRef) return path; - if (path.isClassExpression()) { - path.scope.push({ - id: ref - }); - path.replaceWith(_core.types.assignmentExpression("=", _core.types.cloneNode(ref), path.node)); - } else if (!path.node.id) { - path.node.id = ref; - } - return path; - } - }; -} - -//# sourceMappingURL=fields.js.map - - -/***/ }), - -/***/ 14414: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "FEATURES", ({ - enumerable: true, - get: function () { - return _features.FEATURES; - } -})); -Object.defineProperty(exports, "buildCheckInRHS", ({ - enumerable: true, - get: function () { - return _fields.buildCheckInRHS; - } -})); -exports.createClassFeaturePlugin = createClassFeaturePlugin; -Object.defineProperty(exports, "enableFeature", ({ - enumerable: true, - get: function () { - return _features.enableFeature; - } -})); -Object.defineProperty(exports, "injectInitialization", ({ - enumerable: true, - get: function () { - return _misc.injectInitialization; - } -})); -var _core = __nccwpck_require__(27324); -var _helperFunctionName = __nccwpck_require__(28850); -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -var _semver = __nccwpck_require__(8999); -var _fields = __nccwpck_require__(90506); -var _decorators = __nccwpck_require__(5975); -var _misc = __nccwpck_require__(50719); -var _features = __nccwpck_require__(31756); -var _typescript = __nccwpck_require__(22051); -const versionKey = "@babel/plugin-class-features/version"; -function createClassFeaturePlugin({ - name, - feature, - loose, - manipulateOptions, - api, - inherits -}) { - { - var _api; - (_api = api) != null ? _api : api = { - assumption: () => void 0 - }; - } - const setPublicClassFields = api.assumption("setPublicClassFields"); - const privateFieldsAsSymbols = api.assumption("privateFieldsAsSymbols"); - const privateFieldsAsProperties = api.assumption("privateFieldsAsProperties"); - const constantSuper = api.assumption("constantSuper"); - const noDocumentAll = api.assumption("noDocumentAll"); - if (privateFieldsAsProperties && privateFieldsAsSymbols) { - throw new Error(`Cannot enable both the "privateFieldsAsProperties" and ` + `"privateFieldsAsSymbols" assumptions as the same time.`); - } - const privateFieldsAsSymbolsOrProperties = privateFieldsAsProperties || privateFieldsAsSymbols; - if (loose === true) { - const explicit = []; - if (setPublicClassFields !== undefined) { - explicit.push(`"setPublicClassFields"`); - } - if (privateFieldsAsProperties !== undefined) { - explicit.push(`"privateFieldsAsProperties"`); - } - if (privateFieldsAsSymbols !== undefined) { - explicit.push(`"privateFieldsAsSymbols"`); - } - if (explicit.length !== 0) { - console.warn(`[${name}]: You are using the "loose: true" option and you are` + ` explicitly setting a value for the ${explicit.join(" and ")}` + ` assumption${explicit.length > 1 ? "s" : ""}. The "loose" option` + ` can cause incompatibilities with the other class features` + ` plugins, so it's recommended that you replace it with the` + ` following top-level option:\n` + `\t"assumptions": {\n` + `\t\t"setPublicClassFields": true,\n` + `\t\t"privateFieldsAsSymbols": true\n` + `\t}`); - } - } - return { - name, - manipulateOptions, - inherits, - pre(file) { - (0, _features.enableFeature)(file, feature, loose); - { - if (typeof file.get(versionKey) === "number") { - file.set(versionKey, "7.22.5"); - return; - } - } - if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.22.5")) { - file.set(versionKey, "7.22.5"); - } - }, - visitor: { - Class(path, { - file - }) { - if (file.get(versionKey) !== "7.22.5") return; - if (!(0, _features.shouldTransform)(path, file)) return; - if (path.isClassDeclaration()) (0, _typescript.assertFieldTransformed)(path); - const loose = (0, _features.isLoose)(file, feature); - let constructor; - const isDecorated = (0, _decorators.hasDecorators)(path.node); - const props = []; - const elements = []; - const computedPaths = []; - const privateNames = new Set(); - const body = path.get("body"); - for (const path of body.get("body")) { - if ((path.isClassProperty() || path.isClassMethod()) && path.node.computed) { - computedPaths.push(path); - } - if (path.isPrivate()) { - const { - name - } = path.node.key.id; - const getName = `get ${name}`; - const setName = `set ${name}`; - if (path.isClassPrivateMethod()) { - if (path.node.kind === "get") { - if (privateNames.has(getName) || privateNames.has(name) && !privateNames.has(setName)) { - throw path.buildCodeFrameError("Duplicate private field"); - } - privateNames.add(getName).add(name); - } else if (path.node.kind === "set") { - if (privateNames.has(setName) || privateNames.has(name) && !privateNames.has(getName)) { - throw path.buildCodeFrameError("Duplicate private field"); - } - privateNames.add(setName).add(name); - } - } else { - if (privateNames.has(name) && !privateNames.has(getName) && !privateNames.has(setName) || privateNames.has(name) && (privateNames.has(getName) || privateNames.has(setName))) { - throw path.buildCodeFrameError("Duplicate private field"); - } - privateNames.add(name); - } - } - if (path.isClassMethod({ - kind: "constructor" - })) { - constructor = path; - } else { - elements.push(path); - if (path.isProperty() || path.isPrivate() || path.isStaticBlock != null && path.isStaticBlock()) { - props.push(path); - } - } - } - { - if (!props.length && !isDecorated) return; - } - const innerBinding = path.node.id; - let ref; - if (!innerBinding || path.isClassExpression()) { - (0, _helperFunctionName.default)(path); - ref = path.scope.generateUidIdentifier("class"); - } else { - ref = _core.types.cloneNode(path.node.id); - } - const privateNamesMap = (0, _fields.buildPrivateNamesMap)(props); - const privateNamesNodes = (0, _fields.buildPrivateNamesNodes)(privateNamesMap, privateFieldsAsProperties != null ? privateFieldsAsProperties : loose, privateFieldsAsSymbols != null ? privateFieldsAsSymbols : false, file); - (0, _fields.transformPrivateNamesUsage)(ref, path, privateNamesMap, { - privateFieldsAsProperties: privateFieldsAsSymbolsOrProperties != null ? privateFieldsAsSymbolsOrProperties : loose, - noDocumentAll, - innerBinding - }, file); - let keysNodes, staticNodes, instanceNodes, pureStaticNodes, wrapClass; - { - if (isDecorated) { - staticNodes = pureStaticNodes = keysNodes = []; - ({ - instanceNodes, - wrapClass - } = (0, _decorators.buildDecoratedClass)(ref, path, elements, file)); - } else { - keysNodes = (0, _misc.extractComputedKeys)(path, computedPaths, file); - ({ - staticNodes, - pureStaticNodes, - instanceNodes, - wrapClass - } = (0, _fields.buildFieldsInitNodes)(ref, path.node.superClass, props, privateNamesMap, file, setPublicClassFields != null ? setPublicClassFields : loose, privateFieldsAsSymbolsOrProperties != null ? privateFieldsAsSymbolsOrProperties : loose, constantSuper != null ? constantSuper : loose, innerBinding)); - } - } - if (instanceNodes.length > 0) { - (0, _misc.injectInitialization)(path, constructor, instanceNodes, (referenceVisitor, state) => { - { - if (isDecorated) return; - } - for (const prop of props) { - if (_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node) || prop.node.static) continue; - prop.traverse(referenceVisitor, state); - } - }); - } - const wrappedPath = wrapClass(path); - wrappedPath.insertBefore([...privateNamesNodes, ...keysNodes]); - if (staticNodes.length > 0) { - wrappedPath.insertAfter(staticNodes); - } - if (pureStaticNodes.length > 0) { - wrappedPath.find(parent => parent.isStatement() || parent.isDeclaration()).insertAfter(pureStaticNodes); - } - }, - ExportDefaultDeclaration(path, { - file - }) { - { - if (file.get(versionKey) !== "7.22.5") return; - const decl = path.get("declaration"); - if (decl.isClassDeclaration() && (0, _decorators.hasDecorators)(decl.node)) { - if (decl.node.id) { - (0, _helperSplitExportDeclaration.default)(path); - } else { - decl.node.type = "ClassExpression"; - } - } - } - } - } - }; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 50719: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.extractComputedKeys = extractComputedKeys; -exports.injectInitialization = injectInitialization; -var _core = __nccwpck_require__(27324); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -const findBareSupers = _core.traverse.visitors.merge([{ - Super(path) { - const { - node, - parentPath - } = path; - if (parentPath.isCallExpression({ - callee: node - })) { - this.push(parentPath); - } - } -}, _helperEnvironmentVisitor.default]); -const referenceVisitor = { - "TSTypeAnnotation|TypeAnnotation"(path) { - path.skip(); - }, - ReferencedIdentifier(path, { - scope - }) { - if (scope.hasOwnBinding(path.node.name)) { - scope.rename(path.node.name); - path.skip(); - } - } -}; -function handleClassTDZ(path, state) { - if (state.classBinding && state.classBinding === path.scope.getBinding(path.node.name)) { - const classNameTDZError = state.file.addHelper("classNameTDZError"); - const throwNode = _core.types.callExpression(classNameTDZError, [_core.types.stringLiteral(path.node.name)]); - path.replaceWith(_core.types.sequenceExpression([throwNode, path.node])); - path.skip(); - } -} -const classFieldDefinitionEvaluationTDZVisitor = { - ReferencedIdentifier: handleClassTDZ -}; -function injectInitialization(path, constructor, nodes, renamer) { - if (!nodes.length) return; - const isDerived = !!path.node.superClass; - if (!constructor) { - const newConstructor = _core.types.classMethod("constructor", _core.types.identifier("constructor"), [], _core.types.blockStatement([])); - if (isDerived) { - newConstructor.params = [_core.types.restElement(_core.types.identifier("args"))]; - newConstructor.body.body.push(_core.template.statement.ast`super(...args)`); - } - [constructor] = path.get("body").unshiftContainer("body", newConstructor); - } - if (renamer) { - renamer(referenceVisitor, { - scope: constructor.scope - }); - } - if (isDerived) { - const bareSupers = []; - constructor.traverse(findBareSupers, bareSupers); - let isFirst = true; - for (const bareSuper of bareSupers) { - if (isFirst) { - bareSuper.insertAfter(nodes); - isFirst = false; - } else { - bareSuper.insertAfter(nodes.map(n => _core.types.cloneNode(n))); - } - } - } else { - constructor.get("body").unshiftContainer("body", nodes); - } -} -function extractComputedKeys(path, computedPaths, file) { - const declarations = []; - const state = { - classBinding: path.node.id && path.scope.getBinding(path.node.id.name), - file - }; - for (const computedPath of computedPaths) { - const computedKey = computedPath.get("key"); - if (computedKey.isReferencedIdentifier()) { - handleClassTDZ(computedKey, state); - } else { - computedKey.traverse(classFieldDefinitionEvaluationTDZVisitor, state); - } - const computedNode = computedPath.node; - if (!computedKey.isConstantExpression()) { - const ident = path.scope.generateUidIdentifierBasedOnNode(computedNode.key); - path.scope.push({ - id: ident, - kind: "let" - }); - declarations.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(ident), computedNode.key))); - computedNode.key = _core.types.cloneNode(ident); - } - } - return declarations; -} - -//# sourceMappingURL=misc.js.map - - -/***/ }), - -/***/ 22051: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.assertFieldTransformed = assertFieldTransformed; -function assertFieldTransformed(path) { - if (path.node.declare || false) { - throw path.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by ` + `@babel/plugin-transform-typescript.\n` + `If you have already enabled that plugin (or '@babel/preset-typescript'), make sure ` + `that it runs before any plugin related to additional class features:\n` + ` - @babel/plugin-transform-class-properties\n` + ` - @babel/plugin-transform-private-methods\n` + ` - @babel/plugin-proposal-decorators`); - } -} - -//# sourceMappingURL=typescript.js.map - - -/***/ }), - -/***/ 72347: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.FEATURES = void 0; -exports.enableFeature = enableFeature; -exports.featuresKey = void 0; -exports.hasFeature = hasFeature; -exports.runtimeKey = void 0; -const FEATURES = Object.freeze({ - unicodeFlag: 1 << 0, - dotAllFlag: 1 << 1, - unicodePropertyEscape: 1 << 2, - namedCaptureGroups: 1 << 3, - unicodeSetsFlag_syntax: 1 << 4, - unicodeSetsFlag: 1 << 5, - duplicateNamedCaptureGroups: 1 << 6 -}); - -exports.FEATURES = FEATURES; -const featuresKey = "@babel/plugin-regexp-features/featuresKey"; -exports.featuresKey = featuresKey; -const runtimeKey = "@babel/plugin-regexp-features/runtimeKey"; -exports.runtimeKey = runtimeKey; -function enableFeature(features, feature) { - return features | feature; -} -function hasFeature(features, feature) { - return !!(features & feature); -} - -//# sourceMappingURL=features.js.map - - -/***/ }), - -/***/ 37179: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createRegExpFeaturePlugin = createRegExpFeaturePlugin; -var _regexpuCore = __nccwpck_require__(90086); -var _features = __nccwpck_require__(72347); -var _util = __nccwpck_require__(32844); -var _core = __nccwpck_require__(27324); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -const version = "7.20.5".split(".").reduce((v, x) => v * 1e5 + +x, 0); -const versionKey = "@babel/plugin-regexp-features/version"; -function createRegExpFeaturePlugin({ - name, - feature, - options = {}, - manipulateOptions = () => {} -}) { - return { - name, - manipulateOptions, - pre() { - var _file$get; - const { - file - } = this; - const features = (_file$get = file.get(_features.featuresKey)) != null ? _file$get : 0; - let newFeatures = (0, _features.enableFeature)(features, _features.FEATURES[feature]); - const { - useUnicodeFlag, - runtime - } = options; - if (useUnicodeFlag === false) { - newFeatures = (0, _features.enableFeature)(newFeatures, _features.FEATURES.unicodeFlag); - } - if (newFeatures !== features) { - file.set(_features.featuresKey, newFeatures); - } - if (runtime !== undefined) { - if (file.has(_features.runtimeKey) && file.get(_features.runtimeKey) !== runtime && - (0, _features.hasFeature)(newFeatures, _features.FEATURES.duplicateNamedCaptureGroups)) { - throw new Error(`The 'runtime' option must be the same for ` + `'@babel/plugin-transform-named-capturing-groups-regex' and ` + `'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`); - } - if (feature === "namedCaptureGroups") { - if (!runtime || !file.has(_features.runtimeKey)) file.set(_features.runtimeKey, runtime); - } else { - file.set(_features.runtimeKey, runtime); - } - } - if (!file.has(versionKey) || file.get(versionKey) < version) { - file.set(versionKey, version); - } - }, - visitor: { - RegExpLiteral(path) { - var _file$get2; - const { - node - } = path; - const { - file - } = this; - const features = file.get(_features.featuresKey); - const runtime = (_file$get2 = file.get(_features.runtimeKey)) != null ? _file$get2 : true; - const regexpuOptions = (0, _util.generateRegexpuOptions)(node.pattern, features); - if ((0, _util.canSkipRegexpu)(node, regexpuOptions)) { - return; - } - const namedCaptureGroups = { - __proto__: null - }; - if (regexpuOptions.namedGroups === "transform") { - regexpuOptions.onNamedGroup = (name, index) => { - const prev = namedCaptureGroups[name]; - if (typeof prev === "number") { - namedCaptureGroups[name] = [prev, index]; - } else if (Array.isArray(prev)) { - prev.push(index); - } else { - namedCaptureGroups[name] = index; - } - }; - } - node.pattern = _regexpuCore(node.pattern, node.flags, regexpuOptions); - if (regexpuOptions.namedGroups === "transform" && Object.keys(namedCaptureGroups).length > 0 && runtime && !isRegExpTest(path)) { - const call = _core.types.callExpression(this.addHelper("wrapRegExp"), [node, _core.types.valueToNode(namedCaptureGroups)]); - (0, _helperAnnotateAsPure.default)(call); - path.replaceWith(call); - } - node.flags = (0, _util.transformFlags)(regexpuOptions, node.flags); - } - } - }; -} -function isRegExpTest(path) { - return path.parentPath.isMemberExpression({ - object: path.node, - computed: false - }) && path.parentPath.get("property").isIdentifier({ - name: "test" - }); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 32844: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.canSkipRegexpu = canSkipRegexpu; -exports.generateRegexpuOptions = generateRegexpuOptions; -exports.transformFlags = transformFlags; -var _features = __nccwpck_require__(72347); -function generateRegexpuOptions(pattern, toTransform) { - const feat = (name, ok = "transform") => { - return (0, _features.hasFeature)(toTransform, _features.FEATURES[name]) ? ok : false; - }; - const featDuplicateNamedGroups = () => { - if (!feat("duplicateNamedCaptureGroups")) return false; - - const regex = /\(\?<([^>]+)>/g; - const seen = new Set(); - for (let match; match = regex.exec(pattern); seen.add(match[1])) { - if (seen.has(match[1])) return "transform"; - } - return false; - }; - return { - unicodeFlag: feat("unicodeFlag"), - unicodeSetsFlag: feat("unicodeSetsFlag") || feat("unicodeSetsFlag_syntax", "parse"), - dotAllFlag: feat("dotAllFlag"), - unicodePropertyEscapes: feat("unicodePropertyEscape"), - namedGroups: feat("namedCaptureGroups") || featDuplicateNamedGroups(), - onNamedGroup: () => {} - }; -} -function canSkipRegexpu(node, options) { - const { - flags, - pattern - } = node; - if (flags.includes("v")) { - if (options.unicodeSetsFlag === "transform") return false; - } - if (flags.includes("u")) { - if (options.unicodeFlag === "transform") return false; - if (options.unicodePropertyEscapes === "transform" && /\\[pP]{/.test(pattern)) { - return false; - } - } - if (flags.includes("s")) { - if (options.dotAllFlag === "transform") return false; - } - if (options.namedGroups === "transform" && /\(\?<(?![=!])/.test(pattern)) { - return false; - } - return true; -} -function transformFlags(regexpuOptions, flags) { - if (regexpuOptions.unicodeSetsFlag === "transform") { - flags = flags.replace("v", "u"); - } - if (regexpuOptions.unicodeFlag === "transform") { - flags = flags.replace("u", ""); - } - if (regexpuOptions.dotAllFlag === "transform") { - flags = flags.replace("s", ""); - } - return flags; -} - -//# sourceMappingURL=util.js.map - - -/***/ }), - -/***/ 69748: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.FEATURES = void 0; -exports.enableFeature = enableFeature; -exports.featuresKey = void 0; -exports.hasFeature = hasFeature; -exports.runtimeKey = void 0; -const FEATURES = Object.freeze({ - unicodeFlag: 1 << 0, - dotAllFlag: 1 << 1, - unicodePropertyEscape: 1 << 2, - namedCaptureGroups: 1 << 3, - unicodeSetsFlag_syntax: 1 << 4, - unicodeSetsFlag: 1 << 5, - duplicateNamedCaptureGroups: 1 << 6, - modifiers: 1 << 7 -}); -exports.FEATURES = FEATURES; -const featuresKey = "@babel/plugin-regexp-features/featuresKey"; -exports.featuresKey = featuresKey; -const runtimeKey = "@babel/plugin-regexp-features/runtimeKey"; -exports.runtimeKey = runtimeKey; -function enableFeature(features, feature) { - return features | feature; -} -function hasFeature(features, feature) { - return !!(features & feature); -} - -//# sourceMappingURL=features.js.map - - -/***/ }), - -/***/ 12632: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createRegExpFeaturePlugin = createRegExpFeaturePlugin; -var _regexpuCore = __nccwpck_require__(64864); -var _core = __nccwpck_require__(27324); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _semver = __nccwpck_require__(8999); -var _features = __nccwpck_require__(69748); -var _util = __nccwpck_require__(99088); -const versionKey = "@babel/plugin-regexp-features/version"; -function createRegExpFeaturePlugin({ - name, - feature, - options = {}, - manipulateOptions = () => {} -}) { - return { - name, - manipulateOptions, - pre() { - var _file$get; - const { - file - } = this; - const features = (_file$get = file.get(_features.featuresKey)) != null ? _file$get : 0; - let newFeatures = (0, _features.enableFeature)(features, _features.FEATURES[feature]); - const { - useUnicodeFlag, - runtime - } = options; - if (useUnicodeFlag === false) { - newFeatures = (0, _features.enableFeature)(newFeatures, _features.FEATURES.unicodeFlag); - } - if (newFeatures !== features) { - file.set(_features.featuresKey, newFeatures); - } - if (runtime !== undefined) { - if (file.has(_features.runtimeKey) && file.get(_features.runtimeKey) !== runtime && (0, _features.hasFeature)(newFeatures, _features.FEATURES.duplicateNamedCaptureGroups)) { - throw new Error(`The 'runtime' option must be the same for ` + `'@babel/plugin-transform-named-capturing-groups-regex' and ` + `'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`); - } - if (feature === "namedCaptureGroups") { - if (!runtime || !file.has(_features.runtimeKey)) file.set(_features.runtimeKey, runtime); - } else { - file.set(_features.runtimeKey, runtime); - } - } - { - if (typeof file.get(versionKey) === "number") { - file.set(versionKey, "7.22.5"); - return; - } - } - if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.22.5")) { - file.set(versionKey, "7.22.5"); - } - }, - visitor: { - RegExpLiteral(path) { - var _file$get2, _newFlags; - const { - node - } = path; - const { - file - } = this; - const features = file.get(_features.featuresKey); - const runtime = (_file$get2 = file.get(_features.runtimeKey)) != null ? _file$get2 : true; - const regexpuOptions = (0, _util.generateRegexpuOptions)(node.pattern, features); - if ((0, _util.canSkipRegexpu)(node, regexpuOptions)) { - return; - } - const namedCaptureGroups = { - __proto__: null - }; - if (regexpuOptions.namedGroups === "transform") { - regexpuOptions.onNamedGroup = (name, index) => { - const prev = namedCaptureGroups[name]; - if (typeof prev === "number") { - namedCaptureGroups[name] = [prev, index]; - } else if (Array.isArray(prev)) { - prev.push(index); - } else { - namedCaptureGroups[name] = index; - } - }; - } - let newFlags; - if (regexpuOptions.modifiers === "transform") { - regexpuOptions.onNewFlags = flags => { - newFlags = flags; - }; - } - node.pattern = _regexpuCore(node.pattern, node.flags, regexpuOptions); - if (regexpuOptions.namedGroups === "transform" && Object.keys(namedCaptureGroups).length > 0 && runtime && !isRegExpTest(path)) { - const call = _core.types.callExpression(this.addHelper("wrapRegExp"), [node, _core.types.valueToNode(namedCaptureGroups)]); - (0, _helperAnnotateAsPure.default)(call); - path.replaceWith(call); - } - node.flags = (0, _util.transformFlags)(regexpuOptions, (_newFlags = newFlags) != null ? _newFlags : node.flags); - } - } - }; -} -function isRegExpTest(path) { - return path.parentPath.isMemberExpression({ - object: path.node, - computed: false - }) && path.parentPath.get("property").isIdentifier({ - name: "test" - }); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 99088: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.canSkipRegexpu = canSkipRegexpu; -exports.generateRegexpuOptions = generateRegexpuOptions; -exports.transformFlags = transformFlags; -var _features = __nccwpck_require__(69748); -function generateRegexpuOptions(pattern, toTransform) { - const feat = (name, ok = "transform") => { - return (0, _features.hasFeature)(toTransform, _features.FEATURES[name]) ? ok : false; - }; - const featDuplicateNamedGroups = () => { - if (!feat("duplicateNamedCaptureGroups")) return false; - const regex = /\(\?<([^>]+)>/g; - const seen = new Set(); - for (let match; match = regex.exec(pattern); seen.add(match[1])) { - if (seen.has(match[1])) return "transform"; - } - return false; - }; - return { - unicodeFlag: feat("unicodeFlag"), - unicodeSetsFlag: feat("unicodeSetsFlag") || "parse", - dotAllFlag: feat("dotAllFlag"), - unicodePropertyEscapes: feat("unicodePropertyEscape"), - namedGroups: feat("namedCaptureGroups") || featDuplicateNamedGroups(), - onNamedGroup: () => {}, - modifiers: feat("modifiers") - }; -} -function canSkipRegexpu(node, options) { - const { - flags, - pattern - } = node; - if (flags.includes("v")) { - if (options.unicodeSetsFlag === "transform") return false; - } - if (flags.includes("u")) { - if (options.unicodeFlag === "transform") return false; - if (options.unicodePropertyEscapes === "transform" && /\\[pP]{/.test(pattern)) { - return false; - } - } - if (flags.includes("s")) { - if (options.dotAllFlag === "transform") return false; - } - if (options.namedGroups === "transform" && /\(\?<(?![=!])/.test(pattern)) { - return false; - } - if (options.modifiers === "transform" && /\(\?[\w-]+:/.test(pattern)) { - return false; - } - return true; -} -function transformFlags(regexpuOptions, flags) { - if (regexpuOptions.unicodeSetsFlag === "transform") { - flags = flags.replace("v", "u"); - } - if (regexpuOptions.unicodeFlag === "transform") { - flags = flags.replace("u", ""); - } - if (regexpuOptions.dotAllFlag === "transform") { - flags = flags.replace("s", ""); - } - return flags; -} - -//# sourceMappingURL=util.js.map - - -/***/ }), - -/***/ 82828: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -exports.requeueComputedKeyAndDecorators = requeueComputedKeyAndDecorators; -{ - { - { - exports.skipAllButComputedKey = function skipAllButComputedKey(path) { - path.skip(); - if (path.node.computed) { - path.context.maybeQueue(path.get("key")); - } - }; - } - } -} -function requeueComputedKeyAndDecorators(path) { - const { - context, - node - } = path; - if (node.computed) { - context.maybeQueue(path.get("key")); - } - if (node.decorators) { - for (const decorator of path.get("decorators")) { - context.maybeQueue(decorator); - } - } -} -const visitor = { - FunctionParent(path) { - if (path.isArrowFunctionExpression()) { - return; - } else { - path.skip(); - if (path.isMethod()) { - requeueComputedKeyAndDecorators(path); - } - } - }, - Property(path) { - if (path.isObjectProperty()) { - return; - } - path.skip(); - requeueComputedKeyAndDecorators(path); - } -}; -var _default = visitor; -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 28850: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _template = __nccwpck_require__(52738); -var _t = __nccwpck_require__(53501); -const { - NOT_LOCAL_BINDING, - cloneNode, - identifier, - isAssignmentExpression, - isAssignmentPattern, - isFunction, - isIdentifier, - isLiteral, - isNullLiteral, - isObjectMethod, - isObjectProperty, - isRegExpLiteral, - isRestElement, - isTemplateLiteral, - isVariableDeclarator, - toBindingIdentifierName -} = _t; -function getFunctionArity(node) { - const count = node.params.findIndex(param => isAssignmentPattern(param) || isRestElement(param)); - return count === -1 ? node.params.length : count; -} -const buildPropertyMethodAssignmentWrapper = _template.default.statement(` - (function (FUNCTION_KEY) { - function FUNCTION_ID() { - return FUNCTION_KEY.apply(this, arguments); - } - - FUNCTION_ID.toString = function () { - return FUNCTION_KEY.toString(); - } - - return FUNCTION_ID; - })(FUNCTION) -`); -const buildGeneratorPropertyMethodAssignmentWrapper = _template.default.statement(` - (function (FUNCTION_KEY) { - function* FUNCTION_ID() { - return yield* FUNCTION_KEY.apply(this, arguments); - } - - FUNCTION_ID.toString = function () { - return FUNCTION_KEY.toString(); - }; - - return FUNCTION_ID; - })(FUNCTION) -`); -const visitor = { - "ReferencedIdentifier|BindingIdentifier"(path, state) { - if (path.node.name !== state.name) return; - const localDeclar = path.scope.getBindingIdentifier(state.name); - if (localDeclar !== state.outerDeclar) return; - state.selfReference = true; - path.stop(); - } -}; -function getNameFromLiteralId(id) { - if (isNullLiteral(id)) { - return "null"; - } - if (isRegExpLiteral(id)) { - return `_${id.pattern}_${id.flags}`; - } - if (isTemplateLiteral(id)) { - return id.quasis.map(quasi => quasi.value.raw).join(""); - } - if (id.value !== undefined) { - return id.value + ""; - } - return ""; -} -function wrap(state, method, id, scope) { - if (state.selfReference) { - if (scope.hasBinding(id.name) && !scope.hasGlobal(id.name)) { - scope.rename(id.name); - } else { - if (!isFunction(method)) return; - let build = buildPropertyMethodAssignmentWrapper; - if (method.generator) { - build = buildGeneratorPropertyMethodAssignmentWrapper; - } - const template = build({ - FUNCTION: method, - FUNCTION_ID: id, - FUNCTION_KEY: scope.generateUidIdentifier(id.name) - }).expression; - const params = template.callee.body.body[0].params; - for (let i = 0, len = getFunctionArity(method); i < len; i++) { - params.push(scope.generateUidIdentifier("x")); - } - return template; - } - } - method.id = id; - scope.getProgramParent().references[id.name] = true; -} -function visit(node, name, scope) { - const state = { - selfAssignment: false, - selfReference: false, - outerDeclar: scope.getBindingIdentifier(name), - name: name - }; - const binding = scope.getOwnBinding(name); - if (binding) { - if (binding.kind === "param") { - state.selfReference = true; - } else {} - } else if (state.outerDeclar || scope.hasGlobal(name)) { - scope.traverse(node, visitor, state); - } - return state; -} -function _default({ - node, - parent, - scope, - id -}, localBinding = false, supportUnicodeId = false) { - if (node.id) return; - if ((isObjectProperty(parent) || isObjectMethod(parent, { - kind: "method" - })) && (!parent.computed || isLiteral(parent.key))) { - id = parent.key; - } else if (isVariableDeclarator(parent)) { - id = parent.id; - if (isIdentifier(id) && !localBinding) { - const binding = scope.parent.getBinding(id.name); - if (binding && binding.constant && scope.getBinding(id.name) === binding) { - node.id = cloneNode(id); - node.id[NOT_LOCAL_BINDING] = true; - return; - } - } - } else if (isAssignmentExpression(parent, { - operator: "=" - })) { - id = parent.left; - } else if (!id) { - return; - } - let name; - if (id && isLiteral(id)) { - name = getNameFromLiteralId(id); - } else if (id && isIdentifier(id)) { - name = id.name; - } - if (name === undefined) { - return; - } - if (!supportUnicodeId && isFunction(node) && /[\uD800-\uDFFF]/.test(name)) { - return; - } - name = toBindingIdentifierName(name); - const newId = identifier(name); - newId[NOT_LOCAL_BINDING] = true; - const state = visit(node, name, scope); - return wrap(state, node, newId, scope) || node; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 51194: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = hoistVariables; -var _t = __nccwpck_require__(53501); -const { - assignmentExpression, - expressionStatement, - identifier -} = _t; -const visitor = { - Scope(path, state) { - if (state.kind === "let") path.skip(); - }, - FunctionParent(path) { - path.skip(); - }, - VariableDeclaration(path, state) { - if (state.kind && path.node.kind !== state.kind) return; - const nodes = []; - const declarations = path.get("declarations"); - let firstId; - for (const declar of declarations) { - firstId = declar.node.id; - if (declar.node.init) { - nodes.push(expressionStatement(assignmentExpression("=", declar.node.id, declar.node.init))); - } - for (const name of Object.keys(declar.getBindingIdentifiers())) { - state.emit(identifier(name), name, declar.node.init !== null); - } - } - if (path.parentPath.isFor({ - left: path.node - })) { - path.replaceWith(firstId); - } else { - path.replaceWithMultiple(nodes); - } - } -}; -function hoistVariables(path, emit, kind = "var") { - path.traverse(visitor, { - kind, - emit - }); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 85512: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var _t = __nccwpck_require__(53501); - -function _interopNamespace(e) { - if (e && e.__esModule) return e; - var n = Object.create(null); - if (e) { - Object.keys(e).forEach(function (k) { - if (k !== 'default') { - var d = Object.getOwnPropertyDescriptor(e, k); - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: function () { return e[k]; } - }); - } - }); - } - n["default"] = e; - return Object.freeze(n); -} - -var _t__namespace = /*#__PURE__*/_interopNamespace(_t); - -function willPathCastToBoolean(path) { - const maybeWrapped = path; - const { - node, - parentPath - } = maybeWrapped; - if (parentPath.isLogicalExpression()) { - const { - operator, - right - } = parentPath.node; - if (operator === "&&" || operator === "||" || operator === "??" && node === right) { - return willPathCastToBoolean(parentPath); - } - } - if (parentPath.isSequenceExpression()) { - const { - expressions - } = parentPath.node; - if (expressions[expressions.length - 1] === node) { - return willPathCastToBoolean(parentPath); - } else { - return true; - } - } - return parentPath.isConditional({ - test: node - }) || parentPath.isUnaryExpression({ - operator: "!" - }) || parentPath.isLoop({ - test: node - }); -} - -const { - LOGICAL_OPERATORS, - arrowFunctionExpression, - assignmentExpression, - binaryExpression, - booleanLiteral, - callExpression, - cloneNode, - conditionalExpression, - identifier, - isMemberExpression, - isOptionalCallExpression, - isOptionalMemberExpression, - isUpdateExpression, - logicalExpression, - memberExpression, - nullLiteral, - optionalCallExpression, - optionalMemberExpression, - sequenceExpression, - updateExpression -} = _t__namespace; -class AssignmentMemoiser { - constructor() { - this._map = void 0; - this._map = new WeakMap(); - } - has(key) { - return this._map.has(key); - } - get(key) { - if (!this.has(key)) return; - const record = this._map.get(key); - const { - value - } = record; - record.count--; - if (record.count === 0) { - return assignmentExpression("=", value, key); - } - return value; - } - set(key, value, count) { - return this._map.set(key, { - count, - value - }); - } -} -function toNonOptional(path, base) { - const { - node - } = path; - if (isOptionalMemberExpression(node)) { - return memberExpression(base, node.property, node.computed); - } - if (path.isOptionalCallExpression()) { - const callee = path.get("callee"); - if (path.node.optional && callee.isOptionalMemberExpression()) { - const object = callee.node.object; - const context = path.scope.maybeGenerateMemoised(object); - callee.get("object").replaceWith(assignmentExpression("=", context, object)); - return callExpression(memberExpression(base, identifier("call")), [context, ...path.node.arguments]); - } - return callExpression(base, path.node.arguments); - } - return path.node; -} -function isInDetachedTree(path) { - while (path) { - if (path.isProgram()) break; - const { - parentPath, - container, - listKey - } = path; - const parentNode = parentPath.node; - if (listKey) { - if (container !== parentNode[listKey]) { - return true; - } - } else { - if (container !== parentNode) return true; - } - path = parentPath; - } - return false; -} -const handle = { - memoise() {}, - handle(member, noDocumentAll) { - const { - node, - parent, - parentPath, - scope - } = member; - if (member.isOptionalMemberExpression()) { - if (isInDetachedTree(member)) return; - const endPath = member.find(({ - node, - parent - }) => { - if (isOptionalMemberExpression(parent)) { - return parent.optional || parent.object !== node; - } - if (isOptionalCallExpression(parent)) { - return node !== member.node && parent.optional || parent.callee !== node; - } - return true; - }); - if (scope.path.isPattern()) { - endPath.replaceWith(callExpression(arrowFunctionExpression([], endPath.node), [])); - return; - } - const willEndPathCastToBoolean = willPathCastToBoolean(endPath); - const rootParentPath = endPath.parentPath; - if (rootParentPath.isUpdateExpression({ - argument: node - }) || rootParentPath.isAssignmentExpression({ - left: node - })) { - throw member.buildCodeFrameError(`can't handle assignment`); - } - const isDeleteOperation = rootParentPath.isUnaryExpression({ - operator: "delete" - }); - if (isDeleteOperation && endPath.isOptionalMemberExpression() && endPath.get("property").isPrivateName()) { - throw member.buildCodeFrameError(`can't delete a private class element`); - } - let startingOptional = member; - for (;;) { - if (startingOptional.isOptionalMemberExpression()) { - if (startingOptional.node.optional) break; - startingOptional = startingOptional.get("object"); - continue; - } else if (startingOptional.isOptionalCallExpression()) { - if (startingOptional.node.optional) break; - startingOptional = startingOptional.get("callee"); - continue; - } - throw new Error(`Internal error: unexpected ${startingOptional.node.type}`); - } - const startingNode = startingOptional.isOptionalMemberExpression() ? startingOptional.node.object : startingOptional.node.callee; - const baseNeedsMemoised = scope.maybeGenerateMemoised(startingNode); - const baseRef = baseNeedsMemoised != null ? baseNeedsMemoised : startingNode; - const parentIsOptionalCall = parentPath.isOptionalCallExpression({ - callee: node - }); - const isOptionalCall = parent => parentIsOptionalCall; - const parentIsCall = parentPath.isCallExpression({ - callee: node - }); - startingOptional.replaceWith(toNonOptional(startingOptional, baseRef)); - if (isOptionalCall()) { - if (parent.optional) { - parentPath.replaceWith(this.optionalCall(member, parent.arguments)); - } else { - parentPath.replaceWith(this.call(member, parent.arguments)); - } - } else if (parentIsCall) { - member.replaceWith(this.boundGet(member)); - } else if (this.delete && parentPath.isUnaryExpression({ - operator: "delete" - })) { - parentPath.replaceWith(this.delete(member)); - } else { - member.replaceWith(this.get(member)); - } - let regular = member.node; - for (let current = member; current !== endPath;) { - const parentPath = current.parentPath; - if (parentPath === endPath && isOptionalCall() && parent.optional) { - regular = parentPath.node; - break; - } - regular = toNonOptional(parentPath, regular); - current = parentPath; - } - let context; - const endParentPath = endPath.parentPath; - if (isMemberExpression(regular) && endParentPath.isOptionalCallExpression({ - callee: endPath.node, - optional: true - })) { - const { - object - } = regular; - context = member.scope.maybeGenerateMemoised(object); - if (context) { - regular.object = assignmentExpression("=", context, object); - } - } - let replacementPath = endPath; - if (isDeleteOperation) { - replacementPath = endParentPath; - regular = endParentPath.node; - } - const baseMemoised = baseNeedsMemoised ? assignmentExpression("=", cloneNode(baseRef), cloneNode(startingNode)) : cloneNode(baseRef); - if (willEndPathCastToBoolean) { - let nonNullishCheck; - if (noDocumentAll) { - nonNullishCheck = binaryExpression("!=", baseMemoised, nullLiteral()); - } else { - nonNullishCheck = logicalExpression("&&", binaryExpression("!==", baseMemoised, nullLiteral()), binaryExpression("!==", cloneNode(baseRef), scope.buildUndefinedNode())); - } - replacementPath.replaceWith(logicalExpression("&&", nonNullishCheck, regular)); - } else { - let nullishCheck; - if (noDocumentAll) { - nullishCheck = binaryExpression("==", baseMemoised, nullLiteral()); - } else { - nullishCheck = logicalExpression("||", binaryExpression("===", baseMemoised, nullLiteral()), binaryExpression("===", cloneNode(baseRef), scope.buildUndefinedNode())); - } - replacementPath.replaceWith(conditionalExpression(nullishCheck, isDeleteOperation ? booleanLiteral(true) : scope.buildUndefinedNode(), regular)); - } - if (context) { - const endParent = endParentPath.node; - endParentPath.replaceWith(optionalCallExpression(optionalMemberExpression(endParent.callee, identifier("call"), false, true), [cloneNode(context), ...endParent.arguments], false)); - } - return; - } - if (isUpdateExpression(parent, { - argument: node - })) { - if (this.simpleSet) { - member.replaceWith(this.simpleSet(member)); - return; - } - const { - operator, - prefix - } = parent; - this.memoise(member, 2); - const ref = scope.generateUidIdentifierBasedOnNode(node); - scope.push({ - id: ref - }); - const seq = [assignmentExpression("=", cloneNode(ref), this.get(member))]; - if (prefix) { - seq.push(updateExpression(operator, cloneNode(ref), prefix)); - const value = sequenceExpression(seq); - parentPath.replaceWith(this.set(member, value)); - return; - } else { - const ref2 = scope.generateUidIdentifierBasedOnNode(node); - scope.push({ - id: ref2 - }); - seq.push(assignmentExpression("=", cloneNode(ref2), updateExpression(operator, cloneNode(ref), prefix)), cloneNode(ref)); - const value = sequenceExpression(seq); - parentPath.replaceWith(sequenceExpression([this.set(member, value), cloneNode(ref2)])); - return; - } - } - if (parentPath.isAssignmentExpression({ - left: node - })) { - if (this.simpleSet) { - member.replaceWith(this.simpleSet(member)); - return; - } - const { - operator, - right: value - } = parentPath.node; - if (operator === "=") { - parentPath.replaceWith(this.set(member, value)); - } else { - const operatorTrunc = operator.slice(0, -1); - if (LOGICAL_OPERATORS.includes(operatorTrunc)) { - this.memoise(member, 1); - parentPath.replaceWith(logicalExpression(operatorTrunc, this.get(member), this.set(member, value))); - } else { - this.memoise(member, 2); - parentPath.replaceWith(this.set(member, binaryExpression(operatorTrunc, this.get(member), value))); - } - } - return; - } - if (parentPath.isCallExpression({ - callee: node - })) { - parentPath.replaceWith(this.call(member, parentPath.node.arguments)); - return; - } - if (parentPath.isOptionalCallExpression({ - callee: node - })) { - if (scope.path.isPattern()) { - parentPath.replaceWith(callExpression(arrowFunctionExpression([], parentPath.node), [])); - return; - } - parentPath.replaceWith(this.optionalCall(member, parentPath.node.arguments)); - return; - } - if (this.delete && parentPath.isUnaryExpression({ - operator: "delete" - })) { - parentPath.replaceWith(this.delete(member)); - return; - } - if (parentPath.isForXStatement({ - left: node - }) || parentPath.isObjectProperty({ - value: node - }) && parentPath.parentPath.isObjectPattern() || parentPath.isAssignmentPattern({ - left: node - }) && parentPath.parentPath.isObjectProperty({ - value: parent - }) && parentPath.parentPath.parentPath.isObjectPattern() || parentPath.isArrayPattern() || parentPath.isAssignmentPattern({ - left: node - }) && parentPath.parentPath.isArrayPattern() || parentPath.isRestElement()) { - member.replaceWith(this.destructureSet(member)); - return; - } - if (parentPath.isTaggedTemplateExpression()) { - member.replaceWith(this.boundGet(member)); - } else { - member.replaceWith(this.get(member)); - } - } -}; -function memberExpressionToFunctions(path, visitor, state) { - path.traverse(visitor, Object.assign({}, handle, state, { - memoiser: new AssignmentMemoiser() - })); -} - -exports["default"] = memberExpressionToFunctions; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 91652: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _assert = __nccwpck_require__(39491); -var _t = __nccwpck_require__(53501); -const { - callExpression, - cloneNode, - expressionStatement, - identifier, - importDeclaration, - importDefaultSpecifier, - importNamespaceSpecifier, - importSpecifier, - memberExpression, - stringLiteral, - variableDeclaration, - variableDeclarator -} = _t; -class ImportBuilder { - constructor(importedSource, scope, hub) { - this._statements = []; - this._resultName = null; - this._importedSource = void 0; - this._scope = scope; - this._hub = hub; - this._importedSource = importedSource; - } - done() { - return { - statements: this._statements, - resultName: this._resultName - }; - } - import() { - this._statements.push(importDeclaration([], stringLiteral(this._importedSource))); - return this; - } - require() { - this._statements.push(expressionStatement(callExpression(identifier("require"), [stringLiteral(this._importedSource)]))); - return this; - } - namespace(name = "namespace") { - const local = this._scope.generateUidIdentifier(name); - const statement = this._statements[this._statements.length - 1]; - _assert(statement.type === "ImportDeclaration"); - _assert(statement.specifiers.length === 0); - statement.specifiers = [importNamespaceSpecifier(local)]; - this._resultName = cloneNode(local); - return this; - } - default(name) { - const id = this._scope.generateUidIdentifier(name); - const statement = this._statements[this._statements.length - 1]; - _assert(statement.type === "ImportDeclaration"); - _assert(statement.specifiers.length === 0); - statement.specifiers = [importDefaultSpecifier(id)]; - this._resultName = cloneNode(id); - return this; - } - named(name, importName) { - if (importName === "default") return this.default(name); - const id = this._scope.generateUidIdentifier(name); - const statement = this._statements[this._statements.length - 1]; - _assert(statement.type === "ImportDeclaration"); - _assert(statement.specifiers.length === 0); - statement.specifiers = [importSpecifier(id, identifier(importName))]; - this._resultName = cloneNode(id); - return this; - } - var(name) { - const id = this._scope.generateUidIdentifier(name); - let statement = this._statements[this._statements.length - 1]; - if (statement.type !== "ExpressionStatement") { - _assert(this._resultName); - statement = expressionStatement(this._resultName); - this._statements.push(statement); - } - this._statements[this._statements.length - 1] = variableDeclaration("var", [variableDeclarator(id, statement.expression)]); - this._resultName = cloneNode(id); - return this; - } - defaultInterop() { - return this._interop(this._hub.addHelper("interopRequireDefault")); - } - wildcardInterop() { - return this._interop(this._hub.addHelper("interopRequireWildcard")); - } - _interop(callee) { - const statement = this._statements[this._statements.length - 1]; - if (statement.type === "ExpressionStatement") { - statement.expression = callExpression(callee, [statement.expression]); - } else if (statement.type === "VariableDeclaration") { - _assert(statement.declarations.length === 1); - statement.declarations[0].init = callExpression(callee, [statement.declarations[0].init]); - } else { - _assert.fail("Unexpected type."); - } - return this; - } - prop(name) { - const statement = this._statements[this._statements.length - 1]; - if (statement.type === "ExpressionStatement") { - statement.expression = memberExpression(statement.expression, identifier(name)); - } else if (statement.type === "VariableDeclaration") { - _assert(statement.declarations.length === 1); - statement.declarations[0].init = memberExpression(statement.declarations[0].init, identifier(name)); - } else { - _assert.fail("Unexpected type:" + statement.type); - } - return this; - } - read(name) { - this._resultName = memberExpression(this._resultName, identifier(name)); - } -} -exports["default"] = ImportBuilder; - -//# sourceMappingURL=import-builder.js.map - - -/***/ }), - -/***/ 44172: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _assert = __nccwpck_require__(39491); -var _t = __nccwpck_require__(53501); -var _importBuilder = __nccwpck_require__(91652); -var _isModule = __nccwpck_require__(98726); -const { - numericLiteral, - sequenceExpression -} = _t; -class ImportInjector { - constructor(path, importedSource, opts) { - this._defaultOpts = { - importedSource: null, - importedType: "commonjs", - importedInterop: "babel", - importingInterop: "babel", - ensureLiveReference: false, - ensureNoContext: false, - importPosition: "before" - }; - const programPath = path.find(p => p.isProgram()); - this._programPath = programPath; - this._programScope = programPath.scope; - this._hub = programPath.hub; - this._defaultOpts = this._applyDefaults(importedSource, opts, true); - } - addDefault(importedSourceIn, opts) { - return this.addNamed("default", importedSourceIn, opts); - } - addNamed(importName, importedSourceIn, opts) { - _assert(typeof importName === "string"); - return this._generateImport(this._applyDefaults(importedSourceIn, opts), importName); - } - addNamespace(importedSourceIn, opts) { - return this._generateImport(this._applyDefaults(importedSourceIn, opts), null); - } - addSideEffect(importedSourceIn, opts) { - return this._generateImport(this._applyDefaults(importedSourceIn, opts), void 0); - } - _applyDefaults(importedSource, opts, isInit = false) { - let newOpts; - if (typeof importedSource === "string") { - newOpts = Object.assign({}, this._defaultOpts, { - importedSource - }, opts); - } else { - _assert(!opts, "Unexpected secondary arguments."); - newOpts = Object.assign({}, this._defaultOpts, importedSource); - } - if (!isInit && opts) { - if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint; - if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist; - } - return newOpts; - } - _generateImport(opts, importName) { - const isDefault = importName === "default"; - const isNamed = !!importName && !isDefault; - const isNamespace = importName === null; - const { - importedSource, - importedType, - importedInterop, - importingInterop, - ensureLiveReference, - ensureNoContext, - nameHint, - importPosition, - blockHoist - } = opts; - let name = nameHint || importName; - const isMod = (0, _isModule.default)(this._programPath); - const isModuleForNode = isMod && importingInterop === "node"; - const isModuleForBabel = isMod && importingInterop === "babel"; - if (importPosition === "after" && !isMod) { - throw new Error(`"importPosition": "after" is only supported in modules`); - } - const builder = new _importBuilder.default(importedSource, this._programScope, this._hub); - if (importedType === "es6") { - if (!isModuleForNode && !isModuleForBabel) { - throw new Error("Cannot import an ES6 module from CommonJS"); - } - builder.import(); - if (isNamespace) { - builder.namespace(nameHint || importedSource); - } else if (isDefault || isNamed) { - builder.named(name, importName); - } - } else if (importedType !== "commonjs") { - throw new Error(`Unexpected interopType "${importedType}"`); - } else if (importedInterop === "babel") { - if (isModuleForNode) { - name = name !== "default" ? name : importedSource; - const es6Default = `${importedSource}$es6Default`; - builder.import(); - if (isNamespace) { - builder.default(es6Default).var(name || importedSource).wildcardInterop(); - } else if (isDefault) { - if (ensureLiveReference) { - builder.default(es6Default).var(name || importedSource).defaultInterop().read("default"); - } else { - builder.default(es6Default).var(name).defaultInterop().prop(importName); - } - } else if (isNamed) { - builder.default(es6Default).read(importName); - } - } else if (isModuleForBabel) { - builder.import(); - if (isNamespace) { - builder.namespace(name || importedSource); - } else if (isDefault || isNamed) { - builder.named(name, importName); - } - } else { - builder.require(); - if (isNamespace) { - builder.var(name || importedSource).wildcardInterop(); - } else if ((isDefault || isNamed) && ensureLiveReference) { - if (isDefault) { - name = name !== "default" ? name : importedSource; - builder.var(name).read(importName); - builder.defaultInterop(); - } else { - builder.var(importedSource).read(importName); - } - } else if (isDefault) { - builder.var(name).defaultInterop().prop(importName); - } else if (isNamed) { - builder.var(name).prop(importName); - } - } - } else if (importedInterop === "compiled") { - if (isModuleForNode) { - builder.import(); - if (isNamespace) { - builder.default(name || importedSource); - } else if (isDefault || isNamed) { - builder.default(importedSource).read(name); - } - } else if (isModuleForBabel) { - builder.import(); - if (isNamespace) { - builder.namespace(name || importedSource); - } else if (isDefault || isNamed) { - builder.named(name, importName); - } - } else { - builder.require(); - if (isNamespace) { - builder.var(name || importedSource); - } else if (isDefault || isNamed) { - if (ensureLiveReference) { - builder.var(importedSource).read(name); - } else { - builder.prop(importName).var(name); - } - } - } - } else if (importedInterop === "uncompiled") { - if (isDefault && ensureLiveReference) { - throw new Error("No live reference for commonjs default"); - } - if (isModuleForNode) { - builder.import(); - if (isNamespace) { - builder.default(name || importedSource); - } else if (isDefault) { - builder.default(name); - } else if (isNamed) { - builder.default(importedSource).read(name); - } - } else if (isModuleForBabel) { - builder.import(); - if (isNamespace) { - builder.default(name || importedSource); - } else if (isDefault) { - builder.default(name); - } else if (isNamed) { - builder.named(name, importName); - } - } else { - builder.require(); - if (isNamespace) { - builder.var(name || importedSource); - } else if (isDefault) { - builder.var(name); - } else if (isNamed) { - if (ensureLiveReference) { - builder.var(importedSource).read(name); - } else { - builder.var(name).prop(importName); - } - } - } - } else { - throw new Error(`Unknown importedInterop "${importedInterop}".`); - } - const { - statements, - resultName - } = builder.done(); - this._insertStatements(statements, importPosition, blockHoist); - if ((isDefault || isNamed) && ensureNoContext && resultName.type !== "Identifier") { - return sequenceExpression([numericLiteral(0), resultName]); - } - return resultName; - } - _insertStatements(statements, importPosition = "before", blockHoist = 3) { - const body = this._programPath.get("body"); - if (importPosition === "after") { - for (let i = body.length - 1; i >= 0; i--) { - if (body[i].isImportDeclaration()) { - body[i].insertAfter(statements); - return; - } - } - } else { - statements.forEach(node => { - node._blockHoist = blockHoist; - }); - const targetPath = body.find(p => { - const val = p.node._blockHoist; - return Number.isFinite(val) && val < 4; - }); - if (targetPath) { - targetPath.insertBefore(statements); - return; - } - } - this._programPath.unshiftContainer("body", statements); - } -} -exports["default"] = ImportInjector; - -//# sourceMappingURL=import-injector.js.map - - -/***/ }), - -/***/ 45423: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "ImportInjector", ({ - enumerable: true, - get: function () { - return _importInjector.default; - } -})); -exports.addDefault = addDefault; -exports.addNamed = addNamed; -exports.addNamespace = addNamespace; -exports.addSideEffect = addSideEffect; -Object.defineProperty(exports, "isModule", ({ - enumerable: true, - get: function () { - return _isModule.default; - } -})); -var _importInjector = __nccwpck_require__(44172); -var _isModule = __nccwpck_require__(98726); -function addDefault(path, importedSource, opts) { - return new _importInjector.default(path).addDefault(importedSource, opts); -} -function addNamed(path, name, importedSource, opts) { - return new _importInjector.default(path).addNamed(name, importedSource, opts); -} -function addNamespace(path, importedSource, opts) { - return new _importInjector.default(path).addNamespace(importedSource, opts); -} -function addSideEffect(path, importedSource, opts) { - return new _importInjector.default(path).addSideEffect(importedSource, opts); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 98726: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isModule; -function isModule(path) { - return path.node.sourceType === "module"; -} - -//# sourceMappingURL=is-module.js.map - - -/***/ }), - -/***/ 30967: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildDynamicImport = buildDynamicImport; -exports.getDynamicImportSource = getDynamicImportSource; -var t = __nccwpck_require__(53501); -var _template = __nccwpck_require__(52738); -function getDynamicImportSource(node) { - const [source] = node.arguments; - return t.isStringLiteral(source) || t.isTemplateLiteral(source) ? source : _template.default.expression.ast`\`\${${source}}\``; -} -function buildDynamicImport(node, deferToThen, wrapWithPromise, builder) { - const [specifier] = node.arguments; - if (t.isStringLiteral(specifier) || t.isTemplateLiteral(specifier) && specifier.quasis.length === 0) { - if (deferToThen) { - return _template.default.expression.ast` - Promise.resolve().then(() => ${builder(specifier)}) - `; - } else return builder(specifier); - } - const specifierToString = t.isTemplateLiteral(specifier) ? t.identifier("specifier") : t.templateLiteral([t.templateElement({ - raw: "" - }), t.templateElement({ - raw: "" - })], [t.identifier("specifier")]); - if (deferToThen) { - return _template.default.expression.ast` - (specifier => - new Promise(r => r(${specifierToString})) - .then(s => ${builder(t.identifier("s"))}) - )(${specifier}) - `; - } else if (wrapWithPromise) { - return _template.default.expression.ast` - (specifier => - new Promise(r => r(${builder(specifierToString)})) - )(${specifier}) - `; - } else { - return _template.default.expression.ast` - (specifier => ${builder(specifierToString)})(${specifier}) - `; - } -} - -//# sourceMappingURL=dynamic-import.js.map - - -/***/ }), - -/***/ 46107: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = getModuleName; -{ - const originalGetModuleName = getModuleName; - exports["default"] = getModuleName = function getModuleName(rootOpts, pluginOpts) { - var _pluginOpts$moduleId, _pluginOpts$moduleIds, _pluginOpts$getModule, _pluginOpts$moduleRoo; - return originalGetModuleName(rootOpts, { - moduleId: (_pluginOpts$moduleId = pluginOpts.moduleId) != null ? _pluginOpts$moduleId : rootOpts.moduleId, - moduleIds: (_pluginOpts$moduleIds = pluginOpts.moduleIds) != null ? _pluginOpts$moduleIds : rootOpts.moduleIds, - getModuleId: (_pluginOpts$getModule = pluginOpts.getModuleId) != null ? _pluginOpts$getModule : rootOpts.getModuleId, - moduleRoot: (_pluginOpts$moduleRoo = pluginOpts.moduleRoot) != null ? _pluginOpts$moduleRoo : rootOpts.moduleRoot - }); - }; -} -function getModuleName(rootOpts, pluginOpts) { - const { - filename, - filenameRelative = filename, - sourceRoot = pluginOpts.moduleRoot - } = rootOpts; - const { - moduleId, - moduleIds = !!moduleId, - getModuleId, - moduleRoot = sourceRoot - } = pluginOpts; - if (!moduleIds) return null; - if (moduleId != null && !getModuleId) { - return moduleId; - } - let moduleName = moduleRoot != null ? moduleRoot + "/" : ""; - if (filenameRelative) { - const sourceRootReplacer = sourceRoot != null ? new RegExp("^" + sourceRoot + "/?") : ""; - moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.(\w*?)$/, ""); - } - moduleName = moduleName.replace(/\\/g, "/"); - if (getModuleId) { - return getModuleId(moduleName) || moduleName; - } else { - return moduleName; - } -} - -//# sourceMappingURL=get-module-name.js.map - - -/***/ }), - -/***/ 24091: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "buildDynamicImport", ({ - enumerable: true, - get: function () { - return _dynamicImport.buildDynamicImport; - } -})); -exports.buildNamespaceInitStatements = buildNamespaceInitStatements; -exports.ensureStatementsHoisted = ensureStatementsHoisted; -Object.defineProperty(exports, "getDynamicImportSource", ({ - enumerable: true, - get: function () { - return _dynamicImport.getDynamicImportSource; - } -})); -Object.defineProperty(exports, "getModuleName", ({ - enumerable: true, - get: function () { - return _getModuleName.default; - } -})); -Object.defineProperty(exports, "hasExports", ({ - enumerable: true, - get: function () { - return _normalizeAndLoadMetadata.hasExports; - } -})); -Object.defineProperty(exports, "isModule", ({ - enumerable: true, - get: function () { - return _helperModuleImports.isModule; - } -})); -Object.defineProperty(exports, "isSideEffectImport", ({ - enumerable: true, - get: function () { - return _normalizeAndLoadMetadata.isSideEffectImport; - } -})); -exports.rewriteModuleStatementsAndPrepareHeader = rewriteModuleStatementsAndPrepareHeader; -Object.defineProperty(exports, "rewriteThis", ({ - enumerable: true, - get: function () { - return _rewriteThis.default; - } -})); -exports.wrapInterop = wrapInterop; -var _assert = __nccwpck_require__(39491); -var _t = __nccwpck_require__(53501); -var _template = __nccwpck_require__(52738); -var _helperModuleImports = __nccwpck_require__(45423); -var _rewriteThis = __nccwpck_require__(51329); -var _rewriteLiveReferences = __nccwpck_require__(69497); -var _normalizeAndLoadMetadata = __nccwpck_require__(72961); -var _dynamicImport = __nccwpck_require__(30967); -var _getModuleName = __nccwpck_require__(46107); -const { - booleanLiteral, - callExpression, - cloneNode, - directive, - directiveLiteral, - expressionStatement, - identifier, - isIdentifier, - memberExpression, - stringLiteral, - valueToNode, - variableDeclaration, - variableDeclarator -} = _t; -function rewriteModuleStatementsAndPrepareHeader(path, { - loose, - exportName, - strict, - allowTopLevelThis, - strictMode, - noInterop, - importInterop = noInterop ? "none" : "babel", - lazy, - esNamespaceOnly, - filename, - constantReexports = loose, - enumerableModuleMeta = loose, - noIncompleteNsImportDetection -}) { - (0, _normalizeAndLoadMetadata.validateImportInteropOption)(importInterop); - _assert((0, _helperModuleImports.isModule)(path), "Cannot process module statements in a script"); - path.node.sourceType = "script"; - const meta = (0, _normalizeAndLoadMetadata.default)(path, exportName, { - importInterop, - initializeReexports: constantReexports, - lazy, - esNamespaceOnly, - filename - }); - if (!allowTopLevelThis) { - (0, _rewriteThis.default)(path); - } - (0, _rewriteLiveReferences.default)(path, meta); - if (strictMode !== false) { - const hasStrict = path.node.directives.some(directive => { - return directive.value.value === "use strict"; - }); - if (!hasStrict) { - path.unshiftContainer("directives", directive(directiveLiteral("use strict"))); - } - } - const headers = []; - if ((0, _normalizeAndLoadMetadata.hasExports)(meta) && !strict) { - headers.push(buildESModuleHeader(meta, enumerableModuleMeta)); - } - const nameList = buildExportNameListDeclaration(path, meta); - if (nameList) { - meta.exportNameListName = nameList.name; - headers.push(nameList.statement); - } - headers.push(...buildExportInitializationStatements(path, meta, constantReexports, noIncompleteNsImportDetection)); - return { - meta, - headers - }; -} -function ensureStatementsHoisted(statements) { - statements.forEach(header => { - header._blockHoist = 3; - }); -} -function wrapInterop(programPath, expr, type) { - if (type === "none") { - return null; - } - if (type === "node-namespace") { - return callExpression(programPath.hub.addHelper("interopRequireWildcard"), [expr, booleanLiteral(true)]); - } else if (type === "node-default") { - return null; - } - let helper; - if (type === "default") { - helper = "interopRequireDefault"; - } else if (type === "namespace") { - helper = "interopRequireWildcard"; - } else { - throw new Error(`Unknown interop: ${type}`); - } - return callExpression(programPath.hub.addHelper(helper), [expr]); -} -function buildNamespaceInitStatements(metadata, sourceMetadata, constantReexports = false) { - const statements = []; - let srcNamespace = identifier(sourceMetadata.name); - if (sourceMetadata.lazy) srcNamespace = callExpression(srcNamespace, []); - for (const localName of sourceMetadata.importsNamespace) { - if (localName === sourceMetadata.name) continue; - statements.push(_template.default.statement`var NAME = SOURCE;`({ - NAME: localName, - SOURCE: cloneNode(srcNamespace) - })); - } - if (constantReexports) { - statements.push(...buildReexportsFromMeta(metadata, sourceMetadata, true)); - } - for (const exportName of sourceMetadata.reexportNamespace) { - statements.push((sourceMetadata.lazy ? _template.default.statement` - Object.defineProperty(EXPORTS, "NAME", { - enumerable: true, - get: function() { - return NAMESPACE; - } - }); - ` : _template.default.statement`EXPORTS.NAME = NAMESPACE;`)({ - EXPORTS: metadata.exportName, - NAME: exportName, - NAMESPACE: cloneNode(srcNamespace) - })); - } - if (sourceMetadata.reexportAll) { - const statement = buildNamespaceReexport(metadata, cloneNode(srcNamespace), constantReexports); - statement.loc = sourceMetadata.reexportAll.loc; - statements.push(statement); - } - return statements; -} -const ReexportTemplate = { - constant: _template.default.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`, - constantComputed: _template.default.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`, - spec: _template.default.statement` - Object.defineProperty(EXPORTS, "EXPORT_NAME", { - enumerable: true, - get: function() { - return NAMESPACE_IMPORT; - }, - }); - ` -}; -function buildReexportsFromMeta(meta, metadata, constantReexports) { - const namespace = metadata.lazy ? callExpression(identifier(metadata.name), []) : identifier(metadata.name); - const { - stringSpecifiers - } = meta; - return Array.from(metadata.reexports, ([exportName, importName]) => { - let NAMESPACE_IMPORT = cloneNode(namespace); - if (importName === "default" && metadata.interop === "node-default") {} else if (stringSpecifiers.has(importName)) { - NAMESPACE_IMPORT = memberExpression(NAMESPACE_IMPORT, stringLiteral(importName), true); - } else { - NAMESPACE_IMPORT = memberExpression(NAMESPACE_IMPORT, identifier(importName)); - } - const astNodes = { - EXPORTS: meta.exportName, - EXPORT_NAME: exportName, - NAMESPACE_IMPORT - }; - if (constantReexports || isIdentifier(NAMESPACE_IMPORT)) { - if (stringSpecifiers.has(exportName)) { - return ReexportTemplate.constantComputed(astNodes); - } else { - return ReexportTemplate.constant(astNodes); - } - } else { - return ReexportTemplate.spec(astNodes); - } - }); -} -function buildESModuleHeader(metadata, enumerableModuleMeta = false) { - return (enumerableModuleMeta ? _template.default.statement` - EXPORTS.__esModule = true; - ` : _template.default.statement` - Object.defineProperty(EXPORTS, "__esModule", { - value: true, - }); - `)({ - EXPORTS: metadata.exportName - }); -} -function buildNamespaceReexport(metadata, namespace, constantReexports) { - return (constantReexports ? _template.default.statement` - Object.keys(NAMESPACE).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - VERIFY_NAME_LIST; - if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; - - EXPORTS[key] = NAMESPACE[key]; - }); - ` : _template.default.statement` - Object.keys(NAMESPACE).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - VERIFY_NAME_LIST; - if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; - - Object.defineProperty(EXPORTS, key, { - enumerable: true, - get: function() { - return NAMESPACE[key]; - }, - }); - }); - `)({ - NAMESPACE: namespace, - EXPORTS: metadata.exportName, - VERIFY_NAME_LIST: metadata.exportNameListName ? (0, _template.default)` - if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return; - `({ - EXPORTS_LIST: metadata.exportNameListName - }) : null - }); -} -function buildExportNameListDeclaration(programPath, metadata) { - const exportedVars = Object.create(null); - for (const data of metadata.local.values()) { - for (const name of data.names) { - exportedVars[name] = true; - } - } - let hasReexport = false; - for (const data of metadata.source.values()) { - for (const exportName of data.reexports.keys()) { - exportedVars[exportName] = true; - } - for (const exportName of data.reexportNamespace) { - exportedVars[exportName] = true; - } - hasReexport = hasReexport || !!data.reexportAll; - } - if (!hasReexport || Object.keys(exportedVars).length === 0) return null; - const name = programPath.scope.generateUidIdentifier("exportNames"); - delete exportedVars.default; - return { - name: name.name, - statement: variableDeclaration("var", [variableDeclarator(name, valueToNode(exportedVars))]) - }; -} -function buildExportInitializationStatements(programPath, metadata, constantReexports = false, noIncompleteNsImportDetection = false) { - const initStatements = []; - for (const [localName, data] of metadata.local) { - if (data.kind === "import") {} else if (data.kind === "hoisted") { - initStatements.push([data.names[0], buildInitStatement(metadata, data.names, identifier(localName))]); - } else if (!noIncompleteNsImportDetection) { - for (const exportName of data.names) { - initStatements.push([exportName, null]); - } - } - } - for (const data of metadata.source.values()) { - if (!constantReexports) { - const reexportsStatements = buildReexportsFromMeta(metadata, data, false); - const reexports = [...data.reexports.keys()]; - for (let i = 0; i < reexportsStatements.length; i++) { - initStatements.push([reexports[i], reexportsStatements[i]]); - } - } - if (!noIncompleteNsImportDetection) { - for (const exportName of data.reexportNamespace) { - initStatements.push([exportName, null]); - } - } - } - initStatements.sort(([a], [b]) => { - if (a < b) return -1; - if (b < a) return 1; - return 0; - }); - const results = []; - if (noIncompleteNsImportDetection) { - for (const [, initStatement] of initStatements) { - results.push(initStatement); - } - } else { - const chunkSize = 100; - for (let i = 0; i < initStatements.length; i += chunkSize) { - let uninitializedExportNames = []; - for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) { - const [exportName, initStatement] = initStatements[i + j]; - if (initStatement !== null) { - if (uninitializedExportNames.length > 0) { - results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode())); - uninitializedExportNames = []; - } - results.push(initStatement); - } else { - uninitializedExportNames.push(exportName); - } - } - if (uninitializedExportNames.length > 0) { - results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode())); - } - } - } - return results; -} -const InitTemplate = { - computed: _template.default.expression`EXPORTS["NAME"] = VALUE`, - default: _template.default.expression`EXPORTS.NAME = VALUE` -}; -function buildInitStatement(metadata, exportNames, initExpr) { - const { - stringSpecifiers, - exportName: EXPORTS - } = metadata; - return expressionStatement(exportNames.reduce((acc, exportName) => { - const params = { - EXPORTS, - NAME: exportName, - VALUE: acc - }; - if (stringSpecifiers.has(exportName)) { - return InitTemplate.computed(params); - } else { - return InitTemplate.default(params); - } - }, initExpr)); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 72961: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = normalizeModuleAndLoadMetadata; -exports.hasExports = hasExports; -exports.isSideEffectImport = isSideEffectImport; -exports.validateImportInteropOption = validateImportInteropOption; -var _path = __nccwpck_require__(71017); -var _helperValidatorIdentifier = __nccwpck_require__(21974); -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -function hasExports(metadata) { - return metadata.hasExports; -} -function isSideEffectImport(source) { - return source.imports.size === 0 && source.importsNamespace.size === 0 && source.reexports.size === 0 && source.reexportNamespace.size === 0 && !source.reexportAll; -} -function validateImportInteropOption(importInterop) { - if (typeof importInterop !== "function" && importInterop !== "none" && importInterop !== "babel" && importInterop !== "node") { - throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${importInterop}).`); - } - return importInterop; -} -function resolveImportInterop(importInterop, source, filename) { - if (typeof importInterop === "function") { - return validateImportInteropOption(importInterop(source, filename)); - } - return importInterop; -} -function normalizeModuleAndLoadMetadata(programPath, exportName, { - importInterop, - initializeReexports = false, - lazy = false, - esNamespaceOnly = false, - filename -}) { - if (!exportName) { - exportName = programPath.scope.generateUidIdentifier("exports").name; - } - const stringSpecifiers = new Set(); - nameAnonymousExports(programPath); - const { - local, - sources, - hasExports - } = getModuleMetadata(programPath, { - initializeReexports, - lazy - }, stringSpecifiers); - removeImportExportDeclarations(programPath); - for (const [source, metadata] of sources) { - if (metadata.importsNamespace.size > 0) { - metadata.name = metadata.importsNamespace.values().next().value; - } - const resolvedInterop = resolveImportInterop(importInterop, source, filename); - if (resolvedInterop === "none") { - metadata.interop = "none"; - } else if (resolvedInterop === "node" && metadata.interop === "namespace") { - metadata.interop = "node-namespace"; - } else if (resolvedInterop === "node" && metadata.interop === "default") { - metadata.interop = "node-default"; - } else if (esNamespaceOnly && metadata.interop === "namespace") { - metadata.interop = "default"; - } - } - return { - exportName, - exportNameListName: null, - hasExports, - local, - source: sources, - stringSpecifiers - }; -} -function getExportSpecifierName(path, stringSpecifiers) { - if (path.isIdentifier()) { - return path.node.name; - } else if (path.isStringLiteral()) { - const stringValue = path.node.value; - if (!(0, _helperValidatorIdentifier.isIdentifierName)(stringValue)) { - stringSpecifiers.add(stringValue); - } - return stringValue; - } else { - throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`); - } -} -function assertExportSpecifier(path) { - if (path.isExportSpecifier()) { - return; - } else if (path.isExportNamespaceSpecifier()) { - throw path.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`."); - } else { - throw path.buildCodeFrameError("Unexpected export specifier type"); - } -} -function getModuleMetadata(programPath, { - lazy, - initializeReexports -}, stringSpecifiers) { - const localData = getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers); - const sourceData = new Map(); - const getData = sourceNode => { - const source = sourceNode.value; - let data = sourceData.get(source); - if (!data) { - data = { - name: programPath.scope.generateUidIdentifier((0, _path.basename)(source, (0, _path.extname)(source))).name, - interop: "none", - loc: null, - imports: new Map(), - importsNamespace: new Set(), - reexports: new Map(), - reexportNamespace: new Set(), - reexportAll: null, - lazy: false, - referenced: false - }; - sourceData.set(source, data); - } - return data; - }; - let hasExports = false; - programPath.get("body").forEach(child => { - if (child.isImportDeclaration()) { - const data = getData(child.node.source); - if (!data.loc) data.loc = child.node.loc; - child.get("specifiers").forEach(spec => { - if (spec.isImportDefaultSpecifier()) { - const localName = spec.get("local").node.name; - data.imports.set(localName, "default"); - const reexport = localData.get(localName); - if (reexport) { - localData.delete(localName); - reexport.names.forEach(name => { - data.reexports.set(name, "default"); - }); - data.referenced = true; - } - } else if (spec.isImportNamespaceSpecifier()) { - const localName = spec.get("local").node.name; - data.importsNamespace.add(localName); - const reexport = localData.get(localName); - if (reexport) { - localData.delete(localName); - reexport.names.forEach(name => { - data.reexportNamespace.add(name); - }); - data.referenced = true; - } - } else if (spec.isImportSpecifier()) { - const importName = getExportSpecifierName(spec.get("imported"), stringSpecifiers); - const localName = spec.get("local").node.name; - data.imports.set(localName, importName); - const reexport = localData.get(localName); - if (reexport) { - localData.delete(localName); - reexport.names.forEach(name => { - data.reexports.set(name, importName); - }); - data.referenced = true; - } - } - }); - } else if (child.isExportAllDeclaration()) { - hasExports = true; - const data = getData(child.node.source); - if (!data.loc) data.loc = child.node.loc; - data.reexportAll = { - loc: child.node.loc - }; - data.referenced = true; - } else if (child.isExportNamedDeclaration() && child.node.source) { - hasExports = true; - const data = getData(child.node.source); - if (!data.loc) data.loc = child.node.loc; - child.get("specifiers").forEach(spec => { - assertExportSpecifier(spec); - const importName = getExportSpecifierName(spec.get("local"), stringSpecifiers); - const exportName = getExportSpecifierName(spec.get("exported"), stringSpecifiers); - data.reexports.set(exportName, importName); - data.referenced = true; - if (exportName === "__esModule") { - throw spec.get("exported").buildCodeFrameError('Illegal export "__esModule".'); - } - }); - } else if (child.isExportNamedDeclaration() || child.isExportDefaultDeclaration()) { - hasExports = true; - } - }); - for (const metadata of sourceData.values()) { - let needsDefault = false; - let needsNamed = false; - if (metadata.importsNamespace.size > 0) { - needsDefault = true; - needsNamed = true; - } - if (metadata.reexportAll) { - needsNamed = true; - } - for (const importName of metadata.imports.values()) { - if (importName === "default") needsDefault = true;else needsNamed = true; - } - for (const importName of metadata.reexports.values()) { - if (importName === "default") needsDefault = true;else needsNamed = true; - } - if (needsDefault && needsNamed) { - metadata.interop = "namespace"; - } else if (needsDefault) { - metadata.interop = "default"; - } - } - for (const [source, metadata] of sourceData) { - if (lazy !== false && !(isSideEffectImport(metadata) || metadata.reexportAll)) { - if (lazy === true) { - metadata.lazy = !/\./.test(source); - } else if (Array.isArray(lazy)) { - metadata.lazy = lazy.indexOf(source) !== -1; - } else if (typeof lazy === "function") { - metadata.lazy = lazy(source); - } else { - throw new Error(`.lazy must be a boolean, string array, or function`); - } - } - } - return { - hasExports, - local: localData, - sources: sourceData - }; -} -function getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers) { - const bindingKindLookup = new Map(); - programPath.get("body").forEach(child => { - let kind; - if (child.isImportDeclaration()) { - kind = "import"; - } else { - if (child.isExportDefaultDeclaration()) { - child = child.get("declaration"); - } - if (child.isExportNamedDeclaration()) { - if (child.node.declaration) { - child = child.get("declaration"); - } else if (initializeReexports && child.node.source && child.get("source").isStringLiteral()) { - child.get("specifiers").forEach(spec => { - assertExportSpecifier(spec); - bindingKindLookup.set(spec.get("local").node.name, "block"); - }); - return; - } - } - if (child.isFunctionDeclaration()) { - kind = "hoisted"; - } else if (child.isClassDeclaration()) { - kind = "block"; - } else if (child.isVariableDeclaration({ - kind: "var" - })) { - kind = "var"; - } else if (child.isVariableDeclaration()) { - kind = "block"; - } else { - return; - } - } - Object.keys(child.getOuterBindingIdentifiers()).forEach(name => { - bindingKindLookup.set(name, kind); - }); - }); - const localMetadata = new Map(); - const getLocalMetadata = idPath => { - const localName = idPath.node.name; - let metadata = localMetadata.get(localName); - if (!metadata) { - const kind = bindingKindLookup.get(localName); - if (kind === undefined) { - throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`); - } - metadata = { - names: [], - kind - }; - localMetadata.set(localName, metadata); - } - return metadata; - }; - programPath.get("body").forEach(child => { - if (child.isExportNamedDeclaration() && (initializeReexports || !child.node.source)) { - if (child.node.declaration) { - const declaration = child.get("declaration"); - const ids = declaration.getOuterBindingIdentifierPaths(); - Object.keys(ids).forEach(name => { - if (name === "__esModule") { - throw declaration.buildCodeFrameError('Illegal export "__esModule".'); - } - getLocalMetadata(ids[name]).names.push(name); - }); - } else { - child.get("specifiers").forEach(spec => { - const local = spec.get("local"); - const exported = spec.get("exported"); - const localMetadata = getLocalMetadata(local); - const exportName = getExportSpecifierName(exported, stringSpecifiers); - if (exportName === "__esModule") { - throw exported.buildCodeFrameError('Illegal export "__esModule".'); - } - localMetadata.names.push(exportName); - }); - } - } else if (child.isExportDefaultDeclaration()) { - const declaration = child.get("declaration"); - if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) { - getLocalMetadata(declaration.get("id")).names.push("default"); - } else { - throw declaration.buildCodeFrameError("Unexpected default expression export."); - } - } - }); - return localMetadata; -} -function nameAnonymousExports(programPath) { - programPath.get("body").forEach(child => { - if (!child.isExportDefaultDeclaration()) return; - (0, _helperSplitExportDeclaration.default)(child); - }); -} -function removeImportExportDeclarations(programPath) { - programPath.get("body").forEach(child => { - if (child.isImportDeclaration()) { - child.remove(); - } else if (child.isExportNamedDeclaration()) { - if (child.node.declaration) { - child.node.declaration._blockHoist = child.node._blockHoist; - child.replaceWith(child.node.declaration); - } else { - child.remove(); - } - } else if (child.isExportDefaultDeclaration()) { - const declaration = child.get("declaration"); - if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) { - declaration._blockHoist = child.node._blockHoist; - child.replaceWith(declaration); - } else { - throw declaration.buildCodeFrameError("Unexpected default expression export."); - } - } else if (child.isExportAllDeclaration()) { - child.remove(); - } - }); -} - -//# sourceMappingURL=normalize-and-load-metadata.js.map - - -/***/ }), - -/***/ 69497: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rewriteLiveReferences; -var _assert = __nccwpck_require__(39491); -var _t = __nccwpck_require__(53501); -var _template = __nccwpck_require__(52738); -var _helperSimpleAccess = __nccwpck_require__(62469); -const { - assignmentExpression, - callExpression, - cloneNode, - expressionStatement, - getOuterBindingIdentifiers, - identifier, - isMemberExpression, - isVariableDeclaration, - jsxIdentifier, - jsxMemberExpression, - memberExpression, - numericLiteral, - sequenceExpression, - stringLiteral, - variableDeclaration, - variableDeclarator -} = _t; -function isInType(path) { - do { - switch (path.parent.type) { - case "TSTypeAnnotation": - case "TSTypeAliasDeclaration": - case "TSTypeReference": - case "TypeAnnotation": - case "TypeAlias": - return true; - case "ExportSpecifier": - return path.parentPath.parent.exportKind === "type"; - default: - if (path.parentPath.isStatement() || path.parentPath.isExpression()) { - return false; - } - } - } while (path = path.parentPath); -} -function rewriteLiveReferences(programPath, metadata) { - const imported = new Map(); - const exported = new Map(); - const requeueInParent = path => { - programPath.requeue(path); - }; - for (const [source, data] of metadata.source) { - for (const [localName, importName] of data.imports) { - imported.set(localName, [source, importName, null]); - } - for (const localName of data.importsNamespace) { - imported.set(localName, [source, null, localName]); - } - } - for (const [local, data] of metadata.local) { - let exportMeta = exported.get(local); - if (!exportMeta) { - exportMeta = []; - exported.set(local, exportMeta); - } - exportMeta.push(...data.names); - } - const rewriteBindingInitVisitorState = { - metadata, - requeueInParent, - scope: programPath.scope, - exported - }; - programPath.traverse(rewriteBindingInitVisitor, rewriteBindingInitVisitorState); - (0, _helperSimpleAccess.default)(programPath, new Set([...Array.from(imported.keys()), ...Array.from(exported.keys())]), false); - const rewriteReferencesVisitorState = { - seen: new WeakSet(), - metadata, - requeueInParent, - scope: programPath.scope, - imported, - exported, - buildImportReference: ([source, importName, localName], identNode) => { - const meta = metadata.source.get(source); - meta.referenced = true; - if (localName) { - if (meta.lazy) { - identNode = callExpression(identNode, []); - } - return identNode; - } - let namespace = identifier(meta.name); - if (meta.lazy) namespace = callExpression(namespace, []); - if (importName === "default" && meta.interop === "node-default") { - return namespace; - } - const computed = metadata.stringSpecifiers.has(importName); - return memberExpression(namespace, computed ? stringLiteral(importName) : identifier(importName), computed); - } - }; - programPath.traverse(rewriteReferencesVisitor, rewriteReferencesVisitorState); -} -const rewriteBindingInitVisitor = { - Scope(path) { - path.skip(); - }, - ClassDeclaration(path) { - const { - requeueInParent, - exported, - metadata - } = this; - const { - id - } = path.node; - if (!id) throw new Error("Expected class to have a name"); - const localName = id.name; - const exportNames = exported.get(localName) || []; - if (exportNames.length > 0) { - const statement = expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, identifier(localName), path.scope)); - statement._blockHoist = path.node._blockHoist; - requeueInParent(path.insertAfter(statement)[0]); - } - }, - VariableDeclaration(path) { - const { - requeueInParent, - exported, - metadata - } = this; - Object.keys(path.getOuterBindingIdentifiers()).forEach(localName => { - const exportNames = exported.get(localName) || []; - if (exportNames.length > 0) { - const statement = expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, identifier(localName), path.scope)); - statement._blockHoist = path.node._blockHoist; - requeueInParent(path.insertAfter(statement)[0]); - } - }); - } -}; -const buildBindingExportAssignmentExpression = (metadata, exportNames, localExpr, scope) => { - const exportsObjectName = metadata.exportName; - for (let currentScope = scope; currentScope != null; currentScope = currentScope.parent) { - if (currentScope.hasOwnBinding(exportsObjectName)) { - currentScope.rename(exportsObjectName); - } - } - return (exportNames || []).reduce((expr, exportName) => { - const { - stringSpecifiers - } = metadata; - const computed = stringSpecifiers.has(exportName); - return assignmentExpression("=", memberExpression(identifier(exportsObjectName), computed ? stringLiteral(exportName) : identifier(exportName), computed), expr); - }, localExpr); -}; -const buildImportThrow = localName => { - return _template.default.expression.ast` - (function() { - throw new Error('"' + '${localName}' + '" is read-only.'); - })() - `; -}; -const rewriteReferencesVisitor = { - ReferencedIdentifier(path) { - const { - seen, - buildImportReference, - scope, - imported, - requeueInParent - } = this; - if (seen.has(path.node)) return; - seen.add(path.node); - const localName = path.node.name; - const importData = imported.get(localName); - if (importData) { - if (isInType(path)) { - throw path.buildCodeFrameError(`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. ` + `Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`); - } - const localBinding = path.scope.getBinding(localName); - const rootBinding = scope.getBinding(localName); - if (rootBinding !== localBinding) return; - const ref = buildImportReference(importData, path.node); - ref.loc = path.node.loc; - if ((path.parentPath.isCallExpression({ - callee: path.node - }) || path.parentPath.isOptionalCallExpression({ - callee: path.node - }) || path.parentPath.isTaggedTemplateExpression({ - tag: path.node - })) && isMemberExpression(ref)) { - path.replaceWith(sequenceExpression([numericLiteral(0), ref])); - } else if (path.isJSXIdentifier() && isMemberExpression(ref)) { - const { - object, - property - } = ref; - path.replaceWith(jsxMemberExpression(jsxIdentifier(object.name), jsxIdentifier(property.name))); - } else { - path.replaceWith(ref); - } - requeueInParent(path); - path.skip(); - } - }, - UpdateExpression(path) { - const { - scope, - seen, - imported, - exported, - requeueInParent, - buildImportReference - } = this; - if (seen.has(path.node)) return; - seen.add(path.node); - const arg = path.get("argument"); - if (arg.isMemberExpression()) return; - const update = path.node; - if (arg.isIdentifier()) { - const localName = arg.node.name; - if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { - return; - } - const exportedNames = exported.get(localName); - const importData = imported.get(localName); - if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) { - if (importData) { - path.replaceWith(assignmentExpression(update.operator[0] + "=", buildImportReference(importData, arg.node), buildImportThrow(localName))); - } else if (update.prefix) { - path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, cloneNode(update), path.scope)); - } else { - const ref = scope.generateDeclaredUidIdentifier(localName); - path.replaceWith(sequenceExpression([assignmentExpression("=", cloneNode(ref), cloneNode(update)), buildBindingExportAssignmentExpression(this.metadata, exportedNames, identifier(localName), path.scope), cloneNode(ref)])); - } - } - } - requeueInParent(path); - path.skip(); - }, - AssignmentExpression: { - exit(path) { - const { - scope, - seen, - imported, - exported, - requeueInParent, - buildImportReference - } = this; - if (seen.has(path.node)) return; - seen.add(path.node); - const left = path.get("left"); - if (left.isMemberExpression()) return; - if (left.isIdentifier()) { - const localName = left.node.name; - if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { - return; - } - const exportedNames = exported.get(localName); - const importData = imported.get(localName); - if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) { - _assert(path.node.operator === "=", "Path was not simplified"); - const assignment = path.node; - if (importData) { - assignment.left = buildImportReference(importData, left.node); - assignment.right = sequenceExpression([assignment.right, buildImportThrow(localName)]); - } - path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, assignment, path.scope)); - requeueInParent(path); - } - } else { - const ids = left.getOuterBindingIdentifiers(); - const programScopeIds = Object.keys(ids).filter(localName => scope.getBinding(localName) === path.scope.getBinding(localName)); - const id = programScopeIds.find(localName => imported.has(localName)); - if (id) { - path.node.right = sequenceExpression([path.node.right, buildImportThrow(id)]); - } - const items = []; - programScopeIds.forEach(localName => { - const exportedNames = exported.get(localName) || []; - if (exportedNames.length > 0) { - items.push(buildBindingExportAssignmentExpression(this.metadata, exportedNames, identifier(localName), path.scope)); - } - }); - if (items.length > 0) { - let node = sequenceExpression(items); - if (path.parentPath.isExpressionStatement()) { - node = expressionStatement(node); - node._blockHoist = path.parentPath.node._blockHoist; - } - const statement = path.insertAfter(node)[0]; - requeueInParent(statement); - } - } - } - }, - "ForOfStatement|ForInStatement"(path) { - const { - scope, - node - } = path; - const { - left - } = node; - const { - exported, - imported, - scope: programScope - } = this; - if (!isVariableDeclaration(left)) { - let didTransformExport = false, - importConstViolationName; - const loopBodyScope = path.get("body").scope; - for (const name of Object.keys(getOuterBindingIdentifiers(left))) { - if (programScope.getBinding(name) === scope.getBinding(name)) { - if (exported.has(name)) { - didTransformExport = true; - if (loopBodyScope.hasOwnBinding(name)) { - loopBodyScope.rename(name); - } - } - if (imported.has(name) && !importConstViolationName) { - importConstViolationName = name; - } - } - } - if (!didTransformExport && !importConstViolationName) { - return; - } - path.ensureBlock(); - const bodyPath = path.get("body"); - const newLoopId = scope.generateUidIdentifierBasedOnNode(left); - path.get("left").replaceWith(variableDeclaration("let", [variableDeclarator(cloneNode(newLoopId))])); - scope.registerDeclaration(path.get("left")); - if (didTransformExport) { - bodyPath.unshiftContainer("body", expressionStatement(assignmentExpression("=", left, newLoopId))); - } - if (importConstViolationName) { - bodyPath.unshiftContainer("body", expressionStatement(buildImportThrow(importConstViolationName))); - } - } - } -}; - -//# sourceMappingURL=rewrite-live-references.js.map - - -/***/ }), - -/***/ 51329: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rewriteThis; -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _traverse = __nccwpck_require__(34160); -var _t = __nccwpck_require__(53501); -const { - numericLiteral, - unaryExpression -} = _t; -const rewriteThisVisitor = _traverse.default.visitors.merge([_helperEnvironmentVisitor.default, { - ThisExpression(path) { - path.replaceWith(unaryExpression("void", numericLiteral(0), true)); - } -}]); -function rewriteThis(programPath) { - (0, _traverse.default)(programPath.node, Object.assign({}, rewriteThisVisitor, { - noScope: true - })); -} - -//# sourceMappingURL=rewrite-this.js.map - - -/***/ }), - -/***/ 97463: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildDynamicImport = buildDynamicImport; -var t = __nccwpck_require__(53501); -var _template = __nccwpck_require__(52738); -{ - { - { - exports.getDynamicImportSource = function getDynamicImportSource(node) { - const [source] = node.arguments; - return t.isStringLiteral(source) || t.isTemplateLiteral(source) ? source : _template.default.expression.ast`\`\${${source}}\``; - }; - } - } -} -function buildDynamicImport(node, deferToThen, wrapWithPromise, builder) { - const [specifier] = node.arguments; - if (t.isStringLiteral(specifier) || t.isTemplateLiteral(specifier) && specifier.quasis.length === 0) { - if (deferToThen) { - return _template.default.expression.ast` - Promise.resolve().then(() => ${builder(specifier)}) - `; - } else return builder(specifier); - } - const specifierToString = t.isTemplateLiteral(specifier) ? t.identifier("specifier") : t.templateLiteral([t.templateElement({ - raw: "" - }), t.templateElement({ - raw: "" - })], [t.identifier("specifier")]); - if (deferToThen) { - return _template.default.expression.ast` - (specifier => - new Promise(r => r(${specifierToString})) - .then(s => ${builder(t.identifier("s"))}) - )(${specifier}) - `; - } else if (wrapWithPromise) { - return _template.default.expression.ast` - (specifier => - new Promise(r => r(${builder(specifierToString)})) - )(${specifier}) - `; - } else { - return _template.default.expression.ast` - (specifier => ${builder(specifierToString)})(${specifier}) - `; - } -} - -//# sourceMappingURL=dynamic-import.js.map - - -/***/ }), - -/***/ 44213: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = getModuleName; -{ - const originalGetModuleName = getModuleName; - exports["default"] = getModuleName = function getModuleName(rootOpts, pluginOpts) { - var _pluginOpts$moduleId, _pluginOpts$moduleIds, _pluginOpts$getModule, _pluginOpts$moduleRoo; - return originalGetModuleName(rootOpts, { - moduleId: (_pluginOpts$moduleId = pluginOpts.moduleId) != null ? _pluginOpts$moduleId : rootOpts.moduleId, - moduleIds: (_pluginOpts$moduleIds = pluginOpts.moduleIds) != null ? _pluginOpts$moduleIds : rootOpts.moduleIds, - getModuleId: (_pluginOpts$getModule = pluginOpts.getModuleId) != null ? _pluginOpts$getModule : rootOpts.getModuleId, - moduleRoot: (_pluginOpts$moduleRoo = pluginOpts.moduleRoot) != null ? _pluginOpts$moduleRoo : rootOpts.moduleRoot - }); - }; -} -function getModuleName(rootOpts, pluginOpts) { - const { - filename, - filenameRelative = filename, - sourceRoot = pluginOpts.moduleRoot - } = rootOpts; - const { - moduleId, - moduleIds = !!moduleId, - getModuleId, - moduleRoot = sourceRoot - } = pluginOpts; - if (!moduleIds) return null; - if (moduleId != null && !getModuleId) { - return moduleId; - } - let moduleName = moduleRoot != null ? moduleRoot + "/" : ""; - if (filenameRelative) { - const sourceRootReplacer = sourceRoot != null ? new RegExp("^" + sourceRoot + "/?") : ""; - moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.(\w*?)$/, ""); - } - moduleName = moduleName.replace(/\\/g, "/"); - if (getModuleId) { - return getModuleId(moduleName) || moduleName; - } else { - return moduleName; - } -} - -//# sourceMappingURL=get-module-name.js.map - - -/***/ }), - -/***/ 98501: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "buildDynamicImport", ({ - enumerable: true, - get: function () { - return _dynamicImport.buildDynamicImport; - } -})); -exports.buildNamespaceInitStatements = buildNamespaceInitStatements; -exports.ensureStatementsHoisted = ensureStatementsHoisted; -Object.defineProperty(exports, "getModuleName", ({ - enumerable: true, - get: function () { - return _getModuleName.default; - } -})); -Object.defineProperty(exports, "hasExports", ({ - enumerable: true, - get: function () { - return _normalizeAndLoadMetadata.hasExports; - } -})); -Object.defineProperty(exports, "isModule", ({ - enumerable: true, - get: function () { - return _helperModuleImports.isModule; - } -})); -Object.defineProperty(exports, "isSideEffectImport", ({ - enumerable: true, - get: function () { - return _normalizeAndLoadMetadata.isSideEffectImport; - } -})); -exports.rewriteModuleStatementsAndPrepareHeader = rewriteModuleStatementsAndPrepareHeader; -Object.defineProperty(exports, "rewriteThis", ({ - enumerable: true, - get: function () { - return _rewriteThis.default; - } -})); -exports.wrapInterop = wrapInterop; -var _assert = __nccwpck_require__(39491); -var _t = __nccwpck_require__(53501); -var _template = __nccwpck_require__(52738); -var _helperModuleImports = __nccwpck_require__(45423); -var _rewriteThis = __nccwpck_require__(29019); -var _rewriteLiveReferences = __nccwpck_require__(8419); -var _normalizeAndLoadMetadata = __nccwpck_require__(29210); -var _dynamicImport = __nccwpck_require__(97463); -var _getModuleName = __nccwpck_require__(44213); -const { - booleanLiteral, - callExpression, - cloneNode, - directive, - directiveLiteral, - expressionStatement, - identifier, - isIdentifier, - memberExpression, - stringLiteral, - valueToNode, - variableDeclaration, - variableDeclarator -} = _t; -{ - { - { - exports.getDynamicImportSource = __nccwpck_require__(97463).getDynamicImportSource; - } - } -} -function rewriteModuleStatementsAndPrepareHeader(path, { - exportName, - strict, - allowTopLevelThis, - strictMode, - noInterop, - importInterop = noInterop ? "none" : "babel", - lazy, - esNamespaceOnly, - filename, - constantReexports = arguments[1].loose, - enumerableModuleMeta = arguments[1].loose, - noIncompleteNsImportDetection -}) { - (0, _normalizeAndLoadMetadata.validateImportInteropOption)(importInterop); - _assert((0, _helperModuleImports.isModule)(path), "Cannot process module statements in a script"); - path.node.sourceType = "script"; - const meta = (0, _normalizeAndLoadMetadata.default)(path, exportName, { - importInterop, - initializeReexports: constantReexports, - lazy, - esNamespaceOnly, - filename - }); - if (!allowTopLevelThis) { - (0, _rewriteThis.default)(path); - } - (0, _rewriteLiveReferences.default)(path, meta); - if (strictMode !== false) { - const hasStrict = path.node.directives.some(directive => { - return directive.value.value === "use strict"; - }); - if (!hasStrict) { - path.unshiftContainer("directives", directive(directiveLiteral("use strict"))); - } - } - const headers = []; - if ((0, _normalizeAndLoadMetadata.hasExports)(meta) && !strict) { - headers.push(buildESModuleHeader(meta, enumerableModuleMeta)); - } - const nameList = buildExportNameListDeclaration(path, meta); - if (nameList) { - meta.exportNameListName = nameList.name; - headers.push(nameList.statement); - } - headers.push(...buildExportInitializationStatements(path, meta, constantReexports, noIncompleteNsImportDetection)); - return { - meta, - headers - }; -} -function ensureStatementsHoisted(statements) { - statements.forEach(header => { - header._blockHoist = 3; - }); -} -function wrapInterop(programPath, expr, type) { - if (type === "none") { - return null; - } - if (type === "node-namespace") { - return callExpression(programPath.hub.addHelper("interopRequireWildcard"), [expr, booleanLiteral(true)]); - } else if (type === "node-default") { - return null; - } - let helper; - if (type === "default") { - helper = "interopRequireDefault"; - } else if (type === "namespace") { - helper = "interopRequireWildcard"; - } else { - throw new Error(`Unknown interop: ${type}`); - } - return callExpression(programPath.hub.addHelper(helper), [expr]); -} -function buildNamespaceInitStatements(metadata, sourceMetadata, constantReexports = false) { - const statements = []; - let srcNamespace = identifier(sourceMetadata.name); - if (sourceMetadata.lazy) srcNamespace = callExpression(srcNamespace, []); - for (const localName of sourceMetadata.importsNamespace) { - if (localName === sourceMetadata.name) continue; - statements.push(_template.default.statement`var NAME = SOURCE;`({ - NAME: localName, - SOURCE: cloneNode(srcNamespace) - })); - } - if (constantReexports) { - statements.push(...buildReexportsFromMeta(metadata, sourceMetadata, true)); - } - for (const exportName of sourceMetadata.reexportNamespace) { - statements.push((sourceMetadata.lazy ? _template.default.statement` - Object.defineProperty(EXPORTS, "NAME", { - enumerable: true, - get: function() { - return NAMESPACE; - } - }); - ` : _template.default.statement`EXPORTS.NAME = NAMESPACE;`)({ - EXPORTS: metadata.exportName, - NAME: exportName, - NAMESPACE: cloneNode(srcNamespace) - })); - } - if (sourceMetadata.reexportAll) { - const statement = buildNamespaceReexport(metadata, cloneNode(srcNamespace), constantReexports); - statement.loc = sourceMetadata.reexportAll.loc; - statements.push(statement); - } - return statements; -} -const ReexportTemplate = { - constant: _template.default.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`, - constantComputed: _template.default.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`, - spec: _template.default.statement` - Object.defineProperty(EXPORTS, "EXPORT_NAME", { - enumerable: true, - get: function() { - return NAMESPACE_IMPORT; - }, - }); - ` -}; -function buildReexportsFromMeta(meta, metadata, constantReexports) { - const namespace = metadata.lazy ? callExpression(identifier(metadata.name), []) : identifier(metadata.name); - const { - stringSpecifiers - } = meta; - return Array.from(metadata.reexports, ([exportName, importName]) => { - let NAMESPACE_IMPORT = cloneNode(namespace); - if (importName === "default" && metadata.interop === "node-default") {} else if (stringSpecifiers.has(importName)) { - NAMESPACE_IMPORT = memberExpression(NAMESPACE_IMPORT, stringLiteral(importName), true); - } else { - NAMESPACE_IMPORT = memberExpression(NAMESPACE_IMPORT, identifier(importName)); - } - const astNodes = { - EXPORTS: meta.exportName, - EXPORT_NAME: exportName, - NAMESPACE_IMPORT - }; - if (constantReexports || isIdentifier(NAMESPACE_IMPORT)) { - if (stringSpecifiers.has(exportName)) { - return ReexportTemplate.constantComputed(astNodes); - } else { - return ReexportTemplate.constant(astNodes); - } - } else { - return ReexportTemplate.spec(astNodes); - } - }); -} -function buildESModuleHeader(metadata, enumerableModuleMeta = false) { - return (enumerableModuleMeta ? _template.default.statement` - EXPORTS.__esModule = true; - ` : _template.default.statement` - Object.defineProperty(EXPORTS, "__esModule", { - value: true, - }); - `)({ - EXPORTS: metadata.exportName - }); -} -function buildNamespaceReexport(metadata, namespace, constantReexports) { - return (constantReexports ? _template.default.statement` - Object.keys(NAMESPACE).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - VERIFY_NAME_LIST; - if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; - - EXPORTS[key] = NAMESPACE[key]; - }); - ` : _template.default.statement` - Object.keys(NAMESPACE).forEach(function(key) { - if (key === "default" || key === "__esModule") return; - VERIFY_NAME_LIST; - if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; - - Object.defineProperty(EXPORTS, key, { - enumerable: true, - get: function() { - return NAMESPACE[key]; - }, - }); - }); - `)({ - NAMESPACE: namespace, - EXPORTS: metadata.exportName, - VERIFY_NAME_LIST: metadata.exportNameListName ? (0, _template.default)` - if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return; - `({ - EXPORTS_LIST: metadata.exportNameListName - }) : null - }); -} -function buildExportNameListDeclaration(programPath, metadata) { - const exportedVars = Object.create(null); - for (const data of metadata.local.values()) { - for (const name of data.names) { - exportedVars[name] = true; - } - } - let hasReexport = false; - for (const data of metadata.source.values()) { - for (const exportName of data.reexports.keys()) { - exportedVars[exportName] = true; - } - for (const exportName of data.reexportNamespace) { - exportedVars[exportName] = true; - } - hasReexport = hasReexport || !!data.reexportAll; - } - if (!hasReexport || Object.keys(exportedVars).length === 0) return null; - const name = programPath.scope.generateUidIdentifier("exportNames"); - delete exportedVars.default; - return { - name: name.name, - statement: variableDeclaration("var", [variableDeclarator(name, valueToNode(exportedVars))]) - }; -} -function buildExportInitializationStatements(programPath, metadata, constantReexports = false, noIncompleteNsImportDetection = false) { - const initStatements = []; - for (const [localName, data] of metadata.local) { - if (data.kind === "import") {} else if (data.kind === "hoisted") { - initStatements.push([data.names[0], buildInitStatement(metadata, data.names, identifier(localName))]); - } else if (!noIncompleteNsImportDetection) { - for (const exportName of data.names) { - initStatements.push([exportName, null]); - } - } - } - for (const data of metadata.source.values()) { - if (!constantReexports) { - const reexportsStatements = buildReexportsFromMeta(metadata, data, false); - const reexports = [...data.reexports.keys()]; - for (let i = 0; i < reexportsStatements.length; i++) { - initStatements.push([reexports[i], reexportsStatements[i]]); - } - } - if (!noIncompleteNsImportDetection) { - for (const exportName of data.reexportNamespace) { - initStatements.push([exportName, null]); - } - } - } - initStatements.sort(([a], [b]) => { - if (a < b) return -1; - if (b < a) return 1; - return 0; - }); - const results = []; - if (noIncompleteNsImportDetection) { - for (const [, initStatement] of initStatements) { - results.push(initStatement); - } - } else { - const chunkSize = 100; - for (let i = 0; i < initStatements.length; i += chunkSize) { - let uninitializedExportNames = []; - for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) { - const [exportName, initStatement] = initStatements[i + j]; - if (initStatement !== null) { - if (uninitializedExportNames.length > 0) { - results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode())); - uninitializedExportNames = []; - } - results.push(initStatement); - } else { - uninitializedExportNames.push(exportName); - } - } - if (uninitializedExportNames.length > 0) { - results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode())); - } - } - } - return results; -} -const InitTemplate = { - computed: _template.default.expression`EXPORTS["NAME"] = VALUE`, - default: _template.default.expression`EXPORTS.NAME = VALUE` -}; -function buildInitStatement(metadata, exportNames, initExpr) { - const { - stringSpecifiers, - exportName: EXPORTS - } = metadata; - return expressionStatement(exportNames.reduce((acc, exportName) => { - const params = { - EXPORTS, - NAME: exportName, - VALUE: acc - }; - if (stringSpecifiers.has(exportName)) { - return InitTemplate.computed(params); - } else { - return InitTemplate.default(params); - } - }, initExpr)); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 29210: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = normalizeModuleAndLoadMetadata; -exports.hasExports = hasExports; -exports.isSideEffectImport = isSideEffectImport; -exports.validateImportInteropOption = validateImportInteropOption; -var _path = __nccwpck_require__(71017); -var _helperValidatorIdentifier = __nccwpck_require__(21974); -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -function hasExports(metadata) { - return metadata.hasExports; -} -function isSideEffectImport(source) { - return source.imports.size === 0 && source.importsNamespace.size === 0 && source.reexports.size === 0 && source.reexportNamespace.size === 0 && !source.reexportAll; -} -function validateImportInteropOption(importInterop) { - if (typeof importInterop !== "function" && importInterop !== "none" && importInterop !== "babel" && importInterop !== "node") { - throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${importInterop}).`); - } - return importInterop; -} -function resolveImportInterop(importInterop, source, filename) { - if (typeof importInterop === "function") { - return validateImportInteropOption(importInterop(source, filename)); - } - return importInterop; -} -function normalizeModuleAndLoadMetadata(programPath, exportName, { - importInterop, - initializeReexports = false, - lazy = false, - esNamespaceOnly = false, - filename -}) { - if (!exportName) { - exportName = programPath.scope.generateUidIdentifier("exports").name; - } - const stringSpecifiers = new Set(); - nameAnonymousExports(programPath); - const { - local, - sources, - hasExports - } = getModuleMetadata(programPath, { - initializeReexports, - lazy - }, stringSpecifiers); - removeImportExportDeclarations(programPath); - for (const [source, metadata] of sources) { - if (metadata.importsNamespace.size > 0) { - metadata.name = metadata.importsNamespace.values().next().value; - } - const resolvedInterop = resolveImportInterop(importInterop, source, filename); - if (resolvedInterop === "none") { - metadata.interop = "none"; - } else if (resolvedInterop === "node" && metadata.interop === "namespace") { - metadata.interop = "node-namespace"; - } else if (resolvedInterop === "node" && metadata.interop === "default") { - metadata.interop = "node-default"; - } else if (esNamespaceOnly && metadata.interop === "namespace") { - metadata.interop = "default"; - } - } - return { - exportName, - exportNameListName: null, - hasExports, - local, - source: sources, - stringSpecifiers - }; -} -function getExportSpecifierName(path, stringSpecifiers) { - if (path.isIdentifier()) { - return path.node.name; - } else if (path.isStringLiteral()) { - const stringValue = path.node.value; - if (!(0, _helperValidatorIdentifier.isIdentifierName)(stringValue)) { - stringSpecifiers.add(stringValue); - } - return stringValue; - } else { - throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`); - } -} -function assertExportSpecifier(path) { - if (path.isExportSpecifier()) { - return; - } else if (path.isExportNamespaceSpecifier()) { - throw path.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`."); - } else { - throw path.buildCodeFrameError("Unexpected export specifier type"); - } -} -function getModuleMetadata(programPath, { - lazy, - initializeReexports -}, stringSpecifiers) { - const localData = getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers); - const sourceData = new Map(); - const getData = sourceNode => { - const source = sourceNode.value; - let data = sourceData.get(source); - if (!data) { - data = { - name: programPath.scope.generateUidIdentifier((0, _path.basename)(source, (0, _path.extname)(source))).name, - interop: "none", - loc: null, - imports: new Map(), - importsNamespace: new Set(), - reexports: new Map(), - reexportNamespace: new Set(), - reexportAll: null, - lazy: false, - referenced: false - }; - sourceData.set(source, data); - } - return data; - }; - let hasExports = false; - programPath.get("body").forEach(child => { - if (child.isImportDeclaration()) { - const data = getData(child.node.source); - if (!data.loc) data.loc = child.node.loc; - child.get("specifiers").forEach(spec => { - if (spec.isImportDefaultSpecifier()) { - const localName = spec.get("local").node.name; - data.imports.set(localName, "default"); - const reexport = localData.get(localName); - if (reexport) { - localData.delete(localName); - reexport.names.forEach(name => { - data.reexports.set(name, "default"); - }); - data.referenced = true; - } - } else if (spec.isImportNamespaceSpecifier()) { - const localName = spec.get("local").node.name; - data.importsNamespace.add(localName); - const reexport = localData.get(localName); - if (reexport) { - localData.delete(localName); - reexport.names.forEach(name => { - data.reexportNamespace.add(name); - }); - data.referenced = true; - } - } else if (spec.isImportSpecifier()) { - const importName = getExportSpecifierName(spec.get("imported"), stringSpecifiers); - const localName = spec.get("local").node.name; - data.imports.set(localName, importName); - const reexport = localData.get(localName); - if (reexport) { - localData.delete(localName); - reexport.names.forEach(name => { - data.reexports.set(name, importName); - }); - data.referenced = true; - } - } - }); - } else if (child.isExportAllDeclaration()) { - hasExports = true; - const data = getData(child.node.source); - if (!data.loc) data.loc = child.node.loc; - data.reexportAll = { - loc: child.node.loc - }; - data.referenced = true; - } else if (child.isExportNamedDeclaration() && child.node.source) { - hasExports = true; - const data = getData(child.node.source); - if (!data.loc) data.loc = child.node.loc; - child.get("specifiers").forEach(spec => { - assertExportSpecifier(spec); - const importName = getExportSpecifierName(spec.get("local"), stringSpecifiers); - const exportName = getExportSpecifierName(spec.get("exported"), stringSpecifiers); - data.reexports.set(exportName, importName); - data.referenced = true; - if (exportName === "__esModule") { - throw spec.get("exported").buildCodeFrameError('Illegal export "__esModule".'); - } - }); - } else if (child.isExportNamedDeclaration() || child.isExportDefaultDeclaration()) { - hasExports = true; - } - }); - for (const metadata of sourceData.values()) { - let needsDefault = false; - let needsNamed = false; - if (metadata.importsNamespace.size > 0) { - needsDefault = true; - needsNamed = true; - } - if (metadata.reexportAll) { - needsNamed = true; - } - for (const importName of metadata.imports.values()) { - if (importName === "default") needsDefault = true;else needsNamed = true; - } - for (const importName of metadata.reexports.values()) { - if (importName === "default") needsDefault = true;else needsNamed = true; - } - if (needsDefault && needsNamed) { - metadata.interop = "namespace"; - } else if (needsDefault) { - metadata.interop = "default"; - } - } - for (const [source, metadata] of sourceData) { - if (lazy !== false && !(isSideEffectImport(metadata) || metadata.reexportAll)) { - if (lazy === true) { - metadata.lazy = !/\./.test(source); - } else if (Array.isArray(lazy)) { - metadata.lazy = lazy.indexOf(source) !== -1; - } else if (typeof lazy === "function") { - metadata.lazy = lazy(source); - } else { - throw new Error(`.lazy must be a boolean, string array, or function`); - } - } - } - return { - hasExports, - local: localData, - sources: sourceData - }; -} -function getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers) { - const bindingKindLookup = new Map(); - programPath.get("body").forEach(child => { - let kind; - if (child.isImportDeclaration()) { - kind = "import"; - } else { - if (child.isExportDefaultDeclaration()) { - child = child.get("declaration"); - } - if (child.isExportNamedDeclaration()) { - if (child.node.declaration) { - child = child.get("declaration"); - } else if (initializeReexports && child.node.source && child.get("source").isStringLiteral()) { - child.get("specifiers").forEach(spec => { - assertExportSpecifier(spec); - bindingKindLookup.set(spec.get("local").node.name, "block"); - }); - return; - } - } - if (child.isFunctionDeclaration()) { - kind = "hoisted"; - } else if (child.isClassDeclaration()) { - kind = "block"; - } else if (child.isVariableDeclaration({ - kind: "var" - })) { - kind = "var"; - } else if (child.isVariableDeclaration()) { - kind = "block"; - } else { - return; - } - } - Object.keys(child.getOuterBindingIdentifiers()).forEach(name => { - bindingKindLookup.set(name, kind); - }); - }); - const localMetadata = new Map(); - const getLocalMetadata = idPath => { - const localName = idPath.node.name; - let metadata = localMetadata.get(localName); - if (!metadata) { - const kind = bindingKindLookup.get(localName); - if (kind === undefined) { - throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`); - } - metadata = { - names: [], - kind - }; - localMetadata.set(localName, metadata); - } - return metadata; - }; - programPath.get("body").forEach(child => { - if (child.isExportNamedDeclaration() && (initializeReexports || !child.node.source)) { - if (child.node.declaration) { - const declaration = child.get("declaration"); - const ids = declaration.getOuterBindingIdentifierPaths(); - Object.keys(ids).forEach(name => { - if (name === "__esModule") { - throw declaration.buildCodeFrameError('Illegal export "__esModule".'); - } - getLocalMetadata(ids[name]).names.push(name); - }); - } else { - child.get("specifiers").forEach(spec => { - const local = spec.get("local"); - const exported = spec.get("exported"); - const localMetadata = getLocalMetadata(local); - const exportName = getExportSpecifierName(exported, stringSpecifiers); - if (exportName === "__esModule") { - throw exported.buildCodeFrameError('Illegal export "__esModule".'); - } - localMetadata.names.push(exportName); - }); - } - } else if (child.isExportDefaultDeclaration()) { - const declaration = child.get("declaration"); - if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) { - getLocalMetadata(declaration.get("id")).names.push("default"); - } else { - throw declaration.buildCodeFrameError("Unexpected default expression export."); - } - } - }); - return localMetadata; -} -function nameAnonymousExports(programPath) { - programPath.get("body").forEach(child => { - if (!child.isExportDefaultDeclaration()) return; - (0, _helperSplitExportDeclaration.default)(child); - }); -} -function removeImportExportDeclarations(programPath) { - programPath.get("body").forEach(child => { - if (child.isImportDeclaration()) { - child.remove(); - } else if (child.isExportNamedDeclaration()) { - if (child.node.declaration) { - child.node.declaration._blockHoist = child.node._blockHoist; - child.replaceWith(child.node.declaration); - } else { - child.remove(); - } - } else if (child.isExportDefaultDeclaration()) { - const declaration = child.get("declaration"); - if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) { - declaration._blockHoist = child.node._blockHoist; - child.replaceWith(declaration); - } else { - throw declaration.buildCodeFrameError("Unexpected default expression export."); - } - } else if (child.isExportAllDeclaration()) { - child.remove(); - } - }); -} - -//# sourceMappingURL=normalize-and-load-metadata.js.map - - -/***/ }), - -/***/ 8419: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rewriteLiveReferences; -var _assert = __nccwpck_require__(39491); -var _t = __nccwpck_require__(53501); -var _template = __nccwpck_require__(52738); -var _helperSimpleAccess = __nccwpck_require__(62469); -const { - assignmentExpression, - callExpression, - cloneNode, - expressionStatement, - getOuterBindingIdentifiers, - identifier, - isMemberExpression, - isVariableDeclaration, - jsxIdentifier, - jsxMemberExpression, - memberExpression, - numericLiteral, - sequenceExpression, - stringLiteral, - variableDeclaration, - variableDeclarator -} = _t; -function isInType(path) { - do { - switch (path.parent.type) { - case "TSTypeAnnotation": - case "TSTypeAliasDeclaration": - case "TSTypeReference": - case "TypeAnnotation": - case "TypeAlias": - return true; - case "ExportSpecifier": - return path.parentPath.parent.exportKind === "type"; - default: - if (path.parentPath.isStatement() || path.parentPath.isExpression()) { - return false; - } - } - } while (path = path.parentPath); -} -function rewriteLiveReferences(programPath, metadata) { - const imported = new Map(); - const exported = new Map(); - const requeueInParent = path => { - programPath.requeue(path); - }; - for (const [source, data] of metadata.source) { - for (const [localName, importName] of data.imports) { - imported.set(localName, [source, importName, null]); - } - for (const localName of data.importsNamespace) { - imported.set(localName, [source, null, localName]); - } - } - for (const [local, data] of metadata.local) { - let exportMeta = exported.get(local); - if (!exportMeta) { - exportMeta = []; - exported.set(local, exportMeta); - } - exportMeta.push(...data.names); - } - const rewriteBindingInitVisitorState = { - metadata, - requeueInParent, - scope: programPath.scope, - exported - }; - programPath.traverse(rewriteBindingInitVisitor, rewriteBindingInitVisitorState); - const bindingNames = new Set([...Array.from(imported.keys()), ...Array.from(exported.keys())]); - { - (0, _helperSimpleAccess.default)(programPath, bindingNames, false); - } - const rewriteReferencesVisitorState = { - seen: new WeakSet(), - metadata, - requeueInParent, - scope: programPath.scope, - imported, - exported, - buildImportReference: ([source, importName, localName], identNode) => { - const meta = metadata.source.get(source); - meta.referenced = true; - if (localName) { - if (meta.lazy) { - identNode = callExpression(identNode, []); - } - return identNode; - } - let namespace = identifier(meta.name); - if (meta.lazy) namespace = callExpression(namespace, []); - if (importName === "default" && meta.interop === "node-default") { - return namespace; - } - const computed = metadata.stringSpecifiers.has(importName); - return memberExpression(namespace, computed ? stringLiteral(importName) : identifier(importName), computed); - } - }; - programPath.traverse(rewriteReferencesVisitor, rewriteReferencesVisitorState); -} -const rewriteBindingInitVisitor = { - Scope(path) { - path.skip(); - }, - ClassDeclaration(path) { - const { - requeueInParent, - exported, - metadata - } = this; - const { - id - } = path.node; - if (!id) throw new Error("Expected class to have a name"); - const localName = id.name; - const exportNames = exported.get(localName) || []; - if (exportNames.length > 0) { - const statement = expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, identifier(localName), path.scope)); - statement._blockHoist = path.node._blockHoist; - requeueInParent(path.insertAfter(statement)[0]); - } - }, - VariableDeclaration(path) { - const { - requeueInParent, - exported, - metadata - } = this; - Object.keys(path.getOuterBindingIdentifiers()).forEach(localName => { - const exportNames = exported.get(localName) || []; - if (exportNames.length > 0) { - const statement = expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, identifier(localName), path.scope)); - statement._blockHoist = path.node._blockHoist; - requeueInParent(path.insertAfter(statement)[0]); - } - }); - } -}; -const buildBindingExportAssignmentExpression = (metadata, exportNames, localExpr, scope) => { - const exportsObjectName = metadata.exportName; - for (let currentScope = scope; currentScope != null; currentScope = currentScope.parent) { - if (currentScope.hasOwnBinding(exportsObjectName)) { - currentScope.rename(exportsObjectName); - } - } - return (exportNames || []).reduce((expr, exportName) => { - const { - stringSpecifiers - } = metadata; - const computed = stringSpecifiers.has(exportName); - return assignmentExpression("=", memberExpression(identifier(exportsObjectName), computed ? stringLiteral(exportName) : identifier(exportName), computed), expr); - }, localExpr); -}; -const buildImportThrow = localName => { - return _template.default.expression.ast` - (function() { - throw new Error('"' + '${localName}' + '" is read-only.'); - })() - `; -}; -const rewriteReferencesVisitor = { - ReferencedIdentifier(path) { - const { - seen, - buildImportReference, - scope, - imported, - requeueInParent - } = this; - if (seen.has(path.node)) return; - seen.add(path.node); - const localName = path.node.name; - const importData = imported.get(localName); - if (importData) { - if (isInType(path)) { - throw path.buildCodeFrameError(`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. ` + `Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`); - } - const localBinding = path.scope.getBinding(localName); - const rootBinding = scope.getBinding(localName); - if (rootBinding !== localBinding) return; - const ref = buildImportReference(importData, path.node); - ref.loc = path.node.loc; - if ((path.parentPath.isCallExpression({ - callee: path.node - }) || path.parentPath.isOptionalCallExpression({ - callee: path.node - }) || path.parentPath.isTaggedTemplateExpression({ - tag: path.node - })) && isMemberExpression(ref)) { - path.replaceWith(sequenceExpression([numericLiteral(0), ref])); - } else if (path.isJSXIdentifier() && isMemberExpression(ref)) { - const { - object, - property - } = ref; - path.replaceWith(jsxMemberExpression(jsxIdentifier(object.name), jsxIdentifier(property.name))); - } else { - path.replaceWith(ref); - } - requeueInParent(path); - path.skip(); - } - }, - UpdateExpression(path) { - const { - scope, - seen, - imported, - exported, - requeueInParent, - buildImportReference - } = this; - if (seen.has(path.node)) return; - seen.add(path.node); - const arg = path.get("argument"); - if (arg.isMemberExpression()) return; - const update = path.node; - if (arg.isIdentifier()) { - const localName = arg.node.name; - if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { - return; - } - const exportedNames = exported.get(localName); - const importData = imported.get(localName); - if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) { - if (importData) { - path.replaceWith(assignmentExpression(update.operator[0] + "=", buildImportReference(importData, arg.node), buildImportThrow(localName))); - } else if (update.prefix) { - path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, cloneNode(update), path.scope)); - } else { - const ref = scope.generateDeclaredUidIdentifier(localName); - path.replaceWith(sequenceExpression([assignmentExpression("=", cloneNode(ref), cloneNode(update)), buildBindingExportAssignmentExpression(this.metadata, exportedNames, identifier(localName), path.scope), cloneNode(ref)])); - } - } - } - requeueInParent(path); - path.skip(); - }, - AssignmentExpression: { - exit(path) { - const { - scope, - seen, - imported, - exported, - requeueInParent, - buildImportReference - } = this; - if (seen.has(path.node)) return; - seen.add(path.node); - const left = path.get("left"); - if (left.isMemberExpression()) return; - if (left.isIdentifier()) { - const localName = left.node.name; - if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { - return; - } - const exportedNames = exported.get(localName); - const importData = imported.get(localName); - if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) { - _assert(path.node.operator === "=", "Path was not simplified"); - const assignment = path.node; - if (importData) { - assignment.left = buildImportReference(importData, left.node); - assignment.right = sequenceExpression([assignment.right, buildImportThrow(localName)]); - } - path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, assignment, path.scope)); - requeueInParent(path); - } - } else { - const ids = left.getOuterBindingIdentifiers(); - const programScopeIds = Object.keys(ids).filter(localName => scope.getBinding(localName) === path.scope.getBinding(localName)); - const id = programScopeIds.find(localName => imported.has(localName)); - if (id) { - path.node.right = sequenceExpression([path.node.right, buildImportThrow(id)]); - } - const items = []; - programScopeIds.forEach(localName => { - const exportedNames = exported.get(localName) || []; - if (exportedNames.length > 0) { - items.push(buildBindingExportAssignmentExpression(this.metadata, exportedNames, identifier(localName), path.scope)); - } - }); - if (items.length > 0) { - let node = sequenceExpression(items); - if (path.parentPath.isExpressionStatement()) { - node = expressionStatement(node); - node._blockHoist = path.parentPath.node._blockHoist; - } - const statement = path.insertAfter(node)[0]; - requeueInParent(statement); - } - } - } - }, - "ForOfStatement|ForInStatement"(path) { - const { - scope, - node - } = path; - const { - left - } = node; - const { - exported, - imported, - scope: programScope - } = this; - if (!isVariableDeclaration(left)) { - let didTransformExport = false, - importConstViolationName; - const loopBodyScope = path.get("body").scope; - for (const name of Object.keys(getOuterBindingIdentifiers(left))) { - if (programScope.getBinding(name) === scope.getBinding(name)) { - if (exported.has(name)) { - didTransformExport = true; - if (loopBodyScope.hasOwnBinding(name)) { - loopBodyScope.rename(name); - } - } - if (imported.has(name) && !importConstViolationName) { - importConstViolationName = name; - } - } - } - if (!didTransformExport && !importConstViolationName) { - return; - } - path.ensureBlock(); - const bodyPath = path.get("body"); - const newLoopId = scope.generateUidIdentifierBasedOnNode(left); - path.get("left").replaceWith(variableDeclaration("let", [variableDeclarator(cloneNode(newLoopId))])); - scope.registerDeclaration(path.get("left")); - if (didTransformExport) { - bodyPath.unshiftContainer("body", expressionStatement(assignmentExpression("=", left, newLoopId))); - } - if (importConstViolationName) { - bodyPath.unshiftContainer("body", expressionStatement(buildImportThrow(importConstViolationName))); - } - } - } -}; - -//# sourceMappingURL=rewrite-live-references.js.map - - -/***/ }), - -/***/ 29019: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rewriteThis; -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _traverse = __nccwpck_require__(34160); -var _t = __nccwpck_require__(53501); -const { - numericLiteral, - unaryExpression -} = _t; -const rewriteThisVisitor = _traverse.default.visitors.merge([_helperEnvironmentVisitor.default, { - ThisExpression(path) { - path.replaceWith(unaryExpression("void", numericLiteral(0), true)); - } -}]); -function rewriteThis(programPath) { - (0, _traverse.default)(programPath.node, Object.assign({}, rewriteThisVisitor, { - noScope: true - })); -} - -//# sourceMappingURL=rewrite-this.js.map - - -/***/ }), - -/***/ 95756: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = optimiseCallExpression; -var _t = __nccwpck_require__(53501); -const { - callExpression, - identifier, - isIdentifier, - isSpreadElement, - memberExpression, - optionalCallExpression, - optionalMemberExpression -} = _t; -function optimiseCallExpression(callee, thisNode, args, optional) { - if (args.length === 1 && isSpreadElement(args[0]) && isIdentifier(args[0].argument, { - name: "arguments" - })) { - if (optional) { - return optionalCallExpression(optionalMemberExpression(callee, identifier("apply"), false, true), [thisNode, args[0].argument], false); - } - return callExpression(memberExpression(callee, identifier("apply")), [thisNode, args[0].argument]); - } else { - if (optional) { - return optionalCallExpression(optionalMemberExpression(callee, identifier("call"), false, true), [thisNode, ...args], false); - } - return callExpression(memberExpression(callee, identifier("call")), [thisNode, ...args]); - } -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 90151: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.declare = declare; -exports.declarePreset = void 0; -const apiPolyfills = { - assertVersion: api => range => { - throwVersionError(range, api.version); - }, - targets: () => () => { - return {}; - }, - assumption: () => () => { - return undefined; - } -}; -function declare(builder) { - return (api, options, dirname) => { - var _clonedApi2; - let clonedApi; - for (const name of Object.keys(apiPolyfills)) { - var _clonedApi; - if (api[name]) continue; - - clonedApi = (_clonedApi = clonedApi) != null ? _clonedApi : copyApiObject(api); - clonedApi[name] = apiPolyfills[name](clonedApi); - } - - return builder((_clonedApi2 = clonedApi) != null ? _clonedApi2 : api, options || {}, dirname); - }; -} -const declarePreset = declare; -exports.declarePreset = declarePreset; -function copyApiObject(api) { - let proto = null; - if (typeof api.version === "string" && /^7\./.test(api.version)) { - proto = Object.getPrototypeOf(api); - if (proto && (!has(proto, "version") || !has(proto, "transform") || !has(proto, "template") || !has(proto, "types"))) { - proto = null; - } - } - return Object.assign({}, proto, api); -} -function has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -} -function throwVersionError(range, version) { - if (typeof range === "number") { - if (!Number.isInteger(range)) { - throw new Error("Expected string or integer value."); - } - range = `^${range}.0.0-0`; - } - if (typeof range !== "string") { - throw new Error("Expected string or integer value."); - } - const limit = Error.stackTraceLimit; - if (typeof limit === "number" && limit < 25) { - Error.stackTraceLimit = 25; - } - let err; - if (version.slice(0, 2) === "7.") { - err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`); - } else { - err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); - } - if (typeof limit === "number") { - Error.stackTraceLimit = limit; - } - throw Object.assign(err, { - code: "BABEL_VERSION_UNSUPPORTED", - version, - range - }); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 36028: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.declare = declare; -exports.declarePreset = void 0; -const apiPolyfills = { - assertVersion: api => range => { - throwVersionError(range, api.version); - } -}; -{ - Object.assign(apiPolyfills, { - targets: () => () => { - return {}; - }, - assumption: () => () => { - return undefined; - } - }); -} -function declare(builder) { - return (api, options, dirname) => { - var _clonedApi2; - let clonedApi; - for (const name of Object.keys(apiPolyfills)) { - var _clonedApi; - if (api[name]) continue; - (_clonedApi = clonedApi) != null ? _clonedApi : clonedApi = copyApiObject(api); - clonedApi[name] = apiPolyfills[name](clonedApi); - } - return builder((_clonedApi2 = clonedApi) != null ? _clonedApi2 : api, options || {}, dirname); - }; -} -const declarePreset = declare; -exports.declarePreset = declarePreset; -function copyApiObject(api) { - let proto = null; - if (typeof api.version === "string" && /^7\./.test(api.version)) { - proto = Object.getPrototypeOf(api); - if (proto && (!has(proto, "version") || !has(proto, "transform") || !has(proto, "template") || !has(proto, "types"))) { - proto = null; - } - } - return Object.assign({}, proto, api); -} -function has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -} -function throwVersionError(range, version) { - if (typeof range === "number") { - if (!Number.isInteger(range)) { - throw new Error("Expected string or integer value."); - } - range = `^${range}.0.0-0`; - } - if (typeof range !== "string") { - throw new Error("Expected string or integer value."); - } - const limit = Error.stackTraceLimit; - if (typeof limit === "number" && limit < 25) { - Error.stackTraceLimit = 25; - } - let err; - if (version.slice(0, 2) === "7.") { - err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`); - } else { - err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); - } - if (typeof limit === "number") { - Error.stackTraceLimit = limit; - } - throw Object.assign(err, { - code: "BABEL_VERSION_UNSUPPORTED", - version, - range - }); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 74135: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _helperWrapFunction = __nccwpck_require__(68886); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _core = __nccwpck_require__(27324); -var _t = __nccwpck_require__(53501); -const { - callExpression, - cloneNode, - isIdentifier, - isThisExpression, - yieldExpression -} = _t; -const awaitVisitor = _core.traverse.visitors.merge([{ - ArrowFunctionExpression(path) { - path.skip(); - }, - AwaitExpression(path, { - wrapAwait - }) { - const argument = path.get("argument"); - path.replaceWith(yieldExpression(wrapAwait ? callExpression(cloneNode(wrapAwait), [argument.node]) : argument.node)); - } -}, _helperEnvironmentVisitor.default]); -function _default(path, helpers, noNewArrows, ignoreFunctionLength) { - path.traverse(awaitVisitor, { - wrapAwait: helpers.wrapAwait - }); - const isIIFE = checkIsIIFE(path); - path.node.async = false; - path.node.generator = true; - (0, _helperWrapFunction.default)(path, cloneNode(helpers.wrapAsync), noNewArrows, ignoreFunctionLength); - const isProperty = path.isObjectMethod() || path.isClassMethod() || path.parentPath.isObjectProperty() || path.parentPath.isClassProperty(); - if (!isProperty && !isIIFE && path.isExpression()) { - (0, _helperAnnotateAsPure.default)(path); - } - function checkIsIIFE(path) { - if (path.parentPath.isCallExpression({ - callee: path.node - })) { - return true; - } - const { - parentPath - } = path; - if (parentPath.isMemberExpression() && isIdentifier(parentPath.node.property, { - name: "bind" - })) { - const { - parentPath: bindCall - } = parentPath; - return bindCall.isCallExpression() && bindCall.node.arguments.length === 1 && isThisExpression(bindCall.node.arguments[0]) && bindCall.parentPath.isCallExpression({ - callee: bindCall.node - }); - } - return false; - } -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 20846: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _helperMemberExpressionToFunctions = __nccwpck_require__(85512); -var _helperOptimiseCallExpression = __nccwpck_require__(95756); -var _template = __nccwpck_require__(52738); -var _traverse = __nccwpck_require__(34160); -var _t = __nccwpck_require__(53501); -const { - assignmentExpression, - booleanLiteral, - callExpression, - cloneNode, - identifier, - memberExpression, - sequenceExpression, - stringLiteral, - thisExpression -} = _t; -{ - { - { - const ns = __nccwpck_require__(82828); - exports.environmentVisitor = ns.default; - exports.skipAllButComputedKey = ns.skipAllButComputedKey; - } - } -} -function getPrototypeOfExpression(objectRef, isStatic, file, isPrivateMethod) { - objectRef = cloneNode(objectRef); - const targetRef = isStatic || isPrivateMethod ? objectRef : memberExpression(objectRef, identifier("prototype")); - return callExpression(file.addHelper("getPrototypeOf"), [targetRef]); -} -const visitor = _traverse.default.visitors.merge([_helperEnvironmentVisitor.default, { - Super(path, state) { - const { - node, - parentPath - } = path; - if (!parentPath.isMemberExpression({ - object: node - })) return; - state.handle(parentPath); - } -}]); -const unshadowSuperBindingVisitor = _traverse.default.visitors.merge([_helperEnvironmentVisitor.default, { - Scopable(path, { - refName - }) { - const binding = path.scope.getOwnBinding(refName); - if (binding && binding.identifier.name === refName) { - path.scope.rename(refName); - } - } -}]); -const specHandlers = { - memoise(superMember, count) { - const { - scope, - node - } = superMember; - const { - computed, - property - } = node; - if (!computed) { - return; - } - const memo = scope.maybeGenerateMemoised(property); - if (!memo) { - return; - } - this.memoiser.set(property, memo, count); - }, - prop(superMember) { - const { - computed, - property - } = superMember.node; - if (this.memoiser.has(property)) { - return cloneNode(this.memoiser.get(property)); - } - if (computed) { - return cloneNode(property); - } - return stringLiteral(property.name); - }, - get(superMember) { - return this._get(superMember, this._getThisRefs()); - }, - _get(superMember, thisRefs) { - const proto = getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod); - return callExpression(this.file.addHelper("get"), [thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), thisRefs.this]); - }, - _getThisRefs() { - if (!this.isDerivedConstructor) { - return { - this: thisExpression() - }; - } - const thisRef = this.scope.generateDeclaredUidIdentifier("thisSuper"); - return { - memo: assignmentExpression("=", thisRef, thisExpression()), - this: cloneNode(thisRef) - }; - }, - set(superMember, value) { - const thisRefs = this._getThisRefs(); - const proto = getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod); - return callExpression(this.file.addHelper("set"), [thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), value, thisRefs.this, booleanLiteral(superMember.isInStrictMode())]); - }, - destructureSet(superMember) { - throw superMember.buildCodeFrameError(`Destructuring to a super field is not supported yet.`); - }, - call(superMember, args) { - const thisRefs = this._getThisRefs(); - return (0, _helperOptimiseCallExpression.default)(this._get(superMember, thisRefs), cloneNode(thisRefs.this), args, false); - }, - optionalCall(superMember, args) { - const thisRefs = this._getThisRefs(); - return (0, _helperOptimiseCallExpression.default)(this._get(superMember, thisRefs), cloneNode(thisRefs.this), args, true); - }, - delete(superMember) { - if (superMember.node.computed) { - return sequenceExpression([callExpression(this.file.addHelper("toPropertyKey"), [cloneNode(superMember.node.property)]), _template.default.expression.ast` - function () { throw new ReferenceError("'delete super[expr]' is invalid"); }() - `]); - } else { - return _template.default.expression.ast` - function () { throw new ReferenceError("'delete super.prop' is invalid"); }() - `; - } - } -}; -const looseHandlers = Object.assign({}, specHandlers, { - prop(superMember) { - const { - property - } = superMember.node; - if (this.memoiser.has(property)) { - return cloneNode(this.memoiser.get(property)); - } - return cloneNode(property); - }, - get(superMember) { - const { - isStatic, - getSuperRef - } = this; - const { - computed - } = superMember.node; - const prop = this.prop(superMember); - let object; - if (isStatic) { - var _getSuperRef; - object = (_getSuperRef = getSuperRef()) != null ? _getSuperRef : memberExpression(identifier("Function"), identifier("prototype")); - } else { - var _getSuperRef2; - object = memberExpression((_getSuperRef2 = getSuperRef()) != null ? _getSuperRef2 : identifier("Object"), identifier("prototype")); - } - return memberExpression(object, prop, computed); - }, - set(superMember, value) { - const { - computed - } = superMember.node; - const prop = this.prop(superMember); - return assignmentExpression("=", memberExpression(thisExpression(), prop, computed), value); - }, - destructureSet(superMember) { - const { - computed - } = superMember.node; - const prop = this.prop(superMember); - return memberExpression(thisExpression(), prop, computed); - }, - call(superMember, args) { - return (0, _helperOptimiseCallExpression.default)(this.get(superMember), thisExpression(), args, false); - }, - optionalCall(superMember, args) { - return (0, _helperOptimiseCallExpression.default)(this.get(superMember), thisExpression(), args, true); - } -}); -class ReplaceSupers { - constructor(opts) { - var _opts$constantSuper; - const path = opts.methodPath; - this.methodPath = path; - this.isDerivedConstructor = path.isClassMethod({ - kind: "constructor" - }) && !!opts.superRef; - this.isStatic = path.isObjectMethod() || path.node.static || (path.isStaticBlock == null ? void 0 : path.isStaticBlock()); - this.isPrivateMethod = path.isPrivate() && path.isMethod(); - this.file = opts.file; - this.constantSuper = (_opts$constantSuper = opts.constantSuper) != null ? _opts$constantSuper : opts.isLoose; - this.opts = opts; - } - getObjectRef() { - return cloneNode(this.opts.objectRef || this.opts.getObjectRef()); - } - getSuperRef() { - if (this.opts.superRef) return cloneNode(this.opts.superRef); - if (this.opts.getSuperRef) { - return cloneNode(this.opts.getSuperRef()); - } - } - replace() { - if (this.opts.refToPreserve) { - this.methodPath.traverse(unshadowSuperBindingVisitor, { - refName: this.opts.refToPreserve.name - }); - } - const handler = this.constantSuper ? looseHandlers : specHandlers; - (0, _helperMemberExpressionToFunctions.default)(this.methodPath, visitor, Object.assign({ - file: this.file, - scope: this.methodPath.scope, - isDerivedConstructor: this.isDerivedConstructor, - isStatic: this.isStatic, - isPrivateMethod: this.isPrivateMethod, - getObjectRef: this.getObjectRef.bind(this), - getSuperRef: this.getSuperRef.bind(this), - boundGet: handler.get - }, handler)); - } -} -exports["default"] = ReplaceSupers; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 62469: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = simplifyAccess; -var _t = __nccwpck_require__(53501); -const { - LOGICAL_OPERATORS, - assignmentExpression, - binaryExpression, - cloneNode, - identifier, - logicalExpression, - numericLiteral, - sequenceExpression, - unaryExpression -} = _t; -const simpleAssignmentVisitor = { - AssignmentExpression: { - exit(path) { - const { - scope, - seen, - bindingNames - } = this; - if (path.node.operator === "=") return; - if (seen.has(path.node)) return; - seen.add(path.node); - const left = path.get("left"); - if (!left.isIdentifier()) return; - const localName = left.node.name; - if (!bindingNames.has(localName)) return; - if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { - return; - } - const operator = path.node.operator.slice(0, -1); - if (LOGICAL_OPERATORS.includes(operator)) { - path.replaceWith(logicalExpression(operator, path.node.left, assignmentExpression("=", cloneNode(path.node.left), path.node.right))); - } else { - path.node.right = binaryExpression(operator, cloneNode(path.node.left), path.node.right); - path.node.operator = "="; - } - } - } -}; -{ - simpleAssignmentVisitor.UpdateExpression = { - exit(path) { - if (!this.includeUpdateExpression) return; - const { - scope, - bindingNames - } = this; - const arg = path.get("argument"); - if (!arg.isIdentifier()) return; - const localName = arg.node.name; - if (!bindingNames.has(localName)) return; - if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { - return; - } - if (path.parentPath.isExpressionStatement() && !path.isCompletionRecord()) { - const operator = path.node.operator == "++" ? "+=" : "-="; - path.replaceWith(assignmentExpression(operator, arg.node, numericLiteral(1))); - } else if (path.node.prefix) { - path.replaceWith(assignmentExpression("=", identifier(localName), binaryExpression(path.node.operator[0], unaryExpression("+", arg.node), numericLiteral(1)))); - } else { - const old = path.scope.generateUidIdentifierBasedOnNode(arg.node, "old"); - const varName = old.name; - path.scope.push({ - id: old - }); - const binary = binaryExpression(path.node.operator[0], identifier(varName), numericLiteral(1)); - path.replaceWith(sequenceExpression([assignmentExpression("=", identifier(varName), unaryExpression("+", arg.node)), assignmentExpression("=", cloneNode(arg.node), binary), identifier(varName)])); - } - } - }; -} -function simplifyAccess(path, bindingNames) { - { - var _arguments$; - path.traverse(simpleAssignmentVisitor, { - scope: path.scope, - bindingNames, - seen: new WeakSet(), - includeUpdateExpression: (_arguments$ = arguments[2]) != null ? _arguments$ : true - }); - } -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 72291: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.isTransparentExprWrapper = isTransparentExprWrapper; -exports.skipTransparentExprWrapperNodes = skipTransparentExprWrapperNodes; -exports.skipTransparentExprWrappers = skipTransparentExprWrappers; -var _t = __nccwpck_require__(53501); -const { - isParenthesizedExpression, - isTSAsExpression, - isTSNonNullExpression, - isTSSatisfiesExpression, - isTSTypeAssertion, - isTypeCastExpression -} = _t; -function isTransparentExprWrapper(node) { - return isTSAsExpression(node) || isTSSatisfiesExpression(node) || isTSTypeAssertion(node) || isTSNonNullExpression(node) || isTypeCastExpression(node) || isParenthesizedExpression(node); -} -function skipTransparentExprWrappers(path) { - while (isTransparentExprWrapper(path.node)) { - path = path.get("expression"); - } - return path; -} -function skipTransparentExprWrapperNodes(node) { - while (isTransparentExprWrapper(node)) { - node = node.expression; - } - return node; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 48548: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = splitExportDeclaration; -var _t = __nccwpck_require__(53501); -const { - cloneNode, - exportNamedDeclaration, - exportSpecifier, - identifier, - variableDeclaration, - variableDeclarator -} = _t; -function splitExportDeclaration(exportDeclaration) { - if (!exportDeclaration.isExportDeclaration() || exportDeclaration.isExportAllDeclaration()) { - throw new Error("Only default and named export declarations can be split."); - } - if (exportDeclaration.isExportDefaultDeclaration()) { - const declaration = exportDeclaration.get("declaration"); - const standaloneDeclaration = declaration.isFunctionDeclaration() || declaration.isClassDeclaration(); - const scope = declaration.isScope() ? declaration.scope.parent : declaration.scope; - let id = declaration.node.id; - let needBindingRegistration = false; - if (!id) { - needBindingRegistration = true; - id = scope.generateUidIdentifier("default"); - if (standaloneDeclaration || declaration.isFunctionExpression() || declaration.isClassExpression()) { - declaration.node.id = cloneNode(id); - } - } - const updatedDeclaration = standaloneDeclaration ? declaration.node : variableDeclaration("var", [variableDeclarator(cloneNode(id), declaration.node)]); - const updatedExportDeclaration = exportNamedDeclaration(null, [exportSpecifier(cloneNode(id), identifier("default"))]); - exportDeclaration.insertAfter(updatedExportDeclaration); - exportDeclaration.replaceWith(updatedDeclaration); - if (needBindingRegistration) { - scope.registerDeclaration(exportDeclaration); - } - return exportDeclaration; - } else if (exportDeclaration.get("specifiers").length > 0) { - throw new Error("It doesn't make sense to split exported specifiers."); - } - const declaration = exportDeclaration.get("declaration"); - const bindingIdentifiers = declaration.getOuterBindingIdentifiers(); - const specifiers = Object.keys(bindingIdentifiers).map(name => { - return exportSpecifier(identifier(name), identifier(name)); - }); - const aliasDeclar = exportNamedDeclaration(null, specifiers); - exportDeclaration.insertAfter(aliasDeclar); - exportDeclaration.replaceWith(declaration.node); - return exportDeclaration; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 92776: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.readCodePoint = readCodePoint; -exports.readInt = readInt; -exports.readStringContents = readStringContents; -var _isDigit = function isDigit(code) { - return code >= 48 && code <= 57; -}; -const forbiddenNumericSeparatorSiblings = { - decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]), - hex: new Set([46, 88, 95, 120]) -}; -const isAllowedNumericSeparatorSibling = { - bin: ch => ch === 48 || ch === 49, - oct: ch => ch >= 48 && ch <= 55, - dec: ch => ch >= 48 && ch <= 57, - hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102 -}; -function readStringContents(type, input, pos, lineStart, curLine, errors) { - const initialPos = pos; - const initialLineStart = lineStart; - const initialCurLine = curLine; - let out = ""; - let firstInvalidLoc = null; - let chunkStart = pos; - const { - length - } = input; - for (;;) { - if (pos >= length) { - errors.unterminated(initialPos, initialLineStart, initialCurLine); - out += input.slice(chunkStart, pos); - break; - } - const ch = input.charCodeAt(pos); - if (isStringEnd(type, ch, input, pos)) { - out += input.slice(chunkStart, pos); - break; - } - if (ch === 92) { - out += input.slice(chunkStart, pos); - const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors); - if (res.ch === null && !firstInvalidLoc) { - firstInvalidLoc = { - pos, - lineStart, - curLine - }; - } else { - out += res.ch; - } - ({ - pos, - lineStart, - curLine - } = res); - chunkStart = pos; - } else if (ch === 8232 || ch === 8233) { - ++pos; - ++curLine; - lineStart = pos; - } else if (ch === 10 || ch === 13) { - if (type === "template") { - out += input.slice(chunkStart, pos) + "\n"; - ++pos; - if (ch === 13 && input.charCodeAt(pos) === 10) { - ++pos; - } - ++curLine; - chunkStart = lineStart = pos; - } else { - errors.unterminated(initialPos, initialLineStart, initialCurLine); - } - } else { - ++pos; - } - } - return { - pos, - str: out, - firstInvalidLoc, - lineStart, - curLine, - containsInvalid: !!firstInvalidLoc - }; -} -function isStringEnd(type, ch, input, pos) { - if (type === "template") { - return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123; - } - return ch === (type === "double" ? 34 : 39); -} -function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) { - const throwOnInvalid = !inTemplate; - pos++; - const res = ch => ({ - pos, - ch, - lineStart, - curLine - }); - const ch = input.charCodeAt(pos++); - switch (ch) { - case 110: - return res("\n"); - case 114: - return res("\r"); - case 120: - { - let code; - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors)); - return res(code === null ? null : String.fromCharCode(code)); - } - case 117: - { - let code; - ({ - code, - pos - } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors)); - return res(code === null ? null : String.fromCodePoint(code)); - } - case 116: - return res("\t"); - case 98: - return res("\b"); - case 118: - return res("\u000b"); - case 102: - return res("\f"); - case 13: - if (input.charCodeAt(pos) === 10) { - ++pos; - } - case 10: - lineStart = pos; - ++curLine; - case 8232: - case 8233: - return res(""); - case 56: - case 57: - if (inTemplate) { - return res(null); - } else { - errors.strictNumericEscape(pos - 1, lineStart, curLine); - } - default: - if (ch >= 48 && ch <= 55) { - const startPos = pos - 1; - const match = input.slice(startPos, pos + 2).match(/^[0-7]+/); - let octalStr = match[0]; - let octal = parseInt(octalStr, 8); - if (octal > 255) { - octalStr = octalStr.slice(0, -1); - octal = parseInt(octalStr, 8); - } - pos += octalStr.length - 1; - const next = input.charCodeAt(pos); - if (octalStr !== "0" || next === 56 || next === 57) { - if (inTemplate) { - return res(null); - } else { - errors.strictNumericEscape(startPos, lineStart, curLine); - } - } - return res(String.fromCharCode(octal)); - } - return res(String.fromCharCode(ch)); - } -} -function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) { - const initialPos = pos; - let n; - ({ - n, - pos - } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid)); - if (n === null) { - if (throwOnInvalid) { - errors.invalidEscapeSequence(initialPos, lineStart, curLine); - } else { - pos = initialPos - 1; - } - } - return { - code: n, - pos - }; -} -function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) { - const start = pos; - const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct; - const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin; - let invalid = false; - let total = 0; - for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) { - const code = input.charCodeAt(pos); - let val; - if (code === 95 && allowNumSeparator !== "bail") { - const prev = input.charCodeAt(pos - 1); - const next = input.charCodeAt(pos + 1); - if (!allowNumSeparator) { - if (bailOnError) return { - n: null, - pos - }; - errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine); - } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) { - if (bailOnError) return { - n: null, - pos - }; - errors.unexpectedNumericSeparator(pos, lineStart, curLine); - } - ++pos; - continue; - } - if (code >= 97) { - val = code - 97 + 10; - } else if (code >= 65) { - val = code - 65 + 10; - } else if (_isDigit(code)) { - val = code - 48; - } else { - val = Infinity; - } - if (val >= radix) { - if (val <= 9 && bailOnError) { - return { - n: null, - pos - }; - } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) { - val = 0; - } else if (forceLen) { - val = 0; - invalid = true; - } else { - break; - } - } - ++pos; - total = total * radix + val; - } - if (pos === start || len != null && pos - start !== len || invalid) { - return { - n: null, - pos - }; - } - return { - n: total, - pos - }; -} -function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) { - const ch = input.charCodeAt(pos); - let code; - if (ch === 123) { - ++pos; - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors)); - ++pos; - if (code !== null && code > 0x10ffff) { - if (throwOnInvalid) { - errors.invalidCodePoint(pos, lineStart, curLine); - } else { - return { - code: null, - pos - }; - } - } - } else { - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors)); - } - return { - code, - pos - }; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 9330: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.isIdentifierChar = isIdentifierChar; -exports.isIdentifierName = isIdentifierName; -exports.isIdentifierStart = isIdentifierStart; -let nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; -let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f"; -const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); -const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); -nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; -const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191]; -const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; -function isInAstralSet(code, set) { - let pos = 0x10000; - for (let i = 0, length = set.length; i < length; i += 2) { - pos += set[i]; - if (pos > code) return false; - pos += set[i + 1]; - if (pos >= code) return true; - } - return false; -} -function isIdentifierStart(code) { - if (code < 65) return code === 36; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 0xffff) { - return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes); -} -function isIdentifierChar(code) { - if (code < 48) return code === 36; - if (code < 58) return true; - if (code < 65) return false; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 0xffff) { - return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); -} -function isIdentifierName(name) { - let isFirst = true; - for (let i = 0; i < name.length; i++) { - let cp = name.charCodeAt(i); - if ((cp & 0xfc00) === 0xd800 && i + 1 < name.length) { - const trail = name.charCodeAt(++i); - if ((trail & 0xfc00) === 0xdc00) { - cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff); - } - } - if (isFirst) { - isFirst = false; - if (!isIdentifierStart(cp)) { - return false; - } - } else if (!isIdentifierChar(cp)) { - return false; - } - } - return !isFirst; -} - -//# sourceMappingURL=identifier.js.map - - -/***/ }), - -/***/ 21974: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "isIdentifierChar", ({ - enumerable: true, - get: function () { - return _identifier.isIdentifierChar; - } -})); -Object.defineProperty(exports, "isIdentifierName", ({ - enumerable: true, - get: function () { - return _identifier.isIdentifierName; - } -})); -Object.defineProperty(exports, "isIdentifierStart", ({ - enumerable: true, - get: function () { - return _identifier.isIdentifierStart; - } -})); -Object.defineProperty(exports, "isKeyword", ({ - enumerable: true, - get: function () { - return _keyword.isKeyword; - } -})); -Object.defineProperty(exports, "isReservedWord", ({ - enumerable: true, - get: function () { - return _keyword.isReservedWord; - } -})); -Object.defineProperty(exports, "isStrictBindOnlyReservedWord", ({ - enumerable: true, - get: function () { - return _keyword.isStrictBindOnlyReservedWord; - } -})); -Object.defineProperty(exports, "isStrictBindReservedWord", ({ - enumerable: true, - get: function () { - return _keyword.isStrictBindReservedWord; - } -})); -Object.defineProperty(exports, "isStrictReservedWord", ({ - enumerable: true, - get: function () { - return _keyword.isStrictReservedWord; - } -})); -var _identifier = __nccwpck_require__(9330); -var _keyword = __nccwpck_require__(95001); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 95001: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.isKeyword = isKeyword; -exports.isReservedWord = isReservedWord; -exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord; -exports.isStrictBindReservedWord = isStrictBindReservedWord; -exports.isStrictReservedWord = isStrictReservedWord; -const reservedWords = { - keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], - strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], - strictBind: ["eval", "arguments"] -}; -const keywords = new Set(reservedWords.keyword); -const reservedWordsStrictSet = new Set(reservedWords.strict); -const reservedWordsStrictBindSet = new Set(reservedWords.strictBind); -function isReservedWord(word, inModule) { - return inModule && word === "await" || word === "enum"; -} -function isStrictReservedWord(word, inModule) { - return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); -} -function isStrictBindOnlyReservedWord(word) { - return reservedWordsStrictBindSet.has(word); -} -function isStrictBindReservedWord(word, inModule) { - return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); -} -function isKeyword(word) { - return keywords.has(word); -} - -//# sourceMappingURL=keyword.js.map - - -/***/ }), - -/***/ 32615: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.findSuggestion = findSuggestion; -const { - min -} = Math; -function levenshtein(a, b) { - let t = [], - u = [], - i, - j; - const m = a.length, - n = b.length; - if (!m) { - return n; - } - if (!n) { - return m; - } - for (j = 0; j <= n; j++) { - t[j] = j; - } - for (i = 1; i <= m; i++) { - for (u = [i], j = 1; j <= n; j++) { - u[j] = a[i - 1] === b[j - 1] ? t[j - 1] : min(t[j - 1], t[j], u[j - 1]) + 1; - } - t = u; - } - return u[n]; -} -function findSuggestion(str, arr) { - const distances = arr.map(el => levenshtein(el, str)); - return arr[distances.indexOf(min(...distances))]; -} - -//# sourceMappingURL=find-suggestion.js.map - - -/***/ }), - -/***/ 72790: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "OptionValidator", ({ - enumerable: true, - get: function () { - return _validator.OptionValidator; - } -})); -Object.defineProperty(exports, "findSuggestion", ({ - enumerable: true, - get: function () { - return _findSuggestion.findSuggestion; - } -})); -var _validator = __nccwpck_require__(8748); -var _findSuggestion = __nccwpck_require__(32615); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 8748: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.OptionValidator = void 0; -var _findSuggestion = __nccwpck_require__(32615); -class OptionValidator { - constructor(descriptor) { - this.descriptor = descriptor; - } - validateTopLevelOptions(options, TopLevelOptionShape) { - const validOptionNames = Object.keys(TopLevelOptionShape); - for (const option of Object.keys(options)) { - if (!validOptionNames.includes(option)) { - throw new Error(this.formatMessage(`'${option}' is not a valid top-level option. -- Did you mean '${(0, _findSuggestion.findSuggestion)(option, validOptionNames)}'?`)); - } - } - } - validateBooleanOption(name, value, defaultValue) { - if (value === undefined) { - return defaultValue; - } else { - this.invariant(typeof value === "boolean", `'${name}' option must be a boolean.`); - } - return value; - } - validateStringOption(name, value, defaultValue) { - if (value === undefined) { - return defaultValue; - } else { - this.invariant(typeof value === "string", `'${name}' option must be a string.`); - } - return value; - } - invariant(condition, message) { - if (!condition) { - throw new Error(this.formatMessage(message)); - } - } - formatMessage(message) { - return `${this.descriptor}: ${message}`; - } -} -exports.OptionValidator = OptionValidator; - -//# sourceMappingURL=validator.js.map - - -/***/ }), - -/***/ 49310: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.findSuggestion = findSuggestion; -const { - min -} = Math; -function levenshtein(a, b) { - let t = [], - u = [], - i, - j; - const m = a.length, - n = b.length; - if (!m) { - return n; - } - if (!n) { - return m; - } - for (j = 0; j <= n; j++) { - t[j] = j; - } - for (i = 1; i <= m; i++) { - for (u = [i], j = 1; j <= n; j++) { - u[j] = a[i - 1] === b[j - 1] ? t[j - 1] : min(t[j - 1], t[j], u[j - 1]) + 1; - } - t = u; - } - return u[n]; -} -function findSuggestion(str, arr) { - const distances = arr.map(el => levenshtein(el, str)); - return arr[distances.indexOf(min(...distances))]; -} - -//# sourceMappingURL=find-suggestion.js.map - - -/***/ }), - -/***/ 97645: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "OptionValidator", ({ - enumerable: true, - get: function () { - return _validator.OptionValidator; - } -})); -Object.defineProperty(exports, "findSuggestion", ({ - enumerable: true, - get: function () { - return _findSuggestion.findSuggestion; - } -})); -var _validator = __nccwpck_require__(27749); -var _findSuggestion = __nccwpck_require__(49310); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 27749: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.OptionValidator = void 0; -var _findSuggestion = __nccwpck_require__(49310); -class OptionValidator { - constructor(descriptor) { - this.descriptor = descriptor; - } - validateTopLevelOptions(options, TopLevelOptionShape) { - const validOptionNames = Object.keys(TopLevelOptionShape); - for (const option of Object.keys(options)) { - if (!validOptionNames.includes(option)) { - throw new Error(this.formatMessage(`'${option}' is not a valid top-level option. -- Did you mean '${(0, _findSuggestion.findSuggestion)(option, validOptionNames)}'?`)); - } - } - } - validateBooleanOption(name, value, defaultValue) { - if (value === undefined) { - return defaultValue; - } else { - this.invariant(typeof value === "boolean", `'${name}' option must be a boolean.`); - } - return value; - } - validateStringOption(name, value, defaultValue) { - if (value === undefined) { - return defaultValue; - } else { - this.invariant(typeof value === "string", `'${name}' option must be a string.`); - } - return value; - } - invariant(condition, message) { - if (!condition) { - throw new Error(this.formatMessage(message)); - } - } - formatMessage(message) { - return `${this.descriptor}: ${message}`; - } -} -exports.OptionValidator = OptionValidator; - -//# sourceMappingURL=validator.js.map - - -/***/ }), - -/***/ 68886: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = wrapFunction; -var _helperFunctionName = __nccwpck_require__(28850); -var _template = __nccwpck_require__(52738); -var _t = __nccwpck_require__(53501); -const { - blockStatement, - callExpression, - functionExpression, - isAssignmentPattern, - isFunctionDeclaration, - isRestElement, - returnStatement, - isCallExpression -} = _t; -const buildAnonymousExpressionWrapper = _template.default.expression(` - (function () { - var REF = FUNCTION; - return function NAME(PARAMS) { - return REF.apply(this, arguments); - }; - })() -`); -const buildNamedExpressionWrapper = _template.default.expression(` - (function () { - var REF = FUNCTION; - function NAME(PARAMS) { - return REF.apply(this, arguments); - } - return NAME; - })() -`); -const buildDeclarationWrapper = _template.default.statements(` - function NAME(PARAMS) { return REF.apply(this, arguments); } - function REF() { - REF = FUNCTION; - return REF.apply(this, arguments); - } -`); -function classOrObjectMethod(path, callId) { - const node = path.node; - const body = node.body; - const container = functionExpression(null, [], blockStatement(body.body), true); - body.body = [returnStatement(callExpression(callExpression(callId, [container]), []))]; - node.async = false; - node.generator = false; - path.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment(); -} -function plainFunction(inPath, callId, noNewArrows, ignoreFunctionLength) { - let path = inPath; - let node; - let functionId = null; - const nodeParams = inPath.node.params; - if (path.isArrowFunctionExpression()) { - { - var _path$arrowFunctionTo; - path = (_path$arrowFunctionTo = path.arrowFunctionToExpression({ - noNewArrows - })) != null ? _path$arrowFunctionTo : path; - } - node = path.node; - } else { - node = path.node; - } - const isDeclaration = isFunctionDeclaration(node); - let built = node; - if (!isCallExpression(node)) { - functionId = node.id; - node.id = null; - node.type = "FunctionExpression"; - built = callExpression(callId, [node]); - } - const params = []; - for (const param of nodeParams) { - if (isAssignmentPattern(param) || isRestElement(param)) { - break; - } - params.push(path.scope.generateUidIdentifier("x")); - } - const wrapperArgs = { - NAME: functionId || null, - REF: path.scope.generateUidIdentifier(functionId ? functionId.name : "ref"), - FUNCTION: built, - PARAMS: params - }; - if (isDeclaration) { - const container = buildDeclarationWrapper(wrapperArgs); - path.replaceWith(container[0]); - path.insertAfter(container[1]); - } else { - let container; - if (functionId) { - container = buildNamedExpressionWrapper(wrapperArgs); - } else { - container = buildAnonymousExpressionWrapper(wrapperArgs); - const returnFn = container.callee.body.body[1].argument; - (0, _helperFunctionName.default)({ - node: returnFn, - parent: path.parent, - scope: path.scope - }); - functionId = returnFn.id; - } - if (functionId || !ignoreFunctionLength && params.length) { - path.replaceWith(container); - } else { - path.replaceWith(built); - } - } -} -function wrapFunction(path, callId, noNewArrows = true, ignoreFunctionLength = false) { - if (path.isMethod()) { - classOrObjectMethod(path, callId); - } else { - plainFunction(path, callId, noNewArrows, ignoreFunctionLength); - } -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 1546: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _template = __nccwpck_require__(52738); -function helper(minVersion, source) { - return Object.freeze({ - minVersion, - ast: () => _template.default.program.ast(source, { - preserveComments: true - }) - }); -} -var _default = Object.freeze({ - AsyncGenerator: helper("7.0.0-beta.0", 'import OverloadYield from"OverloadYield";export default function AsyncGenerator(gen){var front,back;function resume(key,arg){try{var result=gen[key](arg),value=result.value,overloaded=value instanceof OverloadYield;Promise.resolve(overloaded?value.v:value).then((function(arg){if(overloaded){var nextKey="return"===key?"return":"next";if(!value.k||arg.done)return resume(nextKey,arg);arg=gen[nextKey](arg).value}settle(result.done?"return":"normal",arg)}),(function(err){resume("throw",err)}))}catch(err){settle("throw",err)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:!0});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:!1})}(front=front.next)?resume(front.key,front.arg):back=null}this._invoke=function(key,arg){return new Promise((function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};back?back=back.next=request:(front=back=request,resume(key,arg))}))},"function"!=typeof gen.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg)},AsyncGenerator.prototype.throw=function(arg){return this._invoke("throw",arg)},AsyncGenerator.prototype.return=function(arg){return this._invoke("return",arg)};'), - OverloadYield: helper("7.18.14", "export default function _OverloadYield(value,kind){this.v=value,this.k=kind}"), - applyDecs: helper("7.17.8", 'function old_createMetadataMethodsForProperty(metadataMap,kind,property,decoratorFinishedRef){return{getMetadata:function(key){old_assertNotFinished(decoratorFinishedRef,"getMetadata"),old_assertMetadataKey(key);var metadataForKey=metadataMap[key];if(void 0!==metadataForKey)if(1===kind){var pub=metadataForKey.public;if(void 0!==pub)return pub[property]}else if(2===kind){var priv=metadataForKey.private;if(void 0!==priv)return priv.get(property)}else if(Object.hasOwnProperty.call(metadataForKey,"constructor"))return metadataForKey.constructor},setMetadata:function(key,value){old_assertNotFinished(decoratorFinishedRef,"setMetadata"),old_assertMetadataKey(key);var metadataForKey=metadataMap[key];if(void 0===metadataForKey&&(metadataForKey=metadataMap[key]={}),1===kind){var pub=metadataForKey.public;void 0===pub&&(pub=metadataForKey.public={}),pub[property]=value}else if(2===kind){var priv=metadataForKey.priv;void 0===priv&&(priv=metadataForKey.private=new Map),priv.set(property,value)}else metadataForKey.constructor=value}}}function old_convertMetadataMapToFinal(obj,metadataMap){var parentMetadataMap=obj[Symbol.metadata||Symbol.for("Symbol.metadata")],metadataKeys=Object.getOwnPropertySymbols(metadataMap);if(0!==metadataKeys.length){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=old_memberDec(decs[i],name,desc,metadataMap,initializers,kind,isStatic,isPrivate,value)))old_assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=old_getInit(newValue),get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===initializer?initializer=newInit:"function"==typeof initializer?initializer=[initializer,newInit]:initializer.push(newInit))}if(0===kind||1===kind){if(void 0===initializer)initializer=function(instance,init){return init};else if("function"!=typeof initializer){var ownInitializers=initializer;initializer=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5;if(isStatic?(base=Class,metadataMap=staticMetadataMap,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,metadataMap=protoMetadataMap,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}old_applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,metadataMap,initializers)}}old_pushInitializers(ret,protoInitializers),old_pushInitializers(ret,staticInitializers)}function old_pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var ctx=Object.assign({kind:"class",name:name,addInitializer:old_createAddInitializerMethod(initializers,decoratorFinishedRef)},old_createMetadataMethodsForProperty(metadataMap,0,name,decoratorFinishedRef)),nextNewClass=classDecs[i](newClass,ctx)}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(old_assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}ret.push(newClass,(function(){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5;if(isStatic?(base=Class,0!=(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers)}}pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers)}(ret,targetClass,memberDecs),function(ret,targetClass,classDecs){if(classDecs.length>0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}ret.push(newClass,(function(){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5;if(isStatic?(base=Class,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5,hasPrivateBrand=instanceBrand;if(isStatic?(base=Class,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i1){for(var childArray=new Array(childrenLength),i=0;i=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel}},exports}'), - typeof: helper("7.0.0-beta.0", 'export default function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}'), - wrapRegExp: helper("7.19.0", 'import setPrototypeOf from"setPrototypeOf";import inherits from"inherits";export default function _wrapRegExp(){_wrapRegExp=function(re,groups){return new BabelRegExp(re,void 0,groups)};var _super=RegExp.prototype,_groups=new WeakMap;function BabelRegExp(re,flags,groups){var _this=new RegExp(re,flags);return _groups.set(_this,groups||_groups.get(re)),setPrototypeOf(_this,BabelRegExp.prototype)}function buildGroups(result,re){var g=_groups.get(re);return Object.keys(g).reduce((function(groups,name){var i=g[name];if("number"==typeof i)groups[name]=result[i];else{for(var k=0;void 0===result[i[k]]&&k+1]+)>/g,(function(_,name){var group=groups[name];return"$"+(Array.isArray(group)?group.join("$"):group)})))}if("function"==typeof substitution){var _this=this;return _super[Symbol.replace].call(this,str,(function(){var args=arguments;return"object"!=typeof args[args.length-1]&&(args=[].slice.call(args)).push(buildGroups(args,_this)),substitution.apply(this,args)}))}return _super[Symbol.replace].call(this,str,substitution)},_wrapRegExp.apply(this,arguments)}') -}); -exports["default"] = _default; - -//# sourceMappingURL=helpers-generated.js.map - - -/***/ }), - -/***/ 76696: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _template = __nccwpck_require__(52738); -var _helpersGenerated = __nccwpck_require__(1546); -const helpers = Object.assign({ - __proto__: null -}, _helpersGenerated.default); -var _default = helpers; -exports["default"] = _default; -const helper = minVersion => tpl => ({ - minVersion, - ast: () => _template.default.program.ast(tpl) -}); -{ - helpers.AwaitValue = helper("7.0.0-beta.0")` - export default function _AwaitValue(value) { - this.wrapped = value; - } - `; -} -helpers.wrapAsyncGenerator = helper("7.0.0-beta.0")` - import AsyncGenerator from "AsyncGenerator"; - - export default function _wrapAsyncGenerator(fn) { - return function () { - return new AsyncGenerator(fn.apply(this, arguments)); - }; - } -`; -helpers.asyncToGenerator = helper("7.0.0-beta.0")` - function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } - } - - export default function _asyncToGenerator(fn) { - return function () { - var self = this, args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; - } -`; -helpers.classCallCheck = helper("7.0.0-beta.0")` - export default function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } -`; -helpers.createClass = helper("7.0.0-beta.0")` - import toPropertyKey from "toPropertyKey"; - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i ++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); - } - } - - export default function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } -`; -helpers.defineEnumerableProperties = helper("7.0.0-beta.0")` - export default function _defineEnumerableProperties(obj, descs) { - for (var key in descs) { - var desc = descs[key]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, key, desc); - } - - // Symbols are not enumerated over by for-in loops. If native - // Symbols are available, fetch all of the descs object's own - // symbol properties and define them on our target object too. - if (Object.getOwnPropertySymbols) { - var objectSymbols = Object.getOwnPropertySymbols(descs); - for (var i = 0; i < objectSymbols.length; i++) { - var sym = objectSymbols[i]; - var desc = descs[sym]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, sym, desc); - } - } - return obj; - } -`; -helpers.defaults = helper("7.0.0-beta.0")` - export default function _defaults(obj, defaults) { - var keys = Object.getOwnPropertyNames(defaults); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = Object.getOwnPropertyDescriptor(defaults, key); - if (value && value.configurable && obj[key] === undefined) { - Object.defineProperty(obj, key, value); - } - } - return obj; - } -`; -helpers.defineProperty = helper("7.0.0-beta.0")` - import toPropertyKey from "toPropertyKey"; - export default function _defineProperty(obj, key, value) { - key = toPropertyKey(key); - // Shortcircuit the slow defineProperty path when possible. - // We are trying to avoid issues where setters defined on the - // prototype cause side effects under the fast path of simple - // assignment. By checking for existence of the property with - // the in operator, we can optimize most of this overhead away. - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } -`; -helpers.extends = helper("7.0.0-beta.0")` - export default function _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - - return _extends.apply(this, arguments); - } -`; -helpers.objectSpread = helper("7.0.0-beta.0")` - import defineProperty from "defineProperty"; - - export default function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = (arguments[i] != null) ? Object(arguments[i]) : {}; - var ownKeys = Object.keys(source); - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - ownKeys.forEach(function(key) { - defineProperty(target, key, source[key]); - }); - } - return target; - } -`; -helpers.inherits = helper("7.0.0-beta.0")` - import setPrototypeOf from "setPrototypeOf"; - - export default function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - // We can't use defineProperty to set the prototype in a single step because it - // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056 - // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334 - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) setPrototypeOf(subClass, superClass); - } -`; -helpers.inheritsLoose = helper("7.0.0-beta.0")` - import setPrototypeOf from "setPrototypeOf"; - - export default function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - setPrototypeOf(subClass, superClass); - } -`; -helpers.getPrototypeOf = helper("7.0.0-beta.0")` - export default function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); - } -`; -helpers.setPrototypeOf = helper("7.0.0-beta.0")` - export default function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); - } -`; -helpers.isNativeReflectConstruct = helper("7.9.0")` - export default function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - - // core-js@3 - if (Reflect.construct.sham) return false; - - // Proxy can't be polyfilled. Every browser implemented - // proxies before or at the same time as Reflect.construct, - // so if they support Proxy they also support Reflect.construct. - if (typeof Proxy === "function") return true; - - // Since Reflect.construct can't be properly polyfilled, some - // implementations (e.g. core-js@2) don't set the correct internal slots. - // Those polyfills don't allow us to subclass built-ins, so we need to - // use our fallback implementation. - try { - // If the internal slots aren't set, this throws an error similar to - // TypeError: this is not a Boolean object. - - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); - return true; - } catch (e) { - return false; - } - } -`; -helpers.construct = helper("7.0.0-beta.0")` - import setPrototypeOf from "setPrototypeOf"; - import isNativeReflectConstruct from "isNativeReflectConstruct"; - - export default function _construct(Parent, args, Class) { - if (isNativeReflectConstruct()) { - _construct = Reflect.construct.bind(); - } else { - // NOTE: If Parent !== Class, the correct __proto__ is set *after* - // calling the constructor. - _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) setPrototypeOf(instance, Class.prototype); - return instance; - }; - } - // Avoid issues with Class being present but undefined when it wasn't - // present in the original call. - return _construct.apply(null, arguments); - } -`; -helpers.isNativeFunction = helper("7.0.0-beta.0")` - export default function _isNativeFunction(fn) { - // Note: This function returns "true" for core-js functions. - return Function.toString.call(fn).indexOf("[native code]") !== -1; - } -`; -helpers.wrapNativeSuper = helper("7.0.0-beta.0")` - import getPrototypeOf from "getPrototypeOf"; - import setPrototypeOf from "setPrototypeOf"; - import isNativeFunction from "isNativeFunction"; - import construct from "construct"; - - export default function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - - _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (Class === null || !isNativeFunction(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return construct(Class, arguments, getPrototypeOf(this).constructor) - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true, - } - }); - - return setPrototypeOf(Wrapper, Class); - } - - return _wrapNativeSuper(Class) - } -`; -helpers.instanceof = helper("7.0.0-beta.0")` - export default function _instanceof(left, right) { - if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { - return !!right[Symbol.hasInstance](left); - } else { - return left instanceof right; - } - } -`; -helpers.interopRequireDefault = helper("7.0.0-beta.0")` - export default function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } -`; -helpers.interopRequireWildcard = helper("7.14.0")` - function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== "function") return null; - - var cacheBabelInterop = new WeakMap(); - var cacheNodeInterop = new WeakMap(); - return (_getRequireWildcardCache = function (nodeInterop) { - return nodeInterop ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - - export default function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - - if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) { - return { default: obj } - } - - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) { - if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor - ? Object.getOwnPropertyDescriptor(obj, key) - : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj.default = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; - } -`; -helpers.newArrowCheck = helper("7.0.0-beta.0")` - export default function _newArrowCheck(innerThis, boundThis) { - if (innerThis !== boundThis) { - throw new TypeError("Cannot instantiate an arrow function"); - } - } -`; -helpers.objectDestructuringEmpty = helper("7.0.0-beta.0")` - export default function _objectDestructuringEmpty(obj) { - if (obj == null) throw new TypeError("Cannot destructure " + obj); - } -`; -helpers.objectWithoutPropertiesLoose = helper("7.0.0-beta.0")` - export default function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; - } -`; -helpers.objectWithoutProperties = helper("7.0.0-beta.0")` - import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose"; - - export default function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; - } -`; -helpers.assertThisInitialized = helper("7.0.0-beta.0")` - export default function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; - } -`; -helpers.possibleConstructorReturn = helper("7.0.0-beta.0")` - import assertThisInitialized from "assertThisInitialized"; - - export default function _possibleConstructorReturn(self, call) { - if (call && (typeof call === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - - return assertThisInitialized(self); - } -`; -helpers.createSuper = helper("7.9.0")` - import getPrototypeOf from "getPrototypeOf"; - import isNativeReflectConstruct from "isNativeReflectConstruct"; - import possibleConstructorReturn from "possibleConstructorReturn"; - - export default function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - - return function _createSuperInternal() { - var Super = getPrototypeOf(Derived), result; - if (hasNativeReflectConstruct) { - // NOTE: This doesn't work if this.__proto__.constructor has been modified. - var NewTarget = getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - } - } - `; -helpers.superPropBase = helper("7.0.0-beta.0")` - import getPrototypeOf from "getPrototypeOf"; - - export default function _superPropBase(object, property) { - // Yes, this throws if object is null to being with, that's on purpose. - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = getPrototypeOf(object); - if (object === null) break; - } - return object; - } -`; -helpers.get = helper("7.0.0-beta.0")` - import superPropBase from "superPropBase"; - - export default function _get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - _get = Reflect.get.bind(); - } else { - _get = function _get(target, property, receiver) { - var base = superPropBase(target, property); - - if (!base) return; - - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - // STEP 3. If receiver is not present, then set receiver to target. - return desc.get.call(arguments.length < 3 ? target : receiver); - } - - return desc.value; - }; - } - return _get.apply(this, arguments); - } -`; -helpers.set = helper("7.0.0-beta.0")` - import superPropBase from "superPropBase"; - import defineProperty from "defineProperty"; - - function set(target, property, value, receiver) { - if (typeof Reflect !== "undefined" && Reflect.set) { - set = Reflect.set; - } else { - set = function set(target, property, value, receiver) { - var base = superPropBase(target, property); - var desc; - - if (base) { - desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.set) { - desc.set.call(receiver, value); - return true; - } else if (!desc.writable) { - // Both getter and non-writable fall into this. - return false; - } - } - - // Without a super that defines the property, spec boils down to - // "define on receiver" for some reason. - desc = Object.getOwnPropertyDescriptor(receiver, property); - if (desc) { - if (!desc.writable) { - // Setter, getter, and non-writable fall into this. - return false; - } - - desc.value = value; - Object.defineProperty(receiver, property, desc); - } else { - // Avoid setters that may be defined on Sub's prototype, but not on - // the instance. - defineProperty(receiver, property, value); - } - - return true; - }; - } - - return set(target, property, value, receiver); - } - - export default function _set(target, property, value, receiver, isStrict) { - var s = set(target, property, value, receiver || target); - if (!s && isStrict) { - throw new TypeError('failed to set property'); - } - - return value; - } -`; -helpers.taggedTemplateLiteral = helper("7.0.0-beta.0")` - export default function _taggedTemplateLiteral(strings, raw) { - if (!raw) { raw = strings.slice(0); } - return Object.freeze(Object.defineProperties(strings, { - raw: { value: Object.freeze(raw) } - })); - } -`; -helpers.taggedTemplateLiteralLoose = helper("7.0.0-beta.0")` - export default function _taggedTemplateLiteralLoose(strings, raw) { - if (!raw) { raw = strings.slice(0); } - strings.raw = raw; - return strings; - } -`; -helpers.readOnlyError = helper("7.0.0-beta.0")` - export default function _readOnlyError(name) { - throw new TypeError("\\"" + name + "\\" is read-only"); - } -`; -helpers.writeOnlyError = helper("7.12.13")` - export default function _writeOnlyError(name) { - throw new TypeError("\\"" + name + "\\" is write-only"); - } -`; -helpers.classNameTDZError = helper("7.0.0-beta.0")` - export default function _classNameTDZError(name) { - throw new ReferenceError("Class \\"" + name + "\\" cannot be referenced in computed property keys."); - } -`; -helpers.temporalUndefined = helper("7.0.0-beta.0")` - // This function isn't mean to be called, but to be used as a reference. - // We can't use a normal object because it isn't hoisted. - export default function _temporalUndefined() {} -`; -helpers.tdz = helper("7.5.5")` - export default function _tdzError(name) { - throw new ReferenceError(name + " is not defined - temporal dead zone"); - } -`; -helpers.temporalRef = helper("7.0.0-beta.0")` - import undef from "temporalUndefined"; - import err from "tdz"; - - export default function _temporalRef(val, name) { - return val === undef ? err(name) : val; - } -`; -helpers.slicedToArray = helper("7.0.0-beta.0")` - import arrayWithHoles from "arrayWithHoles"; - import iterableToArrayLimit from "iterableToArrayLimit"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableRest from "nonIterableRest"; - - export default function _slicedToArray(arr, i) { - return ( - arrayWithHoles(arr) || - iterableToArrayLimit(arr, i) || - unsupportedIterableToArray(arr, i) || - nonIterableRest() - ); - } -`; -helpers.slicedToArrayLoose = helper("7.0.0-beta.0")` - import arrayWithHoles from "arrayWithHoles"; - import iterableToArrayLimitLoose from "iterableToArrayLimitLoose"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableRest from "nonIterableRest"; - - export default function _slicedToArrayLoose(arr, i) { - return ( - arrayWithHoles(arr) || - iterableToArrayLimitLoose(arr, i) || - unsupportedIterableToArray(arr, i) || - nonIterableRest() - ); - } -`; -helpers.toArray = helper("7.0.0-beta.0")` - import arrayWithHoles from "arrayWithHoles"; - import iterableToArray from "iterableToArray"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableRest from "nonIterableRest"; - - export default function _toArray(arr) { - return ( - arrayWithHoles(arr) || - iterableToArray(arr) || - unsupportedIterableToArray(arr) || - nonIterableRest() - ); - } -`; -helpers.toConsumableArray = helper("7.0.0-beta.0")` - import arrayWithoutHoles from "arrayWithoutHoles"; - import iterableToArray from "iterableToArray"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableSpread from "nonIterableSpread"; - - export default function _toConsumableArray(arr) { - return ( - arrayWithoutHoles(arr) || - iterableToArray(arr) || - unsupportedIterableToArray(arr) || - nonIterableSpread() - ); - } -`; -helpers.arrayWithoutHoles = helper("7.0.0-beta.0")` - import arrayLikeToArray from "arrayLikeToArray"; - - export default function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return arrayLikeToArray(arr); - } -`; -helpers.arrayWithHoles = helper("7.0.0-beta.0")` - export default function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; - } -`; -helpers.maybeArrayLike = helper("7.9.0")` - import arrayLikeToArray from "arrayLikeToArray"; - - export default function _maybeArrayLike(next, arr, i) { - if (arr && !Array.isArray(arr) && typeof arr.length === "number") { - var len = arr.length; - return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); - } - return next(arr, i); - } -`; -helpers.iterableToArray = helper("7.0.0-beta.0")` - export default function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); - } -`; -helpers.unsupportedIterableToArray = helper("7.9.0")` - import arrayLikeToArray from "arrayLikeToArray"; - - export default function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return arrayLikeToArray(o, minLen); - } -`; -helpers.arrayLikeToArray = helper("7.9.0")` - export default function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; - } -`; -helpers.nonIterableSpread = helper("7.0.0-beta.0")` - export default function _nonIterableSpread() { - throw new TypeError( - "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." - ); - } -`; -helpers.nonIterableRest = helper("7.0.0-beta.0")` - export default function _nonIterableRest() { - throw new TypeError( - "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." - ); - } -`; -helpers.createForOfIteratorHelper = helper("7.9.0")` - import unsupportedIterableToArray from "unsupportedIterableToArray"; - - // s: start (create the iterator) - // n: next - // e: error (called whenever something throws) - // f: finish (always called at the end) - - export default function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - - if (!it) { - // Fallback for engines without symbol support - if ( - Array.isArray(o) || - (it = unsupportedIterableToArray(o)) || - (allowArrayLike && o && typeof o.length === "number") - ) { - if (it) o = it; - var i = 0; - var F = function(){}; - return { - s: F, - n: function() { - if (i >= o.length) return { done: true }; - return { done: false, value: o[i++] }; - }, - e: function(e) { throw e; }, - f: F, - }; - } - - throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - - var normalCompletion = true, didErr = false, err; - - return { - s: function() { - it = it.call(o); - }, - n: function() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function(e) { - didErr = true; - err = e; - }, - f: function() { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; - } - } - }; - } -`; -helpers.createForOfIteratorHelperLoose = helper("7.9.0")` - import unsupportedIterableToArray from "unsupportedIterableToArray"; - - export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - - if (it) return (it = it.call(o)).next.bind(it); - - // Fallback for engines without symbol support - if ( - Array.isArray(o) || - (it = unsupportedIterableToArray(o)) || - (allowArrayLike && o && typeof o.length === "number") - ) { - if (it) o = it; - var i = 0; - return function() { - if (i >= o.length) return { done: true }; - return { done: false, value: o[i++] }; - } - } - - throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } -`; -helpers.skipFirstGeneratorNext = helper("7.0.0-beta.0")` - export default function _skipFirstGeneratorNext(fn) { - return function () { - var it = fn.apply(this, arguments); - it.next(); - return it; - } - } -`; -helpers.toPrimitive = helper("7.1.5")` - export default function _toPrimitive( - input, - hint /*: "default" | "string" | "number" | void */ - ) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); - } -`; -helpers.toPropertyKey = helper("7.1.5")` - import toPrimitive from "toPrimitive"; - - export default function _toPropertyKey(arg) { - var key = toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); - } -`; -helpers.initializerWarningHelper = helper("7.0.0-beta.0")` - export default function _initializerWarningHelper(descriptor, context){ - throw new Error( - 'Decorating class property failed. Please ensure that ' + - 'proposal-class-properties is enabled and runs after the decorators transform.' - ); - } -`; -helpers.initializerDefineProperty = helper("7.0.0-beta.0")` - export default function _initializerDefineProperty(target, property, descriptor, context){ - if (!descriptor) return; - - Object.defineProperty(target, property, { - enumerable: descriptor.enumerable, - configurable: descriptor.configurable, - writable: descriptor.writable, - value: descriptor.initializer ? descriptor.initializer.call(context) : void 0, - }); - } -`; -helpers.applyDecoratedDescriptor = helper("7.0.0-beta.0")` - export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){ - var desc = {}; - Object.keys(descriptor).forEach(function(key){ - desc[key] = descriptor[key]; - }); - desc.enumerable = !!desc.enumerable; - desc.configurable = !!desc.configurable; - if ('value' in desc || desc.initializer){ - desc.writable = true; - } - - desc = decorators.slice().reverse().reduce(function(desc, decorator){ - return decorator(target, property, desc) || desc; - }, desc); - - if (context && desc.initializer !== void 0){ - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; - desc.initializer = undefined; - } - - if (desc.initializer === void 0){ - Object.defineProperty(target, property, desc); - desc = null; - } - - return desc; - } -`; -helpers.classPrivateFieldLooseKey = helper("7.0.0-beta.0")` - var id = 0; - export default function _classPrivateFieldKey(name) { - return "__private_" + (id++) + "_" + name; - } -`; -helpers.classPrivateFieldLooseBase = helper("7.0.0-beta.0")` - export default function _classPrivateFieldBase(receiver, privateKey) { - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { - throw new TypeError("attempted to use private field on non-instance"); - } - return receiver; - } -`; -helpers.classPrivateFieldGet = helper("7.0.0-beta.0")` - import classApplyDescriptorGet from "classApplyDescriptorGet"; - import classExtractFieldDescriptor from "classExtractFieldDescriptor"; - export default function _classPrivateFieldGet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); - return classApplyDescriptorGet(receiver, descriptor); - } -`; -helpers.classPrivateFieldSet = helper("7.0.0-beta.0")` - import classApplyDescriptorSet from "classApplyDescriptorSet"; - import classExtractFieldDescriptor from "classExtractFieldDescriptor"; - export default function _classPrivateFieldSet(receiver, privateMap, value) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; - } -`; -helpers.classPrivateFieldDestructureSet = helper("7.4.4")` - import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; - import classExtractFieldDescriptor from "classExtractFieldDescriptor"; - export default function _classPrivateFieldDestructureSet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); - } -`; -helpers.classExtractFieldDescriptor = helper("7.13.10")` - export default function _classExtractFieldDescriptor(receiver, privateMap, action) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to " + action + " private field on non-instance"); - } - return privateMap.get(receiver); - } -`; -helpers.classStaticPrivateFieldSpecGet = helper("7.0.2")` - import classApplyDescriptorGet from "classApplyDescriptorGet"; - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; - export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "get"); - return classApplyDescriptorGet(receiver, descriptor); - } -`; -helpers.classStaticPrivateFieldSpecSet = helper("7.0.2")` - import classApplyDescriptorSet from "classApplyDescriptorSet"; - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; - export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; - } -`; -helpers.classStaticPrivateMethodGet = helper("7.3.2")` - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { - classCheckPrivateStaticAccess(receiver, classConstructor); - return method; - } -`; -helpers.classStaticPrivateMethodSet = helper("7.3.2")` - export default function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); - } -`; -helpers.classApplyDescriptorGet = helper("7.13.10")` - export default function _classApplyDescriptorGet(receiver, descriptor) { - if (descriptor.get) { - return descriptor.get.call(receiver); - } - return descriptor.value; - } -`; -helpers.classApplyDescriptorSet = helper("7.13.10")` - export default function _classApplyDescriptorSet(receiver, descriptor, value) { - if (descriptor.set) { - descriptor.set.call(receiver, value); - } else { - if (!descriptor.writable) { - // This should only throw in strict mode, but class bodies are - // always strict and private fields can only be used inside - // class bodies. - throw new TypeError("attempted to set read only private field"); - } - descriptor.value = value; - } - } -`; -helpers.classApplyDescriptorDestructureSet = helper("7.13.10")` - export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { - if (descriptor.set) { - if (!("__destrObj" in descriptor)) { - descriptor.__destrObj = { - set value(v) { - descriptor.set.call(receiver, v) - }, - }; - } - return descriptor.__destrObj; - } else { - if (!descriptor.writable) { - // This should only throw in strict mode, but class bodies are - // always strict and private fields can only be used inside - // class bodies. - throw new TypeError("attempted to set read only private field"); - } - - return descriptor; - } - } -`; -helpers.classStaticPrivateFieldDestructureSet = helper("7.13.10")` - import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; - export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); - } -`; -helpers.classCheckPrivateStaticAccess = helper("7.13.10")` - export default function _classCheckPrivateStaticAccess(receiver, classConstructor) { - if (receiver !== classConstructor) { - throw new TypeError("Private static access of wrong provenance"); - } - } -`; -helpers.classCheckPrivateStaticFieldDescriptor = helper("7.13.10")` - export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { - if (descriptor === undefined) { - throw new TypeError("attempted to " + action + " private static field before its declaration"); - } - } -`; -helpers.decorate = helper("7.1.5")` - import toArray from "toArray"; - import toPropertyKey from "toPropertyKey"; - - // These comments are stripped by @babel/template - /*:: - type PropertyDescriptor = - | { - value: any, - writable: boolean, - configurable: boolean, - enumerable: boolean, - } - | { - get?: () => any, - set?: (v: any) => void, - configurable: boolean, - enumerable: boolean, - }; - - type FieldDescriptor ={ - writable: boolean, - configurable: boolean, - enumerable: boolean, - }; - - type Placement = "static" | "prototype" | "own"; - type Key = string | symbol; // PrivateName is not supported yet. - - type ElementDescriptor = - | { - kind: "method", - key: Key, - placement: Placement, - descriptor: PropertyDescriptor - } - | { - kind: "field", - key: Key, - placement: Placement, - descriptor: FieldDescriptor, - initializer?: () => any, - }; - - // This is exposed to the user code - type ElementObjectInput = ElementDescriptor & { - [@@toStringTag]?: "Descriptor" - }; - - // This is exposed to the user code - type ElementObjectOutput = ElementDescriptor & { - [@@toStringTag]?: "Descriptor" - extras?: ElementDescriptor[], - finisher?: ClassFinisher, - }; - - // This is exposed to the user code - type ClassObject = { - [@@toStringTag]?: "Descriptor", - kind: "class", - elements: ElementDescriptor[], - }; - - type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput; - type ClassDecorator = (descriptor: ClassObject) => ?ClassObject; - type ClassFinisher = (cl: Class) => Class; - - // Only used by Babel in the transform output, not part of the spec. - type ElementDefinition = - | { - kind: "method", - value: any, - key: Key, - static?: boolean, - decorators?: ElementDecorator[], - } - | { - kind: "field", - value: () => any, - key: Key, - static?: boolean, - decorators?: ElementDecorator[], - }; - - declare function ClassFactory(initialize: (instance: C) => void): { - F: Class, - d: ElementDefinition[] - } - - */ - - /*:: - // Various combinations with/without extras and with one or many finishers - - type ElementFinisherExtras = { - element: ElementDescriptor, - finisher?: ClassFinisher, - extras?: ElementDescriptor[], - }; - - type ElementFinishersExtras = { - element: ElementDescriptor, - finishers: ClassFinisher[], - extras: ElementDescriptor[], - }; - - type ElementsFinisher = { - elements: ElementDescriptor[], - finisher?: ClassFinisher, - }; - - type ElementsFinishers = { - elements: ElementDescriptor[], - finishers: ClassFinisher[], - }; - - */ - - /*:: - - type Placements = { - static: Key[], - prototype: Key[], - own: Key[], - }; - - */ - - // ClassDefinitionEvaluation (Steps 26-*) - export default function _decorate( - decorators /*: ClassDecorator[] */, - factory /*: ClassFactory */, - superClass /*: ?Class<*> */, - mixins /*: ?Array */, - ) /*: Class<*> */ { - var api = _getDecoratorsApi(); - if (mixins) { - for (var i = 0; i < mixins.length; i++) { - api = mixins[i](api); - } - } - - var r = factory(function initialize(O) { - api.initializeInstanceElements(O, decorated.elements); - }, superClass); - var decorated = api.decorateClass( - _coalesceClassElements(r.d.map(_createElementDescriptor)), - decorators, - ); - - api.initializeClassElements(r.F, decorated.elements); - - return api.runClassFinishers(r.F, decorated.finishers); - } - - function _getDecoratorsApi() { - _getDecoratorsApi = function() { - return api; - }; - - var api = { - elementsDefinitionOrder: [["method"], ["field"]], - - // InitializeInstanceElements - initializeInstanceElements: function( - /*::*/ O /*: C */, - elements /*: ElementDescriptor[] */, - ) { - ["method", "field"].forEach(function(kind) { - elements.forEach(function(element /*: ElementDescriptor */) { - if (element.kind === kind && element.placement === "own") { - this.defineClassElement(O, element); - } - }, this); - }, this); - }, - - // InitializeClassElements - initializeClassElements: function( - /*::*/ F /*: Class */, - elements /*: ElementDescriptor[] */, - ) { - var proto = F.prototype; - - ["method", "field"].forEach(function(kind) { - elements.forEach(function(element /*: ElementDescriptor */) { - var placement = element.placement; - if ( - element.kind === kind && - (placement === "static" || placement === "prototype") - ) { - var receiver = placement === "static" ? F : proto; - this.defineClassElement(receiver, element); - } - }, this); - }, this); - }, - - // DefineClassElement - defineClassElement: function( - /*::*/ receiver /*: C | Class */, - element /*: ElementDescriptor */, - ) { - var descriptor /*: PropertyDescriptor */ = element.descriptor; - if (element.kind === "field") { - var initializer = element.initializer; - descriptor = { - enumerable: descriptor.enumerable, - writable: descriptor.writable, - configurable: descriptor.configurable, - value: initializer === void 0 ? void 0 : initializer.call(receiver), - }; - } - Object.defineProperty(receiver, element.key, descriptor); - }, - - // DecorateClass - decorateClass: function( - elements /*: ElementDescriptor[] */, - decorators /*: ClassDecorator[] */, - ) /*: ElementsFinishers */ { - var newElements /*: ElementDescriptor[] */ = []; - var finishers /*: ClassFinisher[] */ = []; - var placements /*: Placements */ = { - static: [], - prototype: [], - own: [], - }; - - elements.forEach(function(element /*: ElementDescriptor */) { - this.addElementPlacement(element, placements); - }, this); - - elements.forEach(function(element /*: ElementDescriptor */) { - if (!_hasDecorators(element)) return newElements.push(element); - - var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement( - element, - placements, - ); - newElements.push(elementFinishersExtras.element); - newElements.push.apply(newElements, elementFinishersExtras.extras); - finishers.push.apply(finishers, elementFinishersExtras.finishers); - }, this); - - if (!decorators) { - return { elements: newElements, finishers: finishers }; - } - - var result /*: ElementsFinishers */ = this.decorateConstructor( - newElements, - decorators, - ); - finishers.push.apply(finishers, result.finishers); - result.finishers = finishers; - - return result; - }, - - // AddElementPlacement - addElementPlacement: function( - element /*: ElementDescriptor */, - placements /*: Placements */, - silent /*: boolean */, - ) { - var keys = placements[element.placement]; - if (!silent && keys.indexOf(element.key) !== -1) { - throw new TypeError("Duplicated element (" + element.key + ")"); - } - keys.push(element.key); - }, - - // DecorateElement - decorateElement: function( - element /*: ElementDescriptor */, - placements /*: Placements */, - ) /*: ElementFinishersExtras */ { - var extras /*: ElementDescriptor[] */ = []; - var finishers /*: ClassFinisher[] */ = []; - - for ( - var decorators = element.decorators, i = decorators.length - 1; - i >= 0; - i-- - ) { - // (inlined) RemoveElementPlacement - var keys = placements[element.placement]; - keys.splice(keys.indexOf(element.key), 1); - - var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor( - element, - ); - var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras( - (0, decorators[i])(elementObject) /*: ElementObjectOutput */ || - elementObject, - ); - - element = elementFinisherExtras.element; - this.addElementPlacement(element, placements); - - if (elementFinisherExtras.finisher) { - finishers.push(elementFinisherExtras.finisher); - } - - var newExtras /*: ElementDescriptor[] | void */ = - elementFinisherExtras.extras; - if (newExtras) { - for (var j = 0; j < newExtras.length; j++) { - this.addElementPlacement(newExtras[j], placements); - } - extras.push.apply(extras, newExtras); - } - } - - return { element: element, finishers: finishers, extras: extras }; - }, - - // DecorateConstructor - decorateConstructor: function( - elements /*: ElementDescriptor[] */, - decorators /*: ClassDecorator[] */, - ) /*: ElementsFinishers */ { - var finishers /*: ClassFinisher[] */ = []; - - for (var i = decorators.length - 1; i >= 0; i--) { - var obj /*: ClassObject */ = this.fromClassDescriptor(elements); - var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor( - (0, decorators[i])(obj) /*: ClassObject */ || obj, - ); - - if (elementsAndFinisher.finisher !== undefined) { - finishers.push(elementsAndFinisher.finisher); - } - - if (elementsAndFinisher.elements !== undefined) { - elements = elementsAndFinisher.elements; - - for (var j = 0; j < elements.length - 1; j++) { - for (var k = j + 1; k < elements.length; k++) { - if ( - elements[j].key === elements[k].key && - elements[j].placement === elements[k].placement - ) { - throw new TypeError( - "Duplicated element (" + elements[j].key + ")", - ); - } - } - } - } - } - - return { elements: elements, finishers: finishers }; - }, - - // FromElementDescriptor - fromElementDescriptor: function( - element /*: ElementDescriptor */, - ) /*: ElementObject */ { - var obj /*: ElementObject */ = { - kind: element.kind, - key: element.key, - placement: element.placement, - descriptor: element.descriptor, - }; - - var desc = { - value: "Descriptor", - configurable: true, - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - - if (element.kind === "field") obj.initializer = element.initializer; - - return obj; - }, - - // ToElementDescriptors - toElementDescriptors: function( - elementObjects /*: ElementObject[] */, - ) /*: ElementDescriptor[] */ { - if (elementObjects === undefined) return; - return toArray(elementObjects).map(function(elementObject) { - var element = this.toElementDescriptor(elementObject); - this.disallowProperty(elementObject, "finisher", "An element descriptor"); - this.disallowProperty(elementObject, "extras", "An element descriptor"); - return element; - }, this); - }, - - // ToElementDescriptor - toElementDescriptor: function( - elementObject /*: ElementObject */, - ) /*: ElementDescriptor */ { - var kind = String(elementObject.kind); - if (kind !== "method" && kind !== "field") { - throw new TypeError( - 'An element descriptor\\'s .kind property must be either "method" or' + - ' "field", but a decorator created an element descriptor with' + - ' .kind "' + - kind + - '"', - ); - } - - var key = toPropertyKey(elementObject.key); - - var placement = String(elementObject.placement); - if ( - placement !== "static" && - placement !== "prototype" && - placement !== "own" - ) { - throw new TypeError( - 'An element descriptor\\'s .placement property must be one of "static",' + - ' "prototype" or "own", but a decorator created an element descriptor' + - ' with .placement "' + - placement + - '"', - ); - } - - var descriptor /*: PropertyDescriptor */ = elementObject.descriptor; - - this.disallowProperty(elementObject, "elements", "An element descriptor"); - - var element /*: ElementDescriptor */ = { - kind: kind, - key: key, - placement: placement, - descriptor: Object.assign({}, descriptor), - }; - - if (kind !== "field") { - this.disallowProperty(elementObject, "initializer", "A method descriptor"); - } else { - this.disallowProperty( - descriptor, - "get", - "The property descriptor of a field descriptor", - ); - this.disallowProperty( - descriptor, - "set", - "The property descriptor of a field descriptor", - ); - this.disallowProperty( - descriptor, - "value", - "The property descriptor of a field descriptor", - ); - - element.initializer = elementObject.initializer; - } - - return element; - }, - - toElementFinisherExtras: function( - elementObject /*: ElementObject */, - ) /*: ElementFinisherExtras */ { - var element /*: ElementDescriptor */ = this.toElementDescriptor( - elementObject, - ); - var finisher /*: ClassFinisher */ = _optionalCallableProperty( - elementObject, - "finisher", - ); - var extras /*: ElementDescriptors[] */ = this.toElementDescriptors( - elementObject.extras, - ); - - return { element: element, finisher: finisher, extras: extras }; - }, - - // FromClassDescriptor - fromClassDescriptor: function( - elements /*: ElementDescriptor[] */, - ) /*: ClassObject */ { - var obj = { - kind: "class", - elements: elements.map(this.fromElementDescriptor, this), - }; - - var desc = { value: "Descriptor", configurable: true }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - - return obj; - }, - - // ToClassDescriptor - toClassDescriptor: function( - obj /*: ClassObject */, - ) /*: ElementsFinisher */ { - var kind = String(obj.kind); - if (kind !== "class") { - throw new TypeError( - 'A class descriptor\\'s .kind property must be "class", but a decorator' + - ' created a class descriptor with .kind "' + - kind + - '"', - ); - } - - this.disallowProperty(obj, "key", "A class descriptor"); - this.disallowProperty(obj, "placement", "A class descriptor"); - this.disallowProperty(obj, "descriptor", "A class descriptor"); - this.disallowProperty(obj, "initializer", "A class descriptor"); - this.disallowProperty(obj, "extras", "A class descriptor"); - - var finisher = _optionalCallableProperty(obj, "finisher"); - var elements = this.toElementDescriptors(obj.elements); - - return { elements: elements, finisher: finisher }; - }, - - // RunClassFinishers - runClassFinishers: function( - constructor /*: Class<*> */, - finishers /*: ClassFinisher[] */, - ) /*: Class<*> */ { - for (var i = 0; i < finishers.length; i++) { - var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor); - if (newConstructor !== undefined) { - // NOTE: This should check if IsConstructor(newConstructor) is false. - if (typeof newConstructor !== "function") { - throw new TypeError("Finishers must return a constructor."); - } - constructor = newConstructor; - } - } - return constructor; - }, - - disallowProperty: function(obj, name, objectType) { - if (obj[name] !== undefined) { - throw new TypeError(objectType + " can't have a ." + name + " property."); - } - } - }; - - return api; - } - - // ClassElementEvaluation - function _createElementDescriptor( - def /*: ElementDefinition */, - ) /*: ElementDescriptor */ { - var key = toPropertyKey(def.key); - - var descriptor /*: PropertyDescriptor */; - if (def.kind === "method") { - descriptor = { - value: def.value, - writable: true, - configurable: true, - enumerable: false, - }; - } else if (def.kind === "get") { - descriptor = { get: def.value, configurable: true, enumerable: false }; - } else if (def.kind === "set") { - descriptor = { set: def.value, configurable: true, enumerable: false }; - } else if (def.kind === "field") { - descriptor = { configurable: true, writable: true, enumerable: true }; - } - - var element /*: ElementDescriptor */ = { - kind: def.kind === "field" ? "field" : "method", - key: key, - placement: def.static - ? "static" - : def.kind === "field" - ? "own" - : "prototype", - descriptor: descriptor, - }; - if (def.decorators) element.decorators = def.decorators; - if (def.kind === "field") element.initializer = def.value; - - return element; - } - - // CoalesceGetterSetter - function _coalesceGetterSetter( - element /*: ElementDescriptor */, - other /*: ElementDescriptor */, - ) { - if (element.descriptor.get !== undefined) { - other.descriptor.get = element.descriptor.get; - } else { - other.descriptor.set = element.descriptor.set; - } - } - - // CoalesceClassElements - function _coalesceClassElements( - elements /*: ElementDescriptor[] */, - ) /*: ElementDescriptor[] */ { - var newElements /*: ElementDescriptor[] */ = []; - - var isSameElement = function( - other /*: ElementDescriptor */, - ) /*: boolean */ { - return ( - other.kind === "method" && - other.key === element.key && - other.placement === element.placement - ); - }; - - for (var i = 0; i < elements.length; i++) { - var element /*: ElementDescriptor */ = elements[i]; - var other /*: ElementDescriptor */; - - if ( - element.kind === "method" && - (other = newElements.find(isSameElement)) - ) { - if ( - _isDataDescriptor(element.descriptor) || - _isDataDescriptor(other.descriptor) - ) { - if (_hasDecorators(element) || _hasDecorators(other)) { - throw new ReferenceError( - "Duplicated methods (" + element.key + ") can't be decorated.", - ); - } - other.descriptor = element.descriptor; - } else { - if (_hasDecorators(element)) { - if (_hasDecorators(other)) { - throw new ReferenceError( - "Decorators can't be placed on different accessors with for " + - "the same property (" + - element.key + - ").", - ); - } - other.decorators = element.decorators; - } - _coalesceGetterSetter(element, other); - } - } else { - newElements.push(element); - } - } - - return newElements; - } - - function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ { - return element.decorators && element.decorators.length; - } - - function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ { - return ( - desc !== undefined && - !(desc.value === undefined && desc.writable === undefined) - ); - } - - function _optionalCallableProperty /*::*/( - obj /*: T */, - name /*: $Keys */, - ) /*: ?Function */ { - var value = obj[name]; - if (value !== undefined && typeof value !== "function") { - throw new TypeError("Expected '" + name + "' to be a function"); - } - return value; - } - -`; -helpers.classPrivateMethodGet = helper("7.1.6")` - export default function _classPrivateMethodGet(receiver, privateSet, fn) { - if (!privateSet.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return fn; - } -`; -helpers.checkPrivateRedeclaration = helper("7.14.1")` - export default function _checkPrivateRedeclaration(obj, privateCollection) { - if (privateCollection.has(obj)) { - throw new TypeError("Cannot initialize the same private elements twice on an object"); - } - } -`; -helpers.classPrivateFieldInitSpec = helper("7.14.1")` - import checkPrivateRedeclaration from "checkPrivateRedeclaration"; - - export default function _classPrivateFieldInitSpec(obj, privateMap, value) { - checkPrivateRedeclaration(obj, privateMap); - privateMap.set(obj, value); - } -`; -helpers.classPrivateMethodInitSpec = helper("7.14.1")` - import checkPrivateRedeclaration from "checkPrivateRedeclaration"; - - export default function _classPrivateMethodInitSpec(obj, privateSet) { - checkPrivateRedeclaration(obj, privateSet); - privateSet.add(obj); - } -`; -{ - helpers.classPrivateMethodSet = helper("7.1.6")` - export default function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); - } - `; -} -helpers.identity = helper("7.17.0")` - export default function _identity(x) { - return x; - } -`; - -//# sourceMappingURL=helpers.js.map - - -/***/ }), - -/***/ 87149: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -exports.ensure = ensure; -exports.get = get; -exports.getDependencies = getDependencies; -exports.list = void 0; -exports.minVersion = minVersion; -var _traverse = __nccwpck_require__(34160); -var _t = __nccwpck_require__(53501); -var _helpers = __nccwpck_require__(76696); -const { - assignmentExpression, - cloneNode, - expressionStatement, - file, - identifier -} = _t; -function makePath(path) { - const parts = []; - for (; path.parentPath; path = path.parentPath) { - parts.push(path.key); - if (path.inList) parts.push(path.listKey); - } - return parts.reverse().join("."); -} -let FileClass = undefined; -function getHelperMetadata(file) { - const globals = new Set(); - const localBindingNames = new Set(); - const dependencies = new Map(); - let exportName; - let exportPath; - const exportBindingAssignments = []; - const importPaths = []; - const importBindingsReferences = []; - const dependencyVisitor = { - ImportDeclaration(child) { - const name = child.node.source.value; - if (!_helpers.default[name]) { - throw child.buildCodeFrameError(`Unknown helper ${name}`); - } - if (child.get("specifiers").length !== 1 || !child.get("specifiers.0").isImportDefaultSpecifier()) { - throw child.buildCodeFrameError("Helpers can only import a default value"); - } - const bindingIdentifier = child.node.specifiers[0].local; - dependencies.set(bindingIdentifier, name); - importPaths.push(makePath(child)); - }, - ExportDefaultDeclaration(child) { - const decl = child.get("declaration"); - if (!decl.isFunctionDeclaration() || !decl.node.id) { - throw decl.buildCodeFrameError("Helpers can only export named function declarations"); - } - exportName = decl.node.id.name; - exportPath = makePath(child); - }, - ExportAllDeclaration(child) { - throw child.buildCodeFrameError("Helpers can only export default"); - }, - ExportNamedDeclaration(child) { - throw child.buildCodeFrameError("Helpers can only export default"); - }, - Statement(child) { - if (child.isImportDeclaration() || child.isExportDeclaration()) return; - child.skip(); - } - }; - const referenceVisitor = { - Program(path) { - const bindings = path.scope.getAllBindings(); - Object.keys(bindings).forEach(name => { - if (name === exportName) return; - if (dependencies.has(bindings[name].identifier)) return; - localBindingNames.add(name); - }); - }, - ReferencedIdentifier(child) { - const name = child.node.name; - const binding = child.scope.getBinding(name); - if (!binding) { - globals.add(name); - } else if (dependencies.has(binding.identifier)) { - importBindingsReferences.push(makePath(child)); - } - }, - AssignmentExpression(child) { - const left = child.get("left"); - if (!(exportName in left.getBindingIdentifiers())) return; - if (!left.isIdentifier()) { - throw left.buildCodeFrameError("Only simple assignments to exports are allowed in helpers"); - } - const binding = child.scope.getBinding(exportName); - if (binding != null && binding.scope.path.isProgram()) { - exportBindingAssignments.push(makePath(child)); - } - } - }; - (0, _traverse.default)(file.ast, dependencyVisitor, file.scope); - (0, _traverse.default)(file.ast, referenceVisitor, file.scope); - if (!exportPath) throw new Error("Helpers must have a default export."); - exportBindingAssignments.reverse(); - return { - globals: Array.from(globals), - localBindingNames: Array.from(localBindingNames), - dependencies, - exportBindingAssignments, - exportPath, - exportName, - importBindingsReferences, - importPaths - }; -} -function permuteHelperAST(file, metadata, id, localBindings, getDependency) { - if (localBindings && !id) { - throw new Error("Unexpected local bindings for module-based helpers."); - } - if (!id) return; - const { - localBindingNames, - dependencies, - exportBindingAssignments, - exportPath, - exportName, - importBindingsReferences, - importPaths - } = metadata; - const dependenciesRefs = {}; - dependencies.forEach((name, id) => { - dependenciesRefs[id.name] = typeof getDependency === "function" && getDependency(name) || id; - }); - const toRename = {}; - const bindings = new Set(localBindings || []); - localBindingNames.forEach(name => { - let newName = name; - while (bindings.has(newName)) newName = "_" + newName; - if (newName !== name) toRename[name] = newName; - }); - if (id.type === "Identifier" && exportName !== id.name) { - toRename[exportName] = id.name; - } - const { - path - } = file; - const exp = path.get(exportPath); - const imps = importPaths.map(p => path.get(p)); - const impsBindingRefs = importBindingsReferences.map(p => path.get(p)); - const decl = exp.get("declaration"); - if (id.type === "Identifier") { - exp.replaceWith(decl); - } else if (id.type === "MemberExpression") { - exportBindingAssignments.forEach(assignPath => { - const assign = path.get(assignPath); - assign.replaceWith(assignmentExpression("=", id, assign.node)); - }); - exp.replaceWith(decl); - path.pushContainer("body", expressionStatement(assignmentExpression("=", id, identifier(exportName)))); - } else { - throw new Error("Unexpected helper format."); - } - Object.keys(toRename).forEach(name => { - path.scope.rename(name, toRename[name]); - }); - for (const path of imps) path.remove(); - for (const path of impsBindingRefs) { - const node = cloneNode(dependenciesRefs[path.node.name]); - path.replaceWith(node); - } -} -const helperData = Object.create(null); -function loadHelper(name) { - if (!helperData[name]) { - const helper = _helpers.default[name]; - if (!helper) { - throw Object.assign(new ReferenceError(`Unknown helper ${name}`), { - code: "BABEL_HELPER_UNKNOWN", - helper: name - }); - } - const fn = () => { - { - if (!FileClass) { - const fakeFile = { - ast: file(helper.ast()), - path: null - }; - (0, _traverse.default)(fakeFile.ast, { - Program: path => (fakeFile.path = path).stop() - }); - return fakeFile; - } - } - return new FileClass({ - filename: `babel-helper://${name}` - }, { - ast: file(helper.ast()), - code: "[internal Babel helper code]", - inputMap: null - }); - }; - let metadata = null; - helperData[name] = { - minVersion: helper.minVersion, - build(getDependency, id, localBindings) { - const file = fn(); - metadata || (metadata = getHelperMetadata(file)); - permuteHelperAST(file, metadata, id, localBindings, getDependency); - return { - nodes: file.ast.program.body, - globals: metadata.globals - }; - }, - getDependencies() { - metadata || (metadata = getHelperMetadata(fn())); - return Array.from(metadata.dependencies.values()); - } - }; - } - return helperData[name]; -} -function get(name, getDependency, id, localBindings) { - return loadHelper(name).build(getDependency, id, localBindings); -} -function minVersion(name) { - return loadHelper(name).minVersion; -} -function getDependencies(name) { - return loadHelper(name).getDependencies(); -} -function ensure(name, newFileClass) { - FileClass || (FileClass = newFileClass); - loadHelper(name); -} -const list = Object.keys(_helpers.default).map(name => name.replace(/^_/, "")); -exports.list = list; -var _default = get; -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 78610: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _template = __nccwpck_require__(52738); -function helper(minVersion, source) { - return Object.freeze({ - minVersion, - ast: () => _template.default.program.ast(source, { - preserveComments: true - }) - }); -} -var _default = Object.freeze({ - AsyncGenerator: helper("7.0.0-beta.0", 'import OverloadYield from"OverloadYield";export default function AsyncGenerator(gen){var front,back;function resume(key,arg){try{var result=gen[key](arg),value=result.value,overloaded=value instanceof OverloadYield;Promise.resolve(overloaded?value.v:value).then((function(arg){if(overloaded){var nextKey="return"===key?"return":"next";if(!value.k||arg.done)return resume(nextKey,arg);arg=gen[nextKey](arg).value}settle(result.done?"return":"normal",arg)}),(function(err){resume("throw",err)}))}catch(err){settle("throw",err)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:!0});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:!1})}(front=front.next)?resume(front.key,front.arg):back=null}this._invoke=function(key,arg){return new Promise((function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};back?back=back.next=request:(front=back=request,resume(key,arg))}))},"function"!=typeof gen.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg)},AsyncGenerator.prototype.throw=function(arg){return this._invoke("throw",arg)},AsyncGenerator.prototype.return=function(arg){return this._invoke("return",arg)};'), - OverloadYield: helper("7.18.14", "export default function _OverloadYield(value,kind){this.v=value,this.k=kind}"), - applyDecs: helper("7.17.8", 'function old_createMetadataMethodsForProperty(metadataMap,kind,property,decoratorFinishedRef){return{getMetadata:function(key){old_assertNotFinished(decoratorFinishedRef,"getMetadata"),old_assertMetadataKey(key);var metadataForKey=metadataMap[key];if(void 0!==metadataForKey)if(1===kind){var pub=metadataForKey.public;if(void 0!==pub)return pub[property]}else if(2===kind){var priv=metadataForKey.private;if(void 0!==priv)return priv.get(property)}else if(Object.hasOwnProperty.call(metadataForKey,"constructor"))return metadataForKey.constructor},setMetadata:function(key,value){old_assertNotFinished(decoratorFinishedRef,"setMetadata"),old_assertMetadataKey(key);var metadataForKey=metadataMap[key];if(void 0===metadataForKey&&(metadataForKey=metadataMap[key]={}),1===kind){var pub=metadataForKey.public;void 0===pub&&(pub=metadataForKey.public={}),pub[property]=value}else if(2===kind){var priv=metadataForKey.priv;void 0===priv&&(priv=metadataForKey.private=new Map),priv.set(property,value)}else metadataForKey.constructor=value}}}function old_convertMetadataMapToFinal(obj,metadataMap){var parentMetadataMap=obj[Symbol.metadata||Symbol.for("Symbol.metadata")],metadataKeys=Object.getOwnPropertySymbols(metadataMap);if(0!==metadataKeys.length){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=old_memberDec(decs[i],name,desc,metadataMap,initializers,kind,isStatic,isPrivate,value)))old_assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=old_getInit(newValue),get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===initializer?initializer=newInit:"function"==typeof initializer?initializer=[initializer,newInit]:initializer.push(newInit))}if(0===kind||1===kind){if(void 0===initializer)initializer=function(instance,init){return init};else if("function"!=typeof initializer){var ownInitializers=initializer;initializer=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5;if(isStatic?(base=Class,metadataMap=staticMetadataMap,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,metadataMap=protoMetadataMap,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}old_applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,metadataMap,initializers)}}old_pushInitializers(ret,protoInitializers),old_pushInitializers(ret,staticInitializers)}function old_pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var ctx=Object.assign({kind:"class",name:name,addInitializer:old_createAddInitializerMethod(initializers,decoratorFinishedRef)},old_createMetadataMethodsForProperty(metadataMap,0,name,decoratorFinishedRef)),nextNewClass=classDecs[i](newClass,ctx)}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(old_assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}ret.push(newClass,(function(){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5;if(isStatic?(base=Class,0!=(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers)}}pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers)}(ret,targetClass,memberDecs),function(ret,targetClass,classDecs){if(classDecs.length>0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}ret.push(newClass,(function(){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5;if(isStatic?(base=Class,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[])):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i=0;i--){var newInit;if(void 0!==(newValue=memberDec(decs[i],name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,isStatic=kind>=5,hasPrivateBrand=instanceBrand;if(isStatic?(base=Class,0!==(kind-=5)&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,i=classDecs.length-1;i>=0;i--){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i](newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(10,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i=0;i-=inc){var newInit;if(void 0!==(newValue=memberDec(decs[i],decoratorsHaveThis?decs[i-1]:void 0,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=ownInitializers.length-1;i>=0;i--)value=ownInitializers[i].call(instance,value);return value}}else{var originalInitializer=init;init=function(instance,init){return originalInitializer.call(instance,init)}}ret.push(init)}0!==kind&&(1===kind?(desc.get=value.get,desc.set=value.set):2===kind?desc.value=value:3===kind?desc.get=value:4===kind&&(desc.set=value),isPrivate?1===kind?(ret.push((function(instance,args){return value.get.call(instance,args)})),ret.push((function(instance,args){return value.set.call(instance,args)}))):2===kind?ret.push(value):ret.push((function(instance,args){return value.call(instance,args)})):Object.defineProperty(base,name,desc))}function applyMemberDecs(Class,decInfos,instanceBrand){for(var protoInitializers,staticInitializers,staticBrand,ret=[],existingProtoNonFields=new Map,existingStaticNonFields=new Map,i=0;i3,decoratorsHaveThis=16&kind,isStatic=!!(8&kind),hasPrivateBrand=instanceBrand;if(kind&=7,isStatic?(base=Class,0!==kind&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);existingNonFields.set(name,!(!existingKind&&kind>2)||kind)}applyMemberDec(ret,base,decInfo,decoratorsHaveThis,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i=0;i-=inc){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i].call(decoratorsHaveThis?classDecs[i-1]:void 0,newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(5,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i1){for(var childArray=new Array(childrenLength),i=0;i=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel}},exports}'), - typeof: helper("7.0.0-beta.0", 'export default function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}'), - using: helper("7.22.0", 'export default function _using(stack,value,isAwait){if(null==value)return value;if("object"!=typeof value)throw new TypeError("using decarations can only be used with objects, null, or undefined.");if(isAwait)var dispose=value[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==dispose&&(dispose=value[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof dispose)throw new TypeError("Property [Symbol.dispose] is not a function.");return stack.push({v:value,d:dispose,a:isAwait}),value}'), - wrapRegExp: helper("7.19.0", 'import setPrototypeOf from"setPrototypeOf";import inherits from"inherits";export default function _wrapRegExp(){_wrapRegExp=function(re,groups){return new BabelRegExp(re,void 0,groups)};var _super=RegExp.prototype,_groups=new WeakMap;function BabelRegExp(re,flags,groups){var _this=new RegExp(re,flags);return _groups.set(_this,groups||_groups.get(re)),setPrototypeOf(_this,BabelRegExp.prototype)}function buildGroups(result,re){var g=_groups.get(re);return Object.keys(g).reduce((function(groups,name){var i=g[name];if("number"==typeof i)groups[name]=result[i];else{for(var k=0;void 0===result[i[k]]&&k+1]+)>/g,(function(_,name){var group=groups[name];return"$"+(Array.isArray(group)?group.join("$"):group)})))}if("function"==typeof substitution){var _this=this;return _super[Symbol.replace].call(this,str,(function(){var args=arguments;return"object"!=typeof args[args.length-1]&&(args=[].slice.call(args)).push(buildGroups(args,_this)),substitution.apply(this,args)}))}return _super[Symbol.replace].call(this,str,substitution)},_wrapRegExp.apply(this,arguments)}') -}); -exports["default"] = _default; - -//# sourceMappingURL=helpers-generated.js.map - - -/***/ }), - -/***/ 68240: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _template = __nccwpck_require__(52738); -var _helpersGenerated = __nccwpck_require__(78610); -const helpers = Object.assign({ - __proto__: null -}, _helpersGenerated.default); -var _default = helpers; -exports["default"] = _default; -const helper = minVersion => tpl => ({ - minVersion, - ast: () => _template.default.program.ast(tpl) -}); -{ - helpers.AwaitValue = helper("7.0.0-beta.0")` - export default function _AwaitValue(value) { - this.wrapped = value; - } - `; -} -helpers.wrapAsyncGenerator = helper("7.0.0-beta.0")` - import AsyncGenerator from "AsyncGenerator"; - - export default function _wrapAsyncGenerator(fn) { - return function () { - return new AsyncGenerator(fn.apply(this, arguments)); - }; - } -`; -helpers.asyncToGenerator = helper("7.0.0-beta.0")` - function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } - } - - export default function _asyncToGenerator(fn) { - return function () { - var self = this, args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - - _next(undefined); - }); - }; - } -`; -helpers.classCallCheck = helper("7.0.0-beta.0")` - export default function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } -`; -helpers.createClass = helper("7.0.0-beta.0")` - import toPropertyKey from "toPropertyKey"; - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i ++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); - } - } - - export default function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } -`; -helpers.defineEnumerableProperties = helper("7.0.0-beta.0")` - export default function _defineEnumerableProperties(obj, descs) { - for (var key in descs) { - var desc = descs[key]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, key, desc); - } - - // Symbols are not enumerated over by for-in loops. If native - // Symbols are available, fetch all of the descs object's own - // symbol properties and define them on our target object too. - if (Object.getOwnPropertySymbols) { - var objectSymbols = Object.getOwnPropertySymbols(descs); - for (var i = 0; i < objectSymbols.length; i++) { - var sym = objectSymbols[i]; - var desc = descs[sym]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, sym, desc); - } - } - return obj; - } -`; -helpers.defaults = helper("7.0.0-beta.0")` - export default function _defaults(obj, defaults) { - var keys = Object.getOwnPropertyNames(defaults); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = Object.getOwnPropertyDescriptor(defaults, key); - if (value && value.configurable && obj[key] === undefined) { - Object.defineProperty(obj, key, value); - } - } - return obj; - } -`; -helpers.defineProperty = helper("7.0.0-beta.0")` - import toPropertyKey from "toPropertyKey"; - export default function _defineProperty(obj, key, value) { - key = toPropertyKey(key); - // Shortcircuit the slow defineProperty path when possible. - // We are trying to avoid issues where setters defined on the - // prototype cause side effects under the fast path of simple - // assignment. By checking for existence of the property with - // the in operator, we can optimize most of this overhead away. - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } -`; -helpers.extends = helper("7.0.0-beta.0")` - export default function _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - - return _extends.apply(this, arguments); - } -`; -{ - helpers.objectSpread = helper("7.0.0-beta.0")` - import defineProperty from "defineProperty"; - - export default function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = (arguments[i] != null) ? Object(arguments[i]) : {}; - var ownKeys = Object.keys(source); - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - ownKeys.forEach(function(key) { - defineProperty(target, key, source[key]); - }); - } - return target; - } - `; -} -helpers.inherits = helper("7.0.0-beta.0")` - import setPrototypeOf from "setPrototypeOf"; - - export default function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - // We can't use defineProperty to set the prototype in a single step because it - // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056 - // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334 - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) setPrototypeOf(subClass, superClass); - } -`; -helpers.inheritsLoose = helper("7.0.0-beta.0")` - import setPrototypeOf from "setPrototypeOf"; - - export default function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - setPrototypeOf(subClass, superClass); - } -`; -helpers.getPrototypeOf = helper("7.0.0-beta.0")` - export default function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); - } -`; -helpers.setPrototypeOf = helper("7.0.0-beta.0")` - export default function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); - } -`; -helpers.isNativeReflectConstruct = helper("7.9.0")` - export default function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - - // core-js@3 - if (Reflect.construct.sham) return false; - - // Proxy can't be polyfilled. Every browser implemented - // proxies before or at the same time as Reflect.construct, - // so if they support Proxy they also support Reflect.construct. - if (typeof Proxy === "function") return true; - - // Since Reflect.construct can't be properly polyfilled, some - // implementations (e.g. core-js@2) don't set the correct internal slots. - // Those polyfills don't allow us to subclass built-ins, so we need to - // use our fallback implementation. - try { - // If the internal slots aren't set, this throws an error similar to - // TypeError: this is not a Boolean object. - - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); - return true; - } catch (e) { - return false; - } - } -`; -helpers.construct = helper("7.0.0-beta.0")` - import setPrototypeOf from "setPrototypeOf"; - import isNativeReflectConstruct from "isNativeReflectConstruct"; - - export default function _construct(Parent, args, Class) { - if (isNativeReflectConstruct()) { - _construct = Reflect.construct.bind(); - } else { - // NOTE: If Parent !== Class, the correct __proto__ is set *after* - // calling the constructor. - _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) setPrototypeOf(instance, Class.prototype); - return instance; - }; - } - // Avoid issues with Class being present but undefined when it wasn't - // present in the original call. - return _construct.apply(null, arguments); - } -`; -helpers.isNativeFunction = helper("7.0.0-beta.0")` - export default function _isNativeFunction(fn) { - // Note: This function returns "true" for core-js functions. - return Function.toString.call(fn).indexOf("[native code]") !== -1; - } -`; -helpers.wrapNativeSuper = helper("7.0.0-beta.0")` - import getPrototypeOf from "getPrototypeOf"; - import setPrototypeOf from "setPrototypeOf"; - import isNativeFunction from "isNativeFunction"; - import construct from "construct"; - - export default function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - - _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (Class === null || !isNativeFunction(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return construct(Class, arguments, getPrototypeOf(this).constructor) - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true, - } - }); - - return setPrototypeOf(Wrapper, Class); - } - - return _wrapNativeSuper(Class) - } -`; -helpers.instanceof = helper("7.0.0-beta.0")` - export default function _instanceof(left, right) { - if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { - return !!right[Symbol.hasInstance](left); - } else { - return left instanceof right; - } - } -`; -helpers.interopRequireDefault = helper("7.0.0-beta.0")` - export default function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } -`; -helpers.interopRequireWildcard = helper("7.14.0")` - function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== "function") return null; - - var cacheBabelInterop = new WeakMap(); - var cacheNodeInterop = new WeakMap(); - return (_getRequireWildcardCache = function (nodeInterop) { - return nodeInterop ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); - } - - export default function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - - if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) { - return { default: obj } - } - - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) { - if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor - ? Object.getOwnPropertyDescriptor(obj, key) - : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj.default = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; - } -`; -helpers.newArrowCheck = helper("7.0.0-beta.0")` - export default function _newArrowCheck(innerThis, boundThis) { - if (innerThis !== boundThis) { - throw new TypeError("Cannot instantiate an arrow function"); - } - } -`; -helpers.objectDestructuringEmpty = helper("7.0.0-beta.0")` - export default function _objectDestructuringEmpty(obj) { - if (obj == null) throw new TypeError("Cannot destructure " + obj); - } -`; -helpers.objectWithoutPropertiesLoose = helper("7.0.0-beta.0")` - export default function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; - } -`; -helpers.objectWithoutProperties = helper("7.0.0-beta.0")` - import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose"; - - export default function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; - } -`; -helpers.assertThisInitialized = helper("7.0.0-beta.0")` - export default function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; - } -`; -helpers.possibleConstructorReturn = helper("7.0.0-beta.0")` - import assertThisInitialized from "assertThisInitialized"; - - export default function _possibleConstructorReturn(self, call) { - if (call && (typeof call === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - - return assertThisInitialized(self); - } -`; -helpers.createSuper = helper("7.9.0")` - import getPrototypeOf from "getPrototypeOf"; - import isNativeReflectConstruct from "isNativeReflectConstruct"; - import possibleConstructorReturn from "possibleConstructorReturn"; - - export default function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - - return function _createSuperInternal() { - var Super = getPrototypeOf(Derived), result; - if (hasNativeReflectConstruct) { - // NOTE: This doesn't work if this.__proto__.constructor has been modified. - var NewTarget = getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - } - } - `; -helpers.superPropBase = helper("7.0.0-beta.0")` - import getPrototypeOf from "getPrototypeOf"; - - export default function _superPropBase(object, property) { - // Yes, this throws if object is null to being with, that's on purpose. - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = getPrototypeOf(object); - if (object === null) break; - } - return object; - } -`; -helpers.get = helper("7.0.0-beta.0")` - import superPropBase from "superPropBase"; - - export default function _get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - _get = Reflect.get.bind(); - } else { - _get = function _get(target, property, receiver) { - var base = superPropBase(target, property); - - if (!base) return; - - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - // STEP 3. If receiver is not present, then set receiver to target. - return desc.get.call(arguments.length < 3 ? target : receiver); - } - - return desc.value; - }; - } - return _get.apply(this, arguments); - } -`; -helpers.set = helper("7.0.0-beta.0")` - import superPropBase from "superPropBase"; - import defineProperty from "defineProperty"; - - function set(target, property, value, receiver) { - if (typeof Reflect !== "undefined" && Reflect.set) { - set = Reflect.set; - } else { - set = function set(target, property, value, receiver) { - var base = superPropBase(target, property); - var desc; - - if (base) { - desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.set) { - desc.set.call(receiver, value); - return true; - } else if (!desc.writable) { - // Both getter and non-writable fall into this. - return false; - } - } - - // Without a super that defines the property, spec boils down to - // "define on receiver" for some reason. - desc = Object.getOwnPropertyDescriptor(receiver, property); - if (desc) { - if (!desc.writable) { - // Setter, getter, and non-writable fall into this. - return false; - } - - desc.value = value; - Object.defineProperty(receiver, property, desc); - } else { - // Avoid setters that may be defined on Sub's prototype, but not on - // the instance. - defineProperty(receiver, property, value); - } - - return true; - }; - } - - return set(target, property, value, receiver); - } - - export default function _set(target, property, value, receiver, isStrict) { - var s = set(target, property, value, receiver || target); - if (!s && isStrict) { - throw new TypeError('failed to set property'); - } - - return value; - } -`; -helpers.taggedTemplateLiteral = helper("7.0.0-beta.0")` - export default function _taggedTemplateLiteral(strings, raw) { - if (!raw) { raw = strings.slice(0); } - return Object.freeze(Object.defineProperties(strings, { - raw: { value: Object.freeze(raw) } - })); - } -`; -helpers.taggedTemplateLiteralLoose = helper("7.0.0-beta.0")` - export default function _taggedTemplateLiteralLoose(strings, raw) { - if (!raw) { raw = strings.slice(0); } - strings.raw = raw; - return strings; - } -`; -helpers.readOnlyError = helper("7.0.0-beta.0")` - export default function _readOnlyError(name) { - throw new TypeError("\\"" + name + "\\" is read-only"); - } -`; -helpers.writeOnlyError = helper("7.12.13")` - export default function _writeOnlyError(name) { - throw new TypeError("\\"" + name + "\\" is write-only"); - } -`; -helpers.classNameTDZError = helper("7.0.0-beta.0")` - export default function _classNameTDZError(name) { - throw new ReferenceError("Class \\"" + name + "\\" cannot be referenced in computed property keys."); - } -`; -helpers.temporalUndefined = helper("7.0.0-beta.0")` - // This function isn't mean to be called, but to be used as a reference. - // We can't use a normal object because it isn't hoisted. - export default function _temporalUndefined() {} -`; -helpers.tdz = helper("7.5.5")` - export default function _tdzError(name) { - throw new ReferenceError(name + " is not defined - temporal dead zone"); - } -`; -helpers.temporalRef = helper("7.0.0-beta.0")` - import undef from "temporalUndefined"; - import err from "tdz"; - - export default function _temporalRef(val, name) { - return val === undef ? err(name) : val; - } -`; -helpers.slicedToArray = helper("7.0.0-beta.0")` - import arrayWithHoles from "arrayWithHoles"; - import iterableToArrayLimit from "iterableToArrayLimit"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableRest from "nonIterableRest"; - - export default function _slicedToArray(arr, i) { - return ( - arrayWithHoles(arr) || - iterableToArrayLimit(arr, i) || - unsupportedIterableToArray(arr, i) || - nonIterableRest() - ); - } -`; -helpers.slicedToArrayLoose = helper("7.0.0-beta.0")` - import arrayWithHoles from "arrayWithHoles"; - import iterableToArrayLimitLoose from "iterableToArrayLimitLoose"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableRest from "nonIterableRest"; - - export default function _slicedToArrayLoose(arr, i) { - return ( - arrayWithHoles(arr) || - iterableToArrayLimitLoose(arr, i) || - unsupportedIterableToArray(arr, i) || - nonIterableRest() - ); - } -`; -helpers.toArray = helper("7.0.0-beta.0")` - import arrayWithHoles from "arrayWithHoles"; - import iterableToArray from "iterableToArray"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableRest from "nonIterableRest"; - - export default function _toArray(arr) { - return ( - arrayWithHoles(arr) || - iterableToArray(arr) || - unsupportedIterableToArray(arr) || - nonIterableRest() - ); - } -`; -helpers.toConsumableArray = helper("7.0.0-beta.0")` - import arrayWithoutHoles from "arrayWithoutHoles"; - import iterableToArray from "iterableToArray"; - import unsupportedIterableToArray from "unsupportedIterableToArray"; - import nonIterableSpread from "nonIterableSpread"; - - export default function _toConsumableArray(arr) { - return ( - arrayWithoutHoles(arr) || - iterableToArray(arr) || - unsupportedIterableToArray(arr) || - nonIterableSpread() - ); - } -`; -helpers.arrayWithoutHoles = helper("7.0.0-beta.0")` - import arrayLikeToArray from "arrayLikeToArray"; - - export default function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return arrayLikeToArray(arr); - } -`; -helpers.arrayWithHoles = helper("7.0.0-beta.0")` - export default function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; - } -`; -helpers.maybeArrayLike = helper("7.9.0")` - import arrayLikeToArray from "arrayLikeToArray"; - - export default function _maybeArrayLike(next, arr, i) { - if (arr && !Array.isArray(arr) && typeof arr.length === "number") { - var len = arr.length; - return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); - } - return next(arr, i); - } -`; -helpers.iterableToArray = helper("7.0.0-beta.0")` - export default function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); - } -`; -helpers.unsupportedIterableToArray = helper("7.9.0")` - import arrayLikeToArray from "arrayLikeToArray"; - - export default function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return arrayLikeToArray(o, minLen); - } -`; -helpers.arrayLikeToArray = helper("7.9.0")` - export default function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; - } -`; -helpers.nonIterableSpread = helper("7.0.0-beta.0")` - export default function _nonIterableSpread() { - throw new TypeError( - "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." - ); - } -`; -helpers.nonIterableRest = helper("7.0.0-beta.0")` - export default function _nonIterableRest() { - throw new TypeError( - "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." - ); - } -`; -helpers.createForOfIteratorHelper = helper("7.9.0")` - import unsupportedIterableToArray from "unsupportedIterableToArray"; - - // s: start (create the iterator) - // n: next - // e: error (called whenever something throws) - // f: finish (always called at the end) - - export default function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - - if (!it) { - // Fallback for engines without symbol support - if ( - Array.isArray(o) || - (it = unsupportedIterableToArray(o)) || - (allowArrayLike && o && typeof o.length === "number") - ) { - if (it) o = it; - var i = 0; - var F = function(){}; - return { - s: F, - n: function() { - if (i >= o.length) return { done: true }; - return { done: false, value: o[i++] }; - }, - e: function(e) { throw e; }, - f: F, - }; - } - - throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - - var normalCompletion = true, didErr = false, err; - - return { - s: function() { - it = it.call(o); - }, - n: function() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function(e) { - didErr = true; - err = e; - }, - f: function() { - try { - if (!normalCompletion && it.return != null) it.return(); - } finally { - if (didErr) throw err; - } - } - }; - } -`; -helpers.createForOfIteratorHelperLoose = helper("7.9.0")` - import unsupportedIterableToArray from "unsupportedIterableToArray"; - - export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - - if (it) return (it = it.call(o)).next.bind(it); - - // Fallback for engines without symbol support - if ( - Array.isArray(o) || - (it = unsupportedIterableToArray(o)) || - (allowArrayLike && o && typeof o.length === "number") - ) { - if (it) o = it; - var i = 0; - return function() { - if (i >= o.length) return { done: true }; - return { done: false, value: o[i++] }; - } - } - - throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } -`; -helpers.skipFirstGeneratorNext = helper("7.0.0-beta.0")` - export default function _skipFirstGeneratorNext(fn) { - return function () { - var it = fn.apply(this, arguments); - it.next(); - return it; - } - } -`; -helpers.toPrimitive = helper("7.1.5")` - export default function _toPrimitive( - input, - hint /*: "default" | "string" | "number" | void */ - ) { - if (typeof input !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (typeof res !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); - } -`; -helpers.toPropertyKey = helper("7.1.5")` - import toPrimitive from "toPrimitive"; - - export default function _toPropertyKey(arg) { - var key = toPrimitive(arg, "string"); - return typeof key === "symbol" ? key : String(key); - } -`; -helpers.initializerWarningHelper = helper("7.0.0-beta.0")` - export default function _initializerWarningHelper(descriptor, context){ - throw new Error( - 'Decorating class property failed. Please ensure that ' + - 'transform-class-properties is enabled and runs after the decorators transform.' - ); - } -`; -helpers.initializerDefineProperty = helper("7.0.0-beta.0")` - export default function _initializerDefineProperty(target, property, descriptor, context){ - if (!descriptor) return; - - Object.defineProperty(target, property, { - enumerable: descriptor.enumerable, - configurable: descriptor.configurable, - writable: descriptor.writable, - value: descriptor.initializer ? descriptor.initializer.call(context) : void 0, - }); - } -`; -helpers.applyDecoratedDescriptor = helper("7.0.0-beta.0")` - export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){ - var desc = {}; - Object.keys(descriptor).forEach(function(key){ - desc[key] = descriptor[key]; - }); - desc.enumerable = !!desc.enumerable; - desc.configurable = !!desc.configurable; - if ('value' in desc || desc.initializer){ - desc.writable = true; - } - - desc = decorators.slice().reverse().reduce(function(desc, decorator){ - return decorator(target, property, desc) || desc; - }, desc); - - if (context && desc.initializer !== void 0){ - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; - desc.initializer = undefined; - } - - if (desc.initializer === void 0){ - Object.defineProperty(target, property, desc); - desc = null; - } - - return desc; - } -`; -helpers.classPrivateFieldLooseKey = helper("7.0.0-beta.0")` - var id = 0; - export default function _classPrivateFieldKey(name) { - return "__private_" + (id++) + "_" + name; - } -`; -helpers.classPrivateFieldLooseBase = helper("7.0.0-beta.0")` - export default function _classPrivateFieldBase(receiver, privateKey) { - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { - throw new TypeError("attempted to use private field on non-instance"); - } - return receiver; - } -`; -helpers.classPrivateFieldGet = helper("7.0.0-beta.0")` - import classApplyDescriptorGet from "classApplyDescriptorGet"; - import classExtractFieldDescriptor from "classExtractFieldDescriptor"; - export default function _classPrivateFieldGet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); - return classApplyDescriptorGet(receiver, descriptor); - } -`; -helpers.classPrivateFieldSet = helper("7.0.0-beta.0")` - import classApplyDescriptorSet from "classApplyDescriptorSet"; - import classExtractFieldDescriptor from "classExtractFieldDescriptor"; - export default function _classPrivateFieldSet(receiver, privateMap, value) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; - } -`; -helpers.classPrivateFieldDestructureSet = helper("7.4.4")` - import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; - import classExtractFieldDescriptor from "classExtractFieldDescriptor"; - export default function _classPrivateFieldDestructureSet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); - } -`; -helpers.classExtractFieldDescriptor = helper("7.13.10")` - export default function _classExtractFieldDescriptor(receiver, privateMap, action) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to " + action + " private field on non-instance"); - } - return privateMap.get(receiver); - } -`; -helpers.classStaticPrivateFieldSpecGet = helper("7.0.2")` - import classApplyDescriptorGet from "classApplyDescriptorGet"; - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; - export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "get"); - return classApplyDescriptorGet(receiver, descriptor); - } -`; -helpers.classStaticPrivateFieldSpecSet = helper("7.0.2")` - import classApplyDescriptorSet from "classApplyDescriptorSet"; - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; - export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; - } -`; -helpers.classStaticPrivateMethodGet = helper("7.3.2")` - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { - classCheckPrivateStaticAccess(receiver, classConstructor); - return method; - } -`; -helpers.classStaticPrivateMethodSet = helper("7.3.2")` - export default function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); - } -`; -helpers.classApplyDescriptorGet = helper("7.13.10")` - export default function _classApplyDescriptorGet(receiver, descriptor) { - if (descriptor.get) { - return descriptor.get.call(receiver); - } - return descriptor.value; - } -`; -helpers.classApplyDescriptorSet = helper("7.13.10")` - export default function _classApplyDescriptorSet(receiver, descriptor, value) { - if (descriptor.set) { - descriptor.set.call(receiver, value); - } else { - if (!descriptor.writable) { - // This should only throw in strict mode, but class bodies are - // always strict and private fields can only be used inside - // class bodies. - throw new TypeError("attempted to set read only private field"); - } - descriptor.value = value; - } - } -`; -helpers.classApplyDescriptorDestructureSet = helper("7.13.10")` - export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { - if (descriptor.set) { - if (!("__destrObj" in descriptor)) { - descriptor.__destrObj = { - set value(v) { - descriptor.set.call(receiver, v) - }, - }; - } - return descriptor.__destrObj; - } else { - if (!descriptor.writable) { - // This should only throw in strict mode, but class bodies are - // always strict and private fields can only be used inside - // class bodies. - throw new TypeError("attempted to set read only private field"); - } - - return descriptor; - } - } -`; -helpers.classStaticPrivateFieldDestructureSet = helper("7.13.10")` - import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; - import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; - import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; - export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); - } -`; -helpers.classCheckPrivateStaticAccess = helper("7.13.10")` - export default function _classCheckPrivateStaticAccess(receiver, classConstructor) { - if (receiver !== classConstructor) { - throw new TypeError("Private static access of wrong provenance"); - } - } -`; -helpers.classCheckPrivateStaticFieldDescriptor = helper("7.13.10")` - export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { - if (descriptor === undefined) { - throw new TypeError("attempted to " + action + " private static field before its declaration"); - } - } -`; -helpers.decorate = helper("7.1.5")` - import toArray from "toArray"; - import toPropertyKey from "toPropertyKey"; - - // These comments are stripped by @babel/template - /*:: - type PropertyDescriptor = - | { - value: any, - writable: boolean, - configurable: boolean, - enumerable: boolean, - } - | { - get?: () => any, - set?: (v: any) => void, - configurable: boolean, - enumerable: boolean, - }; - - type FieldDescriptor ={ - writable: boolean, - configurable: boolean, - enumerable: boolean, - }; - - type Placement = "static" | "prototype" | "own"; - type Key = string | symbol; // PrivateName is not supported yet. - - type ElementDescriptor = - | { - kind: "method", - key: Key, - placement: Placement, - descriptor: PropertyDescriptor - } - | { - kind: "field", - key: Key, - placement: Placement, - descriptor: FieldDescriptor, - initializer?: () => any, - }; - - // This is exposed to the user code - type ElementObjectInput = ElementDescriptor & { - [@@toStringTag]?: "Descriptor" - }; - - // This is exposed to the user code - type ElementObjectOutput = ElementDescriptor & { - [@@toStringTag]?: "Descriptor" - extras?: ElementDescriptor[], - finisher?: ClassFinisher, - }; - - // This is exposed to the user code - type ClassObject = { - [@@toStringTag]?: "Descriptor", - kind: "class", - elements: ElementDescriptor[], - }; - - type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput; - type ClassDecorator = (descriptor: ClassObject) => ?ClassObject; - type ClassFinisher = (cl: Class) => Class; - - // Only used by Babel in the transform output, not part of the spec. - type ElementDefinition = - | { - kind: "method", - value: any, - key: Key, - static?: boolean, - decorators?: ElementDecorator[], - } - | { - kind: "field", - value: () => any, - key: Key, - static?: boolean, - decorators?: ElementDecorator[], - }; - - declare function ClassFactory(initialize: (instance: C) => void): { - F: Class, - d: ElementDefinition[] - } - - */ - - /*:: - // Various combinations with/without extras and with one or many finishers - - type ElementFinisherExtras = { - element: ElementDescriptor, - finisher?: ClassFinisher, - extras?: ElementDescriptor[], - }; - - type ElementFinishersExtras = { - element: ElementDescriptor, - finishers: ClassFinisher[], - extras: ElementDescriptor[], - }; - - type ElementsFinisher = { - elements: ElementDescriptor[], - finisher?: ClassFinisher, - }; - - type ElementsFinishers = { - elements: ElementDescriptor[], - finishers: ClassFinisher[], - }; - - */ - - /*:: - - type Placements = { - static: Key[], - prototype: Key[], - own: Key[], - }; - - */ - - // ClassDefinitionEvaluation (Steps 26-*) - export default function _decorate( - decorators /*: ClassDecorator[] */, - factory /*: ClassFactory */, - superClass /*: ?Class<*> */, - mixins /*: ?Array */, - ) /*: Class<*> */ { - var api = _getDecoratorsApi(); - if (mixins) { - for (var i = 0; i < mixins.length; i++) { - api = mixins[i](api); - } - } - - var r = factory(function initialize(O) { - api.initializeInstanceElements(O, decorated.elements); - }, superClass); - var decorated = api.decorateClass( - _coalesceClassElements(r.d.map(_createElementDescriptor)), - decorators, - ); - - api.initializeClassElements(r.F, decorated.elements); - - return api.runClassFinishers(r.F, decorated.finishers); - } - - function _getDecoratorsApi() { - _getDecoratorsApi = function() { - return api; - }; - - var api = { - elementsDefinitionOrder: [["method"], ["field"]], - - // InitializeInstanceElements - initializeInstanceElements: function( - /*::*/ O /*: C */, - elements /*: ElementDescriptor[] */, - ) { - ["method", "field"].forEach(function(kind) { - elements.forEach(function(element /*: ElementDescriptor */) { - if (element.kind === kind && element.placement === "own") { - this.defineClassElement(O, element); - } - }, this); - }, this); - }, - - // InitializeClassElements - initializeClassElements: function( - /*::*/ F /*: Class */, - elements /*: ElementDescriptor[] */, - ) { - var proto = F.prototype; - - ["method", "field"].forEach(function(kind) { - elements.forEach(function(element /*: ElementDescriptor */) { - var placement = element.placement; - if ( - element.kind === kind && - (placement === "static" || placement === "prototype") - ) { - var receiver = placement === "static" ? F : proto; - this.defineClassElement(receiver, element); - } - }, this); - }, this); - }, - - // DefineClassElement - defineClassElement: function( - /*::*/ receiver /*: C | Class */, - element /*: ElementDescriptor */, - ) { - var descriptor /*: PropertyDescriptor */ = element.descriptor; - if (element.kind === "field") { - var initializer = element.initializer; - descriptor = { - enumerable: descriptor.enumerable, - writable: descriptor.writable, - configurable: descriptor.configurable, - value: initializer === void 0 ? void 0 : initializer.call(receiver), - }; - } - Object.defineProperty(receiver, element.key, descriptor); - }, - - // DecorateClass - decorateClass: function( - elements /*: ElementDescriptor[] */, - decorators /*: ClassDecorator[] */, - ) /*: ElementsFinishers */ { - var newElements /*: ElementDescriptor[] */ = []; - var finishers /*: ClassFinisher[] */ = []; - var placements /*: Placements */ = { - static: [], - prototype: [], - own: [], - }; - - elements.forEach(function(element /*: ElementDescriptor */) { - this.addElementPlacement(element, placements); - }, this); - - elements.forEach(function(element /*: ElementDescriptor */) { - if (!_hasDecorators(element)) return newElements.push(element); - - var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement( - element, - placements, - ); - newElements.push(elementFinishersExtras.element); - newElements.push.apply(newElements, elementFinishersExtras.extras); - finishers.push.apply(finishers, elementFinishersExtras.finishers); - }, this); - - if (!decorators) { - return { elements: newElements, finishers: finishers }; - } - - var result /*: ElementsFinishers */ = this.decorateConstructor( - newElements, - decorators, - ); - finishers.push.apply(finishers, result.finishers); - result.finishers = finishers; - - return result; - }, - - // AddElementPlacement - addElementPlacement: function( - element /*: ElementDescriptor */, - placements /*: Placements */, - silent /*: boolean */, - ) { - var keys = placements[element.placement]; - if (!silent && keys.indexOf(element.key) !== -1) { - throw new TypeError("Duplicated element (" + element.key + ")"); - } - keys.push(element.key); - }, - - // DecorateElement - decorateElement: function( - element /*: ElementDescriptor */, - placements /*: Placements */, - ) /*: ElementFinishersExtras */ { - var extras /*: ElementDescriptor[] */ = []; - var finishers /*: ClassFinisher[] */ = []; - - for ( - var decorators = element.decorators, i = decorators.length - 1; - i >= 0; - i-- - ) { - // (inlined) RemoveElementPlacement - var keys = placements[element.placement]; - keys.splice(keys.indexOf(element.key), 1); - - var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor( - element, - ); - var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras( - (0, decorators[i])(elementObject) /*: ElementObjectOutput */ || - elementObject, - ); - - element = elementFinisherExtras.element; - this.addElementPlacement(element, placements); - - if (elementFinisherExtras.finisher) { - finishers.push(elementFinisherExtras.finisher); - } - - var newExtras /*: ElementDescriptor[] | void */ = - elementFinisherExtras.extras; - if (newExtras) { - for (var j = 0; j < newExtras.length; j++) { - this.addElementPlacement(newExtras[j], placements); - } - extras.push.apply(extras, newExtras); - } - } - - return { element: element, finishers: finishers, extras: extras }; - }, - - // DecorateConstructor - decorateConstructor: function( - elements /*: ElementDescriptor[] */, - decorators /*: ClassDecorator[] */, - ) /*: ElementsFinishers */ { - var finishers /*: ClassFinisher[] */ = []; - - for (var i = decorators.length - 1; i >= 0; i--) { - var obj /*: ClassObject */ = this.fromClassDescriptor(elements); - var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor( - (0, decorators[i])(obj) /*: ClassObject */ || obj, - ); - - if (elementsAndFinisher.finisher !== undefined) { - finishers.push(elementsAndFinisher.finisher); - } - - if (elementsAndFinisher.elements !== undefined) { - elements = elementsAndFinisher.elements; - - for (var j = 0; j < elements.length - 1; j++) { - for (var k = j + 1; k < elements.length; k++) { - if ( - elements[j].key === elements[k].key && - elements[j].placement === elements[k].placement - ) { - throw new TypeError( - "Duplicated element (" + elements[j].key + ")", - ); - } - } - } - } - } - - return { elements: elements, finishers: finishers }; - }, - - // FromElementDescriptor - fromElementDescriptor: function( - element /*: ElementDescriptor */, - ) /*: ElementObject */ { - var obj /*: ElementObject */ = { - kind: element.kind, - key: element.key, - placement: element.placement, - descriptor: element.descriptor, - }; - - var desc = { - value: "Descriptor", - configurable: true, - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - - if (element.kind === "field") obj.initializer = element.initializer; - - return obj; - }, - - // ToElementDescriptors - toElementDescriptors: function( - elementObjects /*: ElementObject[] */, - ) /*: ElementDescriptor[] */ { - if (elementObjects === undefined) return; - return toArray(elementObjects).map(function(elementObject) { - var element = this.toElementDescriptor(elementObject); - this.disallowProperty(elementObject, "finisher", "An element descriptor"); - this.disallowProperty(elementObject, "extras", "An element descriptor"); - return element; - }, this); - }, - - // ToElementDescriptor - toElementDescriptor: function( - elementObject /*: ElementObject */, - ) /*: ElementDescriptor */ { - var kind = String(elementObject.kind); - if (kind !== "method" && kind !== "field") { - throw new TypeError( - 'An element descriptor\\'s .kind property must be either "method" or' + - ' "field", but a decorator created an element descriptor with' + - ' .kind "' + - kind + - '"', - ); - } - - var key = toPropertyKey(elementObject.key); - - var placement = String(elementObject.placement); - if ( - placement !== "static" && - placement !== "prototype" && - placement !== "own" - ) { - throw new TypeError( - 'An element descriptor\\'s .placement property must be one of "static",' + - ' "prototype" or "own", but a decorator created an element descriptor' + - ' with .placement "' + - placement + - '"', - ); - } - - var descriptor /*: PropertyDescriptor */ = elementObject.descriptor; - - this.disallowProperty(elementObject, "elements", "An element descriptor"); - - var element /*: ElementDescriptor */ = { - kind: kind, - key: key, - placement: placement, - descriptor: Object.assign({}, descriptor), - }; - - if (kind !== "field") { - this.disallowProperty(elementObject, "initializer", "A method descriptor"); - } else { - this.disallowProperty( - descriptor, - "get", - "The property descriptor of a field descriptor", - ); - this.disallowProperty( - descriptor, - "set", - "The property descriptor of a field descriptor", - ); - this.disallowProperty( - descriptor, - "value", - "The property descriptor of a field descriptor", - ); - - element.initializer = elementObject.initializer; - } - - return element; - }, - - toElementFinisherExtras: function( - elementObject /*: ElementObject */, - ) /*: ElementFinisherExtras */ { - var element /*: ElementDescriptor */ = this.toElementDescriptor( - elementObject, - ); - var finisher /*: ClassFinisher */ = _optionalCallableProperty( - elementObject, - "finisher", - ); - var extras /*: ElementDescriptors[] */ = this.toElementDescriptors( - elementObject.extras, - ); - - return { element: element, finisher: finisher, extras: extras }; - }, - - // FromClassDescriptor - fromClassDescriptor: function( - elements /*: ElementDescriptor[] */, - ) /*: ClassObject */ { - var obj = { - kind: "class", - elements: elements.map(this.fromElementDescriptor, this), - }; - - var desc = { value: "Descriptor", configurable: true }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - - return obj; - }, - - // ToClassDescriptor - toClassDescriptor: function( - obj /*: ClassObject */, - ) /*: ElementsFinisher */ { - var kind = String(obj.kind); - if (kind !== "class") { - throw new TypeError( - 'A class descriptor\\'s .kind property must be "class", but a decorator' + - ' created a class descriptor with .kind "' + - kind + - '"', - ); - } - - this.disallowProperty(obj, "key", "A class descriptor"); - this.disallowProperty(obj, "placement", "A class descriptor"); - this.disallowProperty(obj, "descriptor", "A class descriptor"); - this.disallowProperty(obj, "initializer", "A class descriptor"); - this.disallowProperty(obj, "extras", "A class descriptor"); - - var finisher = _optionalCallableProperty(obj, "finisher"); - var elements = this.toElementDescriptors(obj.elements); - - return { elements: elements, finisher: finisher }; - }, - - // RunClassFinishers - runClassFinishers: function( - constructor /*: Class<*> */, - finishers /*: ClassFinisher[] */, - ) /*: Class<*> */ { - for (var i = 0; i < finishers.length; i++) { - var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor); - if (newConstructor !== undefined) { - // NOTE: This should check if IsConstructor(newConstructor) is false. - if (typeof newConstructor !== "function") { - throw new TypeError("Finishers must return a constructor."); - } - constructor = newConstructor; - } - } - return constructor; - }, - - disallowProperty: function(obj, name, objectType) { - if (obj[name] !== undefined) { - throw new TypeError(objectType + " can't have a ." + name + " property."); - } - } - }; - - return api; - } - - // ClassElementEvaluation - function _createElementDescriptor( - def /*: ElementDefinition */, - ) /*: ElementDescriptor */ { - var key = toPropertyKey(def.key); - - var descriptor /*: PropertyDescriptor */; - if (def.kind === "method") { - descriptor = { - value: def.value, - writable: true, - configurable: true, - enumerable: false, - }; - } else if (def.kind === "get") { - descriptor = { get: def.value, configurable: true, enumerable: false }; - } else if (def.kind === "set") { - descriptor = { set: def.value, configurable: true, enumerable: false }; - } else if (def.kind === "field") { - descriptor = { configurable: true, writable: true, enumerable: true }; - } - - var element /*: ElementDescriptor */ = { - kind: def.kind === "field" ? "field" : "method", - key: key, - placement: def.static - ? "static" - : def.kind === "field" - ? "own" - : "prototype", - descriptor: descriptor, - }; - if (def.decorators) element.decorators = def.decorators; - if (def.kind === "field") element.initializer = def.value; - - return element; - } - - // CoalesceGetterSetter - function _coalesceGetterSetter( - element /*: ElementDescriptor */, - other /*: ElementDescriptor */, - ) { - if (element.descriptor.get !== undefined) { - other.descriptor.get = element.descriptor.get; - } else { - other.descriptor.set = element.descriptor.set; - } - } - - // CoalesceClassElements - function _coalesceClassElements( - elements /*: ElementDescriptor[] */, - ) /*: ElementDescriptor[] */ { - var newElements /*: ElementDescriptor[] */ = []; - - var isSameElement = function( - other /*: ElementDescriptor */, - ) /*: boolean */ { - return ( - other.kind === "method" && - other.key === element.key && - other.placement === element.placement - ); - }; - - for (var i = 0; i < elements.length; i++) { - var element /*: ElementDescriptor */ = elements[i]; - var other /*: ElementDescriptor */; - - if ( - element.kind === "method" && - (other = newElements.find(isSameElement)) - ) { - if ( - _isDataDescriptor(element.descriptor) || - _isDataDescriptor(other.descriptor) - ) { - if (_hasDecorators(element) || _hasDecorators(other)) { - throw new ReferenceError( - "Duplicated methods (" + element.key + ") can't be decorated.", - ); - } - other.descriptor = element.descriptor; - } else { - if (_hasDecorators(element)) { - if (_hasDecorators(other)) { - throw new ReferenceError( - "Decorators can't be placed on different accessors with for " + - "the same property (" + - element.key + - ").", - ); - } - other.decorators = element.decorators; - } - _coalesceGetterSetter(element, other); - } - } else { - newElements.push(element); - } - } - - return newElements; - } - - function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ { - return element.decorators && element.decorators.length; - } - - function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ { - return ( - desc !== undefined && - !(desc.value === undefined && desc.writable === undefined) - ); - } - - function _optionalCallableProperty /*::*/( - obj /*: T */, - name /*: $Keys */, - ) /*: ?Function */ { - var value = obj[name]; - if (value !== undefined && typeof value !== "function") { - throw new TypeError("Expected '" + name + "' to be a function"); - } - return value; - } - -`; -helpers.classPrivateMethodGet = helper("7.1.6")` - export default function _classPrivateMethodGet(receiver, privateSet, fn) { - if (!privateSet.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return fn; - } -`; -helpers.checkPrivateRedeclaration = helper("7.14.1")` - export default function _checkPrivateRedeclaration(obj, privateCollection) { - if (privateCollection.has(obj)) { - throw new TypeError("Cannot initialize the same private elements twice on an object"); - } - } -`; -helpers.classPrivateFieldInitSpec = helper("7.14.1")` - import checkPrivateRedeclaration from "checkPrivateRedeclaration"; - - export default function _classPrivateFieldInitSpec(obj, privateMap, value) { - checkPrivateRedeclaration(obj, privateMap); - privateMap.set(obj, value); - } -`; -helpers.classPrivateMethodInitSpec = helper("7.14.1")` - import checkPrivateRedeclaration from "checkPrivateRedeclaration"; - - export default function _classPrivateMethodInitSpec(obj, privateSet) { - checkPrivateRedeclaration(obj, privateSet); - privateSet.add(obj); - } -`; -{ - helpers.classPrivateMethodSet = helper("7.1.6")` - export default function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); - } - `; -} -helpers.identity = helper("7.17.0")` - export default function _identity(x) { - return x; - } -`; - -//# sourceMappingURL=helpers.js.map - - -/***/ }), - -/***/ 8205: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -exports.ensure = ensure; -exports.get = get; -exports.getDependencies = getDependencies; -exports.list = void 0; -exports.minVersion = minVersion; -var _traverse = __nccwpck_require__(34160); -var _t = __nccwpck_require__(53501); -var _helpers = __nccwpck_require__(68240); -const { - assignmentExpression, - cloneNode, - expressionStatement, - file, - identifier -} = _t; -function makePath(path) { - const parts = []; - for (; path.parentPath; path = path.parentPath) { - parts.push(path.key); - if (path.inList) parts.push(path.listKey); - } - return parts.reverse().join("."); -} -let FileClass = undefined; -function getHelperMetadata(file) { - const globals = new Set(); - const localBindingNames = new Set(); - const dependencies = new Map(); - let exportName; - let exportPath; - const exportBindingAssignments = []; - const importPaths = []; - const importBindingsReferences = []; - const dependencyVisitor = { - ImportDeclaration(child) { - const name = child.node.source.value; - if (!_helpers.default[name]) { - throw child.buildCodeFrameError(`Unknown helper ${name}`); - } - if (child.get("specifiers").length !== 1 || !child.get("specifiers.0").isImportDefaultSpecifier()) { - throw child.buildCodeFrameError("Helpers can only import a default value"); - } - const bindingIdentifier = child.node.specifiers[0].local; - dependencies.set(bindingIdentifier, name); - importPaths.push(makePath(child)); - }, - ExportDefaultDeclaration(child) { - const decl = child.get("declaration"); - if (!decl.isFunctionDeclaration() || !decl.node.id) { - throw decl.buildCodeFrameError("Helpers can only export named function declarations"); - } - exportName = decl.node.id.name; - exportPath = makePath(child); - }, - ExportAllDeclaration(child) { - throw child.buildCodeFrameError("Helpers can only export default"); - }, - ExportNamedDeclaration(child) { - throw child.buildCodeFrameError("Helpers can only export default"); - }, - Statement(child) { - if (child.isImportDeclaration() || child.isExportDeclaration()) return; - child.skip(); - } - }; - const referenceVisitor = { - Program(path) { - const bindings = path.scope.getAllBindings(); - Object.keys(bindings).forEach(name => { - if (name === exportName) return; - if (dependencies.has(bindings[name].identifier)) return; - localBindingNames.add(name); - }); - }, - ReferencedIdentifier(child) { - const name = child.node.name; - const binding = child.scope.getBinding(name); - if (!binding) { - globals.add(name); - } else if (dependencies.has(binding.identifier)) { - importBindingsReferences.push(makePath(child)); - } - }, - AssignmentExpression(child) { - const left = child.get("left"); - if (!(exportName in left.getBindingIdentifiers())) return; - if (!left.isIdentifier()) { - throw left.buildCodeFrameError("Only simple assignments to exports are allowed in helpers"); - } - const binding = child.scope.getBinding(exportName); - if (binding != null && binding.scope.path.isProgram()) { - exportBindingAssignments.push(makePath(child)); - } - } - }; - (0, _traverse.default)(file.ast, dependencyVisitor, file.scope); - (0, _traverse.default)(file.ast, referenceVisitor, file.scope); - if (!exportPath) throw new Error("Helpers must have a default export."); - exportBindingAssignments.reverse(); - return { - globals: Array.from(globals), - localBindingNames: Array.from(localBindingNames), - dependencies, - exportBindingAssignments, - exportPath, - exportName, - importBindingsReferences, - importPaths - }; -} -function permuteHelperAST(file, metadata, id, localBindings, getDependency) { - if (localBindings && !id) { - throw new Error("Unexpected local bindings for module-based helpers."); - } - if (!id) return; - const { - localBindingNames, - dependencies, - exportBindingAssignments, - exportPath, - exportName, - importBindingsReferences, - importPaths - } = metadata; - const dependenciesRefs = {}; - dependencies.forEach((name, id) => { - dependenciesRefs[id.name] = typeof getDependency === "function" && getDependency(name) || id; - }); - const toRename = {}; - const bindings = new Set(localBindings || []); - localBindingNames.forEach(name => { - let newName = name; - while (bindings.has(newName)) newName = "_" + newName; - if (newName !== name) toRename[name] = newName; - }); - if (id.type === "Identifier" && exportName !== id.name) { - toRename[exportName] = id.name; - } - const { - path - } = file; - const exp = path.get(exportPath); - const imps = importPaths.map(p => path.get(p)); - const impsBindingRefs = importBindingsReferences.map(p => path.get(p)); - const decl = exp.get("declaration"); - if (id.type === "Identifier") { - exp.replaceWith(decl); - } else if (id.type === "MemberExpression") { - exportBindingAssignments.forEach(assignPath => { - const assign = path.get(assignPath); - assign.replaceWith(assignmentExpression("=", id, assign.node)); - }); - exp.replaceWith(decl); - path.pushContainer("body", expressionStatement(assignmentExpression("=", id, identifier(exportName)))); - } else { - throw new Error("Unexpected helper format."); - } - Object.keys(toRename).forEach(name => { - path.scope.rename(name, toRename[name]); - }); - for (const path of imps) path.remove(); - for (const path of impsBindingRefs) { - const node = cloneNode(dependenciesRefs[path.node.name]); - path.replaceWith(node); - } -} -const helperData = Object.create(null); -function loadHelper(name) { - if (!helperData[name]) { - const helper = _helpers.default[name]; - if (!helper) { - throw Object.assign(new ReferenceError(`Unknown helper ${name}`), { - code: "BABEL_HELPER_UNKNOWN", - helper: name - }); - } - const fn = () => { - { - if (!FileClass) { - const fakeFile = { - ast: file(helper.ast()), - path: null - }; - (0, _traverse.default)(fakeFile.ast, { - Program: path => (fakeFile.path = path).stop() - }); - return fakeFile; - } - } - return new FileClass({ - filename: `babel-helper://${name}` - }, { - ast: file(helper.ast()), - code: "[internal Babel helper code]", - inputMap: null - }); - }; - let metadata = null; - helperData[name] = { - minVersion: helper.minVersion, - build(getDependency, id, localBindings) { - const file = fn(); - metadata || (metadata = getHelperMetadata(file)); - permuteHelperAST(file, metadata, id, localBindings, getDependency); - return { - nodes: file.ast.program.body, - globals: metadata.globals - }; - }, - getDependencies() { - metadata || (metadata = getHelperMetadata(fn())); - return Array.from(metadata.dependencies.values()); - } - }; - } - return helperData[name]; -} -function get(name, getDependency, id, localBindings) { - return loadHelper(name).build(getDependency, id, localBindings); -} -function minVersion(name) { - return loadHelper(name).minVersion; -} -function getDependencies(name) { - return loadHelper(name).getDependencies(); -} -function ensure(name, newFileClass) { - FileClass || (FileClass = newFileClass); - loadHelper(name); -} -const list = Object.keys(_helpers.default).map(name => name.replace(/^_/, "")); -exports.list = list; -var _default = get; -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 32326: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = highlight; -exports.getChalk = getChalk; -exports.shouldHighlight = shouldHighlight; -var _jsTokens = __nccwpck_require__(58629); -var _helperValidatorIdentifier = __nccwpck_require__(21974); -var _chalk = __nccwpck_require__(56673); -const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]); -function getDefs(chalk) { - return { - keyword: chalk.cyan, - capitalized: chalk.yellow, - jsxIdentifier: chalk.yellow, - punctuator: chalk.yellow, - number: chalk.magenta, - string: chalk.green, - regex: chalk.magenta, - comment: chalk.grey, - invalid: chalk.white.bgRed.bold - }; -} -const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; -const BRACKET = /^[()[\]{}]$/; -let tokenize; -{ - const JSX_TAG = /^[a-z][\w-]*$/i; - const getTokenType = function (token, offset, text) { - if (token.type === "name") { - if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, true) || sometimesKeywords.has(token.value)) { - return "keyword"; - } - if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) == " colorize(str)).join("\n"); - } else { - highlighted += value; - } - } - return highlighted; -} -function shouldHighlight(options) { - return !!_chalk.supportsColor || options.forceColor; -} -function getChalk(options) { - return options.forceColor ? new _chalk.constructor({ - enabled: true, - level: 1 - }) : _chalk; -} -function highlight(code, options = {}) { - if (code !== "" && shouldHighlight(options)) { - const chalk = getChalk(options); - const defs = getDefs(chalk); - return highlightTokens(defs, code); - } else { - return code; - } -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 66003: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} - -class Position { - constructor(line, col, index) { - this.line = void 0; - this.column = void 0; - this.index = void 0; - this.line = line; - this.column = col; - this.index = index; - } -} -class SourceLocation { - constructor(start, end) { - this.start = void 0; - this.end = void 0; - this.filename = void 0; - this.identifierName = void 0; - this.start = start; - this.end = end; - } -} -function createPositionWithColumnOffset(position, columnOffset) { - const { - line, - column, - index - } = position; - return new Position(line, column + columnOffset, index + columnOffset); -} - -var ParseErrorCode = { - SyntaxError: "BABEL_PARSER_SYNTAX_ERROR", - SourceTypeModuleError: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED" -}; -const reflect = (keys, last = keys.length - 1) => ({ - get() { - return keys.reduce((object, key) => object[key], this); - }, - set(value) { - keys.reduce((item, key, i) => i === last ? item[key] = value : item[key], this); - } -}); -const instantiate = (constructor, properties, descriptors) => Object.keys(descriptors).map(key => [key, descriptors[key]]).filter(([, descriptor]) => !!descriptor).map(([key, descriptor]) => [key, typeof descriptor === "function" ? { - value: descriptor, - enumerable: false -} : typeof descriptor.reflect === "string" ? Object.assign({}, descriptor, reflect(descriptor.reflect.split("."))) : descriptor]).reduce((instance, [key, descriptor]) => Object.defineProperty(instance, key, Object.assign({ - configurable: true -}, descriptor)), Object.assign(new constructor(), properties)); - -var ModuleErrors = { - ImportMetaOutsideModule: { - message: `import.meta may appear only with 'sourceType: "module"'`, - code: ParseErrorCode.SourceTypeModuleError - }, - ImportOutsideModule: { - message: `'import' and 'export' may appear only with 'sourceType: "module"'`, - code: ParseErrorCode.SourceTypeModuleError - } -}; - -const NodeDescriptions = { - ArrayPattern: "array destructuring pattern", - AssignmentExpression: "assignment expression", - AssignmentPattern: "assignment expression", - ArrowFunctionExpression: "arrow function expression", - ConditionalExpression: "conditional expression", - CatchClause: "catch clause", - ForOfStatement: "for-of statement", - ForInStatement: "for-in statement", - ForStatement: "for-loop", - FormalParameters: "function parameter list", - Identifier: "identifier", - ImportSpecifier: "import specifier", - ImportDefaultSpecifier: "import default specifier", - ImportNamespaceSpecifier: "import namespace specifier", - ObjectPattern: "object destructuring pattern", - ParenthesizedExpression: "parenthesized expression", - RestElement: "rest element", - UpdateExpression: { - true: "prefix operation", - false: "postfix operation" - }, - VariableDeclarator: "variable declaration", - YieldExpression: "yield expression" -}; -const toNodeDescription = ({ - type, - prefix -}) => type === "UpdateExpression" ? NodeDescriptions.UpdateExpression[String(prefix)] : NodeDescriptions[type]; - -var StandardErrors = { - AccessorIsGenerator: ({ - kind - }) => `A ${kind}ter cannot be a generator.`, - ArgumentsInClass: "'arguments' is only allowed in functions and class methods.", - AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.", - AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.", - AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.", - AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.", - AwaitInUsingBinding: "'await' is not allowed to be used as a name in 'using' declarations.", - AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.", - AwaitNotInAsyncFunction: "'await' is only allowed within async functions.", - BadGetterArity: "A 'get' accessor must not have any formal parameters.", - BadSetterArity: "A 'set' accessor must have exactly one formal parameter.", - BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.", - ConstructorClassField: "Classes may not have a field named 'constructor'.", - ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.", - ConstructorIsAccessor: "Class constructor may not be an accessor.", - ConstructorIsAsync: "Constructor can't be an async function.", - ConstructorIsGenerator: "Constructor can't be a generator.", - DeclarationMissingInitializer: ({ - kind - }) => `Missing initializer in ${kind} declaration.`, - DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.", - DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.", - DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.", - DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?", - DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.", - DecoratorSemicolon: "Decorators must not be followed by a semicolon.", - DecoratorStaticBlock: "Decorators can't be used with a static block.", - DeletePrivateField: "Deleting a private field is not allowed.", - DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.", - DuplicateConstructor: "Duplicate constructor in the same class.", - DuplicateDefaultExport: "Only one default export allowed per module.", - DuplicateExport: ({ - exportName - }) => `\`${exportName}\` has already been exported. Exported identifiers must be unique.`, - DuplicateProto: "Redefinition of __proto__ property.", - DuplicateRegExpFlags: "Duplicate regular expression flag.", - ElementAfterRest: "Rest element must be last element.", - EscapedCharNotAnIdentifier: "Invalid Unicode escape.", - ExportBindingIsString: ({ - localName, - exportName - }) => `A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${localName}' as '${exportName}' } from 'some-module'\`?`, - ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.", - ForInOfLoopInitializer: ({ - type - }) => `'${type === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, - ForInUsing: "For-in loop may not start with 'using' declaration.", - ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.", - ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.", - GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.", - IllegalBreakContinue: ({ - type - }) => `Unsyntactic ${type === "BreakStatement" ? "break" : "continue"}.`, - IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.", - IllegalReturn: "'return' outside of function.", - ImportBindingIsString: ({ - importName - }) => `A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${importName}" as foo }\`?`, - ImportCallArgumentTrailingComma: "Trailing comma is disallowed inside import(...) arguments.", - ImportCallArity: ({ - maxArgumentCount - }) => `\`import()\` requires exactly ${maxArgumentCount === 1 ? "one argument" : "one or two arguments"}.`, - ImportCallNotNewExpression: "Cannot use new with import(...).", - ImportCallSpreadArgument: "`...` is not allowed in `import()`.", - ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.", - ImportReflectionHasAssertion: "`import module x` cannot have assertions.", - ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.', - IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.", - InvalidBigIntLiteral: "Invalid BigIntLiteral.", - InvalidCodePoint: "Code point out of bounds.", - InvalidCoverInitializedName: "Invalid shorthand property initializer.", - InvalidDecimal: "Invalid decimal.", - InvalidDigit: ({ - radix - }) => `Expected number in radix ${radix}.`, - InvalidEscapeSequence: "Bad character escape sequence.", - InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", - InvalidEscapedReservedWord: ({ - reservedWord - }) => `Escape sequence in keyword ${reservedWord}.`, - InvalidIdentifier: ({ - identifierName - }) => `Invalid identifier ${identifierName}.`, - InvalidLhs: ({ - ancestor - }) => `Invalid left-hand side in ${toNodeDescription(ancestor)}.`, - InvalidLhsBinding: ({ - ancestor - }) => `Binding invalid left-hand side in ${toNodeDescription(ancestor)}.`, - InvalidNumber: "Invalid number.", - InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", - InvalidOrUnexpectedToken: ({ - unexpected - }) => `Unexpected character '${unexpected}'.`, - InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", - InvalidPrivateFieldResolution: ({ - identifierName - }) => `Private name #${identifierName} is not defined.`, - InvalidPropertyBindingPattern: "Binding member expression.", - InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.", - InvalidRestAssignmentPattern: "Invalid rest operator's argument.", - LabelRedeclaration: ({ - labelName - }) => `Label '${labelName}' is already declared.`, - LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations.", - LineTerminatorBeforeArrow: "No line break is allowed before '=>'.", - MalformedRegExpFlags: "Invalid regular expression flag.", - MissingClassName: "A class name is required.", - MissingEqInAssignment: "Only '=' operator can be used for specifying default value.", - MissingSemicolon: "Missing semicolon.", - MissingPlugin: ({ - missingPlugin - }) => `This experimental syntax requires enabling the parser plugin: ${missingPlugin.map(name => JSON.stringify(name)).join(", ")}.`, - MissingOneOfPlugins: ({ - missingPlugin - }) => `This experimental syntax requires enabling one of the following parser plugin(s): ${missingPlugin.map(name => JSON.stringify(name)).join(", ")}.`, - MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.", - MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.", - ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.", - ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.", - ModuleAttributesWithDuplicateKeys: ({ - key - }) => `Duplicate key "${key}" is not allowed in module attributes.`, - ModuleExportNameHasLoneSurrogate: ({ - surrogateCharCode - }) => `An export name cannot include a lone surrogate, found '\\u${surrogateCharCode.toString(16)}'.`, - ModuleExportUndefined: ({ - localName - }) => `Export '${localName}' is not defined.`, - MultipleDefaultsInSwitch: "Multiple default clauses.", - NewlineAfterThrow: "Illegal newline after throw.", - NoCatchOrFinally: "Missing catch or finally clause.", - NumberIdentifier: "Identifier directly after number.", - NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.", - ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.", - OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.", - OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.", - OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.", - ParamDupe: "Argument name clash.", - PatternHasAccessor: "Object pattern can't contain getter or setter.", - PatternHasMethod: "Object pattern can't contain methods.", - PrivateInExpectedIn: ({ - identifierName - }) => `Private names are only allowed in property accesses (\`obj.#${identifierName}\`) or in \`in\` expressions (\`#${identifierName} in obj\`).`, - PrivateNameRedeclaration: ({ - identifierName - }) => `Duplicate private name #${identifierName}.`, - RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", - RecordNoProto: "'__proto__' is not allowed in Record expressions.", - RestTrailingComma: "Unexpected trailing comma after rest element.", - SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.", - SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.", - StaticPrototype: "Classes may not have static property named prototype.", - SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?", - SuperPrivateField: "Private fields can't be accessed on super.", - TrailingDecorator: "Decorators must be attached to a class element.", - TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", - UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.", - UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.', - UnexpectedDigitAfterHash: "Unexpected digit after hash token.", - UnexpectedImportExport: "'import' and 'export' may only appear at the top level.", - UnexpectedKeyword: ({ - keyword - }) => `Unexpected keyword '${keyword}'.`, - UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.", - UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.", - UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.", - UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.", - UnexpectedPrivateField: "Unexpected private name.", - UnexpectedReservedWord: ({ - reservedWord - }) => `Unexpected reserved word '${reservedWord}'.`, - UnexpectedSuper: "'super' is only allowed in object methods and classes.", - UnexpectedToken: ({ - expected, - unexpected - }) => `Unexpected token${unexpected ? ` '${unexpected}'.` : ""}${expected ? `, expected "${expected}"` : ""}`, - UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.", - UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script`.", - UnsupportedBind: "Binding should be performed on object property.", - UnsupportedDecoratorExport: "A decorated export must export a class declaration.", - UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.", - UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.", - UnsupportedMetaProperty: ({ - target, - onlyValidPropertyName - }) => `The only valid meta property for ${target} is ${target}.${onlyValidPropertyName}.`, - UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.", - UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.", - UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).", - UnterminatedComment: "Unterminated comment.", - UnterminatedRegExp: "Unterminated regular expression.", - UnterminatedString: "Unterminated string constant.", - UnterminatedTemplate: "Unterminated template.", - UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.", - VarRedeclaration: ({ - identifierName - }) => `Identifier '${identifierName}' has already been declared.`, - YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.", - YieldInParameter: "Yield expression is not allowed in formal parameters.", - ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0." -}; - -var StrictModeErrors = { - StrictDelete: "Deleting local variable in strict mode.", - StrictEvalArguments: ({ - referenceName - }) => `Assigning to '${referenceName}' in strict mode.`, - StrictEvalArgumentsBinding: ({ - bindingName - }) => `Binding '${bindingName}' in strict mode.`, - StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.", - StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.", - StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.", - StrictWith: "'with' in strict mode." -}; - -const UnparenthesizedPipeBodyDescriptions = new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]); -var PipelineOperatorErrors = { - PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.", - PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.', - PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.", - PipeTopicUnconfiguredToken: ({ - token - }) => `Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`, - PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.", - PipeUnparenthesizedBody: ({ - type - }) => `Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({ - type - })}; please wrap it in parentheses.`, - PipelineBodyNoArrow: 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.', - PipelineBodySequenceExpression: "Pipeline body may not be a comma-separated sequence expression.", - PipelineHeadSequenceExpression: "Pipeline head should not be a comma-separated sequence expression.", - PipelineTopicUnused: "Pipeline is in topic style but does not use topic reference.", - PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.", - PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.' -}; - -const _excluded$1 = ["toMessage"], - _excluded2$1 = ["message"]; -function toParseErrorConstructor(_ref) { - let { - toMessage - } = _ref, - properties = _objectWithoutPropertiesLoose(_ref, _excluded$1); - return function constructor({ - loc, - details - }) { - return instantiate(SyntaxError, Object.assign({}, properties, { - loc - }), { - clone(overrides = {}) { - const loc = overrides.loc || {}; - return constructor({ - loc: new Position("line" in loc ? loc.line : this.loc.line, "column" in loc ? loc.column : this.loc.column, "index" in loc ? loc.index : this.loc.index), - details: Object.assign({}, this.details, overrides.details) - }); - }, - details: { - value: details, - enumerable: false - }, - message: { - get() { - return `${toMessage(this.details)} (${this.loc.line}:${this.loc.column})`; - }, - set(value) { - Object.defineProperty(this, "message", { - value - }); - } - }, - pos: { - reflect: "loc.index", - enumerable: true - }, - missingPlugin: "missingPlugin" in details && { - reflect: "details.missingPlugin", - enumerable: true - } - }); - }; -} -function ParseErrorEnum(argument, syntaxPlugin) { - if (Array.isArray(argument)) { - return parseErrorTemplates => ParseErrorEnum(parseErrorTemplates, argument[0]); - } - const ParseErrorConstructors = {}; - for (const reasonCode of Object.keys(argument)) { - const template = argument[reasonCode]; - const _ref2 = typeof template === "string" ? { - message: () => template - } : typeof template === "function" ? { - message: template - } : template, - { - message - } = _ref2, - rest = _objectWithoutPropertiesLoose(_ref2, _excluded2$1); - const toMessage = typeof message === "string" ? () => message : message; - ParseErrorConstructors[reasonCode] = toParseErrorConstructor(Object.assign({ - code: ParseErrorCode.SyntaxError, - reasonCode, - toMessage - }, syntaxPlugin ? { - syntaxPlugin - } : {}, rest)); - } - return ParseErrorConstructors; -} -const Errors = Object.assign({}, ParseErrorEnum(ModuleErrors), ParseErrorEnum(StandardErrors), ParseErrorEnum(StrictModeErrors), ParseErrorEnum`pipelineOperator`(PipelineOperatorErrors)); - -const { - defineProperty -} = Object; -const toUnenumerable = (object, key) => defineProperty(object, key, { - enumerable: false, - value: object[key] -}); -function toESTreeLocation(node) { - node.loc.start && toUnenumerable(node.loc.start, "index"); - node.loc.end && toUnenumerable(node.loc.end, "index"); - return node; -} -var estree = (superClass => class ESTreeParserMixin extends superClass { - parse() { - const file = toESTreeLocation(super.parse()); - if (this.options.tokens) { - file.tokens = file.tokens.map(toESTreeLocation); - } - return file; - } - parseRegExpLiteral({ - pattern, - flags - }) { - let regex = null; - try { - regex = new RegExp(pattern, flags); - } catch (e) {} - const node = this.estreeParseLiteral(regex); - node.regex = { - pattern, - flags - }; - return node; - } - parseBigIntLiteral(value) { - let bigInt; - try { - bigInt = BigInt(value); - } catch (_unused) { - bigInt = null; - } - const node = this.estreeParseLiteral(bigInt); - node.bigint = String(node.value || value); - return node; - } - parseDecimalLiteral(value) { - const decimal = null; - const node = this.estreeParseLiteral(decimal); - node.decimal = String(node.value || value); - return node; - } - estreeParseLiteral(value) { - return this.parseLiteral(value, "Literal"); - } - parseStringLiteral(value) { - return this.estreeParseLiteral(value); - } - parseNumericLiteral(value) { - return this.estreeParseLiteral(value); - } - parseNullLiteral() { - return this.estreeParseLiteral(null); - } - parseBooleanLiteral(value) { - return this.estreeParseLiteral(value); - } - directiveToStmt(directive) { - const expression = directive.value; - delete directive.value; - expression.type = "Literal"; - expression.raw = expression.extra.raw; - expression.value = expression.extra.expressionValue; - const stmt = directive; - stmt.type = "ExpressionStatement"; - stmt.expression = expression; - stmt.directive = expression.extra.rawValue; - delete expression.extra; - return stmt; - } - initFunction(node, isAsync) { - super.initFunction(node, isAsync); - node.expression = false; - } - checkDeclaration(node) { - if (node != null && this.isObjectProperty(node)) { - this.checkDeclaration(node.value); - } else { - super.checkDeclaration(node); - } - } - getObjectOrClassMethodParams(method) { - return method.value.params; - } - isValidDirective(stmt) { - var _stmt$expression$extr; - return stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && typeof stmt.expression.value === "string" && !((_stmt$expression$extr = stmt.expression.extra) != null && _stmt$expression$extr.parenthesized); - } - parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) { - super.parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse); - const directiveStatements = node.directives.map(d => this.directiveToStmt(d)); - node.body = directiveStatements.concat(node.body); - delete node.directives; - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true); - if (method.typeParameters) { - method.value.typeParameters = method.typeParameters; - delete method.typeParameters; - } - classBody.body.push(method); - } - parsePrivateName() { - const node = super.parsePrivateName(); - { - if (!this.getPluginOption("estree", "classFeatures")) { - return node; - } - } - return this.convertPrivateNameToPrivateIdentifier(node); - } - convertPrivateNameToPrivateIdentifier(node) { - const name = super.getPrivateNameSV(node); - node = node; - delete node.id; - node.name = name; - node.type = "PrivateIdentifier"; - return node; - } - isPrivateName(node) { - { - if (!this.getPluginOption("estree", "classFeatures")) { - return super.isPrivateName(node); - } - } - return node.type === "PrivateIdentifier"; - } - getPrivateNameSV(node) { - { - if (!this.getPluginOption("estree", "classFeatures")) { - return super.getPrivateNameSV(node); - } - } - return node.name; - } - parseLiteral(value, type) { - const node = super.parseLiteral(value, type); - node.raw = node.extra.raw; - delete node.extra; - return node; - } - parseFunctionBody(node, allowExpression, isMethod = false) { - super.parseFunctionBody(node, allowExpression, isMethod); - node.expression = node.body.type !== "BlockStatement"; - } - parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) { - let funcNode = this.startNode(); - funcNode.kind = node.kind; - funcNode = super.parseMethod(funcNode, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope); - funcNode.type = "FunctionExpression"; - delete funcNode.kind; - node.value = funcNode; - if (type === "ClassPrivateMethod") { - node.computed = false; - } - return this.finishNode(node, "MethodDefinition"); - } - parseClassProperty(...args) { - const propertyNode = super.parseClassProperty(...args); - { - if (!this.getPluginOption("estree", "classFeatures")) { - return propertyNode; - } - } - propertyNode.type = "PropertyDefinition"; - return propertyNode; - } - parseClassPrivateProperty(...args) { - const propertyNode = super.parseClassPrivateProperty(...args); - { - if (!this.getPluginOption("estree", "classFeatures")) { - return propertyNode; - } - } - propertyNode.type = "PropertyDefinition"; - propertyNode.computed = false; - return propertyNode; - } - parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) { - const node = super.parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor); - if (node) { - node.type = "Property"; - if (node.kind === "method") { - node.kind = "init"; - } - node.shorthand = false; - } - return node; - } - parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors) { - const node = super.parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors); - if (node) { - node.kind = "init"; - node.type = "Property"; - } - return node; - } - isValidLVal(type, isUnparenthesizedInAssign, binding) { - return type === "Property" ? "value" : super.isValidLVal(type, isUnparenthesizedInAssign, binding); - } - isAssignable(node, isBinding) { - if (node != null && this.isObjectProperty(node)) { - return this.isAssignable(node.value, isBinding); - } - return super.isAssignable(node, isBinding); - } - toAssignable(node, isLHS = false) { - if (node != null && this.isObjectProperty(node)) { - const { - key, - value - } = node; - if (this.isPrivateName(key)) { - this.classScope.usePrivateName(this.getPrivateNameSV(key), key.loc.start); - } - this.toAssignable(value, isLHS); - } else { - super.toAssignable(node, isLHS); - } - } - toAssignableObjectExpressionProp(prop, isLast, isLHS) { - if (prop.kind === "get" || prop.kind === "set") { - this.raise(Errors.PatternHasAccessor, { - at: prop.key - }); - } else if (prop.method) { - this.raise(Errors.PatternHasMethod, { - at: prop.key - }); - } else { - super.toAssignableObjectExpressionProp(prop, isLast, isLHS); - } - } - finishCallExpression(unfinished, optional) { - const node = super.finishCallExpression(unfinished, optional); - if (node.callee.type === "Import") { - node.type = "ImportExpression"; - node.source = node.arguments[0]; - if (this.hasPlugin("importAssertions")) { - var _node$arguments$; - node.attributes = (_node$arguments$ = node.arguments[1]) != null ? _node$arguments$ : null; - } - delete node.arguments; - delete node.callee; - } - return node; - } - toReferencedArguments(node) { - if (node.type === "ImportExpression") { - return; - } - super.toReferencedArguments(node); - } - parseExport(unfinished, decorators) { - const exportStartLoc = this.state.lastTokStartLoc; - const node = super.parseExport(unfinished, decorators); - switch (node.type) { - case "ExportAllDeclaration": - node.exported = null; - break; - case "ExportNamedDeclaration": - if (node.specifiers.length === 1 && node.specifiers[0].type === "ExportNamespaceSpecifier") { - node.type = "ExportAllDeclaration"; - node.exported = node.specifiers[0].exported; - delete node.specifiers; - } - case "ExportDefaultDeclaration": - { - var _declaration$decorato; - const { - declaration - } = node; - if ((declaration == null ? void 0 : declaration.type) === "ClassDeclaration" && ((_declaration$decorato = declaration.decorators) == null ? void 0 : _declaration$decorato.length) > 0 && declaration.start === node.start) { - this.resetStartLocation(node, exportStartLoc); - } - } - break; - } - return node; - } - parseSubscript(base, startLoc, noCalls, state) { - const node = super.parseSubscript(base, startLoc, noCalls, state); - if (state.optionalChainMember) { - if (node.type === "OptionalMemberExpression" || node.type === "OptionalCallExpression") { - node.type = node.type.substring(8); - } - if (state.stop) { - const chain = this.startNodeAtNode(node); - chain.expression = node; - return this.finishNode(chain, "ChainExpression"); - } - } else if (node.type === "MemberExpression" || node.type === "CallExpression") { - node.optional = false; - } - return node; - } - hasPropertyAsPrivateName(node) { - if (node.type === "ChainExpression") { - node = node.expression; - } - return super.hasPropertyAsPrivateName(node); - } - isObjectProperty(node) { - return node.type === "Property" && node.kind === "init" && !node.method; - } - isObjectMethod(node) { - return node.method || node.kind === "get" || node.kind === "set"; - } - finishNodeAt(node, type, endLoc) { - return toESTreeLocation(super.finishNodeAt(node, type, endLoc)); - } - resetStartLocation(node, startLoc) { - super.resetStartLocation(node, startLoc); - toESTreeLocation(node); - } - resetEndLocation(node, endLoc = this.state.lastTokEndLoc) { - super.resetEndLocation(node, endLoc); - toESTreeLocation(node); - } -}); - -class TokContext { - constructor(token, preserveSpace) { - this.token = void 0; - this.preserveSpace = void 0; - this.token = token; - this.preserveSpace = !!preserveSpace; - } -} -const types = { - brace: new TokContext("{"), - j_oTag: new TokContext("...", true) -}; -{ - types.template = new TokContext("`", true); -} - -const beforeExpr = true; -const startsExpr = true; -const isLoop = true; -const isAssign = true; -const prefix = true; -const postfix = true; -class ExportedTokenType { - constructor(label, conf = {}) { - this.label = void 0; - this.keyword = void 0; - this.beforeExpr = void 0; - this.startsExpr = void 0; - this.rightAssociative = void 0; - this.isLoop = void 0; - this.isAssign = void 0; - this.prefix = void 0; - this.postfix = void 0; - this.binop = void 0; - this.label = label; - this.keyword = conf.keyword; - this.beforeExpr = !!conf.beforeExpr; - this.startsExpr = !!conf.startsExpr; - this.rightAssociative = !!conf.rightAssociative; - this.isLoop = !!conf.isLoop; - this.isAssign = !!conf.isAssign; - this.prefix = !!conf.prefix; - this.postfix = !!conf.postfix; - this.binop = conf.binop != null ? conf.binop : null; - { - this.updateContext = null; - } - } -} -const keywords$1 = new Map(); -function createKeyword(name, options = {}) { - options.keyword = name; - const token = createToken(name, options); - keywords$1.set(name, token); - return token; -} -function createBinop(name, binop) { - return createToken(name, { - beforeExpr, - binop - }); -} -let tokenTypeCounter = -1; -const tokenTypes = []; -const tokenLabels = []; -const tokenBinops = []; -const tokenBeforeExprs = []; -const tokenStartsExprs = []; -const tokenPrefixes = []; -function createToken(name, options = {}) { - var _options$binop, _options$beforeExpr, _options$startsExpr, _options$prefix; - ++tokenTypeCounter; - tokenLabels.push(name); - tokenBinops.push((_options$binop = options.binop) != null ? _options$binop : -1); - tokenBeforeExprs.push((_options$beforeExpr = options.beforeExpr) != null ? _options$beforeExpr : false); - tokenStartsExprs.push((_options$startsExpr = options.startsExpr) != null ? _options$startsExpr : false); - tokenPrefixes.push((_options$prefix = options.prefix) != null ? _options$prefix : false); - tokenTypes.push(new ExportedTokenType(name, options)); - return tokenTypeCounter; -} -function createKeywordLike(name, options = {}) { - var _options$binop2, _options$beforeExpr2, _options$startsExpr2, _options$prefix2; - ++tokenTypeCounter; - keywords$1.set(name, tokenTypeCounter); - tokenLabels.push(name); - tokenBinops.push((_options$binop2 = options.binop) != null ? _options$binop2 : -1); - tokenBeforeExprs.push((_options$beforeExpr2 = options.beforeExpr) != null ? _options$beforeExpr2 : false); - tokenStartsExprs.push((_options$startsExpr2 = options.startsExpr) != null ? _options$startsExpr2 : false); - tokenPrefixes.push((_options$prefix2 = options.prefix) != null ? _options$prefix2 : false); - tokenTypes.push(new ExportedTokenType("name", options)); - return tokenTypeCounter; -} -const tt = { - bracketL: createToken("[", { - beforeExpr, - startsExpr - }), - bracketHashL: createToken("#[", { - beforeExpr, - startsExpr - }), - bracketBarL: createToken("[|", { - beforeExpr, - startsExpr - }), - bracketR: createToken("]"), - bracketBarR: createToken("|]"), - braceL: createToken("{", { - beforeExpr, - startsExpr - }), - braceBarL: createToken("{|", { - beforeExpr, - startsExpr - }), - braceHashL: createToken("#{", { - beforeExpr, - startsExpr - }), - braceR: createToken("}"), - braceBarR: createToken("|}"), - parenL: createToken("(", { - beforeExpr, - startsExpr - }), - parenR: createToken(")"), - comma: createToken(",", { - beforeExpr - }), - semi: createToken(";", { - beforeExpr - }), - colon: createToken(":", { - beforeExpr - }), - doubleColon: createToken("::", { - beforeExpr - }), - dot: createToken("."), - question: createToken("?", { - beforeExpr - }), - questionDot: createToken("?."), - arrow: createToken("=>", { - beforeExpr - }), - template: createToken("template"), - ellipsis: createToken("...", { - beforeExpr - }), - backQuote: createToken("`", { - startsExpr - }), - dollarBraceL: createToken("${", { - beforeExpr, - startsExpr - }), - templateTail: createToken("...`", { - startsExpr - }), - templateNonTail: createToken("...${", { - beforeExpr, - startsExpr - }), - at: createToken("@"), - hash: createToken("#", { - startsExpr - }), - interpreterDirective: createToken("#!..."), - eq: createToken("=", { - beforeExpr, - isAssign - }), - assign: createToken("_=", { - beforeExpr, - isAssign - }), - slashAssign: createToken("_=", { - beforeExpr, - isAssign - }), - xorAssign: createToken("_=", { - beforeExpr, - isAssign - }), - moduloAssign: createToken("_=", { - beforeExpr, - isAssign - }), - incDec: createToken("++/--", { - prefix, - postfix, - startsExpr - }), - bang: createToken("!", { - beforeExpr, - prefix, - startsExpr - }), - tilde: createToken("~", { - beforeExpr, - prefix, - startsExpr - }), - doubleCaret: createToken("^^", { - startsExpr - }), - doubleAt: createToken("@@", { - startsExpr - }), - pipeline: createBinop("|>", 0), - nullishCoalescing: createBinop("??", 1), - logicalOR: createBinop("||", 1), - logicalAND: createBinop("&&", 2), - bitwiseOR: createBinop("|", 3), - bitwiseXOR: createBinop("^", 4), - bitwiseAND: createBinop("&", 5), - equality: createBinop("==/!=/===/!==", 6), - lt: createBinop("/<=/>=", 7), - gt: createBinop("/<=/>=", 7), - relational: createBinop("/<=/>=", 7), - bitShift: createBinop("<>/>>>", 8), - bitShiftL: createBinop("<>/>>>", 8), - bitShiftR: createBinop("<>/>>>", 8), - plusMin: createToken("+/-", { - beforeExpr, - binop: 9, - prefix, - startsExpr - }), - modulo: createToken("%", { - binop: 10, - startsExpr - }), - star: createToken("*", { - binop: 10 - }), - slash: createBinop("/", 10), - exponent: createToken("**", { - beforeExpr, - binop: 11, - rightAssociative: true - }), - _in: createKeyword("in", { - beforeExpr, - binop: 7 - }), - _instanceof: createKeyword("instanceof", { - beforeExpr, - binop: 7 - }), - _break: createKeyword("break"), - _case: createKeyword("case", { - beforeExpr - }), - _catch: createKeyword("catch"), - _continue: createKeyword("continue"), - _debugger: createKeyword("debugger"), - _default: createKeyword("default", { - beforeExpr - }), - _else: createKeyword("else", { - beforeExpr - }), - _finally: createKeyword("finally"), - _function: createKeyword("function", { - startsExpr - }), - _if: createKeyword("if"), - _return: createKeyword("return", { - beforeExpr - }), - _switch: createKeyword("switch"), - _throw: createKeyword("throw", { - beforeExpr, - prefix, - startsExpr - }), - _try: createKeyword("try"), - _var: createKeyword("var"), - _const: createKeyword("const"), - _with: createKeyword("with"), - _new: createKeyword("new", { - beforeExpr, - startsExpr - }), - _this: createKeyword("this", { - startsExpr - }), - _super: createKeyword("super", { - startsExpr - }), - _class: createKeyword("class", { - startsExpr - }), - _extends: createKeyword("extends", { - beforeExpr - }), - _export: createKeyword("export"), - _import: createKeyword("import", { - startsExpr - }), - _null: createKeyword("null", { - startsExpr - }), - _true: createKeyword("true", { - startsExpr - }), - _false: createKeyword("false", { - startsExpr - }), - _typeof: createKeyword("typeof", { - beforeExpr, - prefix, - startsExpr - }), - _void: createKeyword("void", { - beforeExpr, - prefix, - startsExpr - }), - _delete: createKeyword("delete", { - beforeExpr, - prefix, - startsExpr - }), - _do: createKeyword("do", { - isLoop, - beforeExpr - }), - _for: createKeyword("for", { - isLoop - }), - _while: createKeyword("while", { - isLoop - }), - _as: createKeywordLike("as", { - startsExpr - }), - _assert: createKeywordLike("assert", { - startsExpr - }), - _async: createKeywordLike("async", { - startsExpr - }), - _await: createKeywordLike("await", { - startsExpr - }), - _from: createKeywordLike("from", { - startsExpr - }), - _get: createKeywordLike("get", { - startsExpr - }), - _let: createKeywordLike("let", { - startsExpr - }), - _meta: createKeywordLike("meta", { - startsExpr - }), - _of: createKeywordLike("of", { - startsExpr - }), - _sent: createKeywordLike("sent", { - startsExpr - }), - _set: createKeywordLike("set", { - startsExpr - }), - _static: createKeywordLike("static", { - startsExpr - }), - _using: createKeywordLike("using", { - startsExpr - }), - _yield: createKeywordLike("yield", { - startsExpr - }), - _asserts: createKeywordLike("asserts", { - startsExpr - }), - _checks: createKeywordLike("checks", { - startsExpr - }), - _exports: createKeywordLike("exports", { - startsExpr - }), - _global: createKeywordLike("global", { - startsExpr - }), - _implements: createKeywordLike("implements", { - startsExpr - }), - _intrinsic: createKeywordLike("intrinsic", { - startsExpr - }), - _infer: createKeywordLike("infer", { - startsExpr - }), - _is: createKeywordLike("is", { - startsExpr - }), - _mixins: createKeywordLike("mixins", { - startsExpr - }), - _proto: createKeywordLike("proto", { - startsExpr - }), - _require: createKeywordLike("require", { - startsExpr - }), - _satisfies: createKeywordLike("satisfies", { - startsExpr - }), - _keyof: createKeywordLike("keyof", { - startsExpr - }), - _readonly: createKeywordLike("readonly", { - startsExpr - }), - _unique: createKeywordLike("unique", { - startsExpr - }), - _abstract: createKeywordLike("abstract", { - startsExpr - }), - _declare: createKeywordLike("declare", { - startsExpr - }), - _enum: createKeywordLike("enum", { - startsExpr - }), - _module: createKeywordLike("module", { - startsExpr - }), - _namespace: createKeywordLike("namespace", { - startsExpr - }), - _interface: createKeywordLike("interface", { - startsExpr - }), - _type: createKeywordLike("type", { - startsExpr - }), - _opaque: createKeywordLike("opaque", { - startsExpr - }), - name: createToken("name", { - startsExpr - }), - string: createToken("string", { - startsExpr - }), - num: createToken("num", { - startsExpr - }), - bigint: createToken("bigint", { - startsExpr - }), - decimal: createToken("decimal", { - startsExpr - }), - regexp: createToken("regexp", { - startsExpr - }), - privateName: createToken("#name", { - startsExpr - }), - eof: createToken("eof"), - jsxName: createToken("jsxName"), - jsxText: createToken("jsxText", { - beforeExpr: true - }), - jsxTagStart: createToken("jsxTagStart", { - startsExpr: true - }), - jsxTagEnd: createToken("jsxTagEnd"), - placeholder: createToken("%%", { - startsExpr: true - }) -}; -function tokenIsIdentifier(token) { - return token >= 93 && token <= 130; -} -function tokenKeywordOrIdentifierIsKeyword(token) { - return token <= 92; -} -function tokenIsKeywordOrIdentifier(token) { - return token >= 58 && token <= 130; -} -function tokenIsLiteralPropertyName(token) { - return token >= 58 && token <= 134; -} -function tokenComesBeforeExpression(token) { - return tokenBeforeExprs[token]; -} -function tokenCanStartExpression(token) { - return tokenStartsExprs[token]; -} -function tokenIsAssignment(token) { - return token >= 29 && token <= 33; -} -function tokenIsFlowInterfaceOrTypeOrOpaque(token) { - return token >= 127 && token <= 129; -} -function tokenIsLoop(token) { - return token >= 90 && token <= 92; -} -function tokenIsKeyword(token) { - return token >= 58 && token <= 92; -} -function tokenIsOperator(token) { - return token >= 39 && token <= 59; -} -function tokenIsPostfix(token) { - return token === 34; -} -function tokenIsPrefix(token) { - return tokenPrefixes[token]; -} -function tokenIsTSTypeOperator(token) { - return token >= 119 && token <= 121; -} -function tokenIsTSDeclarationStart(token) { - return token >= 122 && token <= 128; -} -function tokenLabelName(token) { - return tokenLabels[token]; -} -function tokenOperatorPrecedence(token) { - return tokenBinops[token]; -} -function tokenIsRightAssociative(token) { - return token === 57; -} -function tokenIsTemplate(token) { - return token >= 24 && token <= 25; -} -function getExportedToken(token) { - return tokenTypes[token]; -} -{ - tokenTypes[8].updateContext = context => { - context.pop(); - }; - tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = context => { - context.push(types.brace); - }; - tokenTypes[22].updateContext = context => { - if (context[context.length - 1] === types.template) { - context.pop(); - } else { - context.push(types.template); - } - }; - tokenTypes[140].updateContext = context => { - context.push(types.j_expr, types.j_oTag); - }; -} - -let nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; -let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f"; -const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); -const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); -nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; -const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191]; -const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; -function isInAstralSet(code, set) { - let pos = 0x10000; - for (let i = 0, length = set.length; i < length; i += 2) { - pos += set[i]; - if (pos > code) return false; - pos += set[i + 1]; - if (pos >= code) return true; - } - return false; -} -function isIdentifierStart(code) { - if (code < 65) return code === 36; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 0xffff) { - return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes); -} -function isIdentifierChar(code) { - if (code < 48) return code === 36; - if (code < 58) return true; - if (code < 65) return false; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 0xffff) { - return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); -} - -const reservedWords = { - keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], - strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], - strictBind: ["eval", "arguments"] -}; -const keywords = new Set(reservedWords.keyword); -const reservedWordsStrictSet = new Set(reservedWords.strict); -const reservedWordsStrictBindSet = new Set(reservedWords.strictBind); -function isReservedWord(word, inModule) { - return inModule && word === "await" || word === "enum"; -} -function isStrictReservedWord(word, inModule) { - return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); -} -function isStrictBindOnlyReservedWord(word) { - return reservedWordsStrictBindSet.has(word); -} -function isStrictBindReservedWord(word, inModule) { - return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); -} -function isKeyword(word) { - return keywords.has(word); -} - -function isIteratorStart(current, next, next2) { - return current === 64 && next === 64 && isIdentifierStart(next2); -} -const reservedWordLikeSet = new Set(["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete", "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "eval", "arguments", "enum", "await"]); -function canBeReservedWord(word) { - return reservedWordLikeSet.has(word); -} - -const SCOPE_OTHER = 0b000000000, - SCOPE_PROGRAM = 0b000000001, - SCOPE_FUNCTION = 0b000000010, - SCOPE_ARROW = 0b000000100, - SCOPE_SIMPLE_CATCH = 0b000001000, - SCOPE_SUPER = 0b000010000, - SCOPE_DIRECT_SUPER = 0b000100000, - SCOPE_CLASS = 0b001000000, - SCOPE_STATIC_BLOCK = 0b010000000, - SCOPE_TS_MODULE = 0b100000000, - SCOPE_VAR = SCOPE_PROGRAM | SCOPE_FUNCTION | SCOPE_STATIC_BLOCK | SCOPE_TS_MODULE; -const BIND_KIND_VALUE = 0b0000000000001, - BIND_KIND_TYPE = 0b0000000000010, - BIND_SCOPE_VAR = 0b0000000000100, - BIND_SCOPE_LEXICAL = 0b0000000001000, - BIND_SCOPE_FUNCTION = 0b0000000010000, - BIND_FLAGS_NONE = 0b00000001000000, - BIND_FLAGS_CLASS = 0b00000010000000, - BIND_FLAGS_TS_ENUM = 0b00000100000000, - BIND_FLAGS_TS_CONST_ENUM = 0b00001000000000, - BIND_FLAGS_TS_EXPORT_ONLY = 0b00010000000000, - BIND_FLAGS_FLOW_DECLARE_FN = 0b00100000000000, - BIND_FLAGS_TS_IMPORT = 0b01000000000000, - BIND_FLAGS_NO_LET_IN_LEXICAL = 0b10000000000000; -const BIND_CLASS = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_CLASS | BIND_FLAGS_NO_LET_IN_LEXICAL, - BIND_LEXICAL = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | BIND_FLAGS_NO_LET_IN_LEXICAL, - BIND_CATCH_PARAM = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | 0, - BIND_VAR = BIND_KIND_VALUE | 0 | BIND_SCOPE_VAR | 0, - BIND_FUNCTION = BIND_KIND_VALUE | 0 | BIND_SCOPE_FUNCTION | 0, - BIND_TS_INTERFACE = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_CLASS, - BIND_TS_TYPE = 0 | BIND_KIND_TYPE | 0 | 0, - BIND_TS_ENUM = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_TS_ENUM | BIND_FLAGS_NO_LET_IN_LEXICAL, - BIND_TS_AMBIENT = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY, - BIND_NONE = 0 | 0 | 0 | BIND_FLAGS_NONE, - BIND_OUTSIDE = BIND_KIND_VALUE | 0 | 0 | BIND_FLAGS_NONE, - BIND_TS_CONST_ENUM = BIND_TS_ENUM | BIND_FLAGS_TS_CONST_ENUM, - BIND_TS_NAMESPACE = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY, - BIND_TS_TYPE_IMPORT = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_TS_IMPORT, - BIND_FLOW_DECLARE_FN = BIND_FLAGS_FLOW_DECLARE_FN; -const CLASS_ELEMENT_FLAG_STATIC = 0b100, - CLASS_ELEMENT_KIND_GETTER = 0b010, - CLASS_ELEMENT_KIND_SETTER = 0b001, - CLASS_ELEMENT_KIND_ACCESSOR = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_KIND_SETTER; -const CLASS_ELEMENT_STATIC_GETTER = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_FLAG_STATIC, - CLASS_ELEMENT_STATIC_SETTER = CLASS_ELEMENT_KIND_SETTER | CLASS_ELEMENT_FLAG_STATIC, - CLASS_ELEMENT_INSTANCE_GETTER = CLASS_ELEMENT_KIND_GETTER, - CLASS_ELEMENT_INSTANCE_SETTER = CLASS_ELEMENT_KIND_SETTER, - CLASS_ELEMENT_OTHER = 0; - -class Scope { - constructor(flags) { - this.var = new Set(); - this.lexical = new Set(); - this.functions = new Set(); - this.flags = flags; - } -} -class ScopeHandler { - constructor(parser, inModule) { - this.parser = void 0; - this.scopeStack = []; - this.inModule = void 0; - this.undefinedExports = new Map(); - this.parser = parser; - this.inModule = inModule; - } - get inTopLevel() { - return (this.currentScope().flags & SCOPE_PROGRAM) > 0; - } - get inFunction() { - return (this.currentVarScopeFlags() & SCOPE_FUNCTION) > 0; - } - get allowSuper() { - return (this.currentThisScopeFlags() & SCOPE_SUPER) > 0; - } - get allowDirectSuper() { - return (this.currentThisScopeFlags() & SCOPE_DIRECT_SUPER) > 0; - } - get inClass() { - return (this.currentThisScopeFlags() & SCOPE_CLASS) > 0; - } - get inClassAndNotInNonArrowFunction() { - const flags = this.currentThisScopeFlags(); - return (flags & SCOPE_CLASS) > 0 && (flags & SCOPE_FUNCTION) === 0; - } - get inStaticBlock() { - for (let i = this.scopeStack.length - 1;; i--) { - const { - flags - } = this.scopeStack[i]; - if (flags & SCOPE_STATIC_BLOCK) { - return true; - } - if (flags & (SCOPE_VAR | SCOPE_CLASS)) { - return false; - } - } - } - get inNonArrowFunction() { - return (this.currentThisScopeFlags() & SCOPE_FUNCTION) > 0; - } - get treatFunctionsAsVar() { - return this.treatFunctionsAsVarInScope(this.currentScope()); - } - createScope(flags) { - return new Scope(flags); - } - enter(flags) { - this.scopeStack.push(this.createScope(flags)); - } - exit() { - const scope = this.scopeStack.pop(); - return scope.flags; - } - treatFunctionsAsVarInScope(scope) { - return !!(scope.flags & (SCOPE_FUNCTION | SCOPE_STATIC_BLOCK) || !this.parser.inModule && scope.flags & SCOPE_PROGRAM); - } - declareName(name, bindingType, loc) { - let scope = this.currentScope(); - if (bindingType & BIND_SCOPE_LEXICAL || bindingType & BIND_SCOPE_FUNCTION) { - this.checkRedeclarationInScope(scope, name, bindingType, loc); - if (bindingType & BIND_SCOPE_FUNCTION) { - scope.functions.add(name); - } else { - scope.lexical.add(name); - } - if (bindingType & BIND_SCOPE_LEXICAL) { - this.maybeExportDefined(scope, name); - } - } else if (bindingType & BIND_SCOPE_VAR) { - for (let i = this.scopeStack.length - 1; i >= 0; --i) { - scope = this.scopeStack[i]; - this.checkRedeclarationInScope(scope, name, bindingType, loc); - scope.var.add(name); - this.maybeExportDefined(scope, name); - if (scope.flags & SCOPE_VAR) break; - } - } - if (this.parser.inModule && scope.flags & SCOPE_PROGRAM) { - this.undefinedExports.delete(name); - } - } - maybeExportDefined(scope, name) { - if (this.parser.inModule && scope.flags & SCOPE_PROGRAM) { - this.undefinedExports.delete(name); - } - } - checkRedeclarationInScope(scope, name, bindingType, loc) { - if (this.isRedeclaredInScope(scope, name, bindingType)) { - this.parser.raise(Errors.VarRedeclaration, { - at: loc, - identifierName: name - }); - } - } - isRedeclaredInScope(scope, name, bindingType) { - if (!(bindingType & BIND_KIND_VALUE)) return false; - if (bindingType & BIND_SCOPE_LEXICAL) { - return scope.lexical.has(name) || scope.functions.has(name) || scope.var.has(name); - } - if (bindingType & BIND_SCOPE_FUNCTION) { - return scope.lexical.has(name) || !this.treatFunctionsAsVarInScope(scope) && scope.var.has(name); - } - return scope.lexical.has(name) && !(scope.flags & SCOPE_SIMPLE_CATCH && scope.lexical.values().next().value === name) || !this.treatFunctionsAsVarInScope(scope) && scope.functions.has(name); - } - checkLocalExport(id) { - const { - name - } = id; - const topLevelScope = this.scopeStack[0]; - if (!topLevelScope.lexical.has(name) && !topLevelScope.var.has(name) && !topLevelScope.functions.has(name)) { - this.undefinedExports.set(name, id.loc.start); - } - } - currentScope() { - return this.scopeStack[this.scopeStack.length - 1]; - } - currentVarScopeFlags() { - for (let i = this.scopeStack.length - 1;; i--) { - const { - flags - } = this.scopeStack[i]; - if (flags & SCOPE_VAR) { - return flags; - } - } - } - currentThisScopeFlags() { - for (let i = this.scopeStack.length - 1;; i--) { - const { - flags - } = this.scopeStack[i]; - if (flags & (SCOPE_VAR | SCOPE_CLASS) && !(flags & SCOPE_ARROW)) { - return flags; - } - } - } -} - -class FlowScope extends Scope { - constructor(...args) { - super(...args); - this.declareFunctions = new Set(); - } -} -class FlowScopeHandler extends ScopeHandler { - createScope(flags) { - return new FlowScope(flags); - } - declareName(name, bindingType, loc) { - const scope = this.currentScope(); - if (bindingType & BIND_FLAGS_FLOW_DECLARE_FN) { - this.checkRedeclarationInScope(scope, name, bindingType, loc); - this.maybeExportDefined(scope, name); - scope.declareFunctions.add(name); - return; - } - super.declareName(name, bindingType, loc); - } - isRedeclaredInScope(scope, name, bindingType) { - if (super.isRedeclaredInScope(scope, name, bindingType)) return true; - if (bindingType & BIND_FLAGS_FLOW_DECLARE_FN) { - return !scope.declareFunctions.has(name) && (scope.lexical.has(name) || scope.functions.has(name)); - } - return false; - } - checkLocalExport(id) { - if (!this.scopeStack[0].declareFunctions.has(id.name)) { - super.checkLocalExport(id); - } - } -} - -class BaseParser { - constructor() { - this.sawUnambiguousESM = false; - this.ambiguousScriptDifferentAst = false; - } - hasPlugin(pluginConfig) { - if (typeof pluginConfig === "string") { - return this.plugins.has(pluginConfig); - } else { - const [pluginName, pluginOptions] = pluginConfig; - if (!this.hasPlugin(pluginName)) { - return false; - } - const actualOptions = this.plugins.get(pluginName); - for (const key of Object.keys(pluginOptions)) { - if ((actualOptions == null ? void 0 : actualOptions[key]) !== pluginOptions[key]) { - return false; - } - } - return true; - } - } - getPluginOption(plugin, name) { - var _this$plugins$get; - return (_this$plugins$get = this.plugins.get(plugin)) == null ? void 0 : _this$plugins$get[name]; - } -} - -function setTrailingComments(node, comments) { - if (node.trailingComments === undefined) { - node.trailingComments = comments; - } else { - node.trailingComments.unshift(...comments); - } -} -function setLeadingComments(node, comments) { - if (node.leadingComments === undefined) { - node.leadingComments = comments; - } else { - node.leadingComments.unshift(...comments); - } -} -function setInnerComments(node, comments) { - if (node.innerComments === undefined) { - node.innerComments = comments; - } else { - node.innerComments.unshift(...comments); - } -} -function adjustInnerComments(node, elements, commentWS) { - let lastElement = null; - let i = elements.length; - while (lastElement === null && i > 0) { - lastElement = elements[--i]; - } - if (lastElement === null || lastElement.start > commentWS.start) { - setInnerComments(node, commentWS.comments); - } else { - setTrailingComments(lastElement, commentWS.comments); - } -} -class CommentsParser extends BaseParser { - addComment(comment) { - if (this.filename) comment.loc.filename = this.filename; - this.state.comments.push(comment); - } - processComment(node) { - const { - commentStack - } = this.state; - const commentStackLength = commentStack.length; - if (commentStackLength === 0) return; - let i = commentStackLength - 1; - const lastCommentWS = commentStack[i]; - if (lastCommentWS.start === node.end) { - lastCommentWS.leadingNode = node; - i--; - } - const { - start: nodeStart - } = node; - for (; i >= 0; i--) { - const commentWS = commentStack[i]; - const commentEnd = commentWS.end; - if (commentEnd > nodeStart) { - commentWS.containingNode = node; - this.finalizeComment(commentWS); - commentStack.splice(i, 1); - } else { - if (commentEnd === nodeStart) { - commentWS.trailingNode = node; - } - break; - } - } - } - finalizeComment(commentWS) { - const { - comments - } = commentWS; - if (commentWS.leadingNode !== null || commentWS.trailingNode !== null) { - if (commentWS.leadingNode !== null) { - setTrailingComments(commentWS.leadingNode, comments); - } - if (commentWS.trailingNode !== null) { - setLeadingComments(commentWS.trailingNode, comments); - } - } else { - const { - containingNode: node, - start: commentStart - } = commentWS; - if (this.input.charCodeAt(commentStart - 1) === 44) { - switch (node.type) { - case "ObjectExpression": - case "ObjectPattern": - case "RecordExpression": - adjustInnerComments(node, node.properties, commentWS); - break; - case "CallExpression": - case "OptionalCallExpression": - adjustInnerComments(node, node.arguments, commentWS); - break; - case "FunctionDeclaration": - case "FunctionExpression": - case "ArrowFunctionExpression": - case "ObjectMethod": - case "ClassMethod": - case "ClassPrivateMethod": - adjustInnerComments(node, node.params, commentWS); - break; - case "ArrayExpression": - case "ArrayPattern": - case "TupleExpression": - adjustInnerComments(node, node.elements, commentWS); - break; - case "ExportNamedDeclaration": - case "ImportDeclaration": - adjustInnerComments(node, node.specifiers, commentWS); - break; - default: - { - setInnerComments(node, comments); - } - } - } else { - setInnerComments(node, comments); - } - } - } - finalizeRemainingComments() { - const { - commentStack - } = this.state; - for (let i = commentStack.length - 1; i >= 0; i--) { - this.finalizeComment(commentStack[i]); - } - this.state.commentStack = []; - } - resetPreviousNodeTrailingComments(node) { - const { - commentStack - } = this.state; - const { - length - } = commentStack; - if (length === 0) return; - const commentWS = commentStack[length - 1]; - if (commentWS.leadingNode === node) { - commentWS.leadingNode = null; - } - } - takeSurroundingComments(node, start, end) { - const { - commentStack - } = this.state; - const commentStackLength = commentStack.length; - if (commentStackLength === 0) return; - let i = commentStackLength - 1; - for (; i >= 0; i--) { - const commentWS = commentStack[i]; - const commentEnd = commentWS.end; - const commentStart = commentWS.start; - if (commentStart === end) { - commentWS.leadingNode = node; - } else if (commentEnd === start) { - commentWS.trailingNode = node; - } else if (commentEnd < start) { - break; - } - } - } -} - -const lineBreak = /\r\n?|[\n\u2028\u2029]/; -const lineBreakG = new RegExp(lineBreak.source, "g"); -function isNewLine(code) { - switch (code) { - case 10: - case 13: - case 8232: - case 8233: - return true; - default: - return false; - } -} -const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; -const skipWhiteSpaceInLine = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y; -const skipWhiteSpaceToLineBreak = new RegExp("(?=(" + skipWhiteSpaceInLine.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"); -function isWhitespace(code) { - switch (code) { - case 0x0009: - case 0x000b: - case 0x000c: - case 32: - case 160: - case 5760: - case 0x2000: - case 0x2001: - case 0x2002: - case 0x2003: - case 0x2004: - case 0x2005: - case 0x2006: - case 0x2007: - case 0x2008: - case 0x2009: - case 0x200a: - case 0x202f: - case 0x205f: - case 0x3000: - case 0xfeff: - return true; - default: - return false; - } -} - -class State { - constructor() { - this.strict = void 0; - this.curLine = void 0; - this.lineStart = void 0; - this.startLoc = void 0; - this.endLoc = void 0; - this.errors = []; - this.potentialArrowAt = -1; - this.noArrowAt = []; - this.noArrowParamsConversionAt = []; - this.maybeInArrowParameters = false; - this.inType = false; - this.noAnonFunctionType = false; - this.hasFlowComment = false; - this.isAmbientContext = false; - this.inAbstractClass = false; - this.inDisallowConditionalTypesContext = false; - this.topicContext = { - maxNumOfResolvableTopics: 0, - maxTopicIndex: null - }; - this.soloAwait = false; - this.inFSharpPipelineDirectBody = false; - this.labels = []; - this.comments = []; - this.commentStack = []; - this.pos = 0; - this.type = 137; - this.value = null; - this.start = 0; - this.end = 0; - this.lastTokEndLoc = null; - this.lastTokStartLoc = null; - this.lastTokStart = 0; - this.context = [types.brace]; - this.canStartJSXElement = true; - this.containsEsc = false; - this.firstInvalidTemplateEscapePos = null; - this.strictErrors = new Map(); - this.tokensLength = 0; - } - init({ - strictMode, - sourceType, - startLine, - startColumn - }) { - this.strict = strictMode === false ? false : strictMode === true ? true : sourceType === "module"; - this.curLine = startLine; - this.lineStart = -startColumn; - this.startLoc = this.endLoc = new Position(startLine, startColumn, 0); - } - curPosition() { - return new Position(this.curLine, this.pos - this.lineStart, this.pos); - } - clone(skipArrays) { - const state = new State(); - const keys = Object.keys(this); - for (let i = 0, length = keys.length; i < length; i++) { - const key = keys[i]; - let val = this[key]; - if (!skipArrays && Array.isArray(val)) { - val = val.slice(); - } - state[key] = val; - } - return state; - } -} - -var _isDigit = function isDigit(code) { - return code >= 48 && code <= 57; -}; -const forbiddenNumericSeparatorSiblings = { - decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]), - hex: new Set([46, 88, 95, 120]) -}; -const isAllowedNumericSeparatorSibling = { - bin: ch => ch === 48 || ch === 49, - oct: ch => ch >= 48 && ch <= 55, - dec: ch => ch >= 48 && ch <= 57, - hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102 -}; -function readStringContents(type, input, pos, lineStart, curLine, errors) { - const initialPos = pos; - const initialLineStart = lineStart; - const initialCurLine = curLine; - let out = ""; - let firstInvalidLoc = null; - let chunkStart = pos; - const { - length - } = input; - for (;;) { - if (pos >= length) { - errors.unterminated(initialPos, initialLineStart, initialCurLine); - out += input.slice(chunkStart, pos); - break; - } - const ch = input.charCodeAt(pos); - if (isStringEnd(type, ch, input, pos)) { - out += input.slice(chunkStart, pos); - break; - } - if (ch === 92) { - out += input.slice(chunkStart, pos); - const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors); - if (res.ch === null && !firstInvalidLoc) { - firstInvalidLoc = { - pos, - lineStart, - curLine - }; - } else { - out += res.ch; - } - ({ - pos, - lineStart, - curLine - } = res); - chunkStart = pos; - } else if (ch === 8232 || ch === 8233) { - ++pos; - ++curLine; - lineStart = pos; - } else if (ch === 10 || ch === 13) { - if (type === "template") { - out += input.slice(chunkStart, pos) + "\n"; - ++pos; - if (ch === 13 && input.charCodeAt(pos) === 10) { - ++pos; - } - ++curLine; - chunkStart = lineStart = pos; - } else { - errors.unterminated(initialPos, initialLineStart, initialCurLine); - } - } else { - ++pos; - } - } - return { - pos, - str: out, - firstInvalidLoc, - lineStart, - curLine, - containsInvalid: !!firstInvalidLoc - }; -} -function isStringEnd(type, ch, input, pos) { - if (type === "template") { - return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123; - } - return ch === (type === "double" ? 34 : 39); -} -function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) { - const throwOnInvalid = !inTemplate; - pos++; - const res = ch => ({ - pos, - ch, - lineStart, - curLine - }); - const ch = input.charCodeAt(pos++); - switch (ch) { - case 110: - return res("\n"); - case 114: - return res("\r"); - case 120: - { - let code; - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors)); - return res(code === null ? null : String.fromCharCode(code)); - } - case 117: - { - let code; - ({ - code, - pos - } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors)); - return res(code === null ? null : String.fromCodePoint(code)); - } - case 116: - return res("\t"); - case 98: - return res("\b"); - case 118: - return res("\u000b"); - case 102: - return res("\f"); - case 13: - if (input.charCodeAt(pos) === 10) { - ++pos; - } - case 10: - lineStart = pos; - ++curLine; - case 8232: - case 8233: - return res(""); - case 56: - case 57: - if (inTemplate) { - return res(null); - } else { - errors.strictNumericEscape(pos - 1, lineStart, curLine); - } - default: - if (ch >= 48 && ch <= 55) { - const startPos = pos - 1; - const match = input.slice(startPos, pos + 2).match(/^[0-7]+/); - let octalStr = match[0]; - let octal = parseInt(octalStr, 8); - if (octal > 255) { - octalStr = octalStr.slice(0, -1); - octal = parseInt(octalStr, 8); - } - pos += octalStr.length - 1; - const next = input.charCodeAt(pos); - if (octalStr !== "0" || next === 56 || next === 57) { - if (inTemplate) { - return res(null); - } else { - errors.strictNumericEscape(startPos, lineStart, curLine); - } - } - return res(String.fromCharCode(octal)); - } - return res(String.fromCharCode(ch)); - } -} -function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) { - const initialPos = pos; - let n; - ({ - n, - pos - } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid)); - if (n === null) { - if (throwOnInvalid) { - errors.invalidEscapeSequence(initialPos, lineStart, curLine); - } else { - pos = initialPos - 1; - } - } - return { - code: n, - pos - }; -} -function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) { - const start = pos; - const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct; - const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin; - let invalid = false; - let total = 0; - for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) { - const code = input.charCodeAt(pos); - let val; - if (code === 95 && allowNumSeparator !== "bail") { - const prev = input.charCodeAt(pos - 1); - const next = input.charCodeAt(pos + 1); - if (!allowNumSeparator) { - if (bailOnError) return { - n: null, - pos - }; - errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine); - } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) { - if (bailOnError) return { - n: null, - pos - }; - errors.unexpectedNumericSeparator(pos, lineStart, curLine); - } - ++pos; - continue; - } - if (code >= 97) { - val = code - 97 + 10; - } else if (code >= 65) { - val = code - 65 + 10; - } else if (_isDigit(code)) { - val = code - 48; - } else { - val = Infinity; - } - if (val >= radix) { - if (val <= 9 && bailOnError) { - return { - n: null, - pos - }; - } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) { - val = 0; - } else if (forceLen) { - val = 0; - invalid = true; - } else { - break; - } - } - ++pos; - total = total * radix + val; - } - if (pos === start || len != null && pos - start !== len || invalid) { - return { - n: null, - pos - }; - } - return { - n: total, - pos - }; -} -function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) { - const ch = input.charCodeAt(pos); - let code; - if (ch === 123) { - ++pos; - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors)); - ++pos; - if (code !== null && code > 0x10ffff) { - if (throwOnInvalid) { - errors.invalidCodePoint(pos, lineStart, curLine); - } else { - return { - code: null, - pos - }; - } - } - } else { - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors)); - } - return { - code, - pos - }; -} - -const _excluded = ["at"], - _excluded2 = ["at"]; -function buildPosition(pos, lineStart, curLine) { - return new Position(curLine, pos - lineStart, pos); -} -const VALID_REGEX_FLAGS = new Set([103, 109, 115, 105, 121, 117, 100, 118]); -class Token { - constructor(state) { - this.type = state.type; - this.value = state.value; - this.start = state.start; - this.end = state.end; - this.loc = new SourceLocation(state.startLoc, state.endLoc); - } -} -class Tokenizer extends CommentsParser { - constructor(options, input) { - super(); - this.isLookahead = void 0; - this.tokens = []; - this.errorHandlers_readInt = { - invalidDigit: (pos, lineStart, curLine, radix) => { - if (!this.options.errorRecovery) return false; - this.raise(Errors.InvalidDigit, { - at: buildPosition(pos, lineStart, curLine), - radix - }); - return true; - }, - numericSeparatorInEscapeSequence: this.errorBuilder(Errors.NumericSeparatorInEscapeSequence), - unexpectedNumericSeparator: this.errorBuilder(Errors.UnexpectedNumericSeparator) - }; - this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { - invalidEscapeSequence: this.errorBuilder(Errors.InvalidEscapeSequence), - invalidCodePoint: this.errorBuilder(Errors.InvalidCodePoint) - }); - this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { - strictNumericEscape: (pos, lineStart, curLine) => { - this.recordStrictModeErrors(Errors.StrictNumericEscape, { - at: buildPosition(pos, lineStart, curLine) - }); - }, - unterminated: (pos, lineStart, curLine) => { - throw this.raise(Errors.UnterminatedString, { - at: buildPosition(pos - 1, lineStart, curLine) - }); - } - }); - this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { - strictNumericEscape: this.errorBuilder(Errors.StrictNumericEscape), - unterminated: (pos, lineStart, curLine) => { - throw this.raise(Errors.UnterminatedTemplate, { - at: buildPosition(pos, lineStart, curLine) - }); - } - }); - this.state = new State(); - this.state.init(options); - this.input = input; - this.length = input.length; - this.isLookahead = false; - } - pushToken(token) { - this.tokens.length = this.state.tokensLength; - this.tokens.push(token); - ++this.state.tokensLength; - } - next() { - this.checkKeywordEscapes(); - if (this.options.tokens) { - this.pushToken(new Token(this.state)); - } - this.state.lastTokStart = this.state.start; - this.state.lastTokEndLoc = this.state.endLoc; - this.state.lastTokStartLoc = this.state.startLoc; - this.nextToken(); - } - eat(type) { - if (this.match(type)) { - this.next(); - return true; - } else { - return false; - } - } - match(type) { - return this.state.type === type; - } - createLookaheadState(state) { - return { - pos: state.pos, - value: null, - type: state.type, - start: state.start, - end: state.end, - context: [this.curContext()], - inType: state.inType, - startLoc: state.startLoc, - lastTokEndLoc: state.lastTokEndLoc, - curLine: state.curLine, - lineStart: state.lineStart, - curPosition: state.curPosition - }; - } - lookahead() { - const old = this.state; - this.state = this.createLookaheadState(old); - this.isLookahead = true; - this.nextToken(); - this.isLookahead = false; - const curr = this.state; - this.state = old; - return curr; - } - nextTokenStart() { - return this.nextTokenStartSince(this.state.pos); - } - nextTokenStartSince(pos) { - skipWhiteSpace.lastIndex = pos; - return skipWhiteSpace.test(this.input) ? skipWhiteSpace.lastIndex : pos; - } - lookaheadCharCode() { - return this.input.charCodeAt(this.nextTokenStart()); - } - codePointAtPos(pos) { - let cp = this.input.charCodeAt(pos); - if ((cp & 0xfc00) === 0xd800 && ++pos < this.input.length) { - const trail = this.input.charCodeAt(pos); - if ((trail & 0xfc00) === 0xdc00) { - cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff); - } - } - return cp; - } - setStrict(strict) { - this.state.strict = strict; - if (strict) { - this.state.strictErrors.forEach(([toParseError, at]) => this.raise(toParseError, { - at - })); - this.state.strictErrors.clear(); - } - } - curContext() { - return this.state.context[this.state.context.length - 1]; - } - nextToken() { - this.skipSpace(); - this.state.start = this.state.pos; - if (!this.isLookahead) this.state.startLoc = this.state.curPosition(); - if (this.state.pos >= this.length) { - this.finishToken(137); - return; - } - this.getTokenFromCode(this.codePointAtPos(this.state.pos)); - } - skipBlockComment(commentEnd) { - let startLoc; - if (!this.isLookahead) startLoc = this.state.curPosition(); - const start = this.state.pos; - const end = this.input.indexOf(commentEnd, start + 2); - if (end === -1) { - throw this.raise(Errors.UnterminatedComment, { - at: this.state.curPosition() - }); - } - this.state.pos = end + commentEnd.length; - lineBreakG.lastIndex = start + 2; - while (lineBreakG.test(this.input) && lineBreakG.lastIndex <= end) { - ++this.state.curLine; - this.state.lineStart = lineBreakG.lastIndex; - } - if (this.isLookahead) return; - const comment = { - type: "CommentBlock", - value: this.input.slice(start + 2, end), - start, - end: end + commentEnd.length, - loc: new SourceLocation(startLoc, this.state.curPosition()) - }; - if (this.options.tokens) this.pushToken(comment); - return comment; - } - skipLineComment(startSkip) { - const start = this.state.pos; - let startLoc; - if (!this.isLookahead) startLoc = this.state.curPosition(); - let ch = this.input.charCodeAt(this.state.pos += startSkip); - if (this.state.pos < this.length) { - while (!isNewLine(ch) && ++this.state.pos < this.length) { - ch = this.input.charCodeAt(this.state.pos); - } - } - if (this.isLookahead) return; - const end = this.state.pos; - const value = this.input.slice(start + startSkip, end); - const comment = { - type: "CommentLine", - value, - start, - end, - loc: new SourceLocation(startLoc, this.state.curPosition()) - }; - if (this.options.tokens) this.pushToken(comment); - return comment; - } - skipSpace() { - const spaceStart = this.state.pos; - const comments = []; - loop: while (this.state.pos < this.length) { - const ch = this.input.charCodeAt(this.state.pos); - switch (ch) { - case 32: - case 160: - case 9: - ++this.state.pos; - break; - case 13: - if (this.input.charCodeAt(this.state.pos + 1) === 10) { - ++this.state.pos; - } - case 10: - case 8232: - case 8233: - ++this.state.pos; - ++this.state.curLine; - this.state.lineStart = this.state.pos; - break; - case 47: - switch (this.input.charCodeAt(this.state.pos + 1)) { - case 42: - { - const comment = this.skipBlockComment("*/"); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - break; - } - case 47: - { - const comment = this.skipLineComment(2); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - break; - } - default: - break loop; - } - break; - default: - if (isWhitespace(ch)) { - ++this.state.pos; - } else if (ch === 45 && !this.inModule && this.options.annexB) { - const pos = this.state.pos; - if (this.input.charCodeAt(pos + 1) === 45 && this.input.charCodeAt(pos + 2) === 62 && (spaceStart === 0 || this.state.lineStart > spaceStart)) { - const comment = this.skipLineComment(3); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - } else { - break loop; - } - } else if (ch === 60 && !this.inModule && this.options.annexB) { - const pos = this.state.pos; - if (this.input.charCodeAt(pos + 1) === 33 && this.input.charCodeAt(pos + 2) === 45 && this.input.charCodeAt(pos + 3) === 45) { - const comment = this.skipLineComment(4); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - } else { - break loop; - } - } else { - break loop; - } - } - } - if (comments.length > 0) { - const end = this.state.pos; - const commentWhitespace = { - start: spaceStart, - end, - comments, - leadingNode: null, - trailingNode: null, - containingNode: null - }; - this.state.commentStack.push(commentWhitespace); - } - } - finishToken(type, val) { - this.state.end = this.state.pos; - this.state.endLoc = this.state.curPosition(); - const prevType = this.state.type; - this.state.type = type; - this.state.value = val; - if (!this.isLookahead) { - this.updateContext(prevType); - } - } - replaceToken(type) { - this.state.type = type; - this.updateContext(); - } - readToken_numberSign() { - if (this.state.pos === 0 && this.readToken_interpreter()) { - return; - } - const nextPos = this.state.pos + 1; - const next = this.codePointAtPos(nextPos); - if (next >= 48 && next <= 57) { - throw this.raise(Errors.UnexpectedDigitAfterHash, { - at: this.state.curPosition() - }); - } - if (next === 123 || next === 91 && this.hasPlugin("recordAndTuple")) { - this.expectPlugin("recordAndTuple"); - if (this.getPluginOption("recordAndTuple", "syntaxType") === "bar") { - throw this.raise(next === 123 ? Errors.RecordExpressionHashIncorrectStartSyntaxType : Errors.TupleExpressionHashIncorrectStartSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - if (next === 123) { - this.finishToken(7); - } else { - this.finishToken(1); - } - } else if (isIdentifierStart(next)) { - ++this.state.pos; - this.finishToken(136, this.readWord1(next)); - } else if (next === 92) { - ++this.state.pos; - this.finishToken(136, this.readWord1()); - } else { - this.finishOp(27, 1); - } - } - readToken_dot() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next >= 48 && next <= 57) { - this.readNumber(true); - return; - } - if (next === 46 && this.input.charCodeAt(this.state.pos + 2) === 46) { - this.state.pos += 3; - this.finishToken(21); - } else { - ++this.state.pos; - this.finishToken(16); - } - } - readToken_slash() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 61) { - this.finishOp(31, 2); - } else { - this.finishOp(56, 1); - } - } - readToken_interpreter() { - if (this.state.pos !== 0 || this.length < 2) return false; - let ch = this.input.charCodeAt(this.state.pos + 1); - if (ch !== 33) return false; - const start = this.state.pos; - this.state.pos += 1; - while (!isNewLine(ch) && ++this.state.pos < this.length) { - ch = this.input.charCodeAt(this.state.pos); - } - const value = this.input.slice(start + 2, this.state.pos); - this.finishToken(28, value); - return true; - } - readToken_mult_modulo(code) { - let type = code === 42 ? 55 : 54; - let width = 1; - let next = this.input.charCodeAt(this.state.pos + 1); - if (code === 42 && next === 42) { - width++; - next = this.input.charCodeAt(this.state.pos + 2); - type = 57; - } - if (next === 61 && !this.state.inType) { - width++; - type = code === 37 ? 33 : 30; - } - this.finishOp(type, width); - } - readToken_pipe_amp(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === code) { - if (this.input.charCodeAt(this.state.pos + 2) === 61) { - this.finishOp(30, 3); - } else { - this.finishOp(code === 124 ? 41 : 42, 2); - } - return; - } - if (code === 124) { - if (next === 62) { - this.finishOp(39, 2); - return; - } - if (this.hasPlugin("recordAndTuple") && next === 125) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(9); - return; - } - if (this.hasPlugin("recordAndTuple") && next === 93) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.TupleExpressionBarIncorrectEndSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(4); - return; - } - } - if (next === 61) { - this.finishOp(30, 2); - return; - } - this.finishOp(code === 124 ? 43 : 45, 1); - } - readToken_caret() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 61 && !this.state.inType) { - this.finishOp(32, 2); - } else if (next === 94 && this.hasPlugin(["pipelineOperator", { - proposal: "hack", - topicToken: "^^" - }])) { - this.finishOp(37, 2); - const lookaheadCh = this.input.codePointAt(this.state.pos); - if (lookaheadCh === 94) { - throw this.unexpected(); - } - } else { - this.finishOp(44, 1); - } - } - readToken_atSign() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 64 && this.hasPlugin(["pipelineOperator", { - proposal: "hack", - topicToken: "@@" - }])) { - this.finishOp(38, 2); - } else { - this.finishOp(26, 1); - } - } - readToken_plus_min(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === code) { - this.finishOp(34, 2); - return; - } - if (next === 61) { - this.finishOp(30, 2); - } else { - this.finishOp(53, 1); - } - } - readToken_lt() { - const { - pos - } = this.state; - const next = this.input.charCodeAt(pos + 1); - if (next === 60) { - if (this.input.charCodeAt(pos + 2) === 61) { - this.finishOp(30, 3); - return; - } - this.finishOp(51, 2); - return; - } - if (next === 61) { - this.finishOp(49, 2); - return; - } - this.finishOp(47, 1); - } - readToken_gt() { - const { - pos - } = this.state; - const next = this.input.charCodeAt(pos + 1); - if (next === 62) { - const size = this.input.charCodeAt(pos + 2) === 62 ? 3 : 2; - if (this.input.charCodeAt(pos + size) === 61) { - this.finishOp(30, size + 1); - return; - } - this.finishOp(52, size); - return; - } - if (next === 61) { - this.finishOp(49, 2); - return; - } - this.finishOp(48, 1); - } - readToken_eq_excl(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 61) { - this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2); - return; - } - if (code === 61 && next === 62) { - this.state.pos += 2; - this.finishToken(19); - return; - } - this.finishOp(code === 61 ? 29 : 35, 1); - } - readToken_question() { - const next = this.input.charCodeAt(this.state.pos + 1); - const next2 = this.input.charCodeAt(this.state.pos + 2); - if (next === 63) { - if (next2 === 61) { - this.finishOp(30, 3); - } else { - this.finishOp(40, 2); - } - } else if (next === 46 && !(next2 >= 48 && next2 <= 57)) { - this.state.pos += 2; - this.finishToken(18); - } else { - ++this.state.pos; - this.finishToken(17); - } - } - getTokenFromCode(code) { - switch (code) { - case 46: - this.readToken_dot(); - return; - case 40: - ++this.state.pos; - this.finishToken(10); - return; - case 41: - ++this.state.pos; - this.finishToken(11); - return; - case 59: - ++this.state.pos; - this.finishToken(13); - return; - case 44: - ++this.state.pos; - this.finishToken(12); - return; - case 91: - if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.TupleExpressionBarIncorrectStartSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(2); - } else { - ++this.state.pos; - this.finishToken(0); - } - return; - case 93: - ++this.state.pos; - this.finishToken(3); - return; - case 123: - if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.RecordExpressionBarIncorrectStartSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(6); - } else { - ++this.state.pos; - this.finishToken(5); - } - return; - case 125: - ++this.state.pos; - this.finishToken(8); - return; - case 58: - if (this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58) { - this.finishOp(15, 2); - } else { - ++this.state.pos; - this.finishToken(14); - } - return; - case 63: - this.readToken_question(); - return; - case 96: - this.readTemplateToken(); - return; - case 48: - { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 120 || next === 88) { - this.readRadixNumber(16); - return; - } - if (next === 111 || next === 79) { - this.readRadixNumber(8); - return; - } - if (next === 98 || next === 66) { - this.readRadixNumber(2); - return; - } - } - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: - this.readNumber(false); - return; - case 34: - case 39: - this.readString(code); - return; - case 47: - this.readToken_slash(); - return; - case 37: - case 42: - this.readToken_mult_modulo(code); - return; - case 124: - case 38: - this.readToken_pipe_amp(code); - return; - case 94: - this.readToken_caret(); - return; - case 43: - case 45: - this.readToken_plus_min(code); - return; - case 60: - this.readToken_lt(); - return; - case 62: - this.readToken_gt(); - return; - case 61: - case 33: - this.readToken_eq_excl(code); - return; - case 126: - this.finishOp(36, 1); - return; - case 64: - this.readToken_atSign(); - return; - case 35: - this.readToken_numberSign(); - return; - case 92: - this.readWord(); - return; - default: - if (isIdentifierStart(code)) { - this.readWord(code); - return; - } - } - throw this.raise(Errors.InvalidOrUnexpectedToken, { - at: this.state.curPosition(), - unexpected: String.fromCodePoint(code) - }); - } - finishOp(type, size) { - const str = this.input.slice(this.state.pos, this.state.pos + size); - this.state.pos += size; - this.finishToken(type, str); - } - readRegexp() { - const startLoc = this.state.startLoc; - const start = this.state.start + 1; - let escaped, inClass; - let { - pos - } = this.state; - for (;; ++pos) { - if (pos >= this.length) { - throw this.raise(Errors.UnterminatedRegExp, { - at: createPositionWithColumnOffset(startLoc, 1) - }); - } - const ch = this.input.charCodeAt(pos); - if (isNewLine(ch)) { - throw this.raise(Errors.UnterminatedRegExp, { - at: createPositionWithColumnOffset(startLoc, 1) - }); - } - if (escaped) { - escaped = false; - } else { - if (ch === 91) { - inClass = true; - } else if (ch === 93 && inClass) { - inClass = false; - } else if (ch === 47 && !inClass) { - break; - } - escaped = ch === 92; - } - } - const content = this.input.slice(start, pos); - ++pos; - let mods = ""; - const nextPos = () => createPositionWithColumnOffset(startLoc, pos + 2 - start); - while (pos < this.length) { - const cp = this.codePointAtPos(pos); - const char = String.fromCharCode(cp); - if (VALID_REGEX_FLAGS.has(cp)) { - if (cp === 118) { - this.expectPlugin("regexpUnicodeSets", nextPos()); - if (mods.includes("u")) { - this.raise(Errors.IncompatibleRegExpUVFlags, { - at: nextPos() - }); - } - } else if (cp === 117) { - if (mods.includes("v")) { - this.raise(Errors.IncompatibleRegExpUVFlags, { - at: nextPos() - }); - } - } - if (mods.includes(char)) { - this.raise(Errors.DuplicateRegExpFlags, { - at: nextPos() - }); - } - } else if (isIdentifierChar(cp) || cp === 92) { - this.raise(Errors.MalformedRegExpFlags, { - at: nextPos() - }); - } else { - break; - } - ++pos; - mods += char; - } - this.state.pos = pos; - this.finishToken(135, { - pattern: content, - flags: mods - }); - } - readInt(radix, len, forceLen = false, allowNumSeparator = true) { - const { - n, - pos - } = readInt(this.input, this.state.pos, this.state.lineStart, this.state.curLine, radix, len, forceLen, allowNumSeparator, this.errorHandlers_readInt, false); - this.state.pos = pos; - return n; - } - readRadixNumber(radix) { - const startLoc = this.state.curPosition(); - let isBigInt = false; - this.state.pos += 2; - const val = this.readInt(radix); - if (val == null) { - this.raise(Errors.InvalidDigit, { - at: createPositionWithColumnOffset(startLoc, 2), - radix - }); - } - const next = this.input.charCodeAt(this.state.pos); - if (next === 110) { - ++this.state.pos; - isBigInt = true; - } else if (next === 109) { - throw this.raise(Errors.InvalidDecimal, { - at: startLoc - }); - } - if (isIdentifierStart(this.codePointAtPos(this.state.pos))) { - throw this.raise(Errors.NumberIdentifier, { - at: this.state.curPosition() - }); - } - if (isBigInt) { - const str = this.input.slice(startLoc.index, this.state.pos).replace(/[_n]/g, ""); - this.finishToken(133, str); - return; - } - this.finishToken(132, val); - } - readNumber(startsWithDot) { - const start = this.state.pos; - const startLoc = this.state.curPosition(); - let isFloat = false; - let isBigInt = false; - let isDecimal = false; - let hasExponent = false; - let isOctal = false; - if (!startsWithDot && this.readInt(10) === null) { - this.raise(Errors.InvalidNumber, { - at: this.state.curPosition() - }); - } - const hasLeadingZero = this.state.pos - start >= 2 && this.input.charCodeAt(start) === 48; - if (hasLeadingZero) { - const integer = this.input.slice(start, this.state.pos); - this.recordStrictModeErrors(Errors.StrictOctalLiteral, { - at: startLoc - }); - if (!this.state.strict) { - const underscorePos = integer.indexOf("_"); - if (underscorePos > 0) { - this.raise(Errors.ZeroDigitNumericSeparator, { - at: createPositionWithColumnOffset(startLoc, underscorePos) - }); - } - } - isOctal = hasLeadingZero && !/[89]/.test(integer); - } - let next = this.input.charCodeAt(this.state.pos); - if (next === 46 && !isOctal) { - ++this.state.pos; - this.readInt(10); - isFloat = true; - next = this.input.charCodeAt(this.state.pos); - } - if ((next === 69 || next === 101) && !isOctal) { - next = this.input.charCodeAt(++this.state.pos); - if (next === 43 || next === 45) { - ++this.state.pos; - } - if (this.readInt(10) === null) { - this.raise(Errors.InvalidOrMissingExponent, { - at: startLoc - }); - } - isFloat = true; - hasExponent = true; - next = this.input.charCodeAt(this.state.pos); - } - if (next === 110) { - if (isFloat || hasLeadingZero) { - this.raise(Errors.InvalidBigIntLiteral, { - at: startLoc - }); - } - ++this.state.pos; - isBigInt = true; - } - if (next === 109) { - this.expectPlugin("decimal", this.state.curPosition()); - if (hasExponent || hasLeadingZero) { - this.raise(Errors.InvalidDecimal, { - at: startLoc - }); - } - ++this.state.pos; - isDecimal = true; - } - if (isIdentifierStart(this.codePointAtPos(this.state.pos))) { - throw this.raise(Errors.NumberIdentifier, { - at: this.state.curPosition() - }); - } - const str = this.input.slice(start, this.state.pos).replace(/[_mn]/g, ""); - if (isBigInt) { - this.finishToken(133, str); - return; - } - if (isDecimal) { - this.finishToken(134, str); - return; - } - const val = isOctal ? parseInt(str, 8) : parseFloat(str); - this.finishToken(132, val); - } - readCodePoint(throwOnInvalid) { - const { - code, - pos - } = readCodePoint(this.input, this.state.pos, this.state.lineStart, this.state.curLine, throwOnInvalid, this.errorHandlers_readCodePoint); - this.state.pos = pos; - return code; - } - readString(quote) { - const { - str, - pos, - curLine, - lineStart - } = readStringContents(quote === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string); - this.state.pos = pos + 1; - this.state.lineStart = lineStart; - this.state.curLine = curLine; - this.finishToken(131, str); - } - readTemplateContinuation() { - if (!this.match(8)) { - this.unexpected(null, 8); - } - this.state.pos--; - this.readTemplateToken(); - } - readTemplateToken() { - const opening = this.input[this.state.pos]; - const { - str, - firstInvalidLoc, - pos, - curLine, - lineStart - } = readStringContents("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template); - this.state.pos = pos + 1; - this.state.lineStart = lineStart; - this.state.curLine = curLine; - if (firstInvalidLoc) { - this.state.firstInvalidTemplateEscapePos = new Position(firstInvalidLoc.curLine, firstInvalidLoc.pos - firstInvalidLoc.lineStart, firstInvalidLoc.pos); - } - if (this.input.codePointAt(pos) === 96) { - this.finishToken(24, firstInvalidLoc ? null : opening + str + "`"); - } else { - this.state.pos++; - this.finishToken(25, firstInvalidLoc ? null : opening + str + "${"); - } - } - recordStrictModeErrors(toParseError, { - at - }) { - const index = at.index; - if (this.state.strict && !this.state.strictErrors.has(index)) { - this.raise(toParseError, { - at - }); - } else { - this.state.strictErrors.set(index, [toParseError, at]); - } - } - readWord1(firstCode) { - this.state.containsEsc = false; - let word = ""; - const start = this.state.pos; - let chunkStart = this.state.pos; - if (firstCode !== undefined) { - this.state.pos += firstCode <= 0xffff ? 1 : 2; - } - while (this.state.pos < this.length) { - const ch = this.codePointAtPos(this.state.pos); - if (isIdentifierChar(ch)) { - this.state.pos += ch <= 0xffff ? 1 : 2; - } else if (ch === 92) { - this.state.containsEsc = true; - word += this.input.slice(chunkStart, this.state.pos); - const escStart = this.state.curPosition(); - const identifierCheck = this.state.pos === start ? isIdentifierStart : isIdentifierChar; - if (this.input.charCodeAt(++this.state.pos) !== 117) { - this.raise(Errors.MissingUnicodeEscape, { - at: this.state.curPosition() - }); - chunkStart = this.state.pos - 1; - continue; - } - ++this.state.pos; - const esc = this.readCodePoint(true); - if (esc !== null) { - if (!identifierCheck(esc)) { - this.raise(Errors.EscapedCharNotAnIdentifier, { - at: escStart - }); - } - word += String.fromCodePoint(esc); - } - chunkStart = this.state.pos; - } else { - break; - } - } - return word + this.input.slice(chunkStart, this.state.pos); - } - readWord(firstCode) { - const word = this.readWord1(firstCode); - const type = keywords$1.get(word); - if (type !== undefined) { - this.finishToken(type, tokenLabelName(type)); - } else { - this.finishToken(130, word); - } - } - checkKeywordEscapes() { - const { - type - } = this.state; - if (tokenIsKeyword(type) && this.state.containsEsc) { - this.raise(Errors.InvalidEscapedReservedWord, { - at: this.state.startLoc, - reservedWord: tokenLabelName(type) - }); - } - } - raise(toParseError, raiseProperties) { - const { - at - } = raiseProperties, - details = _objectWithoutPropertiesLoose(raiseProperties, _excluded); - const loc = at instanceof Position ? at : at.loc.start; - const error = toParseError({ - loc, - details - }); - if (!this.options.errorRecovery) throw error; - if (!this.isLookahead) this.state.errors.push(error); - return error; - } - raiseOverwrite(toParseError, raiseProperties) { - const { - at - } = raiseProperties, - details = _objectWithoutPropertiesLoose(raiseProperties, _excluded2); - const loc = at instanceof Position ? at : at.loc.start; - const pos = loc.index; - const errors = this.state.errors; - for (let i = errors.length - 1; i >= 0; i--) { - const error = errors[i]; - if (error.loc.index === pos) { - return errors[i] = toParseError({ - loc, - details - }); - } - if (error.loc.index < pos) break; - } - return this.raise(toParseError, raiseProperties); - } - updateContext(prevType) {} - unexpected(loc, type) { - throw this.raise(Errors.UnexpectedToken, { - expected: type ? tokenLabelName(type) : null, - at: loc != null ? loc : this.state.startLoc - }); - } - expectPlugin(pluginName, loc) { - if (this.hasPlugin(pluginName)) { - return true; - } - throw this.raise(Errors.MissingPlugin, { - at: loc != null ? loc : this.state.startLoc, - missingPlugin: [pluginName] - }); - } - expectOnePlugin(pluginNames) { - if (!pluginNames.some(name => this.hasPlugin(name))) { - throw this.raise(Errors.MissingOneOfPlugins, { - at: this.state.startLoc, - missingPlugin: pluginNames - }); - } - } - errorBuilder(error) { - return (pos, lineStart, curLine) => { - this.raise(error, { - at: buildPosition(pos, lineStart, curLine) - }); - }; - } -} - -class ClassScope { - constructor() { - this.privateNames = new Set(); - this.loneAccessors = new Map(); - this.undefinedPrivateNames = new Map(); - } -} -class ClassScopeHandler { - constructor(parser) { - this.parser = void 0; - this.stack = []; - this.undefinedPrivateNames = new Map(); - this.parser = parser; - } - current() { - return this.stack[this.stack.length - 1]; - } - enter() { - this.stack.push(new ClassScope()); - } - exit() { - const oldClassScope = this.stack.pop(); - const current = this.current(); - for (const [name, loc] of Array.from(oldClassScope.undefinedPrivateNames)) { - if (current) { - if (!current.undefinedPrivateNames.has(name)) { - current.undefinedPrivateNames.set(name, loc); - } - } else { - this.parser.raise(Errors.InvalidPrivateFieldResolution, { - at: loc, - identifierName: name - }); - } - } - } - declarePrivateName(name, elementType, loc) { - const { - privateNames, - loneAccessors, - undefinedPrivateNames - } = this.current(); - let redefined = privateNames.has(name); - if (elementType & CLASS_ELEMENT_KIND_ACCESSOR) { - const accessor = redefined && loneAccessors.get(name); - if (accessor) { - const oldStatic = accessor & CLASS_ELEMENT_FLAG_STATIC; - const newStatic = elementType & CLASS_ELEMENT_FLAG_STATIC; - const oldKind = accessor & CLASS_ELEMENT_KIND_ACCESSOR; - const newKind = elementType & CLASS_ELEMENT_KIND_ACCESSOR; - redefined = oldKind === newKind || oldStatic !== newStatic; - if (!redefined) loneAccessors.delete(name); - } else if (!redefined) { - loneAccessors.set(name, elementType); - } - } - if (redefined) { - this.parser.raise(Errors.PrivateNameRedeclaration, { - at: loc, - identifierName: name - }); - } - privateNames.add(name); - undefinedPrivateNames.delete(name); - } - usePrivateName(name, loc) { - let classScope; - for (classScope of this.stack) { - if (classScope.privateNames.has(name)) return; - } - if (classScope) { - classScope.undefinedPrivateNames.set(name, loc); - } else { - this.parser.raise(Errors.InvalidPrivateFieldResolution, { - at: loc, - identifierName: name - }); - } - } -} - -const kExpression = 0, - kMaybeArrowParameterDeclaration = 1, - kMaybeAsyncArrowParameterDeclaration = 2, - kParameterDeclaration = 3; -class ExpressionScope { - constructor(type = kExpression) { - this.type = void 0; - this.type = type; - } - canBeArrowParameterDeclaration() { - return this.type === kMaybeAsyncArrowParameterDeclaration || this.type === kMaybeArrowParameterDeclaration; - } - isCertainlyParameterDeclaration() { - return this.type === kParameterDeclaration; - } -} -class ArrowHeadParsingScope extends ExpressionScope { - constructor(type) { - super(type); - this.declarationErrors = new Map(); - } - recordDeclarationError(ParsingErrorClass, { - at - }) { - const index = at.index; - this.declarationErrors.set(index, [ParsingErrorClass, at]); - } - clearDeclarationError(index) { - this.declarationErrors.delete(index); - } - iterateErrors(iterator) { - this.declarationErrors.forEach(iterator); - } -} -class ExpressionScopeHandler { - constructor(parser) { - this.parser = void 0; - this.stack = [new ExpressionScope()]; - this.parser = parser; - } - enter(scope) { - this.stack.push(scope); - } - exit() { - this.stack.pop(); - } - recordParameterInitializerError(toParseError, { - at: node - }) { - const origin = { - at: node.loc.start - }; - const { - stack - } = this; - let i = stack.length - 1; - let scope = stack[i]; - while (!scope.isCertainlyParameterDeclaration()) { - if (scope.canBeArrowParameterDeclaration()) { - scope.recordDeclarationError(toParseError, origin); - } else { - return; - } - scope = stack[--i]; - } - this.parser.raise(toParseError, origin); - } - recordArrowParameterBindingError(error, { - at: node - }) { - const { - stack - } = this; - const scope = stack[stack.length - 1]; - const origin = { - at: node.loc.start - }; - if (scope.isCertainlyParameterDeclaration()) { - this.parser.raise(error, origin); - } else if (scope.canBeArrowParameterDeclaration()) { - scope.recordDeclarationError(error, origin); - } else { - return; - } - } - recordAsyncArrowParametersError({ - at - }) { - const { - stack - } = this; - let i = stack.length - 1; - let scope = stack[i]; - while (scope.canBeArrowParameterDeclaration()) { - if (scope.type === kMaybeAsyncArrowParameterDeclaration) { - scope.recordDeclarationError(Errors.AwaitBindingIdentifier, { - at - }); - } - scope = stack[--i]; - } - } - validateAsPattern() { - const { - stack - } = this; - const currentScope = stack[stack.length - 1]; - if (!currentScope.canBeArrowParameterDeclaration()) return; - currentScope.iterateErrors(([toParseError, loc]) => { - this.parser.raise(toParseError, { - at: loc - }); - let i = stack.length - 2; - let scope = stack[i]; - while (scope.canBeArrowParameterDeclaration()) { - scope.clearDeclarationError(loc.index); - scope = stack[--i]; - } - }); - } -} -function newParameterDeclarationScope() { - return new ExpressionScope(kParameterDeclaration); -} -function newArrowHeadScope() { - return new ArrowHeadParsingScope(kMaybeArrowParameterDeclaration); -} -function newAsyncArrowScope() { - return new ArrowHeadParsingScope(kMaybeAsyncArrowParameterDeclaration); -} -function newExpressionScope() { - return new ExpressionScope(); -} - -const PARAM = 0b0000, - PARAM_YIELD = 0b0001, - PARAM_AWAIT = 0b0010, - PARAM_RETURN = 0b0100, - PARAM_IN = 0b1000; -class ProductionParameterHandler { - constructor() { - this.stacks = []; - } - enter(flags) { - this.stacks.push(flags); - } - exit() { - this.stacks.pop(); - } - currentFlags() { - return this.stacks[this.stacks.length - 1]; - } - get hasAwait() { - return (this.currentFlags() & PARAM_AWAIT) > 0; - } - get hasYield() { - return (this.currentFlags() & PARAM_YIELD) > 0; - } - get hasReturn() { - return (this.currentFlags() & PARAM_RETURN) > 0; - } - get hasIn() { - return (this.currentFlags() & PARAM_IN) > 0; - } -} -function functionFlags(isAsync, isGenerator) { - return (isAsync ? PARAM_AWAIT : 0) | (isGenerator ? PARAM_YIELD : 0); -} - -class UtilParser extends Tokenizer { - addExtra(node, key, value, enumerable = true) { - if (!node) return; - const extra = node.extra = node.extra || {}; - if (enumerable) { - extra[key] = value; - } else { - Object.defineProperty(extra, key, { - enumerable, - value - }); - } - } - isContextual(token) { - return this.state.type === token && !this.state.containsEsc; - } - isUnparsedContextual(nameStart, name) { - const nameEnd = nameStart + name.length; - if (this.input.slice(nameStart, nameEnd) === name) { - const nextCh = this.input.charCodeAt(nameEnd); - return !(isIdentifierChar(nextCh) || (nextCh & 0xfc00) === 0xd800); - } - return false; - } - isLookaheadContextual(name) { - const next = this.nextTokenStart(); - return this.isUnparsedContextual(next, name); - } - eatContextual(token) { - if (this.isContextual(token)) { - this.next(); - return true; - } - return false; - } - expectContextual(token, toParseError) { - if (!this.eatContextual(token)) { - if (toParseError != null) { - throw this.raise(toParseError, { - at: this.state.startLoc - }); - } - throw this.unexpected(null, token); - } - } - canInsertSemicolon() { - return this.match(137) || this.match(8) || this.hasPrecedingLineBreak(); - } - hasPrecedingLineBreak() { - return lineBreak.test(this.input.slice(this.state.lastTokEndLoc.index, this.state.start)); - } - hasFollowingLineBreak() { - skipWhiteSpaceToLineBreak.lastIndex = this.state.end; - return skipWhiteSpaceToLineBreak.test(this.input); - } - isLineTerminator() { - return this.eat(13) || this.canInsertSemicolon(); - } - semicolon(allowAsi = true) { - if (allowAsi ? this.isLineTerminator() : this.eat(13)) return; - this.raise(Errors.MissingSemicolon, { - at: this.state.lastTokEndLoc - }); - } - expect(type, loc) { - this.eat(type) || this.unexpected(loc, type); - } - tryParse(fn, oldState = this.state.clone()) { - const abortSignal = { - node: null - }; - try { - const node = fn((node = null) => { - abortSignal.node = node; - throw abortSignal; - }); - if (this.state.errors.length > oldState.errors.length) { - const failState = this.state; - this.state = oldState; - this.state.tokensLength = failState.tokensLength; - return { - node, - error: failState.errors[oldState.errors.length], - thrown: false, - aborted: false, - failState - }; - } - return { - node, - error: null, - thrown: false, - aborted: false, - failState: null - }; - } catch (error) { - const failState = this.state; - this.state = oldState; - if (error instanceof SyntaxError) { - return { - node: null, - error, - thrown: true, - aborted: false, - failState - }; - } - if (error === abortSignal) { - return { - node: abortSignal.node, - error: null, - thrown: false, - aborted: true, - failState - }; - } - throw error; - } - } - checkExpressionErrors(refExpressionErrors, andThrow) { - if (!refExpressionErrors) return false; - const { - shorthandAssignLoc, - doubleProtoLoc, - privateKeyLoc, - optionalParametersLoc - } = refExpressionErrors; - const hasErrors = !!shorthandAssignLoc || !!doubleProtoLoc || !!optionalParametersLoc || !!privateKeyLoc; - if (!andThrow) { - return hasErrors; - } - if (shorthandAssignLoc != null) { - this.raise(Errors.InvalidCoverInitializedName, { - at: shorthandAssignLoc - }); - } - if (doubleProtoLoc != null) { - this.raise(Errors.DuplicateProto, { - at: doubleProtoLoc - }); - } - if (privateKeyLoc != null) { - this.raise(Errors.UnexpectedPrivateField, { - at: privateKeyLoc - }); - } - if (optionalParametersLoc != null) { - this.unexpected(optionalParametersLoc); - } - } - isLiteralPropertyName() { - return tokenIsLiteralPropertyName(this.state.type); - } - isPrivateName(node) { - return node.type === "PrivateName"; - } - getPrivateNameSV(node) { - return node.id.name; - } - hasPropertyAsPrivateName(node) { - return (node.type === "MemberExpression" || node.type === "OptionalMemberExpression") && this.isPrivateName(node.property); - } - isObjectProperty(node) { - return node.type === "ObjectProperty"; - } - isObjectMethod(node) { - return node.type === "ObjectMethod"; - } - initializeScopes(inModule = this.options.sourceType === "module") { - const oldLabels = this.state.labels; - this.state.labels = []; - const oldExportedIdentifiers = this.exportedIdentifiers; - this.exportedIdentifiers = new Set(); - const oldInModule = this.inModule; - this.inModule = inModule; - const oldScope = this.scope; - const ScopeHandler = this.getScopeHandler(); - this.scope = new ScopeHandler(this, inModule); - const oldProdParam = this.prodParam; - this.prodParam = new ProductionParameterHandler(); - const oldClassScope = this.classScope; - this.classScope = new ClassScopeHandler(this); - const oldExpressionScope = this.expressionScope; - this.expressionScope = new ExpressionScopeHandler(this); - return () => { - this.state.labels = oldLabels; - this.exportedIdentifiers = oldExportedIdentifiers; - this.inModule = oldInModule; - this.scope = oldScope; - this.prodParam = oldProdParam; - this.classScope = oldClassScope; - this.expressionScope = oldExpressionScope; - }; - } - enterInitialScopes() { - let paramFlags = PARAM; - if (this.inModule) { - paramFlags |= PARAM_AWAIT; - } - this.scope.enter(SCOPE_PROGRAM); - this.prodParam.enter(paramFlags); - } - checkDestructuringPrivate(refExpressionErrors) { - const { - privateKeyLoc - } = refExpressionErrors; - if (privateKeyLoc !== null) { - this.expectPlugin("destructuringPrivate", privateKeyLoc); - } - } -} -class ExpressionErrors { - constructor() { - this.shorthandAssignLoc = null; - this.doubleProtoLoc = null; - this.privateKeyLoc = null; - this.optionalParametersLoc = null; - } -} - -class Node { - constructor(parser, pos, loc) { - this.type = ""; - this.start = pos; - this.end = 0; - this.loc = new SourceLocation(loc); - if (parser != null && parser.options.ranges) this.range = [pos, 0]; - if (parser != null && parser.filename) this.loc.filename = parser.filename; - } -} -const NodePrototype = Node.prototype; -{ - NodePrototype.__clone = function () { - const newNode = new Node(undefined, this.start, this.loc.start); - const keys = Object.keys(this); - for (let i = 0, length = keys.length; i < length; i++) { - const key = keys[i]; - if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") { - newNode[key] = this[key]; - } - } - return newNode; - }; -} -function clonePlaceholder(node) { - return cloneIdentifier(node); -} -function cloneIdentifier(node) { - const { - type, - start, - end, - loc, - range, - extra, - name - } = node; - const cloned = Object.create(NodePrototype); - cloned.type = type; - cloned.start = start; - cloned.end = end; - cloned.loc = loc; - cloned.range = range; - cloned.extra = extra; - cloned.name = name; - if (type === "Placeholder") { - cloned.expectedNode = node.expectedNode; - } - return cloned; -} -function cloneStringLiteral(node) { - const { - type, - start, - end, - loc, - range, - extra - } = node; - if (type === "Placeholder") { - return clonePlaceholder(node); - } - const cloned = Object.create(NodePrototype); - cloned.type = type; - cloned.start = start; - cloned.end = end; - cloned.loc = loc; - cloned.range = range; - if (node.raw !== undefined) { - cloned.raw = node.raw; - } else { - cloned.extra = extra; - } - cloned.value = node.value; - return cloned; -} -class NodeUtils extends UtilParser { - startNode() { - return new Node(this, this.state.start, this.state.startLoc); - } - startNodeAt(loc) { - return new Node(this, loc.index, loc); - } - startNodeAtNode(type) { - return this.startNodeAt(type.loc.start); - } - finishNode(node, type) { - return this.finishNodeAt(node, type, this.state.lastTokEndLoc); - } - finishNodeAt(node, type, endLoc) { - node.type = type; - node.end = endLoc.index; - node.loc.end = endLoc; - if (this.options.ranges) node.range[1] = endLoc.index; - if (this.options.attachComment) this.processComment(node); - return node; - } - resetStartLocation(node, startLoc) { - node.start = startLoc.index; - node.loc.start = startLoc; - if (this.options.ranges) node.range[0] = startLoc.index; - } - resetEndLocation(node, endLoc = this.state.lastTokEndLoc) { - node.end = endLoc.index; - node.loc.end = endLoc; - if (this.options.ranges) node.range[1] = endLoc.index; - } - resetStartLocationFromNode(node, locationNode) { - this.resetStartLocation(node, locationNode.loc.start); - } -} - -const reservedTypes = new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]); -const FlowErrors = ParseErrorEnum`flow`({ - AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.", - AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.", - AssignReservedType: ({ - reservedType - }) => `Cannot overwrite reserved type ${reservedType}.`, - DeclareClassElement: "The `declare` modifier can only appear on class fields.", - DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.", - DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.", - EnumBooleanMemberNotInitialized: ({ - memberName, - enumName - }) => `Boolean enum members need to be initialized. Use either \`${memberName} = true,\` or \`${memberName} = false,\` in enum \`${enumName}\`.`, - EnumDuplicateMemberName: ({ - memberName, - enumName - }) => `Enum member names need to be unique, but the name \`${memberName}\` has already been used before in enum \`${enumName}\`.`, - EnumInconsistentMemberValues: ({ - enumName - }) => `Enum \`${enumName}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`, - EnumInvalidExplicitType: ({ - invalidEnumType, - enumName - }) => `Enum type \`${invalidEnumType}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`, - EnumInvalidExplicitTypeUnknownSupplied: ({ - enumName - }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`, - EnumInvalidMemberInitializerPrimaryType: ({ - enumName, - memberName, - explicitType - }) => `Enum \`${enumName}\` has type \`${explicitType}\`, so the initializer of \`${memberName}\` needs to be a ${explicitType} literal.`, - EnumInvalidMemberInitializerSymbolType: ({ - enumName, - memberName - }) => `Symbol enum members cannot be initialized. Use \`${memberName},\` in enum \`${enumName}\`.`, - EnumInvalidMemberInitializerUnknownType: ({ - enumName, - memberName - }) => `The enum member initializer for \`${memberName}\` needs to be a literal (either a boolean, number, or string) in enum \`${enumName}\`.`, - EnumInvalidMemberName: ({ - enumName, - memberName, - suggestion - }) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${memberName}\`, consider using \`${suggestion}\`, in enum \`${enumName}\`.`, - EnumNumberMemberNotInitialized: ({ - enumName, - memberName - }) => `Number enum members need to be initialized, e.g. \`${memberName} = 1\` in enum \`${enumName}\`.`, - EnumStringMemberInconsistentlyInitailized: ({ - enumName - }) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${enumName}\`.`, - GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.", - ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.", - ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.", - InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.", - InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.", - InexactVariance: "Explicit inexact syntax cannot have variance.", - InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.", - MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", - NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.", - NestedFlowComment: "Cannot have a flow comment inside another flow comment.", - PatternIsOptional: Object.assign({ - message: "A binding pattern parameter cannot be optional in an implementation signature." - }, { - reasonCode: "OptionalBindingPattern" - }), - SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.", - SpreadVariance: "Spread properties cannot have variance.", - ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.", - ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", - ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.", - ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.", - ThisParamNoDefault: "The `this` parameter may not have a default value.", - TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", - TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.", - UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.", - UnexpectedReservedType: ({ - reservedType - }) => `Unexpected reserved type ${reservedType}.`, - UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.", - UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.", - UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.", - UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".', - UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.", - UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.", - UnsupportedDeclareExportKind: ({ - unsupportedExportKind, - suggestion - }) => `\`declare export ${unsupportedExportKind}\` is not supported. Use \`${suggestion}\` instead.`, - UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.", - UnterminatedFlowComment: "Unterminated flow-comment." -}); -function isEsModuleType(bodyElement) { - return bodyElement.type === "DeclareExportAllDeclaration" || bodyElement.type === "DeclareExportDeclaration" && (!bodyElement.declaration || bodyElement.declaration.type !== "TypeAlias" && bodyElement.declaration.type !== "InterfaceDeclaration"); -} -function hasTypeImportKind(node) { - return node.importKind === "type" || node.importKind === "typeof"; -} -function isMaybeDefaultImport(type) { - return tokenIsKeywordOrIdentifier(type) && type !== 97; -} -const exportSuggestions = { - const: "declare export var", - let: "declare export var", - type: "export type", - interface: "export interface" -}; -function partition(list, test) { - const list1 = []; - const list2 = []; - for (let i = 0; i < list.length; i++) { - (test(list[i], i, list) ? list1 : list2).push(list[i]); - } - return [list1, list2]; -} -const FLOW_PRAGMA_REGEX = /\*?\s*@((?:no)?flow)\b/; -var flow = (superClass => class FlowParserMixin extends superClass { - constructor(...args) { - super(...args); - this.flowPragma = undefined; - } - getScopeHandler() { - return FlowScopeHandler; - } - shouldParseTypes() { - return this.getPluginOption("flow", "all") || this.flowPragma === "flow"; - } - shouldParseEnums() { - return !!this.getPluginOption("flow", "enums"); - } - finishToken(type, val) { - if (type !== 131 && type !== 13 && type !== 28) { - if (this.flowPragma === undefined) { - this.flowPragma = null; - } - } - return super.finishToken(type, val); - } - addComment(comment) { - if (this.flowPragma === undefined) { - const matches = FLOW_PRAGMA_REGEX.exec(comment.value); - if (!matches) ; else if (matches[1] === "flow") { - this.flowPragma = "flow"; - } else if (matches[1] === "noflow") { - this.flowPragma = "noflow"; - } else { - throw new Error("Unexpected flow pragma"); - } - } - return super.addComment(comment); - } - flowParseTypeInitialiser(tok) { - const oldInType = this.state.inType; - this.state.inType = true; - this.expect(tok || 14); - const type = this.flowParseType(); - this.state.inType = oldInType; - return type; - } - flowParsePredicate() { - const node = this.startNode(); - const moduloLoc = this.state.startLoc; - this.next(); - this.expectContextual(108); - if (this.state.lastTokStart > moduloLoc.index + 1) { - this.raise(FlowErrors.UnexpectedSpaceBetweenModuloChecks, { - at: moduloLoc - }); - } - if (this.eat(10)) { - node.value = super.parseExpression(); - this.expect(11); - return this.finishNode(node, "DeclaredPredicate"); - } else { - return this.finishNode(node, "InferredPredicate"); - } - } - flowParseTypeAndPredicateInitialiser() { - const oldInType = this.state.inType; - this.state.inType = true; - this.expect(14); - let type = null; - let predicate = null; - if (this.match(54)) { - this.state.inType = oldInType; - predicate = this.flowParsePredicate(); - } else { - type = this.flowParseType(); - this.state.inType = oldInType; - if (this.match(54)) { - predicate = this.flowParsePredicate(); - } - } - return [type, predicate]; - } - flowParseDeclareClass(node) { - this.next(); - this.flowParseInterfaceish(node, true); - return this.finishNode(node, "DeclareClass"); - } - flowParseDeclareFunction(node) { - this.next(); - const id = node.id = this.parseIdentifier(); - const typeNode = this.startNode(); - const typeContainer = this.startNode(); - if (this.match(47)) { - typeNode.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - typeNode.typeParameters = null; - } - this.expect(10); - const tmp = this.flowParseFunctionTypeParams(); - typeNode.params = tmp.params; - typeNode.rest = tmp.rest; - typeNode.this = tmp._this; - this.expect(11); - [typeNode.returnType, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); - typeContainer.typeAnnotation = this.finishNode(typeNode, "FunctionTypeAnnotation"); - id.typeAnnotation = this.finishNode(typeContainer, "TypeAnnotation"); - this.resetEndLocation(id); - this.semicolon(); - this.scope.declareName(node.id.name, BIND_FLOW_DECLARE_FN, node.id.loc.start); - return this.finishNode(node, "DeclareFunction"); - } - flowParseDeclare(node, insideModule) { - if (this.match(80)) { - return this.flowParseDeclareClass(node); - } else if (this.match(68)) { - return this.flowParseDeclareFunction(node); - } else if (this.match(74)) { - return this.flowParseDeclareVariable(node); - } else if (this.eatContextual(125)) { - if (this.match(16)) { - return this.flowParseDeclareModuleExports(node); - } else { - if (insideModule) { - this.raise(FlowErrors.NestedDeclareModule, { - at: this.state.lastTokStartLoc - }); - } - return this.flowParseDeclareModule(node); - } - } else if (this.isContextual(128)) { - return this.flowParseDeclareTypeAlias(node); - } else if (this.isContextual(129)) { - return this.flowParseDeclareOpaqueType(node); - } else if (this.isContextual(127)) { - return this.flowParseDeclareInterface(node); - } else if (this.match(82)) { - return this.flowParseDeclareExportDeclaration(node, insideModule); - } else { - throw this.unexpected(); - } - } - flowParseDeclareVariable(node) { - this.next(); - node.id = this.flowParseTypeAnnotatableIdentifier(true); - this.scope.declareName(node.id.name, BIND_VAR, node.id.loc.start); - this.semicolon(); - return this.finishNode(node, "DeclareVariable"); - } - flowParseDeclareModule(node) { - this.scope.enter(SCOPE_OTHER); - if (this.match(131)) { - node.id = super.parseExprAtom(); - } else { - node.id = this.parseIdentifier(); - } - const bodyNode = node.body = this.startNode(); - const body = bodyNode.body = []; - this.expect(5); - while (!this.match(8)) { - let bodyNode = this.startNode(); - if (this.match(83)) { - this.next(); - if (!this.isContextual(128) && !this.match(87)) { - this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule, { - at: this.state.lastTokStartLoc - }); - } - super.parseImport(bodyNode); - } else { - this.expectContextual(123, FlowErrors.UnsupportedStatementInDeclareModule); - bodyNode = this.flowParseDeclare(bodyNode, true); - } - body.push(bodyNode); - } - this.scope.exit(); - this.expect(8); - this.finishNode(bodyNode, "BlockStatement"); - let kind = null; - let hasModuleExport = false; - body.forEach(bodyElement => { - if (isEsModuleType(bodyElement)) { - if (kind === "CommonJS") { - this.raise(FlowErrors.AmbiguousDeclareModuleKind, { - at: bodyElement - }); - } - kind = "ES"; - } else if (bodyElement.type === "DeclareModuleExports") { - if (hasModuleExport) { - this.raise(FlowErrors.DuplicateDeclareModuleExports, { - at: bodyElement - }); - } - if (kind === "ES") { - this.raise(FlowErrors.AmbiguousDeclareModuleKind, { - at: bodyElement - }); - } - kind = "CommonJS"; - hasModuleExport = true; - } - }); - node.kind = kind || "CommonJS"; - return this.finishNode(node, "DeclareModule"); - } - flowParseDeclareExportDeclaration(node, insideModule) { - this.expect(82); - if (this.eat(65)) { - if (this.match(68) || this.match(80)) { - node.declaration = this.flowParseDeclare(this.startNode()); - } else { - node.declaration = this.flowParseType(); - this.semicolon(); - } - node.default = true; - return this.finishNode(node, "DeclareExportDeclaration"); - } else { - if (this.match(75) || this.isLet() || (this.isContextual(128) || this.isContextual(127)) && !insideModule) { - const label = this.state.value; - throw this.raise(FlowErrors.UnsupportedDeclareExportKind, { - at: this.state.startLoc, - unsupportedExportKind: label, - suggestion: exportSuggestions[label] - }); - } - if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(129)) { - node.declaration = this.flowParseDeclare(this.startNode()); - node.default = false; - return this.finishNode(node, "DeclareExportDeclaration"); - } else if (this.match(55) || this.match(5) || this.isContextual(127) || this.isContextual(128) || this.isContextual(129)) { - node = this.parseExport(node, null); - if (node.type === "ExportNamedDeclaration") { - node.type = "ExportDeclaration"; - node.default = false; - delete node.exportKind; - } - node.type = "Declare" + node.type; - return node; - } - } - throw this.unexpected(); - } - flowParseDeclareModuleExports(node) { - this.next(); - this.expectContextual(109); - node.typeAnnotation = this.flowParseTypeAnnotation(); - this.semicolon(); - return this.finishNode(node, "DeclareModuleExports"); - } - flowParseDeclareTypeAlias(node) { - this.next(); - const finished = this.flowParseTypeAlias(node); - finished.type = "DeclareTypeAlias"; - return finished; - } - flowParseDeclareOpaqueType(node) { - this.next(); - const finished = this.flowParseOpaqueType(node, true); - finished.type = "DeclareOpaqueType"; - return finished; - } - flowParseDeclareInterface(node) { - this.next(); - this.flowParseInterfaceish(node); - return this.finishNode(node, "DeclareInterface"); - } - flowParseInterfaceish(node, isClass = false) { - node.id = this.flowParseRestrictedIdentifier(!isClass, true); - this.scope.declareName(node.id.name, isClass ? BIND_FUNCTION : BIND_LEXICAL, node.id.loc.start); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - node.typeParameters = null; - } - node.extends = []; - node.implements = []; - node.mixins = []; - if (this.eat(81)) { - do { - node.extends.push(this.flowParseInterfaceExtends()); - } while (!isClass && this.eat(12)); - } - if (this.isContextual(115)) { - this.next(); - do { - node.mixins.push(this.flowParseInterfaceExtends()); - } while (this.eat(12)); - } - if (this.isContextual(111)) { - this.next(); - do { - node.implements.push(this.flowParseInterfaceExtends()); - } while (this.eat(12)); - } - node.body = this.flowParseObjectType({ - allowStatic: isClass, - allowExact: false, - allowSpread: false, - allowProto: isClass, - allowInexact: false - }); - } - flowParseInterfaceExtends() { - const node = this.startNode(); - node.id = this.flowParseQualifiedTypeIdentifier(); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterInstantiation(); - } else { - node.typeParameters = null; - } - return this.finishNode(node, "InterfaceExtends"); - } - flowParseInterface(node) { - this.flowParseInterfaceish(node); - return this.finishNode(node, "InterfaceDeclaration"); - } - checkNotUnderscore(word) { - if (word === "_") { - this.raise(FlowErrors.UnexpectedReservedUnderscore, { - at: this.state.startLoc - }); - } - } - checkReservedType(word, startLoc, declaration) { - if (!reservedTypes.has(word)) return; - this.raise(declaration ? FlowErrors.AssignReservedType : FlowErrors.UnexpectedReservedType, { - at: startLoc, - reservedType: word - }); - } - flowParseRestrictedIdentifier(liberal, declaration) { - this.checkReservedType(this.state.value, this.state.startLoc, declaration); - return this.parseIdentifier(liberal); - } - flowParseTypeAlias(node) { - node.id = this.flowParseRestrictedIdentifier(false, true); - this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.loc.start); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - node.typeParameters = null; - } - node.right = this.flowParseTypeInitialiser(29); - this.semicolon(); - return this.finishNode(node, "TypeAlias"); - } - flowParseOpaqueType(node, declare) { - this.expectContextual(128); - node.id = this.flowParseRestrictedIdentifier(true, true); - this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.loc.start); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - node.typeParameters = null; - } - node.supertype = null; - if (this.match(14)) { - node.supertype = this.flowParseTypeInitialiser(14); - } - node.impltype = null; - if (!declare) { - node.impltype = this.flowParseTypeInitialiser(29); - } - this.semicolon(); - return this.finishNode(node, "OpaqueType"); - } - flowParseTypeParameter(requireDefault = false) { - const nodeStartLoc = this.state.startLoc; - const node = this.startNode(); - const variance = this.flowParseVariance(); - const ident = this.flowParseTypeAnnotatableIdentifier(); - node.name = ident.name; - node.variance = variance; - node.bound = ident.typeAnnotation; - if (this.match(29)) { - this.eat(29); - node.default = this.flowParseType(); - } else { - if (requireDefault) { - this.raise(FlowErrors.MissingTypeParamDefault, { - at: nodeStartLoc - }); - } - } - return this.finishNode(node, "TypeParameter"); - } - flowParseTypeParameterDeclaration() { - const oldInType = this.state.inType; - const node = this.startNode(); - node.params = []; - this.state.inType = true; - if (this.match(47) || this.match(140)) { - this.next(); - } else { - this.unexpected(); - } - let defaultRequired = false; - do { - const typeParameter = this.flowParseTypeParameter(defaultRequired); - node.params.push(typeParameter); - if (typeParameter.default) { - defaultRequired = true; - } - if (!this.match(48)) { - this.expect(12); - } - } while (!this.match(48)); - this.expect(48); - this.state.inType = oldInType; - return this.finishNode(node, "TypeParameterDeclaration"); - } - flowParseTypeParameterInstantiation() { - const node = this.startNode(); - const oldInType = this.state.inType; - node.params = []; - this.state.inType = true; - this.expect(47); - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - this.state.noAnonFunctionType = false; - while (!this.match(48)) { - node.params.push(this.flowParseType()); - if (!this.match(48)) { - this.expect(12); - } - } - this.state.noAnonFunctionType = oldNoAnonFunctionType; - this.expect(48); - this.state.inType = oldInType; - return this.finishNode(node, "TypeParameterInstantiation"); - } - flowParseTypeParameterInstantiationCallOrNew() { - const node = this.startNode(); - const oldInType = this.state.inType; - node.params = []; - this.state.inType = true; - this.expect(47); - while (!this.match(48)) { - node.params.push(this.flowParseTypeOrImplicitInstantiation()); - if (!this.match(48)) { - this.expect(12); - } - } - this.expect(48); - this.state.inType = oldInType; - return this.finishNode(node, "TypeParameterInstantiation"); - } - flowParseInterfaceType() { - const node = this.startNode(); - this.expectContextual(127); - node.extends = []; - if (this.eat(81)) { - do { - node.extends.push(this.flowParseInterfaceExtends()); - } while (this.eat(12)); - } - node.body = this.flowParseObjectType({ - allowStatic: false, - allowExact: false, - allowSpread: false, - allowProto: false, - allowInexact: false - }); - return this.finishNode(node, "InterfaceTypeAnnotation"); - } - flowParseObjectPropertyKey() { - return this.match(132) || this.match(131) ? super.parseExprAtom() : this.parseIdentifier(true); - } - flowParseObjectTypeIndexer(node, isStatic, variance) { - node.static = isStatic; - if (this.lookahead().type === 14) { - node.id = this.flowParseObjectPropertyKey(); - node.key = this.flowParseTypeInitialiser(); - } else { - node.id = null; - node.key = this.flowParseType(); - } - this.expect(3); - node.value = this.flowParseTypeInitialiser(); - node.variance = variance; - return this.finishNode(node, "ObjectTypeIndexer"); - } - flowParseObjectTypeInternalSlot(node, isStatic) { - node.static = isStatic; - node.id = this.flowParseObjectPropertyKey(); - this.expect(3); - this.expect(3); - if (this.match(47) || this.match(10)) { - node.method = true; - node.optional = false; - node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.loc.start)); - } else { - node.method = false; - if (this.eat(17)) { - node.optional = true; - } - node.value = this.flowParseTypeInitialiser(); - } - return this.finishNode(node, "ObjectTypeInternalSlot"); - } - flowParseObjectTypeMethodish(node) { - node.params = []; - node.rest = null; - node.typeParameters = null; - node.this = null; - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } - this.expect(10); - if (this.match(78)) { - node.this = this.flowParseFunctionTypeParam(true); - node.this.name = null; - if (!this.match(11)) { - this.expect(12); - } - } - while (!this.match(11) && !this.match(21)) { - node.params.push(this.flowParseFunctionTypeParam(false)); - if (!this.match(11)) { - this.expect(12); - } - } - if (this.eat(21)) { - node.rest = this.flowParseFunctionTypeParam(false); - } - this.expect(11); - node.returnType = this.flowParseTypeInitialiser(); - return this.finishNode(node, "FunctionTypeAnnotation"); - } - flowParseObjectTypeCallProperty(node, isStatic) { - const valueNode = this.startNode(); - node.static = isStatic; - node.value = this.flowParseObjectTypeMethodish(valueNode); - return this.finishNode(node, "ObjectTypeCallProperty"); - } - flowParseObjectType({ - allowStatic, - allowExact, - allowSpread, - allowProto, - allowInexact - }) { - const oldInType = this.state.inType; - this.state.inType = true; - const nodeStart = this.startNode(); - nodeStart.callProperties = []; - nodeStart.properties = []; - nodeStart.indexers = []; - nodeStart.internalSlots = []; - let endDelim; - let exact; - let inexact = false; - if (allowExact && this.match(6)) { - this.expect(6); - endDelim = 9; - exact = true; - } else { - this.expect(5); - endDelim = 8; - exact = false; - } - nodeStart.exact = exact; - while (!this.match(endDelim)) { - let isStatic = false; - let protoStartLoc = null; - let inexactStartLoc = null; - const node = this.startNode(); - if (allowProto && this.isContextual(116)) { - const lookahead = this.lookahead(); - if (lookahead.type !== 14 && lookahead.type !== 17) { - this.next(); - protoStartLoc = this.state.startLoc; - allowStatic = false; - } - } - if (allowStatic && this.isContextual(104)) { - const lookahead = this.lookahead(); - if (lookahead.type !== 14 && lookahead.type !== 17) { - this.next(); - isStatic = true; - } - } - const variance = this.flowParseVariance(); - if (this.eat(0)) { - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (this.eat(0)) { - if (variance) { - this.unexpected(variance.loc.start); - } - nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node, isStatic)); - } else { - nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node, isStatic, variance)); - } - } else if (this.match(10) || this.match(47)) { - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (variance) { - this.unexpected(variance.loc.start); - } - nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, isStatic)); - } else { - let kind = "init"; - if (this.isContextual(98) || this.isContextual(103)) { - const lookahead = this.lookahead(); - if (tokenIsLiteralPropertyName(lookahead.type)) { - kind = this.state.value; - this.next(); - } - } - const propOrInexact = this.flowParseObjectTypeProperty(node, isStatic, protoStartLoc, variance, kind, allowSpread, allowInexact != null ? allowInexact : !exact); - if (propOrInexact === null) { - inexact = true; - inexactStartLoc = this.state.lastTokStartLoc; - } else { - nodeStart.properties.push(propOrInexact); - } - } - this.flowObjectTypeSemicolon(); - if (inexactStartLoc && !this.match(8) && !this.match(9)) { - this.raise(FlowErrors.UnexpectedExplicitInexactInObject, { - at: inexactStartLoc - }); - } - } - this.expect(endDelim); - if (allowSpread) { - nodeStart.inexact = inexact; - } - const out = this.finishNode(nodeStart, "ObjectTypeAnnotation"); - this.state.inType = oldInType; - return out; - } - flowParseObjectTypeProperty(node, isStatic, protoStartLoc, variance, kind, allowSpread, allowInexact) { - if (this.eat(21)) { - const isInexactToken = this.match(12) || this.match(13) || this.match(8) || this.match(9); - if (isInexactToken) { - if (!allowSpread) { - this.raise(FlowErrors.InexactInsideNonObject, { - at: this.state.lastTokStartLoc - }); - } else if (!allowInexact) { - this.raise(FlowErrors.InexactInsideExact, { - at: this.state.lastTokStartLoc - }); - } - if (variance) { - this.raise(FlowErrors.InexactVariance, { - at: variance - }); - } - return null; - } - if (!allowSpread) { - this.raise(FlowErrors.UnexpectedSpreadType, { - at: this.state.lastTokStartLoc - }); - } - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (variance) { - this.raise(FlowErrors.SpreadVariance, { - at: variance - }); - } - node.argument = this.flowParseType(); - return this.finishNode(node, "ObjectTypeSpreadProperty"); - } else { - node.key = this.flowParseObjectPropertyKey(); - node.static = isStatic; - node.proto = protoStartLoc != null; - node.kind = kind; - let optional = false; - if (this.match(47) || this.match(10)) { - node.method = true; - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (variance) { - this.unexpected(variance.loc.start); - } - node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.loc.start)); - if (kind === "get" || kind === "set") { - this.flowCheckGetterSetterParams(node); - } - if (!allowSpread && node.key.name === "constructor" && node.value.this) { - this.raise(FlowErrors.ThisParamBannedInConstructor, { - at: node.value.this - }); - } - } else { - if (kind !== "init") this.unexpected(); - node.method = false; - if (this.eat(17)) { - optional = true; - } - node.value = this.flowParseTypeInitialiser(); - node.variance = variance; - } - node.optional = optional; - return this.finishNode(node, "ObjectTypeProperty"); - } - } - flowCheckGetterSetterParams(property) { - const paramCount = property.kind === "get" ? 0 : 1; - const length = property.value.params.length + (property.value.rest ? 1 : 0); - if (property.value.this) { - this.raise(property.kind === "get" ? FlowErrors.GetterMayNotHaveThisParam : FlowErrors.SetterMayNotHaveThisParam, { - at: property.value.this - }); - } - if (length !== paramCount) { - this.raise(property.kind === "get" ? Errors.BadGetterArity : Errors.BadSetterArity, { - at: property - }); - } - if (property.kind === "set" && property.value.rest) { - this.raise(Errors.BadSetterRestParameter, { - at: property - }); - } - } - flowObjectTypeSemicolon() { - if (!this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9)) { - this.unexpected(); - } - } - flowParseQualifiedTypeIdentifier(startLoc, id) { - var _startLoc; - (_startLoc = startLoc) != null ? _startLoc : startLoc = this.state.startLoc; - let node = id || this.flowParseRestrictedIdentifier(true); - while (this.eat(16)) { - const node2 = this.startNodeAt(startLoc); - node2.qualification = node; - node2.id = this.flowParseRestrictedIdentifier(true); - node = this.finishNode(node2, "QualifiedTypeIdentifier"); - } - return node; - } - flowParseGenericType(startLoc, id) { - const node = this.startNodeAt(startLoc); - node.typeParameters = null; - node.id = this.flowParseQualifiedTypeIdentifier(startLoc, id); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterInstantiation(); - } - return this.finishNode(node, "GenericTypeAnnotation"); - } - flowParseTypeofType() { - const node = this.startNode(); - this.expect(87); - node.argument = this.flowParsePrimaryType(); - return this.finishNode(node, "TypeofTypeAnnotation"); - } - flowParseTupleType() { - const node = this.startNode(); - node.types = []; - this.expect(0); - while (this.state.pos < this.length && !this.match(3)) { - node.types.push(this.flowParseType()); - if (this.match(3)) break; - this.expect(12); - } - this.expect(3); - return this.finishNode(node, "TupleTypeAnnotation"); - } - flowParseFunctionTypeParam(first) { - let name = null; - let optional = false; - let typeAnnotation = null; - const node = this.startNode(); - const lh = this.lookahead(); - const isThis = this.state.type === 78; - if (lh.type === 14 || lh.type === 17) { - if (isThis && !first) { - this.raise(FlowErrors.ThisParamMustBeFirst, { - at: node - }); - } - name = this.parseIdentifier(isThis); - if (this.eat(17)) { - optional = true; - if (isThis) { - this.raise(FlowErrors.ThisParamMayNotBeOptional, { - at: node - }); - } - } - typeAnnotation = this.flowParseTypeInitialiser(); - } else { - typeAnnotation = this.flowParseType(); - } - node.name = name; - node.optional = optional; - node.typeAnnotation = typeAnnotation; - return this.finishNode(node, "FunctionTypeParam"); - } - reinterpretTypeAsFunctionTypeParam(type) { - const node = this.startNodeAt(type.loc.start); - node.name = null; - node.optional = false; - node.typeAnnotation = type; - return this.finishNode(node, "FunctionTypeParam"); - } - flowParseFunctionTypeParams(params = []) { - let rest = null; - let _this = null; - if (this.match(78)) { - _this = this.flowParseFunctionTypeParam(true); - _this.name = null; - if (!this.match(11)) { - this.expect(12); - } - } - while (!this.match(11) && !this.match(21)) { - params.push(this.flowParseFunctionTypeParam(false)); - if (!this.match(11)) { - this.expect(12); - } - } - if (this.eat(21)) { - rest = this.flowParseFunctionTypeParam(false); - } - return { - params, - rest, - _this - }; - } - flowIdentToTypeAnnotation(startLoc, node, id) { - switch (id.name) { - case "any": - return this.finishNode(node, "AnyTypeAnnotation"); - case "bool": - case "boolean": - return this.finishNode(node, "BooleanTypeAnnotation"); - case "mixed": - return this.finishNode(node, "MixedTypeAnnotation"); - case "empty": - return this.finishNode(node, "EmptyTypeAnnotation"); - case "number": - return this.finishNode(node, "NumberTypeAnnotation"); - case "string": - return this.finishNode(node, "StringTypeAnnotation"); - case "symbol": - return this.finishNode(node, "SymbolTypeAnnotation"); - default: - this.checkNotUnderscore(id.name); - return this.flowParseGenericType(startLoc, id); - } - } - flowParsePrimaryType() { - const startLoc = this.state.startLoc; - const node = this.startNode(); - let tmp; - let type; - let isGroupedType = false; - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - switch (this.state.type) { - case 5: - return this.flowParseObjectType({ - allowStatic: false, - allowExact: false, - allowSpread: true, - allowProto: false, - allowInexact: true - }); - case 6: - return this.flowParseObjectType({ - allowStatic: false, - allowExact: true, - allowSpread: true, - allowProto: false, - allowInexact: false - }); - case 0: - this.state.noAnonFunctionType = false; - type = this.flowParseTupleType(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - return type; - case 47: - node.typeParameters = this.flowParseTypeParameterDeclaration(); - this.expect(10); - tmp = this.flowParseFunctionTypeParams(); - node.params = tmp.params; - node.rest = tmp.rest; - node.this = tmp._this; - this.expect(11); - this.expect(19); - node.returnType = this.flowParseType(); - return this.finishNode(node, "FunctionTypeAnnotation"); - case 10: - this.next(); - if (!this.match(11) && !this.match(21)) { - if (tokenIsIdentifier(this.state.type) || this.match(78)) { - const token = this.lookahead().type; - isGroupedType = token !== 17 && token !== 14; - } else { - isGroupedType = true; - } - } - if (isGroupedType) { - this.state.noAnonFunctionType = false; - type = this.flowParseType(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - if (this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) { - this.expect(11); - return type; - } else { - this.eat(12); - } - } - if (type) { - tmp = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(type)]); - } else { - tmp = this.flowParseFunctionTypeParams(); - } - node.params = tmp.params; - node.rest = tmp.rest; - node.this = tmp._this; - this.expect(11); - this.expect(19); - node.returnType = this.flowParseType(); - node.typeParameters = null; - return this.finishNode(node, "FunctionTypeAnnotation"); - case 131: - return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation"); - case 85: - case 86: - node.value = this.match(85); - this.next(); - return this.finishNode(node, "BooleanLiteralTypeAnnotation"); - case 53: - if (this.state.value === "-") { - this.next(); - if (this.match(132)) { - return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", node); - } - if (this.match(133)) { - return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", node); - } - throw this.raise(FlowErrors.UnexpectedSubtractionOperand, { - at: this.state.startLoc - }); - } - throw this.unexpected(); - case 132: - return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation"); - case 133: - return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation"); - case 88: - this.next(); - return this.finishNode(node, "VoidTypeAnnotation"); - case 84: - this.next(); - return this.finishNode(node, "NullLiteralTypeAnnotation"); - case 78: - this.next(); - return this.finishNode(node, "ThisTypeAnnotation"); - case 55: - this.next(); - return this.finishNode(node, "ExistsTypeAnnotation"); - case 87: - return this.flowParseTypeofType(); - default: - if (tokenIsKeyword(this.state.type)) { - const label = tokenLabelName(this.state.type); - this.next(); - return super.createIdentifier(node, label); - } else if (tokenIsIdentifier(this.state.type)) { - if (this.isContextual(127)) { - return this.flowParseInterfaceType(); - } - return this.flowIdentToTypeAnnotation(startLoc, node, this.parseIdentifier()); - } - } - throw this.unexpected(); - } - flowParsePostfixType() { - const startLoc = this.state.startLoc; - let type = this.flowParsePrimaryType(); - let seenOptionalIndexedAccess = false; - while ((this.match(0) || this.match(18)) && !this.canInsertSemicolon()) { - const node = this.startNodeAt(startLoc); - const optional = this.eat(18); - seenOptionalIndexedAccess = seenOptionalIndexedAccess || optional; - this.expect(0); - if (!optional && this.match(3)) { - node.elementType = type; - this.next(); - type = this.finishNode(node, "ArrayTypeAnnotation"); - } else { - node.objectType = type; - node.indexType = this.flowParseType(); - this.expect(3); - if (seenOptionalIndexedAccess) { - node.optional = optional; - type = this.finishNode(node, "OptionalIndexedAccessType"); - } else { - type = this.finishNode(node, "IndexedAccessType"); - } - } - } - return type; - } - flowParsePrefixType() { - const node = this.startNode(); - if (this.eat(17)) { - node.typeAnnotation = this.flowParsePrefixType(); - return this.finishNode(node, "NullableTypeAnnotation"); - } else { - return this.flowParsePostfixType(); - } - } - flowParseAnonFunctionWithoutParens() { - const param = this.flowParsePrefixType(); - if (!this.state.noAnonFunctionType && this.eat(19)) { - const node = this.startNodeAt(param.loc.start); - node.params = [this.reinterpretTypeAsFunctionTypeParam(param)]; - node.rest = null; - node.this = null; - node.returnType = this.flowParseType(); - node.typeParameters = null; - return this.finishNode(node, "FunctionTypeAnnotation"); - } - return param; - } - flowParseIntersectionType() { - const node = this.startNode(); - this.eat(45); - const type = this.flowParseAnonFunctionWithoutParens(); - node.types = [type]; - while (this.eat(45)) { - node.types.push(this.flowParseAnonFunctionWithoutParens()); - } - return node.types.length === 1 ? type : this.finishNode(node, "IntersectionTypeAnnotation"); - } - flowParseUnionType() { - const node = this.startNode(); - this.eat(43); - const type = this.flowParseIntersectionType(); - node.types = [type]; - while (this.eat(43)) { - node.types.push(this.flowParseIntersectionType()); - } - return node.types.length === 1 ? type : this.finishNode(node, "UnionTypeAnnotation"); - } - flowParseType() { - const oldInType = this.state.inType; - this.state.inType = true; - const type = this.flowParseUnionType(); - this.state.inType = oldInType; - return type; - } - flowParseTypeOrImplicitInstantiation() { - if (this.state.type === 130 && this.state.value === "_") { - const startLoc = this.state.startLoc; - const node = this.parseIdentifier(); - return this.flowParseGenericType(startLoc, node); - } else { - return this.flowParseType(); - } - } - flowParseTypeAnnotation() { - const node = this.startNode(); - node.typeAnnotation = this.flowParseTypeInitialiser(); - return this.finishNode(node, "TypeAnnotation"); - } - flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride) { - const ident = allowPrimitiveOverride ? this.parseIdentifier() : this.flowParseRestrictedIdentifier(); - if (this.match(14)) { - ident.typeAnnotation = this.flowParseTypeAnnotation(); - this.resetEndLocation(ident); - } - return ident; - } - typeCastToParameter(node) { - node.expression.typeAnnotation = node.typeAnnotation; - this.resetEndLocation(node.expression, node.typeAnnotation.loc.end); - return node.expression; - } - flowParseVariance() { - let variance = null; - if (this.match(53)) { - variance = this.startNode(); - if (this.state.value === "+") { - variance.kind = "plus"; - } else { - variance.kind = "minus"; - } - this.next(); - return this.finishNode(variance, "Variance"); - } - return variance; - } - parseFunctionBody(node, allowExpressionBody, isMethod = false) { - if (allowExpressionBody) { - return this.forwardNoArrowParamsConversionAt(node, () => super.parseFunctionBody(node, true, isMethod)); - } - return super.parseFunctionBody(node, false, isMethod); - } - parseFunctionBodyAndFinish(node, type, isMethod = false) { - if (this.match(14)) { - const typeNode = this.startNode(); - [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); - node.returnType = typeNode.typeAnnotation ? this.finishNode(typeNode, "TypeAnnotation") : null; - } - return super.parseFunctionBodyAndFinish(node, type, isMethod); - } - parseStatementLike(flags) { - if (this.state.strict && this.isContextual(127)) { - const lookahead = this.lookahead(); - if (tokenIsKeywordOrIdentifier(lookahead.type)) { - const node = this.startNode(); - this.next(); - return this.flowParseInterface(node); - } - } else if (this.shouldParseEnums() && this.isContextual(124)) { - const node = this.startNode(); - this.next(); - return this.flowParseEnumDeclaration(node); - } - const stmt = super.parseStatementLike(flags); - if (this.flowPragma === undefined && !this.isValidDirective(stmt)) { - this.flowPragma = null; - } - return stmt; - } - parseExpressionStatement(node, expr, decorators) { - if (expr.type === "Identifier") { - if (expr.name === "declare") { - if (this.match(80) || tokenIsIdentifier(this.state.type) || this.match(68) || this.match(74) || this.match(82)) { - return this.flowParseDeclare(node); - } - } else if (tokenIsIdentifier(this.state.type)) { - if (expr.name === "interface") { - return this.flowParseInterface(node); - } else if (expr.name === "type") { - return this.flowParseTypeAlias(node); - } else if (expr.name === "opaque") { - return this.flowParseOpaqueType(node, false); - } - } - } - return super.parseExpressionStatement(node, expr, decorators); - } - shouldParseExportDeclaration() { - const { - type - } = this.state; - if (tokenIsFlowInterfaceOrTypeOrOpaque(type) || this.shouldParseEnums() && type === 124) { - return !this.state.containsEsc; - } - return super.shouldParseExportDeclaration(); - } - isExportDefaultSpecifier() { - const { - type - } = this.state; - if (tokenIsFlowInterfaceOrTypeOrOpaque(type) || this.shouldParseEnums() && type === 124) { - return this.state.containsEsc; - } - return super.isExportDefaultSpecifier(); - } - parseExportDefaultExpression() { - if (this.shouldParseEnums() && this.isContextual(124)) { - const node = this.startNode(); - this.next(); - return this.flowParseEnumDeclaration(node); - } - return super.parseExportDefaultExpression(); - } - parseConditional(expr, startLoc, refExpressionErrors) { - if (!this.match(17)) return expr; - if (this.state.maybeInArrowParameters) { - const nextCh = this.lookaheadCharCode(); - if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) { - this.setOptionalParametersError(refExpressionErrors); - return expr; - } - } - this.expect(17); - const state = this.state.clone(); - const originalNoArrowAt = this.state.noArrowAt; - const node = this.startNodeAt(startLoc); - let { - consequent, - failed - } = this.tryParseConditionalConsequent(); - let [valid, invalid] = this.getArrowLikeExpressions(consequent); - if (failed || invalid.length > 0) { - const noArrowAt = [...originalNoArrowAt]; - if (invalid.length > 0) { - this.state = state; - this.state.noArrowAt = noArrowAt; - for (let i = 0; i < invalid.length; i++) { - noArrowAt.push(invalid[i].start); - } - ({ - consequent, - failed - } = this.tryParseConditionalConsequent()); - [valid, invalid] = this.getArrowLikeExpressions(consequent); - } - if (failed && valid.length > 1) { - this.raise(FlowErrors.AmbiguousConditionalArrow, { - at: state.startLoc - }); - } - if (failed && valid.length === 1) { - this.state = state; - noArrowAt.push(valid[0].start); - this.state.noArrowAt = noArrowAt; - ({ - consequent, - failed - } = this.tryParseConditionalConsequent()); - } - } - this.getArrowLikeExpressions(consequent, true); - this.state.noArrowAt = originalNoArrowAt; - this.expect(14); - node.test = expr; - node.consequent = consequent; - node.alternate = this.forwardNoArrowParamsConversionAt(node, () => this.parseMaybeAssign(undefined, undefined)); - return this.finishNode(node, "ConditionalExpression"); - } - tryParseConditionalConsequent() { - this.state.noArrowParamsConversionAt.push(this.state.start); - const consequent = this.parseMaybeAssignAllowIn(); - const failed = !this.match(14); - this.state.noArrowParamsConversionAt.pop(); - return { - consequent, - failed - }; - } - getArrowLikeExpressions(node, disallowInvalid) { - const stack = [node]; - const arrows = []; - while (stack.length !== 0) { - const node = stack.pop(); - if (node.type === "ArrowFunctionExpression") { - if (node.typeParameters || !node.returnType) { - this.finishArrowValidation(node); - } else { - arrows.push(node); - } - stack.push(node.body); - } else if (node.type === "ConditionalExpression") { - stack.push(node.consequent); - stack.push(node.alternate); - } - } - if (disallowInvalid) { - arrows.forEach(node => this.finishArrowValidation(node)); - return [arrows, []]; - } - return partition(arrows, node => node.params.every(param => this.isAssignable(param, true))); - } - finishArrowValidation(node) { - var _node$extra; - this.toAssignableList(node.params, (_node$extra = node.extra) == null ? void 0 : _node$extra.trailingCommaLoc, false); - this.scope.enter(SCOPE_FUNCTION | SCOPE_ARROW); - super.checkParams(node, false, true); - this.scope.exit(); - } - forwardNoArrowParamsConversionAt(node, parse) { - let result; - if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { - this.state.noArrowParamsConversionAt.push(this.state.start); - result = parse(); - this.state.noArrowParamsConversionAt.pop(); - } else { - result = parse(); - } - return result; - } - parseParenItem(node, startLoc) { - node = super.parseParenItem(node, startLoc); - if (this.eat(17)) { - node.optional = true; - this.resetEndLocation(node); - } - if (this.match(14)) { - const typeCastNode = this.startNodeAt(startLoc); - typeCastNode.expression = node; - typeCastNode.typeAnnotation = this.flowParseTypeAnnotation(); - return this.finishNode(typeCastNode, "TypeCastExpression"); - } - return node; - } - assertModuleNodeAllowed(node) { - if (node.type === "ImportDeclaration" && (node.importKind === "type" || node.importKind === "typeof") || node.type === "ExportNamedDeclaration" && node.exportKind === "type" || node.type === "ExportAllDeclaration" && node.exportKind === "type") { - return; - } - super.assertModuleNodeAllowed(node); - } - parseExport(node, decorators) { - const decl = super.parseExport(node, decorators); - if (decl.type === "ExportNamedDeclaration" || decl.type === "ExportAllDeclaration") { - decl.exportKind = decl.exportKind || "value"; - } - return decl; - } - parseExportDeclaration(node) { - if (this.isContextual(128)) { - node.exportKind = "type"; - const declarationNode = this.startNode(); - this.next(); - if (this.match(5)) { - node.specifiers = this.parseExportSpecifiers(true); - super.parseExportFrom(node); - return null; - } else { - return this.flowParseTypeAlias(declarationNode); - } - } else if (this.isContextual(129)) { - node.exportKind = "type"; - const declarationNode = this.startNode(); - this.next(); - return this.flowParseOpaqueType(declarationNode, false); - } else if (this.isContextual(127)) { - node.exportKind = "type"; - const declarationNode = this.startNode(); - this.next(); - return this.flowParseInterface(declarationNode); - } else if (this.shouldParseEnums() && this.isContextual(124)) { - node.exportKind = "value"; - const declarationNode = this.startNode(); - this.next(); - return this.flowParseEnumDeclaration(declarationNode); - } else { - return super.parseExportDeclaration(node); - } - } - eatExportStar(node) { - if (super.eatExportStar(node)) return true; - if (this.isContextual(128) && this.lookahead().type === 55) { - node.exportKind = "type"; - this.next(); - this.next(); - return true; - } - return false; - } - maybeParseExportNamespaceSpecifier(node) { - const { - startLoc - } = this.state; - const hasNamespace = super.maybeParseExportNamespaceSpecifier(node); - if (hasNamespace && node.exportKind === "type") { - this.unexpected(startLoc); - } - return hasNamespace; - } - parseClassId(node, isStatement, optionalId) { - super.parseClassId(node, isStatement, optionalId); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } - } - parseClassMember(classBody, member, state) { - const { - startLoc - } = this.state; - if (this.isContextual(123)) { - if (super.parseClassMemberFromModifier(classBody, member)) { - return; - } - member.declare = true; - } - super.parseClassMember(classBody, member, state); - if (member.declare) { - if (member.type !== "ClassProperty" && member.type !== "ClassPrivateProperty" && member.type !== "PropertyDefinition") { - this.raise(FlowErrors.DeclareClassElement, { - at: startLoc - }); - } else if (member.value) { - this.raise(FlowErrors.DeclareClassFieldInitializer, { - at: member.value - }); - } - } - } - isIterator(word) { - return word === "iterator" || word === "asyncIterator"; - } - readIterator() { - const word = super.readWord1(); - const fullWord = "@@" + word; - if (!this.isIterator(word) || !this.state.inType) { - this.raise(Errors.InvalidIdentifier, { - at: this.state.curPosition(), - identifierName: fullWord - }); - } - this.finishToken(130, fullWord); - } - getTokenFromCode(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (code === 123 && next === 124) { - return this.finishOp(6, 2); - } else if (this.state.inType && (code === 62 || code === 60)) { - return this.finishOp(code === 62 ? 48 : 47, 1); - } else if (this.state.inType && code === 63) { - if (next === 46) { - return this.finishOp(18, 2); - } - return this.finishOp(17, 1); - } else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) { - this.state.pos += 2; - return this.readIterator(); - } else { - return super.getTokenFromCode(code); - } - } - isAssignable(node, isBinding) { - if (node.type === "TypeCastExpression") { - return this.isAssignable(node.expression, isBinding); - } else { - return super.isAssignable(node, isBinding); - } - } - toAssignable(node, isLHS = false) { - if (!isLHS && node.type === "AssignmentExpression" && node.left.type === "TypeCastExpression") { - node.left = this.typeCastToParameter(node.left); - } - super.toAssignable(node, isLHS); - } - toAssignableList(exprList, trailingCommaLoc, isLHS) { - for (let i = 0; i < exprList.length; i++) { - const expr = exprList[i]; - if ((expr == null ? void 0 : expr.type) === "TypeCastExpression") { - exprList[i] = this.typeCastToParameter(expr); - } - } - super.toAssignableList(exprList, trailingCommaLoc, isLHS); - } - toReferencedList(exprList, isParenthesizedExpr) { - for (let i = 0; i < exprList.length; i++) { - var _expr$extra; - const expr = exprList[i]; - if (expr && expr.type === "TypeCastExpression" && !((_expr$extra = expr.extra) != null && _expr$extra.parenthesized) && (exprList.length > 1 || !isParenthesizedExpr)) { - this.raise(FlowErrors.TypeCastInPattern, { - at: expr.typeAnnotation - }); - } - } - return exprList; - } - parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { - const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors); - if (canBePattern && !this.state.maybeInArrowParameters) { - this.toReferencedList(node.elements); - } - return node; - } - isValidLVal(type, isParenthesized, binding) { - return type === "TypeCastExpression" || super.isValidLVal(type, isParenthesized, binding); - } - parseClassProperty(node) { - if (this.match(14)) { - node.typeAnnotation = this.flowParseTypeAnnotation(); - } - return super.parseClassProperty(node); - } - parseClassPrivateProperty(node) { - if (this.match(14)) { - node.typeAnnotation = this.flowParseTypeAnnotation(); - } - return super.parseClassPrivateProperty(node); - } - isClassMethod() { - return this.match(47) || super.isClassMethod(); - } - isClassProperty() { - return this.match(14) || super.isClassProperty(); - } - isNonstaticConstructor(method) { - return !this.match(14) && super.isNonstaticConstructor(method); - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - if (method.variance) { - this.unexpected(method.variance.loc.start); - } - delete method.variance; - if (this.match(47)) { - method.typeParameters = this.flowParseTypeParameterDeclaration(); - } - super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper); - if (method.params && isConstructor) { - const params = method.params; - if (params.length > 0 && this.isThisParam(params[0])) { - this.raise(FlowErrors.ThisParamBannedInConstructor, { - at: method - }); - } - } else if (method.type === "MethodDefinition" && isConstructor && method.value.params) { - const params = method.value.params; - if (params.length > 0 && this.isThisParam(params[0])) { - this.raise(FlowErrors.ThisParamBannedInConstructor, { - at: method - }); - } - } - } - pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { - if (method.variance) { - this.unexpected(method.variance.loc.start); - } - delete method.variance; - if (this.match(47)) { - method.typeParameters = this.flowParseTypeParameterDeclaration(); - } - super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync); - } - parseClassSuper(node) { - super.parseClassSuper(node); - if (node.superClass && this.match(47)) { - node.superTypeParameters = this.flowParseTypeParameterInstantiation(); - } - if (this.isContextual(111)) { - this.next(); - const implemented = node.implements = []; - do { - const node = this.startNode(); - node.id = this.flowParseRestrictedIdentifier(true); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterInstantiation(); - } else { - node.typeParameters = null; - } - implemented.push(this.finishNode(node, "ClassImplements")); - } while (this.eat(12)); - } - } - checkGetterSetterParams(method) { - super.checkGetterSetterParams(method); - const params = this.getObjectOrClassMethodParams(method); - if (params.length > 0) { - const param = params[0]; - if (this.isThisParam(param) && method.kind === "get") { - this.raise(FlowErrors.GetterMayNotHaveThisParam, { - at: param - }); - } else if (this.isThisParam(param)) { - this.raise(FlowErrors.SetterMayNotHaveThisParam, { - at: param - }); - } - } - } - parsePropertyNamePrefixOperator(node) { - node.variance = this.flowParseVariance(); - } - parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { - if (prop.variance) { - this.unexpected(prop.variance.loc.start); - } - delete prop.variance; - let typeParameters; - if (this.match(47) && !isAccessor) { - typeParameters = this.flowParseTypeParameterDeclaration(); - if (!this.match(10)) this.unexpected(); - } - const result = super.parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors); - if (typeParameters) { - (result.value || result).typeParameters = typeParameters; - } - return result; - } - parseAssignableListItemTypes(param) { - if (this.eat(17)) { - if (param.type !== "Identifier") { - this.raise(FlowErrors.PatternIsOptional, { - at: param - }); - } - if (this.isThisParam(param)) { - this.raise(FlowErrors.ThisParamMayNotBeOptional, { - at: param - }); - } - param.optional = true; - } - if (this.match(14)) { - param.typeAnnotation = this.flowParseTypeAnnotation(); - } else if (this.isThisParam(param)) { - this.raise(FlowErrors.ThisParamAnnotationRequired, { - at: param - }); - } - if (this.match(29) && this.isThisParam(param)) { - this.raise(FlowErrors.ThisParamNoDefault, { - at: param - }); - } - this.resetEndLocation(param); - return param; - } - parseMaybeDefault(startLoc, left) { - const node = super.parseMaybeDefault(startLoc, left); - if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) { - this.raise(FlowErrors.TypeBeforeInitializer, { - at: node.typeAnnotation - }); - } - return node; - } - shouldParseDefaultImport(node) { - if (!hasTypeImportKind(node)) { - return super.shouldParseDefaultImport(node); - } - return isMaybeDefaultImport(this.state.type); - } - checkImportReflection(node) { - super.checkImportReflection(node); - if (node.module && node.importKind !== "value") { - this.raise(FlowErrors.ImportReflectionHasImportType, { - at: node.specifiers[0].loc.start - }); - } - } - parseImportSpecifierLocal(node, specifier, type) { - specifier.local = hasTypeImportKind(node) ? this.flowParseRestrictedIdentifier(true, true) : this.parseIdentifier(); - node.specifiers.push(this.finishImportSpecifier(specifier, type)); - } - maybeParseDefaultImportSpecifier(node) { - node.importKind = "value"; - let kind = null; - if (this.match(87)) { - kind = "typeof"; - } else if (this.isContextual(128)) { - kind = "type"; - } - if (kind) { - const lh = this.lookahead(); - const { - type - } = lh; - if (kind === "type" && type === 55) { - this.unexpected(null, lh.type); - } - if (isMaybeDefaultImport(type) || type === 5 || type === 55) { - this.next(); - node.importKind = kind; - } - } - return super.maybeParseDefaultImportSpecifier(node); - } - parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { - const firstIdent = specifier.imported; - let specifierTypeKind = null; - if (firstIdent.type === "Identifier") { - if (firstIdent.name === "type") { - specifierTypeKind = "type"; - } else if (firstIdent.name === "typeof") { - specifierTypeKind = "typeof"; - } - } - let isBinding = false; - if (this.isContextual(93) && !this.isLookaheadContextual("as")) { - const as_ident = this.parseIdentifier(true); - if (specifierTypeKind !== null && !tokenIsKeywordOrIdentifier(this.state.type)) { - specifier.imported = as_ident; - specifier.importKind = specifierTypeKind; - specifier.local = cloneIdentifier(as_ident); - } else { - specifier.imported = firstIdent; - specifier.importKind = null; - specifier.local = this.parseIdentifier(); - } - } else { - if (specifierTypeKind !== null && tokenIsKeywordOrIdentifier(this.state.type)) { - specifier.imported = this.parseIdentifier(true); - specifier.importKind = specifierTypeKind; - } else { - if (importedIsString) { - throw this.raise(Errors.ImportBindingIsString, { - at: specifier, - importName: firstIdent.value - }); - } - specifier.imported = firstIdent; - specifier.importKind = null; - } - if (this.eatContextual(93)) { - specifier.local = this.parseIdentifier(); - } else { - isBinding = true; - specifier.local = cloneIdentifier(specifier.imported); - } - } - const specifierIsTypeImport = hasTypeImportKind(specifier); - if (isInTypeOnlyImport && specifierIsTypeImport) { - this.raise(FlowErrors.ImportTypeShorthandOnlyInPureImport, { - at: specifier - }); - } - if (isInTypeOnlyImport || specifierIsTypeImport) { - this.checkReservedType(specifier.local.name, specifier.local.loc.start, true); - } - if (isBinding && !isInTypeOnlyImport && !specifierIsTypeImport) { - this.checkReservedWord(specifier.local.name, specifier.loc.start, true, true); - } - return this.finishImportSpecifier(specifier, "ImportSpecifier"); - } - parseBindingAtom() { - switch (this.state.type) { - case 78: - return this.parseIdentifier(true); - default: - return super.parseBindingAtom(); - } - } - parseFunctionParams(node, isConstructor) { - const kind = node.kind; - if (kind !== "get" && kind !== "set" && this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } - super.parseFunctionParams(node, isConstructor); - } - parseVarId(decl, kind) { - super.parseVarId(decl, kind); - if (this.match(14)) { - decl.id.typeAnnotation = this.flowParseTypeAnnotation(); - this.resetEndLocation(decl.id); - } - } - parseAsyncArrowFromCallExpression(node, call) { - if (this.match(14)) { - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - this.state.noAnonFunctionType = true; - node.returnType = this.flowParseTypeAnnotation(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - } - return super.parseAsyncArrowFromCallExpression(node, call); - } - shouldParseAsyncArrow() { - return this.match(14) || super.shouldParseAsyncArrow(); - } - parseMaybeAssign(refExpressionErrors, afterLeftParse) { - var _jsx; - let state = null; - let jsx; - if (this.hasPlugin("jsx") && (this.match(140) || this.match(47))) { - state = this.state.clone(); - jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); - if (!jsx.error) return jsx.node; - const { - context - } = this.state; - const currentContext = context[context.length - 1]; - if (currentContext === types.j_oTag || currentContext === types.j_expr) { - context.pop(); - } - } - if ((_jsx = jsx) != null && _jsx.error || this.match(47)) { - var _jsx2, _jsx3; - state = state || this.state.clone(); - let typeParameters; - const arrow = this.tryParse(abort => { - var _arrowExpression$extr; - typeParameters = this.flowParseTypeParameterDeclaration(); - const arrowExpression = this.forwardNoArrowParamsConversionAt(typeParameters, () => { - const result = super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - this.resetStartLocationFromNode(result, typeParameters); - return result; - }); - if ((_arrowExpression$extr = arrowExpression.extra) != null && _arrowExpression$extr.parenthesized) abort(); - const expr = this.maybeUnwrapTypeCastExpression(arrowExpression); - if (expr.type !== "ArrowFunctionExpression") abort(); - expr.typeParameters = typeParameters; - this.resetStartLocationFromNode(expr, typeParameters); - return arrowExpression; - }, state); - let arrowExpression = null; - if (arrow.node && this.maybeUnwrapTypeCastExpression(arrow.node).type === "ArrowFunctionExpression") { - if (!arrow.error && !arrow.aborted) { - if (arrow.node.async) { - this.raise(FlowErrors.UnexpectedTypeParameterBeforeAsyncArrowFunction, { - at: typeParameters - }); - } - return arrow.node; - } - arrowExpression = arrow.node; - } - if ((_jsx2 = jsx) != null && _jsx2.node) { - this.state = jsx.failState; - return jsx.node; - } - if (arrowExpression) { - this.state = arrow.failState; - return arrowExpression; - } - if ((_jsx3 = jsx) != null && _jsx3.thrown) throw jsx.error; - if (arrow.thrown) throw arrow.error; - throw this.raise(FlowErrors.UnexpectedTokenAfterTypeParameter, { - at: typeParameters - }); - } - return super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - } - parseArrow(node) { - if (this.match(14)) { - const result = this.tryParse(() => { - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - this.state.noAnonFunctionType = true; - const typeNode = this.startNode(); - [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - if (this.canInsertSemicolon()) this.unexpected(); - if (!this.match(19)) this.unexpected(); - return typeNode; - }); - if (result.thrown) return null; - if (result.error) this.state = result.failState; - node.returnType = result.node.typeAnnotation ? this.finishNode(result.node, "TypeAnnotation") : null; - } - return super.parseArrow(node); - } - shouldParseArrow(params) { - return this.match(14) || super.shouldParseArrow(params); - } - setArrowFunctionParameters(node, params) { - if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { - node.params = params; - } else { - super.setArrowFunctionParameters(node, params); - } - } - checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged = true) { - if (isArrowFunction && this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { - return; - } - for (let i = 0; i < node.params.length; i++) { - if (this.isThisParam(node.params[i]) && i > 0) { - this.raise(FlowErrors.ThisParamMustBeFirst, { - at: node.params[i] - }); - } - } - return super.checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged); - } - parseParenAndDistinguishExpression(canBeArrow) { - return super.parseParenAndDistinguishExpression(canBeArrow && this.state.noArrowAt.indexOf(this.state.start) === -1); - } - parseSubscripts(base, startLoc, noCalls) { - if (base.type === "Identifier" && base.name === "async" && this.state.noArrowAt.indexOf(startLoc.index) !== -1) { - this.next(); - const node = this.startNodeAt(startLoc); - node.callee = base; - node.arguments = super.parseCallExpressionArguments(11, false); - base = this.finishNode(node, "CallExpression"); - } else if (base.type === "Identifier" && base.name === "async" && this.match(47)) { - const state = this.state.clone(); - const arrow = this.tryParse(abort => this.parseAsyncArrowWithTypeParameters(startLoc) || abort(), state); - if (!arrow.error && !arrow.aborted) return arrow.node; - const result = this.tryParse(() => super.parseSubscripts(base, startLoc, noCalls), state); - if (result.node && !result.error) return result.node; - if (arrow.node) { - this.state = arrow.failState; - return arrow.node; - } - if (result.node) { - this.state = result.failState; - return result.node; - } - throw arrow.error || result.error; - } - return super.parseSubscripts(base, startLoc, noCalls); - } - parseSubscript(base, startLoc, noCalls, subscriptState) { - if (this.match(18) && this.isLookaheadToken_lt()) { - subscriptState.optionalChainMember = true; - if (noCalls) { - subscriptState.stop = true; - return base; - } - this.next(); - const node = this.startNodeAt(startLoc); - node.callee = base; - node.typeArguments = this.flowParseTypeParameterInstantiation(); - this.expect(10); - node.arguments = this.parseCallExpressionArguments(11, false); - node.optional = true; - return this.finishCallExpression(node, true); - } else if (!noCalls && this.shouldParseTypes() && this.match(47)) { - const node = this.startNodeAt(startLoc); - node.callee = base; - const result = this.tryParse(() => { - node.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(); - this.expect(10); - node.arguments = super.parseCallExpressionArguments(11, false); - if (subscriptState.optionalChainMember) { - node.optional = false; - } - return this.finishCallExpression(node, subscriptState.optionalChainMember); - }); - if (result.node) { - if (result.error) this.state = result.failState; - return result.node; - } - } - return super.parseSubscript(base, startLoc, noCalls, subscriptState); - } - parseNewCallee(node) { - super.parseNewCallee(node); - let targs = null; - if (this.shouldParseTypes() && this.match(47)) { - targs = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node; - } - node.typeArguments = targs; - } - parseAsyncArrowWithTypeParameters(startLoc) { - const node = this.startNodeAt(startLoc); - this.parseFunctionParams(node, false); - if (!this.parseArrow(node)) return; - return super.parseArrowExpression(node, undefined, true); - } - readToken_mult_modulo(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (code === 42 && next === 47 && this.state.hasFlowComment) { - this.state.hasFlowComment = false; - this.state.pos += 2; - this.nextToken(); - return; - } - super.readToken_mult_modulo(code); - } - readToken_pipe_amp(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (code === 124 && next === 125) { - this.finishOp(9, 2); - return; - } - super.readToken_pipe_amp(code); - } - parseTopLevel(file, program) { - const fileNode = super.parseTopLevel(file, program); - if (this.state.hasFlowComment) { - this.raise(FlowErrors.UnterminatedFlowComment, { - at: this.state.curPosition() - }); - } - return fileNode; - } - skipBlockComment() { - if (this.hasPlugin("flowComments") && this.skipFlowComment()) { - if (this.state.hasFlowComment) { - throw this.raise(FlowErrors.NestedFlowComment, { - at: this.state.startLoc - }); - } - this.hasFlowCommentCompletion(); - const commentSkip = this.skipFlowComment(); - if (commentSkip) { - this.state.pos += commentSkip; - this.state.hasFlowComment = true; - } - return; - } - return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/"); - } - skipFlowComment() { - const { - pos - } = this.state; - let shiftToFirstNonWhiteSpace = 2; - while ([32, 9].includes(this.input.charCodeAt(pos + shiftToFirstNonWhiteSpace))) { - shiftToFirstNonWhiteSpace++; - } - const ch2 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos); - const ch3 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos + 1); - if (ch2 === 58 && ch3 === 58) { - return shiftToFirstNonWhiteSpace + 2; - } - if (this.input.slice(shiftToFirstNonWhiteSpace + pos, shiftToFirstNonWhiteSpace + pos + 12) === "flow-include") { - return shiftToFirstNonWhiteSpace + 12; - } - if (ch2 === 58 && ch3 !== 58) { - return shiftToFirstNonWhiteSpace; - } - return false; - } - hasFlowCommentCompletion() { - const end = this.input.indexOf("*/", this.state.pos); - if (end === -1) { - throw this.raise(Errors.UnterminatedComment, { - at: this.state.curPosition() - }); - } - } - flowEnumErrorBooleanMemberNotInitialized(loc, { - enumName, - memberName - }) { - this.raise(FlowErrors.EnumBooleanMemberNotInitialized, { - at: loc, - memberName, - enumName - }); - } - flowEnumErrorInvalidMemberInitializer(loc, enumContext) { - return this.raise(!enumContext.explicitType ? FlowErrors.EnumInvalidMemberInitializerUnknownType : enumContext.explicitType === "symbol" ? FlowErrors.EnumInvalidMemberInitializerSymbolType : FlowErrors.EnumInvalidMemberInitializerPrimaryType, Object.assign({ - at: loc - }, enumContext)); - } - flowEnumErrorNumberMemberNotInitialized(loc, { - enumName, - memberName - }) { - this.raise(FlowErrors.EnumNumberMemberNotInitialized, { - at: loc, - enumName, - memberName - }); - } - flowEnumErrorStringMemberInconsistentlyInitailized(node, { - enumName - }) { - this.raise(FlowErrors.EnumStringMemberInconsistentlyInitailized, { - at: node, - enumName - }); - } - flowEnumMemberInit() { - const startLoc = this.state.startLoc; - const endOfInit = () => this.match(12) || this.match(8); - switch (this.state.type) { - case 132: - { - const literal = this.parseNumericLiteral(this.state.value); - if (endOfInit()) { - return { - type: "number", - loc: literal.loc.start, - value: literal - }; - } - return { - type: "invalid", - loc: startLoc - }; - } - case 131: - { - const literal = this.parseStringLiteral(this.state.value); - if (endOfInit()) { - return { - type: "string", - loc: literal.loc.start, - value: literal - }; - } - return { - type: "invalid", - loc: startLoc - }; - } - case 85: - case 86: - { - const literal = this.parseBooleanLiteral(this.match(85)); - if (endOfInit()) { - return { - type: "boolean", - loc: literal.loc.start, - value: literal - }; - } - return { - type: "invalid", - loc: startLoc - }; - } - default: - return { - type: "invalid", - loc: startLoc - }; - } - } - flowEnumMemberRaw() { - const loc = this.state.startLoc; - const id = this.parseIdentifier(true); - const init = this.eat(29) ? this.flowEnumMemberInit() : { - type: "none", - loc - }; - return { - id, - init - }; - } - flowEnumCheckExplicitTypeMismatch(loc, context, expectedType) { - const { - explicitType - } = context; - if (explicitType === null) { - return; - } - if (explicitType !== expectedType) { - this.flowEnumErrorInvalidMemberInitializer(loc, context); - } - } - flowEnumMembers({ - enumName, - explicitType - }) { - const seenNames = new Set(); - const members = { - booleanMembers: [], - numberMembers: [], - stringMembers: [], - defaultedMembers: [] - }; - let hasUnknownMembers = false; - while (!this.match(8)) { - if (this.eat(21)) { - hasUnknownMembers = true; - break; - } - const memberNode = this.startNode(); - const { - id, - init - } = this.flowEnumMemberRaw(); - const memberName = id.name; - if (memberName === "") { - continue; - } - if (/^[a-z]/.test(memberName)) { - this.raise(FlowErrors.EnumInvalidMemberName, { - at: id, - memberName, - suggestion: memberName[0].toUpperCase() + memberName.slice(1), - enumName - }); - } - if (seenNames.has(memberName)) { - this.raise(FlowErrors.EnumDuplicateMemberName, { - at: id, - memberName, - enumName - }); - } - seenNames.add(memberName); - const context = { - enumName, - explicitType, - memberName - }; - memberNode.id = id; - switch (init.type) { - case "boolean": - { - this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "boolean"); - memberNode.init = init.value; - members.booleanMembers.push(this.finishNode(memberNode, "EnumBooleanMember")); - break; - } - case "number": - { - this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "number"); - memberNode.init = init.value; - members.numberMembers.push(this.finishNode(memberNode, "EnumNumberMember")); - break; - } - case "string": - { - this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "string"); - memberNode.init = init.value; - members.stringMembers.push(this.finishNode(memberNode, "EnumStringMember")); - break; - } - case "invalid": - { - throw this.flowEnumErrorInvalidMemberInitializer(init.loc, context); - } - case "none": - { - switch (explicitType) { - case "boolean": - this.flowEnumErrorBooleanMemberNotInitialized(init.loc, context); - break; - case "number": - this.flowEnumErrorNumberMemberNotInitialized(init.loc, context); - break; - default: - members.defaultedMembers.push(this.finishNode(memberNode, "EnumDefaultedMember")); - } - } - } - if (!this.match(8)) { - this.expect(12); - } - } - return { - members, - hasUnknownMembers - }; - } - flowEnumStringMembers(initializedMembers, defaultedMembers, { - enumName - }) { - if (initializedMembers.length === 0) { - return defaultedMembers; - } else if (defaultedMembers.length === 0) { - return initializedMembers; - } else if (defaultedMembers.length > initializedMembers.length) { - for (const member of initializedMembers) { - this.flowEnumErrorStringMemberInconsistentlyInitailized(member, { - enumName - }); - } - return defaultedMembers; - } else { - for (const member of defaultedMembers) { - this.flowEnumErrorStringMemberInconsistentlyInitailized(member, { - enumName - }); - } - return initializedMembers; - } - } - flowEnumParseExplicitType({ - enumName - }) { - if (!this.eatContextual(101)) return null; - if (!tokenIsIdentifier(this.state.type)) { - throw this.raise(FlowErrors.EnumInvalidExplicitTypeUnknownSupplied, { - at: this.state.startLoc, - enumName - }); - } - const { - value - } = this.state; - this.next(); - if (value !== "boolean" && value !== "number" && value !== "string" && value !== "symbol") { - this.raise(FlowErrors.EnumInvalidExplicitType, { - at: this.state.startLoc, - enumName, - invalidEnumType: value - }); - } - return value; - } - flowEnumBody(node, id) { - const enumName = id.name; - const nameLoc = id.loc.start; - const explicitType = this.flowEnumParseExplicitType({ - enumName - }); - this.expect(5); - const { - members, - hasUnknownMembers - } = this.flowEnumMembers({ - enumName, - explicitType - }); - node.hasUnknownMembers = hasUnknownMembers; - switch (explicitType) { - case "boolean": - node.explicitType = true; - node.members = members.booleanMembers; - this.expect(8); - return this.finishNode(node, "EnumBooleanBody"); - case "number": - node.explicitType = true; - node.members = members.numberMembers; - this.expect(8); - return this.finishNode(node, "EnumNumberBody"); - case "string": - node.explicitType = true; - node.members = this.flowEnumStringMembers(members.stringMembers, members.defaultedMembers, { - enumName - }); - this.expect(8); - return this.finishNode(node, "EnumStringBody"); - case "symbol": - node.members = members.defaultedMembers; - this.expect(8); - return this.finishNode(node, "EnumSymbolBody"); - default: - { - const empty = () => { - node.members = []; - this.expect(8); - return this.finishNode(node, "EnumStringBody"); - }; - node.explicitType = false; - const boolsLen = members.booleanMembers.length; - const numsLen = members.numberMembers.length; - const strsLen = members.stringMembers.length; - const defaultedLen = members.defaultedMembers.length; - if (!boolsLen && !numsLen && !strsLen && !defaultedLen) { - return empty(); - } else if (!boolsLen && !numsLen) { - node.members = this.flowEnumStringMembers(members.stringMembers, members.defaultedMembers, { - enumName - }); - this.expect(8); - return this.finishNode(node, "EnumStringBody"); - } else if (!numsLen && !strsLen && boolsLen >= defaultedLen) { - for (const member of members.defaultedMembers) { - this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start, { - enumName, - memberName: member.id.name - }); - } - node.members = members.booleanMembers; - this.expect(8); - return this.finishNode(node, "EnumBooleanBody"); - } else if (!boolsLen && !strsLen && numsLen >= defaultedLen) { - for (const member of members.defaultedMembers) { - this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, { - enumName, - memberName: member.id.name - }); - } - node.members = members.numberMembers; - this.expect(8); - return this.finishNode(node, "EnumNumberBody"); - } else { - this.raise(FlowErrors.EnumInconsistentMemberValues, { - at: nameLoc, - enumName - }); - return empty(); - } - } - } - } - flowParseEnumDeclaration(node) { - const id = this.parseIdentifier(); - node.id = id; - node.body = this.flowEnumBody(this.startNode(), id); - return this.finishNode(node, "EnumDeclaration"); - } - isLookaheadToken_lt() { - const next = this.nextTokenStart(); - if (this.input.charCodeAt(next) === 60) { - const afterNext = this.input.charCodeAt(next + 1); - return afterNext !== 60 && afterNext !== 61; - } - return false; - } - maybeUnwrapTypeCastExpression(node) { - return node.type === "TypeCastExpression" ? node.expression : node; - } -}); - -const entities = { - __proto__: null, - quot: "\u0022", - amp: "&", - apos: "\u0027", - lt: "<", - gt: ">", - nbsp: "\u00A0", - iexcl: "\u00A1", - cent: "\u00A2", - pound: "\u00A3", - curren: "\u00A4", - yen: "\u00A5", - brvbar: "\u00A6", - sect: "\u00A7", - uml: "\u00A8", - copy: "\u00A9", - ordf: "\u00AA", - laquo: "\u00AB", - not: "\u00AC", - shy: "\u00AD", - reg: "\u00AE", - macr: "\u00AF", - deg: "\u00B0", - plusmn: "\u00B1", - sup2: "\u00B2", - sup3: "\u00B3", - acute: "\u00B4", - micro: "\u00B5", - para: "\u00B6", - middot: "\u00B7", - cedil: "\u00B8", - sup1: "\u00B9", - ordm: "\u00BA", - raquo: "\u00BB", - frac14: "\u00BC", - frac12: "\u00BD", - frac34: "\u00BE", - iquest: "\u00BF", - Agrave: "\u00C0", - Aacute: "\u00C1", - Acirc: "\u00C2", - Atilde: "\u00C3", - Auml: "\u00C4", - Aring: "\u00C5", - AElig: "\u00C6", - Ccedil: "\u00C7", - Egrave: "\u00C8", - Eacute: "\u00C9", - Ecirc: "\u00CA", - Euml: "\u00CB", - Igrave: "\u00CC", - Iacute: "\u00CD", - Icirc: "\u00CE", - Iuml: "\u00CF", - ETH: "\u00D0", - Ntilde: "\u00D1", - Ograve: "\u00D2", - Oacute: "\u00D3", - Ocirc: "\u00D4", - Otilde: "\u00D5", - Ouml: "\u00D6", - times: "\u00D7", - Oslash: "\u00D8", - Ugrave: "\u00D9", - Uacute: "\u00DA", - Ucirc: "\u00DB", - Uuml: "\u00DC", - Yacute: "\u00DD", - THORN: "\u00DE", - szlig: "\u00DF", - agrave: "\u00E0", - aacute: "\u00E1", - acirc: "\u00E2", - atilde: "\u00E3", - auml: "\u00E4", - aring: "\u00E5", - aelig: "\u00E6", - ccedil: "\u00E7", - egrave: "\u00E8", - eacute: "\u00E9", - ecirc: "\u00EA", - euml: "\u00EB", - igrave: "\u00EC", - iacute: "\u00ED", - icirc: "\u00EE", - iuml: "\u00EF", - eth: "\u00F0", - ntilde: "\u00F1", - ograve: "\u00F2", - oacute: "\u00F3", - ocirc: "\u00F4", - otilde: "\u00F5", - ouml: "\u00F6", - divide: "\u00F7", - oslash: "\u00F8", - ugrave: "\u00F9", - uacute: "\u00FA", - ucirc: "\u00FB", - uuml: "\u00FC", - yacute: "\u00FD", - thorn: "\u00FE", - yuml: "\u00FF", - OElig: "\u0152", - oelig: "\u0153", - Scaron: "\u0160", - scaron: "\u0161", - Yuml: "\u0178", - fnof: "\u0192", - circ: "\u02C6", - tilde: "\u02DC", - Alpha: "\u0391", - Beta: "\u0392", - Gamma: "\u0393", - Delta: "\u0394", - Epsilon: "\u0395", - Zeta: "\u0396", - Eta: "\u0397", - Theta: "\u0398", - Iota: "\u0399", - Kappa: "\u039A", - Lambda: "\u039B", - Mu: "\u039C", - Nu: "\u039D", - Xi: "\u039E", - Omicron: "\u039F", - Pi: "\u03A0", - Rho: "\u03A1", - Sigma: "\u03A3", - Tau: "\u03A4", - Upsilon: "\u03A5", - Phi: "\u03A6", - Chi: "\u03A7", - Psi: "\u03A8", - Omega: "\u03A9", - alpha: "\u03B1", - beta: "\u03B2", - gamma: "\u03B3", - delta: "\u03B4", - epsilon: "\u03B5", - zeta: "\u03B6", - eta: "\u03B7", - theta: "\u03B8", - iota: "\u03B9", - kappa: "\u03BA", - lambda: "\u03BB", - mu: "\u03BC", - nu: "\u03BD", - xi: "\u03BE", - omicron: "\u03BF", - pi: "\u03C0", - rho: "\u03C1", - sigmaf: "\u03C2", - sigma: "\u03C3", - tau: "\u03C4", - upsilon: "\u03C5", - phi: "\u03C6", - chi: "\u03C7", - psi: "\u03C8", - omega: "\u03C9", - thetasym: "\u03D1", - upsih: "\u03D2", - piv: "\u03D6", - ensp: "\u2002", - emsp: "\u2003", - thinsp: "\u2009", - zwnj: "\u200C", - zwj: "\u200D", - lrm: "\u200E", - rlm: "\u200F", - ndash: "\u2013", - mdash: "\u2014", - lsquo: "\u2018", - rsquo: "\u2019", - sbquo: "\u201A", - ldquo: "\u201C", - rdquo: "\u201D", - bdquo: "\u201E", - dagger: "\u2020", - Dagger: "\u2021", - bull: "\u2022", - hellip: "\u2026", - permil: "\u2030", - prime: "\u2032", - Prime: "\u2033", - lsaquo: "\u2039", - rsaquo: "\u203A", - oline: "\u203E", - frasl: "\u2044", - euro: "\u20AC", - image: "\u2111", - weierp: "\u2118", - real: "\u211C", - trade: "\u2122", - alefsym: "\u2135", - larr: "\u2190", - uarr: "\u2191", - rarr: "\u2192", - darr: "\u2193", - harr: "\u2194", - crarr: "\u21B5", - lArr: "\u21D0", - uArr: "\u21D1", - rArr: "\u21D2", - dArr: "\u21D3", - hArr: "\u21D4", - forall: "\u2200", - part: "\u2202", - exist: "\u2203", - empty: "\u2205", - nabla: "\u2207", - isin: "\u2208", - notin: "\u2209", - ni: "\u220B", - prod: "\u220F", - sum: "\u2211", - minus: "\u2212", - lowast: "\u2217", - radic: "\u221A", - prop: "\u221D", - infin: "\u221E", - ang: "\u2220", - and: "\u2227", - or: "\u2228", - cap: "\u2229", - cup: "\u222A", - int: "\u222B", - there4: "\u2234", - sim: "\u223C", - cong: "\u2245", - asymp: "\u2248", - ne: "\u2260", - equiv: "\u2261", - le: "\u2264", - ge: "\u2265", - sub: "\u2282", - sup: "\u2283", - nsub: "\u2284", - sube: "\u2286", - supe: "\u2287", - oplus: "\u2295", - otimes: "\u2297", - perp: "\u22A5", - sdot: "\u22C5", - lceil: "\u2308", - rceil: "\u2309", - lfloor: "\u230A", - rfloor: "\u230B", - lang: "\u2329", - rang: "\u232A", - loz: "\u25CA", - spades: "\u2660", - clubs: "\u2663", - hearts: "\u2665", - diams: "\u2666" -}; - -const JsxErrors = ParseErrorEnum`jsx`({ - AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", - MissingClosingTagElement: ({ - openingTagName - }) => `Expected corresponding JSX closing tag for <${openingTagName}>.`, - MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.", - UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?", - UnexpectedToken: ({ - unexpected, - HTMLEntity - }) => `Unexpected token \`${unexpected}\`. Did you mean \`${HTMLEntity}\` or \`{'${unexpected}'}\`?`, - UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.", - UnterminatedJsxContent: "Unterminated JSX contents.", - UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?" -}); -function isFragment(object) { - return object ? object.type === "JSXOpeningFragment" || object.type === "JSXClosingFragment" : false; -} -function getQualifiedJSXName(object) { - if (object.type === "JSXIdentifier") { - return object.name; - } - if (object.type === "JSXNamespacedName") { - return object.namespace.name + ":" + object.name.name; - } - if (object.type === "JSXMemberExpression") { - return getQualifiedJSXName(object.object) + "." + getQualifiedJSXName(object.property); - } - throw new Error("Node had unexpected type: " + object.type); -} -var jsx = (superClass => class JSXParserMixin extends superClass { - jsxReadToken() { - let out = ""; - let chunkStart = this.state.pos; - for (;;) { - if (this.state.pos >= this.length) { - throw this.raise(JsxErrors.UnterminatedJsxContent, { - at: this.state.startLoc - }); - } - const ch = this.input.charCodeAt(this.state.pos); - switch (ch) { - case 60: - case 123: - if (this.state.pos === this.state.start) { - if (ch === 60 && this.state.canStartJSXElement) { - ++this.state.pos; - return this.finishToken(140); - } - return super.getTokenFromCode(ch); - } - out += this.input.slice(chunkStart, this.state.pos); - return this.finishToken(139, out); - case 38: - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadEntity(); - chunkStart = this.state.pos; - break; - case 62: - case 125: - default: - if (isNewLine(ch)) { - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadNewLine(true); - chunkStart = this.state.pos; - } else { - ++this.state.pos; - } - } - } - } - jsxReadNewLine(normalizeCRLF) { - const ch = this.input.charCodeAt(this.state.pos); - let out; - ++this.state.pos; - if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) { - ++this.state.pos; - out = normalizeCRLF ? "\n" : "\r\n"; - } else { - out = String.fromCharCode(ch); - } - ++this.state.curLine; - this.state.lineStart = this.state.pos; - return out; - } - jsxReadString(quote) { - let out = ""; - let chunkStart = ++this.state.pos; - for (;;) { - if (this.state.pos >= this.length) { - throw this.raise(Errors.UnterminatedString, { - at: this.state.startLoc - }); - } - const ch = this.input.charCodeAt(this.state.pos); - if (ch === quote) break; - if (ch === 38) { - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadEntity(); - chunkStart = this.state.pos; - } else if (isNewLine(ch)) { - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadNewLine(false); - chunkStart = this.state.pos; - } else { - ++this.state.pos; - } - } - out += this.input.slice(chunkStart, this.state.pos++); - return this.finishToken(131, out); - } - jsxReadEntity() { - const startPos = ++this.state.pos; - if (this.codePointAtPos(this.state.pos) === 35) { - ++this.state.pos; - let radix = 10; - if (this.codePointAtPos(this.state.pos) === 120) { - radix = 16; - ++this.state.pos; - } - const codePoint = this.readInt(radix, undefined, false, "bail"); - if (codePoint !== null && this.codePointAtPos(this.state.pos) === 59) { - ++this.state.pos; - return String.fromCodePoint(codePoint); - } - } else { - let count = 0; - let semi = false; - while (count++ < 10 && this.state.pos < this.length && !(semi = this.codePointAtPos(this.state.pos) == 59)) { - ++this.state.pos; - } - if (semi) { - const desc = this.input.slice(startPos, this.state.pos); - const entity = entities[desc]; - ++this.state.pos; - if (entity) { - return entity; - } - } - } - this.state.pos = startPos; - return "&"; - } - jsxReadWord() { - let ch; - const start = this.state.pos; - do { - ch = this.input.charCodeAt(++this.state.pos); - } while (isIdentifierChar(ch) || ch === 45); - return this.finishToken(138, this.input.slice(start, this.state.pos)); - } - jsxParseIdentifier() { - const node = this.startNode(); - if (this.match(138)) { - node.name = this.state.value; - } else if (tokenIsKeyword(this.state.type)) { - node.name = tokenLabelName(this.state.type); - } else { - this.unexpected(); - } - this.next(); - return this.finishNode(node, "JSXIdentifier"); - } - jsxParseNamespacedName() { - const startLoc = this.state.startLoc; - const name = this.jsxParseIdentifier(); - if (!this.eat(14)) return name; - const node = this.startNodeAt(startLoc); - node.namespace = name; - node.name = this.jsxParseIdentifier(); - return this.finishNode(node, "JSXNamespacedName"); - } - jsxParseElementName() { - const startLoc = this.state.startLoc; - let node = this.jsxParseNamespacedName(); - if (node.type === "JSXNamespacedName") { - return node; - } - while (this.eat(16)) { - const newNode = this.startNodeAt(startLoc); - newNode.object = node; - newNode.property = this.jsxParseIdentifier(); - node = this.finishNode(newNode, "JSXMemberExpression"); - } - return node; - } - jsxParseAttributeValue() { - let node; - switch (this.state.type) { - case 5: - node = this.startNode(); - this.setContext(types.brace); - this.next(); - node = this.jsxParseExpressionContainer(node, types.j_oTag); - if (node.expression.type === "JSXEmptyExpression") { - this.raise(JsxErrors.AttributeIsEmpty, { - at: node - }); - } - return node; - case 140: - case 131: - return this.parseExprAtom(); - default: - throw this.raise(JsxErrors.UnsupportedJsxValue, { - at: this.state.startLoc - }); - } - } - jsxParseEmptyExpression() { - const node = this.startNodeAt(this.state.lastTokEndLoc); - return this.finishNodeAt(node, "JSXEmptyExpression", this.state.startLoc); - } - jsxParseSpreadChild(node) { - this.next(); - node.expression = this.parseExpression(); - this.setContext(types.j_expr); - this.state.canStartJSXElement = true; - this.expect(8); - return this.finishNode(node, "JSXSpreadChild"); - } - jsxParseExpressionContainer(node, previousContext) { - if (this.match(8)) { - node.expression = this.jsxParseEmptyExpression(); - } else { - const expression = this.parseExpression(); - node.expression = expression; - } - this.setContext(previousContext); - this.state.canStartJSXElement = true; - this.expect(8); - return this.finishNode(node, "JSXExpressionContainer"); - } - jsxParseAttribute() { - const node = this.startNode(); - if (this.match(5)) { - this.setContext(types.brace); - this.next(); - this.expect(21); - node.argument = this.parseMaybeAssignAllowIn(); - this.setContext(types.j_oTag); - this.state.canStartJSXElement = true; - this.expect(8); - return this.finishNode(node, "JSXSpreadAttribute"); - } - node.name = this.jsxParseNamespacedName(); - node.value = this.eat(29) ? this.jsxParseAttributeValue() : null; - return this.finishNode(node, "JSXAttribute"); - } - jsxParseOpeningElementAt(startLoc) { - const node = this.startNodeAt(startLoc); - if (this.eat(141)) { - return this.finishNode(node, "JSXOpeningFragment"); - } - node.name = this.jsxParseElementName(); - return this.jsxParseOpeningElementAfterName(node); - } - jsxParseOpeningElementAfterName(node) { - const attributes = []; - while (!this.match(56) && !this.match(141)) { - attributes.push(this.jsxParseAttribute()); - } - node.attributes = attributes; - node.selfClosing = this.eat(56); - this.expect(141); - return this.finishNode(node, "JSXOpeningElement"); - } - jsxParseClosingElementAt(startLoc) { - const node = this.startNodeAt(startLoc); - if (this.eat(141)) { - return this.finishNode(node, "JSXClosingFragment"); - } - node.name = this.jsxParseElementName(); - this.expect(141); - return this.finishNode(node, "JSXClosingElement"); - } - jsxParseElementAt(startLoc) { - const node = this.startNodeAt(startLoc); - const children = []; - const openingElement = this.jsxParseOpeningElementAt(startLoc); - let closingElement = null; - if (!openingElement.selfClosing) { - contents: for (;;) { - switch (this.state.type) { - case 140: - startLoc = this.state.startLoc; - this.next(); - if (this.eat(56)) { - closingElement = this.jsxParseClosingElementAt(startLoc); - break contents; - } - children.push(this.jsxParseElementAt(startLoc)); - break; - case 139: - children.push(this.parseExprAtom()); - break; - case 5: - { - const node = this.startNode(); - this.setContext(types.brace); - this.next(); - if (this.match(21)) { - children.push(this.jsxParseSpreadChild(node)); - } else { - children.push(this.jsxParseExpressionContainer(node, types.j_expr)); - } - break; - } - default: - throw this.unexpected(); - } - } - if (isFragment(openingElement) && !isFragment(closingElement) && closingElement !== null) { - this.raise(JsxErrors.MissingClosingTagFragment, { - at: closingElement - }); - } else if (!isFragment(openingElement) && isFragment(closingElement)) { - this.raise(JsxErrors.MissingClosingTagElement, { - at: closingElement, - openingTagName: getQualifiedJSXName(openingElement.name) - }); - } else if (!isFragment(openingElement) && !isFragment(closingElement)) { - if (getQualifiedJSXName(closingElement.name) !== getQualifiedJSXName(openingElement.name)) { - this.raise(JsxErrors.MissingClosingTagElement, { - at: closingElement, - openingTagName: getQualifiedJSXName(openingElement.name) - }); - } - } - } - if (isFragment(openingElement)) { - node.openingFragment = openingElement; - node.closingFragment = closingElement; - } else { - node.openingElement = openingElement; - node.closingElement = closingElement; - } - node.children = children; - if (this.match(47)) { - throw this.raise(JsxErrors.UnwrappedAdjacentJSXElements, { - at: this.state.startLoc - }); - } - return isFragment(openingElement) ? this.finishNode(node, "JSXFragment") : this.finishNode(node, "JSXElement"); - } - jsxParseElement() { - const startLoc = this.state.startLoc; - this.next(); - return this.jsxParseElementAt(startLoc); - } - setContext(newContext) { - const { - context - } = this.state; - context[context.length - 1] = newContext; - } - parseExprAtom(refExpressionErrors) { - if (this.match(139)) { - return this.parseLiteral(this.state.value, "JSXText"); - } else if (this.match(140)) { - return this.jsxParseElement(); - } else if (this.match(47) && this.input.charCodeAt(this.state.pos) !== 33) { - this.replaceToken(140); - return this.jsxParseElement(); - } else { - return super.parseExprAtom(refExpressionErrors); - } - } - skipSpace() { - const curContext = this.curContext(); - if (!curContext.preserveSpace) super.skipSpace(); - } - getTokenFromCode(code) { - const context = this.curContext(); - if (context === types.j_expr) { - return this.jsxReadToken(); - } - if (context === types.j_oTag || context === types.j_cTag) { - if (isIdentifierStart(code)) { - return this.jsxReadWord(); - } - if (code === 62) { - ++this.state.pos; - return this.finishToken(141); - } - if ((code === 34 || code === 39) && context === types.j_oTag) { - return this.jsxReadString(code); - } - } - if (code === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) { - ++this.state.pos; - return this.finishToken(140); - } - return super.getTokenFromCode(code); - } - updateContext(prevType) { - const { - context, - type - } = this.state; - if (type === 56 && prevType === 140) { - context.splice(-2, 2, types.j_cTag); - this.state.canStartJSXElement = false; - } else if (type === 140) { - context.push(types.j_oTag); - } else if (type === 141) { - const out = context[context.length - 1]; - if (out === types.j_oTag && prevType === 56 || out === types.j_cTag) { - context.pop(); - this.state.canStartJSXElement = context[context.length - 1] === types.j_expr; - } else { - this.setContext(types.j_expr); - this.state.canStartJSXElement = true; - } - } else { - this.state.canStartJSXElement = tokenComesBeforeExpression(type); - } - } -}); - -class TypeScriptScope extends Scope { - constructor(...args) { - super(...args); - this.types = new Set(); - this.enums = new Set(); - this.constEnums = new Set(); - this.classes = new Set(); - this.exportOnlyBindings = new Set(); - } -} -class TypeScriptScopeHandler extends ScopeHandler { - constructor(...args) { - super(...args); - this.importsStack = []; - } - createScope(flags) { - this.importsStack.push(new Set()); - return new TypeScriptScope(flags); - } - enter(flags) { - if (flags == SCOPE_TS_MODULE) { - this.importsStack.push(new Set()); - } - super.enter(flags); - } - exit() { - const flags = super.exit(); - if (flags == SCOPE_TS_MODULE) { - this.importsStack.pop(); - } - return flags; - } - hasImport(name, allowShadow) { - const len = this.importsStack.length; - if (this.importsStack[len - 1].has(name)) { - return true; - } - if (!allowShadow && len > 1) { - for (let i = 0; i < len - 1; i++) { - if (this.importsStack[i].has(name)) return true; - } - } - return false; - } - declareName(name, bindingType, loc) { - if (bindingType & BIND_FLAGS_TS_IMPORT) { - if (this.hasImport(name, true)) { - this.parser.raise(Errors.VarRedeclaration, { - at: loc, - identifierName: name - }); - } - this.importsStack[this.importsStack.length - 1].add(name); - return; - } - const scope = this.currentScope(); - if (bindingType & BIND_FLAGS_TS_EXPORT_ONLY) { - this.maybeExportDefined(scope, name); - scope.exportOnlyBindings.add(name); - return; - } - super.declareName(name, bindingType, loc); - if (bindingType & BIND_KIND_TYPE) { - if (!(bindingType & BIND_KIND_VALUE)) { - this.checkRedeclarationInScope(scope, name, bindingType, loc); - this.maybeExportDefined(scope, name); - } - scope.types.add(name); - } - if (bindingType & BIND_FLAGS_TS_ENUM) scope.enums.add(name); - if (bindingType & BIND_FLAGS_TS_CONST_ENUM) scope.constEnums.add(name); - if (bindingType & BIND_FLAGS_CLASS) scope.classes.add(name); - } - isRedeclaredInScope(scope, name, bindingType) { - if (scope.enums.has(name)) { - if (bindingType & BIND_FLAGS_TS_ENUM) { - const isConst = !!(bindingType & BIND_FLAGS_TS_CONST_ENUM); - const wasConst = scope.constEnums.has(name); - return isConst !== wasConst; - } - return true; - } - if (bindingType & BIND_FLAGS_CLASS && scope.classes.has(name)) { - if (scope.lexical.has(name)) { - return !!(bindingType & BIND_KIND_VALUE); - } else { - return false; - } - } - if (bindingType & BIND_KIND_TYPE && scope.types.has(name)) { - return true; - } - return super.isRedeclaredInScope(scope, name, bindingType); - } - checkLocalExport(id) { - const { - name - } = id; - if (this.hasImport(name)) return; - const len = this.scopeStack.length; - for (let i = len - 1; i >= 0; i--) { - const scope = this.scopeStack[i]; - if (scope.types.has(name) || scope.exportOnlyBindings.has(name)) return; - } - super.checkLocalExport(id); - } -} - -const getOwn$1 = (object, key) => Object.hasOwnProperty.call(object, key) && object[key]; -const unwrapParenthesizedExpression = node => { - return node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node; -}; -var ParseBindingListFlags = { - ALLOW_EMPTY: 1, - IS_FUNCTION_PARAMS: 2, - IS_CONSTRUCTOR_PARAMS: 4 -}; -class LValParser extends NodeUtils { - toAssignable(node, isLHS = false) { - var _node$extra, _node$extra3; - let parenthesized = undefined; - if (node.type === "ParenthesizedExpression" || (_node$extra = node.extra) != null && _node$extra.parenthesized) { - parenthesized = unwrapParenthesizedExpression(node); - if (isLHS) { - if (parenthesized.type === "Identifier") { - this.expressionScope.recordArrowParameterBindingError(Errors.InvalidParenthesizedAssignment, { - at: node - }); - } else if (parenthesized.type !== "MemberExpression") { - this.raise(Errors.InvalidParenthesizedAssignment, { - at: node - }); - } - } else { - this.raise(Errors.InvalidParenthesizedAssignment, { - at: node - }); - } - } - switch (node.type) { - case "Identifier": - case "ObjectPattern": - case "ArrayPattern": - case "AssignmentPattern": - case "RestElement": - break; - case "ObjectExpression": - node.type = "ObjectPattern"; - for (let i = 0, length = node.properties.length, last = length - 1; i < length; i++) { - var _node$extra2; - const prop = node.properties[i]; - const isLast = i === last; - this.toAssignableObjectExpressionProp(prop, isLast, isLHS); - if (isLast && prop.type === "RestElement" && (_node$extra2 = node.extra) != null && _node$extra2.trailingCommaLoc) { - this.raise(Errors.RestTrailingComma, { - at: node.extra.trailingCommaLoc - }); - } - } - break; - case "ObjectProperty": - { - const { - key, - value - } = node; - if (this.isPrivateName(key)) { - this.classScope.usePrivateName(this.getPrivateNameSV(key), key.loc.start); - } - this.toAssignable(value, isLHS); - break; - } - case "SpreadElement": - { - throw new Error("Internal @babel/parser error (this is a bug, please report it)." + " SpreadElement should be converted by .toAssignable's caller."); - } - case "ArrayExpression": - node.type = "ArrayPattern"; - this.toAssignableList(node.elements, (_node$extra3 = node.extra) == null ? void 0 : _node$extra3.trailingCommaLoc, isLHS); - break; - case "AssignmentExpression": - if (node.operator !== "=") { - this.raise(Errors.MissingEqInAssignment, { - at: node.left.loc.end - }); - } - node.type = "AssignmentPattern"; - delete node.operator; - this.toAssignable(node.left, isLHS); - break; - case "ParenthesizedExpression": - this.toAssignable(parenthesized, isLHS); - break; - } - } - toAssignableObjectExpressionProp(prop, isLast, isLHS) { - if (prop.type === "ObjectMethod") { - this.raise(prop.kind === "get" || prop.kind === "set" ? Errors.PatternHasAccessor : Errors.PatternHasMethod, { - at: prop.key - }); - } else if (prop.type === "SpreadElement") { - prop.type = "RestElement"; - const arg = prop.argument; - this.checkToRestConversion(arg, false); - this.toAssignable(arg, isLHS); - if (!isLast) { - this.raise(Errors.RestTrailingComma, { - at: prop - }); - } - } else { - this.toAssignable(prop, isLHS); - } - } - toAssignableList(exprList, trailingCommaLoc, isLHS) { - const end = exprList.length - 1; - for (let i = 0; i <= end; i++) { - const elt = exprList[i]; - if (!elt) continue; - if (elt.type === "SpreadElement") { - elt.type = "RestElement"; - const arg = elt.argument; - this.checkToRestConversion(arg, true); - this.toAssignable(arg, isLHS); - } else { - this.toAssignable(elt, isLHS); - } - if (elt.type === "RestElement") { - if (i < end) { - this.raise(Errors.RestTrailingComma, { - at: elt - }); - } else if (trailingCommaLoc) { - this.raise(Errors.RestTrailingComma, { - at: trailingCommaLoc - }); - } - } - } - } - isAssignable(node, isBinding) { - switch (node.type) { - case "Identifier": - case "ObjectPattern": - case "ArrayPattern": - case "AssignmentPattern": - case "RestElement": - return true; - case "ObjectExpression": - { - const last = node.properties.length - 1; - return node.properties.every((prop, i) => { - return prop.type !== "ObjectMethod" && (i === last || prop.type !== "SpreadElement") && this.isAssignable(prop); - }); - } - case "ObjectProperty": - return this.isAssignable(node.value); - case "SpreadElement": - return this.isAssignable(node.argument); - case "ArrayExpression": - return node.elements.every(element => element === null || this.isAssignable(element)); - case "AssignmentExpression": - return node.operator === "="; - case "ParenthesizedExpression": - return this.isAssignable(node.expression); - case "MemberExpression": - case "OptionalMemberExpression": - return !isBinding; - default: - return false; - } - } - toReferencedList(exprList, isParenthesizedExpr) { - return exprList; - } - toReferencedListDeep(exprList, isParenthesizedExpr) { - this.toReferencedList(exprList, isParenthesizedExpr); - for (const expr of exprList) { - if ((expr == null ? void 0 : expr.type) === "ArrayExpression") { - this.toReferencedListDeep(expr.elements); - } - } - } - parseSpread(refExpressionErrors) { - const node = this.startNode(); - this.next(); - node.argument = this.parseMaybeAssignAllowIn(refExpressionErrors, undefined); - return this.finishNode(node, "SpreadElement"); - } - parseRestBinding() { - const node = this.startNode(); - this.next(); - node.argument = this.parseBindingAtom(); - return this.finishNode(node, "RestElement"); - } - parseBindingAtom() { - switch (this.state.type) { - case 0: - { - const node = this.startNode(); - this.next(); - node.elements = this.parseBindingList(3, 93, ParseBindingListFlags.ALLOW_EMPTY); - return this.finishNode(node, "ArrayPattern"); - } - case 5: - return this.parseObjectLike(8, true); - } - return this.parseIdentifier(); - } - parseBindingList(close, closeCharCode, flags) { - const allowEmpty = flags & ParseBindingListFlags.ALLOW_EMPTY; - const elts = []; - let first = true; - while (!this.eat(close)) { - if (first) { - first = false; - } else { - this.expect(12); - } - if (allowEmpty && this.match(12)) { - elts.push(null); - } else if (this.eat(close)) { - break; - } else if (this.match(21)) { - elts.push(this.parseAssignableListItemTypes(this.parseRestBinding(), flags)); - if (!this.checkCommaAfterRest(closeCharCode)) { - this.expect(close); - break; - } - } else { - const decorators = []; - if (this.match(26) && this.hasPlugin("decorators")) { - this.raise(Errors.UnsupportedParameterDecorator, { - at: this.state.startLoc - }); - } - while (this.match(26)) { - decorators.push(this.parseDecorator()); - } - elts.push(this.parseAssignableListItem(flags, decorators)); - } - } - return elts; - } - parseBindingRestProperty(prop) { - this.next(); - prop.argument = this.parseIdentifier(); - this.checkCommaAfterRest(125); - return this.finishNode(prop, "RestElement"); - } - parseBindingProperty() { - const prop = this.startNode(); - const { - type, - startLoc - } = this.state; - if (type === 21) { - return this.parseBindingRestProperty(prop); - } else if (type === 136) { - this.expectPlugin("destructuringPrivate", startLoc); - this.classScope.usePrivateName(this.state.value, startLoc); - prop.key = this.parsePrivateName(); - } else { - this.parsePropertyName(prop); - } - prop.method = false; - return this.parseObjPropValue(prop, startLoc, false, false, true, false); - } - parseAssignableListItem(flags, decorators) { - const left = this.parseMaybeDefault(); - this.parseAssignableListItemTypes(left, flags); - const elt = this.parseMaybeDefault(left.loc.start, left); - if (decorators.length) { - left.decorators = decorators; - } - return elt; - } - parseAssignableListItemTypes(param, flags) { - return param; - } - parseMaybeDefault(startLoc, left) { - var _startLoc, _left; - (_startLoc = startLoc) != null ? _startLoc : startLoc = this.state.startLoc; - left = (_left = left) != null ? _left : this.parseBindingAtom(); - if (!this.eat(29)) return left; - const node = this.startNodeAt(startLoc); - node.left = left; - node.right = this.parseMaybeAssignAllowIn(); - return this.finishNode(node, "AssignmentPattern"); - } - isValidLVal(type, isUnparenthesizedInAssign, binding) { - return getOwn$1({ - AssignmentPattern: "left", - RestElement: "argument", - ObjectProperty: "value", - ParenthesizedExpression: "expression", - ArrayPattern: "elements", - ObjectPattern: "properties" - }, type); - } - checkLVal(expression, { - in: ancestor, - binding = BIND_NONE, - checkClashes = false, - strictModeChanged = false, - hasParenthesizedAncestor = false - }) { - var _expression$extra; - const type = expression.type; - if (this.isObjectMethod(expression)) return; - if (type === "MemberExpression") { - if (binding !== BIND_NONE) { - this.raise(Errors.InvalidPropertyBindingPattern, { - at: expression - }); - } - return; - } - if (type === "Identifier") { - this.checkIdentifier(expression, binding, strictModeChanged); - const { - name - } = expression; - if (checkClashes) { - if (checkClashes.has(name)) { - this.raise(Errors.ParamDupe, { - at: expression - }); - } else { - checkClashes.add(name); - } - } - return; - } - const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding); - if (validity === true) return; - if (validity === false) { - const ParseErrorClass = binding === BIND_NONE ? Errors.InvalidLhs : Errors.InvalidLhsBinding; - this.raise(ParseErrorClass, { - at: expression, - ancestor - }); - return; - } - const [key, isParenthesizedExpression] = Array.isArray(validity) ? validity : [validity, type === "ParenthesizedExpression"]; - const nextAncestor = type === "ArrayPattern" || type === "ObjectPattern" || type === "ParenthesizedExpression" ? { - type - } : ancestor; - for (const child of [].concat(expression[key])) { - if (child) { - this.checkLVal(child, { - in: nextAncestor, - binding, - checkClashes, - strictModeChanged, - hasParenthesizedAncestor: isParenthesizedExpression - }); - } - } - } - checkIdentifier(at, bindingType, strictModeChanged = false) { - if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) { - if (bindingType === BIND_NONE) { - this.raise(Errors.StrictEvalArguments, { - at, - referenceName: at.name - }); - } else { - this.raise(Errors.StrictEvalArgumentsBinding, { - at, - bindingName: at.name - }); - } - } - if (bindingType & BIND_FLAGS_NO_LET_IN_LEXICAL && at.name === "let") { - this.raise(Errors.LetInLexicalBinding, { - at - }); - } - if (!(bindingType & BIND_NONE)) { - this.declareNameFromIdentifier(at, bindingType); - } - } - declareNameFromIdentifier(identifier, binding) { - this.scope.declareName(identifier.name, binding, identifier.loc.start); - } - checkToRestConversion(node, allowPattern) { - switch (node.type) { - case "ParenthesizedExpression": - this.checkToRestConversion(node.expression, allowPattern); - break; - case "Identifier": - case "MemberExpression": - break; - case "ArrayExpression": - case "ObjectExpression": - if (allowPattern) break; - default: - this.raise(Errors.InvalidRestAssignmentPattern, { - at: node - }); - } - } - checkCommaAfterRest(close) { - if (!this.match(12)) { - return false; - } - this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, { - at: this.state.startLoc - }); - return true; - } -} - -const getOwn = (object, key) => Object.hasOwnProperty.call(object, key) && object[key]; -function nonNull(x) { - if (x == null) { - throw new Error(`Unexpected ${x} value.`); - } - return x; -} -function assert(x) { - if (!x) { - throw new Error("Assert fail"); - } -} -const TSErrors = ParseErrorEnum`typescript`({ - AbstractMethodHasImplementation: ({ - methodName - }) => `Method '${methodName}' cannot have an implementation because it is marked abstract.`, - AbstractPropertyHasInitializer: ({ - propertyName - }) => `Property '${propertyName}' cannot have an initializer because it is marked abstract.`, - AccesorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", - AccesorCannotHaveTypeParameters: "An accessor cannot have type parameters.", - AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", - ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", - ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", - ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.", - ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", - DeclareAccessor: ({ - kind - }) => `'declare' is not allowed in ${kind}ters.`, - DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", - DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", - DuplicateAccessibilityModifier: ({ - modifier - }) => `Accessibility modifier already seen.`, - DuplicateModifier: ({ - modifier - }) => `Duplicate modifier: '${modifier}'.`, - EmptyHeritageClauseType: ({ - token - }) => `'${token}' list cannot be empty.`, - EmptyTypeArguments: "Type argument list cannot be empty.", - EmptyTypeParameters: "Type parameter list cannot be empty.", - ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", - ImportAliasHasImportType: "An import alias can not use 'import type'.", - ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier", - IncompatibleModifiers: ({ - modifiers - }) => `'${modifiers[0]}' modifier cannot be used with '${modifiers[1]}' modifier.`, - IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", - IndexSignatureHasAccessibility: ({ - modifier - }) => `Index signatures cannot have an accessibility modifier ('${modifier}').`, - IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.", - IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", - IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.", - InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.", - InvalidModifierOnTypeMember: ({ - modifier - }) => `'${modifier}' modifier cannot appear on a type member.`, - InvalidModifierOnTypeParameter: ({ - modifier - }) => `'${modifier}' modifier cannot appear on a type parameter.`, - InvalidModifierOnTypeParameterPositions: ({ - modifier - }) => `'${modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`, - InvalidModifiersOrder: ({ - orderedModifiers - }) => `'${orderedModifiers[0]}' modifier must precede '${orderedModifiers[1]}' modifier.`, - InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. " + "You can either wrap the instantiation expression in parentheses, or delete the type arguments.", - InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.", - MissingInterfaceName: "'interface' declarations must be followed by an identifier.", - MixedLabeledAndUnlabeledElements: "Tuple members must all have names or all not have names.", - NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.", - NonClassMethodPropertyHasAbstractModifer: "'abstract' modifier can only appear on a class, method, or property declaration.", - OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", - OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", - PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", - PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", - PrivateElementHasAccessibility: ({ - modifier - }) => `Private elements cannot have an accessibility modifier ('${modifier}').`, - ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", - ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.", - ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.", - SetAccesorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", - SetAccesorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", - SetAccesorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", - SingleTypeParameterWithoutTrailingComma: ({ - typeParameterName - }) => `Single type parameter ${typeParameterName} should have a trailing comma. Example usage: <${typeParameterName},>.`, - StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", - TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", - TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", - TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", - TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", - UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", - UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", - UnexpectedTypeAnnotation: "Did not expect a type annotation here.", - UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", - UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", - UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", - UnsupportedSignatureParameterKind: ({ - type - }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.` -}); -function keywordTypeFromName(value) { - switch (value) { - case "any": - return "TSAnyKeyword"; - case "boolean": - return "TSBooleanKeyword"; - case "bigint": - return "TSBigIntKeyword"; - case "never": - return "TSNeverKeyword"; - case "number": - return "TSNumberKeyword"; - case "object": - return "TSObjectKeyword"; - case "string": - return "TSStringKeyword"; - case "symbol": - return "TSSymbolKeyword"; - case "undefined": - return "TSUndefinedKeyword"; - case "unknown": - return "TSUnknownKeyword"; - default: - return undefined; - } -} -function tsIsAccessModifier(modifier) { - return modifier === "private" || modifier === "public" || modifier === "protected"; -} -function tsIsVarianceAnnotations(modifier) { - return modifier === "in" || modifier === "out"; -} -var typescript = (superClass => class TypeScriptParserMixin extends superClass { - constructor(...args) { - super(...args); - this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, { - allowedModifiers: ["in", "out"], - disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"], - errorTemplate: TSErrors.InvalidModifierOnTypeParameter - }); - this.tsParseConstModifier = this.tsParseModifiers.bind(this, { - allowedModifiers: ["const"], - disallowedModifiers: ["in", "out"], - errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions - }); - this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { - allowedModifiers: ["in", "out", "const"], - disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], - errorTemplate: TSErrors.InvalidModifierOnTypeParameter - }); - } - getScopeHandler() { - return TypeScriptScopeHandler; - } - tsIsIdentifier() { - return tokenIsIdentifier(this.state.type); - } - tsTokenCanFollowModifier() { - return (this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(136) || this.isLiteralPropertyName()) && !this.hasPrecedingLineBreak(); - } - tsNextTokenCanFollowModifier() { - this.next(); - return this.tsTokenCanFollowModifier(); - } - tsParseModifier(allowedModifiers, stopOnStartOfClassStaticBlock) { - if (!tokenIsIdentifier(this.state.type) && this.state.type !== 58 && this.state.type !== 75) { - return undefined; - } - const modifier = this.state.value; - if (allowedModifiers.indexOf(modifier) !== -1) { - if (stopOnStartOfClassStaticBlock && this.tsIsStartOfStaticBlocks()) { - return undefined; - } - if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) { - return modifier; - } - } - return undefined; - } - tsParseModifiers({ - allowedModifiers, - disallowedModifiers, - stopOnStartOfClassStaticBlock, - errorTemplate = TSErrors.InvalidModifierOnTypeMember - }, modified) { - const enforceOrder = (loc, modifier, before, after) => { - if (modifier === before && modified[after]) { - this.raise(TSErrors.InvalidModifiersOrder, { - at: loc, - orderedModifiers: [before, after] - }); - } - }; - const incompatible = (loc, modifier, mod1, mod2) => { - if (modified[mod1] && modifier === mod2 || modified[mod2] && modifier === mod1) { - this.raise(TSErrors.IncompatibleModifiers, { - at: loc, - modifiers: [mod1, mod2] - }); - } - }; - for (;;) { - const { - startLoc - } = this.state; - const modifier = this.tsParseModifier(allowedModifiers.concat(disallowedModifiers != null ? disallowedModifiers : []), stopOnStartOfClassStaticBlock); - if (!modifier) break; - if (tsIsAccessModifier(modifier)) { - if (modified.accessibility) { - this.raise(TSErrors.DuplicateAccessibilityModifier, { - at: startLoc, - modifier - }); - } else { - enforceOrder(startLoc, modifier, modifier, "override"); - enforceOrder(startLoc, modifier, modifier, "static"); - enforceOrder(startLoc, modifier, modifier, "readonly"); - modified.accessibility = modifier; - } - } else if (tsIsVarianceAnnotations(modifier)) { - if (modified[modifier]) { - this.raise(TSErrors.DuplicateModifier, { - at: startLoc, - modifier - }); - } - modified[modifier] = true; - enforceOrder(startLoc, modifier, "in", "out"); - } else { - if (Object.hasOwnProperty.call(modified, modifier)) { - this.raise(TSErrors.DuplicateModifier, { - at: startLoc, - modifier - }); - } else { - enforceOrder(startLoc, modifier, "static", "readonly"); - enforceOrder(startLoc, modifier, "static", "override"); - enforceOrder(startLoc, modifier, "override", "readonly"); - enforceOrder(startLoc, modifier, "abstract", "override"); - incompatible(startLoc, modifier, "declare", "override"); - incompatible(startLoc, modifier, "static", "abstract"); - } - modified[modifier] = true; - } - if (disallowedModifiers != null && disallowedModifiers.includes(modifier)) { - this.raise(errorTemplate, { - at: startLoc, - modifier - }); - } - } - } - tsIsListTerminator(kind) { - switch (kind) { - case "EnumMembers": - case "TypeMembers": - return this.match(8); - case "HeritageClauseElement": - return this.match(5); - case "TupleElementTypes": - return this.match(3); - case "TypeParametersOrArguments": - return this.match(48); - } - throw new Error("Unreachable"); - } - tsParseList(kind, parseElement) { - const result = []; - while (!this.tsIsListTerminator(kind)) { - result.push(parseElement()); - } - return result; - } - tsParseDelimitedList(kind, parseElement, refTrailingCommaPos) { - return nonNull(this.tsParseDelimitedListWorker(kind, parseElement, true, refTrailingCommaPos)); - } - tsParseDelimitedListWorker(kind, parseElement, expectSuccess, refTrailingCommaPos) { - const result = []; - let trailingCommaPos = -1; - for (;;) { - if (this.tsIsListTerminator(kind)) { - break; - } - trailingCommaPos = -1; - const element = parseElement(); - if (element == null) { - return undefined; - } - result.push(element); - if (this.eat(12)) { - trailingCommaPos = this.state.lastTokStart; - continue; - } - if (this.tsIsListTerminator(kind)) { - break; - } - if (expectSuccess) { - this.expect(12); - } - return undefined; - } - if (refTrailingCommaPos) { - refTrailingCommaPos.value = trailingCommaPos; - } - return result; - } - tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) { - if (!skipFirstToken) { - if (bracket) { - this.expect(0); - } else { - this.expect(47); - } - } - const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos); - if (bracket) { - this.expect(3); - } else { - this.expect(48); - } - return result; - } - tsParseImportType() { - const node = this.startNode(); - this.expect(83); - this.expect(10); - if (!this.match(131)) { - this.raise(TSErrors.UnsupportedImportTypeArgument, { - at: this.state.startLoc - }); - } - node.argument = super.parseExprAtom(); - this.expect(11); - if (this.eat(16)) { - node.qualifier = this.tsParseEntityName(); - } - if (this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSImportType"); - } - tsParseEntityName(allowReservedWords = true) { - let entity = this.parseIdentifier(allowReservedWords); - while (this.eat(16)) { - const node = this.startNodeAtNode(entity); - node.left = entity; - node.right = this.parseIdentifier(allowReservedWords); - entity = this.finishNode(node, "TSQualifiedName"); - } - return entity; - } - tsParseTypeReference() { - const node = this.startNode(); - node.typeName = this.tsParseEntityName(); - if (!this.hasPrecedingLineBreak() && this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSTypeReference"); - } - tsParseThisTypePredicate(lhs) { - this.next(); - const node = this.startNodeAtNode(lhs); - node.parameterName = lhs; - node.typeAnnotation = this.tsParseTypeAnnotation(false); - node.asserts = false; - return this.finishNode(node, "TSTypePredicate"); - } - tsParseThisTypeNode() { - const node = this.startNode(); - this.next(); - return this.finishNode(node, "TSThisType"); - } - tsParseTypeQuery() { - const node = this.startNode(); - this.expect(87); - if (this.match(83)) { - node.exprName = this.tsParseImportType(); - } else { - node.exprName = this.tsParseEntityName(); - } - if (!this.hasPrecedingLineBreak() && this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSTypeQuery"); - } - tsParseTypeParameter(parseModifiers) { - const node = this.startNode(); - parseModifiers(node); - node.name = this.tsParseTypeParameterName(); - node.constraint = this.tsEatThenParseType(81); - node.default = this.tsEatThenParseType(29); - return this.finishNode(node, "TSTypeParameter"); - } - tsTryParseTypeParameters(parseModifiers) { - if (this.match(47)) { - return this.tsParseTypeParameters(parseModifiers); - } - } - tsParseTypeParameters(parseModifiers) { - const node = this.startNode(); - if (this.match(47) || this.match(140)) { - this.next(); - } else { - this.unexpected(); - } - const refTrailingCommaPos = { - value: -1 - }; - node.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, parseModifiers), false, true, refTrailingCommaPos); - if (node.params.length === 0) { - this.raise(TSErrors.EmptyTypeParameters, { - at: node - }); - } - if (refTrailingCommaPos.value !== -1) { - this.addExtra(node, "trailingComma", refTrailingCommaPos.value); - } - return this.finishNode(node, "TSTypeParameterDeclaration"); - } - tsFillSignature(returnToken, signature) { - const returnTokenRequired = returnToken === 19; - const paramsKey = "parameters"; - const returnTypeKey = "typeAnnotation"; - signature.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - this.expect(10); - signature[paramsKey] = this.tsParseBindingListForSignature(); - if (returnTokenRequired) { - signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken); - } else if (this.match(returnToken)) { - signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken); - } - } - tsParseBindingListForSignature() { - return super.parseBindingList(11, 41, ParseBindingListFlags.IS_FUNCTION_PARAMS).map(pattern => { - if (pattern.type !== "Identifier" && pattern.type !== "RestElement" && pattern.type !== "ObjectPattern" && pattern.type !== "ArrayPattern") { - this.raise(TSErrors.UnsupportedSignatureParameterKind, { - at: pattern, - type: pattern.type - }); - } - return pattern; - }); - } - tsParseTypeMemberSemicolon() { - if (!this.eat(12) && !this.isLineTerminator()) { - this.expect(13); - } - } - tsParseSignatureMember(kind, node) { - this.tsFillSignature(14, node); - this.tsParseTypeMemberSemicolon(); - return this.finishNode(node, kind); - } - tsIsUnambiguouslyIndexSignature() { - this.next(); - if (tokenIsIdentifier(this.state.type)) { - this.next(); - return this.match(14); - } - return false; - } - tsTryParseIndexSignature(node) { - if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) { - return undefined; - } - this.expect(0); - const id = this.parseIdentifier(); - id.typeAnnotation = this.tsParseTypeAnnotation(); - this.resetEndLocation(id); - this.expect(3); - node.parameters = [id]; - const type = this.tsTryParseTypeAnnotation(); - if (type) node.typeAnnotation = type; - this.tsParseTypeMemberSemicolon(); - return this.finishNode(node, "TSIndexSignature"); - } - tsParsePropertyOrMethodSignature(node, readonly) { - if (this.eat(17)) node.optional = true; - const nodeAny = node; - if (this.match(10) || this.match(47)) { - if (readonly) { - this.raise(TSErrors.ReadonlyForMethodSignature, { - at: node - }); - } - const method = nodeAny; - if (method.kind && this.match(47)) { - this.raise(TSErrors.AccesorCannotHaveTypeParameters, { - at: this.state.curPosition() - }); - } - this.tsFillSignature(14, method); - this.tsParseTypeMemberSemicolon(); - const paramsKey = "parameters"; - const returnTypeKey = "typeAnnotation"; - if (method.kind === "get") { - if (method[paramsKey].length > 0) { - this.raise(Errors.BadGetterArity, { - at: this.state.curPosition() - }); - if (this.isThisParam(method[paramsKey][0])) { - this.raise(TSErrors.AccesorCannotDeclareThisParameter, { - at: this.state.curPosition() - }); - } - } - } else if (method.kind === "set") { - if (method[paramsKey].length !== 1) { - this.raise(Errors.BadSetterArity, { - at: this.state.curPosition() - }); - } else { - const firstParameter = method[paramsKey][0]; - if (this.isThisParam(firstParameter)) { - this.raise(TSErrors.AccesorCannotDeclareThisParameter, { - at: this.state.curPosition() - }); - } - if (firstParameter.type === "Identifier" && firstParameter.optional) { - this.raise(TSErrors.SetAccesorCannotHaveOptionalParameter, { - at: this.state.curPosition() - }); - } - if (firstParameter.type === "RestElement") { - this.raise(TSErrors.SetAccesorCannotHaveRestParameter, { - at: this.state.curPosition() - }); - } - } - if (method[returnTypeKey]) { - this.raise(TSErrors.SetAccesorCannotHaveReturnType, { - at: method[returnTypeKey] - }); - } - } else { - method.kind = "method"; - } - return this.finishNode(method, "TSMethodSignature"); - } else { - const property = nodeAny; - if (readonly) property.readonly = true; - const type = this.tsTryParseTypeAnnotation(); - if (type) property.typeAnnotation = type; - this.tsParseTypeMemberSemicolon(); - return this.finishNode(property, "TSPropertySignature"); - } - } - tsParseTypeMember() { - const node = this.startNode(); - if (this.match(10) || this.match(47)) { - return this.tsParseSignatureMember("TSCallSignatureDeclaration", node); - } - if (this.match(77)) { - const id = this.startNode(); - this.next(); - if (this.match(10) || this.match(47)) { - return this.tsParseSignatureMember("TSConstructSignatureDeclaration", node); - } else { - node.key = this.createIdentifier(id, "new"); - return this.tsParsePropertyOrMethodSignature(node, false); - } - } - this.tsParseModifiers({ - allowedModifiers: ["readonly"], - disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] - }, node); - const idx = this.tsTryParseIndexSignature(node); - if (idx) { - return idx; - } - super.parsePropertyName(node); - if (!node.computed && node.key.type === "Identifier" && (node.key.name === "get" || node.key.name === "set") && this.tsTokenCanFollowModifier()) { - node.kind = node.key.name; - super.parsePropertyName(node); - } - return this.tsParsePropertyOrMethodSignature(node, !!node.readonly); - } - tsParseTypeLiteral() { - const node = this.startNode(); - node.members = this.tsParseObjectTypeMembers(); - return this.finishNode(node, "TSTypeLiteral"); - } - tsParseObjectTypeMembers() { - this.expect(5); - const members = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this)); - this.expect(8); - return members; - } - tsIsStartOfMappedType() { - this.next(); - if (this.eat(53)) { - return this.isContextual(120); - } - if (this.isContextual(120)) { - this.next(); - } - if (!this.match(0)) { - return false; - } - this.next(); - if (!this.tsIsIdentifier()) { - return false; - } - this.next(); - return this.match(58); - } - tsParseMappedTypeParameter() { - const node = this.startNode(); - node.name = this.tsParseTypeParameterName(); - node.constraint = this.tsExpectThenParseType(58); - return this.finishNode(node, "TSTypeParameter"); - } - tsParseMappedType() { - const node = this.startNode(); - this.expect(5); - if (this.match(53)) { - node.readonly = this.state.value; - this.next(); - this.expectContextual(120); - } else if (this.eatContextual(120)) { - node.readonly = true; - } - this.expect(0); - node.typeParameter = this.tsParseMappedTypeParameter(); - node.nameType = this.eatContextual(93) ? this.tsParseType() : null; - this.expect(3); - if (this.match(53)) { - node.optional = this.state.value; - this.next(); - this.expect(17); - } else if (this.eat(17)) { - node.optional = true; - } - node.typeAnnotation = this.tsTryParseType(); - this.semicolon(); - this.expect(8); - return this.finishNode(node, "TSMappedType"); - } - tsParseTupleType() { - const node = this.startNode(); - node.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), true, false); - let seenOptionalElement = false; - let labeledElements = null; - node.elementTypes.forEach(elementNode => { - var _labeledElements; - const { - type - } = elementNode; - if (seenOptionalElement && type !== "TSRestType" && type !== "TSOptionalType" && !(type === "TSNamedTupleMember" && elementNode.optional)) { - this.raise(TSErrors.OptionalTypeBeforeRequired, { - at: elementNode - }); - } - seenOptionalElement || (seenOptionalElement = type === "TSNamedTupleMember" && elementNode.optional || type === "TSOptionalType"); - let checkType = type; - if (type === "TSRestType") { - elementNode = elementNode.typeAnnotation; - checkType = elementNode.type; - } - const isLabeled = checkType === "TSNamedTupleMember"; - (_labeledElements = labeledElements) != null ? _labeledElements : labeledElements = isLabeled; - if (labeledElements !== isLabeled) { - this.raise(TSErrors.MixedLabeledAndUnlabeledElements, { - at: elementNode - }); - } - }); - return this.finishNode(node, "TSTupleType"); - } - tsParseTupleElementType() { - const { - startLoc - } = this.state; - const rest = this.eat(21); - let type = this.tsParseType(); - const optional = this.eat(17); - const labeled = this.eat(14); - if (labeled) { - const labeledNode = this.startNodeAtNode(type); - labeledNode.optional = optional; - if (type.type === "TSTypeReference" && !type.typeParameters && type.typeName.type === "Identifier") { - labeledNode.label = type.typeName; - } else { - this.raise(TSErrors.InvalidTupleMemberLabel, { - at: type - }); - labeledNode.label = type; - } - labeledNode.elementType = this.tsParseType(); - type = this.finishNode(labeledNode, "TSNamedTupleMember"); - } else if (optional) { - const optionalTypeNode = this.startNodeAtNode(type); - optionalTypeNode.typeAnnotation = type; - type = this.finishNode(optionalTypeNode, "TSOptionalType"); - } - if (rest) { - const restNode = this.startNodeAt(startLoc); - restNode.typeAnnotation = type; - type = this.finishNode(restNode, "TSRestType"); - } - return type; - } - tsParseParenthesizedType() { - const node = this.startNode(); - this.expect(10); - node.typeAnnotation = this.tsParseType(); - this.expect(11); - return this.finishNode(node, "TSParenthesizedType"); - } - tsParseFunctionOrConstructorType(type, abstract) { - const node = this.startNode(); - if (type === "TSConstructorType") { - node.abstract = !!abstract; - if (abstract) this.next(); - this.next(); - } - this.tsInAllowConditionalTypesContext(() => this.tsFillSignature(19, node)); - return this.finishNode(node, type); - } - tsParseLiteralTypeNode() { - const node = this.startNode(); - node.literal = (() => { - switch (this.state.type) { - case 132: - case 133: - case 131: - case 85: - case 86: - return super.parseExprAtom(); - default: - throw this.unexpected(); - } - })(); - return this.finishNode(node, "TSLiteralType"); - } - tsParseTemplateLiteralType() { - const node = this.startNode(); - node.literal = super.parseTemplate(false); - return this.finishNode(node, "TSLiteralType"); - } - parseTemplateSubstitution() { - if (this.state.inType) return this.tsParseType(); - return super.parseTemplateSubstitution(); - } - tsParseThisTypeOrThisTypePredicate() { - const thisKeyword = this.tsParseThisTypeNode(); - if (this.isContextual(114) && !this.hasPrecedingLineBreak()) { - return this.tsParseThisTypePredicate(thisKeyword); - } else { - return thisKeyword; - } - } - tsParseNonArrayType() { - switch (this.state.type) { - case 131: - case 132: - case 133: - case 85: - case 86: - return this.tsParseLiteralTypeNode(); - case 53: - if (this.state.value === "-") { - const node = this.startNode(); - const nextToken = this.lookahead(); - if (nextToken.type !== 132 && nextToken.type !== 133) { - throw this.unexpected(); - } - node.literal = this.parseMaybeUnary(); - return this.finishNode(node, "TSLiteralType"); - } - break; - case 78: - return this.tsParseThisTypeOrThisTypePredicate(); - case 87: - return this.tsParseTypeQuery(); - case 83: - return this.tsParseImportType(); - case 5: - return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral(); - case 0: - return this.tsParseTupleType(); - case 10: - return this.tsParseParenthesizedType(); - case 25: - case 24: - return this.tsParseTemplateLiteralType(); - default: - { - const { - type - } = this.state; - if (tokenIsIdentifier(type) || type === 88 || type === 84) { - const nodeType = type === 88 ? "TSVoidKeyword" : type === 84 ? "TSNullKeyword" : keywordTypeFromName(this.state.value); - if (nodeType !== undefined && this.lookaheadCharCode() !== 46) { - const node = this.startNode(); - this.next(); - return this.finishNode(node, nodeType); - } - return this.tsParseTypeReference(); - } - } - } - throw this.unexpected(); - } - tsParseArrayTypeOrHigher() { - let type = this.tsParseNonArrayType(); - while (!this.hasPrecedingLineBreak() && this.eat(0)) { - if (this.match(3)) { - const node = this.startNodeAtNode(type); - node.elementType = type; - this.expect(3); - type = this.finishNode(node, "TSArrayType"); - } else { - const node = this.startNodeAtNode(type); - node.objectType = type; - node.indexType = this.tsParseType(); - this.expect(3); - type = this.finishNode(node, "TSIndexedAccessType"); - } - } - return type; - } - tsParseTypeOperator() { - const node = this.startNode(); - const operator = this.state.value; - this.next(); - node.operator = operator; - node.typeAnnotation = this.tsParseTypeOperatorOrHigher(); - if (operator === "readonly") { - this.tsCheckTypeAnnotationForReadOnly(node); - } - return this.finishNode(node, "TSTypeOperator"); - } - tsCheckTypeAnnotationForReadOnly(node) { - switch (node.typeAnnotation.type) { - case "TSTupleType": - case "TSArrayType": - return; - default: - this.raise(TSErrors.UnexpectedReadonly, { - at: node - }); - } - } - tsParseInferType() { - const node = this.startNode(); - this.expectContextual(113); - const typeParameter = this.startNode(); - typeParameter.name = this.tsParseTypeParameterName(); - typeParameter.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()); - node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter"); - return this.finishNode(node, "TSInferType"); - } - tsParseConstraintForInferType() { - if (this.eat(81)) { - const constraint = this.tsInDisallowConditionalTypesContext(() => this.tsParseType()); - if (this.state.inDisallowConditionalTypesContext || !this.match(17)) { - return constraint; - } - } - } - tsParseTypeOperatorOrHigher() { - const isTypeOperator = tokenIsTSTypeOperator(this.state.type) && !this.state.containsEsc; - return isTypeOperator ? this.tsParseTypeOperator() : this.isContextual(113) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher()); - } - tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) { - const node = this.startNode(); - const hasLeadingOperator = this.eat(operator); - const types = []; - do { - types.push(parseConstituentType()); - } while (this.eat(operator)); - if (types.length === 1 && !hasLeadingOperator) { - return types[0]; - } - node.types = types; - return this.finishNode(node, kind); - } - tsParseIntersectionTypeOrHigher() { - return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45); - } - tsParseUnionTypeOrHigher() { - return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43); - } - tsIsStartOfFunctionType() { - if (this.match(47)) { - return true; - } - return this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); - } - tsSkipParameterStart() { - if (tokenIsIdentifier(this.state.type) || this.match(78)) { - this.next(); - return true; - } - if (this.match(5)) { - const { - errors - } = this.state; - const previousErrorCount = errors.length; - try { - this.parseObjectLike(8, true); - return errors.length === previousErrorCount; - } catch (_unused) { - return false; - } - } - if (this.match(0)) { - this.next(); - const { - errors - } = this.state; - const previousErrorCount = errors.length; - try { - super.parseBindingList(3, 93, ParseBindingListFlags.ALLOW_EMPTY); - return errors.length === previousErrorCount; - } catch (_unused2) { - return false; - } - } - return false; - } - tsIsUnambiguouslyStartOfFunctionType() { - this.next(); - if (this.match(11) || this.match(21)) { - return true; - } - if (this.tsSkipParameterStart()) { - if (this.match(14) || this.match(12) || this.match(17) || this.match(29)) { - return true; - } - if (this.match(11)) { - this.next(); - if (this.match(19)) { - return true; - } - } - } - return false; - } - tsParseTypeOrTypePredicateAnnotation(returnToken) { - return this.tsInType(() => { - const t = this.startNode(); - this.expect(returnToken); - const node = this.startNode(); - const asserts = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this)); - if (asserts && this.match(78)) { - let thisTypePredicate = this.tsParseThisTypeOrThisTypePredicate(); - if (thisTypePredicate.type === "TSThisType") { - node.parameterName = thisTypePredicate; - node.asserts = true; - node.typeAnnotation = null; - thisTypePredicate = this.finishNode(node, "TSTypePredicate"); - } else { - this.resetStartLocationFromNode(thisTypePredicate, node); - thisTypePredicate.asserts = true; - } - t.typeAnnotation = thisTypePredicate; - return this.finishNode(t, "TSTypeAnnotation"); - } - const typePredicateVariable = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this)); - if (!typePredicateVariable) { - if (!asserts) { - return this.tsParseTypeAnnotation(false, t); - } - node.parameterName = this.parseIdentifier(); - node.asserts = asserts; - node.typeAnnotation = null; - t.typeAnnotation = this.finishNode(node, "TSTypePredicate"); - return this.finishNode(t, "TSTypeAnnotation"); - } - const type = this.tsParseTypeAnnotation(false); - node.parameterName = typePredicateVariable; - node.typeAnnotation = type; - node.asserts = asserts; - t.typeAnnotation = this.finishNode(node, "TSTypePredicate"); - return this.finishNode(t, "TSTypeAnnotation"); - }); - } - tsTryParseTypeOrTypePredicateAnnotation() { - return this.match(14) ? this.tsParseTypeOrTypePredicateAnnotation(14) : undefined; - } - tsTryParseTypeAnnotation() { - return this.match(14) ? this.tsParseTypeAnnotation() : undefined; - } - tsTryParseType() { - return this.tsEatThenParseType(14); - } - tsParseTypePredicatePrefix() { - const id = this.parseIdentifier(); - if (this.isContextual(114) && !this.hasPrecedingLineBreak()) { - this.next(); - return id; - } - } - tsParseTypePredicateAsserts() { - if (this.state.type !== 107) { - return false; - } - const containsEsc = this.state.containsEsc; - this.next(); - if (!tokenIsIdentifier(this.state.type) && !this.match(78)) { - return false; - } - if (containsEsc) { - this.raise(Errors.InvalidEscapedReservedWord, { - at: this.state.lastTokStartLoc, - reservedWord: "asserts" - }); - } - return true; - } - tsParseTypeAnnotation(eatColon = true, t = this.startNode()) { - this.tsInType(() => { - if (eatColon) this.expect(14); - t.typeAnnotation = this.tsParseType(); - }); - return this.finishNode(t, "TSTypeAnnotation"); - } - tsParseType() { - assert(this.state.inType); - const type = this.tsParseNonConditionalType(); - if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) { - return type; - } - const node = this.startNodeAtNode(type); - node.checkType = type; - node.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()); - this.expect(17); - node.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()); - this.expect(14); - node.falseType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()); - return this.finishNode(node, "TSConditionalType"); - } - isAbstractConstructorSignature() { - return this.isContextual(122) && this.lookahead().type === 77; - } - tsParseNonConditionalType() { - if (this.tsIsStartOfFunctionType()) { - return this.tsParseFunctionOrConstructorType("TSFunctionType"); - } - if (this.match(77)) { - return this.tsParseFunctionOrConstructorType("TSConstructorType"); - } else if (this.isAbstractConstructorSignature()) { - return this.tsParseFunctionOrConstructorType("TSConstructorType", true); - } - return this.tsParseUnionTypeOrHigher(); - } - tsParseTypeAssertion() { - if (this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) { - this.raise(TSErrors.ReservedTypeAssertion, { - at: this.state.startLoc - }); - } - const node = this.startNode(); - node.typeAnnotation = this.tsInType(() => { - this.next(); - return this.match(75) ? this.tsParseTypeReference() : this.tsParseType(); - }); - this.expect(48); - node.expression = this.parseMaybeUnary(); - return this.finishNode(node, "TSTypeAssertion"); - } - tsParseHeritageClause(token) { - const originalStartLoc = this.state.startLoc; - const delimitedList = this.tsParseDelimitedList("HeritageClauseElement", () => { - const node = this.startNode(); - node.expression = this.tsParseEntityName(); - if (this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSExpressionWithTypeArguments"); - }); - if (!delimitedList.length) { - this.raise(TSErrors.EmptyHeritageClauseType, { - at: originalStartLoc, - token - }); - } - return delimitedList; - } - tsParseInterfaceDeclaration(node, properties = {}) { - if (this.hasFollowingLineBreak()) return null; - this.expectContextual(127); - if (properties.declare) node.declare = true; - if (tokenIsIdentifier(this.state.type)) { - node.id = this.parseIdentifier(); - this.checkIdentifier(node.id, BIND_TS_INTERFACE); - } else { - node.id = null; - this.raise(TSErrors.MissingInterfaceName, { - at: this.state.startLoc - }); - } - node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); - if (this.eat(81)) { - node.extends = this.tsParseHeritageClause("extends"); - } - const body = this.startNode(); - body.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)); - node.body = this.finishNode(body, "TSInterfaceBody"); - return this.finishNode(node, "TSInterfaceDeclaration"); - } - tsParseTypeAliasDeclaration(node) { - node.id = this.parseIdentifier(); - this.checkIdentifier(node.id, BIND_TS_TYPE); - node.typeAnnotation = this.tsInType(() => { - node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers); - this.expect(29); - if (this.isContextual(112) && this.lookahead().type !== 16) { - const node = this.startNode(); - this.next(); - return this.finishNode(node, "TSIntrinsicKeyword"); - } - return this.tsParseType(); - }); - this.semicolon(); - return this.finishNode(node, "TSTypeAliasDeclaration"); - } - tsInNoContext(cb) { - const oldContext = this.state.context; - this.state.context = [oldContext[0]]; - try { - return cb(); - } finally { - this.state.context = oldContext; - } - } - tsInType(cb) { - const oldInType = this.state.inType; - this.state.inType = true; - try { - return cb(); - } finally { - this.state.inType = oldInType; - } - } - tsInDisallowConditionalTypesContext(cb) { - const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext; - this.state.inDisallowConditionalTypesContext = true; - try { - return cb(); - } finally { - this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext; - } - } - tsInAllowConditionalTypesContext(cb) { - const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext; - this.state.inDisallowConditionalTypesContext = false; - try { - return cb(); - } finally { - this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext; - } - } - tsEatThenParseType(token) { - return !this.match(token) ? undefined : this.tsNextThenParseType(); - } - tsExpectThenParseType(token) { - return this.tsDoThenParseType(() => this.expect(token)); - } - tsNextThenParseType() { - return this.tsDoThenParseType(() => this.next()); - } - tsDoThenParseType(cb) { - return this.tsInType(() => { - cb(); - return this.tsParseType(); - }); - } - tsParseEnumMember() { - const node = this.startNode(); - node.id = this.match(131) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(true); - if (this.eat(29)) { - node.initializer = super.parseMaybeAssignAllowIn(); - } - return this.finishNode(node, "TSEnumMember"); - } - tsParseEnumDeclaration(node, properties = {}) { - if (properties.const) node.const = true; - if (properties.declare) node.declare = true; - this.expectContextual(124); - node.id = this.parseIdentifier(); - this.checkIdentifier(node.id, node.const ? BIND_TS_CONST_ENUM : BIND_TS_ENUM); - this.expect(5); - node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)); - this.expect(8); - return this.finishNode(node, "TSEnumDeclaration"); - } - tsParseModuleBlock() { - const node = this.startNode(); - this.scope.enter(SCOPE_OTHER); - this.expect(5); - super.parseBlockOrModuleBlockBody(node.body = [], undefined, true, 8); - this.scope.exit(); - return this.finishNode(node, "TSModuleBlock"); - } - tsParseModuleOrNamespaceDeclaration(node, nested = false) { - node.id = this.parseIdentifier(); - if (!nested) { - this.checkIdentifier(node.id, BIND_TS_NAMESPACE); - } - if (this.eat(16)) { - const inner = this.startNode(); - this.tsParseModuleOrNamespaceDeclaration(inner, true); - node.body = inner; - } else { - this.scope.enter(SCOPE_TS_MODULE); - this.prodParam.enter(PARAM); - node.body = this.tsParseModuleBlock(); - this.prodParam.exit(); - this.scope.exit(); - } - return this.finishNode(node, "TSModuleDeclaration"); - } - tsParseAmbientExternalModuleDeclaration(node) { - if (this.isContextual(110)) { - node.global = true; - node.id = this.parseIdentifier(); - } else if (this.match(131)) { - node.id = super.parseStringLiteral(this.state.value); - } else { - this.unexpected(); - } - if (this.match(5)) { - this.scope.enter(SCOPE_TS_MODULE); - this.prodParam.enter(PARAM); - node.body = this.tsParseModuleBlock(); - this.prodParam.exit(); - this.scope.exit(); - } else { - this.semicolon(); - } - return this.finishNode(node, "TSModuleDeclaration"); - } - tsParseImportEqualsDeclaration(node, isExport) { - node.isExport = isExport || false; - node.id = this.parseIdentifier(); - this.checkIdentifier(node.id, BIND_FLAGS_TS_IMPORT); - this.expect(29); - const moduleReference = this.tsParseModuleReference(); - if (node.importKind === "type" && moduleReference.type !== "TSExternalModuleReference") { - this.raise(TSErrors.ImportAliasHasImportType, { - at: moduleReference - }); - } - node.moduleReference = moduleReference; - this.semicolon(); - return this.finishNode(node, "TSImportEqualsDeclaration"); - } - tsIsExternalModuleReference() { - return this.isContextual(117) && this.lookaheadCharCode() === 40; - } - tsParseModuleReference() { - return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(false); - } - tsParseExternalModuleReference() { - const node = this.startNode(); - this.expectContextual(117); - this.expect(10); - if (!this.match(131)) { - throw this.unexpected(); - } - node.expression = super.parseExprAtom(); - this.expect(11); - return this.finishNode(node, "TSExternalModuleReference"); - } - tsLookAhead(f) { - const state = this.state.clone(); - const res = f(); - this.state = state; - return res; - } - tsTryParseAndCatch(f) { - const result = this.tryParse(abort => f() || abort()); - if (result.aborted || !result.node) return undefined; - if (result.error) this.state = result.failState; - return result.node; - } - tsTryParse(f) { - const state = this.state.clone(); - const result = f(); - if (result !== undefined && result !== false) { - return result; - } else { - this.state = state; - return undefined; - } - } - tsTryParseDeclare(nany) { - if (this.isLineTerminator()) { - return; - } - let starttype = this.state.type; - let kind; - if (this.isContextual(99)) { - starttype = 74; - kind = "let"; - } - return this.tsInAmbientContext(() => { - if (starttype === 68) { - nany.declare = true; - return super.parseFunctionStatement(nany, false, false); - } - if (starttype === 80) { - nany.declare = true; - return this.parseClass(nany, true, false); - } - if (starttype === 124) { - return this.tsParseEnumDeclaration(nany, { - declare: true - }); - } - if (starttype === 110) { - return this.tsParseAmbientExternalModuleDeclaration(nany); - } - if (starttype === 75 || starttype === 74) { - if (!this.match(75) || !this.isLookaheadContextual("enum")) { - nany.declare = true; - return this.parseVarStatement(nany, kind || this.state.value, true); - } - this.expect(75); - return this.tsParseEnumDeclaration(nany, { - const: true, - declare: true - }); - } - if (starttype === 127) { - const result = this.tsParseInterfaceDeclaration(nany, { - declare: true - }); - if (result) return result; - } - if (tokenIsIdentifier(starttype)) { - return this.tsParseDeclaration(nany, this.state.value, true, null); - } - }); - } - tsTryParseExportDeclaration() { - return this.tsParseDeclaration(this.startNode(), this.state.value, true, null); - } - tsParseExpressionStatement(node, expr, decorators) { - switch (expr.name) { - case "declare": - { - const declaration = this.tsTryParseDeclare(node); - if (declaration) { - declaration.declare = true; - return declaration; - } - break; - } - case "global": - if (this.match(5)) { - this.scope.enter(SCOPE_TS_MODULE); - this.prodParam.enter(PARAM); - const mod = node; - mod.global = true; - mod.id = expr; - mod.body = this.tsParseModuleBlock(); - this.scope.exit(); - this.prodParam.exit(); - return this.finishNode(mod, "TSModuleDeclaration"); - } - break; - default: - return this.tsParseDeclaration(node, expr.name, false, decorators); - } - } - tsParseDeclaration(node, value, next, decorators) { - switch (value) { - case "abstract": - if (this.tsCheckLineTerminator(next) && (this.match(80) || tokenIsIdentifier(this.state.type))) { - return this.tsParseAbstractDeclaration(node, decorators); - } - break; - case "module": - if (this.tsCheckLineTerminator(next)) { - if (this.match(131)) { - return this.tsParseAmbientExternalModuleDeclaration(node); - } else if (tokenIsIdentifier(this.state.type)) { - return this.tsParseModuleOrNamespaceDeclaration(node); - } - } - break; - case "namespace": - if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) { - return this.tsParseModuleOrNamespaceDeclaration(node); - } - break; - case "type": - if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) { - return this.tsParseTypeAliasDeclaration(node); - } - break; - } - } - tsCheckLineTerminator(next) { - if (next) { - if (this.hasFollowingLineBreak()) return false; - this.next(); - return true; - } - return !this.isLineTerminator(); - } - tsTryParseGenericAsyncArrowFunction(startLoc) { - if (!this.match(47)) { - return undefined; - } - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - this.state.maybeInArrowParameters = true; - const res = this.tsTryParseAndCatch(() => { - const node = this.startNodeAt(startLoc); - node.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier); - super.parseFunctionParams(node); - node.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(); - this.expect(19); - return node; - }); - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - if (!res) { - return undefined; - } - return super.parseArrowExpression(res, null, true); - } - tsParseTypeArgumentsInExpression() { - if (this.reScan_lt() !== 47) { - return undefined; - } - return this.tsParseTypeArguments(); - } - tsParseTypeArguments() { - const node = this.startNode(); - node.params = this.tsInType(() => this.tsInNoContext(() => { - this.expect(47); - return this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this)); - })); - if (node.params.length === 0) { - this.raise(TSErrors.EmptyTypeArguments, { - at: node - }); - } - this.expect(48); - return this.finishNode(node, "TSTypeParameterInstantiation"); - } - tsIsDeclarationStart() { - return tokenIsTSDeclarationStart(this.state.type); - } - isExportDefaultSpecifier() { - if (this.tsIsDeclarationStart()) return false; - return super.isExportDefaultSpecifier(); - } - parseAssignableListItem(flags, decorators) { - const startLoc = this.state.startLoc; - const modified = {}; - this.tsParseModifiers({ - allowedModifiers: ["public", "private", "protected", "override", "readonly"] - }, modified); - const accessibility = modified.accessibility; - const override = modified.override; - const readonly = modified.readonly; - if (!(flags & ParseBindingListFlags.IS_CONSTRUCTOR_PARAMS) && (accessibility || readonly || override)) { - this.raise(TSErrors.UnexpectedParameterModifier, { - at: startLoc - }); - } - const left = this.parseMaybeDefault(); - this.parseAssignableListItemTypes(left, flags); - const elt = this.parseMaybeDefault(left.loc.start, left); - if (accessibility || readonly || override) { - const pp = this.startNodeAt(startLoc); - if (decorators.length) { - pp.decorators = decorators; - } - if (accessibility) pp.accessibility = accessibility; - if (readonly) pp.readonly = readonly; - if (override) pp.override = override; - if (elt.type !== "Identifier" && elt.type !== "AssignmentPattern") { - this.raise(TSErrors.UnsupportedParameterPropertyKind, { - at: pp - }); - } - pp.parameter = elt; - return this.finishNode(pp, "TSParameterProperty"); - } - if (decorators.length) { - left.decorators = decorators; - } - return elt; - } - isSimpleParameter(node) { - return node.type === "TSParameterProperty" && super.isSimpleParameter(node.parameter) || super.isSimpleParameter(node); - } - tsDisallowOptionalPattern(node) { - for (const param of node.params) { - if (param.type !== "Identifier" && param.optional && !this.state.isAmbientContext) { - this.raise(TSErrors.PatternIsOptional, { - at: param - }); - } - } - } - setArrowFunctionParameters(node, params, trailingCommaLoc) { - super.setArrowFunctionParameters(node, params, trailingCommaLoc); - this.tsDisallowOptionalPattern(node); - } - parseFunctionBodyAndFinish(node, type, isMethod = false) { - if (this.match(14)) { - node.returnType = this.tsParseTypeOrTypePredicateAnnotation(14); - } - const bodilessType = type === "FunctionDeclaration" ? "TSDeclareFunction" : type === "ClassMethod" || type === "ClassPrivateMethod" ? "TSDeclareMethod" : undefined; - if (bodilessType && !this.match(5) && this.isLineTerminator()) { - return this.finishNode(node, bodilessType); - } - if (bodilessType === "TSDeclareFunction" && this.state.isAmbientContext) { - this.raise(TSErrors.DeclareFunctionHasImplementation, { - at: node - }); - if (node.declare) { - return super.parseFunctionBodyAndFinish(node, bodilessType, isMethod); - } - } - this.tsDisallowOptionalPattern(node); - return super.parseFunctionBodyAndFinish(node, type, isMethod); - } - registerFunctionStatementId(node) { - if (!node.body && node.id) { - this.checkIdentifier(node.id, BIND_TS_AMBIENT); - } else { - super.registerFunctionStatementId(node); - } - } - tsCheckForInvalidTypeCasts(items) { - items.forEach(node => { - if ((node == null ? void 0 : node.type) === "TSTypeCastExpression") { - this.raise(TSErrors.UnexpectedTypeAnnotation, { - at: node.typeAnnotation - }); - } - }); - } - toReferencedList(exprList, isInParens) { - this.tsCheckForInvalidTypeCasts(exprList); - return exprList; - } - parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { - const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors); - if (node.type === "ArrayExpression") { - this.tsCheckForInvalidTypeCasts(node.elements); - } - return node; - } - parseSubscript(base, startLoc, noCalls, state) { - if (!this.hasPrecedingLineBreak() && this.match(35)) { - this.state.canStartJSXElement = false; - this.next(); - const nonNullExpression = this.startNodeAt(startLoc); - nonNullExpression.expression = base; - return this.finishNode(nonNullExpression, "TSNonNullExpression"); - } - let isOptionalCall = false; - if (this.match(18) && this.lookaheadCharCode() === 60) { - if (noCalls) { - state.stop = true; - return base; - } - state.optionalChainMember = isOptionalCall = true; - this.next(); - } - if (this.match(47) || this.match(51)) { - let missingParenErrorLoc; - const result = this.tsTryParseAndCatch(() => { - if (!noCalls && this.atPossibleAsyncArrow(base)) { - const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc); - if (asyncArrowFn) { - return asyncArrowFn; - } - } - const typeArguments = this.tsParseTypeArgumentsInExpression(); - if (!typeArguments) return; - if (isOptionalCall && !this.match(10)) { - missingParenErrorLoc = this.state.curPosition(); - return; - } - if (tokenIsTemplate(this.state.type)) { - const result = super.parseTaggedTemplateExpression(base, startLoc, state); - result.typeParameters = typeArguments; - return result; - } - if (!noCalls && this.eat(10)) { - const node = this.startNodeAt(startLoc); - node.callee = base; - node.arguments = this.parseCallExpressionArguments(11, false); - this.tsCheckForInvalidTypeCasts(node.arguments); - node.typeParameters = typeArguments; - if (state.optionalChainMember) { - node.optional = isOptionalCall; - } - return this.finishCallExpression(node, state.optionalChainMember); - } - const tokenType = this.state.type; - if (tokenType === 48 || tokenType === 52 || tokenType !== 10 && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) { - return; - } - const node = this.startNodeAt(startLoc); - node.expression = base; - node.typeParameters = typeArguments; - return this.finishNode(node, "TSInstantiationExpression"); - }); - if (missingParenErrorLoc) { - this.unexpected(missingParenErrorLoc, 10); - } - if (result) { - if (result.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40)) { - this.raise(TSErrors.InvalidPropertyAccessAfterInstantiationExpression, { - at: this.state.startLoc - }); - } - return result; - } - } - return super.parseSubscript(base, startLoc, noCalls, state); - } - parseNewCallee(node) { - var _callee$extra; - super.parseNewCallee(node); - const { - callee - } = node; - if (callee.type === "TSInstantiationExpression" && !((_callee$extra = callee.extra) != null && _callee$extra.parenthesized)) { - node.typeParameters = callee.typeParameters; - node.callee = callee.expression; - } - } - parseExprOp(left, leftStartLoc, minPrec) { - let isSatisfies; - if (tokenOperatorPrecedence(58) > minPrec && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (isSatisfies = this.isContextual(118)))) { - const node = this.startNodeAt(leftStartLoc); - node.expression = left; - node.typeAnnotation = this.tsInType(() => { - this.next(); - if (this.match(75)) { - if (isSatisfies) { - this.raise(Errors.UnexpectedKeyword, { - at: this.state.startLoc, - keyword: "const" - }); - } - return this.tsParseTypeReference(); - } - return this.tsParseType(); - }); - this.finishNode(node, isSatisfies ? "TSSatisfiesExpression" : "TSAsExpression"); - this.reScan_lt_gt(); - return this.parseExprOp(node, leftStartLoc, minPrec); - } - return super.parseExprOp(left, leftStartLoc, minPrec); - } - checkReservedWord(word, startLoc, checkKeywords, isBinding) { - if (!this.state.isAmbientContext) { - super.checkReservedWord(word, startLoc, checkKeywords, isBinding); - } - } - checkImportReflection(node) { - super.checkImportReflection(node); - if (node.module && node.importKind !== "value") { - this.raise(TSErrors.ImportReflectionHasImportType, { - at: node.specifiers[0].loc.start - }); - } - } - checkDuplicateExports() {} - parseImport(node) { - node.importKind = "value"; - if (tokenIsIdentifier(this.state.type) || this.match(55) || this.match(5)) { - let ahead = this.lookahead(); - if (this.isContextual(128) && ahead.type !== 12 && ahead.type !== 97 && ahead.type !== 29) { - node.importKind = "type"; - this.next(); - ahead = this.lookahead(); - } - if (tokenIsIdentifier(this.state.type) && ahead.type === 29) { - return this.tsParseImportEqualsDeclaration(node); - } - } - const importNode = super.parseImport(node); - if (importNode.importKind === "type" && importNode.specifiers.length > 1 && importNode.specifiers[0].type === "ImportDefaultSpecifier") { - this.raise(TSErrors.TypeImportCannotSpecifyDefaultAndNamed, { - at: importNode - }); - } - return importNode; - } - parseExport(node, decorators) { - if (this.match(83)) { - this.next(); - if (this.isContextual(128) && this.lookaheadCharCode() !== 61) { - node.importKind = "type"; - this.next(); - } else { - node.importKind = "value"; - } - return this.tsParseImportEqualsDeclaration(node, true); - } else if (this.eat(29)) { - const assign = node; - assign.expression = super.parseExpression(); - this.semicolon(); - return this.finishNode(assign, "TSExportAssignment"); - } else if (this.eatContextual(93)) { - const decl = node; - this.expectContextual(126); - decl.id = this.parseIdentifier(); - this.semicolon(); - return this.finishNode(decl, "TSNamespaceExportDeclaration"); - } else { - node.exportKind = "value"; - if (this.isContextual(128)) { - const ch = this.lookaheadCharCode(); - if (ch === 123 || ch === 42) { - this.next(); - node.exportKind = "type"; - } - } - return super.parseExport(node, decorators); - } - } - isAbstractClass() { - return this.isContextual(122) && this.lookahead().type === 80; - } - parseExportDefaultExpression() { - if (this.isAbstractClass()) { - const cls = this.startNode(); - this.next(); - cls.abstract = true; - return this.parseClass(cls, true, true); - } - if (this.match(127)) { - const result = this.tsParseInterfaceDeclaration(this.startNode()); - if (result) return result; - } - return super.parseExportDefaultExpression(); - } - parseVarStatement(node, kind, allowMissingInitializer = false) { - const { - isAmbientContext - } = this.state; - const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext); - if (!isAmbientContext) return declaration; - for (const { - id, - init - } of declaration.declarations) { - if (!init) continue; - if (kind !== "const" || !!id.typeAnnotation) { - this.raise(TSErrors.InitializerNotAllowedInAmbientContext, { - at: init - }); - } else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) { - this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, { - at: init - }); - } - } - return declaration; - } - parseStatementContent(flags, decorators) { - if (this.match(75) && this.isLookaheadContextual("enum")) { - const node = this.startNode(); - this.expect(75); - return this.tsParseEnumDeclaration(node, { - const: true - }); - } - if (this.isContextual(124)) { - return this.tsParseEnumDeclaration(this.startNode()); - } - if (this.isContextual(127)) { - const result = this.tsParseInterfaceDeclaration(this.startNode()); - if (result) return result; - } - return super.parseStatementContent(flags, decorators); - } - parseAccessModifier() { - return this.tsParseModifier(["public", "protected", "private"]); - } - tsHasSomeModifiers(member, modifiers) { - return modifiers.some(modifier => { - if (tsIsAccessModifier(modifier)) { - return member.accessibility === modifier; - } - return !!member[modifier]; - }); - } - tsIsStartOfStaticBlocks() { - return this.isContextual(104) && this.lookaheadCharCode() === 123; - } - parseClassMember(classBody, member, state) { - const modifiers = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"]; - this.tsParseModifiers({ - allowedModifiers: modifiers, - disallowedModifiers: ["in", "out"], - stopOnStartOfClassStaticBlock: true, - errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions - }, member); - const callParseClassMemberWithIsStatic = () => { - if (this.tsIsStartOfStaticBlocks()) { - this.next(); - this.next(); - if (this.tsHasSomeModifiers(member, modifiers)) { - this.raise(TSErrors.StaticBlockCannotHaveModifier, { - at: this.state.curPosition() - }); - } - super.parseClassStaticBlock(classBody, member); - } else { - this.parseClassMemberWithIsStatic(classBody, member, state, !!member.static); - } - }; - if (member.declare) { - this.tsInAmbientContext(callParseClassMemberWithIsStatic); - } else { - callParseClassMemberWithIsStatic(); - } - } - parseClassMemberWithIsStatic(classBody, member, state, isStatic) { - const idx = this.tsTryParseIndexSignature(member); - if (idx) { - classBody.body.push(idx); - if (member.abstract) { - this.raise(TSErrors.IndexSignatureHasAbstract, { - at: member - }); - } - if (member.accessibility) { - this.raise(TSErrors.IndexSignatureHasAccessibility, { - at: member, - modifier: member.accessibility - }); - } - if (member.declare) { - this.raise(TSErrors.IndexSignatureHasDeclare, { - at: member - }); - } - if (member.override) { - this.raise(TSErrors.IndexSignatureHasOverride, { - at: member - }); - } - return; - } - if (!this.state.inAbstractClass && member.abstract) { - this.raise(TSErrors.NonAbstractClassHasAbstractMethod, { - at: member - }); - } - if (member.override) { - if (!state.hadSuperClass) { - this.raise(TSErrors.OverrideNotInSubClass, { - at: member - }); - } - } - super.parseClassMemberWithIsStatic(classBody, member, state, isStatic); - } - parsePostMemberNameModifiers(methodOrProp) { - const optional = this.eat(17); - if (optional) methodOrProp.optional = true; - if (methodOrProp.readonly && this.match(10)) { - this.raise(TSErrors.ClassMethodHasReadonly, { - at: methodOrProp - }); - } - if (methodOrProp.declare && this.match(10)) { - this.raise(TSErrors.ClassMethodHasDeclare, { - at: methodOrProp - }); - } - } - parseExpressionStatement(node, expr, decorators) { - const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr, decorators) : undefined; - return decl || super.parseExpressionStatement(node, expr, decorators); - } - shouldParseExportDeclaration() { - if (this.tsIsDeclarationStart()) return true; - return super.shouldParseExportDeclaration(); - } - parseConditional(expr, startLoc, refExpressionErrors) { - if (!this.state.maybeInArrowParameters || !this.match(17)) { - return super.parseConditional(expr, startLoc, refExpressionErrors); - } - const result = this.tryParse(() => super.parseConditional(expr, startLoc)); - if (!result.node) { - if (result.error) { - super.setOptionalParametersError(refExpressionErrors, result.error); - } - return expr; - } - if (result.error) this.state = result.failState; - return result.node; - } - parseParenItem(node, startLoc) { - node = super.parseParenItem(node, startLoc); - if (this.eat(17)) { - node.optional = true; - this.resetEndLocation(node); - } - if (this.match(14)) { - const typeCastNode = this.startNodeAt(startLoc); - typeCastNode.expression = node; - typeCastNode.typeAnnotation = this.tsParseTypeAnnotation(); - return this.finishNode(typeCastNode, "TSTypeCastExpression"); - } - return node; - } - parseExportDeclaration(node) { - if (!this.state.isAmbientContext && this.isContextual(123)) { - return this.tsInAmbientContext(() => this.parseExportDeclaration(node)); - } - const startLoc = this.state.startLoc; - const isDeclare = this.eatContextual(123); - if (isDeclare && (this.isContextual(123) || !this.shouldParseExportDeclaration())) { - throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare, { - at: this.state.startLoc - }); - } - const isIdentifier = tokenIsIdentifier(this.state.type); - const declaration = isIdentifier && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(node); - if (!declaration) return null; - if (declaration.type === "TSInterfaceDeclaration" || declaration.type === "TSTypeAliasDeclaration" || isDeclare) { - node.exportKind = "type"; - } - if (isDeclare) { - this.resetStartLocation(declaration, startLoc); - declaration.declare = true; - } - return declaration; - } - parseClassId(node, isStatement, optionalId, bindingType) { - if ((!isStatement || optionalId) && this.isContextual(111)) { - return; - } - super.parseClassId(node, isStatement, optionalId, node.declare ? BIND_TS_AMBIENT : BIND_CLASS); - const typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); - if (typeParameters) node.typeParameters = typeParameters; - } - parseClassPropertyAnnotation(node) { - if (!node.optional) { - if (this.eat(35)) { - node.definite = true; - } else if (this.eat(17)) { - node.optional = true; - } - } - const type = this.tsTryParseTypeAnnotation(); - if (type) node.typeAnnotation = type; - } - parseClassProperty(node) { - this.parseClassPropertyAnnotation(node); - if (this.state.isAmbientContext && !(node.readonly && !node.typeAnnotation) && this.match(29)) { - this.raise(TSErrors.DeclareClassFieldHasInitializer, { - at: this.state.startLoc - }); - } - if (node.abstract && this.match(29)) { - const { - key - } = node; - this.raise(TSErrors.AbstractPropertyHasInitializer, { - at: this.state.startLoc, - propertyName: key.type === "Identifier" && !node.computed ? key.name : `[${this.input.slice(key.start, key.end)}]` - }); - } - return super.parseClassProperty(node); - } - parseClassPrivateProperty(node) { - if (node.abstract) { - this.raise(TSErrors.PrivateElementHasAbstract, { - at: node - }); - } - if (node.accessibility) { - this.raise(TSErrors.PrivateElementHasAccessibility, { - at: node, - modifier: node.accessibility - }); - } - this.parseClassPropertyAnnotation(node); - return super.parseClassPrivateProperty(node); - } - parseClassAccessorProperty(node) { - this.parseClassPropertyAnnotation(node); - if (node.optional) { - this.raise(TSErrors.AccessorCannotBeOptional, { - at: node - }); - } - return super.parseClassAccessorProperty(node); - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters && isConstructor) { - this.raise(TSErrors.ConstructorHasTypeParameters, { - at: typeParameters - }); - } - const { - declare = false, - kind - } = method; - if (declare && (kind === "get" || kind === "set")) { - this.raise(TSErrors.DeclareAccessor, { - at: method, - kind - }); - } - if (typeParameters) method.typeParameters = typeParameters; - super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper); - } - pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters) method.typeParameters = typeParameters; - super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync); - } - declareClassPrivateMethodInScope(node, kind) { - if (node.type === "TSDeclareMethod") return; - if (node.type === "MethodDefinition" && !node.value.body) return; - super.declareClassPrivateMethodInScope(node, kind); - } - parseClassSuper(node) { - super.parseClassSuper(node); - if (node.superClass && (this.match(47) || this.match(51))) { - node.superTypeParameters = this.tsParseTypeArgumentsInExpression(); - } - if (this.eatContextual(111)) { - node.implements = this.tsParseHeritageClause("implements"); - } - } - parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters) prop.typeParameters = typeParameters; - return super.parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors); - } - parseFunctionParams(node, isConstructor) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters) node.typeParameters = typeParameters; - super.parseFunctionParams(node, isConstructor); - } - parseVarId(decl, kind) { - super.parseVarId(decl, kind); - if (decl.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35)) { - decl.definite = true; - } - const type = this.tsTryParseTypeAnnotation(); - if (type) { - decl.id.typeAnnotation = type; - this.resetEndLocation(decl.id); - } - } - parseAsyncArrowFromCallExpression(node, call) { - if (this.match(14)) { - node.returnType = this.tsParseTypeAnnotation(); - } - return super.parseAsyncArrowFromCallExpression(node, call); - } - parseMaybeAssign(refExpressionErrors, afterLeftParse) { - var _jsx, _jsx2, _typeCast, _jsx3, _typeCast2, _jsx4, _typeCast3; - let state; - let jsx; - let typeCast; - if (this.hasPlugin("jsx") && (this.match(140) || this.match(47))) { - state = this.state.clone(); - jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); - if (!jsx.error) return jsx.node; - const { - context - } = this.state; - const currentContext = context[context.length - 1]; - if (currentContext === types.j_oTag || currentContext === types.j_expr) { - context.pop(); - } - } - if (!((_jsx = jsx) != null && _jsx.error) && !this.match(47)) { - return super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - } - if (!state || state === this.state) state = this.state.clone(); - let typeParameters; - const arrow = this.tryParse(abort => { - var _expr$extra, _typeParameters; - typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier); - const expr = super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - if (expr.type !== "ArrowFunctionExpression" || (_expr$extra = expr.extra) != null && _expr$extra.parenthesized) { - abort(); - } - if (((_typeParameters = typeParameters) == null ? void 0 : _typeParameters.params.length) !== 0) { - this.resetStartLocationFromNode(expr, typeParameters); - } - expr.typeParameters = typeParameters; - return expr; - }, state); - if (!arrow.error && !arrow.aborted) { - if (typeParameters) this.reportReservedArrowTypeParam(typeParameters); - return arrow.node; - } - if (!jsx) { - assert(!this.hasPlugin("jsx")); - typeCast = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); - if (!typeCast.error) return typeCast.node; - } - if ((_jsx2 = jsx) != null && _jsx2.node) { - this.state = jsx.failState; - return jsx.node; - } - if (arrow.node) { - this.state = arrow.failState; - if (typeParameters) this.reportReservedArrowTypeParam(typeParameters); - return arrow.node; - } - if ((_typeCast = typeCast) != null && _typeCast.node) { - this.state = typeCast.failState; - return typeCast.node; - } - if ((_jsx3 = jsx) != null && _jsx3.thrown) throw jsx.error; - if (arrow.thrown) throw arrow.error; - if ((_typeCast2 = typeCast) != null && _typeCast2.thrown) throw typeCast.error; - throw ((_jsx4 = jsx) == null ? void 0 : _jsx4.error) || arrow.error || ((_typeCast3 = typeCast) == null ? void 0 : _typeCast3.error); - } - reportReservedArrowTypeParam(node) { - var _node$extra; - if (node.params.length === 1 && !node.params[0].constraint && !((_node$extra = node.extra) != null && _node$extra.trailingComma) && this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) { - this.raise(TSErrors.ReservedArrowTypeParam, { - at: node - }); - } - } - parseMaybeUnary(refExpressionErrors, sawUnary) { - if (!this.hasPlugin("jsx") && this.match(47)) { - return this.tsParseTypeAssertion(); - } else { - return super.parseMaybeUnary(refExpressionErrors, sawUnary); - } - } - parseArrow(node) { - if (this.match(14)) { - const result = this.tryParse(abort => { - const returnType = this.tsParseTypeOrTypePredicateAnnotation(14); - if (this.canInsertSemicolon() || !this.match(19)) abort(); - return returnType; - }); - if (result.aborted) return; - if (!result.thrown) { - if (result.error) this.state = result.failState; - node.returnType = result.node; - } - } - return super.parseArrow(node); - } - parseAssignableListItemTypes(param, flags) { - if (!(flags & ParseBindingListFlags.IS_FUNCTION_PARAMS)) return param; - if (this.eat(17)) { - param.optional = true; - } - const type = this.tsTryParseTypeAnnotation(); - if (type) param.typeAnnotation = type; - this.resetEndLocation(param); - return param; - } - isAssignable(node, isBinding) { - switch (node.type) { - case "TSTypeCastExpression": - return this.isAssignable(node.expression, isBinding); - case "TSParameterProperty": - return true; - default: - return super.isAssignable(node, isBinding); - } - } - toAssignable(node, isLHS = false) { - switch (node.type) { - case "ParenthesizedExpression": - this.toAssignableParenthesizedExpression(node, isLHS); - break; - case "TSAsExpression": - case "TSSatisfiesExpression": - case "TSNonNullExpression": - case "TSTypeAssertion": - if (isLHS) { - this.expressionScope.recordArrowParameterBindingError(TSErrors.UnexpectedTypeCastInParameter, { - at: node - }); - } else { - this.raise(TSErrors.UnexpectedTypeCastInParameter, { - at: node - }); - } - this.toAssignable(node.expression, isLHS); - break; - case "AssignmentExpression": - if (!isLHS && node.left.type === "TSTypeCastExpression") { - node.left = this.typeCastToParameter(node.left); - } - default: - super.toAssignable(node, isLHS); - } - } - toAssignableParenthesizedExpression(node, isLHS) { - switch (node.expression.type) { - case "TSAsExpression": - case "TSSatisfiesExpression": - case "TSNonNullExpression": - case "TSTypeAssertion": - case "ParenthesizedExpression": - this.toAssignable(node.expression, isLHS); - break; - default: - super.toAssignable(node, isLHS); - } - } - checkToRestConversion(node, allowPattern) { - switch (node.type) { - case "TSAsExpression": - case "TSSatisfiesExpression": - case "TSTypeAssertion": - case "TSNonNullExpression": - this.checkToRestConversion(node.expression, false); - break; - default: - super.checkToRestConversion(node, allowPattern); - } - } - isValidLVal(type, isUnparenthesizedInAssign, binding) { - return getOwn({ - TSTypeCastExpression: true, - TSParameterProperty: "parameter", - TSNonNullExpression: "expression", - TSAsExpression: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true], - TSSatisfiesExpression: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true], - TSTypeAssertion: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true] - }, type) || super.isValidLVal(type, isUnparenthesizedInAssign, binding); - } - parseBindingAtom() { - switch (this.state.type) { - case 78: - return this.parseIdentifier(true); - default: - return super.parseBindingAtom(); - } - } - parseMaybeDecoratorArguments(expr) { - if (this.match(47) || this.match(51)) { - const typeArguments = this.tsParseTypeArgumentsInExpression(); - if (this.match(10)) { - const call = super.parseMaybeDecoratorArguments(expr); - call.typeParameters = typeArguments; - return call; - } - this.unexpected(null, 10); - } - return super.parseMaybeDecoratorArguments(expr); - } - checkCommaAfterRest(close) { - if (this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === close) { - this.next(); - return false; - } else { - return super.checkCommaAfterRest(close); - } - } - isClassMethod() { - return this.match(47) || super.isClassMethod(); - } - isClassProperty() { - return this.match(35) || this.match(14) || super.isClassProperty(); - } - parseMaybeDefault(startLoc, left) { - const node = super.parseMaybeDefault(startLoc, left); - if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) { - this.raise(TSErrors.TypeAnnotationAfterAssign, { - at: node.typeAnnotation - }); - } - return node; - } - getTokenFromCode(code) { - if (this.state.inType) { - if (code === 62) { - return this.finishOp(48, 1); - } - if (code === 60) { - return this.finishOp(47, 1); - } - } - return super.getTokenFromCode(code); - } - reScan_lt_gt() { - const { - type - } = this.state; - if (type === 47) { - this.state.pos -= 1; - this.readToken_lt(); - } else if (type === 48) { - this.state.pos -= 1; - this.readToken_gt(); - } - } - reScan_lt() { - const { - type - } = this.state; - if (type === 51) { - this.state.pos -= 2; - this.finishOp(47, 1); - return 47; - } - return type; - } - toAssignableList(exprList, trailingCommaLoc, isLHS) { - for (let i = 0; i < exprList.length; i++) { - const expr = exprList[i]; - if ((expr == null ? void 0 : expr.type) === "TSTypeCastExpression") { - exprList[i] = this.typeCastToParameter(expr); - } - } - super.toAssignableList(exprList, trailingCommaLoc, isLHS); - } - typeCastToParameter(node) { - node.expression.typeAnnotation = node.typeAnnotation; - this.resetEndLocation(node.expression, node.typeAnnotation.loc.end); - return node.expression; - } - shouldParseArrow(params) { - if (this.match(14)) { - return params.every(expr => this.isAssignable(expr, true)); - } - return super.shouldParseArrow(params); - } - shouldParseAsyncArrow() { - return this.match(14) || super.shouldParseAsyncArrow(); - } - canHaveLeadingDecorator() { - return super.canHaveLeadingDecorator() || this.isAbstractClass(); - } - jsxParseOpeningElementAfterName(node) { - if (this.match(47) || this.match(51)) { - const typeArguments = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression()); - if (typeArguments) node.typeParameters = typeArguments; - } - return super.jsxParseOpeningElementAfterName(node); - } - getGetterSetterExpectedParamCount(method) { - const baseCount = super.getGetterSetterExpectedParamCount(method); - const params = this.getObjectOrClassMethodParams(method); - const firstParam = params[0]; - const hasContextParam = firstParam && this.isThisParam(firstParam); - return hasContextParam ? baseCount + 1 : baseCount; - } - parseCatchClauseParam() { - const param = super.parseCatchClauseParam(); - const type = this.tsTryParseTypeAnnotation(); - if (type) { - param.typeAnnotation = type; - this.resetEndLocation(param); - } - return param; - } - tsInAmbientContext(cb) { - const oldIsAmbientContext = this.state.isAmbientContext; - this.state.isAmbientContext = true; - try { - return cb(); - } finally { - this.state.isAmbientContext = oldIsAmbientContext; - } - } - parseClass(node, isStatement, optionalId) { - const oldInAbstractClass = this.state.inAbstractClass; - this.state.inAbstractClass = !!node.abstract; - try { - return super.parseClass(node, isStatement, optionalId); - } finally { - this.state.inAbstractClass = oldInAbstractClass; - } - } - tsParseAbstractDeclaration(node, decorators) { - if (this.match(80)) { - node.abstract = true; - return this.maybeTakeDecorators(decorators, this.parseClass(node, true, false)); - } else if (this.isContextual(127)) { - if (!this.hasFollowingLineBreak()) { - node.abstract = true; - this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifer, { - at: node - }); - return this.tsParseInterfaceDeclaration(node); - } - } else { - this.unexpected(null, 80); - } - } - parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) { - const method = super.parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope); - if (method.abstract) { - const hasBody = this.hasPlugin("estree") ? !!method.value.body : !!method.body; - if (hasBody) { - const { - key - } = method; - this.raise(TSErrors.AbstractMethodHasImplementation, { - at: method, - methodName: key.type === "Identifier" && !method.computed ? key.name : `[${this.input.slice(key.start, key.end)}]` - }); - } - } - return method; - } - tsParseTypeParameterName() { - const typeName = this.parseIdentifier(); - return typeName.name; - } - shouldParseAsAmbientContext() { - return !!this.getPluginOption("typescript", "dts"); - } - parse() { - if (this.shouldParseAsAmbientContext()) { - this.state.isAmbientContext = true; - } - return super.parse(); - } - getExpression() { - if (this.shouldParseAsAmbientContext()) { - this.state.isAmbientContext = true; - } - return super.getExpression(); - } - parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly) { - if (!isString && isMaybeTypeOnly) { - this.parseTypeOnlyImportExportSpecifier(node, false, isInTypeExport); - return this.finishNode(node, "ExportSpecifier"); - } - node.exportKind = "value"; - return super.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly); - } - parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { - if (!importedIsString && isMaybeTypeOnly) { - this.parseTypeOnlyImportExportSpecifier(specifier, true, isInTypeOnlyImport); - return this.finishNode(specifier, "ImportSpecifier"); - } - specifier.importKind = "value"; - return super.parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, isInTypeOnlyImport ? BIND_TS_TYPE_IMPORT : BIND_FLAGS_TS_IMPORT); - } - parseTypeOnlyImportExportSpecifier(node, isImport, isInTypeOnlyImportExport) { - const leftOfAsKey = isImport ? "imported" : "local"; - const rightOfAsKey = isImport ? "local" : "exported"; - let leftOfAs = node[leftOfAsKey]; - let rightOfAs; - let hasTypeSpecifier = false; - let canParseAsKeyword = true; - const loc = leftOfAs.loc.start; - if (this.isContextual(93)) { - const firstAs = this.parseIdentifier(); - if (this.isContextual(93)) { - const secondAs = this.parseIdentifier(); - if (tokenIsKeywordOrIdentifier(this.state.type)) { - hasTypeSpecifier = true; - leftOfAs = firstAs; - rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName(); - canParseAsKeyword = false; - } else { - rightOfAs = secondAs; - canParseAsKeyword = false; - } - } else if (tokenIsKeywordOrIdentifier(this.state.type)) { - canParseAsKeyword = false; - rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName(); - } else { - hasTypeSpecifier = true; - leftOfAs = firstAs; - } - } else if (tokenIsKeywordOrIdentifier(this.state.type)) { - hasTypeSpecifier = true; - if (isImport) { - leftOfAs = this.parseIdentifier(true); - if (!this.isContextual(93)) { - this.checkReservedWord(leftOfAs.name, leftOfAs.loc.start, true, true); - } - } else { - leftOfAs = this.parseModuleExportName(); - } - } - if (hasTypeSpecifier && isInTypeOnlyImportExport) { - this.raise(isImport ? TSErrors.TypeModifierIsUsedInTypeImports : TSErrors.TypeModifierIsUsedInTypeExports, { - at: loc - }); - } - node[leftOfAsKey] = leftOfAs; - node[rightOfAsKey] = rightOfAs; - const kindKey = isImport ? "importKind" : "exportKind"; - node[kindKey] = hasTypeSpecifier ? "type" : "value"; - if (canParseAsKeyword && this.eatContextual(93)) { - node[rightOfAsKey] = isImport ? this.parseIdentifier() : this.parseModuleExportName(); - } - if (!node[rightOfAsKey]) { - node[rightOfAsKey] = cloneIdentifier(node[leftOfAsKey]); - } - if (isImport) { - this.checkIdentifier(node[rightOfAsKey], hasTypeSpecifier ? BIND_TS_TYPE_IMPORT : BIND_FLAGS_TS_IMPORT); - } - } -}); -function isPossiblyLiteralEnum(expression) { - if (expression.type !== "MemberExpression") return false; - const { - computed, - property - } = expression; - if (computed && property.type !== "StringLiteral" && (property.type !== "TemplateLiteral" || property.expressions.length > 0)) { - return false; - } - return isUncomputedMemberExpressionChain(expression.object); -} -function isValidAmbientConstInitializer(expression, estree) { - var _expression$extra; - const { - type - } = expression; - if ((_expression$extra = expression.extra) != null && _expression$extra.parenthesized) { - return false; - } - if (estree) { - if (type === "Literal") { - const { - value - } = expression; - if (typeof value === "string" || typeof value === "boolean") { - return true; - } - } - } else { - if (type === "StringLiteral" || type === "BooleanLiteral") { - return true; - } - } - if (isNumber(expression, estree) || isNegativeNumber(expression, estree)) { - return true; - } - if (type === "TemplateLiteral" && expression.expressions.length === 0) { - return true; - } - if (isPossiblyLiteralEnum(expression)) { - return true; - } - return false; -} -function isNumber(expression, estree) { - if (estree) { - return expression.type === "Literal" && (typeof expression.value === "number" || "bigint" in expression); - } else { - return expression.type === "NumericLiteral" || expression.type === "BigIntLiteral"; - } -} -function isNegativeNumber(expression, estree) { - if (expression.type === "UnaryExpression") { - const { - operator, - argument - } = expression; - if (operator === "-" && isNumber(argument, estree)) { - return true; - } - } - return false; -} -function isUncomputedMemberExpressionChain(expression) { - if (expression.type === "Identifier") return true; - if (expression.type !== "MemberExpression") return false; - if (expression.computed) return false; - return isUncomputedMemberExpressionChain(expression.object); -} - -const PlaceholderErrors = ParseErrorEnum`placeholders`({ - ClassNameIsRequired: "A class name is required.", - UnexpectedSpace: "Unexpected space in placeholder." -}); -var placeholders = (superClass => class PlaceholdersParserMixin extends superClass { - parsePlaceholder(expectedNode) { - if (this.match(142)) { - const node = this.startNode(); - this.next(); - this.assertNoSpace(); - node.name = super.parseIdentifier(true); - this.assertNoSpace(); - this.expect(142); - return this.finishPlaceholder(node, expectedNode); - } - } - finishPlaceholder(node, expectedNode) { - const isFinished = !!(node.expectedNode && node.type === "Placeholder"); - node.expectedNode = expectedNode; - return isFinished ? node : this.finishNode(node, "Placeholder"); - } - getTokenFromCode(code) { - if (code === 37 && this.input.charCodeAt(this.state.pos + 1) === 37) { - return this.finishOp(142, 2); - } - return super.getTokenFromCode(code); - } - parseExprAtom(refExpressionErrors) { - return this.parsePlaceholder("Expression") || super.parseExprAtom(refExpressionErrors); - } - parseIdentifier(liberal) { - return this.parsePlaceholder("Identifier") || super.parseIdentifier(liberal); - } - checkReservedWord(word, startLoc, checkKeywords, isBinding) { - if (word !== undefined) { - super.checkReservedWord(word, startLoc, checkKeywords, isBinding); - } - } - parseBindingAtom() { - return this.parsePlaceholder("Pattern") || super.parseBindingAtom(); - } - isValidLVal(type, isParenthesized, binding) { - return type === "Placeholder" || super.isValidLVal(type, isParenthesized, binding); - } - toAssignable(node, isLHS) { - if (node && node.type === "Placeholder" && node.expectedNode === "Expression") { - node.expectedNode = "Pattern"; - } else { - super.toAssignable(node, isLHS); - } - } - chStartsBindingIdentifier(ch, pos) { - if (super.chStartsBindingIdentifier(ch, pos)) { - return true; - } - const nextToken = this.lookahead(); - if (nextToken.type === 142) { - return true; - } - return false; - } - verifyBreakContinue(node, isBreak) { - if (node.label && node.label.type === "Placeholder") return; - super.verifyBreakContinue(node, isBreak); - } - parseExpressionStatement(node, expr) { - if (expr.type !== "Placeholder" || expr.extra && expr.extra.parenthesized) { - return super.parseExpressionStatement(node, expr); - } - if (this.match(14)) { - const stmt = node; - stmt.label = this.finishPlaceholder(expr, "Identifier"); - this.next(); - stmt.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(); - return this.finishNode(stmt, "LabeledStatement"); - } - this.semicolon(); - node.name = expr.name; - return this.finishPlaceholder(node, "Statement"); - } - parseBlock(allowDirectives, createNewLexicalScope, afterBlockParse) { - return this.parsePlaceholder("BlockStatement") || super.parseBlock(allowDirectives, createNewLexicalScope, afterBlockParse); - } - parseFunctionId(requireId) { - return this.parsePlaceholder("Identifier") || super.parseFunctionId(requireId); - } - parseClass(node, isStatement, optionalId) { - const type = isStatement ? "ClassDeclaration" : "ClassExpression"; - this.next(); - const oldStrict = this.state.strict; - const placeholder = this.parsePlaceholder("Identifier"); - if (placeholder) { - if (this.match(81) || this.match(142) || this.match(5)) { - node.id = placeholder; - } else if (optionalId || !isStatement) { - node.id = null; - node.body = this.finishPlaceholder(placeholder, "ClassBody"); - return this.finishNode(node, type); - } else { - throw this.raise(PlaceholderErrors.ClassNameIsRequired, { - at: this.state.startLoc - }); - } - } else { - this.parseClassId(node, isStatement, optionalId); - } - super.parseClassSuper(node); - node.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!node.superClass, oldStrict); - return this.finishNode(node, type); - } - parseExport(node, decorators) { - const placeholder = this.parsePlaceholder("Identifier"); - if (!placeholder) return super.parseExport(node, decorators); - if (!this.isContextual(97) && !this.match(12)) { - node.specifiers = []; - node.source = null; - node.declaration = this.finishPlaceholder(placeholder, "Declaration"); - return this.finishNode(node, "ExportNamedDeclaration"); - } - this.expectPlugin("exportDefaultFrom"); - const specifier = this.startNode(); - specifier.exported = placeholder; - node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]; - return super.parseExport(node, decorators); - } - isExportDefaultSpecifier() { - if (this.match(65)) { - const next = this.nextTokenStart(); - if (this.isUnparsedContextual(next, "from")) { - if (this.input.startsWith(tokenLabelName(142), this.nextTokenStartSince(next + 4))) { - return true; - } - } - } - return super.isExportDefaultSpecifier(); - } - maybeParseExportDefaultSpecifier(node) { - if (node.specifiers && node.specifiers.length > 0) { - return true; - } - return super.maybeParseExportDefaultSpecifier(node); - } - checkExport(node) { - const { - specifiers - } = node; - if (specifiers != null && specifiers.length) { - node.specifiers = specifiers.filter(node => node.exported.type === "Placeholder"); - } - super.checkExport(node); - node.specifiers = specifiers; - } - parseImport(node) { - const placeholder = this.parsePlaceholder("Identifier"); - if (!placeholder) return super.parseImport(node); - node.specifiers = []; - if (!this.isContextual(97) && !this.match(12)) { - node.source = this.finishPlaceholder(placeholder, "StringLiteral"); - this.semicolon(); - return this.finishNode(node, "ImportDeclaration"); - } - const specifier = this.startNodeAtNode(placeholder); - specifier.local = placeholder; - node.specifiers.push(this.finishNode(specifier, "ImportDefaultSpecifier")); - if (this.eat(12)) { - const hasStarImport = this.maybeParseStarImportSpecifier(node); - if (!hasStarImport) this.parseNamedImportSpecifiers(node); - } - this.expectContextual(97); - node.source = this.parseImportSource(); - this.semicolon(); - return this.finishNode(node, "ImportDeclaration"); - } - parseImportSource() { - return this.parsePlaceholder("StringLiteral") || super.parseImportSource(); - } - assertNoSpace() { - if (this.state.start > this.state.lastTokEndLoc.index) { - this.raise(PlaceholderErrors.UnexpectedSpace, { - at: this.state.lastTokEndLoc - }); - } - } -}); - -var v8intrinsic = (superClass => class V8IntrinsicMixin extends superClass { - parseV8Intrinsic() { - if (this.match(54)) { - const v8IntrinsicStartLoc = this.state.startLoc; - const node = this.startNode(); - this.next(); - if (tokenIsIdentifier(this.state.type)) { - const name = this.parseIdentifierName(); - const identifier = this.createIdentifier(node, name); - identifier.type = "V8IntrinsicIdentifier"; - if (this.match(10)) { - return identifier; - } - } - this.unexpected(v8IntrinsicStartLoc); - } - } - parseExprAtom(refExpressionErrors) { - return this.parseV8Intrinsic() || super.parseExprAtom(refExpressionErrors); - } -}); - -function hasPlugin(plugins, expectedConfig) { - const [expectedName, expectedOptions] = typeof expectedConfig === "string" ? [expectedConfig, {}] : expectedConfig; - const expectedKeys = Object.keys(expectedOptions); - const expectedOptionsIsEmpty = expectedKeys.length === 0; - return plugins.some(p => { - if (typeof p === "string") { - return expectedOptionsIsEmpty && p === expectedName; - } else { - const [pluginName, pluginOptions] = p; - if (pluginName !== expectedName) { - return false; - } - for (const key of expectedKeys) { - if (pluginOptions[key] !== expectedOptions[key]) { - return false; - } - } - return true; - } - }); -} -function getPluginOption(plugins, name, option) { - const plugin = plugins.find(plugin => { - if (Array.isArray(plugin)) { - return plugin[0] === name; - } else { - return plugin === name; - } - }); - if (plugin && Array.isArray(plugin) && plugin.length > 1) { - return plugin[1][option]; - } - return null; -} -const PIPELINE_PROPOSALS = ["minimal", "fsharp", "hack", "smart"]; -const TOPIC_TOKENS = ["^^", "@@", "^", "%", "#"]; -const RECORD_AND_TUPLE_SYNTAX_TYPES = ["hash", "bar"]; -function validatePlugins(plugins) { - if (hasPlugin(plugins, "decorators")) { - if (hasPlugin(plugins, "decorators-legacy")) { - throw new Error("Cannot use the decorators and decorators-legacy plugin together"); - } - const decoratorsBeforeExport = getPluginOption(plugins, "decorators", "decoratorsBeforeExport"); - if (decoratorsBeforeExport != null && typeof decoratorsBeforeExport !== "boolean") { - throw new Error("'decoratorsBeforeExport' must be a boolean, if specified."); - } - const allowCallParenthesized = getPluginOption(plugins, "decorators", "allowCallParenthesized"); - if (allowCallParenthesized != null && typeof allowCallParenthesized !== "boolean") { - throw new Error("'allowCallParenthesized' must be a boolean."); - } - } - if (hasPlugin(plugins, "flow") && hasPlugin(plugins, "typescript")) { - throw new Error("Cannot combine flow and typescript plugins."); - } - if (hasPlugin(plugins, "placeholders") && hasPlugin(plugins, "v8intrinsic")) { - throw new Error("Cannot combine placeholders and v8intrinsic plugins."); - } - if (hasPlugin(plugins, "pipelineOperator")) { - const proposal = getPluginOption(plugins, "pipelineOperator", "proposal"); - if (!PIPELINE_PROPOSALS.includes(proposal)) { - const proposalList = PIPELINE_PROPOSALS.map(p => `"${p}"`).join(", "); - throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`); - } - const tupleSyntaxIsHash = hasPlugin(plugins, ["recordAndTuple", { - syntaxType: "hash" - }]); - if (proposal === "hack") { - if (hasPlugin(plugins, "placeholders")) { - throw new Error("Cannot combine placeholders plugin and Hack-style pipes."); - } - if (hasPlugin(plugins, "v8intrinsic")) { - throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes."); - } - const topicToken = getPluginOption(plugins, "pipelineOperator", "topicToken"); - if (!TOPIC_TOKENS.includes(topicToken)) { - const tokenList = TOPIC_TOKENS.map(t => `"${t}"`).join(", "); - throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`); - } - if (topicToken === "#" && tupleSyntaxIsHash) { - throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.'); - } - } else if (proposal === "smart" && tupleSyntaxIsHash) { - throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.'); - } - } - if (hasPlugin(plugins, "moduleAttributes")) { - { - if (hasPlugin(plugins, "importAssertions")) { - throw new Error("Cannot combine importAssertions and moduleAttributes plugins."); - } - const moduleAttributesVersionPluginOption = getPluginOption(plugins, "moduleAttributes", "version"); - if (moduleAttributesVersionPluginOption !== "may-2020") { - throw new Error("The 'moduleAttributes' plugin requires a 'version' option," + " representing the last proposal update. Currently, the" + " only supported value is 'may-2020'."); - } - } - } - if (hasPlugin(plugins, "recordAndTuple") && getPluginOption(plugins, "recordAndTuple", "syntaxType") != null && !RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins, "recordAndTuple", "syntaxType"))) { - throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map(p => `'${p}'`).join(", ")); - } - if (hasPlugin(plugins, "asyncDoExpressions") && !hasPlugin(plugins, "doExpressions")) { - const error = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins."); - error.missingPlugins = "doExpressions"; - throw error; - } -} -const mixinPlugins = { - estree, - jsx, - flow, - typescript, - v8intrinsic, - placeholders -}; -const mixinPluginNames = Object.keys(mixinPlugins); - -const defaultOptions = { - sourceType: "script", - sourceFilename: undefined, - startColumn: 0, - startLine: 1, - allowAwaitOutsideFunction: false, - allowReturnOutsideFunction: false, - allowNewTargetOutsideFunction: false, - allowImportExportEverywhere: false, - allowSuperOutsideMethod: false, - allowUndeclaredExports: false, - plugins: [], - strictMode: null, - ranges: false, - tokens: false, - createParenthesizedExpressions: false, - errorRecovery: false, - attachComment: true, - annexB: true -}; -function getOptions(opts) { - if (opts && opts.annexB != null && opts.annexB !== false) { - throw new Error("The `annexB` option can only be set to `false`."); - } - const options = {}; - for (const key of Object.keys(defaultOptions)) { - options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key]; - } - return options; -} - -class ExpressionParser extends LValParser { - checkProto(prop, isRecord, protoRef, refExpressionErrors) { - if (prop.type === "SpreadElement" || this.isObjectMethod(prop) || prop.computed || prop.shorthand) { - return; - } - const key = prop.key; - const name = key.type === "Identifier" ? key.name : key.value; - if (name === "__proto__") { - if (isRecord) { - this.raise(Errors.RecordNoProto, { - at: key - }); - return; - } - if (protoRef.used) { - if (refExpressionErrors) { - if (refExpressionErrors.doubleProtoLoc === null) { - refExpressionErrors.doubleProtoLoc = key.loc.start; - } - } else { - this.raise(Errors.DuplicateProto, { - at: key - }); - } - } - protoRef.used = true; - } - } - shouldExitDescending(expr, potentialArrowAt) { - return expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt; - } - getExpression() { - this.enterInitialScopes(); - this.nextToken(); - const expr = this.parseExpression(); - if (!this.match(137)) { - this.unexpected(); - } - this.finalizeRemainingComments(); - expr.comments = this.state.comments; - expr.errors = this.state.errors; - if (this.options.tokens) { - expr.tokens = this.tokens; - } - return expr; - } - parseExpression(disallowIn, refExpressionErrors) { - if (disallowIn) { - return this.disallowInAnd(() => this.parseExpressionBase(refExpressionErrors)); - } - return this.allowInAnd(() => this.parseExpressionBase(refExpressionErrors)); - } - parseExpressionBase(refExpressionErrors) { - const startLoc = this.state.startLoc; - const expr = this.parseMaybeAssign(refExpressionErrors); - if (this.match(12)) { - const node = this.startNodeAt(startLoc); - node.expressions = [expr]; - while (this.eat(12)) { - node.expressions.push(this.parseMaybeAssign(refExpressionErrors)); - } - this.toReferencedList(node.expressions); - return this.finishNode(node, "SequenceExpression"); - } - return expr; - } - parseMaybeAssignDisallowIn(refExpressionErrors, afterLeftParse) { - return this.disallowInAnd(() => this.parseMaybeAssign(refExpressionErrors, afterLeftParse)); - } - parseMaybeAssignAllowIn(refExpressionErrors, afterLeftParse) { - return this.allowInAnd(() => this.parseMaybeAssign(refExpressionErrors, afterLeftParse)); - } - setOptionalParametersError(refExpressionErrors, resultError) { - var _resultError$loc; - refExpressionErrors.optionalParametersLoc = (_resultError$loc = resultError == null ? void 0 : resultError.loc) != null ? _resultError$loc : this.state.startLoc; - } - parseMaybeAssign(refExpressionErrors, afterLeftParse) { - const startLoc = this.state.startLoc; - if (this.isContextual(106)) { - if (this.prodParam.hasYield) { - let left = this.parseYield(); - if (afterLeftParse) { - left = afterLeftParse.call(this, left, startLoc); - } - return left; - } - } - let ownExpressionErrors; - if (refExpressionErrors) { - ownExpressionErrors = false; - } else { - refExpressionErrors = new ExpressionErrors(); - ownExpressionErrors = true; - } - const { - type - } = this.state; - if (type === 10 || tokenIsIdentifier(type)) { - this.state.potentialArrowAt = this.state.start; - } - let left = this.parseMaybeConditional(refExpressionErrors); - if (afterLeftParse) { - left = afterLeftParse.call(this, left, startLoc); - } - if (tokenIsAssignment(this.state.type)) { - const node = this.startNodeAt(startLoc); - const operator = this.state.value; - node.operator = operator; - if (this.match(29)) { - this.toAssignable(left, true); - node.left = left; - const startIndex = startLoc.index; - if (refExpressionErrors.doubleProtoLoc != null && refExpressionErrors.doubleProtoLoc.index >= startIndex) { - refExpressionErrors.doubleProtoLoc = null; - } - if (refExpressionErrors.shorthandAssignLoc != null && refExpressionErrors.shorthandAssignLoc.index >= startIndex) { - refExpressionErrors.shorthandAssignLoc = null; - } - if (refExpressionErrors.privateKeyLoc != null && refExpressionErrors.privateKeyLoc.index >= startIndex) { - this.checkDestructuringPrivate(refExpressionErrors); - refExpressionErrors.privateKeyLoc = null; - } - } else { - node.left = left; - } - this.next(); - node.right = this.parseMaybeAssign(); - this.checkLVal(left, { - in: this.finishNode(node, "AssignmentExpression") - }); - return node; - } else if (ownExpressionErrors) { - this.checkExpressionErrors(refExpressionErrors, true); - } - return left; - } - parseMaybeConditional(refExpressionErrors) { - const startLoc = this.state.startLoc; - const potentialArrowAt = this.state.potentialArrowAt; - const expr = this.parseExprOps(refExpressionErrors); - if (this.shouldExitDescending(expr, potentialArrowAt)) { - return expr; - } - return this.parseConditional(expr, startLoc, refExpressionErrors); - } - parseConditional(expr, startLoc, refExpressionErrors) { - if (this.eat(17)) { - const node = this.startNodeAt(startLoc); - node.test = expr; - node.consequent = this.parseMaybeAssignAllowIn(); - this.expect(14); - node.alternate = this.parseMaybeAssign(); - return this.finishNode(node, "ConditionalExpression"); - } - return expr; - } - parseMaybeUnaryOrPrivate(refExpressionErrors) { - return this.match(136) ? this.parsePrivateName() : this.parseMaybeUnary(refExpressionErrors); - } - parseExprOps(refExpressionErrors) { - const startLoc = this.state.startLoc; - const potentialArrowAt = this.state.potentialArrowAt; - const expr = this.parseMaybeUnaryOrPrivate(refExpressionErrors); - if (this.shouldExitDescending(expr, potentialArrowAt)) { - return expr; - } - return this.parseExprOp(expr, startLoc, -1); - } - parseExprOp(left, leftStartLoc, minPrec) { - if (this.isPrivateName(left)) { - const value = this.getPrivateNameSV(left); - if (minPrec >= tokenOperatorPrecedence(58) || !this.prodParam.hasIn || !this.match(58)) { - this.raise(Errors.PrivateInExpectedIn, { - at: left, - identifierName: value - }); - } - this.classScope.usePrivateName(value, left.loc.start); - } - const op = this.state.type; - if (tokenIsOperator(op) && (this.prodParam.hasIn || !this.match(58))) { - let prec = tokenOperatorPrecedence(op); - if (prec > minPrec) { - if (op === 39) { - this.expectPlugin("pipelineOperator"); - if (this.state.inFSharpPipelineDirectBody) { - return left; - } - this.checkPipelineAtInfixOperator(left, leftStartLoc); - } - const node = this.startNodeAt(leftStartLoc); - node.left = left; - node.operator = this.state.value; - const logical = op === 41 || op === 42; - const coalesce = op === 40; - if (coalesce) { - prec = tokenOperatorPrecedence(42); - } - this.next(); - if (op === 39 && this.hasPlugin(["pipelineOperator", { - proposal: "minimal" - }])) { - if (this.state.type === 96 && this.prodParam.hasAwait) { - throw this.raise(Errors.UnexpectedAwaitAfterPipelineBody, { - at: this.state.startLoc - }); - } - } - node.right = this.parseExprOpRightExpr(op, prec); - const finishedNode = this.finishNode(node, logical || coalesce ? "LogicalExpression" : "BinaryExpression"); - const nextOp = this.state.type; - if (coalesce && (nextOp === 41 || nextOp === 42) || logical && nextOp === 40) { - throw this.raise(Errors.MixingCoalesceWithLogical, { - at: this.state.startLoc - }); - } - return this.parseExprOp(finishedNode, leftStartLoc, minPrec); - } - } - return left; - } - parseExprOpRightExpr(op, prec) { - const startLoc = this.state.startLoc; - switch (op) { - case 39: - switch (this.getPluginOption("pipelineOperator", "proposal")) { - case "hack": - return this.withTopicBindingContext(() => { - return this.parseHackPipeBody(); - }); - case "smart": - return this.withTopicBindingContext(() => { - if (this.prodParam.hasYield && this.isContextual(106)) { - throw this.raise(Errors.PipeBodyIsTighter, { - at: this.state.startLoc - }); - } - return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(op, prec), startLoc); - }); - case "fsharp": - return this.withSoloAwaitPermittingContext(() => { - return this.parseFSharpPipelineBody(prec); - }); - } - default: - return this.parseExprOpBaseRightExpr(op, prec); - } - } - parseExprOpBaseRightExpr(op, prec) { - const startLoc = this.state.startLoc; - return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, tokenIsRightAssociative(op) ? prec - 1 : prec); - } - parseHackPipeBody() { - var _body$extra; - const { - startLoc - } = this.state; - const body = this.parseMaybeAssign(); - const requiredParentheses = UnparenthesizedPipeBodyDescriptions.has(body.type); - if (requiredParentheses && !((_body$extra = body.extra) != null && _body$extra.parenthesized)) { - this.raise(Errors.PipeUnparenthesizedBody, { - at: startLoc, - type: body.type - }); - } - if (!this.topicReferenceWasUsedInCurrentContext()) { - this.raise(Errors.PipeTopicUnused, { - at: startLoc - }); - } - return body; - } - checkExponentialAfterUnary(node) { - if (this.match(57)) { - this.raise(Errors.UnexpectedTokenUnaryExponentiation, { - at: node.argument - }); - } - } - parseMaybeUnary(refExpressionErrors, sawUnary) { - const startLoc = this.state.startLoc; - const isAwait = this.isContextual(96); - if (isAwait && this.isAwaitAllowed()) { - this.next(); - const expr = this.parseAwait(startLoc); - if (!sawUnary) this.checkExponentialAfterUnary(expr); - return expr; - } - const update = this.match(34); - const node = this.startNode(); - if (tokenIsPrefix(this.state.type)) { - node.operator = this.state.value; - node.prefix = true; - if (this.match(72)) { - this.expectPlugin("throwExpressions"); - } - const isDelete = this.match(89); - this.next(); - node.argument = this.parseMaybeUnary(null, true); - this.checkExpressionErrors(refExpressionErrors, true); - if (this.state.strict && isDelete) { - const arg = node.argument; - if (arg.type === "Identifier") { - this.raise(Errors.StrictDelete, { - at: node - }); - } else if (this.hasPropertyAsPrivateName(arg)) { - this.raise(Errors.DeletePrivateField, { - at: node - }); - } - } - if (!update) { - if (!sawUnary) { - this.checkExponentialAfterUnary(node); - } - return this.finishNode(node, "UnaryExpression"); - } - } - const expr = this.parseUpdate(node, update, refExpressionErrors); - if (isAwait) { - const { - type - } = this.state; - const startsExpr = this.hasPlugin("v8intrinsic") ? tokenCanStartExpression(type) : tokenCanStartExpression(type) && !this.match(54); - if (startsExpr && !this.isAmbiguousAwait()) { - this.raiseOverwrite(Errors.AwaitNotInAsyncContext, { - at: startLoc - }); - return this.parseAwait(startLoc); - } - } - return expr; - } - parseUpdate(node, update, refExpressionErrors) { - if (update) { - const updateExpressionNode = node; - this.checkLVal(updateExpressionNode.argument, { - in: this.finishNode(updateExpressionNode, "UpdateExpression") - }); - return node; - } - const startLoc = this.state.startLoc; - let expr = this.parseExprSubscripts(refExpressionErrors); - if (this.checkExpressionErrors(refExpressionErrors, false)) return expr; - while (tokenIsPostfix(this.state.type) && !this.canInsertSemicolon()) { - const node = this.startNodeAt(startLoc); - node.operator = this.state.value; - node.prefix = false; - node.argument = expr; - this.next(); - this.checkLVal(expr, { - in: expr = this.finishNode(node, "UpdateExpression") - }); - } - return expr; - } - parseExprSubscripts(refExpressionErrors) { - const startLoc = this.state.startLoc; - const potentialArrowAt = this.state.potentialArrowAt; - const expr = this.parseExprAtom(refExpressionErrors); - if (this.shouldExitDescending(expr, potentialArrowAt)) { - return expr; - } - return this.parseSubscripts(expr, startLoc); - } - parseSubscripts(base, startLoc, noCalls) { - const state = { - optionalChainMember: false, - maybeAsyncArrow: this.atPossibleAsyncArrow(base), - stop: false - }; - do { - base = this.parseSubscript(base, startLoc, noCalls, state); - state.maybeAsyncArrow = false; - } while (!state.stop); - return base; - } - parseSubscript(base, startLoc, noCalls, state) { - const { - type - } = this.state; - if (!noCalls && type === 15) { - return this.parseBind(base, startLoc, noCalls, state); - } else if (tokenIsTemplate(type)) { - return this.parseTaggedTemplateExpression(base, startLoc, state); - } - let optional = false; - if (type === 18) { - if (noCalls) { - this.raise(Errors.OptionalChainingNoNew, { - at: this.state.startLoc - }); - if (this.lookaheadCharCode() === 40) { - state.stop = true; - return base; - } - } - state.optionalChainMember = optional = true; - this.next(); - } - if (!noCalls && this.match(10)) { - return this.parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional); - } else { - const computed = this.eat(0); - if (computed || optional || this.eat(16)) { - return this.parseMember(base, startLoc, state, computed, optional); - } else { - state.stop = true; - return base; - } - } - } - parseMember(base, startLoc, state, computed, optional) { - const node = this.startNodeAt(startLoc); - node.object = base; - node.computed = computed; - if (computed) { - node.property = this.parseExpression(); - this.expect(3); - } else if (this.match(136)) { - if (base.type === "Super") { - this.raise(Errors.SuperPrivateField, { - at: startLoc - }); - } - this.classScope.usePrivateName(this.state.value, this.state.startLoc); - node.property = this.parsePrivateName(); - } else { - node.property = this.parseIdentifier(true); - } - if (state.optionalChainMember) { - node.optional = optional; - return this.finishNode(node, "OptionalMemberExpression"); - } else { - return this.finishNode(node, "MemberExpression"); - } - } - parseBind(base, startLoc, noCalls, state) { - const node = this.startNodeAt(startLoc); - node.object = base; - this.next(); - node.callee = this.parseNoCallExpr(); - state.stop = true; - return this.parseSubscripts(this.finishNode(node, "BindExpression"), startLoc, noCalls); - } - parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional) { - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - let refExpressionErrors = null; - this.state.maybeInArrowParameters = true; - this.next(); - const node = this.startNodeAt(startLoc); - node.callee = base; - const { - maybeAsyncArrow, - optionalChainMember - } = state; - if (maybeAsyncArrow) { - this.expressionScope.enter(newAsyncArrowScope()); - refExpressionErrors = new ExpressionErrors(); - } - if (optionalChainMember) { - node.optional = optional; - } - if (optional) { - node.arguments = this.parseCallExpressionArguments(11); - } else { - node.arguments = this.parseCallExpressionArguments(11, base.type === "Import", base.type !== "Super", node, refExpressionErrors); - } - let finishedNode = this.finishCallExpression(node, optionalChainMember); - if (maybeAsyncArrow && this.shouldParseAsyncArrow() && !optional) { - state.stop = true; - this.checkDestructuringPrivate(refExpressionErrors); - this.expressionScope.validateAsPattern(); - this.expressionScope.exit(); - finishedNode = this.parseAsyncArrowFromCallExpression(this.startNodeAt(startLoc), finishedNode); - } else { - if (maybeAsyncArrow) { - this.checkExpressionErrors(refExpressionErrors, true); - this.expressionScope.exit(); - } - this.toReferencedArguments(finishedNode); - } - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - return finishedNode; - } - toReferencedArguments(node, isParenthesizedExpr) { - this.toReferencedListDeep(node.arguments, isParenthesizedExpr); - } - parseTaggedTemplateExpression(base, startLoc, state) { - const node = this.startNodeAt(startLoc); - node.tag = base; - node.quasi = this.parseTemplate(true); - if (state.optionalChainMember) { - this.raise(Errors.OptionalChainingNoTemplate, { - at: startLoc - }); - } - return this.finishNode(node, "TaggedTemplateExpression"); - } - atPossibleAsyncArrow(base) { - return base.type === "Identifier" && base.name === "async" && this.state.lastTokEndLoc.index === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && base.start === this.state.potentialArrowAt; - } - finishCallExpression(node, optional) { - if (node.callee.type === "Import") { - if (node.arguments.length === 2) { - { - if (!this.hasPlugin("moduleAttributes")) { - this.expectPlugin("importAssertions"); - } - } - } - if (node.arguments.length === 0 || node.arguments.length > 2) { - this.raise(Errors.ImportCallArity, { - at: node, - maxArgumentCount: this.hasPlugin("importAssertions") || this.hasPlugin("moduleAttributes") ? 2 : 1 - }); - } else { - for (const arg of node.arguments) { - if (arg.type === "SpreadElement") { - this.raise(Errors.ImportCallSpreadArgument, { - at: arg - }); - } - } - } - } - return this.finishNode(node, optional ? "OptionalCallExpression" : "CallExpression"); - } - parseCallExpressionArguments(close, dynamicImport, allowPlaceholder, nodeForExtra, refExpressionErrors) { - const elts = []; - let first = true; - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = false; - while (!this.eat(close)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.match(close)) { - if (dynamicImport && !this.hasPlugin("importAssertions") && !this.hasPlugin("moduleAttributes")) { - this.raise(Errors.ImportCallArgumentTrailingComma, { - at: this.state.lastTokStartLoc - }); - } - if (nodeForExtra) { - this.addTrailingCommaExtraToNode(nodeForExtra); - } - this.next(); - break; - } - } - elts.push(this.parseExprListItem(false, refExpressionErrors, allowPlaceholder)); - } - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - return elts; - } - shouldParseAsyncArrow() { - return this.match(19) && !this.canInsertSemicolon(); - } - parseAsyncArrowFromCallExpression(node, call) { - var _call$extra; - this.resetPreviousNodeTrailingComments(call); - this.expect(19); - this.parseArrowExpression(node, call.arguments, true, (_call$extra = call.extra) == null ? void 0 : _call$extra.trailingCommaLoc); - if (call.innerComments) { - setInnerComments(node, call.innerComments); - } - if (call.callee.trailingComments) { - setInnerComments(node, call.callee.trailingComments); - } - return node; - } - parseNoCallExpr() { - const startLoc = this.state.startLoc; - return this.parseSubscripts(this.parseExprAtom(), startLoc, true); - } - parseExprAtom(refExpressionErrors) { - let node; - let decorators = null; - const { - type - } = this.state; - switch (type) { - case 79: - return this.parseSuper(); - case 83: - node = this.startNode(); - this.next(); - if (this.match(16)) { - return this.parseImportMetaProperty(node); - } - if (!this.match(10)) { - this.raise(Errors.UnsupportedImport, { - at: this.state.lastTokStartLoc - }); - } - return this.finishNode(node, "Import"); - case 78: - node = this.startNode(); - this.next(); - return this.finishNode(node, "ThisExpression"); - case 90: - { - return this.parseDo(this.startNode(), false); - } - case 56: - case 31: - { - this.readRegexp(); - return this.parseRegExpLiteral(this.state.value); - } - case 132: - return this.parseNumericLiteral(this.state.value); - case 133: - return this.parseBigIntLiteral(this.state.value); - case 134: - return this.parseDecimalLiteral(this.state.value); - case 131: - return this.parseStringLiteral(this.state.value); - case 84: - return this.parseNullLiteral(); - case 85: - return this.parseBooleanLiteral(true); - case 86: - return this.parseBooleanLiteral(false); - case 10: - { - const canBeArrow = this.state.potentialArrowAt === this.state.start; - return this.parseParenAndDistinguishExpression(canBeArrow); - } - case 2: - case 1: - { - return this.parseArrayLike(this.state.type === 2 ? 4 : 3, false, true); - } - case 0: - { - return this.parseArrayLike(3, true, false, refExpressionErrors); - } - case 6: - case 7: - { - return this.parseObjectLike(this.state.type === 6 ? 9 : 8, false, true); - } - case 5: - { - return this.parseObjectLike(8, false, false, refExpressionErrors); - } - case 68: - return this.parseFunctionOrFunctionSent(); - case 26: - decorators = this.parseDecorators(); - case 80: - return this.parseClass(this.maybeTakeDecorators(decorators, this.startNode()), false); - case 77: - return this.parseNewOrNewTarget(); - case 25: - case 24: - return this.parseTemplate(false); - case 15: - { - node = this.startNode(); - this.next(); - node.object = null; - const callee = node.callee = this.parseNoCallExpr(); - if (callee.type === "MemberExpression") { - return this.finishNode(node, "BindExpression"); - } else { - throw this.raise(Errors.UnsupportedBind, { - at: callee - }); - } - } - case 136: - { - this.raise(Errors.PrivateInExpectedIn, { - at: this.state.startLoc, - identifierName: this.state.value - }); - return this.parsePrivateName(); - } - case 33: - { - return this.parseTopicReferenceThenEqualsSign(54, "%"); - } - case 32: - { - return this.parseTopicReferenceThenEqualsSign(44, "^"); - } - case 37: - case 38: - { - return this.parseTopicReference("hack"); - } - case 44: - case 54: - case 27: - { - const pipeProposal = this.getPluginOption("pipelineOperator", "proposal"); - if (pipeProposal) { - return this.parseTopicReference(pipeProposal); - } else { - throw this.unexpected(); - } - } - case 47: - { - const lookaheadCh = this.input.codePointAt(this.nextTokenStart()); - if (isIdentifierStart(lookaheadCh) || lookaheadCh === 62) { - this.expectOnePlugin(["jsx", "flow", "typescript"]); - break; - } else { - throw this.unexpected(); - } - } - default: - if (tokenIsIdentifier(type)) { - if (this.isContextual(125) && this.lookaheadCharCode() === 123 && !this.hasFollowingLineBreak()) { - return this.parseModuleExpression(); - } - const canBeArrow = this.state.potentialArrowAt === this.state.start; - const containsEsc = this.state.containsEsc; - const id = this.parseIdentifier(); - if (!containsEsc && id.name === "async" && !this.canInsertSemicolon()) { - const { - type - } = this.state; - if (type === 68) { - this.resetPreviousNodeTrailingComments(id); - this.next(); - return this.parseAsyncFunctionExpression(this.startNodeAtNode(id)); - } else if (tokenIsIdentifier(type)) { - if (this.lookaheadCharCode() === 61) { - return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id)); - } else { - return id; - } - } else if (type === 90) { - this.resetPreviousNodeTrailingComments(id); - return this.parseDo(this.startNodeAtNode(id), true); - } - } - if (canBeArrow && this.match(19) && !this.canInsertSemicolon()) { - this.next(); - return this.parseArrowExpression(this.startNodeAtNode(id), [id], false); - } - return id; - } else { - throw this.unexpected(); - } - } - } - parseTopicReferenceThenEqualsSign(topicTokenType, topicTokenValue) { - const pipeProposal = this.getPluginOption("pipelineOperator", "proposal"); - if (pipeProposal) { - this.state.type = topicTokenType; - this.state.value = topicTokenValue; - this.state.pos--; - this.state.end--; - this.state.endLoc = createPositionWithColumnOffset(this.state.endLoc, -1); - return this.parseTopicReference(pipeProposal); - } else { - throw this.unexpected(); - } - } - parseTopicReference(pipeProposal) { - const node = this.startNode(); - const startLoc = this.state.startLoc; - const tokenType = this.state.type; - this.next(); - return this.finishTopicReference(node, startLoc, pipeProposal, tokenType); - } - finishTopicReference(node, startLoc, pipeProposal, tokenType) { - if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) { - const nodeType = pipeProposal === "smart" ? "PipelinePrimaryTopicReference" : "TopicReference"; - if (!this.topicReferenceIsAllowedInCurrentContext()) { - this.raise(pipeProposal === "smart" ? Errors.PrimaryTopicNotAllowed : Errors.PipeTopicUnbound, { - at: startLoc - }); - } - this.registerTopicReference(); - return this.finishNode(node, nodeType); - } else { - throw this.raise(Errors.PipeTopicUnconfiguredToken, { - at: startLoc, - token: tokenLabelName(tokenType) - }); - } - } - testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType) { - switch (pipeProposal) { - case "hack": - { - return this.hasPlugin(["pipelineOperator", { - topicToken: tokenLabelName(tokenType) - }]); - } - case "smart": - return tokenType === 27; - default: - throw this.raise(Errors.PipeTopicRequiresHackPipes, { - at: startLoc - }); - } - } - parseAsyncArrowUnaryFunction(node) { - this.prodParam.enter(functionFlags(true, this.prodParam.hasYield)); - const params = [this.parseIdentifier()]; - this.prodParam.exit(); - if (this.hasPrecedingLineBreak()) { - this.raise(Errors.LineTerminatorBeforeArrow, { - at: this.state.curPosition() - }); - } - this.expect(19); - return this.parseArrowExpression(node, params, true); - } - parseDo(node, isAsync) { - this.expectPlugin("doExpressions"); - if (isAsync) { - this.expectPlugin("asyncDoExpressions"); - } - node.async = isAsync; - this.next(); - const oldLabels = this.state.labels; - this.state.labels = []; - if (isAsync) { - this.prodParam.enter(PARAM_AWAIT); - node.body = this.parseBlock(); - this.prodParam.exit(); - } else { - node.body = this.parseBlock(); - } - this.state.labels = oldLabels; - return this.finishNode(node, "DoExpression"); - } - parseSuper() { - const node = this.startNode(); - this.next(); - if (this.match(10) && !this.scope.allowDirectSuper && !this.options.allowSuperOutsideMethod) { - this.raise(Errors.SuperNotAllowed, { - at: node - }); - } else if (!this.scope.allowSuper && !this.options.allowSuperOutsideMethod) { - this.raise(Errors.UnexpectedSuper, { - at: node - }); - } - if (!this.match(10) && !this.match(0) && !this.match(16)) { - this.raise(Errors.UnsupportedSuper, { - at: node - }); - } - return this.finishNode(node, "Super"); - } - parsePrivateName() { - const node = this.startNode(); - const id = this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc, 1)); - const name = this.state.value; - this.next(); - node.id = this.createIdentifier(id, name); - return this.finishNode(node, "PrivateName"); - } - parseFunctionOrFunctionSent() { - const node = this.startNode(); - this.next(); - if (this.prodParam.hasYield && this.match(16)) { - const meta = this.createIdentifier(this.startNodeAtNode(node), "function"); - this.next(); - if (this.match(102)) { - this.expectPlugin("functionSent"); - } else if (!this.hasPlugin("functionSent")) { - this.unexpected(); - } - return this.parseMetaProperty(node, meta, "sent"); - } - return this.parseFunction(node); - } - parseMetaProperty(node, meta, propertyName) { - node.meta = meta; - const containsEsc = this.state.containsEsc; - node.property = this.parseIdentifier(true); - if (node.property.name !== propertyName || containsEsc) { - this.raise(Errors.UnsupportedMetaProperty, { - at: node.property, - target: meta.name, - onlyValidPropertyName: propertyName - }); - } - return this.finishNode(node, "MetaProperty"); - } - parseImportMetaProperty(node) { - const id = this.createIdentifier(this.startNodeAtNode(node), "import"); - this.next(); - if (this.isContextual(100)) { - if (!this.inModule) { - this.raise(Errors.ImportMetaOutsideModule, { - at: id - }); - } - this.sawUnambiguousESM = true; - } - return this.parseMetaProperty(node, id, "meta"); - } - parseLiteralAtNode(value, type, node) { - this.addExtra(node, "rawValue", value); - this.addExtra(node, "raw", this.input.slice(node.start, this.state.end)); - node.value = value; - this.next(); - return this.finishNode(node, type); - } - parseLiteral(value, type) { - const node = this.startNode(); - return this.parseLiteralAtNode(value, type, node); - } - parseStringLiteral(value) { - return this.parseLiteral(value, "StringLiteral"); - } - parseNumericLiteral(value) { - return this.parseLiteral(value, "NumericLiteral"); - } - parseBigIntLiteral(value) { - return this.parseLiteral(value, "BigIntLiteral"); - } - parseDecimalLiteral(value) { - return this.parseLiteral(value, "DecimalLiteral"); - } - parseRegExpLiteral(value) { - const node = this.parseLiteral(value.value, "RegExpLiteral"); - node.pattern = value.pattern; - node.flags = value.flags; - return node; - } - parseBooleanLiteral(value) { - const node = this.startNode(); - node.value = value; - this.next(); - return this.finishNode(node, "BooleanLiteral"); - } - parseNullLiteral() { - const node = this.startNode(); - this.next(); - return this.finishNode(node, "NullLiteral"); - } - parseParenAndDistinguishExpression(canBeArrow) { - const startLoc = this.state.startLoc; - let val; - this.next(); - this.expressionScope.enter(newArrowHeadScope()); - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.maybeInArrowParameters = true; - this.state.inFSharpPipelineDirectBody = false; - const innerStartLoc = this.state.startLoc; - const exprList = []; - const refExpressionErrors = new ExpressionErrors(); - let first = true; - let spreadStartLoc; - let optionalCommaStartLoc; - while (!this.match(11)) { - if (first) { - first = false; - } else { - this.expect(12, refExpressionErrors.optionalParametersLoc === null ? null : refExpressionErrors.optionalParametersLoc); - if (this.match(11)) { - optionalCommaStartLoc = this.state.startLoc; - break; - } - } - if (this.match(21)) { - const spreadNodeStartLoc = this.state.startLoc; - spreadStartLoc = this.state.startLoc; - exprList.push(this.parseParenItem(this.parseRestBinding(), spreadNodeStartLoc)); - if (!this.checkCommaAfterRest(41)) { - break; - } - } else { - exprList.push(this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem)); - } - } - const innerEndLoc = this.state.lastTokEndLoc; - this.expect(11); - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - let arrowNode = this.startNodeAt(startLoc); - if (canBeArrow && this.shouldParseArrow(exprList) && (arrowNode = this.parseArrow(arrowNode))) { - this.checkDestructuringPrivate(refExpressionErrors); - this.expressionScope.validateAsPattern(); - this.expressionScope.exit(); - this.parseArrowExpression(arrowNode, exprList, false); - return arrowNode; - } - this.expressionScope.exit(); - if (!exprList.length) { - this.unexpected(this.state.lastTokStartLoc); - } - if (optionalCommaStartLoc) this.unexpected(optionalCommaStartLoc); - if (spreadStartLoc) this.unexpected(spreadStartLoc); - this.checkExpressionErrors(refExpressionErrors, true); - this.toReferencedListDeep(exprList, true); - if (exprList.length > 1) { - val = this.startNodeAt(innerStartLoc); - val.expressions = exprList; - this.finishNode(val, "SequenceExpression"); - this.resetEndLocation(val, innerEndLoc); - } else { - val = exprList[0]; - } - return this.wrapParenthesis(startLoc, val); - } - wrapParenthesis(startLoc, expression) { - if (!this.options.createParenthesizedExpressions) { - this.addExtra(expression, "parenthesized", true); - this.addExtra(expression, "parenStart", startLoc.index); - this.takeSurroundingComments(expression, startLoc.index, this.state.lastTokEndLoc.index); - return expression; - } - const parenExpression = this.startNodeAt(startLoc); - parenExpression.expression = expression; - return this.finishNode(parenExpression, "ParenthesizedExpression"); - } - shouldParseArrow(params) { - return !this.canInsertSemicolon(); - } - parseArrow(node) { - if (this.eat(19)) { - return node; - } - } - parseParenItem(node, startLoc) { - return node; - } - parseNewOrNewTarget() { - const node = this.startNode(); - this.next(); - if (this.match(16)) { - const meta = this.createIdentifier(this.startNodeAtNode(node), "new"); - this.next(); - const metaProp = this.parseMetaProperty(node, meta, "target"); - if (!this.scope.inNonArrowFunction && !this.scope.inClass && !this.options.allowNewTargetOutsideFunction) { - this.raise(Errors.UnexpectedNewTarget, { - at: metaProp - }); - } - return metaProp; - } - return this.parseNew(node); - } - parseNew(node) { - this.parseNewCallee(node); - if (this.eat(10)) { - const args = this.parseExprList(11); - this.toReferencedList(args); - node.arguments = args; - } else { - node.arguments = []; - } - return this.finishNode(node, "NewExpression"); - } - parseNewCallee(node) { - node.callee = this.parseNoCallExpr(); - if (node.callee.type === "Import") { - this.raise(Errors.ImportCallNotNewExpression, { - at: node.callee - }); - } - } - parseTemplateElement(isTagged) { - const { - start, - startLoc, - end, - value - } = this.state; - const elemStart = start + 1; - const elem = this.startNodeAt(createPositionWithColumnOffset(startLoc, 1)); - if (value === null) { - if (!isTagged) { - this.raise(Errors.InvalidEscapeSequenceTemplate, { - at: createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos, 1) - }); - } - } - const isTail = this.match(24); - const endOffset = isTail ? -1 : -2; - const elemEnd = end + endOffset; - elem.value = { - raw: this.input.slice(elemStart, elemEnd).replace(/\r\n?/g, "\n"), - cooked: value === null ? null : value.slice(1, endOffset) - }; - elem.tail = isTail; - this.next(); - const finishedNode = this.finishNode(elem, "TemplateElement"); - this.resetEndLocation(finishedNode, createPositionWithColumnOffset(this.state.lastTokEndLoc, endOffset)); - return finishedNode; - } - parseTemplate(isTagged) { - const node = this.startNode(); - node.expressions = []; - let curElt = this.parseTemplateElement(isTagged); - node.quasis = [curElt]; - while (!curElt.tail) { - node.expressions.push(this.parseTemplateSubstitution()); - this.readTemplateContinuation(); - node.quasis.push(curElt = this.parseTemplateElement(isTagged)); - } - return this.finishNode(node, "TemplateLiteral"); - } - parseTemplateSubstitution() { - return this.parseExpression(); - } - parseObjectLike(close, isPattern, isRecord, refExpressionErrors) { - if (isRecord) { - this.expectPlugin("recordAndTuple"); - } - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = false; - const propHash = Object.create(null); - let first = true; - const node = this.startNode(); - node.properties = []; - this.next(); - while (!this.match(close)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.match(close)) { - this.addTrailingCommaExtraToNode(node); - break; - } - } - let prop; - if (isPattern) { - prop = this.parseBindingProperty(); - } else { - prop = this.parsePropertyDefinition(refExpressionErrors); - this.checkProto(prop, isRecord, propHash, refExpressionErrors); - } - if (isRecord && !this.isObjectProperty(prop) && prop.type !== "SpreadElement") { - this.raise(Errors.InvalidRecordProperty, { - at: prop - }); - } - if (prop.shorthand) { - this.addExtra(prop, "shorthand", true); - } - node.properties.push(prop); - } - this.next(); - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - let type = "ObjectExpression"; - if (isPattern) { - type = "ObjectPattern"; - } else if (isRecord) { - type = "RecordExpression"; - } - return this.finishNode(node, type); - } - addTrailingCommaExtraToNode(node) { - this.addExtra(node, "trailingComma", this.state.lastTokStart); - this.addExtra(node, "trailingCommaLoc", this.state.lastTokStartLoc, false); - } - maybeAsyncOrAccessorProp(prop) { - return !prop.computed && prop.key.type === "Identifier" && (this.isLiteralPropertyName() || this.match(0) || this.match(55)); - } - parsePropertyDefinition(refExpressionErrors) { - let decorators = []; - if (this.match(26)) { - if (this.hasPlugin("decorators")) { - this.raise(Errors.UnsupportedPropertyDecorator, { - at: this.state.startLoc - }); - } - while (this.match(26)) { - decorators.push(this.parseDecorator()); - } - } - const prop = this.startNode(); - let isAsync = false; - let isAccessor = false; - let startLoc; - if (this.match(21)) { - if (decorators.length) this.unexpected(); - return this.parseSpread(); - } - if (decorators.length) { - prop.decorators = decorators; - decorators = []; - } - prop.method = false; - if (refExpressionErrors) { - startLoc = this.state.startLoc; - } - let isGenerator = this.eat(55); - this.parsePropertyNamePrefixOperator(prop); - const containsEsc = this.state.containsEsc; - const key = this.parsePropertyName(prop, refExpressionErrors); - if (!isGenerator && !containsEsc && this.maybeAsyncOrAccessorProp(prop)) { - const keyName = key.name; - if (keyName === "async" && !this.hasPrecedingLineBreak()) { - isAsync = true; - this.resetPreviousNodeTrailingComments(key); - isGenerator = this.eat(55); - this.parsePropertyName(prop); - } - if (keyName === "get" || keyName === "set") { - isAccessor = true; - this.resetPreviousNodeTrailingComments(key); - prop.kind = keyName; - if (this.match(55)) { - isGenerator = true; - this.raise(Errors.AccessorIsGenerator, { - at: this.state.curPosition(), - kind: keyName - }); - this.next(); - } - this.parsePropertyName(prop); - } - } - return this.parseObjPropValue(prop, startLoc, isGenerator, isAsync, false, isAccessor, refExpressionErrors); - } - getGetterSetterExpectedParamCount(method) { - return method.kind === "get" ? 0 : 1; - } - getObjectOrClassMethodParams(method) { - return method.params; - } - checkGetterSetterParams(method) { - var _params; - const paramCount = this.getGetterSetterExpectedParamCount(method); - const params = this.getObjectOrClassMethodParams(method); - if (params.length !== paramCount) { - this.raise(method.kind === "get" ? Errors.BadGetterArity : Errors.BadSetterArity, { - at: method - }); - } - if (method.kind === "set" && ((_params = params[params.length - 1]) == null ? void 0 : _params.type) === "RestElement") { - this.raise(Errors.BadSetterRestParameter, { - at: method - }); - } - } - parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) { - if (isAccessor) { - const finishedProp = this.parseMethod(prop, isGenerator, false, false, false, "ObjectMethod"); - this.checkGetterSetterParams(finishedProp); - return finishedProp; - } - if (isAsync || isGenerator || this.match(10)) { - if (isPattern) this.unexpected(); - prop.kind = "method"; - prop.method = true; - return this.parseMethod(prop, isGenerator, isAsync, false, false, "ObjectMethod"); - } - } - parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors) { - prop.shorthand = false; - if (this.eat(14)) { - prop.value = isPattern ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(refExpressionErrors); - return this.finishNode(prop, "ObjectProperty"); - } - if (!prop.computed && prop.key.type === "Identifier") { - this.checkReservedWord(prop.key.name, prop.key.loc.start, true, false); - if (isPattern) { - prop.value = this.parseMaybeDefault(startLoc, cloneIdentifier(prop.key)); - } else if (this.match(29)) { - const shorthandAssignLoc = this.state.startLoc; - if (refExpressionErrors != null) { - if (refExpressionErrors.shorthandAssignLoc === null) { - refExpressionErrors.shorthandAssignLoc = shorthandAssignLoc; - } - } else { - this.raise(Errors.InvalidCoverInitializedName, { - at: shorthandAssignLoc - }); - } - prop.value = this.parseMaybeDefault(startLoc, cloneIdentifier(prop.key)); - } else { - prop.value = cloneIdentifier(prop.key); - } - prop.shorthand = true; - return this.finishNode(prop, "ObjectProperty"); - } - } - parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { - const node = this.parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) || this.parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors); - if (!node) this.unexpected(); - return node; - } - parsePropertyName(prop, refExpressionErrors) { - if (this.eat(0)) { - prop.computed = true; - prop.key = this.parseMaybeAssignAllowIn(); - this.expect(3); - } else { - const { - type, - value - } = this.state; - let key; - if (tokenIsKeywordOrIdentifier(type)) { - key = this.parseIdentifier(true); - } else { - switch (type) { - case 132: - key = this.parseNumericLiteral(value); - break; - case 131: - key = this.parseStringLiteral(value); - break; - case 133: - key = this.parseBigIntLiteral(value); - break; - case 134: - key = this.parseDecimalLiteral(value); - break; - case 136: - { - const privateKeyLoc = this.state.startLoc; - if (refExpressionErrors != null) { - if (refExpressionErrors.privateKeyLoc === null) { - refExpressionErrors.privateKeyLoc = privateKeyLoc; - } - } else { - this.raise(Errors.UnexpectedPrivateField, { - at: privateKeyLoc - }); - } - key = this.parsePrivateName(); - break; - } - default: - throw this.unexpected(); - } - } - prop.key = key; - if (type !== 136) { - prop.computed = false; - } - } - return prop.key; - } - initFunction(node, isAsync) { - node.id = null; - node.generator = false; - node.async = isAsync; - } - parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) { - this.initFunction(node, isAsync); - node.generator = isGenerator; - this.scope.enter(SCOPE_FUNCTION | SCOPE_SUPER | (inClassScope ? SCOPE_CLASS : 0) | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0)); - this.prodParam.enter(functionFlags(isAsync, node.generator)); - this.parseFunctionParams(node, isConstructor); - const finishedNode = this.parseFunctionBodyAndFinish(node, type, true); - this.prodParam.exit(); - this.scope.exit(); - return finishedNode; - } - parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { - if (isTuple) { - this.expectPlugin("recordAndTuple"); - } - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = false; - const node = this.startNode(); - this.next(); - node.elements = this.parseExprList(close, !isTuple, refExpressionErrors, node); - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - return this.finishNode(node, isTuple ? "TupleExpression" : "ArrayExpression"); - } - parseArrowExpression(node, params, isAsync, trailingCommaLoc) { - this.scope.enter(SCOPE_FUNCTION | SCOPE_ARROW); - let flags = functionFlags(isAsync, false); - if (!this.match(5) && this.prodParam.hasIn) { - flags |= PARAM_IN; - } - this.prodParam.enter(flags); - this.initFunction(node, isAsync); - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - if (params) { - this.state.maybeInArrowParameters = true; - this.setArrowFunctionParameters(node, params, trailingCommaLoc); - } - this.state.maybeInArrowParameters = false; - this.parseFunctionBody(node, true); - this.prodParam.exit(); - this.scope.exit(); - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - return this.finishNode(node, "ArrowFunctionExpression"); - } - setArrowFunctionParameters(node, params, trailingCommaLoc) { - this.toAssignableList(params, trailingCommaLoc, false); - node.params = params; - } - parseFunctionBodyAndFinish(node, type, isMethod = false) { - this.parseFunctionBody(node, false, isMethod); - return this.finishNode(node, type); - } - parseFunctionBody(node, allowExpression, isMethod = false) { - const isExpression = allowExpression && !this.match(5); - this.expressionScope.enter(newExpressionScope()); - if (isExpression) { - node.body = this.parseMaybeAssign(); - this.checkParams(node, false, allowExpression, false); - } else { - const oldStrict = this.state.strict; - const oldLabels = this.state.labels; - this.state.labels = []; - this.prodParam.enter(this.prodParam.currentFlags() | PARAM_RETURN); - node.body = this.parseBlock(true, false, hasStrictModeDirective => { - const nonSimple = !this.isSimpleParamList(node.params); - if (hasStrictModeDirective && nonSimple) { - this.raise(Errors.IllegalLanguageModeDirective, { - at: (node.kind === "method" || node.kind === "constructor") && !!node.key ? node.key.loc.end : node - }); - } - const strictModeChanged = !oldStrict && this.state.strict; - this.checkParams(node, !this.state.strict && !allowExpression && !isMethod && !nonSimple, allowExpression, strictModeChanged); - if (this.state.strict && node.id) { - this.checkIdentifier(node.id, BIND_OUTSIDE, strictModeChanged); - } - }); - this.prodParam.exit(); - this.state.labels = oldLabels; - } - this.expressionScope.exit(); - } - isSimpleParameter(node) { - return node.type === "Identifier"; - } - isSimpleParamList(params) { - for (let i = 0, len = params.length; i < len; i++) { - if (!this.isSimpleParameter(params[i])) return false; - } - return true; - } - checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged = true) { - const checkClashes = !allowDuplicates && new Set(); - const formalParameters = { - type: "FormalParameters" - }; - for (const param of node.params) { - this.checkLVal(param, { - in: formalParameters, - binding: BIND_VAR, - checkClashes, - strictModeChanged - }); - } - } - parseExprList(close, allowEmpty, refExpressionErrors, nodeForExtra) { - const elts = []; - let first = true; - while (!this.eat(close)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.match(close)) { - if (nodeForExtra) { - this.addTrailingCommaExtraToNode(nodeForExtra); - } - this.next(); - break; - } - } - elts.push(this.parseExprListItem(allowEmpty, refExpressionErrors)); - } - return elts; - } - parseExprListItem(allowEmpty, refExpressionErrors, allowPlaceholder) { - let elt; - if (this.match(12)) { - if (!allowEmpty) { - this.raise(Errors.UnexpectedToken, { - at: this.state.curPosition(), - unexpected: "," - }); - } - elt = null; - } else if (this.match(21)) { - const spreadNodeStartLoc = this.state.startLoc; - elt = this.parseParenItem(this.parseSpread(refExpressionErrors), spreadNodeStartLoc); - } else if (this.match(17)) { - this.expectPlugin("partialApplication"); - if (!allowPlaceholder) { - this.raise(Errors.UnexpectedArgumentPlaceholder, { - at: this.state.startLoc - }); - } - const node = this.startNode(); - this.next(); - elt = this.finishNode(node, "ArgumentPlaceholder"); - } else { - elt = this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem); - } - return elt; - } - parseIdentifier(liberal) { - const node = this.startNode(); - const name = this.parseIdentifierName(liberal); - return this.createIdentifier(node, name); - } - createIdentifier(node, name) { - node.name = name; - node.loc.identifierName = name; - return this.finishNode(node, "Identifier"); - } - parseIdentifierName(liberal) { - let name; - const { - startLoc, - type - } = this.state; - if (tokenIsKeywordOrIdentifier(type)) { - name = this.state.value; - } else { - throw this.unexpected(); - } - const tokenIsKeyword = tokenKeywordOrIdentifierIsKeyword(type); - if (liberal) { - if (tokenIsKeyword) { - this.replaceToken(130); - } - } else { - this.checkReservedWord(name, startLoc, tokenIsKeyword, false); - } - this.next(); - return name; - } - checkReservedWord(word, startLoc, checkKeywords, isBinding) { - if (word.length > 10) { - return; - } - if (!canBeReservedWord(word)) { - return; - } - if (checkKeywords && isKeyword(word)) { - this.raise(Errors.UnexpectedKeyword, { - at: startLoc, - keyword: word - }); - return; - } - const reservedTest = !this.state.strict ? isReservedWord : isBinding ? isStrictBindReservedWord : isStrictReservedWord; - if (reservedTest(word, this.inModule)) { - this.raise(Errors.UnexpectedReservedWord, { - at: startLoc, - reservedWord: word - }); - return; - } else if (word === "yield") { - if (this.prodParam.hasYield) { - this.raise(Errors.YieldBindingIdentifier, { - at: startLoc - }); - return; - } - } else if (word === "await") { - if (this.prodParam.hasAwait) { - this.raise(Errors.AwaitBindingIdentifier, { - at: startLoc - }); - return; - } - if (this.scope.inStaticBlock) { - this.raise(Errors.AwaitBindingIdentifierInStaticBlock, { - at: startLoc - }); - return; - } - this.expressionScope.recordAsyncArrowParametersError({ - at: startLoc - }); - } else if (word === "arguments") { - if (this.scope.inClassAndNotInNonArrowFunction) { - this.raise(Errors.ArgumentsInClass, { - at: startLoc - }); - return; - } - } - } - isAwaitAllowed() { - if (this.prodParam.hasAwait) return true; - if (this.options.allowAwaitOutsideFunction && !this.scope.inFunction) { - return true; - } - return false; - } - parseAwait(startLoc) { - const node = this.startNodeAt(startLoc); - this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, { - at: node - }); - if (this.eat(55)) { - this.raise(Errors.ObsoleteAwaitStar, { - at: node - }); - } - if (!this.scope.inFunction && !this.options.allowAwaitOutsideFunction) { - if (this.isAmbiguousAwait()) { - this.ambiguousScriptDifferentAst = true; - } else { - this.sawUnambiguousESM = true; - } - } - if (!this.state.soloAwait) { - node.argument = this.parseMaybeUnary(null, true); - } - return this.finishNode(node, "AwaitExpression"); - } - isAmbiguousAwait() { - if (this.hasPrecedingLineBreak()) return true; - const { - type - } = this.state; - return type === 53 || type === 10 || type === 0 || tokenIsTemplate(type) || type === 101 && !this.state.containsEsc || type === 135 || type === 56 || this.hasPlugin("v8intrinsic") && type === 54; - } - parseYield() { - const node = this.startNode(); - this.expressionScope.recordParameterInitializerError(Errors.YieldInParameter, { - at: node - }); - this.next(); - let delegating = false; - let argument = null; - if (!this.hasPrecedingLineBreak()) { - delegating = this.eat(55); - switch (this.state.type) { - case 13: - case 137: - case 8: - case 11: - case 3: - case 9: - case 14: - case 12: - if (!delegating) break; - default: - argument = this.parseMaybeAssign(); - } - } - node.delegate = delegating; - node.argument = argument; - return this.finishNode(node, "YieldExpression"); - } - checkPipelineAtInfixOperator(left, leftStartLoc) { - if (this.hasPlugin(["pipelineOperator", { - proposal: "smart" - }])) { - if (left.type === "SequenceExpression") { - this.raise(Errors.PipelineHeadSequenceExpression, { - at: leftStartLoc - }); - } - } - } - parseSmartPipelineBodyInStyle(childExpr, startLoc) { - if (this.isSimpleReference(childExpr)) { - const bodyNode = this.startNodeAt(startLoc); - bodyNode.callee = childExpr; - return this.finishNode(bodyNode, "PipelineBareFunction"); - } else { - const bodyNode = this.startNodeAt(startLoc); - this.checkSmartPipeTopicBodyEarlyErrors(startLoc); - bodyNode.expression = childExpr; - return this.finishNode(bodyNode, "PipelineTopicExpression"); - } - } - isSimpleReference(expression) { - switch (expression.type) { - case "MemberExpression": - return !expression.computed && this.isSimpleReference(expression.object); - case "Identifier": - return true; - default: - return false; - } - } - checkSmartPipeTopicBodyEarlyErrors(startLoc) { - if (this.match(19)) { - throw this.raise(Errors.PipelineBodyNoArrow, { - at: this.state.startLoc - }); - } - if (!this.topicReferenceWasUsedInCurrentContext()) { - this.raise(Errors.PipelineTopicUnused, { - at: startLoc - }); - } - } - withTopicBindingContext(callback) { - const outerContextTopicState = this.state.topicContext; - this.state.topicContext = { - maxNumOfResolvableTopics: 1, - maxTopicIndex: null - }; - try { - return callback(); - } finally { - this.state.topicContext = outerContextTopicState; - } - } - withSmartMixTopicForbiddingContext(callback) { - if (this.hasPlugin(["pipelineOperator", { - proposal: "smart" - }])) { - const outerContextTopicState = this.state.topicContext; - this.state.topicContext = { - maxNumOfResolvableTopics: 0, - maxTopicIndex: null - }; - try { - return callback(); - } finally { - this.state.topicContext = outerContextTopicState; - } - } else { - return callback(); - } - } - withSoloAwaitPermittingContext(callback) { - const outerContextSoloAwaitState = this.state.soloAwait; - this.state.soloAwait = true; - try { - return callback(); - } finally { - this.state.soloAwait = outerContextSoloAwaitState; - } - } - allowInAnd(callback) { - const flags = this.prodParam.currentFlags(); - const prodParamToSet = PARAM_IN & ~flags; - if (prodParamToSet) { - this.prodParam.enter(flags | PARAM_IN); - try { - return callback(); - } finally { - this.prodParam.exit(); - } - } - return callback(); - } - disallowInAnd(callback) { - const flags = this.prodParam.currentFlags(); - const prodParamToClear = PARAM_IN & flags; - if (prodParamToClear) { - this.prodParam.enter(flags & ~PARAM_IN); - try { - return callback(); - } finally { - this.prodParam.exit(); - } - } - return callback(); - } - registerTopicReference() { - this.state.topicContext.maxTopicIndex = 0; - } - topicReferenceIsAllowedInCurrentContext() { - return this.state.topicContext.maxNumOfResolvableTopics >= 1; - } - topicReferenceWasUsedInCurrentContext() { - return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0; - } - parseFSharpPipelineBody(prec) { - const startLoc = this.state.startLoc; - this.state.potentialArrowAt = this.state.start; - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = true; - const ret = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, prec); - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - return ret; - } - parseModuleExpression() { - this.expectPlugin("moduleBlocks"); - const node = this.startNode(); - this.next(); - if (!this.match(5)) { - this.unexpected(null, 5); - } - const program = this.startNodeAt(this.state.endLoc); - this.next(); - const revertScopes = this.initializeScopes(true); - this.enterInitialScopes(); - try { - node.body = this.parseProgram(program, 8, "module"); - } finally { - revertScopes(); - } - return this.finishNode(node, "ModuleExpression"); - } - parsePropertyNamePrefixOperator(prop) {} -} - -const loopLabel = { - kind: "loop" - }, - switchLabel = { - kind: "switch" - }; -var ParseFunctionFlag = { - Expression: 0, - Declaration: 1, - HangingDeclaration: 2, - NullableId: 4, - Async: 8 -}; -var ParseStatementFlag = { - StatementOnly: 0, - AllowImportExport: 1, - AllowDeclaration: 2, - AllowFunctionDeclaration: 4, - AllowLabeledFunction: 8 -}; -const loneSurrogate = /[\uD800-\uDFFF]/u; -const keywordRelationalOperator = /in(?:stanceof)?/y; -function babel7CompatTokens(tokens, input) { - for (let i = 0; i < tokens.length; i++) { - const token = tokens[i]; - const { - type - } = token; - if (typeof type === "number") { - { - if (type === 136) { - const { - loc, - start, - value, - end - } = token; - const hashEndPos = start + 1; - const hashEndLoc = createPositionWithColumnOffset(loc.start, 1); - tokens.splice(i, 1, new Token({ - type: getExportedToken(27), - value: "#", - start: start, - end: hashEndPos, - startLoc: loc.start, - endLoc: hashEndLoc - }), new Token({ - type: getExportedToken(130), - value: value, - start: hashEndPos, - end: end, - startLoc: hashEndLoc, - endLoc: loc.end - })); - i++; - continue; - } - if (tokenIsTemplate(type)) { - const { - loc, - start, - value, - end - } = token; - const backquoteEnd = start + 1; - const backquoteEndLoc = createPositionWithColumnOffset(loc.start, 1); - let startToken; - if (input.charCodeAt(start) === 96) { - startToken = new Token({ - type: getExportedToken(22), - value: "`", - start: start, - end: backquoteEnd, - startLoc: loc.start, - endLoc: backquoteEndLoc - }); - } else { - startToken = new Token({ - type: getExportedToken(8), - value: "}", - start: start, - end: backquoteEnd, - startLoc: loc.start, - endLoc: backquoteEndLoc - }); - } - let templateValue, templateElementEnd, templateElementEndLoc, endToken; - if (type === 24) { - templateElementEnd = end - 1; - templateElementEndLoc = createPositionWithColumnOffset(loc.end, -1); - templateValue = value === null ? null : value.slice(1, -1); - endToken = new Token({ - type: getExportedToken(22), - value: "`", - start: templateElementEnd, - end: end, - startLoc: templateElementEndLoc, - endLoc: loc.end - }); - } else { - templateElementEnd = end - 2; - templateElementEndLoc = createPositionWithColumnOffset(loc.end, -2); - templateValue = value === null ? null : value.slice(1, -2); - endToken = new Token({ - type: getExportedToken(23), - value: "${", - start: templateElementEnd, - end: end, - startLoc: templateElementEndLoc, - endLoc: loc.end - }); - } - tokens.splice(i, 1, startToken, new Token({ - type: getExportedToken(20), - value: templateValue, - start: backquoteEnd, - end: templateElementEnd, - startLoc: backquoteEndLoc, - endLoc: templateElementEndLoc - }), endToken); - i += 2; - continue; - } - } - token.type = getExportedToken(type); - } - } - return tokens; -} -class StatementParser extends ExpressionParser { - parseTopLevel(file, program) { - file.program = this.parseProgram(program); - file.comments = this.state.comments; - if (this.options.tokens) { - file.tokens = babel7CompatTokens(this.tokens, this.input); - } - return this.finishNode(file, "File"); - } - parseProgram(program, end = 137, sourceType = this.options.sourceType) { - program.sourceType = sourceType; - program.interpreter = this.parseInterpreterDirective(); - this.parseBlockBody(program, true, true, end); - if (this.inModule && !this.options.allowUndeclaredExports && this.scope.undefinedExports.size > 0) { - for (const [localName, at] of Array.from(this.scope.undefinedExports)) { - this.raise(Errors.ModuleExportUndefined, { - at, - localName - }); - } - } - let finishedProgram; - if (end === 137) { - finishedProgram = this.finishNode(program, "Program"); - } else { - finishedProgram = this.finishNodeAt(program, "Program", createPositionWithColumnOffset(this.state.startLoc, -1)); - } - return finishedProgram; - } - stmtToDirective(stmt) { - const directive = stmt; - directive.type = "Directive"; - directive.value = directive.expression; - delete directive.expression; - const directiveLiteral = directive.value; - const expressionValue = directiveLiteral.value; - const raw = this.input.slice(directiveLiteral.start, directiveLiteral.end); - const val = directiveLiteral.value = raw.slice(1, -1); - this.addExtra(directiveLiteral, "raw", raw); - this.addExtra(directiveLiteral, "rawValue", val); - this.addExtra(directiveLiteral, "expressionValue", expressionValue); - directiveLiteral.type = "DirectiveLiteral"; - return directive; - } - parseInterpreterDirective() { - if (!this.match(28)) { - return null; - } - const node = this.startNode(); - node.value = this.state.value; - this.next(); - return this.finishNode(node, "InterpreterDirective"); - } - isLet() { - if (!this.isContextual(99)) { - return false; - } - return this.hasFollowingBindingAtom(); - } - chStartsBindingIdentifier(ch, pos) { - if (isIdentifierStart(ch)) { - keywordRelationalOperator.lastIndex = pos; - if (keywordRelationalOperator.test(this.input)) { - const endCh = this.codePointAtPos(keywordRelationalOperator.lastIndex); - if (!isIdentifierChar(endCh) && endCh !== 92) { - return false; - } - } - return true; - } else if (ch === 92) { - return true; - } else { - return false; - } - } - chStartsBindingPattern(ch) { - return ch === 91 || ch === 123; - } - hasFollowingBindingAtom() { - const next = this.nextTokenStart(); - const nextCh = this.codePointAtPos(next); - return this.chStartsBindingPattern(nextCh) || this.chStartsBindingIdentifier(nextCh, next); - } - hasFollowingBindingIdentifier() { - const next = this.nextTokenStart(); - const nextCh = this.codePointAtPos(next); - return this.chStartsBindingIdentifier(nextCh, next); - } - startsUsingForOf() { - const lookahead = this.lookahead(); - if (lookahead.type === 101 && !lookahead.containsEsc) { - return false; - } else { - this.expectPlugin("explicitResourceManagement"); - return true; - } - } - parseModuleItem() { - return this.parseStatementLike(ParseStatementFlag.AllowImportExport | ParseStatementFlag.AllowDeclaration | ParseStatementFlag.AllowFunctionDeclaration | ParseStatementFlag.AllowLabeledFunction); - } - parseStatementListItem() { - return this.parseStatementLike(ParseStatementFlag.AllowDeclaration | ParseStatementFlag.AllowFunctionDeclaration | (!this.options.annexB || this.state.strict ? 0 : ParseStatementFlag.AllowLabeledFunction)); - } - parseStatementOrSloppyAnnexBFunctionDeclaration(allowLabeledFunction = false) { - let flags = ParseStatementFlag.StatementOnly; - if (this.options.annexB && !this.state.strict) { - flags |= ParseStatementFlag.AllowFunctionDeclaration; - if (allowLabeledFunction) { - flags |= ParseStatementFlag.AllowLabeledFunction; - } - } - return this.parseStatementLike(flags); - } - parseStatement() { - return this.parseStatementLike(ParseStatementFlag.StatementOnly); - } - parseStatementLike(flags) { - let decorators = null; - if (this.match(26)) { - decorators = this.parseDecorators(true); - } - return this.parseStatementContent(flags, decorators); - } - parseStatementContent(flags, decorators) { - const starttype = this.state.type; - const node = this.startNode(); - const allowDeclaration = !!(flags & ParseStatementFlag.AllowDeclaration); - const allowFunctionDeclaration = !!(flags & ParseStatementFlag.AllowFunctionDeclaration); - const topLevel = flags & ParseStatementFlag.AllowImportExport; - switch (starttype) { - case 60: - return this.parseBreakContinueStatement(node, true); - case 63: - return this.parseBreakContinueStatement(node, false); - case 64: - return this.parseDebuggerStatement(node); - case 90: - return this.parseDoWhileStatement(node); - case 91: - return this.parseForStatement(node); - case 68: - if (this.lookaheadCharCode() === 46) break; - if (!allowFunctionDeclaration) { - this.raise(this.state.strict ? Errors.StrictFunction : this.options.annexB ? Errors.SloppyFunctionAnnexB : Errors.SloppyFunction, { - at: this.state.startLoc - }); - } - return this.parseFunctionStatement(node, false, !allowDeclaration && allowFunctionDeclaration); - case 80: - if (!allowDeclaration) this.unexpected(); - return this.parseClass(this.maybeTakeDecorators(decorators, node), true); - case 69: - return this.parseIfStatement(node); - case 70: - return this.parseReturnStatement(node); - case 71: - return this.parseSwitchStatement(node); - case 72: - return this.parseThrowStatement(node); - case 73: - return this.parseTryStatement(node); - case 105: - if (this.hasFollowingLineBreak() || this.state.containsEsc || !this.hasFollowingBindingIdentifier()) { - break; - } - this.expectPlugin("explicitResourceManagement"); - if (!this.scope.inModule && this.scope.inTopLevel) { - this.raise(Errors.UnexpectedUsingDeclaration, { - at: this.state.startLoc - }); - } else if (!allowDeclaration) { - this.raise(Errors.UnexpectedLexicalDeclaration, { - at: this.state.startLoc - }); - } - return this.parseVarStatement(node, "using"); - case 99: - { - if (this.state.containsEsc) { - break; - } - const next = this.nextTokenStart(); - const nextCh = this.codePointAtPos(next); - if (nextCh !== 91) { - if (!allowDeclaration && this.hasFollowingLineBreak()) break; - if (!this.chStartsBindingIdentifier(nextCh, next) && nextCh !== 123) { - break; - } - } - } - case 75: - { - if (!allowDeclaration) { - this.raise(Errors.UnexpectedLexicalDeclaration, { - at: this.state.startLoc - }); - } - } - case 74: - { - const kind = this.state.value; - return this.parseVarStatement(node, kind); - } - case 92: - return this.parseWhileStatement(node); - case 76: - return this.parseWithStatement(node); - case 5: - return this.parseBlock(); - case 13: - return this.parseEmptyStatement(node); - case 83: - { - const nextTokenCharCode = this.lookaheadCharCode(); - if (nextTokenCharCode === 40 || nextTokenCharCode === 46) { - break; - } - } - case 82: - { - if (!this.options.allowImportExportEverywhere && !topLevel) { - this.raise(Errors.UnexpectedImportExport, { - at: this.state.startLoc - }); - } - this.next(); - let result; - if (starttype === 83) { - result = this.parseImport(node); - if (result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value")) { - this.sawUnambiguousESM = true; - } - } else { - result = this.parseExport(node, decorators); - if (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") { - this.sawUnambiguousESM = true; - } - } - this.assertModuleNodeAllowed(result); - return result; - } - default: - { - if (this.isAsyncFunction()) { - if (!allowDeclaration) { - this.raise(Errors.AsyncFunctionInSingleStatementContext, { - at: this.state.startLoc - }); - } - this.next(); - return this.parseFunctionStatement(node, true, !allowDeclaration && allowFunctionDeclaration); - } - } - } - const maybeName = this.state.value; - const expr = this.parseExpression(); - if (tokenIsIdentifier(starttype) && expr.type === "Identifier" && this.eat(14)) { - return this.parseLabeledStatement(node, maybeName, expr, flags); - } else { - return this.parseExpressionStatement(node, expr, decorators); - } - } - assertModuleNodeAllowed(node) { - if (!this.options.allowImportExportEverywhere && !this.inModule) { - this.raise(Errors.ImportOutsideModule, { - at: node - }); - } - } - decoratorsEnabledBeforeExport() { - if (this.hasPlugin("decorators-legacy")) return true; - return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") !== false; - } - maybeTakeDecorators(maybeDecorators, classNode, exportNode) { - if (maybeDecorators) { - if (classNode.decorators && classNode.decorators.length > 0) { - if (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") !== "boolean") { - this.raise(Errors.DecoratorsBeforeAfterExport, { - at: classNode.decorators[0] - }); - } - classNode.decorators.unshift(...maybeDecorators); - } else { - classNode.decorators = maybeDecorators; - } - this.resetStartLocationFromNode(classNode, maybeDecorators[0]); - if (exportNode) this.resetStartLocationFromNode(exportNode, classNode); - } - return classNode; - } - canHaveLeadingDecorator() { - return this.match(80); - } - parseDecorators(allowExport) { - const decorators = []; - do { - decorators.push(this.parseDecorator()); - } while (this.match(26)); - if (this.match(82)) { - if (!allowExport) { - this.unexpected(); - } - if (!this.decoratorsEnabledBeforeExport()) { - this.raise(Errors.DecoratorExportClass, { - at: this.state.startLoc - }); - } - } else if (!this.canHaveLeadingDecorator()) { - throw this.raise(Errors.UnexpectedLeadingDecorator, { - at: this.state.startLoc - }); - } - return decorators; - } - parseDecorator() { - this.expectOnePlugin(["decorators", "decorators-legacy"]); - const node = this.startNode(); - this.next(); - if (this.hasPlugin("decorators")) { - const startLoc = this.state.startLoc; - let expr; - if (this.match(10)) { - const startLoc = this.state.startLoc; - this.next(); - expr = this.parseExpression(); - this.expect(11); - expr = this.wrapParenthesis(startLoc, expr); - const paramsStartLoc = this.state.startLoc; - node.expression = this.parseMaybeDecoratorArguments(expr); - if (this.getPluginOption("decorators", "allowCallParenthesized") === false && node.expression !== expr) { - this.raise(Errors.DecoratorArgumentsOutsideParentheses, { - at: paramsStartLoc - }); - } - } else { - expr = this.parseIdentifier(false); - while (this.eat(16)) { - const node = this.startNodeAt(startLoc); - node.object = expr; - if (this.match(136)) { - this.classScope.usePrivateName(this.state.value, this.state.startLoc); - node.property = this.parsePrivateName(); - } else { - node.property = this.parseIdentifier(true); - } - node.computed = false; - expr = this.finishNode(node, "MemberExpression"); - } - node.expression = this.parseMaybeDecoratorArguments(expr); - } - } else { - node.expression = this.parseExprSubscripts(); - } - return this.finishNode(node, "Decorator"); - } - parseMaybeDecoratorArguments(expr) { - if (this.eat(10)) { - const node = this.startNodeAtNode(expr); - node.callee = expr; - node.arguments = this.parseCallExpressionArguments(11, false); - this.toReferencedList(node.arguments); - return this.finishNode(node, "CallExpression"); - } - return expr; - } - parseBreakContinueStatement(node, isBreak) { - this.next(); - if (this.isLineTerminator()) { - node.label = null; - } else { - node.label = this.parseIdentifier(); - this.semicolon(); - } - this.verifyBreakContinue(node, isBreak); - return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement"); - } - verifyBreakContinue(node, isBreak) { - let i; - for (i = 0; i < this.state.labels.length; ++i) { - const lab = this.state.labels[i]; - if (node.label == null || lab.name === node.label.name) { - if (lab.kind != null && (isBreak || lab.kind === "loop")) break; - if (node.label && isBreak) break; - } - } - if (i === this.state.labels.length) { - const type = isBreak ? "BreakStatement" : "ContinueStatement"; - this.raise(Errors.IllegalBreakContinue, { - at: node, - type - }); - } - } - parseDebuggerStatement(node) { - this.next(); - this.semicolon(); - return this.finishNode(node, "DebuggerStatement"); - } - parseHeaderExpression() { - this.expect(10); - const val = this.parseExpression(); - this.expect(11); - return val; - } - parseDoWhileStatement(node) { - this.next(); - this.state.labels.push(loopLabel); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.state.labels.pop(); - this.expect(92); - node.test = this.parseHeaderExpression(); - this.eat(13); - return this.finishNode(node, "DoWhileStatement"); - } - parseForStatement(node) { - this.next(); - this.state.labels.push(loopLabel); - let awaitAt = null; - if (this.isAwaitAllowed() && this.eatContextual(96)) { - awaitAt = this.state.lastTokStartLoc; - } - this.scope.enter(SCOPE_OTHER); - this.expect(10); - if (this.match(13)) { - if (awaitAt !== null) { - this.unexpected(awaitAt); - } - return this.parseFor(node, null); - } - const startsWithLet = this.isContextual(99); - const startsWithUsing = this.isContextual(105) && !this.hasFollowingLineBreak(); - const isLetOrUsing = startsWithLet && this.hasFollowingBindingAtom() || startsWithUsing && this.hasFollowingBindingIdentifier() && this.startsUsingForOf(); - if (this.match(74) || this.match(75) || isLetOrUsing) { - const initNode = this.startNode(); - const kind = this.state.value; - this.next(); - this.parseVar(initNode, true, kind); - const init = this.finishNode(initNode, "VariableDeclaration"); - const isForIn = this.match(58); - if (isForIn && startsWithUsing) { - this.raise(Errors.ForInUsing, { - at: init - }); - } - if ((isForIn || this.isContextual(101)) && init.declarations.length === 1) { - return this.parseForIn(node, init, awaitAt); - } - if (awaitAt !== null) { - this.unexpected(awaitAt); - } - return this.parseFor(node, init); - } - const startsWithAsync = this.isContextual(95); - const refExpressionErrors = new ExpressionErrors(); - const init = this.parseExpression(true, refExpressionErrors); - const isForOf = this.isContextual(101); - if (isForOf) { - if (startsWithLet) { - this.raise(Errors.ForOfLet, { - at: init - }); - } - if (awaitAt === null && startsWithAsync && init.type === "Identifier") { - this.raise(Errors.ForOfAsync, { - at: init - }); - } - } - if (isForOf || this.match(58)) { - this.checkDestructuringPrivate(refExpressionErrors); - this.toAssignable(init, true); - const type = isForOf ? "ForOfStatement" : "ForInStatement"; - this.checkLVal(init, { - in: { - type - } - }); - return this.parseForIn(node, init, awaitAt); - } else { - this.checkExpressionErrors(refExpressionErrors, true); - } - if (awaitAt !== null) { - this.unexpected(awaitAt); - } - return this.parseFor(node, init); - } - parseFunctionStatement(node, isAsync, isHangingDeclaration) { - this.next(); - return this.parseFunction(node, ParseFunctionFlag.Declaration | (isHangingDeclaration ? ParseFunctionFlag.HangingDeclaration : 0) | (isAsync ? ParseFunctionFlag.Async : 0)); - } - parseIfStatement(node) { - this.next(); - node.test = this.parseHeaderExpression(); - node.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(); - node.alternate = this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null; - return this.finishNode(node, "IfStatement"); - } - parseReturnStatement(node) { - if (!this.prodParam.hasReturn && !this.options.allowReturnOutsideFunction) { - this.raise(Errors.IllegalReturn, { - at: this.state.startLoc - }); - } - this.next(); - if (this.isLineTerminator()) { - node.argument = null; - } else { - node.argument = this.parseExpression(); - this.semicolon(); - } - return this.finishNode(node, "ReturnStatement"); - } - parseSwitchStatement(node) { - this.next(); - node.discriminant = this.parseHeaderExpression(); - const cases = node.cases = []; - this.expect(5); - this.state.labels.push(switchLabel); - this.scope.enter(SCOPE_OTHER); - let cur; - for (let sawDefault; !this.match(8);) { - if (this.match(61) || this.match(65)) { - const isCase = this.match(61); - if (cur) this.finishNode(cur, "SwitchCase"); - cases.push(cur = this.startNode()); - cur.consequent = []; - this.next(); - if (isCase) { - cur.test = this.parseExpression(); - } else { - if (sawDefault) { - this.raise(Errors.MultipleDefaultsInSwitch, { - at: this.state.lastTokStartLoc - }); - } - sawDefault = true; - cur.test = null; - } - this.expect(14); - } else { - if (cur) { - cur.consequent.push(this.parseStatementListItem()); - } else { - this.unexpected(); - } - } - } - this.scope.exit(); - if (cur) this.finishNode(cur, "SwitchCase"); - this.next(); - this.state.labels.pop(); - return this.finishNode(node, "SwitchStatement"); - } - parseThrowStatement(node) { - this.next(); - if (this.hasPrecedingLineBreak()) { - this.raise(Errors.NewlineAfterThrow, { - at: this.state.lastTokEndLoc - }); - } - node.argument = this.parseExpression(); - this.semicolon(); - return this.finishNode(node, "ThrowStatement"); - } - parseCatchClauseParam() { - const param = this.parseBindingAtom(); - this.scope.enter(this.options.annexB && param.type === "Identifier" ? SCOPE_SIMPLE_CATCH : 0); - this.checkLVal(param, { - in: { - type: "CatchClause" - }, - binding: BIND_CATCH_PARAM - }); - return param; - } - parseTryStatement(node) { - this.next(); - node.block = this.parseBlock(); - node.handler = null; - if (this.match(62)) { - const clause = this.startNode(); - this.next(); - if (this.match(10)) { - this.expect(10); - clause.param = this.parseCatchClauseParam(); - this.expect(11); - } else { - clause.param = null; - this.scope.enter(SCOPE_OTHER); - } - clause.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(false, false)); - this.scope.exit(); - node.handler = this.finishNode(clause, "CatchClause"); - } - node.finalizer = this.eat(67) ? this.parseBlock() : null; - if (!node.handler && !node.finalizer) { - this.raise(Errors.NoCatchOrFinally, { - at: node - }); - } - return this.finishNode(node, "TryStatement"); - } - parseVarStatement(node, kind, allowMissingInitializer = false) { - this.next(); - this.parseVar(node, false, kind, allowMissingInitializer); - this.semicolon(); - return this.finishNode(node, "VariableDeclaration"); - } - parseWhileStatement(node) { - this.next(); - node.test = this.parseHeaderExpression(); - this.state.labels.push(loopLabel); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.state.labels.pop(); - return this.finishNode(node, "WhileStatement"); - } - parseWithStatement(node) { - if (this.state.strict) { - this.raise(Errors.StrictWith, { - at: this.state.startLoc - }); - } - this.next(); - node.object = this.parseHeaderExpression(); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - return this.finishNode(node, "WithStatement"); - } - parseEmptyStatement(node) { - this.next(); - return this.finishNode(node, "EmptyStatement"); - } - parseLabeledStatement(node, maybeName, expr, flags) { - for (const label of this.state.labels) { - if (label.name === maybeName) { - this.raise(Errors.LabelRedeclaration, { - at: expr, - labelName: maybeName - }); - } - } - const kind = tokenIsLoop(this.state.type) ? "loop" : this.match(71) ? "switch" : null; - for (let i = this.state.labels.length - 1; i >= 0; i--) { - const label = this.state.labels[i]; - if (label.statementStart === node.start) { - label.statementStart = this.state.start; - label.kind = kind; - } else { - break; - } - } - this.state.labels.push({ - name: maybeName, - kind: kind, - statementStart: this.state.start - }); - node.body = flags & ParseStatementFlag.AllowLabeledFunction ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(true) : this.parseStatement(); - this.state.labels.pop(); - node.label = expr; - return this.finishNode(node, "LabeledStatement"); - } - parseExpressionStatement(node, expr, decorators) { - node.expression = expr; - this.semicolon(); - return this.finishNode(node, "ExpressionStatement"); - } - parseBlock(allowDirectives = false, createNewLexicalScope = true, afterBlockParse) { - const node = this.startNode(); - if (allowDirectives) { - this.state.strictErrors.clear(); - } - this.expect(5); - if (createNewLexicalScope) { - this.scope.enter(SCOPE_OTHER); - } - this.parseBlockBody(node, allowDirectives, false, 8, afterBlockParse); - if (createNewLexicalScope) { - this.scope.exit(); - } - return this.finishNode(node, "BlockStatement"); - } - isValidDirective(stmt) { - return stmt.type === "ExpressionStatement" && stmt.expression.type === "StringLiteral" && !stmt.expression.extra.parenthesized; - } - parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) { - const body = node.body = []; - const directives = node.directives = []; - this.parseBlockOrModuleBlockBody(body, allowDirectives ? directives : undefined, topLevel, end, afterBlockParse); - } - parseBlockOrModuleBlockBody(body, directives, topLevel, end, afterBlockParse) { - const oldStrict = this.state.strict; - let hasStrictModeDirective = false; - let parsedNonDirective = false; - while (!this.match(end)) { - const stmt = topLevel ? this.parseModuleItem() : this.parseStatementListItem(); - if (directives && !parsedNonDirective) { - if (this.isValidDirective(stmt)) { - const directive = this.stmtToDirective(stmt); - directives.push(directive); - if (!hasStrictModeDirective && directive.value.value === "use strict") { - hasStrictModeDirective = true; - this.setStrict(true); - } - continue; - } - parsedNonDirective = true; - this.state.strictErrors.clear(); - } - body.push(stmt); - } - if (afterBlockParse) { - afterBlockParse.call(this, hasStrictModeDirective); - } - if (!oldStrict) { - this.setStrict(false); - } - this.next(); - } - parseFor(node, init) { - node.init = init; - this.semicolon(false); - node.test = this.match(13) ? null : this.parseExpression(); - this.semicolon(false); - node.update = this.match(11) ? null : this.parseExpression(); - this.expect(11); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.scope.exit(); - this.state.labels.pop(); - return this.finishNode(node, "ForStatement"); - } - parseForIn(node, init, awaitAt) { - const isForIn = this.match(58); - this.next(); - if (isForIn) { - if (awaitAt !== null) this.unexpected(awaitAt); - } else { - node.await = awaitAt !== null; - } - if (init.type === "VariableDeclaration" && init.declarations[0].init != null && (!isForIn || !this.options.annexB || this.state.strict || init.kind !== "var" || init.declarations[0].id.type !== "Identifier")) { - this.raise(Errors.ForInOfLoopInitializer, { - at: init, - type: isForIn ? "ForInStatement" : "ForOfStatement" - }); - } - if (init.type === "AssignmentPattern") { - this.raise(Errors.InvalidLhs, { - at: init, - ancestor: { - type: "ForStatement" - } - }); - } - node.left = init; - node.right = isForIn ? this.parseExpression() : this.parseMaybeAssignAllowIn(); - this.expect(11); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.scope.exit(); - this.state.labels.pop(); - return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement"); - } - parseVar(node, isFor, kind, allowMissingInitializer = false) { - const declarations = node.declarations = []; - node.kind = kind; - for (;;) { - const decl = this.startNode(); - this.parseVarId(decl, kind); - decl.init = !this.eat(29) ? null : isFor ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn(); - if (decl.init === null && !allowMissingInitializer) { - if (decl.id.type !== "Identifier" && !(isFor && (this.match(58) || this.isContextual(101)))) { - this.raise(Errors.DeclarationMissingInitializer, { - at: this.state.lastTokEndLoc, - kind: "destructuring" - }); - } else if (kind === "const" && !(this.match(58) || this.isContextual(101))) { - this.raise(Errors.DeclarationMissingInitializer, { - at: this.state.lastTokEndLoc, - kind: "const" - }); - } - } - declarations.push(this.finishNode(decl, "VariableDeclarator")); - if (!this.eat(12)) break; - } - return node; - } - parseVarId(decl, kind) { - if (kind === "using" && !this.inModule && this.match(96)) { - this.raise(Errors.AwaitInUsingBinding, { - at: this.state.startLoc - }); - } - const id = this.parseBindingAtom(); - this.checkLVal(id, { - in: { - type: "VariableDeclarator" - }, - binding: kind === "var" ? BIND_VAR : BIND_LEXICAL - }); - decl.id = id; - } - parseAsyncFunctionExpression(node) { - return this.parseFunction(node, ParseFunctionFlag.Async); - } - parseFunction(node, flags = ParseFunctionFlag.Expression) { - const hangingDeclaration = flags & ParseFunctionFlag.HangingDeclaration; - const isDeclaration = !!(flags & ParseFunctionFlag.Declaration); - const requireId = isDeclaration && !(flags & ParseFunctionFlag.NullableId); - const isAsync = !!(flags & ParseFunctionFlag.Async); - this.initFunction(node, isAsync); - if (this.match(55)) { - if (hangingDeclaration) { - this.raise(Errors.GeneratorInSingleStatementContext, { - at: this.state.startLoc - }); - } - this.next(); - node.generator = true; - } - if (isDeclaration) { - node.id = this.parseFunctionId(requireId); - } - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - this.state.maybeInArrowParameters = false; - this.scope.enter(SCOPE_FUNCTION); - this.prodParam.enter(functionFlags(isAsync, node.generator)); - if (!isDeclaration) { - node.id = this.parseFunctionId(); - } - this.parseFunctionParams(node, false); - this.withSmartMixTopicForbiddingContext(() => { - this.parseFunctionBodyAndFinish(node, isDeclaration ? "FunctionDeclaration" : "FunctionExpression"); - }); - this.prodParam.exit(); - this.scope.exit(); - if (isDeclaration && !hangingDeclaration) { - this.registerFunctionStatementId(node); - } - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - return node; - } - parseFunctionId(requireId) { - return requireId || tokenIsIdentifier(this.state.type) ? this.parseIdentifier() : null; - } - parseFunctionParams(node, isConstructor) { - this.expect(10); - this.expressionScope.enter(newParameterDeclarationScope()); - node.params = this.parseBindingList(11, 41, ParseBindingListFlags.IS_FUNCTION_PARAMS | (isConstructor ? ParseBindingListFlags.IS_CONSTRUCTOR_PARAMS : 0)); - this.expressionScope.exit(); - } - registerFunctionStatementId(node) { - if (!node.id) return; - this.scope.declareName(node.id.name, !this.options.annexB || this.state.strict || node.generator || node.async ? this.scope.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION, node.id.loc.start); - } - parseClass(node, isStatement, optionalId) { - this.next(); - const oldStrict = this.state.strict; - this.state.strict = true; - this.parseClassId(node, isStatement, optionalId); - this.parseClassSuper(node); - node.body = this.parseClassBody(!!node.superClass, oldStrict); - return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression"); - } - isClassProperty() { - return this.match(29) || this.match(13) || this.match(8); - } - isClassMethod() { - return this.match(10); - } - isNonstaticConstructor(method) { - return !method.computed && !method.static && (method.key.name === "constructor" || method.key.value === "constructor"); - } - parseClassBody(hadSuperClass, oldStrict) { - this.classScope.enter(); - const state = { - hadConstructor: false, - hadSuperClass - }; - let decorators = []; - const classBody = this.startNode(); - classBody.body = []; - this.expect(5); - this.withSmartMixTopicForbiddingContext(() => { - while (!this.match(8)) { - if (this.eat(13)) { - if (decorators.length > 0) { - throw this.raise(Errors.DecoratorSemicolon, { - at: this.state.lastTokEndLoc - }); - } - continue; - } - if (this.match(26)) { - decorators.push(this.parseDecorator()); - continue; - } - const member = this.startNode(); - if (decorators.length) { - member.decorators = decorators; - this.resetStartLocationFromNode(member, decorators[0]); - decorators = []; - } - this.parseClassMember(classBody, member, state); - if (member.kind === "constructor" && member.decorators && member.decorators.length > 0) { - this.raise(Errors.DecoratorConstructor, { - at: member - }); - } - } - }); - this.state.strict = oldStrict; - this.next(); - if (decorators.length) { - throw this.raise(Errors.TrailingDecorator, { - at: this.state.startLoc - }); - } - this.classScope.exit(); - return this.finishNode(classBody, "ClassBody"); - } - parseClassMemberFromModifier(classBody, member) { - const key = this.parseIdentifier(true); - if (this.isClassMethod()) { - const method = member; - method.kind = "method"; - method.computed = false; - method.key = key; - method.static = false; - this.pushClassMethod(classBody, method, false, false, false, false); - return true; - } else if (this.isClassProperty()) { - const prop = member; - prop.computed = false; - prop.key = key; - prop.static = false; - classBody.body.push(this.parseClassProperty(prop)); - return true; - } - this.resetPreviousNodeTrailingComments(key); - return false; - } - parseClassMember(classBody, member, state) { - const isStatic = this.isContextual(104); - if (isStatic) { - if (this.parseClassMemberFromModifier(classBody, member)) { - return; - } - if (this.eat(5)) { - this.parseClassStaticBlock(classBody, member); - return; - } - } - this.parseClassMemberWithIsStatic(classBody, member, state, isStatic); - } - parseClassMemberWithIsStatic(classBody, member, state, isStatic) { - const publicMethod = member; - const privateMethod = member; - const publicProp = member; - const privateProp = member; - const accessorProp = member; - const method = publicMethod; - const publicMember = publicMethod; - member.static = isStatic; - this.parsePropertyNamePrefixOperator(member); - if (this.eat(55)) { - method.kind = "method"; - const isPrivateName = this.match(136); - this.parseClassElementName(method); - if (isPrivateName) { - this.pushClassPrivateMethod(classBody, privateMethod, true, false); - return; - } - if (this.isNonstaticConstructor(publicMethod)) { - this.raise(Errors.ConstructorIsGenerator, { - at: publicMethod.key - }); - } - this.pushClassMethod(classBody, publicMethod, true, false, false, false); - return; - } - const isContextual = tokenIsIdentifier(this.state.type) && !this.state.containsEsc; - const isPrivate = this.match(136); - const key = this.parseClassElementName(member); - const maybeQuestionTokenStartLoc = this.state.startLoc; - this.parsePostMemberNameModifiers(publicMember); - if (this.isClassMethod()) { - method.kind = "method"; - if (isPrivate) { - this.pushClassPrivateMethod(classBody, privateMethod, false, false); - return; - } - const isConstructor = this.isNonstaticConstructor(publicMethod); - let allowsDirectSuper = false; - if (isConstructor) { - publicMethod.kind = "constructor"; - if (state.hadConstructor && !this.hasPlugin("typescript")) { - this.raise(Errors.DuplicateConstructor, { - at: key - }); - } - if (isConstructor && this.hasPlugin("typescript") && member.override) { - this.raise(Errors.OverrideOnConstructor, { - at: key - }); - } - state.hadConstructor = true; - allowsDirectSuper = state.hadSuperClass; - } - this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper); - } else if (this.isClassProperty()) { - if (isPrivate) { - this.pushClassPrivateProperty(classBody, privateProp); - } else { - this.pushClassProperty(classBody, publicProp); - } - } else if (isContextual && key.name === "async" && !this.isLineTerminator()) { - this.resetPreviousNodeTrailingComments(key); - const isGenerator = this.eat(55); - if (publicMember.optional) { - this.unexpected(maybeQuestionTokenStartLoc); - } - method.kind = "method"; - const isPrivate = this.match(136); - this.parseClassElementName(method); - this.parsePostMemberNameModifiers(publicMember); - if (isPrivate) { - this.pushClassPrivateMethod(classBody, privateMethod, isGenerator, true); - } else { - if (this.isNonstaticConstructor(publicMethod)) { - this.raise(Errors.ConstructorIsAsync, { - at: publicMethod.key - }); - } - this.pushClassMethod(classBody, publicMethod, isGenerator, true, false, false); - } - } else if (isContextual && (key.name === "get" || key.name === "set") && !(this.match(55) && this.isLineTerminator())) { - this.resetPreviousNodeTrailingComments(key); - method.kind = key.name; - const isPrivate = this.match(136); - this.parseClassElementName(publicMethod); - if (isPrivate) { - this.pushClassPrivateMethod(classBody, privateMethod, false, false); - } else { - if (this.isNonstaticConstructor(publicMethod)) { - this.raise(Errors.ConstructorIsAccessor, { - at: publicMethod.key - }); - } - this.pushClassMethod(classBody, publicMethod, false, false, false, false); - } - this.checkGetterSetterParams(publicMethod); - } else if (isContextual && key.name === "accessor" && !this.isLineTerminator()) { - this.expectPlugin("decoratorAutoAccessors"); - this.resetPreviousNodeTrailingComments(key); - const isPrivate = this.match(136); - this.parseClassElementName(publicProp); - this.pushClassAccessorProperty(classBody, accessorProp, isPrivate); - } else if (this.isLineTerminator()) { - if (isPrivate) { - this.pushClassPrivateProperty(classBody, privateProp); - } else { - this.pushClassProperty(classBody, publicProp); - } - } else { - this.unexpected(); - } - } - parseClassElementName(member) { - const { - type, - value - } = this.state; - if ((type === 130 || type === 131) && member.static && value === "prototype") { - this.raise(Errors.StaticPrototype, { - at: this.state.startLoc - }); - } - if (type === 136) { - if (value === "constructor") { - this.raise(Errors.ConstructorClassPrivateField, { - at: this.state.startLoc - }); - } - const key = this.parsePrivateName(); - member.key = key; - return key; - } - return this.parsePropertyName(member); - } - parseClassStaticBlock(classBody, member) { - var _member$decorators; - this.scope.enter(SCOPE_CLASS | SCOPE_STATIC_BLOCK | SCOPE_SUPER); - const oldLabels = this.state.labels; - this.state.labels = []; - this.prodParam.enter(PARAM); - const body = member.body = []; - this.parseBlockOrModuleBlockBody(body, undefined, false, 8); - this.prodParam.exit(); - this.scope.exit(); - this.state.labels = oldLabels; - classBody.body.push(this.finishNode(member, "StaticBlock")); - if ((_member$decorators = member.decorators) != null && _member$decorators.length) { - this.raise(Errors.DecoratorStaticBlock, { - at: member - }); - } - } - pushClassProperty(classBody, prop) { - if (!prop.computed && (prop.key.name === "constructor" || prop.key.value === "constructor")) { - this.raise(Errors.ConstructorClassField, { - at: prop.key - }); - } - classBody.body.push(this.parseClassProperty(prop)); - } - pushClassPrivateProperty(classBody, prop) { - const node = this.parseClassPrivateProperty(prop); - classBody.body.push(node); - this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), CLASS_ELEMENT_OTHER, node.key.loc.start); - } - pushClassAccessorProperty(classBody, prop, isPrivate) { - if (!isPrivate && !prop.computed) { - const key = prop.key; - if (key.name === "constructor" || key.value === "constructor") { - this.raise(Errors.ConstructorClassField, { - at: key - }); - } - } - const node = this.parseClassAccessorProperty(prop); - classBody.body.push(node); - if (isPrivate) { - this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), CLASS_ELEMENT_OTHER, node.key.loc.start); - } - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - classBody.body.push(this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true)); - } - pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { - const node = this.parseMethod(method, isGenerator, isAsync, false, false, "ClassPrivateMethod", true); - classBody.body.push(node); - const kind = node.kind === "get" ? node.static ? CLASS_ELEMENT_STATIC_GETTER : CLASS_ELEMENT_INSTANCE_GETTER : node.kind === "set" ? node.static ? CLASS_ELEMENT_STATIC_SETTER : CLASS_ELEMENT_INSTANCE_SETTER : CLASS_ELEMENT_OTHER; - this.declareClassPrivateMethodInScope(node, kind); - } - declareClassPrivateMethodInScope(node, kind) { - this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), kind, node.key.loc.start); - } - parsePostMemberNameModifiers(methodOrProp) {} - parseClassPrivateProperty(node) { - this.parseInitializer(node); - this.semicolon(); - return this.finishNode(node, "ClassPrivateProperty"); - } - parseClassProperty(node) { - this.parseInitializer(node); - this.semicolon(); - return this.finishNode(node, "ClassProperty"); - } - parseClassAccessorProperty(node) { - this.parseInitializer(node); - this.semicolon(); - return this.finishNode(node, "ClassAccessorProperty"); - } - parseInitializer(node) { - this.scope.enter(SCOPE_CLASS | SCOPE_SUPER); - this.expressionScope.enter(newExpressionScope()); - this.prodParam.enter(PARAM); - node.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null; - this.expressionScope.exit(); - this.prodParam.exit(); - this.scope.exit(); - } - parseClassId(node, isStatement, optionalId, bindingType = BIND_CLASS) { - if (tokenIsIdentifier(this.state.type)) { - node.id = this.parseIdentifier(); - if (isStatement) { - this.declareNameFromIdentifier(node.id, bindingType); - } - } else { - if (optionalId || !isStatement) { - node.id = null; - } else { - throw this.raise(Errors.MissingClassName, { - at: this.state.startLoc - }); - } - } - } - parseClassSuper(node) { - node.superClass = this.eat(81) ? this.parseExprSubscripts() : null; - } - parseExport(node, decorators) { - const hasDefault = this.maybeParseExportDefaultSpecifier(node); - const parseAfterDefault = !hasDefault || this.eat(12); - const hasStar = parseAfterDefault && this.eatExportStar(node); - const hasNamespace = hasStar && this.maybeParseExportNamespaceSpecifier(node); - const parseAfterNamespace = parseAfterDefault && (!hasNamespace || this.eat(12)); - const isFromRequired = hasDefault || hasStar; - if (hasStar && !hasNamespace) { - if (hasDefault) this.unexpected(); - if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - this.parseExportFrom(node, true); - return this.finishNode(node, "ExportAllDeclaration"); - } - const hasSpecifiers = this.maybeParseExportNamedSpecifiers(node); - if (hasDefault && parseAfterDefault && !hasStar && !hasSpecifiers) { - throw this.unexpected(null, 5); - } - if (hasNamespace && parseAfterNamespace) { - throw this.unexpected(null, 97); - } - let hasDeclaration; - if (isFromRequired || hasSpecifiers) { - hasDeclaration = false; - if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - this.parseExportFrom(node, isFromRequired); - } else { - hasDeclaration = this.maybeParseExportDeclaration(node); - } - if (isFromRequired || hasSpecifiers || hasDeclaration) { - var _node2$declaration; - const node2 = node; - this.checkExport(node2, true, false, !!node2.source); - if (((_node2$declaration = node2.declaration) == null ? void 0 : _node2$declaration.type) === "ClassDeclaration") { - this.maybeTakeDecorators(decorators, node2.declaration, node2); - } else if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - return this.finishNode(node2, "ExportNamedDeclaration"); - } - if (this.eat(65)) { - const node2 = node; - const decl = this.parseExportDefaultExpression(); - node2.declaration = decl; - if (decl.type === "ClassDeclaration") { - this.maybeTakeDecorators(decorators, decl, node2); - } else if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - this.checkExport(node2, true, true); - return this.finishNode(node2, "ExportDefaultDeclaration"); - } - throw this.unexpected(null, 5); - } - eatExportStar(node) { - return this.eat(55); - } - maybeParseExportDefaultSpecifier(node) { - if (this.isExportDefaultSpecifier()) { - this.expectPlugin("exportDefaultFrom"); - const specifier = this.startNode(); - specifier.exported = this.parseIdentifier(true); - node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]; - return true; - } - return false; - } - maybeParseExportNamespaceSpecifier(node) { - if (this.isContextual(93)) { - if (!node.specifiers) node.specifiers = []; - const specifier = this.startNodeAt(this.state.lastTokStartLoc); - this.next(); - specifier.exported = this.parseModuleExportName(); - node.specifiers.push(this.finishNode(specifier, "ExportNamespaceSpecifier")); - return true; - } - return false; - } - maybeParseExportNamedSpecifiers(node) { - if (this.match(5)) { - if (!node.specifiers) node.specifiers = []; - const isTypeExport = node.exportKind === "type"; - node.specifiers.push(...this.parseExportSpecifiers(isTypeExport)); - node.source = null; - node.declaration = null; - if (this.hasPlugin("importAssertions")) { - node.assertions = []; - } - return true; - } - return false; - } - maybeParseExportDeclaration(node) { - if (this.shouldParseExportDeclaration()) { - node.specifiers = []; - node.source = null; - if (this.hasPlugin("importAssertions")) { - node.assertions = []; - } - node.declaration = this.parseExportDeclaration(node); - return true; - } - return false; - } - isAsyncFunction() { - if (!this.isContextual(95)) return false; - const next = this.nextTokenStart(); - return !lineBreak.test(this.input.slice(this.state.pos, next)) && this.isUnparsedContextual(next, "function"); - } - parseExportDefaultExpression() { - const expr = this.startNode(); - if (this.match(68)) { - this.next(); - return this.parseFunction(expr, ParseFunctionFlag.Declaration | ParseFunctionFlag.NullableId); - } else if (this.isAsyncFunction()) { - this.next(); - this.next(); - return this.parseFunction(expr, ParseFunctionFlag.Declaration | ParseFunctionFlag.NullableId | ParseFunctionFlag.Async); - } - if (this.match(80)) { - return this.parseClass(expr, true, true); - } - if (this.match(26)) { - if (this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === true) { - this.raise(Errors.DecoratorBeforeExport, { - at: this.state.startLoc - }); - } - return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false), this.startNode()), true, true); - } - if (this.match(75) || this.match(74) || this.isLet()) { - throw this.raise(Errors.UnsupportedDefaultExport, { - at: this.state.startLoc - }); - } - const res = this.parseMaybeAssignAllowIn(); - this.semicolon(); - return res; - } - parseExportDeclaration(node) { - if (this.match(80)) { - const node = this.parseClass(this.startNode(), true, false); - return node; - } - return this.parseStatementListItem(); - } - isExportDefaultSpecifier() { - const { - type - } = this.state; - if (tokenIsIdentifier(type)) { - if (type === 95 && !this.state.containsEsc || type === 99) { - return false; - } - if ((type === 128 || type === 127) && !this.state.containsEsc) { - const { - type: nextType - } = this.lookahead(); - if (tokenIsIdentifier(nextType) && nextType !== 97 || nextType === 5) { - this.expectOnePlugin(["flow", "typescript"]); - return false; - } - } - } else if (!this.match(65)) { - return false; - } - const next = this.nextTokenStart(); - const hasFrom = this.isUnparsedContextual(next, "from"); - if (this.input.charCodeAt(next) === 44 || tokenIsIdentifier(this.state.type) && hasFrom) { - return true; - } - if (this.match(65) && hasFrom) { - const nextAfterFrom = this.input.charCodeAt(this.nextTokenStartSince(next + 4)); - return nextAfterFrom === 34 || nextAfterFrom === 39; - } - return false; - } - parseExportFrom(node, expect) { - if (this.eatContextual(97)) { - node.source = this.parseImportSource(); - this.checkExport(node); - const assertions = this.maybeParseImportAssertions(); - if (assertions) { - node.assertions = assertions; - this.checkJSONModuleImport(node); - } - } else if (expect) { - this.unexpected(); - } - this.semicolon(); - } - shouldParseExportDeclaration() { - const { - type - } = this.state; - if (type === 26) { - this.expectOnePlugin(["decorators", "decorators-legacy"]); - if (this.hasPlugin("decorators")) { - if (this.getPluginOption("decorators", "decoratorsBeforeExport") === true) { - this.raise(Errors.DecoratorBeforeExport, { - at: this.state.startLoc - }); - } - return true; - } - } - return type === 74 || type === 75 || type === 68 || type === 80 || this.isLet() || this.isAsyncFunction(); - } - checkExport(node, checkNames, isDefault, isFrom) { - if (checkNames) { - if (isDefault) { - this.checkDuplicateExports(node, "default"); - if (this.hasPlugin("exportDefaultFrom")) { - var _declaration$extra; - const declaration = node.declaration; - if (declaration.type === "Identifier" && declaration.name === "from" && declaration.end - declaration.start === 4 && !((_declaration$extra = declaration.extra) != null && _declaration$extra.parenthesized)) { - this.raise(Errors.ExportDefaultFromAsIdentifier, { - at: declaration - }); - } - } - } else if (node.specifiers && node.specifiers.length) { - for (const specifier of node.specifiers) { - const { - exported - } = specifier; - const exportName = exported.type === "Identifier" ? exported.name : exported.value; - this.checkDuplicateExports(specifier, exportName); - if (!isFrom && specifier.local) { - const { - local - } = specifier; - if (local.type !== "Identifier") { - this.raise(Errors.ExportBindingIsString, { - at: specifier, - localName: local.value, - exportName - }); - } else { - this.checkReservedWord(local.name, local.loc.start, true, false); - this.scope.checkLocalExport(local); - } - } - } - } else if (node.declaration) { - if (node.declaration.type === "FunctionDeclaration" || node.declaration.type === "ClassDeclaration") { - const id = node.declaration.id; - if (!id) throw new Error("Assertion failure"); - this.checkDuplicateExports(node, id.name); - } else if (node.declaration.type === "VariableDeclaration") { - for (const declaration of node.declaration.declarations) { - this.checkDeclaration(declaration.id); - } - } - } - } - } - checkDeclaration(node) { - if (node.type === "Identifier") { - this.checkDuplicateExports(node, node.name); - } else if (node.type === "ObjectPattern") { - for (const prop of node.properties) { - this.checkDeclaration(prop); - } - } else if (node.type === "ArrayPattern") { - for (const elem of node.elements) { - if (elem) { - this.checkDeclaration(elem); - } - } - } else if (node.type === "ObjectProperty") { - this.checkDeclaration(node.value); - } else if (node.type === "RestElement") { - this.checkDeclaration(node.argument); - } else if (node.type === "AssignmentPattern") { - this.checkDeclaration(node.left); - } - } - checkDuplicateExports(node, exportName) { - if (this.exportedIdentifiers.has(exportName)) { - if (exportName === "default") { - this.raise(Errors.DuplicateDefaultExport, { - at: node - }); - } else { - this.raise(Errors.DuplicateExport, { - at: node, - exportName - }); - } - } - this.exportedIdentifiers.add(exportName); - } - parseExportSpecifiers(isInTypeExport) { - const nodes = []; - let first = true; - this.expect(5); - while (!this.eat(8)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.eat(8)) break; - } - const isMaybeTypeOnly = this.isContextual(128); - const isString = this.match(131); - const node = this.startNode(); - node.local = this.parseModuleExportName(); - nodes.push(this.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly)); - } - return nodes; - } - parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly) { - if (this.eatContextual(93)) { - node.exported = this.parseModuleExportName(); - } else if (isString) { - node.exported = cloneStringLiteral(node.local); - } else if (!node.exported) { - node.exported = cloneIdentifier(node.local); - } - return this.finishNode(node, "ExportSpecifier"); - } - parseModuleExportName() { - if (this.match(131)) { - const result = this.parseStringLiteral(this.state.value); - const surrogate = result.value.match(loneSurrogate); - if (surrogate) { - this.raise(Errors.ModuleExportNameHasLoneSurrogate, { - at: result, - surrogateCharCode: surrogate[0].charCodeAt(0) - }); - } - return result; - } - return this.parseIdentifier(true); - } - isJSONModuleImport(node) { - if (node.assertions != null) { - return node.assertions.some(({ - key, - value - }) => { - return value.value === "json" && (key.type === "Identifier" ? key.name === "type" : key.value === "type"); - }); - } - return false; - } - checkImportReflection(node) { - if (node.module) { - var _node$assertions; - if (node.specifiers.length !== 1 || node.specifiers[0].type !== "ImportDefaultSpecifier") { - this.raise(Errors.ImportReflectionNotBinding, { - at: node.specifiers[0].loc.start - }); - } - if (((_node$assertions = node.assertions) == null ? void 0 : _node$assertions.length) > 0) { - this.raise(Errors.ImportReflectionHasAssertion, { - at: node.specifiers[0].loc.start - }); - } - } - } - checkJSONModuleImport(node) { - if (this.isJSONModuleImport(node) && node.type !== "ExportAllDeclaration") { - const { - specifiers - } = node; - if (specifiers != null) { - const nonDefaultNamedSpecifier = specifiers.find(specifier => { - let imported; - if (specifier.type === "ExportSpecifier") { - imported = specifier.local; - } else if (specifier.type === "ImportSpecifier") { - imported = specifier.imported; - } - if (imported !== undefined) { - return imported.type === "Identifier" ? imported.name !== "default" : imported.value !== "default"; - } - }); - if (nonDefaultNamedSpecifier !== undefined) { - this.raise(Errors.ImportJSONBindingNotDefault, { - at: nonDefaultNamedSpecifier.loc.start - }); - } - } - } - } - parseMaybeImportReflection(node) { - let isImportReflection = false; - if (this.isContextual(125)) { - const lookahead = this.lookahead(); - const nextType = lookahead.type; - if (tokenIsIdentifier(nextType)) { - if (nextType !== 97) { - isImportReflection = true; - } else { - const nextNextTokenFirstChar = this.input.charCodeAt(this.nextTokenStartSince(lookahead.end)); - if (nextNextTokenFirstChar === 102) { - isImportReflection = true; - } - } - } else if (nextType !== 12) { - isImportReflection = true; - } - } - if (isImportReflection) { - this.expectPlugin("importReflection"); - this.next(); - node.module = true; - } else if (this.hasPlugin("importReflection")) { - node.module = false; - } - } - parseImport(node) { - node.specifiers = []; - if (!this.match(131)) { - this.parseMaybeImportReflection(node); - const hasDefault = this.maybeParseDefaultImportSpecifier(node); - const parseNext = !hasDefault || this.eat(12); - const hasStar = parseNext && this.maybeParseStarImportSpecifier(node); - if (parseNext && !hasStar) this.parseNamedImportSpecifiers(node); - this.expectContextual(97); - } - node.source = this.parseImportSource(); - const assertions = this.maybeParseImportAssertions(); - if (assertions) { - node.assertions = assertions; - } else { - const attributes = this.maybeParseModuleAttributes(); - if (attributes) { - node.attributes = attributes; - } - } - this.checkImportReflection(node); - this.checkJSONModuleImport(node); - this.semicolon(); - return this.finishNode(node, "ImportDeclaration"); - } - parseImportSource() { - if (!this.match(131)) this.unexpected(); - return this.parseExprAtom(); - } - shouldParseDefaultImport(node) { - return tokenIsIdentifier(this.state.type); - } - parseImportSpecifierLocal(node, specifier, type) { - specifier.local = this.parseIdentifier(); - node.specifiers.push(this.finishImportSpecifier(specifier, type)); - } - finishImportSpecifier(specifier, type, bindingType = BIND_LEXICAL) { - this.checkLVal(specifier.local, { - in: { - type - }, - binding: bindingType - }); - return this.finishNode(specifier, type); - } - parseAssertEntries() { - const attrs = []; - const attrNames = new Set(); - do { - if (this.match(8)) { - break; - } - const node = this.startNode(); - const keyName = this.state.value; - if (attrNames.has(keyName)) { - this.raise(Errors.ModuleAttributesWithDuplicateKeys, { - at: this.state.startLoc, - key: keyName - }); - } - attrNames.add(keyName); - if (this.match(131)) { - node.key = this.parseStringLiteral(keyName); - } else { - node.key = this.parseIdentifier(true); - } - this.expect(14); - if (!this.match(131)) { - throw this.raise(Errors.ModuleAttributeInvalidValue, { - at: this.state.startLoc - }); - } - node.value = this.parseStringLiteral(this.state.value); - attrs.push(this.finishNode(node, "ImportAttribute")); - } while (this.eat(12)); - return attrs; - } - maybeParseModuleAttributes() { - if (this.match(76) && !this.hasPrecedingLineBreak()) { - this.expectPlugin("moduleAttributes"); - this.next(); - } else { - if (this.hasPlugin("moduleAttributes")) return []; - return null; - } - const attrs = []; - const attributes = new Set(); - do { - const node = this.startNode(); - node.key = this.parseIdentifier(true); - if (node.key.name !== "type") { - this.raise(Errors.ModuleAttributeDifferentFromType, { - at: node.key - }); - } - if (attributes.has(node.key.name)) { - this.raise(Errors.ModuleAttributesWithDuplicateKeys, { - at: node.key, - key: node.key.name - }); - } - attributes.add(node.key.name); - this.expect(14); - if (!this.match(131)) { - throw this.raise(Errors.ModuleAttributeInvalidValue, { - at: this.state.startLoc - }); - } - node.value = this.parseStringLiteral(this.state.value); - this.finishNode(node, "ImportAttribute"); - attrs.push(node); - } while (this.eat(12)); - return attrs; - } - maybeParseImportAssertions() { - if (this.isContextual(94) && !this.hasPrecedingLineBreak()) { - this.expectPlugin("importAssertions"); - this.next(); - } else { - if (this.hasPlugin("importAssertions")) return []; - return null; - } - this.eat(5); - const attrs = this.parseAssertEntries(); - this.eat(8); - return attrs; - } - maybeParseDefaultImportSpecifier(node) { - if (this.shouldParseDefaultImport(node)) { - this.parseImportSpecifierLocal(node, this.startNode(), "ImportDefaultSpecifier"); - return true; - } - return false; - } - maybeParseStarImportSpecifier(node) { - if (this.match(55)) { - const specifier = this.startNode(); - this.next(); - this.expectContextual(93); - this.parseImportSpecifierLocal(node, specifier, "ImportNamespaceSpecifier"); - return true; - } - return false; - } - parseNamedImportSpecifiers(node) { - let first = true; - this.expect(5); - while (!this.eat(8)) { - if (first) { - first = false; - } else { - if (this.eat(14)) { - throw this.raise(Errors.DestructureNamedImport, { - at: this.state.startLoc - }); - } - this.expect(12); - if (this.eat(8)) break; - } - const specifier = this.startNode(); - const importedIsString = this.match(131); - const isMaybeTypeOnly = this.isContextual(128); - specifier.imported = this.parseModuleExportName(); - const importSpecifier = this.parseImportSpecifier(specifier, importedIsString, node.importKind === "type" || node.importKind === "typeof", isMaybeTypeOnly, undefined); - node.specifiers.push(importSpecifier); - } - } - parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { - if (this.eatContextual(93)) { - specifier.local = this.parseIdentifier(); - } else { - const { - imported - } = specifier; - if (importedIsString) { - throw this.raise(Errors.ImportBindingIsString, { - at: specifier, - importName: imported.value - }); - } - this.checkReservedWord(imported.name, specifier.loc.start, true, true); - if (!specifier.local) { - specifier.local = cloneIdentifier(imported); - } - } - return this.finishImportSpecifier(specifier, "ImportSpecifier", bindingType); - } - isThisParam(param) { - return param.type === "Identifier" && param.name === "this"; - } -} - -class Parser extends StatementParser { - constructor(options, input) { - options = getOptions(options); - super(options, input); - this.options = options; - this.initializeScopes(); - this.plugins = pluginsMap(this.options.plugins); - this.filename = options.sourceFilename; - } - getScopeHandler() { - return ScopeHandler; - } - parse() { - this.enterInitialScopes(); - const file = this.startNode(); - const program = this.startNode(); - this.nextToken(); - file.errors = null; - this.parseTopLevel(file, program); - file.errors = this.state.errors; - return file; - } -} -function pluginsMap(plugins) { - const pluginMap = new Map(); - for (const plugin of plugins) { - const [name, options] = Array.isArray(plugin) ? plugin : [plugin, {}]; - if (!pluginMap.has(name)) pluginMap.set(name, options || {}); - } - return pluginMap; -} - -function parse(input, options) { - var _options; - if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") { - options = Object.assign({}, options); - try { - options.sourceType = "module"; - const parser = getParser(options, input); - const ast = parser.parse(); - if (parser.sawUnambiguousESM) { - return ast; - } - if (parser.ambiguousScriptDifferentAst) { - try { - options.sourceType = "script"; - return getParser(options, input).parse(); - } catch (_unused) {} - } else { - ast.program.sourceType = "script"; - } - return ast; - } catch (moduleError) { - try { - options.sourceType = "script"; - return getParser(options, input).parse(); - } catch (_unused2) {} - throw moduleError; - } - } else { - return getParser(options, input).parse(); - } -} -function parseExpression(input, options) { - const parser = getParser(options, input); - if (parser.options.strictMode) { - parser.state.strict = true; - } - return parser.getExpression(); -} -function generateExportedTokenTypes(internalTokenTypes) { - const tokenTypes = {}; - for (const typeName of Object.keys(internalTokenTypes)) { - tokenTypes[typeName] = getExportedToken(internalTokenTypes[typeName]); - } - return tokenTypes; -} -const tokTypes = generateExportedTokenTypes(tt); -function getParser(options, input) { - let cls = Parser; - if (options != null && options.plugins) { - validatePlugins(options.plugins); - cls = getParserClass(options.plugins); - } - return new cls(options, input); -} -const parserClassCache = {}; -function getParserClass(pluginsFromOptions) { - const pluginList = mixinPluginNames.filter(name => hasPlugin(pluginsFromOptions, name)); - const key = pluginList.join("/"); - let cls = parserClassCache[key]; - if (!cls) { - cls = Parser; - for (const plugin of pluginList) { - cls = mixinPlugins[plugin](cls); - } - parserClassCache[key] = cls; - } - return cls; -} - -exports.parse = parse; -exports.parseExpression = parseExpression; -exports.tokTypes = tokTypes; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 42973: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} -class Position { - constructor(line, col, index) { - this.line = void 0; - this.column = void 0; - this.index = void 0; - this.line = line; - this.column = col; - this.index = index; - } -} -class SourceLocation { - constructor(start, end) { - this.start = void 0; - this.end = void 0; - this.filename = void 0; - this.identifierName = void 0; - this.start = start; - this.end = end; - } -} -function createPositionWithColumnOffset(position, columnOffset) { - const { - line, - column, - index - } = position; - return new Position(line, column + columnOffset, index + columnOffset); -} -var ParseErrorCode = { - SyntaxError: "BABEL_PARSER_SYNTAX_ERROR", - SourceTypeModuleError: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED" -}; -const reflect = (keys, last = keys.length - 1) => ({ - get() { - return keys.reduce((object, key) => object[key], this); - }, - set(value) { - keys.reduce((item, key, i) => i === last ? item[key] = value : item[key], this); - } -}); -const instantiate = (constructor, properties, descriptors) => Object.keys(descriptors).map(key => [key, descriptors[key]]).filter(([, descriptor]) => !!descriptor).map(([key, descriptor]) => [key, typeof descriptor === "function" ? { - value: descriptor, - enumerable: false -} : typeof descriptor.reflect === "string" ? Object.assign({}, descriptor, reflect(descriptor.reflect.split("."))) : descriptor]).reduce((instance, [key, descriptor]) => Object.defineProperty(instance, key, Object.assign({ - configurable: true -}, descriptor)), Object.assign(new constructor(), properties)); -var ModuleErrors = { - ImportMetaOutsideModule: { - message: `import.meta may appear only with 'sourceType: "module"'`, - code: ParseErrorCode.SourceTypeModuleError - }, - ImportOutsideModule: { - message: `'import' and 'export' may appear only with 'sourceType: "module"'`, - code: ParseErrorCode.SourceTypeModuleError - } -}; -const NodeDescriptions = { - ArrayPattern: "array destructuring pattern", - AssignmentExpression: "assignment expression", - AssignmentPattern: "assignment expression", - ArrowFunctionExpression: "arrow function expression", - ConditionalExpression: "conditional expression", - CatchClause: "catch clause", - ForOfStatement: "for-of statement", - ForInStatement: "for-in statement", - ForStatement: "for-loop", - FormalParameters: "function parameter list", - Identifier: "identifier", - ImportSpecifier: "import specifier", - ImportDefaultSpecifier: "import default specifier", - ImportNamespaceSpecifier: "import namespace specifier", - ObjectPattern: "object destructuring pattern", - ParenthesizedExpression: "parenthesized expression", - RestElement: "rest element", - UpdateExpression: { - true: "prefix operation", - false: "postfix operation" - }, - VariableDeclarator: "variable declaration", - YieldExpression: "yield expression" -}; -const toNodeDescription = ({ - type, - prefix -}) => type === "UpdateExpression" ? NodeDescriptions.UpdateExpression[String(prefix)] : NodeDescriptions[type]; -var StandardErrors = { - AccessorIsGenerator: ({ - kind - }) => `A ${kind}ter cannot be a generator.`, - ArgumentsInClass: "'arguments' is only allowed in functions and class methods.", - AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.", - AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.", - AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.", - AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.", - AwaitUsingNotInAsyncContext: "'await using' is only allowed within async functions and at the top levels of modules.", - AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.", - AwaitNotInAsyncFunction: "'await' is only allowed within async functions.", - BadGetterArity: "A 'get' accessor must not have any formal parameters.", - BadSetterArity: "A 'set' accessor must have exactly one formal parameter.", - BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.", - ConstructorClassField: "Classes may not have a field named 'constructor'.", - ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.", - ConstructorIsAccessor: "Class constructor may not be an accessor.", - ConstructorIsAsync: "Constructor can't be an async function.", - ConstructorIsGenerator: "Constructor can't be a generator.", - DeclarationMissingInitializer: ({ - kind - }) => `Missing initializer in ${kind} declaration.`, - DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.", - DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.", - DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.", - DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?", - DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.", - DecoratorSemicolon: "Decorators must not be followed by a semicolon.", - DecoratorStaticBlock: "Decorators can't be used with a static block.", - DeletePrivateField: "Deleting a private field is not allowed.", - DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.", - DuplicateConstructor: "Duplicate constructor in the same class.", - DuplicateDefaultExport: "Only one default export allowed per module.", - DuplicateExport: ({ - exportName - }) => `\`${exportName}\` has already been exported. Exported identifiers must be unique.`, - DuplicateProto: "Redefinition of __proto__ property.", - DuplicateRegExpFlags: "Duplicate regular expression flag.", - ElementAfterRest: "Rest element must be last element.", - EscapedCharNotAnIdentifier: "Invalid Unicode escape.", - ExportBindingIsString: ({ - localName, - exportName - }) => `A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${localName}' as '${exportName}' } from 'some-module'\`?`, - ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.", - ForInOfLoopInitializer: ({ - type - }) => `'${type === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, - ForInUsing: "For-in loop may not start with 'using' declaration.", - ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.", - ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.", - GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.", - IllegalBreakContinue: ({ - type - }) => `Unsyntactic ${type === "BreakStatement" ? "break" : "continue"}.`, - IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.", - IllegalReturn: "'return' outside of function.", - ImportAttributesUseAssert: "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.", - ImportBindingIsString: ({ - importName - }) => `A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${importName}" as foo }\`?`, - ImportCallArgumentTrailingComma: "Trailing comma is disallowed inside import(...) arguments.", - ImportCallArity: ({ - maxArgumentCount - }) => `\`import()\` requires exactly ${maxArgumentCount === 1 ? "one argument" : "one or two arguments"}.`, - ImportCallNotNewExpression: "Cannot use new with import(...).", - ImportCallSpreadArgument: "`...` is not allowed in `import()`.", - ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.", - ImportReflectionHasAssertion: "`import module x` cannot have assertions.", - ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.', - IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.", - InvalidBigIntLiteral: "Invalid BigIntLiteral.", - InvalidCodePoint: "Code point out of bounds.", - InvalidCoverInitializedName: "Invalid shorthand property initializer.", - InvalidDecimal: "Invalid decimal.", - InvalidDigit: ({ - radix - }) => `Expected number in radix ${radix}.`, - InvalidEscapeSequence: "Bad character escape sequence.", - InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", - InvalidEscapedReservedWord: ({ - reservedWord - }) => `Escape sequence in keyword ${reservedWord}.`, - InvalidIdentifier: ({ - identifierName - }) => `Invalid identifier ${identifierName}.`, - InvalidLhs: ({ - ancestor - }) => `Invalid left-hand side in ${toNodeDescription(ancestor)}.`, - InvalidLhsBinding: ({ - ancestor - }) => `Binding invalid left-hand side in ${toNodeDescription(ancestor)}.`, - InvalidNumber: "Invalid number.", - InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", - InvalidOrUnexpectedToken: ({ - unexpected - }) => `Unexpected character '${unexpected}'.`, - InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", - InvalidPrivateFieldResolution: ({ - identifierName - }) => `Private name #${identifierName} is not defined.`, - InvalidPropertyBindingPattern: "Binding member expression.", - InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.", - InvalidRestAssignmentPattern: "Invalid rest operator's argument.", - LabelRedeclaration: ({ - labelName - }) => `Label '${labelName}' is already declared.`, - LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations.", - LineTerminatorBeforeArrow: "No line break is allowed before '=>'.", - MalformedRegExpFlags: "Invalid regular expression flag.", - MissingClassName: "A class name is required.", - MissingEqInAssignment: "Only '=' operator can be used for specifying default value.", - MissingSemicolon: "Missing semicolon.", - MissingPlugin: ({ - missingPlugin - }) => `This experimental syntax requires enabling the parser plugin: ${missingPlugin.map(name => JSON.stringify(name)).join(", ")}.`, - MissingOneOfPlugins: ({ - missingPlugin - }) => `This experimental syntax requires enabling one of the following parser plugin(s): ${missingPlugin.map(name => JSON.stringify(name)).join(", ")}.`, - MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.", - MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.", - ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.", - ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.", - ModuleAttributesWithDuplicateKeys: ({ - key - }) => `Duplicate key "${key}" is not allowed in module attributes.`, - ModuleExportNameHasLoneSurrogate: ({ - surrogateCharCode - }) => `An export name cannot include a lone surrogate, found '\\u${surrogateCharCode.toString(16)}'.`, - ModuleExportUndefined: ({ - localName - }) => `Export '${localName}' is not defined.`, - MultipleDefaultsInSwitch: "Multiple default clauses.", - NewlineAfterThrow: "Illegal newline after throw.", - NoCatchOrFinally: "Missing catch or finally clause.", - NumberIdentifier: "Identifier directly after number.", - NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.", - ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.", - OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.", - OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.", - OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.", - ParamDupe: "Argument name clash.", - PatternHasAccessor: "Object pattern can't contain getter or setter.", - PatternHasMethod: "Object pattern can't contain methods.", - PrivateInExpectedIn: ({ - identifierName - }) => `Private names are only allowed in property accesses (\`obj.#${identifierName}\`) or in \`in\` expressions (\`#${identifierName} in obj\`).`, - PrivateNameRedeclaration: ({ - identifierName - }) => `Duplicate private name #${identifierName}.`, - RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", - RecordNoProto: "'__proto__' is not allowed in Record expressions.", - RestTrailingComma: "Unexpected trailing comma after rest element.", - SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.", - SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.", - StaticPrototype: "Classes may not have static property named prototype.", - SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?", - SuperPrivateField: "Private fields can't be accessed on super.", - TrailingDecorator: "Decorators must be attached to a class element.", - TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", - TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", - UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.", - UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.', - UnexpectedDigitAfterHash: "Unexpected digit after hash token.", - UnexpectedImportExport: "'import' and 'export' may only appear at the top level.", - UnexpectedKeyword: ({ - keyword - }) => `Unexpected keyword '${keyword}'.`, - UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.", - UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.", - UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.", - UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.", - UnexpectedPrivateField: "Unexpected private name.", - UnexpectedReservedWord: ({ - reservedWord - }) => `Unexpected reserved word '${reservedWord}'.`, - UnexpectedSuper: "'super' is only allowed in object methods and classes.", - UnexpectedToken: ({ - expected, - unexpected - }) => `Unexpected token${unexpected ? ` '${unexpected}'.` : ""}${expected ? `, expected "${expected}"` : ""}`, - UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.", - UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script`.", - UnsupportedBind: "Binding should be performed on object property.", - UnsupportedDecoratorExport: "A decorated export must export a class declaration.", - UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.", - UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.", - UnsupportedMetaProperty: ({ - target, - onlyValidPropertyName - }) => `The only valid meta property for ${target} is ${target}.${onlyValidPropertyName}.`, - UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.", - UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.", - UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).", - UnterminatedComment: "Unterminated comment.", - UnterminatedRegExp: "Unterminated regular expression.", - UnterminatedString: "Unterminated string constant.", - UnterminatedTemplate: "Unterminated template.", - UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.", - VarRedeclaration: ({ - identifierName - }) => `Identifier '${identifierName}' has already been declared.`, - YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.", - YieldInParameter: "Yield expression is not allowed in formal parameters.", - ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0." -}; -var StrictModeErrors = { - StrictDelete: "Deleting local variable in strict mode.", - StrictEvalArguments: ({ - referenceName - }) => `Assigning to '${referenceName}' in strict mode.`, - StrictEvalArgumentsBinding: ({ - bindingName - }) => `Binding '${bindingName}' in strict mode.`, - StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.", - StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.", - StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.", - StrictWith: "'with' in strict mode." -}; -const UnparenthesizedPipeBodyDescriptions = new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]); -var PipelineOperatorErrors = { - PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.", - PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.', - PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.", - PipeTopicUnconfiguredToken: ({ - token - }) => `Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`, - PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.", - PipeUnparenthesizedBody: ({ - type - }) => `Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({ - type - })}; please wrap it in parentheses.`, - PipelineBodyNoArrow: 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.', - PipelineBodySequenceExpression: "Pipeline body may not be a comma-separated sequence expression.", - PipelineHeadSequenceExpression: "Pipeline head should not be a comma-separated sequence expression.", - PipelineTopicUnused: "Pipeline is in topic style but does not use topic reference.", - PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.", - PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.' -}; -const _excluded$1 = ["toMessage"], - _excluded2$1 = ["message"]; -function toParseErrorConstructor(_ref) { - let { - toMessage - } = _ref, - properties = _objectWithoutPropertiesLoose(_ref, _excluded$1); - return function constructor({ - loc, - details - }) { - return instantiate(SyntaxError, Object.assign({}, properties, { - loc - }), { - clone(overrides = {}) { - const loc = overrides.loc || {}; - return constructor({ - loc: new Position("line" in loc ? loc.line : this.loc.line, "column" in loc ? loc.column : this.loc.column, "index" in loc ? loc.index : this.loc.index), - details: Object.assign({}, this.details, overrides.details) - }); - }, - details: { - value: details, - enumerable: false - }, - message: { - get() { - return `${toMessage(this.details)} (${this.loc.line}:${this.loc.column})`; - }, - set(value) { - Object.defineProperty(this, "message", { - value - }); - } - }, - pos: { - reflect: "loc.index", - enumerable: true - }, - missingPlugin: "missingPlugin" in details && { - reflect: "details.missingPlugin", - enumerable: true - } - }); - }; -} -function ParseErrorEnum(argument, syntaxPlugin) { - if (Array.isArray(argument)) { - return parseErrorTemplates => ParseErrorEnum(parseErrorTemplates, argument[0]); - } - const ParseErrorConstructors = {}; - for (const reasonCode of Object.keys(argument)) { - const template = argument[reasonCode]; - const _ref2 = typeof template === "string" ? { - message: () => template - } : typeof template === "function" ? { - message: template - } : template, - { - message - } = _ref2, - rest = _objectWithoutPropertiesLoose(_ref2, _excluded2$1); - const toMessage = typeof message === "string" ? () => message : message; - ParseErrorConstructors[reasonCode] = toParseErrorConstructor(Object.assign({ - code: ParseErrorCode.SyntaxError, - reasonCode, - toMessage - }, syntaxPlugin ? { - syntaxPlugin - } : {}, rest)); - } - return ParseErrorConstructors; -} -const Errors = Object.assign({}, ParseErrorEnum(ModuleErrors), ParseErrorEnum(StandardErrors), ParseErrorEnum(StrictModeErrors), ParseErrorEnum`pipelineOperator`(PipelineOperatorErrors)); -const { - defineProperty -} = Object; -const toUnenumerable = (object, key) => defineProperty(object, key, { - enumerable: false, - value: object[key] -}); -function toESTreeLocation(node) { - node.loc.start && toUnenumerable(node.loc.start, "index"); - node.loc.end && toUnenumerable(node.loc.end, "index"); - return node; -} -var estree = superClass => class ESTreeParserMixin extends superClass { - parse() { - const file = toESTreeLocation(super.parse()); - if (this.options.tokens) { - file.tokens = file.tokens.map(toESTreeLocation); - } - return file; - } - parseRegExpLiteral({ - pattern, - flags - }) { - let regex = null; - try { - regex = new RegExp(pattern, flags); - } catch (e) {} - const node = this.estreeParseLiteral(regex); - node.regex = { - pattern, - flags - }; - return node; - } - parseBigIntLiteral(value) { - let bigInt; - try { - bigInt = BigInt(value); - } catch (_unused) { - bigInt = null; - } - const node = this.estreeParseLiteral(bigInt); - node.bigint = String(node.value || value); - return node; - } - parseDecimalLiteral(value) { - const decimal = null; - const node = this.estreeParseLiteral(decimal); - node.decimal = String(node.value || value); - return node; - } - estreeParseLiteral(value) { - return this.parseLiteral(value, "Literal"); - } - parseStringLiteral(value) { - return this.estreeParseLiteral(value); - } - parseNumericLiteral(value) { - return this.estreeParseLiteral(value); - } - parseNullLiteral() { - return this.estreeParseLiteral(null); - } - parseBooleanLiteral(value) { - return this.estreeParseLiteral(value); - } - directiveToStmt(directive) { - const expression = directive.value; - delete directive.value; - expression.type = "Literal"; - expression.raw = expression.extra.raw; - expression.value = expression.extra.expressionValue; - const stmt = directive; - stmt.type = "ExpressionStatement"; - stmt.expression = expression; - stmt.directive = expression.extra.rawValue; - delete expression.extra; - return stmt; - } - initFunction(node, isAsync) { - super.initFunction(node, isAsync); - node.expression = false; - } - checkDeclaration(node) { - if (node != null && this.isObjectProperty(node)) { - this.checkDeclaration(node.value); - } else { - super.checkDeclaration(node); - } - } - getObjectOrClassMethodParams(method) { - return method.value.params; - } - isValidDirective(stmt) { - var _stmt$expression$extr; - return stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && typeof stmt.expression.value === "string" && !((_stmt$expression$extr = stmt.expression.extra) != null && _stmt$expression$extr.parenthesized); - } - parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) { - super.parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse); - const directiveStatements = node.directives.map(d => this.directiveToStmt(d)); - node.body = directiveStatements.concat(node.body); - delete node.directives; - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true); - if (method.typeParameters) { - method.value.typeParameters = method.typeParameters; - delete method.typeParameters; - } - classBody.body.push(method); - } - parsePrivateName() { - const node = super.parsePrivateName(); - { - if (!this.getPluginOption("estree", "classFeatures")) { - return node; - } - } - return this.convertPrivateNameToPrivateIdentifier(node); - } - convertPrivateNameToPrivateIdentifier(node) { - const name = super.getPrivateNameSV(node); - node = node; - delete node.id; - node.name = name; - node.type = "PrivateIdentifier"; - return node; - } - isPrivateName(node) { - { - if (!this.getPluginOption("estree", "classFeatures")) { - return super.isPrivateName(node); - } - } - return node.type === "PrivateIdentifier"; - } - getPrivateNameSV(node) { - { - if (!this.getPluginOption("estree", "classFeatures")) { - return super.getPrivateNameSV(node); - } - } - return node.name; - } - parseLiteral(value, type) { - const node = super.parseLiteral(value, type); - node.raw = node.extra.raw; - delete node.extra; - return node; - } - parseFunctionBody(node, allowExpression, isMethod = false) { - super.parseFunctionBody(node, allowExpression, isMethod); - node.expression = node.body.type !== "BlockStatement"; - } - parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) { - let funcNode = this.startNode(); - funcNode.kind = node.kind; - funcNode = super.parseMethod(funcNode, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope); - funcNode.type = "FunctionExpression"; - delete funcNode.kind; - node.value = funcNode; - if (type === "ClassPrivateMethod") { - node.computed = false; - } - return this.finishNode(node, "MethodDefinition"); - } - parseClassProperty(...args) { - const propertyNode = super.parseClassProperty(...args); - { - if (!this.getPluginOption("estree", "classFeatures")) { - return propertyNode; - } - } - propertyNode.type = "PropertyDefinition"; - return propertyNode; - } - parseClassPrivateProperty(...args) { - const propertyNode = super.parseClassPrivateProperty(...args); - { - if (!this.getPluginOption("estree", "classFeatures")) { - return propertyNode; - } - } - propertyNode.type = "PropertyDefinition"; - propertyNode.computed = false; - return propertyNode; - } - parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) { - const node = super.parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor); - if (node) { - node.type = "Property"; - if (node.kind === "method") { - node.kind = "init"; - } - node.shorthand = false; - } - return node; - } - parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors) { - const node = super.parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors); - if (node) { - node.kind = "init"; - node.type = "Property"; - } - return node; - } - isValidLVal(type, isUnparenthesizedInAssign, binding) { - return type === "Property" ? "value" : super.isValidLVal(type, isUnparenthesizedInAssign, binding); - } - isAssignable(node, isBinding) { - if (node != null && this.isObjectProperty(node)) { - return this.isAssignable(node.value, isBinding); - } - return super.isAssignable(node, isBinding); - } - toAssignable(node, isLHS = false) { - if (node != null && this.isObjectProperty(node)) { - const { - key, - value - } = node; - if (this.isPrivateName(key)) { - this.classScope.usePrivateName(this.getPrivateNameSV(key), key.loc.start); - } - this.toAssignable(value, isLHS); - } else { - super.toAssignable(node, isLHS); - } - } - toAssignableObjectExpressionProp(prop, isLast, isLHS) { - if (prop.kind === "get" || prop.kind === "set") { - this.raise(Errors.PatternHasAccessor, { - at: prop.key - }); - } else if (prop.method) { - this.raise(Errors.PatternHasMethod, { - at: prop.key - }); - } else { - super.toAssignableObjectExpressionProp(prop, isLast, isLHS); - } - } - finishCallExpression(unfinished, optional) { - const node = super.finishCallExpression(unfinished, optional); - if (node.callee.type === "Import") { - node.type = "ImportExpression"; - node.source = node.arguments[0]; - if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) { - var _node$arguments$; - node.attributes = (_node$arguments$ = node.arguments[1]) != null ? _node$arguments$ : null; - } - delete node.arguments; - delete node.callee; - } - return node; - } - toReferencedArguments(node) { - if (node.type === "ImportExpression") { - return; - } - super.toReferencedArguments(node); - } - parseExport(unfinished, decorators) { - const exportStartLoc = this.state.lastTokStartLoc; - const node = super.parseExport(unfinished, decorators); - switch (node.type) { - case "ExportAllDeclaration": - node.exported = null; - break; - case "ExportNamedDeclaration": - if (node.specifiers.length === 1 && node.specifiers[0].type === "ExportNamespaceSpecifier") { - node.type = "ExportAllDeclaration"; - node.exported = node.specifiers[0].exported; - delete node.specifiers; - } - case "ExportDefaultDeclaration": - { - var _declaration$decorato; - const { - declaration - } = node; - if ((declaration == null ? void 0 : declaration.type) === "ClassDeclaration" && ((_declaration$decorato = declaration.decorators) == null ? void 0 : _declaration$decorato.length) > 0 && declaration.start === node.start) { - this.resetStartLocation(node, exportStartLoc); - } - } - break; - } - return node; - } - parseSubscript(base, startLoc, noCalls, state) { - const node = super.parseSubscript(base, startLoc, noCalls, state); - if (state.optionalChainMember) { - if (node.type === "OptionalMemberExpression" || node.type === "OptionalCallExpression") { - node.type = node.type.substring(8); - } - if (state.stop) { - const chain = this.startNodeAtNode(node); - chain.expression = node; - return this.finishNode(chain, "ChainExpression"); - } - } else if (node.type === "MemberExpression" || node.type === "CallExpression") { - node.optional = false; - } - return node; - } - hasPropertyAsPrivateName(node) { - if (node.type === "ChainExpression") { - node = node.expression; - } - return super.hasPropertyAsPrivateName(node); - } - isObjectProperty(node) { - return node.type === "Property" && node.kind === "init" && !node.method; - } - isObjectMethod(node) { - return node.method || node.kind === "get" || node.kind === "set"; - } - finishNodeAt(node, type, endLoc) { - return toESTreeLocation(super.finishNodeAt(node, type, endLoc)); - } - resetStartLocation(node, startLoc) { - super.resetStartLocation(node, startLoc); - toESTreeLocation(node); - } - resetEndLocation(node, endLoc = this.state.lastTokEndLoc) { - super.resetEndLocation(node, endLoc); - toESTreeLocation(node); - } -}; -class TokContext { - constructor(token, preserveSpace) { - this.token = void 0; - this.preserveSpace = void 0; - this.token = token; - this.preserveSpace = !!preserveSpace; - } -} -const types = { - brace: new TokContext("{"), - j_oTag: new TokContext("...", true) -}; -{ - types.template = new TokContext("`", true); -} -const beforeExpr = true; -const startsExpr = true; -const isLoop = true; -const isAssign = true; -const prefix = true; -const postfix = true; -class ExportedTokenType { - constructor(label, conf = {}) { - this.label = void 0; - this.keyword = void 0; - this.beforeExpr = void 0; - this.startsExpr = void 0; - this.rightAssociative = void 0; - this.isLoop = void 0; - this.isAssign = void 0; - this.prefix = void 0; - this.postfix = void 0; - this.binop = void 0; - this.label = label; - this.keyword = conf.keyword; - this.beforeExpr = !!conf.beforeExpr; - this.startsExpr = !!conf.startsExpr; - this.rightAssociative = !!conf.rightAssociative; - this.isLoop = !!conf.isLoop; - this.isAssign = !!conf.isAssign; - this.prefix = !!conf.prefix; - this.postfix = !!conf.postfix; - this.binop = conf.binop != null ? conf.binop : null; - { - this.updateContext = null; - } - } -} -const keywords$1 = new Map(); -function createKeyword(name, options = {}) { - options.keyword = name; - const token = createToken(name, options); - keywords$1.set(name, token); - return token; -} -function createBinop(name, binop) { - return createToken(name, { - beforeExpr, - binop - }); -} -let tokenTypeCounter = -1; -const tokenTypes = []; -const tokenLabels = []; -const tokenBinops = []; -const tokenBeforeExprs = []; -const tokenStartsExprs = []; -const tokenPrefixes = []; -function createToken(name, options = {}) { - var _options$binop, _options$beforeExpr, _options$startsExpr, _options$prefix; - ++tokenTypeCounter; - tokenLabels.push(name); - tokenBinops.push((_options$binop = options.binop) != null ? _options$binop : -1); - tokenBeforeExprs.push((_options$beforeExpr = options.beforeExpr) != null ? _options$beforeExpr : false); - tokenStartsExprs.push((_options$startsExpr = options.startsExpr) != null ? _options$startsExpr : false); - tokenPrefixes.push((_options$prefix = options.prefix) != null ? _options$prefix : false); - tokenTypes.push(new ExportedTokenType(name, options)); - return tokenTypeCounter; -} -function createKeywordLike(name, options = {}) { - var _options$binop2, _options$beforeExpr2, _options$startsExpr2, _options$prefix2; - ++tokenTypeCounter; - keywords$1.set(name, tokenTypeCounter); - tokenLabels.push(name); - tokenBinops.push((_options$binop2 = options.binop) != null ? _options$binop2 : -1); - tokenBeforeExprs.push((_options$beforeExpr2 = options.beforeExpr) != null ? _options$beforeExpr2 : false); - tokenStartsExprs.push((_options$startsExpr2 = options.startsExpr) != null ? _options$startsExpr2 : false); - tokenPrefixes.push((_options$prefix2 = options.prefix) != null ? _options$prefix2 : false); - tokenTypes.push(new ExportedTokenType("name", options)); - return tokenTypeCounter; -} -const tt = { - bracketL: createToken("[", { - beforeExpr, - startsExpr - }), - bracketHashL: createToken("#[", { - beforeExpr, - startsExpr - }), - bracketBarL: createToken("[|", { - beforeExpr, - startsExpr - }), - bracketR: createToken("]"), - bracketBarR: createToken("|]"), - braceL: createToken("{", { - beforeExpr, - startsExpr - }), - braceBarL: createToken("{|", { - beforeExpr, - startsExpr - }), - braceHashL: createToken("#{", { - beforeExpr, - startsExpr - }), - braceR: createToken("}"), - braceBarR: createToken("|}"), - parenL: createToken("(", { - beforeExpr, - startsExpr - }), - parenR: createToken(")"), - comma: createToken(",", { - beforeExpr - }), - semi: createToken(";", { - beforeExpr - }), - colon: createToken(":", { - beforeExpr - }), - doubleColon: createToken("::", { - beforeExpr - }), - dot: createToken("."), - question: createToken("?", { - beforeExpr - }), - questionDot: createToken("?."), - arrow: createToken("=>", { - beforeExpr - }), - template: createToken("template"), - ellipsis: createToken("...", { - beforeExpr - }), - backQuote: createToken("`", { - startsExpr - }), - dollarBraceL: createToken("${", { - beforeExpr, - startsExpr - }), - templateTail: createToken("...`", { - startsExpr - }), - templateNonTail: createToken("...${", { - beforeExpr, - startsExpr - }), - at: createToken("@"), - hash: createToken("#", { - startsExpr - }), - interpreterDirective: createToken("#!..."), - eq: createToken("=", { - beforeExpr, - isAssign - }), - assign: createToken("_=", { - beforeExpr, - isAssign - }), - slashAssign: createToken("_=", { - beforeExpr, - isAssign - }), - xorAssign: createToken("_=", { - beforeExpr, - isAssign - }), - moduloAssign: createToken("_=", { - beforeExpr, - isAssign - }), - incDec: createToken("++/--", { - prefix, - postfix, - startsExpr - }), - bang: createToken("!", { - beforeExpr, - prefix, - startsExpr - }), - tilde: createToken("~", { - beforeExpr, - prefix, - startsExpr - }), - doubleCaret: createToken("^^", { - startsExpr - }), - doubleAt: createToken("@@", { - startsExpr - }), - pipeline: createBinop("|>", 0), - nullishCoalescing: createBinop("??", 1), - logicalOR: createBinop("||", 1), - logicalAND: createBinop("&&", 2), - bitwiseOR: createBinop("|", 3), - bitwiseXOR: createBinop("^", 4), - bitwiseAND: createBinop("&", 5), - equality: createBinop("==/!=/===/!==", 6), - lt: createBinop("/<=/>=", 7), - gt: createBinop("/<=/>=", 7), - relational: createBinop("/<=/>=", 7), - bitShift: createBinop("<>/>>>", 8), - bitShiftL: createBinop("<>/>>>", 8), - bitShiftR: createBinop("<>/>>>", 8), - plusMin: createToken("+/-", { - beforeExpr, - binop: 9, - prefix, - startsExpr - }), - modulo: createToken("%", { - binop: 10, - startsExpr - }), - star: createToken("*", { - binop: 10 - }), - slash: createBinop("/", 10), - exponent: createToken("**", { - beforeExpr, - binop: 11, - rightAssociative: true - }), - _in: createKeyword("in", { - beforeExpr, - binop: 7 - }), - _instanceof: createKeyword("instanceof", { - beforeExpr, - binop: 7 - }), - _break: createKeyword("break"), - _case: createKeyword("case", { - beforeExpr - }), - _catch: createKeyword("catch"), - _continue: createKeyword("continue"), - _debugger: createKeyword("debugger"), - _default: createKeyword("default", { - beforeExpr - }), - _else: createKeyword("else", { - beforeExpr - }), - _finally: createKeyword("finally"), - _function: createKeyword("function", { - startsExpr - }), - _if: createKeyword("if"), - _return: createKeyword("return", { - beforeExpr - }), - _switch: createKeyword("switch"), - _throw: createKeyword("throw", { - beforeExpr, - prefix, - startsExpr - }), - _try: createKeyword("try"), - _var: createKeyword("var"), - _const: createKeyword("const"), - _with: createKeyword("with"), - _new: createKeyword("new", { - beforeExpr, - startsExpr - }), - _this: createKeyword("this", { - startsExpr - }), - _super: createKeyword("super", { - startsExpr - }), - _class: createKeyword("class", { - startsExpr - }), - _extends: createKeyword("extends", { - beforeExpr - }), - _export: createKeyword("export"), - _import: createKeyword("import", { - startsExpr - }), - _null: createKeyword("null", { - startsExpr - }), - _true: createKeyword("true", { - startsExpr - }), - _false: createKeyword("false", { - startsExpr - }), - _typeof: createKeyword("typeof", { - beforeExpr, - prefix, - startsExpr - }), - _void: createKeyword("void", { - beforeExpr, - prefix, - startsExpr - }), - _delete: createKeyword("delete", { - beforeExpr, - prefix, - startsExpr - }), - _do: createKeyword("do", { - isLoop, - beforeExpr - }), - _for: createKeyword("for", { - isLoop - }), - _while: createKeyword("while", { - isLoop - }), - _as: createKeywordLike("as", { - startsExpr - }), - _assert: createKeywordLike("assert", { - startsExpr - }), - _async: createKeywordLike("async", { - startsExpr - }), - _await: createKeywordLike("await", { - startsExpr - }), - _from: createKeywordLike("from", { - startsExpr - }), - _get: createKeywordLike("get", { - startsExpr - }), - _let: createKeywordLike("let", { - startsExpr - }), - _meta: createKeywordLike("meta", { - startsExpr - }), - _of: createKeywordLike("of", { - startsExpr - }), - _sent: createKeywordLike("sent", { - startsExpr - }), - _set: createKeywordLike("set", { - startsExpr - }), - _static: createKeywordLike("static", { - startsExpr - }), - _using: createKeywordLike("using", { - startsExpr - }), - _yield: createKeywordLike("yield", { - startsExpr - }), - _asserts: createKeywordLike("asserts", { - startsExpr - }), - _checks: createKeywordLike("checks", { - startsExpr - }), - _exports: createKeywordLike("exports", { - startsExpr - }), - _global: createKeywordLike("global", { - startsExpr - }), - _implements: createKeywordLike("implements", { - startsExpr - }), - _intrinsic: createKeywordLike("intrinsic", { - startsExpr - }), - _infer: createKeywordLike("infer", { - startsExpr - }), - _is: createKeywordLike("is", { - startsExpr - }), - _mixins: createKeywordLike("mixins", { - startsExpr - }), - _proto: createKeywordLike("proto", { - startsExpr - }), - _require: createKeywordLike("require", { - startsExpr - }), - _satisfies: createKeywordLike("satisfies", { - startsExpr - }), - _keyof: createKeywordLike("keyof", { - startsExpr - }), - _readonly: createKeywordLike("readonly", { - startsExpr - }), - _unique: createKeywordLike("unique", { - startsExpr - }), - _abstract: createKeywordLike("abstract", { - startsExpr - }), - _declare: createKeywordLike("declare", { - startsExpr - }), - _enum: createKeywordLike("enum", { - startsExpr - }), - _module: createKeywordLike("module", { - startsExpr - }), - _namespace: createKeywordLike("namespace", { - startsExpr - }), - _interface: createKeywordLike("interface", { - startsExpr - }), - _type: createKeywordLike("type", { - startsExpr - }), - _opaque: createKeywordLike("opaque", { - startsExpr - }), - name: createToken("name", { - startsExpr - }), - string: createToken("string", { - startsExpr - }), - num: createToken("num", { - startsExpr - }), - bigint: createToken("bigint", { - startsExpr - }), - decimal: createToken("decimal", { - startsExpr - }), - regexp: createToken("regexp", { - startsExpr - }), - privateName: createToken("#name", { - startsExpr - }), - eof: createToken("eof"), - jsxName: createToken("jsxName"), - jsxText: createToken("jsxText", { - beforeExpr: true - }), - jsxTagStart: createToken("jsxTagStart", { - startsExpr: true - }), - jsxTagEnd: createToken("jsxTagEnd"), - placeholder: createToken("%%", { - startsExpr: true - }) -}; -function tokenIsIdentifier(token) { - return token >= 93 && token <= 130; -} -function tokenKeywordOrIdentifierIsKeyword(token) { - return token <= 92; -} -function tokenIsKeywordOrIdentifier(token) { - return token >= 58 && token <= 130; -} -function tokenIsLiteralPropertyName(token) { - return token >= 58 && token <= 134; -} -function tokenComesBeforeExpression(token) { - return tokenBeforeExprs[token]; -} -function tokenCanStartExpression(token) { - return tokenStartsExprs[token]; -} -function tokenIsAssignment(token) { - return token >= 29 && token <= 33; -} -function tokenIsFlowInterfaceOrTypeOrOpaque(token) { - return token >= 127 && token <= 129; -} -function tokenIsLoop(token) { - return token >= 90 && token <= 92; -} -function tokenIsKeyword(token) { - return token >= 58 && token <= 92; -} -function tokenIsOperator(token) { - return token >= 39 && token <= 59; -} -function tokenIsPostfix(token) { - return token === 34; -} -function tokenIsPrefix(token) { - return tokenPrefixes[token]; -} -function tokenIsTSTypeOperator(token) { - return token >= 119 && token <= 121; -} -function tokenIsTSDeclarationStart(token) { - return token >= 122 && token <= 128; -} -function tokenLabelName(token) { - return tokenLabels[token]; -} -function tokenOperatorPrecedence(token) { - return tokenBinops[token]; -} -function tokenIsRightAssociative(token) { - return token === 57; -} -function tokenIsTemplate(token) { - return token >= 24 && token <= 25; -} -function getExportedToken(token) { - return tokenTypes[token]; -} -{ - tokenTypes[8].updateContext = context => { - context.pop(); - }; - tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = context => { - context.push(types.brace); - }; - tokenTypes[22].updateContext = context => { - if (context[context.length - 1] === types.template) { - context.pop(); - } else { - context.push(types.template); - } - }; - tokenTypes[140].updateContext = context => { - context.push(types.j_expr, types.j_oTag); - }; -} -let nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; -let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f"; -const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); -const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); -nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; -const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191]; -const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; -function isInAstralSet(code, set) { - let pos = 0x10000; - for (let i = 0, length = set.length; i < length; i += 2) { - pos += set[i]; - if (pos > code) return false; - pos += set[i + 1]; - if (pos >= code) return true; - } - return false; -} -function isIdentifierStart(code) { - if (code < 65) return code === 36; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 0xffff) { - return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes); -} -function isIdentifierChar(code) { - if (code < 48) return code === 36; - if (code < 58) return true; - if (code < 65) return false; - if (code <= 90) return true; - if (code < 97) return code === 95; - if (code <= 122) return true; - if (code <= 0xffff) { - return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)); - } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); -} -const reservedWords = { - keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], - strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], - strictBind: ["eval", "arguments"] -}; -const keywords = new Set(reservedWords.keyword); -const reservedWordsStrictSet = new Set(reservedWords.strict); -const reservedWordsStrictBindSet = new Set(reservedWords.strictBind); -function isReservedWord(word, inModule) { - return inModule && word === "await" || word === "enum"; -} -function isStrictReservedWord(word, inModule) { - return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); -} -function isStrictBindOnlyReservedWord(word) { - return reservedWordsStrictBindSet.has(word); -} -function isStrictBindReservedWord(word, inModule) { - return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); -} -function isKeyword(word) { - return keywords.has(word); -} -function isIteratorStart(current, next, next2) { - return current === 64 && next === 64 && isIdentifierStart(next2); -} -const reservedWordLikeSet = new Set(["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete", "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "eval", "arguments", "enum", "await"]); -function canBeReservedWord(word) { - return reservedWordLikeSet.has(word); -} -const SCOPE_OTHER = 0b000000000, - SCOPE_PROGRAM = 0b000000001, - SCOPE_FUNCTION = 0b000000010, - SCOPE_ARROW = 0b000000100, - SCOPE_SIMPLE_CATCH = 0b000001000, - SCOPE_SUPER = 0b000010000, - SCOPE_DIRECT_SUPER = 0b000100000, - SCOPE_CLASS = 0b001000000, - SCOPE_STATIC_BLOCK = 0b010000000, - SCOPE_TS_MODULE = 0b100000000, - SCOPE_VAR = SCOPE_PROGRAM | SCOPE_FUNCTION | SCOPE_STATIC_BLOCK | SCOPE_TS_MODULE; -const BIND_KIND_VALUE = 0b0000000000001, - BIND_KIND_TYPE = 0b0000000000010, - BIND_SCOPE_VAR = 0b0000000000100, - BIND_SCOPE_LEXICAL = 0b0000000001000, - BIND_SCOPE_FUNCTION = 0b0000000010000, - BIND_FLAGS_NONE = 0b00000001000000, - BIND_FLAGS_CLASS = 0b00000010000000, - BIND_FLAGS_TS_ENUM = 0b00000100000000, - BIND_FLAGS_TS_CONST_ENUM = 0b00001000000000, - BIND_FLAGS_TS_EXPORT_ONLY = 0b00010000000000, - BIND_FLAGS_FLOW_DECLARE_FN = 0b00100000000000, - BIND_FLAGS_TS_IMPORT = 0b01000000000000, - BIND_FLAGS_NO_LET_IN_LEXICAL = 0b10000000000000; -const BIND_CLASS = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_CLASS | BIND_FLAGS_NO_LET_IN_LEXICAL, - BIND_LEXICAL = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | BIND_FLAGS_NO_LET_IN_LEXICAL, - BIND_CATCH_PARAM = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | 0, - BIND_VAR = BIND_KIND_VALUE | 0 | BIND_SCOPE_VAR | 0, - BIND_FUNCTION = BIND_KIND_VALUE | 0 | BIND_SCOPE_FUNCTION | 0, - BIND_TS_INTERFACE = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_CLASS, - BIND_TS_TYPE = 0 | BIND_KIND_TYPE | 0 | 0, - BIND_TS_ENUM = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_TS_ENUM | BIND_FLAGS_NO_LET_IN_LEXICAL, - BIND_TS_AMBIENT = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY, - BIND_NONE = 0 | 0 | 0 | BIND_FLAGS_NONE, - BIND_OUTSIDE = BIND_KIND_VALUE | 0 | 0 | BIND_FLAGS_NONE, - BIND_TS_CONST_ENUM = BIND_TS_ENUM | BIND_FLAGS_TS_CONST_ENUM, - BIND_TS_NAMESPACE = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY, - BIND_TS_TYPE_IMPORT = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_TS_IMPORT, - BIND_FLOW_DECLARE_FN = BIND_FLAGS_FLOW_DECLARE_FN; -const CLASS_ELEMENT_FLAG_STATIC = 0b100, - CLASS_ELEMENT_KIND_GETTER = 0b010, - CLASS_ELEMENT_KIND_SETTER = 0b001, - CLASS_ELEMENT_KIND_ACCESSOR = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_KIND_SETTER; -const CLASS_ELEMENT_STATIC_GETTER = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_FLAG_STATIC, - CLASS_ELEMENT_STATIC_SETTER = CLASS_ELEMENT_KIND_SETTER | CLASS_ELEMENT_FLAG_STATIC, - CLASS_ELEMENT_INSTANCE_GETTER = CLASS_ELEMENT_KIND_GETTER, - CLASS_ELEMENT_INSTANCE_SETTER = CLASS_ELEMENT_KIND_SETTER, - CLASS_ELEMENT_OTHER = 0; -class Scope { - constructor(flags) { - this.var = new Set(); - this.lexical = new Set(); - this.functions = new Set(); - this.flags = flags; - } -} -class ScopeHandler { - constructor(parser, inModule) { - this.parser = void 0; - this.scopeStack = []; - this.inModule = void 0; - this.undefinedExports = new Map(); - this.parser = parser; - this.inModule = inModule; - } - get inTopLevel() { - return (this.currentScope().flags & SCOPE_PROGRAM) > 0; - } - get inFunction() { - return (this.currentVarScopeFlags() & SCOPE_FUNCTION) > 0; - } - get allowSuper() { - return (this.currentThisScopeFlags() & SCOPE_SUPER) > 0; - } - get allowDirectSuper() { - return (this.currentThisScopeFlags() & SCOPE_DIRECT_SUPER) > 0; - } - get inClass() { - return (this.currentThisScopeFlags() & SCOPE_CLASS) > 0; - } - get inClassAndNotInNonArrowFunction() { - const flags = this.currentThisScopeFlags(); - return (flags & SCOPE_CLASS) > 0 && (flags & SCOPE_FUNCTION) === 0; - } - get inStaticBlock() { - for (let i = this.scopeStack.length - 1;; i--) { - const { - flags - } = this.scopeStack[i]; - if (flags & SCOPE_STATIC_BLOCK) { - return true; - } - if (flags & (SCOPE_VAR | SCOPE_CLASS)) { - return false; - } - } - } - get inNonArrowFunction() { - return (this.currentThisScopeFlags() & SCOPE_FUNCTION) > 0; - } - get treatFunctionsAsVar() { - return this.treatFunctionsAsVarInScope(this.currentScope()); - } - createScope(flags) { - return new Scope(flags); - } - enter(flags) { - this.scopeStack.push(this.createScope(flags)); - } - exit() { - const scope = this.scopeStack.pop(); - return scope.flags; - } - treatFunctionsAsVarInScope(scope) { - return !!(scope.flags & (SCOPE_FUNCTION | SCOPE_STATIC_BLOCK) || !this.parser.inModule && scope.flags & SCOPE_PROGRAM); - } - declareName(name, bindingType, loc) { - let scope = this.currentScope(); - if (bindingType & BIND_SCOPE_LEXICAL || bindingType & BIND_SCOPE_FUNCTION) { - this.checkRedeclarationInScope(scope, name, bindingType, loc); - if (bindingType & BIND_SCOPE_FUNCTION) { - scope.functions.add(name); - } else { - scope.lexical.add(name); - } - if (bindingType & BIND_SCOPE_LEXICAL) { - this.maybeExportDefined(scope, name); - } - } else if (bindingType & BIND_SCOPE_VAR) { - for (let i = this.scopeStack.length - 1; i >= 0; --i) { - scope = this.scopeStack[i]; - this.checkRedeclarationInScope(scope, name, bindingType, loc); - scope.var.add(name); - this.maybeExportDefined(scope, name); - if (scope.flags & SCOPE_VAR) break; - } - } - if (this.parser.inModule && scope.flags & SCOPE_PROGRAM) { - this.undefinedExports.delete(name); - } - } - maybeExportDefined(scope, name) { - if (this.parser.inModule && scope.flags & SCOPE_PROGRAM) { - this.undefinedExports.delete(name); - } - } - checkRedeclarationInScope(scope, name, bindingType, loc) { - if (this.isRedeclaredInScope(scope, name, bindingType)) { - this.parser.raise(Errors.VarRedeclaration, { - at: loc, - identifierName: name - }); - } - } - isRedeclaredInScope(scope, name, bindingType) { - if (!(bindingType & BIND_KIND_VALUE)) return false; - if (bindingType & BIND_SCOPE_LEXICAL) { - return scope.lexical.has(name) || scope.functions.has(name) || scope.var.has(name); - } - if (bindingType & BIND_SCOPE_FUNCTION) { - return scope.lexical.has(name) || !this.treatFunctionsAsVarInScope(scope) && scope.var.has(name); - } - return scope.lexical.has(name) && !(scope.flags & SCOPE_SIMPLE_CATCH && scope.lexical.values().next().value === name) || !this.treatFunctionsAsVarInScope(scope) && scope.functions.has(name); - } - checkLocalExport(id) { - const { - name - } = id; - const topLevelScope = this.scopeStack[0]; - if (!topLevelScope.lexical.has(name) && !topLevelScope.var.has(name) && !topLevelScope.functions.has(name)) { - this.undefinedExports.set(name, id.loc.start); - } - } - currentScope() { - return this.scopeStack[this.scopeStack.length - 1]; - } - currentVarScopeFlags() { - for (let i = this.scopeStack.length - 1;; i--) { - const { - flags - } = this.scopeStack[i]; - if (flags & SCOPE_VAR) { - return flags; - } - } - } - currentThisScopeFlags() { - for (let i = this.scopeStack.length - 1;; i--) { - const { - flags - } = this.scopeStack[i]; - if (flags & (SCOPE_VAR | SCOPE_CLASS) && !(flags & SCOPE_ARROW)) { - return flags; - } - } - } -} -class FlowScope extends Scope { - constructor(...args) { - super(...args); - this.declareFunctions = new Set(); - } -} -class FlowScopeHandler extends ScopeHandler { - createScope(flags) { - return new FlowScope(flags); - } - declareName(name, bindingType, loc) { - const scope = this.currentScope(); - if (bindingType & BIND_FLAGS_FLOW_DECLARE_FN) { - this.checkRedeclarationInScope(scope, name, bindingType, loc); - this.maybeExportDefined(scope, name); - scope.declareFunctions.add(name); - return; - } - super.declareName(name, bindingType, loc); - } - isRedeclaredInScope(scope, name, bindingType) { - if (super.isRedeclaredInScope(scope, name, bindingType)) return true; - if (bindingType & BIND_FLAGS_FLOW_DECLARE_FN) { - return !scope.declareFunctions.has(name) && (scope.lexical.has(name) || scope.functions.has(name)); - } - return false; - } - checkLocalExport(id) { - if (!this.scopeStack[0].declareFunctions.has(id.name)) { - super.checkLocalExport(id); - } - } -} -class BaseParser { - constructor() { - this.sawUnambiguousESM = false; - this.ambiguousScriptDifferentAst = false; - } - hasPlugin(pluginConfig) { - if (typeof pluginConfig === "string") { - return this.plugins.has(pluginConfig); - } else { - const [pluginName, pluginOptions] = pluginConfig; - if (!this.hasPlugin(pluginName)) { - return false; - } - const actualOptions = this.plugins.get(pluginName); - for (const key of Object.keys(pluginOptions)) { - if ((actualOptions == null ? void 0 : actualOptions[key]) !== pluginOptions[key]) { - return false; - } - } - return true; - } - } - getPluginOption(plugin, name) { - var _this$plugins$get; - return (_this$plugins$get = this.plugins.get(plugin)) == null ? void 0 : _this$plugins$get[name]; - } -} -function setTrailingComments(node, comments) { - if (node.trailingComments === undefined) { - node.trailingComments = comments; - } else { - node.trailingComments.unshift(...comments); - } -} -function setLeadingComments(node, comments) { - if (node.leadingComments === undefined) { - node.leadingComments = comments; - } else { - node.leadingComments.unshift(...comments); - } -} -function setInnerComments(node, comments) { - if (node.innerComments === undefined) { - node.innerComments = comments; - } else { - node.innerComments.unshift(...comments); - } -} -function adjustInnerComments(node, elements, commentWS) { - let lastElement = null; - let i = elements.length; - while (lastElement === null && i > 0) { - lastElement = elements[--i]; - } - if (lastElement === null || lastElement.start > commentWS.start) { - setInnerComments(node, commentWS.comments); - } else { - setTrailingComments(lastElement, commentWS.comments); - } -} -class CommentsParser extends BaseParser { - addComment(comment) { - if (this.filename) comment.loc.filename = this.filename; - this.state.comments.push(comment); - } - processComment(node) { - const { - commentStack - } = this.state; - const commentStackLength = commentStack.length; - if (commentStackLength === 0) return; - let i = commentStackLength - 1; - const lastCommentWS = commentStack[i]; - if (lastCommentWS.start === node.end) { - lastCommentWS.leadingNode = node; - i--; - } - const { - start: nodeStart - } = node; - for (; i >= 0; i--) { - const commentWS = commentStack[i]; - const commentEnd = commentWS.end; - if (commentEnd > nodeStart) { - commentWS.containingNode = node; - this.finalizeComment(commentWS); - commentStack.splice(i, 1); - } else { - if (commentEnd === nodeStart) { - commentWS.trailingNode = node; - } - break; - } - } - } - finalizeComment(commentWS) { - const { - comments - } = commentWS; - if (commentWS.leadingNode !== null || commentWS.trailingNode !== null) { - if (commentWS.leadingNode !== null) { - setTrailingComments(commentWS.leadingNode, comments); - } - if (commentWS.trailingNode !== null) { - setLeadingComments(commentWS.trailingNode, comments); - } - } else { - const { - containingNode: node, - start: commentStart - } = commentWS; - if (this.input.charCodeAt(commentStart - 1) === 44) { - switch (node.type) { - case "ObjectExpression": - case "ObjectPattern": - case "RecordExpression": - adjustInnerComments(node, node.properties, commentWS); - break; - case "CallExpression": - case "OptionalCallExpression": - adjustInnerComments(node, node.arguments, commentWS); - break; - case "FunctionDeclaration": - case "FunctionExpression": - case "ArrowFunctionExpression": - case "ObjectMethod": - case "ClassMethod": - case "ClassPrivateMethod": - adjustInnerComments(node, node.params, commentWS); - break; - case "ArrayExpression": - case "ArrayPattern": - case "TupleExpression": - adjustInnerComments(node, node.elements, commentWS); - break; - case "ExportNamedDeclaration": - case "ImportDeclaration": - adjustInnerComments(node, node.specifiers, commentWS); - break; - default: - { - setInnerComments(node, comments); - } - } - } else { - setInnerComments(node, comments); - } - } - } - finalizeRemainingComments() { - const { - commentStack - } = this.state; - for (let i = commentStack.length - 1; i >= 0; i--) { - this.finalizeComment(commentStack[i]); - } - this.state.commentStack = []; - } - resetPreviousNodeTrailingComments(node) { - const { - commentStack - } = this.state; - const { - length - } = commentStack; - if (length === 0) return; - const commentWS = commentStack[length - 1]; - if (commentWS.leadingNode === node) { - commentWS.leadingNode = null; - } - } - resetPreviousIdentifierLeadingComments(node) { - const { - commentStack - } = this.state; - const { - length - } = commentStack; - if (length === 0) return; - if (commentStack[length - 1].trailingNode === node) { - commentStack[length - 1].trailingNode = null; - } else if (length >= 2 && commentStack[length - 2].trailingNode === node) { - commentStack[length - 2].trailingNode = null; - } - } - takeSurroundingComments(node, start, end) { - const { - commentStack - } = this.state; - const commentStackLength = commentStack.length; - if (commentStackLength === 0) return; - let i = commentStackLength - 1; - for (; i >= 0; i--) { - const commentWS = commentStack[i]; - const commentEnd = commentWS.end; - const commentStart = commentWS.start; - if (commentStart === end) { - commentWS.leadingNode = node; - } else if (commentEnd === start) { - commentWS.trailingNode = node; - } else if (commentEnd < start) { - break; - } - } - } -} -const lineBreak = /\r\n?|[\n\u2028\u2029]/; -const lineBreakG = new RegExp(lineBreak.source, "g"); -function isNewLine(code) { - switch (code) { - case 10: - case 13: - case 8232: - case 8233: - return true; - default: - return false; - } -} -const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; -const skipWhiteSpaceInLine = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g; -const skipWhiteSpaceToLineBreak = new RegExp("(?=(" + skipWhiteSpaceInLine.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"); -function isWhitespace(code) { - switch (code) { - case 0x0009: - case 0x000b: - case 0x000c: - case 32: - case 160: - case 5760: - case 0x2000: - case 0x2001: - case 0x2002: - case 0x2003: - case 0x2004: - case 0x2005: - case 0x2006: - case 0x2007: - case 0x2008: - case 0x2009: - case 0x200a: - case 0x202f: - case 0x205f: - case 0x3000: - case 0xfeff: - return true; - default: - return false; - } -} -class State { - constructor() { - this.strict = void 0; - this.curLine = void 0; - this.lineStart = void 0; - this.startLoc = void 0; - this.endLoc = void 0; - this.errors = []; - this.potentialArrowAt = -1; - this.noArrowAt = []; - this.noArrowParamsConversionAt = []; - this.maybeInArrowParameters = false; - this.inType = false; - this.noAnonFunctionType = false; - this.hasFlowComment = false; - this.isAmbientContext = false; - this.inAbstractClass = false; - this.inDisallowConditionalTypesContext = false; - this.topicContext = { - maxNumOfResolvableTopics: 0, - maxTopicIndex: null - }; - this.soloAwait = false; - this.inFSharpPipelineDirectBody = false; - this.labels = []; - this.comments = []; - this.commentStack = []; - this.pos = 0; - this.type = 137; - this.value = null; - this.start = 0; - this.end = 0; - this.lastTokEndLoc = null; - this.lastTokStartLoc = null; - this.lastTokStart = 0; - this.context = [types.brace]; - this.canStartJSXElement = true; - this.containsEsc = false; - this.firstInvalidTemplateEscapePos = null; - this.strictErrors = new Map(); - this.tokensLength = 0; - } - init({ - strictMode, - sourceType, - startLine, - startColumn - }) { - this.strict = strictMode === false ? false : strictMode === true ? true : sourceType === "module"; - this.curLine = startLine; - this.lineStart = -startColumn; - this.startLoc = this.endLoc = new Position(startLine, startColumn, 0); - } - curPosition() { - return new Position(this.curLine, this.pos - this.lineStart, this.pos); - } - clone(skipArrays) { - const state = new State(); - const keys = Object.keys(this); - for (let i = 0, length = keys.length; i < length; i++) { - const key = keys[i]; - let val = this[key]; - if (!skipArrays && Array.isArray(val)) { - val = val.slice(); - } - state[key] = val; - } - return state; - } -} -var _isDigit = function isDigit(code) { - return code >= 48 && code <= 57; -}; -const forbiddenNumericSeparatorSiblings = { - decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]), - hex: new Set([46, 88, 95, 120]) -}; -const isAllowedNumericSeparatorSibling = { - bin: ch => ch === 48 || ch === 49, - oct: ch => ch >= 48 && ch <= 55, - dec: ch => ch >= 48 && ch <= 57, - hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102 -}; -function readStringContents(type, input, pos, lineStart, curLine, errors) { - const initialPos = pos; - const initialLineStart = lineStart; - const initialCurLine = curLine; - let out = ""; - let firstInvalidLoc = null; - let chunkStart = pos; - const { - length - } = input; - for (;;) { - if (pos >= length) { - errors.unterminated(initialPos, initialLineStart, initialCurLine); - out += input.slice(chunkStart, pos); - break; - } - const ch = input.charCodeAt(pos); - if (isStringEnd(type, ch, input, pos)) { - out += input.slice(chunkStart, pos); - break; - } - if (ch === 92) { - out += input.slice(chunkStart, pos); - const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors); - if (res.ch === null && !firstInvalidLoc) { - firstInvalidLoc = { - pos, - lineStart, - curLine - }; - } else { - out += res.ch; - } - ({ - pos, - lineStart, - curLine - } = res); - chunkStart = pos; - } else if (ch === 8232 || ch === 8233) { - ++pos; - ++curLine; - lineStart = pos; - } else if (ch === 10 || ch === 13) { - if (type === "template") { - out += input.slice(chunkStart, pos) + "\n"; - ++pos; - if (ch === 13 && input.charCodeAt(pos) === 10) { - ++pos; - } - ++curLine; - chunkStart = lineStart = pos; - } else { - errors.unterminated(initialPos, initialLineStart, initialCurLine); - } - } else { - ++pos; - } - } - return { - pos, - str: out, - firstInvalidLoc, - lineStart, - curLine, - containsInvalid: !!firstInvalidLoc - }; -} -function isStringEnd(type, ch, input, pos) { - if (type === "template") { - return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123; - } - return ch === (type === "double" ? 34 : 39); -} -function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) { - const throwOnInvalid = !inTemplate; - pos++; - const res = ch => ({ - pos, - ch, - lineStart, - curLine - }); - const ch = input.charCodeAt(pos++); - switch (ch) { - case 110: - return res("\n"); - case 114: - return res("\r"); - case 120: - { - let code; - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors)); - return res(code === null ? null : String.fromCharCode(code)); - } - case 117: - { - let code; - ({ - code, - pos - } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors)); - return res(code === null ? null : String.fromCodePoint(code)); - } - case 116: - return res("\t"); - case 98: - return res("\b"); - case 118: - return res("\u000b"); - case 102: - return res("\f"); - case 13: - if (input.charCodeAt(pos) === 10) { - ++pos; - } - case 10: - lineStart = pos; - ++curLine; - case 8232: - case 8233: - return res(""); - case 56: - case 57: - if (inTemplate) { - return res(null); - } else { - errors.strictNumericEscape(pos - 1, lineStart, curLine); - } - default: - if (ch >= 48 && ch <= 55) { - const startPos = pos - 1; - const match = input.slice(startPos, pos + 2).match(/^[0-7]+/); - let octalStr = match[0]; - let octal = parseInt(octalStr, 8); - if (octal > 255) { - octalStr = octalStr.slice(0, -1); - octal = parseInt(octalStr, 8); - } - pos += octalStr.length - 1; - const next = input.charCodeAt(pos); - if (octalStr !== "0" || next === 56 || next === 57) { - if (inTemplate) { - return res(null); - } else { - errors.strictNumericEscape(startPos, lineStart, curLine); - } - } - return res(String.fromCharCode(octal)); - } - return res(String.fromCharCode(ch)); - } -} -function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) { - const initialPos = pos; - let n; - ({ - n, - pos - } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid)); - if (n === null) { - if (throwOnInvalid) { - errors.invalidEscapeSequence(initialPos, lineStart, curLine); - } else { - pos = initialPos - 1; - } - } - return { - code: n, - pos - }; -} -function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) { - const start = pos; - const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct; - const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin; - let invalid = false; - let total = 0; - for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) { - const code = input.charCodeAt(pos); - let val; - if (code === 95 && allowNumSeparator !== "bail") { - const prev = input.charCodeAt(pos - 1); - const next = input.charCodeAt(pos + 1); - if (!allowNumSeparator) { - if (bailOnError) return { - n: null, - pos - }; - errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine); - } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) { - if (bailOnError) return { - n: null, - pos - }; - errors.unexpectedNumericSeparator(pos, lineStart, curLine); - } - ++pos; - continue; - } - if (code >= 97) { - val = code - 97 + 10; - } else if (code >= 65) { - val = code - 65 + 10; - } else if (_isDigit(code)) { - val = code - 48; - } else { - val = Infinity; - } - if (val >= radix) { - if (val <= 9 && bailOnError) { - return { - n: null, - pos - }; - } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) { - val = 0; - } else if (forceLen) { - val = 0; - invalid = true; - } else { - break; - } - } - ++pos; - total = total * radix + val; - } - if (pos === start || len != null && pos - start !== len || invalid) { - return { - n: null, - pos - }; - } - return { - n: total, - pos - }; -} -function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) { - const ch = input.charCodeAt(pos); - let code; - if (ch === 123) { - ++pos; - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors)); - ++pos; - if (code !== null && code > 0x10ffff) { - if (throwOnInvalid) { - errors.invalidCodePoint(pos, lineStart, curLine); - } else { - return { - code: null, - pos - }; - } - } - } else { - ({ - code, - pos - } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors)); - } - return { - code, - pos - }; -} -const _excluded = ["at"], - _excluded2 = ["at"]; -function buildPosition(pos, lineStart, curLine) { - return new Position(curLine, pos - lineStart, pos); -} -const VALID_REGEX_FLAGS = new Set([103, 109, 115, 105, 121, 117, 100, 118]); -class Token { - constructor(state) { - this.type = state.type; - this.value = state.value; - this.start = state.start; - this.end = state.end; - this.loc = new SourceLocation(state.startLoc, state.endLoc); - } -} -class Tokenizer extends CommentsParser { - constructor(options, input) { - super(); - this.isLookahead = void 0; - this.tokens = []; - this.errorHandlers_readInt = { - invalidDigit: (pos, lineStart, curLine, radix) => { - if (!this.options.errorRecovery) return false; - this.raise(Errors.InvalidDigit, { - at: buildPosition(pos, lineStart, curLine), - radix - }); - return true; - }, - numericSeparatorInEscapeSequence: this.errorBuilder(Errors.NumericSeparatorInEscapeSequence), - unexpectedNumericSeparator: this.errorBuilder(Errors.UnexpectedNumericSeparator) - }; - this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { - invalidEscapeSequence: this.errorBuilder(Errors.InvalidEscapeSequence), - invalidCodePoint: this.errorBuilder(Errors.InvalidCodePoint) - }); - this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { - strictNumericEscape: (pos, lineStart, curLine) => { - this.recordStrictModeErrors(Errors.StrictNumericEscape, { - at: buildPosition(pos, lineStart, curLine) - }); - }, - unterminated: (pos, lineStart, curLine) => { - throw this.raise(Errors.UnterminatedString, { - at: buildPosition(pos - 1, lineStart, curLine) - }); - } - }); - this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { - strictNumericEscape: this.errorBuilder(Errors.StrictNumericEscape), - unterminated: (pos, lineStart, curLine) => { - throw this.raise(Errors.UnterminatedTemplate, { - at: buildPosition(pos, lineStart, curLine) - }); - } - }); - this.state = new State(); - this.state.init(options); - this.input = input; - this.length = input.length; - this.isLookahead = false; - } - pushToken(token) { - this.tokens.length = this.state.tokensLength; - this.tokens.push(token); - ++this.state.tokensLength; - } - next() { - this.checkKeywordEscapes(); - if (this.options.tokens) { - this.pushToken(new Token(this.state)); - } - this.state.lastTokStart = this.state.start; - this.state.lastTokEndLoc = this.state.endLoc; - this.state.lastTokStartLoc = this.state.startLoc; - this.nextToken(); - } - eat(type) { - if (this.match(type)) { - this.next(); - return true; - } else { - return false; - } - } - match(type) { - return this.state.type === type; - } - createLookaheadState(state) { - return { - pos: state.pos, - value: null, - type: state.type, - start: state.start, - end: state.end, - context: [this.curContext()], - inType: state.inType, - startLoc: state.startLoc, - lastTokEndLoc: state.lastTokEndLoc, - curLine: state.curLine, - lineStart: state.lineStart, - curPosition: state.curPosition - }; - } - lookahead() { - const old = this.state; - this.state = this.createLookaheadState(old); - this.isLookahead = true; - this.nextToken(); - this.isLookahead = false; - const curr = this.state; - this.state = old; - return curr; - } - nextTokenStart() { - return this.nextTokenStartSince(this.state.pos); - } - nextTokenStartSince(pos) { - skipWhiteSpace.lastIndex = pos; - return skipWhiteSpace.test(this.input) ? skipWhiteSpace.lastIndex : pos; - } - lookaheadCharCode() { - return this.input.charCodeAt(this.nextTokenStart()); - } - nextTokenInLineStart() { - return this.nextTokenInLineStartSince(this.state.pos); - } - nextTokenInLineStartSince(pos) { - skipWhiteSpaceInLine.lastIndex = pos; - return skipWhiteSpaceInLine.test(this.input) ? skipWhiteSpaceInLine.lastIndex : pos; - } - lookaheadInLineCharCode() { - return this.input.charCodeAt(this.nextTokenInLineStart()); - } - codePointAtPos(pos) { - let cp = this.input.charCodeAt(pos); - if ((cp & 0xfc00) === 0xd800 && ++pos < this.input.length) { - const trail = this.input.charCodeAt(pos); - if ((trail & 0xfc00) === 0xdc00) { - cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff); - } - } - return cp; - } - setStrict(strict) { - this.state.strict = strict; - if (strict) { - this.state.strictErrors.forEach(([toParseError, at]) => this.raise(toParseError, { - at - })); - this.state.strictErrors.clear(); - } - } - curContext() { - return this.state.context[this.state.context.length - 1]; - } - nextToken() { - this.skipSpace(); - this.state.start = this.state.pos; - if (!this.isLookahead) this.state.startLoc = this.state.curPosition(); - if (this.state.pos >= this.length) { - this.finishToken(137); - return; - } - this.getTokenFromCode(this.codePointAtPos(this.state.pos)); - } - skipBlockComment(commentEnd) { - let startLoc; - if (!this.isLookahead) startLoc = this.state.curPosition(); - const start = this.state.pos; - const end = this.input.indexOf(commentEnd, start + 2); - if (end === -1) { - throw this.raise(Errors.UnterminatedComment, { - at: this.state.curPosition() - }); - } - this.state.pos = end + commentEnd.length; - lineBreakG.lastIndex = start + 2; - while (lineBreakG.test(this.input) && lineBreakG.lastIndex <= end) { - ++this.state.curLine; - this.state.lineStart = lineBreakG.lastIndex; - } - if (this.isLookahead) return; - const comment = { - type: "CommentBlock", - value: this.input.slice(start + 2, end), - start, - end: end + commentEnd.length, - loc: new SourceLocation(startLoc, this.state.curPosition()) - }; - if (this.options.tokens) this.pushToken(comment); - return comment; - } - skipLineComment(startSkip) { - const start = this.state.pos; - let startLoc; - if (!this.isLookahead) startLoc = this.state.curPosition(); - let ch = this.input.charCodeAt(this.state.pos += startSkip); - if (this.state.pos < this.length) { - while (!isNewLine(ch) && ++this.state.pos < this.length) { - ch = this.input.charCodeAt(this.state.pos); - } - } - if (this.isLookahead) return; - const end = this.state.pos; - const value = this.input.slice(start + startSkip, end); - const comment = { - type: "CommentLine", - value, - start, - end, - loc: new SourceLocation(startLoc, this.state.curPosition()) - }; - if (this.options.tokens) this.pushToken(comment); - return comment; - } - skipSpace() { - const spaceStart = this.state.pos; - const comments = []; - loop: while (this.state.pos < this.length) { - const ch = this.input.charCodeAt(this.state.pos); - switch (ch) { - case 32: - case 160: - case 9: - ++this.state.pos; - break; - case 13: - if (this.input.charCodeAt(this.state.pos + 1) === 10) { - ++this.state.pos; - } - case 10: - case 8232: - case 8233: - ++this.state.pos; - ++this.state.curLine; - this.state.lineStart = this.state.pos; - break; - case 47: - switch (this.input.charCodeAt(this.state.pos + 1)) { - case 42: - { - const comment = this.skipBlockComment("*/"); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - break; - } - case 47: - { - const comment = this.skipLineComment(2); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - break; - } - default: - break loop; - } - break; - default: - if (isWhitespace(ch)) { - ++this.state.pos; - } else if (ch === 45 && !this.inModule && this.options.annexB) { - const pos = this.state.pos; - if (this.input.charCodeAt(pos + 1) === 45 && this.input.charCodeAt(pos + 2) === 62 && (spaceStart === 0 || this.state.lineStart > spaceStart)) { - const comment = this.skipLineComment(3); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - } else { - break loop; - } - } else if (ch === 60 && !this.inModule && this.options.annexB) { - const pos = this.state.pos; - if (this.input.charCodeAt(pos + 1) === 33 && this.input.charCodeAt(pos + 2) === 45 && this.input.charCodeAt(pos + 3) === 45) { - const comment = this.skipLineComment(4); - if (comment !== undefined) { - this.addComment(comment); - if (this.options.attachComment) comments.push(comment); - } - } else { - break loop; - } - } else { - break loop; - } - } - } - if (comments.length > 0) { - const end = this.state.pos; - const commentWhitespace = { - start: spaceStart, - end, - comments, - leadingNode: null, - trailingNode: null, - containingNode: null - }; - this.state.commentStack.push(commentWhitespace); - } - } - finishToken(type, val) { - this.state.end = this.state.pos; - this.state.endLoc = this.state.curPosition(); - const prevType = this.state.type; - this.state.type = type; - this.state.value = val; - if (!this.isLookahead) { - this.updateContext(prevType); - } - } - replaceToken(type) { - this.state.type = type; - this.updateContext(); - } - readToken_numberSign() { - if (this.state.pos === 0 && this.readToken_interpreter()) { - return; - } - const nextPos = this.state.pos + 1; - const next = this.codePointAtPos(nextPos); - if (next >= 48 && next <= 57) { - throw this.raise(Errors.UnexpectedDigitAfterHash, { - at: this.state.curPosition() - }); - } - if (next === 123 || next === 91 && this.hasPlugin("recordAndTuple")) { - this.expectPlugin("recordAndTuple"); - if (this.getPluginOption("recordAndTuple", "syntaxType") === "bar") { - throw this.raise(next === 123 ? Errors.RecordExpressionHashIncorrectStartSyntaxType : Errors.TupleExpressionHashIncorrectStartSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - if (next === 123) { - this.finishToken(7); - } else { - this.finishToken(1); - } - } else if (isIdentifierStart(next)) { - ++this.state.pos; - this.finishToken(136, this.readWord1(next)); - } else if (next === 92) { - ++this.state.pos; - this.finishToken(136, this.readWord1()); - } else { - this.finishOp(27, 1); - } - } - readToken_dot() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next >= 48 && next <= 57) { - this.readNumber(true); - return; - } - if (next === 46 && this.input.charCodeAt(this.state.pos + 2) === 46) { - this.state.pos += 3; - this.finishToken(21); - } else { - ++this.state.pos; - this.finishToken(16); - } - } - readToken_slash() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 61) { - this.finishOp(31, 2); - } else { - this.finishOp(56, 1); - } - } - readToken_interpreter() { - if (this.state.pos !== 0 || this.length < 2) return false; - let ch = this.input.charCodeAt(this.state.pos + 1); - if (ch !== 33) return false; - const start = this.state.pos; - this.state.pos += 1; - while (!isNewLine(ch) && ++this.state.pos < this.length) { - ch = this.input.charCodeAt(this.state.pos); - } - const value = this.input.slice(start + 2, this.state.pos); - this.finishToken(28, value); - return true; - } - readToken_mult_modulo(code) { - let type = code === 42 ? 55 : 54; - let width = 1; - let next = this.input.charCodeAt(this.state.pos + 1); - if (code === 42 && next === 42) { - width++; - next = this.input.charCodeAt(this.state.pos + 2); - type = 57; - } - if (next === 61 && !this.state.inType) { - width++; - type = code === 37 ? 33 : 30; - } - this.finishOp(type, width); - } - readToken_pipe_amp(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === code) { - if (this.input.charCodeAt(this.state.pos + 2) === 61) { - this.finishOp(30, 3); - } else { - this.finishOp(code === 124 ? 41 : 42, 2); - } - return; - } - if (code === 124) { - if (next === 62) { - this.finishOp(39, 2); - return; - } - if (this.hasPlugin("recordAndTuple") && next === 125) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(9); - return; - } - if (this.hasPlugin("recordAndTuple") && next === 93) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.TupleExpressionBarIncorrectEndSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(4); - return; - } - } - if (next === 61) { - this.finishOp(30, 2); - return; - } - this.finishOp(code === 124 ? 43 : 45, 1); - } - readToken_caret() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 61 && !this.state.inType) { - this.finishOp(32, 2); - } else if (next === 94 && this.hasPlugin(["pipelineOperator", { - proposal: "hack", - topicToken: "^^" - }])) { - this.finishOp(37, 2); - const lookaheadCh = this.input.codePointAt(this.state.pos); - if (lookaheadCh === 94) { - this.unexpected(); - } - } else { - this.finishOp(44, 1); - } - } - readToken_atSign() { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 64 && this.hasPlugin(["pipelineOperator", { - proposal: "hack", - topicToken: "@@" - }])) { - this.finishOp(38, 2); - } else { - this.finishOp(26, 1); - } - } - readToken_plus_min(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === code) { - this.finishOp(34, 2); - return; - } - if (next === 61) { - this.finishOp(30, 2); - } else { - this.finishOp(53, 1); - } - } - readToken_lt() { - const { - pos - } = this.state; - const next = this.input.charCodeAt(pos + 1); - if (next === 60) { - if (this.input.charCodeAt(pos + 2) === 61) { - this.finishOp(30, 3); - return; - } - this.finishOp(51, 2); - return; - } - if (next === 61) { - this.finishOp(49, 2); - return; - } - this.finishOp(47, 1); - } - readToken_gt() { - const { - pos - } = this.state; - const next = this.input.charCodeAt(pos + 1); - if (next === 62) { - const size = this.input.charCodeAt(pos + 2) === 62 ? 3 : 2; - if (this.input.charCodeAt(pos + size) === 61) { - this.finishOp(30, size + 1); - return; - } - this.finishOp(52, size); - return; - } - if (next === 61) { - this.finishOp(49, 2); - return; - } - this.finishOp(48, 1); - } - readToken_eq_excl(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 61) { - this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2); - return; - } - if (code === 61 && next === 62) { - this.state.pos += 2; - this.finishToken(19); - return; - } - this.finishOp(code === 61 ? 29 : 35, 1); - } - readToken_question() { - const next = this.input.charCodeAt(this.state.pos + 1); - const next2 = this.input.charCodeAt(this.state.pos + 2); - if (next === 63) { - if (next2 === 61) { - this.finishOp(30, 3); - } else { - this.finishOp(40, 2); - } - } else if (next === 46 && !(next2 >= 48 && next2 <= 57)) { - this.state.pos += 2; - this.finishToken(18); - } else { - ++this.state.pos; - this.finishToken(17); - } - } - getTokenFromCode(code) { - switch (code) { - case 46: - this.readToken_dot(); - return; - case 40: - ++this.state.pos; - this.finishToken(10); - return; - case 41: - ++this.state.pos; - this.finishToken(11); - return; - case 59: - ++this.state.pos; - this.finishToken(13); - return; - case 44: - ++this.state.pos; - this.finishToken(12); - return; - case 91: - if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.TupleExpressionBarIncorrectStartSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(2); - } else { - ++this.state.pos; - this.finishToken(0); - } - return; - case 93: - ++this.state.pos; - this.finishToken(3); - return; - case 123: - if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { - if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { - throw this.raise(Errors.RecordExpressionBarIncorrectStartSyntaxType, { - at: this.state.curPosition() - }); - } - this.state.pos += 2; - this.finishToken(6); - } else { - ++this.state.pos; - this.finishToken(5); - } - return; - case 125: - ++this.state.pos; - this.finishToken(8); - return; - case 58: - if (this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58) { - this.finishOp(15, 2); - } else { - ++this.state.pos; - this.finishToken(14); - } - return; - case 63: - this.readToken_question(); - return; - case 96: - this.readTemplateToken(); - return; - case 48: - { - const next = this.input.charCodeAt(this.state.pos + 1); - if (next === 120 || next === 88) { - this.readRadixNumber(16); - return; - } - if (next === 111 || next === 79) { - this.readRadixNumber(8); - return; - } - if (next === 98 || next === 66) { - this.readRadixNumber(2); - return; - } - } - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: - this.readNumber(false); - return; - case 34: - case 39: - this.readString(code); - return; - case 47: - this.readToken_slash(); - return; - case 37: - case 42: - this.readToken_mult_modulo(code); - return; - case 124: - case 38: - this.readToken_pipe_amp(code); - return; - case 94: - this.readToken_caret(); - return; - case 43: - case 45: - this.readToken_plus_min(code); - return; - case 60: - this.readToken_lt(); - return; - case 62: - this.readToken_gt(); - return; - case 61: - case 33: - this.readToken_eq_excl(code); - return; - case 126: - this.finishOp(36, 1); - return; - case 64: - this.readToken_atSign(); - return; - case 35: - this.readToken_numberSign(); - return; - case 92: - this.readWord(); - return; - default: - if (isIdentifierStart(code)) { - this.readWord(code); - return; - } - } - throw this.raise(Errors.InvalidOrUnexpectedToken, { - at: this.state.curPosition(), - unexpected: String.fromCodePoint(code) - }); - } - finishOp(type, size) { - const str = this.input.slice(this.state.pos, this.state.pos + size); - this.state.pos += size; - this.finishToken(type, str); - } - readRegexp() { - const startLoc = this.state.startLoc; - const start = this.state.start + 1; - let escaped, inClass; - let { - pos - } = this.state; - for (;; ++pos) { - if (pos >= this.length) { - throw this.raise(Errors.UnterminatedRegExp, { - at: createPositionWithColumnOffset(startLoc, 1) - }); - } - const ch = this.input.charCodeAt(pos); - if (isNewLine(ch)) { - throw this.raise(Errors.UnterminatedRegExp, { - at: createPositionWithColumnOffset(startLoc, 1) - }); - } - if (escaped) { - escaped = false; - } else { - if (ch === 91) { - inClass = true; - } else if (ch === 93 && inClass) { - inClass = false; - } else if (ch === 47 && !inClass) { - break; - } - escaped = ch === 92; - } - } - const content = this.input.slice(start, pos); - ++pos; - let mods = ""; - const nextPos = () => createPositionWithColumnOffset(startLoc, pos + 2 - start); - while (pos < this.length) { - const cp = this.codePointAtPos(pos); - const char = String.fromCharCode(cp); - if (VALID_REGEX_FLAGS.has(cp)) { - if (cp === 118) { - if (mods.includes("u")) { - this.raise(Errors.IncompatibleRegExpUVFlags, { - at: nextPos() - }); - } - } else if (cp === 117) { - if (mods.includes("v")) { - this.raise(Errors.IncompatibleRegExpUVFlags, { - at: nextPos() - }); - } - } - if (mods.includes(char)) { - this.raise(Errors.DuplicateRegExpFlags, { - at: nextPos() - }); - } - } else if (isIdentifierChar(cp) || cp === 92) { - this.raise(Errors.MalformedRegExpFlags, { - at: nextPos() - }); - } else { - break; - } - ++pos; - mods += char; - } - this.state.pos = pos; - this.finishToken(135, { - pattern: content, - flags: mods - }); - } - readInt(radix, len, forceLen = false, allowNumSeparator = true) { - const { - n, - pos - } = readInt(this.input, this.state.pos, this.state.lineStart, this.state.curLine, radix, len, forceLen, allowNumSeparator, this.errorHandlers_readInt, false); - this.state.pos = pos; - return n; - } - readRadixNumber(radix) { - const startLoc = this.state.curPosition(); - let isBigInt = false; - this.state.pos += 2; - const val = this.readInt(radix); - if (val == null) { - this.raise(Errors.InvalidDigit, { - at: createPositionWithColumnOffset(startLoc, 2), - radix - }); - } - const next = this.input.charCodeAt(this.state.pos); - if (next === 110) { - ++this.state.pos; - isBigInt = true; - } else if (next === 109) { - throw this.raise(Errors.InvalidDecimal, { - at: startLoc - }); - } - if (isIdentifierStart(this.codePointAtPos(this.state.pos))) { - throw this.raise(Errors.NumberIdentifier, { - at: this.state.curPosition() - }); - } - if (isBigInt) { - const str = this.input.slice(startLoc.index, this.state.pos).replace(/[_n]/g, ""); - this.finishToken(133, str); - return; - } - this.finishToken(132, val); - } - readNumber(startsWithDot) { - const start = this.state.pos; - const startLoc = this.state.curPosition(); - let isFloat = false; - let isBigInt = false; - let isDecimal = false; - let hasExponent = false; - let isOctal = false; - if (!startsWithDot && this.readInt(10) === null) { - this.raise(Errors.InvalidNumber, { - at: this.state.curPosition() - }); - } - const hasLeadingZero = this.state.pos - start >= 2 && this.input.charCodeAt(start) === 48; - if (hasLeadingZero) { - const integer = this.input.slice(start, this.state.pos); - this.recordStrictModeErrors(Errors.StrictOctalLiteral, { - at: startLoc - }); - if (!this.state.strict) { - const underscorePos = integer.indexOf("_"); - if (underscorePos > 0) { - this.raise(Errors.ZeroDigitNumericSeparator, { - at: createPositionWithColumnOffset(startLoc, underscorePos) - }); - } - } - isOctal = hasLeadingZero && !/[89]/.test(integer); - } - let next = this.input.charCodeAt(this.state.pos); - if (next === 46 && !isOctal) { - ++this.state.pos; - this.readInt(10); - isFloat = true; - next = this.input.charCodeAt(this.state.pos); - } - if ((next === 69 || next === 101) && !isOctal) { - next = this.input.charCodeAt(++this.state.pos); - if (next === 43 || next === 45) { - ++this.state.pos; - } - if (this.readInt(10) === null) { - this.raise(Errors.InvalidOrMissingExponent, { - at: startLoc - }); - } - isFloat = true; - hasExponent = true; - next = this.input.charCodeAt(this.state.pos); - } - if (next === 110) { - if (isFloat || hasLeadingZero) { - this.raise(Errors.InvalidBigIntLiteral, { - at: startLoc - }); - } - ++this.state.pos; - isBigInt = true; - } - if (next === 109) { - this.expectPlugin("decimal", this.state.curPosition()); - if (hasExponent || hasLeadingZero) { - this.raise(Errors.InvalidDecimal, { - at: startLoc - }); - } - ++this.state.pos; - isDecimal = true; - } - if (isIdentifierStart(this.codePointAtPos(this.state.pos))) { - throw this.raise(Errors.NumberIdentifier, { - at: this.state.curPosition() - }); - } - const str = this.input.slice(start, this.state.pos).replace(/[_mn]/g, ""); - if (isBigInt) { - this.finishToken(133, str); - return; - } - if (isDecimal) { - this.finishToken(134, str); - return; - } - const val = isOctal ? parseInt(str, 8) : parseFloat(str); - this.finishToken(132, val); - } - readCodePoint(throwOnInvalid) { - const { - code, - pos - } = readCodePoint(this.input, this.state.pos, this.state.lineStart, this.state.curLine, throwOnInvalid, this.errorHandlers_readCodePoint); - this.state.pos = pos; - return code; - } - readString(quote) { - const { - str, - pos, - curLine, - lineStart - } = readStringContents(quote === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string); - this.state.pos = pos + 1; - this.state.lineStart = lineStart; - this.state.curLine = curLine; - this.finishToken(131, str); - } - readTemplateContinuation() { - if (!this.match(8)) { - this.unexpected(null, 8); - } - this.state.pos--; - this.readTemplateToken(); - } - readTemplateToken() { - const opening = this.input[this.state.pos]; - const { - str, - firstInvalidLoc, - pos, - curLine, - lineStart - } = readStringContents("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template); - this.state.pos = pos + 1; - this.state.lineStart = lineStart; - this.state.curLine = curLine; - if (firstInvalidLoc) { - this.state.firstInvalidTemplateEscapePos = new Position(firstInvalidLoc.curLine, firstInvalidLoc.pos - firstInvalidLoc.lineStart, firstInvalidLoc.pos); - } - if (this.input.codePointAt(pos) === 96) { - this.finishToken(24, firstInvalidLoc ? null : opening + str + "`"); - } else { - this.state.pos++; - this.finishToken(25, firstInvalidLoc ? null : opening + str + "${"); - } - } - recordStrictModeErrors(toParseError, { - at - }) { - const index = at.index; - if (this.state.strict && !this.state.strictErrors.has(index)) { - this.raise(toParseError, { - at - }); - } else { - this.state.strictErrors.set(index, [toParseError, at]); - } - } - readWord1(firstCode) { - this.state.containsEsc = false; - let word = ""; - const start = this.state.pos; - let chunkStart = this.state.pos; - if (firstCode !== undefined) { - this.state.pos += firstCode <= 0xffff ? 1 : 2; - } - while (this.state.pos < this.length) { - const ch = this.codePointAtPos(this.state.pos); - if (isIdentifierChar(ch)) { - this.state.pos += ch <= 0xffff ? 1 : 2; - } else if (ch === 92) { - this.state.containsEsc = true; - word += this.input.slice(chunkStart, this.state.pos); - const escStart = this.state.curPosition(); - const identifierCheck = this.state.pos === start ? isIdentifierStart : isIdentifierChar; - if (this.input.charCodeAt(++this.state.pos) !== 117) { - this.raise(Errors.MissingUnicodeEscape, { - at: this.state.curPosition() - }); - chunkStart = this.state.pos - 1; - continue; - } - ++this.state.pos; - const esc = this.readCodePoint(true); - if (esc !== null) { - if (!identifierCheck(esc)) { - this.raise(Errors.EscapedCharNotAnIdentifier, { - at: escStart - }); - } - word += String.fromCodePoint(esc); - } - chunkStart = this.state.pos; - } else { - break; - } - } - return word + this.input.slice(chunkStart, this.state.pos); - } - readWord(firstCode) { - const word = this.readWord1(firstCode); - const type = keywords$1.get(word); - if (type !== undefined) { - this.finishToken(type, tokenLabelName(type)); - } else { - this.finishToken(130, word); - } - } - checkKeywordEscapes() { - const { - type - } = this.state; - if (tokenIsKeyword(type) && this.state.containsEsc) { - this.raise(Errors.InvalidEscapedReservedWord, { - at: this.state.startLoc, - reservedWord: tokenLabelName(type) - }); - } - } - raise(toParseError, raiseProperties) { - const { - at - } = raiseProperties, - details = _objectWithoutPropertiesLoose(raiseProperties, _excluded); - const loc = at instanceof Position ? at : at.loc.start; - const error = toParseError({ - loc, - details - }); - if (!this.options.errorRecovery) throw error; - if (!this.isLookahead) this.state.errors.push(error); - return error; - } - raiseOverwrite(toParseError, raiseProperties) { - const { - at - } = raiseProperties, - details = _objectWithoutPropertiesLoose(raiseProperties, _excluded2); - const loc = at instanceof Position ? at : at.loc.start; - const pos = loc.index; - const errors = this.state.errors; - for (let i = errors.length - 1; i >= 0; i--) { - const error = errors[i]; - if (error.loc.index === pos) { - return errors[i] = toParseError({ - loc, - details - }); - } - if (error.loc.index < pos) break; - } - return this.raise(toParseError, raiseProperties); - } - updateContext(prevType) {} - unexpected(loc, type) { - throw this.raise(Errors.UnexpectedToken, { - expected: type ? tokenLabelName(type) : null, - at: loc != null ? loc : this.state.startLoc - }); - } - expectPlugin(pluginName, loc) { - if (this.hasPlugin(pluginName)) { - return true; - } - throw this.raise(Errors.MissingPlugin, { - at: loc != null ? loc : this.state.startLoc, - missingPlugin: [pluginName] - }); - } - expectOnePlugin(pluginNames) { - if (!pluginNames.some(name => this.hasPlugin(name))) { - throw this.raise(Errors.MissingOneOfPlugins, { - at: this.state.startLoc, - missingPlugin: pluginNames - }); - } - } - errorBuilder(error) { - return (pos, lineStart, curLine) => { - this.raise(error, { - at: buildPosition(pos, lineStart, curLine) - }); - }; - } -} -class ClassScope { - constructor() { - this.privateNames = new Set(); - this.loneAccessors = new Map(); - this.undefinedPrivateNames = new Map(); - } -} -class ClassScopeHandler { - constructor(parser) { - this.parser = void 0; - this.stack = []; - this.undefinedPrivateNames = new Map(); - this.parser = parser; - } - current() { - return this.stack[this.stack.length - 1]; - } - enter() { - this.stack.push(new ClassScope()); - } - exit() { - const oldClassScope = this.stack.pop(); - const current = this.current(); - for (const [name, loc] of Array.from(oldClassScope.undefinedPrivateNames)) { - if (current) { - if (!current.undefinedPrivateNames.has(name)) { - current.undefinedPrivateNames.set(name, loc); - } - } else { - this.parser.raise(Errors.InvalidPrivateFieldResolution, { - at: loc, - identifierName: name - }); - } - } - } - declarePrivateName(name, elementType, loc) { - const { - privateNames, - loneAccessors, - undefinedPrivateNames - } = this.current(); - let redefined = privateNames.has(name); - if (elementType & CLASS_ELEMENT_KIND_ACCESSOR) { - const accessor = redefined && loneAccessors.get(name); - if (accessor) { - const oldStatic = accessor & CLASS_ELEMENT_FLAG_STATIC; - const newStatic = elementType & CLASS_ELEMENT_FLAG_STATIC; - const oldKind = accessor & CLASS_ELEMENT_KIND_ACCESSOR; - const newKind = elementType & CLASS_ELEMENT_KIND_ACCESSOR; - redefined = oldKind === newKind || oldStatic !== newStatic; - if (!redefined) loneAccessors.delete(name); - } else if (!redefined) { - loneAccessors.set(name, elementType); - } - } - if (redefined) { - this.parser.raise(Errors.PrivateNameRedeclaration, { - at: loc, - identifierName: name - }); - } - privateNames.add(name); - undefinedPrivateNames.delete(name); - } - usePrivateName(name, loc) { - let classScope; - for (classScope of this.stack) { - if (classScope.privateNames.has(name)) return; - } - if (classScope) { - classScope.undefinedPrivateNames.set(name, loc); - } else { - this.parser.raise(Errors.InvalidPrivateFieldResolution, { - at: loc, - identifierName: name - }); - } - } -} -const kExpression = 0, - kMaybeArrowParameterDeclaration = 1, - kMaybeAsyncArrowParameterDeclaration = 2, - kParameterDeclaration = 3; -class ExpressionScope { - constructor(type = kExpression) { - this.type = void 0; - this.type = type; - } - canBeArrowParameterDeclaration() { - return this.type === kMaybeAsyncArrowParameterDeclaration || this.type === kMaybeArrowParameterDeclaration; - } - isCertainlyParameterDeclaration() { - return this.type === kParameterDeclaration; - } -} -class ArrowHeadParsingScope extends ExpressionScope { - constructor(type) { - super(type); - this.declarationErrors = new Map(); - } - recordDeclarationError(ParsingErrorClass, { - at - }) { - const index = at.index; - this.declarationErrors.set(index, [ParsingErrorClass, at]); - } - clearDeclarationError(index) { - this.declarationErrors.delete(index); - } - iterateErrors(iterator) { - this.declarationErrors.forEach(iterator); - } -} -class ExpressionScopeHandler { - constructor(parser) { - this.parser = void 0; - this.stack = [new ExpressionScope()]; - this.parser = parser; - } - enter(scope) { - this.stack.push(scope); - } - exit() { - this.stack.pop(); - } - recordParameterInitializerError(toParseError, { - at: node - }) { - const origin = { - at: node.loc.start - }; - const { - stack - } = this; - let i = stack.length - 1; - let scope = stack[i]; - while (!scope.isCertainlyParameterDeclaration()) { - if (scope.canBeArrowParameterDeclaration()) { - scope.recordDeclarationError(toParseError, origin); - } else { - return; - } - scope = stack[--i]; - } - this.parser.raise(toParseError, origin); - } - recordArrowParameterBindingError(error, { - at: node - }) { - const { - stack - } = this; - const scope = stack[stack.length - 1]; - const origin = { - at: node.loc.start - }; - if (scope.isCertainlyParameterDeclaration()) { - this.parser.raise(error, origin); - } else if (scope.canBeArrowParameterDeclaration()) { - scope.recordDeclarationError(error, origin); - } else { - return; - } - } - recordAsyncArrowParametersError({ - at - }) { - const { - stack - } = this; - let i = stack.length - 1; - let scope = stack[i]; - while (scope.canBeArrowParameterDeclaration()) { - if (scope.type === kMaybeAsyncArrowParameterDeclaration) { - scope.recordDeclarationError(Errors.AwaitBindingIdentifier, { - at - }); - } - scope = stack[--i]; - } - } - validateAsPattern() { - const { - stack - } = this; - const currentScope = stack[stack.length - 1]; - if (!currentScope.canBeArrowParameterDeclaration()) return; - currentScope.iterateErrors(([toParseError, loc]) => { - this.parser.raise(toParseError, { - at: loc - }); - let i = stack.length - 2; - let scope = stack[i]; - while (scope.canBeArrowParameterDeclaration()) { - scope.clearDeclarationError(loc.index); - scope = stack[--i]; - } - }); - } -} -function newParameterDeclarationScope() { - return new ExpressionScope(kParameterDeclaration); -} -function newArrowHeadScope() { - return new ArrowHeadParsingScope(kMaybeArrowParameterDeclaration); -} -function newAsyncArrowScope() { - return new ArrowHeadParsingScope(kMaybeAsyncArrowParameterDeclaration); -} -function newExpressionScope() { - return new ExpressionScope(); -} -const PARAM = 0b0000, - PARAM_YIELD = 0b0001, - PARAM_AWAIT = 0b0010, - PARAM_RETURN = 0b0100, - PARAM_IN = 0b1000; -class ProductionParameterHandler { - constructor() { - this.stacks = []; - } - enter(flags) { - this.stacks.push(flags); - } - exit() { - this.stacks.pop(); - } - currentFlags() { - return this.stacks[this.stacks.length - 1]; - } - get hasAwait() { - return (this.currentFlags() & PARAM_AWAIT) > 0; - } - get hasYield() { - return (this.currentFlags() & PARAM_YIELD) > 0; - } - get hasReturn() { - return (this.currentFlags() & PARAM_RETURN) > 0; - } - get hasIn() { - return (this.currentFlags() & PARAM_IN) > 0; - } -} -function functionFlags(isAsync, isGenerator) { - return (isAsync ? PARAM_AWAIT : 0) | (isGenerator ? PARAM_YIELD : 0); -} -class UtilParser extends Tokenizer { - addExtra(node, key, value, enumerable = true) { - if (!node) return; - const extra = node.extra = node.extra || {}; - if (enumerable) { - extra[key] = value; - } else { - Object.defineProperty(extra, key, { - enumerable, - value - }); - } - } - isContextual(token) { - return this.state.type === token && !this.state.containsEsc; - } - isUnparsedContextual(nameStart, name) { - const nameEnd = nameStart + name.length; - if (this.input.slice(nameStart, nameEnd) === name) { - const nextCh = this.input.charCodeAt(nameEnd); - return !(isIdentifierChar(nextCh) || (nextCh & 0xfc00) === 0xd800); - } - return false; - } - isLookaheadContextual(name) { - const next = this.nextTokenStart(); - return this.isUnparsedContextual(next, name); - } - eatContextual(token) { - if (this.isContextual(token)) { - this.next(); - return true; - } - return false; - } - expectContextual(token, toParseError) { - if (!this.eatContextual(token)) { - if (toParseError != null) { - throw this.raise(toParseError, { - at: this.state.startLoc - }); - } - this.unexpected(null, token); - } - } - canInsertSemicolon() { - return this.match(137) || this.match(8) || this.hasPrecedingLineBreak(); - } - hasPrecedingLineBreak() { - return lineBreak.test(this.input.slice(this.state.lastTokEndLoc.index, this.state.start)); - } - hasFollowingLineBreak() { - skipWhiteSpaceToLineBreak.lastIndex = this.state.end; - return skipWhiteSpaceToLineBreak.test(this.input); - } - isLineTerminator() { - return this.eat(13) || this.canInsertSemicolon(); - } - semicolon(allowAsi = true) { - if (allowAsi ? this.isLineTerminator() : this.eat(13)) return; - this.raise(Errors.MissingSemicolon, { - at: this.state.lastTokEndLoc - }); - } - expect(type, loc) { - this.eat(type) || this.unexpected(loc, type); - } - tryParse(fn, oldState = this.state.clone()) { - const abortSignal = { - node: null - }; - try { - const node = fn((node = null) => { - abortSignal.node = node; - throw abortSignal; - }); - if (this.state.errors.length > oldState.errors.length) { - const failState = this.state; - this.state = oldState; - this.state.tokensLength = failState.tokensLength; - return { - node, - error: failState.errors[oldState.errors.length], - thrown: false, - aborted: false, - failState - }; - } - return { - node, - error: null, - thrown: false, - aborted: false, - failState: null - }; - } catch (error) { - const failState = this.state; - this.state = oldState; - if (error instanceof SyntaxError) { - return { - node: null, - error, - thrown: true, - aborted: false, - failState - }; - } - if (error === abortSignal) { - return { - node: abortSignal.node, - error: null, - thrown: false, - aborted: true, - failState - }; - } - throw error; - } - } - checkExpressionErrors(refExpressionErrors, andThrow) { - if (!refExpressionErrors) return false; - const { - shorthandAssignLoc, - doubleProtoLoc, - privateKeyLoc, - optionalParametersLoc - } = refExpressionErrors; - const hasErrors = !!shorthandAssignLoc || !!doubleProtoLoc || !!optionalParametersLoc || !!privateKeyLoc; - if (!andThrow) { - return hasErrors; - } - if (shorthandAssignLoc != null) { - this.raise(Errors.InvalidCoverInitializedName, { - at: shorthandAssignLoc - }); - } - if (doubleProtoLoc != null) { - this.raise(Errors.DuplicateProto, { - at: doubleProtoLoc - }); - } - if (privateKeyLoc != null) { - this.raise(Errors.UnexpectedPrivateField, { - at: privateKeyLoc - }); - } - if (optionalParametersLoc != null) { - this.unexpected(optionalParametersLoc); - } - } - isLiteralPropertyName() { - return tokenIsLiteralPropertyName(this.state.type); - } - isPrivateName(node) { - return node.type === "PrivateName"; - } - getPrivateNameSV(node) { - return node.id.name; - } - hasPropertyAsPrivateName(node) { - return (node.type === "MemberExpression" || node.type === "OptionalMemberExpression") && this.isPrivateName(node.property); - } - isObjectProperty(node) { - return node.type === "ObjectProperty"; - } - isObjectMethod(node) { - return node.type === "ObjectMethod"; - } - initializeScopes(inModule = this.options.sourceType === "module") { - const oldLabels = this.state.labels; - this.state.labels = []; - const oldExportedIdentifiers = this.exportedIdentifiers; - this.exportedIdentifiers = new Set(); - const oldInModule = this.inModule; - this.inModule = inModule; - const oldScope = this.scope; - const ScopeHandler = this.getScopeHandler(); - this.scope = new ScopeHandler(this, inModule); - const oldProdParam = this.prodParam; - this.prodParam = new ProductionParameterHandler(); - const oldClassScope = this.classScope; - this.classScope = new ClassScopeHandler(this); - const oldExpressionScope = this.expressionScope; - this.expressionScope = new ExpressionScopeHandler(this); - return () => { - this.state.labels = oldLabels; - this.exportedIdentifiers = oldExportedIdentifiers; - this.inModule = oldInModule; - this.scope = oldScope; - this.prodParam = oldProdParam; - this.classScope = oldClassScope; - this.expressionScope = oldExpressionScope; - }; - } - enterInitialScopes() { - let paramFlags = PARAM; - if (this.inModule) { - paramFlags |= PARAM_AWAIT; - } - this.scope.enter(SCOPE_PROGRAM); - this.prodParam.enter(paramFlags); - } - checkDestructuringPrivate(refExpressionErrors) { - const { - privateKeyLoc - } = refExpressionErrors; - if (privateKeyLoc !== null) { - this.expectPlugin("destructuringPrivate", privateKeyLoc); - } - } -} -class ExpressionErrors { - constructor() { - this.shorthandAssignLoc = null; - this.doubleProtoLoc = null; - this.privateKeyLoc = null; - this.optionalParametersLoc = null; - } -} -class Node { - constructor(parser, pos, loc) { - this.type = ""; - this.start = pos; - this.end = 0; - this.loc = new SourceLocation(loc); - if (parser != null && parser.options.ranges) this.range = [pos, 0]; - if (parser != null && parser.filename) this.loc.filename = parser.filename; - } -} -const NodePrototype = Node.prototype; -{ - NodePrototype.__clone = function () { - const newNode = new Node(undefined, this.start, this.loc.start); - const keys = Object.keys(this); - for (let i = 0, length = keys.length; i < length; i++) { - const key = keys[i]; - if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") { - newNode[key] = this[key]; - } - } - return newNode; - }; -} -function clonePlaceholder(node) { - return cloneIdentifier(node); -} -function cloneIdentifier(node) { - const { - type, - start, - end, - loc, - range, - extra, - name - } = node; - const cloned = Object.create(NodePrototype); - cloned.type = type; - cloned.start = start; - cloned.end = end; - cloned.loc = loc; - cloned.range = range; - cloned.extra = extra; - cloned.name = name; - if (type === "Placeholder") { - cloned.expectedNode = node.expectedNode; - } - return cloned; -} -function cloneStringLiteral(node) { - const { - type, - start, - end, - loc, - range, - extra - } = node; - if (type === "Placeholder") { - return clonePlaceholder(node); - } - const cloned = Object.create(NodePrototype); - cloned.type = type; - cloned.start = start; - cloned.end = end; - cloned.loc = loc; - cloned.range = range; - if (node.raw !== undefined) { - cloned.raw = node.raw; - } else { - cloned.extra = extra; - } - cloned.value = node.value; - return cloned; -} -class NodeUtils extends UtilParser { - startNode() { - return new Node(this, this.state.start, this.state.startLoc); - } - startNodeAt(loc) { - return new Node(this, loc.index, loc); - } - startNodeAtNode(type) { - return this.startNodeAt(type.loc.start); - } - finishNode(node, type) { - return this.finishNodeAt(node, type, this.state.lastTokEndLoc); - } - finishNodeAt(node, type, endLoc) { - node.type = type; - node.end = endLoc.index; - node.loc.end = endLoc; - if (this.options.ranges) node.range[1] = endLoc.index; - if (this.options.attachComment) this.processComment(node); - return node; - } - resetStartLocation(node, startLoc) { - node.start = startLoc.index; - node.loc.start = startLoc; - if (this.options.ranges) node.range[0] = startLoc.index; - } - resetEndLocation(node, endLoc = this.state.lastTokEndLoc) { - node.end = endLoc.index; - node.loc.end = endLoc; - if (this.options.ranges) node.range[1] = endLoc.index; - } - resetStartLocationFromNode(node, locationNode) { - this.resetStartLocation(node, locationNode.loc.start); - } -} -const reservedTypes = new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]); -const FlowErrors = ParseErrorEnum`flow`({ - AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.", - AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.", - AssignReservedType: ({ - reservedType - }) => `Cannot overwrite reserved type ${reservedType}.`, - DeclareClassElement: "The `declare` modifier can only appear on class fields.", - DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.", - DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.", - EnumBooleanMemberNotInitialized: ({ - memberName, - enumName - }) => `Boolean enum members need to be initialized. Use either \`${memberName} = true,\` or \`${memberName} = false,\` in enum \`${enumName}\`.`, - EnumDuplicateMemberName: ({ - memberName, - enumName - }) => `Enum member names need to be unique, but the name \`${memberName}\` has already been used before in enum \`${enumName}\`.`, - EnumInconsistentMemberValues: ({ - enumName - }) => `Enum \`${enumName}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`, - EnumInvalidExplicitType: ({ - invalidEnumType, - enumName - }) => `Enum type \`${invalidEnumType}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`, - EnumInvalidExplicitTypeUnknownSupplied: ({ - enumName - }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`, - EnumInvalidMemberInitializerPrimaryType: ({ - enumName, - memberName, - explicitType - }) => `Enum \`${enumName}\` has type \`${explicitType}\`, so the initializer of \`${memberName}\` needs to be a ${explicitType} literal.`, - EnumInvalidMemberInitializerSymbolType: ({ - enumName, - memberName - }) => `Symbol enum members cannot be initialized. Use \`${memberName},\` in enum \`${enumName}\`.`, - EnumInvalidMemberInitializerUnknownType: ({ - enumName, - memberName - }) => `The enum member initializer for \`${memberName}\` needs to be a literal (either a boolean, number, or string) in enum \`${enumName}\`.`, - EnumInvalidMemberName: ({ - enumName, - memberName, - suggestion - }) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${memberName}\`, consider using \`${suggestion}\`, in enum \`${enumName}\`.`, - EnumNumberMemberNotInitialized: ({ - enumName, - memberName - }) => `Number enum members need to be initialized, e.g. \`${memberName} = 1\` in enum \`${enumName}\`.`, - EnumStringMemberInconsistentlyInitailized: ({ - enumName - }) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${enumName}\`.`, - GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.", - ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.", - ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.", - InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.", - InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.", - InexactVariance: "Explicit inexact syntax cannot have variance.", - InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.", - MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", - NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.", - NestedFlowComment: "Cannot have a flow comment inside another flow comment.", - PatternIsOptional: Object.assign({ - message: "A binding pattern parameter cannot be optional in an implementation signature." - }, { - reasonCode: "OptionalBindingPattern" - }), - SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.", - SpreadVariance: "Spread properties cannot have variance.", - ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.", - ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", - ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.", - ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.", - ThisParamNoDefault: "The `this` parameter may not have a default value.", - TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", - TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.", - UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.", - UnexpectedReservedType: ({ - reservedType - }) => `Unexpected reserved type ${reservedType}.`, - UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.", - UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.", - UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.", - UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".', - UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.", - UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.", - UnsupportedDeclareExportKind: ({ - unsupportedExportKind, - suggestion - }) => `\`declare export ${unsupportedExportKind}\` is not supported. Use \`${suggestion}\` instead.`, - UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.", - UnterminatedFlowComment: "Unterminated flow-comment." -}); -function isEsModuleType(bodyElement) { - return bodyElement.type === "DeclareExportAllDeclaration" || bodyElement.type === "DeclareExportDeclaration" && (!bodyElement.declaration || bodyElement.declaration.type !== "TypeAlias" && bodyElement.declaration.type !== "InterfaceDeclaration"); -} -function hasTypeImportKind(node) { - return node.importKind === "type" || node.importKind === "typeof"; -} -const exportSuggestions = { - const: "declare export var", - let: "declare export var", - type: "export type", - interface: "export interface" -}; -function partition(list, test) { - const list1 = []; - const list2 = []; - for (let i = 0; i < list.length; i++) { - (test(list[i], i, list) ? list1 : list2).push(list[i]); - } - return [list1, list2]; -} -const FLOW_PRAGMA_REGEX = /\*?\s*@((?:no)?flow)\b/; -var flow = superClass => class FlowParserMixin extends superClass { - constructor(...args) { - super(...args); - this.flowPragma = undefined; - } - getScopeHandler() { - return FlowScopeHandler; - } - shouldParseTypes() { - return this.getPluginOption("flow", "all") || this.flowPragma === "flow"; - } - shouldParseEnums() { - return !!this.getPluginOption("flow", "enums"); - } - finishToken(type, val) { - if (type !== 131 && type !== 13 && type !== 28) { - if (this.flowPragma === undefined) { - this.flowPragma = null; - } - } - super.finishToken(type, val); - } - addComment(comment) { - if (this.flowPragma === undefined) { - const matches = FLOW_PRAGMA_REGEX.exec(comment.value); - if (!matches) ;else if (matches[1] === "flow") { - this.flowPragma = "flow"; - } else if (matches[1] === "noflow") { - this.flowPragma = "noflow"; - } else { - throw new Error("Unexpected flow pragma"); - } - } - super.addComment(comment); - } - flowParseTypeInitialiser(tok) { - const oldInType = this.state.inType; - this.state.inType = true; - this.expect(tok || 14); - const type = this.flowParseType(); - this.state.inType = oldInType; - return type; - } - flowParsePredicate() { - const node = this.startNode(); - const moduloLoc = this.state.startLoc; - this.next(); - this.expectContextual(108); - if (this.state.lastTokStart > moduloLoc.index + 1) { - this.raise(FlowErrors.UnexpectedSpaceBetweenModuloChecks, { - at: moduloLoc - }); - } - if (this.eat(10)) { - node.value = super.parseExpression(); - this.expect(11); - return this.finishNode(node, "DeclaredPredicate"); - } else { - return this.finishNode(node, "InferredPredicate"); - } - } - flowParseTypeAndPredicateInitialiser() { - const oldInType = this.state.inType; - this.state.inType = true; - this.expect(14); - let type = null; - let predicate = null; - if (this.match(54)) { - this.state.inType = oldInType; - predicate = this.flowParsePredicate(); - } else { - type = this.flowParseType(); - this.state.inType = oldInType; - if (this.match(54)) { - predicate = this.flowParsePredicate(); - } - } - return [type, predicate]; - } - flowParseDeclareClass(node) { - this.next(); - this.flowParseInterfaceish(node, true); - return this.finishNode(node, "DeclareClass"); - } - flowParseDeclareFunction(node) { - this.next(); - const id = node.id = this.parseIdentifier(); - const typeNode = this.startNode(); - const typeContainer = this.startNode(); - if (this.match(47)) { - typeNode.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - typeNode.typeParameters = null; - } - this.expect(10); - const tmp = this.flowParseFunctionTypeParams(); - typeNode.params = tmp.params; - typeNode.rest = tmp.rest; - typeNode.this = tmp._this; - this.expect(11); - [typeNode.returnType, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); - typeContainer.typeAnnotation = this.finishNode(typeNode, "FunctionTypeAnnotation"); - id.typeAnnotation = this.finishNode(typeContainer, "TypeAnnotation"); - this.resetEndLocation(id); - this.semicolon(); - this.scope.declareName(node.id.name, BIND_FLOW_DECLARE_FN, node.id.loc.start); - return this.finishNode(node, "DeclareFunction"); - } - flowParseDeclare(node, insideModule) { - if (this.match(80)) { - return this.flowParseDeclareClass(node); - } else if (this.match(68)) { - return this.flowParseDeclareFunction(node); - } else if (this.match(74)) { - return this.flowParseDeclareVariable(node); - } else if (this.eatContextual(125)) { - if (this.match(16)) { - return this.flowParseDeclareModuleExports(node); - } else { - if (insideModule) { - this.raise(FlowErrors.NestedDeclareModule, { - at: this.state.lastTokStartLoc - }); - } - return this.flowParseDeclareModule(node); - } - } else if (this.isContextual(128)) { - return this.flowParseDeclareTypeAlias(node); - } else if (this.isContextual(129)) { - return this.flowParseDeclareOpaqueType(node); - } else if (this.isContextual(127)) { - return this.flowParseDeclareInterface(node); - } else if (this.match(82)) { - return this.flowParseDeclareExportDeclaration(node, insideModule); - } else { - this.unexpected(); - } - } - flowParseDeclareVariable(node) { - this.next(); - node.id = this.flowParseTypeAnnotatableIdentifier(true); - this.scope.declareName(node.id.name, BIND_VAR, node.id.loc.start); - this.semicolon(); - return this.finishNode(node, "DeclareVariable"); - } - flowParseDeclareModule(node) { - this.scope.enter(SCOPE_OTHER); - if (this.match(131)) { - node.id = super.parseExprAtom(); - } else { - node.id = this.parseIdentifier(); - } - const bodyNode = node.body = this.startNode(); - const body = bodyNode.body = []; - this.expect(5); - while (!this.match(8)) { - let bodyNode = this.startNode(); - if (this.match(83)) { - this.next(); - if (!this.isContextual(128) && !this.match(87)) { - this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule, { - at: this.state.lastTokStartLoc - }); - } - super.parseImport(bodyNode); - } else { - this.expectContextual(123, FlowErrors.UnsupportedStatementInDeclareModule); - bodyNode = this.flowParseDeclare(bodyNode, true); - } - body.push(bodyNode); - } - this.scope.exit(); - this.expect(8); - this.finishNode(bodyNode, "BlockStatement"); - let kind = null; - let hasModuleExport = false; - body.forEach(bodyElement => { - if (isEsModuleType(bodyElement)) { - if (kind === "CommonJS") { - this.raise(FlowErrors.AmbiguousDeclareModuleKind, { - at: bodyElement - }); - } - kind = "ES"; - } else if (bodyElement.type === "DeclareModuleExports") { - if (hasModuleExport) { - this.raise(FlowErrors.DuplicateDeclareModuleExports, { - at: bodyElement - }); - } - if (kind === "ES") { - this.raise(FlowErrors.AmbiguousDeclareModuleKind, { - at: bodyElement - }); - } - kind = "CommonJS"; - hasModuleExport = true; - } - }); - node.kind = kind || "CommonJS"; - return this.finishNode(node, "DeclareModule"); - } - flowParseDeclareExportDeclaration(node, insideModule) { - this.expect(82); - if (this.eat(65)) { - if (this.match(68) || this.match(80)) { - node.declaration = this.flowParseDeclare(this.startNode()); - } else { - node.declaration = this.flowParseType(); - this.semicolon(); - } - node.default = true; - return this.finishNode(node, "DeclareExportDeclaration"); - } else { - if (this.match(75) || this.isLet() || (this.isContextual(128) || this.isContextual(127)) && !insideModule) { - const label = this.state.value; - throw this.raise(FlowErrors.UnsupportedDeclareExportKind, { - at: this.state.startLoc, - unsupportedExportKind: label, - suggestion: exportSuggestions[label] - }); - } - if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(129)) { - node.declaration = this.flowParseDeclare(this.startNode()); - node.default = false; - return this.finishNode(node, "DeclareExportDeclaration"); - } else if (this.match(55) || this.match(5) || this.isContextual(127) || this.isContextual(128) || this.isContextual(129)) { - node = this.parseExport(node, null); - if (node.type === "ExportNamedDeclaration") { - node.type = "ExportDeclaration"; - node.default = false; - delete node.exportKind; - } - node.type = "Declare" + node.type; - return node; - } - } - this.unexpected(); - } - flowParseDeclareModuleExports(node) { - this.next(); - this.expectContextual(109); - node.typeAnnotation = this.flowParseTypeAnnotation(); - this.semicolon(); - return this.finishNode(node, "DeclareModuleExports"); - } - flowParseDeclareTypeAlias(node) { - this.next(); - const finished = this.flowParseTypeAlias(node); - finished.type = "DeclareTypeAlias"; - return finished; - } - flowParseDeclareOpaqueType(node) { - this.next(); - const finished = this.flowParseOpaqueType(node, true); - finished.type = "DeclareOpaqueType"; - return finished; - } - flowParseDeclareInterface(node) { - this.next(); - this.flowParseInterfaceish(node, false); - return this.finishNode(node, "DeclareInterface"); - } - flowParseInterfaceish(node, isClass) { - node.id = this.flowParseRestrictedIdentifier(!isClass, true); - this.scope.declareName(node.id.name, isClass ? BIND_FUNCTION : BIND_LEXICAL, node.id.loc.start); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - node.typeParameters = null; - } - node.extends = []; - if (this.eat(81)) { - do { - node.extends.push(this.flowParseInterfaceExtends()); - } while (!isClass && this.eat(12)); - } - if (isClass) { - node.implements = []; - node.mixins = []; - if (this.eatContextual(115)) { - do { - node.mixins.push(this.flowParseInterfaceExtends()); - } while (this.eat(12)); - } - if (this.eatContextual(111)) { - do { - node.implements.push(this.flowParseInterfaceExtends()); - } while (this.eat(12)); - } - } - node.body = this.flowParseObjectType({ - allowStatic: isClass, - allowExact: false, - allowSpread: false, - allowProto: isClass, - allowInexact: false - }); - } - flowParseInterfaceExtends() { - const node = this.startNode(); - node.id = this.flowParseQualifiedTypeIdentifier(); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterInstantiation(); - } else { - node.typeParameters = null; - } - return this.finishNode(node, "InterfaceExtends"); - } - flowParseInterface(node) { - this.flowParseInterfaceish(node, false); - return this.finishNode(node, "InterfaceDeclaration"); - } - checkNotUnderscore(word) { - if (word === "_") { - this.raise(FlowErrors.UnexpectedReservedUnderscore, { - at: this.state.startLoc - }); - } - } - checkReservedType(word, startLoc, declaration) { - if (!reservedTypes.has(word)) return; - this.raise(declaration ? FlowErrors.AssignReservedType : FlowErrors.UnexpectedReservedType, { - at: startLoc, - reservedType: word - }); - } - flowParseRestrictedIdentifier(liberal, declaration) { - this.checkReservedType(this.state.value, this.state.startLoc, declaration); - return this.parseIdentifier(liberal); - } - flowParseTypeAlias(node) { - node.id = this.flowParseRestrictedIdentifier(false, true); - this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.loc.start); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - node.typeParameters = null; - } - node.right = this.flowParseTypeInitialiser(29); - this.semicolon(); - return this.finishNode(node, "TypeAlias"); - } - flowParseOpaqueType(node, declare) { - this.expectContextual(128); - node.id = this.flowParseRestrictedIdentifier(true, true); - this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.loc.start); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } else { - node.typeParameters = null; - } - node.supertype = null; - if (this.match(14)) { - node.supertype = this.flowParseTypeInitialiser(14); - } - node.impltype = null; - if (!declare) { - node.impltype = this.flowParseTypeInitialiser(29); - } - this.semicolon(); - return this.finishNode(node, "OpaqueType"); - } - flowParseTypeParameter(requireDefault = false) { - const nodeStartLoc = this.state.startLoc; - const node = this.startNode(); - const variance = this.flowParseVariance(); - const ident = this.flowParseTypeAnnotatableIdentifier(); - node.name = ident.name; - node.variance = variance; - node.bound = ident.typeAnnotation; - if (this.match(29)) { - this.eat(29); - node.default = this.flowParseType(); - } else { - if (requireDefault) { - this.raise(FlowErrors.MissingTypeParamDefault, { - at: nodeStartLoc - }); - } - } - return this.finishNode(node, "TypeParameter"); - } - flowParseTypeParameterDeclaration() { - const oldInType = this.state.inType; - const node = this.startNode(); - node.params = []; - this.state.inType = true; - if (this.match(47) || this.match(140)) { - this.next(); - } else { - this.unexpected(); - } - let defaultRequired = false; - do { - const typeParameter = this.flowParseTypeParameter(defaultRequired); - node.params.push(typeParameter); - if (typeParameter.default) { - defaultRequired = true; - } - if (!this.match(48)) { - this.expect(12); - } - } while (!this.match(48)); - this.expect(48); - this.state.inType = oldInType; - return this.finishNode(node, "TypeParameterDeclaration"); - } - flowParseTypeParameterInstantiation() { - const node = this.startNode(); - const oldInType = this.state.inType; - node.params = []; - this.state.inType = true; - this.expect(47); - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - this.state.noAnonFunctionType = false; - while (!this.match(48)) { - node.params.push(this.flowParseType()); - if (!this.match(48)) { - this.expect(12); - } - } - this.state.noAnonFunctionType = oldNoAnonFunctionType; - this.expect(48); - this.state.inType = oldInType; - return this.finishNode(node, "TypeParameterInstantiation"); - } - flowParseTypeParameterInstantiationCallOrNew() { - const node = this.startNode(); - const oldInType = this.state.inType; - node.params = []; - this.state.inType = true; - this.expect(47); - while (!this.match(48)) { - node.params.push(this.flowParseTypeOrImplicitInstantiation()); - if (!this.match(48)) { - this.expect(12); - } - } - this.expect(48); - this.state.inType = oldInType; - return this.finishNode(node, "TypeParameterInstantiation"); - } - flowParseInterfaceType() { - const node = this.startNode(); - this.expectContextual(127); - node.extends = []; - if (this.eat(81)) { - do { - node.extends.push(this.flowParseInterfaceExtends()); - } while (this.eat(12)); - } - node.body = this.flowParseObjectType({ - allowStatic: false, - allowExact: false, - allowSpread: false, - allowProto: false, - allowInexact: false - }); - return this.finishNode(node, "InterfaceTypeAnnotation"); - } - flowParseObjectPropertyKey() { - return this.match(132) || this.match(131) ? super.parseExprAtom() : this.parseIdentifier(true); - } - flowParseObjectTypeIndexer(node, isStatic, variance) { - node.static = isStatic; - if (this.lookahead().type === 14) { - node.id = this.flowParseObjectPropertyKey(); - node.key = this.flowParseTypeInitialiser(); - } else { - node.id = null; - node.key = this.flowParseType(); - } - this.expect(3); - node.value = this.flowParseTypeInitialiser(); - node.variance = variance; - return this.finishNode(node, "ObjectTypeIndexer"); - } - flowParseObjectTypeInternalSlot(node, isStatic) { - node.static = isStatic; - node.id = this.flowParseObjectPropertyKey(); - this.expect(3); - this.expect(3); - if (this.match(47) || this.match(10)) { - node.method = true; - node.optional = false; - node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.loc.start)); - } else { - node.method = false; - if (this.eat(17)) { - node.optional = true; - } - node.value = this.flowParseTypeInitialiser(); - } - return this.finishNode(node, "ObjectTypeInternalSlot"); - } - flowParseObjectTypeMethodish(node) { - node.params = []; - node.rest = null; - node.typeParameters = null; - node.this = null; - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } - this.expect(10); - if (this.match(78)) { - node.this = this.flowParseFunctionTypeParam(true); - node.this.name = null; - if (!this.match(11)) { - this.expect(12); - } - } - while (!this.match(11) && !this.match(21)) { - node.params.push(this.flowParseFunctionTypeParam(false)); - if (!this.match(11)) { - this.expect(12); - } - } - if (this.eat(21)) { - node.rest = this.flowParseFunctionTypeParam(false); - } - this.expect(11); - node.returnType = this.flowParseTypeInitialiser(); - return this.finishNode(node, "FunctionTypeAnnotation"); - } - flowParseObjectTypeCallProperty(node, isStatic) { - const valueNode = this.startNode(); - node.static = isStatic; - node.value = this.flowParseObjectTypeMethodish(valueNode); - return this.finishNode(node, "ObjectTypeCallProperty"); - } - flowParseObjectType({ - allowStatic, - allowExact, - allowSpread, - allowProto, - allowInexact - }) { - const oldInType = this.state.inType; - this.state.inType = true; - const nodeStart = this.startNode(); - nodeStart.callProperties = []; - nodeStart.properties = []; - nodeStart.indexers = []; - nodeStart.internalSlots = []; - let endDelim; - let exact; - let inexact = false; - if (allowExact && this.match(6)) { - this.expect(6); - endDelim = 9; - exact = true; - } else { - this.expect(5); - endDelim = 8; - exact = false; - } - nodeStart.exact = exact; - while (!this.match(endDelim)) { - let isStatic = false; - let protoStartLoc = null; - let inexactStartLoc = null; - const node = this.startNode(); - if (allowProto && this.isContextual(116)) { - const lookahead = this.lookahead(); - if (lookahead.type !== 14 && lookahead.type !== 17) { - this.next(); - protoStartLoc = this.state.startLoc; - allowStatic = false; - } - } - if (allowStatic && this.isContextual(104)) { - const lookahead = this.lookahead(); - if (lookahead.type !== 14 && lookahead.type !== 17) { - this.next(); - isStatic = true; - } - } - const variance = this.flowParseVariance(); - if (this.eat(0)) { - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (this.eat(0)) { - if (variance) { - this.unexpected(variance.loc.start); - } - nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node, isStatic)); - } else { - nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node, isStatic, variance)); - } - } else if (this.match(10) || this.match(47)) { - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (variance) { - this.unexpected(variance.loc.start); - } - nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, isStatic)); - } else { - let kind = "init"; - if (this.isContextual(98) || this.isContextual(103)) { - const lookahead = this.lookahead(); - if (tokenIsLiteralPropertyName(lookahead.type)) { - kind = this.state.value; - this.next(); - } - } - const propOrInexact = this.flowParseObjectTypeProperty(node, isStatic, protoStartLoc, variance, kind, allowSpread, allowInexact != null ? allowInexact : !exact); - if (propOrInexact === null) { - inexact = true; - inexactStartLoc = this.state.lastTokStartLoc; - } else { - nodeStart.properties.push(propOrInexact); - } - } - this.flowObjectTypeSemicolon(); - if (inexactStartLoc && !this.match(8) && !this.match(9)) { - this.raise(FlowErrors.UnexpectedExplicitInexactInObject, { - at: inexactStartLoc - }); - } - } - this.expect(endDelim); - if (allowSpread) { - nodeStart.inexact = inexact; - } - const out = this.finishNode(nodeStart, "ObjectTypeAnnotation"); - this.state.inType = oldInType; - return out; - } - flowParseObjectTypeProperty(node, isStatic, protoStartLoc, variance, kind, allowSpread, allowInexact) { - if (this.eat(21)) { - const isInexactToken = this.match(12) || this.match(13) || this.match(8) || this.match(9); - if (isInexactToken) { - if (!allowSpread) { - this.raise(FlowErrors.InexactInsideNonObject, { - at: this.state.lastTokStartLoc - }); - } else if (!allowInexact) { - this.raise(FlowErrors.InexactInsideExact, { - at: this.state.lastTokStartLoc - }); - } - if (variance) { - this.raise(FlowErrors.InexactVariance, { - at: variance - }); - } - return null; - } - if (!allowSpread) { - this.raise(FlowErrors.UnexpectedSpreadType, { - at: this.state.lastTokStartLoc - }); - } - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (variance) { - this.raise(FlowErrors.SpreadVariance, { - at: variance - }); - } - node.argument = this.flowParseType(); - return this.finishNode(node, "ObjectTypeSpreadProperty"); - } else { - node.key = this.flowParseObjectPropertyKey(); - node.static = isStatic; - node.proto = protoStartLoc != null; - node.kind = kind; - let optional = false; - if (this.match(47) || this.match(10)) { - node.method = true; - if (protoStartLoc != null) { - this.unexpected(protoStartLoc); - } - if (variance) { - this.unexpected(variance.loc.start); - } - node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.loc.start)); - if (kind === "get" || kind === "set") { - this.flowCheckGetterSetterParams(node); - } - if (!allowSpread && node.key.name === "constructor" && node.value.this) { - this.raise(FlowErrors.ThisParamBannedInConstructor, { - at: node.value.this - }); - } - } else { - if (kind !== "init") this.unexpected(); - node.method = false; - if (this.eat(17)) { - optional = true; - } - node.value = this.flowParseTypeInitialiser(); - node.variance = variance; - } - node.optional = optional; - return this.finishNode(node, "ObjectTypeProperty"); - } - } - flowCheckGetterSetterParams(property) { - const paramCount = property.kind === "get" ? 0 : 1; - const length = property.value.params.length + (property.value.rest ? 1 : 0); - if (property.value.this) { - this.raise(property.kind === "get" ? FlowErrors.GetterMayNotHaveThisParam : FlowErrors.SetterMayNotHaveThisParam, { - at: property.value.this - }); - } - if (length !== paramCount) { - this.raise(property.kind === "get" ? Errors.BadGetterArity : Errors.BadSetterArity, { - at: property - }); - } - if (property.kind === "set" && property.value.rest) { - this.raise(Errors.BadSetterRestParameter, { - at: property - }); - } - } - flowObjectTypeSemicolon() { - if (!this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9)) { - this.unexpected(); - } - } - flowParseQualifiedTypeIdentifier(startLoc, id) { - var _startLoc; - (_startLoc = startLoc) != null ? _startLoc : startLoc = this.state.startLoc; - let node = id || this.flowParseRestrictedIdentifier(true); - while (this.eat(16)) { - const node2 = this.startNodeAt(startLoc); - node2.qualification = node; - node2.id = this.flowParseRestrictedIdentifier(true); - node = this.finishNode(node2, "QualifiedTypeIdentifier"); - } - return node; - } - flowParseGenericType(startLoc, id) { - const node = this.startNodeAt(startLoc); - node.typeParameters = null; - node.id = this.flowParseQualifiedTypeIdentifier(startLoc, id); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterInstantiation(); - } - return this.finishNode(node, "GenericTypeAnnotation"); - } - flowParseTypeofType() { - const node = this.startNode(); - this.expect(87); - node.argument = this.flowParsePrimaryType(); - return this.finishNode(node, "TypeofTypeAnnotation"); - } - flowParseTupleType() { - const node = this.startNode(); - node.types = []; - this.expect(0); - while (this.state.pos < this.length && !this.match(3)) { - node.types.push(this.flowParseType()); - if (this.match(3)) break; - this.expect(12); - } - this.expect(3); - return this.finishNode(node, "TupleTypeAnnotation"); - } - flowParseFunctionTypeParam(first) { - let name = null; - let optional = false; - let typeAnnotation = null; - const node = this.startNode(); - const lh = this.lookahead(); - const isThis = this.state.type === 78; - if (lh.type === 14 || lh.type === 17) { - if (isThis && !first) { - this.raise(FlowErrors.ThisParamMustBeFirst, { - at: node - }); - } - name = this.parseIdentifier(isThis); - if (this.eat(17)) { - optional = true; - if (isThis) { - this.raise(FlowErrors.ThisParamMayNotBeOptional, { - at: node - }); - } - } - typeAnnotation = this.flowParseTypeInitialiser(); - } else { - typeAnnotation = this.flowParseType(); - } - node.name = name; - node.optional = optional; - node.typeAnnotation = typeAnnotation; - return this.finishNode(node, "FunctionTypeParam"); - } - reinterpretTypeAsFunctionTypeParam(type) { - const node = this.startNodeAt(type.loc.start); - node.name = null; - node.optional = false; - node.typeAnnotation = type; - return this.finishNode(node, "FunctionTypeParam"); - } - flowParseFunctionTypeParams(params = []) { - let rest = null; - let _this = null; - if (this.match(78)) { - _this = this.flowParseFunctionTypeParam(true); - _this.name = null; - if (!this.match(11)) { - this.expect(12); - } - } - while (!this.match(11) && !this.match(21)) { - params.push(this.flowParseFunctionTypeParam(false)); - if (!this.match(11)) { - this.expect(12); - } - } - if (this.eat(21)) { - rest = this.flowParseFunctionTypeParam(false); - } - return { - params, - rest, - _this - }; - } - flowIdentToTypeAnnotation(startLoc, node, id) { - switch (id.name) { - case "any": - return this.finishNode(node, "AnyTypeAnnotation"); - case "bool": - case "boolean": - return this.finishNode(node, "BooleanTypeAnnotation"); - case "mixed": - return this.finishNode(node, "MixedTypeAnnotation"); - case "empty": - return this.finishNode(node, "EmptyTypeAnnotation"); - case "number": - return this.finishNode(node, "NumberTypeAnnotation"); - case "string": - return this.finishNode(node, "StringTypeAnnotation"); - case "symbol": - return this.finishNode(node, "SymbolTypeAnnotation"); - default: - this.checkNotUnderscore(id.name); - return this.flowParseGenericType(startLoc, id); - } - } - flowParsePrimaryType() { - const startLoc = this.state.startLoc; - const node = this.startNode(); - let tmp; - let type; - let isGroupedType = false; - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - switch (this.state.type) { - case 5: - return this.flowParseObjectType({ - allowStatic: false, - allowExact: false, - allowSpread: true, - allowProto: false, - allowInexact: true - }); - case 6: - return this.flowParseObjectType({ - allowStatic: false, - allowExact: true, - allowSpread: true, - allowProto: false, - allowInexact: false - }); - case 0: - this.state.noAnonFunctionType = false; - type = this.flowParseTupleType(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - return type; - case 47: - node.typeParameters = this.flowParseTypeParameterDeclaration(); - this.expect(10); - tmp = this.flowParseFunctionTypeParams(); - node.params = tmp.params; - node.rest = tmp.rest; - node.this = tmp._this; - this.expect(11); - this.expect(19); - node.returnType = this.flowParseType(); - return this.finishNode(node, "FunctionTypeAnnotation"); - case 10: - this.next(); - if (!this.match(11) && !this.match(21)) { - if (tokenIsIdentifier(this.state.type) || this.match(78)) { - const token = this.lookahead().type; - isGroupedType = token !== 17 && token !== 14; - } else { - isGroupedType = true; - } - } - if (isGroupedType) { - this.state.noAnonFunctionType = false; - type = this.flowParseType(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - if (this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) { - this.expect(11); - return type; - } else { - this.eat(12); - } - } - if (type) { - tmp = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(type)]); - } else { - tmp = this.flowParseFunctionTypeParams(); - } - node.params = tmp.params; - node.rest = tmp.rest; - node.this = tmp._this; - this.expect(11); - this.expect(19); - node.returnType = this.flowParseType(); - node.typeParameters = null; - return this.finishNode(node, "FunctionTypeAnnotation"); - case 131: - return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation"); - case 85: - case 86: - node.value = this.match(85); - this.next(); - return this.finishNode(node, "BooleanLiteralTypeAnnotation"); - case 53: - if (this.state.value === "-") { - this.next(); - if (this.match(132)) { - return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", node); - } - if (this.match(133)) { - return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", node); - } - throw this.raise(FlowErrors.UnexpectedSubtractionOperand, { - at: this.state.startLoc - }); - } - this.unexpected(); - return; - case 132: - return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation"); - case 133: - return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation"); - case 88: - this.next(); - return this.finishNode(node, "VoidTypeAnnotation"); - case 84: - this.next(); - return this.finishNode(node, "NullLiteralTypeAnnotation"); - case 78: - this.next(); - return this.finishNode(node, "ThisTypeAnnotation"); - case 55: - this.next(); - return this.finishNode(node, "ExistsTypeAnnotation"); - case 87: - return this.flowParseTypeofType(); - default: - if (tokenIsKeyword(this.state.type)) { - const label = tokenLabelName(this.state.type); - this.next(); - return super.createIdentifier(node, label); - } else if (tokenIsIdentifier(this.state.type)) { - if (this.isContextual(127)) { - return this.flowParseInterfaceType(); - } - return this.flowIdentToTypeAnnotation(startLoc, node, this.parseIdentifier()); - } - } - this.unexpected(); - } - flowParsePostfixType() { - const startLoc = this.state.startLoc; - let type = this.flowParsePrimaryType(); - let seenOptionalIndexedAccess = false; - while ((this.match(0) || this.match(18)) && !this.canInsertSemicolon()) { - const node = this.startNodeAt(startLoc); - const optional = this.eat(18); - seenOptionalIndexedAccess = seenOptionalIndexedAccess || optional; - this.expect(0); - if (!optional && this.match(3)) { - node.elementType = type; - this.next(); - type = this.finishNode(node, "ArrayTypeAnnotation"); - } else { - node.objectType = type; - node.indexType = this.flowParseType(); - this.expect(3); - if (seenOptionalIndexedAccess) { - node.optional = optional; - type = this.finishNode(node, "OptionalIndexedAccessType"); - } else { - type = this.finishNode(node, "IndexedAccessType"); - } - } - } - return type; - } - flowParsePrefixType() { - const node = this.startNode(); - if (this.eat(17)) { - node.typeAnnotation = this.flowParsePrefixType(); - return this.finishNode(node, "NullableTypeAnnotation"); - } else { - return this.flowParsePostfixType(); - } - } - flowParseAnonFunctionWithoutParens() { - const param = this.flowParsePrefixType(); - if (!this.state.noAnonFunctionType && this.eat(19)) { - const node = this.startNodeAt(param.loc.start); - node.params = [this.reinterpretTypeAsFunctionTypeParam(param)]; - node.rest = null; - node.this = null; - node.returnType = this.flowParseType(); - node.typeParameters = null; - return this.finishNode(node, "FunctionTypeAnnotation"); - } - return param; - } - flowParseIntersectionType() { - const node = this.startNode(); - this.eat(45); - const type = this.flowParseAnonFunctionWithoutParens(); - node.types = [type]; - while (this.eat(45)) { - node.types.push(this.flowParseAnonFunctionWithoutParens()); - } - return node.types.length === 1 ? type : this.finishNode(node, "IntersectionTypeAnnotation"); - } - flowParseUnionType() { - const node = this.startNode(); - this.eat(43); - const type = this.flowParseIntersectionType(); - node.types = [type]; - while (this.eat(43)) { - node.types.push(this.flowParseIntersectionType()); - } - return node.types.length === 1 ? type : this.finishNode(node, "UnionTypeAnnotation"); - } - flowParseType() { - const oldInType = this.state.inType; - this.state.inType = true; - const type = this.flowParseUnionType(); - this.state.inType = oldInType; - return type; - } - flowParseTypeOrImplicitInstantiation() { - if (this.state.type === 130 && this.state.value === "_") { - const startLoc = this.state.startLoc; - const node = this.parseIdentifier(); - return this.flowParseGenericType(startLoc, node); - } else { - return this.flowParseType(); - } - } - flowParseTypeAnnotation() { - const node = this.startNode(); - node.typeAnnotation = this.flowParseTypeInitialiser(); - return this.finishNode(node, "TypeAnnotation"); - } - flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride) { - const ident = allowPrimitiveOverride ? this.parseIdentifier() : this.flowParseRestrictedIdentifier(); - if (this.match(14)) { - ident.typeAnnotation = this.flowParseTypeAnnotation(); - this.resetEndLocation(ident); - } - return ident; - } - typeCastToParameter(node) { - node.expression.typeAnnotation = node.typeAnnotation; - this.resetEndLocation(node.expression, node.typeAnnotation.loc.end); - return node.expression; - } - flowParseVariance() { - let variance = null; - if (this.match(53)) { - variance = this.startNode(); - if (this.state.value === "+") { - variance.kind = "plus"; - } else { - variance.kind = "minus"; - } - this.next(); - return this.finishNode(variance, "Variance"); - } - return variance; - } - parseFunctionBody(node, allowExpressionBody, isMethod = false) { - if (allowExpressionBody) { - this.forwardNoArrowParamsConversionAt(node, () => super.parseFunctionBody(node, true, isMethod)); - return; - } - super.parseFunctionBody(node, false, isMethod); - } - parseFunctionBodyAndFinish(node, type, isMethod = false) { - if (this.match(14)) { - const typeNode = this.startNode(); - [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); - node.returnType = typeNode.typeAnnotation ? this.finishNode(typeNode, "TypeAnnotation") : null; - } - return super.parseFunctionBodyAndFinish(node, type, isMethod); - } - parseStatementLike(flags) { - if (this.state.strict && this.isContextual(127)) { - const lookahead = this.lookahead(); - if (tokenIsKeywordOrIdentifier(lookahead.type)) { - const node = this.startNode(); - this.next(); - return this.flowParseInterface(node); - } - } else if (this.shouldParseEnums() && this.isContextual(124)) { - const node = this.startNode(); - this.next(); - return this.flowParseEnumDeclaration(node); - } - const stmt = super.parseStatementLike(flags); - if (this.flowPragma === undefined && !this.isValidDirective(stmt)) { - this.flowPragma = null; - } - return stmt; - } - parseExpressionStatement(node, expr, decorators) { - if (expr.type === "Identifier") { - if (expr.name === "declare") { - if (this.match(80) || tokenIsIdentifier(this.state.type) || this.match(68) || this.match(74) || this.match(82)) { - return this.flowParseDeclare(node); - } - } else if (tokenIsIdentifier(this.state.type)) { - if (expr.name === "interface") { - return this.flowParseInterface(node); - } else if (expr.name === "type") { - return this.flowParseTypeAlias(node); - } else if (expr.name === "opaque") { - return this.flowParseOpaqueType(node, false); - } - } - } - return super.parseExpressionStatement(node, expr, decorators); - } - shouldParseExportDeclaration() { - const { - type - } = this.state; - if (tokenIsFlowInterfaceOrTypeOrOpaque(type) || this.shouldParseEnums() && type === 124) { - return !this.state.containsEsc; - } - return super.shouldParseExportDeclaration(); - } - isExportDefaultSpecifier() { - const { - type - } = this.state; - if (tokenIsFlowInterfaceOrTypeOrOpaque(type) || this.shouldParseEnums() && type === 124) { - return this.state.containsEsc; - } - return super.isExportDefaultSpecifier(); - } - parseExportDefaultExpression() { - if (this.shouldParseEnums() && this.isContextual(124)) { - const node = this.startNode(); - this.next(); - return this.flowParseEnumDeclaration(node); - } - return super.parseExportDefaultExpression(); - } - parseConditional(expr, startLoc, refExpressionErrors) { - if (!this.match(17)) return expr; - if (this.state.maybeInArrowParameters) { - const nextCh = this.lookaheadCharCode(); - if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) { - this.setOptionalParametersError(refExpressionErrors); - return expr; - } - } - this.expect(17); - const state = this.state.clone(); - const originalNoArrowAt = this.state.noArrowAt; - const node = this.startNodeAt(startLoc); - let { - consequent, - failed - } = this.tryParseConditionalConsequent(); - let [valid, invalid] = this.getArrowLikeExpressions(consequent); - if (failed || invalid.length > 0) { - const noArrowAt = [...originalNoArrowAt]; - if (invalid.length > 0) { - this.state = state; - this.state.noArrowAt = noArrowAt; - for (let i = 0; i < invalid.length; i++) { - noArrowAt.push(invalid[i].start); - } - ({ - consequent, - failed - } = this.tryParseConditionalConsequent()); - [valid, invalid] = this.getArrowLikeExpressions(consequent); - } - if (failed && valid.length > 1) { - this.raise(FlowErrors.AmbiguousConditionalArrow, { - at: state.startLoc - }); - } - if (failed && valid.length === 1) { - this.state = state; - noArrowAt.push(valid[0].start); - this.state.noArrowAt = noArrowAt; - ({ - consequent, - failed - } = this.tryParseConditionalConsequent()); - } - } - this.getArrowLikeExpressions(consequent, true); - this.state.noArrowAt = originalNoArrowAt; - this.expect(14); - node.test = expr; - node.consequent = consequent; - node.alternate = this.forwardNoArrowParamsConversionAt(node, () => this.parseMaybeAssign(undefined, undefined)); - return this.finishNode(node, "ConditionalExpression"); - } - tryParseConditionalConsequent() { - this.state.noArrowParamsConversionAt.push(this.state.start); - const consequent = this.parseMaybeAssignAllowIn(); - const failed = !this.match(14); - this.state.noArrowParamsConversionAt.pop(); - return { - consequent, - failed - }; - } - getArrowLikeExpressions(node, disallowInvalid) { - const stack = [node]; - const arrows = []; - while (stack.length !== 0) { - const node = stack.pop(); - if (node.type === "ArrowFunctionExpression") { - if (node.typeParameters || !node.returnType) { - this.finishArrowValidation(node); - } else { - arrows.push(node); - } - stack.push(node.body); - } else if (node.type === "ConditionalExpression") { - stack.push(node.consequent); - stack.push(node.alternate); - } - } - if (disallowInvalid) { - arrows.forEach(node => this.finishArrowValidation(node)); - return [arrows, []]; - } - return partition(arrows, node => node.params.every(param => this.isAssignable(param, true))); - } - finishArrowValidation(node) { - var _node$extra; - this.toAssignableList(node.params, (_node$extra = node.extra) == null ? void 0 : _node$extra.trailingCommaLoc, false); - this.scope.enter(SCOPE_FUNCTION | SCOPE_ARROW); - super.checkParams(node, false, true); - this.scope.exit(); - } - forwardNoArrowParamsConversionAt(node, parse) { - let result; - if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { - this.state.noArrowParamsConversionAt.push(this.state.start); - result = parse(); - this.state.noArrowParamsConversionAt.pop(); - } else { - result = parse(); - } - return result; - } - parseParenItem(node, startLoc) { - node = super.parseParenItem(node, startLoc); - if (this.eat(17)) { - node.optional = true; - this.resetEndLocation(node); - } - if (this.match(14)) { - const typeCastNode = this.startNodeAt(startLoc); - typeCastNode.expression = node; - typeCastNode.typeAnnotation = this.flowParseTypeAnnotation(); - return this.finishNode(typeCastNode, "TypeCastExpression"); - } - return node; - } - assertModuleNodeAllowed(node) { - if (node.type === "ImportDeclaration" && (node.importKind === "type" || node.importKind === "typeof") || node.type === "ExportNamedDeclaration" && node.exportKind === "type" || node.type === "ExportAllDeclaration" && node.exportKind === "type") { - return; - } - super.assertModuleNodeAllowed(node); - } - parseExportDeclaration(node) { - if (this.isContextual(128)) { - node.exportKind = "type"; - const declarationNode = this.startNode(); - this.next(); - if (this.match(5)) { - node.specifiers = this.parseExportSpecifiers(true); - super.parseExportFrom(node); - return null; - } else { - return this.flowParseTypeAlias(declarationNode); - } - } else if (this.isContextual(129)) { - node.exportKind = "type"; - const declarationNode = this.startNode(); - this.next(); - return this.flowParseOpaqueType(declarationNode, false); - } else if (this.isContextual(127)) { - node.exportKind = "type"; - const declarationNode = this.startNode(); - this.next(); - return this.flowParseInterface(declarationNode); - } else if (this.shouldParseEnums() && this.isContextual(124)) { - node.exportKind = "value"; - const declarationNode = this.startNode(); - this.next(); - return this.flowParseEnumDeclaration(declarationNode); - } else { - return super.parseExportDeclaration(node); - } - } - eatExportStar(node) { - if (super.eatExportStar(node)) return true; - if (this.isContextual(128) && this.lookahead().type === 55) { - node.exportKind = "type"; - this.next(); - this.next(); - return true; - } - return false; - } - maybeParseExportNamespaceSpecifier(node) { - const { - startLoc - } = this.state; - const hasNamespace = super.maybeParseExportNamespaceSpecifier(node); - if (hasNamespace && node.exportKind === "type") { - this.unexpected(startLoc); - } - return hasNamespace; - } - parseClassId(node, isStatement, optionalId) { - super.parseClassId(node, isStatement, optionalId); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } - } - parseClassMember(classBody, member, state) { - const { - startLoc - } = this.state; - if (this.isContextual(123)) { - if (super.parseClassMemberFromModifier(classBody, member)) { - return; - } - member.declare = true; - } - super.parseClassMember(classBody, member, state); - if (member.declare) { - if (member.type !== "ClassProperty" && member.type !== "ClassPrivateProperty" && member.type !== "PropertyDefinition") { - this.raise(FlowErrors.DeclareClassElement, { - at: startLoc - }); - } else if (member.value) { - this.raise(FlowErrors.DeclareClassFieldInitializer, { - at: member.value - }); - } - } - } - isIterator(word) { - return word === "iterator" || word === "asyncIterator"; - } - readIterator() { - const word = super.readWord1(); - const fullWord = "@@" + word; - if (!this.isIterator(word) || !this.state.inType) { - this.raise(Errors.InvalidIdentifier, { - at: this.state.curPosition(), - identifierName: fullWord - }); - } - this.finishToken(130, fullWord); - } - getTokenFromCode(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (code === 123 && next === 124) { - this.finishOp(6, 2); - } else if (this.state.inType && (code === 62 || code === 60)) { - this.finishOp(code === 62 ? 48 : 47, 1); - } else if (this.state.inType && code === 63) { - if (next === 46) { - this.finishOp(18, 2); - } else { - this.finishOp(17, 1); - } - } else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) { - this.state.pos += 2; - this.readIterator(); - } else { - super.getTokenFromCode(code); - } - } - isAssignable(node, isBinding) { - if (node.type === "TypeCastExpression") { - return this.isAssignable(node.expression, isBinding); - } else { - return super.isAssignable(node, isBinding); - } - } - toAssignable(node, isLHS = false) { - if (!isLHS && node.type === "AssignmentExpression" && node.left.type === "TypeCastExpression") { - node.left = this.typeCastToParameter(node.left); - } - super.toAssignable(node, isLHS); - } - toAssignableList(exprList, trailingCommaLoc, isLHS) { - for (let i = 0; i < exprList.length; i++) { - const expr = exprList[i]; - if ((expr == null ? void 0 : expr.type) === "TypeCastExpression") { - exprList[i] = this.typeCastToParameter(expr); - } - } - super.toAssignableList(exprList, trailingCommaLoc, isLHS); - } - toReferencedList(exprList, isParenthesizedExpr) { - for (let i = 0; i < exprList.length; i++) { - var _expr$extra; - const expr = exprList[i]; - if (expr && expr.type === "TypeCastExpression" && !((_expr$extra = expr.extra) != null && _expr$extra.parenthesized) && (exprList.length > 1 || !isParenthesizedExpr)) { - this.raise(FlowErrors.TypeCastInPattern, { - at: expr.typeAnnotation - }); - } - } - return exprList; - } - parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { - const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors); - if (canBePattern && !this.state.maybeInArrowParameters) { - this.toReferencedList(node.elements); - } - return node; - } - isValidLVal(type, isParenthesized, binding) { - return type === "TypeCastExpression" || super.isValidLVal(type, isParenthesized, binding); - } - parseClassProperty(node) { - if (this.match(14)) { - node.typeAnnotation = this.flowParseTypeAnnotation(); - } - return super.parseClassProperty(node); - } - parseClassPrivateProperty(node) { - if (this.match(14)) { - node.typeAnnotation = this.flowParseTypeAnnotation(); - } - return super.parseClassPrivateProperty(node); - } - isClassMethod() { - return this.match(47) || super.isClassMethod(); - } - isClassProperty() { - return this.match(14) || super.isClassProperty(); - } - isNonstaticConstructor(method) { - return !this.match(14) && super.isNonstaticConstructor(method); - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - if (method.variance) { - this.unexpected(method.variance.loc.start); - } - delete method.variance; - if (this.match(47)) { - method.typeParameters = this.flowParseTypeParameterDeclaration(); - } - super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper); - if (method.params && isConstructor) { - const params = method.params; - if (params.length > 0 && this.isThisParam(params[0])) { - this.raise(FlowErrors.ThisParamBannedInConstructor, { - at: method - }); - } - } else if (method.type === "MethodDefinition" && isConstructor && method.value.params) { - const params = method.value.params; - if (params.length > 0 && this.isThisParam(params[0])) { - this.raise(FlowErrors.ThisParamBannedInConstructor, { - at: method - }); - } - } - } - pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { - if (method.variance) { - this.unexpected(method.variance.loc.start); - } - delete method.variance; - if (this.match(47)) { - method.typeParameters = this.flowParseTypeParameterDeclaration(); - } - super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync); - } - parseClassSuper(node) { - super.parseClassSuper(node); - if (node.superClass && this.match(47)) { - node.superTypeParameters = this.flowParseTypeParameterInstantiation(); - } - if (this.isContextual(111)) { - this.next(); - const implemented = node.implements = []; - do { - const node = this.startNode(); - node.id = this.flowParseRestrictedIdentifier(true); - if (this.match(47)) { - node.typeParameters = this.flowParseTypeParameterInstantiation(); - } else { - node.typeParameters = null; - } - implemented.push(this.finishNode(node, "ClassImplements")); - } while (this.eat(12)); - } - } - checkGetterSetterParams(method) { - super.checkGetterSetterParams(method); - const params = this.getObjectOrClassMethodParams(method); - if (params.length > 0) { - const param = params[0]; - if (this.isThisParam(param) && method.kind === "get") { - this.raise(FlowErrors.GetterMayNotHaveThisParam, { - at: param - }); - } else if (this.isThisParam(param)) { - this.raise(FlowErrors.SetterMayNotHaveThisParam, { - at: param - }); - } - } - } - parsePropertyNamePrefixOperator(node) { - node.variance = this.flowParseVariance(); - } - parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { - if (prop.variance) { - this.unexpected(prop.variance.loc.start); - } - delete prop.variance; - let typeParameters; - if (this.match(47) && !isAccessor) { - typeParameters = this.flowParseTypeParameterDeclaration(); - if (!this.match(10)) this.unexpected(); - } - const result = super.parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors); - if (typeParameters) { - (result.value || result).typeParameters = typeParameters; - } - return result; - } - parseAssignableListItemTypes(param) { - if (this.eat(17)) { - if (param.type !== "Identifier") { - this.raise(FlowErrors.PatternIsOptional, { - at: param - }); - } - if (this.isThisParam(param)) { - this.raise(FlowErrors.ThisParamMayNotBeOptional, { - at: param - }); - } - param.optional = true; - } - if (this.match(14)) { - param.typeAnnotation = this.flowParseTypeAnnotation(); - } else if (this.isThisParam(param)) { - this.raise(FlowErrors.ThisParamAnnotationRequired, { - at: param - }); - } - if (this.match(29) && this.isThisParam(param)) { - this.raise(FlowErrors.ThisParamNoDefault, { - at: param - }); - } - this.resetEndLocation(param); - return param; - } - parseMaybeDefault(startLoc, left) { - const node = super.parseMaybeDefault(startLoc, left); - if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) { - this.raise(FlowErrors.TypeBeforeInitializer, { - at: node.typeAnnotation - }); - } - return node; - } - checkImportReflection(node) { - super.checkImportReflection(node); - if (node.module && node.importKind !== "value") { - this.raise(FlowErrors.ImportReflectionHasImportType, { - at: node.specifiers[0].loc.start - }); - } - } - parseImportSpecifierLocal(node, specifier, type) { - specifier.local = hasTypeImportKind(node) ? this.flowParseRestrictedIdentifier(true, true) : this.parseIdentifier(); - node.specifiers.push(this.finishImportSpecifier(specifier, type)); - } - isPotentialImportPhase(isExport) { - if (super.isPotentialImportPhase(isExport)) return true; - if (this.isContextual(128)) { - if (!isExport) return true; - const ch = this.lookaheadCharCode(); - return ch === 123 || ch === 42; - } - return !isExport && this.isContextual(87); - } - applyImportPhase(node, isExport, phase, loc) { - super.applyImportPhase(node, isExport, phase, loc); - if (isExport) { - if (!phase && this.match(65)) { - return; - } - node.exportKind = phase === "type" ? phase : "value"; - } else { - if (phase === "type" && this.match(55)) this.unexpected(); - node.importKind = phase === "type" || phase === "typeof" ? phase : "value"; - } - } - parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { - const firstIdent = specifier.imported; - let specifierTypeKind = null; - if (firstIdent.type === "Identifier") { - if (firstIdent.name === "type") { - specifierTypeKind = "type"; - } else if (firstIdent.name === "typeof") { - specifierTypeKind = "typeof"; - } - } - let isBinding = false; - if (this.isContextual(93) && !this.isLookaheadContextual("as")) { - const as_ident = this.parseIdentifier(true); - if (specifierTypeKind !== null && !tokenIsKeywordOrIdentifier(this.state.type)) { - specifier.imported = as_ident; - specifier.importKind = specifierTypeKind; - specifier.local = cloneIdentifier(as_ident); - } else { - specifier.imported = firstIdent; - specifier.importKind = null; - specifier.local = this.parseIdentifier(); - } - } else { - if (specifierTypeKind !== null && tokenIsKeywordOrIdentifier(this.state.type)) { - specifier.imported = this.parseIdentifier(true); - specifier.importKind = specifierTypeKind; - } else { - if (importedIsString) { - throw this.raise(Errors.ImportBindingIsString, { - at: specifier, - importName: firstIdent.value - }); - } - specifier.imported = firstIdent; - specifier.importKind = null; - } - if (this.eatContextual(93)) { - specifier.local = this.parseIdentifier(); - } else { - isBinding = true; - specifier.local = cloneIdentifier(specifier.imported); - } - } - const specifierIsTypeImport = hasTypeImportKind(specifier); - if (isInTypeOnlyImport && specifierIsTypeImport) { - this.raise(FlowErrors.ImportTypeShorthandOnlyInPureImport, { - at: specifier - }); - } - if (isInTypeOnlyImport || specifierIsTypeImport) { - this.checkReservedType(specifier.local.name, specifier.local.loc.start, true); - } - if (isBinding && !isInTypeOnlyImport && !specifierIsTypeImport) { - this.checkReservedWord(specifier.local.name, specifier.loc.start, true, true); - } - return this.finishImportSpecifier(specifier, "ImportSpecifier"); - } - parseBindingAtom() { - switch (this.state.type) { - case 78: - return this.parseIdentifier(true); - default: - return super.parseBindingAtom(); - } - } - parseFunctionParams(node, isConstructor) { - const kind = node.kind; - if (kind !== "get" && kind !== "set" && this.match(47)) { - node.typeParameters = this.flowParseTypeParameterDeclaration(); - } - super.parseFunctionParams(node, isConstructor); - } - parseVarId(decl, kind) { - super.parseVarId(decl, kind); - if (this.match(14)) { - decl.id.typeAnnotation = this.flowParseTypeAnnotation(); - this.resetEndLocation(decl.id); - } - } - parseAsyncArrowFromCallExpression(node, call) { - if (this.match(14)) { - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - this.state.noAnonFunctionType = true; - node.returnType = this.flowParseTypeAnnotation(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - } - return super.parseAsyncArrowFromCallExpression(node, call); - } - shouldParseAsyncArrow() { - return this.match(14) || super.shouldParseAsyncArrow(); - } - parseMaybeAssign(refExpressionErrors, afterLeftParse) { - var _jsx; - let state = null; - let jsx; - if (this.hasPlugin("jsx") && (this.match(140) || this.match(47))) { - state = this.state.clone(); - jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); - if (!jsx.error) return jsx.node; - const { - context - } = this.state; - const currentContext = context[context.length - 1]; - if (currentContext === types.j_oTag || currentContext === types.j_expr) { - context.pop(); - } - } - if ((_jsx = jsx) != null && _jsx.error || this.match(47)) { - var _jsx2, _jsx3; - state = state || this.state.clone(); - let typeParameters; - const arrow = this.tryParse(abort => { - var _arrowExpression$extr; - typeParameters = this.flowParseTypeParameterDeclaration(); - const arrowExpression = this.forwardNoArrowParamsConversionAt(typeParameters, () => { - const result = super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - this.resetStartLocationFromNode(result, typeParameters); - return result; - }); - if ((_arrowExpression$extr = arrowExpression.extra) != null && _arrowExpression$extr.parenthesized) abort(); - const expr = this.maybeUnwrapTypeCastExpression(arrowExpression); - if (expr.type !== "ArrowFunctionExpression") abort(); - expr.typeParameters = typeParameters; - this.resetStartLocationFromNode(expr, typeParameters); - return arrowExpression; - }, state); - let arrowExpression = null; - if (arrow.node && this.maybeUnwrapTypeCastExpression(arrow.node).type === "ArrowFunctionExpression") { - if (!arrow.error && !arrow.aborted) { - if (arrow.node.async) { - this.raise(FlowErrors.UnexpectedTypeParameterBeforeAsyncArrowFunction, { - at: typeParameters - }); - } - return arrow.node; - } - arrowExpression = arrow.node; - } - if ((_jsx2 = jsx) != null && _jsx2.node) { - this.state = jsx.failState; - return jsx.node; - } - if (arrowExpression) { - this.state = arrow.failState; - return arrowExpression; - } - if ((_jsx3 = jsx) != null && _jsx3.thrown) throw jsx.error; - if (arrow.thrown) throw arrow.error; - throw this.raise(FlowErrors.UnexpectedTokenAfterTypeParameter, { - at: typeParameters - }); - } - return super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - } - parseArrow(node) { - if (this.match(14)) { - const result = this.tryParse(() => { - const oldNoAnonFunctionType = this.state.noAnonFunctionType; - this.state.noAnonFunctionType = true; - const typeNode = this.startNode(); - [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); - this.state.noAnonFunctionType = oldNoAnonFunctionType; - if (this.canInsertSemicolon()) this.unexpected(); - if (!this.match(19)) this.unexpected(); - return typeNode; - }); - if (result.thrown) return null; - if (result.error) this.state = result.failState; - node.returnType = result.node.typeAnnotation ? this.finishNode(result.node, "TypeAnnotation") : null; - } - return super.parseArrow(node); - } - shouldParseArrow(params) { - return this.match(14) || super.shouldParseArrow(params); - } - setArrowFunctionParameters(node, params) { - if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { - node.params = params; - } else { - super.setArrowFunctionParameters(node, params); - } - } - checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged = true) { - if (isArrowFunction && this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { - return; - } - for (let i = 0; i < node.params.length; i++) { - if (this.isThisParam(node.params[i]) && i > 0) { - this.raise(FlowErrors.ThisParamMustBeFirst, { - at: node.params[i] - }); - } - } - super.checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged); - } - parseParenAndDistinguishExpression(canBeArrow) { - return super.parseParenAndDistinguishExpression(canBeArrow && this.state.noArrowAt.indexOf(this.state.start) === -1); - } - parseSubscripts(base, startLoc, noCalls) { - if (base.type === "Identifier" && base.name === "async" && this.state.noArrowAt.indexOf(startLoc.index) !== -1) { - this.next(); - const node = this.startNodeAt(startLoc); - node.callee = base; - node.arguments = super.parseCallExpressionArguments(11, false); - base = this.finishNode(node, "CallExpression"); - } else if (base.type === "Identifier" && base.name === "async" && this.match(47)) { - const state = this.state.clone(); - const arrow = this.tryParse(abort => this.parseAsyncArrowWithTypeParameters(startLoc) || abort(), state); - if (!arrow.error && !arrow.aborted) return arrow.node; - const result = this.tryParse(() => super.parseSubscripts(base, startLoc, noCalls), state); - if (result.node && !result.error) return result.node; - if (arrow.node) { - this.state = arrow.failState; - return arrow.node; - } - if (result.node) { - this.state = result.failState; - return result.node; - } - throw arrow.error || result.error; - } - return super.parseSubscripts(base, startLoc, noCalls); - } - parseSubscript(base, startLoc, noCalls, subscriptState) { - if (this.match(18) && this.isLookaheadToken_lt()) { - subscriptState.optionalChainMember = true; - if (noCalls) { - subscriptState.stop = true; - return base; - } - this.next(); - const node = this.startNodeAt(startLoc); - node.callee = base; - node.typeArguments = this.flowParseTypeParameterInstantiation(); - this.expect(10); - node.arguments = this.parseCallExpressionArguments(11, false); - node.optional = true; - return this.finishCallExpression(node, true); - } else if (!noCalls && this.shouldParseTypes() && this.match(47)) { - const node = this.startNodeAt(startLoc); - node.callee = base; - const result = this.tryParse(() => { - node.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(); - this.expect(10); - node.arguments = super.parseCallExpressionArguments(11, false); - if (subscriptState.optionalChainMember) { - node.optional = false; - } - return this.finishCallExpression(node, subscriptState.optionalChainMember); - }); - if (result.node) { - if (result.error) this.state = result.failState; - return result.node; - } - } - return super.parseSubscript(base, startLoc, noCalls, subscriptState); - } - parseNewCallee(node) { - super.parseNewCallee(node); - let targs = null; - if (this.shouldParseTypes() && this.match(47)) { - targs = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node; - } - node.typeArguments = targs; - } - parseAsyncArrowWithTypeParameters(startLoc) { - const node = this.startNodeAt(startLoc); - this.parseFunctionParams(node, false); - if (!this.parseArrow(node)) return; - return super.parseArrowExpression(node, undefined, true); - } - readToken_mult_modulo(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (code === 42 && next === 47 && this.state.hasFlowComment) { - this.state.hasFlowComment = false; - this.state.pos += 2; - this.nextToken(); - return; - } - super.readToken_mult_modulo(code); - } - readToken_pipe_amp(code) { - const next = this.input.charCodeAt(this.state.pos + 1); - if (code === 124 && next === 125) { - this.finishOp(9, 2); - return; - } - super.readToken_pipe_amp(code); - } - parseTopLevel(file, program) { - const fileNode = super.parseTopLevel(file, program); - if (this.state.hasFlowComment) { - this.raise(FlowErrors.UnterminatedFlowComment, { - at: this.state.curPosition() - }); - } - return fileNode; - } - skipBlockComment() { - if (this.hasPlugin("flowComments") && this.skipFlowComment()) { - if (this.state.hasFlowComment) { - throw this.raise(FlowErrors.NestedFlowComment, { - at: this.state.startLoc - }); - } - this.hasFlowCommentCompletion(); - const commentSkip = this.skipFlowComment(); - if (commentSkip) { - this.state.pos += commentSkip; - this.state.hasFlowComment = true; - } - return; - } - return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/"); - } - skipFlowComment() { - const { - pos - } = this.state; - let shiftToFirstNonWhiteSpace = 2; - while ([32, 9].includes(this.input.charCodeAt(pos + shiftToFirstNonWhiteSpace))) { - shiftToFirstNonWhiteSpace++; - } - const ch2 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos); - const ch3 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos + 1); - if (ch2 === 58 && ch3 === 58) { - return shiftToFirstNonWhiteSpace + 2; - } - if (this.input.slice(shiftToFirstNonWhiteSpace + pos, shiftToFirstNonWhiteSpace + pos + 12) === "flow-include") { - return shiftToFirstNonWhiteSpace + 12; - } - if (ch2 === 58 && ch3 !== 58) { - return shiftToFirstNonWhiteSpace; - } - return false; - } - hasFlowCommentCompletion() { - const end = this.input.indexOf("*/", this.state.pos); - if (end === -1) { - throw this.raise(Errors.UnterminatedComment, { - at: this.state.curPosition() - }); - } - } - flowEnumErrorBooleanMemberNotInitialized(loc, { - enumName, - memberName - }) { - this.raise(FlowErrors.EnumBooleanMemberNotInitialized, { - at: loc, - memberName, - enumName - }); - } - flowEnumErrorInvalidMemberInitializer(loc, enumContext) { - return this.raise(!enumContext.explicitType ? FlowErrors.EnumInvalidMemberInitializerUnknownType : enumContext.explicitType === "symbol" ? FlowErrors.EnumInvalidMemberInitializerSymbolType : FlowErrors.EnumInvalidMemberInitializerPrimaryType, Object.assign({ - at: loc - }, enumContext)); - } - flowEnumErrorNumberMemberNotInitialized(loc, { - enumName, - memberName - }) { - this.raise(FlowErrors.EnumNumberMemberNotInitialized, { - at: loc, - enumName, - memberName - }); - } - flowEnumErrorStringMemberInconsistentlyInitailized(node, { - enumName - }) { - this.raise(FlowErrors.EnumStringMemberInconsistentlyInitailized, { - at: node, - enumName - }); - } - flowEnumMemberInit() { - const startLoc = this.state.startLoc; - const endOfInit = () => this.match(12) || this.match(8); - switch (this.state.type) { - case 132: - { - const literal = this.parseNumericLiteral(this.state.value); - if (endOfInit()) { - return { - type: "number", - loc: literal.loc.start, - value: literal - }; - } - return { - type: "invalid", - loc: startLoc - }; - } - case 131: - { - const literal = this.parseStringLiteral(this.state.value); - if (endOfInit()) { - return { - type: "string", - loc: literal.loc.start, - value: literal - }; - } - return { - type: "invalid", - loc: startLoc - }; - } - case 85: - case 86: - { - const literal = this.parseBooleanLiteral(this.match(85)); - if (endOfInit()) { - return { - type: "boolean", - loc: literal.loc.start, - value: literal - }; - } - return { - type: "invalid", - loc: startLoc - }; - } - default: - return { - type: "invalid", - loc: startLoc - }; - } - } - flowEnumMemberRaw() { - const loc = this.state.startLoc; - const id = this.parseIdentifier(true); - const init = this.eat(29) ? this.flowEnumMemberInit() : { - type: "none", - loc - }; - return { - id, - init - }; - } - flowEnumCheckExplicitTypeMismatch(loc, context, expectedType) { - const { - explicitType - } = context; - if (explicitType === null) { - return; - } - if (explicitType !== expectedType) { - this.flowEnumErrorInvalidMemberInitializer(loc, context); - } - } - flowEnumMembers({ - enumName, - explicitType - }) { - const seenNames = new Set(); - const members = { - booleanMembers: [], - numberMembers: [], - stringMembers: [], - defaultedMembers: [] - }; - let hasUnknownMembers = false; - while (!this.match(8)) { - if (this.eat(21)) { - hasUnknownMembers = true; - break; - } - const memberNode = this.startNode(); - const { - id, - init - } = this.flowEnumMemberRaw(); - const memberName = id.name; - if (memberName === "") { - continue; - } - if (/^[a-z]/.test(memberName)) { - this.raise(FlowErrors.EnumInvalidMemberName, { - at: id, - memberName, - suggestion: memberName[0].toUpperCase() + memberName.slice(1), - enumName - }); - } - if (seenNames.has(memberName)) { - this.raise(FlowErrors.EnumDuplicateMemberName, { - at: id, - memberName, - enumName - }); - } - seenNames.add(memberName); - const context = { - enumName, - explicitType, - memberName - }; - memberNode.id = id; - switch (init.type) { - case "boolean": - { - this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "boolean"); - memberNode.init = init.value; - members.booleanMembers.push(this.finishNode(memberNode, "EnumBooleanMember")); - break; - } - case "number": - { - this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "number"); - memberNode.init = init.value; - members.numberMembers.push(this.finishNode(memberNode, "EnumNumberMember")); - break; - } - case "string": - { - this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "string"); - memberNode.init = init.value; - members.stringMembers.push(this.finishNode(memberNode, "EnumStringMember")); - break; - } - case "invalid": - { - throw this.flowEnumErrorInvalidMemberInitializer(init.loc, context); - } - case "none": - { - switch (explicitType) { - case "boolean": - this.flowEnumErrorBooleanMemberNotInitialized(init.loc, context); - break; - case "number": - this.flowEnumErrorNumberMemberNotInitialized(init.loc, context); - break; - default: - members.defaultedMembers.push(this.finishNode(memberNode, "EnumDefaultedMember")); - } - } - } - if (!this.match(8)) { - this.expect(12); - } - } - return { - members, - hasUnknownMembers - }; - } - flowEnumStringMembers(initializedMembers, defaultedMembers, { - enumName - }) { - if (initializedMembers.length === 0) { - return defaultedMembers; - } else if (defaultedMembers.length === 0) { - return initializedMembers; - } else if (defaultedMembers.length > initializedMembers.length) { - for (const member of initializedMembers) { - this.flowEnumErrorStringMemberInconsistentlyInitailized(member, { - enumName - }); - } - return defaultedMembers; - } else { - for (const member of defaultedMembers) { - this.flowEnumErrorStringMemberInconsistentlyInitailized(member, { - enumName - }); - } - return initializedMembers; - } - } - flowEnumParseExplicitType({ - enumName - }) { - if (!this.eatContextual(101)) return null; - if (!tokenIsIdentifier(this.state.type)) { - throw this.raise(FlowErrors.EnumInvalidExplicitTypeUnknownSupplied, { - at: this.state.startLoc, - enumName - }); - } - const { - value - } = this.state; - this.next(); - if (value !== "boolean" && value !== "number" && value !== "string" && value !== "symbol") { - this.raise(FlowErrors.EnumInvalidExplicitType, { - at: this.state.startLoc, - enumName, - invalidEnumType: value - }); - } - return value; - } - flowEnumBody(node, id) { - const enumName = id.name; - const nameLoc = id.loc.start; - const explicitType = this.flowEnumParseExplicitType({ - enumName - }); - this.expect(5); - const { - members, - hasUnknownMembers - } = this.flowEnumMembers({ - enumName, - explicitType - }); - node.hasUnknownMembers = hasUnknownMembers; - switch (explicitType) { - case "boolean": - node.explicitType = true; - node.members = members.booleanMembers; - this.expect(8); - return this.finishNode(node, "EnumBooleanBody"); - case "number": - node.explicitType = true; - node.members = members.numberMembers; - this.expect(8); - return this.finishNode(node, "EnumNumberBody"); - case "string": - node.explicitType = true; - node.members = this.flowEnumStringMembers(members.stringMembers, members.defaultedMembers, { - enumName - }); - this.expect(8); - return this.finishNode(node, "EnumStringBody"); - case "symbol": - node.members = members.defaultedMembers; - this.expect(8); - return this.finishNode(node, "EnumSymbolBody"); - default: - { - const empty = () => { - node.members = []; - this.expect(8); - return this.finishNode(node, "EnumStringBody"); - }; - node.explicitType = false; - const boolsLen = members.booleanMembers.length; - const numsLen = members.numberMembers.length; - const strsLen = members.stringMembers.length; - const defaultedLen = members.defaultedMembers.length; - if (!boolsLen && !numsLen && !strsLen && !defaultedLen) { - return empty(); - } else if (!boolsLen && !numsLen) { - node.members = this.flowEnumStringMembers(members.stringMembers, members.defaultedMembers, { - enumName - }); - this.expect(8); - return this.finishNode(node, "EnumStringBody"); - } else if (!numsLen && !strsLen && boolsLen >= defaultedLen) { - for (const member of members.defaultedMembers) { - this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start, { - enumName, - memberName: member.id.name - }); - } - node.members = members.booleanMembers; - this.expect(8); - return this.finishNode(node, "EnumBooleanBody"); - } else if (!boolsLen && !strsLen && numsLen >= defaultedLen) { - for (const member of members.defaultedMembers) { - this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, { - enumName, - memberName: member.id.name - }); - } - node.members = members.numberMembers; - this.expect(8); - return this.finishNode(node, "EnumNumberBody"); - } else { - this.raise(FlowErrors.EnumInconsistentMemberValues, { - at: nameLoc, - enumName - }); - return empty(); - } - } - } - } - flowParseEnumDeclaration(node) { - const id = this.parseIdentifier(); - node.id = id; - node.body = this.flowEnumBody(this.startNode(), id); - return this.finishNode(node, "EnumDeclaration"); - } - isLookaheadToken_lt() { - const next = this.nextTokenStart(); - if (this.input.charCodeAt(next) === 60) { - const afterNext = this.input.charCodeAt(next + 1); - return afterNext !== 60 && afterNext !== 61; - } - return false; - } - maybeUnwrapTypeCastExpression(node) { - return node.type === "TypeCastExpression" ? node.expression : node; - } -}; -const entities = { - __proto__: null, - quot: "\u0022", - amp: "&", - apos: "\u0027", - lt: "<", - gt: ">", - nbsp: "\u00A0", - iexcl: "\u00A1", - cent: "\u00A2", - pound: "\u00A3", - curren: "\u00A4", - yen: "\u00A5", - brvbar: "\u00A6", - sect: "\u00A7", - uml: "\u00A8", - copy: "\u00A9", - ordf: "\u00AA", - laquo: "\u00AB", - not: "\u00AC", - shy: "\u00AD", - reg: "\u00AE", - macr: "\u00AF", - deg: "\u00B0", - plusmn: "\u00B1", - sup2: "\u00B2", - sup3: "\u00B3", - acute: "\u00B4", - micro: "\u00B5", - para: "\u00B6", - middot: "\u00B7", - cedil: "\u00B8", - sup1: "\u00B9", - ordm: "\u00BA", - raquo: "\u00BB", - frac14: "\u00BC", - frac12: "\u00BD", - frac34: "\u00BE", - iquest: "\u00BF", - Agrave: "\u00C0", - Aacute: "\u00C1", - Acirc: "\u00C2", - Atilde: "\u00C3", - Auml: "\u00C4", - Aring: "\u00C5", - AElig: "\u00C6", - Ccedil: "\u00C7", - Egrave: "\u00C8", - Eacute: "\u00C9", - Ecirc: "\u00CA", - Euml: "\u00CB", - Igrave: "\u00CC", - Iacute: "\u00CD", - Icirc: "\u00CE", - Iuml: "\u00CF", - ETH: "\u00D0", - Ntilde: "\u00D1", - Ograve: "\u00D2", - Oacute: "\u00D3", - Ocirc: "\u00D4", - Otilde: "\u00D5", - Ouml: "\u00D6", - times: "\u00D7", - Oslash: "\u00D8", - Ugrave: "\u00D9", - Uacute: "\u00DA", - Ucirc: "\u00DB", - Uuml: "\u00DC", - Yacute: "\u00DD", - THORN: "\u00DE", - szlig: "\u00DF", - agrave: "\u00E0", - aacute: "\u00E1", - acirc: "\u00E2", - atilde: "\u00E3", - auml: "\u00E4", - aring: "\u00E5", - aelig: "\u00E6", - ccedil: "\u00E7", - egrave: "\u00E8", - eacute: "\u00E9", - ecirc: "\u00EA", - euml: "\u00EB", - igrave: "\u00EC", - iacute: "\u00ED", - icirc: "\u00EE", - iuml: "\u00EF", - eth: "\u00F0", - ntilde: "\u00F1", - ograve: "\u00F2", - oacute: "\u00F3", - ocirc: "\u00F4", - otilde: "\u00F5", - ouml: "\u00F6", - divide: "\u00F7", - oslash: "\u00F8", - ugrave: "\u00F9", - uacute: "\u00FA", - ucirc: "\u00FB", - uuml: "\u00FC", - yacute: "\u00FD", - thorn: "\u00FE", - yuml: "\u00FF", - OElig: "\u0152", - oelig: "\u0153", - Scaron: "\u0160", - scaron: "\u0161", - Yuml: "\u0178", - fnof: "\u0192", - circ: "\u02C6", - tilde: "\u02DC", - Alpha: "\u0391", - Beta: "\u0392", - Gamma: "\u0393", - Delta: "\u0394", - Epsilon: "\u0395", - Zeta: "\u0396", - Eta: "\u0397", - Theta: "\u0398", - Iota: "\u0399", - Kappa: "\u039A", - Lambda: "\u039B", - Mu: "\u039C", - Nu: "\u039D", - Xi: "\u039E", - Omicron: "\u039F", - Pi: "\u03A0", - Rho: "\u03A1", - Sigma: "\u03A3", - Tau: "\u03A4", - Upsilon: "\u03A5", - Phi: "\u03A6", - Chi: "\u03A7", - Psi: "\u03A8", - Omega: "\u03A9", - alpha: "\u03B1", - beta: "\u03B2", - gamma: "\u03B3", - delta: "\u03B4", - epsilon: "\u03B5", - zeta: "\u03B6", - eta: "\u03B7", - theta: "\u03B8", - iota: "\u03B9", - kappa: "\u03BA", - lambda: "\u03BB", - mu: "\u03BC", - nu: "\u03BD", - xi: "\u03BE", - omicron: "\u03BF", - pi: "\u03C0", - rho: "\u03C1", - sigmaf: "\u03C2", - sigma: "\u03C3", - tau: "\u03C4", - upsilon: "\u03C5", - phi: "\u03C6", - chi: "\u03C7", - psi: "\u03C8", - omega: "\u03C9", - thetasym: "\u03D1", - upsih: "\u03D2", - piv: "\u03D6", - ensp: "\u2002", - emsp: "\u2003", - thinsp: "\u2009", - zwnj: "\u200C", - zwj: "\u200D", - lrm: "\u200E", - rlm: "\u200F", - ndash: "\u2013", - mdash: "\u2014", - lsquo: "\u2018", - rsquo: "\u2019", - sbquo: "\u201A", - ldquo: "\u201C", - rdquo: "\u201D", - bdquo: "\u201E", - dagger: "\u2020", - Dagger: "\u2021", - bull: "\u2022", - hellip: "\u2026", - permil: "\u2030", - prime: "\u2032", - Prime: "\u2033", - lsaquo: "\u2039", - rsaquo: "\u203A", - oline: "\u203E", - frasl: "\u2044", - euro: "\u20AC", - image: "\u2111", - weierp: "\u2118", - real: "\u211C", - trade: "\u2122", - alefsym: "\u2135", - larr: "\u2190", - uarr: "\u2191", - rarr: "\u2192", - darr: "\u2193", - harr: "\u2194", - crarr: "\u21B5", - lArr: "\u21D0", - uArr: "\u21D1", - rArr: "\u21D2", - dArr: "\u21D3", - hArr: "\u21D4", - forall: "\u2200", - part: "\u2202", - exist: "\u2203", - empty: "\u2205", - nabla: "\u2207", - isin: "\u2208", - notin: "\u2209", - ni: "\u220B", - prod: "\u220F", - sum: "\u2211", - minus: "\u2212", - lowast: "\u2217", - radic: "\u221A", - prop: "\u221D", - infin: "\u221E", - ang: "\u2220", - and: "\u2227", - or: "\u2228", - cap: "\u2229", - cup: "\u222A", - int: "\u222B", - there4: "\u2234", - sim: "\u223C", - cong: "\u2245", - asymp: "\u2248", - ne: "\u2260", - equiv: "\u2261", - le: "\u2264", - ge: "\u2265", - sub: "\u2282", - sup: "\u2283", - nsub: "\u2284", - sube: "\u2286", - supe: "\u2287", - oplus: "\u2295", - otimes: "\u2297", - perp: "\u22A5", - sdot: "\u22C5", - lceil: "\u2308", - rceil: "\u2309", - lfloor: "\u230A", - rfloor: "\u230B", - lang: "\u2329", - rang: "\u232A", - loz: "\u25CA", - spades: "\u2660", - clubs: "\u2663", - hearts: "\u2665", - diams: "\u2666" -}; -const JsxErrors = ParseErrorEnum`jsx`({ - AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", - MissingClosingTagElement: ({ - openingTagName - }) => `Expected corresponding JSX closing tag for <${openingTagName}>.`, - MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.", - UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?", - UnexpectedToken: ({ - unexpected, - HTMLEntity - }) => `Unexpected token \`${unexpected}\`. Did you mean \`${HTMLEntity}\` or \`{'${unexpected}'}\`?`, - UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.", - UnterminatedJsxContent: "Unterminated JSX contents.", - UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?" -}); -function isFragment(object) { - return object ? object.type === "JSXOpeningFragment" || object.type === "JSXClosingFragment" : false; -} -function getQualifiedJSXName(object) { - if (object.type === "JSXIdentifier") { - return object.name; - } - if (object.type === "JSXNamespacedName") { - return object.namespace.name + ":" + object.name.name; - } - if (object.type === "JSXMemberExpression") { - return getQualifiedJSXName(object.object) + "." + getQualifiedJSXName(object.property); - } - throw new Error("Node had unexpected type: " + object.type); -} -var jsx = superClass => class JSXParserMixin extends superClass { - jsxReadToken() { - let out = ""; - let chunkStart = this.state.pos; - for (;;) { - if (this.state.pos >= this.length) { - throw this.raise(JsxErrors.UnterminatedJsxContent, { - at: this.state.startLoc - }); - } - const ch = this.input.charCodeAt(this.state.pos); - switch (ch) { - case 60: - case 123: - if (this.state.pos === this.state.start) { - if (ch === 60 && this.state.canStartJSXElement) { - ++this.state.pos; - this.finishToken(140); - } else { - super.getTokenFromCode(ch); - } - return; - } - out += this.input.slice(chunkStart, this.state.pos); - this.finishToken(139, out); - return; - case 38: - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadEntity(); - chunkStart = this.state.pos; - break; - case 62: - case 125: - default: - if (isNewLine(ch)) { - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadNewLine(true); - chunkStart = this.state.pos; - } else { - ++this.state.pos; - } - } - } - } - jsxReadNewLine(normalizeCRLF) { - const ch = this.input.charCodeAt(this.state.pos); - let out; - ++this.state.pos; - if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) { - ++this.state.pos; - out = normalizeCRLF ? "\n" : "\r\n"; - } else { - out = String.fromCharCode(ch); - } - ++this.state.curLine; - this.state.lineStart = this.state.pos; - return out; - } - jsxReadString(quote) { - let out = ""; - let chunkStart = ++this.state.pos; - for (;;) { - if (this.state.pos >= this.length) { - throw this.raise(Errors.UnterminatedString, { - at: this.state.startLoc - }); - } - const ch = this.input.charCodeAt(this.state.pos); - if (ch === quote) break; - if (ch === 38) { - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadEntity(); - chunkStart = this.state.pos; - } else if (isNewLine(ch)) { - out += this.input.slice(chunkStart, this.state.pos); - out += this.jsxReadNewLine(false); - chunkStart = this.state.pos; - } else { - ++this.state.pos; - } - } - out += this.input.slice(chunkStart, this.state.pos++); - this.finishToken(131, out); - } - jsxReadEntity() { - const startPos = ++this.state.pos; - if (this.codePointAtPos(this.state.pos) === 35) { - ++this.state.pos; - let radix = 10; - if (this.codePointAtPos(this.state.pos) === 120) { - radix = 16; - ++this.state.pos; - } - const codePoint = this.readInt(radix, undefined, false, "bail"); - if (codePoint !== null && this.codePointAtPos(this.state.pos) === 59) { - ++this.state.pos; - return String.fromCodePoint(codePoint); - } - } else { - let count = 0; - let semi = false; - while (count++ < 10 && this.state.pos < this.length && !(semi = this.codePointAtPos(this.state.pos) == 59)) { - ++this.state.pos; - } - if (semi) { - const desc = this.input.slice(startPos, this.state.pos); - const entity = entities[desc]; - ++this.state.pos; - if (entity) { - return entity; - } - } - } - this.state.pos = startPos; - return "&"; - } - jsxReadWord() { - let ch; - const start = this.state.pos; - do { - ch = this.input.charCodeAt(++this.state.pos); - } while (isIdentifierChar(ch) || ch === 45); - this.finishToken(138, this.input.slice(start, this.state.pos)); - } - jsxParseIdentifier() { - const node = this.startNode(); - if (this.match(138)) { - node.name = this.state.value; - } else if (tokenIsKeyword(this.state.type)) { - node.name = tokenLabelName(this.state.type); - } else { - this.unexpected(); - } - this.next(); - return this.finishNode(node, "JSXIdentifier"); - } - jsxParseNamespacedName() { - const startLoc = this.state.startLoc; - const name = this.jsxParseIdentifier(); - if (!this.eat(14)) return name; - const node = this.startNodeAt(startLoc); - node.namespace = name; - node.name = this.jsxParseIdentifier(); - return this.finishNode(node, "JSXNamespacedName"); - } - jsxParseElementName() { - const startLoc = this.state.startLoc; - let node = this.jsxParseNamespacedName(); - if (node.type === "JSXNamespacedName") { - return node; - } - while (this.eat(16)) { - const newNode = this.startNodeAt(startLoc); - newNode.object = node; - newNode.property = this.jsxParseIdentifier(); - node = this.finishNode(newNode, "JSXMemberExpression"); - } - return node; - } - jsxParseAttributeValue() { - let node; - switch (this.state.type) { - case 5: - node = this.startNode(); - this.setContext(types.brace); - this.next(); - node = this.jsxParseExpressionContainer(node, types.j_oTag); - if (node.expression.type === "JSXEmptyExpression") { - this.raise(JsxErrors.AttributeIsEmpty, { - at: node - }); - } - return node; - case 140: - case 131: - return this.parseExprAtom(); - default: - throw this.raise(JsxErrors.UnsupportedJsxValue, { - at: this.state.startLoc - }); - } - } - jsxParseEmptyExpression() { - const node = this.startNodeAt(this.state.lastTokEndLoc); - return this.finishNodeAt(node, "JSXEmptyExpression", this.state.startLoc); - } - jsxParseSpreadChild(node) { - this.next(); - node.expression = this.parseExpression(); - this.setContext(types.j_expr); - this.state.canStartJSXElement = true; - this.expect(8); - return this.finishNode(node, "JSXSpreadChild"); - } - jsxParseExpressionContainer(node, previousContext) { - if (this.match(8)) { - node.expression = this.jsxParseEmptyExpression(); - } else { - const expression = this.parseExpression(); - node.expression = expression; - } - this.setContext(previousContext); - this.state.canStartJSXElement = true; - this.expect(8); - return this.finishNode(node, "JSXExpressionContainer"); - } - jsxParseAttribute() { - const node = this.startNode(); - if (this.match(5)) { - this.setContext(types.brace); - this.next(); - this.expect(21); - node.argument = this.parseMaybeAssignAllowIn(); - this.setContext(types.j_oTag); - this.state.canStartJSXElement = true; - this.expect(8); - return this.finishNode(node, "JSXSpreadAttribute"); - } - node.name = this.jsxParseNamespacedName(); - node.value = this.eat(29) ? this.jsxParseAttributeValue() : null; - return this.finishNode(node, "JSXAttribute"); - } - jsxParseOpeningElementAt(startLoc) { - const node = this.startNodeAt(startLoc); - if (this.eat(141)) { - return this.finishNode(node, "JSXOpeningFragment"); - } - node.name = this.jsxParseElementName(); - return this.jsxParseOpeningElementAfterName(node); - } - jsxParseOpeningElementAfterName(node) { - const attributes = []; - while (!this.match(56) && !this.match(141)) { - attributes.push(this.jsxParseAttribute()); - } - node.attributes = attributes; - node.selfClosing = this.eat(56); - this.expect(141); - return this.finishNode(node, "JSXOpeningElement"); - } - jsxParseClosingElementAt(startLoc) { - const node = this.startNodeAt(startLoc); - if (this.eat(141)) { - return this.finishNode(node, "JSXClosingFragment"); - } - node.name = this.jsxParseElementName(); - this.expect(141); - return this.finishNode(node, "JSXClosingElement"); - } - jsxParseElementAt(startLoc) { - const node = this.startNodeAt(startLoc); - const children = []; - const openingElement = this.jsxParseOpeningElementAt(startLoc); - let closingElement = null; - if (!openingElement.selfClosing) { - contents: for (;;) { - switch (this.state.type) { - case 140: - startLoc = this.state.startLoc; - this.next(); - if (this.eat(56)) { - closingElement = this.jsxParseClosingElementAt(startLoc); - break contents; - } - children.push(this.jsxParseElementAt(startLoc)); - break; - case 139: - children.push(this.parseExprAtom()); - break; - case 5: - { - const node = this.startNode(); - this.setContext(types.brace); - this.next(); - if (this.match(21)) { - children.push(this.jsxParseSpreadChild(node)); - } else { - children.push(this.jsxParseExpressionContainer(node, types.j_expr)); - } - break; - } - default: - this.unexpected(); - } - } - if (isFragment(openingElement) && !isFragment(closingElement) && closingElement !== null) { - this.raise(JsxErrors.MissingClosingTagFragment, { - at: closingElement - }); - } else if (!isFragment(openingElement) && isFragment(closingElement)) { - this.raise(JsxErrors.MissingClosingTagElement, { - at: closingElement, - openingTagName: getQualifiedJSXName(openingElement.name) - }); - } else if (!isFragment(openingElement) && !isFragment(closingElement)) { - if (getQualifiedJSXName(closingElement.name) !== getQualifiedJSXName(openingElement.name)) { - this.raise(JsxErrors.MissingClosingTagElement, { - at: closingElement, - openingTagName: getQualifiedJSXName(openingElement.name) - }); - } - } - } - if (isFragment(openingElement)) { - node.openingFragment = openingElement; - node.closingFragment = closingElement; - } else { - node.openingElement = openingElement; - node.closingElement = closingElement; - } - node.children = children; - if (this.match(47)) { - throw this.raise(JsxErrors.UnwrappedAdjacentJSXElements, { - at: this.state.startLoc - }); - } - return isFragment(openingElement) ? this.finishNode(node, "JSXFragment") : this.finishNode(node, "JSXElement"); - } - jsxParseElement() { - const startLoc = this.state.startLoc; - this.next(); - return this.jsxParseElementAt(startLoc); - } - setContext(newContext) { - const { - context - } = this.state; - context[context.length - 1] = newContext; - } - parseExprAtom(refExpressionErrors) { - if (this.match(139)) { - return this.parseLiteral(this.state.value, "JSXText"); - } else if (this.match(140)) { - return this.jsxParseElement(); - } else if (this.match(47) && this.input.charCodeAt(this.state.pos) !== 33) { - this.replaceToken(140); - return this.jsxParseElement(); - } else { - return super.parseExprAtom(refExpressionErrors); - } - } - skipSpace() { - const curContext = this.curContext(); - if (!curContext.preserveSpace) super.skipSpace(); - } - getTokenFromCode(code) { - const context = this.curContext(); - if (context === types.j_expr) { - this.jsxReadToken(); - return; - } - if (context === types.j_oTag || context === types.j_cTag) { - if (isIdentifierStart(code)) { - this.jsxReadWord(); - return; - } - if (code === 62) { - ++this.state.pos; - this.finishToken(141); - return; - } - if ((code === 34 || code === 39) && context === types.j_oTag) { - this.jsxReadString(code); - return; - } - } - if (code === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) { - ++this.state.pos; - this.finishToken(140); - return; - } - super.getTokenFromCode(code); - } - updateContext(prevType) { - const { - context, - type - } = this.state; - if (type === 56 && prevType === 140) { - context.splice(-2, 2, types.j_cTag); - this.state.canStartJSXElement = false; - } else if (type === 140) { - context.push(types.j_oTag); - } else if (type === 141) { - const out = context[context.length - 1]; - if (out === types.j_oTag && prevType === 56 || out === types.j_cTag) { - context.pop(); - this.state.canStartJSXElement = context[context.length - 1] === types.j_expr; - } else { - this.setContext(types.j_expr); - this.state.canStartJSXElement = true; - } - } else { - this.state.canStartJSXElement = tokenComesBeforeExpression(type); - } - } -}; -class TypeScriptScope extends Scope { - constructor(...args) { - super(...args); - this.types = new Set(); - this.enums = new Set(); - this.constEnums = new Set(); - this.classes = new Set(); - this.exportOnlyBindings = new Set(); - } -} -class TypeScriptScopeHandler extends ScopeHandler { - constructor(...args) { - super(...args); - this.importsStack = []; - } - createScope(flags) { - this.importsStack.push(new Set()); - return new TypeScriptScope(flags); - } - enter(flags) { - if (flags == SCOPE_TS_MODULE) { - this.importsStack.push(new Set()); - } - super.enter(flags); - } - exit() { - const flags = super.exit(); - if (flags == SCOPE_TS_MODULE) { - this.importsStack.pop(); - } - return flags; - } - hasImport(name, allowShadow) { - const len = this.importsStack.length; - if (this.importsStack[len - 1].has(name)) { - return true; - } - if (!allowShadow && len > 1) { - for (let i = 0; i < len - 1; i++) { - if (this.importsStack[i].has(name)) return true; - } - } - return false; - } - declareName(name, bindingType, loc) { - if (bindingType & BIND_FLAGS_TS_IMPORT) { - if (this.hasImport(name, true)) { - this.parser.raise(Errors.VarRedeclaration, { - at: loc, - identifierName: name - }); - } - this.importsStack[this.importsStack.length - 1].add(name); - return; - } - const scope = this.currentScope(); - if (bindingType & BIND_FLAGS_TS_EXPORT_ONLY) { - this.maybeExportDefined(scope, name); - scope.exportOnlyBindings.add(name); - return; - } - super.declareName(name, bindingType, loc); - if (bindingType & BIND_KIND_TYPE) { - if (!(bindingType & BIND_KIND_VALUE)) { - this.checkRedeclarationInScope(scope, name, bindingType, loc); - this.maybeExportDefined(scope, name); - } - scope.types.add(name); - } - if (bindingType & BIND_FLAGS_TS_ENUM) scope.enums.add(name); - if (bindingType & BIND_FLAGS_TS_CONST_ENUM) scope.constEnums.add(name); - if (bindingType & BIND_FLAGS_CLASS) scope.classes.add(name); - } - isRedeclaredInScope(scope, name, bindingType) { - if (scope.enums.has(name)) { - if (bindingType & BIND_FLAGS_TS_ENUM) { - const isConst = !!(bindingType & BIND_FLAGS_TS_CONST_ENUM); - const wasConst = scope.constEnums.has(name); - return isConst !== wasConst; - } - return true; - } - if (bindingType & BIND_FLAGS_CLASS && scope.classes.has(name)) { - if (scope.lexical.has(name)) { - return !!(bindingType & BIND_KIND_VALUE); - } else { - return false; - } - } - if (bindingType & BIND_KIND_TYPE && scope.types.has(name)) { - return true; - } - return super.isRedeclaredInScope(scope, name, bindingType); - } - checkLocalExport(id) { - const { - name - } = id; - if (this.hasImport(name)) return; - const len = this.scopeStack.length; - for (let i = len - 1; i >= 0; i--) { - const scope = this.scopeStack[i]; - if (scope.types.has(name) || scope.exportOnlyBindings.has(name)) return; - } - super.checkLocalExport(id); - } -} -const getOwn$1 = (object, key) => Object.hasOwnProperty.call(object, key) && object[key]; -const unwrapParenthesizedExpression = node => { - return node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node; -}; -class LValParser extends NodeUtils { - toAssignable(node, isLHS = false) { - var _node$extra, _node$extra3; - let parenthesized = undefined; - if (node.type === "ParenthesizedExpression" || (_node$extra = node.extra) != null && _node$extra.parenthesized) { - parenthesized = unwrapParenthesizedExpression(node); - if (isLHS) { - if (parenthesized.type === "Identifier") { - this.expressionScope.recordArrowParameterBindingError(Errors.InvalidParenthesizedAssignment, { - at: node - }); - } else if (parenthesized.type !== "MemberExpression") { - this.raise(Errors.InvalidParenthesizedAssignment, { - at: node - }); - } - } else { - this.raise(Errors.InvalidParenthesizedAssignment, { - at: node - }); - } - } - switch (node.type) { - case "Identifier": - case "ObjectPattern": - case "ArrayPattern": - case "AssignmentPattern": - case "RestElement": - break; - case "ObjectExpression": - node.type = "ObjectPattern"; - for (let i = 0, length = node.properties.length, last = length - 1; i < length; i++) { - var _node$extra2; - const prop = node.properties[i]; - const isLast = i === last; - this.toAssignableObjectExpressionProp(prop, isLast, isLHS); - if (isLast && prop.type === "RestElement" && (_node$extra2 = node.extra) != null && _node$extra2.trailingCommaLoc) { - this.raise(Errors.RestTrailingComma, { - at: node.extra.trailingCommaLoc - }); - } - } - break; - case "ObjectProperty": - { - const { - key, - value - } = node; - if (this.isPrivateName(key)) { - this.classScope.usePrivateName(this.getPrivateNameSV(key), key.loc.start); - } - this.toAssignable(value, isLHS); - break; - } - case "SpreadElement": - { - throw new Error("Internal @babel/parser error (this is a bug, please report it)." + " SpreadElement should be converted by .toAssignable's caller."); - } - case "ArrayExpression": - node.type = "ArrayPattern"; - this.toAssignableList(node.elements, (_node$extra3 = node.extra) == null ? void 0 : _node$extra3.trailingCommaLoc, isLHS); - break; - case "AssignmentExpression": - if (node.operator !== "=") { - this.raise(Errors.MissingEqInAssignment, { - at: node.left.loc.end - }); - } - node.type = "AssignmentPattern"; - delete node.operator; - this.toAssignable(node.left, isLHS); - break; - case "ParenthesizedExpression": - this.toAssignable(parenthesized, isLHS); - break; - } - } - toAssignableObjectExpressionProp(prop, isLast, isLHS) { - if (prop.type === "ObjectMethod") { - this.raise(prop.kind === "get" || prop.kind === "set" ? Errors.PatternHasAccessor : Errors.PatternHasMethod, { - at: prop.key - }); - } else if (prop.type === "SpreadElement") { - prop.type = "RestElement"; - const arg = prop.argument; - this.checkToRestConversion(arg, false); - this.toAssignable(arg, isLHS); - if (!isLast) { - this.raise(Errors.RestTrailingComma, { - at: prop - }); - } - } else { - this.toAssignable(prop, isLHS); - } - } - toAssignableList(exprList, trailingCommaLoc, isLHS) { - const end = exprList.length - 1; - for (let i = 0; i <= end; i++) { - const elt = exprList[i]; - if (!elt) continue; - if (elt.type === "SpreadElement") { - elt.type = "RestElement"; - const arg = elt.argument; - this.checkToRestConversion(arg, true); - this.toAssignable(arg, isLHS); - } else { - this.toAssignable(elt, isLHS); - } - if (elt.type === "RestElement") { - if (i < end) { - this.raise(Errors.RestTrailingComma, { - at: elt - }); - } else if (trailingCommaLoc) { - this.raise(Errors.RestTrailingComma, { - at: trailingCommaLoc - }); - } - } - } - } - isAssignable(node, isBinding) { - switch (node.type) { - case "Identifier": - case "ObjectPattern": - case "ArrayPattern": - case "AssignmentPattern": - case "RestElement": - return true; - case "ObjectExpression": - { - const last = node.properties.length - 1; - return node.properties.every((prop, i) => { - return prop.type !== "ObjectMethod" && (i === last || prop.type !== "SpreadElement") && this.isAssignable(prop); - }); - } - case "ObjectProperty": - return this.isAssignable(node.value); - case "SpreadElement": - return this.isAssignable(node.argument); - case "ArrayExpression": - return node.elements.every(element => element === null || this.isAssignable(element)); - case "AssignmentExpression": - return node.operator === "="; - case "ParenthesizedExpression": - return this.isAssignable(node.expression); - case "MemberExpression": - case "OptionalMemberExpression": - return !isBinding; - default: - return false; - } - } - toReferencedList(exprList, isParenthesizedExpr) { - return exprList; - } - toReferencedListDeep(exprList, isParenthesizedExpr) { - this.toReferencedList(exprList, isParenthesizedExpr); - for (const expr of exprList) { - if ((expr == null ? void 0 : expr.type) === "ArrayExpression") { - this.toReferencedListDeep(expr.elements); - } - } - } - parseSpread(refExpressionErrors) { - const node = this.startNode(); - this.next(); - node.argument = this.parseMaybeAssignAllowIn(refExpressionErrors, undefined); - return this.finishNode(node, "SpreadElement"); - } - parseRestBinding() { - const node = this.startNode(); - this.next(); - node.argument = this.parseBindingAtom(); - return this.finishNode(node, "RestElement"); - } - parseBindingAtom() { - switch (this.state.type) { - case 0: - { - const node = this.startNode(); - this.next(); - node.elements = this.parseBindingList(3, 93, 1); - return this.finishNode(node, "ArrayPattern"); - } - case 5: - return this.parseObjectLike(8, true); - } - return this.parseIdentifier(); - } - parseBindingList(close, closeCharCode, flags) { - const allowEmpty = flags & 1; - const elts = []; - let first = true; - while (!this.eat(close)) { - if (first) { - first = false; - } else { - this.expect(12); - } - if (allowEmpty && this.match(12)) { - elts.push(null); - } else if (this.eat(close)) { - break; - } else if (this.match(21)) { - elts.push(this.parseAssignableListItemTypes(this.parseRestBinding(), flags)); - if (!this.checkCommaAfterRest(closeCharCode)) { - this.expect(close); - break; - } - } else { - const decorators = []; - if (this.match(26) && this.hasPlugin("decorators")) { - this.raise(Errors.UnsupportedParameterDecorator, { - at: this.state.startLoc - }); - } - while (this.match(26)) { - decorators.push(this.parseDecorator()); - } - elts.push(this.parseAssignableListItem(flags, decorators)); - } - } - return elts; - } - parseBindingRestProperty(prop) { - this.next(); - prop.argument = this.parseIdentifier(); - this.checkCommaAfterRest(125); - return this.finishNode(prop, "RestElement"); - } - parseBindingProperty() { - const prop = this.startNode(); - const { - type, - startLoc - } = this.state; - if (type === 21) { - return this.parseBindingRestProperty(prop); - } else if (type === 136) { - this.expectPlugin("destructuringPrivate", startLoc); - this.classScope.usePrivateName(this.state.value, startLoc); - prop.key = this.parsePrivateName(); - } else { - this.parsePropertyName(prop); - } - prop.method = false; - return this.parseObjPropValue(prop, startLoc, false, false, true, false); - } - parseAssignableListItem(flags, decorators) { - const left = this.parseMaybeDefault(); - this.parseAssignableListItemTypes(left, flags); - const elt = this.parseMaybeDefault(left.loc.start, left); - if (decorators.length) { - left.decorators = decorators; - } - return elt; - } - parseAssignableListItemTypes(param, flags) { - return param; - } - parseMaybeDefault(startLoc, left) { - var _startLoc, _left; - (_startLoc = startLoc) != null ? _startLoc : startLoc = this.state.startLoc; - left = (_left = left) != null ? _left : this.parseBindingAtom(); - if (!this.eat(29)) return left; - const node = this.startNodeAt(startLoc); - node.left = left; - node.right = this.parseMaybeAssignAllowIn(); - return this.finishNode(node, "AssignmentPattern"); - } - isValidLVal(type, isUnparenthesizedInAssign, binding) { - return getOwn$1({ - AssignmentPattern: "left", - RestElement: "argument", - ObjectProperty: "value", - ParenthesizedExpression: "expression", - ArrayPattern: "elements", - ObjectPattern: "properties" - }, type); - } - checkLVal(expression, { - in: ancestor, - binding = BIND_NONE, - checkClashes = false, - strictModeChanged = false, - hasParenthesizedAncestor = false - }) { - var _expression$extra; - const type = expression.type; - if (this.isObjectMethod(expression)) return; - if (type === "MemberExpression") { - if (binding !== BIND_NONE) { - this.raise(Errors.InvalidPropertyBindingPattern, { - at: expression - }); - } - return; - } - if (type === "Identifier") { - this.checkIdentifier(expression, binding, strictModeChanged); - const { - name - } = expression; - if (checkClashes) { - if (checkClashes.has(name)) { - this.raise(Errors.ParamDupe, { - at: expression - }); - } else { - checkClashes.add(name); - } - } - return; - } - const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding); - if (validity === true) return; - if (validity === false) { - const ParseErrorClass = binding === BIND_NONE ? Errors.InvalidLhs : Errors.InvalidLhsBinding; - this.raise(ParseErrorClass, { - at: expression, - ancestor - }); - return; - } - const [key, isParenthesizedExpression] = Array.isArray(validity) ? validity : [validity, type === "ParenthesizedExpression"]; - const nextAncestor = type === "ArrayPattern" || type === "ObjectPattern" || type === "ParenthesizedExpression" ? { - type - } : ancestor; - for (const child of [].concat(expression[key])) { - if (child) { - this.checkLVal(child, { - in: nextAncestor, - binding, - checkClashes, - strictModeChanged, - hasParenthesizedAncestor: isParenthesizedExpression - }); - } - } - } - checkIdentifier(at, bindingType, strictModeChanged = false) { - if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) { - if (bindingType === BIND_NONE) { - this.raise(Errors.StrictEvalArguments, { - at, - referenceName: at.name - }); - } else { - this.raise(Errors.StrictEvalArgumentsBinding, { - at, - bindingName: at.name - }); - } - } - if (bindingType & BIND_FLAGS_NO_LET_IN_LEXICAL && at.name === "let") { - this.raise(Errors.LetInLexicalBinding, { - at - }); - } - if (!(bindingType & BIND_NONE)) { - this.declareNameFromIdentifier(at, bindingType); - } - } - declareNameFromIdentifier(identifier, binding) { - this.scope.declareName(identifier.name, binding, identifier.loc.start); - } - checkToRestConversion(node, allowPattern) { - switch (node.type) { - case "ParenthesizedExpression": - this.checkToRestConversion(node.expression, allowPattern); - break; - case "Identifier": - case "MemberExpression": - break; - case "ArrayExpression": - case "ObjectExpression": - if (allowPattern) break; - default: - this.raise(Errors.InvalidRestAssignmentPattern, { - at: node - }); - } - } - checkCommaAfterRest(close) { - if (!this.match(12)) { - return false; - } - this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, { - at: this.state.startLoc - }); - return true; - } -} -const getOwn = (object, key) => Object.hasOwnProperty.call(object, key) && object[key]; -function nonNull(x) { - if (x == null) { - throw new Error(`Unexpected ${x} value.`); - } - return x; -} -function assert(x) { - if (!x) { - throw new Error("Assert fail"); - } -} -const TSErrors = ParseErrorEnum`typescript`({ - AbstractMethodHasImplementation: ({ - methodName - }) => `Method '${methodName}' cannot have an implementation because it is marked abstract.`, - AbstractPropertyHasInitializer: ({ - propertyName - }) => `Property '${propertyName}' cannot have an initializer because it is marked abstract.`, - AccesorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", - AccesorCannotHaveTypeParameters: "An accessor cannot have type parameters.", - AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", - ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", - ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", - ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.", - ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", - DeclareAccessor: ({ - kind - }) => `'declare' is not allowed in ${kind}ters.`, - DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", - DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", - DuplicateAccessibilityModifier: ({ - modifier - }) => `Accessibility modifier already seen.`, - DuplicateModifier: ({ - modifier - }) => `Duplicate modifier: '${modifier}'.`, - EmptyHeritageClauseType: ({ - token - }) => `'${token}' list cannot be empty.`, - EmptyTypeArguments: "Type argument list cannot be empty.", - EmptyTypeParameters: "Type parameter list cannot be empty.", - ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", - ImportAliasHasImportType: "An import alias can not use 'import type'.", - ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier", - IncompatibleModifiers: ({ - modifiers - }) => `'${modifiers[0]}' modifier cannot be used with '${modifiers[1]}' modifier.`, - IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", - IndexSignatureHasAccessibility: ({ - modifier - }) => `Index signatures cannot have an accessibility modifier ('${modifier}').`, - IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.", - IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", - IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.", - InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.", - InvalidModifierOnTypeMember: ({ - modifier - }) => `'${modifier}' modifier cannot appear on a type member.`, - InvalidModifierOnTypeParameter: ({ - modifier - }) => `'${modifier}' modifier cannot appear on a type parameter.`, - InvalidModifierOnTypeParameterPositions: ({ - modifier - }) => `'${modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`, - InvalidModifiersOrder: ({ - orderedModifiers - }) => `'${orderedModifiers[0]}' modifier must precede '${orderedModifiers[1]}' modifier.`, - InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. " + "You can either wrap the instantiation expression in parentheses, or delete the type arguments.", - InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.", - MissingInterfaceName: "'interface' declarations must be followed by an identifier.", - MixedLabeledAndUnlabeledElements: "Tuple members must all have names or all not have names.", - NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.", - NonClassMethodPropertyHasAbstractModifer: "'abstract' modifier can only appear on a class, method, or property declaration.", - OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", - OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", - PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", - PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", - PrivateElementHasAccessibility: ({ - modifier - }) => `Private elements cannot have an accessibility modifier ('${modifier}').`, - ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", - ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.", - ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.", - SetAccesorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", - SetAccesorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", - SetAccesorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", - SingleTypeParameterWithoutTrailingComma: ({ - typeParameterName - }) => `Single type parameter ${typeParameterName} should have a trailing comma. Example usage: <${typeParameterName},>.`, - StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", - TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).", - TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", - TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", - TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", - TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", - UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", - UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", - UnexpectedTypeAnnotation: "Did not expect a type annotation here.", - UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", - UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", - UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", - UnsupportedSignatureParameterKind: ({ - type - }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.` -}); -function keywordTypeFromName(value) { - switch (value) { - case "any": - return "TSAnyKeyword"; - case "boolean": - return "TSBooleanKeyword"; - case "bigint": - return "TSBigIntKeyword"; - case "never": - return "TSNeverKeyword"; - case "number": - return "TSNumberKeyword"; - case "object": - return "TSObjectKeyword"; - case "string": - return "TSStringKeyword"; - case "symbol": - return "TSSymbolKeyword"; - case "undefined": - return "TSUndefinedKeyword"; - case "unknown": - return "TSUnknownKeyword"; - default: - return undefined; - } -} -function tsIsAccessModifier(modifier) { - return modifier === "private" || modifier === "public" || modifier === "protected"; -} -function tsIsVarianceAnnotations(modifier) { - return modifier === "in" || modifier === "out"; -} -var typescript = superClass => class TypeScriptParserMixin extends superClass { - constructor(...args) { - super(...args); - this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, { - allowedModifiers: ["in", "out"], - disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"], - errorTemplate: TSErrors.InvalidModifierOnTypeParameter - }); - this.tsParseConstModifier = this.tsParseModifiers.bind(this, { - allowedModifiers: ["const"], - disallowedModifiers: ["in", "out"], - errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions - }); - this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { - allowedModifiers: ["in", "out", "const"], - disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], - errorTemplate: TSErrors.InvalidModifierOnTypeParameter - }); - } - getScopeHandler() { - return TypeScriptScopeHandler; - } - tsIsIdentifier() { - return tokenIsIdentifier(this.state.type); - } - tsTokenCanFollowModifier() { - return (this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(136) || this.isLiteralPropertyName()) && !this.hasPrecedingLineBreak(); - } - tsNextTokenCanFollowModifier() { - this.next(); - return this.tsTokenCanFollowModifier(); - } - tsParseModifier(allowedModifiers, stopOnStartOfClassStaticBlock) { - if (!tokenIsIdentifier(this.state.type) && this.state.type !== 58 && this.state.type !== 75) { - return undefined; - } - const modifier = this.state.value; - if (allowedModifiers.indexOf(modifier) !== -1) { - if (stopOnStartOfClassStaticBlock && this.tsIsStartOfStaticBlocks()) { - return undefined; - } - if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) { - return modifier; - } - } - return undefined; - } - tsParseModifiers({ - allowedModifiers, - disallowedModifiers, - stopOnStartOfClassStaticBlock, - errorTemplate = TSErrors.InvalidModifierOnTypeMember - }, modified) { - const enforceOrder = (loc, modifier, before, after) => { - if (modifier === before && modified[after]) { - this.raise(TSErrors.InvalidModifiersOrder, { - at: loc, - orderedModifiers: [before, after] - }); - } - }; - const incompatible = (loc, modifier, mod1, mod2) => { - if (modified[mod1] && modifier === mod2 || modified[mod2] && modifier === mod1) { - this.raise(TSErrors.IncompatibleModifiers, { - at: loc, - modifiers: [mod1, mod2] - }); - } - }; - for (;;) { - const { - startLoc - } = this.state; - const modifier = this.tsParseModifier(allowedModifiers.concat(disallowedModifiers != null ? disallowedModifiers : []), stopOnStartOfClassStaticBlock); - if (!modifier) break; - if (tsIsAccessModifier(modifier)) { - if (modified.accessibility) { - this.raise(TSErrors.DuplicateAccessibilityModifier, { - at: startLoc, - modifier - }); - } else { - enforceOrder(startLoc, modifier, modifier, "override"); - enforceOrder(startLoc, modifier, modifier, "static"); - enforceOrder(startLoc, modifier, modifier, "readonly"); - modified.accessibility = modifier; - } - } else if (tsIsVarianceAnnotations(modifier)) { - if (modified[modifier]) { - this.raise(TSErrors.DuplicateModifier, { - at: startLoc, - modifier - }); - } - modified[modifier] = true; - enforceOrder(startLoc, modifier, "in", "out"); - } else { - if (Object.hasOwnProperty.call(modified, modifier)) { - this.raise(TSErrors.DuplicateModifier, { - at: startLoc, - modifier - }); - } else { - enforceOrder(startLoc, modifier, "static", "readonly"); - enforceOrder(startLoc, modifier, "static", "override"); - enforceOrder(startLoc, modifier, "override", "readonly"); - enforceOrder(startLoc, modifier, "abstract", "override"); - incompatible(startLoc, modifier, "declare", "override"); - incompatible(startLoc, modifier, "static", "abstract"); - } - modified[modifier] = true; - } - if (disallowedModifiers != null && disallowedModifiers.includes(modifier)) { - this.raise(errorTemplate, { - at: startLoc, - modifier - }); - } - } - } - tsIsListTerminator(kind) { - switch (kind) { - case "EnumMembers": - case "TypeMembers": - return this.match(8); - case "HeritageClauseElement": - return this.match(5); - case "TupleElementTypes": - return this.match(3); - case "TypeParametersOrArguments": - return this.match(48); - } - } - tsParseList(kind, parseElement) { - const result = []; - while (!this.tsIsListTerminator(kind)) { - result.push(parseElement()); - } - return result; - } - tsParseDelimitedList(kind, parseElement, refTrailingCommaPos) { - return nonNull(this.tsParseDelimitedListWorker(kind, parseElement, true, refTrailingCommaPos)); - } - tsParseDelimitedListWorker(kind, parseElement, expectSuccess, refTrailingCommaPos) { - const result = []; - let trailingCommaPos = -1; - for (;;) { - if (this.tsIsListTerminator(kind)) { - break; - } - trailingCommaPos = -1; - const element = parseElement(); - if (element == null) { - return undefined; - } - result.push(element); - if (this.eat(12)) { - trailingCommaPos = this.state.lastTokStart; - continue; - } - if (this.tsIsListTerminator(kind)) { - break; - } - if (expectSuccess) { - this.expect(12); - } - return undefined; - } - if (refTrailingCommaPos) { - refTrailingCommaPos.value = trailingCommaPos; - } - return result; - } - tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) { - if (!skipFirstToken) { - if (bracket) { - this.expect(0); - } else { - this.expect(47); - } - } - const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos); - if (bracket) { - this.expect(3); - } else { - this.expect(48); - } - return result; - } - tsParseImportType() { - const node = this.startNode(); - this.expect(83); - this.expect(10); - if (!this.match(131)) { - this.raise(TSErrors.UnsupportedImportTypeArgument, { - at: this.state.startLoc - }); - } - node.argument = super.parseExprAtom(); - this.expect(11); - if (this.eat(16)) { - node.qualifier = this.tsParseEntityName(); - } - if (this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSImportType"); - } - tsParseEntityName(allowReservedWords = true) { - let entity = this.parseIdentifier(allowReservedWords); - while (this.eat(16)) { - const node = this.startNodeAtNode(entity); - node.left = entity; - node.right = this.parseIdentifier(allowReservedWords); - entity = this.finishNode(node, "TSQualifiedName"); - } - return entity; - } - tsParseTypeReference() { - const node = this.startNode(); - node.typeName = this.tsParseEntityName(); - if (!this.hasPrecedingLineBreak() && this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSTypeReference"); - } - tsParseThisTypePredicate(lhs) { - this.next(); - const node = this.startNodeAtNode(lhs); - node.parameterName = lhs; - node.typeAnnotation = this.tsParseTypeAnnotation(false); - node.asserts = false; - return this.finishNode(node, "TSTypePredicate"); - } - tsParseThisTypeNode() { - const node = this.startNode(); - this.next(); - return this.finishNode(node, "TSThisType"); - } - tsParseTypeQuery() { - const node = this.startNode(); - this.expect(87); - if (this.match(83)) { - node.exprName = this.tsParseImportType(); - } else { - node.exprName = this.tsParseEntityName(); - } - if (!this.hasPrecedingLineBreak() && this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSTypeQuery"); - } - tsParseTypeParameter(parseModifiers) { - const node = this.startNode(); - parseModifiers(node); - node.name = this.tsParseTypeParameterName(); - node.constraint = this.tsEatThenParseType(81); - node.default = this.tsEatThenParseType(29); - return this.finishNode(node, "TSTypeParameter"); - } - tsTryParseTypeParameters(parseModifiers) { - if (this.match(47)) { - return this.tsParseTypeParameters(parseModifiers); - } - } - tsParseTypeParameters(parseModifiers) { - const node = this.startNode(); - if (this.match(47) || this.match(140)) { - this.next(); - } else { - this.unexpected(); - } - const refTrailingCommaPos = { - value: -1 - }; - node.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, parseModifiers), false, true, refTrailingCommaPos); - if (node.params.length === 0) { - this.raise(TSErrors.EmptyTypeParameters, { - at: node - }); - } - if (refTrailingCommaPos.value !== -1) { - this.addExtra(node, "trailingComma", refTrailingCommaPos.value); - } - return this.finishNode(node, "TSTypeParameterDeclaration"); - } - tsFillSignature(returnToken, signature) { - const returnTokenRequired = returnToken === 19; - const paramsKey = "parameters"; - const returnTypeKey = "typeAnnotation"; - signature.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - this.expect(10); - signature[paramsKey] = this.tsParseBindingListForSignature(); - if (returnTokenRequired) { - signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken); - } else if (this.match(returnToken)) { - signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken); - } - } - tsParseBindingListForSignature() { - const list = super.parseBindingList(11, 41, 2); - for (const pattern of list) { - const { - type - } = pattern; - if (type === "AssignmentPattern" || type === "TSParameterProperty") { - this.raise(TSErrors.UnsupportedSignatureParameterKind, { - at: pattern, - type - }); - } - } - return list; - } - tsParseTypeMemberSemicolon() { - if (!this.eat(12) && !this.isLineTerminator()) { - this.expect(13); - } - } - tsParseSignatureMember(kind, node) { - this.tsFillSignature(14, node); - this.tsParseTypeMemberSemicolon(); - return this.finishNode(node, kind); - } - tsIsUnambiguouslyIndexSignature() { - this.next(); - if (tokenIsIdentifier(this.state.type)) { - this.next(); - return this.match(14); - } - return false; - } - tsTryParseIndexSignature(node) { - if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) { - return; - } - this.expect(0); - const id = this.parseIdentifier(); - id.typeAnnotation = this.tsParseTypeAnnotation(); - this.resetEndLocation(id); - this.expect(3); - node.parameters = [id]; - const type = this.tsTryParseTypeAnnotation(); - if (type) node.typeAnnotation = type; - this.tsParseTypeMemberSemicolon(); - return this.finishNode(node, "TSIndexSignature"); - } - tsParsePropertyOrMethodSignature(node, readonly) { - if (this.eat(17)) node.optional = true; - const nodeAny = node; - if (this.match(10) || this.match(47)) { - if (readonly) { - this.raise(TSErrors.ReadonlyForMethodSignature, { - at: node - }); - } - const method = nodeAny; - if (method.kind && this.match(47)) { - this.raise(TSErrors.AccesorCannotHaveTypeParameters, { - at: this.state.curPosition() - }); - } - this.tsFillSignature(14, method); - this.tsParseTypeMemberSemicolon(); - const paramsKey = "parameters"; - const returnTypeKey = "typeAnnotation"; - if (method.kind === "get") { - if (method[paramsKey].length > 0) { - this.raise(Errors.BadGetterArity, { - at: this.state.curPosition() - }); - if (this.isThisParam(method[paramsKey][0])) { - this.raise(TSErrors.AccesorCannotDeclareThisParameter, { - at: this.state.curPosition() - }); - } - } - } else if (method.kind === "set") { - if (method[paramsKey].length !== 1) { - this.raise(Errors.BadSetterArity, { - at: this.state.curPosition() - }); - } else { - const firstParameter = method[paramsKey][0]; - if (this.isThisParam(firstParameter)) { - this.raise(TSErrors.AccesorCannotDeclareThisParameter, { - at: this.state.curPosition() - }); - } - if (firstParameter.type === "Identifier" && firstParameter.optional) { - this.raise(TSErrors.SetAccesorCannotHaveOptionalParameter, { - at: this.state.curPosition() - }); - } - if (firstParameter.type === "RestElement") { - this.raise(TSErrors.SetAccesorCannotHaveRestParameter, { - at: this.state.curPosition() - }); - } - } - if (method[returnTypeKey]) { - this.raise(TSErrors.SetAccesorCannotHaveReturnType, { - at: method[returnTypeKey] - }); - } - } else { - method.kind = "method"; - } - return this.finishNode(method, "TSMethodSignature"); - } else { - const property = nodeAny; - if (readonly) property.readonly = true; - const type = this.tsTryParseTypeAnnotation(); - if (type) property.typeAnnotation = type; - this.tsParseTypeMemberSemicolon(); - return this.finishNode(property, "TSPropertySignature"); - } - } - tsParseTypeMember() { - const node = this.startNode(); - if (this.match(10) || this.match(47)) { - return this.tsParseSignatureMember("TSCallSignatureDeclaration", node); - } - if (this.match(77)) { - const id = this.startNode(); - this.next(); - if (this.match(10) || this.match(47)) { - return this.tsParseSignatureMember("TSConstructSignatureDeclaration", node); - } else { - node.key = this.createIdentifier(id, "new"); - return this.tsParsePropertyOrMethodSignature(node, false); - } - } - this.tsParseModifiers({ - allowedModifiers: ["readonly"], - disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] - }, node); - const idx = this.tsTryParseIndexSignature(node); - if (idx) { - return idx; - } - super.parsePropertyName(node); - if (!node.computed && node.key.type === "Identifier" && (node.key.name === "get" || node.key.name === "set") && this.tsTokenCanFollowModifier()) { - node.kind = node.key.name; - super.parsePropertyName(node); - } - return this.tsParsePropertyOrMethodSignature(node, !!node.readonly); - } - tsParseTypeLiteral() { - const node = this.startNode(); - node.members = this.tsParseObjectTypeMembers(); - return this.finishNode(node, "TSTypeLiteral"); - } - tsParseObjectTypeMembers() { - this.expect(5); - const members = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this)); - this.expect(8); - return members; - } - tsIsStartOfMappedType() { - this.next(); - if (this.eat(53)) { - return this.isContextual(120); - } - if (this.isContextual(120)) { - this.next(); - } - if (!this.match(0)) { - return false; - } - this.next(); - if (!this.tsIsIdentifier()) { - return false; - } - this.next(); - return this.match(58); - } - tsParseMappedTypeParameter() { - const node = this.startNode(); - node.name = this.tsParseTypeParameterName(); - node.constraint = this.tsExpectThenParseType(58); - return this.finishNode(node, "TSTypeParameter"); - } - tsParseMappedType() { - const node = this.startNode(); - this.expect(5); - if (this.match(53)) { - node.readonly = this.state.value; - this.next(); - this.expectContextual(120); - } else if (this.eatContextual(120)) { - node.readonly = true; - } - this.expect(0); - node.typeParameter = this.tsParseMappedTypeParameter(); - node.nameType = this.eatContextual(93) ? this.tsParseType() : null; - this.expect(3); - if (this.match(53)) { - node.optional = this.state.value; - this.next(); - this.expect(17); - } else if (this.eat(17)) { - node.optional = true; - } - node.typeAnnotation = this.tsTryParseType(); - this.semicolon(); - this.expect(8); - return this.finishNode(node, "TSMappedType"); - } - tsParseTupleType() { - const node = this.startNode(); - node.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), true, false); - let seenOptionalElement = false; - let labeledElements = null; - node.elementTypes.forEach(elementNode => { - var _labeledElements; - const { - type - } = elementNode; - if (seenOptionalElement && type !== "TSRestType" && type !== "TSOptionalType" && !(type === "TSNamedTupleMember" && elementNode.optional)) { - this.raise(TSErrors.OptionalTypeBeforeRequired, { - at: elementNode - }); - } - seenOptionalElement || (seenOptionalElement = type === "TSNamedTupleMember" && elementNode.optional || type === "TSOptionalType"); - let checkType = type; - if (type === "TSRestType") { - elementNode = elementNode.typeAnnotation; - checkType = elementNode.type; - } - const isLabeled = checkType === "TSNamedTupleMember"; - (_labeledElements = labeledElements) != null ? _labeledElements : labeledElements = isLabeled; - if (labeledElements !== isLabeled) { - this.raise(TSErrors.MixedLabeledAndUnlabeledElements, { - at: elementNode - }); - } - }); - return this.finishNode(node, "TSTupleType"); - } - tsParseTupleElementType() { - const { - startLoc - } = this.state; - const rest = this.eat(21); - let labeled; - let label; - let optional; - let type; - const isWord = tokenIsKeywordOrIdentifier(this.state.type); - const chAfterWord = isWord ? this.lookaheadCharCode() : null; - if (chAfterWord === 58) { - labeled = true; - optional = false; - label = this.parseIdentifier(true); - this.expect(14); - type = this.tsParseType(); - } else if (chAfterWord === 63) { - optional = true; - const startLoc = this.state.startLoc; - const wordName = this.state.value; - const typeOrLabel = this.tsParseNonArrayType(); - if (this.lookaheadCharCode() === 58) { - labeled = true; - label = this.createIdentifier(this.startNodeAt(startLoc), wordName); - this.expect(17); - this.expect(14); - type = this.tsParseType(); - } else { - labeled = false; - type = typeOrLabel; - this.expect(17); - } - } else { - type = this.tsParseType(); - optional = this.eat(17); - labeled = this.eat(14); - } - if (labeled) { - let labeledNode; - if (label) { - labeledNode = this.startNodeAtNode(label); - labeledNode.optional = optional; - labeledNode.label = label; - labeledNode.elementType = type; - if (this.eat(17)) { - labeledNode.optional = true; - this.raise(TSErrors.TupleOptionalAfterType, { - at: this.state.lastTokStartLoc - }); - } - } else { - labeledNode = this.startNodeAtNode(type); - labeledNode.optional = optional; - this.raise(TSErrors.InvalidTupleMemberLabel, { - at: type - }); - labeledNode.label = type; - labeledNode.elementType = this.tsParseType(); - } - type = this.finishNode(labeledNode, "TSNamedTupleMember"); - } else if (optional) { - const optionalTypeNode = this.startNodeAtNode(type); - optionalTypeNode.typeAnnotation = type; - type = this.finishNode(optionalTypeNode, "TSOptionalType"); - } - if (rest) { - const restNode = this.startNodeAt(startLoc); - restNode.typeAnnotation = type; - type = this.finishNode(restNode, "TSRestType"); - } - return type; - } - tsParseParenthesizedType() { - const node = this.startNode(); - this.expect(10); - node.typeAnnotation = this.tsParseType(); - this.expect(11); - return this.finishNode(node, "TSParenthesizedType"); - } - tsParseFunctionOrConstructorType(type, abstract) { - const node = this.startNode(); - if (type === "TSConstructorType") { - node.abstract = !!abstract; - if (abstract) this.next(); - this.next(); - } - this.tsInAllowConditionalTypesContext(() => this.tsFillSignature(19, node)); - return this.finishNode(node, type); - } - tsParseLiteralTypeNode() { - const node = this.startNode(); - switch (this.state.type) { - case 132: - case 133: - case 131: - case 85: - case 86: - node.literal = super.parseExprAtom(); - break; - default: - this.unexpected(); - } - return this.finishNode(node, "TSLiteralType"); - } - tsParseTemplateLiteralType() { - const node = this.startNode(); - node.literal = super.parseTemplate(false); - return this.finishNode(node, "TSLiteralType"); - } - parseTemplateSubstitution() { - if (this.state.inType) return this.tsParseType(); - return super.parseTemplateSubstitution(); - } - tsParseThisTypeOrThisTypePredicate() { - const thisKeyword = this.tsParseThisTypeNode(); - if (this.isContextual(114) && !this.hasPrecedingLineBreak()) { - return this.tsParseThisTypePredicate(thisKeyword); - } else { - return thisKeyword; - } - } - tsParseNonArrayType() { - switch (this.state.type) { - case 131: - case 132: - case 133: - case 85: - case 86: - return this.tsParseLiteralTypeNode(); - case 53: - if (this.state.value === "-") { - const node = this.startNode(); - const nextToken = this.lookahead(); - if (nextToken.type !== 132 && nextToken.type !== 133) { - this.unexpected(); - } - node.literal = this.parseMaybeUnary(); - return this.finishNode(node, "TSLiteralType"); - } - break; - case 78: - return this.tsParseThisTypeOrThisTypePredicate(); - case 87: - return this.tsParseTypeQuery(); - case 83: - return this.tsParseImportType(); - case 5: - return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral(); - case 0: - return this.tsParseTupleType(); - case 10: - return this.tsParseParenthesizedType(); - case 25: - case 24: - return this.tsParseTemplateLiteralType(); - default: - { - const { - type - } = this.state; - if (tokenIsIdentifier(type) || type === 88 || type === 84) { - const nodeType = type === 88 ? "TSVoidKeyword" : type === 84 ? "TSNullKeyword" : keywordTypeFromName(this.state.value); - if (nodeType !== undefined && this.lookaheadCharCode() !== 46) { - const node = this.startNode(); - this.next(); - return this.finishNode(node, nodeType); - } - return this.tsParseTypeReference(); - } - } - } - this.unexpected(); - } - tsParseArrayTypeOrHigher() { - let type = this.tsParseNonArrayType(); - while (!this.hasPrecedingLineBreak() && this.eat(0)) { - if (this.match(3)) { - const node = this.startNodeAtNode(type); - node.elementType = type; - this.expect(3); - type = this.finishNode(node, "TSArrayType"); - } else { - const node = this.startNodeAtNode(type); - node.objectType = type; - node.indexType = this.tsParseType(); - this.expect(3); - type = this.finishNode(node, "TSIndexedAccessType"); - } - } - return type; - } - tsParseTypeOperator() { - const node = this.startNode(); - const operator = this.state.value; - this.next(); - node.operator = operator; - node.typeAnnotation = this.tsParseTypeOperatorOrHigher(); - if (operator === "readonly") { - this.tsCheckTypeAnnotationForReadOnly(node); - } - return this.finishNode(node, "TSTypeOperator"); - } - tsCheckTypeAnnotationForReadOnly(node) { - switch (node.typeAnnotation.type) { - case "TSTupleType": - case "TSArrayType": - return; - default: - this.raise(TSErrors.UnexpectedReadonly, { - at: node - }); - } - } - tsParseInferType() { - const node = this.startNode(); - this.expectContextual(113); - const typeParameter = this.startNode(); - typeParameter.name = this.tsParseTypeParameterName(); - typeParameter.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()); - node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter"); - return this.finishNode(node, "TSInferType"); - } - tsParseConstraintForInferType() { - if (this.eat(81)) { - const constraint = this.tsInDisallowConditionalTypesContext(() => this.tsParseType()); - if (this.state.inDisallowConditionalTypesContext || !this.match(17)) { - return constraint; - } - } - } - tsParseTypeOperatorOrHigher() { - const isTypeOperator = tokenIsTSTypeOperator(this.state.type) && !this.state.containsEsc; - return isTypeOperator ? this.tsParseTypeOperator() : this.isContextual(113) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher()); - } - tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) { - const node = this.startNode(); - const hasLeadingOperator = this.eat(operator); - const types = []; - do { - types.push(parseConstituentType()); - } while (this.eat(operator)); - if (types.length === 1 && !hasLeadingOperator) { - return types[0]; - } - node.types = types; - return this.finishNode(node, kind); - } - tsParseIntersectionTypeOrHigher() { - return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45); - } - tsParseUnionTypeOrHigher() { - return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43); - } - tsIsStartOfFunctionType() { - if (this.match(47)) { - return true; - } - return this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); - } - tsSkipParameterStart() { - if (tokenIsIdentifier(this.state.type) || this.match(78)) { - this.next(); - return true; - } - if (this.match(5)) { - const { - errors - } = this.state; - const previousErrorCount = errors.length; - try { - this.parseObjectLike(8, true); - return errors.length === previousErrorCount; - } catch (_unused) { - return false; - } - } - if (this.match(0)) { - this.next(); - const { - errors - } = this.state; - const previousErrorCount = errors.length; - try { - super.parseBindingList(3, 93, 1); - return errors.length === previousErrorCount; - } catch (_unused2) { - return false; - } - } - return false; - } - tsIsUnambiguouslyStartOfFunctionType() { - this.next(); - if (this.match(11) || this.match(21)) { - return true; - } - if (this.tsSkipParameterStart()) { - if (this.match(14) || this.match(12) || this.match(17) || this.match(29)) { - return true; - } - if (this.match(11)) { - this.next(); - if (this.match(19)) { - return true; - } - } - } - return false; - } - tsParseTypeOrTypePredicateAnnotation(returnToken) { - return this.tsInType(() => { - const t = this.startNode(); - this.expect(returnToken); - const node = this.startNode(); - const asserts = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this)); - if (asserts && this.match(78)) { - let thisTypePredicate = this.tsParseThisTypeOrThisTypePredicate(); - if (thisTypePredicate.type === "TSThisType") { - node.parameterName = thisTypePredicate; - node.asserts = true; - node.typeAnnotation = null; - thisTypePredicate = this.finishNode(node, "TSTypePredicate"); - } else { - this.resetStartLocationFromNode(thisTypePredicate, node); - thisTypePredicate.asserts = true; - } - t.typeAnnotation = thisTypePredicate; - return this.finishNode(t, "TSTypeAnnotation"); - } - const typePredicateVariable = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this)); - if (!typePredicateVariable) { - if (!asserts) { - return this.tsParseTypeAnnotation(false, t); - } - node.parameterName = this.parseIdentifier(); - node.asserts = asserts; - node.typeAnnotation = null; - t.typeAnnotation = this.finishNode(node, "TSTypePredicate"); - return this.finishNode(t, "TSTypeAnnotation"); - } - const type = this.tsParseTypeAnnotation(false); - node.parameterName = typePredicateVariable; - node.typeAnnotation = type; - node.asserts = asserts; - t.typeAnnotation = this.finishNode(node, "TSTypePredicate"); - return this.finishNode(t, "TSTypeAnnotation"); - }); - } - tsTryParseTypeOrTypePredicateAnnotation() { - if (this.match(14)) { - return this.tsParseTypeOrTypePredicateAnnotation(14); - } - } - tsTryParseTypeAnnotation() { - if (this.match(14)) { - return this.tsParseTypeAnnotation(); - } - } - tsTryParseType() { - return this.tsEatThenParseType(14); - } - tsParseTypePredicatePrefix() { - const id = this.parseIdentifier(); - if (this.isContextual(114) && !this.hasPrecedingLineBreak()) { - this.next(); - return id; - } - } - tsParseTypePredicateAsserts() { - if (this.state.type !== 107) { - return false; - } - const containsEsc = this.state.containsEsc; - this.next(); - if (!tokenIsIdentifier(this.state.type) && !this.match(78)) { - return false; - } - if (containsEsc) { - this.raise(Errors.InvalidEscapedReservedWord, { - at: this.state.lastTokStartLoc, - reservedWord: "asserts" - }); - } - return true; - } - tsParseTypeAnnotation(eatColon = true, t = this.startNode()) { - this.tsInType(() => { - if (eatColon) this.expect(14); - t.typeAnnotation = this.tsParseType(); - }); - return this.finishNode(t, "TSTypeAnnotation"); - } - tsParseType() { - assert(this.state.inType); - const type = this.tsParseNonConditionalType(); - if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) { - return type; - } - const node = this.startNodeAtNode(type); - node.checkType = type; - node.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()); - this.expect(17); - node.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()); - this.expect(14); - node.falseType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()); - return this.finishNode(node, "TSConditionalType"); - } - isAbstractConstructorSignature() { - return this.isContextual(122) && this.lookahead().type === 77; - } - tsParseNonConditionalType() { - if (this.tsIsStartOfFunctionType()) { - return this.tsParseFunctionOrConstructorType("TSFunctionType"); - } - if (this.match(77)) { - return this.tsParseFunctionOrConstructorType("TSConstructorType"); - } else if (this.isAbstractConstructorSignature()) { - return this.tsParseFunctionOrConstructorType("TSConstructorType", true); - } - return this.tsParseUnionTypeOrHigher(); - } - tsParseTypeAssertion() { - if (this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) { - this.raise(TSErrors.ReservedTypeAssertion, { - at: this.state.startLoc - }); - } - const node = this.startNode(); - node.typeAnnotation = this.tsInType(() => { - this.next(); - return this.match(75) ? this.tsParseTypeReference() : this.tsParseType(); - }); - this.expect(48); - node.expression = this.parseMaybeUnary(); - return this.finishNode(node, "TSTypeAssertion"); - } - tsParseHeritageClause(token) { - const originalStartLoc = this.state.startLoc; - const delimitedList = this.tsParseDelimitedList("HeritageClauseElement", () => { - const node = this.startNode(); - node.expression = this.tsParseEntityName(); - if (this.match(47)) { - node.typeParameters = this.tsParseTypeArguments(); - } - return this.finishNode(node, "TSExpressionWithTypeArguments"); - }); - if (!delimitedList.length) { - this.raise(TSErrors.EmptyHeritageClauseType, { - at: originalStartLoc, - token - }); - } - return delimitedList; - } - tsParseInterfaceDeclaration(node, properties = {}) { - if (this.hasFollowingLineBreak()) return null; - this.expectContextual(127); - if (properties.declare) node.declare = true; - if (tokenIsIdentifier(this.state.type)) { - node.id = this.parseIdentifier(); - this.checkIdentifier(node.id, BIND_TS_INTERFACE); - } else { - node.id = null; - this.raise(TSErrors.MissingInterfaceName, { - at: this.state.startLoc - }); - } - node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); - if (this.eat(81)) { - node.extends = this.tsParseHeritageClause("extends"); - } - const body = this.startNode(); - body.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)); - node.body = this.finishNode(body, "TSInterfaceBody"); - return this.finishNode(node, "TSInterfaceDeclaration"); - } - tsParseTypeAliasDeclaration(node) { - node.id = this.parseIdentifier(); - this.checkIdentifier(node.id, BIND_TS_TYPE); - node.typeAnnotation = this.tsInType(() => { - node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers); - this.expect(29); - if (this.isContextual(112) && this.lookahead().type !== 16) { - const node = this.startNode(); - this.next(); - return this.finishNode(node, "TSIntrinsicKeyword"); - } - return this.tsParseType(); - }); - this.semicolon(); - return this.finishNode(node, "TSTypeAliasDeclaration"); - } - tsInNoContext(cb) { - const oldContext = this.state.context; - this.state.context = [oldContext[0]]; - try { - return cb(); - } finally { - this.state.context = oldContext; - } - } - tsInType(cb) { - const oldInType = this.state.inType; - this.state.inType = true; - try { - return cb(); - } finally { - this.state.inType = oldInType; - } - } - tsInDisallowConditionalTypesContext(cb) { - const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext; - this.state.inDisallowConditionalTypesContext = true; - try { - return cb(); - } finally { - this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext; - } - } - tsInAllowConditionalTypesContext(cb) { - const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext; - this.state.inDisallowConditionalTypesContext = false; - try { - return cb(); - } finally { - this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext; - } - } - tsEatThenParseType(token) { - if (this.match(token)) { - return this.tsNextThenParseType(); - } - } - tsExpectThenParseType(token) { - return this.tsInType(() => { - this.expect(token); - return this.tsParseType(); - }); - } - tsNextThenParseType() { - return this.tsInType(() => { - this.next(); - return this.tsParseType(); - }); - } - tsParseEnumMember() { - const node = this.startNode(); - node.id = this.match(131) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(true); - if (this.eat(29)) { - node.initializer = super.parseMaybeAssignAllowIn(); - } - return this.finishNode(node, "TSEnumMember"); - } - tsParseEnumDeclaration(node, properties = {}) { - if (properties.const) node.const = true; - if (properties.declare) node.declare = true; - this.expectContextual(124); - node.id = this.parseIdentifier(); - this.checkIdentifier(node.id, node.const ? BIND_TS_CONST_ENUM : BIND_TS_ENUM); - this.expect(5); - node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)); - this.expect(8); - return this.finishNode(node, "TSEnumDeclaration"); - } - tsParseModuleBlock() { - const node = this.startNode(); - this.scope.enter(SCOPE_OTHER); - this.expect(5); - super.parseBlockOrModuleBlockBody(node.body = [], undefined, true, 8); - this.scope.exit(); - return this.finishNode(node, "TSModuleBlock"); - } - tsParseModuleOrNamespaceDeclaration(node, nested = false) { - node.id = this.parseIdentifier(); - if (!nested) { - this.checkIdentifier(node.id, BIND_TS_NAMESPACE); - } - if (this.eat(16)) { - const inner = this.startNode(); - this.tsParseModuleOrNamespaceDeclaration(inner, true); - node.body = inner; - } else { - this.scope.enter(SCOPE_TS_MODULE); - this.prodParam.enter(PARAM); - node.body = this.tsParseModuleBlock(); - this.prodParam.exit(); - this.scope.exit(); - } - return this.finishNode(node, "TSModuleDeclaration"); - } - tsParseAmbientExternalModuleDeclaration(node) { - if (this.isContextual(110)) { - node.global = true; - node.id = this.parseIdentifier(); - } else if (this.match(131)) { - node.id = super.parseStringLiteral(this.state.value); - } else { - this.unexpected(); - } - if (this.match(5)) { - this.scope.enter(SCOPE_TS_MODULE); - this.prodParam.enter(PARAM); - node.body = this.tsParseModuleBlock(); - this.prodParam.exit(); - this.scope.exit(); - } else { - this.semicolon(); - } - return this.finishNode(node, "TSModuleDeclaration"); - } - tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, isExport) { - node.isExport = isExport || false; - node.id = maybeDefaultIdentifier || this.parseIdentifier(); - this.checkIdentifier(node.id, BIND_FLAGS_TS_IMPORT); - this.expect(29); - const moduleReference = this.tsParseModuleReference(); - if (node.importKind === "type" && moduleReference.type !== "TSExternalModuleReference") { - this.raise(TSErrors.ImportAliasHasImportType, { - at: moduleReference - }); - } - node.moduleReference = moduleReference; - this.semicolon(); - return this.finishNode(node, "TSImportEqualsDeclaration"); - } - tsIsExternalModuleReference() { - return this.isContextual(117) && this.lookaheadCharCode() === 40; - } - tsParseModuleReference() { - return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(false); - } - tsParseExternalModuleReference() { - const node = this.startNode(); - this.expectContextual(117); - this.expect(10); - if (!this.match(131)) { - this.unexpected(); - } - node.expression = super.parseExprAtom(); - this.expect(11); - this.sawUnambiguousESM = true; - return this.finishNode(node, "TSExternalModuleReference"); - } - tsLookAhead(f) { - const state = this.state.clone(); - const res = f(); - this.state = state; - return res; - } - tsTryParseAndCatch(f) { - const result = this.tryParse(abort => f() || abort()); - if (result.aborted || !result.node) return; - if (result.error) this.state = result.failState; - return result.node; - } - tsTryParse(f) { - const state = this.state.clone(); - const result = f(); - if (result !== undefined && result !== false) { - return result; - } - this.state = state; - } - tsTryParseDeclare(nany) { - if (this.isLineTerminator()) { - return; - } - let startType = this.state.type; - let kind; - if (this.isContextual(99)) { - startType = 74; - kind = "let"; - } - return this.tsInAmbientContext(() => { - switch (startType) { - case 68: - nany.declare = true; - return super.parseFunctionStatement(nany, false, false); - case 80: - nany.declare = true; - return this.parseClass(nany, true, false); - case 124: - return this.tsParseEnumDeclaration(nany, { - declare: true - }); - case 110: - return this.tsParseAmbientExternalModuleDeclaration(nany); - case 75: - case 74: - if (!this.match(75) || !this.isLookaheadContextual("enum")) { - nany.declare = true; - return this.parseVarStatement(nany, kind || this.state.value, true); - } - this.expect(75); - return this.tsParseEnumDeclaration(nany, { - const: true, - declare: true - }); - case 127: - { - const result = this.tsParseInterfaceDeclaration(nany, { - declare: true - }); - if (result) return result; - } - default: - if (tokenIsIdentifier(startType)) { - return this.tsParseDeclaration(nany, this.state.value, true, null); - } - } - }); - } - tsTryParseExportDeclaration() { - return this.tsParseDeclaration(this.startNode(), this.state.value, true, null); - } - tsParseExpressionStatement(node, expr, decorators) { - switch (expr.name) { - case "declare": - { - const declaration = this.tsTryParseDeclare(node); - if (declaration) { - declaration.declare = true; - } - return declaration; - } - case "global": - if (this.match(5)) { - this.scope.enter(SCOPE_TS_MODULE); - this.prodParam.enter(PARAM); - const mod = node; - mod.global = true; - mod.id = expr; - mod.body = this.tsParseModuleBlock(); - this.scope.exit(); - this.prodParam.exit(); - return this.finishNode(mod, "TSModuleDeclaration"); - } - break; - default: - return this.tsParseDeclaration(node, expr.name, false, decorators); - } - } - tsParseDeclaration(node, value, next, decorators) { - switch (value) { - case "abstract": - if (this.tsCheckLineTerminator(next) && (this.match(80) || tokenIsIdentifier(this.state.type))) { - return this.tsParseAbstractDeclaration(node, decorators); - } - break; - case "module": - if (this.tsCheckLineTerminator(next)) { - if (this.match(131)) { - return this.tsParseAmbientExternalModuleDeclaration(node); - } else if (tokenIsIdentifier(this.state.type)) { - return this.tsParseModuleOrNamespaceDeclaration(node); - } - } - break; - case "namespace": - if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) { - return this.tsParseModuleOrNamespaceDeclaration(node); - } - break; - case "type": - if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) { - return this.tsParseTypeAliasDeclaration(node); - } - break; - } - } - tsCheckLineTerminator(next) { - if (next) { - if (this.hasFollowingLineBreak()) return false; - this.next(); - return true; - } - return !this.isLineTerminator(); - } - tsTryParseGenericAsyncArrowFunction(startLoc) { - if (!this.match(47)) return; - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - this.state.maybeInArrowParameters = true; - const res = this.tsTryParseAndCatch(() => { - const node = this.startNodeAt(startLoc); - node.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier); - super.parseFunctionParams(node); - node.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(); - this.expect(19); - return node; - }); - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - if (!res) return; - return super.parseArrowExpression(res, null, true); - } - tsParseTypeArgumentsInExpression() { - if (this.reScan_lt() !== 47) return; - return this.tsParseTypeArguments(); - } - tsParseTypeArguments() { - const node = this.startNode(); - node.params = this.tsInType(() => this.tsInNoContext(() => { - this.expect(47); - return this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this)); - })); - if (node.params.length === 0) { - this.raise(TSErrors.EmptyTypeArguments, { - at: node - }); - } else if (!this.state.inType && this.curContext() === types.brace) { - this.reScan_lt_gt(); - } - this.expect(48); - return this.finishNode(node, "TSTypeParameterInstantiation"); - } - tsIsDeclarationStart() { - return tokenIsTSDeclarationStart(this.state.type); - } - isExportDefaultSpecifier() { - if (this.tsIsDeclarationStart()) return false; - return super.isExportDefaultSpecifier(); - } - parseAssignableListItem(flags, decorators) { - const startLoc = this.state.startLoc; - const modified = {}; - this.tsParseModifiers({ - allowedModifiers: ["public", "private", "protected", "override", "readonly"] - }, modified); - const accessibility = modified.accessibility; - const override = modified.override; - const readonly = modified.readonly; - if (!(flags & 4) && (accessibility || readonly || override)) { - this.raise(TSErrors.UnexpectedParameterModifier, { - at: startLoc - }); - } - const left = this.parseMaybeDefault(); - this.parseAssignableListItemTypes(left, flags); - const elt = this.parseMaybeDefault(left.loc.start, left); - if (accessibility || readonly || override) { - const pp = this.startNodeAt(startLoc); - if (decorators.length) { - pp.decorators = decorators; - } - if (accessibility) pp.accessibility = accessibility; - if (readonly) pp.readonly = readonly; - if (override) pp.override = override; - if (elt.type !== "Identifier" && elt.type !== "AssignmentPattern") { - this.raise(TSErrors.UnsupportedParameterPropertyKind, { - at: pp - }); - } - pp.parameter = elt; - return this.finishNode(pp, "TSParameterProperty"); - } - if (decorators.length) { - left.decorators = decorators; - } - return elt; - } - isSimpleParameter(node) { - return node.type === "TSParameterProperty" && super.isSimpleParameter(node.parameter) || super.isSimpleParameter(node); - } - tsDisallowOptionalPattern(node) { - for (const param of node.params) { - if (param.type !== "Identifier" && param.optional && !this.state.isAmbientContext) { - this.raise(TSErrors.PatternIsOptional, { - at: param - }); - } - } - } - setArrowFunctionParameters(node, params, trailingCommaLoc) { - super.setArrowFunctionParameters(node, params, trailingCommaLoc); - this.tsDisallowOptionalPattern(node); - } - parseFunctionBodyAndFinish(node, type, isMethod = false) { - if (this.match(14)) { - node.returnType = this.tsParseTypeOrTypePredicateAnnotation(14); - } - const bodilessType = type === "FunctionDeclaration" ? "TSDeclareFunction" : type === "ClassMethod" || type === "ClassPrivateMethod" ? "TSDeclareMethod" : undefined; - if (bodilessType && !this.match(5) && this.isLineTerminator()) { - return this.finishNode(node, bodilessType); - } - if (bodilessType === "TSDeclareFunction" && this.state.isAmbientContext) { - this.raise(TSErrors.DeclareFunctionHasImplementation, { - at: node - }); - if (node.declare) { - return super.parseFunctionBodyAndFinish(node, bodilessType, isMethod); - } - } - this.tsDisallowOptionalPattern(node); - return super.parseFunctionBodyAndFinish(node, type, isMethod); - } - registerFunctionStatementId(node) { - if (!node.body && node.id) { - this.checkIdentifier(node.id, BIND_TS_AMBIENT); - } else { - super.registerFunctionStatementId(node); - } - } - tsCheckForInvalidTypeCasts(items) { - items.forEach(node => { - if ((node == null ? void 0 : node.type) === "TSTypeCastExpression") { - this.raise(TSErrors.UnexpectedTypeAnnotation, { - at: node.typeAnnotation - }); - } - }); - } - toReferencedList(exprList, isInParens) { - this.tsCheckForInvalidTypeCasts(exprList); - return exprList; - } - parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { - const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors); - if (node.type === "ArrayExpression") { - this.tsCheckForInvalidTypeCasts(node.elements); - } - return node; - } - parseSubscript(base, startLoc, noCalls, state) { - if (!this.hasPrecedingLineBreak() && this.match(35)) { - this.state.canStartJSXElement = false; - this.next(); - const nonNullExpression = this.startNodeAt(startLoc); - nonNullExpression.expression = base; - return this.finishNode(nonNullExpression, "TSNonNullExpression"); - } - let isOptionalCall = false; - if (this.match(18) && this.lookaheadCharCode() === 60) { - if (noCalls) { - state.stop = true; - return base; - } - state.optionalChainMember = isOptionalCall = true; - this.next(); - } - if (this.match(47) || this.match(51)) { - let missingParenErrorLoc; - const result = this.tsTryParseAndCatch(() => { - if (!noCalls && this.atPossibleAsyncArrow(base)) { - const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc); - if (asyncArrowFn) { - return asyncArrowFn; - } - } - const typeArguments = this.tsParseTypeArgumentsInExpression(); - if (!typeArguments) return; - if (isOptionalCall && !this.match(10)) { - missingParenErrorLoc = this.state.curPosition(); - return; - } - if (tokenIsTemplate(this.state.type)) { - const result = super.parseTaggedTemplateExpression(base, startLoc, state); - result.typeParameters = typeArguments; - return result; - } - if (!noCalls && this.eat(10)) { - const node = this.startNodeAt(startLoc); - node.callee = base; - node.arguments = this.parseCallExpressionArguments(11, false); - this.tsCheckForInvalidTypeCasts(node.arguments); - node.typeParameters = typeArguments; - if (state.optionalChainMember) { - node.optional = isOptionalCall; - } - return this.finishCallExpression(node, state.optionalChainMember); - } - const tokenType = this.state.type; - if (tokenType === 48 || tokenType === 52 || tokenType !== 10 && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) { - return; - } - const node = this.startNodeAt(startLoc); - node.expression = base; - node.typeParameters = typeArguments; - return this.finishNode(node, "TSInstantiationExpression"); - }); - if (missingParenErrorLoc) { - this.unexpected(missingParenErrorLoc, 10); - } - if (result) { - if (result.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40)) { - this.raise(TSErrors.InvalidPropertyAccessAfterInstantiationExpression, { - at: this.state.startLoc - }); - } - return result; - } - } - return super.parseSubscript(base, startLoc, noCalls, state); - } - parseNewCallee(node) { - var _callee$extra; - super.parseNewCallee(node); - const { - callee - } = node; - if (callee.type === "TSInstantiationExpression" && !((_callee$extra = callee.extra) != null && _callee$extra.parenthesized)) { - node.typeParameters = callee.typeParameters; - node.callee = callee.expression; - } - } - parseExprOp(left, leftStartLoc, minPrec) { - let isSatisfies; - if (tokenOperatorPrecedence(58) > minPrec && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (isSatisfies = this.isContextual(118)))) { - const node = this.startNodeAt(leftStartLoc); - node.expression = left; - node.typeAnnotation = this.tsInType(() => { - this.next(); - if (this.match(75)) { - if (isSatisfies) { - this.raise(Errors.UnexpectedKeyword, { - at: this.state.startLoc, - keyword: "const" - }); - } - return this.tsParseTypeReference(); - } - return this.tsParseType(); - }); - this.finishNode(node, isSatisfies ? "TSSatisfiesExpression" : "TSAsExpression"); - this.reScan_lt_gt(); - return this.parseExprOp(node, leftStartLoc, minPrec); - } - return super.parseExprOp(left, leftStartLoc, minPrec); - } - checkReservedWord(word, startLoc, checkKeywords, isBinding) { - if (!this.state.isAmbientContext) { - super.checkReservedWord(word, startLoc, checkKeywords, isBinding); - } - } - checkImportReflection(node) { - super.checkImportReflection(node); - if (node.module && node.importKind !== "value") { - this.raise(TSErrors.ImportReflectionHasImportType, { - at: node.specifiers[0].loc.start - }); - } - } - checkDuplicateExports() {} - isPotentialImportPhase(isExport) { - if (super.isPotentialImportPhase(isExport)) return true; - if (this.isContextual(128)) { - const ch = this.lookaheadCharCode(); - return isExport ? ch === 123 || ch === 42 : ch !== 61; - } - return !isExport && this.isContextual(87); - } - applyImportPhase(node, isExport, phase, loc) { - super.applyImportPhase(node, isExport, phase, loc); - if (isExport) { - node.exportKind = phase === "type" ? "type" : "value"; - } else { - node.importKind = phase === "type" || phase === "typeof" ? phase : "value"; - } - } - parseImport(node) { - if (this.match(131)) { - node.importKind = "value"; - return super.parseImport(node); - } - let importNode; - if (tokenIsIdentifier(this.state.type) && this.lookaheadCharCode() === 61) { - node.importKind = "value"; - return this.tsParseImportEqualsDeclaration(node); - } else if (this.isContextual(128)) { - const maybeDefaultIdentifier = this.parseMaybeImportPhase(node, false); - if (this.lookaheadCharCode() === 61) { - return this.tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier); - } else { - importNode = super.parseImportSpecifiersAndAfter(node, maybeDefaultIdentifier); - } - } else { - importNode = super.parseImport(node); - } - if (importNode.importKind === "type" && importNode.specifiers.length > 1 && importNode.specifiers[0].type === "ImportDefaultSpecifier") { - this.raise(TSErrors.TypeImportCannotSpecifyDefaultAndNamed, { - at: importNode - }); - } - return importNode; - } - parseExport(node, decorators) { - if (this.match(83)) { - this.next(); - let maybeDefaultIdentifier = null; - if (this.isContextual(128) && this.isPotentialImportPhase(false)) { - maybeDefaultIdentifier = this.parseMaybeImportPhase(node, false); - } else { - node.importKind = "value"; - } - return this.tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, true); - } else if (this.eat(29)) { - const assign = node; - assign.expression = super.parseExpression(); - this.semicolon(); - this.sawUnambiguousESM = true; - return this.finishNode(assign, "TSExportAssignment"); - } else if (this.eatContextual(93)) { - const decl = node; - this.expectContextual(126); - decl.id = this.parseIdentifier(); - this.semicolon(); - return this.finishNode(decl, "TSNamespaceExportDeclaration"); - } else { - return super.parseExport(node, decorators); - } - } - isAbstractClass() { - return this.isContextual(122) && this.lookahead().type === 80; - } - parseExportDefaultExpression() { - if (this.isAbstractClass()) { - const cls = this.startNode(); - this.next(); - cls.abstract = true; - return this.parseClass(cls, true, true); - } - if (this.match(127)) { - const result = this.tsParseInterfaceDeclaration(this.startNode()); - if (result) return result; - } - return super.parseExportDefaultExpression(); - } - parseVarStatement(node, kind, allowMissingInitializer = false) { - const { - isAmbientContext - } = this.state; - const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext); - if (!isAmbientContext) return declaration; - for (const { - id, - init - } of declaration.declarations) { - if (!init) continue; - if (kind !== "const" || !!id.typeAnnotation) { - this.raise(TSErrors.InitializerNotAllowedInAmbientContext, { - at: init - }); - } else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) { - this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, { - at: init - }); - } - } - return declaration; - } - parseStatementContent(flags, decorators) { - if (this.match(75) && this.isLookaheadContextual("enum")) { - const node = this.startNode(); - this.expect(75); - return this.tsParseEnumDeclaration(node, { - const: true - }); - } - if (this.isContextual(124)) { - return this.tsParseEnumDeclaration(this.startNode()); - } - if (this.isContextual(127)) { - const result = this.tsParseInterfaceDeclaration(this.startNode()); - if (result) return result; - } - return super.parseStatementContent(flags, decorators); - } - parseAccessModifier() { - return this.tsParseModifier(["public", "protected", "private"]); - } - tsHasSomeModifiers(member, modifiers) { - return modifiers.some(modifier => { - if (tsIsAccessModifier(modifier)) { - return member.accessibility === modifier; - } - return !!member[modifier]; - }); - } - tsIsStartOfStaticBlocks() { - return this.isContextual(104) && this.lookaheadCharCode() === 123; - } - parseClassMember(classBody, member, state) { - const modifiers = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"]; - this.tsParseModifiers({ - allowedModifiers: modifiers, - disallowedModifiers: ["in", "out"], - stopOnStartOfClassStaticBlock: true, - errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions - }, member); - const callParseClassMemberWithIsStatic = () => { - if (this.tsIsStartOfStaticBlocks()) { - this.next(); - this.next(); - if (this.tsHasSomeModifiers(member, modifiers)) { - this.raise(TSErrors.StaticBlockCannotHaveModifier, { - at: this.state.curPosition() - }); - } - super.parseClassStaticBlock(classBody, member); - } else { - this.parseClassMemberWithIsStatic(classBody, member, state, !!member.static); - } - }; - if (member.declare) { - this.tsInAmbientContext(callParseClassMemberWithIsStatic); - } else { - callParseClassMemberWithIsStatic(); - } - } - parseClassMemberWithIsStatic(classBody, member, state, isStatic) { - const idx = this.tsTryParseIndexSignature(member); - if (idx) { - classBody.body.push(idx); - if (member.abstract) { - this.raise(TSErrors.IndexSignatureHasAbstract, { - at: member - }); - } - if (member.accessibility) { - this.raise(TSErrors.IndexSignatureHasAccessibility, { - at: member, - modifier: member.accessibility - }); - } - if (member.declare) { - this.raise(TSErrors.IndexSignatureHasDeclare, { - at: member - }); - } - if (member.override) { - this.raise(TSErrors.IndexSignatureHasOverride, { - at: member - }); - } - return; - } - if (!this.state.inAbstractClass && member.abstract) { - this.raise(TSErrors.NonAbstractClassHasAbstractMethod, { - at: member - }); - } - if (member.override) { - if (!state.hadSuperClass) { - this.raise(TSErrors.OverrideNotInSubClass, { - at: member - }); - } - } - super.parseClassMemberWithIsStatic(classBody, member, state, isStatic); - } - parsePostMemberNameModifiers(methodOrProp) { - const optional = this.eat(17); - if (optional) methodOrProp.optional = true; - if (methodOrProp.readonly && this.match(10)) { - this.raise(TSErrors.ClassMethodHasReadonly, { - at: methodOrProp - }); - } - if (methodOrProp.declare && this.match(10)) { - this.raise(TSErrors.ClassMethodHasDeclare, { - at: methodOrProp - }); - } - } - parseExpressionStatement(node, expr, decorators) { - const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr, decorators) : undefined; - return decl || super.parseExpressionStatement(node, expr, decorators); - } - shouldParseExportDeclaration() { - if (this.tsIsDeclarationStart()) return true; - return super.shouldParseExportDeclaration(); - } - parseConditional(expr, startLoc, refExpressionErrors) { - if (!this.state.maybeInArrowParameters || !this.match(17)) { - return super.parseConditional(expr, startLoc, refExpressionErrors); - } - const result = this.tryParse(() => super.parseConditional(expr, startLoc)); - if (!result.node) { - if (result.error) { - super.setOptionalParametersError(refExpressionErrors, result.error); - } - return expr; - } - if (result.error) this.state = result.failState; - return result.node; - } - parseParenItem(node, startLoc) { - node = super.parseParenItem(node, startLoc); - if (this.eat(17)) { - node.optional = true; - this.resetEndLocation(node); - } - if (this.match(14)) { - const typeCastNode = this.startNodeAt(startLoc); - typeCastNode.expression = node; - typeCastNode.typeAnnotation = this.tsParseTypeAnnotation(); - return this.finishNode(typeCastNode, "TSTypeCastExpression"); - } - return node; - } - parseExportDeclaration(node) { - if (!this.state.isAmbientContext && this.isContextual(123)) { - return this.tsInAmbientContext(() => this.parseExportDeclaration(node)); - } - const startLoc = this.state.startLoc; - const isDeclare = this.eatContextual(123); - if (isDeclare && (this.isContextual(123) || !this.shouldParseExportDeclaration())) { - throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare, { - at: this.state.startLoc - }); - } - const isIdentifier = tokenIsIdentifier(this.state.type); - const declaration = isIdentifier && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(node); - if (!declaration) return null; - if (declaration.type === "TSInterfaceDeclaration" || declaration.type === "TSTypeAliasDeclaration" || isDeclare) { - node.exportKind = "type"; - } - if (isDeclare) { - this.resetStartLocation(declaration, startLoc); - declaration.declare = true; - } - return declaration; - } - parseClassId(node, isStatement, optionalId, bindingType) { - if ((!isStatement || optionalId) && this.isContextual(111)) { - return; - } - super.parseClassId(node, isStatement, optionalId, node.declare ? BIND_TS_AMBIENT : BIND_CLASS); - const typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); - if (typeParameters) node.typeParameters = typeParameters; - } - parseClassPropertyAnnotation(node) { - if (!node.optional) { - if (this.eat(35)) { - node.definite = true; - } else if (this.eat(17)) { - node.optional = true; - } - } - const type = this.tsTryParseTypeAnnotation(); - if (type) node.typeAnnotation = type; - } - parseClassProperty(node) { - this.parseClassPropertyAnnotation(node); - if (this.state.isAmbientContext && !(node.readonly && !node.typeAnnotation) && this.match(29)) { - this.raise(TSErrors.DeclareClassFieldHasInitializer, { - at: this.state.startLoc - }); - } - if (node.abstract && this.match(29)) { - const { - key - } = node; - this.raise(TSErrors.AbstractPropertyHasInitializer, { - at: this.state.startLoc, - propertyName: key.type === "Identifier" && !node.computed ? key.name : `[${this.input.slice(key.start, key.end)}]` - }); - } - return super.parseClassProperty(node); - } - parseClassPrivateProperty(node) { - if (node.abstract) { - this.raise(TSErrors.PrivateElementHasAbstract, { - at: node - }); - } - if (node.accessibility) { - this.raise(TSErrors.PrivateElementHasAccessibility, { - at: node, - modifier: node.accessibility - }); - } - this.parseClassPropertyAnnotation(node); - return super.parseClassPrivateProperty(node); - } - parseClassAccessorProperty(node) { - this.parseClassPropertyAnnotation(node); - if (node.optional) { - this.raise(TSErrors.AccessorCannotBeOptional, { - at: node - }); - } - return super.parseClassAccessorProperty(node); - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters && isConstructor) { - this.raise(TSErrors.ConstructorHasTypeParameters, { - at: typeParameters - }); - } - const { - declare = false, - kind - } = method; - if (declare && (kind === "get" || kind === "set")) { - this.raise(TSErrors.DeclareAccessor, { - at: method, - kind - }); - } - if (typeParameters) method.typeParameters = typeParameters; - super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper); - } - pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters) method.typeParameters = typeParameters; - super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync); - } - declareClassPrivateMethodInScope(node, kind) { - if (node.type === "TSDeclareMethod") return; - if (node.type === "MethodDefinition" && !node.value.body) return; - super.declareClassPrivateMethodInScope(node, kind); - } - parseClassSuper(node) { - super.parseClassSuper(node); - if (node.superClass && (this.match(47) || this.match(51))) { - node.superTypeParameters = this.tsParseTypeArgumentsInExpression(); - } - if (this.eatContextual(111)) { - node.implements = this.tsParseHeritageClause("implements"); - } - } - parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters) prop.typeParameters = typeParameters; - return super.parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors); - } - parseFunctionParams(node, isConstructor) { - const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); - if (typeParameters) node.typeParameters = typeParameters; - super.parseFunctionParams(node, isConstructor); - } - parseVarId(decl, kind) { - super.parseVarId(decl, kind); - if (decl.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35)) { - decl.definite = true; - } - const type = this.tsTryParseTypeAnnotation(); - if (type) { - decl.id.typeAnnotation = type; - this.resetEndLocation(decl.id); - } - } - parseAsyncArrowFromCallExpression(node, call) { - if (this.match(14)) { - node.returnType = this.tsParseTypeAnnotation(); - } - return super.parseAsyncArrowFromCallExpression(node, call); - } - parseMaybeAssign(refExpressionErrors, afterLeftParse) { - var _jsx, _jsx2, _typeCast, _jsx3, _typeCast2; - let state; - let jsx; - let typeCast; - if (this.hasPlugin("jsx") && (this.match(140) || this.match(47))) { - state = this.state.clone(); - jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); - if (!jsx.error) return jsx.node; - const { - context - } = this.state; - const currentContext = context[context.length - 1]; - if (currentContext === types.j_oTag || currentContext === types.j_expr) { - context.pop(); - } - } - if (!((_jsx = jsx) != null && _jsx.error) && !this.match(47)) { - return super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - } - if (!state || state === this.state) state = this.state.clone(); - let typeParameters; - const arrow = this.tryParse(abort => { - var _expr$extra, _typeParameters; - typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier); - const expr = super.parseMaybeAssign(refExpressionErrors, afterLeftParse); - if (expr.type !== "ArrowFunctionExpression" || (_expr$extra = expr.extra) != null && _expr$extra.parenthesized) { - abort(); - } - if (((_typeParameters = typeParameters) == null ? void 0 : _typeParameters.params.length) !== 0) { - this.resetStartLocationFromNode(expr, typeParameters); - } - expr.typeParameters = typeParameters; - return expr; - }, state); - if (!arrow.error && !arrow.aborted) { - if (typeParameters) this.reportReservedArrowTypeParam(typeParameters); - return arrow.node; - } - if (!jsx) { - assert(!this.hasPlugin("jsx")); - typeCast = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); - if (!typeCast.error) return typeCast.node; - } - if ((_jsx2 = jsx) != null && _jsx2.node) { - this.state = jsx.failState; - return jsx.node; - } - if (arrow.node) { - this.state = arrow.failState; - if (typeParameters) this.reportReservedArrowTypeParam(typeParameters); - return arrow.node; - } - if ((_typeCast = typeCast) != null && _typeCast.node) { - this.state = typeCast.failState; - return typeCast.node; - } - throw ((_jsx3 = jsx) == null ? void 0 : _jsx3.error) || arrow.error || ((_typeCast2 = typeCast) == null ? void 0 : _typeCast2.error); - } - reportReservedArrowTypeParam(node) { - var _node$extra; - if (node.params.length === 1 && !node.params[0].constraint && !((_node$extra = node.extra) != null && _node$extra.trailingComma) && this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) { - this.raise(TSErrors.ReservedArrowTypeParam, { - at: node - }); - } - } - parseMaybeUnary(refExpressionErrors, sawUnary) { - if (!this.hasPlugin("jsx") && this.match(47)) { - return this.tsParseTypeAssertion(); - } - return super.parseMaybeUnary(refExpressionErrors, sawUnary); - } - parseArrow(node) { - if (this.match(14)) { - const result = this.tryParse(abort => { - const returnType = this.tsParseTypeOrTypePredicateAnnotation(14); - if (this.canInsertSemicolon() || !this.match(19)) abort(); - return returnType; - }); - if (result.aborted) return; - if (!result.thrown) { - if (result.error) this.state = result.failState; - node.returnType = result.node; - } - } - return super.parseArrow(node); - } - parseAssignableListItemTypes(param, flags) { - if (!(flags & 2)) return param; - if (this.eat(17)) { - param.optional = true; - } - const type = this.tsTryParseTypeAnnotation(); - if (type) param.typeAnnotation = type; - this.resetEndLocation(param); - return param; - } - isAssignable(node, isBinding) { - switch (node.type) { - case "TSTypeCastExpression": - return this.isAssignable(node.expression, isBinding); - case "TSParameterProperty": - return true; - default: - return super.isAssignable(node, isBinding); - } - } - toAssignable(node, isLHS = false) { - switch (node.type) { - case "ParenthesizedExpression": - this.toAssignableParenthesizedExpression(node, isLHS); - break; - case "TSAsExpression": - case "TSSatisfiesExpression": - case "TSNonNullExpression": - case "TSTypeAssertion": - if (isLHS) { - this.expressionScope.recordArrowParameterBindingError(TSErrors.UnexpectedTypeCastInParameter, { - at: node - }); - } else { - this.raise(TSErrors.UnexpectedTypeCastInParameter, { - at: node - }); - } - this.toAssignable(node.expression, isLHS); - break; - case "AssignmentExpression": - if (!isLHS && node.left.type === "TSTypeCastExpression") { - node.left = this.typeCastToParameter(node.left); - } - default: - super.toAssignable(node, isLHS); - } - } - toAssignableParenthesizedExpression(node, isLHS) { - switch (node.expression.type) { - case "TSAsExpression": - case "TSSatisfiesExpression": - case "TSNonNullExpression": - case "TSTypeAssertion": - case "ParenthesizedExpression": - this.toAssignable(node.expression, isLHS); - break; - default: - super.toAssignable(node, isLHS); - } - } - checkToRestConversion(node, allowPattern) { - switch (node.type) { - case "TSAsExpression": - case "TSSatisfiesExpression": - case "TSTypeAssertion": - case "TSNonNullExpression": - this.checkToRestConversion(node.expression, false); - break; - default: - super.checkToRestConversion(node, allowPattern); - } - } - isValidLVal(type, isUnparenthesizedInAssign, binding) { - return getOwn({ - TSTypeCastExpression: true, - TSParameterProperty: "parameter", - TSNonNullExpression: "expression", - TSAsExpression: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true], - TSSatisfiesExpression: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true], - TSTypeAssertion: (binding !== BIND_NONE || !isUnparenthesizedInAssign) && ["expression", true] - }, type) || super.isValidLVal(type, isUnparenthesizedInAssign, binding); - } - parseBindingAtom() { - if (this.state.type === 78) { - return this.parseIdentifier(true); - } - return super.parseBindingAtom(); - } - parseMaybeDecoratorArguments(expr) { - if (this.match(47) || this.match(51)) { - const typeArguments = this.tsParseTypeArgumentsInExpression(); - if (this.match(10)) { - const call = super.parseMaybeDecoratorArguments(expr); - call.typeParameters = typeArguments; - return call; - } - this.unexpected(null, 10); - } - return super.parseMaybeDecoratorArguments(expr); - } - checkCommaAfterRest(close) { - if (this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === close) { - this.next(); - return false; - } - return super.checkCommaAfterRest(close); - } - isClassMethod() { - return this.match(47) || super.isClassMethod(); - } - isClassProperty() { - return this.match(35) || this.match(14) || super.isClassProperty(); - } - parseMaybeDefault(startLoc, left) { - const node = super.parseMaybeDefault(startLoc, left); - if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) { - this.raise(TSErrors.TypeAnnotationAfterAssign, { - at: node.typeAnnotation - }); - } - return node; - } - getTokenFromCode(code) { - if (this.state.inType) { - if (code === 62) { - this.finishOp(48, 1); - return; - } - if (code === 60) { - this.finishOp(47, 1); - return; - } - } - super.getTokenFromCode(code); - } - reScan_lt_gt() { - const { - type - } = this.state; - if (type === 47) { - this.state.pos -= 1; - this.readToken_lt(); - } else if (type === 48) { - this.state.pos -= 1; - this.readToken_gt(); - } - } - reScan_lt() { - const { - type - } = this.state; - if (type === 51) { - this.state.pos -= 2; - this.finishOp(47, 1); - return 47; - } - return type; - } - toAssignableList(exprList, trailingCommaLoc, isLHS) { - for (let i = 0; i < exprList.length; i++) { - const expr = exprList[i]; - if ((expr == null ? void 0 : expr.type) === "TSTypeCastExpression") { - exprList[i] = this.typeCastToParameter(expr); - } - } - super.toAssignableList(exprList, trailingCommaLoc, isLHS); - } - typeCastToParameter(node) { - node.expression.typeAnnotation = node.typeAnnotation; - this.resetEndLocation(node.expression, node.typeAnnotation.loc.end); - return node.expression; - } - shouldParseArrow(params) { - if (this.match(14)) { - return params.every(expr => this.isAssignable(expr, true)); - } - return super.shouldParseArrow(params); - } - shouldParseAsyncArrow() { - return this.match(14) || super.shouldParseAsyncArrow(); - } - canHaveLeadingDecorator() { - return super.canHaveLeadingDecorator() || this.isAbstractClass(); - } - jsxParseOpeningElementAfterName(node) { - if (this.match(47) || this.match(51)) { - const typeArguments = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression()); - if (typeArguments) node.typeParameters = typeArguments; - } - return super.jsxParseOpeningElementAfterName(node); - } - getGetterSetterExpectedParamCount(method) { - const baseCount = super.getGetterSetterExpectedParamCount(method); - const params = this.getObjectOrClassMethodParams(method); - const firstParam = params[0]; - const hasContextParam = firstParam && this.isThisParam(firstParam); - return hasContextParam ? baseCount + 1 : baseCount; - } - parseCatchClauseParam() { - const param = super.parseCatchClauseParam(); - const type = this.tsTryParseTypeAnnotation(); - if (type) { - param.typeAnnotation = type; - this.resetEndLocation(param); - } - return param; - } - tsInAmbientContext(cb) { - const oldIsAmbientContext = this.state.isAmbientContext; - this.state.isAmbientContext = true; - try { - return cb(); - } finally { - this.state.isAmbientContext = oldIsAmbientContext; - } - } - parseClass(node, isStatement, optionalId) { - const oldInAbstractClass = this.state.inAbstractClass; - this.state.inAbstractClass = !!node.abstract; - try { - return super.parseClass(node, isStatement, optionalId); - } finally { - this.state.inAbstractClass = oldInAbstractClass; - } - } - tsParseAbstractDeclaration(node, decorators) { - if (this.match(80)) { - node.abstract = true; - return this.maybeTakeDecorators(decorators, this.parseClass(node, true, false)); - } else if (this.isContextual(127)) { - if (!this.hasFollowingLineBreak()) { - node.abstract = true; - this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifer, { - at: node - }); - return this.tsParseInterfaceDeclaration(node); - } - } else { - this.unexpected(null, 80); - } - } - parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) { - const method = super.parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope); - if (method.abstract) { - const hasBody = this.hasPlugin("estree") ? !!method.value.body : !!method.body; - if (hasBody) { - const { - key - } = method; - this.raise(TSErrors.AbstractMethodHasImplementation, { - at: method, - methodName: key.type === "Identifier" && !method.computed ? key.name : `[${this.input.slice(key.start, key.end)}]` - }); - } - } - return method; - } - tsParseTypeParameterName() { - const typeName = this.parseIdentifier(); - return typeName.name; - } - shouldParseAsAmbientContext() { - return !!this.getPluginOption("typescript", "dts"); - } - parse() { - if (this.shouldParseAsAmbientContext()) { - this.state.isAmbientContext = true; - } - return super.parse(); - } - getExpression() { - if (this.shouldParseAsAmbientContext()) { - this.state.isAmbientContext = true; - } - return super.getExpression(); - } - parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly) { - if (!isString && isMaybeTypeOnly) { - this.parseTypeOnlyImportExportSpecifier(node, false, isInTypeExport); - return this.finishNode(node, "ExportSpecifier"); - } - node.exportKind = "value"; - return super.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly); - } - parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { - if (!importedIsString && isMaybeTypeOnly) { - this.parseTypeOnlyImportExportSpecifier(specifier, true, isInTypeOnlyImport); - return this.finishNode(specifier, "ImportSpecifier"); - } - specifier.importKind = "value"; - return super.parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, isInTypeOnlyImport ? BIND_TS_TYPE_IMPORT : BIND_FLAGS_TS_IMPORT); - } - parseTypeOnlyImportExportSpecifier(node, isImport, isInTypeOnlyImportExport) { - const leftOfAsKey = isImport ? "imported" : "local"; - const rightOfAsKey = isImport ? "local" : "exported"; - let leftOfAs = node[leftOfAsKey]; - let rightOfAs; - let hasTypeSpecifier = false; - let canParseAsKeyword = true; - const loc = leftOfAs.loc.start; - if (this.isContextual(93)) { - const firstAs = this.parseIdentifier(); - if (this.isContextual(93)) { - const secondAs = this.parseIdentifier(); - if (tokenIsKeywordOrIdentifier(this.state.type)) { - hasTypeSpecifier = true; - leftOfAs = firstAs; - rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName(); - canParseAsKeyword = false; - } else { - rightOfAs = secondAs; - canParseAsKeyword = false; - } - } else if (tokenIsKeywordOrIdentifier(this.state.type)) { - canParseAsKeyword = false; - rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName(); - } else { - hasTypeSpecifier = true; - leftOfAs = firstAs; - } - } else if (tokenIsKeywordOrIdentifier(this.state.type)) { - hasTypeSpecifier = true; - if (isImport) { - leftOfAs = this.parseIdentifier(true); - if (!this.isContextual(93)) { - this.checkReservedWord(leftOfAs.name, leftOfAs.loc.start, true, true); - } - } else { - leftOfAs = this.parseModuleExportName(); - } - } - if (hasTypeSpecifier && isInTypeOnlyImportExport) { - this.raise(isImport ? TSErrors.TypeModifierIsUsedInTypeImports : TSErrors.TypeModifierIsUsedInTypeExports, { - at: loc - }); - } - node[leftOfAsKey] = leftOfAs; - node[rightOfAsKey] = rightOfAs; - const kindKey = isImport ? "importKind" : "exportKind"; - node[kindKey] = hasTypeSpecifier ? "type" : "value"; - if (canParseAsKeyword && this.eatContextual(93)) { - node[rightOfAsKey] = isImport ? this.parseIdentifier() : this.parseModuleExportName(); - } - if (!node[rightOfAsKey]) { - node[rightOfAsKey] = cloneIdentifier(node[leftOfAsKey]); - } - if (isImport) { - this.checkIdentifier(node[rightOfAsKey], hasTypeSpecifier ? BIND_TS_TYPE_IMPORT : BIND_FLAGS_TS_IMPORT); - } - } -}; -function isPossiblyLiteralEnum(expression) { - if (expression.type !== "MemberExpression") return false; - const { - computed, - property - } = expression; - if (computed && property.type !== "StringLiteral" && (property.type !== "TemplateLiteral" || property.expressions.length > 0)) { - return false; - } - return isUncomputedMemberExpressionChain(expression.object); -} -function isValidAmbientConstInitializer(expression, estree) { - var _expression$extra; - const { - type - } = expression; - if ((_expression$extra = expression.extra) != null && _expression$extra.parenthesized) { - return false; - } - if (estree) { - if (type === "Literal") { - const { - value - } = expression; - if (typeof value === "string" || typeof value === "boolean") { - return true; - } - } - } else { - if (type === "StringLiteral" || type === "BooleanLiteral") { - return true; - } - } - if (isNumber(expression, estree) || isNegativeNumber(expression, estree)) { - return true; - } - if (type === "TemplateLiteral" && expression.expressions.length === 0) { - return true; - } - if (isPossiblyLiteralEnum(expression)) { - return true; - } - return false; -} -function isNumber(expression, estree) { - if (estree) { - return expression.type === "Literal" && (typeof expression.value === "number" || "bigint" in expression); - } - return expression.type === "NumericLiteral" || expression.type === "BigIntLiteral"; -} -function isNegativeNumber(expression, estree) { - if (expression.type === "UnaryExpression") { - const { - operator, - argument - } = expression; - if (operator === "-" && isNumber(argument, estree)) { - return true; - } - } - return false; -} -function isUncomputedMemberExpressionChain(expression) { - if (expression.type === "Identifier") return true; - if (expression.type !== "MemberExpression" || expression.computed) { - return false; - } - return isUncomputedMemberExpressionChain(expression.object); -} -const PlaceholderErrors = ParseErrorEnum`placeholders`({ - ClassNameIsRequired: "A class name is required.", - UnexpectedSpace: "Unexpected space in placeholder." -}); -var placeholders = superClass => class PlaceholdersParserMixin extends superClass { - parsePlaceholder(expectedNode) { - if (this.match(142)) { - const node = this.startNode(); - this.next(); - this.assertNoSpace(); - node.name = super.parseIdentifier(true); - this.assertNoSpace(); - this.expect(142); - return this.finishPlaceholder(node, expectedNode); - } - } - finishPlaceholder(node, expectedNode) { - const isFinished = !!(node.expectedNode && node.type === "Placeholder"); - node.expectedNode = expectedNode; - return isFinished ? node : this.finishNode(node, "Placeholder"); - } - getTokenFromCode(code) { - if (code === 37 && this.input.charCodeAt(this.state.pos + 1) === 37) { - this.finishOp(142, 2); - } else { - super.getTokenFromCode(code); - } - } - parseExprAtom(refExpressionErrors) { - return this.parsePlaceholder("Expression") || super.parseExprAtom(refExpressionErrors); - } - parseIdentifier(liberal) { - return this.parsePlaceholder("Identifier") || super.parseIdentifier(liberal); - } - checkReservedWord(word, startLoc, checkKeywords, isBinding) { - if (word !== undefined) { - super.checkReservedWord(word, startLoc, checkKeywords, isBinding); - } - } - parseBindingAtom() { - return this.parsePlaceholder("Pattern") || super.parseBindingAtom(); - } - isValidLVal(type, isParenthesized, binding) { - return type === "Placeholder" || super.isValidLVal(type, isParenthesized, binding); - } - toAssignable(node, isLHS) { - if (node && node.type === "Placeholder" && node.expectedNode === "Expression") { - node.expectedNode = "Pattern"; - } else { - super.toAssignable(node, isLHS); - } - } - chStartsBindingIdentifier(ch, pos) { - if (super.chStartsBindingIdentifier(ch, pos)) { - return true; - } - const nextToken = this.lookahead(); - if (nextToken.type === 142) { - return true; - } - return false; - } - verifyBreakContinue(node, isBreak) { - if (node.label && node.label.type === "Placeholder") return; - super.verifyBreakContinue(node, isBreak); - } - parseExpressionStatement(node, expr) { - if (expr.type !== "Placeholder" || expr.extra && expr.extra.parenthesized) { - return super.parseExpressionStatement(node, expr); - } - if (this.match(14)) { - const stmt = node; - stmt.label = this.finishPlaceholder(expr, "Identifier"); - this.next(); - stmt.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(); - return this.finishNode(stmt, "LabeledStatement"); - } - this.semicolon(); - node.name = expr.name; - return this.finishPlaceholder(node, "Statement"); - } - parseBlock(allowDirectives, createNewLexicalScope, afterBlockParse) { - return this.parsePlaceholder("BlockStatement") || super.parseBlock(allowDirectives, createNewLexicalScope, afterBlockParse); - } - parseFunctionId(requireId) { - return this.parsePlaceholder("Identifier") || super.parseFunctionId(requireId); - } - parseClass(node, isStatement, optionalId) { - const type = isStatement ? "ClassDeclaration" : "ClassExpression"; - this.next(); - const oldStrict = this.state.strict; - const placeholder = this.parsePlaceholder("Identifier"); - if (placeholder) { - if (this.match(81) || this.match(142) || this.match(5)) { - node.id = placeholder; - } else if (optionalId || !isStatement) { - node.id = null; - node.body = this.finishPlaceholder(placeholder, "ClassBody"); - return this.finishNode(node, type); - } else { - throw this.raise(PlaceholderErrors.ClassNameIsRequired, { - at: this.state.startLoc - }); - } - } else { - this.parseClassId(node, isStatement, optionalId); - } - super.parseClassSuper(node); - node.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!node.superClass, oldStrict); - return this.finishNode(node, type); - } - parseExport(node, decorators) { - const placeholder = this.parsePlaceholder("Identifier"); - if (!placeholder) return super.parseExport(node, decorators); - if (!this.isContextual(97) && !this.match(12)) { - node.specifiers = []; - node.source = null; - node.declaration = this.finishPlaceholder(placeholder, "Declaration"); - return this.finishNode(node, "ExportNamedDeclaration"); - } - this.expectPlugin("exportDefaultFrom"); - const specifier = this.startNode(); - specifier.exported = placeholder; - node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]; - return super.parseExport(node, decorators); - } - isExportDefaultSpecifier() { - if (this.match(65)) { - const next = this.nextTokenStart(); - if (this.isUnparsedContextual(next, "from")) { - if (this.input.startsWith(tokenLabelName(142), this.nextTokenStartSince(next + 4))) { - return true; - } - } - } - return super.isExportDefaultSpecifier(); - } - maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier) { - var _specifiers; - if ((_specifiers = node.specifiers) != null && _specifiers.length) { - return true; - } - return super.maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier); - } - checkExport(node) { - const { - specifiers - } = node; - if (specifiers != null && specifiers.length) { - node.specifiers = specifiers.filter(node => node.exported.type === "Placeholder"); - } - super.checkExport(node); - node.specifiers = specifiers; - } - parseImport(node) { - const placeholder = this.parsePlaceholder("Identifier"); - if (!placeholder) return super.parseImport(node); - node.specifiers = []; - if (!this.isContextual(97) && !this.match(12)) { - node.source = this.finishPlaceholder(placeholder, "StringLiteral"); - this.semicolon(); - return this.finishNode(node, "ImportDeclaration"); - } - const specifier = this.startNodeAtNode(placeholder); - specifier.local = placeholder; - node.specifiers.push(this.finishNode(specifier, "ImportDefaultSpecifier")); - if (this.eat(12)) { - const hasStarImport = this.maybeParseStarImportSpecifier(node); - if (!hasStarImport) this.parseNamedImportSpecifiers(node); - } - this.expectContextual(97); - node.source = this.parseImportSource(); - this.semicolon(); - return this.finishNode(node, "ImportDeclaration"); - } - parseImportSource() { - return this.parsePlaceholder("StringLiteral") || super.parseImportSource(); - } - assertNoSpace() { - if (this.state.start > this.state.lastTokEndLoc.index) { - this.raise(PlaceholderErrors.UnexpectedSpace, { - at: this.state.lastTokEndLoc - }); - } - } -}; -var v8intrinsic = superClass => class V8IntrinsicMixin extends superClass { - parseV8Intrinsic() { - if (this.match(54)) { - const v8IntrinsicStartLoc = this.state.startLoc; - const node = this.startNode(); - this.next(); - if (tokenIsIdentifier(this.state.type)) { - const name = this.parseIdentifierName(); - const identifier = this.createIdentifier(node, name); - identifier.type = "V8IntrinsicIdentifier"; - if (this.match(10)) { - return identifier; - } - } - this.unexpected(v8IntrinsicStartLoc); - } - } - parseExprAtom(refExpressionErrors) { - return this.parseV8Intrinsic() || super.parseExprAtom(refExpressionErrors); - } -}; -function hasPlugin(plugins, expectedConfig) { - const [expectedName, expectedOptions] = typeof expectedConfig === "string" ? [expectedConfig, {}] : expectedConfig; - const expectedKeys = Object.keys(expectedOptions); - const expectedOptionsIsEmpty = expectedKeys.length === 0; - return plugins.some(p => { - if (typeof p === "string") { - return expectedOptionsIsEmpty && p === expectedName; - } else { - const [pluginName, pluginOptions] = p; - if (pluginName !== expectedName) { - return false; - } - for (const key of expectedKeys) { - if (pluginOptions[key] !== expectedOptions[key]) { - return false; - } - } - return true; - } - }); -} -function getPluginOption(plugins, name, option) { - const plugin = plugins.find(plugin => { - if (Array.isArray(plugin)) { - return plugin[0] === name; - } else { - return plugin === name; - } - }); - if (plugin && Array.isArray(plugin) && plugin.length > 1) { - return plugin[1][option]; - } - return null; -} -const PIPELINE_PROPOSALS = ["minimal", "fsharp", "hack", "smart"]; -const TOPIC_TOKENS = ["^^", "@@", "^", "%", "#"]; -const RECORD_AND_TUPLE_SYNTAX_TYPES = ["hash", "bar"]; -function validatePlugins(plugins) { - if (hasPlugin(plugins, "decorators")) { - if (hasPlugin(plugins, "decorators-legacy")) { - throw new Error("Cannot use the decorators and decorators-legacy plugin together"); - } - const decoratorsBeforeExport = getPluginOption(plugins, "decorators", "decoratorsBeforeExport"); - if (decoratorsBeforeExport != null && typeof decoratorsBeforeExport !== "boolean") { - throw new Error("'decoratorsBeforeExport' must be a boolean, if specified."); - } - const allowCallParenthesized = getPluginOption(plugins, "decorators", "allowCallParenthesized"); - if (allowCallParenthesized != null && typeof allowCallParenthesized !== "boolean") { - throw new Error("'allowCallParenthesized' must be a boolean."); - } - } - if (hasPlugin(plugins, "flow") && hasPlugin(plugins, "typescript")) { - throw new Error("Cannot combine flow and typescript plugins."); - } - if (hasPlugin(plugins, "placeholders") && hasPlugin(plugins, "v8intrinsic")) { - throw new Error("Cannot combine placeholders and v8intrinsic plugins."); - } - if (hasPlugin(plugins, "pipelineOperator")) { - const proposal = getPluginOption(plugins, "pipelineOperator", "proposal"); - if (!PIPELINE_PROPOSALS.includes(proposal)) { - const proposalList = PIPELINE_PROPOSALS.map(p => `"${p}"`).join(", "); - throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`); - } - const tupleSyntaxIsHash = hasPlugin(plugins, ["recordAndTuple", { - syntaxType: "hash" - }]); - if (proposal === "hack") { - if (hasPlugin(plugins, "placeholders")) { - throw new Error("Cannot combine placeholders plugin and Hack-style pipes."); - } - if (hasPlugin(plugins, "v8intrinsic")) { - throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes."); - } - const topicToken = getPluginOption(plugins, "pipelineOperator", "topicToken"); - if (!TOPIC_TOKENS.includes(topicToken)) { - const tokenList = TOPIC_TOKENS.map(t => `"${t}"`).join(", "); - throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`); - } - if (topicToken === "#" && tupleSyntaxIsHash) { - throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.'); - } - } else if (proposal === "smart" && tupleSyntaxIsHash) { - throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.'); - } - } - if (hasPlugin(plugins, "moduleAttributes")) { - { - if (hasPlugin(plugins, "importAssertions") || hasPlugin(plugins, "importAttributes")) { - throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins."); - } - const moduleAttributesVersionPluginOption = getPluginOption(plugins, "moduleAttributes", "version"); - if (moduleAttributesVersionPluginOption !== "may-2020") { - throw new Error("The 'moduleAttributes' plugin requires a 'version' option," + " representing the last proposal update. Currently, the" + " only supported value is 'may-2020'."); - } - } - } - if (hasPlugin(plugins, "importAssertions") && hasPlugin(plugins, "importAttributes")) { - throw new Error("Cannot combine importAssertions and importAttributes plugins."); - } - if (hasPlugin(plugins, "recordAndTuple") && getPluginOption(plugins, "recordAndTuple", "syntaxType") != null && !RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins, "recordAndTuple", "syntaxType"))) { - throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map(p => `'${p}'`).join(", ")); - } - if (hasPlugin(plugins, "asyncDoExpressions") && !hasPlugin(plugins, "doExpressions")) { - const error = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins."); - error.missingPlugins = "doExpressions"; - throw error; - } -} -const mixinPlugins = { - estree, - jsx, - flow, - typescript, - v8intrinsic, - placeholders -}; -const mixinPluginNames = Object.keys(mixinPlugins); -const defaultOptions = { - sourceType: "script", - sourceFilename: undefined, - startColumn: 0, - startLine: 1, - allowAwaitOutsideFunction: false, - allowReturnOutsideFunction: false, - allowNewTargetOutsideFunction: false, - allowImportExportEverywhere: false, - allowSuperOutsideMethod: false, - allowUndeclaredExports: false, - plugins: [], - strictMode: null, - ranges: false, - tokens: false, - createParenthesizedExpressions: false, - errorRecovery: false, - attachComment: true, - annexB: true -}; -function getOptions(opts) { - if (opts && opts.annexB != null && opts.annexB !== false) { - throw new Error("The `annexB` option can only be set to `false`."); - } - const options = {}; - for (const key of Object.keys(defaultOptions)) { - options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key]; - } - return options; -} -class ExpressionParser extends LValParser { - checkProto(prop, isRecord, protoRef, refExpressionErrors) { - if (prop.type === "SpreadElement" || this.isObjectMethod(prop) || prop.computed || prop.shorthand) { - return; - } - const key = prop.key; - const name = key.type === "Identifier" ? key.name : key.value; - if (name === "__proto__") { - if (isRecord) { - this.raise(Errors.RecordNoProto, { - at: key - }); - return; - } - if (protoRef.used) { - if (refExpressionErrors) { - if (refExpressionErrors.doubleProtoLoc === null) { - refExpressionErrors.doubleProtoLoc = key.loc.start; - } - } else { - this.raise(Errors.DuplicateProto, { - at: key - }); - } - } - protoRef.used = true; - } - } - shouldExitDescending(expr, potentialArrowAt) { - return expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt; - } - getExpression() { - this.enterInitialScopes(); - this.nextToken(); - const expr = this.parseExpression(); - if (!this.match(137)) { - this.unexpected(); - } - this.finalizeRemainingComments(); - expr.comments = this.state.comments; - expr.errors = this.state.errors; - if (this.options.tokens) { - expr.tokens = this.tokens; - } - return expr; - } - parseExpression(disallowIn, refExpressionErrors) { - if (disallowIn) { - return this.disallowInAnd(() => this.parseExpressionBase(refExpressionErrors)); - } - return this.allowInAnd(() => this.parseExpressionBase(refExpressionErrors)); - } - parseExpressionBase(refExpressionErrors) { - const startLoc = this.state.startLoc; - const expr = this.parseMaybeAssign(refExpressionErrors); - if (this.match(12)) { - const node = this.startNodeAt(startLoc); - node.expressions = [expr]; - while (this.eat(12)) { - node.expressions.push(this.parseMaybeAssign(refExpressionErrors)); - } - this.toReferencedList(node.expressions); - return this.finishNode(node, "SequenceExpression"); - } - return expr; - } - parseMaybeAssignDisallowIn(refExpressionErrors, afterLeftParse) { - return this.disallowInAnd(() => this.parseMaybeAssign(refExpressionErrors, afterLeftParse)); - } - parseMaybeAssignAllowIn(refExpressionErrors, afterLeftParse) { - return this.allowInAnd(() => this.parseMaybeAssign(refExpressionErrors, afterLeftParse)); - } - setOptionalParametersError(refExpressionErrors, resultError) { - var _resultError$loc; - refExpressionErrors.optionalParametersLoc = (_resultError$loc = resultError == null ? void 0 : resultError.loc) != null ? _resultError$loc : this.state.startLoc; - } - parseMaybeAssign(refExpressionErrors, afterLeftParse) { - const startLoc = this.state.startLoc; - if (this.isContextual(106)) { - if (this.prodParam.hasYield) { - let left = this.parseYield(); - if (afterLeftParse) { - left = afterLeftParse.call(this, left, startLoc); - } - return left; - } - } - let ownExpressionErrors; - if (refExpressionErrors) { - ownExpressionErrors = false; - } else { - refExpressionErrors = new ExpressionErrors(); - ownExpressionErrors = true; - } - const { - type - } = this.state; - if (type === 10 || tokenIsIdentifier(type)) { - this.state.potentialArrowAt = this.state.start; - } - let left = this.parseMaybeConditional(refExpressionErrors); - if (afterLeftParse) { - left = afterLeftParse.call(this, left, startLoc); - } - if (tokenIsAssignment(this.state.type)) { - const node = this.startNodeAt(startLoc); - const operator = this.state.value; - node.operator = operator; - if (this.match(29)) { - this.toAssignable(left, true); - node.left = left; - const startIndex = startLoc.index; - if (refExpressionErrors.doubleProtoLoc != null && refExpressionErrors.doubleProtoLoc.index >= startIndex) { - refExpressionErrors.doubleProtoLoc = null; - } - if (refExpressionErrors.shorthandAssignLoc != null && refExpressionErrors.shorthandAssignLoc.index >= startIndex) { - refExpressionErrors.shorthandAssignLoc = null; - } - if (refExpressionErrors.privateKeyLoc != null && refExpressionErrors.privateKeyLoc.index >= startIndex) { - this.checkDestructuringPrivate(refExpressionErrors); - refExpressionErrors.privateKeyLoc = null; - } - } else { - node.left = left; - } - this.next(); - node.right = this.parseMaybeAssign(); - this.checkLVal(left, { - in: this.finishNode(node, "AssignmentExpression") - }); - return node; - } else if (ownExpressionErrors) { - this.checkExpressionErrors(refExpressionErrors, true); - } - return left; - } - parseMaybeConditional(refExpressionErrors) { - const startLoc = this.state.startLoc; - const potentialArrowAt = this.state.potentialArrowAt; - const expr = this.parseExprOps(refExpressionErrors); - if (this.shouldExitDescending(expr, potentialArrowAt)) { - return expr; - } - return this.parseConditional(expr, startLoc, refExpressionErrors); - } - parseConditional(expr, startLoc, refExpressionErrors) { - if (this.eat(17)) { - const node = this.startNodeAt(startLoc); - node.test = expr; - node.consequent = this.parseMaybeAssignAllowIn(); - this.expect(14); - node.alternate = this.parseMaybeAssign(); - return this.finishNode(node, "ConditionalExpression"); - } - return expr; - } - parseMaybeUnaryOrPrivate(refExpressionErrors) { - return this.match(136) ? this.parsePrivateName() : this.parseMaybeUnary(refExpressionErrors); - } - parseExprOps(refExpressionErrors) { - const startLoc = this.state.startLoc; - const potentialArrowAt = this.state.potentialArrowAt; - const expr = this.parseMaybeUnaryOrPrivate(refExpressionErrors); - if (this.shouldExitDescending(expr, potentialArrowAt)) { - return expr; - } - return this.parseExprOp(expr, startLoc, -1); - } - parseExprOp(left, leftStartLoc, minPrec) { - if (this.isPrivateName(left)) { - const value = this.getPrivateNameSV(left); - if (minPrec >= tokenOperatorPrecedence(58) || !this.prodParam.hasIn || !this.match(58)) { - this.raise(Errors.PrivateInExpectedIn, { - at: left, - identifierName: value - }); - } - this.classScope.usePrivateName(value, left.loc.start); - } - const op = this.state.type; - if (tokenIsOperator(op) && (this.prodParam.hasIn || !this.match(58))) { - let prec = tokenOperatorPrecedence(op); - if (prec > minPrec) { - if (op === 39) { - this.expectPlugin("pipelineOperator"); - if (this.state.inFSharpPipelineDirectBody) { - return left; - } - this.checkPipelineAtInfixOperator(left, leftStartLoc); - } - const node = this.startNodeAt(leftStartLoc); - node.left = left; - node.operator = this.state.value; - const logical = op === 41 || op === 42; - const coalesce = op === 40; - if (coalesce) { - prec = tokenOperatorPrecedence(42); - } - this.next(); - if (op === 39 && this.hasPlugin(["pipelineOperator", { - proposal: "minimal" - }])) { - if (this.state.type === 96 && this.prodParam.hasAwait) { - throw this.raise(Errors.UnexpectedAwaitAfterPipelineBody, { - at: this.state.startLoc - }); - } - } - node.right = this.parseExprOpRightExpr(op, prec); - const finishedNode = this.finishNode(node, logical || coalesce ? "LogicalExpression" : "BinaryExpression"); - const nextOp = this.state.type; - if (coalesce && (nextOp === 41 || nextOp === 42) || logical && nextOp === 40) { - throw this.raise(Errors.MixingCoalesceWithLogical, { - at: this.state.startLoc - }); - } - return this.parseExprOp(finishedNode, leftStartLoc, minPrec); - } - } - return left; - } - parseExprOpRightExpr(op, prec) { - const startLoc = this.state.startLoc; - switch (op) { - case 39: - switch (this.getPluginOption("pipelineOperator", "proposal")) { - case "hack": - return this.withTopicBindingContext(() => { - return this.parseHackPipeBody(); - }); - case "smart": - return this.withTopicBindingContext(() => { - if (this.prodParam.hasYield && this.isContextual(106)) { - throw this.raise(Errors.PipeBodyIsTighter, { - at: this.state.startLoc - }); - } - return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(op, prec), startLoc); - }); - case "fsharp": - return this.withSoloAwaitPermittingContext(() => { - return this.parseFSharpPipelineBody(prec); - }); - } - default: - return this.parseExprOpBaseRightExpr(op, prec); - } - } - parseExprOpBaseRightExpr(op, prec) { - const startLoc = this.state.startLoc; - return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, tokenIsRightAssociative(op) ? prec - 1 : prec); - } - parseHackPipeBody() { - var _body$extra; - const { - startLoc - } = this.state; - const body = this.parseMaybeAssign(); - const requiredParentheses = UnparenthesizedPipeBodyDescriptions.has(body.type); - if (requiredParentheses && !((_body$extra = body.extra) != null && _body$extra.parenthesized)) { - this.raise(Errors.PipeUnparenthesizedBody, { - at: startLoc, - type: body.type - }); - } - if (!this.topicReferenceWasUsedInCurrentContext()) { - this.raise(Errors.PipeTopicUnused, { - at: startLoc - }); - } - return body; - } - checkExponentialAfterUnary(node) { - if (this.match(57)) { - this.raise(Errors.UnexpectedTokenUnaryExponentiation, { - at: node.argument - }); - } - } - parseMaybeUnary(refExpressionErrors, sawUnary) { - const startLoc = this.state.startLoc; - const isAwait = this.isContextual(96); - if (isAwait && this.isAwaitAllowed()) { - this.next(); - const expr = this.parseAwait(startLoc); - if (!sawUnary) this.checkExponentialAfterUnary(expr); - return expr; - } - const update = this.match(34); - const node = this.startNode(); - if (tokenIsPrefix(this.state.type)) { - node.operator = this.state.value; - node.prefix = true; - if (this.match(72)) { - this.expectPlugin("throwExpressions"); - } - const isDelete = this.match(89); - this.next(); - node.argument = this.parseMaybeUnary(null, true); - this.checkExpressionErrors(refExpressionErrors, true); - if (this.state.strict && isDelete) { - const arg = node.argument; - if (arg.type === "Identifier") { - this.raise(Errors.StrictDelete, { - at: node - }); - } else if (this.hasPropertyAsPrivateName(arg)) { - this.raise(Errors.DeletePrivateField, { - at: node - }); - } - } - if (!update) { - if (!sawUnary) { - this.checkExponentialAfterUnary(node); - } - return this.finishNode(node, "UnaryExpression"); - } - } - const expr = this.parseUpdate(node, update, refExpressionErrors); - if (isAwait) { - const { - type - } = this.state; - const startsExpr = this.hasPlugin("v8intrinsic") ? tokenCanStartExpression(type) : tokenCanStartExpression(type) && !this.match(54); - if (startsExpr && !this.isAmbiguousAwait()) { - this.raiseOverwrite(Errors.AwaitNotInAsyncContext, { - at: startLoc - }); - return this.parseAwait(startLoc); - } - } - return expr; - } - parseUpdate(node, update, refExpressionErrors) { - if (update) { - const updateExpressionNode = node; - this.checkLVal(updateExpressionNode.argument, { - in: this.finishNode(updateExpressionNode, "UpdateExpression") - }); - return node; - } - const startLoc = this.state.startLoc; - let expr = this.parseExprSubscripts(refExpressionErrors); - if (this.checkExpressionErrors(refExpressionErrors, false)) return expr; - while (tokenIsPostfix(this.state.type) && !this.canInsertSemicolon()) { - const node = this.startNodeAt(startLoc); - node.operator = this.state.value; - node.prefix = false; - node.argument = expr; - this.next(); - this.checkLVal(expr, { - in: expr = this.finishNode(node, "UpdateExpression") - }); - } - return expr; - } - parseExprSubscripts(refExpressionErrors) { - const startLoc = this.state.startLoc; - const potentialArrowAt = this.state.potentialArrowAt; - const expr = this.parseExprAtom(refExpressionErrors); - if (this.shouldExitDescending(expr, potentialArrowAt)) { - return expr; - } - return this.parseSubscripts(expr, startLoc); - } - parseSubscripts(base, startLoc, noCalls) { - const state = { - optionalChainMember: false, - maybeAsyncArrow: this.atPossibleAsyncArrow(base), - stop: false - }; - do { - base = this.parseSubscript(base, startLoc, noCalls, state); - state.maybeAsyncArrow = false; - } while (!state.stop); - return base; - } - parseSubscript(base, startLoc, noCalls, state) { - const { - type - } = this.state; - if (!noCalls && type === 15) { - return this.parseBind(base, startLoc, noCalls, state); - } else if (tokenIsTemplate(type)) { - return this.parseTaggedTemplateExpression(base, startLoc, state); - } - let optional = false; - if (type === 18) { - if (noCalls) { - this.raise(Errors.OptionalChainingNoNew, { - at: this.state.startLoc - }); - if (this.lookaheadCharCode() === 40) { - state.stop = true; - return base; - } - } - state.optionalChainMember = optional = true; - this.next(); - } - if (!noCalls && this.match(10)) { - return this.parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional); - } else { - const computed = this.eat(0); - if (computed || optional || this.eat(16)) { - return this.parseMember(base, startLoc, state, computed, optional); - } else { - state.stop = true; - return base; - } - } - } - parseMember(base, startLoc, state, computed, optional) { - const node = this.startNodeAt(startLoc); - node.object = base; - node.computed = computed; - if (computed) { - node.property = this.parseExpression(); - this.expect(3); - } else if (this.match(136)) { - if (base.type === "Super") { - this.raise(Errors.SuperPrivateField, { - at: startLoc - }); - } - this.classScope.usePrivateName(this.state.value, this.state.startLoc); - node.property = this.parsePrivateName(); - } else { - node.property = this.parseIdentifier(true); - } - if (state.optionalChainMember) { - node.optional = optional; - return this.finishNode(node, "OptionalMemberExpression"); - } else { - return this.finishNode(node, "MemberExpression"); - } - } - parseBind(base, startLoc, noCalls, state) { - const node = this.startNodeAt(startLoc); - node.object = base; - this.next(); - node.callee = this.parseNoCallExpr(); - state.stop = true; - return this.parseSubscripts(this.finishNode(node, "BindExpression"), startLoc, noCalls); - } - parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional) { - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - let refExpressionErrors = null; - this.state.maybeInArrowParameters = true; - this.next(); - const node = this.startNodeAt(startLoc); - node.callee = base; - const { - maybeAsyncArrow, - optionalChainMember - } = state; - if (maybeAsyncArrow) { - this.expressionScope.enter(newAsyncArrowScope()); - refExpressionErrors = new ExpressionErrors(); - } - if (optionalChainMember) { - node.optional = optional; - } - if (optional) { - node.arguments = this.parseCallExpressionArguments(11); - } else { - node.arguments = this.parseCallExpressionArguments(11, base.type === "Import", base.type !== "Super", node, refExpressionErrors); - } - let finishedNode = this.finishCallExpression(node, optionalChainMember); - if (maybeAsyncArrow && this.shouldParseAsyncArrow() && !optional) { - state.stop = true; - this.checkDestructuringPrivate(refExpressionErrors); - this.expressionScope.validateAsPattern(); - this.expressionScope.exit(); - finishedNode = this.parseAsyncArrowFromCallExpression(this.startNodeAt(startLoc), finishedNode); - } else { - if (maybeAsyncArrow) { - this.checkExpressionErrors(refExpressionErrors, true); - this.expressionScope.exit(); - } - this.toReferencedArguments(finishedNode); - } - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - return finishedNode; - } - toReferencedArguments(node, isParenthesizedExpr) { - this.toReferencedListDeep(node.arguments, isParenthesizedExpr); - } - parseTaggedTemplateExpression(base, startLoc, state) { - const node = this.startNodeAt(startLoc); - node.tag = base; - node.quasi = this.parseTemplate(true); - if (state.optionalChainMember) { - this.raise(Errors.OptionalChainingNoTemplate, { - at: startLoc - }); - } - return this.finishNode(node, "TaggedTemplateExpression"); - } - atPossibleAsyncArrow(base) { - return base.type === "Identifier" && base.name === "async" && this.state.lastTokEndLoc.index === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && base.start === this.state.potentialArrowAt; - } - expectImportAttributesPlugin() { - if (!this.hasPlugin("importAssertions")) { - this.expectPlugin("importAttributes"); - } - } - finishCallExpression(node, optional) { - if (node.callee.type === "Import") { - if (node.arguments.length === 2) { - { - if (!this.hasPlugin("moduleAttributes")) { - this.expectImportAttributesPlugin(); - } - } - } - if (node.arguments.length === 0 || node.arguments.length > 2) { - this.raise(Errors.ImportCallArity, { - at: node, - maxArgumentCount: this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions") || this.hasPlugin("moduleAttributes") ? 2 : 1 - }); - } else { - for (const arg of node.arguments) { - if (arg.type === "SpreadElement") { - this.raise(Errors.ImportCallSpreadArgument, { - at: arg - }); - } - } - } - } - return this.finishNode(node, optional ? "OptionalCallExpression" : "CallExpression"); - } - parseCallExpressionArguments(close, dynamicImport, allowPlaceholder, nodeForExtra, refExpressionErrors) { - const elts = []; - let first = true; - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = false; - while (!this.eat(close)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.match(close)) { - if (dynamicImport && !this.hasPlugin("importAttributes") && !this.hasPlugin("importAssertions") && !this.hasPlugin("moduleAttributes")) { - this.raise(Errors.ImportCallArgumentTrailingComma, { - at: this.state.lastTokStartLoc - }); - } - if (nodeForExtra) { - this.addTrailingCommaExtraToNode(nodeForExtra); - } - this.next(); - break; - } - } - elts.push(this.parseExprListItem(false, refExpressionErrors, allowPlaceholder)); - } - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - return elts; - } - shouldParseAsyncArrow() { - return this.match(19) && !this.canInsertSemicolon(); - } - parseAsyncArrowFromCallExpression(node, call) { - var _call$extra; - this.resetPreviousNodeTrailingComments(call); - this.expect(19); - this.parseArrowExpression(node, call.arguments, true, (_call$extra = call.extra) == null ? void 0 : _call$extra.trailingCommaLoc); - if (call.innerComments) { - setInnerComments(node, call.innerComments); - } - if (call.callee.trailingComments) { - setInnerComments(node, call.callee.trailingComments); - } - return node; - } - parseNoCallExpr() { - const startLoc = this.state.startLoc; - return this.parseSubscripts(this.parseExprAtom(), startLoc, true); - } - parseExprAtom(refExpressionErrors) { - let node; - let decorators = null; - const { - type - } = this.state; - switch (type) { - case 79: - return this.parseSuper(); - case 83: - node = this.startNode(); - this.next(); - if (this.match(16)) { - return this.parseImportMetaProperty(node); - } - if (!this.match(10)) { - this.raise(Errors.UnsupportedImport, { - at: this.state.lastTokStartLoc - }); - } - return this.finishNode(node, "Import"); - case 78: - node = this.startNode(); - this.next(); - return this.finishNode(node, "ThisExpression"); - case 90: - { - return this.parseDo(this.startNode(), false); - } - case 56: - case 31: - { - this.readRegexp(); - return this.parseRegExpLiteral(this.state.value); - } - case 132: - return this.parseNumericLiteral(this.state.value); - case 133: - return this.parseBigIntLiteral(this.state.value); - case 134: - return this.parseDecimalLiteral(this.state.value); - case 131: - return this.parseStringLiteral(this.state.value); - case 84: - return this.parseNullLiteral(); - case 85: - return this.parseBooleanLiteral(true); - case 86: - return this.parseBooleanLiteral(false); - case 10: - { - const canBeArrow = this.state.potentialArrowAt === this.state.start; - return this.parseParenAndDistinguishExpression(canBeArrow); - } - case 2: - case 1: - { - return this.parseArrayLike(this.state.type === 2 ? 4 : 3, false, true); - } - case 0: - { - return this.parseArrayLike(3, true, false, refExpressionErrors); - } - case 6: - case 7: - { - return this.parseObjectLike(this.state.type === 6 ? 9 : 8, false, true); - } - case 5: - { - return this.parseObjectLike(8, false, false, refExpressionErrors); - } - case 68: - return this.parseFunctionOrFunctionSent(); - case 26: - decorators = this.parseDecorators(); - case 80: - return this.parseClass(this.maybeTakeDecorators(decorators, this.startNode()), false); - case 77: - return this.parseNewOrNewTarget(); - case 25: - case 24: - return this.parseTemplate(false); - case 15: - { - node = this.startNode(); - this.next(); - node.object = null; - const callee = node.callee = this.parseNoCallExpr(); - if (callee.type === "MemberExpression") { - return this.finishNode(node, "BindExpression"); - } else { - throw this.raise(Errors.UnsupportedBind, { - at: callee - }); - } - } - case 136: - { - this.raise(Errors.PrivateInExpectedIn, { - at: this.state.startLoc, - identifierName: this.state.value - }); - return this.parsePrivateName(); - } - case 33: - { - return this.parseTopicReferenceThenEqualsSign(54, "%"); - } - case 32: - { - return this.parseTopicReferenceThenEqualsSign(44, "^"); - } - case 37: - case 38: - { - return this.parseTopicReference("hack"); - } - case 44: - case 54: - case 27: - { - const pipeProposal = this.getPluginOption("pipelineOperator", "proposal"); - if (pipeProposal) { - return this.parseTopicReference(pipeProposal); - } - this.unexpected(); - break; - } - case 47: - { - const lookaheadCh = this.input.codePointAt(this.nextTokenStart()); - if (isIdentifierStart(lookaheadCh) || lookaheadCh === 62) { - this.expectOnePlugin(["jsx", "flow", "typescript"]); - } else { - this.unexpected(); - } - break; - } - default: - if (tokenIsIdentifier(type)) { - if (this.isContextual(125) && this.lookaheadInLineCharCode() === 123) { - return this.parseModuleExpression(); - } - const canBeArrow = this.state.potentialArrowAt === this.state.start; - const containsEsc = this.state.containsEsc; - const id = this.parseIdentifier(); - if (!containsEsc && id.name === "async" && !this.canInsertSemicolon()) { - const { - type - } = this.state; - if (type === 68) { - this.resetPreviousNodeTrailingComments(id); - this.next(); - return this.parseAsyncFunctionExpression(this.startNodeAtNode(id)); - } else if (tokenIsIdentifier(type)) { - if (this.lookaheadCharCode() === 61) { - return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id)); - } else { - return id; - } - } else if (type === 90) { - this.resetPreviousNodeTrailingComments(id); - return this.parseDo(this.startNodeAtNode(id), true); - } - } - if (canBeArrow && this.match(19) && !this.canInsertSemicolon()) { - this.next(); - return this.parseArrowExpression(this.startNodeAtNode(id), [id], false); - } - return id; - } else { - this.unexpected(); - } - } - } - parseTopicReferenceThenEqualsSign(topicTokenType, topicTokenValue) { - const pipeProposal = this.getPluginOption("pipelineOperator", "proposal"); - if (pipeProposal) { - this.state.type = topicTokenType; - this.state.value = topicTokenValue; - this.state.pos--; - this.state.end--; - this.state.endLoc = createPositionWithColumnOffset(this.state.endLoc, -1); - return this.parseTopicReference(pipeProposal); - } else { - this.unexpected(); - } - } - parseTopicReference(pipeProposal) { - const node = this.startNode(); - const startLoc = this.state.startLoc; - const tokenType = this.state.type; - this.next(); - return this.finishTopicReference(node, startLoc, pipeProposal, tokenType); - } - finishTopicReference(node, startLoc, pipeProposal, tokenType) { - if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) { - const nodeType = pipeProposal === "smart" ? "PipelinePrimaryTopicReference" : "TopicReference"; - if (!this.topicReferenceIsAllowedInCurrentContext()) { - this.raise(pipeProposal === "smart" ? Errors.PrimaryTopicNotAllowed : Errors.PipeTopicUnbound, { - at: startLoc - }); - } - this.registerTopicReference(); - return this.finishNode(node, nodeType); - } else { - throw this.raise(Errors.PipeTopicUnconfiguredToken, { - at: startLoc, - token: tokenLabelName(tokenType) - }); - } - } - testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType) { - switch (pipeProposal) { - case "hack": - { - return this.hasPlugin(["pipelineOperator", { - topicToken: tokenLabelName(tokenType) - }]); - } - case "smart": - return tokenType === 27; - default: - throw this.raise(Errors.PipeTopicRequiresHackPipes, { - at: startLoc - }); - } - } - parseAsyncArrowUnaryFunction(node) { - this.prodParam.enter(functionFlags(true, this.prodParam.hasYield)); - const params = [this.parseIdentifier()]; - this.prodParam.exit(); - if (this.hasPrecedingLineBreak()) { - this.raise(Errors.LineTerminatorBeforeArrow, { - at: this.state.curPosition() - }); - } - this.expect(19); - return this.parseArrowExpression(node, params, true); - } - parseDo(node, isAsync) { - this.expectPlugin("doExpressions"); - if (isAsync) { - this.expectPlugin("asyncDoExpressions"); - } - node.async = isAsync; - this.next(); - const oldLabels = this.state.labels; - this.state.labels = []; - if (isAsync) { - this.prodParam.enter(PARAM_AWAIT); - node.body = this.parseBlock(); - this.prodParam.exit(); - } else { - node.body = this.parseBlock(); - } - this.state.labels = oldLabels; - return this.finishNode(node, "DoExpression"); - } - parseSuper() { - const node = this.startNode(); - this.next(); - if (this.match(10) && !this.scope.allowDirectSuper && !this.options.allowSuperOutsideMethod) { - this.raise(Errors.SuperNotAllowed, { - at: node - }); - } else if (!this.scope.allowSuper && !this.options.allowSuperOutsideMethod) { - this.raise(Errors.UnexpectedSuper, { - at: node - }); - } - if (!this.match(10) && !this.match(0) && !this.match(16)) { - this.raise(Errors.UnsupportedSuper, { - at: node - }); - } - return this.finishNode(node, "Super"); - } - parsePrivateName() { - const node = this.startNode(); - const id = this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc, 1)); - const name = this.state.value; - this.next(); - node.id = this.createIdentifier(id, name); - return this.finishNode(node, "PrivateName"); - } - parseFunctionOrFunctionSent() { - const node = this.startNode(); - this.next(); - if (this.prodParam.hasYield && this.match(16)) { - const meta = this.createIdentifier(this.startNodeAtNode(node), "function"); - this.next(); - if (this.match(102)) { - this.expectPlugin("functionSent"); - } else if (!this.hasPlugin("functionSent")) { - this.unexpected(); - } - return this.parseMetaProperty(node, meta, "sent"); - } - return this.parseFunction(node); - } - parseMetaProperty(node, meta, propertyName) { - node.meta = meta; - const containsEsc = this.state.containsEsc; - node.property = this.parseIdentifier(true); - if (node.property.name !== propertyName || containsEsc) { - this.raise(Errors.UnsupportedMetaProperty, { - at: node.property, - target: meta.name, - onlyValidPropertyName: propertyName - }); - } - return this.finishNode(node, "MetaProperty"); - } - parseImportMetaProperty(node) { - const id = this.createIdentifier(this.startNodeAtNode(node), "import"); - this.next(); - if (this.isContextual(100)) { - if (!this.inModule) { - this.raise(Errors.ImportMetaOutsideModule, { - at: id - }); - } - this.sawUnambiguousESM = true; - } - return this.parseMetaProperty(node, id, "meta"); - } - parseLiteralAtNode(value, type, node) { - this.addExtra(node, "rawValue", value); - this.addExtra(node, "raw", this.input.slice(node.start, this.state.end)); - node.value = value; - this.next(); - return this.finishNode(node, type); - } - parseLiteral(value, type) { - const node = this.startNode(); - return this.parseLiteralAtNode(value, type, node); - } - parseStringLiteral(value) { - return this.parseLiteral(value, "StringLiteral"); - } - parseNumericLiteral(value) { - return this.parseLiteral(value, "NumericLiteral"); - } - parseBigIntLiteral(value) { - return this.parseLiteral(value, "BigIntLiteral"); - } - parseDecimalLiteral(value) { - return this.parseLiteral(value, "DecimalLiteral"); - } - parseRegExpLiteral(value) { - const node = this.parseLiteral(value.value, "RegExpLiteral"); - node.pattern = value.pattern; - node.flags = value.flags; - return node; - } - parseBooleanLiteral(value) { - const node = this.startNode(); - node.value = value; - this.next(); - return this.finishNode(node, "BooleanLiteral"); - } - parseNullLiteral() { - const node = this.startNode(); - this.next(); - return this.finishNode(node, "NullLiteral"); - } - parseParenAndDistinguishExpression(canBeArrow) { - const startLoc = this.state.startLoc; - let val; - this.next(); - this.expressionScope.enter(newArrowHeadScope()); - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.maybeInArrowParameters = true; - this.state.inFSharpPipelineDirectBody = false; - const innerStartLoc = this.state.startLoc; - const exprList = []; - const refExpressionErrors = new ExpressionErrors(); - let first = true; - let spreadStartLoc; - let optionalCommaStartLoc; - while (!this.match(11)) { - if (first) { - first = false; - } else { - this.expect(12, refExpressionErrors.optionalParametersLoc === null ? null : refExpressionErrors.optionalParametersLoc); - if (this.match(11)) { - optionalCommaStartLoc = this.state.startLoc; - break; - } - } - if (this.match(21)) { - const spreadNodeStartLoc = this.state.startLoc; - spreadStartLoc = this.state.startLoc; - exprList.push(this.parseParenItem(this.parseRestBinding(), spreadNodeStartLoc)); - if (!this.checkCommaAfterRest(41)) { - break; - } - } else { - exprList.push(this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem)); - } - } - const innerEndLoc = this.state.lastTokEndLoc; - this.expect(11); - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - let arrowNode = this.startNodeAt(startLoc); - if (canBeArrow && this.shouldParseArrow(exprList) && (arrowNode = this.parseArrow(arrowNode))) { - this.checkDestructuringPrivate(refExpressionErrors); - this.expressionScope.validateAsPattern(); - this.expressionScope.exit(); - this.parseArrowExpression(arrowNode, exprList, false); - return arrowNode; - } - this.expressionScope.exit(); - if (!exprList.length) { - this.unexpected(this.state.lastTokStartLoc); - } - if (optionalCommaStartLoc) this.unexpected(optionalCommaStartLoc); - if (spreadStartLoc) this.unexpected(spreadStartLoc); - this.checkExpressionErrors(refExpressionErrors, true); - this.toReferencedListDeep(exprList, true); - if (exprList.length > 1) { - val = this.startNodeAt(innerStartLoc); - val.expressions = exprList; - this.finishNode(val, "SequenceExpression"); - this.resetEndLocation(val, innerEndLoc); - } else { - val = exprList[0]; - } - return this.wrapParenthesis(startLoc, val); - } - wrapParenthesis(startLoc, expression) { - if (!this.options.createParenthesizedExpressions) { - this.addExtra(expression, "parenthesized", true); - this.addExtra(expression, "parenStart", startLoc.index); - this.takeSurroundingComments(expression, startLoc.index, this.state.lastTokEndLoc.index); - return expression; - } - const parenExpression = this.startNodeAt(startLoc); - parenExpression.expression = expression; - return this.finishNode(parenExpression, "ParenthesizedExpression"); - } - shouldParseArrow(params) { - return !this.canInsertSemicolon(); - } - parseArrow(node) { - if (this.eat(19)) { - return node; - } - } - parseParenItem(node, startLoc) { - return node; - } - parseNewOrNewTarget() { - const node = this.startNode(); - this.next(); - if (this.match(16)) { - const meta = this.createIdentifier(this.startNodeAtNode(node), "new"); - this.next(); - const metaProp = this.parseMetaProperty(node, meta, "target"); - if (!this.scope.inNonArrowFunction && !this.scope.inClass && !this.options.allowNewTargetOutsideFunction) { - this.raise(Errors.UnexpectedNewTarget, { - at: metaProp - }); - } - return metaProp; - } - return this.parseNew(node); - } - parseNew(node) { - this.parseNewCallee(node); - if (this.eat(10)) { - const args = this.parseExprList(11); - this.toReferencedList(args); - node.arguments = args; - } else { - node.arguments = []; - } - return this.finishNode(node, "NewExpression"); - } - parseNewCallee(node) { - node.callee = this.parseNoCallExpr(); - if (node.callee.type === "Import") { - this.raise(Errors.ImportCallNotNewExpression, { - at: node.callee - }); - } - } - parseTemplateElement(isTagged) { - const { - start, - startLoc, - end, - value - } = this.state; - const elemStart = start + 1; - const elem = this.startNodeAt(createPositionWithColumnOffset(startLoc, 1)); - if (value === null) { - if (!isTagged) { - this.raise(Errors.InvalidEscapeSequenceTemplate, { - at: createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos, 1) - }); - } - } - const isTail = this.match(24); - const endOffset = isTail ? -1 : -2; - const elemEnd = end + endOffset; - elem.value = { - raw: this.input.slice(elemStart, elemEnd).replace(/\r\n?/g, "\n"), - cooked: value === null ? null : value.slice(1, endOffset) - }; - elem.tail = isTail; - this.next(); - const finishedNode = this.finishNode(elem, "TemplateElement"); - this.resetEndLocation(finishedNode, createPositionWithColumnOffset(this.state.lastTokEndLoc, endOffset)); - return finishedNode; - } - parseTemplate(isTagged) { - const node = this.startNode(); - node.expressions = []; - let curElt = this.parseTemplateElement(isTagged); - node.quasis = [curElt]; - while (!curElt.tail) { - node.expressions.push(this.parseTemplateSubstitution()); - this.readTemplateContinuation(); - node.quasis.push(curElt = this.parseTemplateElement(isTagged)); - } - return this.finishNode(node, "TemplateLiteral"); - } - parseTemplateSubstitution() { - return this.parseExpression(); - } - parseObjectLike(close, isPattern, isRecord, refExpressionErrors) { - if (isRecord) { - this.expectPlugin("recordAndTuple"); - } - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = false; - const propHash = Object.create(null); - let first = true; - const node = this.startNode(); - node.properties = []; - this.next(); - while (!this.match(close)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.match(close)) { - this.addTrailingCommaExtraToNode(node); - break; - } - } - let prop; - if (isPattern) { - prop = this.parseBindingProperty(); - } else { - prop = this.parsePropertyDefinition(refExpressionErrors); - this.checkProto(prop, isRecord, propHash, refExpressionErrors); - } - if (isRecord && !this.isObjectProperty(prop) && prop.type !== "SpreadElement") { - this.raise(Errors.InvalidRecordProperty, { - at: prop - }); - } - if (prop.shorthand) { - this.addExtra(prop, "shorthand", true); - } - node.properties.push(prop); - } - this.next(); - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - let type = "ObjectExpression"; - if (isPattern) { - type = "ObjectPattern"; - } else if (isRecord) { - type = "RecordExpression"; - } - return this.finishNode(node, type); - } - addTrailingCommaExtraToNode(node) { - this.addExtra(node, "trailingComma", this.state.lastTokStart); - this.addExtra(node, "trailingCommaLoc", this.state.lastTokStartLoc, false); - } - maybeAsyncOrAccessorProp(prop) { - return !prop.computed && prop.key.type === "Identifier" && (this.isLiteralPropertyName() || this.match(0) || this.match(55)); - } - parsePropertyDefinition(refExpressionErrors) { - let decorators = []; - if (this.match(26)) { - if (this.hasPlugin("decorators")) { - this.raise(Errors.UnsupportedPropertyDecorator, { - at: this.state.startLoc - }); - } - while (this.match(26)) { - decorators.push(this.parseDecorator()); - } - } - const prop = this.startNode(); - let isAsync = false; - let isAccessor = false; - let startLoc; - if (this.match(21)) { - if (decorators.length) this.unexpected(); - return this.parseSpread(); - } - if (decorators.length) { - prop.decorators = decorators; - decorators = []; - } - prop.method = false; - if (refExpressionErrors) { - startLoc = this.state.startLoc; - } - let isGenerator = this.eat(55); - this.parsePropertyNamePrefixOperator(prop); - const containsEsc = this.state.containsEsc; - const key = this.parsePropertyName(prop, refExpressionErrors); - if (!isGenerator && !containsEsc && this.maybeAsyncOrAccessorProp(prop)) { - const keyName = key.name; - if (keyName === "async" && !this.hasPrecedingLineBreak()) { - isAsync = true; - this.resetPreviousNodeTrailingComments(key); - isGenerator = this.eat(55); - this.parsePropertyName(prop); - } - if (keyName === "get" || keyName === "set") { - isAccessor = true; - this.resetPreviousNodeTrailingComments(key); - prop.kind = keyName; - if (this.match(55)) { - isGenerator = true; - this.raise(Errors.AccessorIsGenerator, { - at: this.state.curPosition(), - kind: keyName - }); - this.next(); - } - this.parsePropertyName(prop); - } - } - return this.parseObjPropValue(prop, startLoc, isGenerator, isAsync, false, isAccessor, refExpressionErrors); - } - getGetterSetterExpectedParamCount(method) { - return method.kind === "get" ? 0 : 1; - } - getObjectOrClassMethodParams(method) { - return method.params; - } - checkGetterSetterParams(method) { - var _params; - const paramCount = this.getGetterSetterExpectedParamCount(method); - const params = this.getObjectOrClassMethodParams(method); - if (params.length !== paramCount) { - this.raise(method.kind === "get" ? Errors.BadGetterArity : Errors.BadSetterArity, { - at: method - }); - } - if (method.kind === "set" && ((_params = params[params.length - 1]) == null ? void 0 : _params.type) === "RestElement") { - this.raise(Errors.BadSetterRestParameter, { - at: method - }); - } - } - parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) { - if (isAccessor) { - const finishedProp = this.parseMethod(prop, isGenerator, false, false, false, "ObjectMethod"); - this.checkGetterSetterParams(finishedProp); - return finishedProp; - } - if (isAsync || isGenerator || this.match(10)) { - if (isPattern) this.unexpected(); - prop.kind = "method"; - prop.method = true; - return this.parseMethod(prop, isGenerator, isAsync, false, false, "ObjectMethod"); - } - } - parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors) { - prop.shorthand = false; - if (this.eat(14)) { - prop.value = isPattern ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(refExpressionErrors); - return this.finishNode(prop, "ObjectProperty"); - } - if (!prop.computed && prop.key.type === "Identifier") { - this.checkReservedWord(prop.key.name, prop.key.loc.start, true, false); - if (isPattern) { - prop.value = this.parseMaybeDefault(startLoc, cloneIdentifier(prop.key)); - } else if (this.match(29)) { - const shorthandAssignLoc = this.state.startLoc; - if (refExpressionErrors != null) { - if (refExpressionErrors.shorthandAssignLoc === null) { - refExpressionErrors.shorthandAssignLoc = shorthandAssignLoc; - } - } else { - this.raise(Errors.InvalidCoverInitializedName, { - at: shorthandAssignLoc - }); - } - prop.value = this.parseMaybeDefault(startLoc, cloneIdentifier(prop.key)); - } else { - prop.value = cloneIdentifier(prop.key); - } - prop.shorthand = true; - return this.finishNode(prop, "ObjectProperty"); - } - } - parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { - const node = this.parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) || this.parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors); - if (!node) this.unexpected(); - return node; - } - parsePropertyName(prop, refExpressionErrors) { - if (this.eat(0)) { - prop.computed = true; - prop.key = this.parseMaybeAssignAllowIn(); - this.expect(3); - } else { - const { - type, - value - } = this.state; - let key; - if (tokenIsKeywordOrIdentifier(type)) { - key = this.parseIdentifier(true); - } else { - switch (type) { - case 132: - key = this.parseNumericLiteral(value); - break; - case 131: - key = this.parseStringLiteral(value); - break; - case 133: - key = this.parseBigIntLiteral(value); - break; - case 134: - key = this.parseDecimalLiteral(value); - break; - case 136: - { - const privateKeyLoc = this.state.startLoc; - if (refExpressionErrors != null) { - if (refExpressionErrors.privateKeyLoc === null) { - refExpressionErrors.privateKeyLoc = privateKeyLoc; - } - } else { - this.raise(Errors.UnexpectedPrivateField, { - at: privateKeyLoc - }); - } - key = this.parsePrivateName(); - break; - } - default: - this.unexpected(); - } - } - prop.key = key; - if (type !== 136) { - prop.computed = false; - } - } - return prop.key; - } - initFunction(node, isAsync) { - node.id = null; - node.generator = false; - node.async = isAsync; - } - parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) { - this.initFunction(node, isAsync); - node.generator = isGenerator; - this.scope.enter(SCOPE_FUNCTION | SCOPE_SUPER | (inClassScope ? SCOPE_CLASS : 0) | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0)); - this.prodParam.enter(functionFlags(isAsync, node.generator)); - this.parseFunctionParams(node, isConstructor); - const finishedNode = this.parseFunctionBodyAndFinish(node, type, true); - this.prodParam.exit(); - this.scope.exit(); - return finishedNode; - } - parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { - if (isTuple) { - this.expectPlugin("recordAndTuple"); - } - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = false; - const node = this.startNode(); - this.next(); - node.elements = this.parseExprList(close, !isTuple, refExpressionErrors, node); - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - return this.finishNode(node, isTuple ? "TupleExpression" : "ArrayExpression"); - } - parseArrowExpression(node, params, isAsync, trailingCommaLoc) { - this.scope.enter(SCOPE_FUNCTION | SCOPE_ARROW); - let flags = functionFlags(isAsync, false); - if (!this.match(5) && this.prodParam.hasIn) { - flags |= PARAM_IN; - } - this.prodParam.enter(flags); - this.initFunction(node, isAsync); - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - if (params) { - this.state.maybeInArrowParameters = true; - this.setArrowFunctionParameters(node, params, trailingCommaLoc); - } - this.state.maybeInArrowParameters = false; - this.parseFunctionBody(node, true); - this.prodParam.exit(); - this.scope.exit(); - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - return this.finishNode(node, "ArrowFunctionExpression"); - } - setArrowFunctionParameters(node, params, trailingCommaLoc) { - this.toAssignableList(params, trailingCommaLoc, false); - node.params = params; - } - parseFunctionBodyAndFinish(node, type, isMethod = false) { - this.parseFunctionBody(node, false, isMethod); - return this.finishNode(node, type); - } - parseFunctionBody(node, allowExpression, isMethod = false) { - const isExpression = allowExpression && !this.match(5); - this.expressionScope.enter(newExpressionScope()); - if (isExpression) { - node.body = this.parseMaybeAssign(); - this.checkParams(node, false, allowExpression, false); - } else { - const oldStrict = this.state.strict; - const oldLabels = this.state.labels; - this.state.labels = []; - this.prodParam.enter(this.prodParam.currentFlags() | PARAM_RETURN); - node.body = this.parseBlock(true, false, hasStrictModeDirective => { - const nonSimple = !this.isSimpleParamList(node.params); - if (hasStrictModeDirective && nonSimple) { - this.raise(Errors.IllegalLanguageModeDirective, { - at: (node.kind === "method" || node.kind === "constructor") && !!node.key ? node.key.loc.end : node - }); - } - const strictModeChanged = !oldStrict && this.state.strict; - this.checkParams(node, !this.state.strict && !allowExpression && !isMethod && !nonSimple, allowExpression, strictModeChanged); - if (this.state.strict && node.id) { - this.checkIdentifier(node.id, BIND_OUTSIDE, strictModeChanged); - } - }); - this.prodParam.exit(); - this.state.labels = oldLabels; - } - this.expressionScope.exit(); - } - isSimpleParameter(node) { - return node.type === "Identifier"; - } - isSimpleParamList(params) { - for (let i = 0, len = params.length; i < len; i++) { - if (!this.isSimpleParameter(params[i])) return false; - } - return true; - } - checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged = true) { - const checkClashes = !allowDuplicates && new Set(); - const formalParameters = { - type: "FormalParameters" - }; - for (const param of node.params) { - this.checkLVal(param, { - in: formalParameters, - binding: BIND_VAR, - checkClashes, - strictModeChanged - }); - } - } - parseExprList(close, allowEmpty, refExpressionErrors, nodeForExtra) { - const elts = []; - let first = true; - while (!this.eat(close)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.match(close)) { - if (nodeForExtra) { - this.addTrailingCommaExtraToNode(nodeForExtra); - } - this.next(); - break; - } - } - elts.push(this.parseExprListItem(allowEmpty, refExpressionErrors)); - } - return elts; - } - parseExprListItem(allowEmpty, refExpressionErrors, allowPlaceholder) { - let elt; - if (this.match(12)) { - if (!allowEmpty) { - this.raise(Errors.UnexpectedToken, { - at: this.state.curPosition(), - unexpected: "," - }); - } - elt = null; - } else if (this.match(21)) { - const spreadNodeStartLoc = this.state.startLoc; - elt = this.parseParenItem(this.parseSpread(refExpressionErrors), spreadNodeStartLoc); - } else if (this.match(17)) { - this.expectPlugin("partialApplication"); - if (!allowPlaceholder) { - this.raise(Errors.UnexpectedArgumentPlaceholder, { - at: this.state.startLoc - }); - } - const node = this.startNode(); - this.next(); - elt = this.finishNode(node, "ArgumentPlaceholder"); - } else { - elt = this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem); - } - return elt; - } - parseIdentifier(liberal) { - const node = this.startNode(); - const name = this.parseIdentifierName(liberal); - return this.createIdentifier(node, name); - } - createIdentifier(node, name) { - node.name = name; - node.loc.identifierName = name; - return this.finishNode(node, "Identifier"); - } - parseIdentifierName(liberal) { - let name; - const { - startLoc, - type - } = this.state; - if (tokenIsKeywordOrIdentifier(type)) { - name = this.state.value; - } else { - this.unexpected(); - } - const tokenIsKeyword = tokenKeywordOrIdentifierIsKeyword(type); - if (liberal) { - if (tokenIsKeyword) { - this.replaceToken(130); - } - } else { - this.checkReservedWord(name, startLoc, tokenIsKeyword, false); - } - this.next(); - return name; - } - checkReservedWord(word, startLoc, checkKeywords, isBinding) { - if (word.length > 10) { - return; - } - if (!canBeReservedWord(word)) { - return; - } - if (checkKeywords && isKeyword(word)) { - this.raise(Errors.UnexpectedKeyword, { - at: startLoc, - keyword: word - }); - return; - } - const reservedTest = !this.state.strict ? isReservedWord : isBinding ? isStrictBindReservedWord : isStrictReservedWord; - if (reservedTest(word, this.inModule)) { - this.raise(Errors.UnexpectedReservedWord, { - at: startLoc, - reservedWord: word - }); - return; - } else if (word === "yield") { - if (this.prodParam.hasYield) { - this.raise(Errors.YieldBindingIdentifier, { - at: startLoc - }); - return; - } - } else if (word === "await") { - if (this.prodParam.hasAwait) { - this.raise(Errors.AwaitBindingIdentifier, { - at: startLoc - }); - return; - } - if (this.scope.inStaticBlock) { - this.raise(Errors.AwaitBindingIdentifierInStaticBlock, { - at: startLoc - }); - return; - } - this.expressionScope.recordAsyncArrowParametersError({ - at: startLoc - }); - } else if (word === "arguments") { - if (this.scope.inClassAndNotInNonArrowFunction) { - this.raise(Errors.ArgumentsInClass, { - at: startLoc - }); - return; - } - } - } - isAwaitAllowed() { - if (this.prodParam.hasAwait) return true; - if (this.options.allowAwaitOutsideFunction && !this.scope.inFunction) { - return true; - } - return false; - } - parseAwait(startLoc) { - const node = this.startNodeAt(startLoc); - this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, { - at: node - }); - if (this.eat(55)) { - this.raise(Errors.ObsoleteAwaitStar, { - at: node - }); - } - if (!this.scope.inFunction && !this.options.allowAwaitOutsideFunction) { - if (this.isAmbiguousAwait()) { - this.ambiguousScriptDifferentAst = true; - } else { - this.sawUnambiguousESM = true; - } - } - if (!this.state.soloAwait) { - node.argument = this.parseMaybeUnary(null, true); - } - return this.finishNode(node, "AwaitExpression"); - } - isAmbiguousAwait() { - if (this.hasPrecedingLineBreak()) return true; - const { - type - } = this.state; - return type === 53 || type === 10 || type === 0 || tokenIsTemplate(type) || type === 101 && !this.state.containsEsc || type === 135 || type === 56 || this.hasPlugin("v8intrinsic") && type === 54; - } - parseYield() { - const node = this.startNode(); - this.expressionScope.recordParameterInitializerError(Errors.YieldInParameter, { - at: node - }); - this.next(); - let delegating = false; - let argument = null; - if (!this.hasPrecedingLineBreak()) { - delegating = this.eat(55); - switch (this.state.type) { - case 13: - case 137: - case 8: - case 11: - case 3: - case 9: - case 14: - case 12: - if (!delegating) break; - default: - argument = this.parseMaybeAssign(); - } - } - node.delegate = delegating; - node.argument = argument; - return this.finishNode(node, "YieldExpression"); - } - checkPipelineAtInfixOperator(left, leftStartLoc) { - if (this.hasPlugin(["pipelineOperator", { - proposal: "smart" - }])) { - if (left.type === "SequenceExpression") { - this.raise(Errors.PipelineHeadSequenceExpression, { - at: leftStartLoc - }); - } - } - } - parseSmartPipelineBodyInStyle(childExpr, startLoc) { - if (this.isSimpleReference(childExpr)) { - const bodyNode = this.startNodeAt(startLoc); - bodyNode.callee = childExpr; - return this.finishNode(bodyNode, "PipelineBareFunction"); - } else { - const bodyNode = this.startNodeAt(startLoc); - this.checkSmartPipeTopicBodyEarlyErrors(startLoc); - bodyNode.expression = childExpr; - return this.finishNode(bodyNode, "PipelineTopicExpression"); - } - } - isSimpleReference(expression) { - switch (expression.type) { - case "MemberExpression": - return !expression.computed && this.isSimpleReference(expression.object); - case "Identifier": - return true; - default: - return false; - } - } - checkSmartPipeTopicBodyEarlyErrors(startLoc) { - if (this.match(19)) { - throw this.raise(Errors.PipelineBodyNoArrow, { - at: this.state.startLoc - }); - } - if (!this.topicReferenceWasUsedInCurrentContext()) { - this.raise(Errors.PipelineTopicUnused, { - at: startLoc - }); - } - } - withTopicBindingContext(callback) { - const outerContextTopicState = this.state.topicContext; - this.state.topicContext = { - maxNumOfResolvableTopics: 1, - maxTopicIndex: null - }; - try { - return callback(); - } finally { - this.state.topicContext = outerContextTopicState; - } - } - withSmartMixTopicForbiddingContext(callback) { - if (this.hasPlugin(["pipelineOperator", { - proposal: "smart" - }])) { - const outerContextTopicState = this.state.topicContext; - this.state.topicContext = { - maxNumOfResolvableTopics: 0, - maxTopicIndex: null - }; - try { - return callback(); - } finally { - this.state.topicContext = outerContextTopicState; - } - } else { - return callback(); - } - } - withSoloAwaitPermittingContext(callback) { - const outerContextSoloAwaitState = this.state.soloAwait; - this.state.soloAwait = true; - try { - return callback(); - } finally { - this.state.soloAwait = outerContextSoloAwaitState; - } - } - allowInAnd(callback) { - const flags = this.prodParam.currentFlags(); - const prodParamToSet = PARAM_IN & ~flags; - if (prodParamToSet) { - this.prodParam.enter(flags | PARAM_IN); - try { - return callback(); - } finally { - this.prodParam.exit(); - } - } - return callback(); - } - disallowInAnd(callback) { - const flags = this.prodParam.currentFlags(); - const prodParamToClear = PARAM_IN & flags; - if (prodParamToClear) { - this.prodParam.enter(flags & ~PARAM_IN); - try { - return callback(); - } finally { - this.prodParam.exit(); - } - } - return callback(); - } - registerTopicReference() { - this.state.topicContext.maxTopicIndex = 0; - } - topicReferenceIsAllowedInCurrentContext() { - return this.state.topicContext.maxNumOfResolvableTopics >= 1; - } - topicReferenceWasUsedInCurrentContext() { - return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0; - } - parseFSharpPipelineBody(prec) { - const startLoc = this.state.startLoc; - this.state.potentialArrowAt = this.state.start; - const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; - this.state.inFSharpPipelineDirectBody = true; - const ret = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, prec); - this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; - return ret; - } - parseModuleExpression() { - this.expectPlugin("moduleBlocks"); - const node = this.startNode(); - this.next(); - if (!this.match(5)) { - this.unexpected(null, 5); - } - const program = this.startNodeAt(this.state.endLoc); - this.next(); - const revertScopes = this.initializeScopes(true); - this.enterInitialScopes(); - try { - node.body = this.parseProgram(program, 8, "module"); - } finally { - revertScopes(); - } - return this.finishNode(node, "ModuleExpression"); - } - parsePropertyNamePrefixOperator(prop) {} -} -const loopLabel = { - kind: "loop" - }, - switchLabel = { - kind: "switch" - }; -const loneSurrogate = /[\uD800-\uDFFF]/u; -const keywordRelationalOperator = /in(?:stanceof)?/y; -function babel7CompatTokens(tokens, input) { - for (let i = 0; i < tokens.length; i++) { - const token = tokens[i]; - const { - type - } = token; - if (typeof type === "number") { - { - if (type === 136) { - const { - loc, - start, - value, - end - } = token; - const hashEndPos = start + 1; - const hashEndLoc = createPositionWithColumnOffset(loc.start, 1); - tokens.splice(i, 1, new Token({ - type: getExportedToken(27), - value: "#", - start: start, - end: hashEndPos, - startLoc: loc.start, - endLoc: hashEndLoc - }), new Token({ - type: getExportedToken(130), - value: value, - start: hashEndPos, - end: end, - startLoc: hashEndLoc, - endLoc: loc.end - })); - i++; - continue; - } - if (tokenIsTemplate(type)) { - const { - loc, - start, - value, - end - } = token; - const backquoteEnd = start + 1; - const backquoteEndLoc = createPositionWithColumnOffset(loc.start, 1); - let startToken; - if (input.charCodeAt(start) === 96) { - startToken = new Token({ - type: getExportedToken(22), - value: "`", - start: start, - end: backquoteEnd, - startLoc: loc.start, - endLoc: backquoteEndLoc - }); - } else { - startToken = new Token({ - type: getExportedToken(8), - value: "}", - start: start, - end: backquoteEnd, - startLoc: loc.start, - endLoc: backquoteEndLoc - }); - } - let templateValue, templateElementEnd, templateElementEndLoc, endToken; - if (type === 24) { - templateElementEnd = end - 1; - templateElementEndLoc = createPositionWithColumnOffset(loc.end, -1); - templateValue = value === null ? null : value.slice(1, -1); - endToken = new Token({ - type: getExportedToken(22), - value: "`", - start: templateElementEnd, - end: end, - startLoc: templateElementEndLoc, - endLoc: loc.end - }); - } else { - templateElementEnd = end - 2; - templateElementEndLoc = createPositionWithColumnOffset(loc.end, -2); - templateValue = value === null ? null : value.slice(1, -2); - endToken = new Token({ - type: getExportedToken(23), - value: "${", - start: templateElementEnd, - end: end, - startLoc: templateElementEndLoc, - endLoc: loc.end - }); - } - tokens.splice(i, 1, startToken, new Token({ - type: getExportedToken(20), - value: templateValue, - start: backquoteEnd, - end: templateElementEnd, - startLoc: backquoteEndLoc, - endLoc: templateElementEndLoc - }), endToken); - i += 2; - continue; - } - } - token.type = getExportedToken(type); - } - } - return tokens; -} -class StatementParser extends ExpressionParser { - parseTopLevel(file, program) { - file.program = this.parseProgram(program); - file.comments = this.state.comments; - if (this.options.tokens) { - file.tokens = babel7CompatTokens(this.tokens, this.input); - } - return this.finishNode(file, "File"); - } - parseProgram(program, end = 137, sourceType = this.options.sourceType) { - program.sourceType = sourceType; - program.interpreter = this.parseInterpreterDirective(); - this.parseBlockBody(program, true, true, end); - if (this.inModule && !this.options.allowUndeclaredExports && this.scope.undefinedExports.size > 0) { - for (const [localName, at] of Array.from(this.scope.undefinedExports)) { - this.raise(Errors.ModuleExportUndefined, { - at, - localName - }); - } - } - let finishedProgram; - if (end === 137) { - finishedProgram = this.finishNode(program, "Program"); - } else { - finishedProgram = this.finishNodeAt(program, "Program", createPositionWithColumnOffset(this.state.startLoc, -1)); - } - return finishedProgram; - } - stmtToDirective(stmt) { - const directive = stmt; - directive.type = "Directive"; - directive.value = directive.expression; - delete directive.expression; - const directiveLiteral = directive.value; - const expressionValue = directiveLiteral.value; - const raw = this.input.slice(directiveLiteral.start, directiveLiteral.end); - const val = directiveLiteral.value = raw.slice(1, -1); - this.addExtra(directiveLiteral, "raw", raw); - this.addExtra(directiveLiteral, "rawValue", val); - this.addExtra(directiveLiteral, "expressionValue", expressionValue); - directiveLiteral.type = "DirectiveLiteral"; - return directive; - } - parseInterpreterDirective() { - if (!this.match(28)) { - return null; - } - const node = this.startNode(); - node.value = this.state.value; - this.next(); - return this.finishNode(node, "InterpreterDirective"); - } - isLet() { - if (!this.isContextual(99)) { - return false; - } - return this.hasFollowingBindingAtom(); - } - chStartsBindingIdentifier(ch, pos) { - if (isIdentifierStart(ch)) { - keywordRelationalOperator.lastIndex = pos; - if (keywordRelationalOperator.test(this.input)) { - const endCh = this.codePointAtPos(keywordRelationalOperator.lastIndex); - if (!isIdentifierChar(endCh) && endCh !== 92) { - return false; - } - } - return true; - } else if (ch === 92) { - return true; - } else { - return false; - } - } - chStartsBindingPattern(ch) { - return ch === 91 || ch === 123; - } - hasFollowingBindingAtom() { - const next = this.nextTokenStart(); - const nextCh = this.codePointAtPos(next); - return this.chStartsBindingPattern(nextCh) || this.chStartsBindingIdentifier(nextCh, next); - } - hasInLineFollowingBindingIdentifier() { - const next = this.nextTokenInLineStart(); - const nextCh = this.codePointAtPos(next); - return this.chStartsBindingIdentifier(nextCh, next); - } - startsUsingForOf() { - const { - type, - containsEsc - } = this.lookahead(); - if (type === 101 && !containsEsc) { - return false; - } else if (tokenIsIdentifier(type) && !this.hasFollowingLineBreak()) { - this.expectPlugin("explicitResourceManagement"); - return true; - } - } - startsAwaitUsing() { - let next = this.nextTokenInLineStart(); - if (this.isUnparsedContextual(next, "using")) { - next = this.nextTokenInLineStartSince(next + 5); - const nextCh = this.codePointAtPos(next); - if (this.chStartsBindingIdentifier(nextCh, next)) { - this.expectPlugin("explicitResourceManagement"); - return true; - } - } - return false; - } - parseModuleItem() { - return this.parseStatementLike(1 | 2 | 4 | 8); - } - parseStatementListItem() { - return this.parseStatementLike(2 | 4 | (!this.options.annexB || this.state.strict ? 0 : 8)); - } - parseStatementOrSloppyAnnexBFunctionDeclaration(allowLabeledFunction = false) { - let flags = 0; - if (this.options.annexB && !this.state.strict) { - flags |= 4; - if (allowLabeledFunction) { - flags |= 8; - } - } - return this.parseStatementLike(flags); - } - parseStatement() { - return this.parseStatementLike(0); - } - parseStatementLike(flags) { - let decorators = null; - if (this.match(26)) { - decorators = this.parseDecorators(true); - } - return this.parseStatementContent(flags, decorators); - } - parseStatementContent(flags, decorators) { - const starttype = this.state.type; - const node = this.startNode(); - const allowDeclaration = !!(flags & 2); - const allowFunctionDeclaration = !!(flags & 4); - const topLevel = flags & 1; - switch (starttype) { - case 60: - return this.parseBreakContinueStatement(node, true); - case 63: - return this.parseBreakContinueStatement(node, false); - case 64: - return this.parseDebuggerStatement(node); - case 90: - return this.parseDoWhileStatement(node); - case 91: - return this.parseForStatement(node); - case 68: - if (this.lookaheadCharCode() === 46) break; - if (!allowFunctionDeclaration) { - this.raise(this.state.strict ? Errors.StrictFunction : this.options.annexB ? Errors.SloppyFunctionAnnexB : Errors.SloppyFunction, { - at: this.state.startLoc - }); - } - return this.parseFunctionStatement(node, false, !allowDeclaration && allowFunctionDeclaration); - case 80: - if (!allowDeclaration) this.unexpected(); - return this.parseClass(this.maybeTakeDecorators(decorators, node), true); - case 69: - return this.parseIfStatement(node); - case 70: - return this.parseReturnStatement(node); - case 71: - return this.parseSwitchStatement(node); - case 72: - return this.parseThrowStatement(node); - case 73: - return this.parseTryStatement(node); - case 96: - if (!this.state.containsEsc && this.startsAwaitUsing()) { - if (!this.isAwaitAllowed()) { - this.raise(Errors.AwaitUsingNotInAsyncContext, { - at: node - }); - } else if (!allowDeclaration) { - this.raise(Errors.UnexpectedLexicalDeclaration, { - at: node - }); - } - this.next(); - return this.parseVarStatement(node, "await using"); - } - break; - case 105: - if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifier()) { - break; - } - this.expectPlugin("explicitResourceManagement"); - if (!this.scope.inModule && this.scope.inTopLevel) { - this.raise(Errors.UnexpectedUsingDeclaration, { - at: this.state.startLoc - }); - } else if (!allowDeclaration) { - this.raise(Errors.UnexpectedLexicalDeclaration, { - at: this.state.startLoc - }); - } - return this.parseVarStatement(node, "using"); - case 99: - { - if (this.state.containsEsc) { - break; - } - const next = this.nextTokenStart(); - const nextCh = this.codePointAtPos(next); - if (nextCh !== 91) { - if (!allowDeclaration && this.hasFollowingLineBreak()) break; - if (!this.chStartsBindingIdentifier(nextCh, next) && nextCh !== 123) { - break; - } - } - } - case 75: - { - if (!allowDeclaration) { - this.raise(Errors.UnexpectedLexicalDeclaration, { - at: this.state.startLoc - }); - } - } - case 74: - { - const kind = this.state.value; - return this.parseVarStatement(node, kind); - } - case 92: - return this.parseWhileStatement(node); - case 76: - return this.parseWithStatement(node); - case 5: - return this.parseBlock(); - case 13: - return this.parseEmptyStatement(node); - case 83: - { - const nextTokenCharCode = this.lookaheadCharCode(); - if (nextTokenCharCode === 40 || nextTokenCharCode === 46) { - break; - } - } - case 82: - { - if (!this.options.allowImportExportEverywhere && !topLevel) { - this.raise(Errors.UnexpectedImportExport, { - at: this.state.startLoc - }); - } - this.next(); - let result; - if (starttype === 83) { - result = this.parseImport(node); - if (result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value")) { - this.sawUnambiguousESM = true; - } - } else { - result = this.parseExport(node, decorators); - if (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") { - this.sawUnambiguousESM = true; - } - } - this.assertModuleNodeAllowed(result); - return result; - } - default: - { - if (this.isAsyncFunction()) { - if (!allowDeclaration) { - this.raise(Errors.AsyncFunctionInSingleStatementContext, { - at: this.state.startLoc - }); - } - this.next(); - return this.parseFunctionStatement(node, true, !allowDeclaration && allowFunctionDeclaration); - } - } - } - const maybeName = this.state.value; - const expr = this.parseExpression(); - if (tokenIsIdentifier(starttype) && expr.type === "Identifier" && this.eat(14)) { - return this.parseLabeledStatement(node, maybeName, expr, flags); - } else { - return this.parseExpressionStatement(node, expr, decorators); - } - } - assertModuleNodeAllowed(node) { - if (!this.options.allowImportExportEverywhere && !this.inModule) { - this.raise(Errors.ImportOutsideModule, { - at: node - }); - } - } - decoratorsEnabledBeforeExport() { - if (this.hasPlugin("decorators-legacy")) return true; - return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") !== false; - } - maybeTakeDecorators(maybeDecorators, classNode, exportNode) { - if (maybeDecorators) { - if (classNode.decorators && classNode.decorators.length > 0) { - if (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") !== "boolean") { - this.raise(Errors.DecoratorsBeforeAfterExport, { - at: classNode.decorators[0] - }); - } - classNode.decorators.unshift(...maybeDecorators); - } else { - classNode.decorators = maybeDecorators; - } - this.resetStartLocationFromNode(classNode, maybeDecorators[0]); - if (exportNode) this.resetStartLocationFromNode(exportNode, classNode); - } - return classNode; - } - canHaveLeadingDecorator() { - return this.match(80); - } - parseDecorators(allowExport) { - const decorators = []; - do { - decorators.push(this.parseDecorator()); - } while (this.match(26)); - if (this.match(82)) { - if (!allowExport) { - this.unexpected(); - } - if (!this.decoratorsEnabledBeforeExport()) { - this.raise(Errors.DecoratorExportClass, { - at: this.state.startLoc - }); - } - } else if (!this.canHaveLeadingDecorator()) { - throw this.raise(Errors.UnexpectedLeadingDecorator, { - at: this.state.startLoc - }); - } - return decorators; - } - parseDecorator() { - this.expectOnePlugin(["decorators", "decorators-legacy"]); - const node = this.startNode(); - this.next(); - if (this.hasPlugin("decorators")) { - const startLoc = this.state.startLoc; - let expr; - if (this.match(10)) { - const startLoc = this.state.startLoc; - this.next(); - expr = this.parseExpression(); - this.expect(11); - expr = this.wrapParenthesis(startLoc, expr); - const paramsStartLoc = this.state.startLoc; - node.expression = this.parseMaybeDecoratorArguments(expr); - if (this.getPluginOption("decorators", "allowCallParenthesized") === false && node.expression !== expr) { - this.raise(Errors.DecoratorArgumentsOutsideParentheses, { - at: paramsStartLoc - }); - } - } else { - expr = this.parseIdentifier(false); - while (this.eat(16)) { - const node = this.startNodeAt(startLoc); - node.object = expr; - if (this.match(136)) { - this.classScope.usePrivateName(this.state.value, this.state.startLoc); - node.property = this.parsePrivateName(); - } else { - node.property = this.parseIdentifier(true); - } - node.computed = false; - expr = this.finishNode(node, "MemberExpression"); - } - node.expression = this.parseMaybeDecoratorArguments(expr); - } - } else { - node.expression = this.parseExprSubscripts(); - } - return this.finishNode(node, "Decorator"); - } - parseMaybeDecoratorArguments(expr) { - if (this.eat(10)) { - const node = this.startNodeAtNode(expr); - node.callee = expr; - node.arguments = this.parseCallExpressionArguments(11, false); - this.toReferencedList(node.arguments); - return this.finishNode(node, "CallExpression"); - } - return expr; - } - parseBreakContinueStatement(node, isBreak) { - this.next(); - if (this.isLineTerminator()) { - node.label = null; - } else { - node.label = this.parseIdentifier(); - this.semicolon(); - } - this.verifyBreakContinue(node, isBreak); - return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement"); - } - verifyBreakContinue(node, isBreak) { - let i; - for (i = 0; i < this.state.labels.length; ++i) { - const lab = this.state.labels[i]; - if (node.label == null || lab.name === node.label.name) { - if (lab.kind != null && (isBreak || lab.kind === "loop")) break; - if (node.label && isBreak) break; - } - } - if (i === this.state.labels.length) { - const type = isBreak ? "BreakStatement" : "ContinueStatement"; - this.raise(Errors.IllegalBreakContinue, { - at: node, - type - }); - } - } - parseDebuggerStatement(node) { - this.next(); - this.semicolon(); - return this.finishNode(node, "DebuggerStatement"); - } - parseHeaderExpression() { - this.expect(10); - const val = this.parseExpression(); - this.expect(11); - return val; - } - parseDoWhileStatement(node) { - this.next(); - this.state.labels.push(loopLabel); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.state.labels.pop(); - this.expect(92); - node.test = this.parseHeaderExpression(); - this.eat(13); - return this.finishNode(node, "DoWhileStatement"); - } - parseForStatement(node) { - this.next(); - this.state.labels.push(loopLabel); - let awaitAt = null; - if (this.isAwaitAllowed() && this.eatContextual(96)) { - awaitAt = this.state.lastTokStartLoc; - } - this.scope.enter(SCOPE_OTHER); - this.expect(10); - if (this.match(13)) { - if (awaitAt !== null) { - this.unexpected(awaitAt); - } - return this.parseFor(node, null); - } - const startsWithLet = this.isContextual(99); - { - const startsWithAwaitUsing = this.isContextual(96) && this.startsAwaitUsing(); - const starsWithUsingDeclaration = startsWithAwaitUsing || this.isContextual(105) && this.startsUsingForOf(); - const isLetOrUsing = startsWithLet && this.hasFollowingBindingAtom() || starsWithUsingDeclaration; - if (this.match(74) || this.match(75) || isLetOrUsing) { - const initNode = this.startNode(); - let kind; - if (startsWithAwaitUsing) { - kind = "await using"; - if (!this.isAwaitAllowed()) { - this.raise(Errors.AwaitUsingNotInAsyncContext, { - at: this.state.startLoc - }); - } - this.next(); - } else { - kind = this.state.value; - } - this.next(); - this.parseVar(initNode, true, kind); - const init = this.finishNode(initNode, "VariableDeclaration"); - const isForIn = this.match(58); - if (isForIn && starsWithUsingDeclaration) { - this.raise(Errors.ForInUsing, { - at: init - }); - } - if ((isForIn || this.isContextual(101)) && init.declarations.length === 1) { - return this.parseForIn(node, init, awaitAt); - } - if (awaitAt !== null) { - this.unexpected(awaitAt); - } - return this.parseFor(node, init); - } - } - const startsWithAsync = this.isContextual(95); - const refExpressionErrors = new ExpressionErrors(); - const init = this.parseExpression(true, refExpressionErrors); - const isForOf = this.isContextual(101); - if (isForOf) { - if (startsWithLet) { - this.raise(Errors.ForOfLet, { - at: init - }); - } - if (awaitAt === null && startsWithAsync && init.type === "Identifier") { - this.raise(Errors.ForOfAsync, { - at: init - }); - } - } - if (isForOf || this.match(58)) { - this.checkDestructuringPrivate(refExpressionErrors); - this.toAssignable(init, true); - const type = isForOf ? "ForOfStatement" : "ForInStatement"; - this.checkLVal(init, { - in: { - type - } - }); - return this.parseForIn(node, init, awaitAt); - } else { - this.checkExpressionErrors(refExpressionErrors, true); - } - if (awaitAt !== null) { - this.unexpected(awaitAt); - } - return this.parseFor(node, init); - } - parseFunctionStatement(node, isAsync, isHangingDeclaration) { - this.next(); - return this.parseFunction(node, 1 | (isHangingDeclaration ? 2 : 0) | (isAsync ? 8 : 0)); - } - parseIfStatement(node) { - this.next(); - node.test = this.parseHeaderExpression(); - node.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(); - node.alternate = this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null; - return this.finishNode(node, "IfStatement"); - } - parseReturnStatement(node) { - if (!this.prodParam.hasReturn && !this.options.allowReturnOutsideFunction) { - this.raise(Errors.IllegalReturn, { - at: this.state.startLoc - }); - } - this.next(); - if (this.isLineTerminator()) { - node.argument = null; - } else { - node.argument = this.parseExpression(); - this.semicolon(); - } - return this.finishNode(node, "ReturnStatement"); - } - parseSwitchStatement(node) { - this.next(); - node.discriminant = this.parseHeaderExpression(); - const cases = node.cases = []; - this.expect(5); - this.state.labels.push(switchLabel); - this.scope.enter(SCOPE_OTHER); - let cur; - for (let sawDefault; !this.match(8);) { - if (this.match(61) || this.match(65)) { - const isCase = this.match(61); - if (cur) this.finishNode(cur, "SwitchCase"); - cases.push(cur = this.startNode()); - cur.consequent = []; - this.next(); - if (isCase) { - cur.test = this.parseExpression(); - } else { - if (sawDefault) { - this.raise(Errors.MultipleDefaultsInSwitch, { - at: this.state.lastTokStartLoc - }); - } - sawDefault = true; - cur.test = null; - } - this.expect(14); - } else { - if (cur) { - cur.consequent.push(this.parseStatementListItem()); - } else { - this.unexpected(); - } - } - } - this.scope.exit(); - if (cur) this.finishNode(cur, "SwitchCase"); - this.next(); - this.state.labels.pop(); - return this.finishNode(node, "SwitchStatement"); - } - parseThrowStatement(node) { - this.next(); - if (this.hasPrecedingLineBreak()) { - this.raise(Errors.NewlineAfterThrow, { - at: this.state.lastTokEndLoc - }); - } - node.argument = this.parseExpression(); - this.semicolon(); - return this.finishNode(node, "ThrowStatement"); - } - parseCatchClauseParam() { - const param = this.parseBindingAtom(); - this.scope.enter(this.options.annexB && param.type === "Identifier" ? SCOPE_SIMPLE_CATCH : 0); - this.checkLVal(param, { - in: { - type: "CatchClause" - }, - binding: BIND_CATCH_PARAM - }); - return param; - } - parseTryStatement(node) { - this.next(); - node.block = this.parseBlock(); - node.handler = null; - if (this.match(62)) { - const clause = this.startNode(); - this.next(); - if (this.match(10)) { - this.expect(10); - clause.param = this.parseCatchClauseParam(); - this.expect(11); - } else { - clause.param = null; - this.scope.enter(SCOPE_OTHER); - } - clause.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(false, false)); - this.scope.exit(); - node.handler = this.finishNode(clause, "CatchClause"); - } - node.finalizer = this.eat(67) ? this.parseBlock() : null; - if (!node.handler && !node.finalizer) { - this.raise(Errors.NoCatchOrFinally, { - at: node - }); - } - return this.finishNode(node, "TryStatement"); - } - parseVarStatement(node, kind, allowMissingInitializer = false) { - this.next(); - this.parseVar(node, false, kind, allowMissingInitializer); - this.semicolon(); - return this.finishNode(node, "VariableDeclaration"); - } - parseWhileStatement(node) { - this.next(); - node.test = this.parseHeaderExpression(); - this.state.labels.push(loopLabel); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.state.labels.pop(); - return this.finishNode(node, "WhileStatement"); - } - parseWithStatement(node) { - if (this.state.strict) { - this.raise(Errors.StrictWith, { - at: this.state.startLoc - }); - } - this.next(); - node.object = this.parseHeaderExpression(); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - return this.finishNode(node, "WithStatement"); - } - parseEmptyStatement(node) { - this.next(); - return this.finishNode(node, "EmptyStatement"); - } - parseLabeledStatement(node, maybeName, expr, flags) { - for (const label of this.state.labels) { - if (label.name === maybeName) { - this.raise(Errors.LabelRedeclaration, { - at: expr, - labelName: maybeName - }); - } - } - const kind = tokenIsLoop(this.state.type) ? "loop" : this.match(71) ? "switch" : null; - for (let i = this.state.labels.length - 1; i >= 0; i--) { - const label = this.state.labels[i]; - if (label.statementStart === node.start) { - label.statementStart = this.state.start; - label.kind = kind; - } else { - break; - } - } - this.state.labels.push({ - name: maybeName, - kind: kind, - statementStart: this.state.start - }); - node.body = flags & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(true) : this.parseStatement(); - this.state.labels.pop(); - node.label = expr; - return this.finishNode(node, "LabeledStatement"); - } - parseExpressionStatement(node, expr, decorators) { - node.expression = expr; - this.semicolon(); - return this.finishNode(node, "ExpressionStatement"); - } - parseBlock(allowDirectives = false, createNewLexicalScope = true, afterBlockParse) { - const node = this.startNode(); - if (allowDirectives) { - this.state.strictErrors.clear(); - } - this.expect(5); - if (createNewLexicalScope) { - this.scope.enter(SCOPE_OTHER); - } - this.parseBlockBody(node, allowDirectives, false, 8, afterBlockParse); - if (createNewLexicalScope) { - this.scope.exit(); - } - return this.finishNode(node, "BlockStatement"); - } - isValidDirective(stmt) { - return stmt.type === "ExpressionStatement" && stmt.expression.type === "StringLiteral" && !stmt.expression.extra.parenthesized; - } - parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) { - const body = node.body = []; - const directives = node.directives = []; - this.parseBlockOrModuleBlockBody(body, allowDirectives ? directives : undefined, topLevel, end, afterBlockParse); - } - parseBlockOrModuleBlockBody(body, directives, topLevel, end, afterBlockParse) { - const oldStrict = this.state.strict; - let hasStrictModeDirective = false; - let parsedNonDirective = false; - while (!this.match(end)) { - const stmt = topLevel ? this.parseModuleItem() : this.parseStatementListItem(); - if (directives && !parsedNonDirective) { - if (this.isValidDirective(stmt)) { - const directive = this.stmtToDirective(stmt); - directives.push(directive); - if (!hasStrictModeDirective && directive.value.value === "use strict") { - hasStrictModeDirective = true; - this.setStrict(true); - } - continue; - } - parsedNonDirective = true; - this.state.strictErrors.clear(); - } - body.push(stmt); - } - if (afterBlockParse) { - afterBlockParse.call(this, hasStrictModeDirective); - } - if (!oldStrict) { - this.setStrict(false); - } - this.next(); - } - parseFor(node, init) { - node.init = init; - this.semicolon(false); - node.test = this.match(13) ? null : this.parseExpression(); - this.semicolon(false); - node.update = this.match(11) ? null : this.parseExpression(); - this.expect(11); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.scope.exit(); - this.state.labels.pop(); - return this.finishNode(node, "ForStatement"); - } - parseForIn(node, init, awaitAt) { - const isForIn = this.match(58); - this.next(); - if (isForIn) { - if (awaitAt !== null) this.unexpected(awaitAt); - } else { - node.await = awaitAt !== null; - } - if (init.type === "VariableDeclaration" && init.declarations[0].init != null && (!isForIn || !this.options.annexB || this.state.strict || init.kind !== "var" || init.declarations[0].id.type !== "Identifier")) { - this.raise(Errors.ForInOfLoopInitializer, { - at: init, - type: isForIn ? "ForInStatement" : "ForOfStatement" - }); - } - if (init.type === "AssignmentPattern") { - this.raise(Errors.InvalidLhs, { - at: init, - ancestor: { - type: "ForStatement" - } - }); - } - node.left = init; - node.right = isForIn ? this.parseExpression() : this.parseMaybeAssignAllowIn(); - this.expect(11); - node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); - this.scope.exit(); - this.state.labels.pop(); - return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement"); - } - parseVar(node, isFor, kind, allowMissingInitializer = false) { - const declarations = node.declarations = []; - node.kind = kind; - for (;;) { - const decl = this.startNode(); - this.parseVarId(decl, kind); - decl.init = !this.eat(29) ? null : isFor ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn(); - if (decl.init === null && !allowMissingInitializer) { - if (decl.id.type !== "Identifier" && !(isFor && (this.match(58) || this.isContextual(101)))) { - this.raise(Errors.DeclarationMissingInitializer, { - at: this.state.lastTokEndLoc, - kind: "destructuring" - }); - } else if (kind === "const" && !(this.match(58) || this.isContextual(101))) { - this.raise(Errors.DeclarationMissingInitializer, { - at: this.state.lastTokEndLoc, - kind: "const" - }); - } - } - declarations.push(this.finishNode(decl, "VariableDeclarator")); - if (!this.eat(12)) break; - } - return node; - } - parseVarId(decl, kind) { - const id = this.parseBindingAtom(); - this.checkLVal(id, { - in: { - type: "VariableDeclarator" - }, - binding: kind === "var" ? BIND_VAR : BIND_LEXICAL - }); - decl.id = id; - } - parseAsyncFunctionExpression(node) { - return this.parseFunction(node, 8); - } - parseFunction(node, flags = 0) { - const hangingDeclaration = flags & 2; - const isDeclaration = !!(flags & 1); - const requireId = isDeclaration && !(flags & 4); - const isAsync = !!(flags & 8); - this.initFunction(node, isAsync); - if (this.match(55)) { - if (hangingDeclaration) { - this.raise(Errors.GeneratorInSingleStatementContext, { - at: this.state.startLoc - }); - } - this.next(); - node.generator = true; - } - if (isDeclaration) { - node.id = this.parseFunctionId(requireId); - } - const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; - this.state.maybeInArrowParameters = false; - this.scope.enter(SCOPE_FUNCTION); - this.prodParam.enter(functionFlags(isAsync, node.generator)); - if (!isDeclaration) { - node.id = this.parseFunctionId(); - } - this.parseFunctionParams(node, false); - this.withSmartMixTopicForbiddingContext(() => { - this.parseFunctionBodyAndFinish(node, isDeclaration ? "FunctionDeclaration" : "FunctionExpression"); - }); - this.prodParam.exit(); - this.scope.exit(); - if (isDeclaration && !hangingDeclaration) { - this.registerFunctionStatementId(node); - } - this.state.maybeInArrowParameters = oldMaybeInArrowParameters; - return node; - } - parseFunctionId(requireId) { - return requireId || tokenIsIdentifier(this.state.type) ? this.parseIdentifier() : null; - } - parseFunctionParams(node, isConstructor) { - this.expect(10); - this.expressionScope.enter(newParameterDeclarationScope()); - node.params = this.parseBindingList(11, 41, 2 | (isConstructor ? 4 : 0)); - this.expressionScope.exit(); - } - registerFunctionStatementId(node) { - if (!node.id) return; - this.scope.declareName(node.id.name, !this.options.annexB || this.state.strict || node.generator || node.async ? this.scope.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION, node.id.loc.start); - } - parseClass(node, isStatement, optionalId) { - this.next(); - const oldStrict = this.state.strict; - this.state.strict = true; - this.parseClassId(node, isStatement, optionalId); - this.parseClassSuper(node); - node.body = this.parseClassBody(!!node.superClass, oldStrict); - return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression"); - } - isClassProperty() { - return this.match(29) || this.match(13) || this.match(8); - } - isClassMethod() { - return this.match(10); - } - isNonstaticConstructor(method) { - return !method.computed && !method.static && (method.key.name === "constructor" || method.key.value === "constructor"); - } - parseClassBody(hadSuperClass, oldStrict) { - this.classScope.enter(); - const state = { - hadConstructor: false, - hadSuperClass - }; - let decorators = []; - const classBody = this.startNode(); - classBody.body = []; - this.expect(5); - this.withSmartMixTopicForbiddingContext(() => { - while (!this.match(8)) { - if (this.eat(13)) { - if (decorators.length > 0) { - throw this.raise(Errors.DecoratorSemicolon, { - at: this.state.lastTokEndLoc - }); - } - continue; - } - if (this.match(26)) { - decorators.push(this.parseDecorator()); - continue; - } - const member = this.startNode(); - if (decorators.length) { - member.decorators = decorators; - this.resetStartLocationFromNode(member, decorators[0]); - decorators = []; - } - this.parseClassMember(classBody, member, state); - if (member.kind === "constructor" && member.decorators && member.decorators.length > 0) { - this.raise(Errors.DecoratorConstructor, { - at: member - }); - } - } - }); - this.state.strict = oldStrict; - this.next(); - if (decorators.length) { - throw this.raise(Errors.TrailingDecorator, { - at: this.state.startLoc - }); - } - this.classScope.exit(); - return this.finishNode(classBody, "ClassBody"); - } - parseClassMemberFromModifier(classBody, member) { - const key = this.parseIdentifier(true); - if (this.isClassMethod()) { - const method = member; - method.kind = "method"; - method.computed = false; - method.key = key; - method.static = false; - this.pushClassMethod(classBody, method, false, false, false, false); - return true; - } else if (this.isClassProperty()) { - const prop = member; - prop.computed = false; - prop.key = key; - prop.static = false; - classBody.body.push(this.parseClassProperty(prop)); - return true; - } - this.resetPreviousNodeTrailingComments(key); - return false; - } - parseClassMember(classBody, member, state) { - const isStatic = this.isContextual(104); - if (isStatic) { - if (this.parseClassMemberFromModifier(classBody, member)) { - return; - } - if (this.eat(5)) { - this.parseClassStaticBlock(classBody, member); - return; - } - } - this.parseClassMemberWithIsStatic(classBody, member, state, isStatic); - } - parseClassMemberWithIsStatic(classBody, member, state, isStatic) { - const publicMethod = member; - const privateMethod = member; - const publicProp = member; - const privateProp = member; - const accessorProp = member; - const method = publicMethod; - const publicMember = publicMethod; - member.static = isStatic; - this.parsePropertyNamePrefixOperator(member); - if (this.eat(55)) { - method.kind = "method"; - const isPrivateName = this.match(136); - this.parseClassElementName(method); - if (isPrivateName) { - this.pushClassPrivateMethod(classBody, privateMethod, true, false); - return; - } - if (this.isNonstaticConstructor(publicMethod)) { - this.raise(Errors.ConstructorIsGenerator, { - at: publicMethod.key - }); - } - this.pushClassMethod(classBody, publicMethod, true, false, false, false); - return; - } - const isContextual = tokenIsIdentifier(this.state.type) && !this.state.containsEsc; - const isPrivate = this.match(136); - const key = this.parseClassElementName(member); - const maybeQuestionTokenStartLoc = this.state.startLoc; - this.parsePostMemberNameModifiers(publicMember); - if (this.isClassMethod()) { - method.kind = "method"; - if (isPrivate) { - this.pushClassPrivateMethod(classBody, privateMethod, false, false); - return; - } - const isConstructor = this.isNonstaticConstructor(publicMethod); - let allowsDirectSuper = false; - if (isConstructor) { - publicMethod.kind = "constructor"; - if (state.hadConstructor && !this.hasPlugin("typescript")) { - this.raise(Errors.DuplicateConstructor, { - at: key - }); - } - if (isConstructor && this.hasPlugin("typescript") && member.override) { - this.raise(Errors.OverrideOnConstructor, { - at: key - }); - } - state.hadConstructor = true; - allowsDirectSuper = state.hadSuperClass; - } - this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper); - } else if (this.isClassProperty()) { - if (isPrivate) { - this.pushClassPrivateProperty(classBody, privateProp); - } else { - this.pushClassProperty(classBody, publicProp); - } - } else if (isContextual && key.name === "async" && !this.isLineTerminator()) { - this.resetPreviousNodeTrailingComments(key); - const isGenerator = this.eat(55); - if (publicMember.optional) { - this.unexpected(maybeQuestionTokenStartLoc); - } - method.kind = "method"; - const isPrivate = this.match(136); - this.parseClassElementName(method); - this.parsePostMemberNameModifiers(publicMember); - if (isPrivate) { - this.pushClassPrivateMethod(classBody, privateMethod, isGenerator, true); - } else { - if (this.isNonstaticConstructor(publicMethod)) { - this.raise(Errors.ConstructorIsAsync, { - at: publicMethod.key - }); - } - this.pushClassMethod(classBody, publicMethod, isGenerator, true, false, false); - } - } else if (isContextual && (key.name === "get" || key.name === "set") && !(this.match(55) && this.isLineTerminator())) { - this.resetPreviousNodeTrailingComments(key); - method.kind = key.name; - const isPrivate = this.match(136); - this.parseClassElementName(publicMethod); - if (isPrivate) { - this.pushClassPrivateMethod(classBody, privateMethod, false, false); - } else { - if (this.isNonstaticConstructor(publicMethod)) { - this.raise(Errors.ConstructorIsAccessor, { - at: publicMethod.key - }); - } - this.pushClassMethod(classBody, publicMethod, false, false, false, false); - } - this.checkGetterSetterParams(publicMethod); - } else if (isContextual && key.name === "accessor" && !this.isLineTerminator()) { - this.expectPlugin("decoratorAutoAccessors"); - this.resetPreviousNodeTrailingComments(key); - const isPrivate = this.match(136); - this.parseClassElementName(publicProp); - this.pushClassAccessorProperty(classBody, accessorProp, isPrivate); - } else if (this.isLineTerminator()) { - if (isPrivate) { - this.pushClassPrivateProperty(classBody, privateProp); - } else { - this.pushClassProperty(classBody, publicProp); - } - } else { - this.unexpected(); - } - } - parseClassElementName(member) { - const { - type, - value - } = this.state; - if ((type === 130 || type === 131) && member.static && value === "prototype") { - this.raise(Errors.StaticPrototype, { - at: this.state.startLoc - }); - } - if (type === 136) { - if (value === "constructor") { - this.raise(Errors.ConstructorClassPrivateField, { - at: this.state.startLoc - }); - } - const key = this.parsePrivateName(); - member.key = key; - return key; - } - return this.parsePropertyName(member); - } - parseClassStaticBlock(classBody, member) { - var _member$decorators; - this.scope.enter(SCOPE_CLASS | SCOPE_STATIC_BLOCK | SCOPE_SUPER); - const oldLabels = this.state.labels; - this.state.labels = []; - this.prodParam.enter(PARAM); - const body = member.body = []; - this.parseBlockOrModuleBlockBody(body, undefined, false, 8); - this.prodParam.exit(); - this.scope.exit(); - this.state.labels = oldLabels; - classBody.body.push(this.finishNode(member, "StaticBlock")); - if ((_member$decorators = member.decorators) != null && _member$decorators.length) { - this.raise(Errors.DecoratorStaticBlock, { - at: member - }); - } - } - pushClassProperty(classBody, prop) { - if (!prop.computed && (prop.key.name === "constructor" || prop.key.value === "constructor")) { - this.raise(Errors.ConstructorClassField, { - at: prop.key - }); - } - classBody.body.push(this.parseClassProperty(prop)); - } - pushClassPrivateProperty(classBody, prop) { - const node = this.parseClassPrivateProperty(prop); - classBody.body.push(node); - this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), CLASS_ELEMENT_OTHER, node.key.loc.start); - } - pushClassAccessorProperty(classBody, prop, isPrivate) { - if (!isPrivate && !prop.computed) { - const key = prop.key; - if (key.name === "constructor" || key.value === "constructor") { - this.raise(Errors.ConstructorClassField, { - at: key - }); - } - } - const node = this.parseClassAccessorProperty(prop); - classBody.body.push(node); - if (isPrivate) { - this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), CLASS_ELEMENT_OTHER, node.key.loc.start); - } - } - pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { - classBody.body.push(this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true)); - } - pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { - const node = this.parseMethod(method, isGenerator, isAsync, false, false, "ClassPrivateMethod", true); - classBody.body.push(node); - const kind = node.kind === "get" ? node.static ? CLASS_ELEMENT_STATIC_GETTER : CLASS_ELEMENT_INSTANCE_GETTER : node.kind === "set" ? node.static ? CLASS_ELEMENT_STATIC_SETTER : CLASS_ELEMENT_INSTANCE_SETTER : CLASS_ELEMENT_OTHER; - this.declareClassPrivateMethodInScope(node, kind); - } - declareClassPrivateMethodInScope(node, kind) { - this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), kind, node.key.loc.start); - } - parsePostMemberNameModifiers(methodOrProp) {} - parseClassPrivateProperty(node) { - this.parseInitializer(node); - this.semicolon(); - return this.finishNode(node, "ClassPrivateProperty"); - } - parseClassProperty(node) { - this.parseInitializer(node); - this.semicolon(); - return this.finishNode(node, "ClassProperty"); - } - parseClassAccessorProperty(node) { - this.parseInitializer(node); - this.semicolon(); - return this.finishNode(node, "ClassAccessorProperty"); - } - parseInitializer(node) { - this.scope.enter(SCOPE_CLASS | SCOPE_SUPER); - this.expressionScope.enter(newExpressionScope()); - this.prodParam.enter(PARAM); - node.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null; - this.expressionScope.exit(); - this.prodParam.exit(); - this.scope.exit(); - } - parseClassId(node, isStatement, optionalId, bindingType = BIND_CLASS) { - if (tokenIsIdentifier(this.state.type)) { - node.id = this.parseIdentifier(); - if (isStatement) { - this.declareNameFromIdentifier(node.id, bindingType); - } - } else { - if (optionalId || !isStatement) { - node.id = null; - } else { - throw this.raise(Errors.MissingClassName, { - at: this.state.startLoc - }); - } - } - } - parseClassSuper(node) { - node.superClass = this.eat(81) ? this.parseExprSubscripts() : null; - } - parseExport(node, decorators) { - const maybeDefaultIdentifier = this.parseMaybeImportPhase(node, true); - const hasDefault = this.maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier); - const parseAfterDefault = !hasDefault || this.eat(12); - const hasStar = parseAfterDefault && this.eatExportStar(node); - const hasNamespace = hasStar && this.maybeParseExportNamespaceSpecifier(node); - const parseAfterNamespace = parseAfterDefault && (!hasNamespace || this.eat(12)); - const isFromRequired = hasDefault || hasStar; - if (hasStar && !hasNamespace) { - if (hasDefault) this.unexpected(); - if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - this.parseExportFrom(node, true); - return this.finishNode(node, "ExportAllDeclaration"); - } - const hasSpecifiers = this.maybeParseExportNamedSpecifiers(node); - if (hasDefault && parseAfterDefault && !hasStar && !hasSpecifiers) { - this.unexpected(null, 5); - } - if (hasNamespace && parseAfterNamespace) { - this.unexpected(null, 97); - } - let hasDeclaration; - if (isFromRequired || hasSpecifiers) { - hasDeclaration = false; - if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - this.parseExportFrom(node, isFromRequired); - } else { - hasDeclaration = this.maybeParseExportDeclaration(node); - } - if (isFromRequired || hasSpecifiers || hasDeclaration) { - var _node2$declaration; - const node2 = node; - this.checkExport(node2, true, false, !!node2.source); - if (((_node2$declaration = node2.declaration) == null ? void 0 : _node2$declaration.type) === "ClassDeclaration") { - this.maybeTakeDecorators(decorators, node2.declaration, node2); - } else if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - return this.finishNode(node2, "ExportNamedDeclaration"); - } - if (this.eat(65)) { - const node2 = node; - const decl = this.parseExportDefaultExpression(); - node2.declaration = decl; - if (decl.type === "ClassDeclaration") { - this.maybeTakeDecorators(decorators, decl, node2); - } else if (decorators) { - throw this.raise(Errors.UnsupportedDecoratorExport, { - at: node - }); - } - this.checkExport(node2, true, true); - return this.finishNode(node2, "ExportDefaultDeclaration"); - } - this.unexpected(null, 5); - } - eatExportStar(node) { - return this.eat(55); - } - maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier) { - if (maybeDefaultIdentifier || this.isExportDefaultSpecifier()) { - this.expectPlugin("exportDefaultFrom", maybeDefaultIdentifier == null ? void 0 : maybeDefaultIdentifier.loc.start); - const id = maybeDefaultIdentifier || this.parseIdentifier(true); - const specifier = this.startNodeAtNode(id); - specifier.exported = id; - node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]; - return true; - } - return false; - } - maybeParseExportNamespaceSpecifier(node) { - if (this.isContextual(93)) { - if (!node.specifiers) node.specifiers = []; - const specifier = this.startNodeAt(this.state.lastTokStartLoc); - this.next(); - specifier.exported = this.parseModuleExportName(); - node.specifiers.push(this.finishNode(specifier, "ExportNamespaceSpecifier")); - return true; - } - return false; - } - maybeParseExportNamedSpecifiers(node) { - if (this.match(5)) { - if (!node.specifiers) node.specifiers = []; - const isTypeExport = node.exportKind === "type"; - node.specifiers.push(...this.parseExportSpecifiers(isTypeExport)); - node.source = null; - node.declaration = null; - if (this.hasPlugin("importAssertions")) { - node.assertions = []; - } - return true; - } - return false; - } - maybeParseExportDeclaration(node) { - if (this.shouldParseExportDeclaration()) { - node.specifiers = []; - node.source = null; - if (this.hasPlugin("importAssertions")) { - node.assertions = []; - } - node.declaration = this.parseExportDeclaration(node); - return true; - } - return false; - } - isAsyncFunction() { - if (!this.isContextual(95)) return false; - const next = this.nextTokenInLineStart(); - return this.isUnparsedContextual(next, "function"); - } - parseExportDefaultExpression() { - const expr = this.startNode(); - if (this.match(68)) { - this.next(); - return this.parseFunction(expr, 1 | 4); - } else if (this.isAsyncFunction()) { - this.next(); - this.next(); - return this.parseFunction(expr, 1 | 4 | 8); - } - if (this.match(80)) { - return this.parseClass(expr, true, true); - } - if (this.match(26)) { - if (this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === true) { - this.raise(Errors.DecoratorBeforeExport, { - at: this.state.startLoc - }); - } - return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false), this.startNode()), true, true); - } - if (this.match(75) || this.match(74) || this.isLet()) { - throw this.raise(Errors.UnsupportedDefaultExport, { - at: this.state.startLoc - }); - } - const res = this.parseMaybeAssignAllowIn(); - this.semicolon(); - return res; - } - parseExportDeclaration(node) { - if (this.match(80)) { - const node = this.parseClass(this.startNode(), true, false); - return node; - } - return this.parseStatementListItem(); - } - isExportDefaultSpecifier() { - const { - type - } = this.state; - if (tokenIsIdentifier(type)) { - if (type === 95 && !this.state.containsEsc || type === 99) { - return false; - } - if ((type === 128 || type === 127) && !this.state.containsEsc) { - const { - type: nextType - } = this.lookahead(); - if (tokenIsIdentifier(nextType) && nextType !== 97 || nextType === 5) { - this.expectOnePlugin(["flow", "typescript"]); - return false; - } - } - } else if (!this.match(65)) { - return false; - } - const next = this.nextTokenStart(); - const hasFrom = this.isUnparsedContextual(next, "from"); - if (this.input.charCodeAt(next) === 44 || tokenIsIdentifier(this.state.type) && hasFrom) { - return true; - } - if (this.match(65) && hasFrom) { - const nextAfterFrom = this.input.charCodeAt(this.nextTokenStartSince(next + 4)); - return nextAfterFrom === 34 || nextAfterFrom === 39; - } - return false; - } - parseExportFrom(node, expect) { - if (this.eatContextual(97)) { - node.source = this.parseImportSource(); - this.checkExport(node); - this.maybeParseImportAttributes(node); - this.checkJSONModuleImport(node); - } else if (expect) { - this.unexpected(); - } - this.semicolon(); - } - shouldParseExportDeclaration() { - const { - type - } = this.state; - if (type === 26) { - this.expectOnePlugin(["decorators", "decorators-legacy"]); - if (this.hasPlugin("decorators")) { - if (this.getPluginOption("decorators", "decoratorsBeforeExport") === true) { - this.raise(Errors.DecoratorBeforeExport, { - at: this.state.startLoc - }); - } - return true; - } - } - return type === 74 || type === 75 || type === 68 || type === 80 || this.isLet() || this.isAsyncFunction(); - } - checkExport(node, checkNames, isDefault, isFrom) { - if (checkNames) { - if (isDefault) { - this.checkDuplicateExports(node, "default"); - if (this.hasPlugin("exportDefaultFrom")) { - var _declaration$extra; - const declaration = node.declaration; - if (declaration.type === "Identifier" && declaration.name === "from" && declaration.end - declaration.start === 4 && !((_declaration$extra = declaration.extra) != null && _declaration$extra.parenthesized)) { - this.raise(Errors.ExportDefaultFromAsIdentifier, { - at: declaration - }); - } - } - } else if (node.specifiers && node.specifiers.length) { - for (const specifier of node.specifiers) { - const { - exported - } = specifier; - const exportName = exported.type === "Identifier" ? exported.name : exported.value; - this.checkDuplicateExports(specifier, exportName); - if (!isFrom && specifier.local) { - const { - local - } = specifier; - if (local.type !== "Identifier") { - this.raise(Errors.ExportBindingIsString, { - at: specifier, - localName: local.value, - exportName - }); - } else { - this.checkReservedWord(local.name, local.loc.start, true, false); - this.scope.checkLocalExport(local); - } - } - } - } else if (node.declaration) { - if (node.declaration.type === "FunctionDeclaration" || node.declaration.type === "ClassDeclaration") { - const id = node.declaration.id; - if (!id) throw new Error("Assertion failure"); - this.checkDuplicateExports(node, id.name); - } else if (node.declaration.type === "VariableDeclaration") { - for (const declaration of node.declaration.declarations) { - this.checkDeclaration(declaration.id); - } - } - } - } - } - checkDeclaration(node) { - if (node.type === "Identifier") { - this.checkDuplicateExports(node, node.name); - } else if (node.type === "ObjectPattern") { - for (const prop of node.properties) { - this.checkDeclaration(prop); - } - } else if (node.type === "ArrayPattern") { - for (const elem of node.elements) { - if (elem) { - this.checkDeclaration(elem); - } - } - } else if (node.type === "ObjectProperty") { - this.checkDeclaration(node.value); - } else if (node.type === "RestElement") { - this.checkDeclaration(node.argument); - } else if (node.type === "AssignmentPattern") { - this.checkDeclaration(node.left); - } - } - checkDuplicateExports(node, exportName) { - if (this.exportedIdentifiers.has(exportName)) { - if (exportName === "default") { - this.raise(Errors.DuplicateDefaultExport, { - at: node - }); - } else { - this.raise(Errors.DuplicateExport, { - at: node, - exportName - }); - } - } - this.exportedIdentifiers.add(exportName); - } - parseExportSpecifiers(isInTypeExport) { - const nodes = []; - let first = true; - this.expect(5); - while (!this.eat(8)) { - if (first) { - first = false; - } else { - this.expect(12); - if (this.eat(8)) break; - } - const isMaybeTypeOnly = this.isContextual(128); - const isString = this.match(131); - const node = this.startNode(); - node.local = this.parseModuleExportName(); - nodes.push(this.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly)); - } - return nodes; - } - parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly) { - if (this.eatContextual(93)) { - node.exported = this.parseModuleExportName(); - } else if (isString) { - node.exported = cloneStringLiteral(node.local); - } else if (!node.exported) { - node.exported = cloneIdentifier(node.local); - } - return this.finishNode(node, "ExportSpecifier"); - } - parseModuleExportName() { - if (this.match(131)) { - const result = this.parseStringLiteral(this.state.value); - const surrogate = result.value.match(loneSurrogate); - if (surrogate) { - this.raise(Errors.ModuleExportNameHasLoneSurrogate, { - at: result, - surrogateCharCode: surrogate[0].charCodeAt(0) - }); - } - return result; - } - return this.parseIdentifier(true); - } - isJSONModuleImport(node) { - if (node.assertions != null) { - return node.assertions.some(({ - key, - value - }) => { - return value.value === "json" && (key.type === "Identifier" ? key.name === "type" : key.value === "type"); - }); - } - return false; - } - checkImportReflection(node) { - if (node.module) { - var _node$assertions; - if (node.specifiers.length !== 1 || node.specifiers[0].type !== "ImportDefaultSpecifier") { - this.raise(Errors.ImportReflectionNotBinding, { - at: node.specifiers[0].loc.start - }); - } - if (((_node$assertions = node.assertions) == null ? void 0 : _node$assertions.length) > 0) { - this.raise(Errors.ImportReflectionHasAssertion, { - at: node.specifiers[0].loc.start - }); - } - } - } - checkJSONModuleImport(node) { - if (this.isJSONModuleImport(node) && node.type !== "ExportAllDeclaration") { - const { - specifiers - } = node; - if (specifiers != null) { - const nonDefaultNamedSpecifier = specifiers.find(specifier => { - let imported; - if (specifier.type === "ExportSpecifier") { - imported = specifier.local; - } else if (specifier.type === "ImportSpecifier") { - imported = specifier.imported; - } - if (imported !== undefined) { - return imported.type === "Identifier" ? imported.name !== "default" : imported.value !== "default"; - } - }); - if (nonDefaultNamedSpecifier !== undefined) { - this.raise(Errors.ImportJSONBindingNotDefault, { - at: nonDefaultNamedSpecifier.loc.start - }); - } - } - } - } - isPotentialImportPhase(isExport) { - return !isExport && this.isContextual(125); - } - applyImportPhase(node, isExport, phase, loc) { - if (isExport) { - return; - } - if (phase === "module") { - this.expectPlugin("importReflection", loc); - node.module = true; - } else if (this.hasPlugin("importReflection")) { - node.module = false; - } - } - parseMaybeImportPhase(node, isExport) { - if (!this.isPotentialImportPhase(isExport)) { - this.applyImportPhase(node, isExport, null); - return null; - } - const phaseIdentifier = this.parseIdentifier(true); - const { - type - } = this.state; - const isImportPhase = tokenIsKeywordOrIdentifier(type) ? type !== 97 || this.lookaheadCharCode() === 102 : type !== 12; - if (isImportPhase) { - this.resetPreviousIdentifierLeadingComments(phaseIdentifier); - this.applyImportPhase(node, isExport, phaseIdentifier.name, phaseIdentifier.loc.start); - return null; - } else { - this.applyImportPhase(node, isExport, null); - return phaseIdentifier; - } - } - isPrecedingIdImportPhase(phase) { - const { - type - } = this.state; - return tokenIsIdentifier(type) ? type !== 97 || this.lookaheadCharCode() === 102 : type !== 12; - } - parseImport(node) { - if (this.match(131)) { - return this.parseImportSourceAndAttributes(node); - } - return this.parseImportSpecifiersAndAfter(node, this.parseMaybeImportPhase(node, false)); - } - parseImportSpecifiersAndAfter(node, maybeDefaultIdentifier) { - node.specifiers = []; - const hasDefault = this.maybeParseDefaultImportSpecifier(node, maybeDefaultIdentifier); - const parseNext = !hasDefault || this.eat(12); - const hasStar = parseNext && this.maybeParseStarImportSpecifier(node); - if (parseNext && !hasStar) this.parseNamedImportSpecifiers(node); - this.expectContextual(97); - return this.parseImportSourceAndAttributes(node); - } - parseImportSourceAndAttributes(node) { - var _node$specifiers; - (_node$specifiers = node.specifiers) != null ? _node$specifiers : node.specifiers = []; - node.source = this.parseImportSource(); - this.maybeParseImportAttributes(node); - this.checkImportReflection(node); - this.checkJSONModuleImport(node); - this.semicolon(); - return this.finishNode(node, "ImportDeclaration"); - } - parseImportSource() { - if (!this.match(131)) this.unexpected(); - return this.parseExprAtom(); - } - parseImportSpecifierLocal(node, specifier, type) { - specifier.local = this.parseIdentifier(); - node.specifiers.push(this.finishImportSpecifier(specifier, type)); - } - finishImportSpecifier(specifier, type, bindingType = BIND_LEXICAL) { - this.checkLVal(specifier.local, { - in: { - type - }, - binding: bindingType - }); - return this.finishNode(specifier, type); - } - parseImportAttributes() { - this.expect(5); - const attrs = []; - const attrNames = new Set(); - do { - if (this.match(8)) { - break; - } - const node = this.startNode(); - const keyName = this.state.value; - if (attrNames.has(keyName)) { - this.raise(Errors.ModuleAttributesWithDuplicateKeys, { - at: this.state.startLoc, - key: keyName - }); - } - attrNames.add(keyName); - if (this.match(131)) { - node.key = this.parseStringLiteral(keyName); - } else { - node.key = this.parseIdentifier(true); - } - this.expect(14); - if (!this.match(131)) { - throw this.raise(Errors.ModuleAttributeInvalidValue, { - at: this.state.startLoc - }); - } - node.value = this.parseStringLiteral(this.state.value); - attrs.push(this.finishNode(node, "ImportAttribute")); - } while (this.eat(12)); - this.expect(8); - return attrs; - } - parseModuleAttributes() { - const attrs = []; - const attributes = new Set(); - do { - const node = this.startNode(); - node.key = this.parseIdentifier(true); - if (node.key.name !== "type") { - this.raise(Errors.ModuleAttributeDifferentFromType, { - at: node.key - }); - } - if (attributes.has(node.key.name)) { - this.raise(Errors.ModuleAttributesWithDuplicateKeys, { - at: node.key, - key: node.key.name - }); - } - attributes.add(node.key.name); - this.expect(14); - if (!this.match(131)) { - throw this.raise(Errors.ModuleAttributeInvalidValue, { - at: this.state.startLoc - }); - } - node.value = this.parseStringLiteral(this.state.value); - attrs.push(this.finishNode(node, "ImportAttribute")); - } while (this.eat(12)); - return attrs; - } - maybeParseImportAttributes(node) { - let attributes; - let useWith = false; - if (this.match(76)) { - if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40) { - return; - } - this.next(); - { - if (this.hasPlugin("moduleAttributes")) { - attributes = this.parseModuleAttributes(); - } else { - this.expectImportAttributesPlugin(); - attributes = this.parseImportAttributes(); - } - } - useWith = true; - } else if (this.isContextual(94) && !this.hasPrecedingLineBreak()) { - if (this.hasPlugin("importAttributes")) { - if (this.getPluginOption("importAttributes", "deprecatedAssertSyntax") !== true) { - this.raise(Errors.ImportAttributesUseAssert, { - at: this.state.startLoc - }); - } - this.addExtra(node, "deprecatedAssertSyntax", true); - } else { - this.expectOnePlugin(["importAttributes", "importAssertions"]); - } - this.next(); - attributes = this.parseImportAttributes(); - } else if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) { - attributes = []; - } else { - if (this.hasPlugin("moduleAttributes")) { - attributes = []; - } else return; - } - if (!useWith && this.hasPlugin("importAssertions")) { - node.assertions = attributes; - } else { - node.attributes = attributes; - } - } - maybeParseDefaultImportSpecifier(node, maybeDefaultIdentifier) { - if (maybeDefaultIdentifier) { - const specifier = this.startNodeAtNode(maybeDefaultIdentifier); - specifier.local = maybeDefaultIdentifier; - node.specifiers.push(this.finishImportSpecifier(specifier, "ImportDefaultSpecifier")); - return true; - } else if (tokenIsKeywordOrIdentifier(this.state.type)) { - this.parseImportSpecifierLocal(node, this.startNode(), "ImportDefaultSpecifier"); - return true; - } - return false; - } - maybeParseStarImportSpecifier(node) { - if (this.match(55)) { - const specifier = this.startNode(); - this.next(); - this.expectContextual(93); - this.parseImportSpecifierLocal(node, specifier, "ImportNamespaceSpecifier"); - return true; - } - return false; - } - parseNamedImportSpecifiers(node) { - let first = true; - this.expect(5); - while (!this.eat(8)) { - if (first) { - first = false; - } else { - if (this.eat(14)) { - throw this.raise(Errors.DestructureNamedImport, { - at: this.state.startLoc - }); - } - this.expect(12); - if (this.eat(8)) break; - } - const specifier = this.startNode(); - const importedIsString = this.match(131); - const isMaybeTypeOnly = this.isContextual(128); - specifier.imported = this.parseModuleExportName(); - const importSpecifier = this.parseImportSpecifier(specifier, importedIsString, node.importKind === "type" || node.importKind === "typeof", isMaybeTypeOnly, undefined); - node.specifiers.push(importSpecifier); - } - } - parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { - if (this.eatContextual(93)) { - specifier.local = this.parseIdentifier(); - } else { - const { - imported - } = specifier; - if (importedIsString) { - throw this.raise(Errors.ImportBindingIsString, { - at: specifier, - importName: imported.value - }); - } - this.checkReservedWord(imported.name, specifier.loc.start, true, true); - if (!specifier.local) { - specifier.local = cloneIdentifier(imported); - } - } - return this.finishImportSpecifier(specifier, "ImportSpecifier", bindingType); - } - isThisParam(param) { - return param.type === "Identifier" && param.name === "this"; - } -} -class Parser extends StatementParser { - constructor(options, input) { - options = getOptions(options); - super(options, input); - this.options = options; - this.initializeScopes(); - this.plugins = pluginsMap(this.options.plugins); - this.filename = options.sourceFilename; - } - getScopeHandler() { - return ScopeHandler; - } - parse() { - this.enterInitialScopes(); - const file = this.startNode(); - const program = this.startNode(); - this.nextToken(); - file.errors = null; - this.parseTopLevel(file, program); - file.errors = this.state.errors; - return file; - } -} -function pluginsMap(plugins) { - const pluginMap = new Map(); - for (const plugin of plugins) { - const [name, options] = Array.isArray(plugin) ? plugin : [plugin, {}]; - if (!pluginMap.has(name)) pluginMap.set(name, options || {}); - } - return pluginMap; -} -function parse(input, options) { - var _options; - if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") { - options = Object.assign({}, options); - try { - options.sourceType = "module"; - const parser = getParser(options, input); - const ast = parser.parse(); - if (parser.sawUnambiguousESM) { - return ast; - } - if (parser.ambiguousScriptDifferentAst) { - try { - options.sourceType = "script"; - return getParser(options, input).parse(); - } catch (_unused) {} - } else { - ast.program.sourceType = "script"; - } - return ast; - } catch (moduleError) { - try { - options.sourceType = "script"; - return getParser(options, input).parse(); - } catch (_unused2) {} - throw moduleError; - } - } else { - return getParser(options, input).parse(); - } -} -function parseExpression(input, options) { - const parser = getParser(options, input); - if (parser.options.strictMode) { - parser.state.strict = true; - } - return parser.getExpression(); -} -function generateExportedTokenTypes(internalTokenTypes) { - const tokenTypes = {}; - for (const typeName of Object.keys(internalTokenTypes)) { - tokenTypes[typeName] = getExportedToken(internalTokenTypes[typeName]); - } - return tokenTypes; -} -const tokTypes = generateExportedTokenTypes(tt); -function getParser(options, input) { - let cls = Parser; - if (options != null && options.plugins) { - validatePlugins(options.plugins); - cls = getParserClass(options.plugins); - } - return new cls(options, input); -} -const parserClassCache = {}; -function getParserClass(pluginsFromOptions) { - const pluginList = mixinPluginNames.filter(name => hasPlugin(pluginsFromOptions, name)); - const key = pluginList.join("/"); - let cls = parserClassCache[key]; - if (!cls) { - cls = Parser; - for (const plugin of pluginList) { - cls = mixinPlugins[plugin](cls); - } - parserClassCache[key] = cls; - } - return cls; -} -exports.parse = parse; -exports.parseExpression = parseExpression; -exports.tokTypes = tokTypes; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 71924: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(36028); - -function shouldTransform(path) { - const { - node - } = path; - const functionId = node.id; - if (!functionId) return false; - const name = functionId.name; - const paramNameBinding = path.scope.getOwnBinding(name); - if (paramNameBinding === undefined) { - return false; - } - if (paramNameBinding.kind !== "param") { - return false; - } - if (paramNameBinding.identifier === paramNameBinding.path.node) { - return false; - } - return name; -} - -var index = helperPluginUtils.declare(api => { - api.assertVersion("^7.16.0"); - return { - name: "plugin-bugfix-safari-id-destructuring-collision-in-function-expression", - visitor: { - FunctionExpression(path) { - const name = shouldTransform(path); - if (name) { - const { - scope - } = path; - const newParamName = scope.generateUid(name); - scope.rename(name, newParamName); - } - } - } - }; -}); - -exports["default"] = index; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 85375: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(36028); -var pluginTransformOptionalChaining = __nccwpck_require__(5040); -var helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); -var core = __nccwpck_require__(27324); - -function matchAffectedArguments(argumentNodes) { - const spreadIndex = argumentNodes.findIndex(node => core.types.isSpreadElement(node)); - return spreadIndex >= 0 && spreadIndex !== argumentNodes.length - 1; -} -function shouldTransform(path) { - let optionalPath = path; - const chains = []; - for (;;) { - if (optionalPath.isOptionalMemberExpression()) { - chains.push(optionalPath.node); - optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object")); - } else if (optionalPath.isOptionalCallExpression()) { - chains.push(optionalPath.node); - optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")); - } else { - break; - } - } - for (let i = 0; i < chains.length; i++) { - const node = chains[i]; - if (core.types.isOptionalCallExpression(node) && matchAffectedArguments(node.arguments)) { - if (node.optional) { - return true; - } - const callee = chains[i + 1]; - if (core.types.isOptionalMemberExpression(callee, { - optional: true - })) { - return true; - } - } - } - return false; -} - -var index = helperPluginUtils.declare(api => { - var _api$assumption, _api$assumption2; - api.assertVersion(7); - const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : false; - const pureGetters = (_api$assumption2 = api.assumption("pureGetters")) != null ? _api$assumption2 : false; - return { - name: "bugfix-v8-spread-parameters-in-optional-chaining", - visitor: { - "OptionalCallExpression|OptionalMemberExpression"(path) { - if (shouldTransform(path)) { - pluginTransformOptionalChaining.transform(path, { - noDocumentAll, - pureGetters - }); - } - } - } - }; -}); - -exports["default"] = index; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 21096: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxDecorators = __nccwpck_require__(63936); -var _helperCreateClassFeaturesPlugin = __nccwpck_require__(14414); -var _transformerLegacy = __nccwpck_require__(93076); -var _transformer = __nccwpck_require__(47391); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - { - var { - legacy - } = options; - } - const { - version - } = options; - if (legacy || version === "legacy") { - return { - name: "proposal-decorators", - inherits: _pluginSyntaxDecorators.default, - visitor: _transformerLegacy.default - }; - } else if (version === "2021-12" || version === "2022-03" || version === "2023-01" || version === "2023-05") { - return (0, _transformer.default)(api, options, version); - } else { - api.assertVersion("^7.0.2"); - return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ - name: "proposal-decorators", - api, - feature: _helperCreateClassFeaturesPlugin.FEATURES.decorators, - inherits: _pluginSyntaxDecorators.default - }); - } -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 47391: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _core = __nccwpck_require__(27324); -var _pluginSyntaxDecorators = __nccwpck_require__(63936); -var _helperReplaceSupers = __nccwpck_require__(20846); -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -function incrementId(id, idx = id.length - 1) { - if (idx === -1) { - id.unshift(65); - return; - } - const current = id[idx]; - if (current === 90) { - id[idx] = 97; - } else if (current === 122) { - id[idx] = 65; - incrementId(id, idx - 1); - } else { - id[idx] = current + 1; - } -} -function createPrivateUidGeneratorForClass(classPath) { - const currentPrivateId = []; - const privateNames = new Set(); - classPath.traverse({ - PrivateName(path) { - privateNames.add(path.node.id.name); - } - }); - return () => { - let reifiedId; - do { - incrementId(currentPrivateId); - reifiedId = String.fromCharCode(...currentPrivateId); - } while (privateNames.has(reifiedId)); - return _core.types.privateName(_core.types.identifier(reifiedId)); - }; -} -function createLazyPrivateUidGeneratorForClass(classPath) { - let generator; - return () => { - if (!generator) { - generator = createPrivateUidGeneratorForClass(classPath); - } - return generator(); - }; -} -function replaceClassWithVar(path) { - if (path.type === "ClassDeclaration") { - const varId = path.scope.generateUidIdentifierBasedOnNode(path.node.id); - const classId = _core.types.identifier(path.node.id.name); - path.scope.rename(classId.name, varId.name); - path.insertBefore(_core.types.variableDeclaration("let", [_core.types.variableDeclarator(varId)])); - path.get("id").replaceWith(classId); - return [_core.types.cloneNode(varId), path]; - } else { - let className; - let varId; - if (path.node.id) { - className = path.node.id.name; - varId = path.scope.parent.generateDeclaredUidIdentifier(className); - path.scope.rename(className, varId.name); - } else if (path.parentPath.node.type === "VariableDeclarator" && path.parentPath.node.id.type === "Identifier") { - className = path.parentPath.node.id.name; - varId = path.scope.parent.generateDeclaredUidIdentifier(className); - } else { - varId = path.scope.parent.generateDeclaredUidIdentifier("decorated_class"); - } - const newClassExpr = _core.types.classExpression(className && _core.types.identifier(className), path.node.superClass, path.node.body); - const [newPath] = path.replaceWith(_core.types.sequenceExpression([newClassExpr, varId])); - return [_core.types.cloneNode(varId), newPath.get("expressions.0")]; - } -} -function generateClassProperty(key, value, isStatic) { - if (key.type === "PrivateName") { - return _core.types.classPrivateProperty(key, value, undefined, isStatic); - } else { - return _core.types.classProperty(key, value, undefined, undefined, isStatic); - } -} -function addProxyAccessorsFor(className, element, originalKey, targetKey, version, isComputed = false) { - const { - static: isStatic - } = element.node; - const thisArg = version === "2023-05" && isStatic ? className : _core.types.thisExpression(); - const getterBody = _core.types.blockStatement([_core.types.returnStatement(_core.types.memberExpression(_core.types.cloneNode(thisArg), _core.types.cloneNode(targetKey)))]); - const setterBody = _core.types.blockStatement([_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.cloneNode(thisArg), _core.types.cloneNode(targetKey)), _core.types.identifier("v")))]); - let getter, setter; - if (originalKey.type === "PrivateName") { - getter = _core.types.classPrivateMethod("get", _core.types.cloneNode(originalKey), [], getterBody, isStatic); - setter = _core.types.classPrivateMethod("set", _core.types.cloneNode(originalKey), [_core.types.identifier("v")], setterBody, isStatic); - } else { - getter = _core.types.classMethod("get", _core.types.cloneNode(originalKey), [], getterBody, isComputed, isStatic); - setter = _core.types.classMethod("set", _core.types.cloneNode(originalKey), [_core.types.identifier("v")], setterBody, isComputed, isStatic); - } - element.insertAfter(setter); - element.insertAfter(getter); -} -function extractProxyAccessorsFor(targetKey, version) { - if (version !== "2023-05" && version !== "2023-01") { - return [_core.template.expression.ast` - function () { - return this.${_core.types.cloneNode(targetKey)}; - } - `, _core.template.expression.ast` - function (value) { - this.${_core.types.cloneNode(targetKey)} = value; - } - `]; - } - return [_core.template.expression.ast` - o => o.${_core.types.cloneNode(targetKey)} - `, _core.template.expression.ast` - (o, v) => o.${_core.types.cloneNode(targetKey)} = v - `]; -} -const FIELD = 0; -const ACCESSOR = 1; -const METHOD = 2; -const GETTER = 3; -const SETTER = 4; -const STATIC_OLD_VERSION = 5; -const STATIC = 8; -const DECORATORS_HAVE_THIS = 16; -function getElementKind(element) { - switch (element.node.type) { - case "ClassProperty": - case "ClassPrivateProperty": - return FIELD; - case "ClassAccessorProperty": - return ACCESSOR; - case "ClassMethod": - case "ClassPrivateMethod": - if (element.node.kind === "get") { - return GETTER; - } else if (element.node.kind === "set") { - return SETTER; - } else { - return METHOD; - } - } -} -function isDecoratorInfo(info) { - return "decorators" in info; -} -function filteredOrderedDecoratorInfo(info) { - const filtered = info.filter(isDecoratorInfo); - return [...filtered.filter(el => el.isStatic && el.kind >= ACCESSOR && el.kind <= SETTER), ...filtered.filter(el => !el.isStatic && el.kind >= ACCESSOR && el.kind <= SETTER), ...filtered.filter(el => el.isStatic && el.kind === FIELD), ...filtered.filter(el => !el.isStatic && el.kind === FIELD)]; -} -function generateDecorationList(decorators, decoratorsThis, version) { - const decsCount = decorators.length; - const hasOneThis = decoratorsThis.some(Boolean); - const decs = []; - for (let i = 0; i < decsCount; i++) { - if (version === "2023-05" && hasOneThis) { - decs.push(decoratorsThis[i] || _core.types.unaryExpression("void", _core.types.numericLiteral(0))); - } - decs.push(decorators[i]); - } - return { - hasThis: hasOneThis, - decs - }; -} -function generateDecorationExprs(info, version) { - return _core.types.arrayExpression(filteredOrderedDecoratorInfo(info).map(el => { - const { - decs, - hasThis - } = generateDecorationList(el.decorators, el.decoratorsThis, version); - let flag = el.kind; - if (el.isStatic) { - flag += version === "2023-05" ? STATIC : STATIC_OLD_VERSION; - } - if (hasThis) flag += DECORATORS_HAVE_THIS; - return _core.types.arrayExpression([decs.length === 1 ? decs[0] : _core.types.arrayExpression(decs), _core.types.numericLiteral(flag), el.name, ...(el.privateMethods || [])]); - })); -} -function extractElementLocalAssignments(decorationInfo) { - const localIds = []; - for (const el of filteredOrderedDecoratorInfo(decorationInfo)) { - const { - locals - } = el; - if (Array.isArray(locals)) { - localIds.push(...locals); - } else if (locals !== undefined) { - localIds.push(locals); - } - } - return localIds; -} -function addCallAccessorsFor(element, key, getId, setId) { - element.insertAfter(_core.types.classPrivateMethod("get", _core.types.cloneNode(key), [], _core.types.blockStatement([_core.types.returnStatement(_core.types.callExpression(_core.types.cloneNode(getId), [_core.types.thisExpression()]))]))); - element.insertAfter(_core.types.classPrivateMethod("set", _core.types.cloneNode(key), [_core.types.identifier("v")], _core.types.blockStatement([_core.types.expressionStatement(_core.types.callExpression(_core.types.cloneNode(setId), [_core.types.thisExpression(), _core.types.identifier("v")]))]))); -} -function isNotTsParameter(node) { - return node.type !== "TSParameterProperty"; -} -function movePrivateAccessor(element, key, methodLocalVar, isStatic) { - let params; - let block; - if (element.node.kind === "set") { - params = [_core.types.identifier("v")]; - block = [_core.types.expressionStatement(_core.types.callExpression(methodLocalVar, [_core.types.thisExpression(), _core.types.identifier("v")]))]; - } else { - params = []; - block = [_core.types.returnStatement(_core.types.callExpression(methodLocalVar, [_core.types.thisExpression()]))]; - } - element.replaceWith(_core.types.classPrivateMethod(element.node.kind, _core.types.cloneNode(key), params, _core.types.blockStatement(block), isStatic)); -} -function isClassDecoratableElementPath(path) { - const { - type - } = path; - return type !== "TSDeclareMethod" && type !== "TSIndexSignature" && type !== "StaticBlock"; -} -function staticBlockToIIFE(block) { - return _core.types.callExpression(_core.types.arrowFunctionExpression([], _core.types.blockStatement(block.body)), []); -} -function maybeSequenceExpression(exprs) { - if (exprs.length === 0) return _core.types.unaryExpression("void", _core.types.numericLiteral(0)); - if (exprs.length === 1) return exprs[0]; - return _core.types.sequenceExpression(exprs); -} -function transformClass(path, state, constantSuper, version) { - const body = path.get("body.body"); - const classDecorators = path.node.decorators; - let hasElementDecorators = false; - const generateClassPrivateUid = createLazyPrivateUidGeneratorForClass(path); - for (const element of body) { - if (!isClassDecoratableElementPath(element)) { - continue; - } - if (element.node.decorators && element.node.decorators.length > 0) { - hasElementDecorators = true; - } else if (element.node.type === "ClassAccessorProperty") { - const { - key, - value, - static: isStatic, - computed - } = element.node; - const newId = generateClassPrivateUid(); - const valueNode = value ? _core.types.cloneNode(value) : undefined; - const newField = generateClassProperty(newId, valueNode, isStatic); - const [newPath] = element.replaceWith(newField); - addProxyAccessorsFor(path.node.id, newPath, key, newId, version, computed); - } - } - if (!classDecorators && !hasElementDecorators) return; - const elementDecoratorInfo = []; - let firstFieldPath; - let constructorPath; - let requiresProtoInit = false; - let requiresStaticInit = false; - const decoratedPrivateMethods = new Set(); - let protoInitLocal, staticInitLocal, classInitLocal, classIdLocal; - const assignments = []; - const scopeParent = path.scope.parent; - const memoiseExpression = (expression, hint) => { - const localEvaluatedId = scopeParent.generateDeclaredUidIdentifier(hint); - assignments.push(_core.types.assignmentExpression("=", localEvaluatedId, expression)); - return _core.types.cloneNode(localEvaluatedId); - }; - const decoratorsThis = new Map(); - const maybeExtractDecorator = decorator => { - const { - expression - } = decorator; - if (version === "2023-05" && _core.types.isMemberExpression(expression)) { - let object; - if (_core.types.isSuper(expression.object) || _core.types.isThisExpression(expression.object)) { - object = memoiseExpression(_core.types.thisExpression(), "obj"); - } else if (!scopeParent.isStatic(expression.object)) { - object = memoiseExpression(expression.object, "obj"); - expression.object = object; - } else { - object = expression.object; - } - decoratorsThis.set(decorator, _core.types.cloneNode(object)); - } - if (!scopeParent.isStatic(expression)) { - decorator.expression = memoiseExpression(expression, "dec"); - } - }; - if (classDecorators) { - classInitLocal = scopeParent.generateDeclaredUidIdentifier("initClass"); - const [classId, classPath] = replaceClassWithVar(path); - path = classPath; - classIdLocal = classId; - path.node.decorators = null; - for (const classDecorator of classDecorators) { - maybeExtractDecorator(classDecorator); - } - } else { - if (!path.node.id) { - path.node.id = path.scope.generateUidIdentifier("Class"); - } - classIdLocal = _core.types.cloneNode(path.node.id); - } - let lastInstancePrivateName; - let needsInstancePrivateBrandCheck = false; - if (hasElementDecorators) { - for (const element of body) { - if (!isClassDecoratableElementPath(element)) { - continue; - } - const { - node - } = element; - const decorators = element.get("decorators"); - const hasDecorators = Array.isArray(decorators) && decorators.length > 0; - if (hasDecorators) { - for (const decoratorPath of decorators) { - maybeExtractDecorator(decoratorPath.node); - } - } - const isComputed = "computed" in element.node && element.node.computed === true; - if (isComputed) { - if (!scopeParent.isStatic(node.key)) { - node.key = memoiseExpression(node.key, "computedKey"); - } - } - const kind = getElementKind(element); - const { - key - } = node; - const isPrivate = key.type === "PrivateName"; - const isStatic = !!element.node.static; - let name = "computedKey"; - if (isPrivate) { - name = key.id.name; - } else if (!isComputed && key.type === "Identifier") { - name = key.name; - } - if (isPrivate && !isStatic) { - if (hasDecorators) { - needsInstancePrivateBrandCheck = true; - } - if (_core.types.isClassPrivateProperty(node) || !lastInstancePrivateName) { - lastInstancePrivateName = key; - } - } - if (element.isClassMethod({ - kind: "constructor" - })) { - constructorPath = element; - } - if (hasDecorators) { - let locals; - let privateMethods; - if (kind === ACCESSOR) { - const { - value - } = element.node; - const params = [_core.types.thisExpression()]; - if (value) { - params.push(_core.types.cloneNode(value)); - } - const newId = generateClassPrivateUid(); - const newFieldInitId = element.scope.parent.generateDeclaredUidIdentifier(`init_${name}`); - const newValue = _core.types.callExpression(_core.types.cloneNode(newFieldInitId), params); - const newField = generateClassProperty(newId, newValue, isStatic); - const [newPath] = element.replaceWith(newField); - if (isPrivate) { - privateMethods = extractProxyAccessorsFor(newId, version); - const getId = newPath.scope.parent.generateDeclaredUidIdentifier(`get_${name}`); - const setId = newPath.scope.parent.generateDeclaredUidIdentifier(`set_${name}`); - addCallAccessorsFor(newPath, key, getId, setId); - locals = [newFieldInitId, getId, setId]; - } else { - addProxyAccessorsFor(path.node.id, newPath, key, newId, version, isComputed); - locals = newFieldInitId; - } - } else if (kind === FIELD) { - const initId = element.scope.parent.generateDeclaredUidIdentifier(`init_${name}`); - const valuePath = element.get("value"); - valuePath.replaceWith(_core.types.callExpression(_core.types.cloneNode(initId), [_core.types.thisExpression(), valuePath.node].filter(v => v))); - locals = initId; - if (isPrivate) { - privateMethods = extractProxyAccessorsFor(key, version); - } - } else if (isPrivate) { - locals = element.scope.parent.generateDeclaredUidIdentifier(`call_${name}`); - const replaceSupers = new _helperReplaceSupers.default({ - constantSuper, - methodPath: element, - objectRef: classIdLocal, - superRef: path.node.superClass, - file: state.file, - refToPreserve: classIdLocal - }); - replaceSupers.replace(); - const { - params, - body, - async: isAsync - } = element.node; - privateMethods = [_core.types.functionExpression(undefined, params.filter(isNotTsParameter), body, isAsync)]; - if (kind === GETTER || kind === SETTER) { - movePrivateAccessor(element, _core.types.cloneNode(key), _core.types.cloneNode(locals), isStatic); - } else { - const node = element.node; - path.node.body.body.unshift(_core.types.classPrivateProperty(key, _core.types.cloneNode(locals), [], node.static)); - decoratedPrivateMethods.add(key.id.name); - element.remove(); - } - } - let nameExpr; - if (isComputed) { - nameExpr = _core.types.cloneNode(key); - } else if (key.type === "PrivateName") { - nameExpr = _core.types.stringLiteral(key.id.name); - } else if (key.type === "Identifier") { - nameExpr = _core.types.stringLiteral(key.name); - } else { - nameExpr = _core.types.cloneNode(key); - } - elementDecoratorInfo.push({ - kind, - decorators: decorators.map(d => d.node.expression), - decoratorsThis: decorators.map(d => decoratorsThis.get(d.node)), - name: nameExpr, - isStatic, - privateMethods, - locals - }); - if (kind !== FIELD) { - if (isStatic) { - requiresStaticInit = true; - } else { - requiresProtoInit = true; - } - } - if (element.node) { - element.node.decorators = null; - } - if (!firstFieldPath && !isStatic && (kind === FIELD || kind === ACCESSOR)) { - firstFieldPath = element; - } - } - } - } - const elementDecorations = generateDecorationExprs(elementDecoratorInfo, version); - let classDecorationsFlag = 0; - let classDecorations = []; - if (classDecorators) { - const { - hasThis, - decs - } = generateDecorationList(classDecorators.map(el => el.expression), classDecorators.map(dec => decoratorsThis.get(dec)), version); - classDecorationsFlag = hasThis ? 1 : 0; - classDecorations = decs; - } - const elementLocals = extractElementLocalAssignments(elementDecoratorInfo); - if (requiresProtoInit) { - protoInitLocal = scopeParent.generateDeclaredUidIdentifier("initProto"); - elementLocals.push(protoInitLocal); - const protoInitCall = _core.types.callExpression(_core.types.cloneNode(protoInitLocal), [_core.types.thisExpression()]); - if (firstFieldPath) { - const value = firstFieldPath.get("value"); - const body = [protoInitCall]; - if (value.node) { - body.push(value.node); - } - value.replaceWith(_core.types.sequenceExpression(body)); - } else if (constructorPath) { - if (path.node.superClass) { - path.traverse({ - CallExpression: { - exit(path) { - if (!path.get("callee").isSuper()) return; - path.replaceWith(_core.types.callExpression(_core.types.cloneNode(protoInitLocal), [path.node])); - path.skip(); - } - } - }); - } else { - constructorPath.node.body.body.unshift(_core.types.expressionStatement(protoInitCall)); - } - } else { - const body = [_core.types.expressionStatement(protoInitCall)]; - if (path.node.superClass) { - body.unshift(_core.types.expressionStatement(_core.types.callExpression(_core.types.super(), [_core.types.spreadElement(_core.types.identifier("args"))]))); - } - path.node.body.body.unshift(_core.types.classMethod("constructor", _core.types.identifier("constructor"), [_core.types.restElement(_core.types.identifier("args"))], _core.types.blockStatement(body))); - } - } - if (requiresStaticInit) { - staticInitLocal = scopeParent.generateDeclaredUidIdentifier("initStatic"); - elementLocals.push(staticInitLocal); - } - if (decoratedPrivateMethods.size > 0) { - path.traverse({ - PrivateName(path) { - if (!decoratedPrivateMethods.has(path.node.id.name)) return; - const parentPath = path.parentPath; - const parentParentPath = parentPath.parentPath; - if (parentParentPath.node.type === "AssignmentExpression" && parentParentPath.node.left === parentPath.node || parentParentPath.node.type === "UpdateExpression" || parentParentPath.node.type === "RestElement" || parentParentPath.node.type === "ArrayPattern" || parentParentPath.node.type === "ObjectProperty" && parentParentPath.node.value === parentPath.node && parentParentPath.parentPath.type === "ObjectPattern" || parentParentPath.node.type === "ForOfStatement" && parentParentPath.node.left === parentPath.node) { - throw path.buildCodeFrameError(`Decorated private methods are not updatable, but "#${path.node.id.name}" is updated via this expression.`); - } - } - }); - } - const classLocals = []; - let classInitInjected = false; - const classInitCall = classInitLocal && _core.types.callExpression(_core.types.cloneNode(classInitLocal), []); - const originalClass = path.node; - if (classDecorators) { - classLocals.push(classIdLocal, classInitLocal); - const statics = []; - let staticBlocks = []; - path.get("body.body").forEach(element => { - if (element.isStaticBlock()) { - staticBlocks.push(element.node); - element.remove(); - return; - } - const isProperty = element.isClassProperty() || element.isClassPrivateProperty(); - if ((isProperty || element.isClassPrivateMethod()) && element.node.static) { - if (isProperty && staticBlocks.length > 0) { - const allValues = staticBlocks.map(staticBlockToIIFE); - if (element.node.value) allValues.push(element.node.value); - element.node.value = maybeSequenceExpression(allValues); - staticBlocks = []; - } - element.node.static = false; - statics.push(element.node); - element.remove(); - } - }); - if (statics.length > 0 || staticBlocks.length > 0) { - const staticsClass = _core.template.expression.ast` - class extends ${state.addHelper("identity")} {} - `; - staticsClass.body.body = [_core.types.staticBlock([_core.types.toStatement(originalClass, true) || _core.types.expressionStatement(originalClass)]), ...statics]; - const constructorBody = []; - const newExpr = _core.types.newExpression(staticsClass, []); - if (staticBlocks.length > 0) { - constructorBody.push(...staticBlocks.map(staticBlockToIIFE)); - } - if (classInitCall) { - classInitInjected = true; - constructorBody.push(classInitCall); - } - if (constructorBody.length > 0) { - constructorBody.unshift(_core.types.callExpression(_core.types.super(), [_core.types.cloneNode(classIdLocal)])); - staticsClass.body.body.push(_core.types.classMethod("constructor", _core.types.identifier("constructor"), [], _core.types.blockStatement([_core.types.expressionStatement(_core.types.sequenceExpression(constructorBody))]))); - } else { - newExpr.arguments.push(_core.types.cloneNode(classIdLocal)); - } - path.replaceWith(newExpr); - } - } - if (!classInitInjected && classInitCall) { - path.node.body.body.push(_core.types.staticBlock([_core.types.expressionStatement(classInitCall)])); - } - originalClass.body.body.unshift(_core.types.staticBlock([_core.types.expressionStatement(createLocalsAssignment(elementLocals, classLocals, elementDecorations, _core.types.arrayExpression(classDecorations), _core.types.numericLiteral(classDecorationsFlag), needsInstancePrivateBrandCheck ? lastInstancePrivateName : null, state, version)), requiresStaticInit && _core.types.expressionStatement(_core.types.callExpression(_core.types.cloneNode(staticInitLocal), [_core.types.thisExpression()]))].filter(Boolean))); - path.insertBefore(assignments.map(expr => _core.types.expressionStatement(expr))); - path.scope.crawl(); - return path; -} -function createLocalsAssignment(elementLocals, classLocals, elementDecorations, classDecorations, classDecorationsFlag, maybePrivateBranName, state, version) { - let lhs, rhs; - const args = [_core.types.thisExpression(), elementDecorations, classDecorations]; - if (version === "2021-12" || version === "2022-03" && !state.availableHelper("applyDecs2203R")) { - lhs = _core.types.arrayPattern([...elementLocals, ...classLocals]); - rhs = _core.types.callExpression(state.addHelper(version === "2021-12" ? "applyDecs" : "applyDecs2203"), args); - } else { - if (version === "2023-05") { - if (maybePrivateBranName || classDecorationsFlag.value !== 0) { - args.push(classDecorationsFlag); - } - if (maybePrivateBranName) { - args.push(_core.template.expression.ast` - _ => ${_core.types.cloneNode(maybePrivateBranName)} in _ - `); - } - rhs = _core.types.callExpression(state.addHelper("applyDecs2305"), args); - } else if (version === "2023-01") { - if (maybePrivateBranName) { - args.push(_core.template.expression.ast` - _ => ${_core.types.cloneNode(maybePrivateBranName)} in _ - `); - } - rhs = _core.types.callExpression(state.addHelper("applyDecs2301"), args); - } else { - rhs = _core.types.callExpression(state.addHelper("applyDecs2203R"), args); - } - if (elementLocals.length > 0) { - if (classLocals.length > 0) { - lhs = _core.types.objectPattern([_core.types.objectProperty(_core.types.identifier("e"), _core.types.arrayPattern(elementLocals)), _core.types.objectProperty(_core.types.identifier("c"), _core.types.arrayPattern(classLocals))]); - } else { - lhs = _core.types.arrayPattern(elementLocals); - rhs = _core.types.memberExpression(rhs, _core.types.identifier("e"), false, false); - } - } else { - lhs = _core.types.arrayPattern(classLocals); - rhs = _core.types.memberExpression(rhs, _core.types.identifier("c"), false, false); - } - } - return _core.types.assignmentExpression("=", lhs, rhs); -} -function _default({ - assertVersion, - assumption -}, { - loose -}, version) { - var _assumption; - if (version === "2023-05" || version === "2023-01") { - assertVersion("^7.21.0"); - } else if (version === "2021-12") { - assertVersion("^7.16.0"); - } else { - assertVersion("^7.19.0"); - } - const VISITED = new WeakSet(); - const constantSuper = (_assumption = assumption("constantSuper")) != null ? _assumption : loose; - return { - name: "proposal-decorators", - inherits: _pluginSyntaxDecorators.default, - visitor: { - "ExportNamedDeclaration|ExportDefaultDeclaration"(path) { - var _declaration$decorato; - const { - declaration - } = path.node; - if ((declaration == null ? void 0 : declaration.type) === "ClassDeclaration" && ((_declaration$decorato = declaration.decorators) == null ? void 0 : _declaration$decorato.length) > 0) { - (0, _helperSplitExportDeclaration.default)(path); - } - }, - Class(path, state) { - if (VISITED.has(path)) return; - const newPath = transformClass(path, state, constantSuper, version); - if (newPath) VISITED.add(newPath); - } - } - }; -} - -//# sourceMappingURL=transformer-2023-05.js.map - - -/***/ }), - -/***/ 93076: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _core = __nccwpck_require__(27324); -const buildClassDecorator = _core.template.statement(` - DECORATOR(CLASS_REF = INNER) || CLASS_REF; -`); -const buildClassPrototype = (0, _core.template)(` - CLASS_REF.prototype; -`); -const buildGetDescriptor = (0, _core.template)(` - Object.getOwnPropertyDescriptor(TARGET, PROPERTY); -`); -const buildGetObjectInitializer = (0, _core.template)(` - (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), { - enumerable: true, - configurable: true, - writable: true, - initializer: function(){ - return TEMP; - } - }) -`); -const WARNING_CALLS = new WeakSet(); -function applyEnsureOrdering(path) { - const decorators = (path.isClass() ? [path, ...path.get("body.body")] : path.get("properties")).reduce((acc, prop) => acc.concat(prop.node.decorators || []), []); - const identDecorators = decorators.filter(decorator => !_core.types.isIdentifier(decorator.expression)); - if (identDecorators.length === 0) return; - return _core.types.sequenceExpression(identDecorators.map(decorator => { - const expression = decorator.expression; - const id = decorator.expression = path.scope.generateDeclaredUidIdentifier("dec"); - return _core.types.assignmentExpression("=", id, expression); - }).concat([path.node])); -} -function applyClassDecorators(classPath) { - if (!hasClassDecorators(classPath.node)) return; - const decorators = classPath.node.decorators || []; - classPath.node.decorators = null; - const name = classPath.scope.generateDeclaredUidIdentifier("class"); - return decorators.map(dec => dec.expression).reverse().reduce(function (acc, decorator) { - return buildClassDecorator({ - CLASS_REF: _core.types.cloneNode(name), - DECORATOR: _core.types.cloneNode(decorator), - INNER: acc - }).expression; - }, classPath.node); -} -function hasClassDecorators(classNode) { - return !!(classNode.decorators && classNode.decorators.length); -} -function applyMethodDecorators(path, state) { - if (!hasMethodDecorators(path.node.body.body)) return; - return applyTargetDecorators(path, state, path.node.body.body); -} -function hasMethodDecorators(body) { - return body.some(node => { - var _node$decorators; - return (_node$decorators = node.decorators) == null ? void 0 : _node$decorators.length; - }); -} -function applyObjectDecorators(path, state) { - if (!hasMethodDecorators(path.node.properties)) return; - return applyTargetDecorators(path, state, path.node.properties.filter(prop => prop.type !== "SpreadElement")); -} -function applyTargetDecorators(path, state, decoratedProps) { - const name = path.scope.generateDeclaredUidIdentifier(path.isClass() ? "class" : "obj"); - const exprs = decoratedProps.reduce(function (acc, node) { - let decorators = []; - if (node.decorators != null) { - decorators = node.decorators; - node.decorators = null; - } - if (decorators.length === 0) return acc; - if (node.computed) { - throw path.buildCodeFrameError("Computed method/property decorators are not yet supported."); - } - const property = _core.types.isLiteral(node.key) ? node.key : _core.types.stringLiteral(node.key.name); - const target = path.isClass() && !node.static ? buildClassPrototype({ - CLASS_REF: name - }).expression : name; - if (_core.types.isClassProperty(node, { - static: false - })) { - const descriptor = path.scope.generateDeclaredUidIdentifier("descriptor"); - const initializer = node.value ? _core.types.functionExpression(null, [], _core.types.blockStatement([_core.types.returnStatement(node.value)])) : _core.types.nullLiteral(); - node.value = _core.types.callExpression(state.addHelper("initializerWarningHelper"), [descriptor, _core.types.thisExpression()]); - WARNING_CALLS.add(node.value); - acc.push(_core.types.assignmentExpression("=", _core.types.cloneNode(descriptor), _core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map(dec => _core.types.cloneNode(dec.expression))), _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("enumerable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("writable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("initializer"), initializer)])]))); - } else { - acc.push(_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map(dec => _core.types.cloneNode(dec.expression))), _core.types.isObjectProperty(node) || _core.types.isClassProperty(node, { - static: true - }) ? buildGetObjectInitializer({ - TEMP: path.scope.generateDeclaredUidIdentifier("init"), - TARGET: _core.types.cloneNode(target), - PROPERTY: _core.types.cloneNode(property) - }).expression : buildGetDescriptor({ - TARGET: _core.types.cloneNode(target), - PROPERTY: _core.types.cloneNode(property) - }).expression, _core.types.cloneNode(target)])); - } - return acc; - }, []); - return _core.types.sequenceExpression([_core.types.assignmentExpression("=", _core.types.cloneNode(name), path.node), _core.types.sequenceExpression(exprs), _core.types.cloneNode(name)]); -} -function decoratedClassToExpression({ - node, - scope -}) { - if (!hasClassDecorators(node) && !hasMethodDecorators(node.body.body)) { - return; - } - const ref = node.id ? _core.types.cloneNode(node.id) : scope.generateUidIdentifier("class"); - return _core.types.variableDeclaration("let", [_core.types.variableDeclarator(ref, _core.types.toExpression(node))]); -} -const visitor = { - ExportDefaultDeclaration(path) { - const decl = path.get("declaration"); - if (!decl.isClassDeclaration()) return; - const replacement = decoratedClassToExpression(decl); - if (replacement) { - const [varDeclPath] = path.replaceWithMultiple([replacement, _core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.cloneNode(replacement.declarations[0].id), _core.types.identifier("default"))])]); - if (!decl.node.id) { - path.scope.registerDeclaration(varDeclPath); - } - } - }, - ClassDeclaration(path) { - const replacement = decoratedClassToExpression(path); - if (replacement) { - const [newPath] = path.replaceWith(replacement); - const decl = newPath.get("declarations.0"); - const id = decl.node.id; - const binding = path.scope.getOwnBinding(id.name); - binding.identifier = id; - binding.path = decl; - } - }, - ClassExpression(path, state) { - const decoratedClass = applyEnsureOrdering(path) || applyClassDecorators(path) || applyMethodDecorators(path, state); - if (decoratedClass) path.replaceWith(decoratedClass); - }, - ObjectExpression(path, state) { - const decoratedObject = applyEnsureOrdering(path) || applyObjectDecorators(path, state); - if (decoratedObject) path.replaceWith(decoratedObject); - }, - AssignmentExpression(path, state) { - if (!WARNING_CALLS.has(path.node.right)) return; - path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"), [_core.types.cloneNode(path.get("left.object").node), _core.types.stringLiteral(path.get("left.property").node.name || path.get("left.property").node.value), _core.types.cloneNode(path.get("right.arguments")[0].node), _core.types.cloneNode(path.get("right.arguments")[1].node)])); - }, - CallExpression(path, state) { - if (path.node.arguments.length !== 3) return; - if (!WARNING_CALLS.has(path.node.arguments[2])) return; - if (path.node.callee.name !== state.addHelper("defineProperty").name) { - return; - } - path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"), [_core.types.cloneNode(path.get("arguments")[0].node), _core.types.cloneNode(path.get("arguments")[1].node), _core.types.cloneNode(path.get("arguments.2.arguments")[0].node), _core.types.cloneNode(path.get("arguments.2.arguments")[1].node)])); - } -}; -var _default = visitor; -exports["default"] = _default; - -//# sourceMappingURL=transformer-legacy.js.map - - -/***/ }), - -/***/ 57765: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxDoExpressions = __nccwpck_require__(63861); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "proposal-do-expressions", - inherits: _pluginSyntaxDoExpressions.default, - visitor: { - DoExpression: { - exit(path) { - const { - node - } = path; - if (node.async) { - return; - } - const body = node.body.body; - if (body.length) { - path.replaceExpressionWithStatements(body); - } else { - path.replaceWith(path.scope.buildUndefinedNode()); - } - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 69671: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxExportDefaultFrom = __nccwpck_require__(65550); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "proposal-export-default-from", - inherits: _pluginSyntaxExportDefaultFrom.default, - visitor: { - ExportNamedDeclaration(path) { - const { - node - } = path; - const { - specifiers, - source - } = node; - if (!_core.types.isExportDefaultSpecifier(specifiers[0])) return; - const { - exported - } = specifiers.shift(); - if (specifiers.every(s => _core.types.isExportSpecifier(s))) { - specifiers.unshift(_core.types.exportSpecifier(_core.types.identifier("default"), exported)); - return; - } - const nodes = [_core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.identifier("default"), exported)], _core.types.cloneNode(source))]; - if (specifiers.length >= 1) { - nodes.push(node); - } - path.replaceWithMultiple(nodes); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 22956: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxFunctionBind = __nccwpck_require__(60162); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - function getTempId(scope) { - let id = scope.path.getData("functionBind"); - if (id) return _core.types.cloneNode(id); - id = scope.generateDeclaredUidIdentifier("context"); - return scope.path.setData("functionBind", id); - } - function getObject(bind) { - if (_core.types.isExpression(bind.object)) { - return bind.object; - } - return bind.callee.object; - } - function getStaticContext(bind, scope) { - const object = getObject(bind); - return scope.isStatic(object) && (_core.types.isSuper(object) ? _core.types.thisExpression() : object); - } - function inferBindContext(bind, scope) { - const staticContext = getStaticContext(bind, scope); - if (staticContext) return _core.types.cloneNode(staticContext); - const tempId = getTempId(scope); - if (bind.object) { - bind.callee = _core.types.sequenceExpression([_core.types.assignmentExpression("=", tempId, bind.object), bind.callee]); - } else if (_core.types.isMemberExpression(bind.callee)) { - bind.callee.object = _core.types.assignmentExpression("=", tempId, bind.callee.object); - } - return _core.types.cloneNode(tempId); - } - return { - name: "proposal-function-bind", - inherits: _pluginSyntaxFunctionBind.default, - visitor: { - CallExpression({ - node, - scope - }) { - const bind = node.callee; - if (!_core.types.isBindExpression(bind)) return; - const context = inferBindContext(bind, scope); - node.callee = _core.types.memberExpression(bind.callee, _core.types.identifier("call")); - node.arguments.unshift(context); - }, - BindExpression(path) { - const { - node, - scope - } = path; - const context = inferBindContext(node, scope); - path.replaceWith(_core.types.callExpression(_core.types.memberExpression(node.callee, _core.types.identifier("bind")), [context])); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 37606: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxPartialApplication = __nccwpck_require__(61816); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - function hasArgumentPlaceholder(node) { - return node.arguments.some(arg => _core.types.isArgumentPlaceholder(arg)); - } - function unwrapArguments({ - arguments: args - }, scope) { - const init = []; - for (let i = 0; i < args.length; i++) { - const node = args[i]; - if (!_core.types.isArgumentPlaceholder(node) && !_core.types.isImmutable(node)) { - const id = scope.generateUidIdentifierBasedOnNode(node, "param"); - scope.push({ - id - }); - if (_core.types.isSpreadElement(node)) { - init.push(_core.types.assignmentExpression("=", _core.types.cloneNode(id), _core.types.arrayExpression([_core.types.spreadElement(node.argument)]))); - node.argument = _core.types.cloneNode(id); - } else { - init.push(_core.types.assignmentExpression("=", _core.types.cloneNode(id), node)); - args[i] = _core.types.cloneNode(id); - } - } - } - return init; - } - function replacePlaceholders(node, scope) { - const placeholders = []; - const newArgs = []; - node.arguments.forEach(arg => { - if (_core.types.isArgumentPlaceholder(arg)) { - const id = scope.generateUid("_argPlaceholder"); - placeholders.push(_core.types.identifier(id)); - newArgs.push(_core.types.identifier(id)); - } else { - newArgs.push(arg); - } - }); - return [placeholders, newArgs]; - } - return { - name: "proposal-partial-application", - inherits: _pluginSyntaxPartialApplication.default, - visitor: { - CallExpression(path) { - if (!hasArgumentPlaceholder(path.node)) { - return; - } - const { - node, - scope - } = path; - const functionLVal = path.scope.generateUidIdentifierBasedOnNode(node.callee); - const sequenceParts = []; - const argsInitializers = unwrapArguments(node, scope); - const [placeholdersParams, args] = replacePlaceholders(node, scope); - scope.push({ - id: functionLVal - }); - if (node.callee.type === "MemberExpression") { - const { - object: receiver, - property - } = node.callee; - const receiverLVal = path.scope.generateUidIdentifierBasedOnNode(receiver); - scope.push({ - id: receiverLVal - }); - sequenceParts.push(_core.types.assignmentExpression("=", _core.types.cloneNode(receiverLVal), receiver), _core.types.assignmentExpression("=", _core.types.cloneNode(functionLVal), _core.types.memberExpression(_core.types.cloneNode(receiverLVal), property)), ...argsInitializers, _core.types.functionExpression(_core.types.isIdentifier(property) ? _core.types.cloneNode(property) : path.scope.generateUidIdentifierBasedOnNode(property), placeholdersParams, _core.types.blockStatement([_core.types.returnStatement(_core.types.callExpression(_core.types.memberExpression(_core.types.cloneNode(functionLVal), _core.types.identifier("call")), [_core.types.cloneNode(receiverLVal), ...args]))], []), false, false)); - } else { - sequenceParts.push(_core.types.assignmentExpression("=", _core.types.cloneNode(functionLVal), node.callee), ...argsInitializers, _core.types.functionExpression(_core.types.isIdentifier(node.callee) ? _core.types.cloneNode(node.callee) : path.scope.generateUidIdentifierBasedOnNode(node.callee), placeholdersParams, _core.types.blockStatement([_core.types.returnStatement(_core.types.callExpression(_core.types.cloneNode(functionLVal), args))], []), false, false)); - } - path.replaceWith(_core.types.sequenceExpression(sequenceParts)); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 40787: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _core = __nccwpck_require__(27324); -function isConciseArrowExpression(node) { - return _core.types.isArrowFunctionExpression(node) && _core.types.isExpression(node.body) && !node.async; -} -const buildOptimizedSequenceExpression = ({ - call, - path, - placeholder -}) => { - const { - callee: calledExpression - } = call; - const pipelineLeft = path.node.left; - const assign = _core.types.assignmentExpression("=", _core.types.cloneNode(placeholder), pipelineLeft); - const expressionIsArrow = isConciseArrowExpression(calledExpression); - if (expressionIsArrow) { - let param; - let optimizeArrow = true; - const { - params - } = calledExpression; - if (params.length === 1 && _core.types.isIdentifier(params[0])) { - param = params[0]; - } else if (params.length > 0) { - optimizeArrow = false; - } - if (optimizeArrow && !param) { - return _core.types.sequenceExpression([pipelineLeft, calledExpression.body]); - } else if (param) { - path.scope.push({ - id: _core.types.cloneNode(placeholder) - }); - path.get("right").scope.rename(param.name, placeholder.name); - return _core.types.sequenceExpression([assign, calledExpression.body]); - } - } else if (_core.types.isIdentifier(calledExpression, { - name: "eval" - })) { - const evalSequence = _core.types.sequenceExpression([_core.types.numericLiteral(0), calledExpression]); - call.callee = evalSequence; - } - path.scope.push({ - id: _core.types.cloneNode(placeholder) - }); - return _core.types.sequenceExpression([assign, call]); -}; -var _default = buildOptimizedSequenceExpression; -exports["default"] = _default; - -//# sourceMappingURL=buildOptimizedSequenceExpression.js.map - - -/***/ }), - -/***/ 9783: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _core = __nccwpck_require__(27324); -var _buildOptimizedSequenceExpression = __nccwpck_require__(40787); -const fsharpVisitor = { - BinaryExpression(path) { - const { - scope, - node - } = path; - const { - operator, - left, - right - } = node; - if (operator !== "|>") return; - const placeholder = scope.generateUidIdentifierBasedOnNode(left); - const call = right.type === "AwaitExpression" ? _core.types.awaitExpression(_core.types.cloneNode(placeholder)) : _core.types.callExpression(right, [_core.types.cloneNode(placeholder)]); - const sequence = (0, _buildOptimizedSequenceExpression.default)({ - placeholder, - call, - path: path - }); - path.replaceWith(sequence); - } -}; -var _default = fsharpVisitor; -exports["default"] = _default; - -//# sourceMappingURL=fsharpVisitor.js.map - - -/***/ }), - -/***/ 33008: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _core = __nccwpck_require__(27324); -const topicReferenceVisitor = { - exit(path, state) { - if (path.isTopicReference()) { - state.topicReferences.push(path); - } else { - if (state.topicReferences.length === 0 && !state.sideEffectsBeforeFirstTopicReference && !path.isPure()) { - state.sideEffectsBeforeFirstTopicReference = true; - } - } - }, - "ClassBody|Function"(_, state) { - if (state.topicReferences.length === 0) { - state.sideEffectsBeforeFirstTopicReference = true; - } - } -}; -const visitor = { - BinaryExpression: { - exit(path) { - const { - scope, - node - } = path; - if (node.operator !== "|>") { - return; - } - const pipeBodyPath = path.get("right"); - if (pipeBodyPath.node.type === "TopicReference") { - path.replaceWith(node.left); - return; - } - const visitorState = { - topicReferences: [], - sideEffectsBeforeFirstTopicReference: pipeBodyPath.isFunction() - }; - pipeBodyPath.traverse(topicReferenceVisitor, visitorState); - if (visitorState.topicReferences.length === 1 && (!visitorState.sideEffectsBeforeFirstTopicReference || path.scope.isPure(node.left, true))) { - visitorState.topicReferences[0].replaceWith(node.left); - path.replaceWith(node.right); - return; - } - const topicVariable = scope.generateUidIdentifierBasedOnNode(node); - scope.push({ - id: topicVariable - }); - visitorState.topicReferences.forEach(path => path.replaceWith(_core.types.cloneNode(topicVariable))); - path.replaceWith(_core.types.sequenceExpression([_core.types.assignmentExpression("=", _core.types.cloneNode(topicVariable), node.left), node.right])); - } - } -}; -var _default = visitor; -exports["default"] = _default; - -//# sourceMappingURL=hackVisitor.js.map - - -/***/ }), - -/***/ 35825: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxPipelineOperator = __nccwpck_require__(25417); -var _minimalVisitor = __nccwpck_require__(26167); -var _hackVisitor = __nccwpck_require__(33008); -var _fsharpVisitor = __nccwpck_require__(9783); -var _smartVisitor = __nccwpck_require__(28521); -const visitorsPerProposal = { - minimal: _minimalVisitor.default, - hack: _hackVisitor.default, - fsharp: _fsharpVisitor.default, - smart: _smartVisitor.default -}; -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - const { - proposal - } = options; - if (proposal === "smart") { - console.warn(`The smart-mix pipe operator is deprecated. Use "proposal": "hack" instead.`); - } - return { - name: "proposal-pipeline-operator", - inherits: _pluginSyntaxPipelineOperator.default, - visitor: visitorsPerProposal[options.proposal] - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 26167: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _core = __nccwpck_require__(27324); -var _buildOptimizedSequenceExpression = __nccwpck_require__(40787); -const minimalVisitor = { - BinaryExpression(path) { - const { - scope, - node - } = path; - const { - operator, - left, - right - } = node; - if (operator !== "|>") return; - const placeholder = scope.generateUidIdentifierBasedOnNode(left); - const call = _core.types.callExpression(right, [_core.types.cloneNode(placeholder)]); - path.replaceWith((0, _buildOptimizedSequenceExpression.default)({ - placeholder, - call, - path: path - })); - } -}; -var _default = minimalVisitor; -exports["default"] = _default; - -//# sourceMappingURL=minimalVisitor.js.map - - -/***/ }), - -/***/ 28521: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _core = __nccwpck_require__(27324); -const updateTopicReferenceVisitor = { - PipelinePrimaryTopicReference(path) { - path.replaceWith(_core.types.cloneNode(this.topicId)); - }, - PipelineTopicExpression(path) { - path.skip(); - } -}; -const smartVisitor = { - BinaryExpression(path) { - const { - scope - } = path; - const { - node - } = path; - const { - operator, - left, - right - } = node; - if (operator !== "|>") return; - const placeholder = scope.generateUidIdentifierBasedOnNode(left); - scope.push({ - id: placeholder - }); - let call; - if (_core.types.isPipelineTopicExpression(right)) { - path.get("right").traverse(updateTopicReferenceVisitor, { - topicId: placeholder - }); - call = right.expression; - } else { - let callee = right.callee; - if (_core.types.isIdentifier(callee, { - name: "eval" - })) { - callee = _core.types.sequenceExpression([_core.types.numericLiteral(0), callee]); - } - call = _core.types.callExpression(callee, [_core.types.cloneNode(placeholder)]); - } - path.replaceWith(_core.types.sequenceExpression([_core.types.assignmentExpression("=", _core.types.cloneNode(placeholder), left), call])); - } -}; -var _default = smartVisitor; -exports["default"] = _default; - -//# sourceMappingURL=smartVisitor.js.map - - -/***/ }), - -/***/ 92091: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxRecordAndTuple = __nccwpck_require__(96412); -var _core = __nccwpck_require__(27324); -var _helperModuleImports = __nccwpck_require__(45423); -var _helperValidatorOption = __nccwpck_require__(97645); -const v = new _helperValidatorOption.OptionValidator("@babel/plugin-proposal-record-and-tuple"); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - const polyfillModuleName = v.validateStringOption("polyfillModuleName", options.polyfillModuleName, "@bloomberg/record-tuple-polyfill"); - const shouldImportPolyfill = v.validateBooleanOption("importPolyfill", options.importPolyfill, !!options.polyfillModuleName); - const importCaches = new WeakMap(); - function getOr(map, key, getDefault) { - let value = map.get(key); - if (!value) map.set(key, value = getDefault()); - return value; - } - function getBuiltIn(name, programPath) { - if (!shouldImportPolyfill) return _core.types.identifier(name); - if (!programPath) { - throw new Error("Internal error: unable to find the Program node."); - } - const cacheKey = `${name}:${(0, _helperModuleImports.isModule)(programPath)}`; - const cache = getOr(importCaches, programPath.node, () => new Map()); - const localBindingName = getOr(cache, cacheKey, () => { - return (0, _helperModuleImports.addNamed)(programPath, name, polyfillModuleName, { - importedInterop: "uncompiled" - }).name; - }); - return _core.types.identifier(localBindingName); - } - return { - name: "proposal-record-and-tuple", - inherits: _pluginSyntaxRecordAndTuple.default, - visitor: { - Program(path, state) { - state.programPath = path; - }, - RecordExpression(path, state) { - const record = getBuiltIn("Record", state.programPath); - const object = _core.types.objectExpression(path.node.properties); - const wrapped = _core.types.callExpression(record, [object]); - path.replaceWith(wrapped); - }, - TupleExpression(path, state) { - const tuple = getBuiltIn("Tuple", state.programPath); - const wrapped = _core.types.callExpression(tuple, path.node.elements); - path.replaceWith(wrapped); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 63936: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - let { - version - } = options; - { - const { - legacy - } = options; - if (legacy !== undefined) { - if (typeof legacy !== "boolean") { - throw new Error(".legacy must be a boolean."); - } - if (version !== undefined) { - throw new Error("You can either use the .legacy or the .version option, not both."); - } - } - if (version === undefined) { - version = legacy ? "legacy" : "2018-09"; - } else if (version !== "2023-05" && version !== "2023-01" && version !== "2022-03" && version !== "2021-12" && version !== "2018-09" && version !== "legacy") { - throw new Error("Unsupported decorators version: " + version); - } - var { - decoratorsBeforeExport - } = options; - if (decoratorsBeforeExport === undefined) { - if (version === "2021-12" || version === "2022-03") { - decoratorsBeforeExport = false; - } else if (version === "2018-09") { - throw new Error("The decorators plugin, when .version is '2018-09' or not specified," + " requires a 'decoratorsBeforeExport' option, whose value must be a boolean."); - } - } else { - if (version === "legacy" || version === "2022-03" || version === "2023-01") { - throw new Error(`'decoratorsBeforeExport' can't be used with ${version} decorators.`); - } - if (typeof decoratorsBeforeExport !== "boolean") { - throw new Error("'decoratorsBeforeExport' must be a boolean."); - } - } - } - return { - name: "syntax-decorators", - manipulateOptions({ - generatorOpts - }, parserOpts) { - if (version === "legacy") { - parserOpts.plugins.push("decorators-legacy"); - } else { - if (version === "2023-01" || version === "2023-05") { - parserOpts.plugins.push(["decorators", { - allowCallParenthesized: false - }], "decoratorAutoAccessors"); - } else if (version === "2022-03") { - parserOpts.plugins.push(["decorators", { - decoratorsBeforeExport: false, - allowCallParenthesized: false - }], "decoratorAutoAccessors"); - } else if (version === "2021-12") { - parserOpts.plugins.push(["decorators", { - decoratorsBeforeExport - }], "decoratorAutoAccessors"); - generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport; - } else if (version === "2018-09") { - parserOpts.plugins.push(["decorators", { - decoratorsBeforeExport - }]); - generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport; - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 63861: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "syntax-do-expressions", - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("doExpressions"); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 65550: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "syntax-export-default-from", - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("exportDefaultFrom"); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 60162: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "syntax-function-bind", - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("functionBind"); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 31373: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "syntax-import-assertions", - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("importAssertions"); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 25027: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)((api, { - deprecatedAssertSyntax -}) => { - api.assertVersion("^7.22.0"); - if (deprecatedAssertSyntax != null && typeof deprecatedAssertSyntax !== "boolean") { - throw new Error("'deprecatedAssertSyntax' must be a boolean, if specified."); - } - return { - name: "syntax-import-attributes", - manipulateOptions({ - parserOpts, - generatorOpts - }) { - var _generatorOpts$import; - (_generatorOpts$import = generatorOpts.importAttributesKeyword) != null ? _generatorOpts$import : generatorOpts.importAttributesKeyword = "with"; - parserOpts.plugins.push(["importAttributes", { - deprecatedAssertSyntax: Boolean(deprecatedAssertSyntax) - }]); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 36733: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "syntax-jsx", - manipulateOptions(opts, parserOpts) { - { - if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) { - return; - } - } - parserOpts.plugins.push("jsx"); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 61816: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "syntax-partial-application", - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("partialApplication"); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 25417: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -const PIPELINE_PROPOSALS = ["minimal", "fsharp", "hack", "smart"]; -const TOPIC_TOKENS = ["^^", "@@", "^", "%", "#"]; -const documentationURL = "https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator"; -var _default = (0, _helperPluginUtils.declare)((api, { - proposal, - topicToken -}) => { - api.assertVersion(7); - if (typeof proposal !== "string" || !PIPELINE_PROPOSALS.includes(proposal)) { - const proposalList = PIPELINE_PROPOSALS.map(p => `"${p}"`).join(", "); - throw new Error(`The pipeline plugin requires a "proposal" option. "proposal" must be one of: ${proposalList}. See <${documentationURL}>.`); - } - if (proposal === "hack" && !TOPIC_TOKENS.includes(topicToken)) { - const topicTokenList = TOPIC_TOKENS.map(t => `"${t}"`).join(", "); - throw new Error(`The pipeline plugin in "proposal": "hack" mode also requires a "topicToken" option. "topicToken" must be one of: ${topicTokenList}. See <${documentationURL}>.`); - } - return { - name: "syntax-pipeline-operator", - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push(["pipelineOperator", { - proposal, - topicToken - }]); - opts.generatorOpts.topicToken = topicToken; - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 96412: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - return { - name: "syntax-record-and-tuple", - manipulateOptions(opts, parserOpts) { - opts.generatorOpts.recordAndTupleSyntaxType = options.syntaxType; - parserOpts.plugins.push(["recordAndTuple", { - syntaxType: options.syntaxType - }]); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 86855: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -{ - var removePlugin = function (plugins, name) { - const indices = []; - plugins.forEach((plugin, i) => { - const n = Array.isArray(plugin) ? plugin[0] : plugin; - if (n === name) { - indices.unshift(i); - } - }); - for (const i of indices) { - plugins.splice(i, 1); - } - }; -} -var _default = (0, _helperPluginUtils.declare)((api, opts) => { - api.assertVersion(7); - const { - disallowAmbiguousJSXLike, - dts - } = opts; - { - var { - isTSX - } = opts; - } - return { - name: "syntax-typescript", - manipulateOptions(opts, parserOpts) { - { - const { - plugins - } = parserOpts; - removePlugin(plugins, "flow"); - removePlugin(plugins, "jsx"); - plugins.push("objectRestSpread", "classProperties"); - if (isTSX) { - plugins.push("jsx"); - } - } - parserOpts.plugins.push(["typescript", { - disallowAmbiguousJSXLike, - dts - }]); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 92680: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -{ - var removePlugin = function (plugins, name) { - const indices = []; - plugins.forEach((plugin, i) => { - const n = Array.isArray(plugin) ? plugin[0] : plugin; - if (n === name) { - indices.unshift(i); - } - }); - for (const i of indices) { - plugins.splice(i, 1); - } - }; -} -var _default = (0, _helperPluginUtils.declare)((api, opts) => { - api.assertVersion(7); - const { - disallowAmbiguousJSXLike, - dts - } = opts; - { - var { - isTSX - } = opts; - } - return { - name: "syntax-typescript", - manipulateOptions(opts, parserOpts) { - { - const { - plugins - } = parserOpts; - removePlugin(plugins, "flow"); - removePlugin(plugins, "jsx"); - plugins.push("objectRestSpread", "classProperties"); - if (isTSX) { - plugins.push("jsx"); - } - } - parserOpts.plugins.push(["typescript", { - disallowAmbiguousJSXLike, - dts - }]); - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 94308: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(37179); - -var _helperPluginUtils = __nccwpck_require__(36028); - -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ - name: "syntax-unicode-sets-regex", - feature: "unicodeSetsFlag_syntax", - - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("regexpUnicodeSets"); - } - - }); -}); - -exports["default"] = _default; - -/***/ }), - -/***/ 89787: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption; - api.assertVersion(7); - const noNewArrows = (_api$assumption = api.assumption("noNewArrows")) != null ? _api$assumption : !options.spec; - return { - name: "transform-arrow-functions", - visitor: { - ArrowFunctionExpression(path) { - if (!path.isArrowFunctionExpression()) return; - { - path.arrowFunctionToExpression({ - allowInsertArrow: false, - noNewArrows, - specCompliant: !noNewArrows - }); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 83382: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _core = __nccwpck_require__(27324); -const buildForAwait = (0, _core.template)(` - async function wrapper() { - var ITERATOR_ABRUPT_COMPLETION = false; - var ITERATOR_HAD_ERROR_KEY = false; - var ITERATOR_ERROR_KEY; - try { - for ( - var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY; - ITERATOR_ABRUPT_COMPLETION = !(STEP_KEY = await ITERATOR_KEY.next()).done; - ITERATOR_ABRUPT_COMPLETION = false - ) { - } - } catch (err) { - ITERATOR_HAD_ERROR_KEY = true; - ITERATOR_ERROR_KEY = err; - } finally { - try { - if (ITERATOR_ABRUPT_COMPLETION && ITERATOR_KEY.return != null) { - await ITERATOR_KEY.return(); - } - } finally { - if (ITERATOR_HAD_ERROR_KEY) { - throw ITERATOR_ERROR_KEY; - } - } - } - } -`); -function _default(path, { - getAsyncIterator -}) { - const { - node, - scope, - parent - } = path; - const stepKey = scope.generateUidIdentifier("step"); - const stepValue = _core.types.memberExpression(stepKey, _core.types.identifier("value")); - const left = node.left; - let declar; - if (_core.types.isIdentifier(left) || _core.types.isPattern(left) || _core.types.isMemberExpression(left)) { - declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, stepValue)); - } else if (_core.types.isVariableDeclaration(left)) { - declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, stepValue)]); - } - let template = buildForAwait({ - ITERATOR_HAD_ERROR_KEY: scope.generateUidIdentifier("didIteratorError"), - ITERATOR_ABRUPT_COMPLETION: scope.generateUidIdentifier("iteratorAbruptCompletion"), - ITERATOR_ERROR_KEY: scope.generateUidIdentifier("iteratorError"), - ITERATOR_KEY: scope.generateUidIdentifier("iterator"), - GET_ITERATOR: getAsyncIterator, - OBJECT: node.right, - STEP_KEY: _core.types.cloneNode(stepKey) - }); - template = template.body.body; - const isLabeledParent = _core.types.isLabeledStatement(parent); - const tryBody = template[3].block.body; - const loop = tryBody[0]; - if (isLabeledParent) { - tryBody[0] = _core.types.labeledStatement(parent.label, loop); - } - return { - replaceParent: isLabeledParent, - node: template, - declar, - loop - }; -} - -//# sourceMappingURL=for-await.js.map - - -/***/ }), - -/***/ 45879: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperRemapAsyncToGenerator = __nccwpck_require__(74135); -var _pluginSyntaxAsyncGenerators = __nccwpck_require__(33113); -var _core = __nccwpck_require__(27324); -var _forAwait = __nccwpck_require__(83382); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - const yieldStarVisitor = _core.traverse.visitors.merge([{ - ArrowFunctionExpression(path) { - path.skip(); - }, - YieldExpression({ - node - }, state) { - if (!node.delegate) return; - const asyncIter = _core.types.callExpression(state.addHelper("asyncIterator"), [node.argument]); - node.argument = _core.types.callExpression(state.addHelper("asyncGeneratorDelegate"), [asyncIter, state.addHelper("awaitAsyncGenerator")]); - } - }, _helperEnvironmentVisitor.default]); - const forAwaitVisitor = _core.traverse.visitors.merge([{ - ArrowFunctionExpression(path) { - path.skip(); - }, - ForOfStatement(path, { - file - }) { - const { - node - } = path; - if (!node.await) return; - const build = (0, _forAwait.default)(path, { - getAsyncIterator: file.addHelper("asyncIterator") - }); - const { - declar, - loop - } = build; - const block = loop.body; - path.ensureBlock(); - if (declar) { - block.body.push(declar); - if (path.node.body.body.length) { - block.body.push(_core.types.blockStatement(path.node.body.body)); - } - } else { - block.body.push(...path.node.body.body); - } - _core.types.inherits(loop, node); - _core.types.inherits(loop.body, node.body); - const p = build.replaceParent ? path.parentPath : path; - p.replaceWithMultiple(build.node); - p.scope.parent.crawl(); - } - }, _helperEnvironmentVisitor.default]); - const visitor = { - Function(path, state) { - if (!path.node.async) return; - path.traverse(forAwaitVisitor, state); - if (!path.node.generator) return; - path.traverse(yieldStarVisitor, state); - (0, _helperRemapAsyncToGenerator.default)(path, { - wrapAsync: state.addHelper("wrapAsyncGenerator"), - wrapAwait: state.addHelper("awaitAsyncGenerator") - }); - } - }; - return { - name: "transform-async-generator-functions", - inherits: _pluginSyntaxAsyncGenerators.default, - visitor: { - Program(path, state) { - path.traverse(visitor, state); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 75891: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperRemapAsyncToGenerator = __nccwpck_require__(74135); -var _helperModuleImports = __nccwpck_require__(45423); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _api$assumption2; - api.assertVersion(7); - const { - method, - module - } = options; - const noNewArrows = (_api$assumption = api.assumption("noNewArrows")) != null ? _api$assumption : true; - const ignoreFunctionLength = (_api$assumption2 = api.assumption("ignoreFunctionLength")) != null ? _api$assumption2 : false; - if (method && module) { - return { - name: "transform-async-to-generator", - visitor: { - Function(path, state) { - if (!path.node.async || path.node.generator) return; - let wrapAsync = state.methodWrapper; - if (wrapAsync) { - wrapAsync = _core.types.cloneNode(wrapAsync); - } else { - wrapAsync = state.methodWrapper = (0, _helperModuleImports.addNamed)(path, method, module); - } - (0, _helperRemapAsyncToGenerator.default)(path, { - wrapAsync - }, noNewArrows, ignoreFunctionLength); - } - } - }; - } - return { - name: "transform-async-to-generator", - visitor: { - Function(path, state) { - if (!path.node.async || path.node.generator) return; - (0, _helperRemapAsyncToGenerator.default)(path, { - wrapAsync: state.addHelper("asyncToGenerator") - }, noNewArrows, ignoreFunctionLength); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 98022: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - function transformStatementList(paths) { - for (const path of paths) { - if (!path.isFunctionDeclaration()) continue; - const func = path.node; - const declar = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(func.id, _core.types.toExpression(func))]); - declar._blockHoist = 2; - func.id = null; - path.replaceWith(declar); - } - } - return { - name: "transform-block-scoped-functions", - visitor: { - BlockStatement(path) { - const { - node, - parent - } = path; - if (_core.types.isFunction(parent, { - body: node - }) || _core.types.isExportDeclaration(parent)) { - return; - } - transformStatementList(path.get("body")); - }, - SwitchCase(path) { - transformStatementList(path.get("consequent")); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 9755: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.annexB33FunctionsVisitor = void 0; -exports.isVarScope = isVarScope; -var _core = __nccwpck_require__(27324); -const annexB33FunctionsVisitor = { - VariableDeclaration(path) { - if (isStrict(path)) return; - if (path.node.kind !== "var") return; - const varScope = path.scope.getFunctionParent() || path.scope.getProgramParent(); - varScope.path.traverse(functionsToVarVisitor, { - names: Object.keys(path.getBindingIdentifiers()) - }); - }, - BlockStatement(path) { - if (isStrict(path)) return; - if (_core.types.isFunction(path.parent, { - body: path.node - })) return; - transformStatementList(path.get("body")); - }, - SwitchCase(path) { - if (isStrict(path)) return; - transformStatementList(path.get("consequent")); - } -}; -exports.annexB33FunctionsVisitor = annexB33FunctionsVisitor; -function transformStatementList(paths) { - outer: for (const path of paths) { - if (!path.isFunctionDeclaration()) continue; - if (path.node.async || path.node.generator) return; - const { - scope - } = path.parentPath; - if (isVarScope(scope)) return; - const { - name - } = path.node.id; - let currScope = scope; - do { - if (currScope.parent.hasOwnBinding(name)) continue outer; - currScope = currScope.parent; - } while (!isVarScope(currScope)); - maybeTransformBlockScopedFunction(path); - } -} -function maybeTransformBlockScopedFunction(path) { - const { - node, - parentPath: { - scope - } - } = path; - const { - id - } = node; - scope.removeOwnBinding(id.name); - node.id = null; - const varNode = _core.types.variableDeclaration("var", [_core.types.variableDeclarator(id, _core.types.toExpression(node))]); - varNode._blockHoist = 2; - const [varPath] = path.replaceWith(varNode); - scope.registerDeclaration(varPath); -} -const functionsToVarVisitor = { - Scope(path, { - names - }) { - for (const name of names) { - const binding = path.scope.getOwnBinding(name); - if (binding && binding.kind === "hoisted") { - maybeTransformBlockScopedFunction(binding.path); - } - } - }, - "Expression|Declaration"(path) { - path.skip(); - } -}; -function isVarScope(scope) { - return scope.path.isFunctionParent() || scope.path.isProgram(); -} -function isStrict(path) { - return !!path.find(({ - node - }) => { - var _node$directives; - if (_core.types.isProgram(node)) { - if (node.sourceType === "module") return true; - } else if (_core.types.isClass(node)) { - return true; - } else if (!_core.types.isBlockStatement(node)) { - return false; - } - return (_node$directives = node.directives) == null ? void 0 : _node$directives.some(directive => directive.value.value === "use strict"); - }); -} - -//# sourceMappingURL=annex-B_3_3.js.map - - -/***/ }), - -/***/ 71587: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _loop = __nccwpck_require__(37428); -var _validation = __nccwpck_require__(26048); -var _annexB_3_ = __nccwpck_require__(9755); -var _default = (0, _helperPluginUtils.declare)((api, opts) => { - api.assertVersion(7); - const { - throwIfClosureRequired = false, - tdz: tdzEnabled = false - } = opts; - if (typeof throwIfClosureRequired !== "boolean") { - throw new Error(`.throwIfClosureRequired must be a boolean, or undefined`); - } - if (typeof tdzEnabled !== "boolean") { - throw new Error(`.tdz must be a boolean, or undefined`); - } - return { - name: "transform-block-scoping", - visitor: _core.traverse.visitors.merge([_annexB_3_.annexB33FunctionsVisitor, { - Loop(path, state) { - const isForStatement = path.isForStatement(); - const headPath = isForStatement ? path.get("init") : path.isForXStatement() ? path.get("left") : null; - let needsBodyWrap = false; - const markNeedsBodyWrap = () => { - if (throwIfClosureRequired) { - throw path.buildCodeFrameError("Compiling let/const in this block would add a closure " + "(throwIfClosureRequired)."); - } - needsBodyWrap = true; - }; - const body = path.get("body"); - let bodyScope; - if (body.isBlockStatement()) { - bodyScope = body.scope; - const bindings = (0, _loop.getLoopBodyBindings)(path); - for (const binding of bindings) { - const { - capturedInClosure - } = (0, _loop.getUsageInBody)(binding, path); - if (capturedInClosure) markNeedsBodyWrap(); - } - } - const captured = []; - const updatedBindingsUsages = new Map(); - if (headPath && isBlockScoped(headPath.node)) { - const names = Object.keys(headPath.getBindingIdentifiers()); - const headScope = headPath.scope; - for (let name of names) { - var _bodyScope; - if ((_bodyScope = bodyScope) != null && _bodyScope.hasOwnBinding(name)) continue; - let binding = headScope.getOwnBinding(name); - if (!binding) { - headScope.crawl(); - binding = headScope.getOwnBinding(name); - } - const { - usages, - capturedInClosure, - hasConstantViolations - } = (0, _loop.getUsageInBody)(binding, path); - if (headScope.parent.hasBinding(name) || headScope.parent.hasGlobal(name)) { - const newName = headScope.generateUid(name); - headScope.rename(name, newName); - name = newName; - } - if (capturedInClosure) { - markNeedsBodyWrap(); - captured.push(name); - } - if (isForStatement && hasConstantViolations) { - updatedBindingsUsages.set(name, usages); - } - } - } - if (needsBodyWrap) { - const varPath = (0, _loop.wrapLoopBody)(path, captured, updatedBindingsUsages); - if (headPath != null && headPath.isVariableDeclaration()) { - transformBlockScopedVariable(headPath, state, tdzEnabled); - } - varPath.get("declarations.0.init").unwrapFunctionEnvironment(); - } - }, - VariableDeclaration(path, state) { - transformBlockScopedVariable(path, state, tdzEnabled); - }, - ClassDeclaration(path) { - const { - id - } = path.node; - if (!id) return; - const { - scope - } = path.parentPath; - if (!(0, _annexB_3_.isVarScope)(scope) && scope.parent.hasBinding(id.name, { - noUids: true - })) { - path.scope.rename(id.name); - } - } - }]) - }; -}); -exports["default"] = _default; -const conflictingFunctionsVisitor = { - Scope(path, { - names - }) { - for (const name of names) { - const binding = path.scope.getOwnBinding(name); - if (binding && binding.kind === "hoisted") { - path.scope.rename(name); - } - } - }, - "Expression|Declaration"(path) { - path.skip(); - } -}; -function transformBlockScopedVariable(path, state, tdzEnabled) { - if (!isBlockScoped(path.node)) return; - const dynamicTDZNames = (0, _validation.validateUsage)(path, state, tdzEnabled); - path.node.kind = "var"; - const bindingNames = Object.keys(path.getBindingIdentifiers()); - for (const name of bindingNames) { - const binding = path.scope.getOwnBinding(name); - if (!binding) continue; - binding.kind = "var"; - } - if (isInLoop(path) && !(0, _loop.isVarInLoopHead)(path) || dynamicTDZNames.length > 0) { - for (const decl of path.node.declarations) { - var _decl$init; - (_decl$init = decl.init) != null ? _decl$init : decl.init = path.scope.buildUndefinedNode(); - } - } - const blockScope = path.scope; - const varScope = blockScope.getFunctionParent() || blockScope.getProgramParent(); - if (varScope !== blockScope) { - for (const name of bindingNames) { - let newName = name; - if (blockScope.parent.hasBinding(name, { - noUids: true - }) || blockScope.parent.hasGlobal(name)) { - newName = blockScope.generateUid(name); - blockScope.rename(name, newName); - } - blockScope.moveBindingTo(newName, varScope); - } - } - blockScope.path.traverse(conflictingFunctionsVisitor, { - names: bindingNames - }); - for (const name of dynamicTDZNames) { - path.scope.push({ - id: _core.types.identifier(name), - init: state.addHelper("temporalUndefined") - }); - } -} -function isLetOrConst(kind) { - return kind === "let" || kind === "const"; -} -function isInLoop(path) { - if (!path.parentPath) return false; - if (path.parentPath.isLoop()) return true; - if (path.parentPath.isFunctionParent()) return false; - return isInLoop(path.parentPath); -} -function isBlockScoped(node) { - if (!_core.types.isVariableDeclaration(node)) return false; - if (node[_core.types.BLOCK_SCOPED_SYMBOL]) { - return true; - } - if (!isLetOrConst(node.kind) && node.kind !== "using") { - return false; - } - return true; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 37428: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getLoopBodyBindings = getLoopBodyBindings; -exports.getUsageInBody = getUsageInBody; -exports.isVarInLoopHead = isVarInLoopHead; -exports.wrapLoopBody = wrapLoopBody; -var _core = __nccwpck_require__(27324); -const collectLoopBodyBindingsVisitor = { - "Expression|Declaration|Loop"(path) { - path.skip(); - }, - Scope(path, state) { - if (path.isFunctionParent()) path.skip(); - const { - bindings - } = path.scope; - for (const name of Object.keys(bindings)) { - const binding = bindings[name]; - if (binding.kind === "let" || binding.kind === "const" || binding.kind === "hoisted") { - state.blockScoped.push(binding); - } - } - } -}; -function getLoopBodyBindings(loopPath) { - const state = { - blockScoped: [] - }; - loopPath.traverse(collectLoopBodyBindingsVisitor, state); - return state.blockScoped; -} -function getUsageInBody(binding, loopPath) { - const seen = new WeakSet(); - let capturedInClosure = false; - const constantViolations = filterMap(binding.constantViolations, path => { - const { - inBody, - inClosure - } = relativeLoopLocation(path, loopPath); - if (!inBody) return null; - capturedInClosure || (capturedInClosure = inClosure); - const id = path.isUpdateExpression() ? path.get("argument") : path.isAssignmentExpression() ? path.get("left") : null; - if (id) seen.add(id.node); - return id; - }); - const references = filterMap(binding.referencePaths, path => { - if (seen.has(path.node)) return null; - const { - inBody, - inClosure - } = relativeLoopLocation(path, loopPath); - if (!inBody) return null; - capturedInClosure || (capturedInClosure = inClosure); - return path; - }); - return { - capturedInClosure, - hasConstantViolations: constantViolations.length > 0, - usages: references.concat(constantViolations) - }; -} -function relativeLoopLocation(path, loopPath) { - const bodyPath = loopPath.get("body"); - let inClosure = false; - for (let currPath = path; currPath; currPath = currPath.parentPath) { - if (currPath.isFunction() || currPath.isClass()) inClosure = true; - if (currPath === bodyPath) { - return { - inBody: true, - inClosure - }; - } else if (currPath === loopPath) { - return { - inBody: false, - inClosure - }; - } - } - throw new Error("Internal Babel error: path is not in loop. Please report this as a bug."); -} -const collectCompletionsAndVarsVisitor = { - Function(path) { - path.skip(); - }, - LabeledStatement: { - enter({ - node - }, state) { - state.labelsStack.push(node.label.name); - }, - exit({ - node - }, state) { - const popped = state.labelsStack.pop(); - if (popped !== node.label.name) { - throw new Error("Assertion failure. Please report this bug to Babel."); - } - } - }, - Loop: { - enter(_, state) { - state.labellessContinueTargets++; - state.labellessBreakTargets++; - }, - exit(_, state) { - state.labellessContinueTargets--; - state.labellessBreakTargets--; - } - }, - SwitchStatement: { - enter(_, state) { - state.labellessBreakTargets++; - }, - exit(_, state) { - state.labellessBreakTargets--; - } - }, - "BreakStatement|ContinueStatement"(path, state) { - const { - label - } = path.node; - if (label) { - if (state.labelsStack.includes(label.name)) return; - } else if (path.isBreakStatement() ? state.labellessBreakTargets > 0 : state.labellessContinueTargets > 0) { - return; - } - state.breaksContinues.push(path); - }, - ReturnStatement(path, state) { - state.returns.push(path); - }, - VariableDeclaration(path, state) { - if (path.parent === state.loopNode && isVarInLoopHead(path)) return; - if (path.node.kind === "var") state.vars.push(path); - } -}; -function wrapLoopBody(loopPath, captured, updatedBindingsUsages) { - const loopNode = loopPath.node; - const state = { - breaksContinues: [], - returns: [], - labelsStack: [], - labellessBreakTargets: 0, - labellessContinueTargets: 0, - vars: [], - loopNode - }; - loopPath.traverse(collectCompletionsAndVarsVisitor, state); - const callArgs = []; - const closureParams = []; - const updater = []; - for (const [name, updatedUsage] of updatedBindingsUsages) { - callArgs.push(_core.types.identifier(name)); - const innerName = loopPath.scope.generateUid(name); - closureParams.push(_core.types.identifier(innerName)); - updater.push(_core.types.assignmentExpression("=", _core.types.identifier(name), _core.types.identifier(innerName))); - for (const path of updatedUsage) path.replaceWith(_core.types.identifier(innerName)); - } - for (const name of captured) { - if (updatedBindingsUsages.has(name)) continue; - callArgs.push(_core.types.identifier(name)); - closureParams.push(_core.types.identifier(name)); - } - const id = loopPath.scope.generateUid("loop"); - const fn = _core.types.functionExpression(null, closureParams, _core.types.toBlock(loopNode.body)); - let call = _core.types.callExpression(_core.types.identifier(id), callArgs); - const fnParent = loopPath.findParent(p => p.isFunction()); - if (fnParent) { - const { - async, - generator - } = fnParent.node; - fn.async = async; - fn.generator = generator; - if (generator) call = _core.types.yieldExpression(call, true);else if (async) call = _core.types.awaitExpression(call); - } - const updaterNode = updater.length > 0 ? _core.types.expressionStatement(_core.types.sequenceExpression(updater)) : null; - if (updaterNode) fn.body.body.push(updaterNode); - const [varPath] = loopPath.insertBefore(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(id), fn)])); - const bodyStmts = []; - const varNames = []; - for (const varPath of state.vars) { - const assign = []; - for (const decl of varPath.node.declarations) { - varNames.push(...Object.keys(_core.types.getBindingIdentifiers(decl.id))); - if (decl.init) { - assign.push(_core.types.assignmentExpression("=", decl.id, decl.init)); - } - } - if (assign.length > 0) { - let replacement = assign.length === 1 ? assign[0] : _core.types.sequenceExpression(assign); - if (!_core.types.isForStatement(varPath.parent, { - init: varPath.node - }) && !_core.types.isForXStatement(varPath.parent, { - left: varPath.node - })) { - replacement = _core.types.expressionStatement(replacement); - } - varPath.replaceWith(replacement); - } else { - varPath.remove(); - } - } - if (varNames.length) { - bodyStmts.push(_core.types.variableDeclaration("var", varNames.map(name => _core.types.variableDeclarator(_core.types.identifier(name))))); - } - if (state.breaksContinues.length === 0 && state.returns.length === 0) { - bodyStmts.push(_core.types.expressionStatement(call)); - } else { - const completionId = loopPath.scope.generateUid("ret"); - bodyStmts.push(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(completionId), call)])); - const injected = new Set(); - for (const path of state.breaksContinues) { - const { - node - } = path; - const { - type, - label - } = node; - let name = type === "BreakStatement" ? "break" : "continue"; - if (label) name += "|" + label.name; - path.replaceWith(_core.types.returnStatement(_core.types.stringLiteral(name))); - if (updaterNode) path.insertBefore(_core.types.cloneNode(updaterNode)); - if (injected.has(name)) continue; - injected.add(name); - bodyStmts.push(_core.template.statement.ast` - if ( - ${_core.types.identifier(completionId)} === ${_core.types.stringLiteral(name)} - ) ${node} - `); - } - if (state.returns.length) { - for (const path of state.returns) { - const arg = path.node.argument || path.scope.buildUndefinedNode(); - path.replaceWith(_core.template.statement.ast` - return { v: ${arg} }; - `); - } - bodyStmts.push(_core.template.statement.ast` - if (typeof ${_core.types.identifier(completionId)} === "object") - return ${_core.types.identifier(completionId)}.v; - `); - } - } - loopNode.body = _core.types.blockStatement(bodyStmts); - return varPath; -} -function isVarInLoopHead(path) { - if (_core.types.isForStatement(path.parent)) return path.key === "init"; - if (_core.types.isForXStatement(path.parent)) return path.key === "left"; - return false; -} -function filterMap(list, fn) { - const result = []; - for (const item of list) { - const mapped = fn(item); - if (mapped) result.push(mapped); - } - return result; -} - -//# sourceMappingURL=loop.js.map - - -/***/ }), - -/***/ 26048: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.validateUsage = validateUsage; -var _core = __nccwpck_require__(27324); -function validateUsage(path, state, tdzEnabled) { - const dynamicTDZNames = []; - for (const name of Object.keys(path.getBindingIdentifiers())) { - const binding = path.scope.getBinding(name); - if (!binding) continue; - if (tdzEnabled) { - if (injectTDZChecks(binding, state)) dynamicTDZNames.push(name); - } - if (path.node.kind === "const") { - disallowConstantViolations(name, binding, state); - } - } - return dynamicTDZNames; -} -function disallowConstantViolations(name, binding, state) { - for (const violation of binding.constantViolations) { - const readOnlyError = state.addHelper("readOnlyError"); - const throwNode = _core.types.callExpression(readOnlyError, [_core.types.stringLiteral(name)]); - if (violation.isAssignmentExpression()) { - const { - operator, - left, - right - } = violation.node; - if (operator === "=") { - const exprs = [right]; - exprs.push(throwNode); - violation.replaceWith(_core.types.sequenceExpression(exprs)); - } else if (["&&=", "||=", "??="].includes(operator)) { - violation.replaceWith(_core.types.logicalExpression(operator.slice(0, -1), left, _core.types.sequenceExpression([right, throwNode]))); - } else { - violation.replaceWith(_core.types.sequenceExpression([_core.types.binaryExpression(operator.slice(0, -1), left, right), throwNode])); - } - } else if (violation.isUpdateExpression()) { - violation.replaceWith(_core.types.sequenceExpression([_core.types.unaryExpression("+", violation.get("argument").node), throwNode])); - } else if (violation.isForXStatement()) { - violation.ensureBlock(); - violation.get("left").replaceWith(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(violation.scope.generateUidIdentifier(name))])); - violation.node.body.body.unshift(_core.types.expressionStatement(throwNode)); - } - } -} -function getTDZStatus(refPath, bindingPath) { - const executionStatus = bindingPath._guessExecutionStatusRelativeTo(refPath); - if (executionStatus === "before") { - return "outside"; - } else if (executionStatus === "after") { - return "inside"; - } else { - return "maybe"; - } -} -const skipTDZChecks = new WeakSet(); -function buildTDZAssert(status, node, state) { - if (status === "maybe") { - const clone = _core.types.cloneNode(node); - skipTDZChecks.add(clone); - return _core.types.callExpression(state.addHelper("temporalRef"), [clone, _core.types.stringLiteral(node.name)]); - } else { - return _core.types.callExpression(state.addHelper("tdz"), [_core.types.stringLiteral(node.name)]); - } -} -function getTDZReplacement(path, state, id = path.node) { - var _path$scope$getBindin; - if (skipTDZChecks.has(id)) return; - skipTDZChecks.add(id); - const bindingPath = (_path$scope$getBindin = path.scope.getBinding(id.name)) == null ? void 0 : _path$scope$getBindin.path; - if (!bindingPath || bindingPath.isFunctionDeclaration()) return; - const status = getTDZStatus(path, bindingPath); - if (status === "outside") return; - if (status === "maybe") { - bindingPath.parent._tdzThis = true; - } - return { - status, - node: buildTDZAssert(status, id, state) - }; -} -function injectTDZChecks(binding, state) { - const allUsages = new Set(binding.referencePaths); - binding.constantViolations.forEach(allUsages.add, allUsages); - let dynamicTdz = false; - for (const path of binding.constantViolations) { - const { - node - } = path; - if (skipTDZChecks.has(node)) continue; - skipTDZChecks.add(node); - if (path.isUpdateExpression()) { - const arg = path.get("argument"); - const replacement = getTDZReplacement(path, state, arg.node); - if (!replacement) continue; - if (replacement.status === "maybe") { - dynamicTdz = true; - path.insertBefore(replacement.node); - } else { - path.replaceWith(replacement.node); - } - } else if (path.isAssignmentExpression()) { - const nodes = []; - const ids = path.getBindingIdentifiers(); - for (const name of Object.keys(ids)) { - const replacement = getTDZReplacement(path, state, ids[name]); - if (replacement) { - nodes.push(_core.types.expressionStatement(replacement.node)); - if (replacement.status === "inside") break; - if (replacement.status === "maybe") dynamicTdz = true; - } - } - if (nodes.length > 0) path.insertBefore(nodes); - } - } - for (const path of binding.referencePaths) { - if (path.parentPath.isUpdateExpression()) continue; - if (path.parentPath.isFor({ - left: path.node - })) continue; - const replacement = getTDZReplacement(path, state); - if (!replacement) continue; - if (replacement.status === "maybe") dynamicTdz = true; - path.replaceWith(replacement.node); - } - return dynamicTdz; -} - -//# sourceMappingURL=validation.js.map - - -/***/ }), - -/***/ 92861: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperCreateClassFeaturesPlugin = __nccwpck_require__(14414); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ - name: "transform-class-properties", - api, - feature: _helperCreateClassFeaturesPlugin.FEATURES.fields, - loose: options.loose, - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("classProperties", "classPrivateProperties"); - } - }); -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 64379: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxClassStaticBlock = __nccwpck_require__(92476); -var _helperCreateClassFeaturesPlugin = __nccwpck_require__(14414); -function generateUid(scope, denyList) { - const name = ""; - let uid; - let i = 1; - do { - uid = scope._generateUid(name, i); - i++; - } while (denyList.has(uid)); - return uid; -} -var _default = (0, _helperPluginUtils.declare)(({ - types: t, - template, - assertVersion -}) => { - assertVersion("^7.12.0"); - return { - name: "transform-class-static-block", - inherits: _pluginSyntaxClassStaticBlock.default, - pre() { - (0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.staticBlocks, false); - }, - visitor: { - ClassBody(classBody) { - const { - scope - } = classBody; - const privateNames = new Set(); - const body = classBody.get("body"); - for (const path of body) { - if (path.isPrivate()) { - privateNames.add(path.get("key.id").node.name); - } - } - for (const path of body) { - if (!path.isStaticBlock()) continue; - const staticBlockPrivateId = generateUid(scope, privateNames); - privateNames.add(staticBlockPrivateId); - const staticBlockRef = t.privateName(t.identifier(staticBlockPrivateId)); - let replacement; - const blockBody = path.node.body; - if (blockBody.length === 1 && t.isExpressionStatement(blockBody[0])) { - replacement = t.inheritsComments(blockBody[0].expression, blockBody[0]); - } else { - replacement = template.expression.ast`(() => { ${blockBody} })()`; - } - path.replaceWith(t.classPrivateProperty(staticBlockRef, replacement, [], true)); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 47116: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperCompilationTargets = __nccwpck_require__(77116); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _helperFunctionName = __nccwpck_require__(28850); -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -var _core = __nccwpck_require__(27324); -var _globals = __nccwpck_require__(47629); -var _transformClass = __nccwpck_require__(23396); -const getBuiltinClasses = category => Object.keys(_globals[category]).filter(name => /^[A-Z]/.test(name)); -const builtinClasses = new Set([...getBuiltinClasses("builtin"), ...getBuiltinClasses("browser")]); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _api$assumption2, _api$assumption3, _api$assumption4; - api.assertVersion(7); - const { - loose = false - } = options; - const setClassMethods = (_api$assumption = api.assumption("setClassMethods")) != null ? _api$assumption : loose; - const constantSuper = (_api$assumption2 = api.assumption("constantSuper")) != null ? _api$assumption2 : loose; - const superIsCallableConstructor = (_api$assumption3 = api.assumption("superIsCallableConstructor")) != null ? _api$assumption3 : loose; - const noClassCalls = (_api$assumption4 = api.assumption("noClassCalls")) != null ? _api$assumption4 : loose; - const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets()); - const VISITED = new WeakSet(); - return { - name: "transform-classes", - visitor: { - ExportDefaultDeclaration(path) { - if (!path.get("declaration").isClassDeclaration()) return; - (0, _helperSplitExportDeclaration.default)(path); - }, - ClassDeclaration(path) { - const { - node - } = path; - const ref = node.id || path.scope.generateUidIdentifier("class"); - path.replaceWith(_core.types.variableDeclaration("let", [_core.types.variableDeclarator(ref, _core.types.toExpression(node))])); - }, - ClassExpression(path, state) { - const { - node - } = path; - if (VISITED.has(node)) return; - const inferred = (0, _helperFunctionName.default)(path, undefined, supportUnicodeId); - if (inferred && inferred !== node) { - path.replaceWith(inferred); - return; - } - VISITED.add(node); - const [replacedPath] = path.replaceWith((0, _transformClass.default)(path, state.file, builtinClasses, loose, { - setClassMethods, - constantSuper, - superIsCallableConstructor, - noClassCalls - }, supportUnicodeId)); - if (replacedPath.isCallExpression()) { - (0, _helperAnnotateAsPure.default)(replacedPath); - const callee = replacedPath.get("callee"); - if (callee.isArrowFunctionExpression()) { - callee.arrowFunctionToExpression(); - } - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 20895: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = addCreateSuperHelper; -var _core = __nccwpck_require__(27324); -const helper = _core.template.statement` - function CREATE_SUPER(Derived) { - function isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - - // core-js@3 - if (Reflect.construct.sham) return false; - - // Proxy can't be polyfilled. Every browser implemented - // proxies before or at the same time as Reflect.construct, - // so if they support Proxy they also support Reflect.construct. - if (typeof Proxy === "function") return true; - - // Since Reflect.construct can't be properly polyfilled, some - // implementations (e.g. core-js@2) don't set the correct internal slots. - // Those polyfills don't allow us to subclass built-ins, so we need to - // use our fallback implementation. - try { - // If the internal slots aren't set, this throws an error similar to - // TypeError: this is not a Date object. - Date.prototype.toString.call(Reflect.construct(Date, [], function() {})); - return true; - } catch (e) { - return false; - } - } - - return function () { - var Super = GET_PROTOTYPE_OF(Derived), result; - if (isNativeReflectConstruct()) { - // NOTE: This doesn't work if this.__proto__.constructor has been modified. - var NewTarget = GET_PROTOTYPE_OF(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return POSSIBLE_CONSTRUCTOR_RETURN(this, result); - } - } -`; -const helperIDs = new WeakMap(); -function addCreateSuperHelper(file) { - if (helperIDs.has(file)) { - return (_core.types.cloneNode || _core.types.clone)(helperIDs.get(file)); - } - try { - return file.addHelper("createSuper"); - } catch (_unused) {} - const id = file.scope.generateUidIdentifier("createSuper"); - helperIDs.set(file, id); - const fn = helper({ - CREATE_SUPER: id, - GET_PROTOTYPE_OF: file.addHelper("getPrototypeOf"), - POSSIBLE_CONSTRUCTOR_RETURN: file.addHelper("possibleConstructorReturn") - }); - file.path.unshiftContainer("body", [fn]); - file.scope.registerDeclaration(file.path.get("body.0")); - return _core.types.cloneNode(id); -} - -//# sourceMappingURL=inline-createSuper-helpers.js.map - - -/***/ }), - -/***/ 23396: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transformClass; -var _helperFunctionName = __nccwpck_require__(28850); -var _helperReplaceSupers = __nccwpck_require__(20846); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _helperOptimiseCallExpression = __nccwpck_require__(95756); -var _core = __nccwpck_require__(27324); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _inlineCreateSuperHelpers = __nccwpck_require__(20895); -function buildConstructor(classRef, constructorBody, node) { - const func = _core.types.functionDeclaration(_core.types.cloneNode(classRef), [], constructorBody); - _core.types.inherits(func, node); - return func; -} -function transformClass(path, file, builtinClasses, isLoose, assumptions, supportUnicodeId) { - const classState = { - parent: undefined, - scope: undefined, - node: undefined, - path: undefined, - file: undefined, - classId: undefined, - classRef: undefined, - superFnId: undefined, - superName: null, - superReturns: [], - isDerived: false, - extendsNative: false, - construct: undefined, - constructorBody: undefined, - userConstructor: undefined, - userConstructorPath: undefined, - hasConstructor: false, - body: [], - superThises: [], - pushedConstructor: false, - pushedInherits: false, - pushedCreateClass: false, - protoAlias: null, - isLoose: false, - dynamicKeys: new Map(), - methods: { - instance: { - hasComputed: false, - list: [], - map: new Map() - }, - static: { - hasComputed: false, - list: [], - map: new Map() - } - } - }; - const setState = newState => { - Object.assign(classState, newState); - }; - const findThisesVisitor = _core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { - ThisExpression(path) { - classState.superThises.push(path); - } - }]); - function createClassHelper(args) { - return _core.types.callExpression(classState.file.addHelper("createClass"), args); - } - function maybeCreateConstructor() { - let hasConstructor = false; - const paths = classState.path.get("body.body"); - for (const path of paths) { - hasConstructor = path.equals("kind", "constructor"); - if (hasConstructor) break; - } - if (hasConstructor) return; - let params, body; - if (classState.isDerived) { - const constructor = _core.template.expression.ast` - (function () { - super(...arguments); - }) - `; - params = constructor.params; - body = constructor.body; - } else { - params = []; - body = _core.types.blockStatement([]); - } - classState.path.get("body").unshiftContainer("body", _core.types.classMethod("constructor", _core.types.identifier("constructor"), params, body)); - } - function buildBody() { - maybeCreateConstructor(); - pushBody(); - verifyConstructor(); - if (classState.userConstructor) { - const { - constructorBody, - userConstructor, - construct - } = classState; - constructorBody.body.push(...userConstructor.body.body); - _core.types.inherits(construct, userConstructor); - _core.types.inherits(constructorBody, userConstructor.body); - } - pushDescriptors(); - } - function pushBody() { - const classBodyPaths = classState.path.get("body.body"); - for (const path of classBodyPaths) { - const node = path.node; - if (path.isClassProperty()) { - throw path.buildCodeFrameError("Missing class properties transform."); - } - if (node.decorators) { - throw path.buildCodeFrameError("Method has decorators, put the decorator plugin before the classes one."); - } - if (_core.types.isClassMethod(node)) { - const isConstructor = node.kind === "constructor"; - const replaceSupers = new _helperReplaceSupers.default({ - methodPath: path, - objectRef: classState.classRef, - superRef: classState.superName, - constantSuper: assumptions.constantSuper, - file: classState.file, - refToPreserve: classState.classRef - }); - replaceSupers.replace(); - const superReturns = []; - path.traverse(_core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { - ReturnStatement(path) { - if (!path.getFunctionParent().isArrowFunctionExpression()) { - superReturns.push(path); - } - } - }])); - if (isConstructor) { - pushConstructor(superReturns, node, path); - } else { - pushMethod(node, path); - } - } - } - } - function pushDescriptors() { - pushInheritsToBody(); - const { - body - } = classState; - const props = { - instance: null, - static: null - }; - for (const placement of ["static", "instance"]) { - if (classState.methods[placement].list.length) { - props[placement] = classState.methods[placement].list.map(desc => { - const obj = _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("key"), desc.key)]); - for (const kind of ["get", "set", "value"]) { - if (desc[kind] != null) { - obj.properties.push(_core.types.objectProperty(_core.types.identifier(kind), desc[kind])); - } - } - return obj; - }); - } - } - if (props.instance || props.static) { - let args = [_core.types.cloneNode(classState.classRef), props.instance ? _core.types.arrayExpression(props.instance) : _core.types.nullLiteral(), props.static ? _core.types.arrayExpression(props.static) : _core.types.nullLiteral()]; - let lastNonNullIndex = 0; - for (let i = 0; i < args.length; i++) { - if (!_core.types.isNullLiteral(args[i])) lastNonNullIndex = i; - } - args = args.slice(0, lastNonNullIndex + 1); - body.push(_core.types.expressionStatement(createClassHelper(args))); - classState.pushedCreateClass = true; - } - } - function wrapSuperCall(bareSuper, superRef, thisRef, body) { - const bareSuperNode = bareSuper.node; - let call; - if (assumptions.superIsCallableConstructor) { - bareSuperNode.arguments.unshift(_core.types.thisExpression()); - if (bareSuperNode.arguments.length === 2 && _core.types.isSpreadElement(bareSuperNode.arguments[1]) && _core.types.isIdentifier(bareSuperNode.arguments[1].argument, { - name: "arguments" - })) { - bareSuperNode.arguments[1] = bareSuperNode.arguments[1].argument; - bareSuperNode.callee = _core.types.memberExpression(_core.types.cloneNode(superRef), _core.types.identifier("apply")); - } else { - bareSuperNode.callee = _core.types.memberExpression(_core.types.cloneNode(superRef), _core.types.identifier("call")); - } - call = _core.types.logicalExpression("||", bareSuperNode, _core.types.thisExpression()); - } else { - call = (0, _helperOptimiseCallExpression.default)(_core.types.cloneNode(classState.superFnId), _core.types.thisExpression(), bareSuperNode.arguments, false); - } - if (bareSuper.parentPath.isExpressionStatement() && bareSuper.parentPath.container === body.node.body && body.node.body.length - 1 === bareSuper.parentPath.key) { - if (classState.superThises.length) { - call = _core.types.assignmentExpression("=", thisRef(), call); - } - bareSuper.parentPath.replaceWith(_core.types.returnStatement(call)); - } else { - bareSuper.replaceWith(_core.types.assignmentExpression("=", thisRef(), call)); - } - } - function verifyConstructor() { - if (!classState.isDerived) return; - const path = classState.userConstructorPath; - const body = path.get("body"); - path.traverse(findThisesVisitor); - let thisRef = function () { - const ref = path.scope.generateDeclaredUidIdentifier("this"); - thisRef = () => _core.types.cloneNode(ref); - return ref; - }; - for (const thisPath of classState.superThises) { - const { - node, - parentPath - } = thisPath; - if (parentPath.isMemberExpression({ - object: node - })) { - thisPath.replaceWith(thisRef()); - continue; - } - thisPath.replaceWith(_core.types.callExpression(classState.file.addHelper("assertThisInitialized"), [thisRef()])); - } - const bareSupers = []; - path.traverse(_core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { - Super(path) { - const { - node, - parentPath - } = path; - if (parentPath.isCallExpression({ - callee: node - })) { - bareSupers.unshift(parentPath); - } - } - }])); - let guaranteedSuperBeforeFinish = !!bareSupers.length; - for (const bareSuper of bareSupers) { - wrapSuperCall(bareSuper, classState.superName, thisRef, body); - if (guaranteedSuperBeforeFinish) { - bareSuper.find(function (parentPath) { - if (parentPath === path) { - return true; - } - if (parentPath.isLoop() || parentPath.isConditional() || parentPath.isArrowFunctionExpression()) { - guaranteedSuperBeforeFinish = false; - return true; - } - }); - } - } - let wrapReturn; - if (classState.isLoose) { - wrapReturn = returnArg => { - const thisExpr = _core.types.callExpression(classState.file.addHelper("assertThisInitialized"), [thisRef()]); - return returnArg ? _core.types.logicalExpression("||", returnArg, thisExpr) : thisExpr; - }; - } else { - wrapReturn = returnArg => { - const returnParams = [thisRef()]; - if (returnArg != null) { - returnParams.push(returnArg); - } - return _core.types.callExpression(classState.file.addHelper("possibleConstructorReturn"), returnParams); - }; - } - const bodyPaths = body.get("body"); - if (!bodyPaths.length || !bodyPaths.pop().isReturnStatement()) { - body.pushContainer("body", _core.types.returnStatement(guaranteedSuperBeforeFinish ? thisRef() : wrapReturn())); - } - for (const returnPath of classState.superReturns) { - returnPath.get("argument").replaceWith(wrapReturn(returnPath.node.argument)); - } - } - function pushMethod(node, path) { - const scope = path ? path.scope : classState.scope; - if (node.kind === "method") { - if (processMethod(node, scope)) return; - } - const placement = node.static ? "static" : "instance"; - const methods = classState.methods[placement]; - const descKey = node.kind === "method" ? "value" : node.kind; - const key = _core.types.isNumericLiteral(node.key) || _core.types.isBigIntLiteral(node.key) ? _core.types.stringLiteral(String(node.key.value)) : _core.types.toComputedKey(node); - let fn = _core.types.toExpression(node); - if (_core.types.isStringLiteral(key)) { - if (node.kind === "method") { - var _nameFunction; - fn = (_nameFunction = (0, _helperFunctionName.default)({ - id: key, - node: node, - scope - }, undefined, supportUnicodeId)) != null ? _nameFunction : fn; - } - } else { - methods.hasComputed = true; - } - let descriptor; - if (!methods.hasComputed && methods.map.has(key.value)) { - descriptor = methods.map.get(key.value); - descriptor[descKey] = fn; - if (descKey === "value") { - descriptor.get = null; - descriptor.set = null; - } else { - descriptor.value = null; - } - } else { - descriptor = { - key: key, - [descKey]: fn - }; - methods.list.push(descriptor); - if (!methods.hasComputed) { - methods.map.set(key.value, descriptor); - } - } - } - function processMethod(node, scope) { - if (assumptions.setClassMethods && !node.decorators) { - let { - classRef - } = classState; - if (!node.static) { - insertProtoAliasOnce(); - classRef = classState.protoAlias; - } - const methodName = _core.types.memberExpression(_core.types.cloneNode(classRef), node.key, node.computed || _core.types.isLiteral(node.key)); - let func = _core.types.functionExpression(null, node.params, node.body, node.generator, node.async); - _core.types.inherits(func, node); - const key = _core.types.toComputedKey(node, node.key); - if (_core.types.isStringLiteral(key)) { - var _nameFunction2; - func = (_nameFunction2 = (0, _helperFunctionName.default)({ - node: func, - id: key, - scope - }, undefined, supportUnicodeId)) != null ? _nameFunction2 : func; - } - const expr = _core.types.expressionStatement(_core.types.assignmentExpression("=", methodName, func)); - _core.types.inheritsComments(expr, node); - classState.body.push(expr); - return true; - } - return false; - } - function insertProtoAliasOnce() { - if (classState.protoAlias === null) { - setState({ - protoAlias: classState.scope.generateUidIdentifier("proto") - }); - const classProto = _core.types.memberExpression(classState.classRef, _core.types.identifier("prototype")); - const protoDeclaration = _core.types.variableDeclaration("var", [_core.types.variableDeclarator(classState.protoAlias, classProto)]); - classState.body.push(protoDeclaration); - } - } - function pushConstructor(superReturns, method, path) { - setState({ - userConstructorPath: path, - userConstructor: method, - hasConstructor: true, - superReturns - }); - const { - construct - } = classState; - _core.types.inheritsComments(construct, method); - construct.params = method.params; - _core.types.inherits(construct.body, method.body); - construct.body.directives = method.body.directives; - pushConstructorToBody(); - } - function pushConstructorToBody() { - if (classState.pushedConstructor) return; - classState.pushedConstructor = true; - if (classState.hasInstanceDescriptors || classState.hasStaticDescriptors) { - pushDescriptors(); - } - classState.body.push(classState.construct); - pushInheritsToBody(); - } - function pushInheritsToBody() { - if (!classState.isDerived || classState.pushedInherits) return; - const superFnId = path.scope.generateUidIdentifier("super"); - setState({ - pushedInherits: true, - superFnId - }); - if (!assumptions.superIsCallableConstructor) { - classState.body.unshift(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(superFnId, _core.types.callExpression((0, _inlineCreateSuperHelpers.default)(classState.file), [_core.types.cloneNode(classState.classRef)]))])); - } - classState.body.unshift(_core.types.expressionStatement(_core.types.callExpression(classState.file.addHelper(classState.isLoose ? "inheritsLoose" : "inherits"), [_core.types.cloneNode(classState.classRef), _core.types.cloneNode(classState.superName)]))); - } - function extractDynamicKeys() { - const { - dynamicKeys, - node, - scope - } = classState; - for (const elem of node.body.body) { - if (!_core.types.isClassMethod(elem) || !elem.computed) continue; - if (scope.isPure(elem.key, true)) continue; - const id = scope.generateUidIdentifierBasedOnNode(elem.key); - dynamicKeys.set(id.name, elem.key); - elem.key = id; - } - } - function setupClosureParamsArgs() { - const { - superName, - dynamicKeys - } = classState; - const closureParams = []; - const closureArgs = []; - if (classState.isDerived) { - let arg = _core.types.cloneNode(superName); - if (classState.extendsNative) { - arg = _core.types.callExpression(classState.file.addHelper("wrapNativeSuper"), [arg]); - (0, _helperAnnotateAsPure.default)(arg); - } - const param = classState.scope.generateUidIdentifierBasedOnNode(superName); - closureParams.push(param); - closureArgs.push(arg); - setState({ - superName: _core.types.cloneNode(param) - }); - } - for (const [name, value] of dynamicKeys) { - closureParams.push(_core.types.identifier(name)); - closureArgs.push(value); - } - return { - closureParams, - closureArgs - }; - } - function classTransformer(path, file, builtinClasses, isLoose) { - setState({ - parent: path.parent, - scope: path.scope, - node: path.node, - path, - file, - isLoose - }); - setState({ - classId: classState.node.id, - classRef: classState.node.id ? _core.types.identifier(classState.node.id.name) : classState.scope.generateUidIdentifier("class"), - superName: classState.node.superClass, - isDerived: !!classState.node.superClass, - constructorBody: _core.types.blockStatement([]) - }); - setState({ - extendsNative: _core.types.isIdentifier(classState.superName) && builtinClasses.has(classState.superName.name) && !classState.scope.hasBinding(classState.superName.name, true) - }); - const { - classRef, - node, - constructorBody - } = classState; - setState({ - construct: buildConstructor(classRef, constructorBody, node) - }); - extractDynamicKeys(); - const { - body - } = classState; - const { - closureParams, - closureArgs - } = setupClosureParamsArgs(); - buildBody(); - if (!assumptions.noClassCalls) { - constructorBody.body.unshift(_core.types.expressionStatement(_core.types.callExpression(classState.file.addHelper("classCallCheck"), [_core.types.thisExpression(), _core.types.cloneNode(classState.classRef)]))); - } - const isStrict = path.isInStrictMode(); - let constructorOnly = classState.classId && body.length === 1; - if (constructorOnly && !isStrict) { - for (const param of classState.construct.params) { - if (!_core.types.isIdentifier(param)) { - constructorOnly = false; - break; - } - } - } - const directives = constructorOnly ? body[0].body.directives : []; - if (!isStrict) { - directives.push(_core.types.directive(_core.types.directiveLiteral("use strict"))); - } - if (constructorOnly) { - const expr = _core.types.toExpression(body[0]); - return classState.isLoose ? expr : createClassHelper([expr]); - } - let returnArg = _core.types.cloneNode(classState.classRef); - if (!classState.pushedCreateClass && !classState.isLoose) { - returnArg = createClassHelper([returnArg]); - } - body.push(_core.types.returnStatement(returnArg)); - const container = _core.types.arrowFunctionExpression(closureParams, _core.types.blockStatement(body, directives)); - return _core.types.callExpression(container, closureArgs); - } - return classTransformer(path, file, builtinClasses, isLoose); -} - -//# sourceMappingURL=transformClass.js.map - - -/***/ }), - -/***/ 63418: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _core = __nccwpck_require__(27324); -var _helperPluginUtils = __nccwpck_require__(36028); -var _template = __nccwpck_require__(52738); -{ - var DefineAccessorHelper = _template.default.expression.ast` - function (type, obj, key, fn) { - var desc = { configurable: true, enumerable: true }; - desc[type] = fn; - return Object.defineProperty(obj, key, desc); - } - `; - DefineAccessorHelper._compact = true; -} -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption; - api.assertVersion(7); - const setComputedProperties = (_api$assumption = api.assumption("setComputedProperties")) != null ? _api$assumption : options.loose; - const pushComputedProps = setComputedProperties ? pushComputedPropsLoose : pushComputedPropsSpec; - function buildDefineAccessor(state, type, obj, key, fn) { - { - let helper; - if (state.availableHelper("defineAccessor")) { - helper = state.addHelper("defineAccessor"); - } else { - const file = state.file; - helper = file.get("fallbackDefineAccessorHelper"); - if (!helper) { - const id = file.scope.generateUidIdentifier("defineAccessor"); - file.scope.push({ - id, - init: DefineAccessorHelper - }); - file.set("fallbackDefineAccessorHelper", helper = id); - } - helper = _core.types.cloneNode(helper); - } - return _core.types.callExpression(helper, [_core.types.stringLiteral(type), obj, key, fn]); - } - } - function getValue(prop) { - if (_core.types.isObjectProperty(prop)) { - return prop.value; - } else if (_core.types.isObjectMethod(prop)) { - return _core.types.functionExpression(null, prop.params, prop.body, prop.generator, prop.async); - } - } - function pushAssign(objId, prop, body) { - body.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.cloneNode(objId), prop.key, prop.computed || _core.types.isLiteral(prop.key)), getValue(prop)))); - } - function pushAccessorDefine({ - body, - computedProps, - initPropExpression, - objId, - state - }, prop) { - const kind = prop.kind; - const key = !prop.computed && _core.types.isIdentifier(prop.key) ? _core.types.stringLiteral(prop.key.name) : prop.key; - const value = getValue(prop); - if (computedProps.length === 1) { - return buildDefineAccessor(state, kind, initPropExpression, key, value); - } else { - body.push(_core.types.expressionStatement(buildDefineAccessor(state, kind, _core.types.cloneNode(objId), key, value))); - } - } - function pushComputedPropsLoose(info) { - for (const prop of info.computedProps) { - if (_core.types.isObjectMethod(prop) && (prop.kind === "get" || prop.kind === "set")) { - const single = pushAccessorDefine(info, prop); - if (single) return single; - } else { - pushAssign(_core.types.cloneNode(info.objId), prop, info.body); - } - } - } - function pushComputedPropsSpec(info) { - const { - objId, - body, - computedProps, - state - } = info; - for (const prop of computedProps) { - const key = _core.types.toComputedKey(prop); - if (_core.types.isObjectMethod(prop) && (prop.kind === "get" || prop.kind === "set")) { - const single = pushAccessorDefine(info, prop); - if (single) return single; - } else { - const value = getValue(prop); - if (computedProps.length === 1) { - return _core.types.callExpression(state.addHelper("defineProperty"), [info.initPropExpression, key, value]); - } else { - body.push(_core.types.expressionStatement(_core.types.callExpression(state.addHelper("defineProperty"), [_core.types.cloneNode(objId), key, value]))); - } - } - } - } - return { - name: "transform-computed-properties", - visitor: { - ObjectExpression: { - exit(path, state) { - const { - node, - parent, - scope - } = path; - let hasComputed = false; - for (const prop of node.properties) { - hasComputed = prop.computed === true; - if (hasComputed) break; - } - if (!hasComputed) return; - const initProps = []; - const computedProps = []; - let foundComputed = false; - for (const prop of node.properties) { - if (_core.types.isSpreadElement(prop)) { - continue; - } - if (prop.computed) { - foundComputed = true; - } - if (foundComputed) { - computedProps.push(prop); - } else { - initProps.push(prop); - } - } - const objId = scope.generateUidIdentifierBasedOnNode(parent); - const initPropExpression = _core.types.objectExpression(initProps); - const body = []; - body.push(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(objId, initPropExpression)])); - const single = pushComputedProps({ - scope, - objId, - body, - computedProps, - initPropExpression, - state - }); - if (single) { - path.replaceWith(single); - } else { - body.push(_core.types.expressionStatement(_core.types.cloneNode(objId))); - path.replaceWithMultiple(body); - } - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 79126: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(36028); -var core = __nccwpck_require__(27324); - -function isPureVoid(node) { - return core.types.isUnaryExpression(node) && node.operator === "void" && core.types.isPureish(node.argument); -} -function unshiftForXStatementBody(statementPath, newStatements) { - statementPath.ensureBlock(); - const { - scope, - node - } = statementPath; - const bodyScopeBindings = statementPath.get("body").scope.bindings; - const hasShadowedBlockScopedBindings = Object.keys(bodyScopeBindings).some(name => scope.hasBinding(name)); - if (hasShadowedBlockScopedBindings) { - node.body = core.types.blockStatement([...newStatements, node.body]); - } else { - node.body.body.unshift(...newStatements); - } -} -function hasArrayRest(pattern) { - return pattern.elements.some(elem => core.types.isRestElement(elem)); -} -function hasObjectRest(pattern) { - return pattern.properties.some(prop => core.types.isRestElement(prop)); -} -const STOP_TRAVERSAL = {}; -const arrayUnpackVisitor = (node, ancestors, state) => { - if (!ancestors.length) { - return; - } - if (core.types.isIdentifier(node) && core.types.isReferenced(node, ancestors[ancestors.length - 1].node) && state.bindings[node.name]) { - state.deopt = true; - throw STOP_TRAVERSAL; - } -}; -class DestructuringTransformer { - constructor(opts) { - this.blockHoist = void 0; - this.operator = void 0; - this.arrayRefSet = void 0; - this.nodes = void 0; - this.scope = void 0; - this.kind = void 0; - this.iterableIsArray = void 0; - this.arrayLikeIsIterable = void 0; - this.objectRestNoSymbols = void 0; - this.useBuiltIns = void 0; - this.addHelper = void 0; - this.blockHoist = opts.blockHoist; - this.operator = opts.operator; - this.arrayRefSet = new Set(); - this.nodes = opts.nodes || []; - this.scope = opts.scope; - this.kind = opts.kind; - this.iterableIsArray = opts.iterableIsArray; - this.arrayLikeIsIterable = opts.arrayLikeIsIterable; - this.objectRestNoSymbols = opts.objectRestNoSymbols; - this.useBuiltIns = opts.useBuiltIns; - this.addHelper = opts.addHelper; - } - getExtendsHelper() { - return this.useBuiltIns ? core.types.memberExpression(core.types.identifier("Object"), core.types.identifier("assign")) : this.addHelper("extends"); - } - buildVariableAssignment(id, init) { - let op = this.operator; - if (core.types.isMemberExpression(id)) op = "="; - let node; - if (op) { - node = core.types.expressionStatement(core.types.assignmentExpression(op, id, core.types.cloneNode(init) || this.scope.buildUndefinedNode())); - } else { - let nodeInit; - if ((this.kind === "const" || this.kind === "using") && init === null) { - nodeInit = this.scope.buildUndefinedNode(); - } else { - nodeInit = core.types.cloneNode(init); - } - node = core.types.variableDeclaration(this.kind, [core.types.variableDeclarator(id, nodeInit)]); - } - node._blockHoist = this.blockHoist; - return node; - } - buildVariableDeclaration(id, init) { - const declar = core.types.variableDeclaration("var", [core.types.variableDeclarator(core.types.cloneNode(id), core.types.cloneNode(init))]); - declar._blockHoist = this.blockHoist; - return declar; - } - push(id, _init) { - const init = core.types.cloneNode(_init); - if (core.types.isObjectPattern(id)) { - this.pushObjectPattern(id, init); - } else if (core.types.isArrayPattern(id)) { - this.pushArrayPattern(id, init); - } else if (core.types.isAssignmentPattern(id)) { - this.pushAssignmentPattern(id, init); - } else { - this.nodes.push(this.buildVariableAssignment(id, init)); - } - } - toArray(node, count) { - if (this.iterableIsArray || core.types.isIdentifier(node) && this.arrayRefSet.has(node.name)) { - return node; - } else { - return this.scope.toArray(node, count, this.arrayLikeIsIterable); - } - } - pushAssignmentPattern({ - left, - right - }, valueRef) { - if (isPureVoid(valueRef)) { - this.push(left, right); - return; - } - const tempId = this.scope.generateUidIdentifierBasedOnNode(valueRef); - this.nodes.push(this.buildVariableDeclaration(tempId, valueRef)); - const tempConditional = core.types.conditionalExpression(core.types.binaryExpression("===", core.types.cloneNode(tempId), this.scope.buildUndefinedNode()), right, core.types.cloneNode(tempId)); - if (core.types.isPattern(left)) { - let patternId; - let node; - if (this.kind === "const" || this.kind === "let" || this.kind === "using") { - patternId = this.scope.generateUidIdentifier(tempId.name); - node = this.buildVariableDeclaration(patternId, tempConditional); - } else { - patternId = tempId; - node = core.types.expressionStatement(core.types.assignmentExpression("=", core.types.cloneNode(tempId), tempConditional)); - } - this.nodes.push(node); - this.push(left, patternId); - } else { - this.nodes.push(this.buildVariableAssignment(left, tempConditional)); - } - } - pushObjectRest(pattern, objRef, spreadProp, spreadPropIndex) { - const value = buildObjectExcludingKeys(pattern.properties.slice(0, spreadPropIndex), objRef, this.scope, name => this.addHelper(name), this.objectRestNoSymbols, this.useBuiltIns); - this.nodes.push(this.buildVariableAssignment(spreadProp.argument, value)); - } - pushObjectProperty(prop, propRef) { - if (core.types.isLiteral(prop.key)) prop.computed = true; - const pattern = prop.value; - const objRef = core.types.memberExpression(core.types.cloneNode(propRef), prop.key, prop.computed); - if (core.types.isPattern(pattern)) { - this.push(pattern, objRef); - } else { - this.nodes.push(this.buildVariableAssignment(pattern, objRef)); - } - } - pushObjectPattern(pattern, objRef) { - if (!pattern.properties.length) { - this.nodes.push(core.types.expressionStatement(core.types.callExpression(this.addHelper("objectDestructuringEmpty"), isPureVoid(objRef) ? [] : [objRef]))); - return; - } - if (pattern.properties.length > 1 && !this.scope.isStatic(objRef)) { - const temp = this.scope.generateUidIdentifierBasedOnNode(objRef); - this.nodes.push(this.buildVariableDeclaration(temp, objRef)); - objRef = temp; - } - if (hasObjectRest(pattern)) { - let copiedPattern; - for (let i = 0; i < pattern.properties.length; i++) { - const prop = pattern.properties[i]; - if (core.types.isRestElement(prop)) { - break; - } - const key = prop.key; - if (prop.computed && !this.scope.isPure(key)) { - const name = this.scope.generateUidIdentifierBasedOnNode(key); - this.nodes.push(this.buildVariableDeclaration(name, key)); - if (!copiedPattern) { - copiedPattern = pattern = Object.assign({}, pattern, { - properties: pattern.properties.slice() - }); - } - copiedPattern.properties[i] = Object.assign({}, prop, { - key: name - }); - } - } - } - for (let i = 0; i < pattern.properties.length; i++) { - const prop = pattern.properties[i]; - if (core.types.isRestElement(prop)) { - this.pushObjectRest(pattern, objRef, prop, i); - } else { - this.pushObjectProperty(prop, objRef); - } - } - } - canUnpackArrayPattern(pattern, arr) { - if (!core.types.isArrayExpression(arr)) return false; - if (pattern.elements.length > arr.elements.length) return; - if (pattern.elements.length < arr.elements.length && !hasArrayRest(pattern)) { - return false; - } - for (const elem of pattern.elements) { - if (!elem) return false; - if (core.types.isMemberExpression(elem)) return false; - } - for (const elem of arr.elements) { - if (core.types.isSpreadElement(elem)) return false; - if (core.types.isCallExpression(elem)) return false; - if (core.types.isMemberExpression(elem)) return false; - } - const bindings = core.types.getBindingIdentifiers(pattern); - const state = { - deopt: false, - bindings - }; - try { - core.types.traverse(arr, arrayUnpackVisitor, state); - } catch (e) { - if (e !== STOP_TRAVERSAL) throw e; - } - return !state.deopt; - } - pushUnpackedArrayPattern(pattern, arr) { - const holeToUndefined = el => el != null ? el : this.scope.buildUndefinedNode(); - for (let i = 0; i < pattern.elements.length; i++) { - const elem = pattern.elements[i]; - if (core.types.isRestElement(elem)) { - this.push(elem.argument, core.types.arrayExpression(arr.elements.slice(i).map(holeToUndefined))); - } else { - this.push(elem, holeToUndefined(arr.elements[i])); - } - } - } - pushArrayPattern(pattern, arrayRef) { - if (arrayRef === null) { - this.nodes.push(core.types.expressionStatement(core.types.callExpression(this.addHelper("objectDestructuringEmpty"), []))); - return; - } - if (!pattern.elements) return; - if (this.canUnpackArrayPattern(pattern, arrayRef)) { - this.pushUnpackedArrayPattern(pattern, arrayRef); - return; - } - const count = !hasArrayRest(pattern) && pattern.elements.length; - const toArray = this.toArray(arrayRef, count); - if (core.types.isIdentifier(toArray)) { - arrayRef = toArray; - } else { - arrayRef = this.scope.generateUidIdentifierBasedOnNode(arrayRef); - this.arrayRefSet.add(arrayRef.name); - this.nodes.push(this.buildVariableDeclaration(arrayRef, toArray)); - } - for (let i = 0; i < pattern.elements.length; i++) { - const elem = pattern.elements[i]; - if (!elem) continue; - let elemRef; - if (core.types.isRestElement(elem)) { - elemRef = this.toArray(arrayRef); - elemRef = core.types.callExpression(core.types.memberExpression(elemRef, core.types.identifier("slice")), [core.types.numericLiteral(i)]); - this.push(elem.argument, elemRef); - } else { - elemRef = core.types.memberExpression(arrayRef, core.types.numericLiteral(i), true); - this.push(elem, elemRef); - } - } - } - init(pattern, ref) { - if (!core.types.isArrayExpression(ref) && !core.types.isMemberExpression(ref)) { - const memo = this.scope.maybeGenerateMemoised(ref, true); - if (memo) { - this.nodes.push(this.buildVariableDeclaration(memo, core.types.cloneNode(ref))); - ref = memo; - } - } - this.push(pattern, ref); - return this.nodes; - } -} -function buildObjectExcludingKeys(excludedKeys, objRef, scope, addHelper, objectRestNoSymbols, useBuiltIns) { - const keys = []; - let allLiteral = true; - let hasTemplateLiteral = false; - for (let i = 0; i < excludedKeys.length; i++) { - const prop = excludedKeys[i]; - const key = prop.key; - if (core.types.isIdentifier(key) && !prop.computed) { - keys.push(core.types.stringLiteral(key.name)); - } else if (core.types.isTemplateLiteral(key)) { - keys.push(core.types.cloneNode(key)); - hasTemplateLiteral = true; - } else if (core.types.isLiteral(key)) { - keys.push(core.types.stringLiteral(String(key.value))); - } else if (core.types.isPrivateName(key)) ; else { - keys.push(core.types.cloneNode(key)); - allLiteral = false; - } - } - let value; - if (keys.length === 0) { - const extendsHelper = useBuiltIns ? core.types.memberExpression(core.types.identifier("Object"), core.types.identifier("assign")) : addHelper("extends"); - value = core.types.callExpression(extendsHelper, [core.types.objectExpression([]), core.types.sequenceExpression([core.types.callExpression(addHelper("objectDestructuringEmpty"), [core.types.cloneNode(objRef)]), core.types.cloneNode(objRef)])]); - } else { - let keyExpression = core.types.arrayExpression(keys); - if (!allLiteral) { - keyExpression = core.types.callExpression(core.types.memberExpression(keyExpression, core.types.identifier("map")), [addHelper("toPropertyKey")]); - } else if (!hasTemplateLiteral && !core.types.isProgram(scope.block)) { - const programScope = scope.getProgramParent(); - const id = programScope.generateUidIdentifier("excluded"); - programScope.push({ - id, - init: keyExpression, - kind: "const" - }); - keyExpression = core.types.cloneNode(id); - } - value = core.types.callExpression(addHelper(`objectWithoutProperties${objectRestNoSymbols ? "Loose" : ""}`), [core.types.cloneNode(objRef), keyExpression]); - } - return value; -} -function convertVariableDeclaration(path, addHelper, arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns) { - const { - node, - scope - } = path; - const nodeKind = node.kind; - const nodeLoc = node.loc; - const nodes = []; - for (let i = 0; i < node.declarations.length; i++) { - const declar = node.declarations[i]; - const patternId = declar.init; - const pattern = declar.id; - const destructuring = new DestructuringTransformer({ - blockHoist: node._blockHoist, - nodes: nodes, - scope: scope, - kind: node.kind, - iterableIsArray, - arrayLikeIsIterable, - useBuiltIns, - objectRestNoSymbols, - addHelper - }); - if (core.types.isPattern(pattern)) { - destructuring.init(pattern, patternId); - if (+i !== node.declarations.length - 1) { - core.types.inherits(nodes[nodes.length - 1], declar); - } - } else { - nodes.push(core.types.inherits(destructuring.buildVariableAssignment(pattern, patternId), declar)); - } - } - let tail = null; - let nodesOut = []; - for (const node of nodes) { - if (core.types.isVariableDeclaration(node)) { - if (tail !== null) { - tail.declarations.push(...node.declarations); - continue; - } else { - node.kind = nodeKind; - tail = node; - } - } else { - tail = null; - } - if (!node.loc) { - node.loc = nodeLoc; - } - nodesOut.push(node); - } - if (nodesOut.length === 2 && core.types.isVariableDeclaration(nodesOut[0]) && core.types.isExpressionStatement(nodesOut[1]) && core.types.isCallExpression(nodesOut[1].expression) && nodesOut[0].declarations.length === 1) { - const expr = nodesOut[1].expression; - expr.arguments = [nodesOut[0].declarations[0].init]; - nodesOut = [expr]; - } else { - if (core.types.isForStatement(path.parent, { - init: node - }) && !nodesOut.some(v => core.types.isVariableDeclaration(v))) { - for (let i = 0; i < nodesOut.length; i++) { - const node = nodesOut[i]; - if (core.types.isExpressionStatement(node)) { - nodesOut[i] = node.expression; - } - } - } - } - if (nodesOut.length === 1) { - path.replaceWith(nodesOut[0]); - } else { - path.replaceWithMultiple(nodesOut); - } - scope.crawl(); -} -function convertAssignmentExpression(path, addHelper, arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns) { - const { - node, - scope, - parentPath - } = path; - const nodes = []; - const destructuring = new DestructuringTransformer({ - operator: node.operator, - scope: scope, - nodes: nodes, - arrayLikeIsIterable, - iterableIsArray, - objectRestNoSymbols, - useBuiltIns, - addHelper - }); - let ref; - if (!parentPath.isExpressionStatement() && !parentPath.isSequenceExpression() || path.isCompletionRecord()) { - ref = scope.generateUidIdentifierBasedOnNode(node.right, "ref"); - nodes.push(core.types.variableDeclaration("var", [core.types.variableDeclarator(ref, node.right)])); - if (core.types.isArrayExpression(node.right)) { - destructuring.arrayRefSet.add(ref.name); - } - } - destructuring.init(node.left, ref || node.right); - if (ref) { - if (parentPath.isArrowFunctionExpression()) { - path.replaceWith(core.types.blockStatement([])); - nodes.push(core.types.returnStatement(core.types.cloneNode(ref))); - } else { - nodes.push(core.types.expressionStatement(core.types.cloneNode(ref))); - } - } - path.replaceWithMultiple(nodes); - scope.crawl(); -} - -function variableDeclarationHasPattern(node) { - for (const declar of node.declarations) { - if (core.types.isPattern(declar.id)) { - return true; - } - } - return false; -} -var index = helperPluginUtils.declare((api, options) => { - var _ref, _api$assumption, _ref2, _options$allowArrayLi, _ref3, _api$assumption2; - api.assertVersion(7); - const { - useBuiltIns = false - } = options; - const iterableIsArray = (_ref = (_api$assumption = api.assumption("iterableIsArray")) != null ? _api$assumption : options.loose) != null ? _ref : false; - const arrayLikeIsIterable = (_ref2 = (_options$allowArrayLi = options.allowArrayLike) != null ? _options$allowArrayLi : api.assumption("arrayLikeIsIterable")) != null ? _ref2 : false; - const objectRestNoSymbols = (_ref3 = (_api$assumption2 = api.assumption("objectRestNoSymbols")) != null ? _api$assumption2 : options.loose) != null ? _ref3 : false; - return { - name: "transform-destructuring", - visitor: { - ExportNamedDeclaration(path) { - const declaration = path.get("declaration"); - if (!declaration.isVariableDeclaration()) return; - if (!variableDeclarationHasPattern(declaration.node)) return; - const specifiers = []; - for (const name of Object.keys(path.getOuterBindingIdentifiers())) { - specifiers.push(core.types.exportSpecifier(core.types.identifier(name), core.types.identifier(name))); - } - path.replaceWith(declaration.node); - path.insertAfter(core.types.exportNamedDeclaration(null, specifiers)); - path.scope.crawl(); - }, - ForXStatement(path) { - const { - node, - scope - } = path; - const left = node.left; - if (core.types.isPattern(left)) { - const temp = scope.generateUidIdentifier("ref"); - node.left = core.types.variableDeclaration("var", [core.types.variableDeclarator(temp)]); - path.ensureBlock(); - const statementBody = path.node.body.body; - const nodes = []; - if (statementBody.length === 0 && path.isCompletionRecord()) { - nodes.unshift(core.types.expressionStatement(scope.buildUndefinedNode())); - } - nodes.unshift(core.types.expressionStatement(core.types.assignmentExpression("=", left, core.types.cloneNode(temp)))); - unshiftForXStatementBody(path, nodes); - scope.crawl(); - return; - } - if (!core.types.isVariableDeclaration(left)) return; - const pattern = left.declarations[0].id; - if (!core.types.isPattern(pattern)) return; - const key = scope.generateUidIdentifier("ref"); - node.left = core.types.variableDeclaration(left.kind, [core.types.variableDeclarator(key, null)]); - const nodes = []; - const destructuring = new DestructuringTransformer({ - kind: left.kind, - scope: scope, - nodes: nodes, - arrayLikeIsIterable, - iterableIsArray, - objectRestNoSymbols, - useBuiltIns, - addHelper: name => this.addHelper(name) - }); - destructuring.init(pattern, key); - unshiftForXStatementBody(path, nodes); - scope.crawl(); - }, - CatchClause({ - node, - scope - }) { - const pattern = node.param; - if (!core.types.isPattern(pattern)) return; - const ref = scope.generateUidIdentifier("ref"); - node.param = ref; - const nodes = []; - const destructuring = new DestructuringTransformer({ - kind: "let", - scope: scope, - nodes: nodes, - arrayLikeIsIterable, - iterableIsArray, - objectRestNoSymbols, - useBuiltIns, - addHelper: name => this.addHelper(name) - }); - destructuring.init(pattern, ref); - node.body.body = [...nodes, ...node.body.body]; - scope.crawl(); - }, - AssignmentExpression(path, state) { - if (!core.types.isPattern(path.node.left)) return; - convertAssignmentExpression(path, name => state.addHelper(name), arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns); - }, - VariableDeclaration(path, state) { - const { - node, - parent - } = path; - if (core.types.isForXStatement(parent)) return; - if (!parent || !path.container) return; - if (!variableDeclarationHasPattern(node)) return; - convertVariableDeclaration(path, name => state.addHelper(name), arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns); - } - } - }; -}); - -exports.buildObjectExcludingKeys = buildObjectExcludingKeys; -exports["default"] = index; -exports.unshiftForXStatementBody = unshiftForXStatementBody; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 98561: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(12632); -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ - name: "transform-dotall-regex", - feature: "dotAllFlag" - }); -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 36871: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -function getName(key) { - if (_core.types.isIdentifier(key)) { - return key.name; - } - return key.value.toString(); -} -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-duplicate-keys", - visitor: { - ObjectExpression(path) { - const { - node - } = path; - const plainProps = node.properties.filter(prop => !_core.types.isSpreadElement(prop) && !prop.computed); - const alreadySeenData = Object.create(null); - const alreadySeenGetters = Object.create(null); - const alreadySeenSetters = Object.create(null); - for (const prop of plainProps) { - const name = getName(prop.key); - let isDuplicate = false; - switch (prop.kind) { - case "get": - if (alreadySeenData[name] || alreadySeenGetters[name]) { - isDuplicate = true; - } - alreadySeenGetters[name] = true; - break; - case "set": - if (alreadySeenData[name] || alreadySeenSetters[name]) { - isDuplicate = true; - } - alreadySeenSetters[name] = true; - break; - default: - if (alreadySeenData[name] || alreadySeenGetters[name] || alreadySeenSetters[name]) { - isDuplicate = true; - } - alreadySeenData[name] = true; - } - if (isDuplicate) { - prop.computed = true; - prop.key = _core.types.stringLiteral(name); - } - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 39685: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxDynamicImport = __nccwpck_require__(4370); -const SUPPORTED_MODULES = ["commonjs", "amd", "systemjs"]; -const MODULES_NOT_FOUND = `\ -@babel/plugin-transform-dynamic-import depends on a modules -transform plugin. Supported plugins are: - - @babel/plugin-transform-modules-commonjs ^7.4.0 - - @babel/plugin-transform-modules-amd ^7.4.0 - - @babel/plugin-transform-modules-systemjs ^7.4.0 - -If you are using Webpack or Rollup and thus don't want -Babel to transpile your imports and exports, you can use -the @babel/plugin-syntax-dynamic-import plugin and let your -bundler handle dynamic imports. -`; -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-dynamic-import", - inherits: _pluginSyntaxDynamicImport.default, - pre() { - this.file.set("@babel/plugin-proposal-dynamic-import", "7.22.5"); - }, - visitor: { - Program() { - const modules = this.file.get("@babel/plugin-transform-modules-*"); - if (!SUPPORTED_MODULES.includes(modules)) { - throw new Error(MODULES_NOT_FOUND); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 47169: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperBuilderBinaryAssignmentOperatorVisitor = __nccwpck_require__(57533); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-exponentiation-operator", - visitor: (0, _helperBuilderBinaryAssignmentOperatorVisitor.default)({ - operator: "**", - build(left, right) { - return _core.types.callExpression(_core.types.memberExpression(_core.types.identifier("Math"), _core.types.identifier("pow")), [left, right]); - } - }) - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 14097: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxExportNamespaceFrom = __nccwpck_require__(13021); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-export-namespace-from", - inherits: _pluginSyntaxExportNamespaceFrom.default, - visitor: { - ExportNamedDeclaration(path) { - var _exported$name; - const { - node, - scope - } = path; - const { - specifiers - } = node; - const index = _core.types.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0; - if (!_core.types.isExportNamespaceSpecifier(specifiers[index])) return; - const nodes = []; - if (index === 1) { - nodes.push(_core.types.exportNamedDeclaration(null, [specifiers.shift()], node.source)); - } - const specifier = specifiers.shift(); - const { - exported - } = specifier; - const uid = scope.generateUidIdentifier((_exported$name = exported.name) != null ? _exported$name : exported.value); - nodes.push(_core.types.importDeclaration([_core.types.importNamespaceSpecifier(uid)], _core.types.cloneNode(node.source)), _core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.cloneNode(uid), exported)])); - if (node.specifiers.length >= 1) { - nodes.push(node); - } - const [importDeclaration] = path.replaceWithMultiple(nodes); - path.scope.registerDeclaration(importDeclaration); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 75019: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _noHelperImplementation = __nccwpck_require__(33678); -function buildLoopBody(path, declar, newBody) { - let block; - const bodyPath = path.get("body"); - const body = newBody != null ? newBody : bodyPath.node; - if (_core.types.isBlockStatement(body) && Object.keys(path.getBindingIdentifiers()).some(id => bodyPath.scope.hasOwnBinding(id))) { - block = _core.types.blockStatement([declar, body]); - } else { - block = _core.types.toBlock(body); - block.body.unshift(declar); - } - return block; -} -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _options$assumeArray, _options$allowArrayLi, _api$assumption; - api.assertVersion(7); - { - const { - assumeArray, - allowArrayLike, - loose - } = options; - if (loose === true && assumeArray === true) { - throw new Error(`The loose and assumeArray options cannot be used together in @babel/plugin-transform-for-of`); - } - if (assumeArray === true && allowArrayLike === true) { - throw new Error(`The assumeArray and allowArrayLike options cannot be used together in @babel/plugin-transform-for-of`); - } - { - if (allowArrayLike && /^7\.\d\./.test(api.version)) { - throw new Error(`The allowArrayLike is only supported when using @babel/core@^7.10.0`); - } - } - } - const iterableIsArray = (_options$assumeArray = options.assumeArray) != null ? _options$assumeArray : !options.loose && api.assumption("iterableIsArray"); - const arrayLikeIsIterable = (_options$allowArrayLi = options.allowArrayLike) != null ? _options$allowArrayLi : api.assumption("arrayLikeIsIterable"); - const skipIteratorClosing = (_api$assumption = api.assumption("skipForOfIteratorClosing")) != null ? _api$assumption : options.loose; - if (iterableIsArray && arrayLikeIsIterable) { - throw new Error(`The "iterableIsArray" and "arrayLikeIsIterable" assumptions are not compatible.`); - } - if (iterableIsArray) { - return { - name: "transform-for-of", - visitor: { - ForOfStatement(path) { - const { - scope - } = path; - const { - left, - right, - await: isAwait - } = path.node; - if (isAwait) { - return; - } - const i = scope.generateUidIdentifier("i"); - let array = scope.maybeGenerateMemoised(right, true); - const inits = [_core.types.variableDeclarator(i, _core.types.numericLiteral(0))]; - if (array) { - inits.push(_core.types.variableDeclarator(array, right)); - } else { - array = right; - } - const item = _core.types.memberExpression(_core.types.cloneNode(array), _core.types.cloneNode(i), true); - let assignment; - if (_core.types.isVariableDeclaration(left)) { - assignment = left; - assignment.declarations[0].init = item; - } else { - assignment = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, item)); - } - path.replaceWith(_core.types.forStatement(_core.types.variableDeclaration("let", inits), _core.types.binaryExpression("<", _core.types.cloneNode(i), _core.types.memberExpression(_core.types.cloneNode(array), _core.types.identifier("length"))), _core.types.updateExpression("++", _core.types.cloneNode(i)), buildLoopBody(path, assignment))); - } - } - }; - } - const buildForOfArray = (0, _core.template)` - for (var KEY = 0, NAME = ARR; KEY < NAME.length; KEY++) BODY; - `; - const buildForOfNoIteratorClosing = _core.template.statements` - for (var ITERATOR_HELPER = CREATE_ITERATOR_HELPER(OBJECT, ARRAY_LIKE_IS_ITERABLE), STEP_KEY; - !(STEP_KEY = ITERATOR_HELPER()).done;) BODY; - `; - const buildForOf = _core.template.statements` - var ITERATOR_HELPER = CREATE_ITERATOR_HELPER(OBJECT, ARRAY_LIKE_IS_ITERABLE), STEP_KEY; - try { - for (ITERATOR_HELPER.s(); !(STEP_KEY = ITERATOR_HELPER.n()).done;) BODY; - } catch (err) { - ITERATOR_HELPER.e(err); - } finally { - ITERATOR_HELPER.f(); - } - `; - const builder = skipIteratorClosing ? { - build: buildForOfNoIteratorClosing, - helper: "createForOfIteratorHelperLoose", - getContainer: nodes => nodes - } : { - build: buildForOf, - helper: "createForOfIteratorHelper", - getContainer: nodes => nodes[1].block.body - }; - function _ForOfStatementArray(path) { - const { - node, - scope - } = path; - const right = scope.generateUidIdentifierBasedOnNode(node.right, "arr"); - const iterationKey = scope.generateUidIdentifier("i"); - const loop = buildForOfArray({ - BODY: node.body, - KEY: iterationKey, - NAME: right, - ARR: node.right - }); - _core.types.inherits(loop, node); - const iterationValue = _core.types.memberExpression(_core.types.cloneNode(right), _core.types.cloneNode(iterationKey), true); - let declar; - const left = node.left; - if (_core.types.isVariableDeclaration(left)) { - left.declarations[0].init = iterationValue; - declar = left; - } else { - declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, iterationValue)); - } - loop.body = buildLoopBody(path, declar, loop.body); - return loop; - } - return { - name: "transform-for-of", - visitor: { - ForOfStatement(path, state) { - const right = path.get("right"); - if (right.isArrayExpression() || right.isGenericType("Array") || _core.types.isArrayTypeAnnotation(right.getTypeAnnotation())) { - path.replaceWith(_ForOfStatementArray(path)); - return; - } - { - if (!state.availableHelper(builder.helper)) { - (0, _noHelperImplementation.default)(skipIteratorClosing, path, state); - return; - } - } - const { - node, - parent, - scope - } = path; - const left = node.left; - let declar; - const stepKey = scope.generateUid("step"); - const stepValue = _core.types.memberExpression(_core.types.identifier(stepKey), _core.types.identifier("value")); - if (_core.types.isVariableDeclaration(left)) { - declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, stepValue)]); - } else { - declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, stepValue)); - } - const nodes = builder.build({ - CREATE_ITERATOR_HELPER: state.addHelper(builder.helper), - ITERATOR_HELPER: scope.generateUidIdentifier("iterator"), - ARRAY_LIKE_IS_ITERABLE: arrayLikeIsIterable ? _core.types.booleanLiteral(true) : null, - STEP_KEY: _core.types.identifier(stepKey), - OBJECT: node.right, - BODY: buildLoopBody(path, declar) - }); - const container = builder.getContainer(nodes); - _core.types.inherits(container[0], node); - _core.types.inherits(container[0].body, node.body); - if (_core.types.isLabeledStatement(parent)) { - container[0] = _core.types.labeledStatement(parent.label, container[0]); - path.parentPath.replaceWithMultiple(nodes); - path.skip(); - } else { - path.replaceWithMultiple(nodes); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 33678: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transformWithoutHelper; -var _core = __nccwpck_require__(27324); -function transformWithoutHelper(loose, path, state) { - const pushComputedProps = loose ? pushComputedPropsLoose : pushComputedPropsSpec; - const { - node - } = path; - const build = pushComputedProps(path, state); - const declar = build.declar; - const loop = build.loop; - const block = loop.body; - path.ensureBlock(); - if (declar) { - block.body.push(declar); - } - block.body.push(...node.body.body); - _core.types.inherits(loop, node); - _core.types.inherits(loop.body, node.body); - if (build.replaceParent) { - path.parentPath.replaceWithMultiple(build.node); - path.remove(); - } else { - path.replaceWithMultiple(build.node); - } -} -const buildForOfLoose = _core.template.statement(` - for (var LOOP_OBJECT = OBJECT, - IS_ARRAY = Array.isArray(LOOP_OBJECT), - INDEX = 0, - LOOP_OBJECT = IS_ARRAY ? LOOP_OBJECT : LOOP_OBJECT[Symbol.iterator]();;) { - INTERMEDIATE; - if (IS_ARRAY) { - if (INDEX >= LOOP_OBJECT.length) break; - ID = LOOP_OBJECT[INDEX++]; - } else { - INDEX = LOOP_OBJECT.next(); - if (INDEX.done) break; - ID = INDEX.value; - } - } -`); -const buildForOf = _core.template.statements(` - var ITERATOR_COMPLETION = true; - var ITERATOR_HAD_ERROR_KEY = false; - var ITERATOR_ERROR_KEY = undefined; - try { - for ( - var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY; - !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done); - ITERATOR_COMPLETION = true - ) {} - } catch (err) { - ITERATOR_HAD_ERROR_KEY = true; - ITERATOR_ERROR_KEY = err; - } finally { - try { - if (!ITERATOR_COMPLETION && ITERATOR_KEY.return != null) { - ITERATOR_KEY.return(); - } - } finally { - if (ITERATOR_HAD_ERROR_KEY) { - throw ITERATOR_ERROR_KEY; - } - } - } -`); -function pushComputedPropsLoose(path, state) { - const { - node, - scope, - parent - } = path; - const { - left - } = node; - let declar, id, intermediate; - if (_core.types.isIdentifier(left) || _core.types.isPattern(left) || _core.types.isMemberExpression(left)) { - id = left; - intermediate = null; - } else if (_core.types.isVariableDeclaration(left)) { - id = scope.generateUidIdentifier("ref"); - declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, _core.types.identifier(id.name))]); - intermediate = _core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(id.name))]); - } else { - throw state.buildCodeFrameError(left, `Unknown node type ${left.type} in ForStatement`); - } - const iteratorKey = scope.generateUidIdentifier("iterator"); - const isArrayKey = scope.generateUidIdentifier("isArray"); - const loop = buildForOfLoose({ - LOOP_OBJECT: iteratorKey, - IS_ARRAY: isArrayKey, - OBJECT: node.right, - INDEX: scope.generateUidIdentifier("i"), - ID: id, - INTERMEDIATE: intermediate - }); - const isLabeledParent = _core.types.isLabeledStatement(parent); - let labeled; - if (isLabeledParent) { - labeled = _core.types.labeledStatement(parent.label, loop); - } - return { - replaceParent: isLabeledParent, - declar: declar, - node: labeled || loop, - loop: loop - }; -} -function pushComputedPropsSpec(path, state) { - const { - node, - scope, - parent - } = path; - const left = node.left; - let declar; - const stepKey = scope.generateUid("step"); - const stepValue = _core.types.memberExpression(_core.types.identifier(stepKey), _core.types.identifier("value")); - if (_core.types.isIdentifier(left) || _core.types.isPattern(left) || _core.types.isMemberExpression(left)) { - declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, stepValue)); - } else if (_core.types.isVariableDeclaration(left)) { - declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, stepValue)]); - } else { - throw state.buildCodeFrameError(left, `Unknown node type ${left.type} in ForStatement`); - } - const template = buildForOf({ - ITERATOR_HAD_ERROR_KEY: scope.generateUidIdentifier("didIteratorError"), - ITERATOR_COMPLETION: scope.generateUidIdentifier("iteratorNormalCompletion"), - ITERATOR_ERROR_KEY: scope.generateUidIdentifier("iteratorError"), - ITERATOR_KEY: scope.generateUidIdentifier("iterator"), - STEP_KEY: _core.types.identifier(stepKey), - OBJECT: node.right - }); - const isLabeledParent = _core.types.isLabeledStatement(parent); - const tryBody = template[3].block.body; - const loop = tryBody[0]; - if (isLabeledParent) { - tryBody[0] = _core.types.labeledStatement(parent.label, loop); - } - return { - replaceParent: isLabeledParent, - declar: declar, - loop: loop, - node: template - }; -} - -//# sourceMappingURL=no-helper-implementation.js.map - - -/***/ }), - -/***/ 20473: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperCompilationTargets = __nccwpck_require__(77116); -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperFunctionName = __nccwpck_require__(28850); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets()); - return { - name: "transform-function-name", - visitor: { - FunctionExpression: { - exit(path) { - if (path.key !== "value" && !path.parentPath.isObjectProperty()) { - const replacement = (0, _helperFunctionName.default)(path); - if (replacement) path.replaceWith(replacement); - } - } - }, - ObjectProperty(path) { - const value = path.get("value"); - if (value.isFunction()) { - const newNode = (0, _helperFunctionName.default)(value, false, supportUnicodeId); - if (newNode) value.replaceWith(newNode); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 54874: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxJsonStrings = __nccwpck_require__(90194); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - const regex = /(\\*)([\u2028\u2029])/g; - function replace(match, escapes, separator) { - const isEscaped = escapes.length % 2 === 1; - if (isEscaped) return match; - return `${escapes}\\u${separator.charCodeAt(0).toString(16)}`; - } - return { - name: "transform-json-strings", - inherits: _pluginSyntaxJsonStrings.default, - visitor: { - "DirectiveLiteral|StringLiteral"({ - node - }) { - const { - extra - } = node; - if (!(extra != null && extra.raw)) return; - extra.raw = extra.raw.replace(regex, replace); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 35766: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-literals", - visitor: { - NumericLiteral({ - node - }) { - if (node.extra && /^0[ob]/i.test(node.extra.raw)) { - node.extra = undefined; - } - }, - StringLiteral({ - node - }) { - if (node.extra && /\\[u]/gi.test(node.extra.raw)) { - node.extra = undefined; - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 77347: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxLogicalAssignmentOperators = __nccwpck_require__(88999); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-logical-assignment-operators", - inherits: _pluginSyntaxLogicalAssignmentOperators.default, - visitor: { - AssignmentExpression(path) { - const { - node, - scope - } = path; - const { - operator, - left, - right - } = node; - const operatorTrunc = operator.slice(0, -1); - if (!_core.types.LOGICAL_OPERATORS.includes(operatorTrunc)) { - return; - } - const lhs = _core.types.cloneNode(left); - if (_core.types.isMemberExpression(left)) { - const { - object, - property, - computed - } = left; - const memo = scope.maybeGenerateMemoised(object); - if (memo) { - left.object = memo; - lhs.object = _core.types.assignmentExpression("=", _core.types.cloneNode(memo), object); - } - if (computed) { - const memo = scope.maybeGenerateMemoised(property); - if (memo) { - left.property = memo; - lhs.property = _core.types.assignmentExpression("=", _core.types.cloneNode(memo), property); - } - } - } - path.replaceWith(_core.types.logicalExpression(operatorTrunc, lhs, _core.types.assignmentExpression("=", left, right))); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 68557: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-member-expression-literals", - visitor: { - MemberExpression: { - exit({ - node - }) { - const prop = node.property; - if (!node.computed && _core.types.isIdentifier(prop) && !_core.types.isValidES3Identifier(prop.name)) { - node.property = _core.types.stringLiteral(prop.name); - node.computed = true; - } - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 58800: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperModuleTransforms = __nccwpck_require__(98501); -var _core = __nccwpck_require__(27324); -const buildWrapper = _core.template.statement(` - define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) { - }) -`); -const buildAnonymousWrapper = _core.template.statement(` - define(["require"], function(REQUIRE) { - }) -`); -function injectWrapper(path, wrapper) { - const { - body, - directives - } = path.node; - path.node.directives = []; - path.node.body = []; - const amdFactoryCall = path.pushContainer("body", wrapper)[0].get("expression"); - const amdFactoryCallArgs = amdFactoryCall.get("arguments"); - const amdFactory = amdFactoryCallArgs[amdFactoryCallArgs.length - 1].get("body"); - amdFactory.pushContainer("directives", directives); - amdFactory.pushContainer("body", body); -} -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _api$assumption2; - api.assertVersion(7); - const { - allowTopLevelThis, - strict, - strictMode, - importInterop, - noInterop - } = options; - const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose; - const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose; - return { - name: "transform-modules-amd", - pre() { - this.file.set("@babel/plugin-transform-modules-*", "amd"); - }, - visitor: { - CallExpression(path, state) { - if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return; - if (!path.get("callee").isImport()) return; - let { - requireId, - resolveId, - rejectId - } = state; - if (!requireId) { - requireId = path.scope.generateUidIdentifier("require"); - state.requireId = requireId; - } - if (!resolveId || !rejectId) { - resolveId = path.scope.generateUidIdentifier("resolve"); - rejectId = path.scope.generateUidIdentifier("reject"); - state.resolveId = resolveId; - state.rejectId = rejectId; - } - let result = _core.types.identifier("imported"); - if (!noInterop) result = (0, _helperModuleTransforms.wrapInterop)(path, result, "namespace"); - path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, false, specifier => _core.template.expression.ast` - new Promise((${resolveId}, ${rejectId}) => - ${requireId}( - [${specifier}], - imported => ${_core.types.cloneNode(resolveId)}(${result}), - ${_core.types.cloneNode(rejectId)} - ) - ) - `)); - }, - Program: { - exit(path, { - requireId - }) { - if (!(0, _helperModuleTransforms.isModule)(path)) { - if (requireId) { - injectWrapper(path, buildAnonymousWrapper({ - REQUIRE: _core.types.cloneNode(requireId) - })); - } - return; - } - const amdArgs = []; - const importNames = []; - if (requireId) { - amdArgs.push(_core.types.stringLiteral("require")); - importNames.push(_core.types.cloneNode(requireId)); - } - let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); - if (moduleName) moduleName = _core.types.stringLiteral(moduleName); - const { - meta, - headers - } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { - enumerableModuleMeta, - constantReexports, - strict, - strictMode, - allowTopLevelThis, - importInterop, - noInterop, - filename: this.file.opts.filename - }); - if ((0, _helperModuleTransforms.hasExports)(meta)) { - amdArgs.push(_core.types.stringLiteral("exports")); - importNames.push(_core.types.identifier(meta.exportName)); - } - for (const [source, metadata] of meta.source) { - amdArgs.push(_core.types.stringLiteral(source)); - importNames.push(_core.types.identifier(metadata.name)); - if (!(0, _helperModuleTransforms.isSideEffectImport)(metadata)) { - const interop = (0, _helperModuleTransforms.wrapInterop)(path, _core.types.identifier(metadata.name), metadata.interop); - if (interop) { - const header = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(metadata.name), interop)); - header.loc = metadata.loc; - headers.push(header); - } - } - headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); - } - (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); - path.unshiftContainer("body", headers); - injectWrapper(path, buildWrapper({ - MODULE_NAME: moduleName, - AMD_ARGUMENTS: _core.types.arrayExpression(amdArgs), - IMPORT_NAMES: importNames - })); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 97282: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.transformDynamicImport = transformDynamicImport; -var _core = __nccwpck_require__(27324); -var _helperModuleTransforms = __nccwpck_require__(98501); -const requireNoInterop = source => _core.template.expression.ast`require(${source})`; -const requireInterop = (source, file) => _core.types.callExpression(file.addHelper("interopRequireWildcard"), [requireNoInterop(source)]); -function transformDynamicImport(path, noInterop, file) { - const buildRequire = noInterop ? requireNoInterop : requireInterop; - path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, true, false, specifier => buildRequire(specifier, file))); -} - -//# sourceMappingURL=dynamic-import.js.map - - -/***/ }), - -/***/ 88266: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperModuleTransforms = __nccwpck_require__(98501); -var _helperSimpleAccess = __nccwpck_require__(62469); -var _core = __nccwpck_require__(27324); -var _dynamicImport = __nccwpck_require__(97282); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _api$assumption2, _api$assumption3; - api.assertVersion(7); - const { - strictNamespace = false, - mjsStrictNamespace = strictNamespace, - allowTopLevelThis, - strict, - strictMode, - noInterop, - importInterop, - lazy = false, - allowCommonJSExports = true, - loose = false - } = options; - const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : loose; - const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : loose; - const noIncompleteNsImportDetection = (_api$assumption3 = api.assumption("noIncompleteNsImportDetection")) != null ? _api$assumption3 : false; - if (typeof lazy !== "boolean" && typeof lazy !== "function" && (!Array.isArray(lazy) || !lazy.every(item => typeof item === "string"))) { - throw new Error(`.lazy must be a boolean, array of strings, or a function`); - } - if (typeof strictNamespace !== "boolean") { - throw new Error(`.strictNamespace must be a boolean, or undefined`); - } - if (typeof mjsStrictNamespace !== "boolean") { - throw new Error(`.mjsStrictNamespace must be a boolean, or undefined`); - } - const getAssertion = localName => _core.template.expression.ast` - (function(){ - throw new Error( - "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." + - "Consider setting setting sourceType:script or sourceType:unambiguous in your " + - "Babel config for this file."); - })() - `; - const moduleExportsVisitor = { - ReferencedIdentifier(path) { - const localName = path.node.name; - if (localName !== "module" && localName !== "exports") return; - const localBinding = path.scope.getBinding(localName); - const rootBinding = this.scope.getBinding(localName); - if (rootBinding !== localBinding || path.parentPath.isObjectProperty({ - value: path.node - }) && path.parentPath.parentPath.isObjectPattern() || path.parentPath.isAssignmentExpression({ - left: path.node - }) || path.isAssignmentExpression({ - left: path.node - })) { - return; - } - path.replaceWith(getAssertion(localName)); - }, - UpdateExpression(path) { - const arg = path.get("argument"); - if (!arg.isIdentifier()) return; - const localName = arg.node.name; - if (localName !== "module" && localName !== "exports") return; - const localBinding = path.scope.getBinding(localName); - const rootBinding = this.scope.getBinding(localName); - if (rootBinding !== localBinding) return; - path.replaceWith(_core.types.assignmentExpression(path.node.operator[0] + "=", arg.node, getAssertion(localName))); - }, - AssignmentExpression(path) { - const left = path.get("left"); - if (left.isIdentifier()) { - const localName = left.node.name; - if (localName !== "module" && localName !== "exports") return; - const localBinding = path.scope.getBinding(localName); - const rootBinding = this.scope.getBinding(localName); - if (rootBinding !== localBinding) return; - const right = path.get("right"); - right.replaceWith(_core.types.sequenceExpression([right.node, getAssertion(localName)])); - } else if (left.isPattern()) { - const ids = left.getOuterBindingIdentifiers(); - const localName = Object.keys(ids).filter(localName => { - if (localName !== "module" && localName !== "exports") return false; - return this.scope.getBinding(localName) === path.scope.getBinding(localName); - })[0]; - if (localName) { - const right = path.get("right"); - right.replaceWith(_core.types.sequenceExpression([right.node, getAssertion(localName)])); - } - } - } - }; - return { - name: "transform-modules-commonjs", - pre() { - this.file.set("@babel/plugin-transform-modules-*", "commonjs"); - }, - visitor: { - CallExpression(path) { - if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return; - if (!_core.types.isImport(path.node.callee)) return; - let { - scope - } = path; - do { - scope.rename("require"); - } while (scope = scope.parent); - (0, _dynamicImport.transformDynamicImport)(path, noInterop, this.file); - }, - Program: { - exit(path, state) { - if (!(0, _helperModuleTransforms.isModule)(path)) return; - path.scope.rename("exports"); - path.scope.rename("module"); - path.scope.rename("require"); - path.scope.rename("__filename"); - path.scope.rename("__dirname"); - if (!allowCommonJSExports) { - { - (0, _helperSimpleAccess.default)(path, new Set(["module", "exports"]), false); - } - path.traverse(moduleExportsVisitor, { - scope: path.scope - }); - } - let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); - if (moduleName) moduleName = _core.types.stringLiteral(moduleName); - const { - meta, - headers - } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { - exportName: "exports", - constantReexports, - enumerableModuleMeta, - strict, - strictMode, - allowTopLevelThis, - noInterop, - importInterop, - lazy, - esNamespaceOnly: typeof state.filename === "string" && /\.mjs$/.test(state.filename) ? mjsStrictNamespace : strictNamespace, - noIncompleteNsImportDetection, - filename: this.file.opts.filename - }); - for (const [source, metadata] of meta.source) { - const loadExpr = _core.types.callExpression(_core.types.identifier("require"), [_core.types.stringLiteral(source)]); - let header; - if ((0, _helperModuleTransforms.isSideEffectImport)(metadata)) { - if (metadata.lazy) throw new Error("Assertion failure"); - header = _core.types.expressionStatement(loadExpr); - } else { - if (metadata.lazy && !metadata.referenced) { - continue; - } - const init = (0, _helperModuleTransforms.wrapInterop)(path, loadExpr, metadata.interop) || loadExpr; - if (metadata.lazy) { - header = _core.template.statement.ast` - function ${metadata.name}() { - const data = ${init}; - ${metadata.name} = function(){ return data; }; - return data; - } - `; - } else { - header = _core.template.statement.ast` - var ${metadata.name} = ${init}; - `; - } - } - header.loc = metadata.loc; - headers.push(header); - headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); - } - (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); - path.unshiftContainer("body", headers); - path.get("body").forEach(path => { - if (headers.indexOf(path.node) === -1) return; - if (path.isVariableDeclaration()) { - path.scope.registerDeclaration(path); - } - }); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 63853: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -exports.getExportSpecifierName = getExportSpecifierName; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperHoistVariables = __nccwpck_require__(51194); -var _core = __nccwpck_require__(27324); -var _helperModuleTransforms = __nccwpck_require__(98501); -var _helperValidatorIdentifier = __nccwpck_require__(21974); -const buildTemplate = _core.template.statement(` - SYSTEM_REGISTER(MODULE_NAME, SOURCES, function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) { - "use strict"; - BEFORE_BODY; - return { - setters: SETTERS, - execute: EXECUTE, - }; - }); -`); -const buildExportAll = _core.template.statement(` - for (var KEY in TARGET) { - if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY]; - } -`); -const MISSING_PLUGIN_WARNING = `\ -WARNING: Dynamic import() transformation must be enabled using the - @babel/plugin-transform-dynamic-import plugin. Babel 8 will - no longer transform import() without using that plugin. -`; -const MISSING_PLUGIN_ERROR = `\ -ERROR: Dynamic import() transformation must be enabled using the - @babel/plugin-transform-dynamic-import plugin. Babel 8 - no longer transforms import() without using that plugin. -`; -function getExportSpecifierName(node, stringSpecifiers) { - if (node.type === "Identifier") { - return node.name; - } else if (node.type === "StringLiteral") { - const stringValue = node.value; - if (!(0, _helperValidatorIdentifier.isIdentifierName)(stringValue)) { - stringSpecifiers.add(stringValue); - } - return stringValue; - } else { - throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${node.type}`); - } -} -function constructExportCall(path, exportIdent, exportNames, exportValues, exportStarTarget, stringSpecifiers) { - const statements = []; - if (!exportStarTarget) { - if (exportNames.length === 1) { - statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.stringLiteral(exportNames[0]), exportValues[0]]))); - } else { - const objectProperties = []; - for (let i = 0; i < exportNames.length; i++) { - const exportName = exportNames[i]; - const exportValue = exportValues[i]; - objectProperties.push(_core.types.objectProperty(stringSpecifiers.has(exportName) ? _core.types.stringLiteral(exportName) : _core.types.identifier(exportName), exportValue)); - } - statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.objectExpression(objectProperties)]))); - } - } else { - const exportObj = path.scope.generateUid("exportObj"); - statements.push(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(exportObj), _core.types.objectExpression([]))])); - statements.push(buildExportAll({ - KEY: path.scope.generateUidIdentifier("key"), - EXPORT_OBJ: _core.types.identifier(exportObj), - TARGET: exportStarTarget - })); - for (let i = 0; i < exportNames.length; i++) { - const exportName = exportNames[i]; - const exportValue = exportValues[i]; - statements.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.identifier(exportObj), _core.types.identifier(exportName)), exportValue))); - } - statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.identifier(exportObj)]))); - } - return statements; -} -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - const { - systemGlobal = "System", - allowTopLevelThis = false - } = options; - const reassignmentVisited = new WeakSet(); - const reassignmentVisitor = { - "AssignmentExpression|UpdateExpression"(path) { - if (reassignmentVisited.has(path.node)) return; - reassignmentVisited.add(path.node); - const arg = path.isAssignmentExpression() ? path.get("left") : path.get("argument"); - if (arg.isObjectPattern() || arg.isArrayPattern()) { - const exprs = [path.node]; - for (const name of Object.keys(arg.getBindingIdentifiers())) { - if (this.scope.getBinding(name) !== path.scope.getBinding(name)) { - return; - } - const exportedNames = this.exports[name]; - if (!exportedNames) continue; - for (const exportedName of exportedNames) { - exprs.push(this.buildCall(exportedName, _core.types.identifier(name)).expression); - } - } - path.replaceWith(_core.types.sequenceExpression(exprs)); - return; - } - if (!arg.isIdentifier()) return; - const name = arg.node.name; - if (this.scope.getBinding(name) !== path.scope.getBinding(name)) return; - const exportedNames = this.exports[name]; - if (!exportedNames) return; - let node = path.node; - const isPostUpdateExpression = _core.types.isUpdateExpression(node, { - prefix: false - }); - if (isPostUpdateExpression) { - node = _core.types.binaryExpression(node.operator[0], _core.types.unaryExpression("+", _core.types.cloneNode(node.argument)), _core.types.numericLiteral(1)); - } - for (const exportedName of exportedNames) { - node = this.buildCall(exportedName, node).expression; - } - if (isPostUpdateExpression) { - node = _core.types.sequenceExpression([node, path.node]); - } - path.replaceWith(node); - } - }; - return { - name: "transform-modules-systemjs", - pre() { - this.file.set("@babel/plugin-transform-modules-*", "systemjs"); - }, - visitor: { - CallExpression(path, state) { - if (_core.types.isImport(path.node.callee)) { - if (!this.file.has("@babel/plugin-proposal-dynamic-import")) { - { - console.warn(MISSING_PLUGIN_WARNING); - } - } - path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, true, specifier => _core.types.callExpression(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("import")), [specifier]))); - } - }, - MetaProperty(path, state) { - if (path.node.meta.name === "import" && path.node.property.name === "meta") { - path.replaceWith(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("meta"))); - } - }, - ReferencedIdentifier(path, state) { - if (path.node.name === "__moduleName" && !path.scope.hasBinding("__moduleName")) { - path.replaceWith(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("id"))); - } - }, - Program: { - enter(path, state) { - state.contextIdent = path.scope.generateUid("context"); - state.stringSpecifiers = new Set(); - if (!allowTopLevelThis) { - (0, _helperModuleTransforms.rewriteThis)(path); - } - }, - exit(path, state) { - const scope = path.scope; - const exportIdent = scope.generateUid("export"); - const { - contextIdent, - stringSpecifiers - } = state; - const exportMap = Object.create(null); - const modules = []; - const beforeBody = []; - const setters = []; - const sources = []; - const variableIds = []; - const removedPaths = []; - function addExportName(key, val) { - exportMap[key] = exportMap[key] || []; - exportMap[key].push(val); - } - function pushModule(source, key, specifiers) { - let module; - modules.forEach(function (m) { - if (m.key === source) { - module = m; - } - }); - if (!module) { - modules.push(module = { - key: source, - imports: [], - exports: [] - }); - } - module[key] = module[key].concat(specifiers); - } - function buildExportCall(name, val) { - return _core.types.expressionStatement(_core.types.callExpression(_core.types.identifier(exportIdent), [_core.types.stringLiteral(name), val])); - } - const exportNames = []; - const exportValues = []; - const body = path.get("body"); - for (const path of body) { - if (path.isFunctionDeclaration()) { - beforeBody.push(path.node); - removedPaths.push(path); - } else if (path.isClassDeclaration()) { - variableIds.push(_core.types.cloneNode(path.node.id)); - path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(path.node.id), _core.types.toExpression(path.node)))); - } else if (path.isVariableDeclaration()) { - path.node.kind = "var"; - } else if (path.isImportDeclaration()) { - const source = path.node.source.value; - pushModule(source, "imports", path.node.specifiers); - for (const name of Object.keys(path.getBindingIdentifiers())) { - scope.removeBinding(name); - variableIds.push(_core.types.identifier(name)); - } - path.remove(); - } else if (path.isExportAllDeclaration()) { - pushModule(path.node.source.value, "exports", path.node); - path.remove(); - } else if (path.isExportDefaultDeclaration()) { - const declar = path.node.declaration; - if (_core.types.isClassDeclaration(declar)) { - const id = declar.id; - if (id) { - exportNames.push("default"); - exportValues.push(scope.buildUndefinedNode()); - variableIds.push(_core.types.cloneNode(id)); - addExportName(id.name, "default"); - path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(id), _core.types.toExpression(declar)))); - } else { - exportNames.push("default"); - exportValues.push(_core.types.toExpression(declar)); - removedPaths.push(path); - } - } else if (_core.types.isFunctionDeclaration(declar)) { - const id = declar.id; - if (id) { - beforeBody.push(declar); - exportNames.push("default"); - exportValues.push(_core.types.cloneNode(id)); - addExportName(id.name, "default"); - } else { - exportNames.push("default"); - exportValues.push(_core.types.toExpression(declar)); - } - removedPaths.push(path); - } else { - path.replaceWith(buildExportCall("default", declar)); - } - } else if (path.isExportNamedDeclaration()) { - const declar = path.node.declaration; - if (declar) { - path.replaceWith(declar); - if (_core.types.isFunction(declar)) { - const name = declar.id.name; - addExportName(name, name); - beforeBody.push(declar); - exportNames.push(name); - exportValues.push(_core.types.cloneNode(declar.id)); - removedPaths.push(path); - } else if (_core.types.isClass(declar)) { - const name = declar.id.name; - exportNames.push(name); - exportValues.push(scope.buildUndefinedNode()); - variableIds.push(_core.types.cloneNode(declar.id)); - path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(declar.id), _core.types.toExpression(declar)))); - addExportName(name, name); - } else { - if (_core.types.isVariableDeclaration(declar)) { - declar.kind = "var"; - } - for (const name of Object.keys(_core.types.getBindingIdentifiers(declar))) { - addExportName(name, name); - } - } - } else { - const specifiers = path.node.specifiers; - if (specifiers != null && specifiers.length) { - if (path.node.source) { - pushModule(path.node.source.value, "exports", specifiers); - path.remove(); - } else { - const nodes = []; - for (const specifier of specifiers) { - const { - local, - exported - } = specifier; - const binding = scope.getBinding(local.name); - const exportedName = getExportSpecifierName(exported, stringSpecifiers); - if (binding && _core.types.isFunctionDeclaration(binding.path.node)) { - exportNames.push(exportedName); - exportValues.push(_core.types.cloneNode(local)); - } else if (!binding) { - nodes.push(buildExportCall(exportedName, local)); - } - addExportName(local.name, exportedName); - } - path.replaceWithMultiple(nodes); - } - } else { - path.remove(); - } - } - } - } - modules.forEach(function (specifiers) { - const setterBody = []; - const target = scope.generateUid(specifiers.key); - for (let specifier of specifiers.imports) { - if (_core.types.isImportNamespaceSpecifier(specifier)) { - setterBody.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", specifier.local, _core.types.identifier(target)))); - } else if (_core.types.isImportDefaultSpecifier(specifier)) { - specifier = _core.types.importSpecifier(specifier.local, _core.types.identifier("default")); - } - if (_core.types.isImportSpecifier(specifier)) { - const { - imported - } = specifier; - setterBody.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", specifier.local, _core.types.memberExpression(_core.types.identifier(target), specifier.imported, imported.type === "StringLiteral")))); - } - } - if (specifiers.exports.length) { - const exportNames = []; - const exportValues = []; - let hasExportStar = false; - for (const node of specifiers.exports) { - if (_core.types.isExportAllDeclaration(node)) { - hasExportStar = true; - } else if (_core.types.isExportSpecifier(node)) { - const exportedName = getExportSpecifierName(node.exported, stringSpecifiers); - exportNames.push(exportedName); - exportValues.push(_core.types.memberExpression(_core.types.identifier(target), node.local, _core.types.isStringLiteral(node.local))); - } else {} - } - setterBody.push(...constructExportCall(path, _core.types.identifier(exportIdent), exportNames, exportValues, hasExportStar ? _core.types.identifier(target) : null, stringSpecifiers)); - } - sources.push(_core.types.stringLiteral(specifiers.key)); - setters.push(_core.types.functionExpression(null, [_core.types.identifier(target)], _core.types.blockStatement(setterBody))); - }); - let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); - if (moduleName) moduleName = _core.types.stringLiteral(moduleName); - (0, _helperHoistVariables.default)(path, (id, name, hasInit) => { - variableIds.push(id); - if (!hasInit && name in exportMap) { - for (const exported of exportMap[name]) { - exportNames.push(exported); - exportValues.push(scope.buildUndefinedNode()); - } - } - }); - if (variableIds.length) { - beforeBody.unshift(_core.types.variableDeclaration("var", variableIds.map(id => _core.types.variableDeclarator(id)))); - } - if (exportNames.length) { - beforeBody.push(...constructExportCall(path, _core.types.identifier(exportIdent), exportNames, exportValues, null, stringSpecifiers)); - } - path.traverse(reassignmentVisitor, { - exports: exportMap, - buildCall: buildExportCall, - scope - }); - for (const path of removedPaths) { - path.remove(); - } - let hasTLA = false; - path.traverse({ - AwaitExpression(path) { - hasTLA = true; - path.stop(); - }, - Function(path) { - path.skip(); - }, - noScope: true - }); - path.node.body = [buildTemplate({ - SYSTEM_REGISTER: _core.types.memberExpression(_core.types.identifier(systemGlobal), _core.types.identifier("register")), - BEFORE_BODY: beforeBody, - MODULE_NAME: moduleName, - SETTERS: _core.types.arrayExpression(setters), - EXECUTE: _core.types.functionExpression(null, [], _core.types.blockStatement(path.node.body), false, hasTLA), - SOURCES: _core.types.arrayExpression(sources), - EXPORT_IDENTIFIER: _core.types.identifier(exportIdent), - CONTEXT_IDENTIFIER: _core.types.identifier(contextIdent) - })]; - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 61201: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _path = __nccwpck_require__(71017); -var _helperModuleTransforms = __nccwpck_require__(98501); -var _core = __nccwpck_require__(27324); -const buildPrerequisiteAssignment = (0, _core.template)(` - GLOBAL_REFERENCE = GLOBAL_REFERENCE || {} -`); -const buildWrapper = (0, _core.template)(` - (function (global, factory) { - if (typeof define === "function" && define.amd) { - define(MODULE_NAME, AMD_ARGUMENTS, factory); - } else if (typeof exports !== "undefined") { - factory(COMMONJS_ARGUMENTS); - } else { - var mod = { exports: {} }; - factory(BROWSER_ARGUMENTS); - - GLOBAL_TO_ASSIGN; - } - })( - typeof globalThis !== "undefined" ? globalThis - : typeof self !== "undefined" ? self - : this, - function(IMPORT_NAMES) { - }) -`); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _api$assumption2; - api.assertVersion(7); - const { - globals, - exactGlobals, - allowTopLevelThis, - strict, - strictMode, - noInterop, - importInterop - } = options; - const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose; - const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose; - function buildBrowserInit(browserGlobals, exactGlobals, filename, moduleName) { - const moduleNameOrBasename = moduleName ? moduleName.value : (0, _path.basename)(filename, (0, _path.extname)(filename)); - let globalToAssign = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(moduleNameOrBasename))); - let initAssignments = []; - if (exactGlobals) { - const globalName = browserGlobals[moduleNameOrBasename]; - if (globalName) { - initAssignments = []; - const members = globalName.split("."); - globalToAssign = members.slice(1).reduce((accum, curr) => { - initAssignments.push(buildPrerequisiteAssignment({ - GLOBAL_REFERENCE: _core.types.cloneNode(accum) - })); - return _core.types.memberExpression(accum, _core.types.identifier(curr)); - }, _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(members[0]))); - } - } - initAssignments.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", globalToAssign, _core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports"))))); - return initAssignments; - } - function buildBrowserArg(browserGlobals, exactGlobals, source) { - let memberExpression; - if (exactGlobals) { - const globalRef = browserGlobals[source]; - if (globalRef) { - memberExpression = globalRef.split(".").reduce((accum, curr) => _core.types.memberExpression(accum, _core.types.identifier(curr)), _core.types.identifier("global")); - } else { - memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(source))); - } - } else { - const requireName = (0, _path.basename)(source, (0, _path.extname)(source)); - const globalName = browserGlobals[requireName] || requireName; - memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(globalName))); - } - return memberExpression; - } - return { - name: "transform-modules-umd", - visitor: { - Program: { - exit(path) { - if (!(0, _helperModuleTransforms.isModule)(path)) return; - const browserGlobals = globals || {}; - const moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); - let moduleNameLiteral; - if (moduleName) moduleNameLiteral = _core.types.stringLiteral(moduleName); - const { - meta, - headers - } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { - constantReexports, - enumerableModuleMeta, - strict, - strictMode, - allowTopLevelThis, - noInterop, - importInterop, - filename: this.file.opts.filename - }); - const amdArgs = []; - const commonjsArgs = []; - const browserArgs = []; - const importNames = []; - if ((0, _helperModuleTransforms.hasExports)(meta)) { - amdArgs.push(_core.types.stringLiteral("exports")); - commonjsArgs.push(_core.types.identifier("exports")); - browserArgs.push(_core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports"))); - importNames.push(_core.types.identifier(meta.exportName)); - } - for (const [source, metadata] of meta.source) { - amdArgs.push(_core.types.stringLiteral(source)); - commonjsArgs.push(_core.types.callExpression(_core.types.identifier("require"), [_core.types.stringLiteral(source)])); - browserArgs.push(buildBrowserArg(browserGlobals, exactGlobals, source)); - importNames.push(_core.types.identifier(metadata.name)); - if (!(0, _helperModuleTransforms.isSideEffectImport)(metadata)) { - const interop = (0, _helperModuleTransforms.wrapInterop)(path, _core.types.identifier(metadata.name), metadata.interop); - if (interop) { - const header = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(metadata.name), interop)); - header.loc = meta.loc; - headers.push(header); - } - } - headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); - } - (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); - path.unshiftContainer("body", headers); - const { - body, - directives - } = path.node; - path.node.directives = []; - path.node.body = []; - const umdWrapper = path.pushContainer("body", [buildWrapper({ - MODULE_NAME: moduleNameLiteral, - AMD_ARGUMENTS: _core.types.arrayExpression(amdArgs), - COMMONJS_ARGUMENTS: commonjsArgs, - BROWSER_ARGUMENTS: browserArgs, - IMPORT_NAMES: importNames, - GLOBAL_TO_ASSIGN: buildBrowserInit(browserGlobals, exactGlobals, this.filename || "unknown", moduleNameLiteral) - })])[0]; - const umdFactory = umdWrapper.get("expression.arguments")[1].get("body"); - umdFactory.pushContainer("directives", directives); - umdFactory.pushContainer("body", body); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 22712: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(12632); -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - const { - runtime - } = options; - if (runtime !== undefined && typeof runtime !== "boolean") { - throw new Error("The 'runtime' option must be boolean"); - } - return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ - name: "transform-named-capturing-groups-regex", - feature: "namedCaptureGroups", - options: { - runtime - } - }); -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 6816: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-new-target", - visitor: { - MetaProperty(path) { - const meta = path.get("meta"); - const property = path.get("property"); - const { - scope - } = path; - if (meta.isIdentifier({ - name: "new" - }) && property.isIdentifier({ - name: "target" - })) { - const func = path.findParent(path => { - if (path.isClass()) return true; - if (path.isFunction() && !path.isArrowFunctionExpression()) { - if (path.isClassMethod({ - kind: "constructor" - })) { - return false; - } - return true; - } - return false; - }); - if (!func) { - throw path.buildCodeFrameError("new.target must be under a (non-arrow) function or a class."); - } - const { - node - } = func; - if (_core.types.isMethod(node)) { - path.replaceWith(scope.buildUndefinedNode()); - return; - } - const constructor = _core.types.memberExpression(_core.types.thisExpression(), _core.types.identifier("constructor")); - if (func.isClass()) { - path.replaceWith(constructor); - return; - } - if (!node.id) { - node.id = scope.generateUidIdentifier("target"); - } else { - let scope = path.scope; - const name = node.id.name; - while (scope !== func.parentPath.scope) { - if (scope.hasOwnBinding(name) && !scope.bindingIdentifierEquals(name, node.id)) { - scope.rename(name); - } - scope = scope.parent; - } - } - path.replaceWith(_core.types.conditionalExpression(_core.types.binaryExpression("instanceof", _core.types.thisExpression(), _core.types.cloneNode(node.id)), constructor, scope.buildUndefinedNode())); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 27879: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxNullishCoalescingOperator = __nccwpck_require__(99617); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)((api, { - loose = false -}) => { - var _api$assumption; - api.assertVersion(7); - const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : loose; - return { - name: "transform-nullish-coalescing-operator", - inherits: _pluginSyntaxNullishCoalescingOperator.default, - visitor: { - LogicalExpression(path) { - const { - node, - scope - } = path; - if (node.operator !== "??") { - return; - } - let ref; - let assignment; - if (scope.isStatic(node.left)) { - ref = node.left; - assignment = _core.types.cloneNode(node.left); - } else if (scope.path.isPattern()) { - path.replaceWith(_core.template.statement.ast`(() => ${path.node})()`); - return; - } else { - ref = scope.generateUidIdentifierBasedOnNode(node.left); - scope.push({ - id: _core.types.cloneNode(ref) - }); - assignment = _core.types.assignmentExpression("=", ref, node.left); - } - path.replaceWith(_core.types.conditionalExpression(noDocumentAll ? _core.types.binaryExpression("!=", assignment, _core.types.nullLiteral()) : _core.types.logicalExpression("&&", _core.types.binaryExpression("!==", assignment, _core.types.nullLiteral()), _core.types.binaryExpression("!==", _core.types.cloneNode(ref), scope.buildUndefinedNode())), _core.types.cloneNode(ref), node.right)); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 10317: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxNumericSeparator = __nccwpck_require__(57580); -function remover({ - node -}) { - var _extra$raw; - const { - extra - } = node; - if (extra != null && (_extra$raw = extra.raw) != null && _extra$raw.includes("_")) { - extra.raw = extra.raw.replace(/_/g, ""); - } -} -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-numeric-separator", - inherits: _pluginSyntaxNumericSeparator.default, - visitor: { - NumericLiteral: remover, - BigIntLiteral: remover - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 51272: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(36028); -var syntaxObjectRestSpread = __nccwpck_require__(63664); -var core = __nccwpck_require__(27324); -var pluginTransformParameters = __nccwpck_require__(66912); -var helperCompilationTargets = __nccwpck_require__(77116); -var compatData = __nccwpck_require__(55368); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var compatData__default = /*#__PURE__*/_interopDefaultLegacy(compatData); - -const { - isObjectProperty: isObjectProperty$1, - isArrayPattern, - isObjectPattern, - isAssignmentPattern: isAssignmentPattern$1, - isRestElement, - isIdentifier -} = core.types; -function shouldStoreRHSInTemporaryVariable(node) { - if (isArrayPattern(node)) { - const nonNullElements = node.elements.filter(element => element !== null); - if (nonNullElements.length > 1) return true;else return shouldStoreRHSInTemporaryVariable(nonNullElements[0]); - } else if (isObjectPattern(node)) { - const { - properties - } = node; - if (properties.length > 1) return true;else if (properties.length === 0) return false;else { - const firstProperty = properties[0]; - if (isObjectProperty$1(firstProperty)) { - return shouldStoreRHSInTemporaryVariable(firstProperty.value); - } else { - return shouldStoreRHSInTemporaryVariable(firstProperty); - } - } - } else if (isAssignmentPattern$1(node)) { - return shouldStoreRHSInTemporaryVariable(node.left); - } else if (isRestElement(node)) { - if (isIdentifier(node.argument)) return true; - return shouldStoreRHSInTemporaryVariable(node.argument); - } else { - return false; - } -} - -const { - isAssignmentPattern, - isObjectProperty -} = core.types; -{ - const node = core.types.identifier("a"); - const property = core.types.objectProperty(core.types.identifier("key"), node); - const pattern = core.types.objectPattern([property]); - var ZERO_REFS = core.types.isReferenced(node, property, pattern) ? 1 : 0; -} -var index = helperPluginUtils.declare((api, opts) => { - var _api$assumption, _api$assumption2, _api$assumption3, _api$assumption4; - api.assertVersion(7); - const targets = api.targets(); - const supportsObjectAssign = !helperCompilationTargets.isRequired("es6.object.assign", targets, { - compatData: compatData__default["default"] - }); - const { - useBuiltIns = supportsObjectAssign, - loose = false - } = opts; - if (typeof loose !== "boolean") { - throw new Error(".loose must be a boolean, or undefined"); - } - const ignoreFunctionLength = (_api$assumption = api.assumption("ignoreFunctionLength")) != null ? _api$assumption : loose; - const objectRestNoSymbols = (_api$assumption2 = api.assumption("objectRestNoSymbols")) != null ? _api$assumption2 : loose; - const pureGetters = (_api$assumption3 = api.assumption("pureGetters")) != null ? _api$assumption3 : loose; - const setSpreadProperties = (_api$assumption4 = api.assumption("setSpreadProperties")) != null ? _api$assumption4 : loose; - function getExtendsHelper(file) { - return useBuiltIns ? core.types.memberExpression(core.types.identifier("Object"), core.types.identifier("assign")) : file.addHelper("extends"); - } - function hasRestElement(path) { - let foundRestElement = false; - visitRestElements(path, restElement => { - foundRestElement = true; - restElement.stop(); - }); - return foundRestElement; - } - function hasObjectPatternRestElement(path) { - let foundRestElement = false; - visitRestElements(path, restElement => { - if (restElement.parentPath.isObjectPattern()) { - foundRestElement = true; - restElement.stop(); - } - }); - return foundRestElement; - } - function visitRestElements(path, visitor) { - path.traverse({ - Expression(path) { - const { - parent, - key - } = path; - if (isAssignmentPattern(parent) && key === "right" || isObjectProperty(parent) && parent.computed && key === "key") { - path.skip(); - } - }, - RestElement: visitor - }); - } - function hasSpread(node) { - for (const prop of node.properties) { - if (core.types.isSpreadElement(prop)) { - return true; - } - } - return false; - } - function extractNormalizedKeys(node) { - const props = node.properties; - const keys = []; - let allLiteral = true; - let hasTemplateLiteral = false; - for (const prop of props) { - if (core.types.isIdentifier(prop.key) && !prop.computed) { - keys.push(core.types.stringLiteral(prop.key.name)); - } else if (core.types.isTemplateLiteral(prop.key)) { - keys.push(core.types.cloneNode(prop.key)); - hasTemplateLiteral = true; - } else if (core.types.isLiteral(prop.key)) { - keys.push(core.types.stringLiteral(String(prop.key.value))); - } else { - keys.push(core.types.cloneNode(prop.key)); - allLiteral = false; - } - } - return { - keys, - allLiteral, - hasTemplateLiteral - }; - } - function replaceImpureComputedKeys(properties, scope) { - const impureComputedPropertyDeclarators = []; - for (const propPath of properties) { - const key = propPath.get("key"); - if (propPath.node.computed && !key.isPure()) { - const name = scope.generateUidBasedOnNode(key.node); - const declarator = core.types.variableDeclarator(core.types.identifier(name), key.node); - impureComputedPropertyDeclarators.push(declarator); - key.replaceWith(core.types.identifier(name)); - } - } - return impureComputedPropertyDeclarators; - } - function removeUnusedExcludedKeys(path) { - const bindings = path.getOuterBindingIdentifierPaths(); - Object.keys(bindings).forEach(bindingName => { - const bindingParentPath = bindings[bindingName].parentPath; - if (path.scope.getBinding(bindingName).references > ZERO_REFS || !bindingParentPath.isObjectProperty()) { - return; - } - bindingParentPath.remove(); - }); - } - function createObjectRest(path, file, objRef) { - const props = path.get("properties"); - const last = props[props.length - 1]; - core.types.assertRestElement(last.node); - const restElement = core.types.cloneNode(last.node); - last.remove(); - const impureComputedPropertyDeclarators = replaceImpureComputedKeys(path.get("properties"), path.scope); - const { - keys, - allLiteral, - hasTemplateLiteral - } = extractNormalizedKeys(path.node); - if (keys.length === 0) { - return [impureComputedPropertyDeclarators, restElement.argument, core.types.callExpression(getExtendsHelper(file), [core.types.objectExpression([]), core.types.sequenceExpression([core.types.callExpression(file.addHelper("objectDestructuringEmpty"), [core.types.cloneNode(objRef)]), core.types.cloneNode(objRef)])])]; - } - let keyExpression; - if (!allLiteral) { - keyExpression = core.types.callExpression(core.types.memberExpression(core.types.arrayExpression(keys), core.types.identifier("map")), [file.addHelper("toPropertyKey")]); - } else { - keyExpression = core.types.arrayExpression(keys); - if (!hasTemplateLiteral && !core.types.isProgram(path.scope.block)) { - const program = path.findParent(path => path.isProgram()); - const id = path.scope.generateUidIdentifier("excluded"); - program.scope.push({ - id, - init: keyExpression, - kind: "const" - }); - keyExpression = core.types.cloneNode(id); - } - } - return [impureComputedPropertyDeclarators, restElement.argument, core.types.callExpression(file.addHelper(`objectWithoutProperties${objectRestNoSymbols ? "Loose" : ""}`), [core.types.cloneNode(objRef), keyExpression])]; - } - function replaceRestElement(parentPath, paramPath, container) { - if (paramPath.isAssignmentPattern()) { - replaceRestElement(parentPath, paramPath.get("left"), container); - return; - } - if (paramPath.isArrayPattern() && hasRestElement(paramPath)) { - const elements = paramPath.get("elements"); - for (let i = 0; i < elements.length; i++) { - replaceRestElement(parentPath, elements[i], container); - } - } - if (paramPath.isObjectPattern() && hasRestElement(paramPath)) { - const uid = parentPath.scope.generateUidIdentifier("ref"); - const declar = core.types.variableDeclaration("let", [core.types.variableDeclarator(paramPath.node, uid)]); - if (container) { - container.push(declar); - } else { - parentPath.ensureBlock(); - parentPath.get("body").unshiftContainer("body", declar); - } - paramPath.replaceWith(core.types.cloneNode(uid)); - } - } - return { - name: "transform-object-rest-spread", - inherits: syntaxObjectRestSpread.default, - visitor: { - Function(path) { - const params = path.get("params"); - const paramsWithRestElement = new Set(); - const idsInRestParams = new Set(); - for (let i = 0; i < params.length; ++i) { - const param = params[i]; - if (hasRestElement(param)) { - paramsWithRestElement.add(i); - for (const name of Object.keys(param.getBindingIdentifiers())) { - idsInRestParams.add(name); - } - } - } - let idInRest = false; - const IdentifierHandler = function (path, functionScope) { - const name = path.node.name; - if (path.scope.getBinding(name) === functionScope.getBinding(name) && idsInRestParams.has(name)) { - idInRest = true; - path.stop(); - } - }; - let i; - for (i = 0; i < params.length && !idInRest; ++i) { - const param = params[i]; - if (!paramsWithRestElement.has(i)) { - if (param.isReferencedIdentifier() || param.isBindingIdentifier()) { - IdentifierHandler(param, path.scope); - } else { - param.traverse({ - "Scope|TypeAnnotation|TSTypeAnnotation": path => path.skip(), - "ReferencedIdentifier|BindingIdentifier": IdentifierHandler - }, path.scope); - } - } - } - if (!idInRest) { - for (let i = 0; i < params.length; ++i) { - const param = params[i]; - if (paramsWithRestElement.has(i)) { - replaceRestElement(path, param); - } - } - } else { - const shouldTransformParam = idx => idx >= i - 1 || paramsWithRestElement.has(idx); - pluginTransformParameters.convertFunctionParams(path, ignoreFunctionLength, shouldTransformParam, replaceRestElement); - } - }, - VariableDeclarator(path, file) { - if (!path.get("id").isObjectPattern()) { - return; - } - let insertionPath = path; - const originalPath = path; - visitRestElements(path.get("id"), path => { - if (!path.parentPath.isObjectPattern()) { - return; - } - if (shouldStoreRHSInTemporaryVariable(originalPath.node.id) && !core.types.isIdentifier(originalPath.node.init)) { - const initRef = path.scope.generateUidIdentifierBasedOnNode(originalPath.node.init, "ref"); - originalPath.insertBefore(core.types.variableDeclarator(initRef, originalPath.node.init)); - originalPath.replaceWith(core.types.variableDeclarator(originalPath.node.id, core.types.cloneNode(initRef))); - return; - } - let ref = originalPath.node.init; - const refPropertyPath = []; - let kind; - path.findParent(path => { - if (path.isObjectProperty()) { - refPropertyPath.unshift(path); - } else if (path.isVariableDeclarator()) { - kind = path.parentPath.node.kind; - return true; - } - }); - const impureObjRefComputedDeclarators = replaceImpureComputedKeys(refPropertyPath, path.scope); - refPropertyPath.forEach(prop => { - const { - node - } = prop; - ref = core.types.memberExpression(ref, core.types.cloneNode(node.key), node.computed || core.types.isLiteral(node.key)); - }); - const objectPatternPath = path.findParent(path => path.isObjectPattern()); - const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectRest(objectPatternPath, file, ref); - if (pureGetters) { - removeUnusedExcludedKeys(objectPatternPath); - } - core.types.assertIdentifier(argument); - insertionPath.insertBefore(impureComputedPropertyDeclarators); - insertionPath.insertBefore(impureObjRefComputedDeclarators); - insertionPath = insertionPath.insertAfter(core.types.variableDeclarator(argument, callExpression))[0]; - path.scope.registerBinding(kind, insertionPath); - if (objectPatternPath.node.properties.length === 0) { - objectPatternPath.findParent(path => path.isObjectProperty() || path.isVariableDeclarator()).remove(); - } - }); - }, - ExportNamedDeclaration(path) { - const declaration = path.get("declaration"); - if (!declaration.isVariableDeclaration()) return; - const hasRest = declaration.get("declarations").some(path => hasObjectPatternRestElement(path.get("id"))); - if (!hasRest) return; - const specifiers = []; - for (const name of Object.keys(path.getOuterBindingIdentifiers(true))) { - specifiers.push(core.types.exportSpecifier(core.types.identifier(name), core.types.identifier(name))); - } - path.replaceWith(declaration.node); - path.insertAfter(core.types.exportNamedDeclaration(null, specifiers)); - }, - CatchClause(path) { - const paramPath = path.get("param"); - replaceRestElement(path, paramPath); - }, - AssignmentExpression(path, file) { - const leftPath = path.get("left"); - if (leftPath.isObjectPattern() && hasRestElement(leftPath)) { - const nodes = []; - const refName = path.scope.generateUidBasedOnNode(path.node.right, "ref"); - nodes.push(core.types.variableDeclaration("var", [core.types.variableDeclarator(core.types.identifier(refName), path.node.right)])); - const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectRest(leftPath, file, core.types.identifier(refName)); - if (impureComputedPropertyDeclarators.length > 0) { - nodes.push(core.types.variableDeclaration("var", impureComputedPropertyDeclarators)); - } - const nodeWithoutSpread = core.types.cloneNode(path.node); - nodeWithoutSpread.right = core.types.identifier(refName); - nodes.push(core.types.expressionStatement(nodeWithoutSpread)); - nodes.push(core.types.expressionStatement(core.types.assignmentExpression("=", argument, callExpression))); - nodes.push(core.types.expressionStatement(core.types.identifier(refName))); - path.replaceWithMultiple(nodes); - } - }, - ForXStatement(path) { - const { - node, - scope - } = path; - const leftPath = path.get("left"); - const left = node.left; - if (!hasObjectPatternRestElement(leftPath)) { - return; - } - if (!core.types.isVariableDeclaration(left)) { - const temp = scope.generateUidIdentifier("ref"); - node.left = core.types.variableDeclaration("var", [core.types.variableDeclarator(temp)]); - path.ensureBlock(); - const body = path.node.body; - if (body.body.length === 0 && path.isCompletionRecord()) { - body.body.unshift(core.types.expressionStatement(scope.buildUndefinedNode())); - } - body.body.unshift(core.types.expressionStatement(core.types.assignmentExpression("=", left, core.types.cloneNode(temp)))); - } else { - const pattern = left.declarations[0].id; - const key = scope.generateUidIdentifier("ref"); - node.left = core.types.variableDeclaration(left.kind, [core.types.variableDeclarator(key, null)]); - path.ensureBlock(); - const body = node.body; - body.body.unshift(core.types.variableDeclaration(node.left.kind, [core.types.variableDeclarator(pattern, core.types.cloneNode(key))])); - } - }, - ArrayPattern(path) { - const objectPatterns = []; - visitRestElements(path, path => { - if (!path.parentPath.isObjectPattern()) { - return; - } - const objectPattern = path.parentPath; - const uid = path.scope.generateUidIdentifier("ref"); - objectPatterns.push(core.types.variableDeclarator(objectPattern.node, uid)); - objectPattern.replaceWith(core.types.cloneNode(uid)); - path.skip(); - }); - if (objectPatterns.length > 0) { - const statementPath = path.getStatementParent(); - const statementNode = statementPath.node; - const kind = statementNode.type === "VariableDeclaration" ? statementNode.kind : "var"; - statementPath.insertAfter(core.types.variableDeclaration(kind, objectPatterns)); - } - }, - ObjectExpression(path, file) { - if (!hasSpread(path.node)) return; - let helper; - if (setSpreadProperties) { - helper = getExtendsHelper(file); - } else { - try { - helper = file.addHelper("objectSpread2"); - } catch (_unused) { - this.file.declarations["objectSpread2"] = null; - helper = file.addHelper("objectSpread"); - } - } - let exp = null; - let props = []; - function make() { - const hadProps = props.length > 0; - const obj = core.types.objectExpression(props); - props = []; - if (!exp) { - exp = core.types.callExpression(helper, [obj]); - return; - } - if (pureGetters) { - if (hadProps) { - exp.arguments.push(obj); - } - return; - } - exp = core.types.callExpression(core.types.cloneNode(helper), [exp, ...(hadProps ? [core.types.objectExpression([]), obj] : [])]); - } - for (const prop of path.node.properties) { - if (core.types.isSpreadElement(prop)) { - make(); - exp.arguments.push(prop.argument); - } else { - props.push(prop); - } - } - if (props.length) make(); - path.replaceWith(exp); - } - } - }; -}); - -exports["default"] = index; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 7467: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperReplaceSupers = __nccwpck_require__(20846); -var _core = __nccwpck_require__(27324); -function replacePropertySuper(path, getObjectRef, file) { - const replaceSupers = new _helperReplaceSupers.default({ - getObjectRef: getObjectRef, - methodPath: path, - file: file - }); - replaceSupers.replace(); -} -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-object-super", - visitor: { - ObjectExpression(path, state) { - let objectRef; - const getObjectRef = () => objectRef = objectRef || path.scope.generateUidIdentifier("obj"); - path.get("properties").forEach(propPath => { - if (!propPath.isMethod()) return; - replacePropertySuper(propPath, getObjectRef, state.file); - }); - if (objectRef) { - path.scope.push({ - id: _core.types.cloneNode(objectRef) - }); - path.replaceWith(_core.types.assignmentExpression("=", _core.types.cloneNode(objectRef), path.node)); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 17512: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxOptionalCatchBinding = __nccwpck_require__(73508); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-optional-catch-binding", - inherits: _pluginSyntaxOptionalCatchBinding.default, - visitor: { - CatchClause(path) { - if (!path.node.param) { - const uid = path.scope.generateUidIdentifier("unused"); - const paramPath = path.get("param"); - paramPath.replaceWith(uid); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 5040: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(36028); -var syntaxOptionalChaining = __nccwpck_require__(63652); -var core = __nccwpck_require__(27324); -var helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); - -function willPathCastToBoolean(path) { - const maybeWrapped = findOutermostTransparentParent(path); - const { - node, - parentPath - } = maybeWrapped; - if (parentPath.isLogicalExpression()) { - const { - operator, - right - } = parentPath.node; - if (operator === "&&" || operator === "||" || operator === "??" && node === right) { - return willPathCastToBoolean(parentPath); - } - } - if (parentPath.isSequenceExpression()) { - const { - expressions - } = parentPath.node; - if (expressions[expressions.length - 1] === node) { - return willPathCastToBoolean(parentPath); - } else { - return true; - } - } - return parentPath.isConditional({ - test: node - }) || parentPath.isUnaryExpression({ - operator: "!" - }) || parentPath.isLoop({ - test: node - }); -} -function findOutermostTransparentParent(path) { - let maybeWrapped = path; - path.findParent(p => { - if (!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p.node)) return true; - maybeWrapped = p; - }); - return maybeWrapped; -} - -const { - ast -} = core.template.expression; -function isSimpleMemberExpression(expression) { - expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression); - return core.types.isIdentifier(expression) || core.types.isSuper(expression) || core.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object); -} -function needsMemoize(path) { - let optionalPath = path; - const { - scope - } = path; - while (optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression()) { - const { - node - } = optionalPath; - const childPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.isOptionalMemberExpression() ? optionalPath.get("object") : optionalPath.get("callee")); - if (node.optional) { - return !scope.isStatic(childPath.node); - } - optionalPath = childPath; - } -} -function transform(path, { - pureGetters, - noDocumentAll -}) { - const { - scope - } = path; - const maybeWrapped = findOutermostTransparentParent(path); - const { - parentPath - } = maybeWrapped; - const willReplacementCastToBoolean = willPathCastToBoolean(maybeWrapped); - let isDeleteOperation = false; - const parentIsCall = parentPath.isCallExpression({ - callee: maybeWrapped.node - }) && path.isOptionalMemberExpression(); - const optionals = []; - let optionalPath = path; - if (scope.path.isPattern() && needsMemoize(optionalPath)) { - path.replaceWith(core.template.ast`(() => ${path.node})()`); - return; - } - while (optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression()) { - const { - node - } = optionalPath; - if (node.optional) { - optionals.push(node); - } - if (optionalPath.isOptionalMemberExpression()) { - optionalPath.node.type = "MemberExpression"; - optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object")); - } else if (optionalPath.isOptionalCallExpression()) { - optionalPath.node.type = "CallExpression"; - optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")); - } - } - let replacementPath = path; - if (parentPath.isUnaryExpression({ - operator: "delete" - })) { - replacementPath = parentPath; - isDeleteOperation = true; - } - for (let i = optionals.length - 1; i >= 0; i--) { - const node = optionals[i]; - const isCall = core.types.isCallExpression(node); - const chainWithTypes = isCall ? node.callee : node.object; - const chain = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes); - let ref; - let check; - if (isCall && core.types.isIdentifier(chain, { - name: "eval" - })) { - check = ref = chain; - node.callee = core.types.sequenceExpression([core.types.numericLiteral(0), ref]); - } else if (pureGetters && isCall && isSimpleMemberExpression(chain)) { - check = ref = node.callee; - } else { - ref = scope.maybeGenerateMemoised(chain); - if (ref) { - check = core.types.assignmentExpression("=", core.types.cloneNode(ref), chainWithTypes); - isCall ? node.callee = ref : node.object = ref; - } else { - check = ref = chainWithTypes; - } - } - if (isCall && core.types.isMemberExpression(chain)) { - if (pureGetters && isSimpleMemberExpression(chain)) { - node.callee = chainWithTypes; - } else { - const { - object - } = chain; - let context; - if (core.types.isSuper(object)) { - context = core.types.thisExpression(); - } else { - const memoized = scope.maybeGenerateMemoised(object); - if (memoized) { - context = memoized; - chain.object = core.types.assignmentExpression("=", memoized, object); - } else { - context = object; - } - } - node.arguments.unshift(core.types.cloneNode(context)); - node.callee = core.types.memberExpression(node.callee, core.types.identifier("call")); - } - } - let replacement = replacementPath.node; - if (i === 0 && parentIsCall) { - var _baseRef; - const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object); - let baseRef; - if (!pureGetters || !isSimpleMemberExpression(object)) { - baseRef = scope.maybeGenerateMemoised(object); - if (baseRef) { - replacement.object = core.types.assignmentExpression("=", baseRef, object); - } - } - replacement = core.types.callExpression(core.types.memberExpression(replacement, core.types.identifier("bind")), [core.types.cloneNode((_baseRef = baseRef) != null ? _baseRef : object)]); - } - if (willReplacementCastToBoolean) { - const nonNullishCheck = noDocumentAll ? ast`${core.types.cloneNode(check)} != null` : ast` - ${core.types.cloneNode(check)} !== null && ${core.types.cloneNode(ref)} !== void 0`; - replacementPath.replaceWith(core.types.logicalExpression("&&", nonNullishCheck, replacement)); - replacementPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(replacementPath.get("right")); - } else { - const nullishCheck = noDocumentAll ? ast`${core.types.cloneNode(check)} == null` : ast` - ${core.types.cloneNode(check)} === null || ${core.types.cloneNode(ref)} === void 0`; - const returnValue = isDeleteOperation ? ast`true` : ast`void 0`; - replacementPath.replaceWith(core.types.conditionalExpression(nullishCheck, returnValue, replacement)); - replacementPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(replacementPath.get("alternate")); - } - } -} - -var index = helperPluginUtils.declare((api, options) => { - var _api$assumption, _api$assumption2; - api.assertVersion(7); - const { - loose = false - } = options; - const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : loose; - const pureGetters = (_api$assumption2 = api.assumption("pureGetters")) != null ? _api$assumption2 : loose; - return { - name: "transform-optional-chaining", - inherits: syntaxOptionalChaining.default, - visitor: { - "OptionalCallExpression|OptionalMemberExpression"(path) { - transform(path, { - noDocumentAll, - pureGetters - }); - } - } - }; -}); - -exports["default"] = index; -exports.transform = transform; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 66912: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "convertFunctionParams", ({ - enumerable: true, - get: function () { - return _params.default; - } -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _params = __nccwpck_require__(16106); -var _rest = __nccwpck_require__(46714); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _api$assumption2; - api.assertVersion(7); - const ignoreFunctionLength = (_api$assumption = api.assumption("ignoreFunctionLength")) != null ? _api$assumption : options.loose; - const noNewArrows = (_api$assumption2 = api.assumption("noNewArrows")) != null ? _api$assumption2 : true; - return { - name: "transform-parameters", - visitor: { - Function(path) { - if (path.isArrowFunctionExpression() && path.get("params").some(param => param.isRestElement() || param.isAssignmentPattern())) { - path.arrowFunctionToExpression({ - allowInsertArrowWithRest: false, - noNewArrows - }); - if (!path.isFunctionExpression()) return; - } - const convertedRest = (0, _rest.default)(path); - const convertedParams = (0, _params.default)(path, ignoreFunctionLength); - if (convertedRest || convertedParams) { - path.scope.crawl(); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 16106: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = convertFunctionParams; -var _core = __nccwpck_require__(27324); -var _shadowUtils = __nccwpck_require__(95947); -const buildDefaultParam = _core.template.statement(` - let VARIABLE_NAME = - arguments.length > ARGUMENT_KEY && arguments[ARGUMENT_KEY] !== undefined ? - arguments[ARGUMENT_KEY] - : - DEFAULT_VALUE; -`); -const buildLooseDefaultParam = _core.template.statement(` - if (ASSIGNMENT_IDENTIFIER === UNDEFINED) { - ASSIGNMENT_IDENTIFIER = DEFAULT_VALUE; - } -`); -const buildLooseDestructuredDefaultParam = _core.template.statement(` - let ASSIGNMENT_IDENTIFIER = PARAMETER_NAME === UNDEFINED ? DEFAULT_VALUE : PARAMETER_NAME ; -`); -const buildSafeArgumentsAccess = _core.template.statement(` - let $0 = arguments.length > $1 ? arguments[$1] : undefined; -`); -function convertFunctionParams(path, ignoreFunctionLength, shouldTransformParam, replaceRestElement) { - const params = path.get("params"); - const isSimpleParameterList = params.every(param => param.isIdentifier()); - if (isSimpleParameterList) return false; - const { - node, - scope - } = path; - const body = []; - const shadowedParams = new Set(); - for (const param of params) { - (0, _shadowUtils.collectShadowedParamsNames)(param, scope, shadowedParams); - } - const state = { - needsOuterBinding: false, - scope - }; - if (shadowedParams.size === 0) { - for (const param of params) { - if (!param.isIdentifier()) param.traverse(_shadowUtils.iifeVisitor, state); - if (state.needsOuterBinding) break; - } - } - let firstOptionalIndex = null; - for (let i = 0; i < params.length; i++) { - const param = params[i]; - if (shouldTransformParam && !shouldTransformParam(i)) { - continue; - } - const transformedRestNodes = []; - if (replaceRestElement) { - replaceRestElement(path, param, transformedRestNodes); - } - const paramIsAssignmentPattern = param.isAssignmentPattern(); - if (paramIsAssignmentPattern && (ignoreFunctionLength || _core.types.isMethod(node, { - kind: "set" - }))) { - const left = param.get("left"); - const right = param.get("right"); - const undefinedNode = scope.buildUndefinedNode(); - if (left.isIdentifier()) { - body.push(buildLooseDefaultParam({ - ASSIGNMENT_IDENTIFIER: _core.types.cloneNode(left.node), - DEFAULT_VALUE: right.node, - UNDEFINED: undefinedNode - })); - param.replaceWith(left.node); - } else if (left.isObjectPattern() || left.isArrayPattern()) { - const paramName = scope.generateUidIdentifier(); - body.push(buildLooseDestructuredDefaultParam({ - ASSIGNMENT_IDENTIFIER: left.node, - DEFAULT_VALUE: right.node, - PARAMETER_NAME: _core.types.cloneNode(paramName), - UNDEFINED: undefinedNode - })); - param.replaceWith(paramName); - } - } else if (paramIsAssignmentPattern) { - if (firstOptionalIndex === null) firstOptionalIndex = i; - const left = param.get("left"); - const right = param.get("right"); - const defNode = buildDefaultParam({ - VARIABLE_NAME: left.node, - DEFAULT_VALUE: right.node, - ARGUMENT_KEY: _core.types.numericLiteral(i) - }); - body.push(defNode); - } else if (firstOptionalIndex !== null) { - const defNode = buildSafeArgumentsAccess([param.node, _core.types.numericLiteral(i)]); - body.push(defNode); - } else if (param.isObjectPattern() || param.isArrayPattern()) { - const uid = path.scope.generateUidIdentifier("ref"); - uid.typeAnnotation = param.node.typeAnnotation; - const defNode = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(param.node, uid)]); - body.push(defNode); - param.replaceWith(_core.types.cloneNode(uid)); - } - if (transformedRestNodes) { - for (const transformedNode of transformedRestNodes) { - body.push(transformedNode); - } - } - } - if (firstOptionalIndex !== null) { - node.params = node.params.slice(0, firstOptionalIndex); - } - path.ensureBlock(); - const { - async, - generator - } = node; - if (generator || state.needsOuterBinding || shadowedParams.size > 0) { - body.push((0, _shadowUtils.buildScopeIIFE)(shadowedParams, path.node.body)); - path.set("body", _core.types.blockStatement(body)); - const bodyPath = path.get("body.body"); - const arrowPath = bodyPath[bodyPath.length - 1].get("argument.callee"); - arrowPath.arrowFunctionToExpression(); - arrowPath.node.generator = generator; - arrowPath.node.async = async; - node.generator = false; - node.async = false; - if (async) { - path.node.body = _core.template.statement.ast`{ - try { - ${path.node.body.body} - } catch (e) { - return Promise.reject(e); - } - }`; - } - } else { - path.get("body").unshiftContainer("body", body); - } - return true; -} - -//# sourceMappingURL=params.js.map - - -/***/ }), - -/***/ 46714: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = convertFunctionRest; -var _core = __nccwpck_require__(27324); -var _shadowUtils = __nccwpck_require__(95947); -const buildRest = _core.template.statement(` - for (var LEN = ARGUMENTS.length, - ARRAY = new Array(ARRAY_LEN), - KEY = START; - KEY < LEN; - KEY++) { - ARRAY[ARRAY_KEY] = ARGUMENTS[KEY]; - } -`); -const restIndex = _core.template.expression(` - (INDEX < OFFSET || ARGUMENTS.length <= INDEX) ? undefined : ARGUMENTS[INDEX] -`); -const restIndexImpure = _core.template.expression(` - REF = INDEX, (REF < OFFSET || ARGUMENTS.length <= REF) ? undefined : ARGUMENTS[REF] -`); -const restLength = _core.template.expression(` - ARGUMENTS.length <= OFFSET ? 0 : ARGUMENTS.length - OFFSET -`); -function referencesRest(path, state) { - if (path.node.name === state.name) { - return path.scope.bindingIdentifierEquals(state.name, state.outerBinding); - } - return false; -} -const memberExpressionOptimisationVisitor = { - Scope(path, state) { - if (!path.scope.bindingIdentifierEquals(state.name, state.outerBinding)) { - path.skip(); - } - }, - Flow(path) { - if (path.isTypeCastExpression()) return; - path.skip(); - }, - Function(path, state) { - const oldNoOptimise = state.noOptimise; - state.noOptimise = true; - path.traverse(memberExpressionOptimisationVisitor, state); - state.noOptimise = oldNoOptimise; - path.skip(); - }, - ReferencedIdentifier(path, state) { - const { - node - } = path; - if (node.name === "arguments") { - state.deopted = true; - } - if (!referencesRest(path, state)) return; - if (state.noOptimise) { - state.deopted = true; - } else { - const { - parentPath - } = path; - if (parentPath.listKey === "params" && parentPath.key < state.offset) { - return; - } - if (parentPath.isMemberExpression({ - object: node - })) { - const grandparentPath = parentPath.parentPath; - const argsOptEligible = !state.deopted && !(grandparentPath.isAssignmentExpression() && parentPath.node === grandparentPath.node.left || grandparentPath.isLVal() || grandparentPath.isForXStatement() || grandparentPath.isUpdateExpression() || grandparentPath.isUnaryExpression({ - operator: "delete" - }) || (grandparentPath.isCallExpression() || grandparentPath.isNewExpression()) && parentPath.node === grandparentPath.node.callee); - if (argsOptEligible) { - if (parentPath.node.computed) { - if (parentPath.get("property").isBaseType("number")) { - state.candidates.push({ - cause: "indexGetter", - path - }); - return; - } - } else if (parentPath.node.property.name === "length") { - state.candidates.push({ - cause: "lengthGetter", - path - }); - return; - } - } - } - if (state.offset === 0 && parentPath.isSpreadElement()) { - const call = parentPath.parentPath; - if (call.isCallExpression() && call.node.arguments.length === 1) { - state.candidates.push({ - cause: "argSpread", - path - }); - return; - } - } - state.references.push(path); - } - }, - BindingIdentifier(path, state) { - if (referencesRest(path, state)) { - state.deopted = true; - } - } -}; -function getParamsCount(node) { - let count = node.params.length; - if (count > 0 && _core.types.isIdentifier(node.params[0], { - name: "this" - })) { - count -= 1; - } - return count; -} -function hasRest(node) { - const length = node.params.length; - return length > 0 && _core.types.isRestElement(node.params[length - 1]); -} -function optimiseIndexGetter(path, argsId, offset) { - const offsetLiteral = _core.types.numericLiteral(offset); - let index; - const parent = path.parent; - if (_core.types.isNumericLiteral(parent.property)) { - index = _core.types.numericLiteral(parent.property.value + offset); - } else if (offset === 0) { - index = parent.property; - } else { - index = _core.types.binaryExpression("+", parent.property, _core.types.cloneNode(offsetLiteral)); - } - const { - scope, - parentPath - } = path; - if (!scope.isPure(index)) { - const temp = scope.generateUidIdentifierBasedOnNode(index); - scope.push({ - id: temp, - kind: "var" - }); - parentPath.replaceWith(restIndexImpure({ - ARGUMENTS: argsId, - OFFSET: offsetLiteral, - INDEX: index, - REF: _core.types.cloneNode(temp) - })); - } else { - parentPath.replaceWith(restIndex({ - ARGUMENTS: argsId, - OFFSET: offsetLiteral, - INDEX: index - })); - const replacedParentPath = parentPath; - const offsetTestPath = replacedParentPath.get("test"); - const valRes = offsetTestPath.get("left").evaluate(); - if (valRes.confident) { - if (valRes.value === true) { - replacedParentPath.replaceWith(scope.buildUndefinedNode()); - } else { - offsetTestPath.replaceWith(offsetTestPath.get("right")); - } - } - } -} -function optimiseLengthGetter(path, argsId, offset) { - if (offset) { - path.parentPath.replaceWith(restLength({ - ARGUMENTS: argsId, - OFFSET: _core.types.numericLiteral(offset) - })); - } else { - path.replaceWith(argsId); - } -} -function convertFunctionRest(path) { - const { - node, - scope - } = path; - if (!hasRest(node)) return false; - const restPath = path.get(`params.${node.params.length - 1}.argument`); - if (!restPath.isIdentifier()) { - const shadowedParams = new Set(); - (0, _shadowUtils.collectShadowedParamsNames)(restPath, path.scope, shadowedParams); - let needsIIFE = shadowedParams.size > 0; - if (!needsIIFE) { - const state = { - needsOuterBinding: false, - scope - }; - restPath.traverse(_shadowUtils.iifeVisitor, state); - needsIIFE = state.needsOuterBinding; - } - if (needsIIFE) { - path.ensureBlock(); - path.set("body", _core.types.blockStatement([(0, _shadowUtils.buildScopeIIFE)(shadowedParams, path.node.body)])); - } - } - let rest = restPath.node; - node.params.pop(); - if (_core.types.isPattern(rest)) { - const pattern = rest; - rest = scope.generateUidIdentifier("ref"); - const declar = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(pattern, rest)]); - path.ensureBlock(); - node.body.body.unshift(declar); - } else if (rest.name === "arguments") { - scope.rename(rest.name); - } - const argsId = _core.types.identifier("arguments"); - const paramsCount = getParamsCount(node); - const state = { - references: [], - offset: paramsCount, - argumentsNode: argsId, - outerBinding: scope.getBindingIdentifier(rest.name), - candidates: [], - name: rest.name, - deopted: false - }; - path.traverse(memberExpressionOptimisationVisitor, state); - if (!state.deopted && !state.references.length) { - for (const { - path, - cause - } of state.candidates) { - const clonedArgsId = _core.types.cloneNode(argsId); - switch (cause) { - case "indexGetter": - optimiseIndexGetter(path, clonedArgsId, state.offset); - break; - case "lengthGetter": - optimiseLengthGetter(path, clonedArgsId, state.offset); - break; - default: - path.replaceWith(clonedArgsId); - } - } - return true; - } - state.references.push(...state.candidates.map(({ - path - }) => path)); - const start = _core.types.numericLiteral(paramsCount); - const key = scope.generateUidIdentifier("key"); - const len = scope.generateUidIdentifier("len"); - let arrKey, arrLen; - if (paramsCount) { - arrKey = _core.types.binaryExpression("-", _core.types.cloneNode(key), _core.types.cloneNode(start)); - arrLen = _core.types.conditionalExpression(_core.types.binaryExpression(">", _core.types.cloneNode(len), _core.types.cloneNode(start)), _core.types.binaryExpression("-", _core.types.cloneNode(len), _core.types.cloneNode(start)), _core.types.numericLiteral(0)); - } else { - arrKey = _core.types.identifier(key.name); - arrLen = _core.types.identifier(len.name); - } - const loop = buildRest({ - ARGUMENTS: argsId, - ARRAY_KEY: arrKey, - ARRAY_LEN: arrLen, - START: start, - ARRAY: rest, - KEY: key, - LEN: len - }); - if (state.deopted) { - node.body.body.unshift(loop); - } else { - let target = path.getEarliestCommonAncestorFrom(state.references).getStatementParent(); - target.findParent(path => { - if (path.isLoop()) { - target = path; - } else { - return path.isFunction(); - } - }); - target.insertBefore(loop); - } - return true; -} - -//# sourceMappingURL=rest.js.map - - -/***/ }), - -/***/ 95947: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.buildScopeIIFE = buildScopeIIFE; -exports.collectShadowedParamsNames = collectShadowedParamsNames; -exports.iifeVisitor = void 0; -var _core = __nccwpck_require__(27324); -const iifeVisitor = { - "ReferencedIdentifier|BindingIdentifier"(path, state) { - const { - scope, - node - } = path; - const { - name - } = node; - if (name === "eval" || scope.getBinding(name) === state.scope.parent.getBinding(name) && state.scope.hasOwnBinding(name)) { - state.needsOuterBinding = true; - path.stop(); - } - }, - "TypeAnnotation|TSTypeAnnotation|TypeParameterDeclaration|TSTypeParameterDeclaration": path => path.skip() -}; -exports.iifeVisitor = iifeVisitor; -function collectShadowedParamsNames(param, functionScope, shadowedParams) { - for (const name of Object.keys(param.getBindingIdentifiers())) { - var _functionScope$bindin; - const constantViolations = (_functionScope$bindin = functionScope.bindings[name]) == null ? void 0 : _functionScope$bindin.constantViolations; - if (constantViolations) { - for (const redeclarator of constantViolations) { - const node = redeclarator.node; - switch (node.type) { - case "VariableDeclarator": - { - if (node.init === null) { - const declaration = redeclarator.parentPath; - if (!declaration.parentPath.isFor() || declaration.parentPath.get("body") === declaration) { - redeclarator.remove(); - break; - } - } - shadowedParams.add(name); - break; - } - case "FunctionDeclaration": - shadowedParams.add(name); - break; - } - } - } - } -} -function buildScopeIIFE(shadowedParams, body) { - const args = []; - const params = []; - for (const name of shadowedParams) { - args.push(_core.types.identifier(name)); - params.push(_core.types.identifier(name)); - } - return _core.types.returnStatement(_core.types.callExpression(_core.types.arrowFunctionExpression(params, body), args)); -} - -//# sourceMappingURL=shadow-utils.js.map - - -/***/ }), - -/***/ 63263: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperCreateClassFeaturesPlugin = __nccwpck_require__(14414); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ - name: "transform-private-methods", - api, - feature: _helperCreateClassFeaturesPlugin.FEATURES.privateMethods, - loose: options.loose, - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("classPrivateMethods"); - } - }); -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 25172: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxPrivatePropertyInObject = __nccwpck_require__(50811); -var _helperCreateClassFeaturesPlugin = __nccwpck_require__(14414); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _default = (0, _helperPluginUtils.declare)((api, opt) => { - api.assertVersion(7); - const { - types: t, - template - } = api; - const { - loose - } = opt; - const classWeakSets = new WeakMap(); - const fieldsWeakSets = new WeakMap(); - function unshadow(name, targetScope, scope) { - while (scope !== targetScope) { - if (scope.hasOwnBinding(name)) scope.rename(name); - scope = scope.parent; - } - } - function injectToFieldInit(fieldPath, expr, before = false) { - if (fieldPath.node.value) { - const value = fieldPath.get("value"); - if (before) { - value.insertBefore(expr); - } else { - value.insertAfter(expr); - } - } else { - fieldPath.set("value", t.unaryExpression("void", expr)); - } - } - function injectInitialization(classPath, init) { - let firstFieldPath; - let constructorPath; - for (const el of classPath.get("body.body")) { - if ((el.isClassProperty() || el.isClassPrivateProperty()) && !el.node.static) { - firstFieldPath = el; - break; - } - if (!constructorPath && el.isClassMethod({ - kind: "constructor" - })) { - constructorPath = el; - } - } - if (firstFieldPath) { - injectToFieldInit(firstFieldPath, init, true); - } else { - (0, _helperCreateClassFeaturesPlugin.injectInitialization)(classPath, constructorPath, [t.expressionStatement(init)]); - } - } - function getWeakSetId(weakSets, outerClass, reference, name = "", inject) { - let id = weakSets.get(reference.node); - if (!id) { - id = outerClass.scope.generateUidIdentifier(`${name || ""} brandCheck`); - weakSets.set(reference.node, id); - inject(reference, template.expression.ast`${t.cloneNode(id)}.add(this)`); - const newExpr = t.newExpression(t.identifier("WeakSet"), []); - (0, _helperAnnotateAsPure.default)(newExpr); - outerClass.insertBefore(template.ast`var ${id} = ${newExpr}`); - } - return t.cloneNode(id); - } - return { - name: "transform-private-property-in-object", - inherits: _pluginSyntaxPrivatePropertyInObject.default, - pre() { - (0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.privateIn, loose); - }, - visitor: { - BinaryExpression(path, state) { - const { - node - } = path; - const { - file - } = state; - if (node.operator !== "in") return; - if (!t.isPrivateName(node.left)) return; - const { - name - } = node.left.id; - let privateElement; - const outerClass = path.findParent(path => { - if (!path.isClass()) return false; - privateElement = path.get("body.body").find(({ - node - }) => t.isPrivate(node) && node.key.id.name === name); - return !!privateElement; - }); - if (outerClass.parentPath.scope.path.isPattern()) { - outerClass.replaceWith(template.ast`(() => ${outerClass.node})()`); - return; - } - if (privateElement.node.type === "ClassPrivateMethod") { - if (privateElement.node.static) { - if (outerClass.node.id) { - unshadow(outerClass.node.id.name, outerClass.scope, path.scope); - } else { - outerClass.set("id", path.scope.generateUidIdentifier("class")); - } - path.replaceWith(template.expression.ast` - ${t.cloneNode(outerClass.node.id)} === ${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)} - `); - } else { - var _outerClass$node$id; - const id = getWeakSetId(classWeakSets, outerClass, outerClass, (_outerClass$node$id = outerClass.node.id) == null ? void 0 : _outerClass$node$id.name, injectInitialization); - path.replaceWith(template.expression.ast`${id}.has(${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)})`); - } - } else { - const id = getWeakSetId(fieldsWeakSets, outerClass, privateElement, privateElement.node.key.id.name, injectToFieldInit); - path.replaceWith(template.expression.ast`${id}.has(${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)})`); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 98906: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-property-literals", - visitor: { - ObjectProperty: { - exit({ - node - }) { - const key = node.key; - if (!node.computed && _core.types.isIdentifier(key) && !_core.types.isValidES3Identifier(key.name)) { - node.key = _core.types.stringLiteral(key.name); - } - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 16816: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _path = __nccwpck_require__(71017); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - function addDisplayName(id, call) { - const props = call.arguments[0].properties; - let safe = true; - for (let i = 0; i < props.length; i++) { - const prop = props[i]; - if (_core.types.isSpreadElement(prop)) { - continue; - } - const key = _core.types.toComputedKey(prop); - if (_core.types.isStringLiteral(key, { - value: "displayName" - })) { - safe = false; - break; - } - } - if (safe) { - props.unshift(_core.types.objectProperty(_core.types.identifier("displayName"), _core.types.stringLiteral(id))); - } - } - const isCreateClassCallExpression = _core.types.buildMatchMemberExpression("React.createClass"); - const isCreateClassAddon = callee => _core.types.isIdentifier(callee, { - name: "createReactClass" - }); - function isCreateClass(node) { - if (!node || !_core.types.isCallExpression(node)) return false; - if (!isCreateClassCallExpression(node.callee) && !isCreateClassAddon(node.callee)) { - return false; - } - const args = node.arguments; - if (args.length !== 1) return false; - const first = args[0]; - if (!_core.types.isObjectExpression(first)) return false; - return true; - } - return { - name: "transform-react-display-name", - visitor: { - ExportDefaultDeclaration({ - node - }, state) { - if (isCreateClass(node.declaration)) { - const filename = state.filename || "unknown"; - let displayName = _path.basename(filename, _path.extname(filename)); - if (displayName === "index") { - displayName = _path.basename(_path.dirname(filename)); - } - addDisplayName(displayName, node.declaration); - } - }, - CallExpression(path) { - const { - node - } = path; - if (!isCreateClass(node)) return; - let id; - path.find(function (path) { - if (path.isAssignmentExpression()) { - id = path.node.left; - } else if (path.isObjectProperty()) { - id = path.node.key; - } else if (path.isVariableDeclarator()) { - id = path.node.id; - } else if (path.isStatement()) { - return true; - } - if (id) return true; - }); - if (!id) return; - if (_core.types.isMemberExpression(id)) { - id = id.property; - } - if (_core.types.isIdentifier(id)) { - addDisplayName(id.name, node); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 62726: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "default", ({ - enumerable: true, - get: function () { - return _development.default; - } -})); -var _development = __nccwpck_require__(35872); - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 25658: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = createPlugin; -var _pluginSyntaxJsx = __nccwpck_require__(36733); -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _helperModuleImports = __nccwpck_require__(45423); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -const DEFAULT = { - importSource: "react", - runtime: "automatic", - pragma: "React.createElement", - pragmaFrag: "React.Fragment" -}; -const JSX_SOURCE_ANNOTATION_REGEX = /^\s*\*?\s*@jsxImportSource\s+([^\s]+)\s*$/m; -const JSX_RUNTIME_ANNOTATION_REGEX = /^\s*\*?\s*@jsxRuntime\s+([^\s]+)\s*$/m; -const JSX_ANNOTATION_REGEX = /^\s*\*?\s*@jsx\s+([^\s]+)\s*$/m; -const JSX_FRAG_ANNOTATION_REGEX = /^\s*\*?\s*@jsxFrag\s+([^\s]+)\s*$/m; -const get = (pass, name) => pass.get(`@babel/plugin-react-jsx/${name}`); -const set = (pass, name, v) => pass.set(`@babel/plugin-react-jsx/${name}`, v); -function hasProto(node) { - return node.properties.some(value => _core.types.isObjectProperty(value, { - computed: false, - shorthand: false - }) && (_core.types.isIdentifier(value.key, { - name: "__proto__" - }) || _core.types.isStringLiteral(value.key, { - value: "__proto__" - }))); -} -function createPlugin({ - name, - development -}) { - return (0, _helperPluginUtils.declare)((_, options) => { - const { - pure: PURE_ANNOTATION, - throwIfNamespace = true, - filter, - runtime: RUNTIME_DEFAULT = development ? "automatic" : "classic", - importSource: IMPORT_SOURCE_DEFAULT = DEFAULT.importSource, - pragma: PRAGMA_DEFAULT = DEFAULT.pragma, - pragmaFrag: PRAGMA_FRAG_DEFAULT = DEFAULT.pragmaFrag - } = options; - { - var { - useSpread = false, - useBuiltIns = false - } = options; - if (RUNTIME_DEFAULT === "classic") { - if (typeof useSpread !== "boolean") { - throw new Error("transform-react-jsx currently only accepts a boolean option for " + "useSpread (defaults to false)"); - } - if (typeof useBuiltIns !== "boolean") { - throw new Error("transform-react-jsx currently only accepts a boolean option for " + "useBuiltIns (defaults to false)"); - } - if (useSpread && useBuiltIns) { - throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread " + "but not both"); - } - } - } - const injectMetaPropertiesVisitor = { - JSXOpeningElement(path, state) { - const attributes = []; - if (isThisAllowed(path.scope)) { - attributes.push(_core.types.jsxAttribute(_core.types.jsxIdentifier("__self"), _core.types.jsxExpressionContainer(_core.types.thisExpression()))); - } - attributes.push(_core.types.jsxAttribute(_core.types.jsxIdentifier("__source"), _core.types.jsxExpressionContainer(makeSource(path, state)))); - path.pushContainer("attributes", attributes); - } - }; - return { - name, - inherits: _pluginSyntaxJsx.default, - visitor: { - JSXNamespacedName(path) { - if (throwIfNamespace) { - throw path.buildCodeFrameError(`Namespace tags are not supported by default. React's JSX doesn't support namespace tags. \ -You can set \`throwIfNamespace: false\` to bypass this warning.`); - } - }, - JSXSpreadChild(path) { - throw path.buildCodeFrameError("Spread children are not supported in React."); - }, - Program: { - enter(path, state) { - const { - file - } = state; - let runtime = RUNTIME_DEFAULT; - let source = IMPORT_SOURCE_DEFAULT; - let pragma = PRAGMA_DEFAULT; - let pragmaFrag = PRAGMA_FRAG_DEFAULT; - let sourceSet = !!options.importSource; - let pragmaSet = !!options.pragma; - let pragmaFragSet = !!options.pragmaFrag; - if (file.ast.comments) { - for (const comment of file.ast.comments) { - const sourceMatches = JSX_SOURCE_ANNOTATION_REGEX.exec(comment.value); - if (sourceMatches) { - source = sourceMatches[1]; - sourceSet = true; - } - const runtimeMatches = JSX_RUNTIME_ANNOTATION_REGEX.exec(comment.value); - if (runtimeMatches) { - runtime = runtimeMatches[1]; - } - const jsxMatches = JSX_ANNOTATION_REGEX.exec(comment.value); - if (jsxMatches) { - pragma = jsxMatches[1]; - pragmaSet = true; - } - const jsxFragMatches = JSX_FRAG_ANNOTATION_REGEX.exec(comment.value); - if (jsxFragMatches) { - pragmaFrag = jsxFragMatches[1]; - pragmaFragSet = true; - } - } - } - set(state, "runtime", runtime); - if (runtime === "classic") { - if (sourceSet) { - throw path.buildCodeFrameError(`importSource cannot be set when runtime is classic.`); - } - const createElement = toMemberExpression(pragma); - const fragment = toMemberExpression(pragmaFrag); - set(state, "id/createElement", () => _core.types.cloneNode(createElement)); - set(state, "id/fragment", () => _core.types.cloneNode(fragment)); - set(state, "defaultPure", pragma === DEFAULT.pragma); - } else if (runtime === "automatic") { - if (pragmaSet || pragmaFragSet) { - throw path.buildCodeFrameError(`pragma and pragmaFrag cannot be set when runtime is automatic.`); - } - const define = (name, id) => set(state, name, createImportLazily(state, path, id, source)); - define("id/jsx", development ? "jsxDEV" : "jsx"); - define("id/jsxs", development ? "jsxDEV" : "jsxs"); - define("id/createElement", "createElement"); - define("id/fragment", "Fragment"); - set(state, "defaultPure", source === DEFAULT.importSource); - } else { - throw path.buildCodeFrameError(`Runtime must be either "classic" or "automatic".`); - } - if (development) { - path.traverse(injectMetaPropertiesVisitor, state); - } - } - }, - JSXFragment: { - exit(path, file) { - let callExpr; - if (get(file, "runtime") === "classic") { - callExpr = buildCreateElementFragmentCall(path, file); - } else { - callExpr = buildJSXFragmentCall(path, file); - } - path.replaceWith(_core.types.inherits(callExpr, path.node)); - } - }, - JSXElement: { - exit(path, file) { - let callExpr; - if (get(file, "runtime") === "classic" || shouldUseCreateElement(path)) { - callExpr = buildCreateElementCall(path, file); - } else { - callExpr = buildJSXElementCall(path, file); - } - path.replaceWith(_core.types.inherits(callExpr, path.node)); - } - }, - JSXAttribute(path) { - if (_core.types.isJSXElement(path.node.value)) { - path.node.value = _core.types.jsxExpressionContainer(path.node.value); - } - } - } - }; - function isDerivedClass(classPath) { - return classPath.node.superClass !== null; - } - function isThisAllowed(scope) { - do { - const { - path - } = scope; - if (path.isFunctionParent() && !path.isArrowFunctionExpression()) { - if (!path.isMethod()) { - return true; - } - if (path.node.kind !== "constructor") { - return true; - } - return !isDerivedClass(path.parentPath.parentPath); - } - if (path.isTSModuleBlock()) { - return false; - } - } while (scope = scope.parent); - return true; - } - function call(pass, name, args) { - const node = _core.types.callExpression(get(pass, `id/${name}`)(), args); - if (PURE_ANNOTATION != null ? PURE_ANNOTATION : get(pass, "defaultPure")) (0, _helperAnnotateAsPure.default)(node); - return node; - } - function shouldUseCreateElement(path) { - const openingPath = path.get("openingElement"); - const attributes = openingPath.node.attributes; - let seenPropsSpread = false; - for (let i = 0; i < attributes.length; i++) { - const attr = attributes[i]; - if (seenPropsSpread && _core.types.isJSXAttribute(attr) && attr.name.name === "key") { - return true; - } else if (_core.types.isJSXSpreadAttribute(attr)) { - seenPropsSpread = true; - } - } - return false; - } - function convertJSXIdentifier(node, parent) { - if (_core.types.isJSXIdentifier(node)) { - if (node.name === "this" && _core.types.isReferenced(node, parent)) { - return _core.types.thisExpression(); - } else if (_core.types.isValidIdentifier(node.name, false)) { - node.type = "Identifier"; - return node; - } else { - return _core.types.stringLiteral(node.name); - } - } else if (_core.types.isJSXMemberExpression(node)) { - return _core.types.memberExpression(convertJSXIdentifier(node.object, node), convertJSXIdentifier(node.property, node)); - } else if (_core.types.isJSXNamespacedName(node)) { - return _core.types.stringLiteral(`${node.namespace.name}:${node.name.name}`); - } - return node; - } - function convertAttributeValue(node) { - if (_core.types.isJSXExpressionContainer(node)) { - return node.expression; - } else { - return node; - } - } - function accumulateAttribute(array, attribute) { - if (_core.types.isJSXSpreadAttribute(attribute.node)) { - const arg = attribute.node.argument; - if (_core.types.isObjectExpression(arg) && !hasProto(arg)) { - array.push(...arg.properties); - } else { - array.push(_core.types.spreadElement(arg)); - } - return array; - } - const value = convertAttributeValue(attribute.node.name.name !== "key" ? attribute.node.value || _core.types.booleanLiteral(true) : attribute.node.value); - if (attribute.node.name.name === "key" && value === null) { - throw attribute.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.'); - } - if (_core.types.isStringLiteral(value) && !_core.types.isJSXExpressionContainer(attribute.node.value)) { - var _value$extra; - value.value = value.value.replace(/\n\s+/g, " "); - (_value$extra = value.extra) == null ? true : delete _value$extra.raw; - } - if (_core.types.isJSXNamespacedName(attribute.node.name)) { - attribute.node.name = _core.types.stringLiteral(attribute.node.name.namespace.name + ":" + attribute.node.name.name.name); - } else if (_core.types.isValidIdentifier(attribute.node.name.name, false)) { - attribute.node.name.type = "Identifier"; - } else { - attribute.node.name = _core.types.stringLiteral(attribute.node.name.name); - } - array.push(_core.types.inherits(_core.types.objectProperty(attribute.node.name, value), attribute.node)); - return array; - } - function buildChildrenProperty(children) { - let childrenNode; - if (children.length === 1) { - childrenNode = children[0]; - } else if (children.length > 1) { - childrenNode = _core.types.arrayExpression(children); - } else { - return undefined; - } - return _core.types.objectProperty(_core.types.identifier("children"), childrenNode); - } - function buildJSXElementCall(path, file) { - const openingPath = path.get("openingElement"); - const args = [getTag(openingPath)]; - const attribsArray = []; - const extracted = Object.create(null); - for (const attr of openingPath.get("attributes")) { - if (attr.isJSXAttribute() && _core.types.isJSXIdentifier(attr.node.name)) { - const { - name - } = attr.node.name; - switch (name) { - case "__source": - case "__self": - if (extracted[name]) throw sourceSelfError(path, name); - case "key": - { - const keyValue = convertAttributeValue(attr.node.value); - if (keyValue === null) { - throw attr.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.'); - } - extracted[name] = keyValue; - break; - } - default: - attribsArray.push(attr); - } - } else { - attribsArray.push(attr); - } - } - const children = _core.types.react.buildChildren(path.node); - let attribs; - if (attribsArray.length || children.length) { - attribs = buildJSXOpeningElementAttributes(attribsArray, children); - } else { - attribs = _core.types.objectExpression([]); - } - args.push(attribs); - if (development) { - var _extracted$key; - args.push((_extracted$key = extracted.key) != null ? _extracted$key : path.scope.buildUndefinedNode(), _core.types.booleanLiteral(children.length > 1)); - if (extracted.__source) { - args.push(extracted.__source); - if (extracted.__self) args.push(extracted.__self); - } else if (extracted.__self) { - args.push(path.scope.buildUndefinedNode(), extracted.__self); - } - } else if (extracted.key !== undefined) { - args.push(extracted.key); - } - return call(file, children.length > 1 ? "jsxs" : "jsx", args); - } - function buildJSXOpeningElementAttributes(attribs, children) { - const props = attribs.reduce(accumulateAttribute, []); - if ((children == null ? void 0 : children.length) > 0) { - props.push(buildChildrenProperty(children)); - } - return _core.types.objectExpression(props); - } - function buildJSXFragmentCall(path, file) { - const args = [get(file, "id/fragment")()]; - const children = _core.types.react.buildChildren(path.node); - args.push(_core.types.objectExpression(children.length > 0 ? [buildChildrenProperty(children)] : [])); - if (development) { - args.push(path.scope.buildUndefinedNode(), _core.types.booleanLiteral(children.length > 1)); - } - return call(file, children.length > 1 ? "jsxs" : "jsx", args); - } - function buildCreateElementFragmentCall(path, file) { - if (filter && !filter(path.node, file)) return; - return call(file, "createElement", [get(file, "id/fragment")(), _core.types.nullLiteral(), ..._core.types.react.buildChildren(path.node)]); - } - function buildCreateElementCall(path, file) { - const openingPath = path.get("openingElement"); - return call(file, "createElement", [getTag(openingPath), buildCreateElementOpeningElementAttributes(file, path, openingPath.get("attributes")), ..._core.types.react.buildChildren(path.node)]); - } - function getTag(openingPath) { - const tagExpr = convertJSXIdentifier(openingPath.node.name, openingPath.node); - let tagName; - if (_core.types.isIdentifier(tagExpr)) { - tagName = tagExpr.name; - } else if (_core.types.isStringLiteral(tagExpr)) { - tagName = tagExpr.value; - } - if (_core.types.react.isCompatTag(tagName)) { - return _core.types.stringLiteral(tagName); - } else { - return tagExpr; - } - } - function buildCreateElementOpeningElementAttributes(file, path, attribs) { - const runtime = get(file, "runtime"); - { - if (runtime !== "automatic") { - const objs = []; - const props = attribs.reduce(accumulateAttribute, []); - if (!useSpread) { - let start = 0; - props.forEach((prop, i) => { - if (_core.types.isSpreadElement(prop)) { - if (i > start) { - objs.push(_core.types.objectExpression(props.slice(start, i))); - } - objs.push(prop.argument); - start = i + 1; - } - }); - if (props.length > start) { - objs.push(_core.types.objectExpression(props.slice(start))); - } - } else if (props.length) { - objs.push(_core.types.objectExpression(props)); - } - if (!objs.length) { - return _core.types.nullLiteral(); - } - if (objs.length === 1) { - if (!(_core.types.isSpreadElement(props[0]) && _core.types.isObjectExpression(props[0].argument))) { - return objs[0]; - } - } - if (!_core.types.isObjectExpression(objs[0])) { - objs.unshift(_core.types.objectExpression([])); - } - const helper = useBuiltIns ? _core.types.memberExpression(_core.types.identifier("Object"), _core.types.identifier("assign")) : file.addHelper("extends"); - return _core.types.callExpression(helper, objs); - } - } - const props = []; - const found = Object.create(null); - for (const attr of attribs) { - const { - node - } = attr; - const name = _core.types.isJSXAttribute(node) && _core.types.isJSXIdentifier(node.name) && node.name.name; - if (runtime === "automatic" && (name === "__source" || name === "__self")) { - if (found[name]) throw sourceSelfError(path, name); - found[name] = true; - } - accumulateAttribute(props, attr); - } - return props.length === 1 && _core.types.isSpreadElement(props[0]) && !_core.types.isObjectExpression(props[0].argument) ? props[0].argument : props.length > 0 ? _core.types.objectExpression(props) : _core.types.nullLiteral(); - } - }); - function getSource(source, importName) { - switch (importName) { - case "Fragment": - return `${source}/${development ? "jsx-dev-runtime" : "jsx-runtime"}`; - case "jsxDEV": - return `${source}/jsx-dev-runtime`; - case "jsx": - case "jsxs": - return `${source}/jsx-runtime`; - case "createElement": - return source; - } - } - function createImportLazily(pass, path, importName, source) { - return () => { - const actualSource = getSource(source, importName); - if ((0, _helperModuleImports.isModule)(path)) { - let reference = get(pass, `imports/${importName}`); - if (reference) return _core.types.cloneNode(reference); - reference = (0, _helperModuleImports.addNamed)(path, importName, actualSource, { - importedInterop: "uncompiled", - importPosition: "after" - }); - set(pass, `imports/${importName}`, reference); - return reference; - } else { - let reference = get(pass, `requires/${actualSource}`); - if (reference) { - reference = _core.types.cloneNode(reference); - } else { - reference = (0, _helperModuleImports.addNamespace)(path, actualSource, { - importedInterop: "uncompiled" - }); - set(pass, `requires/${actualSource}`, reference); - } - return _core.types.memberExpression(reference, _core.types.identifier(importName)); - } - }; - } -} -function toMemberExpression(id) { - return id.split(".").map(name => _core.types.identifier(name)).reduce((object, property) => _core.types.memberExpression(object, property)); -} -function makeSource(path, state) { - const location = path.node.loc; - if (!location) { - return path.scope.buildUndefinedNode(); - } - if (!state.fileNameIdentifier) { - const { - filename = "" - } = state; - const fileNameIdentifier = path.scope.generateUidIdentifier("_jsxFileName"); - path.scope.getProgramParent().push({ - id: fileNameIdentifier, - init: _core.types.stringLiteral(filename) - }); - state.fileNameIdentifier = fileNameIdentifier; - } - return makeTrace(_core.types.cloneNode(state.fileNameIdentifier), location.start.line, location.start.column); -} -function makeTrace(fileNameIdentifier, lineNumber, column0Based) { - const fileLineLiteral = lineNumber != null ? _core.types.numericLiteral(lineNumber) : _core.types.nullLiteral(); - const fileColumnLiteral = column0Based != null ? _core.types.numericLiteral(column0Based + 1) : _core.types.nullLiteral(); - return _core.template.expression.ast`{ - fileName: ${fileNameIdentifier}, - lineNumber: ${fileLineLiteral}, - columnNumber: ${fileColumnLiteral}, - }`; -} -function sourceSelfError(path, name) { - const pluginName = `transform-react-jsx-${name.slice(2)}`; - return path.buildCodeFrameError(`Duplicate ${name} prop found. You are most likely using the deprecated ${pluginName} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`); -} - -//# sourceMappingURL=create-plugin.js.map - - -/***/ }), - -/***/ 35872: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _createPlugin = __nccwpck_require__(25658); -var _default = (0, _createPlugin.default)({ - name: "transform-react-jsx/development", - development: true -}); -exports["default"] = _default; - -//# sourceMappingURL=development.js.map - - -/***/ }), - -/***/ 12261: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _createPlugin = __nccwpck_require__(25658); -var _default = (0, _createPlugin.default)({ - name: "transform-react-jsx", - development: false -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 58284: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -var _core = __nccwpck_require__(27324); -const PURE_CALLS = [["react", new Set(["cloneElement", "createContext", "createElement", "createFactory", "createRef", "forwardRef", "isValidElement", "memo", "lazy"])], ["react-dom", new Set(["createPortal"])]]; -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-react-pure-annotations", - visitor: { - CallExpression(path) { - if (isReactCall(path)) { - (0, _helperAnnotateAsPure.default)(path); - } - } - } - }; -}); -exports["default"] = _default; -function isReactCall(path) { - const calleePath = path.get("callee"); - if (!calleePath.isMemberExpression()) { - for (const [module, methods] of PURE_CALLS) { - for (const method of methods) { - if (calleePath.referencesImport(module, method)) { - return true; - } - } - } - return false; - } - const object = calleePath.get("object"); - const callee = calleePath.node; - if (!callee.computed && _core.types.isIdentifier(callee.property)) { - const propertyName = callee.property.name; - for (const [module, methods] of PURE_CALLS) { - if (object.referencesImport(module, "default") || object.referencesImport(module, "*")) { - return methods.has(propertyName); - } - } - } - return false; -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 82010: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _regeneratorTransform = __nccwpck_require__(81301); -var _default = (0, _helperPluginUtils.declare)(({ - types: t, - assertVersion -}) => { - assertVersion(7); - return { - name: "transform-regenerator", - inherits: _regeneratorTransform.default, - visitor: { - MemberExpression(path) { - { - var _this$availableHelper; - if (!((_this$availableHelper = this.availableHelper) != null && _this$availableHelper.call(this, "regeneratorRuntime"))) { - return; - } - } - const obj = path.get("object"); - if (obj.isIdentifier({ - name: "regeneratorRuntime" - })) { - const helper = this.addHelper("regeneratorRuntime"); - { - if (t.isArrowFunctionExpression(helper)) { - obj.replaceWith(helper.body); - return; - } - } - obj.replaceWith(t.callExpression(helper, [])); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 25294: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-reserved-words", - visitor: { - "BindingIdentifier|ReferencedIdentifier"(path) { - if (!_core.types.isValidES3Identifier(path.node.name)) { - path.scope.rename(path.node.name); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 67469: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -exports.resolveFSPath = resolveFSPath; -var _path = __nccwpck_require__(71017); -var _module = __nccwpck_require__(98188); -function _default(moduleName, dirname, absoluteRuntime) { - if (absoluteRuntime === false) return moduleName; - return resolveAbsoluteRuntime(moduleName, _path.resolve(dirname, absoluteRuntime === true ? "." : absoluteRuntime)); -} -function resolveAbsoluteRuntime(moduleName, dirname) { - try { - return _path.dirname((((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { - paths: [b] - }, M = __nccwpck_require__(98188)) => { - let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); - if (f) return f; - f = new Error(`Cannot resolve module '${r}'`); - f.code = "MODULE_NOT_FOUND"; - throw f; - })(`${moduleName}/package.json`, { - paths: [dirname] - })).replace(/\\/g, "/"); - } catch (err) { - if (err.code !== "MODULE_NOT_FOUND") throw err; - throw Object.assign(new Error(`Failed to resolve "${moduleName}" relative to "${dirname}"`), { - code: "BABEL_RUNTIME_NOT_FOUND", - runtime: moduleName, - dirname - }); - } -} -function resolveFSPath(path) { - return require.resolve(path).replace(/\\/g, "/"); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 27067: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.hasMinVersion = hasMinVersion; -var _semver = __nccwpck_require__(8999); -function hasMinVersion(minVersion, runtimeVersion) { - if (!runtimeVersion) return true; - if (_semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`; - return !_semver.intersects(`<${minVersion}`, runtimeVersion) && !_semver.intersects(`>=8.0.0`, runtimeVersion); -} - -//# sourceMappingURL=helpers.js.map - - -/***/ }), - -/***/ 94143: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperModuleImports = __nccwpck_require__(45423); -var _core = __nccwpck_require__(27324); -var _helpers = __nccwpck_require__(27067); -var _getRuntimePath = __nccwpck_require__(67469); -var _polyfills = __nccwpck_require__(24320); -function supportsStaticESM(caller) { - return !!(caller != null && caller.supportsStaticESM); -} -var _default = (0, _helperPluginUtils.declare)((api, options, dirname) => { - api.assertVersion(7); - const { - helpers: useRuntimeHelpers = true, - useESModules = false, - version: runtimeVersion = "7.0.0-beta.0", - absoluteRuntime = false - } = options; - if (typeof useRuntimeHelpers !== "boolean") { - throw new Error("The 'helpers' option must be undefined, or a boolean."); - } - if (typeof useESModules !== "boolean" && useESModules !== "auto") { - throw new Error("The 'useESModules' option must be undefined, or a boolean, or 'auto'."); - } - if (typeof absoluteRuntime !== "boolean" && typeof absoluteRuntime !== "string") { - throw new Error("The 'absoluteRuntime' option must be undefined, a boolean, or a string."); - } - if (typeof runtimeVersion !== "string") { - throw new Error(`The 'version' option must be a version string.`); - } - { - const DUAL_MODE_RUNTIME = "7.13.0"; - var supportsCJSDefault = (0, _helpers.hasMinVersion)(DUAL_MODE_RUNTIME, runtimeVersion); - } - function has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); - } - if (has(options, "useBuiltIns")) { - if (options["useBuiltIns"]) { - throw new Error("The 'useBuiltIns' option has been removed. The @babel/runtime " + "module now uses builtins by default."); - } else { - throw new Error("The 'useBuiltIns' option has been removed. Use the 'corejs'" + "option to polyfill with `core-js` via @babel/runtime."); - } - } - if (has(options, "polyfill")) { - if (options["polyfill"] === false) { - throw new Error("The 'polyfill' option has been removed. The @babel/runtime " + "module now skips polyfilling by default."); - } else { - throw new Error("The 'polyfill' option has been removed. Use the 'corejs'" + "option to polyfill with `core-js` via @babel/runtime."); - } - } - if (has(options, "moduleName")) { - throw new Error("The 'moduleName' option has been removed. @babel/transform-runtime " + "no longer supports arbitrary runtimes. If you were using this to " + "set an absolute path for Babel's standard runtimes, please use the " + "'absoluteRuntime' option."); - } - const esModules = useESModules === "auto" ? api.caller(supportsStaticESM) : useESModules; - const HEADER_HELPERS = ["interopRequireWildcard", "interopRequireDefault"]; - return { - name: "transform-runtime", - inherits: (0, _polyfills.createBasePolyfillsPlugin)(options, runtimeVersion, absoluteRuntime), - pre(file) { - if (!useRuntimeHelpers) return; - let modulePath; - file.set("helperGenerator", name => { - var _modulePath, _file$get; - (_modulePath = modulePath) != null ? _modulePath : modulePath = (0, _getRuntimePath.default)((_file$get = file.get("runtimeHelpersModuleName")) != null ? _file$get : "@babel/runtime", dirname, absoluteRuntime); - { - if (!(file.availableHelper != null && file.availableHelper(name, runtimeVersion))) { - if (name === "regeneratorRuntime") { - return _core.types.arrowFunctionExpression([], _core.types.identifier("regeneratorRuntime")); - } - return; - } - } - const isInteropHelper = HEADER_HELPERS.indexOf(name) !== -1; - const blockHoist = isInteropHelper && !(0, _helperModuleImports.isModule)(file.path) ? 4 : undefined; - const helpersDir = esModules && file.path.node.sourceType === "module" ? "helpers/esm" : "helpers"; - let helperPath = `${modulePath}/${helpersDir}/${name}`; - if (absoluteRuntime) helperPath = (0, _getRuntimePath.resolveFSPath)(helperPath); - return addDefaultImport(helperPath, name, blockHoist, true); - }); - const cache = new Map(); - function addDefaultImport(source, nameHint, blockHoist, isHelper = false) { - const cacheKey = (0, _helperModuleImports.isModule)(file.path); - const key = `${source}:${nameHint}:${cacheKey || ""}`; - let cached = cache.get(key); - if (cached) { - cached = _core.types.cloneNode(cached); - } else { - cached = (0, _helperModuleImports.addDefault)(file.path, source, { - importedInterop: isHelper && supportsCJSDefault ? "compiled" : "uncompiled", - nameHint, - blockHoist - }); - cache.set(key, cached); - } - return cached; - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 24320: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.createBasePolyfillsPlugin = createBasePolyfillsPlugin; -var _babelPluginPolyfillCorejs = __nccwpck_require__(15951); -var _babelPluginPolyfillCorejs2 = __nccwpck_require__(44727); -var _babelPluginPolyfillRegenerator = __nccwpck_require__(33786); -const pluginCorejs2 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; -const pluginCorejs3 = _babelPluginPolyfillCorejs2.default || _babelPluginPolyfillCorejs2; -const pluginRegenerator = _babelPluginPolyfillRegenerator.default || _babelPluginPolyfillRegenerator; -const pluginsCompat = "#__secret_key__@babel/runtime__compatibility"; -function createCorejsPlugin(plugin, options, regeneratorPlugin) { - return (api, _, filename) => { - return Object.assign({}, plugin(api, options, filename), { - inherits: regeneratorPlugin - }); - }; -} -function createRegeneratorPlugin(options, useRuntimeRegenerator) { - if (!useRuntimeRegenerator) return undefined; - return (api, _, filename) => { - return pluginRegenerator(api, options, filename); - }; -} -function createBasePolyfillsPlugin({ - corejs, - regenerator: useRuntimeRegenerator = true -}, runtimeVersion, absoluteImports) { - let proposals = false; - let rawVersion; - if (typeof corejs === "object" && corejs !== null) { - rawVersion = corejs.version; - proposals = Boolean(corejs.proposals); - } else { - rawVersion = corejs; - } - const corejsVersion = rawVersion ? Number(rawVersion) : false; - if (![false, 2, 3].includes(corejsVersion)) { - throw new Error(`The \`core-js\` version must be false, 2 or 3, but got ${JSON.stringify(rawVersion)}.`); - } - if (proposals && (!corejsVersion || corejsVersion < 3)) { - throw new Error("The 'proposals' option is only supported when using 'corejs: 3'"); - } - if (typeof useRuntimeRegenerator !== "boolean") { - throw new Error("The 'regenerator' option must be undefined, or a boolean."); - } - const polyfillOpts = { - method: "usage-pure", - absoluteImports, - [pluginsCompat]: { - useBabelRuntime: true, - runtimeVersion, - ext: "" - } - }; - return corejsVersion === 2 ? createCorejsPlugin(pluginCorejs2, polyfillOpts, createRegeneratorPlugin(polyfillOpts, useRuntimeRegenerator)) : corejsVersion === 3 ? createCorejsPlugin(pluginCorejs3, Object.assign({ - version: 3, - proposals - }, polyfillOpts), createRegeneratorPlugin(polyfillOpts, useRuntimeRegenerator)) : createRegeneratorPlugin(polyfillOpts, useRuntimeRegenerator); -} - -//# sourceMappingURL=polyfills.js.map - - -/***/ }), - -/***/ 19245: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-shorthand-properties", - visitor: { - ObjectMethod(path) { - const { - node - } = path; - if (node.kind === "method") { - const func = _core.types.functionExpression(null, node.params, node.body, node.generator, node.async); - func.returnType = node.returnType; - const computedKey = _core.types.toComputedKey(node); - if (_core.types.isStringLiteral(computedKey, { - value: "__proto__" - })) { - path.replaceWith(_core.types.objectProperty(computedKey, func, true)); - } else { - path.replaceWith(_core.types.objectProperty(node.key, func, node.computed)); - } - } - }, - ObjectProperty(path) { - const { - node - } = path; - if (node.shorthand) { - const computedKey = _core.types.toComputedKey(node); - if (_core.types.isStringLiteral(computedKey, { - value: "__proto__" - })) { - path.replaceWith(_core.types.objectProperty(computedKey, node.value, true)); - } else { - node.shorthand = false; - } - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 48946: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _options$allowArrayLi; - api.assertVersion(7); - const iterableIsArray = (_api$assumption = api.assumption("iterableIsArray")) != null ? _api$assumption : options.loose; - const arrayLikeIsIterable = (_options$allowArrayLi = options.allowArrayLike) != null ? _options$allowArrayLi : api.assumption("arrayLikeIsIterable"); - function getSpreadLiteral(spread, scope) { - if (iterableIsArray && !_core.types.isIdentifier(spread.argument, { - name: "arguments" - })) { - return spread.argument; - } else { - return scope.toArray(spread.argument, true, arrayLikeIsIterable); - } - } - function hasHole(spread) { - return spread.elements.some(el => el === null); - } - function hasSpread(nodes) { - for (let i = 0; i < nodes.length; i++) { - if (_core.types.isSpreadElement(nodes[i])) { - return true; - } - } - return false; - } - function push(_props, nodes) { - if (!_props.length) return _props; - nodes.push(_core.types.arrayExpression(_props)); - return []; - } - function build(props, scope, file) { - const nodes = []; - let _props = []; - for (const prop of props) { - if (_core.types.isSpreadElement(prop)) { - _props = push(_props, nodes); - let spreadLiteral = getSpreadLiteral(prop, scope); - if (_core.types.isArrayExpression(spreadLiteral) && hasHole(spreadLiteral)) { - spreadLiteral = _core.types.callExpression(file.addHelper("arrayWithoutHoles"), [spreadLiteral]); - } - nodes.push(spreadLiteral); - } else { - _props.push(prop); - } - } - push(_props, nodes); - return nodes; - } - return { - name: "transform-spread", - visitor: { - ArrayExpression(path) { - const { - node, - scope - } = path; - const elements = node.elements; - if (!hasSpread(elements)) return; - const nodes = build(elements, scope, this.file); - let first = nodes[0]; - if (nodes.length === 1 && first !== elements[0].argument) { - path.replaceWith(first); - return; - } - if (!_core.types.isArrayExpression(first)) { - first = _core.types.arrayExpression([]); - } else { - nodes.shift(); - } - path.replaceWith(_core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes)); - }, - CallExpression(path) { - const { - node, - scope - } = path; - const args = node.arguments; - if (!hasSpread(args)) return; - const calleePath = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("callee")); - if (calleePath.isSuper()) { - throw path.buildCodeFrameError("It's not possible to compile spread arguments in `super()` without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); - } - let contextLiteral = scope.buildUndefinedNode(); - node.arguments = []; - let nodes; - if (args.length === 1 && _core.types.isIdentifier(args[0].argument, { - name: "arguments" - })) { - nodes = [args[0].argument]; - } else { - nodes = build(args, scope, this.file); - } - const first = nodes.shift(); - if (nodes.length) { - node.arguments.push(_core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes)); - } else { - node.arguments.push(first); - } - const callee = calleePath.node; - if (_core.types.isMemberExpression(callee)) { - const temp = scope.maybeGenerateMemoised(callee.object); - if (temp) { - callee.object = _core.types.assignmentExpression("=", temp, callee.object); - contextLiteral = temp; - } else { - contextLiteral = _core.types.cloneNode(callee.object); - } - } - node.callee = _core.types.memberExpression(node.callee, _core.types.identifier("apply")); - if (_core.types.isSuper(contextLiteral)) { - contextLiteral = _core.types.thisExpression(); - } - node.arguments.unshift(_core.types.cloneNode(contextLiteral)); - }, - NewExpression(path) { - const { - node, - scope - } = path; - if (!hasSpread(node.arguments)) return; - const nodes = build(node.arguments, scope, this.file); - const first = nodes.shift(); - let args; - if (nodes.length) { - args = _core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes); - } else { - args = first; - } - path.replaceWith(_core.types.callExpression(path.hub.addHelper("construct"), [node.callee, args])); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 89282: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-sticky-regex", - visitor: { - RegExpLiteral(path) { - const { - node - } = path; - if (!node.flags.includes("y")) return; - path.replaceWith(_core.types.newExpression(_core.types.identifier("RegExp"), [_core.types.stringLiteral(node.pattern), _core.types.stringLiteral(node.flags)])); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 32409: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - var _api$assumption, _api$assumption2; - api.assertVersion(7); - const ignoreToPrimitiveHint = (_api$assumption = api.assumption("ignoreToPrimitiveHint")) != null ? _api$assumption : options.loose; - const mutableTemplateObject = (_api$assumption2 = api.assumption("mutableTemplateObject")) != null ? _api$assumption2 : options.loose; - let helperName = "taggedTemplateLiteral"; - if (mutableTemplateObject) helperName += "Loose"; - function buildConcatCallExpressions(items) { - let avail = true; - return items.reduce(function (left, right) { - let canBeInserted = _core.types.isLiteral(right); - if (!canBeInserted && avail) { - canBeInserted = true; - avail = false; - } - if (canBeInserted && _core.types.isCallExpression(left)) { - left.arguments.push(right); - return left; - } - return _core.types.callExpression(_core.types.memberExpression(left, _core.types.identifier("concat")), [right]); - }); - } - return { - name: "transform-template-literals", - visitor: { - TaggedTemplateExpression(path) { - const { - node - } = path; - const { - quasi - } = node; - const strings = []; - const raws = []; - let isStringsRawEqual = true; - for (const elem of quasi.quasis) { - const { - raw, - cooked - } = elem.value; - const value = cooked == null ? path.scope.buildUndefinedNode() : _core.types.stringLiteral(cooked); - strings.push(value); - raws.push(_core.types.stringLiteral(raw)); - if (raw !== cooked) { - isStringsRawEqual = false; - } - } - const helperArgs = [_core.types.arrayExpression(strings)]; - if (!isStringsRawEqual) { - helperArgs.push(_core.types.arrayExpression(raws)); - } - const tmp = path.scope.generateUidIdentifier("templateObject"); - path.scope.getProgramParent().push({ - id: _core.types.cloneNode(tmp) - }); - path.replaceWith(_core.types.callExpression(node.tag, [_core.template.expression.ast` - ${_core.types.cloneNode(tmp)} || ( - ${tmp} = ${this.addHelper(helperName)}(${helperArgs}) - ) - `, ...quasi.expressions])); - }, - TemplateLiteral(path) { - if (path.parent.type === "TSLiteralType") { - return; - } - const nodes = []; - const expressions = path.get("expressions"); - let index = 0; - for (const elem of path.node.quasis) { - if (elem.value.cooked) { - nodes.push(_core.types.stringLiteral(elem.value.cooked)); - } - if (index < expressions.length) { - const expr = expressions[index++]; - const node = expr.node; - if (!_core.types.isStringLiteral(node, { - value: "" - })) { - nodes.push(node); - } - } - } - if (!_core.types.isStringLiteral(nodes[0]) && !(ignoreToPrimitiveHint && _core.types.isStringLiteral(nodes[1]))) { - nodes.unshift(_core.types.stringLiteral("")); - } - let root = nodes[0]; - if (ignoreToPrimitiveHint) { - for (let i = 1; i < nodes.length; i++) { - root = _core.types.binaryExpression("+", root, nodes[i]); - } - } else if (nodes.length > 1) { - root = buildConcatCallExpressions(nodes); - } - path.replaceWith(root); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 66074: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "transform-typeof-symbol", - visitor: { - Scope({ - scope - }) { - if (!scope.getBinding("Symbol")) { - return; - } - scope.rename("Symbol"); - }, - UnaryExpression(path) { - const { - node, - parent - } = path; - if (node.operator !== "typeof") return; - if (path.parentPath.isBinaryExpression() && _core.types.EQUALITY_BINARY_OPERATORS.indexOf(parent.operator) >= 0) { - const opposite = path.getOpposite(); - if (opposite.isStringLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") { - return; - } - } - let isUnderHelper = path.findParent(path => { - if (path.isFunction()) { - var _path$get; - return ((_path$get = path.get("body.directives.0")) == null ? void 0 : _path$get.node.value.value) === "@babel/helpers - typeof"; - } - }); - if (isUnderHelper) return; - const helper = this.addHelper("typeof"); - isUnderHelper = path.findParent(path => { - return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name; - }); - if (isUnderHelper) { - return; - } - const call = _core.types.callExpression(helper, [node.argument]); - const arg = path.get("argument"); - if (arg.isIdentifier() && !path.scope.hasBinding(arg.node.name, true)) { - const unary = _core.types.unaryExpression("typeof", _core.types.cloneNode(node.argument)); - path.replaceWith(_core.types.conditionalExpression(_core.types.binaryExpression("===", unary, _core.types.stringLiteral("undefined")), _core.types.stringLiteral("undefined"), call)); - } else { - path.replaceWith(call); - } - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 60658: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transpileConstEnum; -var _enum = __nccwpck_require__(84178); -function transpileConstEnum(path, t) { - const { - name - } = path.node.id; - const parentIsExport = path.parentPath.isExportNamedDeclaration(); - let isExported = parentIsExport; - if (!isExported && t.isProgram(path.parent)) { - isExported = path.parent.body.some(stmt => t.isExportNamedDeclaration(stmt) && stmt.exportKind !== "type" && !stmt.source && stmt.specifiers.some(spec => t.isExportSpecifier(spec) && spec.exportKind !== "type" && spec.local.name === name)); - } - const { - enumValues: entries - } = (0, _enum.translateEnumValues)(path, t); - if (isExported) { - const obj = t.objectExpression(entries.map(([name, value]) => t.objectProperty(t.isValidIdentifier(name) ? t.identifier(name) : t.stringLiteral(name), value))); - if (path.scope.hasOwnBinding(name)) { - (parentIsExport ? path.parentPath : path).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"), t.identifier("assign")), [path.node.id, obj]))); - } else { - path.replaceWith(t.variableDeclaration("var", [t.variableDeclarator(path.node.id, obj)])); - path.scope.registerDeclaration(path); - } - return; - } - const entriesMap = new Map(entries); - path.scope.path.traverse({ - Scope(path) { - if (path.scope.hasOwnBinding(name)) path.skip(); - }, - MemberExpression(path) { - if (!t.isIdentifier(path.node.object, { - name - })) return; - let key; - if (path.node.computed) { - if (t.isStringLiteral(path.node.property)) { - key = path.node.property.value; - } else { - return; - } - } else if (t.isIdentifier(path.node.property)) { - key = path.node.property.name; - } else { - return; - } - if (!entriesMap.has(key)) return; - path.replaceWith(t.cloneNode(entriesMap.get(key))); - } - }); - path.remove(); -} - -//# sourceMappingURL=const-enum.js.map - - -/***/ }), - -/***/ 84178: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transpileEnum; -exports.translateEnumValues = translateEnumValues; -var _core = __nccwpck_require__(90454); -var _assert = __nccwpck_require__(39491); -const ENUMS = new WeakMap(); -function transpileEnum(path, t) { - const { - node - } = path; - if (node.declare) { - path.remove(); - return; - } - const name = node.id.name; - const { - wrapper: fill, - data - } = enumFill(path, t, node.id); - switch (path.parent.type) { - case "BlockStatement": - case "ExportNamedDeclaration": - case "Program": - { - path.insertAfter(fill); - if (seen(path.parentPath)) { - path.remove(); - } else { - const isGlobal = t.isProgram(path.parent); - path.scope.registerDeclaration(path.replaceWith(makeVar(node.id, t, isGlobal ? "var" : "let"))[0]); - ENUMS.set(path.scope.getBindingIdentifier(name), data); - } - break; - } - default: - throw new Error(`Unexpected enum parent '${path.parent.type}`); - } - function seen(parentPath) { - if (parentPath.isExportDeclaration()) { - return seen(parentPath.parentPath); - } - if (parentPath.getData(name)) { - return true; - } else { - parentPath.setData(name, true); - return false; - } - } -} -function makeVar(id, t, kind) { - return t.variableDeclaration(kind, [t.variableDeclarator(id)]); -} -const buildEnumWrapper = (0, _core.template)(` - (function (ID) { - ASSIGNMENTS; - })(ID || (ID = {})); -`); -const buildStringAssignment = (0, _core.template)(` - ENUM["NAME"] = VALUE; -`); -const buildNumericAssignment = (0, _core.template)(` - ENUM[ENUM["NAME"] = VALUE] = "NAME"; -`); -const buildEnumMember = (isString, options) => (isString ? buildStringAssignment : buildNumericAssignment)(options); -function enumFill(path, t, id) { - const { - enumValues: x, - data - } = translateEnumValues(path, t); - const assignments = x.map(([memberName, memberValue]) => buildEnumMember(t.isStringLiteral(memberValue), { - ENUM: t.cloneNode(id), - NAME: memberName, - VALUE: memberValue - })); - return { - wrapper: buildEnumWrapper({ - ID: t.cloneNode(id), - ASSIGNMENTS: assignments - }), - data: data - }; -} -function ReferencedIdentifier(expr, state) { - const { - seen, - path, - t - } = state; - const name = expr.node.name; - if (seen.has(name) && !expr.scope.hasOwnBinding(name)) { - expr.replaceWith(t.memberExpression(t.cloneNode(path.node.id), t.cloneNode(expr.node))); - expr.skip(); - } -} -const enumSelfReferenceVisitor = { - ReferencedIdentifier -}; -function translateEnumValues(path, t) { - const seen = new Map(); - let constValue = -1; - let lastName; - return { - data: seen, - enumValues: path.get("members").map(memberPath => { - const member = memberPath.node; - const name = t.isIdentifier(member.id) ? member.id.name : member.id.value; - const initializerPath = memberPath.get("initializer"); - const initializer = member.initializer; - let value; - if (initializer) { - constValue = computeConstantValue(initializerPath, seen); - if (constValue !== undefined) { - seen.set(name, constValue); - if (typeof constValue === "number") { - value = t.numericLiteral(constValue); - } else { - _assert(typeof constValue === "string"); - value = t.stringLiteral(constValue); - } - } else { - if (initializerPath.isReferencedIdentifier()) { - ReferencedIdentifier(initializerPath, { - t, - seen, - path - }); - } else { - initializerPath.traverse(enumSelfReferenceVisitor, { - t, - seen, - path - }); - } - value = initializerPath.node; - seen.set(name, undefined); - } - } else if (typeof constValue === "number") { - constValue += 1; - value = t.numericLiteral(constValue); - seen.set(name, constValue); - } else if (typeof constValue === "string") { - throw path.buildCodeFrameError("Enum member must have initializer."); - } else { - const lastRef = t.memberExpression(t.cloneNode(path.node.id), t.stringLiteral(lastName), true); - value = t.binaryExpression("+", t.numericLiteral(1), lastRef); - seen.set(name, undefined); - } - lastName = name; - return [name, value]; - }) - }; -} -function computeConstantValue(path, prevMembers, seen = new Set()) { - return evaluate(path); - function evaluate(path) { - const expr = path.node; - switch (expr.type) { - case "MemberExpression": - return evaluateRef(path, prevMembers, seen); - case "StringLiteral": - return expr.value; - case "UnaryExpression": - return evalUnaryExpression(path); - case "BinaryExpression": - return evalBinaryExpression(path); - case "NumericLiteral": - return expr.value; - case "ParenthesizedExpression": - return evaluate(path.get("expression")); - case "Identifier": - return evaluateRef(path, prevMembers, seen); - case "TemplateLiteral": - { - if (expr.quasis.length === 1) { - return expr.quasis[0].value.cooked; - } - const paths = path.get("expressions"); - const quasis = expr.quasis; - let str = ""; - for (let i = 0; i < quasis.length; i++) { - str += quasis[i].value.cooked; - if (i + 1 < quasis.length) { - const value = evaluateRef(paths[i], prevMembers, seen); - if (value === undefined) return undefined; - str += value; - } - } - return str; - } - default: - return undefined; - } - } - function evaluateRef(path, prevMembers, seen) { - if (path.isMemberExpression()) { - const expr = path.node; - const obj = expr.object; - const prop = expr.property; - if (!_core.types.isIdentifier(obj) || (expr.computed ? !_core.types.isStringLiteral(prop) : !_core.types.isIdentifier(prop))) { - return; - } - const bindingIdentifier = path.scope.getBindingIdentifier(obj.name); - const data = ENUMS.get(bindingIdentifier); - if (!data) return; - return data.get(prop.computed ? prop.value : prop.name); - } else if (path.isIdentifier()) { - const name = path.node.name; - let value = prevMembers == null ? void 0 : prevMembers.get(name); - if (value !== undefined) { - return value; - } - if (seen.has(path.node)) return; - const bindingInitPath = path.resolve(); - if (bindingInitPath) { - seen.add(path.node); - value = computeConstantValue(bindingInitPath, undefined, seen); - prevMembers == null ? void 0 : prevMembers.set(name, value); - return value; - } - } - } - function evalUnaryExpression(path) { - const value = evaluate(path.get("argument")); - if (value === undefined) { - return undefined; - } - switch (path.node.operator) { - case "+": - return value; - case "-": - return -value; - case "~": - return ~value; - default: - return undefined; - } - } - function evalBinaryExpression(path) { - const left = evaluate(path.get("left")); - if (left === undefined) { - return undefined; - } - const right = evaluate(path.get("right")); - if (right === undefined) { - return undefined; - } - switch (path.node.operator) { - case "|": - return left | right; - case "&": - return left & right; - case ">>": - return left >> right; - case ">>>": - return left >>> right; - case "<<": - return left << right; - case "^": - return left ^ right; - case "*": - return left * right; - case "/": - return left / right; - case "+": - return left + right; - case "-": - return left - right; - case "%": - return left % right; - case "**": - return Math.pow(left, right); - default: - return undefined; - } - } -} - -//# sourceMappingURL=enum.js.map - - -/***/ }), - -/***/ 55746: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxTypescript = __nccwpck_require__(86855); -var _helperCreateClassFeaturesPlugin = __nccwpck_require__(46592); -var _constEnum = __nccwpck_require__(60658); -var _enum = __nccwpck_require__(84178); -var _namespace = __nccwpck_require__(75653); -function isInType(path) { - switch (path.parent.type) { - case "TSTypeReference": - case "TSExpressionWithTypeArguments": - case "TSTypeQuery": - return true; - case "TSQualifiedName": - return path.parentPath.findParent(path => path.type !== "TSQualifiedName").type !== "TSImportEqualsDeclaration"; - case "ExportSpecifier": - return path.parentPath.parent.exportKind === "type"; - default: - return false; - } -} -const GLOBAL_TYPES = new WeakMap(); -const NEEDS_EXPLICIT_ESM = new WeakMap(); -const PARSED_PARAMS = new WeakSet(); -function isGlobalType({ - scope -}, name) { - if (scope.hasBinding(name)) return false; - if (GLOBAL_TYPES.get(scope).has(name)) return true; - console.warn(`The exported identifier "${name}" is not declared in Babel's scope tracker\n` + `as a JavaScript value binding, and "@babel/plugin-transform-typescript"\n` + `never encountered it as a TypeScript type declaration.\n` + `It will be treated as a JavaScript value.\n\n` + `This problem is likely caused by another plugin injecting\n` + `"${name}" without registering it in the scope tracker. If you are the author\n` + ` of that plugin, please use "scope.registerDeclaration(declarationPath)".`); - return false; -} -function registerGlobalType(programScope, name) { - GLOBAL_TYPES.get(programScope).add(name); -} -function safeRemove(path) { - const ids = path.getBindingIdentifiers(); - for (const name of Object.keys(ids)) { - const binding = path.scope.getBinding(name); - if (binding && binding.identifier === ids[name]) { - binding.scope.removeBinding(name); - } - } - path.opts.noScope = true; - path.remove(); - path.opts.noScope = false; -} -var _default = (0, _helperPluginUtils.declare)((api, opts) => { - const { - types: t, - template - } = api; - api.assertVersion(7); - const JSX_PRAGMA_REGEX = /\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/; - const { - allowNamespaces = true, - jsxPragma = "React.createElement", - jsxPragmaFrag = "React.Fragment", - onlyRemoveTypeImports = false, - optimizeConstEnums = false - } = opts; - { - var { - allowDeclareFields = false - } = opts; - } - const classMemberVisitors = { - field(path) { - const { - node - } = path; - { - if (!allowDeclareFields && node.declare) { - throw path.buildCodeFrameError(`The 'declare' modifier is only allowed when the 'allowDeclareFields' option of ` + `@babel/plugin-transform-typescript or @babel/preset-typescript is enabled.`); - } - } - if (node.declare) { - if (node.value) { - throw path.buildCodeFrameError(`Fields with the 'declare' modifier cannot be initialized here, but only in the constructor`); - } - if (!node.decorators) { - path.remove(); - } - } else if (node.definite) { - if (node.value) { - throw path.buildCodeFrameError(`Definitely assigned fields cannot be initialized here, but only in the constructor`); - } - { - if (!allowDeclareFields && !node.decorators && !t.isClassPrivateProperty(node)) { - path.remove(); - } - } - } else if (node.abstract) { - path.remove(); - } else { - if (!allowDeclareFields && !node.value && !node.decorators && !t.isClassPrivateProperty(node)) { - path.remove(); - } - } - if (node.accessibility) node.accessibility = null; - if (node.abstract) node.abstract = null; - if (node.readonly) node.readonly = null; - if (node.optional) node.optional = null; - if (node.typeAnnotation) node.typeAnnotation = null; - if (node.definite) node.definite = null; - if (node.declare) node.declare = null; - if (node.override) node.override = null; - }, - method({ - node - }) { - if (node.accessibility) node.accessibility = null; - if (node.abstract) node.abstract = null; - if (node.optional) node.optional = null; - if (node.override) node.override = null; - }, - constructor(path, classPath) { - if (path.node.accessibility) path.node.accessibility = null; - const assigns = []; - const { - scope - } = path; - for (const paramPath of path.get("params")) { - const param = paramPath.node; - if (param.type === "TSParameterProperty") { - const parameter = param.parameter; - if (PARSED_PARAMS.has(parameter)) continue; - PARSED_PARAMS.add(parameter); - let id; - if (t.isIdentifier(parameter)) { - id = parameter; - } else if (t.isAssignmentPattern(parameter) && t.isIdentifier(parameter.left)) { - id = parameter.left; - } else { - throw paramPath.buildCodeFrameError("Parameter properties can not be destructuring patterns."); - } - assigns.push(template.statement.ast` - this.${t.cloneNode(id)} = ${t.cloneNode(id)}`); - paramPath.replaceWith(paramPath.get("parameter")); - scope.registerBinding("param", paramPath); - } - } - (0, _helperCreateClassFeaturesPlugin.injectInitialization)(classPath, path, assigns); - } - }; - return { - name: "transform-typescript", - inherits: _pluginSyntaxTypescript.default, - visitor: { - Pattern: visitPattern, - Identifier: visitPattern, - RestElement: visitPattern, - Program: { - enter(path, state) { - const { - file - } = state; - let fileJsxPragma = null; - let fileJsxPragmaFrag = null; - const programScope = path.scope; - if (!GLOBAL_TYPES.has(programScope)) { - GLOBAL_TYPES.set(programScope, new Set()); - } - if (file.ast.comments) { - for (const comment of file.ast.comments) { - const jsxMatches = JSX_PRAGMA_REGEX.exec(comment.value); - if (jsxMatches) { - if (jsxMatches[1]) { - fileJsxPragmaFrag = jsxMatches[2]; - } else { - fileJsxPragma = jsxMatches[2]; - } - } - } - } - let pragmaImportName = fileJsxPragma || jsxPragma; - if (pragmaImportName) { - [pragmaImportName] = pragmaImportName.split("."); - } - let pragmaFragImportName = fileJsxPragmaFrag || jsxPragmaFrag; - if (pragmaFragImportName) { - [pragmaFragImportName] = pragmaFragImportName.split("."); - } - for (let stmt of path.get("body")) { - if (stmt.isImportDeclaration()) { - if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); - } - if (stmt.node.importKind === "type") { - for (const specifier of stmt.node.specifiers) { - registerGlobalType(programScope, specifier.local.name); - } - stmt.remove(); - continue; - } - const importsToRemove = new Set(); - const specifiersLength = stmt.node.specifiers.length; - const isAllSpecifiersElided = () => specifiersLength > 0 && specifiersLength === importsToRemove.size; - for (const specifier of stmt.node.specifiers) { - if (specifier.type === "ImportSpecifier" && specifier.importKind === "type") { - registerGlobalType(programScope, specifier.local.name); - const binding = stmt.scope.getBinding(specifier.local.name); - if (binding) { - importsToRemove.add(binding.path); - } - } - } - if (onlyRemoveTypeImports) { - NEEDS_EXPLICIT_ESM.set(path.node, false); - } else { - if (stmt.node.specifiers.length === 0) { - NEEDS_EXPLICIT_ESM.set(path.node, false); - continue; - } - for (const specifier of stmt.node.specifiers) { - const binding = stmt.scope.getBinding(specifier.local.name); - if (binding && !importsToRemove.has(binding.path)) { - if (isImportTypeOnly({ - binding, - programPath: path, - pragmaImportName, - pragmaFragImportName - })) { - importsToRemove.add(binding.path); - } else { - NEEDS_EXPLICIT_ESM.set(path.node, false); - } - } - } - } - if (isAllSpecifiersElided() && !onlyRemoveTypeImports) { - stmt.remove(); - } else { - for (const importPath of importsToRemove) { - importPath.remove(); - } - } - continue; - } - if (stmt.isExportDeclaration()) { - stmt = stmt.get("declaration"); - } - if (stmt.isVariableDeclaration({ - declare: true - })) { - for (const name of Object.keys(stmt.getBindingIdentifiers())) { - registerGlobalType(programScope, name); - } - } else if (stmt.isTSTypeAliasDeclaration() || stmt.isTSDeclareFunction() && stmt.get("id").isIdentifier() || stmt.isTSInterfaceDeclaration() || stmt.isClassDeclaration({ - declare: true - }) || stmt.isTSEnumDeclaration({ - declare: true - }) || stmt.isTSModuleDeclaration({ - declare: true - }) && stmt.get("id").isIdentifier()) { - registerGlobalType(programScope, stmt.node.id.name); - } - } - }, - exit(path) { - if (path.node.sourceType === "module" && NEEDS_EXPLICIT_ESM.get(path.node)) { - path.pushContainer("body", t.exportNamedDeclaration()); - } - } - }, - ExportNamedDeclaration(path, state) { - if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); - } - if (path.node.exportKind === "type") { - path.remove(); - return; - } - if (path.node.source && path.node.specifiers.length > 0 && path.node.specifiers.every(specifier => specifier.type === "ExportSpecifier" && specifier.exportKind === "type")) { - path.remove(); - return; - } - if (!path.node.source && path.node.specifiers.length > 0 && path.node.specifiers.every(specifier => t.isExportSpecifier(specifier) && isGlobalType(path, specifier.local.name))) { - path.remove(); - return; - } - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, false); - }, - ExportAllDeclaration(path) { - if (path.node.exportKind === "type") path.remove(); - }, - ExportSpecifier(path) { - const parent = path.parent; - if (!parent.source && isGlobalType(path, path.node.local.name) || path.node.exportKind === "type") { - path.remove(); - } - }, - ExportDefaultDeclaration(path, state) { - if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); - } - if (t.isIdentifier(path.node.declaration) && isGlobalType(path, path.node.declaration.name)) { - path.remove(); - return; - } - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, false); - }, - TSDeclareFunction(path) { - safeRemove(path); - }, - TSDeclareMethod(path) { - safeRemove(path); - }, - VariableDeclaration(path) { - if (path.node.declare) { - safeRemove(path); - } - }, - VariableDeclarator({ - node - }) { - if (node.definite) node.definite = null; - }, - TSIndexSignature(path) { - path.remove(); - }, - ClassDeclaration(path) { - const { - node - } = path; - if (node.declare) { - safeRemove(path); - } - }, - Class(path) { - const { - node - } = path; - if (node.typeParameters) node.typeParameters = null; - if (node.superTypeParameters) node.superTypeParameters = null; - if (node.implements) node.implements = null; - if (node.abstract) node.abstract = null; - path.get("body.body").forEach(child => { - if (child.isClassMethod() || child.isClassPrivateMethod()) { - if (child.node.kind === "constructor") { - classMemberVisitors.constructor(child, path); - } else { - classMemberVisitors.method(child); - } - } else if (child.isClassProperty() || child.isClassPrivateProperty() || child.isClassAccessorProperty()) { - classMemberVisitors.field(child); - } - }); - }, - Function(path) { - const { - node - } = path; - if (node.typeParameters) node.typeParameters = null; - if (node.returnType) node.returnType = null; - const params = node.params; - if (params.length > 0 && t.isIdentifier(params[0], { - name: "this" - })) { - params.shift(); - } - }, - TSModuleDeclaration(path) { - (0, _namespace.default)(path, allowNamespaces); - }, - TSInterfaceDeclaration(path) { - path.remove(); - }, - TSTypeAliasDeclaration(path) { - path.remove(); - }, - TSEnumDeclaration(path) { - if (optimizeConstEnums && path.node.const) { - (0, _constEnum.default)(path, t); - } else { - (0, _enum.default)(path, t); - } - }, - TSImportEqualsDeclaration(path) { - if (t.isTSExternalModuleReference(path.node.moduleReference)) { - throw path.buildCodeFrameError(`\`import ${path.node.id.name} = require('${path.node.moduleReference.expression.value}')\` ` + "is not supported by @babel/plugin-transform-typescript\n" + "Please consider using " + `\`import ${path.node.id.name} from '${path.node.moduleReference.expression.value}';\` alongside ` + "Typescript's --allowSyntheticDefaultImports option."); - } - path.replaceWith(t.variableDeclaration("var", [t.variableDeclarator(path.node.id, entityNameToExpr(path.node.moduleReference))])); - }, - TSExportAssignment(path) { - throw path.buildCodeFrameError("`export =` is not supported by @babel/plugin-transform-typescript\n" + "Please consider using `export ;`."); - }, - TSTypeAssertion(path) { - path.replaceWith(path.node.expression); - }, - [`TSAsExpression${t.tsSatisfiesExpression ? "|TSSatisfiesExpression" : ""}`](path) { - let { - node - } = path; - do { - node = node.expression; - } while (t.isTSAsExpression(node) || t.isTSSatisfiesExpression != null && t.isTSSatisfiesExpression(node)); - path.replaceWith(node); - }, - [api.types.tsInstantiationExpression ? "TSNonNullExpression|TSInstantiationExpression" : "TSNonNullExpression"](path) { - path.replaceWith(path.node.expression); - }, - CallExpression(path) { - path.node.typeParameters = null; - }, - OptionalCallExpression(path) { - path.node.typeParameters = null; - }, - NewExpression(path) { - path.node.typeParameters = null; - }, - JSXOpeningElement(path) { - path.node.typeParameters = null; - }, - TaggedTemplateExpression(path) { - path.node.typeParameters = null; - } - } - }; - function entityNameToExpr(node) { - if (t.isTSQualifiedName(node)) { - return t.memberExpression(entityNameToExpr(node.left), node.right); - } - return node; - } - function visitPattern({ - node - }) { - if (node.typeAnnotation) node.typeAnnotation = null; - if (t.isIdentifier(node) && node.optional) node.optional = null; - } - function isImportTypeOnly({ - binding, - programPath, - pragmaImportName, - pragmaFragImportName - }) { - for (const path of binding.referencePaths) { - if (!isInType(path)) { - return false; - } - } - if (binding.identifier.name !== pragmaImportName && binding.identifier.name !== pragmaFragImportName) { - return true; - } - let sourceFileHasJsx = false; - programPath.traverse({ - "JSXElement|JSXFragment"(path) { - sourceFileHasJsx = true; - path.stop(); - } - }); - return !sourceFileHasJsx; - } -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 75653: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transpileNamespace; -var _core = __nccwpck_require__(90454); -function transpileNamespace(path, allowNamespaces) { - if (path.node.declare || path.node.id.type === "StringLiteral") { - path.remove(); - return; - } - if (!allowNamespaces) { - throw path.get("id").buildCodeFrameError("Namespace not marked type-only declare." + " Non-declarative namespaces are only supported experimentally in Babel." + " To enable and review caveats see:" + " https://babeljs.io/docs/en/babel-plugin-transform-typescript"); - } - const name = path.node.id.name; - const value = handleNested(path, _core.types.cloneNode(path.node, true)); - const bound = path.scope.hasOwnBinding(name); - if (path.parent.type === "ExportNamedDeclaration") { - if (!bound) { - path.parentPath.insertAfter(value); - path.replaceWith(getDeclaration(name)); - path.scope.registerDeclaration(path.parentPath); - } else { - path.parentPath.replaceWith(value); - } - } else if (bound) { - path.replaceWith(value); - } else { - path.scope.registerDeclaration(path.replaceWithMultiple([getDeclaration(name), value])[0]); - } -} -function getDeclaration(name) { - return _core.types.variableDeclaration("let", [_core.types.variableDeclarator(_core.types.identifier(name))]); -} -function getMemberExpression(name, itemName) { - return _core.types.memberExpression(_core.types.identifier(name), _core.types.identifier(itemName)); -} -function handleVariableDeclaration(node, name, hub) { - if (node.kind !== "const") { - throw hub.file.buildCodeFrameError(node, "Namespaces exporting non-const are not supported by Babel." + " Change to const or see:" + " https://babeljs.io/docs/en/babel-plugin-transform-typescript"); - } - const { - declarations - } = node; - if (declarations.every(declarator => _core.types.isIdentifier(declarator.id))) { - for (const declarator of declarations) { - declarator.init = _core.types.assignmentExpression("=", getMemberExpression(name, declarator.id.name), declarator.init); - } - return [node]; - } - const bindingIdentifiers = _core.types.getBindingIdentifiers(node); - const assignments = []; - for (const idName in bindingIdentifiers) { - assignments.push(_core.types.assignmentExpression("=", getMemberExpression(name, idName), _core.types.cloneNode(bindingIdentifiers[idName]))); - } - return [node, _core.types.expressionStatement(_core.types.sequenceExpression(assignments))]; -} -function buildNestedAmbientModuleError(path, node) { - throw path.hub.buildError(node, "Ambient modules cannot be nested in other modules or namespaces.", Error); -} -function handleNested(path, node, parentExport) { - const names = new Set(); - const realName = node.id; - _core.types.assertIdentifier(realName); - const name = path.scope.generateUid(realName.name); - const namespaceTopLevel = _core.types.isTSModuleBlock(node.body) ? node.body.body : [_core.types.exportNamedDeclaration(node.body)]; - for (let i = 0; i < namespaceTopLevel.length; i++) { - const subNode = namespaceTopLevel[i]; - switch (subNode.type) { - case "TSModuleDeclaration": - { - if (!_core.types.isIdentifier(subNode.id)) { - throw buildNestedAmbientModuleError(path, subNode); - } - const transformed = handleNested(path, subNode); - const moduleName = subNode.id.name; - if (names.has(moduleName)) { - namespaceTopLevel[i] = transformed; - } else { - names.add(moduleName); - namespaceTopLevel.splice(i++, 1, getDeclaration(moduleName), transformed); - } - continue; - } - case "TSEnumDeclaration": - case "FunctionDeclaration": - case "ClassDeclaration": - names.add(subNode.id.name); - continue; - case "VariableDeclaration": - { - for (const name in _core.types.getBindingIdentifiers(subNode)) { - names.add(name); - } - continue; - } - default: - continue; - case "ExportNamedDeclaration": - } - if ("declare" in subNode.declaration && subNode.declaration.declare) { - continue; - } - switch (subNode.declaration.type) { - case "TSEnumDeclaration": - case "FunctionDeclaration": - case "ClassDeclaration": - { - const itemName = subNode.declaration.id.name; - names.add(itemName); - namespaceTopLevel.splice(i++, 1, subNode.declaration, _core.types.expressionStatement(_core.types.assignmentExpression("=", getMemberExpression(name, itemName), _core.types.identifier(itemName)))); - break; - } - case "VariableDeclaration": - { - const nodes = handleVariableDeclaration(subNode.declaration, name, path.hub); - namespaceTopLevel.splice(i, nodes.length, ...nodes); - i += nodes.length - 1; - break; - } - case "TSModuleDeclaration": - { - if (!_core.types.isIdentifier(subNode.declaration.id)) { - throw buildNestedAmbientModuleError(path, subNode.declaration); - } - const transformed = handleNested(path, subNode.declaration, _core.types.identifier(name)); - const moduleName = subNode.declaration.id.name; - if (names.has(moduleName)) { - namespaceTopLevel[i] = transformed; - } else { - names.add(moduleName); - namespaceTopLevel.splice(i++, 1, getDeclaration(moduleName), transformed); - } - } - } - } - let fallthroughValue = _core.types.objectExpression([]); - if (parentExport) { - const memberExpr = _core.types.memberExpression(parentExport, realName); - fallthroughValue = _core.template.expression.ast` - ${_core.types.cloneNode(memberExpr)} || - (${_core.types.cloneNode(memberExpr)} = ${fallthroughValue}) - `; - } - return _core.template.statement.ast` - (function (${_core.types.identifier(name)}) { - ${namespaceTopLevel} - })(${realName} || (${_core.types.cloneNode(realName)} = ${fallthroughValue})); - `; -} - -//# sourceMappingURL=namespace.js.map - - -/***/ }), - -/***/ 71758: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transpileConstEnum; -var _enum = __nccwpck_require__(55884); -function transpileConstEnum(path, t) { - const { - name - } = path.node.id; - const parentIsExport = path.parentPath.isExportNamedDeclaration(); - let isExported = parentIsExport; - if (!isExported && t.isProgram(path.parent)) { - isExported = path.parent.body.some(stmt => t.isExportNamedDeclaration(stmt) && stmt.exportKind !== "type" && !stmt.source && stmt.specifiers.some(spec => t.isExportSpecifier(spec) && spec.exportKind !== "type" && spec.local.name === name)); - } - const { - enumValues: entries - } = (0, _enum.translateEnumValues)(path, t); - if (isExported) { - const obj = t.objectExpression(entries.map(([name, value]) => t.objectProperty(t.isValidIdentifier(name) ? t.identifier(name) : t.stringLiteral(name), value))); - if (path.scope.hasOwnBinding(name)) { - (parentIsExport ? path.parentPath : path).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"), t.identifier("assign")), [path.node.id, obj]))); - } else { - path.replaceWith(t.variableDeclaration("var", [t.variableDeclarator(path.node.id, obj)])); - path.scope.registerDeclaration(path); - } - return; - } - const entriesMap = new Map(entries); - path.scope.path.traverse({ - Scope(path) { - if (path.scope.hasOwnBinding(name)) path.skip(); - }, - MemberExpression(path) { - if (!t.isIdentifier(path.node.object, { - name - })) return; - let key; - if (path.node.computed) { - if (t.isStringLiteral(path.node.property)) { - key = path.node.property.value; - } else { - return; - } - } else if (t.isIdentifier(path.node.property)) { - key = path.node.property.name; - } else { - return; - } - if (!entriesMap.has(key)) return; - path.replaceWith(t.cloneNode(entriesMap.get(key))); - } - }); - path.remove(); -} - -//# sourceMappingURL=const-enum.js.map - - -/***/ }), - -/***/ 55884: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transpileEnum; -exports.translateEnumValues = translateEnumValues; -var _core = __nccwpck_require__(27324); -var _assert = __nccwpck_require__(39491); -var _helperAnnotateAsPure = __nccwpck_require__(40151); -const ENUMS = new WeakMap(); -const buildEnumWrapper = _core.template.expression(` - (function (ID) { - ASSIGNMENTS; - return ID; - })(INIT) - `); -function transpileEnum(path, t) { - const { - node, - parentPath - } = path; - if (node.declare) { - path.remove(); - return; - } - const name = node.id.name; - const { - fill, - data, - isPure - } = enumFill(path, t, node.id); - switch (parentPath.type) { - case "BlockStatement": - case "ExportNamedDeclaration": - case "Program": - { - const isGlobal = t.isProgram(path.parent); - const isSeen = seen(parentPath); - let init = t.objectExpression([]); - if (isSeen || isGlobal) { - init = t.logicalExpression("||", t.cloneNode(fill.ID), init); - } - const enumIIFE = buildEnumWrapper(Object.assign({}, fill, { - INIT: init - })); - if (isPure) (0, _helperAnnotateAsPure.default)(enumIIFE); - if (isSeen) { - const toReplace = parentPath.isExportDeclaration() ? parentPath : path; - toReplace.replaceWith(t.expressionStatement(t.assignmentExpression("=", t.cloneNode(node.id), enumIIFE))); - } else { - path.scope.registerDeclaration(path.replaceWith(t.variableDeclaration(isGlobal ? "var" : "let", [t.variableDeclarator(node.id, enumIIFE)]))[0]); - } - ENUMS.set(path.scope.getBindingIdentifier(name), data); - break; - } - default: - throw new Error(`Unexpected enum parent '${path.parent.type}`); - } - function seen(parentPath) { - if (parentPath.isExportDeclaration()) { - return seen(parentPath.parentPath); - } - if (parentPath.getData(name)) { - return true; - } else { - parentPath.setData(name, true); - return false; - } - } -} -const buildStringAssignment = (0, _core.template)(` - ENUM["NAME"] = VALUE; -`); -const buildNumericAssignment = (0, _core.template)(` - ENUM[ENUM["NAME"] = VALUE] = "NAME"; -`); -const buildEnumMember = (isString, options) => (isString ? buildStringAssignment : buildNumericAssignment)(options); -function enumFill(path, t, id) { - const { - enumValues: x, - data, - isPure - } = translateEnumValues(path, t); - const assignments = x.map(([memberName, memberValue]) => buildEnumMember(t.isStringLiteral(memberValue), { - ENUM: t.cloneNode(id), - NAME: memberName, - VALUE: memberValue - })); - return { - fill: { - ID: t.cloneNode(id), - ASSIGNMENTS: assignments - }, - data, - isPure - }; -} -function ReferencedIdentifier(expr, state) { - const { - seen, - path, - t - } = state; - const name = expr.node.name; - if (seen.has(name) && !expr.scope.hasOwnBinding(name)) { - expr.replaceWith(t.memberExpression(t.cloneNode(path.node.id), t.cloneNode(expr.node))); - expr.skip(); - } -} -const enumSelfReferenceVisitor = { - ReferencedIdentifier -}; -function translateEnumValues(path, t) { - const seen = new Map(); - let constValue = -1; - let lastName; - let isPure = true; - const enumValues = path.get("members").map(memberPath => { - const member = memberPath.node; - const name = t.isIdentifier(member.id) ? member.id.name : member.id.value; - const initializerPath = memberPath.get("initializer"); - const initializer = member.initializer; - let value; - if (initializer) { - constValue = computeConstantValue(initializerPath, seen); - if (constValue !== undefined) { - seen.set(name, constValue); - if (typeof constValue === "number") { - value = t.numericLiteral(constValue); - } else { - _assert(typeof constValue === "string"); - value = t.stringLiteral(constValue); - } - } else { - isPure && (isPure = initializerPath.isPure()); - if (initializerPath.isReferencedIdentifier()) { - ReferencedIdentifier(initializerPath, { - t, - seen, - path - }); - } else { - initializerPath.traverse(enumSelfReferenceVisitor, { - t, - seen, - path - }); - } - value = initializerPath.node; - seen.set(name, undefined); - } - } else if (typeof constValue === "number") { - constValue += 1; - value = t.numericLiteral(constValue); - seen.set(name, constValue); - } else if (typeof constValue === "string") { - throw path.buildCodeFrameError("Enum member must have initializer."); - } else { - const lastRef = t.memberExpression(t.cloneNode(path.node.id), t.stringLiteral(lastName), true); - value = t.binaryExpression("+", t.numericLiteral(1), lastRef); - seen.set(name, undefined); - } - lastName = name; - return [name, value]; - }); - return { - isPure, - data: seen, - enumValues - }; -} -function computeConstantValue(path, prevMembers, seen = new Set()) { - return evaluate(path); - function evaluate(path) { - const expr = path.node; - switch (expr.type) { - case "MemberExpression": - return evaluateRef(path, prevMembers, seen); - case "StringLiteral": - return expr.value; - case "UnaryExpression": - return evalUnaryExpression(path); - case "BinaryExpression": - return evalBinaryExpression(path); - case "NumericLiteral": - return expr.value; - case "ParenthesizedExpression": - return evaluate(path.get("expression")); - case "Identifier": - return evaluateRef(path, prevMembers, seen); - case "TemplateLiteral": - { - if (expr.quasis.length === 1) { - return expr.quasis[0].value.cooked; - } - const paths = path.get("expressions"); - const quasis = expr.quasis; - let str = ""; - for (let i = 0; i < quasis.length; i++) { - str += quasis[i].value.cooked; - if (i + 1 < quasis.length) { - const value = evaluateRef(paths[i], prevMembers, seen); - if (value === undefined) return undefined; - str += value; - } - } - return str; - } - default: - return undefined; - } - } - function evaluateRef(path, prevMembers, seen) { - if (path.isMemberExpression()) { - const expr = path.node; - const obj = expr.object; - const prop = expr.property; - if (!_core.types.isIdentifier(obj) || (expr.computed ? !_core.types.isStringLiteral(prop) : !_core.types.isIdentifier(prop))) { - return; - } - const bindingIdentifier = path.scope.getBindingIdentifier(obj.name); - const data = ENUMS.get(bindingIdentifier); - if (!data) return; - return data.get(prop.computed ? prop.value : prop.name); - } else if (path.isIdentifier()) { - const name = path.node.name; - let value = prevMembers == null ? void 0 : prevMembers.get(name); - if (value !== undefined) { - return value; - } - if (seen.has(path.node)) return; - const bindingInitPath = path.resolve(); - if (bindingInitPath) { - seen.add(path.node); - value = computeConstantValue(bindingInitPath, undefined, seen); - prevMembers == null ? void 0 : prevMembers.set(name, value); - return value; - } - } - } - function evalUnaryExpression(path) { - const value = evaluate(path.get("argument")); - if (value === undefined) { - return undefined; - } - switch (path.node.operator) { - case "+": - return value; - case "-": - return -value; - case "~": - return ~value; - default: - return undefined; - } - } - function evalBinaryExpression(path) { - const left = evaluate(path.get("left")); - if (left === undefined) { - return undefined; - } - const right = evaluate(path.get("right")); - if (right === undefined) { - return undefined; - } - switch (path.node.operator) { - case "|": - return left | right; - case "&": - return left & right; - case ">>": - return left >> right; - case ">>>": - return left >>> right; - case "<<": - return left << right; - case "^": - return left ^ right; - case "*": - return left * right; - case "/": - return left / right; - case "+": - return left + right; - case "-": - return left - right; - case "%": - return left % right; - case "**": - return Math.pow(left, right); - default: - return undefined; - } - } -} - -//# sourceMappingURL=enum.js.map - - -/***/ }), - -/***/ 11469: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _pluginSyntaxTypescript = __nccwpck_require__(92680); -var _helperCreateClassFeaturesPlugin = __nccwpck_require__(14414); -var _constEnum = __nccwpck_require__(71758); -var _enum = __nccwpck_require__(55884); -var _namespace = __nccwpck_require__(79554); -function isInType(path) { - switch (path.parent.type) { - case "TSTypeReference": - case "TSExpressionWithTypeArguments": - case "TSTypeQuery": - return true; - case "TSQualifiedName": - return path.parentPath.findParent(path => path.type !== "TSQualifiedName").type !== "TSImportEqualsDeclaration"; - case "ExportSpecifier": - return path.parent.exportKind === "type" || path.parentPath.parent.exportKind === "type"; - default: - return false; - } -} -const GLOBAL_TYPES = new WeakMap(); -const NEEDS_EXPLICIT_ESM = new WeakMap(); -const PARSED_PARAMS = new WeakSet(); -function isGlobalType({ - scope -}, name) { - if (scope.hasBinding(name)) return false; - if (GLOBAL_TYPES.get(scope).has(name)) return true; - console.warn(`The exported identifier "${name}" is not declared in Babel's scope tracker\n` + `as a JavaScript value binding, and "@babel/plugin-transform-typescript"\n` + `never encountered it as a TypeScript type declaration.\n` + `It will be treated as a JavaScript value.\n\n` + `This problem is likely caused by another plugin injecting\n` + `"${name}" without registering it in the scope tracker. If you are the author\n` + ` of that plugin, please use "scope.registerDeclaration(declarationPath)".`); - return false; -} -function registerGlobalType(programScope, name) { - GLOBAL_TYPES.get(programScope).add(name); -} -function safeRemove(path) { - const ids = path.getBindingIdentifiers(); - for (const name of Object.keys(ids)) { - const binding = path.scope.getBinding(name); - if (binding && binding.identifier === ids[name]) { - binding.scope.removeBinding(name); - } - } - path.opts.noScope = true; - path.remove(); - path.opts.noScope = false; -} -function assertCjsTransformEnabled(path, pass, wrong, suggestion, extra = "") { - if (pass.file.get("@babel/plugin-transform-modules-*") !== "commonjs") { - throw path.buildCodeFrameError(`\`${wrong}\` is only supported when compiling modules to CommonJS.\n` + `Please consider using \`${suggestion}\`${extra}, or add ` + `@babel/plugin-transform-modules-commonjs to your Babel config.`); - } -} -var _default = (0, _helperPluginUtils.declare)((api, opts) => { - const { - types: t, - template - } = api; - api.assertVersion(7); - const JSX_PRAGMA_REGEX = /\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/; - const { - allowNamespaces = true, - jsxPragma = "React.createElement", - jsxPragmaFrag = "React.Fragment", - onlyRemoveTypeImports = false, - optimizeConstEnums = false - } = opts; - { - var { - allowDeclareFields = false - } = opts; - } - const classMemberVisitors = { - field(path) { - const { - node - } = path; - { - if (!allowDeclareFields && node.declare) { - throw path.buildCodeFrameError(`The 'declare' modifier is only allowed when the 'allowDeclareFields' option of ` + `@babel/plugin-transform-typescript or @babel/preset-typescript is enabled.`); - } - } - if (node.declare) { - if (node.value) { - throw path.buildCodeFrameError(`Fields with the 'declare' modifier cannot be initialized here, but only in the constructor`); - } - if (!node.decorators) { - path.remove(); - } - } else if (node.definite) { - if (node.value) { - throw path.buildCodeFrameError(`Definitely assigned fields cannot be initialized here, but only in the constructor`); - } - { - if (!allowDeclareFields && !node.decorators && !t.isClassPrivateProperty(node)) { - path.remove(); - } - } - } else if (node.abstract) { - path.remove(); - } else { - if (!allowDeclareFields && !node.value && !node.decorators && !t.isClassPrivateProperty(node)) { - path.remove(); - } - } - if (node.accessibility) node.accessibility = null; - if (node.abstract) node.abstract = null; - if (node.readonly) node.readonly = null; - if (node.optional) node.optional = null; - if (node.typeAnnotation) node.typeAnnotation = null; - if (node.definite) node.definite = null; - if (node.declare) node.declare = null; - if (node.override) node.override = null; - }, - method({ - node - }) { - if (node.accessibility) node.accessibility = null; - if (node.abstract) node.abstract = null; - if (node.optional) node.optional = null; - if (node.override) node.override = null; - }, - constructor(path, classPath) { - if (path.node.accessibility) path.node.accessibility = null; - const assigns = []; - const { - scope - } = path; - for (const paramPath of path.get("params")) { - const param = paramPath.node; - if (param.type === "TSParameterProperty") { - const parameter = param.parameter; - if (PARSED_PARAMS.has(parameter)) continue; - PARSED_PARAMS.add(parameter); - let id; - if (t.isIdentifier(parameter)) { - id = parameter; - } else if (t.isAssignmentPattern(parameter) && t.isIdentifier(parameter.left)) { - id = parameter.left; - } else { - throw paramPath.buildCodeFrameError("Parameter properties can not be destructuring patterns."); - } - assigns.push(template.statement.ast` - this.${t.cloneNode(id)} = ${t.cloneNode(id)}`); - paramPath.replaceWith(paramPath.get("parameter")); - scope.registerBinding("param", paramPath); - } - } - (0, _helperCreateClassFeaturesPlugin.injectInitialization)(classPath, path, assigns); - } - }; - return { - name: "transform-typescript", - inherits: _pluginSyntaxTypescript.default, - visitor: { - Pattern: visitPattern, - Identifier: visitPattern, - RestElement: visitPattern, - Program: { - enter(path, state) { - const { - file - } = state; - let fileJsxPragma = null; - let fileJsxPragmaFrag = null; - const programScope = path.scope; - if (!GLOBAL_TYPES.has(programScope)) { - GLOBAL_TYPES.set(programScope, new Set()); - } - if (file.ast.comments) { - for (const comment of file.ast.comments) { - const jsxMatches = JSX_PRAGMA_REGEX.exec(comment.value); - if (jsxMatches) { - if (jsxMatches[1]) { - fileJsxPragmaFrag = jsxMatches[2]; - } else { - fileJsxPragma = jsxMatches[2]; - } - } - } - } - let pragmaImportName = fileJsxPragma || jsxPragma; - if (pragmaImportName) { - [pragmaImportName] = pragmaImportName.split("."); - } - let pragmaFragImportName = fileJsxPragmaFrag || jsxPragmaFrag; - if (pragmaFragImportName) { - [pragmaFragImportName] = pragmaFragImportName.split("."); - } - for (let stmt of path.get("body")) { - if (stmt.isImportDeclaration()) { - if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); - } - if (stmt.node.importKind === "type") { - for (const specifier of stmt.node.specifiers) { - registerGlobalType(programScope, specifier.local.name); - } - stmt.remove(); - continue; - } - const importsToRemove = new Set(); - const specifiersLength = stmt.node.specifiers.length; - const isAllSpecifiersElided = () => specifiersLength > 0 && specifiersLength === importsToRemove.size; - for (const specifier of stmt.node.specifiers) { - if (specifier.type === "ImportSpecifier" && specifier.importKind === "type") { - registerGlobalType(programScope, specifier.local.name); - const binding = stmt.scope.getBinding(specifier.local.name); - if (binding) { - importsToRemove.add(binding.path); - } - } - } - if (onlyRemoveTypeImports) { - NEEDS_EXPLICIT_ESM.set(path.node, false); - } else { - if (stmt.node.specifiers.length === 0) { - NEEDS_EXPLICIT_ESM.set(path.node, false); - continue; - } - for (const specifier of stmt.node.specifiers) { - const binding = stmt.scope.getBinding(specifier.local.name); - if (binding && !importsToRemove.has(binding.path)) { - if (isImportTypeOnly({ - binding, - programPath: path, - pragmaImportName, - pragmaFragImportName - })) { - importsToRemove.add(binding.path); - } else { - NEEDS_EXPLICIT_ESM.set(path.node, false); - } - } - } - } - if (isAllSpecifiersElided() && !onlyRemoveTypeImports) { - stmt.remove(); - } else { - for (const importPath of importsToRemove) { - importPath.remove(); - } - } - continue; - } - if (stmt.isExportDeclaration()) { - stmt = stmt.get("declaration"); - } - if (stmt.isVariableDeclaration({ - declare: true - })) { - for (const name of Object.keys(stmt.getBindingIdentifiers())) { - registerGlobalType(programScope, name); - } - } else if (stmt.isTSTypeAliasDeclaration() || stmt.isTSDeclareFunction() && stmt.get("id").isIdentifier() || stmt.isTSInterfaceDeclaration() || stmt.isClassDeclaration({ - declare: true - }) || stmt.isTSEnumDeclaration({ - declare: true - }) || stmt.isTSModuleDeclaration({ - declare: true - }) && stmt.get("id").isIdentifier()) { - registerGlobalType(programScope, stmt.node.id.name); - } - } - }, - exit(path) { - if (path.node.sourceType === "module" && NEEDS_EXPLICIT_ESM.get(path.node)) { - path.pushContainer("body", t.exportNamedDeclaration()); - } - } - }, - ExportNamedDeclaration(path, state) { - if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); - } - if (path.node.exportKind === "type") { - path.remove(); - return; - } - if (path.node.source && path.node.specifiers.length > 0 && path.node.specifiers.every(specifier => specifier.type === "ExportSpecifier" && specifier.exportKind === "type")) { - path.remove(); - return; - } - if (!path.node.source && path.node.specifiers.length > 0 && path.node.specifiers.every(specifier => t.isExportSpecifier(specifier) && isGlobalType(path, specifier.local.name))) { - path.remove(); - return; - } - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, false); - }, - ExportAllDeclaration(path) { - if (path.node.exportKind === "type") path.remove(); - }, - ExportSpecifier(path) { - const parent = path.parent; - if (!parent.source && isGlobalType(path, path.node.local.name) || path.node.exportKind === "type") { - path.remove(); - } - }, - ExportDefaultDeclaration(path, state) { - if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); - } - if (t.isIdentifier(path.node.declaration) && isGlobalType(path, path.node.declaration.name)) { - path.remove(); - return; - } - NEEDS_EXPLICIT_ESM.set(state.file.ast.program, false); - }, - TSDeclareFunction(path) { - safeRemove(path); - }, - TSDeclareMethod(path) { - safeRemove(path); - }, - VariableDeclaration(path) { - if (path.node.declare) { - safeRemove(path); - } - }, - VariableDeclarator({ - node - }) { - if (node.definite) node.definite = null; - }, - TSIndexSignature(path) { - path.remove(); - }, - ClassDeclaration(path) { - const { - node - } = path; - if (node.declare) { - safeRemove(path); - } - }, - Class(path) { - const { - node - } = path; - if (node.typeParameters) node.typeParameters = null; - if (node.superTypeParameters) node.superTypeParameters = null; - if (node.implements) node.implements = null; - if (node.abstract) node.abstract = null; - path.get("body.body").forEach(child => { - if (child.isClassMethod() || child.isClassPrivateMethod()) { - if (child.node.kind === "constructor") { - classMemberVisitors.constructor(child, path); - } else { - classMemberVisitors.method(child); - } - } else if (child.isClassProperty() || child.isClassPrivateProperty() || child.isClassAccessorProperty()) { - classMemberVisitors.field(child); - } - }); - }, - Function(path) { - const { - node - } = path; - if (node.typeParameters) node.typeParameters = null; - if (node.returnType) node.returnType = null; - const params = node.params; - if (params.length > 0 && t.isIdentifier(params[0], { - name: "this" - })) { - params.shift(); - } - }, - TSModuleDeclaration(path) { - (0, _namespace.default)(path, allowNamespaces); - }, - TSInterfaceDeclaration(path) { - path.remove(); - }, - TSTypeAliasDeclaration(path) { - path.remove(); - }, - TSEnumDeclaration(path) { - if (optimizeConstEnums && path.node.const) { - (0, _constEnum.default)(path, t); - } else { - (0, _enum.default)(path, t); - } - }, - TSImportEqualsDeclaration(path, pass) { - const { - id, - moduleReference - } = path.node; - let init; - let varKind; - if (t.isTSExternalModuleReference(moduleReference)) { - assertCjsTransformEnabled(path, pass, `import ${id.name} = require(...);`, `import ${id.name} from '...';`, " alongside Typescript's --allowSyntheticDefaultImports option"); - init = t.callExpression(t.identifier("require"), [moduleReference.expression]); - varKind = "const"; - } else { - init = entityNameToExpr(moduleReference); - varKind = "var"; - } - path.replaceWith(t.variableDeclaration(varKind, [t.variableDeclarator(id, init)])); - path.scope.registerDeclaration(path); - }, - TSExportAssignment(path, pass) { - assertCjsTransformEnabled(path, pass, `export = ;`, `export default ;`); - path.replaceWith(template.statement.ast`module.exports = ${path.node.expression}`); - }, - TSTypeAssertion(path) { - path.replaceWith(path.node.expression); - }, - [`TSAsExpression${t.tsSatisfiesExpression ? "|TSSatisfiesExpression" : ""}`](path) { - let { - node - } = path; - do { - node = node.expression; - } while (t.isTSAsExpression(node) || t.isTSSatisfiesExpression != null && t.isTSSatisfiesExpression(node)); - path.replaceWith(node); - }, - [api.types.tsInstantiationExpression ? "TSNonNullExpression|TSInstantiationExpression" : "TSNonNullExpression"](path) { - path.replaceWith(path.node.expression); - }, - CallExpression(path) { - path.node.typeParameters = null; - }, - OptionalCallExpression(path) { - path.node.typeParameters = null; - }, - NewExpression(path) { - path.node.typeParameters = null; - }, - JSXOpeningElement(path) { - path.node.typeParameters = null; - }, - TaggedTemplateExpression(path) { - path.node.typeParameters = null; - } - } - }; - function entityNameToExpr(node) { - if (t.isTSQualifiedName(node)) { - return t.memberExpression(entityNameToExpr(node.left), node.right); - } - return node; - } - function visitPattern({ - node - }) { - if (node.typeAnnotation) node.typeAnnotation = null; - if (t.isIdentifier(node) && node.optional) node.optional = null; - } - function isImportTypeOnly({ - binding, - programPath, - pragmaImportName, - pragmaFragImportName - }) { - for (const path of binding.referencePaths) { - if (!isInType(path)) { - return false; - } - } - if (binding.identifier.name !== pragmaImportName && binding.identifier.name !== pragmaFragImportName) { - return true; - } - let sourceFileHasJsx = false; - programPath.traverse({ - "JSXElement|JSXFragment"(path) { - sourceFileHasJsx = true; - path.stop(); - } - }); - return !sourceFileHasJsx; - } -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 79554: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = transpileNamespace; -var _core = __nccwpck_require__(27324); -function transpileNamespace(path, allowNamespaces) { - if (path.node.declare || path.node.id.type === "StringLiteral") { - path.remove(); - return; - } - if (!allowNamespaces) { - throw path.get("id").buildCodeFrameError("Namespace not marked type-only declare." + " Non-declarative namespaces are only supported experimentally in Babel." + " To enable and review caveats see:" + " https://babeljs.io/docs/en/babel-plugin-transform-typescript"); - } - const name = path.node.id.name; - const value = handleNested(path, _core.types.cloneNode(path.node, true)); - const bound = path.scope.hasOwnBinding(name); - if (path.parent.type === "ExportNamedDeclaration") { - if (!bound) { - path.parentPath.insertAfter(value); - path.replaceWith(getDeclaration(name)); - path.scope.registerDeclaration(path.parentPath); - } else { - path.parentPath.replaceWith(value); - } - } else if (bound) { - path.replaceWith(value); - } else { - path.scope.registerDeclaration(path.replaceWithMultiple([getDeclaration(name), value])[0]); - } -} -function getDeclaration(name) { - return _core.types.variableDeclaration("let", [_core.types.variableDeclarator(_core.types.identifier(name))]); -} -function getMemberExpression(name, itemName) { - return _core.types.memberExpression(_core.types.identifier(name), _core.types.identifier(itemName)); -} -function handleVariableDeclaration(node, name, hub) { - if (node.kind !== "const") { - throw hub.file.buildCodeFrameError(node, "Namespaces exporting non-const are not supported by Babel." + " Change to const or see:" + " https://babeljs.io/docs/en/babel-plugin-transform-typescript"); - } - const { - declarations - } = node; - if (declarations.every(declarator => _core.types.isIdentifier(declarator.id))) { - for (const declarator of declarations) { - declarator.init = _core.types.assignmentExpression("=", getMemberExpression(name, declarator.id.name), declarator.init); - } - return [node]; - } - const bindingIdentifiers = _core.types.getBindingIdentifiers(node); - const assignments = []; - for (const idName in bindingIdentifiers) { - assignments.push(_core.types.assignmentExpression("=", getMemberExpression(name, idName), _core.types.cloneNode(bindingIdentifiers[idName]))); - } - return [node, _core.types.expressionStatement(_core.types.sequenceExpression(assignments))]; -} -function buildNestedAmbientModuleError(path, node) { - return path.hub.buildError(node, "Ambient modules cannot be nested in other modules or namespaces.", Error); -} -function handleNested(path, node, parentExport) { - const names = new Set(); - const realName = node.id; - _core.types.assertIdentifier(realName); - const name = path.scope.generateUid(realName.name); - const namespaceTopLevel = _core.types.isTSModuleBlock(node.body) ? node.body.body : [_core.types.exportNamedDeclaration(node.body)]; - for (let i = 0; i < namespaceTopLevel.length; i++) { - const subNode = namespaceTopLevel[i]; - switch (subNode.type) { - case "TSModuleDeclaration": - { - if (!_core.types.isIdentifier(subNode.id)) { - throw buildNestedAmbientModuleError(path, subNode); - } - const transformed = handleNested(path, subNode); - const moduleName = subNode.id.name; - if (names.has(moduleName)) { - namespaceTopLevel[i] = transformed; - } else { - names.add(moduleName); - namespaceTopLevel.splice(i++, 1, getDeclaration(moduleName), transformed); - } - continue; - } - case "TSEnumDeclaration": - case "FunctionDeclaration": - case "ClassDeclaration": - names.add(subNode.id.name); - continue; - case "VariableDeclaration": - { - for (const name in _core.types.getBindingIdentifiers(subNode)) { - names.add(name); - } - continue; - } - default: - continue; - case "ExportNamedDeclaration": - } - if ("declare" in subNode.declaration && subNode.declaration.declare) { - continue; - } - switch (subNode.declaration.type) { - case "TSEnumDeclaration": - case "FunctionDeclaration": - case "ClassDeclaration": - { - const itemName = subNode.declaration.id.name; - names.add(itemName); - namespaceTopLevel.splice(i++, 1, subNode.declaration, _core.types.expressionStatement(_core.types.assignmentExpression("=", getMemberExpression(name, itemName), _core.types.identifier(itemName)))); - break; - } - case "VariableDeclaration": - { - const nodes = handleVariableDeclaration(subNode.declaration, name, path.hub); - namespaceTopLevel.splice(i, nodes.length, ...nodes); - i += nodes.length - 1; - break; - } - case "TSModuleDeclaration": - { - if (!_core.types.isIdentifier(subNode.declaration.id)) { - throw buildNestedAmbientModuleError(path, subNode.declaration); - } - const transformed = handleNested(path, subNode.declaration, _core.types.identifier(name)); - const moduleName = subNode.declaration.id.name; - if (names.has(moduleName)) { - namespaceTopLevel[i] = transformed; - } else { - names.add(moduleName); - namespaceTopLevel.splice(i++, 1, getDeclaration(moduleName), transformed); - } - } - } - } - let fallthroughValue = _core.types.objectExpression([]); - if (parentExport) { - const memberExpr = _core.types.memberExpression(parentExport, realName); - fallthroughValue = _core.template.expression.ast` - ${_core.types.cloneNode(memberExpr)} || - (${_core.types.cloneNode(memberExpr)} = ${fallthroughValue}) - `; - } - return _core.template.statement.ast` - (function (${_core.types.identifier(name)}) { - ${namespaceTopLevel} - })(${realName} || (${_core.types.cloneNode(realName)} = ${fallthroughValue})); - `; -} - -//# sourceMappingURL=namespace.js.map - - -/***/ }), - -/***/ 58342: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperPluginUtils = __nccwpck_require__(36028); -var _core = __nccwpck_require__(27324); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - const surrogate = /[\ud800-\udfff]/g; - const unicodeEscape = /(\\+)u\{([0-9a-fA-F]+)\}/g; - function escape(code) { - { - let str = code.toString(16); - while (str.length < 4) str = "0" + str; - return "\\u" + str; - } - } - function replacer(match, backslashes, code) { - if (backslashes.length % 2 === 0) { - return match; - } - const char = String.fromCodePoint(parseInt(code, 16)); - const escaped = backslashes.slice(0, -1) + escape(char.charCodeAt(0)); - return char.length === 1 ? escaped : escaped + escape(char.charCodeAt(1)); - } - function replaceUnicodeEscapes(str) { - return str.replace(unicodeEscape, replacer); - } - function getUnicodeEscape(str) { - let match; - while (match = unicodeEscape.exec(str)) { - if (match[1].length % 2 === 0) continue; - unicodeEscape.lastIndex = 0; - return match[0]; - } - return null; - } - return { - name: "transform-unicode-escapes", - manipulateOptions({ - generatorOpts - }) { - var _generatorOpts$jsescO, _generatorOpts$jsescO2; - if (!generatorOpts.jsescOption) { - generatorOpts.jsescOption = {}; - } - (_generatorOpts$jsescO2 = (_generatorOpts$jsescO = generatorOpts.jsescOption).minimal) != null ? _generatorOpts$jsescO2 : _generatorOpts$jsescO.minimal = false; - }, - visitor: { - Identifier(path) { - const { - node, - key - } = path; - const { - name - } = node; - const replaced = name.replace(surrogate, c => { - return `_u${c.charCodeAt(0).toString(16)}`; - }); - if (name === replaced) return; - const str = _core.types.inherits(_core.types.stringLiteral(name), node); - if (key === "key") { - path.replaceWith(str); - return; - } - const { - parentPath, - scope - } = path; - if (parentPath.isMemberExpression({ - property: node - }) || parentPath.isOptionalMemberExpression({ - property: node - })) { - parentPath.node.computed = true; - path.replaceWith(str); - return; - } - const binding = scope.getBinding(name); - if (binding) { - scope.rename(name, scope.generateUid(replaced)); - return; - } - throw path.buildCodeFrameError(`Can't reference '${name}' as a bare identifier`); - }, - "StringLiteral|DirectiveLiteral"(path) { - const { - node - } = path; - const { - extra - } = node; - if (extra != null && extra.raw) extra.raw = replaceUnicodeEscapes(extra.raw); - }, - TemplateElement(path) { - const { - node, - parentPath - } = path; - const { - value - } = node; - const firstEscape = getUnicodeEscape(value.raw); - if (!firstEscape) return; - const grandParent = parentPath.parentPath; - if (grandParent.isTaggedTemplateExpression()) { - throw path.buildCodeFrameError(`Can't replace Unicode escape '${firstEscape}' inside tagged template literals. You can enable '@babel/plugin-transform-template-literals' to compile them to classic strings.`); - } - value.raw = replaceUnicodeEscapes(value.raw); - } - } - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 17557: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(12632); -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - const { - useUnicodeFlag = true - } = options; - if (typeof useUnicodeFlag !== "boolean") { - throw new Error(".useUnicodeFlag must be a boolean, or undefined"); - } - return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ - name: "transform-unicode-property-regex", - feature: "unicodePropertyEscape", - options: { - useUnicodeFlag - } - }); -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 81041: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(12632); -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ - name: "transform-unicode-regex", - feature: "unicodeFlag" - }); -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 54309: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(12632); -var _helperPluginUtils = __nccwpck_require__(36028); -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ - name: "transform-unicode-sets-regex", - feature: "unicodeSetsFlag", - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("regexpUnicodeSets"); - } - }); -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 73220: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -module.exports = __nccwpck_require__(52260); - - -/***/ }), - -/***/ 61645: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.minVersions = exports["default"] = void 0; -var _pluginSyntaxAsyncGenerators = __nccwpck_require__(33113); -var _pluginSyntaxClassProperties = __nccwpck_require__(74227); -var _pluginSyntaxClassStaticBlock = __nccwpck_require__(92476); -var _pluginSyntaxDynamicImport = __nccwpck_require__(4370); -var _pluginSyntaxExportNamespaceFrom = __nccwpck_require__(13021); -var _pluginSyntaxImportAssertions = __nccwpck_require__(31373); -var _pluginSyntaxImportAttributes = __nccwpck_require__(25027); -var _pluginSyntaxImportMeta = __nccwpck_require__(8203); -var _pluginSyntaxJsonStrings = __nccwpck_require__(90194); -var _pluginSyntaxLogicalAssignmentOperators = __nccwpck_require__(88999); -var _pluginSyntaxNullishCoalescingOperator = __nccwpck_require__(99617); -var _pluginSyntaxNumericSeparator = __nccwpck_require__(57580); -var _pluginSyntaxObjectRestSpread = __nccwpck_require__(63664); -var _pluginSyntaxOptionalCatchBinding = __nccwpck_require__(73508); -var _pluginSyntaxOptionalChaining = __nccwpck_require__(63652); -var _pluginSyntaxPrivatePropertyInObject = __nccwpck_require__(50811); -var _pluginSyntaxTopLevelAwait = __nccwpck_require__(53331); -var _pluginTransformAsyncGeneratorFunctions = __nccwpck_require__(45879); -var _pluginTransformClassProperties = __nccwpck_require__(92861); -var _pluginTransformClassStaticBlock = __nccwpck_require__(64379); -var _pluginTransformDynamicImport = __nccwpck_require__(39685); -var _pluginTransformExportNamespaceFrom = __nccwpck_require__(14097); -var _pluginTransformJsonStrings = __nccwpck_require__(54874); -var _pluginTransformLogicalAssignmentOperators = __nccwpck_require__(77347); -var _pluginTransformNullishCoalescingOperator = __nccwpck_require__(27879); -var _pluginTransformNumericSeparator = __nccwpck_require__(10317); -var _pluginTransformObjectRestSpread = __nccwpck_require__(51272); -var _pluginTransformOptionalCatchBinding = __nccwpck_require__(17512); -var _pluginTransformOptionalChaining = __nccwpck_require__(5040); -var _pluginTransformPrivateMethods = __nccwpck_require__(63263); -var _pluginTransformPrivatePropertyInObject = __nccwpck_require__(25172); -var _pluginTransformUnicodePropertyRegex = __nccwpck_require__(17557); -var _pluginTransformAsyncToGenerator = __nccwpck_require__(75891); -var _pluginTransformArrowFunctions = __nccwpck_require__(89787); -var _pluginTransformBlockScopedFunctions = __nccwpck_require__(98022); -var _pluginTransformBlockScoping = __nccwpck_require__(71587); -var _pluginTransformClasses = __nccwpck_require__(47116); -var _pluginTransformComputedProperties = __nccwpck_require__(63418); -var _pluginTransformDestructuring = __nccwpck_require__(79126); -var _pluginTransformDotallRegex = __nccwpck_require__(98561); -var _pluginTransformDuplicateKeys = __nccwpck_require__(36871); -var _pluginTransformExponentiationOperator = __nccwpck_require__(47169); -var _pluginTransformForOf = __nccwpck_require__(75019); -var _pluginTransformFunctionName = __nccwpck_require__(20473); -var _pluginTransformLiterals = __nccwpck_require__(35766); -var _pluginTransformMemberExpressionLiterals = __nccwpck_require__(68557); -var _pluginTransformModulesAmd = __nccwpck_require__(58800); -var _pluginTransformModulesCommonjs = __nccwpck_require__(88266); -var _pluginTransformModulesSystemjs = __nccwpck_require__(63853); -var _pluginTransformModulesUmd = __nccwpck_require__(61201); -var _pluginTransformNamedCapturingGroupsRegex = __nccwpck_require__(22712); -var _pluginTransformNewTarget = __nccwpck_require__(6816); -var _pluginTransformObjectSuper = __nccwpck_require__(7467); -var _pluginTransformParameters = __nccwpck_require__(66912); -var _pluginTransformPropertyLiterals = __nccwpck_require__(98906); -var _pluginTransformRegenerator = __nccwpck_require__(82010); -var _pluginTransformReservedWords = __nccwpck_require__(25294); -var _pluginTransformShorthandProperties = __nccwpck_require__(19245); -var _pluginTransformSpread = __nccwpck_require__(48946); -var _pluginTransformStickyRegex = __nccwpck_require__(89282); -var _pluginTransformTemplateLiterals = __nccwpck_require__(32409); -var _pluginTransformTypeofSymbol = __nccwpck_require__(66074); -var _pluginTransformUnicodeEscapes = __nccwpck_require__(58342); -var _pluginTransformUnicodeRegex = __nccwpck_require__(81041); -var _pluginTransformUnicodeSetsRegex = __nccwpck_require__(54309); -var _transformAsyncArrowsInClass = __nccwpck_require__(88523); -var _transformEdgeDefaultParameters = __nccwpck_require__(19687); -var _transformEdgeFunctionName = __nccwpck_require__(57645); -var _transformTaggedTemplateCaching = __nccwpck_require__(36437); -var _transformSafariBlockShadowing = __nccwpck_require__(99148); -var _transformSafariForShadowing = __nccwpck_require__(83467); -var _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression = __nccwpck_require__(71924); -var _pluginBugfixV8SpreadParametersInOptionalChaining = __nccwpck_require__(85375); -var _default = { - "bugfix/transform-async-arrows-in-class": () => _transformAsyncArrowsInClass, - "bugfix/transform-edge-default-parameters": () => _transformEdgeDefaultParameters, - "bugfix/transform-edge-function-name": () => _transformEdgeFunctionName, - "bugfix/transform-safari-block-shadowing": () => _transformSafariBlockShadowing, - "bugfix/transform-safari-for-shadowing": () => _transformSafariForShadowing, - "bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default, - "bugfix/transform-tagged-template-caching": () => _transformTaggedTemplateCaching, - "bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default, - "syntax-async-generators": () => _pluginSyntaxAsyncGenerators, - "syntax-class-properties": () => _pluginSyntaxClassProperties, - "syntax-class-static-block": () => _pluginSyntaxClassStaticBlock, - "syntax-dynamic-import": () => _pluginSyntaxDynamicImport, - "syntax-export-namespace-from": () => _pluginSyntaxExportNamespaceFrom, - "syntax-import-assertions": () => _pluginSyntaxImportAssertions.default, - "syntax-import-attributes": () => _pluginSyntaxImportAttributes.default, - "syntax-import-meta": () => _pluginSyntaxImportMeta, - "syntax-json-strings": () => _pluginSyntaxJsonStrings, - "syntax-logical-assignment-operators": () => _pluginSyntaxLogicalAssignmentOperators, - "syntax-nullish-coalescing-operator": () => _pluginSyntaxNullishCoalescingOperator, - "syntax-numeric-separator": () => _pluginSyntaxNumericSeparator, - "syntax-object-rest-spread": () => _pluginSyntaxObjectRestSpread, - "syntax-optional-catch-binding": () => _pluginSyntaxOptionalCatchBinding, - "syntax-optional-chaining": () => _pluginSyntaxOptionalChaining, - "syntax-private-property-in-object": () => _pluginSyntaxPrivatePropertyInObject, - "syntax-top-level-await": () => _pluginSyntaxTopLevelAwait, - "syntax-unicode-sets-regex": () => __nccwpck_require__(94308), - "transform-arrow-functions": () => _pluginTransformArrowFunctions.default, - "transform-async-generator-functions": () => _pluginTransformAsyncGeneratorFunctions.default, - "transform-async-to-generator": () => _pluginTransformAsyncToGenerator.default, - "transform-block-scoped-functions": () => _pluginTransformBlockScopedFunctions.default, - "transform-block-scoping": () => _pluginTransformBlockScoping.default, - "transform-class-properties": () => _pluginTransformClassProperties.default, - "transform-class-static-block": () => _pluginTransformClassStaticBlock.default, - "transform-classes": () => _pluginTransformClasses.default, - "transform-computed-properties": () => _pluginTransformComputedProperties.default, - "transform-destructuring": () => _pluginTransformDestructuring.default, - "transform-dotall-regex": () => _pluginTransformDotallRegex.default, - "transform-duplicate-keys": () => _pluginTransformDuplicateKeys.default, - "transform-dynamic-import": () => _pluginTransformDynamicImport.default, - "transform-exponentiation-operator": () => _pluginTransformExponentiationOperator.default, - "transform-export-namespace-from": () => _pluginTransformExportNamespaceFrom.default, - "transform-for-of": () => _pluginTransformForOf.default, - "transform-function-name": () => _pluginTransformFunctionName.default, - "transform-json-strings": () => _pluginTransformJsonStrings.default, - "transform-literals": () => _pluginTransformLiterals.default, - "transform-logical-assignment-operators": () => _pluginTransformLogicalAssignmentOperators.default, - "transform-member-expression-literals": () => _pluginTransformMemberExpressionLiterals.default, - "transform-modules-amd": () => _pluginTransformModulesAmd.default, - "transform-modules-commonjs": () => _pluginTransformModulesCommonjs.default, - "transform-modules-systemjs": () => _pluginTransformModulesSystemjs.default, - "transform-modules-umd": () => _pluginTransformModulesUmd.default, - "transform-named-capturing-groups-regex": () => _pluginTransformNamedCapturingGroupsRegex.default, - "transform-new-target": () => _pluginTransformNewTarget.default, - "transform-nullish-coalescing-operator": () => _pluginTransformNullishCoalescingOperator.default, - "transform-numeric-separator": () => _pluginTransformNumericSeparator.default, - "transform-object-rest-spread": () => _pluginTransformObjectRestSpread.default, - "transform-object-super": () => _pluginTransformObjectSuper.default, - "transform-optional-catch-binding": () => _pluginTransformOptionalCatchBinding.default, - "transform-optional-chaining": () => _pluginTransformOptionalChaining.default, - "transform-parameters": () => _pluginTransformParameters.default, - "transform-private-methods": () => _pluginTransformPrivateMethods.default, - "transform-private-property-in-object": () => _pluginTransformPrivatePropertyInObject.default, - "transform-property-literals": () => _pluginTransformPropertyLiterals.default, - "transform-regenerator": () => _pluginTransformRegenerator.default, - "transform-reserved-words": () => _pluginTransformReservedWords.default, - "transform-shorthand-properties": () => _pluginTransformShorthandProperties.default, - "transform-spread": () => _pluginTransformSpread.default, - "transform-sticky-regex": () => _pluginTransformStickyRegex.default, - "transform-template-literals": () => _pluginTransformTemplateLiterals.default, - "transform-typeof-symbol": () => _pluginTransformTypeofSymbol.default, - "transform-unicode-escapes": () => _pluginTransformUnicodeEscapes.default, - "transform-unicode-property-regex": () => _pluginTransformUnicodePropertyRegex.default, - "transform-unicode-regex": () => _pluginTransformUnicodeRegex.default, - "transform-unicode-sets-regex": () => _pluginTransformUnicodeSetsRegex.default -}; -exports["default"] = _default; -const minVersions = { - "bugfix/transform-safari-id-destructuring-collision-in-function-expression": "7.16.0", - "syntax-import-attributes": "7.22.0", - "transform-class-static-block": "7.12.0", - "transform-private-property-in-object": "7.10.0" -}; -exports.minVersions = minVersions; - -//# sourceMappingURL=available-plugins.js.map - - -/***/ }), - -/***/ 76927: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.logPlugin = void 0; -var _helperCompilationTargets = __nccwpck_require__(77116); -var _plugins = __nccwpck_require__(48590); -const logPlugin = (item, targetVersions, list) => { - const filteredList = (0, _helperCompilationTargets.getInclusionReasons)(item, targetVersions, list); - const support = list[item]; - { - if (item.startsWith("transform-")) { - const proposalName = `proposal-${item.slice(10)}`; - if (proposalName === "proposal-dynamic-import" || Object.prototype.hasOwnProperty.call(_plugins, proposalName)) { - item = proposalName; - } - } - } - if (!support) { - console.log(` ${item}`); - return; - } - let formattedTargets = `{`; - let first = true; - for (const target of Object.keys(filteredList)) { - if (!first) formattedTargets += `,`; - first = false; - formattedTargets += ` ${target}`; - if (support[target]) formattedTargets += ` < ${support[target]}`; - } - formattedTargets += ` }`; - console.log(` ${item} ${formattedTargets}`); -}; -exports.logPlugin = logPlugin; - -//# sourceMappingURL=debug.js.map - - -/***/ }), - -/***/ 33554: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.addProposalSyntaxPlugins = addProposalSyntaxPlugins; -exports.removeUnnecessaryItems = removeUnnecessaryItems; -exports.removeUnsupportedItems = removeUnsupportedItems; -var _semver = __nccwpck_require__(8999); -var _availablePlugins = __nccwpck_require__(61645); -const has = Function.call.bind(Object.hasOwnProperty); -function addProposalSyntaxPlugins(items, proposalSyntaxPlugins) { - proposalSyntaxPlugins.forEach(plugin => { - items.add(plugin); - }); -} -function removeUnnecessaryItems(items, overlapping) { - items.forEach(item => { - var _overlapping$item; - (_overlapping$item = overlapping[item]) == null ? void 0 : _overlapping$item.forEach(name => items.delete(name)); - }); -} -function removeUnsupportedItems(items, babelVersion) { - items.forEach(item => { - if (has(_availablePlugins.minVersions, item) && _semver.lt(babelVersion, _availablePlugins.minVersions[item])) { - items.delete(item); - } - }); -} - -//# sourceMappingURL=filter-items.js.map - - -/***/ }), - -/***/ 34136: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -const defaultExcludesForLooseMode = ["transform-typeof-symbol"]; -function _default({ - loose -}) { - return loose ? defaultExcludesForLooseMode : null; -} - -//# sourceMappingURL=get-option-specific-excludes.js.map - - -/***/ }), - -/***/ 59803: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getPolyfillPlugins = exports.getModulesPluginNames = exports["default"] = void 0; -exports.isPluginRequired = isPluginRequired; -exports.transformIncludesAndExcludes = void 0; -var _semver = __nccwpck_require__(8999); -var _debug = __nccwpck_require__(76927); -var _getOptionSpecificExcludes = __nccwpck_require__(34136); -var _filterItems = __nccwpck_require__(33554); -var _moduleTransformations = __nccwpck_require__(81684); -var _normalizeOptions = __nccwpck_require__(29205); -var _shippedProposals = __nccwpck_require__(4962); -var _pluginsCompatData = __nccwpck_require__(85787); -var _regenerator = __nccwpck_require__(83877); -var _babelPolyfill = __nccwpck_require__(20721); -var _babelPluginPolyfillCorejs = __nccwpck_require__(15951); -var _babelPluginPolyfillCorejs2 = __nccwpck_require__(44727); -var _babelPluginPolyfillRegenerator = __nccwpck_require__(33786); -var _helperCompilationTargets = __nccwpck_require__(77116); -var _availablePlugins = __nccwpck_require__(61645); -var _helperPluginUtils = __nccwpck_require__(36028); -const pluginCoreJS2 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; -const pluginCoreJS3 = _babelPluginPolyfillCorejs2.default || _babelPluginPolyfillCorejs2; -const pluginRegenerator = _babelPluginPolyfillRegenerator.default || _babelPluginPolyfillRegenerator; -function isPluginRequired(targets, support) { - return (0, _helperCompilationTargets.isRequired)("fake-name", targets, { - compatData: { - "fake-name": support - } - }); -} -function filterStageFromList(list, stageList) { - return Object.keys(list).reduce((result, item) => { - if (!stageList.has(item)) { - result[item] = list[item]; - } - return result; - }, {}); -} -const pluginLists = { - withProposals: { - withoutBugfixes: _pluginsCompatData.plugins, - withBugfixes: Object.assign({}, _pluginsCompatData.plugins, _pluginsCompatData.pluginsBugfixes) - }, - withoutProposals: { - withoutBugfixes: filterStageFromList(_pluginsCompatData.plugins, _shippedProposals.proposalPlugins), - withBugfixes: filterStageFromList(Object.assign({}, _pluginsCompatData.plugins, _pluginsCompatData.pluginsBugfixes), _shippedProposals.proposalPlugins) - } -}; -function getPluginList(proposals, bugfixes) { - if (proposals) { - if (bugfixes) return pluginLists.withProposals.withBugfixes;else return pluginLists.withProposals.withoutBugfixes; - } else { - if (bugfixes) return pluginLists.withoutProposals.withBugfixes;else return pluginLists.withoutProposals.withoutBugfixes; - } -} -const getPlugin = pluginName => { - const plugin = _availablePlugins.default[pluginName](); - if (!plugin) { - throw new Error(`Could not find plugin "${pluginName}". Ensure there is an entry in ./available-plugins.js for it.`); - } - return plugin; -}; -const transformIncludesAndExcludes = opts => { - return opts.reduce((result, opt) => { - const target = opt.match(/^(es|es6|es7|esnext|web)\./) ? "builtIns" : "plugins"; - result[target].add(opt); - return result; - }, { - all: opts, - plugins: new Set(), - builtIns: new Set() - }); -}; -exports.transformIncludesAndExcludes = transformIncludesAndExcludes; -const getModulesPluginNames = ({ - modules, - transformations, - shouldTransformESM, - shouldTransformDynamicImport, - shouldTransformExportNamespaceFrom, - shouldParseTopLevelAwait -}) => { - const modulesPluginNames = []; - if (modules !== false && transformations[modules]) { - if (shouldTransformESM) { - modulesPluginNames.push(transformations[modules]); - } - if (shouldTransformDynamicImport && shouldTransformESM && modules !== "umd") { - modulesPluginNames.push("transform-dynamic-import"); - } else { - if (shouldTransformDynamicImport) { - console.warn("Dynamic import can only be supported when transforming ES modules" + " to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled."); - } - modulesPluginNames.push("syntax-dynamic-import"); - } - } else { - modulesPluginNames.push("syntax-dynamic-import"); - } - if (shouldTransformExportNamespaceFrom) { - modulesPluginNames.push("transform-export-namespace-from"); - } else { - modulesPluginNames.push("syntax-export-namespace-from"); - } - if (shouldParseTopLevelAwait) { - modulesPluginNames.push("syntax-top-level-await"); - } - modulesPluginNames.push("syntax-import-meta"); - return modulesPluginNames; -}; -exports.getModulesPluginNames = getModulesPluginNames; -const getPolyfillPlugins = ({ - useBuiltIns, - corejs, - polyfillTargets, - include, - exclude, - proposals, - shippedProposals, - regenerator, - debug -}) => { - const polyfillPlugins = []; - if (useBuiltIns === "usage" || useBuiltIns === "entry") { - const pluginOptions = { - method: `${useBuiltIns}-global`, - version: corejs ? corejs.toString() : undefined, - targets: polyfillTargets, - include, - exclude, - proposals, - shippedProposals, - debug, - "#__secret_key__@babel/preset-env__compatibility": { - noRuntimeName: true - } - }; - if (corejs) { - if (useBuiltIns === "usage") { - if (corejs.major === 2) { - polyfillPlugins.push([pluginCoreJS2, pluginOptions], [_babelPolyfill.default, { - usage: true - }]); - } else { - polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babelPolyfill.default, { - usage: true, - deprecated: true - }]); - } - if (regenerator) { - polyfillPlugins.push([pluginRegenerator, { - method: "usage-global", - debug - }]); - } - } else { - if (corejs.major === 2) { - polyfillPlugins.push([_babelPolyfill.default, { - regenerator - }], [pluginCoreJS2, pluginOptions]); - } else { - polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babelPolyfill.default, { - deprecated: true - }]); - if (!regenerator) { - polyfillPlugins.push([_regenerator.default, pluginOptions]); - } - } - } - } - } - return polyfillPlugins; -}; -exports.getPolyfillPlugins = getPolyfillPlugins; -function getLocalTargets(optionsTargets, ignoreBrowserslistConfig, configPath, browserslistEnv) { - if (optionsTargets != null && optionsTargets.esmodules && optionsTargets.browsers) { - console.warn(` -@babel/preset-env: esmodules and browsers targets have been specified together. -\`browsers\` target, \`${optionsTargets.browsers.toString()}\` will be ignored. -`); - } - return (0, _helperCompilationTargets.default)(optionsTargets, { - ignoreBrowserslistConfig, - configPath, - browserslistEnv - }); -} -function supportsStaticESM(caller) { - return !!(caller != null && caller.supportsStaticESM); -} -function supportsDynamicImport(caller) { - return !!(caller != null && caller.supportsDynamicImport); -} -function supportsExportNamespaceFrom(caller) { - return !!(caller != null && caller.supportsExportNamespaceFrom); -} -function supportsTopLevelAwait(caller) { - return !!(caller != null && caller.supportsTopLevelAwait); -} -var _default = (0, _helperPluginUtils.declarePreset)((api, opts) => { - api.assertVersion(7); - const babelTargets = api.targets(); - const { - bugfixes, - configPath, - debug, - exclude: optionsExclude, - forceAllTransforms, - ignoreBrowserslistConfig, - include: optionsInclude, - loose, - modules, - shippedProposals, - spec, - targets: optionsTargets, - useBuiltIns, - corejs: { - version: corejs, - proposals - }, - browserslistEnv - } = (0, _normalizeOptions.default)(opts); - let targets = babelTargets; - if (_semver.lt(api.version, "7.13.0") || opts.targets || opts.configPath || opts.browserslistEnv || opts.ignoreBrowserslistConfig) { - { - var hasUglifyTarget = false; - if (optionsTargets != null && optionsTargets.uglify) { - hasUglifyTarget = true; - delete optionsTargets.uglify; - console.warn(` -The uglify target has been deprecated. Set the top level -option \`forceAllTransforms: true\` instead. -`); - } - } - targets = getLocalTargets(optionsTargets, ignoreBrowserslistConfig, configPath, browserslistEnv); - } - const transformTargets = forceAllTransforms || hasUglifyTarget ? {} : targets; - const include = transformIncludesAndExcludes(optionsInclude); - const exclude = transformIncludesAndExcludes(optionsExclude); - const compatData = getPluginList(shippedProposals, bugfixes); - const shouldSkipExportNamespaceFrom = modules === "auto" && (api.caller == null ? void 0 : api.caller(supportsExportNamespaceFrom)) || modules === false && !(0, _helperCompilationTargets.isRequired)("transform-export-namespace-from", transformTargets, { - compatData, - includes: include.plugins, - excludes: exclude.plugins - }); - const modulesPluginNames = getModulesPluginNames({ - modules, - transformations: _moduleTransformations.default, - shouldTransformESM: modules !== "auto" || !(api.caller != null && api.caller(supportsStaticESM)), - shouldTransformDynamicImport: modules !== "auto" || !(api.caller != null && api.caller(supportsDynamicImport)), - shouldTransformExportNamespaceFrom: !shouldSkipExportNamespaceFrom, - shouldParseTopLevelAwait: !api.caller || api.caller(supportsTopLevelAwait) - }); - const pluginNames = (0, _helperCompilationTargets.filterItems)(compatData, include.plugins, exclude.plugins, transformTargets, modulesPluginNames, (0, _getOptionSpecificExcludes.default)({ - loose - }), _shippedProposals.pluginSyntaxMap); - if (shippedProposals) { - (0, _filterItems.addProposalSyntaxPlugins)(pluginNames, _shippedProposals.proposalSyntaxPlugins); - } - (0, _filterItems.removeUnsupportedItems)(pluginNames, api.version); - (0, _filterItems.removeUnnecessaryItems)(pluginNames, _pluginsCompatData.overlappingPlugins); - const polyfillPlugins = getPolyfillPlugins({ - useBuiltIns, - corejs, - polyfillTargets: targets, - include: include.builtIns, - exclude: exclude.builtIns, - proposals, - shippedProposals, - regenerator: pluginNames.has("transform-regenerator"), - debug - }); - const pluginUseBuiltIns = useBuiltIns !== false; - const plugins = Array.from(pluginNames).map(pluginName => { - if (pluginName === "transform-class-properties" || pluginName === "transform-private-methods" || pluginName === "transform-private-property-in-object") { - return [getPlugin(pluginName), { - loose: loose ? "#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error" : "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error" - }]; - } - if (pluginName === "syntax-import-attributes") { - return [getPlugin(pluginName), { - deprecatedAssertSyntax: true - }]; - } - return [getPlugin(pluginName), { - spec, - loose, - useBuiltIns: pluginUseBuiltIns - }]; - }).concat(polyfillPlugins); - if (debug) { - console.log("@babel/preset-env: `DEBUG` option"); - console.log("\nUsing targets:"); - console.log(JSON.stringify((0, _helperCompilationTargets.prettifyTargets)(targets), null, 2)); - console.log(`\nUsing modules transform: ${modules.toString()}`); - console.log("\nUsing plugins:"); - pluginNames.forEach(pluginName => { - (0, _debug.logPlugin)(pluginName, targets, compatData); - }); - if (!useBuiltIns) { - console.log("\nUsing polyfills: No polyfills were added, since the `useBuiltIns` option was not set."); - } - } - return { - plugins - }; -}); -exports["default"] = _default; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 81684: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _default = { - auto: "transform-modules-commonjs", - amd: "transform-modules-amd", - commonjs: "transform-modules-commonjs", - cjs: "transform-modules-commonjs", - systemjs: "transform-modules-systemjs", - umd: "transform-modules-umd" -}; -exports["default"] = _default; - -//# sourceMappingURL=module-transformations.js.map - - -/***/ }), - -/***/ 29205: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.checkDuplicateIncludeExcludes = void 0; -exports["default"] = normalizeOptions; -exports.normalizeCoreJSOption = normalizeCoreJSOption; -exports.validateUseBuiltInsOption = exports.validateModulesOption = exports.normalizePluginName = void 0; -var _semver = __nccwpck_require__(8999); -var _corejs2BuiltIns = __nccwpck_require__(55368); -var _coreJsCompat = __nccwpck_require__(73220); -var _pluginsCompatData = __nccwpck_require__(85787); -var _moduleTransformations = __nccwpck_require__(81684); -var _options = __nccwpck_require__(66397); -var _helperValidatorOption = __nccwpck_require__(97645); -const corejs2DefaultWebIncludes = ["web.timers", "web.immediate", "web.dom.iterable"]; -const v = new _helperValidatorOption.OptionValidator("@babel/preset-env"); -const allPluginsList = Object.keys(_pluginsCompatData.plugins); -const modulePlugins = ["transform-dynamic-import", ...Object.keys(_moduleTransformations.default).map(m => _moduleTransformations.default[m])]; -const getValidIncludesAndExcludes = (type, corejs) => Array.from(new Set([...allPluginsList, ...(type === "exclude" ? modulePlugins : []), ...(corejs ? corejs == 2 ? [...Object.keys(_corejs2BuiltIns), ...corejs2DefaultWebIncludes] : Object.keys(_coreJsCompat) : [])])); -function flatMap(array, fn) { - return Array.prototype.concat.apply([], array.map(fn)); -} -const normalizePluginName = plugin => plugin.replace(/^(@babel\/|babel-)(plugin-)?/, ""); -exports.normalizePluginName = normalizePluginName; -const expandIncludesAndExcludes = (filterList = [], type, corejs) => { - if (filterList.length === 0) return []; - const filterableItems = getValidIncludesAndExcludes(type, corejs); - const invalidFilters = []; - const selectedPlugins = flatMap(filterList, filter => { - let re; - if (typeof filter === "string") { - try { - re = new RegExp(`^${normalizePluginName(filter)}$`); - } catch (e) { - invalidFilters.push(filter); - return []; - } - } else { - re = filter; - } - const items = filterableItems.filter(item => { - return re.test(item) || re.test(item.replace(/^transform-/, "proposal-")); - }); - if (items.length === 0) invalidFilters.push(filter); - return items; - }); - v.invariant(invalidFilters.length === 0, `The plugins/built-ins '${invalidFilters.join(", ")}' passed to the '${type}' option are not - valid. Please check data/[plugin-features|built-in-features].js in babel-preset-env`); - return selectedPlugins; -}; -const checkDuplicateIncludeExcludes = (include = [], exclude = []) => { - const duplicates = include.filter(opt => exclude.indexOf(opt) >= 0); - v.invariant(duplicates.length === 0, `The plugins/built-ins '${duplicates.join(", ")}' were found in both the "include" and - "exclude" options.`); -}; -exports.checkDuplicateIncludeExcludes = checkDuplicateIncludeExcludes; -const normalizeTargets = targets => { - if (typeof targets === "string" || Array.isArray(targets)) { - return { - browsers: targets - }; - } - return Object.assign({}, targets); -}; -const validateModulesOption = (modulesOpt = _options.ModulesOption.auto) => { - v.invariant(_options.ModulesOption[modulesOpt.toString()] || modulesOpt === _options.ModulesOption.false, `The 'modules' option must be one of \n` + ` - 'false' to indicate no module processing\n` + ` - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs'` + ` - 'auto' (default) which will automatically select 'false' if the current\n` + ` process is known to support ES module syntax, or "commonjs" otherwise\n`); - return modulesOpt; -}; -exports.validateModulesOption = validateModulesOption; -const validateUseBuiltInsOption = (builtInsOpt = false) => { - v.invariant(_options.UseBuiltInsOption[builtInsOpt.toString()] || builtInsOpt === _options.UseBuiltInsOption.false, `The 'useBuiltIns' option must be either - 'false' (default) to indicate no polyfill, - '"entry"' to indicate replacing the entry polyfill, or - '"usage"' to import only used polyfills per file`); - return builtInsOpt; -}; -exports.validateUseBuiltInsOption = validateUseBuiltInsOption; -function normalizeCoreJSOption(corejs, useBuiltIns) { - let proposals = false; - let rawVersion; - if (useBuiltIns && corejs === undefined) { - rawVersion = 2; - console.warn("\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a " + "core-js version. Currently, we assume version 2.x when no version " + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + "you are using via the `corejs` option.\n" + "\nYou should also be sure that the version you pass to the `corejs` " + "option matches the version specified in your `package.json`'s " + "`dependencies` section. If it doesn't, you need to run one of the " + "following commands:\n\n" + " npm install --save core-js@2 npm install --save core-js@3\n" + " yarn add core-js@2 yarn add core-js@3\n\n" + "More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\n" + "More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs"); - } else if (typeof corejs === "object" && corejs !== null) { - rawVersion = corejs.version; - proposals = Boolean(corejs.proposals); - } else { - rawVersion = corejs; - } - const version = rawVersion ? _semver.coerce(String(rawVersion)) : false; - if (!useBuiltIns && version) { - console.warn("\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n"); - } - if (useBuiltIns && (!version || version.major < 2 || version.major > 3)) { - throw new RangeError("Invalid Option: The version passed to `corejs` is invalid. Currently, " + "only core-js@2 and core-js@3 are supported."); - } - return { - version, - proposals - }; -} -function normalizeOptions(opts) { - v.validateTopLevelOptions(opts, _options.TopLevelOptions); - const useBuiltIns = validateUseBuiltInsOption(opts.useBuiltIns); - const corejs = normalizeCoreJSOption(opts.corejs, useBuiltIns); - const include = expandIncludesAndExcludes(opts.include, _options.TopLevelOptions.include, !!corejs.version && corejs.version.major); - const exclude = expandIncludesAndExcludes(opts.exclude, _options.TopLevelOptions.exclude, !!corejs.version && corejs.version.major); - checkDuplicateIncludeExcludes(include, exclude); - return { - bugfixes: v.validateBooleanOption(_options.TopLevelOptions.bugfixes, opts.bugfixes, false), - configPath: v.validateStringOption(_options.TopLevelOptions.configPath, opts.configPath, process.cwd()), - corejs, - debug: v.validateBooleanOption(_options.TopLevelOptions.debug, opts.debug, false), - include, - exclude, - forceAllTransforms: v.validateBooleanOption(_options.TopLevelOptions.forceAllTransforms, opts.forceAllTransforms, false), - ignoreBrowserslistConfig: v.validateBooleanOption(_options.TopLevelOptions.ignoreBrowserslistConfig, opts.ignoreBrowserslistConfig, false), - loose: v.validateBooleanOption(_options.TopLevelOptions.loose, opts.loose), - modules: validateModulesOption(opts.modules), - shippedProposals: v.validateBooleanOption(_options.TopLevelOptions.shippedProposals, opts.shippedProposals, false), - spec: v.validateBooleanOption(_options.TopLevelOptions.spec, opts.spec, false), - targets: normalizeTargets(opts.targets), - useBuiltIns: useBuiltIns, - browserslistEnv: v.validateStringOption(_options.TopLevelOptions.browserslistEnv, opts.browserslistEnv) - }; -} - -//# sourceMappingURL=normalize-options.js.map - - -/***/ }), - -/***/ 66397: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.UseBuiltInsOption = exports.TopLevelOptions = exports.ModulesOption = void 0; -const TopLevelOptions = { - bugfixes: "bugfixes", - configPath: "configPath", - corejs: "corejs", - debug: "debug", - exclude: "exclude", - forceAllTransforms: "forceAllTransforms", - ignoreBrowserslistConfig: "ignoreBrowserslistConfig", - include: "include", - loose: "loose", - modules: "modules", - shippedProposals: "shippedProposals", - spec: "spec", - targets: "targets", - useBuiltIns: "useBuiltIns", - browserslistEnv: "browserslistEnv" -}; -exports.TopLevelOptions = TopLevelOptions; -const ModulesOption = { - false: false, - auto: "auto", - amd: "amd", - commonjs: "commonjs", - cjs: "cjs", - systemjs: "systemjs", - umd: "umd" -}; -exports.ModulesOption = ModulesOption; -const UseBuiltInsOption = { - false: false, - entry: "entry", - usage: "usage" -}; -exports.UseBuiltInsOption = UseBuiltInsOption; - -//# sourceMappingURL=options.js.map - - -/***/ }), - -/***/ 85787: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.pluginsBugfixes = exports.plugins = exports.overlappingPlugins = void 0; -var _plugins = __nccwpck_require__(48590); -var _pluginBugfixes = __nccwpck_require__(45611); -var _overlappingPlugins = __nccwpck_require__(48753); -var _availablePlugins = __nccwpck_require__(61645); -const keys = Object.keys; -const plugins = filterAvailable(_plugins); -exports.plugins = plugins; -const pluginsBugfixes = filterAvailable(_pluginBugfixes); -exports.pluginsBugfixes = pluginsBugfixes; -const overlappingPlugins = filterAvailable(_overlappingPlugins); -exports.overlappingPlugins = overlappingPlugins; -overlappingPlugins["syntax-import-attributes"] = ["syntax-import-assertions"]; -function filterAvailable(data) { - const result = {}; - for (const plugin of keys(data)) { - if (Object.hasOwnProperty.call(_availablePlugins.default, plugin)) { - result[plugin] = data[plugin]; - } - } - return result; -} - -//# sourceMappingURL=plugins-compat-data.js.map - - -/***/ }), - -/***/ 20721: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _utils = __nccwpck_require__(77350); -const BABEL_POLYFILL_DEPRECATION = ` - \`@babel/polyfill\` is deprecated. Please, use required parts of \`core-js\` - and \`regenerator-runtime/runtime\` separately`; -const NO_DIRECT_POLYFILL_IMPORT = ` - When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed. - Please remove the direct import of \`SPECIFIER\` or use \`useBuiltIns: 'entry'\` instead.`; -function _default({ - template -}, { - regenerator, - deprecated, - usage -}) { - return { - name: "preset-env/replace-babel-polyfill", - visitor: { - ImportDeclaration(path) { - const src = (0, _utils.getImportSource)(path); - if (usage && (0, _utils.isPolyfillSource)(src)) { - console.warn(NO_DIRECT_POLYFILL_IMPORT.replace("SPECIFIER", src)); - if (!deprecated) path.remove(); - } else if (src === "@babel/polyfill") { - if (deprecated) { - console.warn(BABEL_POLYFILL_DEPRECATION); - } else if (regenerator) { - path.replaceWithMultiple(template.ast` - import "core-js"; - import "regenerator-runtime/runtime.js"; - `); - } else { - path.replaceWith(template.ast` - import "core-js"; - `); - } - } - }, - Program(path) { - path.get("body").forEach(bodyPath => { - const src = (0, _utils.getRequireSource)(bodyPath); - if (usage && (0, _utils.isPolyfillSource)(src)) { - console.warn(NO_DIRECT_POLYFILL_IMPORT.replace("SPECIFIER", src)); - if (!deprecated) bodyPath.remove(); - } else if (src === "@babel/polyfill") { - if (deprecated) { - console.warn(BABEL_POLYFILL_DEPRECATION); - } else if (regenerator) { - bodyPath.replaceWithMultiple(template.ast` - require("core-js"); - require("regenerator-runtime/runtime.js"); - `); - } else { - bodyPath.replaceWith(template.ast` - require("core-js"); - `); - } - } - }); - } - } - }; -} - -//# sourceMappingURL=babel-polyfill.js.map - - -/***/ }), - -/***/ 83877: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _utils = __nccwpck_require__(77350); -function isRegeneratorSource(source) { - return source === "regenerator-runtime/runtime" || source === "regenerator-runtime/runtime.js"; -} -function _default() { - const visitor = { - ImportDeclaration(path) { - if (isRegeneratorSource((0, _utils.getImportSource)(path))) { - this.regeneratorImportExcluded = true; - path.remove(); - } - }, - Program(path) { - path.get("body").forEach(bodyPath => { - if (isRegeneratorSource((0, _utils.getRequireSource)(bodyPath))) { - this.regeneratorImportExcluded = true; - bodyPath.remove(); - } - }); - } - }; - return { - name: "preset-env/remove-regenerator", - visitor, - pre() { - this.regeneratorImportExcluded = false; - }, - post() { - if (this.opts.debug && this.regeneratorImportExcluded) { - let filename = this.file.opts.filename; - if (process.env.BABEL_ENV === "test") { - filename = filename.replace(/\\/g, "/"); - } - console.log(`\n[${filename}] Based on your targets, regenerator-runtime import excluded.`); - } - } - }; -} - -//# sourceMappingURL=regenerator.js.map - - -/***/ }), - -/***/ 77350: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getImportSource = getImportSource; -exports.getRequireSource = getRequireSource; -exports.isPolyfillSource = isPolyfillSource; -var _t = __nccwpck_require__(53501); -const { - isCallExpression, - isExpressionStatement, - isIdentifier, - isStringLiteral -} = _t; -function getImportSource({ - node -}) { - if (node.specifiers.length === 0) return node.source.value; -} -function getRequireSource({ - node -}) { - if (!isExpressionStatement(node)) return; - const { - expression - } = node; - if (isCallExpression(expression) && isIdentifier(expression.callee) && expression.callee.name === "require" && expression.arguments.length === 1 && isStringLiteral(expression.arguments[0])) { - return expression.arguments[0].value; - } -} -function isPolyfillSource(source) { - return source === "@babel/polyfill" || source === "core-js"; -} - -//# sourceMappingURL=utils.js.map - - -/***/ }), - -/***/ 4962: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.proposalSyntaxPlugins = exports.proposalPlugins = exports.pluginSyntaxMap = void 0; -const proposalPlugins = new Set(); -exports.proposalPlugins = proposalPlugins; -const proposalSyntaxPlugins = ["syntax-import-assertions", "syntax-import-attributes"]; -exports.proposalSyntaxPlugins = proposalSyntaxPlugins; -const pluginSyntaxObject = { - "transform-async-generator-functions": "syntax-async-generators", - "transform-class-properties": "syntax-class-properties", - "transform-class-static-block": "syntax-class-static-block", - "transform-json-strings": "syntax-json-strings", - "transform-nullish-coalescing-operator": "syntax-nullish-coalescing-operator", - "transform-numeric-separator": "syntax-numeric-separator", - "transform-object-rest-spread": "syntax-object-rest-spread", - "transform-optional-catch-binding": "syntax-optional-catch-binding", - "transform-optional-chaining": "syntax-optional-chaining", - "transform-private-methods": "syntax-class-properties", - "transform-private-property-in-object": "syntax-private-property-in-object", - "transform-unicode-property-regex": null -}; -const pluginSyntaxEntries = Object.keys(pluginSyntaxObject).map(function (key) { - return [key, pluginSyntaxObject[key]]; -}); -const pluginSyntaxMap = new Map(pluginSyntaxEntries); -exports.pluginSyntaxMap = pluginSyntaxMap; - -//# sourceMappingURL=shipped-proposals.js.map - - -/***/ }), - -/***/ 82291: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(36028); -var transformReactJSX = __nccwpck_require__(12261); -var transformReactJSXDevelopment = __nccwpck_require__(62726); -var transformReactDisplayName = __nccwpck_require__(16816); -var transformReactPure = __nccwpck_require__(58284); -var helperValidatorOption = __nccwpck_require__(97645); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var transformReactJSX__default = /*#__PURE__*/_interopDefaultLegacy(transformReactJSX); -var transformReactJSXDevelopment__default = /*#__PURE__*/_interopDefaultLegacy(transformReactJSXDevelopment); -var transformReactDisplayName__default = /*#__PURE__*/_interopDefaultLegacy(transformReactDisplayName); -var transformReactPure__default = /*#__PURE__*/_interopDefaultLegacy(transformReactPure); - -new helperValidatorOption.OptionValidator("@babel/preset-react"); -function normalizeOptions(options = {}) { - { - let { - pragma, - pragmaFrag - } = options; - const { - pure, - throwIfNamespace = true, - runtime = "classic", - importSource, - useBuiltIns, - useSpread - } = options; - if (runtime === "classic") { - pragma = pragma || "React.createElement"; - pragmaFrag = pragmaFrag || "React.Fragment"; - } - const development = !!options.development; - return { - development, - importSource, - pragma, - pragmaFrag, - pure, - runtime, - throwIfNamespace, - useBuiltIns, - useSpread - }; - } -} - -var index = helperPluginUtils.declarePreset((api, opts) => { - api.assertVersion(7); - const { - development, - importSource, - pragma, - pragmaFrag, - pure, - runtime, - throwIfNamespace - } = normalizeOptions(opts); - return { - plugins: [[development ? transformReactJSXDevelopment__default["default"] : transformReactJSX__default["default"], { - importSource, - pragma, - pragmaFrag, - runtime, - throwIfNamespace, - pure, - useBuiltIns: !!opts.useBuiltIns, - useSpread: opts.useSpread - }], transformReactDisplayName__default["default"], pure !== false && transformReactPure__default["default"]].filter(Boolean) - }; -}); - -exports["default"] = index; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 84617: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(90151); -var transformTypeScript = __nccwpck_require__(55746); -var helperValidatorOption = __nccwpck_require__(72790); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var transformTypeScript__default = /*#__PURE__*/_interopDefaultLegacy(transformTypeScript); - -const v = new helperValidatorOption.OptionValidator("@babel/preset-typescript"); -function normalizeOptions(options = {}) { - let { - allowNamespaces = true, - jsxPragma, - onlyRemoveTypeImports - } = options; - const TopLevelOptions = { - allExtensions: "allExtensions", - allowNamespaces: "allowNamespaces", - disallowAmbiguousJSXLike: "disallowAmbiguousJSXLike", - isTSX: "isTSX", - jsxPragma: "jsxPragma", - jsxPragmaFrag: "jsxPragmaFrag", - onlyRemoveTypeImports: "onlyRemoveTypeImports", - optimizeConstEnums: "optimizeConstEnums" - }; - const jsxPragmaFrag = v.validateStringOption(TopLevelOptions.jsxPragmaFrag, options.jsxPragmaFrag, "React.Fragment"); - const allExtensions = v.validateBooleanOption(TopLevelOptions.allExtensions, options.allExtensions, false); - const isTSX = v.validateBooleanOption(TopLevelOptions.isTSX, options.isTSX, false); - if (isTSX) { - v.invariant(allExtensions, "isTSX:true requires allExtensions:true"); - } - const disallowAmbiguousJSXLike = v.validateBooleanOption(TopLevelOptions.disallowAmbiguousJSXLike, options.disallowAmbiguousJSXLike, false); - if (disallowAmbiguousJSXLike) { - v.invariant(allExtensions, "disallowAmbiguousJSXLike:true requires allExtensions:true"); - } - const optimizeConstEnums = v.validateBooleanOption(TopLevelOptions.optimizeConstEnums, options.optimizeConstEnums, false); - return { - allExtensions, - allowNamespaces, - disallowAmbiguousJSXLike, - isTSX, - jsxPragma, - jsxPragmaFrag, - onlyRemoveTypeImports, - optimizeConstEnums - }; -} - -var index = helperPluginUtils.declarePreset((api, opts) => { - api.assertVersion(7); - const { - allExtensions, - allowNamespaces, - disallowAmbiguousJSXLike, - isTSX, - jsxPragma, - jsxPragmaFrag, - onlyRemoveTypeImports, - optimizeConstEnums - } = normalizeOptions(opts); - const pluginOptions = (isTSX, disallowAmbiguousJSXLike) => ({ - allowDeclareFields: opts.allowDeclareFields, - allowNamespaces, - disallowAmbiguousJSXLike, - isTSX, - jsxPragma, - jsxPragmaFrag, - onlyRemoveTypeImports, - optimizeConstEnums - }); - return { - overrides: allExtensions ? [{ - plugins: [[transformTypeScript__default["default"], pluginOptions(isTSX, disallowAmbiguousJSXLike)]] - }] : [{ - test: /\.ts$/, - plugins: [[transformTypeScript__default["default"], pluginOptions(false, false)]] - }, { - test: /\.mts$/, - sourceType: "module", - plugins: [[transformTypeScript__default["default"], pluginOptions(false, true)]] - }, { - test: /\.cts$/, - sourceType: "script", - plugins: [[transformTypeScript__default["default"], pluginOptions(false, true)]] - }, { - test: /\.tsx$/, - plugins: [[transformTypeScript__default["default"], pluginOptions(true, false)]] - }] - }; -}); - -exports["default"] = index; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 10188: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var helperPluginUtils = __nccwpck_require__(36028); -var transformTypeScript = __nccwpck_require__(11469); -__nccwpck_require__(36733); -var transformModulesCommonJS = __nccwpck_require__(88266); -var helperValidatorOption = __nccwpck_require__(97645); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var transformTypeScript__default = /*#__PURE__*/_interopDefaultLegacy(transformTypeScript); -var transformModulesCommonJS__default = /*#__PURE__*/_interopDefaultLegacy(transformModulesCommonJS); - -const v = new helperValidatorOption.OptionValidator("@babel/preset-typescript"); -function normalizeOptions(options = {}) { - let { - allowNamespaces = true, - jsxPragma, - onlyRemoveTypeImports - } = options; - const TopLevelOptions = { - ignoreExtensions: "ignoreExtensions", - allowNamespaces: "allowNamespaces", - disallowAmbiguousJSXLike: "disallowAmbiguousJSXLike", - jsxPragma: "jsxPragma", - jsxPragmaFrag: "jsxPragmaFrag", - onlyRemoveTypeImports: "onlyRemoveTypeImports", - optimizeConstEnums: "optimizeConstEnums", - allExtensions: "allExtensions", - isTSX: "isTSX" - }; - const jsxPragmaFrag = v.validateStringOption(TopLevelOptions.jsxPragmaFrag, options.jsxPragmaFrag, "React.Fragment"); - { - var allExtensions = v.validateBooleanOption(TopLevelOptions.allExtensions, options.allExtensions, false); - var isTSX = v.validateBooleanOption(TopLevelOptions.isTSX, options.isTSX, false); - if (isTSX) { - v.invariant(allExtensions, "isTSX:true requires allExtensions:true"); - } - } - const ignoreExtensions = v.validateBooleanOption(TopLevelOptions.ignoreExtensions, options.ignoreExtensions, false); - const disallowAmbiguousJSXLike = v.validateBooleanOption(TopLevelOptions.disallowAmbiguousJSXLike, options.disallowAmbiguousJSXLike, false); - if (disallowAmbiguousJSXLike) { - { - v.invariant(allExtensions, "disallowAmbiguousJSXLike:true requires allExtensions:true"); - } - } - const optimizeConstEnums = v.validateBooleanOption(TopLevelOptions.optimizeConstEnums, options.optimizeConstEnums, false); - const normalized = { - ignoreExtensions, - allowNamespaces, - disallowAmbiguousJSXLike, - jsxPragma, - jsxPragmaFrag, - onlyRemoveTypeImports, - optimizeConstEnums - }; - { - normalized.allExtensions = allExtensions; - normalized.isTSX = isTSX; - } - return normalized; -} - -var index = helperPluginUtils.declarePreset((api, opts) => { - api.assertVersion(7); - const { - allExtensions, - ignoreExtensions, - allowNamespaces, - disallowAmbiguousJSXLike, - isTSX, - jsxPragma, - jsxPragmaFrag, - onlyRemoveTypeImports, - optimizeConstEnums - } = normalizeOptions(opts); - const pluginOptions = disallowAmbiguousJSXLike => ({ - allowDeclareFields: opts.allowDeclareFields, - allowNamespaces, - disallowAmbiguousJSXLike, - jsxPragma, - jsxPragmaFrag, - onlyRemoveTypeImports, - optimizeConstEnums - }); - const getPlugins = (isTSX, disallowAmbiguousJSXLike) => { - { - return [[transformTypeScript__default["default"], Object.assign({ - isTSX - }, pluginOptions(disallowAmbiguousJSXLike))]]; - } - }; - const disableExtensionDetect = allExtensions || ignoreExtensions; - return { - overrides: disableExtensionDetect ? [{ - plugins: getPlugins(isTSX, disallowAmbiguousJSXLike) - }] : [{ - test: /\.ts$/, - plugins: getPlugins(false, false) - }, { - test: /\.mts$/, - sourceType: "module", - plugins: getPlugins(false, true) - }, { - test: /\.cts$/, - sourceType: "unambiguous", - plugins: [[transformModulesCommonJS__default["default"], { - allowTopLevelThis: true - }], [transformTypeScript__default["default"], pluginOptions(true)]] - }, { - test: /\.tsx$/, - plugins: getPlugins(true, false) - }] - }; -}); - -exports["default"] = index; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 97891: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -module.exports = __nccwpck_require__(52088); - -//# sourceMappingURL=cache.js.map - - -/***/ }), - -/***/ 85000: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -const { - addHook -} = __nccwpck_require__(57251); -const sourceMapSupport = __nccwpck_require__(16754); -let piratesRevert; -const maps = Object.create(null); -function installSourceMapSupport() { - installSourceMapSupport = () => {}; - sourceMapSupport.install({ - handleUncaughtExceptions: false, - environment: "node", - retrieveSourceMap(filename) { - const map = maps == null ? void 0 : maps[filename]; - if (map) { - return { - url: null, - map: map - }; - } else { - return null; - } - } - }); -} -{ - const Module = __nccwpck_require__(98188); - let compiling = false; - const internalModuleCache = Module._cache; - var compileBabel7 = function compileBabel7(client, code, filename) { - if (!client.isLocalClient) return compile(client, code, filename); - if (compiling) return code; - const globalModuleCache = Module._cache; - try { - compiling = true; - Module._cache = internalModuleCache; - return compile(client, code, filename); - } finally { - compiling = false; - Module._cache = globalModuleCache; - } - }; -} -function compile(client, inputCode, filename) { - const result = client.transform(inputCode, filename); - if (result === null) return inputCode; - const { - code, - map - } = result; - if (map) { - maps[filename] = map; - installSourceMapSupport(); - } - return code; -} -exports.register = function register(client, opts = {}) { - var _opts$extensions; - if (piratesRevert) piratesRevert(); - piratesRevert = addHook(compileBabel7.bind(null, client), { - exts: (_opts$extensions = opts.extensions) != null ? _opts$extensions : client.getDefaultExtensions(), - ignoreNodeModules: false - }); - client.setOptions(opts); -}; -exports.revert = function revert() { - if (piratesRevert) piratesRevert(); -}; - -//# sourceMappingURL=hook.js.map - - -/***/ }), - -/***/ 88738: -/***/ (function(module, exports, __nccwpck_require__) { - -{ - exports = module.exports = function (...args) { - return register(...args); - }; - exports.__esModule = true; - const node = __nccwpck_require__(68711); - const register = node.default; - Object.assign(exports, node); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 25391: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; -var __webpack_unused_export__; - -const envVarName = "___INTERNAL___IS_INSIDE_BABEL_REGISTER_WORKER___"; -const envVarValue = "yes_I_am"; -exports.v = env => Object.assign({}, env, { - [envVarName]: envVarValue -}); -__webpack_unused_export__ = process.env[envVarName] === envVarValue; - -//# sourceMappingURL=is-in-register-worker.js.map - - -/***/ }), - -/***/ 58491: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - - -const hook = __nccwpck_require__(85000); -const { - LocalClient -} = __nccwpck_require__(93460); -const client = new LocalClient(); -function register(opts = {}) { - return hook.register(client, Object.assign({}, opts)); -} -module.exports = Object.assign(register, { - revert: hook.revert, - default: register -}); - -//# sourceMappingURL=node.js.map - - -/***/ }), - -/***/ 68711: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -const Module = __nccwpck_require__(98188); -const globalModuleCache = Module._cache; -const internalModuleCache = Object.create(null); -Module._cache = internalModuleCache; -const node = __nccwpck_require__(58491); -Module._cache = globalModuleCache; -const smsPath = __nccwpck_require__.ab + "source-map-support.js"; -globalModuleCache[__nccwpck_require__.ab + "source-map-support.js"] = internalModuleCache[__nccwpck_require__.ab + "source-map-support.js"]; -const register = node.default; -register(); -module.exports = node; - -//# sourceMappingURL=nodeWrapper.js.map - - -/***/ }), - -/***/ 93460: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -var _class, _worker, _signal, _markInRegisterWorker, _worker_threads; -function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { _classCheckPrivateStaticAccess(receiver, classConstructor); _classCheckPrivateStaticFieldDescriptor(descriptor, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; } -function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { _classCheckPrivateStaticAccess(receiver, classConstructor); _classCheckPrivateStaticFieldDescriptor(descriptor, "get"); return _classApplyDescriptorGet(receiver, descriptor); } -function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { if (descriptor === undefined) { throw new TypeError("attempted to " + action + " private static field before its declaration"); } } -function _classCheckPrivateStaticAccess(receiver, classConstructor) { if (receiver !== classConstructor) { throw new TypeError("Private static access of wrong provenance"); } } -function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); } -function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } -function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); } -function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; } -function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; } -function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); } -function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } } -const path = __nccwpck_require__(71017); -const ACTIONS = { - GET_DEFAULT_EXTENSIONS: "GET_DEFAULT_EXTENSIONS", - SET_OPTIONS: "SET_OPTIONS", - TRANSFORM: "TRANSFORM", - TRANSFORM_SYNC: "TRANSFORM_SYNC" -}; -var _send = new WeakMap(); -var _eCache = new WeakMap(); -class Client { - constructor(send) { - _classPrivateFieldInitSpec(this, _send, { - writable: true, - value: void 0 - }); - _classPrivateFieldInitSpec(this, _eCache, { - writable: true, - value: void 0 - }); - _classPrivateFieldSet(this, _send, send); - } - getDefaultExtensions() { - var _classPrivateFieldGet2; - return (_classPrivateFieldGet2 = _classPrivateFieldGet(this, _eCache)) != null ? _classPrivateFieldGet2 : _classPrivateFieldSet(this, _eCache, _classPrivateFieldGet(this, _send).call(this, ACTIONS.GET_DEFAULT_EXTENSIONS, undefined)); - } - setOptions(options) { - return _classPrivateFieldGet(this, _send).call(this, ACTIONS.SET_OPTIONS, options); - } - transform(code, filename) { - return _classPrivateFieldGet(this, _send).call(this, ACTIONS.TRANSFORM, { - code, - filename - }); - } -} -exports.WorkerClient = (_worker = new WeakMap(), _signal = new WeakMap(), (_class = class WorkerClient extends Client { - constructor() { - super((action, payload) => { - _classPrivateFieldGet(this, _signal)[0] = 0; - const subChannel = new (_classStaticPrivateFieldSpecGet(WorkerClient, _class, _worker_threads).MessageChannel)(); - _classPrivateFieldGet(this, _worker).postMessage({ - signal: _classPrivateFieldGet(this, _signal), - port: subChannel.port1, - action, - payload - }, [subChannel.port1]); - Atomics.wait(_classPrivateFieldGet(this, _signal), 0, 0); - const { - message - } = _classStaticPrivateFieldSpecGet(WorkerClient, _class, _worker_threads).receiveMessageOnPort(subChannel.port2); - if (message.error) throw Object.assign(message.error, message.errorData);else return message.result; - }); - _classPrivateFieldInitSpec(this, _worker, { - writable: true, - value: new (_classStaticPrivateFieldSpecGet(WorkerClient, _class, _worker_threads).Worker)(__nccwpck_require__.ab + "index1.js", { - env: _classStaticPrivateFieldSpecGet(WorkerClient, _class, _markInRegisterWorker).call(WorkerClient, process.env) - }) - }); - _classPrivateFieldInitSpec(this, _signal, { - writable: true, - value: new Int32Array(new SharedArrayBuffer(4)) - }); - _classPrivateFieldGet(this, _worker).unref(); - } -}, _markInRegisterWorker = { - get: _get_markInRegisterWorker, - set: void 0 -}, _worker_threads = { - get: _get_worker_threads, - set: void 0 -}, _class)); -function _get_worker_threads() { - return __nccwpck_require__(71267); -} -function _get_markInRegisterWorker() { - return (__nccwpck_require__(25391)/* .markInRegisterWorker */ .v); -} -{ - var _class2, _handleMessage; - exports.LocalClient = (_class2 = class LocalClient extends Client { - constructor() { - var _classStaticPrivateFi; - (_classStaticPrivateFi = _classStaticPrivateFieldSpecGet(LocalClient, _class2, _handleMessage)) != null ? _classStaticPrivateFi : _classStaticPrivateFieldSpecSet(LocalClient, _class2, _handleMessage, __nccwpck_require__(29485)); - super((action, payload) => { - return _classStaticPrivateFieldSpecGet(LocalClient, _class2, _handleMessage).call(LocalClient, action === ACTIONS.TRANSFORM ? ACTIONS.TRANSFORM_SYNC : action, payload); - }); - this.isLocalClient = true; - } - }, _handleMessage = { - writable: true, - value: void 0 - }, _class2); -} - -//# sourceMappingURL=worker-client.js.map - - -/***/ }), - -/***/ 50631: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -const cache = __nccwpck_require__(52088); -function initialize(babel) { - exports.init = null; - exports.version = babel.version; - exports.DEFAULT_EXTENSIONS = babel.DEFAULT_EXTENSIONS; - exports.loadOptionsAsync = babel.loadOptionsAsync; - exports.transformAsync = babel.transformAsync; - exports.getEnv = babel.getEnv; - { - exports.OptionManager = babel.OptionManager; - exports.transformSync = babel.transformSync; - } - cache.initializeCacheFilename(); -} -{ - initialize(__nccwpck_require__(27324)); -} - -//# sourceMappingURL=babel-core.js.map +module.exports = new Map([ + ['General_Category', new Map([ + ['C', 'Other'], + ['Cc', 'Control'], + ['cntrl', 'Control'], + ['Cf', 'Format'], + ['Cn', 'Unassigned'], + ['Co', 'Private_Use'], + ['Cs', 'Surrogate'], + ['L', 'Letter'], + ['LC', 'Cased_Letter'], + ['Ll', 'Lowercase_Letter'], + ['Lm', 'Modifier_Letter'], + ['Lo', 'Other_Letter'], + ['Lt', 'Titlecase_Letter'], + ['Lu', 'Uppercase_Letter'], + ['M', 'Mark'], + ['Combining_Mark', 'Mark'], + ['Mc', 'Spacing_Mark'], + ['Me', 'Enclosing_Mark'], + ['Mn', 'Nonspacing_Mark'], + ['N', 'Number'], + ['Nd', 'Decimal_Number'], + ['digit', 'Decimal_Number'], + ['Nl', 'Letter_Number'], + ['No', 'Other_Number'], + ['P', 'Punctuation'], + ['punct', 'Punctuation'], + ['Pc', 'Connector_Punctuation'], + ['Pd', 'Dash_Punctuation'], + ['Pe', 'Close_Punctuation'], + ['Pf', 'Final_Punctuation'], + ['Pi', 'Initial_Punctuation'], + ['Po', 'Other_Punctuation'], + ['Ps', 'Open_Punctuation'], + ['S', 'Symbol'], + ['Sc', 'Currency_Symbol'], + ['Sk', 'Modifier_Symbol'], + ['Sm', 'Math_Symbol'], + ['So', 'Other_Symbol'], + ['Z', 'Separator'], + ['Zl', 'Line_Separator'], + ['Zp', 'Paragraph_Separator'], + ['Zs', 'Space_Separator'], + ['Other', 'Other'], + ['Control', 'Control'], + ['Format', 'Format'], + ['Unassigned', 'Unassigned'], + ['Private_Use', 'Private_Use'], + ['Surrogate', 'Surrogate'], + ['Letter', 'Letter'], + ['Cased_Letter', 'Cased_Letter'], + ['Lowercase_Letter', 'Lowercase_Letter'], + ['Modifier_Letter', 'Modifier_Letter'], + ['Other_Letter', 'Other_Letter'], + ['Titlecase_Letter', 'Titlecase_Letter'], + ['Uppercase_Letter', 'Uppercase_Letter'], + ['Mark', 'Mark'], + ['Spacing_Mark', 'Spacing_Mark'], + ['Enclosing_Mark', 'Enclosing_Mark'], + ['Nonspacing_Mark', 'Nonspacing_Mark'], + ['Number', 'Number'], + ['Decimal_Number', 'Decimal_Number'], + ['Letter_Number', 'Letter_Number'], + ['Other_Number', 'Other_Number'], + ['Punctuation', 'Punctuation'], + ['Connector_Punctuation', 'Connector_Punctuation'], + ['Dash_Punctuation', 'Dash_Punctuation'], + ['Close_Punctuation', 'Close_Punctuation'], + ['Final_Punctuation', 'Final_Punctuation'], + ['Initial_Punctuation', 'Initial_Punctuation'], + ['Other_Punctuation', 'Other_Punctuation'], + ['Open_Punctuation', 'Open_Punctuation'], + ['Symbol', 'Symbol'], + ['Currency_Symbol', 'Currency_Symbol'], + ['Modifier_Symbol', 'Modifier_Symbol'], + ['Math_Symbol', 'Math_Symbol'], + ['Other_Symbol', 'Other_Symbol'], + ['Separator', 'Separator'], + ['Line_Separator', 'Line_Separator'], + ['Paragraph_Separator', 'Paragraph_Separator'], + ['Space_Separator', 'Space_Separator'] + ])], + ['Script', new Map([ + ['Adlm', 'Adlam'], + ['Aghb', 'Caucasian_Albanian'], + ['Ahom', 'Ahom'], + ['Arab', 'Arabic'], + ['Armi', 'Imperial_Aramaic'], + ['Armn', 'Armenian'], + ['Avst', 'Avestan'], + ['Bali', 'Balinese'], + ['Bamu', 'Bamum'], + ['Bass', 'Bassa_Vah'], + ['Batk', 'Batak'], + ['Beng', 'Bengali'], + ['Bhks', 'Bhaiksuki'], + ['Bopo', 'Bopomofo'], + ['Brah', 'Brahmi'], + ['Brai', 'Braille'], + ['Bugi', 'Buginese'], + ['Buhd', 'Buhid'], + ['Cakm', 'Chakma'], + ['Cans', 'Canadian_Aboriginal'], + ['Cari', 'Carian'], + ['Cham', 'Cham'], + ['Cher', 'Cherokee'], + ['Chrs', 'Chorasmian'], + ['Copt', 'Coptic'], + ['Qaac', 'Coptic'], + ['Cpmn', 'Cypro_Minoan'], + ['Cprt', 'Cypriot'], + ['Cyrl', 'Cyrillic'], + ['Deva', 'Devanagari'], + ['Diak', 'Dives_Akuru'], + ['Dogr', 'Dogra'], + ['Dsrt', 'Deseret'], + ['Dupl', 'Duployan'], + ['Egyp', 'Egyptian_Hieroglyphs'], + ['Elba', 'Elbasan'], + ['Elym', 'Elymaic'], + ['Ethi', 'Ethiopic'], + ['Geor', 'Georgian'], + ['Glag', 'Glagolitic'], + ['Gong', 'Gunjala_Gondi'], + ['Gonm', 'Masaram_Gondi'], + ['Goth', 'Gothic'], + ['Gran', 'Grantha'], + ['Grek', 'Greek'], + ['Gujr', 'Gujarati'], + ['Guru', 'Gurmukhi'], + ['Hang', 'Hangul'], + ['Hani', 'Han'], + ['Hano', 'Hanunoo'], + ['Hatr', 'Hatran'], + ['Hebr', 'Hebrew'], + ['Hira', 'Hiragana'], + ['Hluw', 'Anatolian_Hieroglyphs'], + ['Hmng', 'Pahawh_Hmong'], + ['Hmnp', 'Nyiakeng_Puachue_Hmong'], + ['Hrkt', 'Katakana_Or_Hiragana'], + ['Hung', 'Old_Hungarian'], + ['Ital', 'Old_Italic'], + ['Java', 'Javanese'], + ['Kali', 'Kayah_Li'], + ['Kana', 'Katakana'], + ['Kawi', 'Kawi'], + ['Khar', 'Kharoshthi'], + ['Khmr', 'Khmer'], + ['Khoj', 'Khojki'], + ['Kits', 'Khitan_Small_Script'], + ['Knda', 'Kannada'], + ['Kthi', 'Kaithi'], + ['Lana', 'Tai_Tham'], + ['Laoo', 'Lao'], + ['Latn', 'Latin'], + ['Lepc', 'Lepcha'], + ['Limb', 'Limbu'], + ['Lina', 'Linear_A'], + ['Linb', 'Linear_B'], + ['Lisu', 'Lisu'], + ['Lyci', 'Lycian'], + ['Lydi', 'Lydian'], + ['Mahj', 'Mahajani'], + ['Maka', 'Makasar'], + ['Mand', 'Mandaic'], + ['Mani', 'Manichaean'], + ['Marc', 'Marchen'], + ['Medf', 'Medefaidrin'], + ['Mend', 'Mende_Kikakui'], + ['Merc', 'Meroitic_Cursive'], + ['Mero', 'Meroitic_Hieroglyphs'], + ['Mlym', 'Malayalam'], + ['Modi', 'Modi'], + ['Mong', 'Mongolian'], + ['Mroo', 'Mro'], + ['Mtei', 'Meetei_Mayek'], + ['Mult', 'Multani'], + ['Mymr', 'Myanmar'], + ['Nagm', 'Nag_Mundari'], + ['Nand', 'Nandinagari'], + ['Narb', 'Old_North_Arabian'], + ['Nbat', 'Nabataean'], + ['Newa', 'Newa'], + ['Nkoo', 'Nko'], + ['Nshu', 'Nushu'], + ['Ogam', 'Ogham'], + ['Olck', 'Ol_Chiki'], + ['Orkh', 'Old_Turkic'], + ['Orya', 'Oriya'], + ['Osge', 'Osage'], + ['Osma', 'Osmanya'], + ['Ougr', 'Old_Uyghur'], + ['Palm', 'Palmyrene'], + ['Pauc', 'Pau_Cin_Hau'], + ['Perm', 'Old_Permic'], + ['Phag', 'Phags_Pa'], + ['Phli', 'Inscriptional_Pahlavi'], + ['Phlp', 'Psalter_Pahlavi'], + ['Phnx', 'Phoenician'], + ['Plrd', 'Miao'], + ['Prti', 'Inscriptional_Parthian'], + ['Rjng', 'Rejang'], + ['Rohg', 'Hanifi_Rohingya'], + ['Runr', 'Runic'], + ['Samr', 'Samaritan'], + ['Sarb', 'Old_South_Arabian'], + ['Saur', 'Saurashtra'], + ['Sgnw', 'SignWriting'], + ['Shaw', 'Shavian'], + ['Shrd', 'Sharada'], + ['Sidd', 'Siddham'], + ['Sind', 'Khudawadi'], + ['Sinh', 'Sinhala'], + ['Sogd', 'Sogdian'], + ['Sogo', 'Old_Sogdian'], + ['Sora', 'Sora_Sompeng'], + ['Soyo', 'Soyombo'], + ['Sund', 'Sundanese'], + ['Sylo', 'Syloti_Nagri'], + ['Syrc', 'Syriac'], + ['Tagb', 'Tagbanwa'], + ['Takr', 'Takri'], + ['Tale', 'Tai_Le'], + ['Talu', 'New_Tai_Lue'], + ['Taml', 'Tamil'], + ['Tang', 'Tangut'], + ['Tavt', 'Tai_Viet'], + ['Telu', 'Telugu'], + ['Tfng', 'Tifinagh'], + ['Tglg', 'Tagalog'], + ['Thaa', 'Thaana'], + ['Thai', 'Thai'], + ['Tibt', 'Tibetan'], + ['Tirh', 'Tirhuta'], + ['Tnsa', 'Tangsa'], + ['Toto', 'Toto'], + ['Ugar', 'Ugaritic'], + ['Vaii', 'Vai'], + ['Vith', 'Vithkuqi'], + ['Wara', 'Warang_Citi'], + ['Wcho', 'Wancho'], + ['Xpeo', 'Old_Persian'], + ['Xsux', 'Cuneiform'], + ['Yezi', 'Yezidi'], + ['Yiii', 'Yi'], + ['Zanb', 'Zanabazar_Square'], + ['Zinh', 'Inherited'], + ['Qaai', 'Inherited'], + ['Zyyy', 'Common'], + ['Zzzz', 'Unknown'], + ['Adlam', 'Adlam'], + ['Caucasian_Albanian', 'Caucasian_Albanian'], + ['Arabic', 'Arabic'], + ['Imperial_Aramaic', 'Imperial_Aramaic'], + ['Armenian', 'Armenian'], + ['Avestan', 'Avestan'], + ['Balinese', 'Balinese'], + ['Bamum', 'Bamum'], + ['Bassa_Vah', 'Bassa_Vah'], + ['Batak', 'Batak'], + ['Bengali', 'Bengali'], + ['Bhaiksuki', 'Bhaiksuki'], + ['Bopomofo', 'Bopomofo'], + ['Brahmi', 'Brahmi'], + ['Braille', 'Braille'], + ['Buginese', 'Buginese'], + ['Buhid', 'Buhid'], + ['Chakma', 'Chakma'], + ['Canadian_Aboriginal', 'Canadian_Aboriginal'], + ['Carian', 'Carian'], + ['Cherokee', 'Cherokee'], + ['Chorasmian', 'Chorasmian'], + ['Coptic', 'Coptic'], + ['Cypro_Minoan', 'Cypro_Minoan'], + ['Cypriot', 'Cypriot'], + ['Cyrillic', 'Cyrillic'], + ['Devanagari', 'Devanagari'], + ['Dives_Akuru', 'Dives_Akuru'], + ['Dogra', 'Dogra'], + ['Deseret', 'Deseret'], + ['Duployan', 'Duployan'], + ['Egyptian_Hieroglyphs', 'Egyptian_Hieroglyphs'], + ['Elbasan', 'Elbasan'], + ['Elymaic', 'Elymaic'], + ['Ethiopic', 'Ethiopic'], + ['Georgian', 'Georgian'], + ['Glagolitic', 'Glagolitic'], + ['Gunjala_Gondi', 'Gunjala_Gondi'], + ['Masaram_Gondi', 'Masaram_Gondi'], + ['Gothic', 'Gothic'], + ['Grantha', 'Grantha'], + ['Greek', 'Greek'], + ['Gujarati', 'Gujarati'], + ['Gurmukhi', 'Gurmukhi'], + ['Hangul', 'Hangul'], + ['Han', 'Han'], + ['Hanunoo', 'Hanunoo'], + ['Hatran', 'Hatran'], + ['Hebrew', 'Hebrew'], + ['Hiragana', 'Hiragana'], + ['Anatolian_Hieroglyphs', 'Anatolian_Hieroglyphs'], + ['Pahawh_Hmong', 'Pahawh_Hmong'], + ['Nyiakeng_Puachue_Hmong', 'Nyiakeng_Puachue_Hmong'], + ['Katakana_Or_Hiragana', 'Katakana_Or_Hiragana'], + ['Old_Hungarian', 'Old_Hungarian'], + ['Old_Italic', 'Old_Italic'], + ['Javanese', 'Javanese'], + ['Kayah_Li', 'Kayah_Li'], + ['Katakana', 'Katakana'], + ['Kharoshthi', 'Kharoshthi'], + ['Khmer', 'Khmer'], + ['Khojki', 'Khojki'], + ['Khitan_Small_Script', 'Khitan_Small_Script'], + ['Kannada', 'Kannada'], + ['Kaithi', 'Kaithi'], + ['Tai_Tham', 'Tai_Tham'], + ['Lao', 'Lao'], + ['Latin', 'Latin'], + ['Lepcha', 'Lepcha'], + ['Limbu', 'Limbu'], + ['Linear_A', 'Linear_A'], + ['Linear_B', 'Linear_B'], + ['Lycian', 'Lycian'], + ['Lydian', 'Lydian'], + ['Mahajani', 'Mahajani'], + ['Makasar', 'Makasar'], + ['Mandaic', 'Mandaic'], + ['Manichaean', 'Manichaean'], + ['Marchen', 'Marchen'], + ['Medefaidrin', 'Medefaidrin'], + ['Mende_Kikakui', 'Mende_Kikakui'], + ['Meroitic_Cursive', 'Meroitic_Cursive'], + ['Meroitic_Hieroglyphs', 'Meroitic_Hieroglyphs'], + ['Malayalam', 'Malayalam'], + ['Mongolian', 'Mongolian'], + ['Mro', 'Mro'], + ['Meetei_Mayek', 'Meetei_Mayek'], + ['Multani', 'Multani'], + ['Myanmar', 'Myanmar'], + ['Nag_Mundari', 'Nag_Mundari'], + ['Nandinagari', 'Nandinagari'], + ['Old_North_Arabian', 'Old_North_Arabian'], + ['Nabataean', 'Nabataean'], + ['Nko', 'Nko'], + ['Nushu', 'Nushu'], + ['Ogham', 'Ogham'], + ['Ol_Chiki', 'Ol_Chiki'], + ['Old_Turkic', 'Old_Turkic'], + ['Oriya', 'Oriya'], + ['Osage', 'Osage'], + ['Osmanya', 'Osmanya'], + ['Old_Uyghur', 'Old_Uyghur'], + ['Palmyrene', 'Palmyrene'], + ['Pau_Cin_Hau', 'Pau_Cin_Hau'], + ['Old_Permic', 'Old_Permic'], + ['Phags_Pa', 'Phags_Pa'], + ['Inscriptional_Pahlavi', 'Inscriptional_Pahlavi'], + ['Psalter_Pahlavi', 'Psalter_Pahlavi'], + ['Phoenician', 'Phoenician'], + ['Miao', 'Miao'], + ['Inscriptional_Parthian', 'Inscriptional_Parthian'], + ['Rejang', 'Rejang'], + ['Hanifi_Rohingya', 'Hanifi_Rohingya'], + ['Runic', 'Runic'], + ['Samaritan', 'Samaritan'], + ['Old_South_Arabian', 'Old_South_Arabian'], + ['Saurashtra', 'Saurashtra'], + ['SignWriting', 'SignWriting'], + ['Shavian', 'Shavian'], + ['Sharada', 'Sharada'], + ['Siddham', 'Siddham'], + ['Khudawadi', 'Khudawadi'], + ['Sinhala', 'Sinhala'], + ['Sogdian', 'Sogdian'], + ['Old_Sogdian', 'Old_Sogdian'], + ['Sora_Sompeng', 'Sora_Sompeng'], + ['Soyombo', 'Soyombo'], + ['Sundanese', 'Sundanese'], + ['Syloti_Nagri', 'Syloti_Nagri'], + ['Syriac', 'Syriac'], + ['Tagbanwa', 'Tagbanwa'], + ['Takri', 'Takri'], + ['Tai_Le', 'Tai_Le'], + ['New_Tai_Lue', 'New_Tai_Lue'], + ['Tamil', 'Tamil'], + ['Tangut', 'Tangut'], + ['Tai_Viet', 'Tai_Viet'], + ['Telugu', 'Telugu'], + ['Tifinagh', 'Tifinagh'], + ['Tagalog', 'Tagalog'], + ['Thaana', 'Thaana'], + ['Tibetan', 'Tibetan'], + ['Tirhuta', 'Tirhuta'], + ['Tangsa', 'Tangsa'], + ['Ugaritic', 'Ugaritic'], + ['Vai', 'Vai'], + ['Vithkuqi', 'Vithkuqi'], + ['Warang_Citi', 'Warang_Citi'], + ['Wancho', 'Wancho'], + ['Old_Persian', 'Old_Persian'], + ['Cuneiform', 'Cuneiform'], + ['Yezidi', 'Yezidi'], + ['Yi', 'Yi'], + ['Zanabazar_Square', 'Zanabazar_Square'], + ['Inherited', 'Inherited'], + ['Common', 'Common'], + ['Unknown', 'Unknown'] + ])], + ['Script_Extensions', new Map([ + ['Adlm', 'Adlam'], + ['Aghb', 'Caucasian_Albanian'], + ['Ahom', 'Ahom'], + ['Arab', 'Arabic'], + ['Armi', 'Imperial_Aramaic'], + ['Armn', 'Armenian'], + ['Avst', 'Avestan'], + ['Bali', 'Balinese'], + ['Bamu', 'Bamum'], + ['Bass', 'Bassa_Vah'], + ['Batk', 'Batak'], + ['Beng', 'Bengali'], + ['Bhks', 'Bhaiksuki'], + ['Bopo', 'Bopomofo'], + ['Brah', 'Brahmi'], + ['Brai', 'Braille'], + ['Bugi', 'Buginese'], + ['Buhd', 'Buhid'], + ['Cakm', 'Chakma'], + ['Cans', 'Canadian_Aboriginal'], + ['Cari', 'Carian'], + ['Cham', 'Cham'], + ['Cher', 'Cherokee'], + ['Chrs', 'Chorasmian'], + ['Copt', 'Coptic'], + ['Qaac', 'Coptic'], + ['Cpmn', 'Cypro_Minoan'], + ['Cprt', 'Cypriot'], + ['Cyrl', 'Cyrillic'], + ['Deva', 'Devanagari'], + ['Diak', 'Dives_Akuru'], + ['Dogr', 'Dogra'], + ['Dsrt', 'Deseret'], + ['Dupl', 'Duployan'], + ['Egyp', 'Egyptian_Hieroglyphs'], + ['Elba', 'Elbasan'], + ['Elym', 'Elymaic'], + ['Ethi', 'Ethiopic'], + ['Geor', 'Georgian'], + ['Glag', 'Glagolitic'], + ['Gong', 'Gunjala_Gondi'], + ['Gonm', 'Masaram_Gondi'], + ['Goth', 'Gothic'], + ['Gran', 'Grantha'], + ['Grek', 'Greek'], + ['Gujr', 'Gujarati'], + ['Guru', 'Gurmukhi'], + ['Hang', 'Hangul'], + ['Hani', 'Han'], + ['Hano', 'Hanunoo'], + ['Hatr', 'Hatran'], + ['Hebr', 'Hebrew'], + ['Hira', 'Hiragana'], + ['Hluw', 'Anatolian_Hieroglyphs'], + ['Hmng', 'Pahawh_Hmong'], + ['Hmnp', 'Nyiakeng_Puachue_Hmong'], + ['Hrkt', 'Katakana_Or_Hiragana'], + ['Hung', 'Old_Hungarian'], + ['Ital', 'Old_Italic'], + ['Java', 'Javanese'], + ['Kali', 'Kayah_Li'], + ['Kana', 'Katakana'], + ['Kawi', 'Kawi'], + ['Khar', 'Kharoshthi'], + ['Khmr', 'Khmer'], + ['Khoj', 'Khojki'], + ['Kits', 'Khitan_Small_Script'], + ['Knda', 'Kannada'], + ['Kthi', 'Kaithi'], + ['Lana', 'Tai_Tham'], + ['Laoo', 'Lao'], + ['Latn', 'Latin'], + ['Lepc', 'Lepcha'], + ['Limb', 'Limbu'], + ['Lina', 'Linear_A'], + ['Linb', 'Linear_B'], + ['Lisu', 'Lisu'], + ['Lyci', 'Lycian'], + ['Lydi', 'Lydian'], + ['Mahj', 'Mahajani'], + ['Maka', 'Makasar'], + ['Mand', 'Mandaic'], + ['Mani', 'Manichaean'], + ['Marc', 'Marchen'], + ['Medf', 'Medefaidrin'], + ['Mend', 'Mende_Kikakui'], + ['Merc', 'Meroitic_Cursive'], + ['Mero', 'Meroitic_Hieroglyphs'], + ['Mlym', 'Malayalam'], + ['Modi', 'Modi'], + ['Mong', 'Mongolian'], + ['Mroo', 'Mro'], + ['Mtei', 'Meetei_Mayek'], + ['Mult', 'Multani'], + ['Mymr', 'Myanmar'], + ['Nagm', 'Nag_Mundari'], + ['Nand', 'Nandinagari'], + ['Narb', 'Old_North_Arabian'], + ['Nbat', 'Nabataean'], + ['Newa', 'Newa'], + ['Nkoo', 'Nko'], + ['Nshu', 'Nushu'], + ['Ogam', 'Ogham'], + ['Olck', 'Ol_Chiki'], + ['Orkh', 'Old_Turkic'], + ['Orya', 'Oriya'], + ['Osge', 'Osage'], + ['Osma', 'Osmanya'], + ['Ougr', 'Old_Uyghur'], + ['Palm', 'Palmyrene'], + ['Pauc', 'Pau_Cin_Hau'], + ['Perm', 'Old_Permic'], + ['Phag', 'Phags_Pa'], + ['Phli', 'Inscriptional_Pahlavi'], + ['Phlp', 'Psalter_Pahlavi'], + ['Phnx', 'Phoenician'], + ['Plrd', 'Miao'], + ['Prti', 'Inscriptional_Parthian'], + ['Rjng', 'Rejang'], + ['Rohg', 'Hanifi_Rohingya'], + ['Runr', 'Runic'], + ['Samr', 'Samaritan'], + ['Sarb', 'Old_South_Arabian'], + ['Saur', 'Saurashtra'], + ['Sgnw', 'SignWriting'], + ['Shaw', 'Shavian'], + ['Shrd', 'Sharada'], + ['Sidd', 'Siddham'], + ['Sind', 'Khudawadi'], + ['Sinh', 'Sinhala'], + ['Sogd', 'Sogdian'], + ['Sogo', 'Old_Sogdian'], + ['Sora', 'Sora_Sompeng'], + ['Soyo', 'Soyombo'], + ['Sund', 'Sundanese'], + ['Sylo', 'Syloti_Nagri'], + ['Syrc', 'Syriac'], + ['Tagb', 'Tagbanwa'], + ['Takr', 'Takri'], + ['Tale', 'Tai_Le'], + ['Talu', 'New_Tai_Lue'], + ['Taml', 'Tamil'], + ['Tang', 'Tangut'], + ['Tavt', 'Tai_Viet'], + ['Telu', 'Telugu'], + ['Tfng', 'Tifinagh'], + ['Tglg', 'Tagalog'], + ['Thaa', 'Thaana'], + ['Thai', 'Thai'], + ['Tibt', 'Tibetan'], + ['Tirh', 'Tirhuta'], + ['Tnsa', 'Tangsa'], + ['Toto', 'Toto'], + ['Ugar', 'Ugaritic'], + ['Vaii', 'Vai'], + ['Vith', 'Vithkuqi'], + ['Wara', 'Warang_Citi'], + ['Wcho', 'Wancho'], + ['Xpeo', 'Old_Persian'], + ['Xsux', 'Cuneiform'], + ['Yezi', 'Yezidi'], + ['Yiii', 'Yi'], + ['Zanb', 'Zanabazar_Square'], + ['Zinh', 'Inherited'], + ['Qaai', 'Inherited'], + ['Zyyy', 'Common'], + ['Zzzz', 'Unknown'], + ['Adlam', 'Adlam'], + ['Caucasian_Albanian', 'Caucasian_Albanian'], + ['Arabic', 'Arabic'], + ['Imperial_Aramaic', 'Imperial_Aramaic'], + ['Armenian', 'Armenian'], + ['Avestan', 'Avestan'], + ['Balinese', 'Balinese'], + ['Bamum', 'Bamum'], + ['Bassa_Vah', 'Bassa_Vah'], + ['Batak', 'Batak'], + ['Bengali', 'Bengali'], + ['Bhaiksuki', 'Bhaiksuki'], + ['Bopomofo', 'Bopomofo'], + ['Brahmi', 'Brahmi'], + ['Braille', 'Braille'], + ['Buginese', 'Buginese'], + ['Buhid', 'Buhid'], + ['Chakma', 'Chakma'], + ['Canadian_Aboriginal', 'Canadian_Aboriginal'], + ['Carian', 'Carian'], + ['Cherokee', 'Cherokee'], + ['Chorasmian', 'Chorasmian'], + ['Coptic', 'Coptic'], + ['Cypro_Minoan', 'Cypro_Minoan'], + ['Cypriot', 'Cypriot'], + ['Cyrillic', 'Cyrillic'], + ['Devanagari', 'Devanagari'], + ['Dives_Akuru', 'Dives_Akuru'], + ['Dogra', 'Dogra'], + ['Deseret', 'Deseret'], + ['Duployan', 'Duployan'], + ['Egyptian_Hieroglyphs', 'Egyptian_Hieroglyphs'], + ['Elbasan', 'Elbasan'], + ['Elymaic', 'Elymaic'], + ['Ethiopic', 'Ethiopic'], + ['Georgian', 'Georgian'], + ['Glagolitic', 'Glagolitic'], + ['Gunjala_Gondi', 'Gunjala_Gondi'], + ['Masaram_Gondi', 'Masaram_Gondi'], + ['Gothic', 'Gothic'], + ['Grantha', 'Grantha'], + ['Greek', 'Greek'], + ['Gujarati', 'Gujarati'], + ['Gurmukhi', 'Gurmukhi'], + ['Hangul', 'Hangul'], + ['Han', 'Han'], + ['Hanunoo', 'Hanunoo'], + ['Hatran', 'Hatran'], + ['Hebrew', 'Hebrew'], + ['Hiragana', 'Hiragana'], + ['Anatolian_Hieroglyphs', 'Anatolian_Hieroglyphs'], + ['Pahawh_Hmong', 'Pahawh_Hmong'], + ['Nyiakeng_Puachue_Hmong', 'Nyiakeng_Puachue_Hmong'], + ['Katakana_Or_Hiragana', 'Katakana_Or_Hiragana'], + ['Old_Hungarian', 'Old_Hungarian'], + ['Old_Italic', 'Old_Italic'], + ['Javanese', 'Javanese'], + ['Kayah_Li', 'Kayah_Li'], + ['Katakana', 'Katakana'], + ['Kharoshthi', 'Kharoshthi'], + ['Khmer', 'Khmer'], + ['Khojki', 'Khojki'], + ['Khitan_Small_Script', 'Khitan_Small_Script'], + ['Kannada', 'Kannada'], + ['Kaithi', 'Kaithi'], + ['Tai_Tham', 'Tai_Tham'], + ['Lao', 'Lao'], + ['Latin', 'Latin'], + ['Lepcha', 'Lepcha'], + ['Limbu', 'Limbu'], + ['Linear_A', 'Linear_A'], + ['Linear_B', 'Linear_B'], + ['Lycian', 'Lycian'], + ['Lydian', 'Lydian'], + ['Mahajani', 'Mahajani'], + ['Makasar', 'Makasar'], + ['Mandaic', 'Mandaic'], + ['Manichaean', 'Manichaean'], + ['Marchen', 'Marchen'], + ['Medefaidrin', 'Medefaidrin'], + ['Mende_Kikakui', 'Mende_Kikakui'], + ['Meroitic_Cursive', 'Meroitic_Cursive'], + ['Meroitic_Hieroglyphs', 'Meroitic_Hieroglyphs'], + ['Malayalam', 'Malayalam'], + ['Mongolian', 'Mongolian'], + ['Mro', 'Mro'], + ['Meetei_Mayek', 'Meetei_Mayek'], + ['Multani', 'Multani'], + ['Myanmar', 'Myanmar'], + ['Nag_Mundari', 'Nag_Mundari'], + ['Nandinagari', 'Nandinagari'], + ['Old_North_Arabian', 'Old_North_Arabian'], + ['Nabataean', 'Nabataean'], + ['Nko', 'Nko'], + ['Nushu', 'Nushu'], + ['Ogham', 'Ogham'], + ['Ol_Chiki', 'Ol_Chiki'], + ['Old_Turkic', 'Old_Turkic'], + ['Oriya', 'Oriya'], + ['Osage', 'Osage'], + ['Osmanya', 'Osmanya'], + ['Old_Uyghur', 'Old_Uyghur'], + ['Palmyrene', 'Palmyrene'], + ['Pau_Cin_Hau', 'Pau_Cin_Hau'], + ['Old_Permic', 'Old_Permic'], + ['Phags_Pa', 'Phags_Pa'], + ['Inscriptional_Pahlavi', 'Inscriptional_Pahlavi'], + ['Psalter_Pahlavi', 'Psalter_Pahlavi'], + ['Phoenician', 'Phoenician'], + ['Miao', 'Miao'], + ['Inscriptional_Parthian', 'Inscriptional_Parthian'], + ['Rejang', 'Rejang'], + ['Hanifi_Rohingya', 'Hanifi_Rohingya'], + ['Runic', 'Runic'], + ['Samaritan', 'Samaritan'], + ['Old_South_Arabian', 'Old_South_Arabian'], + ['Saurashtra', 'Saurashtra'], + ['SignWriting', 'SignWriting'], + ['Shavian', 'Shavian'], + ['Sharada', 'Sharada'], + ['Siddham', 'Siddham'], + ['Khudawadi', 'Khudawadi'], + ['Sinhala', 'Sinhala'], + ['Sogdian', 'Sogdian'], + ['Old_Sogdian', 'Old_Sogdian'], + ['Sora_Sompeng', 'Sora_Sompeng'], + ['Soyombo', 'Soyombo'], + ['Sundanese', 'Sundanese'], + ['Syloti_Nagri', 'Syloti_Nagri'], + ['Syriac', 'Syriac'], + ['Tagbanwa', 'Tagbanwa'], + ['Takri', 'Takri'], + ['Tai_Le', 'Tai_Le'], + ['New_Tai_Lue', 'New_Tai_Lue'], + ['Tamil', 'Tamil'], + ['Tangut', 'Tangut'], + ['Tai_Viet', 'Tai_Viet'], + ['Telugu', 'Telugu'], + ['Tifinagh', 'Tifinagh'], + ['Tagalog', 'Tagalog'], + ['Thaana', 'Thaana'], + ['Tibetan', 'Tibetan'], + ['Tirhuta', 'Tirhuta'], + ['Tangsa', 'Tangsa'], + ['Ugaritic', 'Ugaritic'], + ['Vai', 'Vai'], + ['Vithkuqi', 'Vithkuqi'], + ['Warang_Citi', 'Warang_Citi'], + ['Wancho', 'Wancho'], + ['Old_Persian', 'Old_Persian'], + ['Cuneiform', 'Cuneiform'], + ['Yezidi', 'Yezidi'], + ['Yi', 'Yi'], + ['Zanabazar_Square', 'Zanabazar_Square'], + ['Inherited', 'Inherited'], + ['Common', 'Common'], + ['Unknown', 'Unknown'] + ])] +]); /***/ }), -/***/ 52088: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 86176: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -const path = __nccwpck_require__(71017); -const fs = __nccwpck_require__(57147); -const os = __nccwpck_require__(22037); -const findCacheDir = __nccwpck_require__(27693); -let FILENAME = process.env.BABEL_CACHE_PATH; -exports.initializeCacheFilename = function () { - FILENAME || (FILENAME = path.join(findCacheDir({ - name: "@babel/register" - }) || os.homedir() || os.tmpdir(), `.babel.${babel.version}.${babel.getEnv()}.json`)); -}; -const babel = __nccwpck_require__(50631); -let data = {}; -let cacheDirty = false; -let cacheDisabled = false; -function isCacheDisabled() { - var _process$env$BABEL_DI; - return (_process$env$BABEL_DI = process.env.BABEL_DISABLE_CACHE) != null ? _process$env$BABEL_DI : cacheDisabled; -} -exports.save = save; -function save() { - if (isCacheDisabled() || !cacheDirty) return; - cacheDirty = false; - let serialised = "{}"; - try { - serialised = JSON.stringify(data); - } catch (err) { - if (err.message === "Invalid string length") { - err.message = "Cache too large so it's been cleared."; - console.error(err.stack); - } else { - throw err; - } - } - try { - (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "10.12") ? fs.mkdirSync : (__nccwpck_require__(81000).sync))(path.dirname(FILENAME), { - recursive: true - }); - fs.writeFileSync(FILENAME, serialised); - } catch (e) { - switch (e.code) { - case "ENOENT": - case "EACCES": - case "EPERM": - console.warn(`Babel could not write cache to file: ${FILENAME} -due to a permission issue. Cache is disabled.`); - cacheDisabled = true; - break; - case "EROFS": - console.warn(`Babel could not write cache to file: ${FILENAME} -because it resides in a readonly filesystem. Cache is disabled.`); - cacheDisabled = true; - break; - default: - throw e; - } - } -} -exports.load = function load() { - if (isCacheDisabled()) { - data = {}; - return; - } - process.on("exit", save); - process.nextTick(save); - let cacheContent; - try { - cacheContent = fs.readFileSync(FILENAME); - } catch (e) { - switch (e.code) { - case "EACCES": - console.warn(`Babel could not read cache file: ${FILENAME} -due to a permission issue. Cache is disabled.`); - cacheDisabled = true; - default: - return; - } - } - try { - data = JSON.parse(cacheContent); - } catch (_unused) {} -}; -exports.get = function get() { - return data; -}; -exports.setDirty = function setDirty() { - cacheDirty = true; -}; -exports.clear = function clear() { - data = {}; +const propertyToValueAliases = __nccwpck_require__(86080); + +const matchPropertyValue = function(property, value) { + const aliasToValue = propertyToValueAliases.get(property); + if (!aliasToValue) { + throw new Error(`Unknown property \`${ property }\`.`); + } + const canonicalValue = aliasToValue.get(value); + if (canonicalValue) { + return canonicalValue; + } + throw new Error( + `Unknown value \`${ value }\` for property \`${ property }\`.` + ); }; -//# sourceMappingURL=cache.js.map +module.exports = matchPropertyValue; /***/ }), -/***/ 29485: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -const babel = __nccwpck_require__(50631); -const { - setOptions, - transform, - transformSync -} = __nccwpck_require__(64089); -module.exports = function handleMessage(action, payload) { - switch (action) { - case "GET_DEFAULT_EXTENSIONS": - return babel.DEFAULT_EXTENSIONS; - case "SET_OPTIONS": - setOptions(payload); - return; - case "TRANSFORM": - return transform(payload.code, payload.filename); - case "TRANSFORM_SYNC": - { - return transformSync(payload.code, payload.filename); - } - } - throw new Error(`Unknown internal parser worker action: ${action}`); -}; +/***/ 61788: +/***/ (function(module) { -//# sourceMappingURL=handle-message.js.map +// Generated using `npm run build`. Do not edit! +module.exports = new Map([ + ['scx', 'Script_Extensions'], + ['sc', 'Script'], + ['gc', 'General_Category'], + ['AHex', 'ASCII_Hex_Digit'], + ['Alpha', 'Alphabetic'], + ['Bidi_C', 'Bidi_Control'], + ['Bidi_M', 'Bidi_Mirrored'], + ['Cased', 'Cased'], + ['CI', 'Case_Ignorable'], + ['CWCF', 'Changes_When_Casefolded'], + ['CWCM', 'Changes_When_Casemapped'], + ['CWKCF', 'Changes_When_NFKC_Casefolded'], + ['CWL', 'Changes_When_Lowercased'], + ['CWT', 'Changes_When_Titlecased'], + ['CWU', 'Changes_When_Uppercased'], + ['Dash', 'Dash'], + ['Dep', 'Deprecated'], + ['DI', 'Default_Ignorable_Code_Point'], + ['Dia', 'Diacritic'], + ['EBase', 'Emoji_Modifier_Base'], + ['EComp', 'Emoji_Component'], + ['EMod', 'Emoji_Modifier'], + ['Emoji', 'Emoji'], + ['EPres', 'Emoji_Presentation'], + ['Ext', 'Extender'], + ['ExtPict', 'Extended_Pictographic'], + ['Gr_Base', 'Grapheme_Base'], + ['Gr_Ext', 'Grapheme_Extend'], + ['Hex', 'Hex_Digit'], + ['IDC', 'ID_Continue'], + ['Ideo', 'Ideographic'], + ['IDS', 'ID_Start'], + ['IDSB', 'IDS_Binary_Operator'], + ['IDST', 'IDS_Trinary_Operator'], + ['Join_C', 'Join_Control'], + ['LOE', 'Logical_Order_Exception'], + ['Lower', 'Lowercase'], + ['Math', 'Math'], + ['NChar', 'Noncharacter_Code_Point'], + ['Pat_Syn', 'Pattern_Syntax'], + ['Pat_WS', 'Pattern_White_Space'], + ['QMark', 'Quotation_Mark'], + ['Radical', 'Radical'], + ['RI', 'Regional_Indicator'], + ['SD', 'Soft_Dotted'], + ['STerm', 'Sentence_Terminal'], + ['Term', 'Terminal_Punctuation'], + ['UIdeo', 'Unified_Ideograph'], + ['Upper', 'Uppercase'], + ['VS', 'Variation_Selector'], + ['WSpace', 'White_Space'], + ['space', 'White_Space'], + ['XIDC', 'XID_Continue'], + ['XIDS', 'XID_Start'] +]); /***/ }), -/***/ 64089: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 42889: +/***/ (function(module) { "use strict"; - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -const cloneDeep = __nccwpck_require__(37838); -const path = __nccwpck_require__(71017); -const fs = __nccwpck_require__(57147); -const babel = __nccwpck_require__(50631); -const registerCache = __nccwpck_require__(97891); -const nmRE = escapeRegExp(path.sep + "node_modules" + path.sep); -function escapeRegExp(string) { - return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"); -} -let cache; -let transformOpts; -exports.setOptions = function (opts) { - if (opts.cache === false && cache) { - registerCache.clear(); - cache = null; - } else if (opts.cache !== false && !cache) { - registerCache.load(); - cache = registerCache.get(); - } - delete opts.cache; - delete opts.extensions; - transformOpts = Object.assign({}, opts, { - caller: Object.assign({ - name: "@babel/register" - }, opts.caller || {}) - }); - let { - cwd = "." - } = transformOpts; - cwd = transformOpts.cwd = path.resolve(cwd); - if (transformOpts.ignore === undefined && transformOpts.only === undefined) { - const cwdRE = escapeRegExp(cwd); - transformOpts.only = [new RegExp("^" + cwdRE, "i")]; - transformOpts.ignore = [new RegExp(`^${cwdRE}(?:${path.sep}.*)?${nmRE}`, "i")]; - } -}; -exports.transform = _asyncToGenerator(function* (input, filename) { - const opts = yield babel.loadOptionsAsync(Object.assign({ - sourceRoot: path.dirname(filename) + path.sep - }, cloneDeep(transformOpts), { - filename - })); - if (opts === null) return null; - const { - cached, - store - } = cacheLookup(opts, filename); - if (cached) return cached; - const { - code, - map - } = yield babel.transformAsync(input, Object.assign({}, opts, { - sourceMaps: opts.sourceMaps === undefined ? "both" : opts.sourceMaps, - ast: false - })); - return store({ - code, - map - }); -}); -{ - exports.transformSync = function (input, filename) { - const opts = new babel.OptionManager().init(Object.assign({ - sourceRoot: path.dirname(filename) + path.sep - }, cloneDeep(transformOpts), { - filename - })); - if (opts === null) return null; - const { - cached, - store - } = cacheLookup(opts, filename); - if (cached) return cached; - const { - code, - map - } = babel.transformSync(input, Object.assign({}, opts, { - sourceMaps: opts.sourceMaps === undefined ? "both" : opts.sourceMaps, - ast: false - })); - return store({ - code, - map - }); - }; -} -const id = value => value; -function cacheLookup(opts, filename) { - if (!cache) return { - cached: null, - store: id - }; - let cacheKey = `${JSON.stringify(opts)}:${babel.version}`; - const env = babel.getEnv(); - if (env) cacheKey += `:${env}`; - const cached = cache[cacheKey]; - const fileMtime = +fs.statSync(filename).mtime; - if (cached && cached.mtime === fileMtime) { - return { - cached: cached.value, - store: id - }; - } - return { - cached: null, - store(value) { - cache[cacheKey] = { - value, - mtime: fileMtime - }; - registerCache.setDirty(); - return value; +module.exports = function (Yallist) { + Yallist.prototype[Symbol.iterator] = function* () { + for (let walker = this.head; walker; walker = walker.next) { + yield walker.value } - }; + } } -//# sourceMappingURL=transform.js.map - /***/ }), -/***/ 75077: -/***/ (function(module) { +/***/ 35358: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; -} -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; +"use strict"; -/***/ }), +module.exports = Yallist -/***/ 71804: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +Yallist.Node = Node +Yallist.create = Yallist -"use strict"; +function Yallist (list) { + var self = this + if (!(self instanceof Yallist)) { + self = new Yallist() + } + self.tail = null + self.head = null + self.length = 0 -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = createTemplateBuilder; -var _options = __nccwpck_require__(67723); -var _string = __nccwpck_require__(45814); -var _literal = __nccwpck_require__(41519); -const NO_PLACEHOLDER = (0, _options.validate)({ - placeholderPattern: false -}); -function createTemplateBuilder(formatter, defaultOpts) { - const templateFnCache = new WeakMap(); - const templateAstCache = new WeakMap(); - const cachedOpts = defaultOpts || (0, _options.validate)(null); - return Object.assign((tpl, ...args) => { - if (typeof tpl === "string") { - if (args.length > 1) throw new Error("Unexpected extra params."); - return extendedTrace((0, _string.default)(formatter, tpl, (0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])))); - } else if (Array.isArray(tpl)) { - let builder = templateFnCache.get(tpl); - if (!builder) { - builder = (0, _literal.default)(formatter, tpl, cachedOpts); - templateFnCache.set(tpl, builder); - } - return extendedTrace(builder(args)); - } else if (typeof tpl === "object" && tpl) { - if (args.length > 0) throw new Error("Unexpected extra params."); - return createTemplateBuilder(formatter, (0, _options.merge)(cachedOpts, (0, _options.validate)(tpl))); - } - throw new Error(`Unexpected template param ${typeof tpl}`); - }, { - ast: (tpl, ...args) => { - if (typeof tpl === "string") { - if (args.length > 1) throw new Error("Unexpected extra params."); - return (0, _string.default)(formatter, tpl, (0, _options.merge)((0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])), NO_PLACEHOLDER))(); - } else if (Array.isArray(tpl)) { - let builder = templateAstCache.get(tpl); - if (!builder) { - builder = (0, _literal.default)(formatter, tpl, (0, _options.merge)(cachedOpts, NO_PLACEHOLDER)); - templateAstCache.set(tpl, builder); - } - return builder(args)(); - } - throw new Error(`Unexpected template param ${typeof tpl}`); - } - }); -} -function extendedTrace(fn) { - let rootStack = ""; - try { - throw new Error(); - } catch (error) { - if (error.stack) { - rootStack = error.stack.split("\n").slice(3).join("\n"); + if (list && typeof list.forEach === 'function') { + list.forEach(function (item) { + self.push(item) + }) + } else if (arguments.length > 0) { + for (var i = 0, l = arguments.length; i < l; i++) { + self.push(arguments[i]) } } - return arg => { - try { - return fn(arg); - } catch (err) { - err.stack += `\n =============\n${rootStack}`; - throw err; - } - }; + + return self } -//# sourceMappingURL=builder.js.map +Yallist.prototype.removeNode = function (node) { + if (node.list !== this) { + throw new Error('removing node which does not belong to this list') + } + var next = node.next + var prev = node.prev -/***/ }), + if (next) { + next.prev = prev + } -/***/ 37008: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + if (prev) { + prev.next = next + } -"use strict"; + if (node === this.head) { + this.head = next + } + if (node === this.tail) { + this.tail = prev + } + node.list.length-- + node.next = null + node.prev = null + node.list = null -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.statements = exports.statement = exports.smart = exports.program = exports.expression = void 0; -var _t = __nccwpck_require__(53501); -const { - assertExpressionStatement -} = _t; -function makeStatementFormatter(fn) { - return { - code: str => `/* @babel/template */;\n${str}`, - validate: () => {}, - unwrap: ast => { - return fn(ast.program.body.slice(1)); - } - }; + return next } -const smart = makeStatementFormatter(body => { - if (body.length > 1) { - return body; - } else { - return body[0]; + +Yallist.prototype.unshiftNode = function (node) { + if (node === this.head) { + return } -}); -exports.smart = smart; -const statements = makeStatementFormatter(body => body); -exports.statements = statements; -const statement = makeStatementFormatter(body => { - if (body.length === 0) { - throw new Error("Found nothing to return."); + + if (node.list) { + node.list.removeNode(node) } - if (body.length > 1) { - throw new Error("Found multiple statements but wanted one"); + + var head = this.head + node.list = this + node.next = head + if (head) { + head.prev = node } - return body[0]; -}); -exports.statement = statement; -const expression = { - code: str => `(\n${str}\n)`, - validate: ast => { - if (ast.program.body.length > 1) { - throw new Error("Found multiple statements but wanted one"); - } - if (expression.unwrap(ast).start === 0) { - throw new Error("Parse result included parens."); - } - }, - unwrap: ({ - program - }) => { - const [stmt] = program.body; - assertExpressionStatement(stmt); - return stmt.expression; + + this.head = node + if (!this.tail) { + this.tail = node } -}; -exports.expression = expression; -const program = { - code: str => str, - validate: () => {}, - unwrap: ast => ast.program -}; -exports.program = program; + this.length++ +} -//# sourceMappingURL=formatters.js.map +Yallist.prototype.pushNode = function (node) { + if (node === this.tail) { + return + } + if (node.list) { + node.list.removeNode(node) + } -/***/ }), + var tail = this.tail + node.list = this + node.prev = tail + if (tail) { + tail.next = node + } -/***/ 80940: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + this.tail = node + if (!this.head) { + this.head = node + } + this.length++ +} -"use strict"; +Yallist.prototype.push = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + push(this, arguments[i]) + } + return this.length +} +Yallist.prototype.unshift = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + unshift(this, arguments[i]) + } + return this.length +} -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.statements = exports.statement = exports.smart = exports.program = exports.expression = exports["default"] = void 0; -var formatters = __nccwpck_require__(37008); -var _builder = __nccwpck_require__(71804); -const smart = (0, _builder.default)(formatters.smart); -exports.smart = smart; -const statement = (0, _builder.default)(formatters.statement); -exports.statement = statement; -const statements = (0, _builder.default)(formatters.statements); -exports.statements = statements; -const expression = (0, _builder.default)(formatters.expression); -exports.expression = expression; -const program = (0, _builder.default)(formatters.program); -exports.program = program; -var _default = Object.assign(smart.bind(undefined), { - smart, - statement, - statements, - expression, - program, - ast: smart.ast -}); -exports["default"] = _default; +Yallist.prototype.pop = function () { + if (!this.tail) { + return undefined + } -//# sourceMappingURL=index.js.map + var res = this.tail.value + this.tail = this.tail.prev + if (this.tail) { + this.tail.next = null + } else { + this.head = null + } + this.length-- + return res +} +Yallist.prototype.shift = function () { + if (!this.head) { + return undefined + } -/***/ }), + var res = this.head.value + this.head = this.head.next + if (this.head) { + this.head.prev = null + } else { + this.tail = null + } + this.length-- + return res +} -/***/ 41519: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +Yallist.prototype.forEach = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.head, i = 0; walker !== null; i++) { + fn.call(thisp, walker.value, i, this) + walker = walker.next + } +} -"use strict"; +Yallist.prototype.forEachReverse = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { + fn.call(thisp, walker.value, i, this) + walker = walker.prev + } +} +Yallist.prototype.get = function (n) { + for (var i = 0, walker = this.head; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.next + } + if (i === n && walker !== null) { + return walker.value + } +} -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = literalTemplate; -var _options = __nccwpck_require__(67723); -var _parse = __nccwpck_require__(25140); -var _populate = __nccwpck_require__(91792); -function literalTemplate(formatter, tpl, opts) { - const { - metadata, - names - } = buildLiteralData(formatter, tpl, opts); - return arg => { - const defaultReplacements = {}; - arg.forEach((replacement, i) => { - defaultReplacements[names[i]] = replacement; - }); - return arg => { - const replacements = (0, _options.normalizeReplacements)(arg); - if (replacements) { - Object.keys(replacements).forEach(key => { - if (Object.prototype.hasOwnProperty.call(defaultReplacements, key)) { - throw new Error("Unexpected replacement overlap."); - } - }); - } - return formatter.unwrap((0, _populate.default)(metadata, replacements ? Object.assign(replacements, defaultReplacements) : defaultReplacements)); - }; - }; +Yallist.prototype.getReverse = function (n) { + for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.prev + } + if (i === n && walker !== null) { + return walker.value + } } -function buildLiteralData(formatter, tpl, opts) { - let names; - let nameSet; - let metadata; - let prefix = ""; - do { - prefix += "$"; - const result = buildTemplateCode(tpl, prefix); - names = result.names; - nameSet = new Set(names); - metadata = (0, _parse.default)(formatter, formatter.code(result.code), { - parser: opts.parser, - placeholderWhitelist: new Set(result.names.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])), - placeholderPattern: opts.placeholderPattern, - preserveComments: opts.preserveComments, - syntacticPlaceholders: opts.syntacticPlaceholders - }); - } while (metadata.placeholders.some(placeholder => placeholder.isDuplicate && nameSet.has(placeholder.name))); - return { - metadata, - names - }; + +Yallist.prototype.map = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.head; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.next + } + return res } -function buildTemplateCode(tpl, prefix) { - const names = []; - let code = tpl[0]; - for (let i = 1; i < tpl.length; i++) { - const value = `${prefix}${i - 1}`; - names.push(value); - code += value + tpl[i]; + +Yallist.prototype.mapReverse = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.tail; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.prev } - return { - names, - code - }; + return res } -//# sourceMappingURL=literal.js.map +Yallist.prototype.reduce = function (fn, initial) { + var acc + var walker = this.head + if (arguments.length > 1) { + acc = initial + } else if (this.head) { + walker = this.head.next + acc = this.head.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } + for (var i = 0; walker !== null; i++) { + acc = fn(acc, walker.value, i) + walker = walker.next + } -/***/ }), + return acc +} -/***/ 67723: -/***/ (function(__unused_webpack_module, exports) { +Yallist.prototype.reduceReverse = function (fn, initial) { + var acc + var walker = this.tail + if (arguments.length > 1) { + acc = initial + } else if (this.tail) { + walker = this.tail.prev + acc = this.tail.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } -"use strict"; + for (var i = this.length - 1; walker !== null; i--) { + acc = fn(acc, walker.value, i) + walker = walker.prev + } + return acc +} -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.merge = merge; -exports.normalizeReplacements = normalizeReplacements; -exports.validate = validate; -const _excluded = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +Yallist.prototype.toArray = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.head; walker !== null; i++) { + arr[i] = walker.value + walker = walker.next + } + return arr +} -function merge(a, b) { - const { - placeholderWhitelist = a.placeholderWhitelist, - placeholderPattern = a.placeholderPattern, - preserveComments = a.preserveComments, - syntacticPlaceholders = a.syntacticPlaceholders - } = b; - return { - parser: Object.assign({}, a.parser, b.parser), - placeholderWhitelist, - placeholderPattern, - preserveComments, - syntacticPlaceholders - }; +Yallist.prototype.toArrayReverse = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.tail; walker !== null; i++) { + arr[i] = walker.value + walker = walker.prev + } + return arr } -function validate(opts) { - if (opts != null && typeof opts !== "object") { - throw new Error("Unknown template options."); + +Yallist.prototype.slice = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length } - const _ref = opts || {}, - { - placeholderWhitelist, - placeholderPattern, - preserveComments, - syntacticPlaceholders - } = _ref, - parser = _objectWithoutPropertiesLoose(_ref, _excluded); - if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) { - throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); + from = from || 0 + if (from < 0) { + from += this.length } - if (placeholderPattern != null && !(placeholderPattern instanceof RegExp) && placeholderPattern !== false) { - throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); + var ret = new Yallist() + if (to < from || to < 0) { + return ret } - if (preserveComments != null && typeof preserveComments !== "boolean") { - throw new Error("'.preserveComments' must be a boolean, null, or undefined"); + if (from < 0) { + from = 0 } - if (syntacticPlaceholders != null && typeof syntacticPlaceholders !== "boolean") { - throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined"); + if (to > this.length) { + to = this.length } - if (syntacticPlaceholders === true && (placeholderWhitelist != null || placeholderPattern != null)) { - throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); + for (var i = 0, walker = this.head; walker !== null && i < from; i++) { + walker = walker.next } - return { - parser, - placeholderWhitelist: placeholderWhitelist || undefined, - placeholderPattern: placeholderPattern == null ? undefined : placeholderPattern, - preserveComments: preserveComments == null ? undefined : preserveComments, - syntacticPlaceholders: syntacticPlaceholders == null ? undefined : syntacticPlaceholders - }; -} -function normalizeReplacements(replacements) { - if (Array.isArray(replacements)) { - return replacements.reduce((acc, replacement, i) => { - acc["$" + i] = replacement; - return acc; - }, {}); - } else if (typeof replacements === "object" || replacements == null) { - return replacements || undefined; + for (; walker !== null && i < to; i++, walker = walker.next) { + ret.push(walker.value) } - throw new Error("Template replacements must be an array, object, null, or undefined"); + return ret } -//# sourceMappingURL=options.js.map - - -/***/ }), - -/***/ 25140: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = parseAndBuildMetadata; -var _t = __nccwpck_require__(53501); -var _parser = __nccwpck_require__(42973); -var _codeFrame = __nccwpck_require__(93995); -const { - isCallExpression, - isExpressionStatement, - isFunction, - isIdentifier, - isJSXIdentifier, - isNewExpression, - isPlaceholder, - isStatement, - isStringLiteral, - removePropertiesDeep, - traverse -} = _t; -const PATTERN = /^[_$A-Z0-9]+$/; -function parseAndBuildMetadata(formatter, code, opts) { - const { - placeholderWhitelist, - placeholderPattern, - preserveComments, - syntacticPlaceholders - } = opts; - const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders); - removePropertiesDeep(ast, { - preserveComments - }); - formatter.validate(ast); - const syntactic = { - placeholders: [], - placeholderNames: new Set() - }; - const legacy = { - placeholders: [], - placeholderNames: new Set() - }; - const isLegacyRef = { - value: undefined - }; - traverse(ast, placeholderVisitorHandler, { - syntactic, - legacy, - isLegacyRef, - placeholderWhitelist, - placeholderPattern, - syntacticPlaceholders - }); - return Object.assign({ - ast - }, isLegacyRef.value ? legacy : syntactic); -} -function placeholderVisitorHandler(node, ancestors, state) { - var _state$placeholderWhi; - let name; - if (isPlaceholder(node)) { - if (state.syntacticPlaceholders === false) { - throw new Error("%%foo%%-style placeholders can't be used when " + "'.syntacticPlaceholders' is false."); - } else { - name = node.name.name; - state.isLegacyRef.value = false; - } - } else if (state.isLegacyRef.value === false || state.syntacticPlaceholders) { - return; - } else if (isIdentifier(node) || isJSXIdentifier(node)) { - name = node.name; - state.isLegacyRef.value = true; - } else if (isStringLiteral(node)) { - name = node.value; - state.isLegacyRef.value = true; - } else { - return; +Yallist.prototype.sliceReverse = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length + } + from = from || 0 + if (from < 0) { + from += this.length + } + var ret = new Yallist() + if (to < from || to < 0) { + return ret + } + if (from < 0) { + from = 0 + } + if (to > this.length) { + to = this.length } - if (!state.isLegacyRef.value && (state.placeholderPattern != null || state.placeholderWhitelist != null)) { - throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); + for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { + walker = walker.prev } - if (state.isLegacyRef.value && (state.placeholderPattern === false || !(state.placeholderPattern || PATTERN).test(name)) && !((_state$placeholderWhi = state.placeholderWhitelist) != null && _state$placeholderWhi.has(name))) { - return; + for (; walker !== null && i > from; i--, walker = walker.prev) { + ret.push(walker.value) } + return ret +} - ancestors = ancestors.slice(); - const { - node: parent, - key - } = ancestors[ancestors.length - 1]; - let type; - if (isStringLiteral(node) || isPlaceholder(node, { - expectedNode: "StringLiteral" - })) { - type = "string"; - } else if (isNewExpression(parent) && key === "arguments" || isCallExpression(parent) && key === "arguments" || isFunction(parent) && key === "params") { - type = "param"; - } else if (isExpressionStatement(parent) && !isPlaceholder(node)) { - type = "statement"; - ancestors = ancestors.slice(0, -1); - } else if (isStatement(node) && isPlaceholder(node)) { - type = "statement"; - } else { - type = "other"; +Yallist.prototype.splice = function (start, deleteCount /*, ...nodes */) { + if (start > this.length) { + start = this.length - 1 } - const { - placeholders, - placeholderNames - } = state.isLegacyRef.value ? state.legacy : state.syntactic; - placeholders.push({ - name, - type, - resolve: ast => resolveAncestors(ast, ancestors), - isDuplicate: placeholderNames.has(name) - }); - placeholderNames.add(name); -} -function resolveAncestors(ast, ancestors) { - let parent = ast; - for (let i = 0; i < ancestors.length - 1; i++) { - const { - key, - index - } = ancestors[i]; - if (index === undefined) { - parent = parent[key]; - } else { - parent = parent[key][index]; - } + if (start < 0) { + start = this.length + start; } - const { - key, - index - } = ancestors[ancestors.length - 1]; - return { - parent, - key, - index - }; -} -function parseWithCodeFrame(code, parserOpts, syntacticPlaceholders) { - const plugins = (parserOpts.plugins || []).slice(); - if (syntacticPlaceholders !== false) { - plugins.push("placeholders"); + + for (var i = 0, walker = this.head; walker !== null && i < start; i++) { + walker = walker.next } - parserOpts = Object.assign({ - allowReturnOutsideFunction: true, - allowSuperOutsideMethod: true, - sourceType: "module" - }, parserOpts, { - plugins - }); - try { - return (0, _parser.parse)(code, parserOpts); - } catch (err) { - const loc = err.loc; - if (loc) { - err.message += "\n" + (0, _codeFrame.codeFrameColumns)(code, { - start: loc - }); - err.code = "BABEL_TEMPLATE_PARSE_ERROR"; - } - throw err; + + var ret = [] + for (var i = 0; walker && i < deleteCount; i++) { + ret.push(walker.value) + walker = this.removeNode(walker) + } + if (walker === null) { + walker = this.tail } -} -//# sourceMappingURL=parse.js.map + if (walker !== this.head && walker !== this.tail) { + walker = walker.prev + } + for (var i = 2; i < arguments.length; i++) { + walker = insert(this, walker, arguments[i]) + } + return ret; +} -/***/ }), +Yallist.prototype.reverse = function () { + var head = this.head + var tail = this.tail + for (var walker = head; walker !== null; walker = walker.prev) { + var p = walker.prev + walker.prev = walker.next + walker.next = p + } + this.head = tail + this.tail = head + return this +} -/***/ 91792: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +function insert (self, node, value) { + var inserted = node === self.head ? + new Node(value, null, node, self) : + new Node(value, node, node.next, self) -"use strict"; + if (inserted.next === null) { + self.tail = inserted + } + if (inserted.prev === null) { + self.head = inserted + } + self.length++ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = populatePlaceholders; -var _t = __nccwpck_require__(53501); -const { - blockStatement, - cloneNode, - emptyStatement, - expressionStatement, - identifier, - isStatement, - isStringLiteral, - stringLiteral, - validate -} = _t; -function populatePlaceholders(metadata, replacements) { - const ast = cloneNode(metadata.ast); - if (replacements) { - metadata.placeholders.forEach(placeholder => { - if (!Object.prototype.hasOwnProperty.call(replacements, placeholder.name)) { - const placeholderName = placeholder.name; - throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a - placeholder you may want to consider passing one of the following options to @babel/template: - - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])} - - { placeholderPattern: /^${placeholderName}$/ }`); - } - }); - Object.keys(replacements).forEach(key => { - if (!metadata.placeholderNames.has(key)) { - throw new Error(`Unknown substitution "${key}" given`); - } - }); + return inserted +} + +function push (self, item) { + self.tail = new Node(item, self.tail, null, self) + if (!self.head) { + self.head = self.tail } + self.length++ +} - metadata.placeholders.slice().reverse().forEach(placeholder => { - try { - applyReplacement(placeholder, ast, replacements && replacements[placeholder.name] || null); - } catch (e) { - e.message = `@babel/template placeholder "${placeholder.name}": ${e.message}`; - throw e; - } - }); - return ast; +function unshift (self, item) { + self.head = new Node(item, null, self.head, self) + if (!self.tail) { + self.tail = self.head + } + self.length++ } -function applyReplacement(placeholder, ast, replacement) { - if (placeholder.isDuplicate) { - if (Array.isArray(replacement)) { - replacement = replacement.map(node => cloneNode(node)); - } else if (typeof replacement === "object") { - replacement = cloneNode(replacement); - } + +function Node (value, prev, next, list) { + if (!(this instanceof Node)) { + return new Node(value, prev, next, list) } - const { - parent, - key, - index - } = placeholder.resolve(ast); - if (placeholder.type === "string") { - if (typeof replacement === "string") { - replacement = stringLiteral(replacement); - } - if (!replacement || !isStringLiteral(replacement)) { - throw new Error("Expected string substitution"); - } - } else if (placeholder.type === "statement") { - if (index === undefined) { - if (!replacement) { - replacement = emptyStatement(); - } else if (Array.isArray(replacement)) { - replacement = blockStatement(replacement); - } else if (typeof replacement === "string") { - replacement = expressionStatement(identifier(replacement)); - } else if (!isStatement(replacement)) { - replacement = expressionStatement(replacement); - } - } else { - if (replacement && !Array.isArray(replacement)) { - if (typeof replacement === "string") { - replacement = identifier(replacement); - } - if (!isStatement(replacement)) { - replacement = expressionStatement(replacement); - } - } - } - } else if (placeholder.type === "param") { - if (typeof replacement === "string") { - replacement = identifier(replacement); - } - if (index === undefined) throw new Error("Assertion failure."); + + this.list = list + this.value = value + + if (prev) { + prev.next = this + this.prev = prev } else { - if (typeof replacement === "string") { - replacement = identifier(replacement); - } - if (Array.isArray(replacement)) { - throw new Error("Cannot replace single expression with an array."); - } + this.prev = null } - if (index === undefined) { - validate(parent, key, replacement); - parent[key] = replacement; + + if (next) { + next.prev = this + this.next = next } else { - const items = parent[key].slice(); - if (placeholder.type === "statement" || placeholder.type === "param") { - if (replacement == null) { - items.splice(index, 1); - } else if (Array.isArray(replacement)) { - items.splice(index, 1, ...replacement); - } else { - items[index] = replacement; - } - } else { - items[index] = replacement; - } - validate(parent, key, items); - parent[key] = items; + this.next = null } } -//# sourceMappingURL=populate.js.map +try { + // add if support for Symbol.iterator is present + __nccwpck_require__(42889)(Yallist) +} catch (er) {} /***/ }), -/***/ 45814: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 33234: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -"use strict"; +// Babel >= 7.22.0 renamed packages +// https://babeljs.io/blog/2023/05/26/7.22.0 +const babelTransformDeps = { + exportNamespaceFrom: () => __nccwpck_require__(29722), + classProperties: () => __nccwpck_require__(60281), + privateMethods: () => __nccwpck_require__(15351), + privatePropertyInObject: () => __nccwpck_require__(22245) +} +module.exports = { + codeFrame: () => __nccwpck_require__(77956), + core: () => __nccwpck_require__(65258), + generator: () => __nccwpck_require__(8860), + helperModuleImports: () => __nccwpck_require__(52408), + parser: () => __nccwpck_require__(59067), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = stringTemplate; -var _options = __nccwpck_require__(67723); -var _parse = __nccwpck_require__(25140); -var _populate = __nccwpck_require__(91792); -function stringTemplate(formatter, code, opts) { - code = formatter.code(code); - let metadata; - return arg => { - const replacements = (0, _options.normalizeReplacements)(arg); - if (!metadata) metadata = (0, _parse.default)(formatter, code, opts); - return formatter.unwrap((0, _populate.default)(metadata, replacements)); - }; -} + // tc39 + pluginProposalDecorators: () => __nccwpck_require__(25932), + pluginProposalDoExpressions: () => + __nccwpck_require__(27638), + pluginProposalExportDefaultFrom: () => + __nccwpck_require__(97933), + pluginProposalExportNamespaceFrom: babelTransformDeps.exportNamespaceFrom, + pluginTransformExportNamespaceFrom: babelTransformDeps.exportNamespaceFrom, + pluginProposalFunctionBind: () => + __nccwpck_require__(56394), + pluginProposalPartialApplication: () => + __nccwpck_require__(36351), + pluginProposalPipelineOperator: () => + __nccwpck_require__(86804), + pluginProposalRecordAndTuple: () => + __nccwpck_require__(56639), -//# sourceMappingURL=string.js.map + pluginTransformRuntime: () => __nccwpck_require__(71850), + + // preset + presetEnv: () => __nccwpck_require__(43342), + presetReact: () => __nccwpck_require__(79092), + presetTypescript: () => __nccwpck_require__(8413), + + register: () => __nccwpck_require__(90059), + template: () => __nccwpck_require__(98063), + traverse: () => __nccwpck_require__(22382), + types: () => __nccwpck_require__(68948), + + // class-properties: class 使用 loose 模式需要 + pluginProposalClassProperties: babelTransformDeps.classProperties, + pluginTransformClassProperties: babelTransformDeps.classProperties, + // private-methods + pluginProposalPrivateMethods: babelTransformDeps.privateMethods, + pluginTransformPrivateMethods: babelTransformDeps.privateMethods, + // private-property-in-object + pluginProposalPrivatePropertyInObject: babelTransformDeps.privatePropertyInObject, + pluginTransformPrivatePropertyInObject: babelTransformDeps.privatePropertyInObject +}; /***/ }), -/***/ 42923: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 34755: +/***/ (function(module) { "use strict"; +module.exports = require("@umijs/utils/compiled/debug"); +/***/ }), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = createTemplateBuilder; -var _options = __nccwpck_require__(53689); -var _string = __nccwpck_require__(59951); -var _literal = __nccwpck_require__(85218); -const NO_PLACEHOLDER = (0, _options.validate)({ - placeholderPattern: false -}); -function createTemplateBuilder(formatter, defaultOpts) { - const templateFnCache = new WeakMap(); - const templateAstCache = new WeakMap(); - const cachedOpts = defaultOpts || (0, _options.validate)(null); - return Object.assign((tpl, ...args) => { - if (typeof tpl === "string") { - if (args.length > 1) throw new Error("Unexpected extra params."); - return extendedTrace((0, _string.default)(formatter, tpl, (0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])))); - } else if (Array.isArray(tpl)) { - let builder = templateFnCache.get(tpl); - if (!builder) { - builder = (0, _literal.default)(formatter, tpl, cachedOpts); - templateFnCache.set(tpl, builder); - } - return extendedTrace(builder(args)); - } else if (typeof tpl === "object" && tpl) { - if (args.length > 0) throw new Error("Unexpected extra params."); - return createTemplateBuilder(formatter, (0, _options.merge)(cachedOpts, (0, _options.validate)(tpl))); - } - throw new Error(`Unexpected template param ${typeof tpl}`); - }, { - ast: (tpl, ...args) => { - if (typeof tpl === "string") { - if (args.length > 1) throw new Error("Unexpected extra params."); - return (0, _string.default)(formatter, tpl, (0, _options.merge)((0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])), NO_PLACEHOLDER))(); - } else if (Array.isArray(tpl)) { - let builder = templateAstCache.get(tpl); - if (!builder) { - builder = (0, _literal.default)(formatter, tpl, (0, _options.merge)(cachedOpts, NO_PLACEHOLDER)); - templateAstCache.set(tpl, builder); - } - return builder(args)(); - } - throw new Error(`Unexpected template param ${typeof tpl}`); - } - }); -} -function extendedTrace(fn) { - let rootStack = ""; - try { - throw new Error(); - } catch (error) { - if (error.stack) { - rootStack = error.stack.split("\n").slice(3).join("\n"); - } - } - return arg => { - try { - return fn(arg); - } catch (err) { - err.stack += `\n =============\n${rootStack}`; - throw err; - } - }; -} - -//# sourceMappingURL=builder.js.map +/***/ 39491: +/***/ (function(module) { +"use strict"; +module.exports = require("assert"); /***/ }), -/***/ 22662: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 57147: +/***/ (function(module) { "use strict"; +module.exports = require("fs"); +/***/ }), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.statements = exports.statement = exports.smart = exports.program = exports.expression = void 0; -var _t = __nccwpck_require__(53501); -const { - assertExpressionStatement -} = _t; -function makeStatementFormatter(fn) { - return { - code: str => `/* @babel/template */;\n${str}`, - validate: () => {}, - unwrap: ast => { - return fn(ast.program.body.slice(1)); - } - }; -} -const smart = makeStatementFormatter(body => { - if (body.length > 1) { - return body; - } else { - return body[0]; - } -}); -exports.smart = smart; -const statements = makeStatementFormatter(body => body); -exports.statements = statements; -const statement = makeStatementFormatter(body => { - if (body.length === 0) { - throw new Error("Found nothing to return."); - } - if (body.length > 1) { - throw new Error("Found multiple statements but wanted one"); - } - return body[0]; -}); -exports.statement = statement; -const expression = { - code: str => `(\n${str}\n)`, - validate: ast => { - if (ast.program.body.length > 1) { - throw new Error("Found multiple statements but wanted one"); - } - if (expression.unwrap(ast).start === 0) { - throw new Error("Parse result included parens."); - } - }, - unwrap: ({ - program - }) => { - const [stmt] = program.body; - assertExpressionStatement(stmt); - return stmt.expression; - } -}; -exports.expression = expression; -const program = { - code: str => str, - validate: () => {}, - unwrap: ast => ast.program -}; -exports.program = program; +/***/ 98188: +/***/ (function(module) { -//# sourceMappingURL=formatters.js.map +"use strict"; +module.exports = require("module"); +/***/ }), + +/***/ 22037: +/***/ (function(module) { + +"use strict"; +module.exports = require("os"); /***/ }), -/***/ 52738: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 71017: +/***/ (function(module) { "use strict"; +module.exports = require("path"); +/***/ }), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.statements = exports.statement = exports.smart = exports.program = exports.expression = exports["default"] = void 0; -var formatters = __nccwpck_require__(22662); -var _builder = __nccwpck_require__(42923); -const smart = (0, _builder.default)(formatters.smart); -exports.smart = smart; -const statement = (0, _builder.default)(formatters.statement); -exports.statement = statement; -const statements = (0, _builder.default)(formatters.statements); -exports.statements = statements; -const expression = (0, _builder.default)(formatters.expression); -exports.expression = expression; -const program = (0, _builder.default)(formatters.program); -exports.program = program; -var _default = Object.assign(smart.bind(undefined), { - smart, - statement, - statements, - expression, - program, - ast: smart.ast -}); -exports["default"] = _default; +/***/ 77282: +/***/ (function(module) { + +"use strict"; +module.exports = require("process"); -//# sourceMappingURL=index.js.map +/***/ }), + +/***/ 42304: +/***/ (function(module) { +"use strict"; +module.exports = require("regenerate"); /***/ }), -/***/ 85218: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 57310: +/***/ (function(module) { "use strict"; +module.exports = require("url"); +/***/ }), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = literalTemplate; -var _options = __nccwpck_require__(53689); -var _parse = __nccwpck_require__(53765); -var _populate = __nccwpck_require__(13678); -function literalTemplate(formatter, tpl, opts) { - const { - metadata, - names - } = buildLiteralData(formatter, tpl, opts); - return arg => { - const defaultReplacements = {}; - arg.forEach((replacement, i) => { - defaultReplacements[names[i]] = replacement; - }); - return arg => { - const replacements = (0, _options.normalizeReplacements)(arg); - if (replacements) { - Object.keys(replacements).forEach(key => { - if (Object.prototype.hasOwnProperty.call(defaultReplacements, key)) { - throw new Error("Unexpected replacement overlap."); - } - }); - } - return formatter.unwrap((0, _populate.default)(metadata, replacements ? Object.assign(replacements, defaultReplacements) : defaultReplacements)); - }; - }; -} -function buildLiteralData(formatter, tpl, opts) { - let prefix = "BABEL_TPL$"; - const raw = tpl.join(""); - do { - prefix = "$$" + prefix; - } while (raw.includes(prefix)); - const { - names, - code - } = buildTemplateCode(tpl, prefix); - const metadata = (0, _parse.default)(formatter, formatter.code(code), { - parser: opts.parser, - placeholderWhitelist: new Set(names.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])), - placeholderPattern: opts.placeholderPattern, - preserveComments: opts.preserveComments, - syntacticPlaceholders: opts.syntacticPlaceholders - }); - return { - metadata, - names - }; -} -function buildTemplateCode(tpl, prefix) { - const names = []; - let code = tpl[0]; - for (let i = 1; i < tpl.length; i++) { - const value = `${prefix}${i - 1}`; - names.push(value); - code += value + tpl[i]; - } - return { - names, - code - }; -} - -//# sourceMappingURL=literal.js.map +/***/ 73837: +/***/ (function(module) { +"use strict"; +module.exports = require("util"); /***/ }), -/***/ 53689: -/***/ (function(__unused_webpack_module, exports) { +/***/ 84655: +/***/ (function(module) { "use strict"; +module.exports = require("v8"); +/***/ }), -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.merge = merge; -exports.normalizeReplacements = normalizeReplacements; -exports.validate = validate; -const _excluded = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function merge(a, b) { - const { - placeholderWhitelist = a.placeholderWhitelist, - placeholderPattern = a.placeholderPattern, - preserveComments = a.preserveComments, - syntacticPlaceholders = a.syntacticPlaceholders - } = b; - return { - parser: Object.assign({}, a.parser, b.parser), - placeholderWhitelist, - placeholderPattern, - preserveComments, - syntacticPlaceholders - }; -} -function validate(opts) { - if (opts != null && typeof opts !== "object") { - throw new Error("Unknown template options."); - } - const _ref = opts || {}, - { - placeholderWhitelist, - placeholderPattern, - preserveComments, - syntacticPlaceholders - } = _ref, - parser = _objectWithoutPropertiesLoose(_ref, _excluded); - if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) { - throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); - } - if (placeholderPattern != null && !(placeholderPattern instanceof RegExp) && placeholderPattern !== false) { - throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); - } - if (preserveComments != null && typeof preserveComments !== "boolean") { - throw new Error("'.preserveComments' must be a boolean, null, or undefined"); - } - if (syntacticPlaceholders != null && typeof syntacticPlaceholders !== "boolean") { - throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined"); - } - if (syntacticPlaceholders === true && (placeholderWhitelist != null || placeholderPattern != null)) { - throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); - } - return { - parser, - placeholderWhitelist: placeholderWhitelist || undefined, - placeholderPattern: placeholderPattern == null ? undefined : placeholderPattern, - preserveComments: preserveComments == null ? undefined : preserveComments, - syntacticPlaceholders: syntacticPlaceholders == null ? undefined : syntacticPlaceholders - }; -} -function normalizeReplacements(replacements) { - if (Array.isArray(replacements)) { - return replacements.reduce((acc, replacement, i) => { - acc["$" + i] = replacement; - return acc; - }, {}); - } else if (typeof replacements === "object" || replacements == null) { - return replacements || undefined; - } - throw new Error("Template replacements must be an array, object, null, or undefined"); -} - -//# sourceMappingURL=options.js.map +/***/ 71267: +/***/ (function(module) { +"use strict"; +module.exports = require("worker_threads"); /***/ }), -/***/ 53765: +/***/ 77956: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -114190,357 +28108,204 @@ function normalizeReplacements(replacements) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = parseAndBuildMetadata; -var _t = __nccwpck_require__(53501); -var _parser = __nccwpck_require__(42973); -var _codeFrame = __nccwpck_require__(93995); -const { - isCallExpression, - isExpressionStatement, - isFunction, - isIdentifier, - isJSXIdentifier, - isNewExpression, - isPlaceholder, - isStatement, - isStringLiteral, - removePropertiesDeep, - traverse -} = _t; -const PATTERN = /^[_$A-Z0-9]+$/; -function parseAndBuildMetadata(formatter, code, opts) { - const { - placeholderWhitelist, - placeholderPattern, - preserveComments, - syntacticPlaceholders - } = opts; - const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders); - removePropertiesDeep(ast, { - preserveComments - }); - formatter.validate(ast); - const state = { - syntactic: { - placeholders: [], - placeholderNames: new Set() - }, - legacy: { - placeholders: [], - placeholderNames: new Set() - }, - placeholderWhitelist, - placeholderPattern, - syntacticPlaceholders - }; - traverse(ast, placeholderVisitorHandler, state); - return Object.assign({ - ast - }, state.syntactic.placeholders.length ? state.syntactic : state.legacy); -} -function placeholderVisitorHandler(node, ancestors, state) { - var _state$placeholderWhi; - let name; - let hasSyntacticPlaceholders = state.syntactic.placeholders.length > 0; - if (isPlaceholder(node)) { - if (state.syntacticPlaceholders === false) { - throw new Error("%%foo%%-style placeholders can't be used when " + "'.syntacticPlaceholders' is false."); - } - name = node.name.name; - hasSyntacticPlaceholders = true; - } else if (hasSyntacticPlaceholders || state.syntacticPlaceholders) { - return; - } else if (isIdentifier(node) || isJSXIdentifier(node)) { - name = node.name; - } else if (isStringLiteral(node)) { - name = node.value; - } else { - return; - } - if (hasSyntacticPlaceholders && (state.placeholderPattern != null || state.placeholderWhitelist != null)) { - throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); - } - if (!hasSyntacticPlaceholders && (state.placeholderPattern === false || !(state.placeholderPattern || PATTERN).test(name)) && !((_state$placeholderWhi = state.placeholderWhitelist) != null && _state$placeholderWhi.has(name))) { - return; - } - ancestors = ancestors.slice(); - const { - node: parent, - key - } = ancestors[ancestors.length - 1]; - let type; - if (isStringLiteral(node) || isPlaceholder(node, { - expectedNode: "StringLiteral" - })) { - type = "string"; - } else if (isNewExpression(parent) && key === "arguments" || isCallExpression(parent) && key === "arguments" || isFunction(parent) && key === "params") { - type = "param"; - } else if (isExpressionStatement(parent) && !isPlaceholder(node)) { - type = "statement"; - ancestors = ancestors.slice(0, -1); - } else if (isStatement(node) && isPlaceholder(node)) { - type = "statement"; - } else { - type = "other"; +exports.codeFrameColumns = codeFrameColumns; +exports["default"] = _default; +var _highlight = __nccwpck_require__(39072); +var _chalk = _interopRequireWildcard(__nccwpck_require__(56673), true); +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +let chalkWithForcedColor = undefined; +function getChalk(forceColor) { + if (forceColor) { + var _chalkWithForcedColor; + (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({ + enabled: true, + level: 1 + }); + return chalkWithForcedColor; } - const { - placeholders, - placeholderNames - } = !hasSyntacticPlaceholders ? state.legacy : state.syntactic; - placeholders.push({ - name, - type, - resolve: ast => resolveAncestors(ast, ancestors), - isDuplicate: placeholderNames.has(name) - }); - placeholderNames.add(name); + return _chalk.default; } -function resolveAncestors(ast, ancestors) { - let parent = ast; - for (let i = 0; i < ancestors.length - 1; i++) { - const { - key, - index - } = ancestors[i]; - if (index === undefined) { - parent = parent[key]; - } else { - parent = parent[key][index]; - } - } - const { - key, - index - } = ancestors[ancestors.length - 1]; +let deprecationWarningShown = false; +function getDefs(chalk) { return { - parent, - key, - index + gutter: chalk.grey, + marker: chalk.red.bold, + message: chalk.red.bold }; } -function parseWithCodeFrame(code, parserOpts, syntacticPlaceholders) { - const plugins = (parserOpts.plugins || []).slice(); - if (syntacticPlaceholders !== false) { - plugins.push("placeholders"); +const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; +function getMarkerLines(loc, source, opts) { + const startLoc = Object.assign({ + column: 0, + line: -1 + }, loc.start); + const endLoc = Object.assign({}, startLoc, loc.end); + const { + linesAbove = 2, + linesBelow = 3 + } = opts || {}; + const startLine = startLoc.line; + const startColumn = startLoc.column; + const endLine = endLoc.line; + const endColumn = endLoc.column; + let start = Math.max(startLine - (linesAbove + 1), 0); + let end = Math.min(source.length, endLine + linesBelow); + if (startLine === -1) { + start = 0; } - parserOpts = Object.assign({ - allowReturnOutsideFunction: true, - allowSuperOutsideMethod: true, - sourceType: "module" - }, parserOpts, { - plugins - }); - try { - return (0, _parser.parse)(code, parserOpts); - } catch (err) { - const loc = err.loc; - if (loc) { - err.message += "\n" + (0, _codeFrame.codeFrameColumns)(code, { - start: loc - }); - err.code = "BABEL_TEMPLATE_PARSE_ERROR"; - } - throw err; + if (endLine === -1) { + end = source.length; } -} - -//# sourceMappingURL=parse.js.map - - -/***/ }), - -/***/ 13678: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = populatePlaceholders; -var _t = __nccwpck_require__(53501); -const { - blockStatement, - cloneNode, - emptyStatement, - expressionStatement, - identifier, - isStatement, - isStringLiteral, - stringLiteral, - validate -} = _t; -function populatePlaceholders(metadata, replacements) { - const ast = cloneNode(metadata.ast); - if (replacements) { - metadata.placeholders.forEach(placeholder => { - if (!Object.prototype.hasOwnProperty.call(replacements, placeholder.name)) { - const placeholderName = placeholder.name; - throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a - placeholder you may want to consider passing one of the following options to @babel/template: - - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])} - - { placeholderPattern: /^${placeholderName}$/ }`); - } - }); - Object.keys(replacements).forEach(key => { - if (!metadata.placeholderNames.has(key)) { - throw new Error(`Unknown substitution "${key}" given`); + const lineDiff = endLine - startLine; + const markerLines = {}; + if (lineDiff) { + for (let i = 0; i <= lineDiff; i++) { + const lineNumber = i + startLine; + if (!startColumn) { + markerLines[lineNumber] = true; + } else if (i === 0) { + const sourceLength = source[lineNumber - 1].length; + markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1]; + } else if (i === lineDiff) { + markerLines[lineNumber] = [0, endColumn]; + } else { + const sourceLength = source[lineNumber - i].length; + markerLines[lineNumber] = [0, sourceLength]; } - }); - } - metadata.placeholders.slice().reverse().forEach(placeholder => { - try { - applyReplacement(placeholder, ast, replacements && replacements[placeholder.name] || null); - } catch (e) { - e.message = `@babel/template placeholder "${placeholder.name}": ${e.message}`; - throw e; } - }); - return ast; -} -function applyReplacement(placeholder, ast, replacement) { - if (placeholder.isDuplicate) { - if (Array.isArray(replacement)) { - replacement = replacement.map(node => cloneNode(node)); - } else if (typeof replacement === "object") { - replacement = cloneNode(replacement); + } else { + if (startColumn === endColumn) { + if (startColumn) { + markerLines[startLine] = [startColumn, 0]; + } else { + markerLines[startLine] = true; + } + } else { + markerLines[startLine] = [startColumn, endColumn - startColumn]; } } + return { + start, + end, + markerLines + }; +} +function codeFrameColumns(rawLines, loc, opts = {}) { + const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); + const chalk = getChalk(opts.forceColor); + const defs = getDefs(chalk); + const maybeHighlight = (chalkFn, string) => { + return highlighted ? chalkFn(string) : string; + }; + const lines = rawLines.split(NEWLINE); const { - parent, - key, - index - } = placeholder.resolve(ast); - if (placeholder.type === "string") { - if (typeof replacement === "string") { - replacement = stringLiteral(replacement); - } - if (!replacement || !isStringLiteral(replacement)) { - throw new Error("Expected string substitution"); - } - } else if (placeholder.type === "statement") { - if (index === undefined) { - if (!replacement) { - replacement = emptyStatement(); - } else if (Array.isArray(replacement)) { - replacement = blockStatement(replacement); - } else if (typeof replacement === "string") { - replacement = expressionStatement(identifier(replacement)); - } else if (!isStatement(replacement)) { - replacement = expressionStatement(replacement); - } - } else { - if (replacement && !Array.isArray(replacement)) { - if (typeof replacement === "string") { - replacement = identifier(replacement); - } - if (!isStatement(replacement)) { - replacement = expressionStatement(replacement); + start, + end, + markerLines + } = getMarkerLines(loc, lines, opts); + const hasColumns = loc.start && typeof loc.start.column === "number"; + const numberMaxWidth = String(end).length; + const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines; + let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => { + const number = start + 1 + index; + const paddedNumber = ` ${number}`.slice(-numberMaxWidth); + const gutter = ` ${paddedNumber} |`; + const hasMarker = markerLines[number]; + const lastMarkerLine = !markerLines[number + 1]; + if (hasMarker) { + let markerLine = ""; + if (Array.isArray(hasMarker)) { + const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " "); + const numberOfMarkers = hasMarker[1] || 1; + markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join(""); + if (lastMarkerLine && opts.message) { + markerLine += " " + maybeHighlight(defs.message, opts.message); } } + return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join(""); + } else { + return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`; } - } else if (placeholder.type === "param") { - if (typeof replacement === "string") { - replacement = identifier(replacement); - } - if (index === undefined) throw new Error("Assertion failure."); - } else { - if (typeof replacement === "string") { - replacement = identifier(replacement); - } - if (Array.isArray(replacement)) { - throw new Error("Cannot replace single expression with an array."); - } + }).join("\n"); + if (opts.message && !hasColumns) { + frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`; } - if (index === undefined) { - validate(parent, key, replacement); - parent[key] = replacement; + if (highlighted) { + return chalk.reset(frame); } else { - const items = parent[key].slice(); - if (placeholder.type === "statement" || placeholder.type === "param") { - if (replacement == null) { - items.splice(index, 1); - } else if (Array.isArray(replacement)) { - items.splice(index, 1, ...replacement); - } else { - items[index] = replacement; - } + return frame; + } +} +function _default(rawLines, lineNumber, colNumber, opts = {}) { + if (!deprecationWarningShown) { + deprecationWarningShown = true; + const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; + if (process.emitWarning) { + process.emitWarning(message, "DeprecationWarning"); } else { - items[index] = replacement; + const deprecationError = new Error(message); + deprecationError.name = "DeprecationWarning"; + console.warn(new Error(message)); } - validate(parent, key, items); - parent[key] = items; } + colNumber = Math.max(colNumber, 0); + const location = { + start: { + column: colNumber, + line: lineNumber + } + }; + return codeFrameColumns(rawLines, location, opts); } -//# sourceMappingURL=populate.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 59951: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 65838: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -"use strict"; +// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2 +module.exports = __nccwpck_require__(31203); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = stringTemplate; -var _options = __nccwpck_require__(53689); -var _parse = __nccwpck_require__(53765); -var _populate = __nccwpck_require__(13678); -function stringTemplate(formatter, code, opts) { - code = formatter.code(code); - let metadata; - return arg => { - const replacements = (0, _options.normalizeReplacements)(arg); - if (!metadata) metadata = (0, _parse.default)(formatter, code, opts); - return formatter.unwrap((0, _populate.default)(metadata, replacements)); - }; -} +/***/ }), -//# sourceMappingURL=string.js.map +/***/ 53643: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +module.exports = __nccwpck_require__(58621); /***/ }), -/***/ 52271: -/***/ (function(__unused_webpack_module, exports) { +/***/ 67181: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -"use strict"; +module.exports = __nccwpck_require__(75204); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.clear = clear; -exports.clearPath = clearPath; -exports.clearScope = clearScope; -exports.scope = exports.path = void 0; -let path = new WeakMap(); -exports.path = path; -let scope = new WeakMap(); -exports.scope = scope; -function clear() { - clearPath(); - clearScope(); -} -function clearPath() { - exports.path = path = new WeakMap(); -} -function clearScope() { - exports.scope = scope = new WeakMap(); -} +/***/ }), -//# sourceMappingURL=cache.js.map +/***/ 4748: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +module.exports = __nccwpck_require__(57780); + + +/***/ }), + +/***/ 48255: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +module.exports = __nccwpck_require__(21346); /***/ }), -/***/ 59569: +/***/ 40232: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -114549,122 +28314,268 @@ function clearScope() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -var _path = __nccwpck_require__(30263); -var _t = __nccwpck_require__(53501); -const { - VISITOR_KEYS -} = _t; -class TraversalContext { - constructor(scope, opts, state, parentPath) { - this.queue = null; - this.priorityQueue = null; - this.parentPath = parentPath; - this.scope = scope; - this.state = state; - this.opts = opts; - } - shouldVisit(node) { - const opts = this.opts; - if (opts.enter || opts.exit) return true; - if (opts[node.type]) return true; - const keys = VISITOR_KEYS[node.type]; - if (!(keys != null && keys.length)) return false; - for (const key of keys) { - if (node[key]) { - return true; - } +exports.assertSimpleType = assertSimpleType; +exports.makeStrongCache = makeStrongCache; +exports.makeStrongCacheSync = makeStrongCacheSync; +exports.makeWeakCache = makeWeakCache; +exports.makeWeakCacheSync = makeWeakCacheSync; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; +} +var _async = __nccwpck_require__(53846); +var _util = __nccwpck_require__(30298); +const synchronize = gen => { + return _gensync()(gen).sync; +}; +function* genTrue() { + return true; +} +function makeWeakCache(handler) { + return makeCachedFunction(WeakMap, handler); +} +function makeWeakCacheSync(handler) { + return synchronize(makeWeakCache(handler)); +} +function makeStrongCache(handler) { + return makeCachedFunction(Map, handler); +} +function makeStrongCacheSync(handler) { + return synchronize(makeStrongCache(handler)); +} +function makeCachedFunction(CallCache, handler) { + const callCacheSync = new CallCache(); + const callCacheAsync = new CallCache(); + const futureCache = new CallCache(); + return function* cachedFunction(arg, data) { + const asyncContext = yield* (0, _async.isAsync)(); + const callCache = asyncContext ? callCacheAsync : callCacheSync; + const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data); + if (cached.valid) return cached.value; + const cache = new CacheConfigurator(data); + const handlerResult = handler(arg, cache); + let finishLock; + let value; + if ((0, _util.isIterableIterator)(handlerResult)) { + value = yield* (0, _async.onFirstPause)(handlerResult, () => { + finishLock = setupAsyncLocks(cache, futureCache, arg); + }); + } else { + value = handlerResult; + } + updateFunctionCache(callCache, cache, arg, value); + if (finishLock) { + futureCache.delete(arg); + finishLock.release(value); + } + return value; + }; +} +function* getCachedValue(cache, arg, data) { + const cachedValue = cache.get(arg); + if (cachedValue) { + for (const { + value, + valid + } of cachedValue) { + if (yield* valid(data)) return { + valid: true, + value + }; } - return false; } - create(node, container, key, listKey) { - return _path.default.get({ - parentPath: this.parentPath, - parent: node, - container, - key: key, - listKey - }); + return { + valid: false, + value: null + }; +} +function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) { + const cached = yield* getCachedValue(callCache, arg, data); + if (cached.valid) { + return cached; } - maybeQueue(path, notPriority) { - if (this.queue) { - if (notPriority) { - this.queue.push(path); - } else { - this.priorityQueue.push(path); - } + if (asyncContext) { + const cached = yield* getCachedValue(futureCache, arg, data); + if (cached.valid) { + const value = yield* (0, _async.waitFor)(cached.value.promise); + return { + valid: true, + value + }; } } - visitMultiple(container, parent, listKey) { - if (container.length === 0) return false; - const queue = []; - for (let key = 0; key < container.length; key++) { - const node = container[key]; - if (node && this.shouldVisit(node)) { - queue.push(this.create(parent, container, key, listKey)); + return { + valid: false, + value: null + }; +} +function setupAsyncLocks(config, futureCache, arg) { + const finishLock = new Lock(); + updateFunctionCache(futureCache, config, arg, finishLock); + return finishLock; +} +function updateFunctionCache(cache, config, arg, value) { + if (!config.configured()) config.forever(); + let cachedValue = cache.get(arg); + config.deactivate(); + switch (config.mode()) { + case "forever": + cachedValue = [{ + value, + valid: genTrue + }]; + cache.set(arg, cachedValue); + break; + case "invalidate": + cachedValue = [{ + value, + valid: config.validator() + }]; + cache.set(arg, cachedValue); + break; + case "valid": + if (cachedValue) { + cachedValue.push({ + value, + valid: config.validator() + }); + } else { + cachedValue = [{ + value, + valid: config.validator() + }]; + cache.set(arg, cachedValue); } + } +} +class CacheConfigurator { + constructor(data) { + this._active = true; + this._never = false; + this._forever = false; + this._invalidate = false; + this._configured = false; + this._pairs = []; + this._data = void 0; + this._data = data; + } + simple() { + return makeSimpleConfigurator(this); + } + mode() { + if (this._never) return "never"; + if (this._forever) return "forever"; + if (this._invalidate) return "invalidate"; + return "valid"; + } + forever() { + if (!this._active) { + throw new Error("Cannot change caching after evaluation has completed."); } - return this.visitQueue(queue); + if (this._never) { + throw new Error("Caching has already been configured with .never()"); + } + this._forever = true; + this._configured = true; } - visitSingle(node, key) { - if (this.shouldVisit(node[key])) { - return this.visitQueue([this.create(node, node, key)]); - } else { - return false; + never() { + if (!this._active) { + throw new Error("Cannot change caching after evaluation has completed."); + } + if (this._forever) { + throw new Error("Caching has already been configured with .forever()"); } + this._never = true; + this._configured = true; } - visitQueue(queue) { - this.queue = queue; - this.priorityQueue = []; - const visited = new WeakSet(); - let stop = false; - for (const path of queue) { - path.resync(); - if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) { - path.pushContext(this); - } - if (path.key === null) continue; - const { - node - } = path; - if (visited.has(node)) continue; - if (node) visited.add(node); - if (path.visit()) { - stop = true; - break; - } - if (this.priorityQueue.length) { - stop = this.visitQueue(this.priorityQueue); - this.priorityQueue = []; - this.queue = queue; - if (stop) break; - } + using(handler) { + if (!this._active) { + throw new Error("Cannot change caching after evaluation has completed."); } - for (const path of queue) { - path.popContext(); + if (this._never || this._forever) { + throw new Error("Caching has already been configured with .never or .forever()"); } - this.queue = null; - return stop; + this._configured = true; + const key = handler(this._data); + const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`); + if ((0, _async.isThenable)(key)) { + return key.then(key => { + this._pairs.push([key, fn]); + return key; + }); + } + this._pairs.push([key, fn]); + return key; } - visit(node, key) { - const nodes = node[key]; - if (!nodes) return false; - if (Array.isArray(nodes)) { - return this.visitMultiple(nodes, node, key); - } else { - return this.visitSingle(node, key); + invalidate(handler) { + this._invalidate = true; + return this.using(handler); + } + validator() { + const pairs = this._pairs; + return function* (data) { + for (const [key, fn] of pairs) { + if (key !== (yield* fn(data))) return false; + } + return true; + }; + } + deactivate() { + this._active = false; + } + configured() { + return this._configured; + } +} +function makeSimpleConfigurator(cache) { + function cacheFn(val) { + if (typeof val === "boolean") { + if (val) cache.forever();else cache.never(); + return; } + return cache.using(() => assertSimpleType(val())); + } + cacheFn.forever = () => cache.forever(); + cacheFn.never = () => cache.never(); + cacheFn.using = cb => cache.using(() => assertSimpleType(cb())); + cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb())); + return cacheFn; +} +function assertSimpleType(value) { + if ((0, _async.isThenable)(value)) { + throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`); + } + if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") { + throw new Error("Cache keys must be either string, boolean, number, null, or undefined."); } + return value; } -exports["default"] = TraversalContext; +class Lock { + constructor() { + this.released = false; + this.promise = void 0; + this._resolve = void 0; + this.promise = new Promise(resolve => { + this._resolve = resolve; + }); + } + release(value) { + this.released = true; + this._resolve(value); + } +} +0 && 0; -//# sourceMappingURL=context.js.map +//# sourceMappingURL=caching.js.map /***/ }), -/***/ 96461: -/***/ (function(__unused_webpack_module, exports) { +/***/ 1704: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -114672,320 +28583,475 @@ exports["default"] = TraversalContext; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -class Hub { - getCode() {} - getScope() {} - addHelper() { - throw new Error("Helpers are not supported by the default hub."); +exports.buildPresetChain = buildPresetChain; +exports.buildPresetChainWalker = void 0; +exports.buildRootChain = buildRootChain; +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; +} +function _debug() { + const data = __nccwpck_require__(34755); + _debug = function () { + return data; + }; + return data; +} +var _options = __nccwpck_require__(48922); +var _patternToRegex = __nccwpck_require__(89539); +var _printer = __nccwpck_require__(1606); +var _rewriteStackTrace = __nccwpck_require__(16670); +var _configError = __nccwpck_require__(14884); +var _index = __nccwpck_require__(83148); +var _caching = __nccwpck_require__(40232); +var _configDescriptors = __nccwpck_require__(5864); +const debug = _debug()("babel:config:config-chain"); +function* buildPresetChain(arg, context) { + const chain = yield* buildPresetChainWalker(arg, context); + if (!chain) return null; + return { + plugins: dedupDescriptors(chain.plugins), + presets: dedupDescriptors(chain.presets), + options: chain.options.map(o => normalizeOptions(o)), + files: new Set() + }; +} +const buildPresetChainWalker = exports.buildPresetChainWalker = makeChainWalker({ + root: preset => loadPresetDescriptors(preset), + env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName), + overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index), + overridesEnv: (preset, index, envName) => loadPresetOverridesEnvDescriptors(preset)(index)(envName), + createLogger: () => () => {} +}); +const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors)); +const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName))); +const loadPresetOverridesDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index))); +const loadPresetOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index, envName)))); +function* buildRootChain(opts, context) { + let configReport, babelRcReport; + const programmaticLogger = new _printer.ConfigPrinter(); + const programmaticChain = yield* loadProgrammaticChain({ + options: opts, + dirname: context.cwd + }, context, undefined, programmaticLogger); + if (!programmaticChain) return null; + const programmaticReport = yield* programmaticLogger.output(); + let configFile; + if (typeof opts.configFile === "string") { + configFile = yield* (0, _index.loadConfig)(opts.configFile, context.cwd, context.envName, context.caller); + } else if (opts.configFile !== false) { + configFile = yield* (0, _index.findRootConfig)(context.root, context.envName, context.caller); } - buildError(node, msg, Error = TypeError) { - return new Error(msg); + let { + babelrc, + babelrcRoots + } = opts; + let babelrcRootsDirectory = context.cwd; + const configFileChain = emptyChain(); + const configFileLogger = new _printer.ConfigPrinter(); + if (configFile) { + const validatedFile = validateConfigFile(configFile); + const result = yield* loadFileChain(validatedFile, context, undefined, configFileLogger); + if (!result) return null; + configReport = yield* configFileLogger.output(); + if (babelrc === undefined) { + babelrc = validatedFile.options.babelrc; + } + if (babelrcRoots === undefined) { + babelrcRootsDirectory = validatedFile.dirname; + babelrcRoots = validatedFile.options.babelrcRoots; + } + mergeChain(configFileChain, result); + } + let ignoreFile, babelrcFile; + let isIgnored = false; + const fileChain = emptyChain(); + if ((babelrc === true || babelrc === undefined) && typeof context.filename === "string") { + const pkgData = yield* (0, _index.findPackageData)(context.filename); + if (pkgData && babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)) { + ({ + ignore: ignoreFile, + config: babelrcFile + } = yield* (0, _index.findRelativeConfig)(pkgData, context.envName, context.caller)); + if (ignoreFile) { + fileChain.files.add(ignoreFile.filepath); + } + if (ignoreFile && shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)) { + isIgnored = true; + } + if (babelrcFile && !isIgnored) { + const validatedFile = validateBabelrcFile(babelrcFile); + const babelrcLogger = new _printer.ConfigPrinter(); + const result = yield* loadFileChain(validatedFile, context, undefined, babelrcLogger); + if (!result) { + isIgnored = true; + } else { + babelRcReport = yield* babelrcLogger.output(); + mergeChain(fileChain, result); + } + } + if (babelrcFile && isIgnored) { + fileChain.files.add(babelrcFile.filepath); + } + } + } + if (context.showConfig) { + console.log(`Babel configs on "${context.filename}" (ascending priority):\n` + [configReport, babelRcReport, programmaticReport].filter(x => !!x).join("\n\n") + "\n-----End Babel configs-----"); } + const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain); + return { + plugins: isIgnored ? [] : dedupDescriptors(chain.plugins), + presets: isIgnored ? [] : dedupDescriptors(chain.presets), + options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)), + fileHandling: isIgnored ? "ignored" : "transpile", + ignore: ignoreFile || undefined, + babelrc: babelrcFile || undefined, + config: configFile || undefined, + files: chain.files + }; } -exports["default"] = Hub; - -//# sourceMappingURL=hub.js.map - - -/***/ }), - -/***/ 37386: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "Hub", ({ - enumerable: true, - get: function () { - return _hub.default; +function babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory) { + if (typeof babelrcRoots === "boolean") return babelrcRoots; + const absoluteRoot = context.root; + if (babelrcRoots === undefined) { + return pkgData.directories.indexOf(absoluteRoot) !== -1; } -})); -Object.defineProperty(exports, "NodePath", ({ - enumerable: true, - get: function () { - return _path.default; + let babelrcPatterns = babelrcRoots; + if (!Array.isArray(babelrcPatterns)) { + babelrcPatterns = [babelrcPatterns]; } -})); -Object.defineProperty(exports, "Scope", ({ - enumerable: true, - get: function () { - return _scope.default; + babelrcPatterns = babelrcPatterns.map(pat => { + return typeof pat === "string" ? _path().resolve(babelrcRootsDirectory, pat) : pat; + }); + if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) { + return pkgData.directories.indexOf(absoluteRoot) !== -1; } -})); -exports.visitors = exports["default"] = void 0; -var visitors = __nccwpck_require__(68974); -exports.visitors = visitors; -var _t = __nccwpck_require__(53501); -var cache = __nccwpck_require__(52271); -var _traverseNode = __nccwpck_require__(10875); -var _path = __nccwpck_require__(30263); -var _scope = __nccwpck_require__(82392); -var _hub = __nccwpck_require__(96461); -const { - VISITOR_KEYS, - removeProperties, - traverseFast -} = _t; -function traverse(parent, opts = {}, scope, state, parentPath) { - if (!parent) return; - if (!opts.noScope && !scope) { - if (parent.type !== "Program" && parent.type !== "File") { - throw new Error("You must pass a scope and parentPath unless traversing a Program/File. " + `Instead of that you tried to traverse a ${parent.type} node without ` + "passing scope and parentPath."); + return babelrcPatterns.some(pat => { + if (typeof pat === "string") { + pat = (0, _patternToRegex.default)(pat, babelrcRootsDirectory); } - } - if (!VISITOR_KEYS[parent.type]) { - return; - } - visitors.explode(opts); - (0, _traverseNode.traverseNode)(parent, opts, scope, state, parentPath); + return pkgData.directories.some(directory => { + return matchPattern(pat, babelrcRootsDirectory, directory, context); + }); + }); } -var _default = traverse; -exports["default"] = _default; -traverse.visitors = visitors; -traverse.verify = visitors.verify; -traverse.explode = visitors.explode; -traverse.cheap = function (node, enter) { - return traverseFast(node, enter); -}; -traverse.node = function (node, opts, scope, state, path, skipKeys) { - (0, _traverseNode.traverseNode)(node, opts, scope, state, path, skipKeys); -}; -traverse.clearNode = function (node, opts) { - removeProperties(node, opts); - cache.path.delete(node); -}; -traverse.removeProperties = function (tree, opts) { - traverseFast(tree, traverse.clearNode, opts); - return tree; -}; -function hasDenylistedType(path, state) { - if (path.node.type === state.type) { - state.has = true; - path.stop(); +const validateConfigFile = (0, _caching.makeWeakCacheSync)(file => ({ + filepath: file.filepath, + dirname: file.dirname, + options: (0, _options.validate)("configfile", file.options, file.filepath) +})); +const validateBabelrcFile = (0, _caching.makeWeakCacheSync)(file => ({ + filepath: file.filepath, + dirname: file.dirname, + options: (0, _options.validate)("babelrcfile", file.options, file.filepath) +})); +const validateExtendFile = (0, _caching.makeWeakCacheSync)(file => ({ + filepath: file.filepath, + dirname: file.dirname, + options: (0, _options.validate)("extendsfile", file.options, file.filepath) +})); +const loadProgrammaticChain = makeChainWalker({ + root: input => buildRootDescriptors(input, "base", _configDescriptors.createCachedDescriptors), + env: (input, envName) => buildEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, envName), + overrides: (input, index) => buildOverrideDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index), + overridesEnv: (input, index, envName) => buildOverrideEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index, envName), + createLogger: (input, context, baseLogger) => buildProgrammaticLogger(input, context, baseLogger) +}); +const loadFileChainWalker = makeChainWalker({ + root: file => loadFileDescriptors(file), + env: (file, envName) => loadFileEnvDescriptors(file)(envName), + overrides: (file, index) => loadFileOverridesDescriptors(file)(index), + overridesEnv: (file, index, envName) => loadFileOverridesEnvDescriptors(file)(index)(envName), + createLogger: (file, context, baseLogger) => buildFileLogger(file.filepath, context, baseLogger) +}); +function* loadFileChain(input, context, files, baseLogger) { + const chain = yield* loadFileChainWalker(input, context, files, baseLogger); + chain == null || chain.files.add(input.filepath); + return chain; +} +const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(file => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors)); +const loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))); +const loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))); +const loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName)))); +function buildFileLogger(filepath, context, baseLogger) { + if (!baseLogger) { + return () => {}; } + return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Config, { + filepath + }); } -traverse.hasType = function (tree, type, denylistTypes) { - if (denylistTypes != null && denylistTypes.includes(tree.type)) return false; - if (tree.type === type) return true; - const state = { - has: false, - type: type - }; - traverse(tree, { - noScope: true, - denylist: denylistTypes, - enter: hasDenylistedType - }, null, state); - return state.has; -}; -traverse.cache = cache; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 50139: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.find = find; -exports.findParent = findParent; -exports.getAncestry = getAncestry; -exports.getDeepestCommonAncestorFrom = getDeepestCommonAncestorFrom; -exports.getEarliestCommonAncestorFrom = getEarliestCommonAncestorFrom; -exports.getFunctionParent = getFunctionParent; -exports.getStatementParent = getStatementParent; -exports.inType = inType; -exports.isAncestor = isAncestor; -exports.isDescendant = isDescendant; -var _t = __nccwpck_require__(53501); -const { - VISITOR_KEYS -} = _t; -function findParent(callback) { - let path = this; - while (path = path.parentPath) { - if (callback(path)) return path; +function buildRootDescriptors({ + dirname, + options +}, alias, descriptors) { + return descriptors(dirname, options, alias); +} +function buildProgrammaticLogger(_, context, baseLogger) { + var _context$caller; + if (!baseLogger) { + return () => {}; } - return null; + return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Programmatic, { + callerName: (_context$caller = context.caller) == null ? void 0 : _context$caller.name + }); } -function find(callback) { - let path = this; - do { - if (callback(path)) return path; - } while (path = path.parentPath); - return null; +function buildEnvDescriptors({ + dirname, + options +}, alias, descriptors, envName) { + var _options$env; + const opts = (_options$env = options.env) == null ? void 0 : _options$env[envName]; + return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null; } -function getFunctionParent() { - return this.findParent(p => p.isFunction()); +function buildOverrideDescriptors({ + dirname, + options +}, alias, descriptors, index) { + var _options$overrides; + const opts = (_options$overrides = options.overrides) == null ? void 0 : _options$overrides[index]; + if (!opts) throw new Error("Assertion failure - missing override"); + return descriptors(dirname, opts, `${alias}.overrides[${index}]`); } -function getStatementParent() { - let path = this; - do { - if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { - break; - } else { - path = path.parentPath; - } - } while (path); - if (path && (path.isProgram() || path.isFile())) { - throw new Error("File/Program node, we can't possibly find a statement parent to this"); - } - return path; +function buildOverrideEnvDescriptors({ + dirname, + options +}, alias, descriptors, index, envName) { + var _options$overrides2, _override$env; + const override = (_options$overrides2 = options.overrides) == null ? void 0 : _options$overrides2[index]; + if (!override) throw new Error("Assertion failure - missing override"); + const opts = (_override$env = override.env) == null ? void 0 : _override$env[envName]; + return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null; } -function getEarliestCommonAncestorFrom(paths) { - return this.getDeepestCommonAncestorFrom(paths, function (deepest, i, ancestries) { - let earliest; - const keys = VISITOR_KEYS[deepest.type]; - for (const ancestry of ancestries) { - const path = ancestry[i + 1]; - if (!earliest) { - earliest = path; - continue; +function makeChainWalker({ + root, + env, + overrides, + overridesEnv, + createLogger +}) { + return function* chainWalker(input, context, files = new Set(), baseLogger) { + const { + dirname + } = input; + const flattenedConfigs = []; + const rootOpts = root(input); + if (configIsApplicable(rootOpts, dirname, context, input.filepath)) { + flattenedConfigs.push({ + config: rootOpts, + envName: undefined, + index: undefined + }); + const envOpts = env(input, context.envName); + if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) { + flattenedConfigs.push({ + config: envOpts, + envName: context.envName, + index: undefined + }); } - if (path.listKey && earliest.listKey === path.listKey) { - if (path.key < earliest.key) { - earliest = path; - continue; + (rootOpts.options.overrides || []).forEach((_, index) => { + const overrideOps = overrides(input, index); + if (configIsApplicable(overrideOps, dirname, context, input.filepath)) { + flattenedConfigs.push({ + config: overrideOps, + index, + envName: undefined + }); + const overrideEnvOpts = overridesEnv(input, index, context.envName); + if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) { + flattenedConfigs.push({ + config: overrideEnvOpts, + index, + envName: context.envName + }); + } + } + }); + } + if (flattenedConfigs.some(({ + config: { + options: { + ignore, + only } } - const earliestKeyIndex = keys.indexOf(earliest.parentKey); - const currentKeyIndex = keys.indexOf(path.parentKey); - if (earliestKeyIndex > currentKeyIndex) { - earliest = path; + }) => shouldIgnore(context, ignore, only, dirname))) { + return null; + } + const chain = emptyChain(); + const logger = createLogger(input, context, baseLogger); + for (const { + config, + index, + envName + } of flattenedConfigs) { + if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) { + return null; } + logger(config, index, envName); + yield* mergeChainOpts(chain, config); } - return earliest; - }); + return chain; + }; } -function getDeepestCommonAncestorFrom(paths, filter) { - if (!paths.length) { - return this; +function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) { + if (opts.extends === undefined) return true; + const file = yield* (0, _index.loadConfig)(opts.extends, dirname, context.envName, context.caller); + if (files.has(file)) { + throw new Error(`Configuration cycle detected loading ${file.filepath}.\n` + `File already loaded following the config chain:\n` + Array.from(files, file => ` - ${file.filepath}`).join("\n")); } - if (paths.length === 1) { - return paths[0]; + files.add(file); + const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger); + files.delete(file); + if (!fileChain) return false; + mergeChain(chain, fileChain); + return true; +} +function mergeChain(target, source) { + target.options.push(...source.options); + target.plugins.push(...source.plugins); + target.presets.push(...source.presets); + for (const file of source.files) { + target.files.add(file); } - let minDepth = Infinity; - let lastCommonIndex, lastCommon; - const ancestries = paths.map(path => { - const ancestry = []; - do { - ancestry.unshift(path); - } while ((path = path.parentPath) && path !== this); - if (ancestry.length < minDepth) { - minDepth = ancestry.length; - } - return ancestry; - }); - const first = ancestries[0]; - depthLoop: for (let i = 0; i < minDepth; i++) { - const shouldMatch = first[i]; - for (const ancestry of ancestries) { - if (ancestry[i] !== shouldMatch) { - break depthLoop; - } - } - lastCommonIndex = i; - lastCommon = shouldMatch; + return target; +} +function* mergeChainOpts(target, { + options, + plugins, + presets +}) { + target.options.push(options); + target.plugins.push(...(yield* plugins())); + target.presets.push(...(yield* presets())); + return target; +} +function emptyChain() { + return { + options: [], + presets: [], + plugins: [], + files: new Set() + }; +} +function normalizeOptions(opts) { + const options = Object.assign({}, opts); + delete options.extends; + delete options.env; + delete options.overrides; + delete options.plugins; + delete options.presets; + delete options.passPerPreset; + delete options.ignore; + delete options.only; + delete options.test; + delete options.include; + delete options.exclude; + if (Object.prototype.hasOwnProperty.call(options, "sourceMap")) { + options.sourceMaps = options.sourceMap; + delete options.sourceMap; } - if (lastCommon) { - if (filter) { - return filter(lastCommon, lastCommonIndex, ancestries); + return options; +} +function dedupDescriptors(items) { + const map = new Map(); + const descriptors = []; + for (const item of items) { + if (typeof item.value === "function") { + const fnKey = item.value; + let nameMap = map.get(fnKey); + if (!nameMap) { + nameMap = new Map(); + map.set(fnKey, nameMap); + } + let desc = nameMap.get(item.name); + if (!desc) { + desc = { + value: item + }; + descriptors.push(desc); + if (!item.ownPass) nameMap.set(item.name, desc); + } else { + desc.value = item; + } } else { - return lastCommon; + descriptors.push({ + value: item + }); } - } else { - throw new Error("Couldn't find intersection"); } + return descriptors.reduce((acc, desc) => { + acc.push(desc.value); + return acc; + }, []); } -function getAncestry() { - let path = this; - const paths = []; - do { - paths.push(path); - } while (path = path.parentPath); - return paths; +function configIsApplicable({ + options +}, dirname, context, configName) { + return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName)); } -function isAncestor(maybeDescendant) { - return maybeDescendant.isDescendant(this); +function configFieldIsApplicable(context, test, dirname, configName) { + const patterns = Array.isArray(test) ? test : [test]; + return matchesPatterns(context, patterns, dirname, configName); } -function isDescendant(maybeAncestor) { - return !!this.findParent(parent => parent === maybeAncestor); +function ignoreListReplacer(_key, value) { + if (value instanceof RegExp) { + return String(value); + } + return value; } -function inType(...candidateTypes) { - let path = this; - while (path) { - for (const type of candidateTypes) { - if (path.node.type === type) return true; +function shouldIgnore(context, ignore, only, dirname) { + if (ignore && matchesPatterns(context, ignore, dirname)) { + var _context$filename; + const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`; + debug(message); + if (context.showConfig) { + console.log(message); } - path = path.parentPath; + return true; } - return false; -} - -//# sourceMappingURL=ancestry.js.map - - -/***/ }), - -/***/ 29060: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.addComment = addComment; -exports.addComments = addComments; -exports.shareCommentsWithSiblings = shareCommentsWithSiblings; -var _t = __nccwpck_require__(53501); -const { - addComment: _addComment, - addComments: _addComments -} = _t; -function shareCommentsWithSiblings() { - if (typeof this.key === "string") return; - const node = this.node; - if (!node) return; - const trailing = node.trailingComments; - const leading = node.leadingComments; - if (!trailing && !leading) return; - const prev = this.getSibling(this.key - 1); - const next = this.getSibling(this.key + 1); - const hasPrev = Boolean(prev.node); - const hasNext = Boolean(next.node); - if (hasPrev && !hasNext) { - prev.addComments("trailing", trailing); - } else if (hasNext && !hasPrev) { - next.addComments("leading", leading); + if (only && !matchesPatterns(context, only, dirname)) { + var _context$filename2; + const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`; + debug(message); + if (context.showConfig) { + console.log(message); + } + return true; } + return false; } -function addComment(type, content, line) { - _addComment(this.node, type, content, line); +function matchesPatterns(context, patterns, dirname, configName) { + return patterns.some(pattern => matchPattern(pattern, dirname, context.filename, context, configName)); } -function addComments(type, comments) { - _addComments(this.node, type, comments); +function matchPattern(pattern, dirname, pathToTest, context, configName) { + if (typeof pattern === "function") { + return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { + dirname, + envName: context.envName, + caller: context.caller + }); + } + if (typeof pathToTest !== "string") { + throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName); + } + if (typeof pattern === "string") { + pattern = (0, _patternToRegex.default)(pattern, dirname); + } + return pattern.test(pathToTest); } +0 && 0; -//# sourceMappingURL=comments.js.map +//# sourceMappingURL=config-chain.js.map /***/ }), -/***/ 68378: +/***/ 5864: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -114994,222 +29060,196 @@ function addComments(type, comments) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._call = _call; -exports._getQueueContexts = _getQueueContexts; -exports._resyncKey = _resyncKey; -exports._resyncList = _resyncList; -exports._resyncParent = _resyncParent; -exports._resyncRemoved = _resyncRemoved; -exports.call = call; -exports.isBlacklisted = exports.isDenylisted = isDenylisted; -exports.popContext = popContext; -exports.pushContext = pushContext; -exports.requeue = requeue; -exports.resync = resync; -exports.setContext = setContext; -exports.setKey = setKey; -exports.setScope = setScope; -exports.setup = setup; -exports.skip = skip; -exports.skipKey = skipKey; -exports.stop = stop; -exports.visit = visit; -var _traverseNode = __nccwpck_require__(10875); -var _index = __nccwpck_require__(30263); -function call(key) { - const opts = this.opts; - this.debug(key); - if (this.node) { - if (this._call(opts[key])) return true; - } - if (this.node) { - return this._call(opts[this.node.type] && opts[this.node.type][key]); - } - return false; +exports.createCachedDescriptors = createCachedDescriptors; +exports.createDescriptor = createDescriptor; +exports.createUncachedDescriptors = createUncachedDescriptors; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; } -function _call(fns) { - if (!fns) return false; - for (const fn of fns) { - if (!fn) continue; - const node = this.node; - if (!node) return true; - const ret = fn.call(this.state, this, this.state); - if (ret && typeof ret === "object" && typeof ret.then === "function") { - throw new Error(`You appear to be using a plugin with an async traversal visitor, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); - } - if (ret) { - throw new Error(`Unexpected return value from visitor method ${fn}`); - } - if (this.node !== node) return true; - if (this._traverseFlags > 0) return true; - } - return false; +var _functional = __nccwpck_require__(66699); +var _index = __nccwpck_require__(83148); +var _item = __nccwpck_require__(54854); +var _caching = __nccwpck_require__(40232); +var _resolveTargets = __nccwpck_require__(2936); +function isEqualDescriptor(a, b) { + var _a$file, _b$file, _a$file2, _b$file2; + return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && ((_a$file = a.file) == null ? void 0 : _a$file.request) === ((_b$file = b.file) == null ? void 0 : _b$file.request) && ((_a$file2 = a.file) == null ? void 0 : _a$file2.resolved) === ((_b$file2 = b.file) == null ? void 0 : _b$file2.resolved); } -function isDenylisted() { - var _this$opts$denylist; - const denylist = (_this$opts$denylist = this.opts.denylist) != null ? _this$opts$denylist : this.opts.blacklist; - return denylist && denylist.indexOf(this.node.type) > -1; +function* handlerOf(value) { + return value; } -function restoreContext(path, context) { - if (path.context !== context) { - path.context = context; - path.state = context.state; - path.opts = context.opts; +function optionsWithResolvedBrowserslistConfigFile(options, dirname) { + if (typeof options.browserslistConfigFile === "string") { + options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname); } + return options; } -function visit() { - if (!this.node) { - return false; - } - if (this.isDenylisted()) { - return false; - } - if (this.opts.shouldSkip && this.opts.shouldSkip(this)) { - return false; - } - const currentContext = this.context; - if (this.shouldSkip || this.call("enter")) { - this.debug("Skip..."); - return this.shouldStop; - } - restoreContext(this, currentContext); - this.debug("Recursing into..."); - this.shouldStop = (0, _traverseNode.traverseNode)(this.node, this.opts, this.scope, this.state, this, this.skipKeys); - restoreContext(this, currentContext); - this.call("exit"); - return this.shouldStop; +function createCachedDescriptors(dirname, options, alias) { + const { + plugins, + presets, + passPerPreset + } = options; + return { + options: optionsWithResolvedBrowserslistConfigFile(options, dirname), + plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]), + presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([]) + }; } -function skip() { - this.shouldSkip = true; +function createUncachedDescriptors(dirname, options, alias) { + return { + options: optionsWithResolvedBrowserslistConfigFile(options, dirname), + plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)), + presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset)) + }; } -function skipKey(key) { - if (this.skipKeys == null) { - this.skipKeys = {}; +const PRESET_DESCRIPTOR_CACHE = new WeakMap(); +const createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => { + const dirname = cache.using(dir => dir); + return (0, _caching.makeStrongCacheSync)(alias => (0, _caching.makeStrongCache)(function* (passPerPreset) { + const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset); + return descriptors.map(desc => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc)); + })); +}); +const PLUGIN_DESCRIPTOR_CACHE = new WeakMap(); +const createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => { + const dirname = cache.using(dir => dir); + return (0, _caching.makeStrongCache)(function* (alias) { + const descriptors = yield* createPluginDescriptors(items, dirname, alias); + return descriptors.map(desc => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc)); + }); +}); +const DEFAULT_OPTIONS = {}; +function loadCachedDescriptor(cache, desc) { + const { + value, + options = DEFAULT_OPTIONS + } = desc; + if (options === false) return desc; + let cacheByOptions = cache.get(value); + if (!cacheByOptions) { + cacheByOptions = new WeakMap(); + cache.set(value, cacheByOptions); } - this.skipKeys[key] = true; -} -function stop() { - this._traverseFlags |= _index.SHOULD_SKIP | _index.SHOULD_STOP; -} -function setScope() { - if (this.opts && this.opts.noScope) return; - let path = this.parentPath; - if ((this.key === "key" || this.listKey === "decorators") && path.isMethod() || this.key === "discriminant" && path.isSwitchStatement()) { - path = path.parentPath; + let possibilities = cacheByOptions.get(options); + if (!possibilities) { + possibilities = []; + cacheByOptions.set(options, possibilities); } - let target; - while (path && !target) { - if (path.opts && path.opts.noScope) return; - target = path.scope; - path = path.parentPath; + if (possibilities.indexOf(desc) === -1) { + const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc)); + if (matches.length > 0) { + return matches[0]; + } + possibilities.push(desc); } - this.scope = this.getScope(target); - if (this.scope) this.scope.init(); + return desc; } -function setContext(context) { - if (this.skipKeys != null) { - this.skipKeys = {}; - } - this._traverseFlags = 0; - if (context) { - this.context = context; - this.state = context.state; - this.opts = context.opts; - } - this.setScope(); - return this; +function* createPresetDescriptors(items, dirname, alias, passPerPreset) { + return yield* createDescriptors("preset", items, dirname, alias, passPerPreset); } -function resync() { - if (this.removed) return; - this._resyncParent(); - this._resyncList(); - this._resyncKey(); +function* createPluginDescriptors(items, dirname, alias) { + return yield* createDescriptors("plugin", items, dirname, alias); } -function _resyncParent() { - if (this.parentPath) { - this.parent = this.parentPath.node; - } +function* createDescriptors(type, items, dirname, alias, ownPass) { + const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, { + type, + alias: `${alias}$${index}`, + ownPass: !!ownPass + }))); + assertNoDuplicates(descriptors); + return descriptors; } -function _resyncKey() { - if (!this.container) return; - if (this.node === this.container[this.key]) { - return; +function* createDescriptor(pair, dirname, { + type, + alias, + ownPass +}) { + const desc = (0, _item.getItemDescriptor)(pair); + if (desc) { + return desc; } - if (Array.isArray(this.container)) { - for (let i = 0; i < this.container.length; i++) { - if (this.container[i] === this.node) { - return this.setKey(i); - } + let name; + let options; + let value = pair; + if (Array.isArray(value)) { + if (value.length === 3) { + [value, options, name] = value; + } else { + [value, options] = value; } - } else { - for (const key of Object.keys(this.container)) { - if (this.container[key] === this.node) { - return this.setKey(key); - } + } + let file = undefined; + let filepath = null; + if (typeof value === "string") { + if (typeof type !== "string") { + throw new Error("To resolve a string-based item, the type of item must be given"); } + const resolver = type === "plugin" ? _index.loadPlugin : _index.loadPreset; + const request = value; + ({ + filepath, + value + } = yield* resolver(value, dirname)); + file = { + request, + resolved: filepath + }; } - this.key = null; -} -function _resyncList() { - if (!this.parent || !this.inList) return; - const newContainer = this.parent[this.listKey]; - if (this.container === newContainer) return; - this.container = newContainer || null; -} -function _resyncRemoved() { - if (this.key == null || !this.container || this.container[this.key] !== this.node) { - this._markRemoved(); + if (!value) { + throw new Error(`Unexpected falsy value: ${String(value)}`); } -} -function popContext() { - this.contexts.pop(); - if (this.contexts.length > 0) { - this.setContext(this.contexts[this.contexts.length - 1]); - } else { - this.setContext(undefined); + if (typeof value === "object" && value.__esModule) { + if (value.default) { + value = value.default; + } else { + throw new Error("Must export a default export when using ES6 modules."); + } } -} -function pushContext(context) { - this.contexts.push(context); - this.setContext(context); -} -function setup(parentPath, container, listKey, key) { - this.listKey = listKey; - this.container = container; - this.parentPath = parentPath || this.parentPath; - this.setKey(key); -} -function setKey(key) { - var _this$node; - this.key = key; - this.node = this.container[this.key]; - this.type = (_this$node = this.node) == null ? void 0 : _this$node.type; -} -function requeue(pathToQueue = this) { - if (pathToQueue.removed) return; - ; - const contexts = this.contexts; - for (const context of contexts) { - context.maybeQueue(pathToQueue); + if (typeof value !== "object" && typeof value !== "function") { + throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`); + } + if (filepath !== null && typeof value === "object" && value) { + throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`); } + return { + name, + alias: filepath || alias, + value, + options, + dirname, + ownPass, + file + }; } -function _getQueueContexts() { - let path = this; - let contexts = this.contexts; - while (!contexts.length) { - path = path.parentPath; - if (!path) break; - contexts = path.contexts; +function assertNoDuplicates(items) { + const map = new Map(); + for (const item of items) { + if (typeof item.value !== "function") continue; + let nameMap = map.get(item.value); + if (!nameMap) { + nameMap = new Set(); + map.set(item.value, nameMap); + } + if (nameMap.has(item.name)) { + const conflicts = items.filter(i => i.value === item.value); + throw new Error([`Duplicate plugin/preset detected.`, `If you'd like to use two separate instances of a plugin,`, `they need separate names, e.g.`, ``, ` plugins: [`, ` ['some-plugin', {}],`, ` ['some-plugin', {}, 'some unique name'],`, ` ]`, ``, `Duplicates detected are:`, `${JSON.stringify(conflicts, null, 2)}`].join("\n")); + } + nameMap.add(item.name); } - return contexts; } +0 && 0; -//# sourceMappingURL=context.js.map +//# sourceMappingURL=config-descriptors.js.map /***/ }), -/***/ 5003: +/***/ 23172: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -115218,475 +29258,379 @@ function _getQueueContexts() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.arrowFunctionToExpression = arrowFunctionToExpression; -exports.arrowFunctionToShadowed = arrowFunctionToShadowed; -exports.ensureBlock = ensureBlock; -exports.toComputedKey = toComputedKey; -exports.unwrapFunctionEnvironment = unwrapFunctionEnvironment; -var _t = __nccwpck_require__(53501); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _helperFunctionName = __nccwpck_require__(28850); -var _visitors = __nccwpck_require__(68974); -const { - arrowFunctionExpression, - assignmentExpression, - binaryExpression, - blockStatement, - callExpression, - conditionalExpression, - expressionStatement, - identifier, - isIdentifier, - jsxIdentifier, - logicalExpression, - LOGICAL_OPERATORS, - memberExpression, - metaProperty, - numericLiteral, - objectExpression, - restElement, - returnStatement, - sequenceExpression, - spreadElement, - stringLiteral, - super: _super, - thisExpression, - toExpression, - unaryExpression -} = _t; -function toComputedKey() { - let key; - if (this.isMemberExpression()) { - key = this.node.property; - } else if (this.isProperty() || this.isMethod()) { - key = this.node.key; - } else { - throw new ReferenceError("todo"); - } - if (!this.node.computed) { - if (isIdentifier(key)) key = stringLiteral(key.name); - } - return key; +exports.ROOT_CONFIG_FILENAMES = void 0; +exports.findConfigUpwards = findConfigUpwards; +exports.findRelativeConfig = findRelativeConfig; +exports.findRootConfig = findRootConfig; +exports.loadConfig = loadConfig; +exports.resolveShowConfigPath = resolveShowConfigPath; +function _debug() { + const data = __nccwpck_require__(34755); + _debug = function () { + return data; + }; + return data; } -function ensureBlock() { - const body = this.get("body"); - const bodyNode = body.node; - if (Array.isArray(body)) { - throw new Error("Can't convert array path to a block statement"); - } - if (!bodyNode) { - throw new Error("Can't convert node without a body"); - } - if (body.isBlockStatement()) { - return bodyNode; - } - const statements = []; - let stringPath = "body"; - let key; - let listKey; - if (body.isStatement()) { - listKey = "body"; - key = 0; - statements.push(body.node); - } else { - stringPath += ".body.0"; - if (this.isFunction()) { - key = "argument"; - statements.push(returnStatement(body.node)); - } else { - key = "expression"; - statements.push(expressionStatement(body.node)); - } - } - this.node.body = blockStatement(statements); - const parentPath = this.get(stringPath); - body.setup(parentPath, listKey ? parentPath.node[listKey] : parentPath.node, listKey, key); - return this.node; +function _fs() { + const data = __nccwpck_require__(57147); + _fs = function () { + return data; + }; + return data; } -function arrowFunctionToShadowed() { - if (!this.isArrowFunctionExpression()) return; - this.arrowFunctionToExpression(); +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; } -function unwrapFunctionEnvironment() { - if (!this.isArrowFunctionExpression() && !this.isFunctionExpression() && !this.isFunctionDeclaration()) { - throw this.buildCodeFrameError("Can only unwrap the environment of a function."); - } - hoistFunctionEnvironment(this); +function _json() { + const data = __nccwpck_require__(66361); + _json = function () { + return data; + }; + return data; } -function setType(path, type) { - path.node.type = type; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; } -function arrowFunctionToExpression({ - allowInsertArrow = true, - allowInsertArrowWithRest = allowInsertArrow, - specCompliant = false, - noNewArrows = !specCompliant -} = {}) { - if (!this.isArrowFunctionExpression()) { - throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression."); - } - const { - thisBinding, - fnPath: fn - } = hoistFunctionEnvironment(this, noNewArrows, allowInsertArrow, allowInsertArrowWithRest); - fn.ensureBlock(); - setType(fn, "FunctionExpression"); - if (!noNewArrows) { - const checkBinding = thisBinding ? null : fn.scope.generateUidIdentifier("arrowCheckId"); - if (checkBinding) { - fn.parentPath.scope.push({ - id: checkBinding, - init: objectExpression([]) - }); - } - fn.get("body").unshiftContainer("body", expressionStatement(callExpression(this.hub.addHelper("newArrowCheck"), [thisExpression(), checkBinding ? identifier(checkBinding.name) : identifier(thisBinding)]))); - fn.replaceWith(callExpression(memberExpression((0, _helperFunctionName.default)(this, true) || fn.node, identifier("bind")), [checkBinding ? identifier(checkBinding.name) : thisExpression()])); - return fn.get("callee.object"); +var _caching = __nccwpck_require__(40232); +var _configApi = __nccwpck_require__(64183); +var _utils = __nccwpck_require__(55728); +var _moduleTypes = __nccwpck_require__(95017); +var _patternToRegex = __nccwpck_require__(89539); +var _configError = __nccwpck_require__(14884); +var fs = __nccwpck_require__(666); +var _rewriteStackTrace = __nccwpck_require__(16670); +const debug = _debug()("babel:config:loading:files:configuration"); +const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"]; +const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"]; +const BABELIGNORE_FILENAME = ".babelignore"; +const runConfig = (0, _caching.makeWeakCache)(function* runConfig(options, cache) { + yield* []; + return { + options: (0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache)), + cacheNeedsConfiguration: !cache.configured() + }; +}); +function* readConfigCode(filepath, data) { + if (!_fs().existsSync(filepath)) return null; + let options = yield* (0, _moduleTypes.default)(filepath, "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously."); + let cacheNeedsConfiguration = false; + if (typeof options === "function") { + ({ + options, + cacheNeedsConfiguration + } = yield* runConfig(options, data)); } - return fn; + if (!options || typeof options !== "object" || Array.isArray(options)) { + throw new _configError.default(`Configuration should be an exported JavaScript object.`, filepath); + } + if (typeof options.then === "function") { + options.catch == null || options.catch(() => {}); + throw new _configError.default(`You appear to be using an async configuration, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously return your config.`, filepath); + } + if (cacheNeedsConfiguration) throwConfigError(filepath); + return buildConfigFileObject(options, filepath); } -const getSuperCallsVisitor = (0, _visitors.merge)([{ - CallExpression(child, { - allSuperCalls - }) { - if (!child.get("callee").isSuper()) return; - allSuperCalls.push(child); +const cfboaf = new WeakMap(); +function buildConfigFileObject(options, filepath) { + let configFilesByFilepath = cfboaf.get(options); + if (!configFilesByFilepath) { + cfboaf.set(options, configFilesByFilepath = new Map()); } -}, _helperEnvironmentVisitor.default]); -function hoistFunctionEnvironment(fnPath, noNewArrows = true, allowInsertArrow = true, allowInsertArrowWithRest = true) { - let arrowParent; - let thisEnvFn = fnPath.findParent(p => { - if (p.isArrowFunctionExpression()) { - var _arrowParent; - (_arrowParent = arrowParent) != null ? _arrowParent : arrowParent = p; - return false; - } - return p.isFunction() || p.isProgram() || p.isClassProperty({ - static: false - }) || p.isClassPrivateProperty({ - static: false - }); - }); - const inConstructor = thisEnvFn.isClassMethod({ - kind: "constructor" - }); - if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) { - if (arrowParent) { - thisEnvFn = arrowParent; - } else if (allowInsertArrow) { - fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), [])); - thisEnvFn = fnPath.get("callee"); - fnPath = thisEnvFn.get("body"); - } else { - throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property"); - } + let configFile = configFilesByFilepath.get(filepath); + if (!configFile) { + configFile = { + filepath, + dirname: _path().dirname(filepath), + options + }; + configFilesByFilepath.set(filepath, configFile); } - const { - thisPaths, - argumentsPaths, - newTargetPaths, - superProps, - superCalls - } = getScopeInformation(fnPath); - if (inConstructor && superCalls.length > 0) { - if (!allowInsertArrow) { - throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', " + "it's not possible to compile `super()` in an arrow function without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); - } - if (!allowInsertArrowWithRest) { - throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', " + "it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); - } - const allSuperCalls = []; - thisEnvFn.traverse(getSuperCallsVisitor, { - allSuperCalls - }); - const superBinding = getSuperBinding(thisEnvFn); - allSuperCalls.forEach(superCall => { - const callee = identifier(superBinding); - callee.loc = superCall.node.callee.loc; - superCall.get("callee").replaceWith(callee); - }); + return configFile; +} +const packageToBabelConfig = (0, _caching.makeWeakCacheSync)(file => { + const babel = file.options["babel"]; + if (typeof babel === "undefined") return null; + if (typeof babel !== "object" || Array.isArray(babel) || babel === null) { + throw new _configError.default(`.babel property must be an object`, file.filepath); } - if (argumentsPaths.length > 0) { - const argumentsBinding = getBinding(thisEnvFn, "arguments", () => { - const args = () => identifier("arguments"); - if (thisEnvFn.scope.path.isProgram()) { - return conditionalExpression(binaryExpression("===", unaryExpression("typeof", args()), stringLiteral("undefined")), thisEnvFn.scope.buildUndefinedNode(), args()); - } else { - return args(); - } - }); - argumentsPaths.forEach(argumentsChild => { - const argsRef = identifier(argumentsBinding); - argsRef.loc = argumentsChild.node.loc; - argumentsChild.replaceWith(argsRef); - }); + return { + filepath: file.filepath, + dirname: file.dirname, + options: babel + }; +}); +const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => { + let options; + try { + options = _json().parse(content); + } catch (err) { + throw new _configError.default(`Error while parsing config - ${err.message}`, filepath); } - if (newTargetPaths.length > 0) { - const newTargetBinding = getBinding(thisEnvFn, "newtarget", () => metaProperty(identifier("new"), identifier("target"))); - newTargetPaths.forEach(targetChild => { - const targetRef = identifier(newTargetBinding); - targetRef.loc = targetChild.node.loc; - targetChild.replaceWith(targetRef); - }); + if (!options) throw new _configError.default(`No config detected`, filepath); + if (typeof options !== "object") { + throw new _configError.default(`Config returned typeof ${typeof options}`, filepath); } - if (superProps.length > 0) { - if (!allowInsertArrow) { - throw superProps[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', " + "it's not possible to compile `super.prop` in an arrow function without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); - } - const flatSuperProps = superProps.reduce((acc, superProp) => acc.concat(standardizeSuperProperty(superProp)), []); - flatSuperProps.forEach(superProp => { - const key = superProp.node.computed ? "" : superProp.get("property").node.name; - const superParentPath = superProp.parentPath; - const isAssignment = superParentPath.isAssignmentExpression({ - left: superProp.node - }); - const isCall = superParentPath.isCallExpression({ - callee: superProp.node - }); - const isTaggedTemplate = superParentPath.isTaggedTemplateExpression({ - tag: superProp.node - }); - const superBinding = getSuperPropBinding(thisEnvFn, isAssignment, key); - const args = []; - if (superProp.node.computed) { - args.push(superProp.get("property").node); - } - if (isAssignment) { - const value = superParentPath.node.right; - args.push(value); - } - const call = callExpression(identifier(superBinding), args); - if (isCall) { - superParentPath.unshiftContainer("arguments", thisExpression()); - superProp.replaceWith(memberExpression(call, identifier("call"))); - thisPaths.push(superParentPath.get("arguments.0")); - } else if (isAssignment) { - superParentPath.replaceWith(call); - } else if (isTaggedTemplate) { - superProp.replaceWith(callExpression(memberExpression(call, identifier("bind"), false), [thisExpression()])); - thisPaths.push(superProp.get("arguments.0")); - } else { - superProp.replaceWith(call); - } - }); + if (Array.isArray(options)) { + throw new _configError.default(`Expected config object but found array`, filepath); } - let thisBinding; - if (thisPaths.length > 0 || !noNewArrows) { - thisBinding = getThisBinding(thisEnvFn, inConstructor); - if (noNewArrows || inConstructor && hasSuperClass(thisEnvFn)) { - thisPaths.forEach(thisChild => { - const thisRef = thisChild.isJSX() ? jsxIdentifier(thisBinding) : identifier(thisBinding); - thisRef.loc = thisChild.node.loc; - thisChild.replaceWith(thisRef); - }); - if (!noNewArrows) thisBinding = null; + delete options["$schema"]; + return { + filepath, + dirname: _path().dirname(filepath), + options + }; +}); +const readIgnoreConfig = (0, _utils.makeStaticFileCache)((filepath, content) => { + const ignoreDir = _path().dirname(filepath); + const ignorePatterns = content.split("\n").map(line => line.replace(/#(.*?)$/, "").trim()).filter(line => !!line); + for (const pattern of ignorePatterns) { + if (pattern[0] === "!") { + throw new _configError.default(`Negation of file paths is not supported.`, filepath); } } return { - thisBinding, - fnPath + filepath, + dirname: _path().dirname(filepath), + ignore: ignorePatterns.map(pattern => (0, _patternToRegex.default)(pattern, ignoreDir)) }; -} -function isLogicalOp(op) { - return LOGICAL_OPERATORS.includes(op); -} -function standardizeSuperProperty(superProp) { - if (superProp.parentPath.isAssignmentExpression() && superProp.parentPath.node.operator !== "=") { - const assignmentPath = superProp.parentPath; - const op = assignmentPath.node.operator.slice(0, -1); - const value = assignmentPath.node.right; - const isLogicalAssignment = isLogicalOp(op); - if (superProp.node.computed) { - const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); - const object = superProp.node.object; - const property = superProp.node.property; - assignmentPath.get("left").replaceWith(memberExpression(object, assignmentExpression("=", tmp, property), true)); - assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(tmp.name), true), value)); - } else { - const object = superProp.node.object; - const property = superProp.node.property; - assignmentPath.get("left").replaceWith(memberExpression(object, property)); - assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(property.name)), value)); - } - if (isLogicalAssignment) { - assignmentPath.replaceWith(logicalExpression(op, assignmentPath.node.left, assignmentPath.node.right)); - } else { - assignmentPath.node.operator = "="; - } - return [assignmentPath.get("left"), assignmentPath.get("right").get("left")]; - } else if (superProp.parentPath.isUpdateExpression()) { - const updateExpr = superProp.parentPath; - const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); - const computedKey = superProp.node.computed ? superProp.scope.generateDeclaredUidIdentifier("prop") : null; - const parts = [assignmentExpression("=", tmp, memberExpression(superProp.node.object, computedKey ? assignmentExpression("=", computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)), assignmentExpression("=", memberExpression(superProp.node.object, computedKey ? identifier(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression(superProp.parentPath.node.operator[0], identifier(tmp.name), numericLiteral(1)))]; - if (!superProp.parentPath.node.prefix) { - parts.push(identifier(tmp.name)); +}); +function findConfigUpwards(rootDir) { + let dirname = rootDir; + for (;;) { + for (const filename of ROOT_CONFIG_FILENAMES) { + if (_fs().existsSync(_path().join(dirname, filename))) { + return dirname; + } } - updateExpr.replaceWith(sequenceExpression(parts)); - const left = updateExpr.get("expressions.0.right"); - const right = updateExpr.get("expressions.1.left"); - return [left, right]; + const nextDir = _path().dirname(dirname); + if (dirname === nextDir) break; + dirname = nextDir; } - return [superProp]; - function rightExpression(op, left, right) { - if (op === "=") { - return assignmentExpression("=", left, right); - } else { - return binaryExpression(op, left, right); + return null; +} +function* findRelativeConfig(packageData, envName, caller) { + let config = null; + let ignore = null; + const dirname = _path().dirname(packageData.filepath); + for (const loc of packageData.directories) { + if (!config) { + var _packageData$pkg; + config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, ((_packageData$pkg = packageData.pkg) == null ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null); + } + if (!ignore) { + const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME); + ignore = yield* readIgnoreConfig(ignoreLoc); + if (ignore) { + debug("Found ignore %o from %o.", ignore.filepath, dirname); + } } } + return { + config, + ignore + }; } -function hasSuperClass(thisEnvFn) { - return thisEnvFn.isClassMethod() && !!thisEnvFn.parentPath.parentPath.node.superClass; +function findRootConfig(dirname, envName, caller) { + return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller); } -const assignSuperThisVisitor = (0, _visitors.merge)([{ - CallExpression(child, { - supers, - thisBinding - }) { - if (!child.get("callee").isSuper()) return; - if (supers.has(child.node)) return; - supers.add(child.node); - child.replaceWithMultiple([child.node, assignmentExpression("=", identifier(thisBinding), identifier("this"))]); +function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) { + const configs = yield* _gensync().all(names.map(filename => readConfig(_path().join(dirname, filename), envName, caller))); + const config = configs.reduce((previousConfig, config) => { + if (config && previousConfig) { + throw new _configError.default(`Multiple configuration files found. Please remove one:\n` + ` - ${_path().basename(previousConfig.filepath)}\n` + ` - ${config.filepath}\n` + `from ${dirname}`); + } + return config || previousConfig; + }, previousConfig); + if (config) { + debug("Found configuration %o from %o.", config.filepath, dirname); } -}, _helperEnvironmentVisitor.default]); -function getThisBinding(thisEnvFn, inConstructor) { - return getBinding(thisEnvFn, "this", thisBinding => { - if (!inConstructor || !hasSuperClass(thisEnvFn)) return thisExpression(); - thisEnvFn.traverse(assignSuperThisVisitor, { - supers: new WeakSet(), - thisBinding - }); - }); -} -function getSuperBinding(thisEnvFn) { - return getBinding(thisEnvFn, "supercall", () => { - const argsBinding = thisEnvFn.scope.generateUidIdentifier("args"); - return arrowFunctionExpression([restElement(argsBinding)], callExpression(_super(), [spreadElement(identifier(argsBinding.name))])); - }); + return config; } -function getSuperPropBinding(thisEnvFn, isAssignment, propName) { - const op = isAssignment ? "set" : "get"; - return getBinding(thisEnvFn, `superprop_${op}:${propName || ""}`, () => { - const argsList = []; - let fnBody; - if (propName) { - fnBody = memberExpression(_super(), identifier(propName)); - } else { - const method = thisEnvFn.scope.generateUidIdentifier("prop"); - argsList.unshift(method); - fnBody = memberExpression(_super(), identifier(method.name), true); - } - if (isAssignment) { - const valueIdent = thisEnvFn.scope.generateUidIdentifier("value"); - argsList.push(valueIdent); - fnBody = assignmentExpression("=", fnBody, identifier(valueIdent.name)); - } - return arrowFunctionExpression(argsList, fnBody); +function* loadConfig(name, dirname, envName, caller) { + const filepath = (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { + paths: [b] + }, M = __nccwpck_require__(98188)) => { + let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); + if (f) return f; + f = new Error(`Cannot resolve module '${r}'`); + f.code = "MODULE_NOT_FOUND"; + throw f; + })(name, { + paths: [dirname] }); + const conf = yield* readConfig(filepath, envName, caller); + if (!conf) { + throw new _configError.default(`Config file contains no configuration data`, filepath); + } + debug("Loaded config %o from %o.", name, dirname); + return conf; } -function getBinding(thisEnvFn, key, init) { - const cacheKey = "binding:" + key; - let data = thisEnvFn.getData(cacheKey); - if (!data) { - const id = thisEnvFn.scope.generateUidIdentifier(key); - data = id.name; - thisEnvFn.setData(cacheKey, data); - thisEnvFn.scope.push({ - id: id, - init: init(data) - }); +function readConfig(filepath, envName, caller) { + const ext = _path().extname(filepath); + switch (ext) { + case ".js": + case ".cjs": + case ".mjs": + case ".cts": + return readConfigCode(filepath, { + envName, + caller + }); + default: + return readConfigJSON5(filepath); } - return data; } -const getScopeInformationVisitor = (0, _visitors.merge)([{ - ThisExpression(child, { - thisPaths - }) { - thisPaths.push(child); - }, - JSXIdentifier(child, { - thisPaths - }) { - if (child.node.name !== "this") return; - if (!child.parentPath.isJSXMemberExpression({ - object: child.node - }) && !child.parentPath.isJSXOpeningElement({ - name: child.node - })) { - return; +function* resolveShowConfigPath(dirname) { + const targetPath = process.env.BABEL_SHOW_CONFIG_FOR; + if (targetPath != null) { + const absolutePath = _path().resolve(dirname, targetPath); + const stats = yield* fs.stat(absolutePath); + if (!stats.isFile()) { + throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`); } - thisPaths.push(child); - }, - CallExpression(child, { - superCalls - }) { - if (child.get("callee").isSuper()) superCalls.push(child); - }, - MemberExpression(child, { - superProps - }) { - if (child.get("object").isSuper()) superProps.push(child); - }, - Identifier(child, { - argumentsPaths - }) { - if (!child.isReferencedIdentifier({ - name: "arguments" - })) return; - let curr = child.scope; - do { - if (curr.hasOwnBinding("arguments")) { - curr.rename("arguments"); - return; - } - if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) { - break; - } - } while (curr = curr.parent); - argumentsPaths.push(child); - }, - MetaProperty(child, { - newTargetPaths - }) { - if (!child.get("meta").isIdentifier({ - name: "new" - })) return; - if (!child.get("property").isIdentifier({ - name: "target" - })) return; - newTargetPaths.push(child); + return absolutePath; + } + return null; +} +function throwConfigError(filepath) { + throw new _configError.default(`\ +Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured +for various types of caching, using the first param of their handler functions: + +module.exports = function(api) { + // The API exposes the following: + + // Cache the returned value forever and don't call this function again. + api.cache(true); + + // Don't cache at all. Not recommended because it will be very slow. + api.cache(false); + + // Cached based on the value of some function. If this function returns a value different from + // a previously-encountered value, the plugins will re-evaluate. + var env = api.cache(() => process.env.NODE_ENV); + + // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for + // any possible NODE_ENV value that might come up during plugin execution. + var isProd = api.cache(() => process.env.NODE_ENV === "production"); + + // .cache(fn) will perform a linear search though instances to find the matching plugin based + // based on previous instantiated plugins. If you want to recreate the plugin and discard the + // previous instance whenever something changes, you may use: + var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production"); + + // Note, we also expose the following more-verbose versions of the above examples: + api.cache.forever(); // api.cache(true) + api.cache.never(); // api.cache(false) + api.cache.using(fn); // api.cache(fn) + + // Return the value that will be cached. + return { }; +};`, filepath); +} +0 && 0; + +//# sourceMappingURL=configuration.js.map + + +/***/ }), + +/***/ 83148: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "ROOT_CONFIG_FILENAMES", ({ + enumerable: true, + get: function () { + return _configuration.ROOT_CONFIG_FILENAMES; + } +})); +Object.defineProperty(exports, "findConfigUpwards", ({ + enumerable: true, + get: function () { + return _configuration.findConfigUpwards; + } +})); +Object.defineProperty(exports, "findPackageData", ({ + enumerable: true, + get: function () { + return _package.findPackageData; + } +})); +Object.defineProperty(exports, "findRelativeConfig", ({ + enumerable: true, + get: function () { + return _configuration.findRelativeConfig; + } +})); +Object.defineProperty(exports, "findRootConfig", ({ + enumerable: true, + get: function () { + return _configuration.findRootConfig; + } +})); +Object.defineProperty(exports, "loadConfig", ({ + enumerable: true, + get: function () { + return _configuration.loadConfig; + } +})); +Object.defineProperty(exports, "loadPlugin", ({ + enumerable: true, + get: function () { + return _plugins.loadPlugin; } -}, _helperEnvironmentVisitor.default]); -function getScopeInformation(fnPath) { - const thisPaths = []; - const argumentsPaths = []; - const newTargetPaths = []; - const superProps = []; - const superCalls = []; - fnPath.traverse(getScopeInformationVisitor, { - thisPaths, - argumentsPaths, - newTargetPaths, - superProps, - superCalls - }); - return { - thisPaths, - argumentsPaths, - newTargetPaths, - superProps, - superCalls - }; -} +})); +Object.defineProperty(exports, "loadPreset", ({ + enumerable: true, + get: function () { + return _plugins.loadPreset; + } +})); +Object.defineProperty(exports, "resolvePlugin", ({ + enumerable: true, + get: function () { + return _plugins.resolvePlugin; + } +})); +Object.defineProperty(exports, "resolvePreset", ({ + enumerable: true, + get: function () { + return _plugins.resolvePreset; + } +})); +Object.defineProperty(exports, "resolveShowConfigPath", ({ + enumerable: true, + get: function () { + return _configuration.resolveShowConfigPath; + } +})); +var _package = __nccwpck_require__(95756); +var _configuration = __nccwpck_require__(23172); +var _plugins = __nccwpck_require__(39650); +({}); +0 && 0; -//# sourceMappingURL=conversion.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 79625: -/***/ (function(__unused_webpack_module, exports) { +/***/ 95017: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -115694,340 +29638,248 @@ function getScopeInformation(fnPath) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.evaluate = evaluate; -exports.evaluateTruthy = evaluateTruthy; -const VALID_CALLEES = ["String", "Number", "Math"]; -const INVALID_METHODS = ["random"]; -function isValidCallee(val) { - return VALID_CALLEES.includes(val); -} -function isInvalidMethod(val) { - return INVALID_METHODS.includes(val); +exports["default"] = loadCodeDefault; +exports.supportsESM = void 0; +var _async = __nccwpck_require__(53846); +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; } -function evaluateTruthy() { - const res = this.evaluate(); - if (res.confident) return !!res.value; +function _url() { + const data = __nccwpck_require__(57310); + _url = function () { + return data; + }; + return data; } -function deopt(path, state) { - if (!state.confident) return; - state.deoptPath = path; - state.confident = false; +function _semver() { + const data = __nccwpck_require__(72641); + _semver = function () { + return data; + }; + return data; } -function evaluateCached(path, state) { - const { - node - } = path; - const { - seen - } = state; - if (seen.has(node)) { - const existing = seen.get(node); - if (existing.resolved) { - return existing.value; - } else { - deopt(path, state); - return; - } - } else { - const item = { - resolved: false - }; - seen.set(node, item); - const val = _evaluate(path, state); - if (state.confident) { - item.resolved = true; - item.value = val; - } - return val; - } +function _debug() { + const data = __nccwpck_require__(34755); + _debug = function () { + return data; + }; + return data; } -function _evaluate(path, state) { - if (!state.confident) return; - if (path.isSequenceExpression()) { - const exprs = path.get("expressions"); - return evaluateCached(exprs[exprs.length - 1], state); - } - if (path.isStringLiteral() || path.isNumericLiteral() || path.isBooleanLiteral()) { - return path.node.value; - } - if (path.isNullLiteral()) { - return null; - } - if (path.isTemplateLiteral()) { - return evaluateQuasis(path, path.node.quasis, state); - } - if (path.isTaggedTemplateExpression() && path.get("tag").isMemberExpression()) { - const object = path.get("tag.object"); - const { - node: { - name - } - } = object; - const property = path.get("tag.property"); - if (object.isIdentifier() && name === "String" && !path.scope.getBinding(name) && property.isIdentifier() && property.node.name === "raw") { - return evaluateQuasis(path, path.node.quasi.quasis, state, true); - } - } - if (path.isConditionalExpression()) { - const testResult = evaluateCached(path.get("test"), state); - if (!state.confident) return; - if (testResult) { - return evaluateCached(path.get("consequent"), state); - } else { - return evaluateCached(path.get("alternate"), state); - } - } - if (path.isExpressionWrapper()) { - return evaluateCached(path.get("expression"), state); - } - if (path.isMemberExpression() && !path.parentPath.isCallExpression({ - callee: path.node - })) { - const property = path.get("property"); - const object = path.get("object"); - if (object.isLiteral()) { - const value = object.node.value; - const type = typeof value; - let key = null; - if (path.node.computed) { - key = evaluateCached(property, state); - if (!state.confident) return; - } else if (property.isIdentifier()) { - key = property.node.name; - } - if ((type === "number" || type === "string") && key != null && (typeof key === "number" || typeof key === "string")) { - return value[key]; +var _rewriteStackTrace = __nccwpck_require__(16670); +var _configError = __nccwpck_require__(14884); +var _transformFile = __nccwpck_require__(76604); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } +const debug = _debug()("babel:config:loading:files:module-types"); +let import_; +try { + import_ = __nccwpck_require__(87286); +} catch (_unused) {} +const supportsESM = exports.supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2"); +function* loadCodeDefault(filepath, asyncError) { + switch (_path().extname(filepath)) { + case ".cjs": + { + return loadCjsDefault(filepath, arguments[2]); } - } - } - if (path.isReferencedIdentifier()) { - const binding = path.scope.getBinding(path.node.name); - if (binding && binding.constantViolations.length > 0) { - return deopt(binding.path, state); - } - if (binding && path.node.start < binding.path.node.end) { - return deopt(binding.path, state); - } - if (binding != null && binding.hasValue) { - return binding.value; - } else { - if (path.node.name === "undefined") { - return binding ? deopt(binding.path, state) : undefined; - } else if (path.node.name === "Infinity") { - return binding ? deopt(binding.path, state) : Infinity; - } else if (path.node.name === "NaN") { - return binding ? deopt(binding.path, state) : NaN; - } - const resolved = path.resolve(); - if (resolved === path) { - return deopt(path, state); - } else { - return evaluateCached(resolved, state); + case ".mjs": + break; + case ".cts": + return loadCtsDefault(filepath); + default: + try { + { + return loadCjsDefault(filepath, arguments[2]); + } + } catch (e) { + if (e.code !== "ERR_REQUIRE_ESM") throw e; } - } - } - if (path.isUnaryExpression({ - prefix: true - })) { - if (path.node.operator === "void") { - return undefined; - } - const argument = path.get("argument"); - if (path.node.operator === "typeof" && (argument.isFunction() || argument.isClass())) { - return "function"; - } - const arg = evaluateCached(argument, state); - if (!state.confident) return; - switch (path.node.operator) { - case "!": - return !arg; - case "+": - return +arg; - case "-": - return -arg; - case "~": - return ~arg; - case "typeof": - return typeof arg; - } } - if (path.isArrayExpression()) { - const arr = []; - const elems = path.get("elements"); - for (const elem of elems) { - const elemValue = elem.evaluate(); - if (elemValue.confident) { - arr.push(elemValue.value); - } else { - return deopt(elemValue.deopt, state); - } - } - return arr; + if (yield* (0, _async.isAsync)()) { + return yield* (0, _async.waitFor)(loadMjsDefault(filepath)); } - if (path.isObjectExpression()) { - const obj = {}; - const props = path.get("properties"); - for (const prop of props) { - if (prop.isObjectMethod() || prop.isSpreadElement()) { - return deopt(prop, state); - } - const keyPath = prop.get("key"); - let key; - if (prop.node.computed) { - key = keyPath.evaluate(); - if (!key.confident) { - return deopt(key.deopt, state); + throw new _configError.default(asyncError, filepath); +} +function loadCtsDefault(filepath) { + const ext = ".cts"; + const hasTsSupport = !!(require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]); + let handler; + if (!hasTsSupport) { + const opts = { + babelrc: false, + configFile: false, + sourceType: "unambiguous", + sourceMaps: "inline", + sourceFileName: _path().basename(filepath), + presets: [[getTSPreset(filepath), Object.assign({ + onlyRemoveTypeImports: true, + optimizeConstEnums: true + }, { + allowDeclareFields: true + })]] + }; + handler = function (m, filename) { + if (handler && filename.endsWith(ext)) { + try { + return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, { + filename + })).code, filename); + } catch (error) { + if (!hasTsSupport) { + const packageJson = __nccwpck_require__(69568); + if (_semver().lt(packageJson.version, "7.21.4")) { + console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`."); + } + } + throw error; } - key = key.value; - } else if (keyPath.isIdentifier()) { - key = keyPath.node.name; - } else { - key = keyPath.node.value; - } - const valuePath = prop.get("value"); - let value = valuePath.evaluate(); - if (!value.confident) { - return deopt(value.deopt, state); } - value = value.value; - obj[key] = value; - } - return obj; + return require.extensions[".js"](m, filename); + }; + require.extensions[ext] = handler; } - if (path.isLogicalExpression()) { - const wasConfident = state.confident; - const left = evaluateCached(path.get("left"), state); - const leftConfident = state.confident; - state.confident = wasConfident; - const right = evaluateCached(path.get("right"), state); - const rightConfident = state.confident; - switch (path.node.operator) { - case "||": - state.confident = leftConfident && (!!left || rightConfident); - if (!state.confident) return; - return left || right; - case "&&": - state.confident = leftConfident && (!left || rightConfident); - if (!state.confident) return; - return left && right; - case "??": - state.confident = leftConfident && (left != null || rightConfident); - if (!state.confident) return; - return left != null ? left : right; + try { + return loadCjsDefault(filepath); + } finally { + if (!hasTsSupport) { + if (require.extensions[ext] === handler) delete require.extensions[ext]; + handler = undefined; } } - if (path.isBinaryExpression()) { - const left = evaluateCached(path.get("left"), state); - if (!state.confident) return; - const right = evaluateCached(path.get("right"), state); - if (!state.confident) return; - switch (path.node.operator) { - case "-": - return left - right; - case "+": - return left + right; - case "/": - return left / right; - case "*": - return left * right; - case "%": - return left % right; - case "**": - return Math.pow(left, right); - case "<": - return left < right; - case ">": - return left > right; - case "<=": - return left <= right; - case ">=": - return left >= right; - case "==": - return left == right; - case "!=": - return left != right; - case "===": - return left === right; - case "!==": - return left !== right; - case "|": - return left | right; - case "&": - return left & right; - case "^": - return left ^ right; - case "<<": - return left << right; - case ">>": - return left >> right; - case ">>>": - return left >>> right; - } +} +const LOADING_CJS_FILES = new Set(); +function loadCjsDefault(filepath) { + if (LOADING_CJS_FILES.has(filepath)) { + debug("Auto-ignoring usage of config %o.", filepath); + return {}; } - if (path.isCallExpression()) { - const callee = path.get("callee"); - let context; - let func; - if (callee.isIdentifier() && !path.scope.getBinding(callee.node.name) && isValidCallee(callee.node.name)) { - func = global[callee.node.name]; + let module; + try { + LOADING_CJS_FILES.add(filepath); + module = (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath); + } finally { + LOADING_CJS_FILES.delete(filepath); + } + { + var _module; + return (_module = module) != null && _module.__esModule ? module.default || (arguments[1] ? module : undefined) : module; + } +} +function loadMjsDefault(_x) { + return _loadMjsDefault.apply(this, arguments); +} +function _loadMjsDefault() { + _loadMjsDefault = _asyncToGenerator(function* (filepath) { + if (!import_) { + throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath); } - if (callee.isMemberExpression()) { - const object = callee.get("object"); - const property = callee.get("property"); - if (object.isIdentifier() && property.isIdentifier() && isValidCallee(object.node.name) && !isInvalidMethod(property.node.name)) { - context = global[object.node.name]; - func = context[property.node.name]; - } - if (object.isLiteral() && property.isIdentifier()) { - const type = typeof object.node.value; - if (type === "string" || type === "number") { - context = object.node.value; - func = context[property.node.name]; - } + const module = yield (0, _rewriteStackTrace.endHiddenCallStack)(import_)((0, _url().pathToFileURL)(filepath)); + return module.default; + }); + return _loadMjsDefault.apply(this, arguments); +} +function getTSPreset(filepath) { + try { + return __nccwpck_require__(8413); + } catch (error) { + if (error.code !== "MODULE_NOT_FOUND") throw error; + let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!"; + { + if (process.versions.pnp) { + message += ` +If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file: + +packageExtensions: +\t"@babel/core@*": +\t\tpeerDependencies: +\t\t\t"@babel/preset-typescript": "*" +`; } } - if (func) { - const args = path.get("arguments").map(arg => evaluateCached(arg, state)); - if (!state.confident) return; - return func.apply(context, args); - } + throw new _configError.default(message, filepath); } - deopt(path, state); } -function evaluateQuasis(path, quasis, state, raw = false) { - let str = ""; - let i = 0; - const exprs = path.isTemplateLiteral() ? path.get("expressions") : path.get("quasi.expressions"); - for (const elem of quasis) { - if (!state.confident) break; - str += raw ? elem.value.raw : elem.value.cooked; - const expr = exprs[i++]; - if (expr) str += String(evaluateCached(expr, state)); - } - if (!state.confident) return; - return str; +0 && 0; + +//# sourceMappingURL=module-types.js.map + + +/***/ }), + +/***/ 95756: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.findPackageData = findPackageData; +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; } -function evaluate() { - const state = { - confident: true, - deoptPath: null, - seen: new Map() +var _utils = __nccwpck_require__(55728); +var _configError = __nccwpck_require__(14884); +const PACKAGE_FILENAME = "package.json"; +const readConfigPackage = (0, _utils.makeStaticFileCache)((filepath, content) => { + let options; + try { + options = JSON.parse(content); + } catch (err) { + throw new _configError.default(`Error while parsing JSON - ${err.message}`, filepath); + } + if (!options) throw new Error(`${filepath}: No config detected`); + if (typeof options !== "object") { + throw new _configError.default(`Config returned typeof ${typeof options}`, filepath); + } + if (Array.isArray(options)) { + throw new _configError.default(`Expected config object but found array`, filepath); + } + return { + filepath, + dirname: _path().dirname(filepath), + options }; - let value = evaluateCached(this, state); - if (!state.confident) value = undefined; +}); +function* findPackageData(filepath) { + let pkg = null; + const directories = []; + let isPackage = true; + let dirname = _path().dirname(filepath); + while (!pkg && _path().basename(dirname) !== "node_modules") { + directories.push(dirname); + pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME)); + const nextLoc = _path().dirname(dirname); + if (dirname === nextLoc) { + isPackage = false; + break; + } + dirname = nextLoc; + } return { - confident: state.confident, - deopt: state.deoptPath, - value: value + filepath, + directories, + pkg, + isPackage }; } +0 && 0; -//# sourceMappingURL=evaluation.js.map +//# sourceMappingURL=package.js.map /***/ }), -/***/ 58722: +/***/ 39650: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -116036,342 +29888,267 @@ function evaluate() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._getKey = _getKey; -exports._getPattern = _getPattern; -exports.get = get; -exports.getAllNextSiblings = getAllNextSiblings; -exports.getAllPrevSiblings = getAllPrevSiblings; -exports.getBindingIdentifierPaths = getBindingIdentifierPaths; -exports.getBindingIdentifiers = getBindingIdentifiers; -exports.getCompletionRecords = getCompletionRecords; -exports.getNextSibling = getNextSibling; -exports.getOpposite = getOpposite; -exports.getOuterBindingIdentifierPaths = getOuterBindingIdentifierPaths; -exports.getOuterBindingIdentifiers = getOuterBindingIdentifiers; -exports.getPrevSibling = getPrevSibling; -exports.getSibling = getSibling; -var _index = __nccwpck_require__(30263); -var _t = __nccwpck_require__(53501); -const { - getBindingIdentifiers: _getBindingIdentifiers, - getOuterBindingIdentifiers: _getOuterBindingIdentifiers, - isDeclaration, - numericLiteral, - unaryExpression -} = _t; -const NORMAL_COMPLETION = 0; -const BREAK_COMPLETION = 1; -function NormalCompletion(path) { - return { - type: NORMAL_COMPLETION, - path +exports.loadPlugin = loadPlugin; +exports.loadPreset = loadPreset; +exports.resolvePreset = exports.resolvePlugin = void 0; +function _debug() { + const data = __nccwpck_require__(34755); + _debug = function () { + return data; }; + return data; } -function BreakCompletion(path) { - return { - type: BREAK_COMPLETION, - path +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; }; + return data; } -function getOpposite() { - if (this.key === "left") { - return this.getSibling("right"); - } else if (this.key === "right") { - return this.getSibling("left"); - } - return null; +var _async = __nccwpck_require__(53846); +var _moduleTypes = __nccwpck_require__(95017); +function _url() { + const data = __nccwpck_require__(57310); + _url = function () { + return data; + }; + return data; } -function addCompletionRecords(path, records, context) { - if (path) { - records.push(..._getCompletionRecords(path, context)); - } - return records; +var _importMetaResolve = __nccwpck_require__(39292); +function _fs() { + const data = __nccwpck_require__(57147); + _fs = function () { + return data; + }; + return data; } -function completionRecordForSwitch(cases, records, context) { - let lastNormalCompletions = []; - for (let i = 0; i < cases.length; i++) { - const casePath = cases[i]; - const caseCompletions = _getCompletionRecords(casePath, context); - const normalCompletions = []; - const breakCompletions = []; - for (const c of caseCompletions) { - if (c.type === NORMAL_COMPLETION) { - normalCompletions.push(c); - } - if (c.type === BREAK_COMPLETION) { - breakCompletions.push(c); - } - } - if (normalCompletions.length) { - lastNormalCompletions = normalCompletions; - } - records.push(...breakCompletions); - } - records.push(...lastNormalCompletions); - return records; +const debug = _debug()("babel:config:loading:files:plugins"); +const EXACT_RE = /^module:/; +const BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/; +const BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/; +const BABEL_PLUGIN_ORG_RE = /^(@babel\/)(?!plugin-|[^/]+\/)/; +const BABEL_PRESET_ORG_RE = /^(@babel\/)(?!preset-|[^/]+\/)/; +const OTHER_PLUGIN_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/; +const OTHER_PRESET_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/; +const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/; +const resolvePlugin = exports.resolvePlugin = resolveStandardizedName.bind(null, "plugin"); +const resolvePreset = exports.resolvePreset = resolveStandardizedName.bind(null, "preset"); +function* loadPlugin(name, dirname) { + const filepath = resolvePlugin(name, dirname, yield* (0, _async.isAsync)()); + const value = yield* requireModule("plugin", filepath); + debug("Loaded plugin %o from %o.", name, dirname); + return { + filepath, + value + }; } -function normalCompletionToBreak(completions) { - completions.forEach(c => { - c.type = BREAK_COMPLETION; - }); +function* loadPreset(name, dirname) { + const filepath = resolvePreset(name, dirname, yield* (0, _async.isAsync)()); + const value = yield* requireModule("preset", filepath); + debug("Loaded preset %o from %o.", name, dirname); + return { + filepath, + value + }; } -function replaceBreakStatementInBreakCompletion(completions, reachable) { - completions.forEach(c => { - if (c.path.isBreakStatement({ - label: null - })) { - if (reachable) { - c.path.replaceWith(unaryExpression("void", numericLiteral(0))); - } else { - c.path.remove(); - } - } - }); +function standardizeName(type, name) { + if (_path().isAbsolute(name)) return name; + const isPreset = type === "preset"; + return name.replace(isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE, `babel-${type}-`).replace(isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE, `$1${type}-`).replace(isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE, `$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`).replace(EXACT_RE, ""); } -function getStatementListCompletion(paths, context) { - const completions = []; - if (context.canHaveBreak) { - let lastNormalCompletions = []; - for (let i = 0; i < paths.length; i++) { - const path = paths[i]; - const newContext = Object.assign({}, context, { - inCaseClause: false - }); - if (path.isBlockStatement() && (context.inCaseClause || context.shouldPopulateBreak)) { - newContext.shouldPopulateBreak = true; - } else { - newContext.shouldPopulateBreak = false; - } - const statementCompletions = _getCompletionRecords(path, newContext); - if (statementCompletions.length > 0 && statementCompletions.every(c => c.type === BREAK_COMPLETION)) { - if (lastNormalCompletions.length > 0 && statementCompletions.every(c => c.path.isBreakStatement({ - label: null - }))) { - normalCompletionToBreak(lastNormalCompletions); - completions.push(...lastNormalCompletions); - if (lastNormalCompletions.some(c => c.path.isDeclaration())) { - completions.push(...statementCompletions); - replaceBreakStatementInBreakCompletion(statementCompletions, true); - } - replaceBreakStatementInBreakCompletion(statementCompletions, false); - } else { - completions.push(...statementCompletions); - if (!context.shouldPopulateBreak) { - replaceBreakStatementInBreakCompletion(statementCompletions, true); - } - } - break; - } - if (i === paths.length - 1) { - completions.push(...statementCompletions); - } else { - lastNormalCompletions = []; - for (let i = 0; i < statementCompletions.length; i++) { - const c = statementCompletions[i]; - if (c.type === BREAK_COMPLETION) { - completions.push(c); - } - if (c.type === NORMAL_COMPLETION) { - lastNormalCompletions.push(c); - } - } - } - } - } else if (paths.length) { - for (let i = paths.length - 1; i >= 0; i--) { - const pathCompletions = _getCompletionRecords(paths[i], context); - if (pathCompletions.length > 1 || pathCompletions.length === 1 && !pathCompletions[0].path.isVariableDeclaration()) { - completions.push(...pathCompletions); - break; - } +function* resolveAlternativesHelper(type, name) { + const standardizedName = standardizeName(type, name); + const { + error, + value + } = yield standardizedName; + if (!error) return value; + if (error.code !== "MODULE_NOT_FOUND") throw error; + if (standardizedName !== name && !(yield name).error) { + error.message += `\n- If you want to resolve "${name}", use "module:${name}"`; + } + if (!(yield standardizeName(type, "@babel/" + name)).error) { + error.message += `\n- Did you mean "@babel/${name}"?`; + } + const oppositeType = type === "preset" ? "plugin" : "preset"; + if (!(yield standardizeName(oppositeType, name)).error) { + error.message += `\n- Did you accidentally pass a ${oppositeType} as a ${type}?`; + } + if (type === "plugin") { + const transformName = standardizedName.replace("-proposal-", "-transform-"); + if (transformName !== standardizedName && !(yield transformName).error) { + error.message += `\n- Did you mean "${transformName}"?`; } } - return completions; + error.message += `\n +Make sure that all the Babel plugins and presets you are using +are defined as dependencies or devDependencies in your package.json +file. It's possible that the missing plugin is loaded by a preset +you are using that forgot to add the plugin to its dependencies: you +can workaround this problem by explicitly adding the missing package +to your top-level package.json. +`; + throw error; } -function _getCompletionRecords(path, context) { - let records = []; - if (path.isIfStatement()) { - records = addCompletionRecords(path.get("consequent"), records, context); - records = addCompletionRecords(path.get("alternate"), records, context); - } else if (path.isDoExpression() || path.isFor() || path.isWhile() || path.isLabeledStatement()) { - return addCompletionRecords(path.get("body"), records, context); - } else if (path.isProgram() || path.isBlockStatement()) { - return getStatementListCompletion(path.get("body"), context); - } else if (path.isFunction()) { - return _getCompletionRecords(path.get("body"), context); - } else if (path.isTryStatement()) { - records = addCompletionRecords(path.get("block"), records, context); - records = addCompletionRecords(path.get("handler"), records, context); - } else if (path.isCatchClause()) { - return addCompletionRecords(path.get("body"), records, context); - } else if (path.isSwitchStatement()) { - return completionRecordForSwitch(path.get("cases"), records, context); - } else if (path.isSwitchCase()) { - return getStatementListCompletion(path.get("consequent"), { - canHaveBreak: true, - shouldPopulateBreak: false, - inCaseClause: true - }); - } else if (path.isBreakStatement()) { - records.push(BreakCompletion(path)); - } else { - records.push(NormalCompletion(path)); +function tryRequireResolve(id, dirname) { + try { + if (dirname) { + return { + error: null, + value: (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { + paths: [b] + }, M = __nccwpck_require__(98188)) => { + let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); + if (f) return f; + f = new Error(`Cannot resolve module '${r}'`); + f.code = "MODULE_NOT_FOUND"; + throw f; + })(id, { + paths: [dirname] + }) + }; + } else { + return { + error: null, + value: require.resolve(id) + }; + } + } catch (error) { + return { + error, + value: null + }; } - return records; -} -function getCompletionRecords() { - const records = _getCompletionRecords(this, { - canHaveBreak: false, - shouldPopulateBreak: false, - inCaseClause: false - }); - return records.map(r => r.path); -} -function getSibling(key) { - return _index.default.get({ - parentPath: this.parentPath, - parent: this.parent, - container: this.container, - listKey: this.listKey, - key: key - }).setContext(this.context); -} -function getPrevSibling() { - return this.getSibling(this.key - 1); } -function getNextSibling() { - return this.getSibling(this.key + 1); -} -function getAllNextSiblings() { - let _key = this.key; - let sibling = this.getSibling(++_key); - const siblings = []; - while (sibling.node) { - siblings.push(sibling); - sibling = this.getSibling(++_key); +function tryImportMetaResolve(id, options) { + try { + return { + error: null, + value: (0, _importMetaResolve.resolve)(id, options) + }; + } catch (error) { + return { + error, + value: null + }; } - return siblings; } -function getAllPrevSiblings() { - let _key = this.key; - let sibling = this.getSibling(--_key); - const siblings = []; - while (sibling.node) { - siblings.push(sibling); - sibling = this.getSibling(--_key); +function resolveStandardizedNameForRequire(type, name, dirname) { + const it = resolveAlternativesHelper(type, name); + let res = it.next(); + while (!res.done) { + res = it.next(tryRequireResolve(res.value, dirname)); } - return siblings; + return res.value; } -function get(key, context = true) { - if (context === true) context = this.context; - const parts = key.split("."); - if (parts.length === 1) { - return this._getKey(key, context); - } else { - return this._getPattern(parts, context); +function resolveStandardizedNameForImport(type, name, dirname) { + const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href; + const it = resolveAlternativesHelper(type, name); + let res = it.next(); + while (!res.done) { + res = it.next(tryImportMetaResolve(res.value, parentUrl)); } + return (0, _url().fileURLToPath)(res.value); } -function _getKey(key, context) { - const node = this.node; - const container = node[key]; - if (Array.isArray(container)) { - return container.map((_, i) => { - return _index.default.get({ - listKey: key, - parentPath: this, - parent: node, - container: container, - key: i - }).setContext(context); - }); - } else { - return _index.default.get({ - parentPath: this, - parent: node, - container: node, - key: key - }).setContext(context); +function resolveStandardizedName(type, name, dirname, resolveESM) { + if (!_moduleTypes.supportsESM || !resolveESM) { + return resolveStandardizedNameForRequire(type, name, dirname); } -} -function _getPattern(parts, context) { - let path = this; - for (const part of parts) { - if (part === ".") { - path = path.parentPath; - } else { - if (Array.isArray(path)) { - path = path[part]; - } else { - path = path.get(part, context); - } + try { + const resolved = resolveStandardizedNameForImport(type, name, dirname); + if (!(0, _fs().existsSync)(resolved)) { + throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname}.`), { + type: "MODULE_NOT_FOUND" + }); + } + return resolved; + } catch (e) { + try { + return resolveStandardizedNameForRequire(type, name, dirname); + } catch (e2) { + if (e.type === "MODULE_NOT_FOUND") throw e; + if (e2.type === "MODULE_NOT_FOUND") throw e2; + throw e; } } - return path; } -function getBindingIdentifiers(duplicates) { - return _getBindingIdentifiers(this.node, duplicates); -} -function getOuterBindingIdentifiers(duplicates) { - return _getOuterBindingIdentifiers(this.node, duplicates); +{ + var LOADING_MODULES = new Set(); } -function getBindingIdentifierPaths(duplicates = false, outerOnly = false) { - const path = this; - const search = [path]; - const ids = Object.create(null); - while (search.length) { - const id = search.shift(); - if (!id) continue; - if (!id.node) continue; - const keys = _getBindingIdentifiers.keys[id.node.type]; - if (id.isIdentifier()) { - if (duplicates) { - const _ids = ids[id.node.name] = ids[id.node.name] || []; - _ids.push(id); - } else { - ids[id.node.name] = id; - } - continue; +function* requireModule(type, name) { + { + if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) { + throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.'); } - if (id.isExportDeclaration()) { - const declaration = id.get("declaration"); - if (isDeclaration(declaration)) { - search.push(declaration); - } - continue; + } + try { + { + LOADING_MODULES.add(name); } - if (outerOnly) { - if (id.isFunctionDeclaration()) { - search.push(id.get("id")); - continue; - } - if (id.isFunctionExpression()) { - continue; - } + { + return yield* (0, _moduleTypes.default)(name, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously.", true); } - if (keys) { - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const child = id.get(key); - if (Array.isArray(child)) { - search.push(...child); - } else if (child.node) { - search.push(child); - } - } + } catch (err) { + err.message = `[BABEL]: ${err.message} (While processing: ${name})`; + throw err; + } finally { + { + LOADING_MODULES.delete(name); } } - return ids; } -function getOuterBindingIdentifierPaths(duplicates = false) { - return this.getBindingIdentifierPaths(duplicates, true); +0 && 0; + +//# sourceMappingURL=plugins.js.map + + +/***/ }), + +/***/ 55728: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.makeStaticFileCache = makeStaticFileCache; +var _caching = __nccwpck_require__(40232); +var fs = __nccwpck_require__(666); +function _fs2() { + const data = __nccwpck_require__(57147); + _fs2 = function () { + return data; + }; + return data; +} +function makeStaticFileCache(fn) { + return (0, _caching.makeStrongCache)(function* (filepath, cache) { + const cached = cache.invalidate(() => fileMtime(filepath)); + if (cached === null) { + return null; + } + return fn(filepath, yield* fs.readFile(filepath, "utf8")); + }); +} +function fileMtime(filepath) { + if (!_fs2().existsSync(filepath)) return null; + try { + return +_fs2().statSync(filepath).mtime; + } catch (e) { + if (e.code !== "ENOENT" && e.code !== "ENOTDIR") throw e; + } + return null; } +0 && 0; -//# sourceMappingURL=family.js.map +//# sourceMappingURL=utils.js.map /***/ }), -/***/ 30263: +/***/ 33245: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -116380,203 +30157,459 @@ function getOuterBindingIdentifierPaths(duplicates = false) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = exports.SHOULD_STOP = exports.SHOULD_SKIP = exports.REMOVED = void 0; -var virtualTypes = __nccwpck_require__(79702); -var _debug = __nccwpck_require__(34755); -var _index = __nccwpck_require__(37386); -var _scope = __nccwpck_require__(82392); -var _t = __nccwpck_require__(53501); -var t = _t; -var _cache = __nccwpck_require__(52271); -var _generator = __nccwpck_require__(35761); -var NodePath_ancestry = __nccwpck_require__(50139); -var NodePath_inference = __nccwpck_require__(85341); -var NodePath_replacement = __nccwpck_require__(19599); -var NodePath_evaluation = __nccwpck_require__(79625); -var NodePath_conversion = __nccwpck_require__(5003); -var NodePath_introspection = __nccwpck_require__(22512); -var NodePath_context = __nccwpck_require__(68378); -var NodePath_removal = __nccwpck_require__(29463); -var NodePath_modification = __nccwpck_require__(39752); -var NodePath_family = __nccwpck_require__(58722); -var NodePath_comments = __nccwpck_require__(29060); -var NodePath_virtual_types_validator = __nccwpck_require__(96703); -const { - validate -} = _t; -const debug = _debug("babel"); -const REMOVED = 1 << 0; -exports.REMOVED = REMOVED; -const SHOULD_STOP = 1 << 1; -exports.SHOULD_STOP = SHOULD_STOP; -const SHOULD_SKIP = 1 << 2; -exports.SHOULD_SKIP = SHOULD_SKIP; -class NodePath { - constructor(hub, parent) { - this.contexts = []; - this.state = null; - this.opts = null; - this._traverseFlags = 0; - this.skipKeys = null; - this.parentPath = null; - this.container = null; - this.listKey = null; - this.key = null; - this.node = null; - this.type = null; - this.parent = parent; - this.hub = hub; - this.data = null; - this.context = null; - this.scope = null; +exports["default"] = void 0; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; +} +var _async = __nccwpck_require__(53846); +var _util = __nccwpck_require__(30298); +var context = __nccwpck_require__(65258); +var _plugin = __nccwpck_require__(1065); +var _item = __nccwpck_require__(54854); +var _configChain = __nccwpck_require__(1704); +var _deepArray = __nccwpck_require__(76669); +function _traverse() { + const data = __nccwpck_require__(22382); + _traverse = function () { + return data; + }; + return data; +} +var _caching = __nccwpck_require__(40232); +var _options = __nccwpck_require__(48922); +var _plugins = __nccwpck_require__(29940); +var _configApi = __nccwpck_require__(64183); +var _partial = __nccwpck_require__(71288); +var _configError = __nccwpck_require__(14884); +var _default = exports["default"] = _gensync()(function* loadFullConfig(inputOpts) { + var _opts$assumptions; + const result = yield* (0, _partial.default)(inputOpts); + if (!result) { + return null; } - static get({ - hub, - parentPath, - parent, - container, - listKey, - key - }) { - if (!hub && parentPath) { - hub = parentPath.hub; + const { + options, + context, + fileHandling + } = result; + if (fileHandling === "ignored") { + return null; + } + const optionDefaults = {}; + const { + plugins, + presets + } = options; + if (!plugins || !presets) { + throw new Error("Assertion failure - plugins and presets exist"); + } + const presetContext = Object.assign({}, context, { + targets: options.targets + }); + const toDescriptor = item => { + const desc = (0, _item.getItemDescriptor)(item); + if (!desc) { + throw new Error("Assertion failure - must be config item"); } - if (!parent) { - throw new Error("To get a node path the parent needs to exist"); + return desc; + }; + const presetsDescriptors = presets.map(toDescriptor); + const initialPluginsDescriptors = plugins.map(toDescriptor); + const pluginDescriptorsByPass = [[]]; + const passes = []; + const externalDependencies = []; + const ignored = yield* enhanceError(context, function* recursePresetDescriptors(rawPresets, pluginDescriptorsPass) { + const presets = []; + for (let i = 0; i < rawPresets.length; i++) { + const descriptor = rawPresets[i]; + if (descriptor.options !== false) { + try { + var preset = yield* loadPresetDescriptor(descriptor, presetContext); + } catch (e) { + if (e.code === "BABEL_UNKNOWN_OPTION") { + (0, _options.checkNoUnwrappedItemOptionPairs)(rawPresets, i, "preset", e); + } + throw e; + } + externalDependencies.push(preset.externalDependencies); + if (descriptor.ownPass) { + presets.push({ + preset: preset.chain, + pass: [] + }); + } else { + presets.unshift({ + preset: preset.chain, + pass: pluginDescriptorsPass + }); + } + } } - const targetNode = container[key]; - let paths = _cache.path.get(parent); - if (!paths) { - paths = new Map(); - _cache.path.set(parent, paths); + if (presets.length > 0) { + pluginDescriptorsByPass.splice(1, 0, ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass)); + for (const { + preset, + pass + } of presets) { + if (!preset) return true; + pass.push(...preset.plugins); + const ignored = yield* recursePresetDescriptors(preset.presets, pass); + if (ignored) return true; + preset.options.forEach(opts => { + (0, _util.mergeOptions)(optionDefaults, opts); + }); + } } - let path = paths.get(targetNode); - if (!path) { - path = new NodePath(hub, parent); - if (targetNode) paths.set(targetNode, path); + })(presetsDescriptors, pluginDescriptorsByPass[0]); + if (ignored) return null; + const opts = optionDefaults; + (0, _util.mergeOptions)(opts, options); + const pluginContext = Object.assign({}, presetContext, { + assumptions: (_opts$assumptions = opts.assumptions) != null ? _opts$assumptions : {} + }); + yield* enhanceError(context, function* loadPluginDescriptors() { + pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors); + for (const descs of pluginDescriptorsByPass) { + const pass = []; + passes.push(pass); + for (let i = 0; i < descs.length; i++) { + const descriptor = descs[i]; + if (descriptor.options !== false) { + try { + var plugin = yield* loadPluginDescriptor(descriptor, pluginContext); + } catch (e) { + if (e.code === "BABEL_UNKNOWN_PLUGIN_PROPERTY") { + (0, _options.checkNoUnwrappedItemOptionPairs)(descs, i, "plugin", e); + } + throw e; + } + pass.push(plugin); + externalDependencies.push(plugin.externalDependencies); + } + } } - path.setup(parentPath, container, listKey, key); - return path; - } - getScope(scope) { - return this.isScope() ? new _scope.default(this) : scope; - } - setData(key, val) { - if (this.data == null) { - this.data = Object.create(null); + })(); + opts.plugins = passes[0]; + opts.presets = passes.slice(1).filter(plugins => plugins.length > 0).map(plugins => ({ + plugins + })); + opts.passPerPreset = opts.presets.length > 0; + return { + options: opts, + passes: passes, + externalDependencies: (0, _deepArray.finalize)(externalDependencies) + }; +}); +function enhanceError(context, fn) { + return function* (arg1, arg2) { + try { + return yield* fn(arg1, arg2); + } catch (e) { + if (!/^\[BABEL\]/.test(e.message)) { + var _context$filename; + e.message = `[BABEL] ${(_context$filename = context.filename) != null ? _context$filename : "unknown file"}: ${e.message}`; + } + throw e; } - return this.data[key] = val; - } - getData(key, def) { - if (this.data == null) { - this.data = Object.create(null); + }; +} +const makeDescriptorLoader = apiFactory => (0, _caching.makeWeakCache)(function* ({ + value, + options, + dirname, + alias +}, cache) { + if (options === false) throw new Error("Assertion failure"); + options = options || {}; + const externalDependencies = []; + let item = value; + if (typeof value === "function") { + const factory = (0, _async.maybeAsync)(value, `You appear to be using an async plugin/preset, but Babel has been called synchronously`); + const api = Object.assign({}, context, apiFactory(cache, externalDependencies)); + try { + item = yield* factory(api, options, dirname); + } catch (e) { + if (alias) { + e.message += ` (While processing: ${JSON.stringify(alias)})`; + } + throw e; } - let val = this.data[key]; - if (val === undefined && def !== undefined) val = this.data[key] = def; - return val; - } - hasNode() { - return this.node != null; - } - buildCodeFrameError(msg, Error = SyntaxError) { - return this.hub.buildError(this.node, msg, Error); - } - traverse(visitor, state) { - (0, _index.default)(this.node, visitor, this.scope, state, this); - } - set(key, node) { - validate(this.node, key, node); - this.node[key] = node; - } - getPathLocation() { - const parts = []; - let path = this; - do { - let key = path.key; - if (path.inList) key = `${path.listKey}[${key}]`; - parts.unshift(key); - } while (path = path.parentPath); - return parts.join("."); - } - debug(message) { - if (!debug.enabled) return; - debug(`${this.getPathLocation()} ${this.type}: ${message}`); } - toString() { - return (0, _generator.default)(this.node).code; + if (!item || typeof item !== "object") { + throw new Error("Plugin/Preset did not return an object."); } - get inList() { - return !!this.listKey; + if ((0, _async.isThenable)(item)) { + yield* []; + throw new Error(`You appear to be using a promise as a plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version. ` + `As an alternative, you can prefix the promise with "await". ` + `(While processing: ${JSON.stringify(alias)})`); } - set inList(inList) { - if (!inList) { - this.listKey = null; + if (externalDependencies.length > 0 && (!cache.configured() || cache.mode() === "forever")) { + let error = `A plugin/preset has external untracked dependencies ` + `(${externalDependencies[0]}), but the cache `; + if (!cache.configured()) { + error += `has not been configured to be invalidated when the external dependencies change. `; + } else { + error += ` has been configured to never be invalidated. `; } + error += `Plugins/presets should configure their cache to be invalidated when the external ` + `dependencies change, for example using \`api.cache.invalidate(() => ` + `statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n` + `(While processing: ${JSON.stringify(alias)})`; + throw new Error(error); } - get parentKey() { - return this.listKey || this.key; - } - get shouldSkip() { - return !!(this._traverseFlags & SHOULD_SKIP); + return { + value: item, + options, + dirname, + alias, + externalDependencies: (0, _deepArray.finalize)(externalDependencies) + }; +}); +const pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI); +const presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI); +const instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ + value, + options, + dirname, + alias, + externalDependencies +}, cache) { + const pluginObj = (0, _plugins.validatePluginObject)(value); + const plugin = Object.assign({}, pluginObj); + if (plugin.visitor) { + plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor)); } - set shouldSkip(v) { - if (v) { - this._traverseFlags |= SHOULD_SKIP; - } else { - this._traverseFlags &= ~SHOULD_SKIP; + if (plugin.inherits) { + const inheritsDescriptor = { + name: undefined, + alias: `${alias}$inherits`, + value: plugin.inherits, + options, + dirname + }; + const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, run => { + return cache.invalidate(data => run(inheritsDescriptor, data)); + }); + plugin.pre = chain(inherits.pre, plugin.pre); + plugin.post = chain(inherits.post, plugin.post); + plugin.manipulateOptions = chain(inherits.manipulateOptions, plugin.manipulateOptions); + plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]); + if (inherits.externalDependencies.length > 0) { + if (externalDependencies.length === 0) { + externalDependencies = inherits.externalDependencies; + } else { + externalDependencies = (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]); + } } } - get shouldStop() { - return !!(this._traverseFlags & SHOULD_STOP); - } - set shouldStop(v) { - if (v) { - this._traverseFlags |= SHOULD_STOP; - } else { - this._traverseFlags &= ~SHOULD_STOP; + return new _plugin.default(plugin, options, alias, externalDependencies); +}); +function* loadPluginDescriptor(descriptor, context) { + if (descriptor.value instanceof _plugin.default) { + if (descriptor.options) { + throw new Error("Passed options to an existing Plugin instance will not work."); } + return descriptor.value; } - get removed() { - return !!(this._traverseFlags & REMOVED); + return yield* instantiatePlugin(yield* pluginDescriptorLoader(descriptor, context), context); +} +const needsFilename = val => val && typeof val !== "function"; +const validateIfOptionNeedsFilename = (options, descriptor) => { + if (needsFilename(options.test) || needsFilename(options.include) || needsFilename(options.exclude)) { + const formattedPresetName = descriptor.name ? `"${descriptor.name}"` : "/* your preset */"; + throw new _configError.default([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`, `\`\`\``, `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`, `\`\`\``, `See https://babeljs.io/docs/en/options#filename for more information.`].join("\n")); } - set removed(v) { - if (v) { - this._traverseFlags |= REMOVED; - } else { - this._traverseFlags &= ~REMOVED; - } +}; +const validatePreset = (preset, context, descriptor) => { + if (!context.filename) { + var _options$overrides; + const { + options + } = preset; + validateIfOptionNeedsFilename(options, descriptor); + (_options$overrides = options.overrides) == null || _options$overrides.forEach(overrideOptions => validateIfOptionNeedsFilename(overrideOptions, descriptor)); } +}; +const instantiatePreset = (0, _caching.makeWeakCacheSync)(({ + value, + dirname, + alias, + externalDependencies +}) => { + return { + options: (0, _options.validate)("preset", value), + alias, + dirname, + externalDependencies + }; +}); +function* loadPresetDescriptor(descriptor, context) { + const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context)); + validatePreset(preset, context, descriptor); + return { + chain: yield* (0, _configChain.buildPresetChain)(preset, context), + externalDependencies: preset.externalDependencies + }; } -Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments); -{ - NodePath.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo; +function chain(a, b) { + const fns = [a, b].filter(Boolean); + if (fns.length <= 1) return fns[0]; + return function (...args) { + for (const fn of fns) { + fn.apply(this, args); + } + }; } -for (const type of t.TYPES) { - const typeKey = `is${type}`; - const fn = t[typeKey]; - NodePath.prototype[typeKey] = function (opts) { - return fn(this.node, opts); +0 && 0; + +//# sourceMappingURL=full.js.map + + +/***/ }), + +/***/ 64183: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.makeConfigAPI = makeConfigAPI; +exports.makePluginAPI = makePluginAPI; +exports.makePresetAPI = makePresetAPI; +function _semver() { + const data = __nccwpck_require__(72641); + _semver = function () { + return data; }; - NodePath.prototype[`assert${type}`] = function (opts) { - if (!fn(this.node, opts)) { - throw new TypeError(`Expected node path of type ${type}`); + return data; +} +var _index = __nccwpck_require__(65258); +var _caching = __nccwpck_require__(40232); +function makeConfigAPI(cache) { + const env = value => cache.using(data => { + if (typeof value === "undefined") return data.envName; + if (typeof value === "function") { + return (0, _caching.assertSimpleType)(value(data.envName)); } + return (Array.isArray(value) ? value : [value]).some(entry => { + if (typeof entry !== "string") { + throw new Error("Unexpected non-string value"); + } + return entry === data.envName; + }); + }); + const caller = cb => cache.using(data => (0, _caching.assertSimpleType)(cb(data.caller))); + return { + version: _index.version, + cache: cache.simple(), + env, + async: () => false, + caller, + assertVersion }; } -Object.assign(NodePath.prototype, NodePath_virtual_types_validator); -for (const type of Object.keys(virtualTypes)) { - if (type[0] === "_") continue; - if (!t.TYPES.includes(type)) t.TYPES.push(type); +function makePresetAPI(cache, externalDependencies) { + const targets = () => JSON.parse(cache.using(data => JSON.stringify(data.targets))); + const addExternalDependency = ref => { + externalDependencies.push(ref); + }; + return Object.assign({}, makeConfigAPI(cache), { + targets, + addExternalDependency + }); +} +function makePluginAPI(cache, externalDependencies) { + const assumption = name => cache.using(data => data.assumptions[name]); + return Object.assign({}, makePresetAPI(cache, externalDependencies), { + assumption + }); +} +function assertVersion(range) { + if (typeof range === "number") { + if (!Number.isInteger(range)) { + throw new Error("Expected string or integer value."); + } + range = `^${range}.0.0-0`; + } + if (typeof range !== "string") { + throw new Error("Expected string or integer value."); + } + if (_semver().satisfies(_index.version, range)) return; + const limit = Error.stackTraceLimit; + if (typeof limit === "number" && limit < 25) { + Error.stackTraceLimit = 25; + } + const err = new Error(`Requires Babel "${range}", but was loaded with "${_index.version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); + if (typeof limit === "number") { + Error.stackTraceLimit = limit; + } + throw Object.assign(err, { + code: "BABEL_VERSION_UNSUPPORTED", + version: _index.version, + range + }); +} +0 && 0; + +//# sourceMappingURL=config-api.js.map + + +/***/ }), + +/***/ 76669: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.finalize = finalize; +exports.flattenToSet = flattenToSet; +function finalize(deepArr) { + return Object.freeze(deepArr); +} +function flattenToSet(arr) { + const result = new Set(); + const stack = [arr]; + while (stack.length > 0) { + for (const el of stack.pop()) { + if (Array.isArray(el)) stack.push(el);else result.add(el); + } + } + return result; } -var _default = NodePath; -exports["default"] = _default; +0 && 0; -//# sourceMappingURL=index.js.map +//# sourceMappingURL=deep-array.js.map + + +/***/ }), + +/***/ 23248: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getEnv = getEnv; +function getEnv(defaultValue = "development") { + return process.env.BABEL_ENV || process.env.NODE_ENV || defaultValue; +} +0 && 0; + +//# sourceMappingURL=environment.js.map /***/ }), -/***/ 85341: +/***/ 67112: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -116585,155 +30618,99 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._getTypeAnnotation = _getTypeAnnotation; -exports.baseTypeStrictlyMatches = baseTypeStrictlyMatches; -exports.couldBeBaseType = couldBeBaseType; -exports.getTypeAnnotation = getTypeAnnotation; -exports.isBaseType = isBaseType; -exports.isGenericType = isGenericType; -var inferers = __nccwpck_require__(41354); -var _t = __nccwpck_require__(53501); -const { - anyTypeAnnotation, - isAnyTypeAnnotation, - isArrayTypeAnnotation, - isBooleanTypeAnnotation, - isEmptyTypeAnnotation, - isFlowBaseAnnotation, - isGenericTypeAnnotation, - isIdentifier, - isMixedTypeAnnotation, - isNumberTypeAnnotation, - isStringTypeAnnotation, - isTSArrayType, - isTSTypeAnnotation, - isTSTypeReference, - isTupleTypeAnnotation, - isTypeAnnotation, - isUnionTypeAnnotation, - isVoidTypeAnnotation, - stringTypeAnnotation, - voidTypeAnnotation -} = _t; -function getTypeAnnotation() { - let type = this.getData("typeAnnotation"); - if (type != null) { - return type; - } - type = this._getTypeAnnotation() || anyTypeAnnotation(); - if (isTypeAnnotation(type) || isTSTypeAnnotation(type)) { - type = type.typeAnnotation; +exports.createConfigItem = createConfigItem; +exports.createConfigItemAsync = createConfigItemAsync; +exports.createConfigItemSync = createConfigItemSync; +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: function () { + return _full.default; } - this.setData("typeAnnotation", type); - return type; +})); +exports.loadOptions = loadOptions; +exports.loadOptionsAsync = loadOptionsAsync; +exports.loadOptionsSync = loadOptionsSync; +exports.loadPartialConfig = loadPartialConfig; +exports.loadPartialConfigAsync = loadPartialConfigAsync; +exports.loadPartialConfigSync = loadPartialConfigSync; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; } -const typeAnnotationInferringNodes = new WeakSet(); -function _getTypeAnnotation() { - const node = this.node; - if (!node) { - if (this.key === "init" && this.parentPath.isVariableDeclarator()) { - const declar = this.parentPath.parentPath; - const declarParent = declar.parentPath; - if (declar.key === "left" && declarParent.isForInStatement()) { - return stringTypeAnnotation(); - } - if (declar.key === "left" && declarParent.isForOfStatement()) { - return anyTypeAnnotation(); - } - return voidTypeAnnotation(); - } else { - return; - } - } - if (node.typeAnnotation) { - return node.typeAnnotation; - } - if (typeAnnotationInferringNodes.has(node)) { - return; - } - typeAnnotationInferringNodes.add(node); - try { - var _inferer; - let inferer = inferers[node.type]; - if (inferer) { - return inferer.call(this, node); - } - inferer = inferers[this.parentPath.type]; - if ((_inferer = inferer) != null && _inferer.validParent) { - return this.parentPath.getTypeAnnotation(); - } - } finally { - typeAnnotationInferringNodes.delete(node); - } +var _full = __nccwpck_require__(33245); +var _partial = __nccwpck_require__(71288); +var _item = __nccwpck_require__(54854); +var _rewriteStackTrace = __nccwpck_require__(16670); +const loadPartialConfigRunner = _gensync()(_partial.loadPartialConfig); +function loadPartialConfigAsync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(loadPartialConfigRunner.async)(...args); } -function isBaseType(baseName, soft) { - return _isBaseType(baseName, this.getTypeAnnotation(), soft); +function loadPartialConfigSync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(loadPartialConfigRunner.sync)(...args); } -function _isBaseType(baseName, type, soft) { - if (baseName === "string") { - return isStringTypeAnnotation(type); - } else if (baseName === "number") { - return isNumberTypeAnnotation(type); - } else if (baseName === "boolean") { - return isBooleanTypeAnnotation(type); - } else if (baseName === "any") { - return isAnyTypeAnnotation(type); - } else if (baseName === "mixed") { - return isMixedTypeAnnotation(type); - } else if (baseName === "empty") { - return isEmptyTypeAnnotation(type); - } else if (baseName === "void") { - return isVoidTypeAnnotation(type); +function loadPartialConfig(opts, callback) { + if (callback !== undefined) { + (0, _rewriteStackTrace.beginHiddenCallStack)(loadPartialConfigRunner.errback)(opts, callback); + } else if (typeof opts === "function") { + (0, _rewriteStackTrace.beginHiddenCallStack)(loadPartialConfigRunner.errback)(undefined, opts); } else { - if (soft) { - return false; - } else { - throw new Error(`Unknown base type ${baseName}`); + { + return loadPartialConfigSync(opts); } } } -function couldBeBaseType(name) { - const type = this.getTypeAnnotation(); - if (isAnyTypeAnnotation(type)) return true; - if (isUnionTypeAnnotation(type)) { - for (const type2 of type.types) { - if (isAnyTypeAnnotation(type2) || _isBaseType(name, type2, true)) { - return true; - } - } - return false; +function* loadOptionsImpl(opts) { + var _config$options; + const config = yield* (0, _full.default)(opts); + return (_config$options = config == null ? void 0 : config.options) != null ? _config$options : null; +} +const loadOptionsRunner = _gensync()(loadOptionsImpl); +function loadOptionsAsync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(loadOptionsRunner.async)(...args); +} +function loadOptionsSync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(loadOptionsRunner.sync)(...args); +} +function loadOptions(opts, callback) { + if (callback !== undefined) { + (0, _rewriteStackTrace.beginHiddenCallStack)(loadOptionsRunner.errback)(opts, callback); + } else if (typeof opts === "function") { + (0, _rewriteStackTrace.beginHiddenCallStack)(loadOptionsRunner.errback)(undefined, opts); } else { - return _isBaseType(name, type, true); + { + return loadOptionsSync(opts); + } } } -function baseTypeStrictlyMatches(rightArg) { - const left = this.getTypeAnnotation(); - const right = rightArg.getTypeAnnotation(); - if (!isAnyTypeAnnotation(left) && isFlowBaseAnnotation(left)) { - return right.type === left.type; - } - return false; +const createConfigItemRunner = _gensync()(_item.createConfigItem); +function createConfigItemAsync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(createConfigItemRunner.async)(...args); } -function isGenericType(genericName) { - const type = this.getTypeAnnotation(); - if (genericName === "Array") { - if (isTSArrayType(type) || isArrayTypeAnnotation(type) || isTupleTypeAnnotation(type)) { - return true; +function createConfigItemSync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(createConfigItemRunner.sync)(...args); +} +function createConfigItem(target, options, callback) { + if (callback !== undefined) { + (0, _rewriteStackTrace.beginHiddenCallStack)(createConfigItemRunner.errback)(target, options, callback); + } else if (typeof options === "function") { + (0, _rewriteStackTrace.beginHiddenCallStack)(createConfigItemRunner.errback)(target, undefined, callback); + } else { + { + return createConfigItemSync(target, options); } } - return isGenericTypeAnnotation(type) && isIdentifier(type.id, { - name: genericName - }) || isTSTypeReference(type) && isIdentifier(type.typeName, { - name: genericName - }); } +0 && 0; //# sourceMappingURL=index.js.map /***/ }), -/***/ 72302: +/***/ 54854: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -116742,157 +30719,239 @@ function isGenericType(genericName) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = _default; -var _t = __nccwpck_require__(53501); -var _util = __nccwpck_require__(2102); -const { - BOOLEAN_NUMBER_BINARY_OPERATORS, - createTypeAnnotationBasedOnTypeof, - numberTypeAnnotation, - voidTypeAnnotation -} = _t; -function _default(node) { - if (!this.isReferenced()) return; - const binding = this.scope.getBinding(node.name); - if (binding) { - if (binding.identifier.typeAnnotation) { - return binding.identifier.typeAnnotation; - } else { - return getTypeAnnotationBindingConstantViolations(binding, this, node.name); - } - } - if (node.name === "undefined") { - return voidTypeAnnotation(); - } else if (node.name === "NaN" || node.name === "Infinity") { - return numberTypeAnnotation(); - } else if (node.name === "arguments") {} +exports.createConfigItem = createConfigItem; +exports.createItemFromDescriptor = createItemFromDescriptor; +exports.getItemDescriptor = getItemDescriptor; +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; } -function getTypeAnnotationBindingConstantViolations(binding, path, name) { - const types = []; - const functionConstantViolations = []; - let constantViolations = getConstantViolationsBefore(binding, path, functionConstantViolations); - const testType = getConditionalAnnotation(binding, path, name); - if (testType) { - const testConstantViolations = getConstantViolationsBefore(binding, testType.ifStatement); - constantViolations = constantViolations.filter(path => testConstantViolations.indexOf(path) < 0); - types.push(testType.typeAnnotation); - } - if (constantViolations.length) { - constantViolations.push(...functionConstantViolations); - for (const violation of constantViolations) { - types.push(violation.getTypeAnnotation()); - } - } - if (!types.length) { - return; - } - return (0, _util.createUnionType)(types); +var _configDescriptors = __nccwpck_require__(5864); +function createItemFromDescriptor(desc) { + return new ConfigItem(desc); } -function getConstantViolationsBefore(binding, path, functions) { - const violations = binding.constantViolations.slice(); - violations.unshift(binding.path); - return violations.filter(violation => { - violation = violation.resolve(); - const status = violation._guessExecutionStatusRelativeTo(path); - if (functions && status === "unknown") functions.push(violation); - return status === "before"; +function* createConfigItem(value, { + dirname = ".", + type +} = {}) { + const descriptor = yield* (0, _configDescriptors.createDescriptor)(value, _path().resolve(dirname), { + type, + alias: "programmatic item" }); + return createItemFromDescriptor(descriptor); } -function inferAnnotationFromBinaryExpression(name, path) { - const operator = path.node.operator; - const right = path.get("right").resolve(); - const left = path.get("left").resolve(); - let target; - if (left.isIdentifier({ - name - })) { - target = right; - } else if (right.isIdentifier({ - name - })) { - target = left; - } - if (target) { - if (operator === "===") { - return target.getTypeAnnotation(); - } - if (BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { - return numberTypeAnnotation(); - } - return; +const CONFIG_ITEM_BRAND = Symbol.for("@babel/core@7 - ConfigItem"); +function getItemDescriptor(item) { + if (item != null && item[CONFIG_ITEM_BRAND]) { + return item._descriptor; } - if (operator !== "===" && operator !== "==") return; - let typeofPath; - let typePath; - if (left.isUnaryExpression({ - operator: "typeof" - })) { - typeofPath = left; - typePath = right; - } else if (right.isUnaryExpression({ - operator: "typeof" - })) { - typeofPath = right; - typePath = left; + return undefined; +} +class ConfigItem { + constructor(descriptor) { + this._descriptor = void 0; + this[CONFIG_ITEM_BRAND] = true; + this.value = void 0; + this.options = void 0; + this.dirname = void 0; + this.name = void 0; + this.file = void 0; + this._descriptor = descriptor; + Object.defineProperty(this, "_descriptor", { + enumerable: false + }); + Object.defineProperty(this, CONFIG_ITEM_BRAND, { + enumerable: false + }); + this.value = this._descriptor.value; + this.options = this._descriptor.options; + this.dirname = this._descriptor.dirname; + this.name = this._descriptor.name; + this.file = this._descriptor.file ? { + request: this._descriptor.file.request, + resolved: this._descriptor.file.resolved + } : undefined; + Object.freeze(this); } - if (!typeofPath) return; - if (!typeofPath.get("argument").isIdentifier({ - name - })) return; - typePath = typePath.resolve(); - if (!typePath.isLiteral()) return; - const typeValue = typePath.node.value; - if (typeof typeValue !== "string") return; - return createTypeAnnotationBasedOnTypeof(typeValue); } -function getParentConditionalPath(binding, path, name) { - let parentPath; - while (parentPath = path.parentPath) { - if (parentPath.isIfStatement() || parentPath.isConditionalExpression()) { - if (path.key === "test") { - return; +Object.freeze(ConfigItem.prototype); +0 && 0; + +//# sourceMappingURL=item.js.map + + +/***/ }), + +/***/ 71288: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = loadPrivatePartialConfig; +exports.loadPartialConfig = loadPartialConfig; +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; +} +var _plugin = __nccwpck_require__(1065); +var _util = __nccwpck_require__(30298); +var _item = __nccwpck_require__(54854); +var _configChain = __nccwpck_require__(1704); +var _environment = __nccwpck_require__(23248); +var _options = __nccwpck_require__(48922); +var _index = __nccwpck_require__(83148); +var _resolveTargets = __nccwpck_require__(2936); +const _excluded = ["showIgnoredFiles"]; +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +function resolveRootMode(rootDir, rootMode) { + switch (rootMode) { + case "root": + return rootDir; + case "upward-optional": + { + const upwardRootDir = (0, _index.findConfigUpwards)(rootDir); + return upwardRootDir === null ? rootDir : upwardRootDir; } - return parentPath; - } - if (parentPath.isFunction()) { - if (parentPath.parentPath.scope.getBinding(name) !== binding) return; - } - path = parentPath; + case "upward": + { + const upwardRootDir = (0, _index.findConfigUpwards)(rootDir); + if (upwardRootDir !== null) return upwardRootDir; + throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not ` + `be found when searching upward from "${rootDir}".\n` + `One of the following config files must be in the directory tree: ` + `"${_index.ROOT_CONFIG_FILENAMES.join(", ")}".`), { + code: "BABEL_ROOT_NOT_FOUND", + dirname: rootDir + }); + } + default: + throw new Error(`Assertion failure - unknown rootMode value.`); } } -function getConditionalAnnotation(binding, path, name) { - const ifStatement = getParentConditionalPath(binding, path, name); - if (!ifStatement) return; - const test = ifStatement.get("test"); - const paths = [test]; - const types = []; - for (let i = 0; i < paths.length; i++) { - const path = paths[i]; - if (path.isLogicalExpression()) { - if (path.node.operator === "&&") { - paths.push(path.get("left")); - paths.push(path.get("right")); - } - } else if (path.isBinaryExpression()) { - const type = inferAnnotationFromBinaryExpression(name, path); - if (type) types.push(type); +function* loadPrivatePartialConfig(inputOpts) { + if (inputOpts != null && (typeof inputOpts !== "object" || Array.isArray(inputOpts))) { + throw new Error("Babel options must be an object, null, or undefined"); + } + const args = inputOpts ? (0, _options.validate)("arguments", inputOpts) : {}; + const { + envName = (0, _environment.getEnv)(), + cwd = ".", + root: rootDir = ".", + rootMode = "root", + caller, + cloneInputAst = true + } = args; + const absoluteCwd = _path().resolve(cwd); + const absoluteRootDir = resolveRootMode(_path().resolve(absoluteCwd, rootDir), rootMode); + const filename = typeof args.filename === "string" ? _path().resolve(cwd, args.filename) : undefined; + const showConfigPath = yield* (0, _index.resolveShowConfigPath)(absoluteCwd); + const context = { + filename, + cwd: absoluteCwd, + root: absoluteRootDir, + envName, + caller, + showConfig: showConfigPath === filename + }; + const configChain = yield* (0, _configChain.buildRootChain)(args, context); + if (!configChain) return null; + const merged = { + assumptions: {} + }; + configChain.options.forEach(opts => { + (0, _util.mergeOptions)(merged, opts); + }); + const options = Object.assign({}, merged, { + targets: (0, _resolveTargets.resolveTargets)(merged, absoluteRootDir), + cloneInputAst, + babelrc: false, + configFile: false, + browserslistConfigFile: false, + passPerPreset: false, + envName: context.envName, + cwd: context.cwd, + root: context.root, + rootMode: "root", + filename: typeof context.filename === "string" ? context.filename : undefined, + plugins: configChain.plugins.map(descriptor => (0, _item.createItemFromDescriptor)(descriptor)), + presets: configChain.presets.map(descriptor => (0, _item.createItemFromDescriptor)(descriptor)) + }); + return { + options, + context, + fileHandling: configChain.fileHandling, + ignore: configChain.ignore, + babelrc: configChain.babelrc, + config: configChain.config, + files: configChain.files + }; +} +function* loadPartialConfig(opts) { + let showIgnoredFiles = false; + if (typeof opts === "object" && opts !== null && !Array.isArray(opts)) { + var _opts = opts; + ({ + showIgnoredFiles + } = _opts); + opts = _objectWithoutPropertiesLoose(_opts, _excluded); + _opts; + } + const result = yield* loadPrivatePartialConfig(opts); + if (!result) return null; + const { + options, + babelrc, + ignore, + config, + fileHandling, + files + } = result; + if (fileHandling === "ignored" && !showIgnoredFiles) { + return null; + } + (options.plugins || []).forEach(item => { + if (item.value instanceof _plugin.default) { + throw new Error("Passing cached plugin instances is not supported in " + "babel.loadPartialConfig()"); } + }); + return new PartialConfig(options, babelrc ? babelrc.filepath : undefined, ignore ? ignore.filepath : undefined, config ? config.filepath : undefined, fileHandling, files); +} +class PartialConfig { + constructor(options, babelrc, ignore, config, fileHandling, files) { + this.options = void 0; + this.babelrc = void 0; + this.babelignore = void 0; + this.config = void 0; + this.fileHandling = void 0; + this.files = void 0; + this.options = options; + this.babelignore = ignore; + this.babelrc = babelrc; + this.config = config; + this.fileHandling = fileHandling; + this.files = files; + Object.freeze(this); } - if (types.length) { - return { - typeAnnotation: (0, _util.createUnionType)(types), - ifStatement - }; + hasFilesystemConfig() { + return this.babelrc !== undefined || this.config !== undefined; } - return getConditionalAnnotation(binding, ifStatement, name); } +Object.freeze(PartialConfig.prototype); +0 && 0; -//# sourceMappingURL=inferer-reference.js.map +//# sourceMappingURL=partial.js.map /***/ }), -/***/ 41354: +/***/ 89539: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -116901,213 +30960,44 @@ function getConditionalAnnotation(binding, path, name) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ArrayExpression = ArrayExpression; -exports.AssignmentExpression = AssignmentExpression; -exports.BinaryExpression = BinaryExpression; -exports.BooleanLiteral = BooleanLiteral; -exports.CallExpression = CallExpression; -exports.ConditionalExpression = ConditionalExpression; -exports.ClassDeclaration = exports.ClassExpression = exports.FunctionDeclaration = exports.ArrowFunctionExpression = exports.FunctionExpression = Func; -Object.defineProperty(exports, "Identifier", ({ - enumerable: true, - get: function () { - return _infererReference.default; - } -})); -exports.LogicalExpression = LogicalExpression; -exports.NewExpression = NewExpression; -exports.NullLiteral = NullLiteral; -exports.NumericLiteral = NumericLiteral; -exports.ObjectExpression = ObjectExpression; -exports.ParenthesizedExpression = ParenthesizedExpression; -exports.RegExpLiteral = RegExpLiteral; -exports.RestElement = RestElement; -exports.SequenceExpression = SequenceExpression; -exports.StringLiteral = StringLiteral; -exports.TSAsExpression = TSAsExpression; -exports.TSNonNullExpression = TSNonNullExpression; -exports.TaggedTemplateExpression = TaggedTemplateExpression; -exports.TemplateLiteral = TemplateLiteral; -exports.TypeCastExpression = TypeCastExpression; -exports.UnaryExpression = UnaryExpression; -exports.UpdateExpression = UpdateExpression; -exports.VariableDeclarator = VariableDeclarator; -var _t = __nccwpck_require__(53501); -var _infererReference = __nccwpck_require__(72302); -var _util = __nccwpck_require__(2102); -const { - BOOLEAN_BINARY_OPERATORS, - BOOLEAN_UNARY_OPERATORS, - NUMBER_BINARY_OPERATORS, - NUMBER_UNARY_OPERATORS, - STRING_UNARY_OPERATORS, - anyTypeAnnotation, - arrayTypeAnnotation, - booleanTypeAnnotation, - buildMatchMemberExpression, - genericTypeAnnotation, - identifier, - nullLiteralTypeAnnotation, - numberTypeAnnotation, - stringTypeAnnotation, - tupleTypeAnnotation, - unionTypeAnnotation, - voidTypeAnnotation, - isIdentifier -} = _t; -function VariableDeclarator() { - if (!this.get("id").isIdentifier()) return; - return this.get("init").getTypeAnnotation(); -} -function TypeCastExpression(node) { - return node.typeAnnotation; -} -TypeCastExpression.validParent = true; -function TSAsExpression(node) { - return node.typeAnnotation; -} -TSAsExpression.validParent = true; -function TSNonNullExpression() { - return this.get("expression").getTypeAnnotation(); -} -function NewExpression(node) { - if (node.callee.type === "Identifier") { - return genericTypeAnnotation(node.callee); - } -} -function TemplateLiteral() { - return stringTypeAnnotation(); -} -function UnaryExpression(node) { - const operator = node.operator; - if (operator === "void") { - return voidTypeAnnotation(); - } else if (NUMBER_UNARY_OPERATORS.indexOf(operator) >= 0) { - return numberTypeAnnotation(); - } else if (STRING_UNARY_OPERATORS.indexOf(operator) >= 0) { - return stringTypeAnnotation(); - } else if (BOOLEAN_UNARY_OPERATORS.indexOf(operator) >= 0) { - return booleanTypeAnnotation(); - } -} -function BinaryExpression(node) { - const operator = node.operator; - if (NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { - return numberTypeAnnotation(); - } else if (BOOLEAN_BINARY_OPERATORS.indexOf(operator) >= 0) { - return booleanTypeAnnotation(); - } else if (operator === "+") { - const right = this.get("right"); - const left = this.get("left"); - if (left.isBaseType("number") && right.isBaseType("number")) { - return numberTypeAnnotation(); - } else if (left.isBaseType("string") || right.isBaseType("string")) { - return stringTypeAnnotation(); - } - return unionTypeAnnotation([stringTypeAnnotation(), numberTypeAnnotation()]); - } -} -function LogicalExpression() { - const argumentTypes = [this.get("left").getTypeAnnotation(), this.get("right").getTypeAnnotation()]; - return (0, _util.createUnionType)(argumentTypes); -} -function ConditionalExpression() { - const argumentTypes = [this.get("consequent").getTypeAnnotation(), this.get("alternate").getTypeAnnotation()]; - return (0, _util.createUnionType)(argumentTypes); -} -function SequenceExpression() { - return this.get("expressions").pop().getTypeAnnotation(); -} -function ParenthesizedExpression() { - return this.get("expression").getTypeAnnotation(); -} -function AssignmentExpression() { - return this.get("right").getTypeAnnotation(); -} -function UpdateExpression(node) { - const operator = node.operator; - if (operator === "++" || operator === "--") { - return numberTypeAnnotation(); - } -} -function StringLiteral() { - return stringTypeAnnotation(); -} -function NumericLiteral() { - return numberTypeAnnotation(); -} -function BooleanLiteral() { - return booleanTypeAnnotation(); -} -function NullLiteral() { - return nullLiteralTypeAnnotation(); -} -function RegExpLiteral() { - return genericTypeAnnotation(identifier("RegExp")); -} -function ObjectExpression() { - return genericTypeAnnotation(identifier("Object")); -} -function ArrayExpression() { - return genericTypeAnnotation(identifier("Array")); -} -function RestElement() { - return ArrayExpression(); -} -RestElement.validParent = true; -function Func() { - return genericTypeAnnotation(identifier("Function")); -} -const isArrayFrom = buildMatchMemberExpression("Array.from"); -const isObjectKeys = buildMatchMemberExpression("Object.keys"); -const isObjectValues = buildMatchMemberExpression("Object.values"); -const isObjectEntries = buildMatchMemberExpression("Object.entries"); -function CallExpression() { - const { - callee - } = this.node; - if (isObjectKeys(callee)) { - return arrayTypeAnnotation(stringTypeAnnotation()); - } else if (isArrayFrom(callee) || isObjectValues(callee) || isIdentifier(callee, { - name: "Array" - })) { - return arrayTypeAnnotation(anyTypeAnnotation()); - } else if (isObjectEntries(callee)) { - return arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(), anyTypeAnnotation()])); - } - return resolveCall(this.get("callee")); +exports["default"] = pathToPattern; +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; } -function TaggedTemplateExpression() { - return resolveCall(this.get("tag")); +const sep = `\\${_path().sep}`; +const endSep = `(?:${sep}|$)`; +const substitution = `[^${sep}]+`; +const starPat = `(?:${substitution}${sep})`; +const starPatLast = `(?:${substitution}${endSep})`; +const starStarPat = `${starPat}*?`; +const starStarPatLast = `${starPat}*?${starPatLast}?`; +function escapeRegExp(string) { + return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"); } -function resolveCall(callee) { - callee = callee.resolve(); - if (callee.isFunction()) { - const { - node - } = callee; - if (node.async) { - if (node.generator) { - return genericTypeAnnotation(identifier("AsyncIterator")); - } else { - return genericTypeAnnotation(identifier("Promise")); - } - } else { - if (node.generator) { - return genericTypeAnnotation(identifier("Iterator")); - } else if (callee.node.returnType) { - return callee.node.returnType; - } else {} +function pathToPattern(pattern, dirname) { + const parts = _path().resolve(dirname, pattern).split(_path().sep); + return new RegExp(["^", ...parts.map((part, i) => { + const last = i === parts.length - 1; + if (part === "**") return last ? starStarPatLast : starStarPat; + if (part === "*") return last ? starPatLast : starPat; + if (part.indexOf("*.") === 0) { + return substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep); } - } + return escapeRegExp(part) + (last ? endSep : sep); + })].join("")); } +0 && 0; -//# sourceMappingURL=inferers.js.map +//# sourceMappingURL=pattern-to-regex.js.map /***/ }), -/***/ 2102: +/***/ 1065: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -117116,36 +31006,39 @@ function resolveCall(callee) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createUnionType = createUnionType; -var _t = __nccwpck_require__(53501); -const { - createFlowUnionType, - createTSUnionType, - createUnionTypeAnnotation, - isFlowType, - isTSType -} = _t; -function createUnionType(types) { - { - if (isFlowType(types[0])) { - if (createFlowUnionType) { - return createFlowUnionType(types); - } - return createUnionTypeAnnotation(types); - } else { - if (createTSUnionType) { - return createTSUnionType(types); - } - } +exports["default"] = void 0; +var _deepArray = __nccwpck_require__(76669); +class Plugin { + constructor(plugin, options, key, externalDependencies = (0, _deepArray.finalize)([])) { + this.key = void 0; + this.manipulateOptions = void 0; + this.post = void 0; + this.pre = void 0; + this.visitor = void 0; + this.parserOverride = void 0; + this.generatorOverride = void 0; + this.options = void 0; + this.externalDependencies = void 0; + this.key = plugin.name || key; + this.manipulateOptions = plugin.manipulateOptions; + this.post = plugin.post; + this.pre = plugin.pre; + this.visitor = plugin.visitor || {}; + this.parserOverride = plugin.parserOverride; + this.generatorOverride = plugin.generatorOverride; + this.options = options; + this.externalDependencies = externalDependencies; } } +exports["default"] = Plugin; +0 && 0; -//# sourceMappingURL=util.js.map +//# sourceMappingURL=plugin.js.map /***/ }), -/***/ 22512: +/***/ 1606: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -117154,391 +31047,227 @@ function createUnionType(types) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._guessExecutionStatusRelativeTo = _guessExecutionStatusRelativeTo; -exports._resolve = _resolve; -exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression; -exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement; -exports.equals = equals; -exports.getSource = getSource; -exports.has = has; -exports.is = void 0; -exports.isCompletionRecord = isCompletionRecord; -exports.isConstantExpression = isConstantExpression; -exports.isInStrictMode = isInStrictMode; -exports.isNodeType = isNodeType; -exports.isStatementOrBlock = isStatementOrBlock; -exports.isStatic = isStatic; -exports.isnt = isnt; -exports.matchesPattern = matchesPattern; -exports.referencesImport = referencesImport; -exports.resolve = resolve; -exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore; -var _t = __nccwpck_require__(53501); -const { - STATEMENT_OR_BLOCK_KEYS, - VISITOR_KEYS, - isBlockStatement, - isExpression, - isIdentifier, - isLiteral, - isStringLiteral, - isType, - matchesPattern: _matchesPattern -} = _t; -function matchesPattern(pattern, allowPartial) { - return _matchesPattern(this.node, pattern, allowPartial); -} -function has(key) { - const val = this.node && this.node[key]; - if (val && Array.isArray(val)) { - return !!val.length; - } else { - return !!val; - } -} -function isStatic() { - return this.scope.isStatic(this.node); -} -const is = has; -exports.is = is; -function isnt(key) { - return !this.has(key); -} -function equals(key, value) { - return this.node[key] === value; -} -function isNodeType(type) { - return isType(this.type, type); -} -function canHaveVariableDeclarationOrExpression() { - return (this.key === "init" || this.key === "left") && this.parentPath.isFor(); -} -function canSwapBetweenExpressionAndStatement(replacement) { - if (this.key !== "body" || !this.parentPath.isArrowFunctionExpression()) { - return false; - } - if (this.isExpression()) { - return isBlockStatement(replacement); - } else if (this.isBlockStatement()) { - return isExpression(replacement); - } - return false; +exports.ConfigPrinter = exports.ChainFormatter = void 0; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; } -function isCompletionRecord(allowInsideFunction) { - let path = this; - let first = true; - do { - const { - type, - container - } = path; - if (!first && (path.isFunction() || type === "StaticBlock")) { - return !!allowInsideFunction; +const ChainFormatter = exports.ChainFormatter = { + Programmatic: 0, + Config: 1 +}; +const Formatter = { + title(type, callerName, filepath) { + let title = ""; + if (type === ChainFormatter.Programmatic) { + title = "programmatic options"; + if (callerName) { + title += " from " + callerName; + } + } else { + title = "config " + filepath; } - first = false; - if (Array.isArray(container) && path.key !== container.length - 1) { - return false; + return title; + }, + loc(index, envName) { + let loc = ""; + if (index != null) { + loc += `.overrides[${index}]`; } - } while ((path = path.parentPath) && !path.isProgram() && !path.isDoExpression()); - return true; -} -function isStatementOrBlock() { - if (this.parentPath.isLabeledStatement() || isBlockStatement(this.container)) { - return false; - } else { - return STATEMENT_OR_BLOCK_KEYS.includes(this.key); - } -} -function referencesImport(moduleSource, importName) { - if (!this.isReferencedIdentifier()) { - if (this.isJSXMemberExpression() && this.node.property.name === importName || (this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, { - value: importName - }) : this.node.property.name === importName)) { - const object = this.get("object"); - return object.isReferencedIdentifier() && object.referencesImport(moduleSource, "*"); + if (envName != null) { + loc += `.env["${envName}"]`; } - return false; - } - const binding = this.scope.getBinding(this.node.name); - if (!binding || binding.kind !== "module") return false; - const path = binding.path; - const parent = path.parentPath; - if (!parent.isImportDeclaration()) return false; - if (parent.node.source.value === moduleSource) { - if (!importName) return true; - } else { - return false; - } - if (path.isImportDefaultSpecifier() && importName === "default") { - return true; - } - if (path.isImportNamespaceSpecifier() && importName === "*") { - return true; - } - if (path.isImportSpecifier() && isIdentifier(path.node.imported, { - name: importName - })) { - return true; - } - return false; -} -function getSource() { - const node = this.node; - if (node.end) { - const code = this.hub.getCode(); - if (code) return code.slice(node.start, node.end); - } - return ""; -} -function willIMaybeExecuteBefore(target) { - return this._guessExecutionStatusRelativeTo(target) !== "after"; -} -function getOuterFunction(path) { - return path.isProgram() ? path : (path.parentPath.scope.getFunctionParent() || path.parentPath.scope.getProgramParent()).path; -} -function isExecutionUncertain(type, key) { - switch (type) { - case "LogicalExpression": - return key === "right"; - case "ConditionalExpression": - case "IfStatement": - return key === "consequent" || key === "alternate"; - case "WhileStatement": - case "DoWhileStatement": - case "ForInStatement": - case "ForOfStatement": - return key === "body"; - case "ForStatement": - return key === "body" || key === "update"; - case "SwitchStatement": - return key === "cases"; - case "TryStatement": - return key === "handler"; - case "AssignmentPattern": - return key === "right"; - case "OptionalMemberExpression": - return key === "property"; - case "OptionalCallExpression": - return key === "arguments"; - default: - return false; - } -} -function isExecutionUncertainInList(paths, maxIndex) { - for (let i = 0; i < maxIndex; i++) { - const path = paths[i]; - if (isExecutionUncertain(path.parent.type, path.parentKey)) { - return true; + return loc; + }, + *optionsAndDescriptors(opt) { + const content = Object.assign({}, opt.options); + delete content.overrides; + delete content.env; + const pluginDescriptors = [...(yield* opt.plugins())]; + if (pluginDescriptors.length) { + content.plugins = pluginDescriptors.map(d => descriptorToConfig(d)); } + const presetDescriptors = [...(yield* opt.presets())]; + if (presetDescriptors.length) { + content.presets = [...presetDescriptors].map(d => descriptorToConfig(d)); + } + return JSON.stringify(content, undefined, 2); } - return false; -} -const SYMBOL_CHECKING = Symbol(); -function _guessExecutionStatusRelativeTo(target) { - return _guessExecutionStatusRelativeToCached(this, target, new Map()); -} -function _guessExecutionStatusRelativeToCached(base, target, cache) { - const funcParent = { - this: getOuterFunction(base), - target: getOuterFunction(target) - }; - if (funcParent.target.node !== funcParent.this.node) { - return _guessExecutionStatusRelativeToDifferentFunctionsCached(base, funcParent.target, cache); - } - const paths = { - target: target.getAncestry(), - this: base.getAncestry() - }; - if (paths.target.indexOf(base) >= 0) return "after"; - if (paths.this.indexOf(target) >= 0) return "before"; - let commonPath; - const commonIndex = { - target: 0, - this: 0 - }; - while (!commonPath && commonIndex.this < paths.this.length) { - const path = paths.this[commonIndex.this]; - commonIndex.target = paths.target.indexOf(path); - if (commonIndex.target >= 0) { - commonPath = path; - } else { - commonIndex.this++; +}; +function descriptorToConfig(d) { + var _d$file; + let name = (_d$file = d.file) == null ? void 0 : _d$file.request; + if (name == null) { + if (typeof d.value === "object") { + name = d.value; + } else if (typeof d.value === "function") { + name = `[Function: ${d.value.toString().slice(0, 50)} ... ]`; } } - if (!commonPath) { - throw new Error("Internal Babel error - The two compared nodes" + " don't appear to belong to the same program."); - } - if (isExecutionUncertainInList(paths.this, commonIndex.this - 1) || isExecutionUncertainInList(paths.target, commonIndex.target - 1)) { - return "unknown"; + if (name == null) { + name = "[Unknown]"; } - const divergence = { - this: paths.this[commonIndex.this - 1], - target: paths.target[commonIndex.target - 1] - }; - if (divergence.target.listKey && divergence.this.listKey && divergence.target.container === divergence.this.container) { - return divergence.target.key > divergence.this.key ? "before" : "after"; + if (d.options === undefined) { + return name; + } else if (d.name == null) { + return [name, d.options]; + } else { + return [name, d.options, d.name]; } - const keys = VISITOR_KEYS[commonPath.type]; - const keyPosition = { - this: keys.indexOf(divergence.this.parentKey), - target: keys.indexOf(divergence.target.parentKey) - }; - return keyPosition.target > keyPosition.this ? "before" : "after"; } -function _guessExecutionStatusRelativeToDifferentFunctionsInternal(base, target, cache) { - if (!target.isFunctionDeclaration()) { - if (_guessExecutionStatusRelativeToCached(base, target, cache) === "before") { - return "before"; - } - return "unknown"; - } else if (target.parentPath.isExportDeclaration()) { - return "unknown"; +class ConfigPrinter { + constructor() { + this._stack = []; } - const binding = target.scope.getBinding(target.node.id.name); - if (!binding.references) return "before"; - const referencePaths = binding.referencePaths; - let allStatus; - for (const path of referencePaths) { - const childOfFunction = !!path.find(path => path.node === target.node); - if (childOfFunction) continue; - if (path.key !== "callee" || !path.parentPath.isCallExpression()) { - return "unknown"; - } - const status = _guessExecutionStatusRelativeToCached(base, path, cache); - if (allStatus && allStatus !== status) { - return "unknown"; - } else { - allStatus = status; - } + configure(enabled, type, { + callerName, + filepath + }) { + if (!enabled) return () => {}; + return (content, index, envName) => { + this._stack.push({ + type, + callerName, + filepath, + content, + index, + envName + }); + }; } - return allStatus; -} -function _guessExecutionStatusRelativeToDifferentFunctionsCached(base, target, cache) { - let nodeMap = cache.get(base.node); - let cached; - if (!nodeMap) { - cache.set(base.node, nodeMap = new Map()); - } else if (cached = nodeMap.get(target.node)) { - if (cached === SYMBOL_CHECKING) { - return "unknown"; - } - return cached; + static *format(config) { + let title = Formatter.title(config.type, config.callerName, config.filepath); + const loc = Formatter.loc(config.index, config.envName); + if (loc) title += ` ${loc}`; + const content = yield* Formatter.optionsAndDescriptors(config.content); + return `${title}\n${content}`; + } + *output() { + if (this._stack.length === 0) return ""; + const configs = yield* _gensync().all(this._stack.map(s => ConfigPrinter.format(s))); + return configs.join("\n\n"); } - nodeMap.set(target.node, SYMBOL_CHECKING); - const result = _guessExecutionStatusRelativeToDifferentFunctionsInternal(base, target, cache); - nodeMap.set(target.node, result); - return result; } -function resolve(dangerous, resolved) { - return this._resolve(dangerous, resolved) || this; +exports.ConfigPrinter = ConfigPrinter; +0 && 0; + +//# sourceMappingURL=printer.js.map + + +/***/ }), + +/***/ 2936: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.resolveBrowserslistConfigFile = resolveBrowserslistConfigFile; +exports.resolveTargets = resolveTargets; +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; } -function _resolve(dangerous, resolved) { - if (resolved && resolved.indexOf(this) >= 0) return; - resolved = resolved || []; - resolved.push(this); - if (this.isVariableDeclarator()) { - if (this.get("id").isIdentifier()) { - return this.get("init").resolve(dangerous, resolved); - } else {} - } else if (this.isReferencedIdentifier()) { - const binding = this.scope.getBinding(this.node.name); - if (!binding) return; - if (!binding.constant) return; - if (binding.kind === "module") return; - if (binding.path !== this) { - const ret = binding.path.resolve(dangerous, resolved); - if (this.find(parent => parent.node === ret.node)) return; - return ret; - } - } else if (this.isTypeCastExpression()) { - return this.get("expression").resolve(dangerous, resolved); - } else if (dangerous && this.isMemberExpression()) { - const targetKey = this.toComputedKey(); - if (!isLiteral(targetKey)) return; - const targetName = targetKey.value; - const target = this.get("object").resolve(dangerous, resolved); - if (target.isObjectExpression()) { - const props = target.get("properties"); - for (const prop of props) { - if (!prop.isProperty()) continue; - const key = prop.get("key"); - let match = prop.isnt("computed") && key.isIdentifier({ - name: targetName - }); - match = match || key.isLiteral({ - value: targetName - }); - if (match) return prop.get("value").resolve(dangerous, resolved); - } - } else if (target.isArrayExpression() && !isNaN(+targetName)) { - const elems = target.get("elements"); - const elem = elems[targetName]; - if (elem) return elem.resolve(dangerous, resolved); - } - } +function _helperCompilationTargets() { + const data = __nccwpck_require__(91047); + _helperCompilationTargets = function () { + return data; + }; + return data; } -function isConstantExpression() { - if (this.isIdentifier()) { - const binding = this.scope.getBinding(this.node.name); - if (!binding) return false; - return binding.constant; - } - if (this.isLiteral()) { - if (this.isRegExpLiteral()) { - return false; - } - if (this.isTemplateLiteral()) { - return this.get("expressions").every(expression => expression.isConstantExpression()); - } - return true; - } - if (this.isUnaryExpression()) { - if (this.node.operator !== "void") { - return false; +({}); +function resolveBrowserslistConfigFile(browserslistConfigFile, configFileDir) { + return _path().resolve(configFileDir, browserslistConfigFile); +} +function resolveTargets(options, root) { + const optTargets = options.targets; + let targets; + if (typeof optTargets === "string" || Array.isArray(optTargets)) { + targets = { + browsers: optTargets + }; + } else if (optTargets) { + if ("esmodules" in optTargets) { + targets = Object.assign({}, optTargets, { + esmodules: "intersect" + }); + } else { + targets = optTargets; } - return this.get("argument").isConstantExpression(); } - if (this.isBinaryExpression()) { - const { - operator - } = this.node; - return operator !== "in" && operator !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression(); + const { + browserslistConfigFile + } = options; + let configFile; + let ignoreBrowserslistConfig = false; + if (typeof browserslistConfigFile === "string") { + configFile = browserslistConfigFile; + } else { + ignoreBrowserslistConfig = browserslistConfigFile === false; } - return false; + return (0, _helperCompilationTargets().default)(targets, { + ignoreBrowserslistConfig, + configFile, + configPath: root, + browserslistEnv: options.browserslistEnv + }); } -function isInStrictMode() { - const start = this.isProgram() ? this : this.parentPath; - const strictParent = start.find(path => { - if (path.isProgram({ - sourceType: "module" - })) return true; - if (path.isClass()) return true; - if (path.isArrowFunctionExpression() && !path.get("body").isBlockStatement()) { - return false; - } - let body; - if (path.isFunction()) { - body = path.node.body; - } else if (path.isProgram()) { - body = path.node; +0 && 0; + +//# sourceMappingURL=resolve-targets.js.map + + +/***/ }), + +/***/ 30298: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.isIterableIterator = isIterableIterator; +exports.mergeOptions = mergeOptions; +function mergeOptions(target, source) { + for (const k of Object.keys(source)) { + if ((k === "parserOpts" || k === "generatorOpts" || k === "assumptions") && source[k]) { + const parserOpts = source[k]; + const targetObj = target[k] || (target[k] = {}); + mergeDefaultFields(targetObj, parserOpts); } else { - return false; - } - for (const directive of body.directives) { - if (directive.value.value === "use strict") { - return true; - } + const val = source[k]; + if (val !== undefined) target[k] = val; } - }); - return !!strictParent; + } +} +function mergeDefaultFields(target, source) { + for (const k of Object.keys(source)) { + const val = source[k]; + if (val !== undefined) target[k] = val; + } +} +function isIterableIterator(value) { + return !!value && typeof value.next === "function" && typeof value[Symbol.iterator] === "function"; } +0 && 0; -//# sourceMappingURL=introspection.js.map +//# sourceMappingURL=util.js.map /***/ }), -/***/ 86506: +/***/ 50764: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -117547,223 +31276,283 @@ function isInStrictMode() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -var _t = __nccwpck_require__(53501); -var _t2 = _t; -const { - react -} = _t; -const { - cloneNode, - jsxExpressionContainer, - variableDeclaration, - variableDeclarator -} = _t2; -const referenceVisitor = { - ReferencedIdentifier(path, state) { - if (path.isJSXIdentifier() && react.isCompatTag(path.node.name) && !path.parentPath.isJSXMemberExpression()) { - return; - } - if (path.node.name === "this") { - let scope = path.scope; - do { - if (scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { - break; - } - } while (scope = scope.parent); - if (scope) state.breakOnScopePaths.push(scope.path); +exports.access = access; +exports.assertArray = assertArray; +exports.assertAssumptions = assertAssumptions; +exports.assertBabelrcSearch = assertBabelrcSearch; +exports.assertBoolean = assertBoolean; +exports.assertCallerMetadata = assertCallerMetadata; +exports.assertCompact = assertCompact; +exports.assertConfigApplicableTest = assertConfigApplicableTest; +exports.assertConfigFileSearch = assertConfigFileSearch; +exports.assertFunction = assertFunction; +exports.assertIgnoreList = assertIgnoreList; +exports.assertInputSourceMap = assertInputSourceMap; +exports.assertObject = assertObject; +exports.assertPluginList = assertPluginList; +exports.assertRootMode = assertRootMode; +exports.assertSourceMaps = assertSourceMaps; +exports.assertSourceType = assertSourceType; +exports.assertString = assertString; +exports.assertTargets = assertTargets; +exports.msg = msg; +function _helperCompilationTargets() { + const data = __nccwpck_require__(91047); + _helperCompilationTargets = function () { + return data; + }; + return data; +} +var _options = __nccwpck_require__(48922); +function msg(loc) { + switch (loc.type) { + case "root": + return ``; + case "env": + return `${msg(loc.parent)}.env["${loc.name}"]`; + case "overrides": + return `${msg(loc.parent)}.overrides[${loc.index}]`; + case "option": + return `${msg(loc.parent)}.${loc.name}`; + case "access": + return `${msg(loc.parent)}[${JSON.stringify(loc.name)}]`; + default: + throw new Error(`Assertion failure: Unknown type ${loc.type}`); + } +} +function access(loc, name) { + return { + type: "access", + name, + parent: loc + }; +} +function assertRootMode(loc, value) { + if (value !== undefined && value !== "root" && value !== "upward" && value !== "upward-optional") { + throw new Error(`${msg(loc)} must be a "root", "upward", "upward-optional" or undefined`); + } + return value; +} +function assertSourceMaps(loc, value) { + if (value !== undefined && typeof value !== "boolean" && value !== "inline" && value !== "both") { + throw new Error(`${msg(loc)} must be a boolean, "inline", "both", or undefined`); + } + return value; +} +function assertCompact(loc, value) { + if (value !== undefined && typeof value !== "boolean" && value !== "auto") { + throw new Error(`${msg(loc)} must be a boolean, "auto", or undefined`); + } + return value; +} +function assertSourceType(loc, value) { + if (value !== undefined && value !== "module" && value !== "script" && value !== "unambiguous") { + throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`); + } + return value; +} +function assertCallerMetadata(loc, value) { + const obj = assertObject(loc, value); + if (obj) { + if (typeof obj.name !== "string") { + throw new Error(`${msg(loc)} set but does not contain "name" property string`); } - const binding = path.scope.getBinding(path.node.name); - if (!binding) return; - for (const violation of binding.constantViolations) { - if (violation.scope !== binding.path.scope) { - state.mutableBinding = true; - path.stop(); - return; + for (const prop of Object.keys(obj)) { + const propLoc = access(loc, prop); + const value = obj[prop]; + if (value != null && typeof value !== "boolean" && typeof value !== "string" && typeof value !== "number") { + throw new Error(`${msg(propLoc)} must be null, undefined, a boolean, a string, or a number.`); } } - if (binding !== state.scope.getBinding(path.node.name)) return; - state.bindings[path.node.name] = binding; } -}; -class PathHoister { - constructor(path, scope) { - this.breakOnScopePaths = void 0; - this.bindings = void 0; - this.mutableBinding = void 0; - this.scopes = void 0; - this.scope = void 0; - this.path = void 0; - this.attachAfter = void 0; - this.breakOnScopePaths = []; - this.bindings = {}; - this.mutableBinding = false; - this.scopes = []; - this.scope = scope; - this.path = path; - this.attachAfter = false; + return value; +} +function assertInputSourceMap(loc, value) { + if (value !== undefined && typeof value !== "boolean" && (typeof value !== "object" || !value)) { + throw new Error(`${msg(loc)} must be a boolean, object, or undefined`); } - isCompatibleScope(scope) { - for (const key of Object.keys(this.bindings)) { - const binding = this.bindings[key]; - if (!scope.bindingIdentifierEquals(key, binding.identifier)) { - return false; + return value; +} +function assertString(loc, value) { + if (value !== undefined && typeof value !== "string") { + throw new Error(`${msg(loc)} must be a string, or undefined`); + } + return value; +} +function assertFunction(loc, value) { + if (value !== undefined && typeof value !== "function") { + throw new Error(`${msg(loc)} must be a function, or undefined`); + } + return value; +} +function assertBoolean(loc, value) { + if (value !== undefined && typeof value !== "boolean") { + throw new Error(`${msg(loc)} must be a boolean, or undefined`); + } + return value; +} +function assertObject(loc, value) { + if (value !== undefined && (typeof value !== "object" || Array.isArray(value) || !value)) { + throw new Error(`${msg(loc)} must be an object, or undefined`); + } + return value; +} +function assertArray(loc, value) { + if (value != null && !Array.isArray(value)) { + throw new Error(`${msg(loc)} must be an array, or undefined`); + } + return value; +} +function assertIgnoreList(loc, value) { + const arr = assertArray(loc, value); + arr == null || arr.forEach((item, i) => assertIgnoreItem(access(loc, i), item)); + return arr; +} +function assertIgnoreItem(loc, value) { + if (typeof value !== "string" && typeof value !== "function" && !(value instanceof RegExp)) { + throw new Error(`${msg(loc)} must be an array of string/Function/RegExp values, or undefined`); + } + return value; +} +function assertConfigApplicableTest(loc, value) { + if (value === undefined) { + return value; + } + if (Array.isArray(value)) { + value.forEach((item, i) => { + if (!checkValidTest(item)) { + throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`); + } + }); + } else if (!checkValidTest(value)) { + throw new Error(`${msg(loc)} must be a string/Function/RegExp, or an array of those`); + } + return value; +} +function checkValidTest(value) { + return typeof value === "string" || typeof value === "function" || value instanceof RegExp; +} +function assertConfigFileSearch(loc, value) { + if (value !== undefined && typeof value !== "boolean" && typeof value !== "string") { + throw new Error(`${msg(loc)} must be a undefined, a boolean, a string, ` + `got ${JSON.stringify(value)}`); + } + return value; +} +function assertBabelrcSearch(loc, value) { + if (value === undefined || typeof value === "boolean") { + return value; + } + if (Array.isArray(value)) { + value.forEach((item, i) => { + if (!checkValidTest(item)) { + throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`); } - } - return true; + }); + } else if (!checkValidTest(value)) { + throw new Error(`${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp ` + `or an array of those, got ${JSON.stringify(value)}`); } - getCompatibleScopes() { - let scope = this.path.scope; - do { - if (this.isCompatibleScope(scope)) { - this.scopes.push(scope); - } else { - break; - } - if (this.breakOnScopePaths.indexOf(scope.path) >= 0) { - break; - } - } while (scope = scope.parent); + return value; +} +function assertPluginList(loc, value) { + const arr = assertArray(loc, value); + if (arr) { + arr.forEach((item, i) => assertPluginItem(access(loc, i), item)); } - getAttachmentPath() { - let path = this._getAttachmentPath(); - if (!path) return; - let targetScope = path.scope; - if (targetScope.path === path) { - targetScope = path.scope.parent; + return arr; +} +function assertPluginItem(loc, value) { + if (Array.isArray(value)) { + if (value.length === 0) { + throw new Error(`${msg(loc)} must include an object`); } - if (targetScope.path.isProgram() || targetScope.path.isFunction()) { - for (const name of Object.keys(this.bindings)) { - if (!targetScope.hasOwnBinding(name)) continue; - const binding = this.bindings[name]; - if (binding.kind === "param" || binding.path.parentKey === "params") { - continue; - } - const bindingParentPath = this.getAttachmentParentForPath(binding.path); - if (bindingParentPath.key >= path.key) { - this.attachAfter = true; - path = binding.path; - for (const violationPath of binding.constantViolations) { - if (this.getAttachmentParentForPath(violationPath).key > path.key) { - path = violationPath; - } - } - } + if (value.length > 3) { + throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`); + } + assertPluginTarget(access(loc, 0), value[0]); + if (value.length > 1) { + const opts = value[1]; + if (opts !== undefined && opts !== false && (typeof opts !== "object" || Array.isArray(opts) || opts === null)) { + throw new Error(`${msg(access(loc, 1))} must be an object, false, or undefined`); } } - return path; - } - _getAttachmentPath() { - const scopes = this.scopes; - const scope = scopes.pop(); - if (!scope) return; - if (scope.path.isFunction()) { - if (this.hasOwnParamBindings(scope)) { - if (this.scope === scope) return; - const bodies = scope.path.get("body").get("body"); - for (let i = 0; i < bodies.length; i++) { - if (bodies[i].node._blockHoist) continue; - return bodies[i]; - } - } else { - return this.getNextScopeAttachmentParent(); + if (value.length === 3) { + const name = value[2]; + if (name !== undefined && typeof name !== "string") { + throw new Error(`${msg(access(loc, 2))} must be a string, or undefined`); } - } else if (scope.path.isProgram()) { - return this.getNextScopeAttachmentParent(); } + } else { + assertPluginTarget(loc, value); } - getNextScopeAttachmentParent() { - const scope = this.scopes.pop(); - if (scope) return this.getAttachmentParentForPath(scope.path); - } - getAttachmentParentForPath(path) { - do { - if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { - return path; - } - } while (path = path.parentPath); + return value; +} +function assertPluginTarget(loc, value) { + if ((typeof value !== "object" || !value) && typeof value !== "string" && typeof value !== "function") { + throw new Error(`${msg(loc)} must be a string, object, function`); } - hasOwnParamBindings(scope) { - for (const name of Object.keys(this.bindings)) { - if (!scope.hasOwnBinding(name)) continue; - const binding = this.bindings[name]; - if (binding.kind === "param" && binding.constant) return true; - } - return false; + return value; +} +function assertTargets(loc, value) { + if ((0, _helperCompilationTargets().isBrowsersQueryValid)(value)) return value; + if (typeof value !== "object" || !value || Array.isArray(value)) { + throw new Error(`${msg(loc)} must be a string, an array of strings or an object`); } - run() { - this.path.traverse(referenceVisitor, this); - if (this.mutableBinding) return; - this.getCompatibleScopes(); - const attachTo = this.getAttachmentPath(); - if (!attachTo) return; - if (attachTo.getFunctionParent() === this.path.getFunctionParent()) return; - let uid = attachTo.scope.generateUidIdentifier("ref"); - const declarator = variableDeclarator(uid, this.path.node); - const insertFn = this.attachAfter ? "insertAfter" : "insertBefore"; - const [attached] = attachTo[insertFn]([attachTo.isVariableDeclarator() ? declarator : variableDeclaration("var", [declarator])]); - const parent = this.path.parentPath; - if (parent.isJSXElement() && this.path.container === parent.node.children) { - uid = jsxExpressionContainer(uid); - } - this.path.replaceWith(cloneNode(uid)); - return attachTo.isVariableDeclarator() ? attached.get("init") : attached.get("declarations.0.init"); + const browsersLoc = access(loc, "browsers"); + const esmodulesLoc = access(loc, "esmodules"); + assertBrowsersList(browsersLoc, value.browsers); + assertBoolean(esmodulesLoc, value.esmodules); + for (const key of Object.keys(value)) { + const val = value[key]; + const subLoc = access(loc, key); + if (key === "esmodules") assertBoolean(subLoc, val);else if (key === "browsers") assertBrowsersList(subLoc, val);else if (!Object.hasOwnProperty.call(_helperCompilationTargets().TargetNames, key)) { + const validTargets = Object.keys(_helperCompilationTargets().TargetNames).join(", "); + throw new Error(`${msg(subLoc)} is not a valid target. Supported targets are ${validTargets}`); + } else assertBrowserVersion(subLoc, val); } + return value; } -exports["default"] = PathHoister; - -//# sourceMappingURL=hoister.js.map - - -/***/ }), - -/***/ 65223: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.hooks = void 0; -const hooks = [function (self, parent) { - const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement(); - if (removeParent) { - parent.remove(); - return true; +function assertBrowsersList(loc, value) { + if (value !== undefined && !(0, _helperCompilationTargets().isBrowsersQueryValid)(value)) { + throw new Error(`${msg(loc)} must be undefined, a string or an array of strings`); } -}, function (self, parent) { - if (parent.isSequenceExpression() && parent.node.expressions.length === 1) { - parent.replaceWith(parent.node.expressions[0]); - return true; +} +function assertBrowserVersion(loc, value) { + if (typeof value === "number" && Math.round(value) === value) return; + if (typeof value === "string") return; + throw new Error(`${msg(loc)} must be a string or an integer number`); +} +function assertAssumptions(loc, value) { + if (value === undefined) return; + if (typeof value !== "object" || value === null) { + throw new Error(`${msg(loc)} must be an object or undefined.`); } -}, function (self, parent) { - if (parent.isBinary()) { - if (self.key === "left") { - parent.replaceWith(parent.node.right); - } else { - parent.replaceWith(parent.node.left); + let root = loc; + do { + root = root.parent; + } while (root.type !== "root"); + const inPreset = root.source === "preset"; + for (const name of Object.keys(value)) { + const subLoc = access(loc, name); + if (!_options.assumptionsNames.has(name)) { + throw new Error(`${msg(subLoc)} is not a supported assumption.`); + } + if (typeof value[name] !== "boolean") { + throw new Error(`${msg(subLoc)} must be a boolean.`); + } + if (inPreset && value[name] === false) { + throw new Error(`${msg(subLoc)} cannot be set to 'false' inside presets.`); } - return true; - } -}, function (self, parent) { - if (parent.isIfStatement() && self.key === "consequent" || self.key === "body" && (parent.isLoop() || parent.isArrowFunctionExpression())) { - self.replaceWith({ - type: "BlockStatement", - body: [] - }); - return true; } -}]; -exports.hooks = hooks; + return value; +} +0 && 0; -//# sourceMappingURL=removal-hooks.js.map +//# sourceMappingURL=option-assertions.js.map /***/ }), -/***/ 96703: +/***/ 48922: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -117772,167 +31561,273 @@ exports.hooks = hooks; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isBindingIdentifier = isBindingIdentifier; -exports.isBlockScoped = isBlockScoped; -exports.isExistentialTypeParam = isExistentialTypeParam; -exports.isExpression = isExpression; -exports.isFlow = isFlow; -exports.isForAwaitStatement = isForAwaitStatement; -exports.isGenerated = isGenerated; -exports.isNumericLiteralTypeAnnotation = isNumericLiteralTypeAnnotation; -exports.isPure = isPure; -exports.isReferenced = isReferenced; -exports.isReferencedIdentifier = isReferencedIdentifier; -exports.isReferencedMemberExpression = isReferencedMemberExpression; -exports.isRestProperty = isRestProperty; -exports.isScope = isScope; -exports.isSpreadProperty = isSpreadProperty; -exports.isStatement = isStatement; -exports.isUser = isUser; -exports.isVar = isVar; -var _t = __nccwpck_require__(53501); -const { - isBinding, - isBlockScoped: nodeIsBlockScoped, - isExportDeclaration, - isExpression: nodeIsExpression, - isFlow: nodeIsFlow, - isForStatement, - isForXStatement, - isIdentifier, - isImportDeclaration, - isImportSpecifier, - isJSXIdentifier, - isJSXMemberExpression, - isMemberExpression, - isRestElement: nodeIsRestElement, - isReferenced: nodeIsReferenced, - isScope: nodeIsScope, - isStatement: nodeIsStatement, - isVar: nodeIsVar, - isVariableDeclaration, - react, - isForOfStatement -} = _t; -const { - isCompatTag -} = react; -function isReferencedIdentifier(opts) { - const { - node, - parent - } = this; - if (!isIdentifier(node, opts) && !isJSXMemberExpression(parent, opts)) { - if (isJSXIdentifier(node, opts)) { - if (isCompatTag(node.name)) return false; - } else { - return false; - } - } - return nodeIsReferenced(node, parent, this.parentPath.parent); +exports.assumptionsNames = void 0; +exports.checkNoUnwrappedItemOptionPairs = checkNoUnwrappedItemOptionPairs; +exports.validate = validate; +var _removed = __nccwpck_require__(48475); +var _optionAssertions = __nccwpck_require__(50764); +var _configError = __nccwpck_require__(14884); +const ROOT_VALIDATORS = { + cwd: _optionAssertions.assertString, + root: _optionAssertions.assertString, + rootMode: _optionAssertions.assertRootMode, + configFile: _optionAssertions.assertConfigFileSearch, + caller: _optionAssertions.assertCallerMetadata, + filename: _optionAssertions.assertString, + filenameRelative: _optionAssertions.assertString, + code: _optionAssertions.assertBoolean, + ast: _optionAssertions.assertBoolean, + cloneInputAst: _optionAssertions.assertBoolean, + envName: _optionAssertions.assertString +}; +const BABELRC_VALIDATORS = { + babelrc: _optionAssertions.assertBoolean, + babelrcRoots: _optionAssertions.assertBabelrcSearch +}; +const NONPRESET_VALIDATORS = { + extends: _optionAssertions.assertString, + ignore: _optionAssertions.assertIgnoreList, + only: _optionAssertions.assertIgnoreList, + targets: _optionAssertions.assertTargets, + browserslistConfigFile: _optionAssertions.assertConfigFileSearch, + browserslistEnv: _optionAssertions.assertString +}; +const COMMON_VALIDATORS = { + inputSourceMap: _optionAssertions.assertInputSourceMap, + presets: _optionAssertions.assertPluginList, + plugins: _optionAssertions.assertPluginList, + passPerPreset: _optionAssertions.assertBoolean, + assumptions: _optionAssertions.assertAssumptions, + env: assertEnvSet, + overrides: assertOverridesList, + test: _optionAssertions.assertConfigApplicableTest, + include: _optionAssertions.assertConfigApplicableTest, + exclude: _optionAssertions.assertConfigApplicableTest, + retainLines: _optionAssertions.assertBoolean, + comments: _optionAssertions.assertBoolean, + shouldPrintComment: _optionAssertions.assertFunction, + compact: _optionAssertions.assertCompact, + minified: _optionAssertions.assertBoolean, + auxiliaryCommentBefore: _optionAssertions.assertString, + auxiliaryCommentAfter: _optionAssertions.assertString, + sourceType: _optionAssertions.assertSourceType, + wrapPluginVisitorMethod: _optionAssertions.assertFunction, + highlightCode: _optionAssertions.assertBoolean, + sourceMaps: _optionAssertions.assertSourceMaps, + sourceMap: _optionAssertions.assertSourceMaps, + sourceFileName: _optionAssertions.assertString, + sourceRoot: _optionAssertions.assertString, + parserOpts: _optionAssertions.assertObject, + generatorOpts: _optionAssertions.assertObject +}; +{ + Object.assign(COMMON_VALIDATORS, { + getModuleId: _optionAssertions.assertFunction, + moduleRoot: _optionAssertions.assertString, + moduleIds: _optionAssertions.assertBoolean, + moduleId: _optionAssertions.assertString + }); } -function isReferencedMemberExpression() { - const { - node, - parent - } = this; - return isMemberExpression(node) && nodeIsReferenced(node, parent); +const knownAssumptions = ["arrayLikeIsIterable", "constantReexports", "constantSuper", "enumerableModuleMeta", "ignoreFunctionLength", "ignoreToPrimitiveHint", "iterableIsArray", "mutableTemplateObject", "noClassCalls", "noDocumentAll", "noIncompleteNsImportDetection", "noNewArrows", "objectRestNoSymbols", "privateFieldsAsSymbols", "privateFieldsAsProperties", "pureGetters", "setClassMethods", "setComputedProperties", "setPublicClassFields", "setSpreadProperties", "skipForOfIteratorClosing", "superIsCallableConstructor"]; +const assumptionsNames = exports.assumptionsNames = new Set(knownAssumptions); +function getSource(loc) { + return loc.type === "root" ? loc.source : getSource(loc.parent); } -function isBindingIdentifier() { - const { - node, - parent - } = this; - const grandparent = this.parentPath.parent; - return isIdentifier(node) && isBinding(node, parent, grandparent); +function validate(type, opts, filename) { + try { + return validateNested({ + type: "root", + source: type + }, opts); + } catch (error) { + const configError = new _configError.default(error.message, filename); + if (error.code) configError.code = error.code; + throw configError; + } } -function isStatement() { - const { - node, - parent - } = this; - if (nodeIsStatement(node)) { - if (isVariableDeclaration(node)) { - if (isForXStatement(parent, { - left: node - })) return false; - if (isForStatement(parent, { - init: node - })) return false; +function validateNested(loc, opts) { + const type = getSource(loc); + assertNoDuplicateSourcemap(opts); + Object.keys(opts).forEach(key => { + const optLoc = { + type: "option", + name: key, + parent: loc + }; + if (type === "preset" && NONPRESET_VALIDATORS[key]) { + throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in preset options`); } - return true; - } else { - return false; - } + if (type !== "arguments" && ROOT_VALIDATORS[key]) { + throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options`); + } + if (type !== "arguments" && type !== "configfile" && BABELRC_VALIDATORS[key]) { + if (type === "babelrcfile" || type === "extendsfile") { + throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, ` + `or babel.config.js/config file options`); + } + throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options, or babel.config.js/config file options`); + } + const validator = COMMON_VALIDATORS[key] || NONPRESET_VALIDATORS[key] || BABELRC_VALIDATORS[key] || ROOT_VALIDATORS[key] || throwUnknownError; + validator(optLoc, opts[key]); + }); + return opts; } -function isExpression() { - if (this.isIdentifier()) { - return this.isReferencedIdentifier(); +function throwUnknownError(loc) { + const key = loc.name; + if (_removed.default[key]) { + const { + message, + version = 5 + } = _removed.default[key]; + throw new Error(`Using removed Babel ${version} option: ${(0, _optionAssertions.msg)(loc)} - ${message}`); } else { - return nodeIsExpression(this.node); + const unknownOptErr = new Error(`Unknown option: ${(0, _optionAssertions.msg)(loc)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`); + unknownOptErr.code = "BABEL_UNKNOWN_OPTION"; + throw unknownOptErr; } } -function isScope() { - return nodeIsScope(this.node, this.parent); -} -function isReferenced() { - return nodeIsReferenced(this.node, this.parent); -} -function isBlockScoped() { - return nodeIsBlockScoped(this.node); +function has(obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); } -function isVar() { - return nodeIsVar(this.node); +function assertNoDuplicateSourcemap(opts) { + if (has(opts, "sourceMap") && has(opts, "sourceMaps")) { + throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both"); + } } -function isUser() { - return this.node && !!this.node.loc; +function assertEnvSet(loc, value) { + if (loc.parent.type === "env") { + throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside of another .env block`); + } + const parent = loc.parent; + const obj = (0, _optionAssertions.assertObject)(loc, value); + if (obj) { + for (const envName of Object.keys(obj)) { + const env = (0, _optionAssertions.assertObject)((0, _optionAssertions.access)(loc, envName), obj[envName]); + if (!env) continue; + const envLoc = { + type: "env", + name: envName, + parent + }; + validateNested(envLoc, env); + } + } + return obj; } -function isGenerated() { - return !this.isUser(); +function assertOverridesList(loc, value) { + if (loc.parent.type === "env") { + throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .env block`); + } + if (loc.parent.type === "overrides") { + throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .overrides block`); + } + const parent = loc.parent; + const arr = (0, _optionAssertions.assertArray)(loc, value); + if (arr) { + for (const [index, item] of arr.entries()) { + const objLoc = (0, _optionAssertions.access)(loc, index); + const env = (0, _optionAssertions.assertObject)(objLoc, item); + if (!env) throw new Error(`${(0, _optionAssertions.msg)(objLoc)} must be an object`); + const overridesLoc = { + type: "overrides", + index, + parent + }; + validateNested(overridesLoc, env); + } + } + return arr; } -function isPure(constantsOnly) { - return this.scope.isPure(this.node, constantsOnly); +function checkNoUnwrappedItemOptionPairs(items, index, type, e) { + if (index === 0) return; + const lastItem = items[index - 1]; + const thisItem = items[index]; + if (lastItem.file && lastItem.options === undefined && typeof thisItem.value === "object") { + e.message += `\n- Maybe you meant to use\n` + `"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(thisItem.value, undefined, 2)}]\n]\n` + `To be a valid ${type}, its name and options should be wrapped in a pair of brackets`; + } } -function isFlow() { - const { - node - } = this; - if (nodeIsFlow(node)) { - return true; - } else if (isImportDeclaration(node)) { - return node.importKind === "type" || node.importKind === "typeof"; - } else if (isExportDeclaration(node)) { - return node.exportKind === "type"; - } else if (isImportSpecifier(node)) { - return node.importKind === "type" || node.importKind === "typeof"; - } else { - return false; +0 && 0; + +//# sourceMappingURL=options.js.map + + +/***/ }), + +/***/ 29940: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.validatePluginObject = validatePluginObject; +var _optionAssertions = __nccwpck_require__(50764); +const VALIDATORS = { + name: _optionAssertions.assertString, + manipulateOptions: _optionAssertions.assertFunction, + pre: _optionAssertions.assertFunction, + post: _optionAssertions.assertFunction, + inherits: _optionAssertions.assertFunction, + visitor: assertVisitorMap, + parserOverride: _optionAssertions.assertFunction, + generatorOverride: _optionAssertions.assertFunction +}; +function assertVisitorMap(loc, value) { + const obj = (0, _optionAssertions.assertObject)(loc, value); + if (obj) { + Object.keys(obj).forEach(prop => { + if (prop !== "_exploded" && prop !== "_verified") { + assertVisitorHandler(prop, obj[prop]); + } + }); + if (obj.enter || obj.exit) { + throw new Error(`${(0, _optionAssertions.msg)(loc)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`); + } } + return obj; } -function isRestProperty() { - return nodeIsRestElement(this.node) && this.parentPath && this.parentPath.isObjectPattern(); -} -function isSpreadProperty() { - return nodeIsRestElement(this.node) && this.parentPath && this.parentPath.isObjectExpression(); +function assertVisitorHandler(key, value) { + if (value && typeof value === "object") { + Object.keys(value).forEach(handler => { + if (handler !== "enter" && handler !== "exit") { + throw new Error(`.visitor["${key}"] may only have .enter and/or .exit handlers.`); + } + }); + } else if (typeof value !== "function") { + throw new Error(`.visitor["${key}"] must be a function`); + } } -function isForAwaitStatement() { - return isForOfStatement(this.node, { - await: true +function validatePluginObject(obj) { + const rootPath = { + type: "root", + source: "plugin" + }; + Object.keys(obj).forEach(key => { + const validator = VALIDATORS[key]; + if (validator) { + const optLoc = { + type: "option", + name: key, + parent: rootPath + }; + validator(optLoc, obj[key]); + } else { + const invalidPluginPropertyError = new Error(`.${key} is not a valid Plugin property`); + invalidPluginPropertyError.code = "BABEL_UNKNOWN_PLUGIN_PROPERTY"; + throw invalidPluginPropertyError; + } }); + return obj; } -function isExistentialTypeParam() { - throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7."); -} -function isNumericLiteralTypeAnnotation() { - throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7."); -} +0 && 0; -//# sourceMappingURL=virtual-types-validator.js.map +//# sourceMappingURL=plugins.js.map /***/ }), -/***/ 79702: +/***/ 48475: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -117941,50 +31836,74 @@ function isNumericLiteralTypeAnnotation() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Var = exports.User = exports.Statement = exports.SpreadProperty = exports.Scope = exports.RestProperty = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = exports.Referenced = exports.Pure = exports.NumericLiteralTypeAnnotation = exports.Generated = exports.ForAwaitStatement = exports.Flow = exports.Expression = exports.ExistentialTypeParam = exports.BlockScoped = exports.BindingIdentifier = void 0; -const ReferencedIdentifier = ["Identifier", "JSXIdentifier"]; -exports.ReferencedIdentifier = ReferencedIdentifier; -const ReferencedMemberExpression = ["MemberExpression"]; -exports.ReferencedMemberExpression = ReferencedMemberExpression; -const BindingIdentifier = ["Identifier"]; -exports.BindingIdentifier = BindingIdentifier; -const Statement = ["Statement"]; -exports.Statement = Statement; -const Expression = ["Expression"]; -exports.Expression = Expression; -const Scope = ["Scopable", "Pattern"]; -exports.Scope = Scope; -const Referenced = null; -exports.Referenced = Referenced; -const BlockScoped = null; -exports.BlockScoped = BlockScoped; -const Var = ["VariableDeclaration"]; -exports.Var = Var; -const User = null; -exports.User = User; -const Generated = null; -exports.Generated = Generated; -const Pure = null; -exports.Pure = Pure; -const Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"]; -exports.Flow = Flow; -const RestProperty = ["RestElement"]; -exports.RestProperty = RestProperty; -const SpreadProperty = ["RestElement"]; -exports.SpreadProperty = SpreadProperty; -const ExistentialTypeParam = ["ExistsTypeAnnotation"]; -exports.ExistentialTypeParam = ExistentialTypeParam; -const NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"]; -exports.NumericLiteralTypeAnnotation = NumericLiteralTypeAnnotation; -const ForAwaitStatement = ["ForOfStatement"]; -exports.ForAwaitStatement = ForAwaitStatement; +exports["default"] = void 0; +var _default = exports["default"] = { + auxiliaryComment: { + message: "Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`" + }, + blacklist: { + message: "Put the specific transforms you want in the `plugins` option" + }, + breakConfig: { + message: "This is not a necessary option in Babel 6" + }, + experimental: { + message: "Put the specific transforms you want in the `plugins` option" + }, + externalHelpers: { + message: "Use the `external-helpers` plugin instead. " + "Check out http://babeljs.io/docs/plugins/external-helpers/" + }, + extra: { + message: "" + }, + jsxPragma: { + message: "use the `pragma` option in the `react-jsx` plugin. " + "Check out http://babeljs.io/docs/plugins/transform-react-jsx/" + }, + loose: { + message: "Specify the `loose` option for the relevant plugin you are using " + "or use a preset that sets the option." + }, + metadataUsedHelpers: { + message: "Not required anymore as this is enabled by default" + }, + modules: { + message: "Use the corresponding module transform plugin in the `plugins` option. " + "Check out http://babeljs.io/docs/plugins/#modules" + }, + nonStandard: { + message: "Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. " + "Also check out the react preset http://babeljs.io/docs/plugins/preset-react/" + }, + optional: { + message: "Put the specific transforms you want in the `plugins` option" + }, + sourceMapName: { + message: "The `sourceMapName` option has been removed because it makes more sense for the " + "tooling that calls Babel to assign `map.file` themselves." + }, + stage: { + message: "Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets" + }, + whitelist: { + message: "Put the specific transforms you want in the `plugins` option" + }, + resolveModuleSource: { + version: 6, + message: "Use `babel-plugin-module-resolver@3`'s 'resolvePath' options" + }, + metadata: { + version: 6, + message: "Generated plugin metadata is always included in the output result" + }, + sourceMapTarget: { + version: 6, + message: "The `sourceMapTarget` option has been removed because it makes more sense for the tooling " + "that calls Babel to assign `map.file` themselves." + } +}; +0 && 0; -//# sourceMappingURL=virtual-types.js.map +//# sourceMappingURL=removed.js.map /***/ }), -/***/ 39752: +/***/ 14884: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -117993,230 +31912,228 @@ exports.ForAwaitStatement = ForAwaitStatement; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._containerInsert = _containerInsert; -exports._containerInsertAfter = _containerInsertAfter; -exports._containerInsertBefore = _containerInsertBefore; -exports._verifyNodeList = _verifyNodeList; -exports.hoist = hoist; -exports.insertAfter = insertAfter; -exports.insertBefore = insertBefore; -exports.pushContainer = pushContainer; -exports.unshiftContainer = unshiftContainer; -exports.updateSiblingKeys = updateSiblingKeys; -var _cache = __nccwpck_require__(52271); -var _hoister = __nccwpck_require__(86506); -var _index = __nccwpck_require__(30263); -var _t = __nccwpck_require__(53501); -const { - arrowFunctionExpression, - assertExpression, - assignmentExpression, - blockStatement, - callExpression, - cloneNode, - expressionStatement, - isAssignmentExpression, - isCallExpression, - isExportNamedDeclaration, - isExpression, - isIdentifier, - isSequenceExpression, - isSuper, - thisExpression -} = _t; -function insertBefore(nodes_) { - this._assertUnremoved(); - const nodes = this._verifyNodeList(nodes_); - const { - parentPath, - parent - } = this; - if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { - return parentPath.insertBefore(nodes); - } else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") { - if (this.node) nodes.push(this.node); - return this.replaceExpressionWithStatements(nodes); - } else if (Array.isArray(this.container)) { - return this._containerInsertBefore(nodes); - } else if (this.isStatementOrBlock()) { - const node = this.node; - const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); - this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); - return this.unshiftContainer("body", nodes); - } else { - throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); +exports["default"] = void 0; +var _rewriteStackTrace = __nccwpck_require__(16670); +class ConfigError extends Error { + constructor(message, filename) { + super(message); + (0, _rewriteStackTrace.expectedError)(this); + if (filename) (0, _rewriteStackTrace.injectVirtualStackFrame)(this, filename); } } -function _containerInsert(from, nodes) { - this.updateSiblingKeys(from, nodes.length); - const paths = []; - this.container.splice(from, 0, ...nodes); - for (let i = 0; i < nodes.length; i++) { - const to = from + i; - const path = this.getSibling(to); - paths.push(path); - if (this.context && this.context.queue) { - path.pushContext(this.context); - } - } - const contexts = this._getQueueContexts(); - for (const path of paths) { - path.setScope(); - path.debug("Inserted."); - for (const context of contexts) { - context.maybeQueue(path, true); - } - } - return paths; +exports["default"] = ConfigError; +0 && 0; + +//# sourceMappingURL=config-error.js.map + + +/***/ }), + +/***/ 16670: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.beginHiddenCallStack = beginHiddenCallStack; +exports.endHiddenCallStack = endHiddenCallStack; +exports.expectedError = expectedError; +exports.injectVirtualStackFrame = injectVirtualStackFrame; +var _Object$getOwnPropert; +const ErrorToString = Function.call.bind(Error.prototype.toString); +const SUPPORTED = !!Error.captureStackTrace && ((_Object$getOwnPropert = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit")) == null ? void 0 : _Object$getOwnPropert.writable) === true; +const START_HIDING = "startHiding - secret - don't use this - v1"; +const STOP_HIDING = "stopHiding - secret - don't use this - v1"; +const expectedErrors = new WeakSet(); +const virtualFrames = new WeakMap(); +function CallSite(filename) { + return Object.create({ + isNative: () => false, + isConstructor: () => false, + isToplevel: () => true, + getFileName: () => filename, + getLineNumber: () => undefined, + getColumnNumber: () => undefined, + getFunctionName: () => undefined, + getMethodName: () => undefined, + getTypeName: () => undefined, + toString: () => filename + }); } -function _containerInsertBefore(nodes) { - return this._containerInsert(this.key, nodes); +function injectVirtualStackFrame(error, filename) { + if (!SUPPORTED) return; + let frames = virtualFrames.get(error); + if (!frames) virtualFrames.set(error, frames = []); + frames.push(CallSite(filename)); + return error; } -function _containerInsertAfter(nodes) { - return this._containerInsert(this.key + 1, nodes); +function expectedError(error) { + if (!SUPPORTED) return; + expectedErrors.add(error); + return error; } -const last = arr => arr[arr.length - 1]; -function isHiddenInSequenceExpression(path) { - return isSequenceExpression(path.parent) && (last(path.parent.expressions) !== path.node || isHiddenInSequenceExpression(path.parentPath)); +function beginHiddenCallStack(fn) { + if (!SUPPORTED) return fn; + return Object.defineProperty(function (...args) { + setupPrepareStackTrace(); + return fn(...args); + }, "name", { + value: STOP_HIDING + }); } -function isAlmostConstantAssignment(node, scope) { - if (!isAssignmentExpression(node) || !isIdentifier(node.left)) { - return false; - } - const blockScope = scope.getBlockParent(); - return blockScope.hasOwnBinding(node.left.name) && blockScope.getOwnBinding(node.left.name).constantViolations.length <= 1; +function endHiddenCallStack(fn) { + if (!SUPPORTED) return fn; + return Object.defineProperty(function (...args) { + return fn(...args); + }, "name", { + value: START_HIDING + }); } -function insertAfter(nodes_) { - this._assertUnremoved(); - if (this.isSequenceExpression()) { - return last(this.get("expressions")).insertAfter(nodes_); - } - const nodes = this._verifyNodeList(nodes_); +function setupPrepareStackTrace() { + setupPrepareStackTrace = () => {}; const { - parentPath, - parent - } = this; - if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { - return parentPath.insertAfter(nodes.map(node => { - return isExpression(node) ? expressionStatement(node) : node; - })); - } else if (this.isNodeType("Expression") && !this.isJSXElement() && !parentPath.isJSXElement() || parentPath.isForStatement() && this.key === "init") { - if (this.node) { - const node = this.node; - let { - scope - } = this; - if (scope.path.isPattern()) { - assertExpression(node); - this.replaceWith(callExpression(arrowFunctionExpression([], node), [])); - this.get("callee.body").insertAfter(nodes); - return [this]; - } - if (isHiddenInSequenceExpression(this)) { - nodes.unshift(node); - } else if (isCallExpression(node) && isSuper(node.callee)) { - nodes.unshift(node); - nodes.push(thisExpression()); - } else if (isAlmostConstantAssignment(node, scope)) { - nodes.unshift(node); - nodes.push(cloneNode(node.left)); - } else if (scope.isPure(node, true)) { - nodes.push(node); - } else { - if (parentPath.isMethod({ - computed: true, - key: node - })) { - scope = scope.parent; + prepareStackTrace = defaultPrepareStackTrace + } = Error; + const MIN_STACK_TRACE_LIMIT = 50; + Error.stackTraceLimit && (Error.stackTraceLimit = Math.max(Error.stackTraceLimit, MIN_STACK_TRACE_LIMIT)); + Error.prepareStackTrace = function stackTraceRewriter(err, trace) { + let newTrace = []; + const isExpected = expectedErrors.has(err); + let status = isExpected ? "hiding" : "unknown"; + for (let i = 0; i < trace.length; i++) { + const name = trace[i].getFunctionName(); + if (name === START_HIDING) { + status = "hiding"; + } else if (name === STOP_HIDING) { + if (status === "hiding") { + status = "showing"; + if (virtualFrames.has(err)) { + newTrace.unshift(...virtualFrames.get(err)); + } + } else if (status === "unknown") { + newTrace = trace; + break; } - const temp = scope.generateDeclaredUidIdentifier(); - nodes.unshift(expressionStatement(assignmentExpression("=", cloneNode(temp), node))); - nodes.push(expressionStatement(cloneNode(temp))); + } else if (status !== "hiding") { + newTrace.push(trace[i]); } } - return this.replaceExpressionWithStatements(nodes); - } else if (Array.isArray(this.container)) { - return this._containerInsertAfter(nodes); - } else if (this.isStatementOrBlock()) { - const node = this.node; - const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); - this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); - return this.pushContainer("body", nodes); - } else { - throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); - } + return prepareStackTrace(err, newTrace); + }; } -function updateSiblingKeys(fromIndex, incrementBy) { - if (!this.parent) return; - const paths = _cache.path.get(this.parent); - for (const [, path] of paths) { - if (path.key >= fromIndex) { - path.key += incrementBy; - } - } +function defaultPrepareStackTrace(err, trace) { + if (trace.length === 0) return ErrorToString(err); + return `${ErrorToString(err)}\n at ${trace.join("\n at ")}`; } -function _verifyNodeList(nodes) { - if (!nodes) { - return []; - } - if (!Array.isArray(nodes)) { - nodes = [nodes]; - } - for (let i = 0; i < nodes.length; i++) { - const node = nodes[i]; - let msg; - if (!node) { - msg = "has falsy node"; - } else if (typeof node !== "object") { - msg = "contains a non-object node"; - } else if (!node.type) { - msg = "without a type"; - } else if (node instanceof _index.default) { - msg = "has a NodePath when it expected a raw object"; - } - if (msg) { - const type = Array.isArray(node) ? "array" : typeof node; - throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`); - } - } - return nodes; +0 && 0; + +//# sourceMappingURL=rewrite-stack-trace.js.map + + +/***/ }), + +/***/ 53846: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.forwardAsync = forwardAsync; +exports.isAsync = void 0; +exports.isThenable = isThenable; +exports.maybeAsync = maybeAsync; +exports.waitFor = exports.onFirstPause = void 0; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; } -function unshiftContainer(listKey, nodes) { - this._assertUnremoved(); - nodes = this._verifyNodeList(nodes); - const path = _index.default.get({ - parentPath: this, - parent: this.node, - container: this.node[listKey], - listKey, - key: 0 - }).setContext(this.context); - return path._containerInsertBefore(nodes); +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } +const runGenerator = _gensync()(function* (item) { + return yield* item; +}); +const isAsync = exports.isAsync = _gensync()({ + sync: () => false, + errback: cb => cb(null, true) +}); +function maybeAsync(fn, message) { + return _gensync()({ + sync(...args) { + const result = fn.apply(this, args); + if (isThenable(result)) throw new Error(message); + return result; + }, + async(...args) { + return Promise.resolve(fn.apply(this, args)); + } + }); } -function pushContainer(listKey, nodes) { - this._assertUnremoved(); - const verifiedNodes = this._verifyNodeList(nodes); - const container = this.node[listKey]; - const path = _index.default.get({ - parentPath: this, - parent: this.node, - container: container, - listKey, - key: container.length - }).setContext(this.context); - return path.replaceWithMultiple(verifiedNodes); +const withKind = _gensync()({ + sync: cb => cb("sync"), + async: function () { + var _ref = _asyncToGenerator(function* (cb) { + return cb("async"); + }); + return function async(_x) { + return _ref.apply(this, arguments); + }; + }() +}); +function forwardAsync(action, cb) { + const g = _gensync()(action); + return withKind(kind => { + const adapted = g[kind]; + return cb(adapted); + }); } -function hoist(scope = this.scope) { - const hoister = new _hoister.default(this, scope); - return hoister.run(); +const onFirstPause = exports.onFirstPause = _gensync()({ + name: "onFirstPause", + arity: 2, + sync: function (item) { + return runGenerator.sync(item); + }, + errback: function (item, firstPause, cb) { + let completed = false; + runGenerator.errback(item, (err, value) => { + completed = true; + cb(err, value); + }); + if (!completed) { + firstPause(); + } + } +}); +const waitFor = exports.waitFor = _gensync()({ + sync: x => x, + async: function () { + var _ref2 = _asyncToGenerator(function* (x) { + return x; + }); + return function async(_x2) { + return _ref2.apply(this, arguments); + }; + }() +}); +function isThenable(val) { + return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function"; } +0 && 0; -//# sourceMappingURL=modification.js.map +//# sourceMappingURL=async.js.map /***/ }), -/***/ 29463: +/***/ 666: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -118225,64 +32142,78 @@ function hoist(scope = this.scope) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._assertUnremoved = _assertUnremoved; -exports._callRemovalHooks = _callRemovalHooks; -exports._markRemoved = _markRemoved; -exports._remove = _remove; -exports._removeFromScope = _removeFromScope; -exports.remove = remove; -var _removalHooks = __nccwpck_require__(65223); -var _cache = __nccwpck_require__(52271); -var _index = __nccwpck_require__(30263); -function remove() { - var _this$opts; - this._assertUnremoved(); - this.resync(); - if (!((_this$opts = this.opts) != null && _this$opts.noScope)) { - this._removeFromScope(); - } - if (this._callRemovalHooks()) { - this._markRemoved(); - return; - } - this.shareCommentsWithSiblings(); - this._remove(); - this._markRemoved(); -} -function _removeFromScope() { - const bindings = this.getBindingIdentifiers(); - Object.keys(bindings).forEach(name => this.scope.removeBinding(name)); -} -function _callRemovalHooks() { - for (const fn of _removalHooks.hooks) { - if (fn(this, this.parentPath)) return true; - } -} -function _remove() { - if (Array.isArray(this.container)) { - this.container.splice(this.key, 1); - this.updateSiblingKeys(this.key, -1); - } else { - this._replaceWith(null); - } +exports.stat = exports.readFile = void 0; +function _fs() { + const data = __nccwpck_require__(57147); + _fs = function () { + return data; + }; + return data; } -function _markRemoved() { - this._traverseFlags |= _index.SHOULD_SKIP | _index.REMOVED; - if (this.parent) _cache.path.get(this.parent).delete(this.node); - this.node = null; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; } -function _assertUnremoved() { - if (this.removed) { - throw this.buildCodeFrameError("NodePath has been removed so is read-only."); - } +const readFile = exports.readFile = _gensync()({ + sync: _fs().readFileSync, + errback: _fs().readFile +}); +const stat = exports.stat = _gensync()({ + sync: _fs().statSync, + errback: _fs().stat +}); +0 && 0; + +//# sourceMappingURL=fs.js.map + + +/***/ }), + +/***/ 66699: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.once = once; +var _async = __nccwpck_require__(53846); +function once(fn) { + let result; + let resultP; + return function* () { + if (result) return result; + if (!(yield* (0, _async.isAsync)())) return result = yield* fn(); + if (resultP) return yield* (0, _async.waitFor)(resultP); + let resolve, reject; + resultP = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + try { + result = yield* fn(); + resultP = null; + resolve(result); + return result; + } catch (error) { + reject(error); + throw error; + } + }; } +0 && 0; -//# sourceMappingURL=removal.js.map +//# sourceMappingURL=functional.js.map /***/ }), -/***/ 19599: +/***/ 65258: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -118291,212 +32222,249 @@ function _assertUnremoved() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._replaceWith = _replaceWith; -exports.replaceExpressionWithStatements = replaceExpressionWithStatements; -exports.replaceInline = replaceInline; -exports.replaceWith = replaceWith; -exports.replaceWithMultiple = replaceWithMultiple; -exports.replaceWithSourceString = replaceWithSourceString; -var _codeFrame = __nccwpck_require__(93995); -var _index = __nccwpck_require__(37386); -var _index2 = __nccwpck_require__(30263); -var _cache = __nccwpck_require__(52271); -var _parser = __nccwpck_require__(42973); -var _t = __nccwpck_require__(53501); -var _helperHoistVariables = __nccwpck_require__(51194); -const { - FUNCTION_TYPES, - arrowFunctionExpression, - assignmentExpression, - awaitExpression, - blockStatement, - callExpression, - cloneNode, - expressionStatement, - identifier, - inheritLeadingComments, - inheritTrailingComments, - inheritsComments, - isExpression, - isProgram, - isStatement, - removeComments, - returnStatement, - toSequenceExpression, - validate, - yieldExpression -} = _t; -function replaceWithMultiple(nodes) { - var _pathCache$get; - this.resync(); - nodes = this._verifyNodeList(nodes); - inheritLeadingComments(nodes[0], this.node); - inheritTrailingComments(nodes[nodes.length - 1], this.node); - (_pathCache$get = _cache.path.get(this.parent)) == null ? void 0 : _pathCache$get.delete(this.node); - this.node = this.container[this.key] = null; - const paths = this.insertAfter(nodes); - if (this.node) { - this.requeue(); - } else { - this.remove(); +exports.DEFAULT_EXTENSIONS = void 0; +Object.defineProperty(exports, "File", ({ + enumerable: true, + get: function () { + return _file.default; } - return paths; -} -function replaceWithSourceString(replacement) { - this.resync(); - let ast; - try { - replacement = `(${replacement})`; - ast = (0, _parser.parse)(replacement); - } catch (err) { - const loc = err.loc; - if (loc) { - err.message += " - make sure this is an expression.\n" + (0, _codeFrame.codeFrameColumns)(replacement, { - start: { - line: loc.line, - column: loc.column + 1 - } - }); - err.code = "BABEL_REPLACE_SOURCE_ERROR"; - } - throw err; +})); +Object.defineProperty(exports, "buildExternalHelpers", ({ + enumerable: true, + get: function () { + return _buildExternalHelpers.default; } - const expressionAST = ast.program.body[0].expression; - _index.default.removeProperties(expressionAST); - return this.replaceWith(expressionAST); -} -function replaceWith(replacementPath) { - this.resync(); - if (this.removed) { - throw new Error("You can't replace this node, we've already removed it"); +})); +Object.defineProperty(exports, "createConfigItem", ({ + enumerable: true, + get: function () { + return _index2.createConfigItem; } - let replacement = replacementPath instanceof _index2.default ? replacementPath.node : replacementPath; - if (!replacement) { - throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead"); +})); +Object.defineProperty(exports, "createConfigItemAsync", ({ + enumerable: true, + get: function () { + return _index2.createConfigItemAsync; } - if (this.node === replacement) { - return [this]; +})); +Object.defineProperty(exports, "createConfigItemSync", ({ + enumerable: true, + get: function () { + return _index2.createConfigItemSync; } - if (this.isProgram() && !isProgram(replacement)) { - throw new Error("You can only replace a Program root node with another Program node"); +})); +Object.defineProperty(exports, "getEnv", ({ + enumerable: true, + get: function () { + return _environment.getEnv; } - if (Array.isArray(replacement)) { - throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`"); +})); +Object.defineProperty(exports, "loadOptions", ({ + enumerable: true, + get: function () { + return _index2.loadOptions; } - if (typeof replacement === "string") { - throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`"); +})); +Object.defineProperty(exports, "loadOptionsAsync", ({ + enumerable: true, + get: function () { + return _index2.loadOptionsAsync; } - let nodePath = ""; - if (this.isNodeType("Statement") && isExpression(replacement)) { - if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement) && !this.parentPath.isExportDefaultDeclaration()) { - replacement = expressionStatement(replacement); - nodePath = "expression"; - } +})); +Object.defineProperty(exports, "loadOptionsSync", ({ + enumerable: true, + get: function () { + return _index2.loadOptionsSync; } - if (this.isNodeType("Expression") && isStatement(replacement)) { - if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement)) { - return this.replaceExpressionWithStatements([replacement]); - } +})); +Object.defineProperty(exports, "loadPartialConfig", ({ + enumerable: true, + get: function () { + return _index2.loadPartialConfig; } - const oldNode = this.node; - if (oldNode) { - inheritsComments(replacement, oldNode); - removeComments(oldNode); +})); +Object.defineProperty(exports, "loadPartialConfigAsync", ({ + enumerable: true, + get: function () { + return _index2.loadPartialConfigAsync; } - this._replaceWith(replacement); - this.type = replacement.type; - this.setScope(); - this.requeue(); - return [nodePath ? this.get(nodePath) : this]; -} -function _replaceWith(node) { - var _pathCache$get2; - if (!this.container) { - throw new ReferenceError("Container is falsy"); +})); +Object.defineProperty(exports, "loadPartialConfigSync", ({ + enumerable: true, + get: function () { + return _index2.loadPartialConfigSync; } - if (this.inList) { - validate(this.parent, this.key, [node]); - } else { - validate(this.parent, this.key, node); +})); +Object.defineProperty(exports, "parse", ({ + enumerable: true, + get: function () { + return _parse.parse; } - this.debug(`Replace with ${node == null ? void 0 : node.type}`); - (_pathCache$get2 = _cache.path.get(this.parent)) == null ? void 0 : _pathCache$get2.set(node, this).delete(this.node); - this.node = this.container[this.key] = node; -} -function replaceExpressionWithStatements(nodes) { - this.resync(); - const nodesAsSequenceExpression = toSequenceExpression(nodes, this.scope); - if (nodesAsSequenceExpression) { - return this.replaceWith(nodesAsSequenceExpression)[0].get("expressions"); +})); +Object.defineProperty(exports, "parseAsync", ({ + enumerable: true, + get: function () { + return _parse.parseAsync; } - const functionParent = this.getFunctionParent(); - const isParentAsync = functionParent == null ? void 0 : functionParent.is("async"); - const isParentGenerator = functionParent == null ? void 0 : functionParent.is("generator"); - const container = arrowFunctionExpression([], blockStatement(nodes)); - this.replaceWith(callExpression(container, [])); - const callee = this.get("callee"); - (0, _helperHoistVariables.default)(callee.get("body"), id => { - this.scope.push({ - id - }); - }, "var"); - const completionRecords = this.get("callee").getCompletionRecords(); - for (const path of completionRecords) { - if (!path.isExpressionStatement()) continue; - const loop = path.findParent(path => path.isLoop()); - if (loop) { - let uid = loop.getData("expressionReplacementReturnUid"); - if (!uid) { - uid = callee.scope.generateDeclaredUidIdentifier("ret"); - callee.get("body").pushContainer("body", returnStatement(cloneNode(uid))); - loop.setData("expressionReplacementReturnUid", uid); - } else { - uid = identifier(uid.name); - } - path.get("expression").replaceWith(assignmentExpression("=", cloneNode(uid), path.node.expression)); - } else { - path.replaceWith(returnStatement(path.node.expression)); - } +})); +Object.defineProperty(exports, "parseSync", ({ + enumerable: true, + get: function () { + return _parse.parseSync; } - callee.arrowFunctionToExpression(); - const newCallee = callee; - const needToAwaitFunction = isParentAsync && _index.default.hasType(this.get("callee.body").node, "AwaitExpression", FUNCTION_TYPES); - const needToYieldFunction = isParentGenerator && _index.default.hasType(this.get("callee.body").node, "YieldExpression", FUNCTION_TYPES); - if (needToAwaitFunction) { - newCallee.set("async", true); - if (!needToYieldFunction) { - this.replaceWith(awaitExpression(this.node)); - } +})); +Object.defineProperty(exports, "resolvePlugin", ({ + enumerable: true, + get: function () { + return _index.resolvePlugin; } - if (needToYieldFunction) { - newCallee.set("generator", true); - this.replaceWith(yieldExpression(this.node, true)); +})); +Object.defineProperty(exports, "resolvePreset", ({ + enumerable: true, + get: function () { + return _index.resolvePreset; } - return newCallee.get("body.body"); +})); +Object.defineProperty((0, exports), "template", { + enumerable: true, + get: function () { + return _template().default; + } +}); +Object.defineProperty((0, exports), "tokTypes", { + enumerable: true, + get: function () { + return _parser().tokTypes; + } +}); +Object.defineProperty(exports, "transform", ({ + enumerable: true, + get: function () { + return _transform.transform; + } +})); +Object.defineProperty(exports, "transformAsync", ({ + enumerable: true, + get: function () { + return _transform.transformAsync; + } +})); +Object.defineProperty(exports, "transformFile", ({ + enumerable: true, + get: function () { + return _transformFile.transformFile; + } +})); +Object.defineProperty(exports, "transformFileAsync", ({ + enumerable: true, + get: function () { + return _transformFile.transformFileAsync; + } +})); +Object.defineProperty(exports, "transformFileSync", ({ + enumerable: true, + get: function () { + return _transformFile.transformFileSync; + } +})); +Object.defineProperty(exports, "transformFromAst", ({ + enumerable: true, + get: function () { + return _transformAst.transformFromAst; + } +})); +Object.defineProperty(exports, "transformFromAstAsync", ({ + enumerable: true, + get: function () { + return _transformAst.transformFromAstAsync; + } +})); +Object.defineProperty(exports, "transformFromAstSync", ({ + enumerable: true, + get: function () { + return _transformAst.transformFromAstSync; + } +})); +Object.defineProperty(exports, "transformSync", ({ + enumerable: true, + get: function () { + return _transform.transformSync; + } +})); +Object.defineProperty((0, exports), "traverse", { + enumerable: true, + get: function () { + return _traverse().default; + } +}); +exports.version = exports.types = void 0; +var _file = __nccwpck_require__(73566); +var _buildExternalHelpers = __nccwpck_require__(97306); +var _index = __nccwpck_require__(83148); +var _environment = __nccwpck_require__(23248); +function _types() { + const data = __nccwpck_require__(68948); + _types = function () { + return data; + }; + return data; } -function replaceInline(nodes) { - this.resync(); - if (Array.isArray(nodes)) { - if (Array.isArray(this.container)) { - nodes = this._verifyNodeList(nodes); - const paths = this._containerInsertAfter(nodes); - this.remove(); - return paths; - } else { - return this.replaceWithMultiple(nodes); - } - } else { - return this.replaceWith(nodes); +Object.defineProperty((0, exports), "types", { + enumerable: true, + get: function () { + return _types(); } +}); +function _parser() { + const data = __nccwpck_require__(59067); + _parser = function () { + return data; + }; + return data; +} +function _traverse() { + const data = __nccwpck_require__(22382); + _traverse = function () { + return data; + }; + return data; +} +function _template() { + const data = __nccwpck_require__(98063); + _template = function () { + return data; + }; + return data; +} +var _index2 = __nccwpck_require__(67112); +var _transform = __nccwpck_require__(71318); +var _transformFile = __nccwpck_require__(76604); +var _transformAst = __nccwpck_require__(45890); +var _parse = __nccwpck_require__(57368); +var thisFile = __nccwpck_require__(65258); +; +const version = exports.version = "7.23.6"; +const DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); +; +{ + exports.OptionManager = class OptionManager { + init(opts) { + return (0, _index2.loadOptionsSync)(opts); + } + }; + exports.Plugin = function Plugin(alias) { + throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`); + }; } +0 && (0); -//# sourceMappingURL=replacement.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 99066: -/***/ (function(__unused_webpack_module, exports) { +/***/ 57368: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -118504,91 +32472,53 @@ function replaceInline(nodes) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -class Binding { - constructor({ - identifier, - scope, - path, - kind - }) { - this.identifier = void 0; - this.scope = void 0; - this.path = void 0; - this.kind = void 0; - this.constantViolations = []; - this.constant = true; - this.referencePaths = []; - this.referenced = false; - this.references = 0; - this.identifier = identifier; - this.scope = scope; - this.path = path; - this.kind = kind; - if ((kind === "var" || kind === "hoisted") && isDeclaredInLoop(path || (() => { - throw new Error("Internal Babel error: unreachable "); - })())) { - this.reassign(path); - } - this.clearValue(); - } - deoptValue() { - this.clearValue(); - this.hasDeoptedValue = true; - } - setValue(value) { - if (this.hasDeoptedValue) return; - this.hasValue = true; - this.value = value; - } - clearValue() { - this.hasDeoptedValue = false; - this.hasValue = false; - this.value = null; - } - reassign(path) { - this.constant = false; - if (this.constantViolations.indexOf(path) !== -1) { - return; - } - this.constantViolations.push(path); - } - reference(path) { - if (this.referencePaths.indexOf(path) !== -1) { - return; - } - this.referenced = true; - this.references++; - this.referencePaths.push(path); +exports.parse = void 0; +exports.parseAsync = parseAsync; +exports.parseSync = parseSync; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; +} +var _index = __nccwpck_require__(67112); +var _index2 = __nccwpck_require__(20030); +var _normalizeOpts = __nccwpck_require__(14502); +var _rewriteStackTrace = __nccwpck_require__(16670); +const parseRunner = _gensync()(function* parse(code, opts) { + const config = yield* (0, _index.default)(opts); + if (config === null) { + return null; } - dereference() { - this.references--; - this.referenced = !!this.references; + return yield* (0, _index2.default)(config.passes, (0, _normalizeOpts.default)(config), code); +}); +const parse = exports.parse = function parse(code, opts, callback) { + if (typeof opts === "function") { + callback = opts; + opts = undefined; } -} -exports["default"] = Binding; -function isDeclaredInLoop(path) { - for (let { - parentPath, - key - } = path; parentPath; ({ - parentPath, - key - } = parentPath)) { - if (parentPath.isFunctionParent()) return false; - if (parentPath.isWhile() || parentPath.isForXStatement() || parentPath.isForStatement() && key === "body") { - return true; + if (callback === undefined) { + { + return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(code, opts); } } - return false; + (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.errback)(code, opts, callback); +}; +function parseSync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.sync)(...args); +} +function parseAsync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(parseRunner.async)(...args); } +0 && 0; -//# sourceMappingURL=binding.js.map +//# sourceMappingURL=parse.js.map /***/ }), -/***/ 82392: +/***/ 20030: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -118597,878 +32527,422 @@ function isDeclaredInLoop(path) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -var _renamer = __nccwpck_require__(27184); -var _index = __nccwpck_require__(37386); -var _binding = __nccwpck_require__(99066); -var _globals = __nccwpck_require__(47629); -var _t = __nccwpck_require__(53501); -var _cache = __nccwpck_require__(52271); -const { - NOT_LOCAL_BINDING, - callExpression, - cloneNode, - getBindingIdentifiers, - identifier, - isArrayExpression, - isBinary, - isClass, - isClassBody, - isClassDeclaration, - isExportAllDeclaration, - isExportDefaultDeclaration, - isExportNamedDeclaration, - isFunctionDeclaration, - isIdentifier, - isImportDeclaration, - isLiteral, - isMethod, - isModuleSpecifier, - isNullLiteral, - isObjectExpression, - isProperty, - isPureish, - isRegExpLiteral, - isSuper, - isTaggedTemplateExpression, - isTemplateLiteral, - isThisExpression, - isUnaryExpression, - isVariableDeclaration, - matchesPattern, - memberExpression, - numericLiteral, - toIdentifier, - unaryExpression, - variableDeclaration, - variableDeclarator, - isRecordExpression, - isTupleExpression, - isObjectProperty, - isTopicReference, - isMetaProperty, - isPrivateName, - isExportDeclaration -} = _t; -function gatherNodeParts(node, parts) { - switch (node == null ? void 0 : node.type) { - default: - if (isImportDeclaration(node) || isExportDeclaration(node)) { - if ((isExportAllDeclaration(node) || isExportNamedDeclaration(node) || isImportDeclaration(node)) && node.source) { - gatherNodeParts(node.source, parts); - } else if ((isExportNamedDeclaration(node) || isImportDeclaration(node)) && node.specifiers && node.specifiers.length) { - for (const e of node.specifiers) gatherNodeParts(e, parts); - } else if ((isExportDefaultDeclaration(node) || isExportNamedDeclaration(node)) && node.declaration) { - gatherNodeParts(node.declaration, parts); - } - } else if (isModuleSpecifier(node)) { - gatherNodeParts(node.local, parts); - } else if (isLiteral(node) && !isNullLiteral(node) && !isRegExpLiteral(node) && !isTemplateLiteral(node)) { - parts.push(node.value); - } - break; - case "MemberExpression": - case "OptionalMemberExpression": - case "JSXMemberExpression": - gatherNodeParts(node.object, parts); - gatherNodeParts(node.property, parts); - break; - case "Identifier": - case "JSXIdentifier": - parts.push(node.name); - break; - case "CallExpression": - case "OptionalCallExpression": - case "NewExpression": - gatherNodeParts(node.callee, parts); - break; - case "ObjectExpression": - case "ObjectPattern": - for (const e of node.properties) { - gatherNodeParts(e, parts); - } - break; - case "SpreadElement": - case "RestElement": - gatherNodeParts(node.argument, parts); - break; - case "ObjectProperty": - case "ObjectMethod": - case "ClassProperty": - case "ClassMethod": - case "ClassPrivateProperty": - case "ClassPrivateMethod": - gatherNodeParts(node.key, parts); - break; - case "ThisExpression": - parts.push("this"); - break; - case "Super": - parts.push("super"); - break; - case "Import": - parts.push("import"); - break; - case "DoExpression": - parts.push("do"); - break; - case "YieldExpression": - parts.push("yield"); - gatherNodeParts(node.argument, parts); - break; - case "AwaitExpression": - parts.push("await"); - gatherNodeParts(node.argument, parts); - break; - case "AssignmentExpression": - gatherNodeParts(node.left, parts); - break; - case "VariableDeclarator": - gatherNodeParts(node.id, parts); - break; - case "FunctionExpression": - case "FunctionDeclaration": - case "ClassExpression": - case "ClassDeclaration": - gatherNodeParts(node.id, parts); - break; - case "PrivateName": - gatherNodeParts(node.id, parts); - break; - case "ParenthesizedExpression": - gatherNodeParts(node.expression, parts); - break; - case "UnaryExpression": - case "UpdateExpression": - gatherNodeParts(node.argument, parts); - break; - case "MetaProperty": - gatherNodeParts(node.meta, parts); - gatherNodeParts(node.property, parts); - break; - case "JSXElement": - gatherNodeParts(node.openingElement, parts); - break; - case "JSXOpeningElement": - gatherNodeParts(node.name, parts); - break; - case "JSXFragment": - gatherNodeParts(node.openingFragment, parts); - break; - case "JSXOpeningFragment": - parts.push("Fragment"); - break; - case "JSXNamespacedName": - gatherNodeParts(node.namespace, parts); - gatherNodeParts(node.name, parts); - break; - } +exports["default"] = parser; +function _parser() { + const data = __nccwpck_require__(59067); + _parser = function () { + return data; + }; + return data; } -const collectorVisitor = { - ForStatement(path) { - const declar = path.get("init"); - if (declar.isVar()) { - const { - scope - } = path; - const parentScope = scope.getFunctionParent() || scope.getProgramParent(); - parentScope.registerBinding("var", declar); - } - }, - Declaration(path) { - if (path.isBlockScoped()) return; - if (path.isImportDeclaration()) return; - if (path.isExportDeclaration()) return; - const parent = path.scope.getFunctionParent() || path.scope.getProgramParent(); - parent.registerDeclaration(path); - }, - ImportDeclaration(path) { - const parent = path.scope.getBlockParent(); - parent.registerDeclaration(path); - }, - ReferencedIdentifier(path, state) { - state.references.push(path); - }, - ForXStatement(path, state) { - const left = path.get("left"); - if (left.isPattern() || left.isIdentifier()) { - state.constantViolations.push(path); - } else if (left.isVar()) { - const { - scope - } = path; - const parentScope = scope.getFunctionParent() || scope.getProgramParent(); - parentScope.registerBinding("var", left); - } - }, - ExportDeclaration: { - exit(path) { - const { - node, - scope - } = path; - if (isExportAllDeclaration(node)) return; - const declar = node.declaration; - if (isClassDeclaration(declar) || isFunctionDeclaration(declar)) { - const id = declar.id; - if (!id) return; - const binding = scope.getBinding(id.name); - binding == null ? void 0 : binding.reference(path); - } else if (isVariableDeclaration(declar)) { - for (const decl of declar.declarations) { - for (const name of Object.keys(getBindingIdentifiers(decl))) { - const binding = scope.getBinding(name); - binding == null ? void 0 : binding.reference(path); - } +function _codeFrame() { + const data = __nccwpck_require__(77956); + _codeFrame = function () { + return data; + }; + return data; +} +var _missingPluginHelper = __nccwpck_require__(99966); +function* parser(pluginPasses, { + parserOpts, + highlightCode = true, + filename = "unknown" +}, code) { + try { + const results = []; + for (const plugins of pluginPasses) { + for (const plugin of plugins) { + const { + parserOverride + } = plugin; + if (parserOverride) { + const ast = parserOverride(code, parserOpts, _parser().parse); + if (ast !== undefined) results.push(ast); } } } - }, - LabeledStatement(path) { - path.scope.getBlockParent().registerDeclaration(path); - }, - AssignmentExpression(path, state) { - state.assignments.push(path); - }, - UpdateExpression(path, state) { - state.constantViolations.push(path); - }, - UnaryExpression(path, state) { - if (path.node.operator === "delete") { - state.constantViolations.push(path); - } - }, - BlockScoped(path) { - let scope = path.scope; - if (scope.path === path) scope = scope.parent; - const parent = scope.getBlockParent(); - parent.registerDeclaration(path); - if (path.isClassDeclaration() && path.node.id) { - const id = path.node.id; - const name = id.name; - path.scope.bindings[name] = path.scope.parent.getBinding(name); - } - }, - CatchClause(path) { - path.scope.registerBinding("let", path); - }, - Function(path) { - const params = path.get("params"); - for (const param of params) { - path.scope.registerBinding("param", param); - } - if (path.isFunctionExpression() && path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { - path.scope.registerBinding("local", path.get("id"), path); + if (results.length === 0) { + return (0, _parser().parse)(code, parserOpts); + } else if (results.length === 1) { + yield* []; + if (typeof results[0].then === "function") { + throw new Error(`You appear to be using an async parser plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); + } + return results[0]; } - }, - ClassExpression(path) { - if (path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { - path.scope.registerBinding("local", path); + throw new Error("More than one plugin attempted to override parsing."); + } catch (err) { + if (err.code === "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED") { + err.message += "\nConsider renaming the file to '.mjs', or setting sourceType:module " + "or sourceType:unambiguous in your Babel config for this file."; } - } -}; -let uid = 0; -class Scope { - constructor(path) { - this.uid = void 0; - this.path = void 0; - this.block = void 0; - this.labels = void 0; - this.inited = void 0; - this.bindings = void 0; - this.references = void 0; - this.globals = void 0; - this.uids = void 0; - this.data = void 0; - this.crawling = void 0; const { - node - } = path; - const cached = _cache.scope.get(node); - if ((cached == null ? void 0 : cached.path) === path) { - return cached; - } - _cache.scope.set(node, this); - this.uid = uid++; - this.block = node; - this.path = path; - this.labels = new Map(); - this.inited = false; - } - get parent() { - var _parent; - let parent, - path = this.path; - do { - const shouldSkip = path.key === "key" || path.listKey === "decorators"; - path = path.parentPath; - if (shouldSkip && path.isMethod()) path = path.parentPath; - if (path && path.isScope()) parent = path; - } while (path && !parent); - return (_parent = parent) == null ? void 0 : _parent.scope; - } - get parentBlock() { - return this.path.parent; - } - get hub() { - return this.path.hub; - } - traverse(node, opts, state) { - (0, _index.default)(node, opts, this, state, this.path); - } - generateDeclaredUidIdentifier(name) { - const id = this.generateUidIdentifier(name); - this.push({ - id - }); - return cloneNode(id); - } - generateUidIdentifier(name) { - return identifier(this.generateUid(name)); - } - generateUid(name = "temp") { - name = toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, ""); - let uid; - let i = 1; - do { - uid = this._generateUid(name, i); - i++; - } while (this.hasLabel(uid) || this.hasBinding(uid) || this.hasGlobal(uid) || this.hasReference(uid)); - const program = this.getProgramParent(); - program.references[uid] = true; - program.uids[uid] = true; - return uid; - } - _generateUid(name, i) { - let id = name; - if (i > 1) id += i; - return `_${id}`; - } - generateUidBasedOnNode(node, defaultName) { - const parts = []; - gatherNodeParts(node, parts); - let id = parts.join("$"); - id = id.replace(/^_/, "") || defaultName || "ref"; - return this.generateUid(id.slice(0, 20)); - } - generateUidIdentifierBasedOnNode(node, defaultName) { - return identifier(this.generateUidBasedOnNode(node, defaultName)); - } - isStatic(node) { - if (isThisExpression(node) || isSuper(node) || isTopicReference(node)) { - return true; - } - if (isIdentifier(node)) { - const binding = this.getBinding(node.name); - if (binding) { - return binding.constant; + loc, + missingPlugin + } = err; + if (loc) { + const codeFrame = (0, _codeFrame().codeFrameColumns)(code, { + start: { + line: loc.line, + column: loc.column + 1 + } + }, { + highlightCode + }); + if (missingPlugin) { + err.message = `${filename}: ` + (0, _missingPluginHelper.default)(missingPlugin[0], loc, codeFrame); } else { - return this.hasBinding(node.name); + err.message = `${filename}: ${err.message}\n\n` + codeFrame; } + err.code = "BABEL_PARSE_ERROR"; } - return false; + throw err; } - maybeGenerateMemoised(node, dontPush) { - if (this.isStatic(node)) { - return null; - } else { - const id = this.generateUidIdentifierBasedOnNode(node); - if (!dontPush) { - this.push({ - id - }); - return cloneNode(id); - } - return id; +} +0 && 0; + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 99966: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = generateMissingPluginMessage; +const pluginNameMap = { + asyncDoExpressions: { + syntax: { + name: "@babel/plugin-syntax-async-do-expressions", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions" } - } - checkBlockScopedCollisions(local, kind, name, id) { - if (kind === "param") return; - if (local.kind === "local") return; - const duplicate = kind === "let" || local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param" && kind === "const"; - if (duplicate) { - throw this.hub.buildError(id, `Duplicate declaration "${name}"`, TypeError); + }, + decimal: { + syntax: { + name: "@babel/plugin-syntax-decimal", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal" } - } - rename(oldName, newName) { - const binding = this.getBinding(oldName); - if (binding) { - newName || (newName = this.generateUidIdentifier(oldName).name); - const renamer = new _renamer.default(binding, oldName, newName); - return renamer.rename(arguments[2]); + }, + decorators: { + syntax: { + name: "@babel/plugin-syntax-decorators", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators" + }, + transform: { + name: "@babel/plugin-proposal-decorators", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators" } - } - _renameFromMap(map, oldName, newName, value) { - if (map[oldName]) { - map[newName] = value; - map[oldName] = null; + }, + doExpressions: { + syntax: { + name: "@babel/plugin-syntax-do-expressions", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions" + }, + transform: { + name: "@babel/plugin-proposal-do-expressions", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions" } - } - dump() { - const sep = "-".repeat(60); - console.log(sep); - let scope = this; - do { - console.log("#", scope.block.type); - for (const name of Object.keys(scope.bindings)) { - const binding = scope.bindings[name]; - console.log(" -", name, { - constant: binding.constant, - references: binding.references, - violations: binding.constantViolations.length, - kind: binding.kind - }); - } - } while (scope = scope.parent); - console.log(sep); - } - toArray(node, i, arrayLikeIsIterable) { - if (isIdentifier(node)) { - const binding = this.getBinding(node.name); - if (binding != null && binding.constant && binding.path.isGenericType("Array")) { - return node; - } + }, + exportDefaultFrom: { + syntax: { + name: "@babel/plugin-syntax-export-default-from", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from" + }, + transform: { + name: "@babel/plugin-proposal-export-default-from", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from" } - if (isArrayExpression(node)) { - return node; + }, + flow: { + syntax: { + name: "@babel/plugin-syntax-flow", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow" + }, + transform: { + name: "@babel/preset-flow", + url: "https://github.com/babel/babel/tree/main/packages/babel-preset-flow" } - if (isIdentifier(node, { - name: "arguments" - })) { - return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"), identifier("prototype")), identifier("slice")), identifier("call")), [node]); + }, + functionBind: { + syntax: { + name: "@babel/plugin-syntax-function-bind", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind" + }, + transform: { + name: "@babel/plugin-proposal-function-bind", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind" } - let helperName; - const args = [node]; - if (i === true) { - helperName = "toConsumableArray"; - } else if (typeof i === "number") { - args.push(numericLiteral(i)); - helperName = "slicedToArray"; - } else { - helperName = "toArray"; + }, + functionSent: { + syntax: { + name: "@babel/plugin-syntax-function-sent", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent" + }, + transform: { + name: "@babel/plugin-proposal-function-sent", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent" } - if (arrayLikeIsIterable) { - args.unshift(this.hub.addHelper(helperName)); - helperName = "maybeArrayLike"; + }, + jsx: { + syntax: { + name: "@babel/plugin-syntax-jsx", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx" + }, + transform: { + name: "@babel/preset-react", + url: "https://github.com/babel/babel/tree/main/packages/babel-preset-react" } - return callExpression(this.hub.addHelper(helperName), args); - } - hasLabel(name) { - return !!this.getLabel(name); - } - getLabel(name) { - return this.labels.get(name); - } - registerLabel(path) { - this.labels.set(path.node.label.name, path); - } - registerDeclaration(path) { - if (path.isLabeledStatement()) { - this.registerLabel(path); - } else if (path.isFunctionDeclaration()) { - this.registerBinding("hoisted", path.get("id"), path); - } else if (path.isVariableDeclaration()) { - const declarations = path.get("declarations"); - const { - kind - } = path.node; - for (const declar of declarations) { - this.registerBinding(kind === "using" ? "const" : kind, declar); - } - } else if (path.isClassDeclaration()) { - if (path.node.declare) return; - this.registerBinding("let", path); - } else if (path.isImportDeclaration()) { - const isTypeDeclaration = path.node.importKind === "type" || path.node.importKind === "typeof"; - const specifiers = path.get("specifiers"); - for (const specifier of specifiers) { - const isTypeSpecifier = isTypeDeclaration || specifier.isImportSpecifier() && (specifier.node.importKind === "type" || specifier.node.importKind === "typeof"); - this.registerBinding(isTypeSpecifier ? "unknown" : "module", specifier); - } - } else if (path.isExportDeclaration()) { - const declar = path.get("declaration"); - if (declar.isClassDeclaration() || declar.isFunctionDeclaration() || declar.isVariableDeclaration()) { - this.registerDeclaration(declar); - } - } else { - this.registerBinding("unknown", path); + }, + importAttributes: { + syntax: { + name: "@babel/plugin-syntax-import-attributes", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes" } - } - buildUndefinedNode() { - return unaryExpression("void", numericLiteral(0), true); - } - registerConstantViolation(path) { - const ids = path.getBindingIdentifiers(); - for (const name of Object.keys(ids)) { - const binding = this.getBinding(name); - if (binding) binding.reassign(path); + }, + pipelineOperator: { + syntax: { + name: "@babel/plugin-syntax-pipeline-operator", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator" + }, + transform: { + name: "@babel/plugin-proposal-pipeline-operator", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator" } - } - registerBinding(kind, path, bindingPath = path) { - if (!kind) throw new ReferenceError("no `kind`"); - if (path.isVariableDeclaration()) { - const declarators = path.get("declarations"); - for (const declar of declarators) { - this.registerBinding(kind, declar); - } - return; + }, + recordAndTuple: { + syntax: { + name: "@babel/plugin-syntax-record-and-tuple", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple" } - const parent = this.getProgramParent(); - const ids = path.getOuterBindingIdentifiers(true); - for (const name of Object.keys(ids)) { - parent.references[name] = true; - for (const id of ids[name]) { - const local = this.getOwnBinding(name); - if (local) { - if (local.identifier === id) continue; - this.checkBlockScopedCollisions(local, kind, name, id); - } - if (local) { - this.registerConstantViolation(bindingPath); - } else { - this.bindings[name] = new _binding.default({ - identifier: id, - scope: this, - path: bindingPath, - kind: kind - }); - } - } + }, + throwExpressions: { + syntax: { + name: "@babel/plugin-syntax-throw-expressions", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions" + }, + transform: { + name: "@babel/plugin-proposal-throw-expressions", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions" + } + }, + typescript: { + syntax: { + name: "@babel/plugin-syntax-typescript", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript" + }, + transform: { + name: "@babel/preset-typescript", + url: "https://github.com/babel/babel/tree/main/packages/babel-preset-typescript" } } - addGlobal(node) { - this.globals[node.name] = node; - } - hasUid(name) { - let scope = this; - do { - if (scope.uids[name]) return true; - } while (scope = scope.parent); - return false; - } - hasGlobal(name) { - let scope = this; - do { - if (scope.globals[name]) return true; - } while (scope = scope.parent); - return false; - } - hasReference(name) { - return !!this.getProgramParent().references[name]; - } - isPure(node, constantsOnly) { - if (isIdentifier(node)) { - const binding = this.getBinding(node.name); - if (!binding) return false; - if (constantsOnly) return binding.constant; - return true; - } else if (isThisExpression(node) || isMetaProperty(node) || isTopicReference(node) || isPrivateName(node)) { - return true; - } else if (isClass(node)) { - var _node$decorators; - if (node.superClass && !this.isPure(node.superClass, constantsOnly)) { - return false; +}; +{ + Object.assign(pluginNameMap, { + asyncGenerators: { + syntax: { + name: "@babel/plugin-syntax-async-generators", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators" + }, + transform: { + name: "@babel/plugin-transform-async-generator-functions", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions" } - if (((_node$decorators = node.decorators) == null ? void 0 : _node$decorators.length) > 0) { - return false; + }, + classProperties: { + syntax: { + name: "@babel/plugin-syntax-class-properties", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" + }, + transform: { + name: "@babel/plugin-transform-class-properties", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" } - return this.isPure(node.body, constantsOnly); - } else if (isClassBody(node)) { - for (const method of node.body) { - if (!this.isPure(method, constantsOnly)) return false; + }, + classPrivateProperties: { + syntax: { + name: "@babel/plugin-syntax-class-properties", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" + }, + transform: { + name: "@babel/plugin-transform-class-properties", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties" } - return true; - } else if (isBinary(node)) { - return this.isPure(node.left, constantsOnly) && this.isPure(node.right, constantsOnly); - } else if (isArrayExpression(node) || isTupleExpression(node)) { - for (const elem of node.elements) { - if (elem !== null && !this.isPure(elem, constantsOnly)) return false; + }, + classPrivateMethods: { + syntax: { + name: "@babel/plugin-syntax-class-properties", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties" + }, + transform: { + name: "@babel/plugin-transform-private-methods", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods" } - return true; - } else if (isObjectExpression(node) || isRecordExpression(node)) { - for (const prop of node.properties) { - if (!this.isPure(prop, constantsOnly)) return false; + }, + classStaticBlock: { + syntax: { + name: "@babel/plugin-syntax-class-static-block", + url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block" + }, + transform: { + name: "@babel/plugin-transform-class-static-block", + url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block" } - return true; - } else if (isMethod(node)) { - var _node$decorators2; - if (node.computed && !this.isPure(node.key, constantsOnly)) return false; - if (((_node$decorators2 = node.decorators) == null ? void 0 : _node$decorators2.length) > 0) { - return false; + }, + dynamicImport: { + syntax: { + name: "@babel/plugin-syntax-dynamic-import", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import" } - return true; - } else if (isProperty(node)) { - var _node$decorators3; - if (node.computed && !this.isPure(node.key, constantsOnly)) return false; - if (((_node$decorators3 = node.decorators) == null ? void 0 : _node$decorators3.length) > 0) { - return false; + }, + exportNamespaceFrom: { + syntax: { + name: "@babel/plugin-syntax-export-namespace-from", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from" + }, + transform: { + name: "@babel/plugin-transform-export-namespace-from", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from" } - if (isObjectProperty(node) || node.static) { - if (node.value !== null && !this.isPure(node.value, constantsOnly)) { - return false; - } + }, + importAssertions: { + syntax: { + name: "@babel/plugin-syntax-import-assertions", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions" } - return true; - } else if (isUnaryExpression(node)) { - return this.isPure(node.argument, constantsOnly); - } else if (isTaggedTemplateExpression(node)) { - return matchesPattern(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly); - } else if (isTemplateLiteral(node)) { - for (const expression of node.expressions) { - if (!this.isPure(expression, constantsOnly)) return false; + }, + importMeta: { + syntax: { + name: "@babel/plugin-syntax-import-meta", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta" } - return true; - } else { - return isPureish(node); - } - } - setData(key, val) { - return this.data[key] = val; - } - getData(key) { - let scope = this; - do { - const data = scope.data[key]; - if (data != null) return data; - } while (scope = scope.parent); - } - removeData(key) { - let scope = this; - do { - const data = scope.data[key]; - if (data != null) scope.data[key] = null; - } while (scope = scope.parent); - } - init() { - if (!this.inited) { - this.inited = true; - this.crawl(); - } - } - crawl() { - const path = this.path; - this.references = Object.create(null); - this.bindings = Object.create(null); - this.globals = Object.create(null); - this.uids = Object.create(null); - this.data = Object.create(null); - const programParent = this.getProgramParent(); - if (programParent.crawling) return; - const state = { - references: [], - constantViolations: [], - assignments: [] - }; - this.crawling = true; - if (path.type !== "Program" && collectorVisitor._exploded) { - for (const visit of collectorVisitor.enter) { - visit(path, state); + }, + logicalAssignment: { + syntax: { + name: "@babel/plugin-syntax-logical-assignment-operators", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators" + }, + transform: { + name: "@babel/plugin-transform-logical-assignment-operators", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators" } - const typeVisitors = collectorVisitor[path.type]; - if (typeVisitors) { - for (const visit of typeVisitors.enter) { - visit(path, state); - } + }, + moduleStringNames: { + syntax: { + name: "@babel/plugin-syntax-module-string-names", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names" } - } - path.traverse(collectorVisitor, state); - this.crawling = false; - for (const path of state.assignments) { - const ids = path.getBindingIdentifiers(); - for (const name of Object.keys(ids)) { - if (path.scope.getBinding(name)) continue; - programParent.addGlobal(ids[name]); + }, + numericSeparator: { + syntax: { + name: "@babel/plugin-syntax-numeric-separator", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator" + }, + transform: { + name: "@babel/plugin-transform-numeric-separator", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator" } - path.scope.registerConstantViolation(path); - } - for (const ref of state.references) { - const binding = ref.scope.getBinding(ref.node.name); - if (binding) { - binding.reference(ref); - } else { - programParent.addGlobal(ref.node); + }, + nullishCoalescingOperator: { + syntax: { + name: "@babel/plugin-syntax-nullish-coalescing-operator", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator" + }, + transform: { + name: "@babel/plugin-transform-nullish-coalescing-operator", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator" } - } - for (const path of state.constantViolations) { - path.scope.registerConstantViolation(path); - } - } - push(opts) { - let path = this.path; - if (path.isPattern()) { - path = this.getPatternParent().path; - } else if (!path.isBlockStatement() && !path.isProgram()) { - path = this.getBlockParent().path; - } - if (path.isSwitchStatement()) { - path = (this.getFunctionParent() || this.getProgramParent()).path; - } - if (path.isLoop() || path.isCatchClause() || path.isFunction()) { - path.ensureBlock(); - path = path.get("body"); - } - const unique = opts.unique; - const kind = opts.kind || "var"; - const blockHoist = opts._blockHoist == null ? 2 : opts._blockHoist; - const dataKey = `declaration:${kind}:${blockHoist}`; - let declarPath = !unique && path.getData(dataKey); - if (!declarPath) { - const declar = variableDeclaration(kind, []); - declar._blockHoist = blockHoist; - [declarPath] = path.unshiftContainer("body", [declar]); - if (!unique) path.setData(dataKey, declarPath); - } - const declarator = variableDeclarator(opts.id, opts.init); - const len = declarPath.node.declarations.push(declarator); - path.scope.registerBinding(kind, declarPath.get("declarations")[len - 1]); - } - getProgramParent() { - let scope = this; - do { - if (scope.path.isProgram()) { - return scope; + }, + objectRestSpread: { + syntax: { + name: "@babel/plugin-syntax-object-rest-spread", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread" + }, + transform: { + name: "@babel/plugin-transform-object-rest-spread", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread" } - } while (scope = scope.parent); - throw new Error("Couldn't find a Program"); - } - getFunctionParent() { - let scope = this; - do { - if (scope.path.isFunctionParent()) { - return scope; + }, + optionalCatchBinding: { + syntax: { + name: "@babel/plugin-syntax-optional-catch-binding", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding" + }, + transform: { + name: "@babel/plugin-transform-optional-catch-binding", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding" } - } while (scope = scope.parent); - return null; - } - getBlockParent() { - let scope = this; - do { - if (scope.path.isBlockParent()) { - return scope; + }, + optionalChaining: { + syntax: { + name: "@babel/plugin-syntax-optional-chaining", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining" + }, + transform: { + name: "@babel/plugin-transform-optional-chaining", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining" } - } while (scope = scope.parent); - throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); - } - getPatternParent() { - let scope = this; - do { - if (!scope.path.isPattern()) { - return scope.getBlockParent(); + }, + privateIn: { + syntax: { + name: "@babel/plugin-syntax-private-property-in-object", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object" + }, + transform: { + name: "@babel/plugin-transform-private-property-in-object", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object" } - } while (scope = scope.parent.parent); - throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); - } - getAllBindings() { - const ids = Object.create(null); - let scope = this; - do { - for (const key of Object.keys(scope.bindings)) { - if (key in ids === false) { - ids[key] = scope.bindings[key]; - } + }, + regexpUnicodeSets: { + syntax: { + name: "@babel/plugin-syntax-unicode-sets-regex", + url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md" + }, + transform: { + name: "@babel/plugin-transform-unicode-sets-regex", + url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md" } - scope = scope.parent; - } while (scope); - return ids; - } - getAllBindingsOfKind(...kinds) { - const ids = Object.create(null); - for (const kind of kinds) { - let scope = this; - do { - for (const name of Object.keys(scope.bindings)) { - const binding = scope.bindings[name]; - if (binding.kind === kind) ids[name] = binding; - } - scope = scope.parent; - } while (scope); } - return ids; - } - bindingIdentifierEquals(name, node) { - return this.getBindingIdentifier(name) === node; - } - getBinding(name) { - let scope = this; - let previousPath; - do { - const binding = scope.getOwnBinding(name); - if (binding) { - var _previousPath; - if ((_previousPath = previousPath) != null && _previousPath.isPattern() && binding.kind !== "param" && binding.kind !== "local") {} else { - return binding; - } - } else if (!binding && name === "arguments" && scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { - break; + }); +} +const getNameURLCombination = ({ + name, + url +}) => `${name} (${url})`; +function generateMissingPluginMessage(missingPluginName, loc, codeFrame) { + let helpMessage = `Support for the experimental syntax '${missingPluginName}' isn't currently enabled ` + `(${loc.line}:${loc.column + 1}):\n\n` + codeFrame; + const pluginInfo = pluginNameMap[missingPluginName]; + if (pluginInfo) { + const { + syntax: syntaxPlugin, + transform: transformPlugin + } = pluginInfo; + if (syntaxPlugin) { + const syntaxPluginInfo = getNameURLCombination(syntaxPlugin); + if (transformPlugin) { + const transformPluginInfo = getNameURLCombination(transformPlugin); + const sectionType = transformPlugin.name.startsWith("@babel/plugin") ? "plugins" : "presets"; + helpMessage += `\n\nAdd ${transformPluginInfo} to the '${sectionType}' section of your Babel config to enable transformation. +If you want to leave it as-is, add ${syntaxPluginInfo} to the 'plugins' section to enable parsing.`; + } else { + helpMessage += `\n\nAdd ${syntaxPluginInfo} to the 'plugins' section of your Babel config ` + `to enable parsing.`; } - previousPath = scope.path; - } while (scope = scope.parent); - } - getOwnBinding(name) { - return this.bindings[name]; - } - getBindingIdentifier(name) { - var _this$getBinding; - return (_this$getBinding = this.getBinding(name)) == null ? void 0 : _this$getBinding.identifier; - } - getOwnBindingIdentifier(name) { - const binding = this.bindings[name]; - return binding == null ? void 0 : binding.identifier; - } - hasOwnBinding(name) { - return !!this.getOwnBinding(name); - } - hasBinding(name, opts) { - var _opts, _opts2, _opts3; - if (!name) return false; - if (this.hasOwnBinding(name)) return true; - { - if (typeof opts === "boolean") opts = { - noGlobals: opts - }; - } - if (this.parentHasBinding(name, opts)) return true; - if (!((_opts = opts) != null && _opts.noUids) && this.hasUid(name)) return true; - if (!((_opts2 = opts) != null && _opts2.noGlobals) && Scope.globals.includes(name)) return true; - if (!((_opts3 = opts) != null && _opts3.noGlobals) && Scope.contextVariables.includes(name)) return true; - return false; - } - parentHasBinding(name, opts) { - var _this$parent; - return (_this$parent = this.parent) == null ? void 0 : _this$parent.hasBinding(name, opts); - } - moveBindingTo(name, scope) { - const info = this.getBinding(name); - if (info) { - info.scope.removeOwnBinding(name); - info.scope = scope; - scope.bindings[name] = info; } } - removeOwnBinding(name) { - delete this.bindings[name]; - } - removeBinding(name) { - var _this$getBinding2; - (_this$getBinding2 = this.getBinding(name)) == null ? void 0 : _this$getBinding2.scope.removeOwnBinding(name); - let scope = this; - do { - if (scope.uids[name]) { - scope.uids[name] = false; - } - } while (scope = scope.parent); - } + return helpMessage; } -exports["default"] = Scope; -Scope.globals = Object.keys(_globals.builtin); -Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; +0 && 0; -//# sourceMappingURL=index.js.map +//# sourceMappingURL=missing-plugin-helper.js.map /***/ }), -/***/ 27184: +/***/ 97306: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -119477,106 +32951,312 @@ Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -var t = __nccwpck_require__(53501); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _traverseNode = __nccwpck_require__(10875); -var _visitors = __nccwpck_require__(68974); -const renameVisitor = { - ReferencedIdentifier({ - node - }, state) { - if (node.name === state.oldName) { - node.name = state.newName; - } - }, - Scope(path, state) { - if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) { - path.skip(); - if (path.isMethod()) { - (0, _helperEnvironmentVisitor.requeueComputedKeyAndDecorators)(path); +exports["default"] = _default; +function helpers() { + const data = __nccwpck_require__(78481); + helpers = function () { + return data; + }; + return data; +} +function _generator() { + const data = __nccwpck_require__(8860); + _generator = function () { + return data; + }; + return data; +} +function _template() { + const data = __nccwpck_require__(98063); + _template = function () { + return data; + }; + return data; +} +function _t() { + const data = __nccwpck_require__(68948); + _t = function () { + return data; + }; + return data; +} +var _file = __nccwpck_require__(73566); +const { + arrayExpression, + assignmentExpression, + binaryExpression, + blockStatement, + callExpression, + cloneNode, + conditionalExpression, + exportNamedDeclaration, + exportSpecifier, + expressionStatement, + functionExpression, + identifier, + memberExpression, + objectExpression, + program, + stringLiteral, + unaryExpression, + variableDeclaration, + variableDeclarator +} = _t(); +const buildUmdWrapper = replacements => _template().default.statement` + (function (root, factory) { + if (typeof define === "function" && define.amd) { + define(AMD_ARGUMENTS, factory); + } else if (typeof exports === "object") { + factory(COMMON_ARGUMENTS); + } else { + factory(BROWSER_ARGUMENTS); } - } - }, - "AssignmentExpression|Declaration|VariableDeclarator"(path, state) { - if (path.isVariableDeclaration()) return; - const ids = path.getOuterBindingIdentifiers(); - for (const name in ids) { - if (name === state.oldName) ids[name].name = state.newName; - } + })(UMD_ROOT, function (FACTORY_PARAMETERS) { + FACTORY_BODY + }); + `(replacements); +function buildGlobal(allowlist) { + const namespace = identifier("babelHelpers"); + const body = []; + const container = functionExpression(null, [identifier("global")], blockStatement(body)); + const tree = program([expressionStatement(callExpression(container, [conditionalExpression(binaryExpression("===", unaryExpression("typeof", identifier("global")), stringLiteral("undefined")), identifier("self"), identifier("global"))]))]); + body.push(variableDeclaration("var", [variableDeclarator(namespace, assignmentExpression("=", memberExpression(identifier("global"), namespace), objectExpression([])))])); + buildHelpers(body, namespace, allowlist); + return tree; +} +function buildModule(allowlist) { + const body = []; + const refs = buildHelpers(body, null, allowlist); + body.unshift(exportNamedDeclaration(null, Object.keys(refs).map(name => { + return exportSpecifier(cloneNode(refs[name]), identifier(name)); + }))); + return program(body, [], "module"); +} +function buildUmd(allowlist) { + const namespace = identifier("babelHelpers"); + const body = []; + body.push(variableDeclaration("var", [variableDeclarator(namespace, identifier("global"))])); + buildHelpers(body, namespace, allowlist); + return program([buildUmdWrapper({ + FACTORY_PARAMETERS: identifier("global"), + BROWSER_ARGUMENTS: assignmentExpression("=", memberExpression(identifier("root"), namespace), objectExpression([])), + COMMON_ARGUMENTS: identifier("exports"), + AMD_ARGUMENTS: arrayExpression([stringLiteral("exports")]), + FACTORY_BODY: body, + UMD_ROOT: identifier("this") + })]); +} +function buildVar(allowlist) { + const namespace = identifier("babelHelpers"); + const body = []; + body.push(variableDeclaration("var", [variableDeclarator(namespace, objectExpression([]))])); + const tree = program(body); + buildHelpers(body, namespace, allowlist); + body.push(expressionStatement(namespace)); + return tree; +} +function buildHelpers(body, namespace, allowlist) { + const getHelperReference = name => { + return namespace ? memberExpression(namespace, identifier(name)) : identifier(`_${name}`); + }; + const refs = {}; + helpers().list.forEach(function (name) { + if (allowlist && allowlist.indexOf(name) < 0) return; + const ref = refs[name] = getHelperReference(name); + helpers().ensure(name, _file.default); + const { + nodes + } = helpers().get(name, getHelperReference, ref); + body.push(...nodes); + }); + return refs; +} +function _default(allowlist, outputType = "global") { + let tree; + const build = { + global: buildGlobal, + module: buildModule, + umd: buildUmd, + var: buildVar + }[outputType]; + if (build) { + tree = build(allowlist); + } else { + throw new Error(`Unsupported output type ${outputType}`); } -}; -class Renamer { - constructor(binding, oldName, newName) { - this.newName = newName; - this.oldName = oldName; - this.binding = binding; + return (0, _generator().default)(tree).code; +} +0 && 0; + +//# sourceMappingURL=build-external-helpers.js.map + + +/***/ }), + +/***/ 45890: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.transformFromAst = void 0; +exports.transformFromAstAsync = transformFromAstAsync; +exports.transformFromAstSync = transformFromAstSync; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; +} +var _index = __nccwpck_require__(67112); +var _index2 = __nccwpck_require__(74773); +var _rewriteStackTrace = __nccwpck_require__(16670); +const transformFromAstRunner = _gensync()(function* (ast, code, opts) { + const config = yield* (0, _index.default)(opts); + if (config === null) return null; + if (!ast) throw new Error("No AST given"); + return yield* (0, _index2.run)(config, code, ast); +}); +const transformFromAst = exports.transformFromAst = function transformFromAst(ast, code, optsOrCallback, maybeCallback) { + let opts; + let callback; + if (typeof optsOrCallback === "function") { + callback = optsOrCallback; + opts = undefined; + } else { + opts = optsOrCallback; + callback = maybeCallback; } - maybeConvertFromExportDeclaration(parentDeclar) { - const maybeExportDeclar = parentDeclar.parentPath; - if (!maybeExportDeclar.isExportDeclaration()) { - return; - } - if (maybeExportDeclar.isExportDefaultDeclaration()) { - const { - declaration - } = maybeExportDeclar.node; - if (t.isDeclaration(declaration) && !declaration.id) { - return; - } - } - if (maybeExportDeclar.isExportAllDeclaration()) { - return; + if (callback === undefined) { + { + return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(ast, code, opts); } - (0, _helperSplitExportDeclaration.default)(maybeExportDeclar); - } - maybeConvertFromClassFunctionDeclaration(path) { - return path; } - maybeConvertFromClassFunctionExpression(path) { - return path; + (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.errback)(ast, code, opts, callback); +}; +function transformFromAstSync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.sync)(...args); +} +function transformFromAstAsync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(transformFromAstRunner.async)(...args); +} +0 && 0; + +//# sourceMappingURL=transform-ast.js.map + + +/***/ }), + +/***/ 76604: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.transformFile = transformFile; +exports.transformFileAsync = transformFileAsync; +exports.transformFileSync = transformFileSync; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; +} +var _index = __nccwpck_require__(67112); +var _index2 = __nccwpck_require__(74773); +var fs = __nccwpck_require__(666); +({}); +const transformFileRunner = _gensync()(function* (filename, opts) { + const options = Object.assign({}, opts, { + filename + }); + const config = yield* (0, _index.default)(options); + if (config === null) return null; + const code = yield* fs.readFile(filename, "utf8"); + return yield* (0, _index2.run)(config, code); +}); +function transformFile(...args) { + transformFileRunner.errback(...args); +} +function transformFileSync(...args) { + return transformFileRunner.sync(...args); +} +function transformFileAsync(...args) { + return transformFileRunner.async(...args); +} +0 && 0; + +//# sourceMappingURL=transform-file.js.map + + +/***/ }), + +/***/ 71318: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.transform = void 0; +exports.transformAsync = transformAsync; +exports.transformSync = transformSync; +function _gensync() { + const data = __nccwpck_require__(3531); + _gensync = function () { + return data; + }; + return data; +} +var _index = __nccwpck_require__(67112); +var _index2 = __nccwpck_require__(74773); +var _rewriteStackTrace = __nccwpck_require__(16670); +const transformRunner = _gensync()(function* transform(code, opts) { + const config = yield* (0, _index.default)(opts); + if (config === null) return null; + return yield* (0, _index2.run)(config, code); +}); +const transform = exports.transform = function transform(code, optsOrCallback, maybeCallback) { + let opts; + let callback; + if (typeof optsOrCallback === "function") { + callback = optsOrCallback; + opts = undefined; + } else { + opts = optsOrCallback; + callback = maybeCallback; } - rename() { - const { - binding, - oldName, - newName - } = this; - const { - scope, - path - } = binding; - const parentDeclar = path.find(path => path.isDeclaration() || path.isFunctionExpression() || path.isClassExpression()); - if (parentDeclar) { - const bindingIds = parentDeclar.getOuterBindingIdentifiers(); - if (bindingIds[oldName] === binding.identifier) { - this.maybeConvertFromExportDeclaration(parentDeclar); - } - } - const blockToTraverse = arguments[0] || scope.block; - (0, _traverseNode.traverseNode)(blockToTraverse, (0, _visitors.explode)(renameVisitor), scope, this, scope.path, { - discriminant: true - }); - if (!arguments[0]) { - scope.removeOwnBinding(oldName); - scope.bindings[newName] = binding; - this.binding.identifier.name = newName; - } - if (parentDeclar) { - this.maybeConvertFromClassFunctionDeclaration(path); - this.maybeConvertFromClassFunctionExpression(path); + if (callback === undefined) { + { + return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code, opts); } } + (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.errback)(code, opts, callback); +}; +function transformSync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(...args); } -exports["default"] = Renamer; +function transformAsync(...args) { + return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.async)(...args); +} +0 && 0; -//# sourceMappingURL=renamer.js.map +//# sourceMappingURL=transform.js.map /***/ }), -/***/ 10875: +/***/ 42177: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -119585,31 +33265,83 @@ exports["default"] = Renamer; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.traverseNode = traverseNode; -var _context = __nccwpck_require__(59569); -var _t = __nccwpck_require__(53501); -const { - VISITOR_KEYS -} = _t; -function traverseNode(node, opts, scope, state, path, skipKeys) { - const keys = VISITOR_KEYS[node.type]; - if (!keys) return false; - const context = new _context.default(scope, opts, state, path); +exports["default"] = loadBlockHoistPlugin; +function _traverse() { + const data = __nccwpck_require__(22382); + _traverse = function () { + return data; + }; + return data; +} +var _plugin = __nccwpck_require__(1065); +let LOADED_PLUGIN; +const blockHoistPlugin = { + name: "internal.blockHoist", + visitor: { + Block: { + exit({ + node + }) { + const { + body + } = node; + let max = Math.pow(2, 30) - 1; + let hasChange = false; + for (let i = 0; i < body.length; i++) { + const n = body[i]; + const p = priority(n); + if (p > max) { + hasChange = true; + break; + } + max = p; + } + if (!hasChange) return; + node.body = stableSort(body.slice()); + } + } + } +}; +function loadBlockHoistPlugin() { + if (!LOADED_PLUGIN) { + LOADED_PLUGIN = new _plugin.default(Object.assign({}, blockHoistPlugin, { + visitor: _traverse().default.explode(blockHoistPlugin.visitor) + }), {}); + } + return LOADED_PLUGIN; +} +function priority(bodyNode) { + const priority = bodyNode == null ? void 0 : bodyNode._blockHoist; + if (priority == null) return 1; + if (priority === true) return 2; + return priority; +} +function stableSort(body) { + const buckets = Object.create(null); + for (let i = 0; i < body.length; i++) { + const n = body[i]; + const p = priority(n); + const bucket = buckets[p] || (buckets[p] = []); + bucket.push(n); + } + const keys = Object.keys(buckets).map(k => +k).sort((a, b) => b - a); + let index = 0; for (const key of keys) { - if (skipKeys && skipKeys[key]) continue; - if (context.visit(node, key)) { - return true; + const bucket = buckets[key]; + for (const n of bucket) { + body[index++] = n; } } - return false; + return body; } +0 && 0; -//# sourceMappingURL=traverse-node.js.map +//# sourceMappingURL=block-hoist-plugin.js.map /***/ }), -/***/ 68974: +/***/ 73566: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -119618,209 +33350,355 @@ function traverseNode(node, opts, scope, state, path, skipKeys) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.explode = explode; -exports.merge = merge; -exports.verify = verify; -var virtualTypes = __nccwpck_require__(79702); -var _t = __nccwpck_require__(53501); -const { - DEPRECATED_KEYS, - DEPRECATED_ALIASES, - FLIPPED_ALIAS_KEYS, - TYPES, - __internal__deprecationWarning: deprecationWarning -} = _t; -function isVirtualType(type) { - return type in virtualTypes; +exports["default"] = void 0; +function helpers() { + const data = __nccwpck_require__(78481); + helpers = function () { + return data; + }; + return data; } -function explode(visitor) { - if (visitor._exploded) return visitor; - visitor._exploded = true; - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - const parts = nodeType.split("|"); - if (parts.length === 1) continue; - const fns = visitor[nodeType]; - delete visitor[nodeType]; - for (const part of parts) { - visitor[part] = fns; +function _traverse() { + const data = __nccwpck_require__(22382); + _traverse = function () { + return data; + }; + return data; +} +function _codeFrame() { + const data = __nccwpck_require__(77956); + _codeFrame = function () { + return data; + }; + return data; +} +function _t() { + const data = __nccwpck_require__(68948); + _t = function () { + return data; + }; + return data; +} +function _helperModuleTransforms() { + const data = __nccwpck_require__(1642); + _helperModuleTransforms = function () { + return data; + }; + return data; +} +function _semver() { + const data = __nccwpck_require__(72641); + _semver = function () { + return data; + }; + return data; +} +const { + cloneNode, + interpreterDirective +} = _t(); +const errorVisitor = { + enter(path, state) { + const loc = path.node.loc; + if (loc) { + state.loc = loc; + path.stop(); } } - verify(visitor); - delete visitor.__esModule; - ensureEntranceObjects(visitor); - ensureCallbackArrays(visitor); - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - if (!isVirtualType(nodeType)) continue; - const fns = visitor[nodeType]; - for (const type of Object.keys(fns)) { - fns[type] = wrapCheck(nodeType, fns[type]); - } - delete visitor[nodeType]; - const types = virtualTypes[nodeType]; - if (types !== null) { - for (const type of types) { - if (visitor[type]) { - mergePair(visitor[type], fns); - } else { - visitor[type] = fns; - } - } +}; +class File { + constructor(options, { + code, + ast, + inputMap + }) { + this._map = new Map(); + this.opts = void 0; + this.declarations = {}; + this.path = void 0; + this.ast = void 0; + this.scope = void 0; + this.metadata = {}; + this.code = ""; + this.inputMap = void 0; + this.hub = { + file: this, + getCode: () => this.code, + getScope: () => this.scope, + addHelper: this.addHelper.bind(this), + buildError: this.buildCodeFrameError.bind(this) + }; + this.opts = options; + this.code = code; + this.ast = ast; + this.inputMap = inputMap; + this.path = _traverse().NodePath.get({ + hub: this.hub, + parentPath: null, + parent: this.ast, + container: this.ast, + key: "program" + }).setContext(); + this.scope = this.path.scope; + } + get shebang() { + const { + interpreter + } = this.path.node; + return interpreter ? interpreter.value : ""; + } + set shebang(value) { + if (value) { + this.path.get("interpreter").replaceWith(interpreterDirective(value)); } else { - mergePair(visitor, fns); + this.path.get("interpreter").remove(); } } - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - let aliases = FLIPPED_ALIAS_KEYS[nodeType]; - if (nodeType in DEPRECATED_KEYS) { - const deprecatedKey = DEPRECATED_KEYS[nodeType]; - deprecationWarning(nodeType, deprecatedKey, "Visitor "); - aliases = [deprecatedKey]; - } else if (nodeType in DEPRECATED_ALIASES) { - const deprecatedAlias = DEPRECATED_ALIASES[nodeType]; - deprecationWarning(nodeType, deprecatedAlias, "Visitor "); - aliases = FLIPPED_ALIAS_KEYS[deprecatedAlias]; - } - if (!aliases) continue; - const fns = visitor[nodeType]; - delete visitor[nodeType]; - for (const alias of aliases) { - const existing = visitor[alias]; - if (existing) { - mergePair(existing, fns); - } else { - visitor[alias] = Object.assign({}, fns); - } + set(key, val) { + if (key === "helpersNamespace") { + throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility." + "If you are using @babel/plugin-external-helpers you will need to use a newer " + "version than the one you currently have installed. " + "If you have your own implementation, you'll want to explore using 'helperGenerator' " + "alongside 'file.availableHelper()'."); } + this._map.set(key, val); } - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - ensureCallbackArrays(visitor[nodeType]); + get(key) { + return this._map.get(key); } - return visitor; -} -function verify(visitor) { - if (visitor._verified) return; - if (typeof visitor === "function") { - throw new Error("You passed `traverse()` a function when it expected a visitor object, " + "are you sure you didn't mean `{ enter: Function }`?"); + has(key) { + return this._map.has(key); } - for (const nodeType of Object.keys(visitor)) { - if (nodeType === "enter" || nodeType === "exit") { - validateVisitorMethods(nodeType, visitor[nodeType]); + getModuleName() { + return (0, _helperModuleTransforms().getModuleName)(this.opts, this.opts); + } + addImport() { + throw new Error("This API has been removed. If you're looking for this " + "functionality in Babel 7, you should import the " + "'@babel/helper-module-imports' module and use the functions exposed " + " from that module, such as 'addNamed' or 'addDefault'."); + } + availableHelper(name, versionRange) { + let minVersion; + try { + minVersion = helpers().minVersion(name); + } catch (err) { + if (err.code !== "BABEL_HELPER_UNKNOWN") throw err; + return false; } - if (shouldIgnoreKey(nodeType)) continue; - if (TYPES.indexOf(nodeType) < 0) { - throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`); + if (typeof versionRange !== "string") return true; + if (_semver().valid(versionRange)) versionRange = `^${versionRange}`; + return !_semver().intersects(`<${minVersion}`, versionRange) && !_semver().intersects(`>=8.0.0`, versionRange); + } + addHelper(name) { + const declar = this.declarations[name]; + if (declar) return cloneNode(declar); + const generator = this.get("helperGenerator"); + if (generator) { + const res = generator(name); + if (res) return res; } - const visitors = visitor[nodeType]; - if (typeof visitors === "object") { - for (const visitorKey of Object.keys(visitors)) { - if (visitorKey === "enter" || visitorKey === "exit") { - validateVisitorMethods(`${nodeType}.${visitorKey}`, visitors[visitorKey]); - } else { - throw new Error("You passed `traverse()` a visitor object with the property " + `${nodeType} that has the invalid property ${visitorKey}`); - } - } + helpers().ensure(name, File); + const uid = this.declarations[name] = this.scope.generateUidIdentifier(name); + const dependencies = {}; + for (const dep of helpers().getDependencies(name)) { + dependencies[dep] = this.addHelper(dep); } + const { + nodes, + globals + } = helpers().get(name, dep => dependencies[dep], uid, Object.keys(this.scope.getAllBindings())); + globals.forEach(name => { + if (this.path.scope.hasBinding(name, true)) { + this.path.scope.rename(name); + } + }); + nodes.forEach(node => { + node._compact = true; + }); + this.path.unshiftContainer("body", nodes); + this.path.get("body").forEach(path => { + if (nodes.indexOf(path.node) === -1) return; + if (path.isVariableDeclaration()) this.scope.registerDeclaration(path); + }); + return uid; } - visitor._verified = true; -} -function validateVisitorMethods(path, val) { - const fns = [].concat(val); - for (const fn of fns) { - if (typeof fn !== "function") { - throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`); + addTemplateObject() { + throw new Error("This function has been moved into the template literal transform itself."); + } + buildCodeFrameError(node, msg, _Error = SyntaxError) { + let loc = node && (node.loc || node._loc); + if (!loc && node) { + const state = { + loc: null + }; + (0, _traverse().default)(node, errorVisitor, this.scope, state); + loc = state.loc; + let txt = "This is an error on an internal node. Probably an internal error."; + if (loc) txt += " Location has been estimated."; + msg += ` (${txt})`; + } + if (loc) { + const { + highlightCode = true + } = this.opts; + msg += "\n" + (0, _codeFrame().codeFrameColumns)(this.code, { + start: { + line: loc.start.line, + column: loc.start.column + 1 + }, + end: loc.end && loc.start.line === loc.end.line ? { + line: loc.end.line, + column: loc.end.column + 1 + } : undefined + }, { + highlightCode + }); } + return new _Error(msg); } } -function merge(visitors, states = [], wrapper) { - const rootVisitor = {}; - for (let i = 0; i < visitors.length; i++) { - const visitor = visitors[i]; - const state = states[i]; - explode(visitor); - for (const type of Object.keys(visitor)) { - let visitorType = visitor[type]; - if (state || wrapper) { - visitorType = wrapWithStateOrWrapper(visitorType, state, wrapper); +exports["default"] = File; +0 && 0; + +//# sourceMappingURL=file.js.map + + +/***/ }), + +/***/ 47335: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = generateCode; +function _convertSourceMap() { + const data = __nccwpck_require__(90237); + _convertSourceMap = function () { + return data; + }; + return data; +} +function _generator() { + const data = __nccwpck_require__(8860); + _generator = function () { + return data; + }; + return data; +} +var _mergeMap = __nccwpck_require__(34044); +function generateCode(pluginPasses, file) { + const { + opts, + ast, + code, + inputMap + } = file; + const { + generatorOpts + } = opts; + generatorOpts.inputSourceMap = inputMap == null ? void 0 : inputMap.toObject(); + const results = []; + for (const plugins of pluginPasses) { + for (const plugin of plugins) { + const { + generatorOverride + } = plugin; + if (generatorOverride) { + const result = generatorOverride(ast, generatorOpts, code, _generator().default); + if (result !== undefined) results.push(result); } - const nodeVisitor = rootVisitor[type] || (rootVisitor[type] = {}); - mergePair(nodeVisitor, visitorType); } } - return rootVisitor; -} -function wrapWithStateOrWrapper(oldVisitor, state, wrapper) { - const newVisitor = {}; - for (const key of Object.keys(oldVisitor)) { - let fns = oldVisitor[key]; - if (!Array.isArray(fns)) continue; - fns = fns.map(function (fn) { - let newFn = fn; - if (state) { - newFn = function (path) { - return fn.call(state, path, state); - }; - } - if (wrapper) { - newFn = wrapper(state.key, key, newFn); - } - if (newFn !== fn) { - newFn.toString = () => fn.toString(); - } - return newFn; - }); - newVisitor[key] = fns; + let result; + if (results.length === 0) { + result = (0, _generator().default)(ast, generatorOpts, code); + } else if (results.length === 1) { + result = results[0]; + if (typeof result.then === "function") { + throw new Error(`You appear to be using an async codegen plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version.`); + } + } else { + throw new Error("More than one plugin attempted to override codegen."); } - return newVisitor; -} -function ensureEntranceObjects(obj) { - for (const key of Object.keys(obj)) { - if (shouldIgnoreKey(key)) continue; - const fns = obj[key]; - if (typeof fns === "function") { - obj[key] = { - enter: fns - }; + let { + code: outputCode, + decodedMap: outputMap = result.map + } = result; + if (result.__mergedMap) { + outputMap = Object.assign({}, result.map); + } else { + if (outputMap) { + if (inputMap) { + outputMap = (0, _mergeMap.default)(inputMap.toObject(), outputMap, generatorOpts.sourceFileName); + } else { + outputMap = result.map; + } } } + if (opts.sourceMaps === "inline" || opts.sourceMaps === "both") { + outputCode += "\n" + _convertSourceMap().fromObject(outputMap).toComment(); + } + if (opts.sourceMaps === "inline") { + outputMap = null; + } + return { + outputCode, + outputMap + }; } -function ensureCallbackArrays(obj) { - if (obj.enter && !Array.isArray(obj.enter)) obj.enter = [obj.enter]; - if (obj.exit && !Array.isArray(obj.exit)) obj.exit = [obj.exit]; -} -function wrapCheck(nodeType, fn) { - const newFn = function (path) { - if (path[`is${nodeType}`]()) { - return fn.apply(this, arguments); - } +0 && 0; + +//# sourceMappingURL=generate.js.map + + +/***/ }), + +/***/ 34044: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = mergeSourceMap; +function _remapping() { + const data = __nccwpck_require__(28348); + _remapping = function () { + return data; }; - newFn.toString = () => fn.toString(); - return newFn; + return data; } -function shouldIgnoreKey(key) { - if (key[0] === "_") return true; - if (key === "enter" || key === "exit" || key === "shouldSkip") return true; - if (key === "denylist" || key === "noScope" || key === "skipKeys" || key === "blacklist") { - return true; +function mergeSourceMap(inputMap, map, sourceFileName) { + const source = sourceFileName.replace(/\\/g, "/"); + let found = false; + const result = _remapping()(rootless(map), (s, ctx) => { + if (s === source && !found) { + found = true; + ctx.source = ""; + return rootless(inputMap); + } + return null; + }); + if (typeof inputMap.sourceRoot === "string") { + result.sourceRoot = inputMap.sourceRoot; } - return false; + return Object.assign({}, result); } -function mergePair(dest, src) { - for (const key of Object.keys(src)) { - dest[key] = [].concat(dest[key] || [], src[key]); - } +function rootless(map) { + return Object.assign({}, map, { + sourceRoot: null + }); } +0 && 0; -//# sourceMappingURL=visitors.js.map +//# sourceMappingURL=merge-map.js.map /***/ }), -/***/ 39981: -/***/ (function(__unused_webpack_module, exports) { +/***/ 74773: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -119828,31 +33706,107 @@ function mergePair(dest, src) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.clear = clear; -exports.clearPath = clearPath; -exports.clearScope = clearScope; -exports.scope = exports.path = void 0; -let path = new WeakMap(); -exports.path = path; -let scope = new WeakMap(); -exports.scope = scope; -function clear() { - clearPath(); - clearScope(); +exports.run = run; +function _traverse() { + const data = __nccwpck_require__(22382); + _traverse = function () { + return data; + }; + return data; } -function clearPath() { - exports.path = path = new WeakMap(); +var _pluginPass = __nccwpck_require__(3035); +var _blockHoistPlugin = __nccwpck_require__(42177); +var _normalizeOpts = __nccwpck_require__(14502); +var _normalizeFile = __nccwpck_require__(71856); +var _generate = __nccwpck_require__(47335); +var _deepArray = __nccwpck_require__(76669); +function* run(config, code, ast) { + const file = yield* (0, _normalizeFile.default)(config.passes, (0, _normalizeOpts.default)(config), code, ast); + const opts = file.opts; + try { + yield* transformFile(file, config.passes); + } catch (e) { + var _opts$filename; + e.message = `${(_opts$filename = opts.filename) != null ? _opts$filename : "unknown file"}: ${e.message}`; + if (!e.code) { + e.code = "BABEL_TRANSFORM_ERROR"; + } + throw e; + } + let outputCode, outputMap; + try { + if (opts.code !== false) { + ({ + outputCode, + outputMap + } = (0, _generate.default)(config.passes, file)); + } + } catch (e) { + var _opts$filename2; + e.message = `${(_opts$filename2 = opts.filename) != null ? _opts$filename2 : "unknown file"}: ${e.message}`; + if (!e.code) { + e.code = "BABEL_GENERATE_ERROR"; + } + throw e; + } + return { + metadata: file.metadata, + options: opts, + ast: opts.ast === true ? file.ast : null, + code: outputCode === undefined ? null : outputCode, + map: outputMap === undefined ? null : outputMap, + sourceType: file.ast.program.sourceType, + externalDependencies: (0, _deepArray.flattenToSet)(config.externalDependencies) + }; } -function clearScope() { - exports.scope = scope = new WeakMap(); +function* transformFile(file, pluginPasses) { + for (const pluginPairs of pluginPasses) { + const passPairs = []; + const passes = []; + const visitors = []; + for (const plugin of pluginPairs.concat([(0, _blockHoistPlugin.default)()])) { + const pass = new _pluginPass.default(file, plugin.key, plugin.options); + passPairs.push([plugin, pass]); + passes.push(pass); + visitors.push(plugin.visitor); + } + for (const [plugin, pass] of passPairs) { + const fn = plugin.pre; + if (fn) { + const result = fn.call(pass, file); + yield* []; + if (isThenable(result)) { + throw new Error(`You appear to be using an plugin with an async .pre, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); + } + } + } + const visitor = _traverse().default.visitors.merge(visitors, passes, file.opts.wrapPluginVisitorMethod); + { + (0, _traverse().default)(file.ast, visitor, file.scope); + } + for (const [plugin, pass] of passPairs) { + const fn = plugin.post; + if (fn) { + const result = fn.call(pass, file); + yield* []; + if (isThenable(result)) { + throw new Error(`You appear to be using an plugin with an async .post, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); + } + } + } + } +} +function isThenable(val) { + return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function"; } +0 && 0; -//# sourceMappingURL=cache.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 70663: +/***/ 71856: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -119861,122 +33815,136 @@ function clearScope() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -var _path = __nccwpck_require__(785); -var _t = __nccwpck_require__(53501); +exports["default"] = normalizeFile; +function _fs() { + const data = __nccwpck_require__(57147); + _fs = function () { + return data; + }; + return data; +} +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; +} +function _debug() { + const data = __nccwpck_require__(34755); + _debug = function () { + return data; + }; + return data; +} +function _t() { + const data = __nccwpck_require__(68948); + _t = function () { + return data; + }; + return data; +} +function _convertSourceMap() { + const data = __nccwpck_require__(90237); + _convertSourceMap = function () { + return data; + }; + return data; +} +var _file = __nccwpck_require__(73566); +var _index = __nccwpck_require__(20030); +var _cloneDeep = __nccwpck_require__(91713); const { - VISITOR_KEYS -} = _t; -class TraversalContext { - constructor(scope, opts, state, parentPath) { - this.queue = null; - this.priorityQueue = null; - this.parentPath = parentPath; - this.scope = scope; - this.state = state; - this.opts = opts; - } - shouldVisit(node) { - const opts = this.opts; - if (opts.enter || opts.exit) return true; - if (opts[node.type]) return true; - const keys = VISITOR_KEYS[node.type]; - if (!(keys != null && keys.length)) return false; - for (const key of keys) { - if (node[key]) { - return true; - } - } - return false; - } - create(node, container, key, listKey) { - return _path.default.get({ - parentPath: this.parentPath, - parent: node, - container, - key: key, - listKey - }); - } - maybeQueue(path, notPriority) { - if (this.queue) { - if (notPriority) { - this.queue.push(path); - } else { - this.priorityQueue.push(path); - } + file, + traverseFast +} = _t(); +const debug = _debug()("babel:transform:file"); +const INLINE_SOURCEMAP_REGEX = /^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/; +const EXTERNAL_SOURCEMAP_REGEX = /^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/; +function* normalizeFile(pluginPasses, options, code, ast) { + code = `${code || ""}`; + if (ast) { + if (ast.type === "Program") { + ast = file(ast, [], []); + } else if (ast.type !== "File") { + throw new Error("AST root must be a Program or File node"); } - } - visitMultiple(container, parent, listKey) { - if (container.length === 0) return false; - const queue = []; - for (let key = 0; key < container.length; key++) { - const node = container[key]; - if (node && this.shouldVisit(node)) { - queue.push(this.create(parent, container, key, listKey)); - } + if (options.cloneInputAst) { + ast = (0, _cloneDeep.default)(ast); } - return this.visitQueue(queue); + } else { + ast = yield* (0, _index.default)(pluginPasses, options, code); } - visitSingle(node, key) { - if (this.shouldVisit(node[key])) { - return this.visitQueue([this.create(node, node, key)]); - } else { - return false; + let inputMap = null; + if (options.inputSourceMap !== false) { + if (typeof options.inputSourceMap === "object") { + inputMap = _convertSourceMap().fromObject(options.inputSourceMap); } - } - visitQueue(queue) { - this.queue = queue; - this.priorityQueue = []; - const visited = new WeakSet(); - let stop = false; - for (const path of queue) { - path.resync(); - if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) { - path.pushContext(this); - } - if (path.key === null) continue; - const { - node - } = path; - if (visited.has(node)) continue; - if (node) visited.add(node); - if (path.visit()) { - stop = true; - break; - } - if (this.priorityQueue.length) { - stop = this.visitQueue(this.priorityQueue); - this.priorityQueue = []; - this.queue = queue; - if (stop) break; + if (!inputMap) { + const lastComment = extractComments(INLINE_SOURCEMAP_REGEX, ast); + if (lastComment) { + try { + inputMap = _convertSourceMap().fromComment("//" + lastComment); + } catch (err) { + { + debug("discarding unknown inline input sourcemap"); + } + } } } - for (const path of queue) { - path.popContext(); + if (!inputMap) { + const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast); + if (typeof options.filename === "string" && lastComment) { + try { + const match = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment); + const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8"); + inputMap = _convertSourceMap().fromJSON(inputMapContent); + } catch (err) { + debug("discarding unknown file input sourcemap", err); + } + } else if (lastComment) { + debug("discarding un-loadable file input sourcemap"); + } } - this.queue = null; - return stop; } - visit(node, key) { - const nodes = node[key]; - if (!nodes) return false; - if (Array.isArray(nodes)) { - return this.visitMultiple(nodes, node, key); - } else { - return this.visitSingle(node, key); - } + return new _file.default(options, { + code, + ast: ast, + inputMap + }); +} +function extractCommentsFromList(regex, comments, lastComment) { + if (comments) { + comments = comments.filter(({ + value + }) => { + if (regex.test(value)) { + lastComment = value; + return false; + } + return true; + }); } + return [comments, lastComment]; } -exports["default"] = TraversalContext; +function extractComments(regex, ast) { + let lastComment = null; + traverseFast(ast, node => { + [node.leadingComments, lastComment] = extractCommentsFromList(regex, node.leadingComments, lastComment); + [node.innerComments, lastComment] = extractCommentsFromList(regex, node.innerComments, lastComment); + [node.trailingComments, lastComment] = extractCommentsFromList(regex, node.trailingComments, lastComment); + }); + return lastComment; +} +0 && 0; -//# sourceMappingURL=context.js.map +//# sourceMappingURL=normalize-file.js.map /***/ }), -/***/ 36885: -/***/ (function(__unused_webpack_module, exports) { +/***/ 14502: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -119984,26 +33952,66 @@ exports["default"] = TraversalContext; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -class Hub { - getCode() {} - getScope() {} - addHelper() { - throw new Error("Helpers are not supported by the default hub."); - } - buildError(node, msg, Error = TypeError) { - return new Error(msg); +exports["default"] = normalizeOptions; +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; +} +function normalizeOptions(config) { + const { + filename, + cwd, + filenameRelative = typeof filename === "string" ? _path().relative(cwd, filename) : "unknown", + sourceType = "module", + inputSourceMap, + sourceMaps = !!inputSourceMap, + sourceRoot = config.options.moduleRoot, + sourceFileName = _path().basename(filenameRelative), + comments = true, + compact = "auto" + } = config.options; + const opts = config.options; + const options = Object.assign({}, opts, { + parserOpts: Object.assign({ + sourceType: _path().extname(filenameRelative) === ".mjs" ? "module" : sourceType, + sourceFileName: filename, + plugins: [] + }, opts.parserOpts), + generatorOpts: Object.assign({ + filename, + auxiliaryCommentBefore: opts.auxiliaryCommentBefore, + auxiliaryCommentAfter: opts.auxiliaryCommentAfter, + retainLines: opts.retainLines, + comments, + shouldPrintComment: opts.shouldPrintComment, + compact, + minified: opts.minified, + sourceMaps, + sourceRoot, + sourceFileName + }, opts.generatorOpts) + }); + for (const plugins of config.passes) { + for (const plugin of plugins) { + if (plugin.manipulateOptions) { + plugin.manipulateOptions(options, options.parserOpts); + } + } } + return options; } -exports["default"] = Hub; +0 && 0; -//# sourceMappingURL=hub.js.map +//# sourceMappingURL=normalize-opts.js.map /***/ }), -/***/ 34160: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 3035: +/***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -120011,99 +34019,98 @@ exports["default"] = Hub; Object.defineProperty(exports, "__esModule", ({ value: true })); -Object.defineProperty(exports, "Hub", ({ - enumerable: true, - get: function () { - return _hub.default; +exports["default"] = void 0; +class PluginPass { + constructor(file, key, options) { + this._map = new Map(); + this.key = void 0; + this.file = void 0; + this.opts = void 0; + this.cwd = void 0; + this.filename = void 0; + this.key = key; + this.file = file; + this.opts = options || {}; + this.cwd = file.opts.cwd; + this.filename = file.opts.filename; } -})); -Object.defineProperty(exports, "NodePath", ({ - enumerable: true, - get: function () { - return _path.default; + set(key, val) { + this._map.set(key, val); } -})); -Object.defineProperty(exports, "Scope", ({ - enumerable: true, - get: function () { - return _scope.default; + get(key) { + return this._map.get(key); } -})); -exports.visitors = exports["default"] = void 0; -var visitors = __nccwpck_require__(6539); -exports.visitors = visitors; -var _t = __nccwpck_require__(53501); -var cache = __nccwpck_require__(39981); -var _traverseNode = __nccwpck_require__(2197); -var _path = __nccwpck_require__(785); -var _scope = __nccwpck_require__(80035); -var _hub = __nccwpck_require__(36885); -const { - VISITOR_KEYS, - removeProperties, - traverseFast -} = _t; -function traverse(parent, opts = {}, scope, state, parentPath) { - if (!parent) return; - if (!opts.noScope && !scope) { - if (parent.type !== "Program" && parent.type !== "File") { - throw new Error("You must pass a scope and parentPath unless traversing a Program/File. " + `Instead of that you tried to traverse a ${parent.type} node without ` + "passing scope and parentPath."); - } + availableHelper(name, versionRange) { + return this.file.availableHelper(name, versionRange); } - if (!VISITOR_KEYS[parent.type]) { - return; + addHelper(name) { + return this.file.addHelper(name); } - visitors.explode(opts); - (0, _traverseNode.traverseNode)(parent, opts, scope, state, parentPath); -} -var _default = traverse; -exports["default"] = _default; -traverse.visitors = visitors; -traverse.verify = visitors.verify; -traverse.explode = visitors.explode; -traverse.cheap = function (node, enter) { - traverseFast(node, enter); - return; -}; -traverse.node = function (node, opts, scope, state, path, skipKeys) { - (0, _traverseNode.traverseNode)(node, opts, scope, state, path, skipKeys); -}; -traverse.clearNode = function (node, opts) { - removeProperties(node, opts); - cache.path.delete(node); -}; -traverse.removeProperties = function (tree, opts) { - traverseFast(tree, traverse.clearNode, opts); - return tree; -}; -function hasDenylistedType(path, state) { - if (path.node.type === state.type) { - state.has = true; - path.stop(); + buildCodeFrameError(node, msg, _Error) { + return this.file.buildCodeFrameError(node, msg, _Error); } } -traverse.hasType = function (tree, type, denylistTypes) { - if (denylistTypes != null && denylistTypes.includes(tree.type)) return false; - if (tree.type === type) return true; - const state = { - has: false, - type: type +exports["default"] = PluginPass; +{ + PluginPass.prototype.getModuleName = function getModuleName() { + return this.file.getModuleName(); }; - traverse(tree, { - noScope: true, - denylist: denylistTypes, - enter: hasDenylistedType - }, null, state); - return state.has; -}; -traverse.cache = cache; + PluginPass.prototype.addImport = function addImport() { + this.file.addImport(); + }; +} +0 && 0; + +//# sourceMappingURL=plugin-pass.js.map + + +/***/ }), + +/***/ 91713: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +function deepClone(value, cache) { + if (value !== null) { + if (cache.has(value)) return cache.get(value); + let cloned; + if (Array.isArray(value)) { + cloned = new Array(value.length); + cache.set(value, cloned); + for (let i = 0; i < value.length; i++) { + cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache); + } + } else { + cloned = {}; + cache.set(value, cloned); + const keys = Object.keys(value); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache); + } + } + return cloned; + } + return value; +} +function _default(value) { + if (typeof value !== "object") return value; + return deepClone(value, new Map()); +} +0 && 0; -//# sourceMappingURL=index.js.map +//# sourceMappingURL=clone-deep.js.map /***/ }), -/***/ 84547: +/***/ 39292: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -120112,920 +34119,1039 @@ traverse.cache = cache; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.find = find; -exports.findParent = findParent; -exports.getAncestry = getAncestry; -exports.getDeepestCommonAncestorFrom = getDeepestCommonAncestorFrom; -exports.getEarliestCommonAncestorFrom = getEarliestCommonAncestorFrom; -exports.getFunctionParent = getFunctionParent; -exports.getStatementParent = getStatementParent; -exports.inType = inType; -exports.isAncestor = isAncestor; -exports.isDescendant = isDescendant; -var _t = __nccwpck_require__(53501); -const { - VISITOR_KEYS -} = _t; -function findParent(callback) { - let path = this; - while (path = path.parentPath) { - if (callback(path)) return path; - } - return null; +exports.moduleResolve = moduleResolve; +exports.resolve = resolve; +function _assert() { + const data = __nccwpck_require__(39491); + _assert = function () { + return data; + }; + return data; } -function find(callback) { - let path = this; - do { - if (callback(path)) return path; - } while (path = path.parentPath); - return null; +function _fs() { + const data = _interopRequireWildcard(__nccwpck_require__(57147), true); + _fs = function () { + return data; + }; + return data; } -function getFunctionParent() { - return this.findParent(p => p.isFunction()); +function _process() { + const data = __nccwpck_require__(77282); + _process = function () { + return data; + }; + return data; } -function getStatementParent() { - let path = this; - do { - if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { - break; - } else { - path = path.parentPath; - } - } while (path); - if (path && (path.isProgram() || path.isFile())) { - throw new Error("File/Program node, we can't possibly find a statement parent to this"); - } - return path; +function _url() { + const data = __nccwpck_require__(57310); + _url = function () { + return data; + }; + return data; } -function getEarliestCommonAncestorFrom(paths) { - return this.getDeepestCommonAncestorFrom(paths, function (deepest, i, ancestries) { - let earliest; - const keys = VISITOR_KEYS[deepest.type]; - for (const ancestry of ancestries) { - const path = ancestry[i + 1]; - if (!earliest) { - earliest = path; - continue; - } - if (path.listKey && earliest.listKey === path.listKey) { - if (path.key < earliest.key) { - earliest = path; - continue; - } - } - const earliestKeyIndex = keys.indexOf(earliest.parentKey); - const currentKeyIndex = keys.indexOf(path.parentKey); - if (earliestKeyIndex > currentKeyIndex) { - earliest = path; - } - } - return earliest; - }); +function _path() { + const data = __nccwpck_require__(71017); + _path = function () { + return data; + }; + return data; } -function getDeepestCommonAncestorFrom(paths, filter) { - if (!paths.length) { - return this; +function _module() { + const data = __nccwpck_require__(98188); + _module = function () { + return data; + }; + return data; +} +function _v() { + const data = __nccwpck_require__(84655); + _v = function () { + return data; + }; + return data; +} +function _util() { + const data = __nccwpck_require__(73837); + _util = function () { + return data; + }; + return data; +} +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +const own$1 = {}.hasOwnProperty; +const classRegExp = /^([A-Z][a-z\d]*)+$/; +const kTypes = new Set(['string', 'function', 'number', 'object', 'Function', 'Object', 'boolean', 'bigint', 'symbol']); +const codes = {}; +function formatList(array, type = 'and') { + return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(', ')}, ${type} ${array[array.length - 1]}`; +} +const messages = new Map(); +const nodeInternalPrefix = '__node_internal_'; +let userStackTraceLimit; +codes.ERR_INVALID_ARG_TYPE = createError('ERR_INVALID_ARG_TYPE', (name, expected, actual) => { + _assert()(typeof name === 'string', "'name' must be a string"); + if (!Array.isArray(expected)) { + expected = [expected]; } - if (paths.length === 1) { - return paths[0]; + let message = 'The '; + if (name.endsWith(' argument')) { + message += `${name} `; + } else { + const type = name.includes('.') ? 'property' : 'argument'; + message += `"${name}" ${type} `; } - let minDepth = Infinity; - let lastCommonIndex, lastCommon; - const ancestries = paths.map(path => { - const ancestry = []; - do { - ancestry.unshift(path); - } while ((path = path.parentPath) && path !== this); - if (ancestry.length < minDepth) { - minDepth = ancestry.length; + message += 'must be '; + const types = []; + const instances = []; + const other = []; + for (const value of expected) { + _assert()(typeof value === 'string', 'All expected entries have to be of type string'); + if (kTypes.has(value)) { + types.push(value.toLowerCase()); + } else if (classRegExp.exec(value) === null) { + _assert()(value !== 'object', 'The value "object" should be written as "Object"'); + other.push(value); + } else { + instances.push(value); } - return ancestry; - }); - const first = ancestries[0]; - depthLoop: for (let i = 0; i < minDepth; i++) { - const shouldMatch = first[i]; - for (const ancestry of ancestries) { - if (ancestry[i] !== shouldMatch) { - break depthLoop; - } + } + if (instances.length > 0) { + const pos = types.indexOf('object'); + if (pos !== -1) { + types.slice(pos, 1); + instances.push('Object'); } - lastCommonIndex = i; - lastCommon = shouldMatch; } - if (lastCommon) { - if (filter) { - return filter(lastCommon, lastCommonIndex, ancestries); + if (types.length > 0) { + message += `${types.length > 1 ? 'one of type' : 'of type'} ${formatList(types, 'or')}`; + if (instances.length > 0 || other.length > 0) message += ' or '; + } + if (instances.length > 0) { + message += `an instance of ${formatList(instances, 'or')}`; + if (other.length > 0) message += ' or '; + } + if (other.length > 0) { + if (other.length > 1) { + message += `one of ${formatList(other, 'or')}`; } else { - return lastCommon; + if (other[0].toLowerCase() !== other[0]) message += 'an '; + message += `${other[0]}`; } - } else { - throw new Error("Couldn't find intersection"); } + message += `. Received ${determineSpecificType(actual)}`; + return message; +}, TypeError); +codes.ERR_INVALID_MODULE_SPECIFIER = createError('ERR_INVALID_MODULE_SPECIFIER', (request, reason, base = undefined) => { + return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ''}`; +}, TypeError); +codes.ERR_INVALID_PACKAGE_CONFIG = createError('ERR_INVALID_PACKAGE_CONFIG', (path, base, message) => { + return `Invalid package config ${path}${base ? ` while importing ${base}` : ''}${message ? `. ${message}` : ''}`; +}, Error); +codes.ERR_INVALID_PACKAGE_TARGET = createError('ERR_INVALID_PACKAGE_TARGET', (pkgPath, key, target, isImport = false, base = undefined) => { + const relError = typeof target === 'string' && !isImport && target.length > 0 && !target.startsWith('./'); + if (key === '.') { + _assert()(isImport === false); + return `Invalid "exports" main target ${JSON.stringify(target)} defined ` + `in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ''}${relError ? '; targets must start with "./"' : ''}`; + } + return `Invalid "${isImport ? 'imports' : 'exports'}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ''}${relError ? '; targets must start with "./"' : ''}`; +}, Error); +codes.ERR_MODULE_NOT_FOUND = createError('ERR_MODULE_NOT_FOUND', (path, base, exactUrl = false) => { + return `Cannot find ${exactUrl ? 'module' : 'package'} '${path}' imported from ${base}`; +}, Error); +codes.ERR_NETWORK_IMPORT_DISALLOWED = createError('ERR_NETWORK_IMPORT_DISALLOWED', "import of '%s' by %s is not supported: %s", Error); +codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError('ERR_PACKAGE_IMPORT_NOT_DEFINED', (specifier, packagePath, base) => { + return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath}package.json` : ''} imported from ${base}`; +}, TypeError); +codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError('ERR_PACKAGE_PATH_NOT_EXPORTED', (pkgPath, subpath, base = undefined) => { + if (subpath === '.') return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ''}`; + return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ''}`; +}, Error); +codes.ERR_UNSUPPORTED_DIR_IMPORT = createError('ERR_UNSUPPORTED_DIR_IMPORT', "Directory import '%s' is not supported " + 'resolving ES modules imported from %s', Error); +codes.ERR_UNKNOWN_FILE_EXTENSION = createError('ERR_UNKNOWN_FILE_EXTENSION', (ext, path) => { + return `Unknown file extension "${ext}" for ${path}`; +}, TypeError); +codes.ERR_INVALID_ARG_VALUE = createError('ERR_INVALID_ARG_VALUE', (name, value, reason = 'is invalid') => { + let inspected = (0, _util().inspect)(value); + if (inspected.length > 128) { + inspected = `${inspected.slice(0, 128)}...`; + } + const type = name.includes('.') ? 'property' : 'argument'; + return `The ${type} '${name}' ${reason}. Received ${inspected}`; +}, TypeError); +function createError(sym, value, def) { + messages.set(sym, value); + return makeNodeErrorWithCode(def, sym); } -function getAncestry() { - let path = this; - const paths = []; - do { - paths.push(path); - } while (path = path.parentPath); - return paths; +function makeNodeErrorWithCode(Base, key) { + return NodeError; + function NodeError(...args) { + const limit = Error.stackTraceLimit; + if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0; + const error = new Base(); + if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit; + const message = getMessage(key, args, error); + Object.defineProperties(error, { + message: { + value: message, + enumerable: false, + writable: true, + configurable: true + }, + toString: { + value() { + return `${this.name} [${key}]: ${this.message}`; + }, + enumerable: false, + writable: true, + configurable: true + } + }); + captureLargerStackTrace(error); + error.code = key; + return error; + } } -function isAncestor(maybeDescendant) { - return maybeDescendant.isDescendant(this); +function isErrorStackTraceLimitWritable() { + try { + if (_v().startupSnapshot.isBuildingSnapshot()) { + return false; + } + } catch (_unused) {} + const desc = Object.getOwnPropertyDescriptor(Error, 'stackTraceLimit'); + if (desc === undefined) { + return Object.isExtensible(Error); + } + return own$1.call(desc, 'writable') && desc.writable !== undefined ? desc.writable : desc.set !== undefined; } -function isDescendant(maybeAncestor) { - return !!this.findParent(parent => parent === maybeAncestor); +function hideStackFrames(fn) { + const hidden = nodeInternalPrefix + fn.name; + Object.defineProperty(fn, 'name', { + value: hidden + }); + return fn; } -function inType(...candidateTypes) { - let path = this; - while (path) { - for (const type of candidateTypes) { - if (path.node.type === type) return true; +const captureLargerStackTrace = hideStackFrames(function (error) { + const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable(); + if (stackTraceLimitIsWritable) { + userStackTraceLimit = Error.stackTraceLimit; + Error.stackTraceLimit = Number.POSITIVE_INFINITY; + } + Error.captureStackTrace(error); + if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit; + return error; +}); +function getMessage(key, args, self) { + const message = messages.get(key); + _assert()(message !== undefined, 'expected `message` to be found'); + if (typeof message === 'function') { + _assert()(message.length <= args.length, `Code: ${key}; The provided arguments length (${args.length}) does not ` + `match the required ones (${message.length}).`); + return Reflect.apply(message, self, args); + } + const regex = /%[dfijoOs]/g; + let expectedLength = 0; + while (regex.exec(message) !== null) expectedLength++; + _assert()(expectedLength === args.length, `Code: ${key}; The provided arguments length (${args.length}) does not ` + `match the required ones (${expectedLength}).`); + if (args.length === 0) return message; + args.unshift(message); + return Reflect.apply(_util().format, null, args); +} +function determineSpecificType(value) { + if (value === null || value === undefined) { + return String(value); + } + if (typeof value === 'function' && value.name) { + return `function ${value.name}`; + } + if (typeof value === 'object') { + if (value.constructor && value.constructor.name) { + return `an instance of ${value.constructor.name}`; } - path = path.parentPath; + return `${(0, _util().inspect)(value, { + depth: -1 + })}`; } - return false; + let inspected = (0, _util().inspect)(value, { + colors: false + }); + if (inspected.length > 28) { + inspected = `${inspected.slice(0, 25)}...`; + } + return `type ${typeof value} (${inspected})`; } - -//# sourceMappingURL=ancestry.js.map - - -/***/ }), - -/***/ 10887: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.addComment = addComment; -exports.addComments = addComments; -exports.shareCommentsWithSiblings = shareCommentsWithSiblings; -var _t = __nccwpck_require__(53501); +const hasOwnProperty$1 = {}.hasOwnProperty; const { - addComment: _addComment, - addComments: _addComments -} = _t; -function shareCommentsWithSiblings() { - if (typeof this.key === "string") return; - const node = this.node; - if (!node) return; - const trailing = node.trailingComments; - const leading = node.leadingComments; - if (!trailing && !leading) return; - const prev = this.getSibling(this.key - 1); - const next = this.getSibling(this.key + 1); - const hasPrev = Boolean(prev.node); - const hasNext = Boolean(next.node); - if (hasPrev) { - if (leading) { - prev.addComments("trailing", removeIfExisting(leading, prev.node.trailingComments)); + ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 +} = codes; +const cache = new Map(); +const reader = { + read +}; +var packageJsonReader = reader; +function read(jsonPath, { + base, + specifier +}) { + const existing = cache.get(jsonPath); + if (existing) { + return existing; + } + let string; + try { + string = _fs().default.readFileSync(_path().toNamespacedPath(jsonPath), 'utf8'); + } catch (error) { + const exception = error; + if (exception.code !== 'ENOENT') { + throw exception; } - if (trailing && !hasNext) prev.addComments("trailing", trailing); } - if (hasNext) { - if (trailing) { - next.addComments("leading", removeIfExisting(trailing, next.node.leadingComments)); + const result = { + exists: false, + pjsonPath: jsonPath, + main: undefined, + name: undefined, + type: 'none', + exports: undefined, + imports: undefined + }; + if (string !== undefined) { + let parsed; + try { + parsed = JSON.parse(string); + } catch (error_) { + const cause = error_; + const error = new ERR_INVALID_PACKAGE_CONFIG$1(jsonPath, (base ? `"${specifier}" from ` : '') + (0, _url().fileURLToPath)(base || specifier), cause.message); + error.cause = cause; + throw error; + } + result.exists = true; + if (hasOwnProperty$1.call(parsed, 'name') && typeof parsed.name === 'string') { + result.name = parsed.name; + } + if (hasOwnProperty$1.call(parsed, 'main') && typeof parsed.main === 'string') { + result.main = parsed.main; + } + if (hasOwnProperty$1.call(parsed, 'exports')) { + result.exports = parsed.exports; + } + if (hasOwnProperty$1.call(parsed, 'imports')) { + result.imports = parsed.imports; + } + if (hasOwnProperty$1.call(parsed, 'type') && (parsed.type === 'commonjs' || parsed.type === 'module')) { + result.type = parsed.type; } - if (leading && !hasPrev) next.addComments("leading", leading); } + cache.set(jsonPath, result); + return result; } -function removeIfExisting(list, toRemove) { - if (!toRemove) return list; - let lastFoundIndex = -1; - return list.filter(el => { - const i = toRemove.indexOf(el, lastFoundIndex); - if (i === -1) return true; - lastFoundIndex = i; - }); -} -function addComment(type, content, line) { - _addComment(this.node, type, content, line); +function getPackageScopeConfig(resolved) { + let packageJSONUrl = new (_url().URL)('package.json', resolved); + while (true) { + const packageJSONPath = packageJSONUrl.pathname; + if (packageJSONPath.endsWith('node_modules/package.json')) { + break; + } + const packageConfig = packageJsonReader.read((0, _url().fileURLToPath)(packageJSONUrl), { + specifier: resolved + }); + if (packageConfig.exists) { + return packageConfig; + } + const lastPackageJSONUrl = packageJSONUrl; + packageJSONUrl = new (_url().URL)('../package.json', packageJSONUrl); + if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) { + break; + } + } + const packageJSONPath = (0, _url().fileURLToPath)(packageJSONUrl); + return { + pjsonPath: packageJSONPath, + exists: false, + main: undefined, + name: undefined, + type: 'none', + exports: undefined, + imports: undefined + }; } -function addComments(type, comments) { - _addComments(this.node, type, comments); +function getPackageType(url) { + const packageConfig = getPackageScopeConfig(url); + return packageConfig.type; } - -//# sourceMappingURL=comments.js.map - - -/***/ }), - -/***/ 84679: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports._call = _call; -exports._getQueueContexts = _getQueueContexts; -exports._resyncKey = _resyncKey; -exports._resyncList = _resyncList; -exports._resyncParent = _resyncParent; -exports._resyncRemoved = _resyncRemoved; -exports.call = call; -exports.isBlacklisted = exports.isDenylisted = isDenylisted; -exports.popContext = popContext; -exports.pushContext = pushContext; -exports.requeue = requeue; -exports.resync = resync; -exports.setContext = setContext; -exports.setKey = setKey; -exports.setScope = setScope; -exports.setup = setup; -exports.skip = skip; -exports.skipKey = skipKey; -exports.stop = stop; -exports.visit = visit; -var _traverseNode = __nccwpck_require__(2197); -var _index = __nccwpck_require__(785); -function call(key) { - const opts = this.opts; - this.debug(key); - if (this.node) { - if (this._call(opts[key])) return true; - } - if (this.node) { - var _opts$this$node$type; - return this._call((_opts$this$node$type = opts[this.node.type]) == null ? void 0 : _opts$this$node$type[key]); +const { + ERR_UNKNOWN_FILE_EXTENSION +} = codes; +const hasOwnProperty = {}.hasOwnProperty; +const extensionFormatMap = { + __proto__: null, + '.cjs': 'commonjs', + '.js': 'module', + '.json': 'json', + '.mjs': 'module' +}; +function mimeToFormat(mime) { + if (mime && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime)) return 'module'; + if (mime === 'application/json') return 'json'; + return null; +} +const protocolHandlers = { + __proto__: null, + 'data:': getDataProtocolModuleFormat, + 'file:': getFileProtocolModuleFormat, + 'http:': getHttpProtocolModuleFormat, + 'https:': getHttpProtocolModuleFormat, + 'node:'() { + return 'builtin'; } - return false; +}; +function getDataProtocolModuleFormat(parsed) { + const { + 1: mime + } = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(parsed.pathname) || [null, null, null]; + return mimeToFormat(mime); } -function _call(fns) { - if (!fns) return false; - for (const fn of fns) { - if (!fn) continue; - const node = this.node; - if (!node) return true; - const ret = fn.call(this.state, this, this.state); - if (ret && typeof ret === "object" && typeof ret.then === "function") { - throw new Error(`You appear to be using a plugin with an async traversal visitor, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); +function extname(url) { + const pathname = url.pathname; + let index = pathname.length; + while (index--) { + const code = pathname.codePointAt(index); + if (code === 47) { + return ''; } - if (ret) { - throw new Error(`Unexpected return value from visitor method ${fn}`); + if (code === 46) { + return pathname.codePointAt(index - 1) === 47 ? '' : pathname.slice(index); } - if (this.node !== node) return true; - if (this._traverseFlags > 0) return true; - } - return false; -} -function isDenylisted() { - var _this$opts$denylist; - const denylist = (_this$opts$denylist = this.opts.denylist) != null ? _this$opts$denylist : this.opts.blacklist; - return denylist && denylist.indexOf(this.node.type) > -1; -} -function restoreContext(path, context) { - if (path.context !== context) { - path.context = context; - path.state = context.state; - path.opts = context.opts; } + return ''; } -function visit() { - var _this$opts$shouldSkip, _this$opts; - if (!this.node) { - return false; - } - if (this.isDenylisted()) { - return false; +function getFileProtocolModuleFormat(url, _context, ignoreErrors) { + const ext = extname(url); + if (ext === '.js') { + const packageType = getPackageType(url); + if (packageType !== 'none') { + return packageType; + } + return 'commonjs'; } - if ((_this$opts$shouldSkip = (_this$opts = this.opts).shouldSkip) != null && _this$opts$shouldSkip.call(_this$opts, this)) { - return false; + if (ext === '') { + const packageType = getPackageType(url); + if (packageType === 'none' || packageType === 'commonjs') { + return 'commonjs'; + } + return 'module'; } - const currentContext = this.context; - if (this.shouldSkip || this.call("enter")) { - this.debug("Skip..."); - return this.shouldStop; + const format = extensionFormatMap[ext]; + if (format) return format; + if (ignoreErrors) { + return undefined; } - restoreContext(this, currentContext); - this.debug("Recursing into..."); - this.shouldStop = (0, _traverseNode.traverseNode)(this.node, this.opts, this.scope, this.state, this, this.skipKeys); - restoreContext(this, currentContext); - this.call("exit"); - return this.shouldStop; -} -function skip() { - this.shouldSkip = true; + const filepath = (0, _url().fileURLToPath)(url); + throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath); } -function skipKey(key) { - if (this.skipKeys == null) { - this.skipKeys = {}; +function getHttpProtocolModuleFormat() {} +function defaultGetFormatWithoutErrors(url, context) { + const protocol = url.protocol; + if (!hasOwnProperty.call(protocolHandlers, protocol)) { + return null; } - this.skipKeys[key] = true; + return protocolHandlers[protocol](url, context, true) || null; } -function stop() { - this._traverseFlags |= _index.SHOULD_SKIP | _index.SHOULD_STOP; +const { + ERR_INVALID_ARG_VALUE +} = codes; +const DEFAULT_CONDITIONS = Object.freeze(['node', 'import']); +const DEFAULT_CONDITIONS_SET = new Set(DEFAULT_CONDITIONS); +function getDefaultConditions() { + return DEFAULT_CONDITIONS; } -function setScope() { - var _this$opts2, _this$scope; - if ((_this$opts2 = this.opts) != null && _this$opts2.noScope) return; - let path = this.parentPath; - if ((this.key === "key" || this.listKey === "decorators") && path.isMethod() || this.key === "discriminant" && path.isSwitchStatement()) { - path = path.parentPath; +function getDefaultConditionsSet() { + return DEFAULT_CONDITIONS_SET; +} +function getConditionsSet(conditions) { + if (conditions !== undefined && conditions !== getDefaultConditions()) { + if (!Array.isArray(conditions)) { + throw new ERR_INVALID_ARG_VALUE('conditions', conditions, 'expected an array'); + } + return new Set(conditions); } - let target; - while (path && !target) { - var _path$opts; - if ((_path$opts = path.opts) != null && _path$opts.noScope) return; - target = path.scope; - path = path.parentPath; + return getDefaultConditionsSet(); +} +const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace]; +const { + ERR_NETWORK_IMPORT_DISALLOWED, + ERR_INVALID_MODULE_SPECIFIER, + ERR_INVALID_PACKAGE_CONFIG, + ERR_INVALID_PACKAGE_TARGET, + ERR_MODULE_NOT_FOUND, + ERR_PACKAGE_IMPORT_NOT_DEFINED, + ERR_PACKAGE_PATH_NOT_EXPORTED, + ERR_UNSUPPORTED_DIR_IMPORT +} = codes; +const own = {}.hasOwnProperty; +const invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i; +const deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i; +const invalidPackageNameRegEx = /^\.|%|\\/; +const patternRegEx = /\*/g; +const encodedSepRegEx = /%2f|%5c/i; +const emittedPackageWarnings = new Set(); +const doubleSlashRegEx = /[/\\]{2}/; +function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) { + if (_process().noDeprecation) { + return; } - this.scope = this.getScope(target); - (_this$scope = this.scope) == null ? void 0 : _this$scope.init(); + const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl); + const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null; + _process().emitWarning(`Use of deprecated ${double ? 'double slash' : 'leading or trailing slash matching'} resolving "${target}" for module ` + `request "${request}" ${request === match ? '' : `matched to "${match}" `}in the "${internal ? 'imports' : 'exports'}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ''}.`, 'DeprecationWarning', 'DEP0166'); } -function setContext(context) { - if (this.skipKeys != null) { - this.skipKeys = {}; +function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) { + if (_process().noDeprecation) { + return; } - this._traverseFlags = 0; - if (context) { - this.context = context; - this.state = context.state; - this.opts = context.opts; + const format = defaultGetFormatWithoutErrors(url, { + parentURL: base.href + }); + if (format !== 'module') return; + const urlPath = (0, _url().fileURLToPath)(url.href); + const pkgPath = (0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)); + const basePath = (0, _url().fileURLToPath)(base); + if (!main) { + _process().emitWarning(`No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(pkgPath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`, 'DeprecationWarning', 'DEP0151'); + } else if (_path().resolve(pkgPath, main) !== urlPath) { + _process().emitWarning(`Package ${pkgPath} has a "main" field set to "${main}", ` + `excluding the full filename and extension to the resolved file at "${urlPath.slice(pkgPath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is ` + 'deprecated for ES modules.', 'DeprecationWarning', 'DEP0151'); } - this.setScope(); - return this; } -function resync() { - if (this.removed) return; - this._resyncParent(); - this._resyncList(); - this._resyncKey(); -} -function _resyncParent() { - if (this.parentPath) { - this.parent = this.parentPath.node; +function tryStatSync(path) { + try { + return (0, _fs().statSync)(path); + } catch (_unused2) { + return new (_fs().Stats)(); } } -function _resyncKey() { - if (!this.container) return; - if (this.node === this.container[this.key]) { - return; - } - if (Array.isArray(this.container)) { - for (let i = 0; i < this.container.length; i++) { - if (this.container[i] === this.node) { - this.setKey(i); - return; - } +function fileExists(url) { + const stats = (0, _fs().statSync)(url, { + throwIfNoEntry: false + }); + const isFile = stats ? stats.isFile() : undefined; + return isFile === null || isFile === undefined ? false : isFile; +} +function legacyMainResolve(packageJsonUrl, packageConfig, base) { + let guess; + if (packageConfig.main !== undefined) { + guess = new (_url().URL)(packageConfig.main, packageJsonUrl); + if (fileExists(guess)) return guess; + const tries = [`./${packageConfig.main}.js`, `./${packageConfig.main}.json`, `./${packageConfig.main}.node`, `./${packageConfig.main}/index.js`, `./${packageConfig.main}/index.json`, `./${packageConfig.main}/index.node`]; + let i = -1; + while (++i < tries.length) { + guess = new (_url().URL)(tries[i], packageJsonUrl); + if (fileExists(guess)) break; + guess = undefined; } - } else { - for (const key of Object.keys(this.container)) { - if (this.container[key] === this.node) { - this.setKey(key); - return; - } + if (guess) { + emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main); + return guess; } } - this.key = null; -} -function _resyncList() { - if (!this.parent || !this.inList) return; - const newContainer = this.parent[this.listKey]; - if (this.container === newContainer) return; - this.container = newContainer || null; -} -function _resyncRemoved() { - if (this.key == null || !this.container || this.container[this.key] !== this.node) { - this._markRemoved(); + const tries = ['./index.js', './index.json', './index.node']; + let i = -1; + while (++i < tries.length) { + guess = new (_url().URL)(tries[i], packageJsonUrl); + if (fileExists(guess)) break; + guess = undefined; + } + if (guess) { + emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main); + return guess; } + throw new ERR_MODULE_NOT_FOUND((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), (0, _url().fileURLToPath)(base)); } -function popContext() { - this.contexts.pop(); - if (this.contexts.length > 0) { - this.setContext(this.contexts[this.contexts.length - 1]); - } else { - this.setContext(undefined); +function finalizeResolution(resolved, base, preserveSymlinks) { + if (encodedSepRegEx.exec(resolved.pathname) !== null) { + throw new ERR_INVALID_MODULE_SPECIFIER(resolved.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base)); + } + let filePath; + try { + filePath = (0, _url().fileURLToPath)(resolved); + } catch (error) { + const cause = error; + Object.defineProperty(cause, 'input', { + value: String(resolved) + }); + Object.defineProperty(cause, 'module', { + value: String(base) + }); + throw cause; + } + const stats = tryStatSync(filePath.endsWith('/') ? filePath.slice(-1) : filePath); + if (stats.isDirectory()) { + const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, _url().fileURLToPath)(base)); + error.url = String(resolved); + throw error; + } + if (!stats.isFile()) { + const error = new ERR_MODULE_NOT_FOUND(filePath || resolved.pathname, base && (0, _url().fileURLToPath)(base), true); + error.url = String(resolved); + throw error; + } + if (!preserveSymlinks) { + const real = (0, _fs().realpathSync)(filePath); + const { + search, + hash + } = resolved; + resolved = (0, _url().pathToFileURL)(real + (filePath.endsWith(_path().sep) ? '/' : '')); + resolved.search = search; + resolved.hash = hash; } + return resolved; } -function pushContext(context) { - this.contexts.push(context); - this.setContext(context); +function importNotDefined(specifier, packageJsonUrl, base) { + return new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier, packageJsonUrl && (0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), (0, _url().fileURLToPath)(base)); } -function setup(parentPath, container, listKey, key) { - this.listKey = listKey; - this.container = container; - this.parentPath = parentPath || this.parentPath; - this.setKey(key); +function exportsNotFound(subpath, packageJsonUrl, base) { + return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base)); } -function setKey(key) { - var _this$node; - this.key = key; - this.node = this.container[this.key]; - this.type = (_this$node = this.node) == null ? void 0 : _this$node.type; +function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) { + const reason = `request is not a valid match in pattern "${match}" for the "${internal ? 'imports' : 'exports'}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`; + throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base)); } -function requeue(pathToQueue = this) { - if (pathToQueue.removed) return; - ; - const contexts = this.contexts; - for (const context of contexts) { - context.maybeQueue(pathToQueue); - } +function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) { + target = typeof target === 'object' && target !== null ? JSON.stringify(target, null, '') : `${target}`; + return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url().URL)('.', packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base)); } -function _getQueueContexts() { - let path = this; - let contexts = this.contexts; - while (!contexts.length) { - path = path.parentPath; - if (!path) break; - contexts = path.contexts; +function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) { + if (subpath !== '' && !pattern && target[target.length - 1] !== '/') throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); + if (!target.startsWith('./')) { + if (internal && !target.startsWith('../') && !target.startsWith('/')) { + let isURL = false; + try { + new (_url().URL)(target); + isURL = true; + } catch (_unused3) {} + if (!isURL) { + const exportTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target + subpath; + return packageResolve(exportTarget, packageJsonUrl, conditions); + } + } + throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); } - return contexts; -} - -//# sourceMappingURL=context.js.map - - -/***/ }), - -/***/ 18496: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.arrowFunctionToExpression = arrowFunctionToExpression; -exports.ensureBlock = ensureBlock; -exports.toComputedKey = toComputedKey; -exports.unwrapFunctionEnvironment = unwrapFunctionEnvironment; -var _t = __nccwpck_require__(53501); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _helperFunctionName = __nccwpck_require__(28850); -var _visitors = __nccwpck_require__(6539); -const { - arrowFunctionExpression, - assignmentExpression, - binaryExpression, - blockStatement, - callExpression, - conditionalExpression, - expressionStatement, - identifier, - isIdentifier, - jsxIdentifier, - logicalExpression, - LOGICAL_OPERATORS, - memberExpression, - metaProperty, - numericLiteral, - objectExpression, - restElement, - returnStatement, - sequenceExpression, - spreadElement, - stringLiteral, - super: _super, - thisExpression, - toExpression, - unaryExpression -} = _t; -function toComputedKey() { - let key; - if (this.isMemberExpression()) { - key = this.node.property; - } else if (this.isProperty() || this.isMethod()) { - key = this.node.key; - } else { - throw new ReferenceError("todo"); + if (invalidSegmentRegEx.exec(target.slice(2)) !== null) { + if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) { + if (!isPathMap) { + const request = pattern ? match.replace('*', () => subpath) : match + subpath; + const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target; + emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, true); + } + } else { + throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); + } } - if (!this.node.computed) { - if (isIdentifier(key)) key = stringLiteral(key.name); + const resolved = new (_url().URL)(target, packageJsonUrl); + const resolvedPath = resolved.pathname; + const packagePath = new (_url().URL)('.', packageJsonUrl).pathname; + if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match, target, packageJsonUrl, internal, base); + if (subpath === '') return resolved; + if (invalidSegmentRegEx.exec(subpath) !== null) { + const request = pattern ? match.replace('*', () => subpath) : match + subpath; + if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) { + if (!isPathMap) { + const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target; + emitInvalidSegmentDeprecation(resolvedTarget, request, match, packageJsonUrl, internal, base, false); + } + } else { + throwInvalidSubpath(request, match, packageJsonUrl, internal, base); + } } - return key; -} -function ensureBlock() { - const body = this.get("body"); - const bodyNode = body.node; - if (Array.isArray(body)) { - throw new Error("Can't convert array path to a block statement"); + if (pattern) { + return new (_url().URL)(RegExpPrototypeSymbolReplace.call(patternRegEx, resolved.href, () => subpath)); } - if (!bodyNode) { - throw new Error("Can't convert node without a body"); + return new (_url().URL)(subpath, resolved); +} +function isArrayIndex(key) { + const keyNumber = Number(key); + if (`${keyNumber}` !== key) return false; + return keyNumber >= 0 && keyNumber < 0xffffffff; +} +function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions) { + if (typeof target === 'string') { + return resolvePackageTargetString(target, subpath, packageSubpath, packageJsonUrl, base, pattern, internal, isPathMap, conditions); } - if (body.isBlockStatement()) { - return bodyNode; + if (Array.isArray(target)) { + const targetList = target; + if (targetList.length === 0) return null; + let lastException; + let i = -1; + while (++i < targetList.length) { + const targetItem = targetList[i]; + let resolveResult; + try { + resolveResult = resolvePackageTarget(packageJsonUrl, targetItem, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions); + } catch (error) { + const exception = error; + lastException = exception; + if (exception.code === 'ERR_INVALID_PACKAGE_TARGET') continue; + throw error; + } + if (resolveResult === undefined) continue; + if (resolveResult === null) { + lastException = null; + continue; + } + return resolveResult; + } + if (lastException === undefined || lastException === null) { + return null; + } + throw lastException; } - const statements = []; - let stringPath = "body"; - let key; - let listKey; - if (body.isStatement()) { - listKey = "body"; - key = 0; - statements.push(body.node); - } else { - stringPath += ".body.0"; - if (this.isFunction()) { - key = "argument"; - statements.push(returnStatement(body.node)); - } else { - key = "expression"; - statements.push(expressionStatement(body.node)); + if (typeof target === 'object' && target !== null) { + const keys = Object.getOwnPropertyNames(target); + let i = -1; + while (++i < keys.length) { + const key = keys[i]; + if (isArrayIndex(key)) { + throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl), base, '"exports" cannot contain numeric property keys.'); + } + } + i = -1; + while (++i < keys.length) { + const key = keys[i]; + if (key === 'default' || conditions && conditions.has(key)) { + const conditionalTarget = target[key]; + const resolveResult = resolvePackageTarget(packageJsonUrl, conditionalTarget, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions); + if (resolveResult === undefined) continue; + return resolveResult; + } } + return null; } - this.node.body = blockStatement(statements); - const parentPath = this.get(stringPath); - body.setup(parentPath, listKey ? parentPath.node[listKey] : parentPath.node, listKey, key); - return this.node; + if (target === null) { + return null; + } + throw invalidPackageTarget(packageSubpath, target, packageJsonUrl, internal, base); } -{ - { - exports.arrowFunctionToShadowed = function () { - if (!this.isArrowFunctionExpression()) return; - this.arrowFunctionToExpression(); - }; +function isConditionalExportsMainSugar(exports, packageJsonUrl, base) { + if (typeof exports === 'string' || Array.isArray(exports)) return true; + if (typeof exports !== 'object' || exports === null) return false; + const keys = Object.getOwnPropertyNames(exports); + let isConditionalSugar = false; + let i = 0; + let j = -1; + while (++j < keys.length) { + const key = keys[j]; + const curIsConditionalSugar = key === '' || key[0] !== '.'; + if (i++ === 0) { + isConditionalSugar = curIsConditionalSugar; + } else if (isConditionalSugar !== curIsConditionalSugar) { + throw new ERR_INVALID_PACKAGE_CONFIG((0, _url().fileURLToPath)(packageJsonUrl), base, '"exports" cannot contain some keys starting with \'.\' and some not.' + ' The exports object must either be an object of package subpath keys' + ' or an object of main entry condition name keys only.'); + } } + return isConditionalSugar; } -function unwrapFunctionEnvironment() { - if (!this.isArrowFunctionExpression() && !this.isFunctionExpression() && !this.isFunctionDeclaration()) { - throw this.buildCodeFrameError("Can only unwrap the environment of a function."); +function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) { + if (_process().noDeprecation) { + return; } - hoistFunctionEnvironment(this); -} -function setType(path, type) { - path.node.type = type; + const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl); + if (emittedPackageWarnings.has(pjsonPath + '|' + match)) return; + emittedPackageWarnings.add(pjsonPath + '|' + match); + _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match}" in the ` + `"exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ''}. Mapping specifiers ending in "/" is no longer supported.`, 'DeprecationWarning', 'DEP0155'); } -function arrowFunctionToExpression({ - allowInsertArrow = true, - allowInsertArrowWithRest = allowInsertArrow, - noNewArrows = !(() => { - var _arguments$; - return (_arguments$ = arguments[0]) == null ? void 0 : _arguments$.specCompliant; - })() -} = {}) { - if (!this.isArrowFunctionExpression()) { - throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression."); +function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) { + let exports = packageConfig.exports; + if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) { + exports = { + '.': exports + }; } - const { - thisBinding, - fnPath: fn - } = hoistFunctionEnvironment(this, noNewArrows, allowInsertArrow, allowInsertArrowWithRest); - fn.ensureBlock(); - setType(fn, "FunctionExpression"); - if (!noNewArrows) { - const checkBinding = thisBinding ? null : fn.scope.generateUidIdentifier("arrowCheckId"); - if (checkBinding) { - fn.parentPath.scope.push({ - id: checkBinding, - init: objectExpression([]) - }); + if (own.call(exports, packageSubpath) && !packageSubpath.includes('*') && !packageSubpath.endsWith('/')) { + const target = exports[packageSubpath]; + const resolveResult = resolvePackageTarget(packageJsonUrl, target, '', packageSubpath, base, false, false, false, conditions); + if (resolveResult === null || resolveResult === undefined) { + throw exportsNotFound(packageSubpath, packageJsonUrl, base); } - fn.get("body").unshiftContainer("body", expressionStatement(callExpression(this.hub.addHelper("newArrowCheck"), [thisExpression(), checkBinding ? identifier(checkBinding.name) : identifier(thisBinding)]))); - fn.replaceWith(callExpression(memberExpression((0, _helperFunctionName.default)(this, true) || fn.node, identifier("bind")), [checkBinding ? identifier(checkBinding.name) : thisExpression()])); - return fn.get("callee.object"); - } - return fn; -} -const getSuperCallsVisitor = (0, _visitors.merge)([{ - CallExpression(child, { - allSuperCalls - }) { - if (!child.get("callee").isSuper()) return; - allSuperCalls.push(child); + return resolveResult; } -}, _helperEnvironmentVisitor.default]); -function hoistFunctionEnvironment(fnPath, noNewArrows = true, allowInsertArrow = true, allowInsertArrowWithRest = true) { - let arrowParent; - let thisEnvFn = fnPath.findParent(p => { - if (p.isArrowFunctionExpression()) { - var _arrowParent; - (_arrowParent = arrowParent) != null ? _arrowParent : arrowParent = p; - return false; - } - return p.isFunction() || p.isProgram() || p.isClassProperty({ - static: false - }) || p.isClassPrivateProperty({ - static: false - }); - }); - const inConstructor = thisEnvFn.isClassMethod({ - kind: "constructor" - }); - if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) { - if (arrowParent) { - thisEnvFn = arrowParent; - } else if (allowInsertArrow) { - fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), [])); - thisEnvFn = fnPath.get("callee"); - fnPath = thisEnvFn.get("body"); - } else { - throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property"); + let bestMatch = ''; + let bestMatchSubpath = ''; + const keys = Object.getOwnPropertyNames(exports); + let i = -1; + while (++i < keys.length) { + const key = keys[i]; + const patternIndex = key.indexOf('*'); + if (patternIndex !== -1 && packageSubpath.startsWith(key.slice(0, patternIndex))) { + if (packageSubpath.endsWith('/')) { + emitTrailingSlashPatternDeprecation(packageSubpath, packageJsonUrl, base); + } + const patternTrailer = key.slice(patternIndex + 1); + if (packageSubpath.length >= key.length && packageSubpath.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf('*') === patternIndex) { + bestMatch = key; + bestMatchSubpath = packageSubpath.slice(patternIndex, packageSubpath.length - patternTrailer.length); + } } } - const { - thisPaths, - argumentsPaths, - newTargetPaths, - superProps, - superCalls - } = getScopeInformation(fnPath); - if (inConstructor && superCalls.length > 0) { - if (!allowInsertArrow) { - throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', " + "it's not possible to compile `super()` in an arrow function without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); - } - if (!allowInsertArrowWithRest) { - throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', " + "it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); + if (bestMatch) { + const target = exports[bestMatch]; + const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith('/'), conditions); + if (resolveResult === null || resolveResult === undefined) { + throw exportsNotFound(packageSubpath, packageJsonUrl, base); } - const allSuperCalls = []; - thisEnvFn.traverse(getSuperCallsVisitor, { - allSuperCalls - }); - const superBinding = getSuperBinding(thisEnvFn); - allSuperCalls.forEach(superCall => { - const callee = identifier(superBinding); - callee.loc = superCall.node.callee.loc; - superCall.get("callee").replaceWith(callee); - }); - } - if (argumentsPaths.length > 0) { - const argumentsBinding = getBinding(thisEnvFn, "arguments", () => { - const args = () => identifier("arguments"); - if (thisEnvFn.scope.path.isProgram()) { - return conditionalExpression(binaryExpression("===", unaryExpression("typeof", args()), stringLiteral("undefined")), thisEnvFn.scope.buildUndefinedNode(), args()); - } else { - return args(); - } - }); - argumentsPaths.forEach(argumentsChild => { - const argsRef = identifier(argumentsBinding); - argsRef.loc = argumentsChild.node.loc; - argumentsChild.replaceWith(argsRef); - }); + return resolveResult; } - if (newTargetPaths.length > 0) { - const newTargetBinding = getBinding(thisEnvFn, "newtarget", () => metaProperty(identifier("new"), identifier("target"))); - newTargetPaths.forEach(targetChild => { - const targetRef = identifier(newTargetBinding); - targetRef.loc = targetChild.node.loc; - targetChild.replaceWith(targetRef); - }); + throw exportsNotFound(packageSubpath, packageJsonUrl, base); +} +function patternKeyCompare(a, b) { + const aPatternIndex = a.indexOf('*'); + const bPatternIndex = b.indexOf('*'); + const baseLengthA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; + const baseLengthB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; + if (baseLengthA > baseLengthB) return -1; + if (baseLengthB > baseLengthA) return 1; + if (aPatternIndex === -1) return 1; + if (bPatternIndex === -1) return -1; + if (a.length > b.length) return -1; + if (b.length > a.length) return 1; + return 0; +} +function packageImportsResolve(name, base, conditions) { + if (name === '#' || name.startsWith('#/') || name.endsWith('/')) { + const reason = 'is not a valid internal imports specifier name'; + throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, (0, _url().fileURLToPath)(base)); } - if (superProps.length > 0) { - if (!allowInsertArrow) { - throw superProps[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', " + "it's not possible to compile `super.prop` in an arrow function without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); - } - const flatSuperProps = superProps.reduce((acc, superProp) => acc.concat(standardizeSuperProperty(superProp)), []); - flatSuperProps.forEach(superProp => { - const key = superProp.node.computed ? "" : superProp.get("property").node.name; - const superParentPath = superProp.parentPath; - const isAssignment = superParentPath.isAssignmentExpression({ - left: superProp.node - }); - const isCall = superParentPath.isCallExpression({ - callee: superProp.node - }); - const isTaggedTemplate = superParentPath.isTaggedTemplateExpression({ - tag: superProp.node - }); - const superBinding = getSuperPropBinding(thisEnvFn, isAssignment, key); - const args = []; - if (superProp.node.computed) { - args.push(superProp.get("property").node); - } - if (isAssignment) { - const value = superParentPath.node.right; - args.push(value); - } - const call = callExpression(identifier(superBinding), args); - if (isCall) { - superParentPath.unshiftContainer("arguments", thisExpression()); - superProp.replaceWith(memberExpression(call, identifier("call"))); - thisPaths.push(superParentPath.get("arguments.0")); - } else if (isAssignment) { - superParentPath.replaceWith(call); - } else if (isTaggedTemplate) { - superProp.replaceWith(callExpression(memberExpression(call, identifier("bind"), false), [thisExpression()])); - thisPaths.push(superProp.get("arguments.0")); + let packageJsonUrl; + const packageConfig = getPackageScopeConfig(base); + if (packageConfig.exists) { + packageJsonUrl = (0, _url().pathToFileURL)(packageConfig.pjsonPath); + const imports = packageConfig.imports; + if (imports) { + if (own.call(imports, name) && !name.includes('*')) { + const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], '', name, base, false, true, false, conditions); + if (resolveResult !== null && resolveResult !== undefined) { + return resolveResult; + } } else { - superProp.replaceWith(call); + let bestMatch = ''; + let bestMatchSubpath = ''; + const keys = Object.getOwnPropertyNames(imports); + let i = -1; + while (++i < keys.length) { + const key = keys[i]; + const patternIndex = key.indexOf('*'); + if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) { + const patternTrailer = key.slice(patternIndex + 1); + if (name.length >= key.length && name.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf('*') === patternIndex) { + bestMatch = key; + bestMatchSubpath = name.slice(patternIndex, name.length - patternTrailer.length); + } + } + } + if (bestMatch) { + const target = imports[bestMatch]; + const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions); + if (resolveResult !== null && resolveResult !== undefined) { + return resolveResult; + } + } } - }); + } } - let thisBinding; - if (thisPaths.length > 0 || !noNewArrows) { - thisBinding = getThisBinding(thisEnvFn, inConstructor); - if (noNewArrows || inConstructor && hasSuperClass(thisEnvFn)) { - thisPaths.forEach(thisChild => { - const thisRef = thisChild.isJSX() ? jsxIdentifier(thisBinding) : identifier(thisBinding); - thisRef.loc = thisChild.node.loc; - thisChild.replaceWith(thisRef); - }); - if (!noNewArrows) thisBinding = null; + throw importNotDefined(name, packageJsonUrl, base); +} +function parsePackageName(specifier, base) { + let separatorIndex = specifier.indexOf('/'); + let validPackageName = true; + let isScoped = false; + if (specifier[0] === '@') { + isScoped = true; + if (separatorIndex === -1 || specifier.length === 0) { + validPackageName = false; + } else { + separatorIndex = specifier.indexOf('/', separatorIndex + 1); } } + const packageName = separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex); + if (invalidPackageNameRegEx.exec(packageName) !== null) { + validPackageName = false; + } + if (!validPackageName) { + throw new ERR_INVALID_MODULE_SPECIFIER(specifier, 'is not a valid package name', (0, _url().fileURLToPath)(base)); + } + const packageSubpath = '.' + (separatorIndex === -1 ? '' : specifier.slice(separatorIndex)); return { - thisBinding, - fnPath + packageName, + packageSubpath, + isScoped }; } -function isLogicalOp(op) { - return LOGICAL_OPERATORS.includes(op); -} -function standardizeSuperProperty(superProp) { - if (superProp.parentPath.isAssignmentExpression() && superProp.parentPath.node.operator !== "=") { - const assignmentPath = superProp.parentPath; - const op = assignmentPath.node.operator.slice(0, -1); - const value = assignmentPath.node.right; - const isLogicalAssignment = isLogicalOp(op); - if (superProp.node.computed) { - const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); - const object = superProp.node.object; - const property = superProp.node.property; - assignmentPath.get("left").replaceWith(memberExpression(object, assignmentExpression("=", tmp, property), true)); - assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(tmp.name), true), value)); - } else { - const object = superProp.node.object; - const property = superProp.node.property; - assignmentPath.get("left").replaceWith(memberExpression(object, property)); - assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(property.name)), value)); +function packageResolve(specifier, base, conditions) { + if (_module().builtinModules.includes(specifier)) { + return new (_url().URL)('node:' + specifier); + } + const { + packageName, + packageSubpath, + isScoped + } = parsePackageName(specifier, base); + const packageConfig = getPackageScopeConfig(base); + if (packageConfig.exists) { + const packageJsonUrl = (0, _url().pathToFileURL)(packageConfig.pjsonPath); + if (packageConfig.name === packageName && packageConfig.exports !== undefined && packageConfig.exports !== null) { + return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions); } - if (isLogicalAssignment) { - assignmentPath.replaceWith(logicalExpression(op, assignmentPath.node.left, assignmentPath.node.right)); - } else { - assignmentPath.node.operator = "="; + } + let packageJsonUrl = new (_url().URL)('./node_modules/' + packageName + '/package.json', base); + let packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); + let lastPath; + do { + const stat = tryStatSync(packageJsonPath.slice(0, -13)); + if (!stat.isDirectory()) { + lastPath = packageJsonPath; + packageJsonUrl = new (_url().URL)((isScoped ? '../../../../node_modules/' : '../../../node_modules/') + packageName + '/package.json', packageJsonUrl); + packageJsonPath = (0, _url().fileURLToPath)(packageJsonUrl); + continue; } - return [assignmentPath.get("left"), assignmentPath.get("right").get("left")]; - } else if (superProp.parentPath.isUpdateExpression()) { - const updateExpr = superProp.parentPath; - const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); - const computedKey = superProp.node.computed ? superProp.scope.generateDeclaredUidIdentifier("prop") : null; - const parts = [assignmentExpression("=", tmp, memberExpression(superProp.node.object, computedKey ? assignmentExpression("=", computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)), assignmentExpression("=", memberExpression(superProp.node.object, computedKey ? identifier(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression(superProp.parentPath.node.operator[0], identifier(tmp.name), numericLiteral(1)))]; - if (!superProp.parentPath.node.prefix) { - parts.push(identifier(tmp.name)); + const packageConfig = packageJsonReader.read(packageJsonPath, { + base, + specifier + }); + if (packageConfig.exports !== undefined && packageConfig.exports !== null) { + return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions); } - updateExpr.replaceWith(sequenceExpression(parts)); - const left = updateExpr.get("expressions.0.right"); - const right = updateExpr.get("expressions.1.left"); - return [left, right]; - } - return [superProp]; - function rightExpression(op, left, right) { - if (op === "=") { - return assignmentExpression("=", left, right); - } else { - return binaryExpression(op, left, right); + if (packageSubpath === '.') { + return legacyMainResolve(packageJsonUrl, packageConfig, base); } - } -} -function hasSuperClass(thisEnvFn) { - return thisEnvFn.isClassMethod() && !!thisEnvFn.parentPath.parentPath.node.superClass; + return new (_url().URL)(packageSubpath, packageJsonUrl); + } while (packageJsonPath.length !== lastPath.length); + throw new ERR_MODULE_NOT_FOUND(packageName, (0, _url().fileURLToPath)(base), false); } -const assignSuperThisVisitor = (0, _visitors.merge)([{ - CallExpression(child, { - supers, - thisBinding - }) { - if (!child.get("callee").isSuper()) return; - if (supers.has(child.node)) return; - supers.add(child.node); - child.replaceWithMultiple([child.node, assignmentExpression("=", identifier(thisBinding), identifier("this"))]); +function isRelativeSpecifier(specifier) { + if (specifier[0] === '.') { + if (specifier.length === 1 || specifier[1] === '/') return true; + if (specifier[1] === '.' && (specifier.length === 2 || specifier[2] === '/')) { + return true; + } } -}, _helperEnvironmentVisitor.default]); -function getThisBinding(thisEnvFn, inConstructor) { - return getBinding(thisEnvFn, "this", thisBinding => { - if (!inConstructor || !hasSuperClass(thisEnvFn)) return thisExpression(); - thisEnvFn.traverse(assignSuperThisVisitor, { - supers: new WeakSet(), - thisBinding - }); - }); + return false; } -function getSuperBinding(thisEnvFn) { - return getBinding(thisEnvFn, "supercall", () => { - const argsBinding = thisEnvFn.scope.generateUidIdentifier("args"); - return arrowFunctionExpression([restElement(argsBinding)], callExpression(_super(), [spreadElement(identifier(argsBinding.name))])); - }); +function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) { + if (specifier === '') return false; + if (specifier[0] === '/') return true; + return isRelativeSpecifier(specifier); } -function getSuperPropBinding(thisEnvFn, isAssignment, propName) { - const op = isAssignment ? "set" : "get"; - return getBinding(thisEnvFn, `superprop_${op}:${propName || ""}`, () => { - const argsList = []; - let fnBody; - if (propName) { - fnBody = memberExpression(_super(), identifier(propName)); - } else { - const method = thisEnvFn.scope.generateUidIdentifier("prop"); - argsList.unshift(method); - fnBody = memberExpression(_super(), identifier(method.name), true); - } - if (isAssignment) { - const valueIdent = thisEnvFn.scope.generateUidIdentifier("value"); - argsList.push(valueIdent); - fnBody = assignmentExpression("=", fnBody, identifier(valueIdent.name)); +function moduleResolve(specifier, base, conditions, preserveSymlinks) { + const protocol = base.protocol; + const isRemote = protocol === 'http:' || protocol === 'https:'; + let resolved; + if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) { + resolved = new (_url().URL)(specifier, base); + } else if (!isRemote && specifier[0] === '#') { + resolved = packageImportsResolve(specifier, base, conditions); + } else { + try { + resolved = new (_url().URL)(specifier); + } catch (_unused4) { + if (!isRemote) { + resolved = packageResolve(specifier, base, conditions); + } } - return arrowFunctionExpression(argsList, fnBody); - }); -} -function getBinding(thisEnvFn, key, init) { - const cacheKey = "binding:" + key; - let data = thisEnvFn.getData(cacheKey); - if (!data) { - const id = thisEnvFn.scope.generateUidIdentifier(key); - data = id.name; - thisEnvFn.setData(cacheKey, data); - thisEnvFn.scope.push({ - id: id, - init: init(data) - }); } - return data; + _assert()(resolved !== undefined, 'expected to be defined'); + if (resolved.protocol !== 'file:') { + return resolved; + } + return finalizeResolution(resolved, base, preserveSymlinks); } -const getScopeInformationVisitor = (0, _visitors.merge)([{ - ThisExpression(child, { - thisPaths - }) { - thisPaths.push(child); - }, - JSXIdentifier(child, { - thisPaths - }) { - if (child.node.name !== "this") return; - if (!child.parentPath.isJSXMemberExpression({ - object: child.node - }) && !child.parentPath.isJSXOpeningElement({ - name: child.node - })) { - return; - } - thisPaths.push(child); - }, - CallExpression(child, { - superCalls - }) { - if (child.get("callee").isSuper()) superCalls.push(child); - }, - MemberExpression(child, { - superProps - }) { - if (child.get("object").isSuper()) superProps.push(child); - }, - Identifier(child, { - argumentsPaths - }) { - if (!child.isReferencedIdentifier({ - name: "arguments" - })) return; - let curr = child.scope; - do { - if (curr.hasOwnBinding("arguments")) { - curr.rename("arguments"); - return; - } - if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) { - break; - } - } while (curr = curr.parent); - argumentsPaths.push(child); - }, - MetaProperty(child, { - newTargetPaths - }) { - if (!child.get("meta").isIdentifier({ - name: "new" - })) return; - if (!child.get("property").isIdentifier({ - name: "target" - })) return; - newTargetPaths.push(child); +function checkIfDisallowedImport(specifier, parsed, parsedParentURL) { + if (parsedParentURL) { + const parentProtocol = parsedParentURL.protocol; + if (parentProtocol === 'http:' || parentProtocol === 'https:') { + if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) { + const parsedProtocol = parsed == null ? void 0 : parsed.protocol; + if (parsedProtocol && parsedProtocol !== 'https:' && parsedProtocol !== 'http:') { + throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, 'remote imports cannot import from a local location.'); + } + return { + url: (parsed == null ? void 0 : parsed.href) || '' + }; + } + if (_module().builtinModules.includes(specifier)) { + throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, 'remote imports cannot import from a local location.'); + } + throw new ERR_NETWORK_IMPORT_DISALLOWED(specifier, parsedParentURL, 'only relative and absolute specifiers are supported.'); + } } -}, _helperEnvironmentVisitor.default]); -function getScopeInformation(fnPath) { - const thisPaths = []; - const argumentsPaths = []; - const newTargetPaths = []; - const superProps = []; - const superCalls = []; - fnPath.traverse(getScopeInformationVisitor, { - thisPaths, - argumentsPaths, - newTargetPaths, - superProps, - superCalls - }); +} +function isURL(self) { + return Boolean(self && typeof self === 'object' && 'href' in self && typeof self.href === 'string' && 'protocol' in self && typeof self.protocol === 'string' && self.href && self.protocol); +} +function throwIfInvalidParentURL(parentURL) { + if (parentURL === undefined) { + return; + } + if (typeof parentURL !== 'string' && !isURL(parentURL)) { + throw new codes.ERR_INVALID_ARG_TYPE('parentURL', ['string', 'URL'], parentURL); + } +} +function defaultResolve(specifier, context = {}) { + const { + parentURL + } = context; + _assert()(parentURL !== undefined, 'expected `parentURL` to be defined'); + throwIfInvalidParentURL(parentURL); + let parsedParentURL; + if (parentURL) { + try { + parsedParentURL = new (_url().URL)(parentURL); + } catch (_unused5) {} + } + let parsed; + try { + parsed = shouldBeTreatedAsRelativeOrAbsolutePath(specifier) ? new (_url().URL)(specifier, parsedParentURL) : new (_url().URL)(specifier); + const protocol = parsed.protocol; + if (protocol === 'data:') { + return { + url: parsed.href, + format: null + }; + } + } catch (_unused6) {} + const maybeReturn = checkIfDisallowedImport(specifier, parsed, parsedParentURL); + if (maybeReturn) return maybeReturn; + if (parsed && parsed.protocol === 'node:') return { + url: specifier + }; + const conditions = getConditionsSet(context.conditions); + const url = moduleResolve(specifier, new (_url().URL)(parentURL), conditions, false); return { - thisPaths, - argumentsPaths, - newTargetPaths, - superProps, - superCalls + url: url.href, + format: defaultGetFormatWithoutErrors(url, { + parentURL + }) }; } +function resolve(specifier, parent) { + if (!parent) { + throw new Error('Please pass `parent`: `import-meta-resolve` cannot ponyfill that'); + } + try { + return defaultResolve(specifier, { + parentURL: parent + }).url; + } catch (error) { + const exception = error; + if ((exception.code === 'ERR_UNSUPPORTED_DIR_IMPORT' || exception.code === 'ERR_MODULE_NOT_FOUND') && typeof exception.url === 'string') { + return exception.url; + } + throw error; + } +} +0 && 0; -//# sourceMappingURL=conversion.js.map +//# sourceMappingURL=import-meta-resolve.js.map /***/ }), -/***/ 8032: +/***/ 90401: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -121034,347 +35160,330 @@ function getScopeInformation(fnPath) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.evaluate = evaluate; -exports.evaluateTruthy = evaluateTruthy; -const VALID_CALLEES = ["String", "Number", "Math"]; -const INVALID_METHODS = ["random"]; -function isValidCallee(val) { - return VALID_CALLEES.includes(val); -} -function isInvalidMethod(val) { - return INVALID_METHODS.includes(val); -} -function evaluateTruthy() { - const res = this.evaluate(); - if (res.confident) return !!res.value; -} -function deopt(path, state) { - if (!state.confident) return; - state.deoptPath = path; - state.confident = false; -} -const Globals = new Map([["undefined", undefined], ["Infinity", Infinity], ["NaN", NaN]]); -function evaluateCached(path, state) { - const { - node - } = path; - const { - seen - } = state; - if (seen.has(node)) { - const existing = seen.get(node); - if (existing.resolved) { - return existing.value; - } else { - deopt(path, state); - return; - } - } else { - const item = { - resolved: false +exports["default"] = void 0; +class Buffer { + constructor(map, indentChar) { + this._map = null; + this._buf = ""; + this._str = ""; + this._appendCount = 0; + this._last = 0; + this._queue = []; + this._queueCursor = 0; + this._canMarkIdName = true; + this._indentChar = ""; + this._fastIndentations = []; + this._position = { + line: 1, + column: 0 }; - seen.set(node, item); - const val = _evaluate(path, state); - if (state.confident) { - item.resolved = true; - item.value = val; + this._sourcePosition = { + identifierName: undefined, + identifierNamePos: undefined, + line: undefined, + column: undefined, + filename: undefined + }; + this._map = map; + this._indentChar = indentChar; + for (let i = 0; i < 64; i++) { + this._fastIndentations.push(indentChar.repeat(i)); } - return val; - } -} -function _evaluate(path, state) { - if (!state.confident) return; - if (path.isSequenceExpression()) { - const exprs = path.get("expressions"); - return evaluateCached(exprs[exprs.length - 1], state); + this._allocQueue(); } - if (path.isStringLiteral() || path.isNumericLiteral() || path.isBooleanLiteral()) { - return path.node.value; + _allocQueue() { + const queue = this._queue; + for (let i = 0; i < 16; i++) { + queue.push({ + char: 0, + repeat: 1, + line: undefined, + column: undefined, + identifierName: undefined, + identifierNamePos: undefined, + filename: "" + }); + } } - if (path.isNullLiteral()) { - return null; + _pushQueue(char, repeat, line, column, filename) { + const cursor = this._queueCursor; + if (cursor === this._queue.length) { + this._allocQueue(); + } + const item = this._queue[cursor]; + item.char = char; + item.repeat = repeat; + item.line = line; + item.column = column; + item.filename = filename; + this._queueCursor++; } - if (path.isTemplateLiteral()) { - return evaluateQuasis(path, path.node.quasis, state); + _popQueue() { + if (this._queueCursor === 0) { + throw new Error("Cannot pop from empty queue"); + } + return this._queue[--this._queueCursor]; } - if (path.isTaggedTemplateExpression() && path.get("tag").isMemberExpression()) { - const object = path.get("tag.object"); - const { - node: { - name + get() { + this._flush(); + const map = this._map; + const result = { + code: (this._buf + this._str).trimRight(), + decodedMap: map == null ? void 0 : map.getDecoded(), + get __mergedMap() { + return this.map; + }, + get map() { + const resultMap = map ? map.get() : null; + result.map = resultMap; + return resultMap; + }, + set map(value) { + Object.defineProperty(result, "map", { + value, + writable: true + }); + }, + get rawMappings() { + const mappings = map == null ? void 0 : map.getRawMappings(); + result.rawMappings = mappings; + return mappings; + }, + set rawMappings(value) { + Object.defineProperty(result, "rawMappings", { + value, + writable: true + }); } - } = object; - const property = path.get("tag.property"); - if (object.isIdentifier() && name === "String" && !path.scope.getBinding(name) && property.isIdentifier() && property.node.name === "raw") { - return evaluateQuasis(path, path.node.quasi.quasis, state, true); - } + }; + return result; } - if (path.isConditionalExpression()) { - const testResult = evaluateCached(path.get("test"), state); - if (!state.confident) return; - if (testResult) { - return evaluateCached(path.get("consequent"), state); - } else { - return evaluateCached(path.get("alternate"), state); - } + append(str, maybeNewline) { + this._flush(); + this._append(str, this._sourcePosition, maybeNewline); } - if (path.isExpressionWrapper()) { - return evaluateCached(path.get("expression"), state); + appendChar(char) { + this._flush(); + this._appendChar(char, 1, this._sourcePosition); } - if (path.isMemberExpression() && !path.parentPath.isCallExpression({ - callee: path.node - })) { - const property = path.get("property"); - const object = path.get("object"); - if (object.isLiteral()) { - const value = object.node.value; - const type = typeof value; - let key = null; - if (path.node.computed) { - key = evaluateCached(property, state); - if (!state.confident) return; - } else if (property.isIdentifier()) { - key = property.node.name; - } - if ((type === "number" || type === "string") && key != null && (typeof key === "number" || typeof key === "string")) { - return value[key]; + queue(char) { + if (char === 10) { + while (this._queueCursor !== 0) { + const char = this._queue[this._queueCursor - 1].char; + if (char !== 32 && char !== 9) { + break; + } + this._queueCursor--; } } + const sourcePosition = this._sourcePosition; + this._pushQueue(char, 1, sourcePosition.line, sourcePosition.column, sourcePosition.filename); } - if (path.isReferencedIdentifier()) { - const binding = path.scope.getBinding(path.node.name); - if (binding) { - if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end) { - deopt(binding.path, state); - return; - } - if (binding.hasValue) { - return binding.value; - } + queueIndentation(repeat) { + if (repeat === 0) return; + this._pushQueue(-1, repeat, undefined, undefined, undefined); + } + _flush() { + const queueCursor = this._queueCursor; + const queue = this._queue; + for (let i = 0; i < queueCursor; i++) { + const item = queue[i]; + this._appendChar(item.char, item.repeat, item); } - const name = path.node.name; - if (Globals.has(name)) { - if (!binding) { - return Globals.get(name); + this._queueCursor = 0; + } + _appendChar(char, repeat, sourcePos) { + this._last = char; + if (char === -1) { + const fastIndentation = this._fastIndentations[repeat]; + if (fastIndentation !== undefined) { + this._str += fastIndentation; + } else { + this._str += repeat > 1 ? this._indentChar.repeat(repeat) : this._indentChar; } - deopt(binding.path, state); - return; + } else { + this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char); } - const resolved = path.resolve(); - if (resolved === path) { - deopt(path, state); - return; + if (char !== 10) { + this._mark(sourcePos.line, sourcePos.column, sourcePos.identifierName, sourcePos.identifierNamePos, sourcePos.filename); + this._position.column += repeat; } else { - return evaluateCached(resolved, state); + this._position.line++; + this._position.column = 0; + } + if (this._canMarkIdName) { + sourcePos.identifierName = undefined; + sourcePos.identifierNamePos = undefined; } } - if (path.isUnaryExpression({ - prefix: true - })) { - if (path.node.operator === "void") { - return undefined; + _append(str, sourcePos, maybeNewline) { + const len = str.length; + const position = this._position; + this._last = str.charCodeAt(len - 1); + if (++this._appendCount > 4096) { + +this._str; + this._buf += this._str; + this._str = str; + this._appendCount = 0; + } else { + this._str += str; } - const argument = path.get("argument"); - if (path.node.operator === "typeof" && (argument.isFunction() || argument.isClass())) { - return "function"; + if (!maybeNewline && !this._map) { + position.column += len; + return; } - const arg = evaluateCached(argument, state); - if (!state.confident) return; - switch (path.node.operator) { - case "!": - return !arg; - case "+": - return +arg; - case "-": - return -arg; - case "~": - return ~arg; - case "typeof": - return typeof arg; + const { + column, + identifierName, + identifierNamePos, + filename + } = sourcePos; + let line = sourcePos.line; + if ((identifierName != null || identifierNamePos != null) && this._canMarkIdName) { + sourcePos.identifierName = undefined; + sourcePos.identifierNamePos = undefined; } - } - if (path.isArrayExpression()) { - const arr = []; - const elems = path.get("elements"); - for (const elem of elems) { - const elemValue = elem.evaluate(); - if (elemValue.confident) { - arr.push(elemValue.value); - } else { - deopt(elemValue.deopt, state); - return; + let i = str.indexOf("\n"); + let last = 0; + if (i !== 0) { + this._mark(line, column, identifierName, identifierNamePos, filename); + } + while (i !== -1) { + position.line++; + position.column = 0; + last = i + 1; + if (last < len && line !== undefined) { + this._mark(++line, 0, null, null, filename); } + i = str.indexOf("\n", last); } - return arr; + position.column += len - last; } - if (path.isObjectExpression()) { - const obj = {}; - const props = path.get("properties"); - for (const prop of props) { - if (prop.isObjectMethod() || prop.isSpreadElement()) { - deopt(prop, state); - return; + _mark(line, column, identifierName, identifierNamePos, filename) { + var _this$_map; + (_this$_map = this._map) == null || _this$_map.mark(this._position, line, column, identifierName, identifierNamePos, filename); + } + removeTrailingNewline() { + const queueCursor = this._queueCursor; + if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 10) { + this._queueCursor--; + } + } + removeLastSemicolon() { + const queueCursor = this._queueCursor; + if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 59) { + this._queueCursor--; + } + } + getLastChar() { + const queueCursor = this._queueCursor; + return queueCursor !== 0 ? this._queue[queueCursor - 1].char : this._last; + } + getNewlineCount() { + const queueCursor = this._queueCursor; + let count = 0; + if (queueCursor === 0) return this._last === 10 ? 1 : 0; + for (let i = queueCursor - 1; i >= 0; i--) { + if (this._queue[i].char !== 10) { + break; } - const keyPath = prop.get("key"); - let key; - if (prop.node.computed) { - key = keyPath.evaluate(); - if (!key.confident) { - deopt(key.deopt, state); - return; - } - key = key.value; - } else if (keyPath.isIdentifier()) { - key = keyPath.node.name; + count++; + } + return count === queueCursor && this._last === 10 ? count + 1 : count; + } + endsWithCharAndNewline() { + const queue = this._queue; + const queueCursor = this._queueCursor; + if (queueCursor !== 0) { + const lastCp = queue[queueCursor - 1].char; + if (lastCp !== 10) return; + if (queueCursor > 1) { + return queue[queueCursor - 2].char; } else { - key = keyPath.node.value; - } - const valuePath = prop.get("value"); - let value = valuePath.evaluate(); - if (!value.confident) { - deopt(value.deopt, state); - return; + return this._last; } - value = value.value; - obj[key] = value; } - return obj; } - if (path.isLogicalExpression()) { - const wasConfident = state.confident; - const left = evaluateCached(path.get("left"), state); - const leftConfident = state.confident; - state.confident = wasConfident; - const right = evaluateCached(path.get("right"), state); - const rightConfident = state.confident; - switch (path.node.operator) { - case "||": - state.confident = leftConfident && (!!left || rightConfident); - if (!state.confident) return; - return left || right; - case "&&": - state.confident = leftConfident && (!left || rightConfident); - if (!state.confident) return; - return left && right; - case "??": - state.confident = leftConfident && (left != null || rightConfident); - if (!state.confident) return; - return left != null ? left : right; + hasContent() { + return this._queueCursor !== 0 || !!this._last; + } + exactSource(loc, cb) { + if (!this._map) { + cb(); + return; + } + this.source("start", loc); + const identifierName = loc.identifierName; + const sourcePos = this._sourcePosition; + if (identifierName) { + this._canMarkIdName = false; + sourcePos.identifierName = identifierName; + } + cb(); + if (identifierName) { + this._canMarkIdName = true; + sourcePos.identifierName = undefined; + sourcePos.identifierNamePos = undefined; } + this.source("end", loc); + } + source(prop, loc) { + if (!this._map) return; + this._normalizePosition(prop, loc, 0); + } + sourceWithOffset(prop, loc, columnOffset) { + if (!this._map) return; + this._normalizePosition(prop, loc, columnOffset); } - if (path.isBinaryExpression()) { - const left = evaluateCached(path.get("left"), state); - if (!state.confident) return; - const right = evaluateCached(path.get("right"), state); - if (!state.confident) return; - switch (path.node.operator) { - case "-": - return left - right; - case "+": - return left + right; - case "/": - return left / right; - case "*": - return left * right; - case "%": - return left % right; - case "**": - return Math.pow(left, right); - case "<": - return left < right; - case ">": - return left > right; - case "<=": - return left <= right; - case ">=": - return left >= right; - case "==": - return left == right; - case "!=": - return left != right; - case "===": - return left === right; - case "!==": - return left !== right; - case "|": - return left | right; - case "&": - return left & right; - case "^": - return left ^ right; - case "<<": - return left << right; - case ">>": - return left >> right; - case ">>>": - return left >>> right; + withSource(prop, loc, cb) { + if (this._map) { + this.source(prop, loc); } + cb(); } - if (path.isCallExpression()) { - const callee = path.get("callee"); - let context; - let func; - if (callee.isIdentifier() && !path.scope.getBinding(callee.node.name) && isValidCallee(callee.node.name)) { - func = global[callee.node.name]; + _normalizePosition(prop, loc, columnOffset) { + const pos = loc[prop]; + const target = this._sourcePosition; + if (pos) { + target.line = pos.line; + target.column = Math.max(pos.column + columnOffset, 0); + target.filename = loc.filename; } - if (callee.isMemberExpression()) { - const object = callee.get("object"); - const property = callee.get("property"); - if (object.isIdentifier() && property.isIdentifier() && isValidCallee(object.node.name) && !isInvalidMethod(property.node.name)) { - context = global[object.node.name]; - func = context[property.node.name]; - } - if (object.isLiteral() && property.isIdentifier()) { - const type = typeof object.node.value; - if (type === "string" || type === "number") { - context = object.node.value; - func = context[property.node.name]; - } + } + getCurrentColumn() { + const queue = this._queue; + const queueCursor = this._queueCursor; + let lastIndex = -1; + let len = 0; + for (let i = 0; i < queueCursor; i++) { + const item = queue[i]; + if (item.char === 10) { + lastIndex = len; } + len += item.repeat; } - if (func) { - const args = path.get("arguments").map(arg => evaluateCached(arg, state)); - if (!state.confident) return; - return func.apply(context, args); - } + return lastIndex === -1 ? this._position.column + len : len - 1 - lastIndex; } - deopt(path, state); -} -function evaluateQuasis(path, quasis, state, raw = false) { - let str = ""; - let i = 0; - const exprs = path.isTemplateLiteral() ? path.get("expressions") : path.get("quasi.expressions"); - for (const elem of quasis) { - if (!state.confident) break; - str += raw ? elem.value.raw : elem.value.cooked; - const expr = exprs[i++]; - if (expr) str += String(evaluateCached(expr, state)); + getCurrentLine() { + let count = 0; + const queue = this._queue; + for (let i = 0; i < this._queueCursor; i++) { + if (queue[i].char === 10) { + count++; + } + } + return this._position.line + count; } - if (!state.confident) return; - return str; -} -function evaluate() { - const state = { - confident: true, - deoptPath: null, - seen: new Map() - }; - let value = evaluateCached(this, state); - if (!state.confident) value = undefined; - return { - confident: state.confident, - deopt: state.deoptPath, - value: value - }; } +exports["default"] = Buffer; -//# sourceMappingURL=evaluation.js.map +//# sourceMappingURL=buffer.js.map /***/ }), -/***/ 96878: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 40308: +/***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -121382,342 +35491,283 @@ function evaluate() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._getKey = _getKey; -exports._getPattern = _getPattern; -exports.get = get; -exports.getAllNextSiblings = getAllNextSiblings; -exports.getAllPrevSiblings = getAllPrevSiblings; -exports.getBindingIdentifierPaths = getBindingIdentifierPaths; -exports.getBindingIdentifiers = getBindingIdentifiers; -exports.getCompletionRecords = getCompletionRecords; -exports.getNextSibling = getNextSibling; -exports.getOpposite = getOpposite; -exports.getOuterBindingIdentifierPaths = getOuterBindingIdentifierPaths; -exports.getOuterBindingIdentifiers = getOuterBindingIdentifiers; -exports.getPrevSibling = getPrevSibling; -exports.getSibling = getSibling; -var _index = __nccwpck_require__(785); -var _t = __nccwpck_require__(53501); -const { - getBindingIdentifiers: _getBindingIdentifiers, - getOuterBindingIdentifiers: _getOuterBindingIdentifiers, - isDeclaration, - numericLiteral, - unaryExpression -} = _t; -const NORMAL_COMPLETION = 0; -const BREAK_COMPLETION = 1; -function NormalCompletion(path) { - return { - type: NORMAL_COMPLETION, - path - }; -} -function BreakCompletion(path) { - return { - type: BREAK_COMPLETION, - path - }; -} -function getOpposite() { - if (this.key === "left") { - return this.getSibling("right"); - } else if (this.key === "right") { - return this.getSibling("left"); +exports.BlockStatement = BlockStatement; +exports.Directive = Directive; +exports.DirectiveLiteral = DirectiveLiteral; +exports.File = File; +exports.InterpreterDirective = InterpreterDirective; +exports.Placeholder = Placeholder; +exports.Program = Program; +function File(node) { + if (node.program) { + this.print(node.program.interpreter, node); } - return null; + this.print(node.program, node); } -function addCompletionRecords(path, records, context) { - if (path) { - records.push(..._getCompletionRecords(path, context)); +function Program(node) { + var _node$directives; + this.noIndentInnerCommentsHere(); + this.printInnerComments(); + const directivesLen = (_node$directives = node.directives) == null ? void 0 : _node$directives.length; + if (directivesLen) { + var _node$directives$trai; + const newline = node.body.length ? 2 : 1; + this.printSequence(node.directives, node, { + trailingCommentsLineOffset: newline + }); + if (!((_node$directives$trai = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai.length)) { + this.newline(newline); + } } - return records; + this.printSequence(node.body, node); } -function completionRecordForSwitch(cases, records, context) { - let lastNormalCompletions = []; - for (let i = 0; i < cases.length; i++) { - const casePath = cases[i]; - const caseCompletions = _getCompletionRecords(casePath, context); - const normalCompletions = []; - const breakCompletions = []; - for (const c of caseCompletions) { - if (c.type === NORMAL_COMPLETION) { - normalCompletions.push(c); - } - if (c.type === BREAK_COMPLETION) { - breakCompletions.push(c); - } - } - if (normalCompletions.length) { - lastNormalCompletions = normalCompletions; +function BlockStatement(node) { + var _node$directives2; + this.tokenChar(123); + const directivesLen = (_node$directives2 = node.directives) == null ? void 0 : _node$directives2.length; + if (directivesLen) { + var _node$directives$trai2; + const newline = node.body.length ? 2 : 1; + this.printSequence(node.directives, node, { + indent: true, + trailingCommentsLineOffset: newline + }); + if (!((_node$directives$trai2 = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai2.length)) { + this.newline(newline); } - records.push(...breakCompletions); } - records.push(...lastNormalCompletions); - return records; -} -function normalCompletionToBreak(completions) { - completions.forEach(c => { - c.type = BREAK_COMPLETION; + this.printSequence(node.body, node, { + indent: true }); + this.rightBrace(node); } -function replaceBreakStatementInBreakCompletion(completions, reachable) { - completions.forEach(c => { - if (c.path.isBreakStatement({ - label: null - })) { - if (reachable) { - c.path.replaceWith(unaryExpression("void", numericLiteral(0))); - } else { - c.path.remove(); - } - } - }); +function Directive(node) { + this.print(node.value, node); + this.semicolon(); } -function getStatementListCompletion(paths, context) { - const completions = []; - if (context.canHaveBreak) { - let lastNormalCompletions = []; - for (let i = 0; i < paths.length; i++) { - const path = paths[i]; - const newContext = Object.assign({}, context, { - inCaseClause: false - }); - if (path.isBlockStatement() && (context.inCaseClause || context.shouldPopulateBreak)) { - newContext.shouldPopulateBreak = true; - } else { - newContext.shouldPopulateBreak = false; - } - const statementCompletions = _getCompletionRecords(path, newContext); - if (statementCompletions.length > 0 && statementCompletions.every(c => c.type === BREAK_COMPLETION)) { - if (lastNormalCompletions.length > 0 && statementCompletions.every(c => c.path.isBreakStatement({ - label: null - }))) { - normalCompletionToBreak(lastNormalCompletions); - completions.push(...lastNormalCompletions); - if (lastNormalCompletions.some(c => c.path.isDeclaration())) { - completions.push(...statementCompletions); - replaceBreakStatementInBreakCompletion(statementCompletions, true); - } - replaceBreakStatementInBreakCompletion(statementCompletions, false); - } else { - completions.push(...statementCompletions); - if (!context.shouldPopulateBreak) { - replaceBreakStatementInBreakCompletion(statementCompletions, true); - } - } - break; - } - if (i === paths.length - 1) { - completions.push(...statementCompletions); - } else { - lastNormalCompletions = []; - for (let i = 0; i < statementCompletions.length; i++) { - const c = statementCompletions[i]; - if (c.type === BREAK_COMPLETION) { - completions.push(c); - } - if (c.type === NORMAL_COMPLETION) { - lastNormalCompletions.push(c); - } - } - } - } - } else if (paths.length) { - for (let i = paths.length - 1; i >= 0; i--) { - const pathCompletions = _getCompletionRecords(paths[i], context); - if (pathCompletions.length > 1 || pathCompletions.length === 1 && !pathCompletions[0].path.isVariableDeclaration()) { - completions.push(...pathCompletions); - break; - } - } +const unescapedSingleQuoteRE = /(?:^|[^\\])(?:\\\\)*'/; +const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/; +function DirectiveLiteral(node) { + const raw = this.getPossibleRaw(node); + if (!this.format.minified && raw !== undefined) { + this.token(raw); + return; } - return completions; -} -function _getCompletionRecords(path, context) { - let records = []; - if (path.isIfStatement()) { - records = addCompletionRecords(path.get("consequent"), records, context); - records = addCompletionRecords(path.get("alternate"), records, context); - } else if (path.isDoExpression() || path.isFor() || path.isWhile() || path.isLabeledStatement()) { - return addCompletionRecords(path.get("body"), records, context); - } else if (path.isProgram() || path.isBlockStatement()) { - return getStatementListCompletion(path.get("body"), context); - } else if (path.isFunction()) { - return _getCompletionRecords(path.get("body"), context); - } else if (path.isTryStatement()) { - records = addCompletionRecords(path.get("block"), records, context); - records = addCompletionRecords(path.get("handler"), records, context); - } else if (path.isCatchClause()) { - return addCompletionRecords(path.get("body"), records, context); - } else if (path.isSwitchStatement()) { - return completionRecordForSwitch(path.get("cases"), records, context); - } else if (path.isSwitchCase()) { - return getStatementListCompletion(path.get("consequent"), { - canHaveBreak: true, - shouldPopulateBreak: false, - inCaseClause: true - }); - } else if (path.isBreakStatement()) { - records.push(BreakCompletion(path)); + const { + value + } = node; + if (!unescapedDoubleQuoteRE.test(value)) { + this.token(`"${value}"`); + } else if (!unescapedSingleQuoteRE.test(value)) { + this.token(`'${value}'`); } else { - records.push(NormalCompletion(path)); + throw new Error("Malformed AST: it is not possible to print a directive containing" + " both unescaped single and double quotes."); } - return records; } -function getCompletionRecords() { - const records = _getCompletionRecords(this, { - canHaveBreak: false, - shouldPopulateBreak: false, - inCaseClause: false - }); - return records.map(r => r.path); +function InterpreterDirective(node) { + this.token(`#!${node.value}`); + this.newline(1, true); } -function getSibling(key) { - return _index.default.get({ - parentPath: this.parentPath, - parent: this.parent, - container: this.container, - listKey: this.listKey, - key: key - }).setContext(this.context); +function Placeholder(node) { + this.token("%%"); + this.print(node.name); + this.token("%%"); + if (node.expectedNode === "Statement") { + this.semicolon(); + } } -function getPrevSibling() { - return this.getSibling(this.key - 1); + +//# sourceMappingURL=base.js.map + + +/***/ }), + +/***/ 73876: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ClassAccessorProperty = ClassAccessorProperty; +exports.ClassBody = ClassBody; +exports.ClassExpression = exports.ClassDeclaration = ClassDeclaration; +exports.ClassMethod = ClassMethod; +exports.ClassPrivateMethod = ClassPrivateMethod; +exports.ClassPrivateProperty = ClassPrivateProperty; +exports.ClassProperty = ClassProperty; +exports.StaticBlock = StaticBlock; +exports._classMethodHead = _classMethodHead; +var _t = __nccwpck_require__(68948); +const { + isExportDefaultDeclaration, + isExportNamedDeclaration +} = _t; +function ClassDeclaration(node, parent) { + const inExport = isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent); + if (!inExport || !this._shouldPrintDecoratorsBeforeExport(parent)) { + this.printJoin(node.decorators, node); + } + if (node.declare) { + this.word("declare"); + this.space(); + } + if (node.abstract) { + this.word("abstract"); + this.space(); + } + this.word("class"); + if (node.id) { + this.space(); + this.print(node.id, node); + } + this.print(node.typeParameters, node); + if (node.superClass) { + this.space(); + this.word("extends"); + this.space(); + this.print(node.superClass, node); + this.print(node.superTypeParameters, node); + } + if (node.implements) { + this.space(); + this.word("implements"); + this.space(); + this.printList(node.implements, node); + } + this.space(); + this.print(node.body, node); } -function getNextSibling() { - return this.getSibling(this.key + 1); +function ClassBody(node) { + this.tokenChar(123); + if (node.body.length === 0) { + this.tokenChar(125); + } else { + this.newline(); + this.printSequence(node.body, node, { + indent: true + }); + if (!this.endsWith(10)) this.newline(); + this.rightBrace(node); + } } -function getAllNextSiblings() { - let _key = this.key; - let sibling = this.getSibling(++_key); - const siblings = []; - while (sibling.node) { - siblings.push(sibling); - sibling = this.getSibling(++_key); +function ClassProperty(node) { + var _node$key$loc; + this.printJoin(node.decorators, node); + const endLine = (_node$key$loc = node.key.loc) == null || (_node$key$loc = _node$key$loc.end) == null ? void 0 : _node$key$loc.line; + if (endLine) this.catchUp(endLine); + this.tsPrintClassMemberModifiers(node); + if (node.computed) { + this.tokenChar(91); + this.print(node.key, node); + this.tokenChar(93); + } else { + this._variance(node); + this.print(node.key, node); + } + if (node.optional) { + this.tokenChar(63); + } + if (node.definite) { + this.tokenChar(33); + } + this.print(node.typeAnnotation, node); + if (node.value) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.value, node); + } + this.semicolon(); +} +function ClassAccessorProperty(node) { + var _node$key$loc2; + this.printJoin(node.decorators, node); + const endLine = (_node$key$loc2 = node.key.loc) == null || (_node$key$loc2 = _node$key$loc2.end) == null ? void 0 : _node$key$loc2.line; + if (endLine) this.catchUp(endLine); + this.tsPrintClassMemberModifiers(node); + this.word("accessor", true); + this.space(); + if (node.computed) { + this.tokenChar(91); + this.print(node.key, node); + this.tokenChar(93); + } else { + this._variance(node); + this.print(node.key, node); + } + if (node.optional) { + this.tokenChar(63); + } + if (node.definite) { + this.tokenChar(33); } - return siblings; -} -function getAllPrevSiblings() { - let _key = this.key; - let sibling = this.getSibling(--_key); - const siblings = []; - while (sibling.node) { - siblings.push(sibling); - sibling = this.getSibling(--_key); + this.print(node.typeAnnotation, node); + if (node.value) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.value, node); } - return siblings; + this.semicolon(); } -function get(key, context = true) { - if (context === true) context = this.context; - const parts = key.split("."); - if (parts.length === 1) { - return this._getKey(key, context); - } else { - return this._getPattern(parts, context); +function ClassPrivateProperty(node) { + this.printJoin(node.decorators, node); + if (node.static) { + this.word("static"); + this.space(); } -} -function _getKey(key, context) { - const node = this.node; - const container = node[key]; - if (Array.isArray(container)) { - return container.map((_, i) => { - return _index.default.get({ - listKey: key, - parentPath: this, - parent: node, - container: container, - key: i - }).setContext(context); - }); - } else { - return _index.default.get({ - parentPath: this, - parent: node, - container: node, - key: key - }).setContext(context); + this.print(node.key, node); + this.print(node.typeAnnotation, node); + if (node.value) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.value, node); } + this.semicolon(); } -function _getPattern(parts, context) { - let path = this; - for (const part of parts) { - if (part === ".") { - path = path.parentPath; - } else { - if (Array.isArray(path)) { - path = path[part]; - } else { - path = path.get(part, context); - } - } - } - return path; +function ClassMethod(node) { + this._classMethodHead(node); + this.space(); + this.print(node.body, node); } -function getBindingIdentifiers(duplicates) { - return _getBindingIdentifiers(this.node, duplicates); +function ClassPrivateMethod(node) { + this._classMethodHead(node); + this.space(); + this.print(node.body, node); } -function getOuterBindingIdentifiers(duplicates) { - return _getOuterBindingIdentifiers(this.node, duplicates); +function _classMethodHead(node) { + var _node$key$loc3; + this.printJoin(node.decorators, node); + const endLine = (_node$key$loc3 = node.key.loc) == null || (_node$key$loc3 = _node$key$loc3.end) == null ? void 0 : _node$key$loc3.line; + if (endLine) this.catchUp(endLine); + this.tsPrintClassMemberModifiers(node); + this._methodHead(node); } -function getBindingIdentifierPaths(duplicates = false, outerOnly = false) { - const path = this; - const search = [path]; - const ids = Object.create(null); - while (search.length) { - const id = search.shift(); - if (!id) continue; - if (!id.node) continue; - const keys = _getBindingIdentifiers.keys[id.node.type]; - if (id.isIdentifier()) { - if (duplicates) { - const _ids = ids[id.node.name] = ids[id.node.name] || []; - _ids.push(id); - } else { - ids[id.node.name] = id; - } - continue; - } - if (id.isExportDeclaration()) { - const declaration = id.get("declaration"); - if (isDeclaration(declaration)) { - search.push(declaration); - } - continue; - } - if (outerOnly) { - if (id.isFunctionDeclaration()) { - search.push(id.get("id")); - continue; - } - if (id.isFunctionExpression()) { - continue; - } - } - if (keys) { - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const child = id.get(key); - if (Array.isArray(child)) { - search.push(...child); - } else if (child.node) { - search.push(child); - } - } - } +function StaticBlock(node) { + this.word("static"); + this.space(); + this.tokenChar(123); + if (node.body.length === 0) { + this.tokenChar(125); + } else { + this.newline(); + this.printSequence(node.body, node, { + indent: true + }); + this.rightBrace(node); } - return ids; -} -function getOuterBindingIdentifierPaths(duplicates = false) { - return this.getBindingIdentifierPaths(duplicates, true); } -//# sourceMappingURL=family.js.map +//# sourceMappingURL=classes.js.map /***/ }), -/***/ 785: +/***/ 80773: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -121726,203 +35776,315 @@ function getOuterBindingIdentifierPaths(duplicates = false) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = exports.SHOULD_STOP = exports.SHOULD_SKIP = exports.REMOVED = void 0; -var virtualTypes = __nccwpck_require__(91518); -var _debug = __nccwpck_require__(34755); -var _index = __nccwpck_require__(34160); -var _scope = __nccwpck_require__(80035); -var _t = __nccwpck_require__(53501); -var t = _t; -var _cache = __nccwpck_require__(39981); -var _generator = __nccwpck_require__(35761); -var NodePath_ancestry = __nccwpck_require__(84547); -var NodePath_inference = __nccwpck_require__(37753); -var NodePath_replacement = __nccwpck_require__(2449); -var NodePath_evaluation = __nccwpck_require__(8032); -var NodePath_conversion = __nccwpck_require__(18496); -var NodePath_introspection = __nccwpck_require__(76224); -var NodePath_context = __nccwpck_require__(84679); -var NodePath_removal = __nccwpck_require__(8021); -var NodePath_modification = __nccwpck_require__(14039); -var NodePath_family = __nccwpck_require__(96878); -var NodePath_comments = __nccwpck_require__(10887); -var NodePath_virtual_types_validator = __nccwpck_require__(71936); +exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression; +exports.AssignmentPattern = AssignmentPattern; +exports.AwaitExpression = AwaitExpression; +exports.BindExpression = BindExpression; +exports.CallExpression = CallExpression; +exports.ConditionalExpression = ConditionalExpression; +exports.Decorator = Decorator; +exports.DoExpression = DoExpression; +exports.EmptyStatement = EmptyStatement; +exports.ExpressionStatement = ExpressionStatement; +exports.Import = Import; +exports.MemberExpression = MemberExpression; +exports.MetaProperty = MetaProperty; +exports.ModuleExpression = ModuleExpression; +exports.NewExpression = NewExpression; +exports.OptionalCallExpression = OptionalCallExpression; +exports.OptionalMemberExpression = OptionalMemberExpression; +exports.ParenthesizedExpression = ParenthesizedExpression; +exports.PrivateName = PrivateName; +exports.SequenceExpression = SequenceExpression; +exports.Super = Super; +exports.ThisExpression = ThisExpression; +exports.UnaryExpression = UnaryExpression; +exports.UpdateExpression = UpdateExpression; +exports.V8IntrinsicIdentifier = V8IntrinsicIdentifier; +exports.YieldExpression = YieldExpression; +exports._shouldPrintDecoratorsBeforeExport = _shouldPrintDecoratorsBeforeExport; +var _t = __nccwpck_require__(68948); +var n = __nccwpck_require__(35715); const { - validate + isCallExpression, + isLiteral, + isMemberExpression, + isNewExpression } = _t; -const debug = _debug("babel"); -const REMOVED = 1 << 0; -exports.REMOVED = REMOVED; -const SHOULD_STOP = 1 << 1; -exports.SHOULD_STOP = SHOULD_STOP; -const SHOULD_SKIP = 1 << 2; -exports.SHOULD_SKIP = SHOULD_SKIP; -class NodePath { - constructor(hub, parent) { - this.contexts = []; - this.state = null; - this.opts = null; - this._traverseFlags = 0; - this.skipKeys = null; - this.parentPath = null; - this.container = null; - this.listKey = null; - this.key = null; - this.node = null; - this.type = null; - this.parent = parent; - this.hub = hub; - this.data = null; - this.context = null; - this.scope = null; - } - static get({ - hub, - parentPath, - parent, - container, - listKey, - key - }) { - if (!hub && parentPath) { - hub = parentPath.hub; - } - if (!parent) { - throw new Error("To get a node path the parent needs to exist"); - } - const targetNode = container[key]; - let paths = _cache.path.get(parent); - if (!paths) { - paths = new Map(); - _cache.path.set(parent, paths); - } - let path = paths.get(targetNode); - if (!path) { - path = new NodePath(hub, parent); - if (targetNode) paths.set(targetNode, path); - } - path.setup(parentPath, container, listKey, key); - return path; +function UnaryExpression(node) { + const { + operator + } = node; + if (operator === "void" || operator === "delete" || operator === "typeof" || operator === "throw") { + this.word(operator); + this.space(); + } else { + this.token(operator); } - getScope(scope) { - return this.isScope() ? new _scope.default(this) : scope; + this.print(node.argument, node); +} +function DoExpression(node) { + if (node.async) { + this.word("async", true); + this.space(); } - setData(key, val) { - if (this.data == null) { - this.data = Object.create(null); - } - return this.data[key] = val; + this.word("do"); + this.space(); + this.print(node.body, node); +} +function ParenthesizedExpression(node) { + this.tokenChar(40); + this.print(node.expression, node); + this.rightParens(node); +} +function UpdateExpression(node) { + if (node.prefix) { + this.token(node.operator); + this.print(node.argument, node); + } else { + this.printTerminatorless(node.argument, node, true); + this.token(node.operator); } - getData(key, def) { - if (this.data == null) { - this.data = Object.create(null); - } - let val = this.data[key]; - if (val === undefined && def !== undefined) val = this.data[key] = def; - return val; +} +function ConditionalExpression(node) { + this.print(node.test, node); + this.space(); + this.tokenChar(63); + this.space(); + this.print(node.consequent, node); + this.space(); + this.tokenChar(58); + this.space(); + this.print(node.alternate, node); +} +function NewExpression(node, parent) { + this.word("new"); + this.space(); + this.print(node.callee, node); + if (this.format.minified && node.arguments.length === 0 && !node.optional && !isCallExpression(parent, { + callee: node + }) && !isMemberExpression(parent) && !isNewExpression(parent)) { + return; } - hasNode() { - return this.node != null; + this.print(node.typeArguments, node); + this.print(node.typeParameters, node); + if (node.optional) { + this.token("?."); } - buildCodeFrameError(msg, Error = SyntaxError) { - return this.hub.buildError(this.node, msg, Error); + this.tokenChar(40); + this.printList(node.arguments, node); + this.rightParens(node); +} +function SequenceExpression(node) { + this.printList(node.expressions, node); +} +function ThisExpression() { + this.word("this"); +} +function Super() { + this.word("super"); +} +function isDecoratorMemberExpression(node) { + switch (node.type) { + case "Identifier": + return true; + case "MemberExpression": + return !node.computed && node.property.type === "Identifier" && isDecoratorMemberExpression(node.object); + default: + return false; } - traverse(visitor, state) { - (0, _index.default)(this.node, visitor, this.scope, state, this); +} +function shouldParenthesizeDecoratorExpression(node) { + if (node.type === "ParenthesizedExpression") { + return false; } - set(key, node) { - validate(this.node, key, node); - this.node[key] = node; + return !isDecoratorMemberExpression(node.type === "CallExpression" ? node.callee : node); +} +function _shouldPrintDecoratorsBeforeExport(node) { + if (typeof this.format.decoratorsBeforeExport === "boolean") { + return this.format.decoratorsBeforeExport; } - getPathLocation() { - const parts = []; - let path = this; - do { - let key = path.key; - if (path.inList) key = `${path.listKey}[${key}]`; - parts.unshift(key); - } while (path = path.parentPath); - return parts.join("."); + return typeof node.start === "number" && node.start === node.declaration.start; +} +function Decorator(node) { + this.tokenChar(64); + const { + expression + } = node; + if (shouldParenthesizeDecoratorExpression(expression)) { + this.tokenChar(40); + this.print(expression, node); + this.tokenChar(41); + } else { + this.print(expression, node); } - debug(message) { - if (!debug.enabled) return; - debug(`${this.getPathLocation()} ${this.type}: ${message}`); + this.newline(); +} +function OptionalMemberExpression(node) { + let { + computed + } = node; + const { + optional, + property + } = node; + this.print(node.object, node); + if (!computed && isMemberExpression(property)) { + throw new TypeError("Got a MemberExpression for MemberExpression property"); } - toString() { - return (0, _generator.default)(this.node).code; + if (isLiteral(property) && typeof property.value === "number") { + computed = true; } - get inList() { - return !!this.listKey; + if (optional) { + this.token("?."); } - set inList(inList) { - if (!inList) { - this.listKey = null; + if (computed) { + this.tokenChar(91); + this.print(property, node); + this.tokenChar(93); + } else { + if (!optional) { + this.tokenChar(46); } + this.print(property, node); } - get parentKey() { - return this.listKey || this.key; +} +function OptionalCallExpression(node) { + this.print(node.callee, node); + this.print(node.typeParameters, node); + if (node.optional) { + this.token("?."); } - get shouldSkip() { - return !!(this._traverseFlags & SHOULD_SKIP); + this.print(node.typeArguments, node); + this.tokenChar(40); + this.printList(node.arguments, node); + this.rightParens(node); +} +function CallExpression(node) { + this.print(node.callee, node); + this.print(node.typeArguments, node); + this.print(node.typeParameters, node); + this.tokenChar(40); + this.printList(node.arguments, node); + this.rightParens(node); +} +function Import() { + this.word("import"); +} +function AwaitExpression(node) { + this.word("await"); + if (node.argument) { + this.space(); + this.printTerminatorless(node.argument, node, false); } - set shouldSkip(v) { - if (v) { - this._traverseFlags |= SHOULD_SKIP; - } else { - this._traverseFlags &= ~SHOULD_SKIP; +} +function YieldExpression(node) { + this.word("yield", true); + if (node.delegate) { + this.tokenChar(42); + if (node.argument) { + this.space(); + this.print(node.argument, node); + } + } else { + if (node.argument) { + this.space(); + this.printTerminatorless(node.argument, node, false); } } - get shouldStop() { - return !!(this._traverseFlags & SHOULD_STOP); +} +function EmptyStatement() { + this.semicolon(true); +} +function ExpressionStatement(node) { + this.print(node.expression, node); + this.semicolon(); +} +function AssignmentPattern(node) { + this.print(node.left, node); + if (node.left.optional) this.tokenChar(63); + this.print(node.left.typeAnnotation, node); + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.right, node); +} +function AssignmentExpression(node, parent) { + const parens = this.inForStatementInitCounter && node.operator === "in" && !n.needsParens(node, parent); + if (parens) { + this.tokenChar(40); } - set shouldStop(v) { - if (v) { - this._traverseFlags |= SHOULD_STOP; - } else { - this._traverseFlags &= ~SHOULD_STOP; - } + this.print(node.left, node); + this.space(); + if (node.operator === "in" || node.operator === "instanceof") { + this.word(node.operator); + } else { + this.token(node.operator); } - get removed() { - return !!(this._traverseFlags & REMOVED); + this.space(); + this.print(node.right, node); + if (parens) { + this.tokenChar(41); } - set removed(v) { - if (v) { - this._traverseFlags |= REMOVED; - } else { - this._traverseFlags &= ~REMOVED; - } +} +function BindExpression(node) { + this.print(node.object, node); + this.token("::"); + this.print(node.callee, node); +} +function MemberExpression(node) { + this.print(node.object, node); + if (!node.computed && isMemberExpression(node.property)) { + throw new TypeError("Got a MemberExpression for MemberExpression property"); + } + let computed = node.computed; + if (isLiteral(node.property) && typeof node.property.value === "number") { + computed = true; + } + if (computed) { + this.tokenChar(91); + this.print(node.property, node); + this.tokenChar(93); + } else { + this.tokenChar(46); + this.print(node.property, node); } } -Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments); -{ - NodePath.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo; +function MetaProperty(node) { + this.print(node.meta, node); + this.tokenChar(46); + this.print(node.property, node); } -for (const type of t.TYPES) { - const typeKey = `is${type}`; - const fn = t[typeKey]; - NodePath.prototype[typeKey] = function (opts) { - return fn(this.node, opts); - }; - NodePath.prototype[`assert${type}`] = function (opts) { - if (!fn(this.node, opts)) { - throw new TypeError(`Expected node path of type ${type}`); - } - }; +function PrivateName(node) { + this.tokenChar(35); + this.print(node.id, node); } -Object.assign(NodePath.prototype, NodePath_virtual_types_validator); -for (const type of Object.keys(virtualTypes)) { - if (type[0] === "_") continue; - if (!t.TYPES.includes(type)) t.TYPES.push(type); +function V8IntrinsicIdentifier(node) { + this.tokenChar(37); + this.word(node.name); +} +function ModuleExpression(node) { + this.word("module", true); + this.space(); + this.tokenChar(123); + this.indent(); + const { + body + } = node; + if (body.body.length || body.directives.length) { + this.newline(); + } + this.print(body, node); + this.dedent(); + this.rightBrace(node); } -var _default = NodePath; -exports["default"] = _default; -//# sourceMappingURL=index.js.map +//# sourceMappingURL=expressions.js.map /***/ }), -/***/ 37753: +/***/ 77183: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -121931,529 +36093,674 @@ exports["default"] = _default; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._getTypeAnnotation = _getTypeAnnotation; -exports.baseTypeStrictlyMatches = baseTypeStrictlyMatches; -exports.couldBeBaseType = couldBeBaseType; -exports.getTypeAnnotation = getTypeAnnotation; -exports.isBaseType = isBaseType; -exports.isGenericType = isGenericType; -var inferers = __nccwpck_require__(77793); -var _t = __nccwpck_require__(53501); -const { - anyTypeAnnotation, - isAnyTypeAnnotation, - isArrayTypeAnnotation, - isBooleanTypeAnnotation, - isEmptyTypeAnnotation, - isFlowBaseAnnotation, - isGenericTypeAnnotation, - isIdentifier, - isMixedTypeAnnotation, - isNumberTypeAnnotation, - isStringTypeAnnotation, - isTSArrayType, - isTSTypeAnnotation, - isTSTypeReference, - isTupleTypeAnnotation, - isTypeAnnotation, - isUnionTypeAnnotation, - isVoidTypeAnnotation, - stringTypeAnnotation, - voidTypeAnnotation -} = _t; -function getTypeAnnotation() { - let type = this.getData("typeAnnotation"); - if (type != null) { - return type; +exports.AnyTypeAnnotation = AnyTypeAnnotation; +exports.ArrayTypeAnnotation = ArrayTypeAnnotation; +exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation; +exports.BooleanTypeAnnotation = BooleanTypeAnnotation; +exports.DeclareClass = DeclareClass; +exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration; +exports.DeclareExportDeclaration = DeclareExportDeclaration; +exports.DeclareFunction = DeclareFunction; +exports.DeclareInterface = DeclareInterface; +exports.DeclareModule = DeclareModule; +exports.DeclareModuleExports = DeclareModuleExports; +exports.DeclareOpaqueType = DeclareOpaqueType; +exports.DeclareTypeAlias = DeclareTypeAlias; +exports.DeclareVariable = DeclareVariable; +exports.DeclaredPredicate = DeclaredPredicate; +exports.EmptyTypeAnnotation = EmptyTypeAnnotation; +exports.EnumBooleanBody = EnumBooleanBody; +exports.EnumBooleanMember = EnumBooleanMember; +exports.EnumDeclaration = EnumDeclaration; +exports.EnumDefaultedMember = EnumDefaultedMember; +exports.EnumNumberBody = EnumNumberBody; +exports.EnumNumberMember = EnumNumberMember; +exports.EnumStringBody = EnumStringBody; +exports.EnumStringMember = EnumStringMember; +exports.EnumSymbolBody = EnumSymbolBody; +exports.ExistsTypeAnnotation = ExistsTypeAnnotation; +exports.FunctionTypeAnnotation = FunctionTypeAnnotation; +exports.FunctionTypeParam = FunctionTypeParam; +exports.IndexedAccessType = IndexedAccessType; +exports.InferredPredicate = InferredPredicate; +exports.InterfaceDeclaration = InterfaceDeclaration; +exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends; +exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation; +exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation; +exports.MixedTypeAnnotation = MixedTypeAnnotation; +exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation; +exports.NullableTypeAnnotation = NullableTypeAnnotation; +Object.defineProperty(exports, "NumberLiteralTypeAnnotation", ({ + enumerable: true, + get: function () { + return _types2.NumericLiteral; } - type = this._getTypeAnnotation() || anyTypeAnnotation(); - if (isTypeAnnotation(type) || isTSTypeAnnotation(type)) { - type = type.typeAnnotation; +})); +exports.NumberTypeAnnotation = NumberTypeAnnotation; +exports.ObjectTypeAnnotation = ObjectTypeAnnotation; +exports.ObjectTypeCallProperty = ObjectTypeCallProperty; +exports.ObjectTypeIndexer = ObjectTypeIndexer; +exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot; +exports.ObjectTypeProperty = ObjectTypeProperty; +exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty; +exports.OpaqueType = OpaqueType; +exports.OptionalIndexedAccessType = OptionalIndexedAccessType; +exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier; +Object.defineProperty(exports, "StringLiteralTypeAnnotation", ({ + enumerable: true, + get: function () { + return _types2.StringLiteral; } - this.setData("typeAnnotation", type); - return type; +})); +exports.StringTypeAnnotation = StringTypeAnnotation; +exports.SymbolTypeAnnotation = SymbolTypeAnnotation; +exports.ThisTypeAnnotation = ThisTypeAnnotation; +exports.TupleTypeAnnotation = TupleTypeAnnotation; +exports.TypeAlias = TypeAlias; +exports.TypeAnnotation = TypeAnnotation; +exports.TypeCastExpression = TypeCastExpression; +exports.TypeParameter = TypeParameter; +exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation; +exports.TypeofTypeAnnotation = TypeofTypeAnnotation; +exports.UnionTypeAnnotation = UnionTypeAnnotation; +exports.Variance = Variance; +exports.VoidTypeAnnotation = VoidTypeAnnotation; +exports._interfaceish = _interfaceish; +exports._variance = _variance; +var _t = __nccwpck_require__(68948); +var _modules = __nccwpck_require__(44850); +var _types2 = __nccwpck_require__(93674); +const { + isDeclareExportDeclaration, + isStatement +} = _t; +function AnyTypeAnnotation() { + this.word("any"); } -const typeAnnotationInferringNodes = new WeakSet(); -function _getTypeAnnotation() { - const node = this.node; - if (!node) { - if (this.key === "init" && this.parentPath.isVariableDeclarator()) { - const declar = this.parentPath.parentPath; - const declarParent = declar.parentPath; - if (declar.key === "left" && declarParent.isForInStatement()) { - return stringTypeAnnotation(); - } - if (declar.key === "left" && declarParent.isForOfStatement()) { - return anyTypeAnnotation(); - } - return voidTypeAnnotation(); - } else { - return; - } - } - if (node.typeAnnotation) { - return node.typeAnnotation; +function ArrayTypeAnnotation(node) { + this.print(node.elementType, node, true); + this.tokenChar(91); + this.tokenChar(93); +} +function BooleanTypeAnnotation() { + this.word("boolean"); +} +function BooleanLiteralTypeAnnotation(node) { + this.word(node.value ? "true" : "false"); +} +function NullLiteralTypeAnnotation() { + this.word("null"); +} +function DeclareClass(node, parent) { + if (!isDeclareExportDeclaration(parent)) { + this.word("declare"); + this.space(); } - if (typeAnnotationInferringNodes.has(node)) { - return; + this.word("class"); + this.space(); + this._interfaceish(node); +} +function DeclareFunction(node, parent) { + if (!isDeclareExportDeclaration(parent)) { + this.word("declare"); + this.space(); } - typeAnnotationInferringNodes.add(node); - try { - var _inferer; - let inferer = inferers[node.type]; - if (inferer) { - return inferer.call(this, node); - } - inferer = inferers[this.parentPath.type]; - if ((_inferer = inferer) != null && _inferer.validParent) { - return this.parentPath.getTypeAnnotation(); - } - } finally { - typeAnnotationInferringNodes.delete(node); + this.word("function"); + this.space(); + this.print(node.id, node); + this.print(node.id.typeAnnotation.typeAnnotation, node); + if (node.predicate) { + this.space(); + this.print(node.predicate, node); } + this.semicolon(); } -function isBaseType(baseName, soft) { - return _isBaseType(baseName, this.getTypeAnnotation(), soft); +function InferredPredicate() { + this.tokenChar(37); + this.word("checks"); } -function _isBaseType(baseName, type, soft) { - if (baseName === "string") { - return isStringTypeAnnotation(type); - } else if (baseName === "number") { - return isNumberTypeAnnotation(type); - } else if (baseName === "boolean") { - return isBooleanTypeAnnotation(type); - } else if (baseName === "any") { - return isAnyTypeAnnotation(type); - } else if (baseName === "mixed") { - return isMixedTypeAnnotation(type); - } else if (baseName === "empty") { - return isEmptyTypeAnnotation(type); - } else if (baseName === "void") { - return isVoidTypeAnnotation(type); - } else { - if (soft) { - return false; - } else { - throw new Error(`Unknown base type ${baseName}`); - } +function DeclaredPredicate(node) { + this.tokenChar(37); + this.word("checks"); + this.tokenChar(40); + this.print(node.value, node); + this.tokenChar(41); +} +function DeclareInterface(node) { + this.word("declare"); + this.space(); + this.InterfaceDeclaration(node); +} +function DeclareModule(node) { + this.word("declare"); + this.space(); + this.word("module"); + this.space(); + this.print(node.id, node); + this.space(); + this.print(node.body, node); +} +function DeclareModuleExports(node) { + this.word("declare"); + this.space(); + this.word("module"); + this.tokenChar(46); + this.word("exports"); + this.print(node.typeAnnotation, node); +} +function DeclareTypeAlias(node) { + this.word("declare"); + this.space(); + this.TypeAlias(node); +} +function DeclareOpaqueType(node, parent) { + if (!isDeclareExportDeclaration(parent)) { + this.word("declare"); + this.space(); } + this.OpaqueType(node); } -function couldBeBaseType(name) { - const type = this.getTypeAnnotation(); - if (isAnyTypeAnnotation(type)) return true; - if (isUnionTypeAnnotation(type)) { - for (const type2 of type.types) { - if (isAnyTypeAnnotation(type2) || _isBaseType(name, type2, true)) { - return true; - } - } - return false; - } else { - return _isBaseType(name, type, true); +function DeclareVariable(node, parent) { + if (!isDeclareExportDeclaration(parent)) { + this.word("declare"); + this.space(); } + this.word("var"); + this.space(); + this.print(node.id, node); + this.print(node.id.typeAnnotation, node); + this.semicolon(); } -function baseTypeStrictlyMatches(rightArg) { - const left = this.getTypeAnnotation(); - const right = rightArg.getTypeAnnotation(); - if (!isAnyTypeAnnotation(left) && isFlowBaseAnnotation(left)) { - return right.type === left.type; +function DeclareExportDeclaration(node) { + this.word("declare"); + this.space(); + this.word("export"); + this.space(); + if (node.default) { + this.word("default"); + this.space(); } - return false; + FlowExportDeclaration.call(this, node); } -function isGenericType(genericName) { - const type = this.getTypeAnnotation(); - if (genericName === "Array") { - if (isTSArrayType(type) || isArrayTypeAnnotation(type) || isTupleTypeAnnotation(type)) { - return true; - } +function DeclareExportAllDeclaration(node) { + this.word("declare"); + this.space(); + _modules.ExportAllDeclaration.call(this, node); +} +function EnumDeclaration(node) { + const { + id, + body + } = node; + this.word("enum"); + this.space(); + this.print(id, node); + this.print(body, node); +} +function enumExplicitType(context, name, hasExplicitType) { + if (hasExplicitType) { + context.space(); + context.word("of"); + context.space(); + context.word(name); } - return isGenericTypeAnnotation(type) && isIdentifier(type.id, { - name: genericName - }) || isTSTypeReference(type) && isIdentifier(type.typeName, { - name: genericName - }); + context.space(); } - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 11408: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -var _t = __nccwpck_require__(53501); -var _util = __nccwpck_require__(91970); -const { - BOOLEAN_NUMBER_BINARY_OPERATORS, - createTypeAnnotationBasedOnTypeof, - numberTypeAnnotation, - voidTypeAnnotation -} = _t; -function _default(node) { - if (!this.isReferenced()) return; - const binding = this.scope.getBinding(node.name); - if (binding) { - if (binding.identifier.typeAnnotation) { - return binding.identifier.typeAnnotation; - } else { - return getTypeAnnotationBindingConstantViolations(binding, this, node.name); +function enumBody(context, node) { + const { + members + } = node; + context.token("{"); + context.indent(); + context.newline(); + for (const member of members) { + context.print(member, node); + context.newline(); + } + if (node.hasUnknownMembers) { + context.token("..."); + context.newline(); + } + context.dedent(); + context.token("}"); +} +function EnumBooleanBody(node) { + const { + explicitType + } = node; + enumExplicitType(this, "boolean", explicitType); + enumBody(this, node); +} +function EnumNumberBody(node) { + const { + explicitType + } = node; + enumExplicitType(this, "number", explicitType); + enumBody(this, node); +} +function EnumStringBody(node) { + const { + explicitType + } = node; + enumExplicitType(this, "string", explicitType); + enumBody(this, node); +} +function EnumSymbolBody(node) { + enumExplicitType(this, "symbol", true); + enumBody(this, node); +} +function EnumDefaultedMember(node) { + const { + id + } = node; + this.print(id, node); + this.tokenChar(44); +} +function enumInitializedMember(context, node) { + const { + id, + init + } = node; + context.print(id, node); + context.space(); + context.token("="); + context.space(); + context.print(init, node); + context.token(","); +} +function EnumBooleanMember(node) { + enumInitializedMember(this, node); +} +function EnumNumberMember(node) { + enumInitializedMember(this, node); +} +function EnumStringMember(node) { + enumInitializedMember(this, node); +} +function FlowExportDeclaration(node) { + if (node.declaration) { + const declar = node.declaration; + this.print(declar, node); + if (!isStatement(declar)) this.semicolon(); + } else { + this.tokenChar(123); + if (node.specifiers.length) { + this.space(); + this.printList(node.specifiers, node); + this.space(); + } + this.tokenChar(125); + if (node.source) { + this.space(); + this.word("from"); + this.space(); + this.print(node.source, node); } + this.semicolon(); } - if (node.name === "undefined") { - return voidTypeAnnotation(); - } else if (node.name === "NaN" || node.name === "Infinity") { - return numberTypeAnnotation(); - } else if (node.name === "arguments") {} } -function getTypeAnnotationBindingConstantViolations(binding, path, name) { - const types = []; - const functionConstantViolations = []; - let constantViolations = getConstantViolationsBefore(binding, path, functionConstantViolations); - const testType = getConditionalAnnotation(binding, path, name); - if (testType) { - const testConstantViolations = getConstantViolationsBefore(binding, testType.ifStatement); - constantViolations = constantViolations.filter(path => testConstantViolations.indexOf(path) < 0); - types.push(testType.typeAnnotation); +function ExistsTypeAnnotation() { + this.tokenChar(42); +} +function FunctionTypeAnnotation(node, parent) { + this.print(node.typeParameters, node); + this.tokenChar(40); + if (node.this) { + this.word("this"); + this.tokenChar(58); + this.space(); + this.print(node.this.typeAnnotation, node); + if (node.params.length || node.rest) { + this.tokenChar(44); + this.space(); + } } - if (constantViolations.length) { - constantViolations.push(...functionConstantViolations); - for (const violation of constantViolations) { - types.push(violation.getTypeAnnotation()); + this.printList(node.params, node); + if (node.rest) { + if (node.params.length) { + this.tokenChar(44); + this.space(); } + this.token("..."); + this.print(node.rest, node); } - if (!types.length) { - return; + this.tokenChar(41); + const type = parent == null ? void 0 : parent.type; + if (type != null && (type === "ObjectTypeCallProperty" || type === "ObjectTypeInternalSlot" || type === "DeclareFunction" || type === "ObjectTypeProperty" && parent.method)) { + this.tokenChar(58); + } else { + this.space(); + this.token("=>"); } - return (0, _util.createUnionType)(types); + this.space(); + this.print(node.returnType, node); } -function getConstantViolationsBefore(binding, path, functions) { - const violations = binding.constantViolations.slice(); - violations.unshift(binding.path); - return violations.filter(violation => { - violation = violation.resolve(); - const status = violation._guessExecutionStatusRelativeTo(path); - if (functions && status === "unknown") functions.push(violation); - return status === "before"; - }); +function FunctionTypeParam(node) { + this.print(node.name, node); + if (node.optional) this.tokenChar(63); + if (node.name) { + this.tokenChar(58); + this.space(); + } + this.print(node.typeAnnotation, node); } -function inferAnnotationFromBinaryExpression(name, path) { - const operator = path.node.operator; - const right = path.get("right").resolve(); - const left = path.get("left").resolve(); - let target; - if (left.isIdentifier({ - name - })) { - target = right; - } else if (right.isIdentifier({ - name - })) { - target = left; +function InterfaceExtends(node) { + this.print(node.id, node); + this.print(node.typeParameters, node, true); +} +function _interfaceish(node) { + var _node$extends; + this.print(node.id, node); + this.print(node.typeParameters, node); + if ((_node$extends = node.extends) != null && _node$extends.length) { + this.space(); + this.word("extends"); + this.space(); + this.printList(node.extends, node); } - if (target) { - if (operator === "===") { - return target.getTypeAnnotation(); + if (node.type === "DeclareClass") { + var _node$mixins, _node$implements; + if ((_node$mixins = node.mixins) != null && _node$mixins.length) { + this.space(); + this.word("mixins"); + this.space(); + this.printList(node.mixins, node); } - if (BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { - return numberTypeAnnotation(); + if ((_node$implements = node.implements) != null && _node$implements.length) { + this.space(); + this.word("implements"); + this.space(); + this.printList(node.implements, node); } - return; - } - if (operator !== "===" && operator !== "==") return; - let typeofPath; - let typePath; - if (left.isUnaryExpression({ - operator: "typeof" - })) { - typeofPath = left; - typePath = right; - } else if (right.isUnaryExpression({ - operator: "typeof" - })) { - typeofPath = right; - typePath = left; } - if (!typeofPath) return; - if (!typeofPath.get("argument").isIdentifier({ - name - })) return; - typePath = typePath.resolve(); - if (!typePath.isLiteral()) return; - const typeValue = typePath.node.value; - if (typeof typeValue !== "string") return; - return createTypeAnnotationBasedOnTypeof(typeValue); + this.space(); + this.print(node.body, node); } -function getParentConditionalPath(binding, path, name) { - let parentPath; - while (parentPath = path.parentPath) { - if (parentPath.isIfStatement() || parentPath.isConditionalExpression()) { - if (path.key === "test") { - return; - } - return parentPath; - } - if (parentPath.isFunction()) { - if (parentPath.parentPath.scope.getBinding(name) !== binding) return; +function _variance(node) { + var _node$variance; + const kind = (_node$variance = node.variance) == null ? void 0 : _node$variance.kind; + if (kind != null) { + if (kind === "plus") { + this.tokenChar(43); + } else if (kind === "minus") { + this.tokenChar(45); } - path = parentPath; } } -function getConditionalAnnotation(binding, path, name) { - const ifStatement = getParentConditionalPath(binding, path, name); - if (!ifStatement) return; - const test = ifStatement.get("test"); - const paths = [test]; - const types = []; - for (let i = 0; i < paths.length; i++) { - const path = paths[i]; - if (path.isLogicalExpression()) { - if (path.node.operator === "&&") { - paths.push(path.get("left")); - paths.push(path.get("right")); - } - } else if (path.isBinaryExpression()) { - const type = inferAnnotationFromBinaryExpression(name, path); - if (type) types.push(type); - } - } - if (types.length) { - return { - typeAnnotation: (0, _util.createUnionType)(types), - ifStatement - }; - } - return getConditionalAnnotation(binding, ifStatement, name); +function InterfaceDeclaration(node) { + this.word("interface"); + this.space(); + this._interfaceish(node); } - -//# sourceMappingURL=inferer-reference.js.map - - -/***/ }), - -/***/ 77793: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.ArrayExpression = ArrayExpression; -exports.AssignmentExpression = AssignmentExpression; -exports.BinaryExpression = BinaryExpression; -exports.BooleanLiteral = BooleanLiteral; -exports.CallExpression = CallExpression; -exports.ConditionalExpression = ConditionalExpression; -exports.ClassDeclaration = exports.ClassExpression = exports.FunctionDeclaration = exports.ArrowFunctionExpression = exports.FunctionExpression = Func; -Object.defineProperty(exports, "Identifier", ({ - enumerable: true, - get: function () { - return _infererReference.default; +function andSeparator() { + this.space(); + this.tokenChar(38); + this.space(); +} +function InterfaceTypeAnnotation(node) { + var _node$extends2; + this.word("interface"); + if ((_node$extends2 = node.extends) != null && _node$extends2.length) { + this.space(); + this.word("extends"); + this.space(); + this.printList(node.extends, node); } -})); -exports.LogicalExpression = LogicalExpression; -exports.NewExpression = NewExpression; -exports.NullLiteral = NullLiteral; -exports.NumericLiteral = NumericLiteral; -exports.ObjectExpression = ObjectExpression; -exports.ParenthesizedExpression = ParenthesizedExpression; -exports.RegExpLiteral = RegExpLiteral; -exports.RestElement = RestElement; -exports.SequenceExpression = SequenceExpression; -exports.StringLiteral = StringLiteral; -exports.TSAsExpression = TSAsExpression; -exports.TSNonNullExpression = TSNonNullExpression; -exports.TaggedTemplateExpression = TaggedTemplateExpression; -exports.TemplateLiteral = TemplateLiteral; -exports.TypeCastExpression = TypeCastExpression; -exports.UnaryExpression = UnaryExpression; -exports.UpdateExpression = UpdateExpression; -exports.VariableDeclarator = VariableDeclarator; -var _t = __nccwpck_require__(53501); -var _infererReference = __nccwpck_require__(11408); -var _util = __nccwpck_require__(91970); -const { - BOOLEAN_BINARY_OPERATORS, - BOOLEAN_UNARY_OPERATORS, - NUMBER_BINARY_OPERATORS, - NUMBER_UNARY_OPERATORS, - STRING_UNARY_OPERATORS, - anyTypeAnnotation, - arrayTypeAnnotation, - booleanTypeAnnotation, - buildMatchMemberExpression, - genericTypeAnnotation, - identifier, - nullLiteralTypeAnnotation, - numberTypeAnnotation, - stringTypeAnnotation, - tupleTypeAnnotation, - unionTypeAnnotation, - voidTypeAnnotation, - isIdentifier -} = _t; -function VariableDeclarator() { - if (!this.get("id").isIdentifier()) return; - return this.get("init").getTypeAnnotation(); + this.space(); + this.print(node.body, node); } -function TypeCastExpression(node) { - return node.typeAnnotation; +function IntersectionTypeAnnotation(node) { + this.printJoin(node.types, node, { + separator: andSeparator + }); } -TypeCastExpression.validParent = true; -function TSAsExpression(node) { - return node.typeAnnotation; +function MixedTypeAnnotation() { + this.word("mixed"); } -TSAsExpression.validParent = true; -function TSNonNullExpression() { - return this.get("expression").getTypeAnnotation(); +function EmptyTypeAnnotation() { + this.word("empty"); } -function NewExpression(node) { - if (node.callee.type === "Identifier") { - return genericTypeAnnotation(node.callee); - } +function NullableTypeAnnotation(node) { + this.tokenChar(63); + this.print(node.typeAnnotation, node); } -function TemplateLiteral() { - return stringTypeAnnotation(); +function NumberTypeAnnotation() { + this.word("number"); } -function UnaryExpression(node) { - const operator = node.operator; - if (operator === "void") { - return voidTypeAnnotation(); - } else if (NUMBER_UNARY_OPERATORS.indexOf(operator) >= 0) { - return numberTypeAnnotation(); - } else if (STRING_UNARY_OPERATORS.indexOf(operator) >= 0) { - return stringTypeAnnotation(); - } else if (BOOLEAN_UNARY_OPERATORS.indexOf(operator) >= 0) { - return booleanTypeAnnotation(); - } +function StringTypeAnnotation() { + this.word("string"); } -function BinaryExpression(node) { - const operator = node.operator; - if (NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { - return numberTypeAnnotation(); - } else if (BOOLEAN_BINARY_OPERATORS.indexOf(operator) >= 0) { - return booleanTypeAnnotation(); - } else if (operator === "+") { - const right = this.get("right"); - const left = this.get("left"); - if (left.isBaseType("number") && right.isBaseType("number")) { - return numberTypeAnnotation(); - } else if (left.isBaseType("string") || right.isBaseType("string")) { - return stringTypeAnnotation(); - } - return unionTypeAnnotation([stringTypeAnnotation(), numberTypeAnnotation()]); - } +function ThisTypeAnnotation() { + this.word("this"); } -function LogicalExpression() { - const argumentTypes = [this.get("left").getTypeAnnotation(), this.get("right").getTypeAnnotation()]; - return (0, _util.createUnionType)(argumentTypes); +function TupleTypeAnnotation(node) { + this.tokenChar(91); + this.printList(node.types, node); + this.tokenChar(93); } -function ConditionalExpression() { - const argumentTypes = [this.get("consequent").getTypeAnnotation(), this.get("alternate").getTypeAnnotation()]; - return (0, _util.createUnionType)(argumentTypes); +function TypeofTypeAnnotation(node) { + this.word("typeof"); + this.space(); + this.print(node.argument, node); } -function SequenceExpression() { - return this.get("expressions").pop().getTypeAnnotation(); +function TypeAlias(node) { + this.word("type"); + this.space(); + this.print(node.id, node); + this.print(node.typeParameters, node); + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.right, node); + this.semicolon(); } -function ParenthesizedExpression() { - return this.get("expression").getTypeAnnotation(); +function TypeAnnotation(node) { + this.tokenChar(58); + this.space(); + if (node.optional) this.tokenChar(63); + this.print(node.typeAnnotation, node); } -function AssignmentExpression() { - return this.get("right").getTypeAnnotation(); +function TypeParameterInstantiation(node) { + this.tokenChar(60); + this.printList(node.params, node, {}); + this.tokenChar(62); } -function UpdateExpression(node) { - const operator = node.operator; - if (operator === "++" || operator === "--") { - return numberTypeAnnotation(); +function TypeParameter(node) { + this._variance(node); + this.word(node.name); + if (node.bound) { + this.print(node.bound, node); + } + if (node.default) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.default, node); } } -function StringLiteral() { - return stringTypeAnnotation(); +function OpaqueType(node) { + this.word("opaque"); + this.space(); + this.word("type"); + this.space(); + this.print(node.id, node); + this.print(node.typeParameters, node); + if (node.supertype) { + this.tokenChar(58); + this.space(); + this.print(node.supertype, node); + } + if (node.impltype) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.impltype, node); + } + this.semicolon(); } -function NumericLiteral() { - return numberTypeAnnotation(); +function ObjectTypeAnnotation(node) { + if (node.exact) { + this.token("{|"); + } else { + this.tokenChar(123); + } + const props = [...node.properties, ...(node.callProperties || []), ...(node.indexers || []), ...(node.internalSlots || [])]; + if (props.length) { + this.newline(); + this.space(); + this.printJoin(props, node, { + addNewlines(leading) { + if (leading && !props[0]) return 1; + }, + indent: true, + statement: true, + iterator: () => { + if (props.length !== 1 || node.inexact) { + this.tokenChar(44); + this.space(); + } + } + }); + this.space(); + } + if (node.inexact) { + this.indent(); + this.token("..."); + if (props.length) { + this.newline(); + } + this.dedent(); + } + if (node.exact) { + this.token("|}"); + } else { + this.tokenChar(125); + } } -function BooleanLiteral() { - return booleanTypeAnnotation(); +function ObjectTypeInternalSlot(node) { + if (node.static) { + this.word("static"); + this.space(); + } + this.tokenChar(91); + this.tokenChar(91); + this.print(node.id, node); + this.tokenChar(93); + this.tokenChar(93); + if (node.optional) this.tokenChar(63); + if (!node.method) { + this.tokenChar(58); + this.space(); + } + this.print(node.value, node); } -function NullLiteral() { - return nullLiteralTypeAnnotation(); +function ObjectTypeCallProperty(node) { + if (node.static) { + this.word("static"); + this.space(); + } + this.print(node.value, node); } -function RegExpLiteral() { - return genericTypeAnnotation(identifier("RegExp")); +function ObjectTypeIndexer(node) { + if (node.static) { + this.word("static"); + this.space(); + } + this._variance(node); + this.tokenChar(91); + if (node.id) { + this.print(node.id, node); + this.tokenChar(58); + this.space(); + } + this.print(node.key, node); + this.tokenChar(93); + this.tokenChar(58); + this.space(); + this.print(node.value, node); } -function ObjectExpression() { - return genericTypeAnnotation(identifier("Object")); +function ObjectTypeProperty(node) { + if (node.proto) { + this.word("proto"); + this.space(); + } + if (node.static) { + this.word("static"); + this.space(); + } + if (node.kind === "get" || node.kind === "set") { + this.word(node.kind); + this.space(); + } + this._variance(node); + this.print(node.key, node); + if (node.optional) this.tokenChar(63); + if (!node.method) { + this.tokenChar(58); + this.space(); + } + this.print(node.value, node); } -function ArrayExpression() { - return genericTypeAnnotation(identifier("Array")); +function ObjectTypeSpreadProperty(node) { + this.token("..."); + this.print(node.argument, node); } -function RestElement() { - return ArrayExpression(); +function QualifiedTypeIdentifier(node) { + this.print(node.qualification, node); + this.tokenChar(46); + this.print(node.id, node); } -RestElement.validParent = true; -function Func() { - return genericTypeAnnotation(identifier("Function")); +function SymbolTypeAnnotation() { + this.word("symbol"); +} +function orSeparator() { + this.space(); + this.tokenChar(124); + this.space(); +} +function UnionTypeAnnotation(node) { + this.printJoin(node.types, node, { + separator: orSeparator + }); +} +function TypeCastExpression(node) { + this.tokenChar(40); + this.print(node.expression, node); + this.print(node.typeAnnotation, node); + this.tokenChar(41); } -const isArrayFrom = buildMatchMemberExpression("Array.from"); -const isObjectKeys = buildMatchMemberExpression("Object.keys"); -const isObjectValues = buildMatchMemberExpression("Object.values"); -const isObjectEntries = buildMatchMemberExpression("Object.entries"); -function CallExpression() { - const { - callee - } = this.node; - if (isObjectKeys(callee)) { - return arrayTypeAnnotation(stringTypeAnnotation()); - } else if (isArrayFrom(callee) || isObjectValues(callee) || isIdentifier(callee, { - name: "Array" - })) { - return arrayTypeAnnotation(anyTypeAnnotation()); - } else if (isObjectEntries(callee)) { - return arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(), anyTypeAnnotation()])); +function Variance(node) { + if (node.kind === "plus") { + this.tokenChar(43); + } else { + this.tokenChar(45); } - return resolveCall(this.get("callee")); } -function TaggedTemplateExpression() { - return resolveCall(this.get("tag")); +function VoidTypeAnnotation() { + this.word("void"); } -function resolveCall(callee) { - callee = callee.resolve(); - if (callee.isFunction()) { - const { - node - } = callee; - if (node.async) { - if (node.generator) { - return genericTypeAnnotation(identifier("AsyncIterator")); - } else { - return genericTypeAnnotation(identifier("Promise")); - } - } else { - if (node.generator) { - return genericTypeAnnotation(identifier("Iterator")); - } else if (callee.node.returnType) { - return callee.node.returnType; - } else {} - } +function IndexedAccessType(node) { + this.print(node.objectType, node, true); + this.tokenChar(91); + this.print(node.indexType, node); + this.tokenChar(93); +} +function OptionalIndexedAccessType(node) { + this.print(node.objectType, node); + if (node.optional) { + this.token("?."); } + this.tokenChar(91); + this.print(node.indexType, node); + this.tokenChar(93); } -//# sourceMappingURL=inferers.js.map +//# sourceMappingURL=flow.js.map /***/ }), -/***/ 91970: +/***/ 66880: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -122462,37 +36769,135 @@ function resolveCall(callee) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createUnionType = createUnionType; -var _t = __nccwpck_require__(53501); -const { - createFlowUnionType, - createTSUnionType, - createUnionTypeAnnotation, - isFlowType, - isTSType -} = _t; -function createUnionType(types) { - { - if (isFlowType(types[0])) { - if (createFlowUnionType) { - return createFlowUnionType(types); - } - return createUnionTypeAnnotation(types); - } else { - if (createTSUnionType) { - return createTSUnionType(types); - } +var _templateLiterals = __nccwpck_require__(10870); +Object.keys(_templateLiterals).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _templateLiterals[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _templateLiterals[key]; } - } -} + }); +}); +var _expressions = __nccwpck_require__(80773); +Object.keys(_expressions).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _expressions[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _expressions[key]; + } + }); +}); +var _statements = __nccwpck_require__(72001); +Object.keys(_statements).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _statements[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _statements[key]; + } + }); +}); +var _classes = __nccwpck_require__(73876); +Object.keys(_classes).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _classes[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _classes[key]; + } + }); +}); +var _methods = __nccwpck_require__(83684); +Object.keys(_methods).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _methods[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _methods[key]; + } + }); +}); +var _modules = __nccwpck_require__(44850); +Object.keys(_modules).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _modules[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _modules[key]; + } + }); +}); +var _types = __nccwpck_require__(93674); +Object.keys(_types).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _types[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _types[key]; + } + }); +}); +var _flow = __nccwpck_require__(77183); +Object.keys(_flow).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _flow[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _flow[key]; + } + }); +}); +var _base = __nccwpck_require__(40308); +Object.keys(_base).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _base[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _base[key]; + } + }); +}); +var _jsx = __nccwpck_require__(61225); +Object.keys(_jsx).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _jsx[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _jsx[key]; + } + }); +}); +var _typescript = __nccwpck_require__(4835); +Object.keys(_typescript).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _typescript[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _typescript[key]; + } + }); +}); -//# sourceMappingURL=util.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 76224: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 61225: +/***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -122500,391 +36905,310 @@ function createUnionType(types) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._guessExecutionStatusRelativeTo = _guessExecutionStatusRelativeTo; -exports._resolve = _resolve; -exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression; -exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement; -exports.equals = equals; -exports.getSource = getSource; -exports.has = has; -exports.is = void 0; -exports.isCompletionRecord = isCompletionRecord; -exports.isConstantExpression = isConstantExpression; -exports.isInStrictMode = isInStrictMode; -exports.isNodeType = isNodeType; -exports.isStatementOrBlock = isStatementOrBlock; -exports.isStatic = isStatic; -exports.isnt = isnt; -exports.matchesPattern = matchesPattern; -exports.referencesImport = referencesImport; -exports.resolve = resolve; -exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore; -var _t = __nccwpck_require__(53501); -const { - STATEMENT_OR_BLOCK_KEYS, - VISITOR_KEYS, - isBlockStatement, - isExpression, - isIdentifier, - isLiteral, - isStringLiteral, - isType, - matchesPattern: _matchesPattern -} = _t; -function matchesPattern(pattern, allowPartial) { - return _matchesPattern(this.node, pattern, allowPartial); -} -function has(key) { - const val = this.node && this.node[key]; - if (val && Array.isArray(val)) { - return !!val.length; - } else { - return !!val; +exports.JSXAttribute = JSXAttribute; +exports.JSXClosingElement = JSXClosingElement; +exports.JSXClosingFragment = JSXClosingFragment; +exports.JSXElement = JSXElement; +exports.JSXEmptyExpression = JSXEmptyExpression; +exports.JSXExpressionContainer = JSXExpressionContainer; +exports.JSXFragment = JSXFragment; +exports.JSXIdentifier = JSXIdentifier; +exports.JSXMemberExpression = JSXMemberExpression; +exports.JSXNamespacedName = JSXNamespacedName; +exports.JSXOpeningElement = JSXOpeningElement; +exports.JSXOpeningFragment = JSXOpeningFragment; +exports.JSXSpreadAttribute = JSXSpreadAttribute; +exports.JSXSpreadChild = JSXSpreadChild; +exports.JSXText = JSXText; +function JSXAttribute(node) { + this.print(node.name, node); + if (node.value) { + this.tokenChar(61); + this.print(node.value, node); } } -function isStatic() { - return this.scope.isStatic(this.node); -} -const is = has; -exports.is = is; -function isnt(key) { - return !this.has(key); +function JSXIdentifier(node) { + this.word(node.name); } -function equals(key, value) { - return this.node[key] === value; +function JSXNamespacedName(node) { + this.print(node.namespace, node); + this.tokenChar(58); + this.print(node.name, node); } -function isNodeType(type) { - return isType(this.type, type); +function JSXMemberExpression(node) { + this.print(node.object, node); + this.tokenChar(46); + this.print(node.property, node); } -function canHaveVariableDeclarationOrExpression() { - return (this.key === "init" || this.key === "left") && this.parentPath.isFor(); +function JSXSpreadAttribute(node) { + this.tokenChar(123); + this.token("..."); + this.print(node.argument, node); + this.tokenChar(125); } -function canSwapBetweenExpressionAndStatement(replacement) { - if (this.key !== "body" || !this.parentPath.isArrowFunctionExpression()) { - return false; - } - if (this.isExpression()) { - return isBlockStatement(replacement); - } else if (this.isBlockStatement()) { - return isExpression(replacement); - } - return false; +function JSXExpressionContainer(node) { + this.tokenChar(123); + this.print(node.expression, node); + this.tokenChar(125); } -function isCompletionRecord(allowInsideFunction) { - let path = this; - let first = true; - do { - const { - type, - container - } = path; - if (!first && (path.isFunction() || type === "StaticBlock")) { - return !!allowInsideFunction; - } - first = false; - if (Array.isArray(container) && path.key !== container.length - 1) { - return false; - } - } while ((path = path.parentPath) && !path.isProgram() && !path.isDoExpression()); - return true; +function JSXSpreadChild(node) { + this.tokenChar(123); + this.token("..."); + this.print(node.expression, node); + this.tokenChar(125); } -function isStatementOrBlock() { - if (this.parentPath.isLabeledStatement() || isBlockStatement(this.container)) { - return false; +function JSXText(node) { + const raw = this.getPossibleRaw(node); + if (raw !== undefined) { + this.token(raw, true); } else { - return STATEMENT_OR_BLOCK_KEYS.includes(this.key); + this.token(node.value, true); } } -function referencesImport(moduleSource, importName) { - if (!this.isReferencedIdentifier()) { - if (this.isJSXMemberExpression() && this.node.property.name === importName || (this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, { - value: importName - }) : this.node.property.name === importName)) { - const object = this.get("object"); - return object.isReferencedIdentifier() && object.referencesImport(moduleSource, "*"); - } - return false; - } - const binding = this.scope.getBinding(this.node.name); - if (!binding || binding.kind !== "module") return false; - const path = binding.path; - const parent = path.parentPath; - if (!parent.isImportDeclaration()) return false; - if (parent.node.source.value === moduleSource) { - if (!importName) return true; - } else { - return false; - } - if (path.isImportDefaultSpecifier() && importName === "default") { - return true; - } - if (path.isImportNamespaceSpecifier() && importName === "*") { - return true; - } - if (path.isImportSpecifier() && isIdentifier(path.node.imported, { - name: importName - })) { - return true; +function JSXElement(node) { + const open = node.openingElement; + this.print(open, node); + if (open.selfClosing) return; + this.indent(); + for (const child of node.children) { + this.print(child, node); } - return false; + this.dedent(); + this.print(node.closingElement, node); } -function getSource() { - const node = this.node; - if (node.end) { - const code = this.hub.getCode(); - if (code) return code.slice(node.start, node.end); +function spaceSeparator() { + this.space(); +} +function JSXOpeningElement(node) { + this.tokenChar(60); + this.print(node.name, node); + this.print(node.typeParameters, node); + if (node.attributes.length > 0) { + this.space(); + this.printJoin(node.attributes, node, { + separator: spaceSeparator + }); + } + if (node.selfClosing) { + this.space(); + this.token("/>"); + } else { + this.tokenChar(62); } - return ""; } -function willIMaybeExecuteBefore(target) { - return this._guessExecutionStatusRelativeTo(target) !== "after"; +function JSXClosingElement(node) { + this.token("= 0) return "after"; - if (paths.this.indexOf(target) >= 0) return "before"; - let commonPath; - const commonIndex = { - target: 0, - this: 0 - }; - while (!commonPath && commonIndex.this < paths.this.length) { - const path = paths.this[commonIndex.this]; - commonIndex.target = paths.target.indexOf(path); - if (commonIndex.target >= 0) { - commonPath = path; - } else { - commonIndex.this++; + this.tokenChar(40); + this._parameters(node.params, node); + this.tokenChar(41); + const noLineTerminator = node.type === "ArrowFunctionExpression"; + this.print(node.returnType, node, noLineTerminator); + this._noLineTerminator = noLineTerminator; +} +function _parameters(parameters, parent) { + const paramLength = parameters.length; + for (let i = 0; i < paramLength; i++) { + this._param(parameters[i], parent); + if (i < parameters.length - 1) { + this.tokenChar(44); + this.space(); } } - if (!commonPath) { - throw new Error("Internal Babel error - The two compared nodes" + " don't appear to belong to the same program."); +} +function _param(parameter, parent) { + this.printJoin(parameter.decorators, parameter); + this.print(parameter, parent); + if (parameter.optional) { + this.tokenChar(63); } - if (isExecutionUncertainInList(paths.this, commonIndex.this - 1) || isExecutionUncertainInList(paths.target, commonIndex.target - 1)) { - return "unknown"; + this.print(parameter.typeAnnotation, parameter); +} +function _methodHead(node) { + const kind = node.kind; + const key = node.key; + if (kind === "get" || kind === "set") { + this.word(kind); + this.space(); } - const divergence = { - this: paths.this[commonIndex.this - 1], - target: paths.target[commonIndex.target - 1] - }; - if (divergence.target.listKey && divergence.this.listKey && divergence.target.container === divergence.this.container) { - return divergence.target.key > divergence.this.key ? "before" : "after"; + if (node.async) { + this.word("async", true); + this.space(); } - const keys = VISITOR_KEYS[commonPath.type]; - const keyPosition = { - this: keys.indexOf(divergence.this.parentKey), - target: keys.indexOf(divergence.target.parentKey) - }; - return keyPosition.target > keyPosition.this ? "before" : "after"; -} -function _guessExecutionStatusRelativeToDifferentFunctionsInternal(base, target, cache) { - if (!target.isFunctionDeclaration()) { - if (_guessExecutionStatusRelativeToCached(base, target, cache) === "before") { - return "before"; + if (kind === "method" || kind === "init") { + if (node.generator) { + this.tokenChar(42); } - return "unknown"; - } else if (target.parentPath.isExportDeclaration()) { - return "unknown"; } - const binding = target.scope.getBinding(target.node.id.name); - if (!binding.references) return "before"; - const referencePaths = binding.referencePaths; - let allStatus; - for (const path of referencePaths) { - const childOfFunction = !!path.find(path => path.node === target.node); - if (childOfFunction) continue; - if (path.key !== "callee" || !path.parentPath.isCallExpression()) { - return "unknown"; - } - const status = _guessExecutionStatusRelativeToCached(base, path, cache); - if (allStatus && allStatus !== status) { - return "unknown"; - } else { - allStatus = status; - } + if (node.computed) { + this.tokenChar(91); + this.print(key, node); + this.tokenChar(93); + } else { + this.print(key, node); } - return allStatus; -} -function _guessExecutionStatusRelativeToDifferentFunctionsCached(base, target, cache) { - let nodeMap = cache.get(base.node); - let cached; - if (!nodeMap) { - cache.set(base.node, nodeMap = new Map()); - } else if (cached = nodeMap.get(target.node)) { - if (cached === SYMBOL_CHECKING) { - return "unknown"; - } - return cached; + if (node.optional) { + this.tokenChar(63); } - nodeMap.set(target.node, SYMBOL_CHECKING); - const result = _guessExecutionStatusRelativeToDifferentFunctionsInternal(base, target, cache); - nodeMap.set(target.node, result); - return result; -} -function resolve(dangerous, resolved) { - return this._resolve(dangerous, resolved) || this; + this._params(node, node.computed && node.key.type !== "StringLiteral" ? undefined : node.key, undefined); } -function _resolve(dangerous, resolved) { - if (resolved && resolved.indexOf(this) >= 0) return; - resolved = resolved || []; - resolved.push(this); - if (this.isVariableDeclarator()) { - if (this.get("id").isIdentifier()) { - return this.get("init").resolve(dangerous, resolved); - } else {} - } else if (this.isReferencedIdentifier()) { - const binding = this.scope.getBinding(this.node.name); - if (!binding) return; - if (!binding.constant) return; - if (binding.kind === "module") return; - if (binding.path !== this) { - const ret = binding.path.resolve(dangerous, resolved); - if (this.find(parent => parent.node === ret.node)) return; - return ret; - } - } else if (this.isTypeCastExpression()) { - return this.get("expression").resolve(dangerous, resolved); - } else if (dangerous && this.isMemberExpression()) { - const targetKey = this.toComputedKey(); - if (!isLiteral(targetKey)) return; - const targetName = targetKey.value; - const target = this.get("object").resolve(dangerous, resolved); - if (target.isObjectExpression()) { - const props = target.get("properties"); - for (const prop of props) { - if (!prop.isProperty()) continue; - const key = prop.get("key"); - let match = prop.isnt("computed") && key.isIdentifier({ - name: targetName - }); - match = match || key.isLiteral({ - value: targetName - }); - if (match) return prop.get("value").resolve(dangerous, resolved); - } - } else if (target.isArrayExpression() && !isNaN(+targetName)) { - const elems = target.get("elements"); - const elem = elems[targetName]; - if (elem) return elem.resolve(dangerous, resolved); +function _predicate(node, noLineTerminatorAfter) { + if (node.predicate) { + if (!node.returnType) { + this.tokenChar(58); } + this.space(); + this.print(node.predicate, node, noLineTerminatorAfter); } } -function isConstantExpression() { - if (this.isIdentifier()) { - const binding = this.scope.getBinding(this.node.name); - if (!binding) return false; - return binding.constant; +function _functionHead(node, parent) { + if (node.async) { + this.word("async"); + this._endsWithInnerRaw = false; + this.space(); } - if (this.isLiteral()) { - if (this.isRegExpLiteral()) { - return false; - } - if (this.isTemplateLiteral()) { - return this.get("expressions").every(expression => expression.isConstantExpression()); - } - return true; + this.word("function"); + if (node.generator) { + this._endsWithInnerRaw = false; + this.tokenChar(42); } - if (this.isUnaryExpression()) { - if (this.node.operator !== "void") { - return false; - } - return this.get("argument").isConstantExpression(); + this.space(); + if (node.id) { + this.print(node.id, node); } - if (this.isBinaryExpression()) { - const { - operator - } = this.node; - return operator !== "in" && operator !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression(); + this._params(node, node.id, parent); + if (node.type !== "TSDeclareFunction") { + this._predicate(node); } - return false; } -function isInStrictMode() { - const start = this.isProgram() ? this : this.parentPath; - const strictParent = start.find(path => { - if (path.isProgram({ - sourceType: "module" - })) return true; - if (path.isClass()) return true; - if (path.isArrowFunctionExpression() && !path.get("body").isBlockStatement()) { - return false; - } - let body; - if (path.isFunction()) { - body = path.node.body; - } else if (path.isProgram()) { - body = path.node; - } else { - return false; - } - for (const directive of body.directives) { - if (directive.value.value === "use strict") { - return true; +function FunctionExpression(node, parent) { + this._functionHead(node, parent); + this.space(); + this.print(node.body, node); +} +function ArrowFunctionExpression(node, parent) { + if (node.async) { + this.word("async", true); + this.space(); + } + let firstParam; + if (!this.format.retainLines && node.params.length === 1 && isIdentifier(firstParam = node.params[0]) && !hasTypesOrComments(node, firstParam)) { + this.print(firstParam, node, true); + } else { + this._params(node, undefined, parent); + } + this._predicate(node, true); + this.space(); + this.printInnerComments(); + this.token("=>"); + this.space(); + this.print(node.body, node); +} +function hasTypesOrComments(node, param) { + var _param$leadingComment, _param$trailingCommen; + return !!(node.typeParameters || node.returnType || node.predicate || param.typeAnnotation || param.optional || (_param$leadingComment = param.leadingComments) != null && _param$leadingComment.length || (_param$trailingCommen = param.trailingComments) != null && _param$trailingCommen.length); +} +function _getFuncIdName(idNode, parent) { + let id = idNode; + if (!id && parent) { + const parentType = parent.type; + if (parentType === "VariableDeclarator") { + id = parent.id; + } else if (parentType === "AssignmentExpression" || parentType === "AssignmentPattern") { + id = parent.left; + } else if (parentType === "ObjectProperty" || parentType === "ClassProperty") { + if (!parent.computed || parent.key.type === "StringLiteral") { + id = parent.key; } + } else if (parentType === "ClassPrivateProperty" || parentType === "ClassAccessorProperty") { + id = parent.key; } - }); - return !!strictParent; + } + if (!id) return; + let nameInfo; + if (id.type === "Identifier") { + var _id$loc, _id$loc2; + nameInfo = { + pos: (_id$loc = id.loc) == null ? void 0 : _id$loc.start, + name: ((_id$loc2 = id.loc) == null ? void 0 : _id$loc2.identifierName) || id.name + }; + } else if (id.type === "PrivateName") { + var _id$loc3; + nameInfo = { + pos: (_id$loc3 = id.loc) == null ? void 0 : _id$loc3.start, + name: "#" + id.id.name + }; + } else if (id.type === "StringLiteral") { + var _id$loc4; + nameInfo = { + pos: (_id$loc4 = id.loc) == null ? void 0 : _id$loc4.start, + name: id.value + }; + } + return nameInfo; } -//# sourceMappingURL=introspection.js.map +//# sourceMappingURL=methods.js.map /***/ }), -/***/ 9645: +/***/ 44850: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -122893,444 +37217,280 @@ function isInStrictMode() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -var _t = __nccwpck_require__(53501); -var _t2 = _t; +exports.ExportAllDeclaration = ExportAllDeclaration; +exports.ExportDefaultDeclaration = ExportDefaultDeclaration; +exports.ExportDefaultSpecifier = ExportDefaultSpecifier; +exports.ExportNamedDeclaration = ExportNamedDeclaration; +exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier; +exports.ExportSpecifier = ExportSpecifier; +exports.ImportAttribute = ImportAttribute; +exports.ImportDeclaration = ImportDeclaration; +exports.ImportDefaultSpecifier = ImportDefaultSpecifier; +exports.ImportExpression = ImportExpression; +exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier; +exports.ImportSpecifier = ImportSpecifier; +exports._printAttributes = _printAttributes; +var _t = __nccwpck_require__(68948); const { - react + isClassDeclaration, + isExportDefaultSpecifier, + isExportNamespaceSpecifier, + isImportDefaultSpecifier, + isImportNamespaceSpecifier, + isStatement } = _t; -const { - cloneNode, - jsxExpressionContainer, - variableDeclaration, - variableDeclarator -} = _t2; -const referenceVisitor = { - ReferencedIdentifier(path, state) { - if (path.isJSXIdentifier() && react.isCompatTag(path.node.name) && !path.parentPath.isJSXMemberExpression()) { - return; - } - if (path.node.name === "this") { - let scope = path.scope; - do { - if (scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { - break; - } - } while (scope = scope.parent); - if (scope) state.breakOnScopePaths.push(scope.path); - } - const binding = path.scope.getBinding(path.node.name); - if (!binding) return; - for (const violation of binding.constantViolations) { - if (violation.scope !== binding.path.scope) { - state.mutableBinding = true; - path.stop(); - return; - } - } - if (binding !== state.scope.getBinding(path.node.name)) return; - state.bindings[path.node.name] = binding; +function ImportSpecifier(node) { + if (node.importKind === "type" || node.importKind === "typeof") { + this.word(node.importKind); + this.space(); } -}; -class PathHoister { - constructor(path, scope) { - this.breakOnScopePaths = void 0; - this.bindings = void 0; - this.mutableBinding = void 0; - this.scopes = void 0; - this.scope = void 0; - this.path = void 0; - this.attachAfter = void 0; - this.breakOnScopePaths = []; - this.bindings = {}; - this.mutableBinding = false; - this.scopes = []; - this.scope = scope; - this.path = path; - this.attachAfter = false; + this.print(node.imported, node); + if (node.local && node.local.name !== node.imported.name) { + this.space(); + this.word("as"); + this.space(); + this.print(node.local, node); } - isCompatibleScope(scope) { - for (const key of Object.keys(this.bindings)) { - const binding = this.bindings[key]; - if (!scope.bindingIdentifierEquals(key, binding.identifier)) { - return false; - } - } - return true; +} +function ImportDefaultSpecifier(node) { + this.print(node.local, node); +} +function ExportDefaultSpecifier(node) { + this.print(node.exported, node); +} +function ExportSpecifier(node) { + if (node.exportKind === "type") { + this.word("type"); + this.space(); } - getCompatibleScopes() { - let scope = this.path.scope; - do { - if (this.isCompatibleScope(scope)) { - this.scopes.push(scope); - } else { - break; - } - if (this.breakOnScopePaths.indexOf(scope.path) >= 0) { - break; - } - } while (scope = scope.parent); + this.print(node.local, node); + if (node.exported && node.local.name !== node.exported.name) { + this.space(); + this.word("as"); + this.space(); + this.print(node.exported, node); } - getAttachmentPath() { - let path = this._getAttachmentPath(); - if (!path) return; - let targetScope = path.scope; - if (targetScope.path === path) { - targetScope = path.scope.parent; - } - if (targetScope.path.isProgram() || targetScope.path.isFunction()) { - for (const name of Object.keys(this.bindings)) { - if (!targetScope.hasOwnBinding(name)) continue; - const binding = this.bindings[name]; - if (binding.kind === "param" || binding.path.parentKey === "params") { - continue; - } - const bindingParentPath = this.getAttachmentParentForPath(binding.path); - if (bindingParentPath.key >= path.key) { - this.attachAfter = true; - path = binding.path; - for (const violationPath of binding.constantViolations) { - if (this.getAttachmentParentForPath(violationPath).key > path.key) { - path = violationPath; - } - } - } - } - } - return path; +} +function ExportNamespaceSpecifier(node) { + this.tokenChar(42); + this.space(); + this.word("as"); + this.space(); + this.print(node.exported, node); +} +let warningShown = false; +function _printAttributes(node) { + const { + importAttributesKeyword + } = this.format; + const { + attributes, + assertions + } = node; + if (attributes && !importAttributesKeyword && !warningShown) { + warningShown = true; + console.warn(`\ +You are using import attributes, without specifying the desired output syntax. +Please specify the "importAttributesKeyword" generator option, whose value can be one of: + - "with" : \`import { a } from "b" with { type: "json" };\` + - "assert" : \`import { a } from "b" assert { type: "json" };\` + - "with-legacy" : \`import { a } from "b" with type: "json";\` +`); } - _getAttachmentPath() { - const scopes = this.scopes; - const scope = scopes.pop(); - if (!scope) return; - if (scope.path.isFunction()) { - if (this.hasOwnParamBindings(scope)) { - if (this.scope === scope) return; - const bodies = scope.path.get("body").get("body"); - for (let i = 0; i < bodies.length; i++) { - if (bodies[i].node._blockHoist) continue; - return bodies[i]; + const useAssertKeyword = importAttributesKeyword === "assert" || !importAttributesKeyword && assertions; + this.word(useAssertKeyword ? "assert" : "with"); + this.space(); + if (!useAssertKeyword && importAttributesKeyword !== "with") { + this.printList(attributes || assertions, node); + return; + } + this.tokenChar(123); + this.space(); + this.printList(attributes || assertions, node); + this.space(); + this.tokenChar(125); +} +function ExportAllDeclaration(node) { + var _node$attributes, _node$assertions; + this.word("export"); + this.space(); + if (node.exportKind === "type") { + this.word("type"); + this.space(); + } + this.tokenChar(42); + this.space(); + this.word("from"); + this.space(); + if ((_node$attributes = node.attributes) != null && _node$attributes.length || (_node$assertions = node.assertions) != null && _node$assertions.length) { + this.print(node.source, node, true); + this.space(); + this._printAttributes(node); + } else { + this.print(node.source, node); + } + this.semicolon(); +} +function maybePrintDecoratorsBeforeExport(printer, node) { + if (isClassDeclaration(node.declaration) && printer._shouldPrintDecoratorsBeforeExport(node)) { + printer.printJoin(node.declaration.decorators, node); + } +} +function ExportNamedDeclaration(node) { + maybePrintDecoratorsBeforeExport(this, node); + this.word("export"); + this.space(); + if (node.declaration) { + const declar = node.declaration; + this.print(declar, node); + if (!isStatement(declar)) this.semicolon(); + } else { + if (node.exportKind === "type") { + this.word("type"); + this.space(); + } + const specifiers = node.specifiers.slice(0); + let hasSpecial = false; + for (;;) { + const first = specifiers[0]; + if (isExportDefaultSpecifier(first) || isExportNamespaceSpecifier(first)) { + hasSpecial = true; + this.print(specifiers.shift(), node); + if (specifiers.length) { + this.tokenChar(44); + this.space(); } } else { - return this.getNextScopeAttachmentParent(); + break; } - } else if (scope.path.isProgram()) { - return this.getNextScopeAttachmentParent(); } - } - getNextScopeAttachmentParent() { - const scope = this.scopes.pop(); - if (scope) return this.getAttachmentParentForPath(scope.path); - } - getAttachmentParentForPath(path) { - do { - if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { - return path; + if (specifiers.length || !specifiers.length && !hasSpecial) { + this.tokenChar(123); + if (specifiers.length) { + this.space(); + this.printList(specifiers, node); + this.space(); } - } while (path = path.parentPath); - } - hasOwnParamBindings(scope) { - for (const name of Object.keys(this.bindings)) { - if (!scope.hasOwnBinding(name)) continue; - const binding = this.bindings[name]; - if (binding.kind === "param" && binding.constant) return true; + this.tokenChar(125); } - return false; - } - run() { - this.path.traverse(referenceVisitor, this); - if (this.mutableBinding) return; - this.getCompatibleScopes(); - const attachTo = this.getAttachmentPath(); - if (!attachTo) return; - if (attachTo.getFunctionParent() === this.path.getFunctionParent()) return; - let uid = attachTo.scope.generateUidIdentifier("ref"); - const declarator = variableDeclarator(uid, this.path.node); - const insertFn = this.attachAfter ? "insertAfter" : "insertBefore"; - const [attached] = attachTo[insertFn]([attachTo.isVariableDeclarator() ? declarator : variableDeclaration("var", [declarator])]); - const parent = this.path.parentPath; - if (parent.isJSXElement() && this.path.container === parent.node.children) { - uid = jsxExpressionContainer(uid); + if (node.source) { + var _node$attributes2, _node$assertions2; + this.space(); + this.word("from"); + this.space(); + if ((_node$attributes2 = node.attributes) != null && _node$attributes2.length || (_node$assertions2 = node.assertions) != null && _node$assertions2.length) { + this.print(node.source, node, true); + this.space(); + this._printAttributes(node); + } else { + this.print(node.source, node); + } } - this.path.replaceWith(cloneNode(uid)); - return attachTo.isVariableDeclarator() ? attached.get("init") : attached.get("declarations.0.init"); + this.semicolon(); } } -exports["default"] = PathHoister; - -//# sourceMappingURL=hoister.js.map - - -/***/ }), - -/***/ 99406: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.hooks = void 0; -const hooks = [function (self, parent) { - const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement(); - if (removeParent) { - parent.remove(); - return true; - } -}, function (self, parent) { - if (parent.isSequenceExpression() && parent.node.expressions.length === 1) { - parent.replaceWith(parent.node.expressions[0]); - return true; +function ExportDefaultDeclaration(node) { + maybePrintDecoratorsBeforeExport(this, node); + this.word("export"); + this.noIndentInnerCommentsHere(); + this.space(); + this.word("default"); + this.space(); + const declar = node.declaration; + this.print(declar, node); + if (!isStatement(declar)) this.semicolon(); +} +function ImportDeclaration(node) { + var _node$attributes3, _node$assertions3; + this.word("import"); + this.space(); + const isTypeKind = node.importKind === "type" || node.importKind === "typeof"; + if (isTypeKind) { + this.noIndentInnerCommentsHere(); + this.word(node.importKind); + this.space(); + } else if (node.module) { + this.noIndentInnerCommentsHere(); + this.word("module"); + this.space(); + } else if (node.phase) { + this.noIndentInnerCommentsHere(); + this.word(node.phase); + this.space(); } -}, function (self, parent) { - if (parent.isBinary()) { - if (self.key === "left") { - parent.replaceWith(parent.node.right); + const specifiers = node.specifiers.slice(0); + const hasSpecifiers = !!specifiers.length; + while (hasSpecifiers) { + const first = specifiers[0]; + if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) { + this.print(specifiers.shift(), node); + if (specifiers.length) { + this.tokenChar(44); + this.space(); + } } else { - parent.replaceWith(parent.node.left); + break; } - return true; - } -}, function (self, parent) { - if (parent.isIfStatement() && self.key === "consequent" || self.key === "body" && (parent.isLoop() || parent.isArrowFunctionExpression())) { - self.replaceWith({ - type: "BlockStatement", - body: [] - }); - return true; } -}]; -exports.hooks = hooks; - -//# sourceMappingURL=removal-hooks.js.map - - -/***/ }), - -/***/ 71936: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.isBindingIdentifier = isBindingIdentifier; -exports.isBlockScoped = isBlockScoped; -exports.isExistentialTypeParam = isExistentialTypeParam; -exports.isExpression = isExpression; -exports.isFlow = isFlow; -exports.isForAwaitStatement = isForAwaitStatement; -exports.isGenerated = isGenerated; -exports.isNumericLiteralTypeAnnotation = isNumericLiteralTypeAnnotation; -exports.isPure = isPure; -exports.isReferenced = isReferenced; -exports.isReferencedIdentifier = isReferencedIdentifier; -exports.isReferencedMemberExpression = isReferencedMemberExpression; -exports.isRestProperty = isRestProperty; -exports.isScope = isScope; -exports.isSpreadProperty = isSpreadProperty; -exports.isStatement = isStatement; -exports.isUser = isUser; -exports.isVar = isVar; -var _t = __nccwpck_require__(53501); -const { - isBinding, - isBlockScoped: nodeIsBlockScoped, - isExportDeclaration, - isExpression: nodeIsExpression, - isFlow: nodeIsFlow, - isForStatement, - isForXStatement, - isIdentifier, - isImportDeclaration, - isImportSpecifier, - isJSXIdentifier, - isJSXMemberExpression, - isMemberExpression, - isRestElement: nodeIsRestElement, - isReferenced: nodeIsReferenced, - isScope: nodeIsScope, - isStatement: nodeIsStatement, - isVar: nodeIsVar, - isVariableDeclaration, - react, - isForOfStatement -} = _t; -const { - isCompatTag -} = react; -function isReferencedIdentifier(opts) { - const { - node, - parent - } = this; - if (!isIdentifier(node, opts) && !isJSXMemberExpression(parent, opts)) { - if (isJSXIdentifier(node, opts)) { - if (isCompatTag(node.name)) return false; - } else { - return false; - } + if (specifiers.length) { + this.tokenChar(123); + this.space(); + this.printList(specifiers, node); + this.space(); + this.tokenChar(125); + } else if (isTypeKind && !hasSpecifiers) { + this.tokenChar(123); + this.tokenChar(125); } - return nodeIsReferenced(node, parent, this.parentPath.parent); -} -function isReferencedMemberExpression() { - const { - node, - parent - } = this; - return isMemberExpression(node) && nodeIsReferenced(node, parent); -} -function isBindingIdentifier() { - const { - node, - parent - } = this; - const grandparent = this.parentPath.parent; - return isIdentifier(node) && isBinding(node, parent, grandparent); -} -function isStatement() { - const { - node, - parent - } = this; - if (nodeIsStatement(node)) { - if (isVariableDeclaration(node)) { - if (isForXStatement(parent, { - left: node - })) return false; - if (isForStatement(parent, { - init: node - })) return false; - } - return true; - } else { - return false; + if (hasSpecifiers || isTypeKind) { + this.space(); + this.word("from"); + this.space(); } -} -function isExpression() { - if (this.isIdentifier()) { - return this.isReferencedIdentifier(); + if ((_node$attributes3 = node.attributes) != null && _node$attributes3.length || (_node$assertions3 = node.assertions) != null && _node$assertions3.length) { + this.print(node.source, node, true); + this.space(); + this._printAttributes(node); } else { - return nodeIsExpression(this.node); + this.print(node.source, node); } + this.semicolon(); } -function isScope() { - return nodeIsScope(this.node, this.parent); -} -function isReferenced() { - return nodeIsReferenced(this.node, this.parent); -} -function isBlockScoped() { - return nodeIsBlockScoped(this.node); -} -function isVar() { - return nodeIsVar(this.node); -} -function isUser() { - return this.node && !!this.node.loc; -} -function isGenerated() { - return !this.isUser(); +function ImportAttribute(node) { + this.print(node.key); + this.tokenChar(58); + this.space(); + this.print(node.value); } -function isPure(constantsOnly) { - return this.scope.isPure(this.node, constantsOnly); +function ImportNamespaceSpecifier(node) { + this.tokenChar(42); + this.space(); + this.word("as"); + this.space(); + this.print(node.local, node); } -function isFlow() { - const { - node - } = this; - if (nodeIsFlow(node)) { - return true; - } else if (isImportDeclaration(node)) { - return node.importKind === "type" || node.importKind === "typeof"; - } else if (isExportDeclaration(node)) { - return node.exportKind === "type"; - } else if (isImportSpecifier(node)) { - return node.importKind === "type" || node.importKind === "typeof"; - } else { - return false; +function ImportExpression(node) { + this.word("import"); + if (node.phase) { + this.tokenChar(46); + this.word(node.phase); } + this.tokenChar(40); + this.print(node.source, node); + if (node.options != null) { + this.tokenChar(44); + this.space(); + this.print(node.options, node); + } + this.tokenChar(41); } -function isRestProperty() { - return nodeIsRestElement(this.node) && this.parentPath && this.parentPath.isObjectPattern(); -} -function isSpreadProperty() { - return nodeIsRestElement(this.node) && this.parentPath && this.parentPath.isObjectExpression(); -} -function isForAwaitStatement() { - return isForOfStatement(this.node, { - await: true - }); -} -function isExistentialTypeParam() { - throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7."); -} -function isNumericLiteralTypeAnnotation() { - throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7."); -} - -//# sourceMappingURL=virtual-types-validator.js.map - - -/***/ }), - -/***/ 91518: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.Var = exports.User = exports.Statement = exports.SpreadProperty = exports.Scope = exports.RestProperty = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = exports.Referenced = exports.Pure = exports.NumericLiteralTypeAnnotation = exports.Generated = exports.ForAwaitStatement = exports.Flow = exports.Expression = exports.ExistentialTypeParam = exports.BlockScoped = exports.BindingIdentifier = void 0; -const ReferencedIdentifier = ["Identifier", "JSXIdentifier"]; -exports.ReferencedIdentifier = ReferencedIdentifier; -const ReferencedMemberExpression = ["MemberExpression"]; -exports.ReferencedMemberExpression = ReferencedMemberExpression; -const BindingIdentifier = ["Identifier"]; -exports.BindingIdentifier = BindingIdentifier; -const Statement = ["Statement"]; -exports.Statement = Statement; -const Expression = ["Expression"]; -exports.Expression = Expression; -const Scope = ["Scopable", "Pattern"]; -exports.Scope = Scope; -const Referenced = null; -exports.Referenced = Referenced; -const BlockScoped = null; -exports.BlockScoped = BlockScoped; -const Var = ["VariableDeclaration"]; -exports.Var = Var; -const User = null; -exports.User = User; -const Generated = null; -exports.Generated = Generated; -const Pure = null; -exports.Pure = Pure; -const Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"]; -exports.Flow = Flow; -const RestProperty = ["RestElement"]; -exports.RestProperty = RestProperty; -const SpreadProperty = ["RestElement"]; -exports.SpreadProperty = SpreadProperty; -const ExistentialTypeParam = ["ExistsTypeAnnotation"]; -exports.ExistentialTypeParam = ExistentialTypeParam; -const NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"]; -exports.NumericLiteralTypeAnnotation = NumericLiteralTypeAnnotation; -const ForAwaitStatement = ["ForOfStatement"]; -exports.ForAwaitStatement = ForAwaitStatement; -//# sourceMappingURL=virtual-types.js.map +//# sourceMappingURL=modules.js.map /***/ }), -/***/ 14039: +/***/ 72001: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -123339,231 +37499,282 @@ exports.ForAwaitStatement = ForAwaitStatement; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._containerInsert = _containerInsert; -exports._containerInsertAfter = _containerInsertAfter; -exports._containerInsertBefore = _containerInsertBefore; -exports._verifyNodeList = _verifyNodeList; -exports.hoist = hoist; -exports.insertAfter = insertAfter; -exports.insertBefore = insertBefore; -exports.pushContainer = pushContainer; -exports.unshiftContainer = unshiftContainer; -exports.updateSiblingKeys = updateSiblingKeys; -var _cache = __nccwpck_require__(39981); -var _hoister = __nccwpck_require__(9645); -var _index = __nccwpck_require__(785); -var _t = __nccwpck_require__(53501); +exports.BreakStatement = BreakStatement; +exports.CatchClause = CatchClause; +exports.ContinueStatement = ContinueStatement; +exports.DebuggerStatement = DebuggerStatement; +exports.DoWhileStatement = DoWhileStatement; +exports.ForOfStatement = exports.ForInStatement = void 0; +exports.ForStatement = ForStatement; +exports.IfStatement = IfStatement; +exports.LabeledStatement = LabeledStatement; +exports.ReturnStatement = ReturnStatement; +exports.SwitchCase = SwitchCase; +exports.SwitchStatement = SwitchStatement; +exports.ThrowStatement = ThrowStatement; +exports.TryStatement = TryStatement; +exports.VariableDeclaration = VariableDeclaration; +exports.VariableDeclarator = VariableDeclarator; +exports.WhileStatement = WhileStatement; +exports.WithStatement = WithStatement; +var _t = __nccwpck_require__(68948); const { - arrowFunctionExpression, - assertExpression, - assignmentExpression, - blockStatement, - callExpression, - cloneNode, - expressionStatement, - isAssignmentExpression, - isCallExpression, - isExportNamedDeclaration, - isExpression, - isIdentifier, - isSequenceExpression, - isSuper, - thisExpression + isFor, + isForStatement, + isIfStatement, + isStatement } = _t; -function insertBefore(nodes_) { - this._assertUnremoved(); - const nodes = this._verifyNodeList(nodes_); +function WithStatement(node) { + this.word("with"); + this.space(); + this.tokenChar(40); + this.print(node.object, node); + this.tokenChar(41); + this.printBlock(node); +} +function IfStatement(node) { + this.word("if"); + this.space(); + this.tokenChar(40); + this.print(node.test, node); + this.tokenChar(41); + this.space(); + const needsBlock = node.alternate && isIfStatement(getLastStatement(node.consequent)); + if (needsBlock) { + this.tokenChar(123); + this.newline(); + this.indent(); + } + this.printAndIndentOnComments(node.consequent, node); + if (needsBlock) { + this.dedent(); + this.newline(); + this.tokenChar(125); + } + if (node.alternate) { + if (this.endsWith(125)) this.space(); + this.word("else"); + this.space(); + this.printAndIndentOnComments(node.alternate, node); + } +} +function getLastStatement(statement) { const { - parentPath, - parent - } = this; - if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { - return parentPath.insertBefore(nodes); - } else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") { - if (this.node) nodes.push(this.node); - return this.replaceExpressionWithStatements(nodes); - } else if (Array.isArray(this.container)) { - return this._containerInsertBefore(nodes); - } else if (this.isStatementOrBlock()) { - const node = this.node; - const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); - this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); - return this.unshiftContainer("body", nodes); - } else { - throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); + body + } = statement; + if (isStatement(body) === false) { + return statement; + } + return getLastStatement(body); +} +function ForStatement(node) { + this.word("for"); + this.space(); + this.tokenChar(40); + this.inForStatementInitCounter++; + this.print(node.init, node); + this.inForStatementInitCounter--; + this.tokenChar(59); + if (node.test) { + this.space(); + this.print(node.test, node); + } + this.tokenChar(59); + if (node.update) { + this.space(); + this.print(node.update, node); } + this.tokenChar(41); + this.printBlock(node); } -function _containerInsert(from, nodes) { - this.updateSiblingKeys(from, nodes.length); - const paths = []; - this.container.splice(from, 0, ...nodes); - for (let i = 0; i < nodes.length; i++) { - const to = from + i; - const path = this.getSibling(to); - paths.push(path); - if (this.context && this.context.queue) { - path.pushContext(this.context); - } +function WhileStatement(node) { + this.word("while"); + this.space(); + this.tokenChar(40); + this.print(node.test, node); + this.tokenChar(41); + this.printBlock(node); +} +function ForXStatement(node) { + this.word("for"); + this.space(); + const isForOf = node.type === "ForOfStatement"; + if (isForOf && node.await) { + this.word("await"); + this.space(); } - const contexts = this._getQueueContexts(); - for (const path of paths) { - path.setScope(); - path.debug("Inserted."); - for (const context of contexts) { - context.maybeQueue(path, true); - } + this.noIndentInnerCommentsHere(); + this.tokenChar(40); + this.print(node.left, node); + this.space(); + this.word(isForOf ? "of" : "in"); + this.space(); + this.print(node.right, node); + this.tokenChar(41); + this.printBlock(node); +} +const ForInStatement = exports.ForInStatement = ForXStatement; +const ForOfStatement = exports.ForOfStatement = ForXStatement; +function DoWhileStatement(node) { + this.word("do"); + this.space(); + this.print(node.body, node); + this.space(); + this.word("while"); + this.space(); + this.tokenChar(40); + this.print(node.test, node); + this.tokenChar(41); + this.semicolon(); +} +function printStatementAfterKeyword(printer, node, parent, isLabel) { + if (node) { + printer.space(); + printer.printTerminatorless(node, parent, isLabel); } - return paths; + printer.semicolon(); } -function _containerInsertBefore(nodes) { - return this._containerInsert(this.key, nodes); +function BreakStatement(node) { + this.word("break"); + printStatementAfterKeyword(this, node.label, node, true); } -function _containerInsertAfter(nodes) { - return this._containerInsert(this.key + 1, nodes); +function ContinueStatement(node) { + this.word("continue"); + printStatementAfterKeyword(this, node.label, node, true); } -const last = arr => arr[arr.length - 1]; -function isHiddenInSequenceExpression(path) { - return isSequenceExpression(path.parent) && (last(path.parent.expressions) !== path.node || isHiddenInSequenceExpression(path.parentPath)); +function ReturnStatement(node) { + this.word("return"); + printStatementAfterKeyword(this, node.argument, node, false); } -function isAlmostConstantAssignment(node, scope) { - if (!isAssignmentExpression(node) || !isIdentifier(node.left)) { - return false; +function ThrowStatement(node) { + this.word("throw"); + printStatementAfterKeyword(this, node.argument, node, false); +} +function LabeledStatement(node) { + this.print(node.label, node); + this.tokenChar(58); + this.space(); + this.print(node.body, node); +} +function TryStatement(node) { + this.word("try"); + this.space(); + this.print(node.block, node); + this.space(); + if (node.handlers) { + this.print(node.handlers[0], node); + } else { + this.print(node.handler, node); + } + if (node.finalizer) { + this.space(); + this.word("finally"); + this.space(); + this.print(node.finalizer, node); } - const blockScope = scope.getBlockParent(); - return blockScope.hasOwnBinding(node.left.name) && blockScope.getOwnBinding(node.left.name).constantViolations.length <= 1; } -function insertAfter(nodes_) { - this._assertUnremoved(); - if (this.isSequenceExpression()) { - return last(this.get("expressions")).insertAfter(nodes_); +function CatchClause(node) { + this.word("catch"); + this.space(); + if (node.param) { + this.tokenChar(40); + this.print(node.param, node); + this.print(node.param.typeAnnotation, node); + this.tokenChar(41); + this.space(); } - const nodes = this._verifyNodeList(nodes_); - const { - parentPath, - parent - } = this; - if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { - return parentPath.insertAfter(nodes.map(node => { - return isExpression(node) ? expressionStatement(node) : node; - })); - } else if (this.isNodeType("Expression") && !this.isJSXElement() && !parentPath.isJSXElement() || parentPath.isForStatement() && this.key === "init") { - if (this.node) { - const node = this.node; - let { - scope - } = this; - if (scope.path.isPattern()) { - assertExpression(node); - this.replaceWith(callExpression(arrowFunctionExpression([], node), [])); - this.get("callee.body").insertAfter(nodes); - return [this]; - } - if (isHiddenInSequenceExpression(this)) { - nodes.unshift(node); - } else if (isCallExpression(node) && isSuper(node.callee)) { - nodes.unshift(node); - nodes.push(thisExpression()); - } else if (isAlmostConstantAssignment(node, scope)) { - nodes.unshift(node); - nodes.push(cloneNode(node.left)); - } else if (scope.isPure(node, true)) { - nodes.push(node); - } else { - if (parentPath.isMethod({ - computed: true, - key: node - })) { - scope = scope.parent; - } - const temp = scope.generateDeclaredUidIdentifier(); - nodes.unshift(expressionStatement(assignmentExpression("=", cloneNode(temp), node))); - nodes.push(expressionStatement(cloneNode(temp))); - } + this.print(node.body, node); +} +function SwitchStatement(node) { + this.word("switch"); + this.space(); + this.tokenChar(40); + this.print(node.discriminant, node); + this.tokenChar(41); + this.space(); + this.tokenChar(123); + this.printSequence(node.cases, node, { + indent: true, + addNewlines(leading, cas) { + if (!leading && node.cases[node.cases.length - 1] === cas) return -1; } - return this.replaceExpressionWithStatements(nodes); - } else if (Array.isArray(this.container)) { - return this._containerInsertAfter(nodes); - } else if (this.isStatementOrBlock()) { - const node = this.node; - const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); - this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); - return this.pushContainer("body", nodes); + }); + this.rightBrace(node); +} +function SwitchCase(node) { + if (node.test) { + this.word("case"); + this.space(); + this.print(node.test, node); + this.tokenChar(58); } else { - throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); + this.word("default"); + this.tokenChar(58); } -} -function updateSiblingKeys(fromIndex, incrementBy) { - if (!this.parent) return; - const paths = _cache.path.get(this.parent); - for (const [, path] of paths) { - if (typeof path.key === "number" && path.key >= fromIndex) { - path.key += incrementBy; - } + if (node.consequent.length) { + this.newline(); + this.printSequence(node.consequent, node, { + indent: true + }); } } -function _verifyNodeList(nodes) { - if (!nodes) { - return []; - } - if (!Array.isArray(nodes)) { - nodes = [nodes]; +function DebuggerStatement() { + this.word("debugger"); + this.semicolon(); +} +function VariableDeclaration(node, parent) { + if (node.declare) { + this.word("declare"); + this.space(); } - for (let i = 0; i < nodes.length; i++) { - const node = nodes[i]; - let msg; - if (!node) { - msg = "has falsy node"; - } else if (typeof node !== "object") { - msg = "contains a non-object node"; - } else if (!node.type) { - msg = "without a type"; - } else if (node instanceof _index.default) { - msg = "has a NodePath when it expected a raw object"; + const { + kind + } = node; + this.word(kind, kind === "using" || kind === "await using"); + this.space(); + let hasInits = false; + if (!isFor(parent)) { + for (const declar of node.declarations) { + if (declar.init) { + hasInits = true; + } } - if (msg) { - const type = Array.isArray(node) ? "array" : typeof node; - throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`); + } + this.printList(node.declarations, node, { + separator: hasInits ? function () { + this.tokenChar(44); + this.newline(); + } : undefined, + indent: node.declarations.length > 1 ? true : false + }); + if (isFor(parent)) { + if (isForStatement(parent)) { + if (parent.init === node) return; + } else { + if (parent.left === node) return; } } - return nodes; -} -function unshiftContainer(listKey, nodes) { - this._assertUnremoved(); - nodes = this._verifyNodeList(nodes); - const path = _index.default.get({ - parentPath: this, - parent: this.node, - container: this.node[listKey], - listKey, - key: 0 - }).setContext(this.context); - return path._containerInsertBefore(nodes); -} -function pushContainer(listKey, nodes) { - this._assertUnremoved(); - const verifiedNodes = this._verifyNodeList(nodes); - const container = this.node[listKey]; - const path = _index.default.get({ - parentPath: this, - parent: this.node, - container: container, - listKey, - key: container.length - }).setContext(this.context); - return path.replaceWithMultiple(verifiedNodes); + this.semicolon(); } -function hoist(scope = this.scope) { - const hoister = new _hoister.default(this, scope); - return hoister.run(); +function VariableDeclarator(node) { + this.print(node.id, node); + if (node.definite) this.tokenChar(33); + this.print(node.id.typeAnnotation, node); + if (node.init) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.init, node); + } } -//# sourceMappingURL=modification.js.map +//# sourceMappingURL=statements.js.map /***/ }), -/***/ 8021: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 10870: +/***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -123571,64 +37782,36 @@ function hoist(scope = this.scope) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._assertUnremoved = _assertUnremoved; -exports._callRemovalHooks = _callRemovalHooks; -exports._markRemoved = _markRemoved; -exports._remove = _remove; -exports._removeFromScope = _removeFromScope; -exports.remove = remove; -var _removalHooks = __nccwpck_require__(99406); -var _cache = __nccwpck_require__(39981); -var _index = __nccwpck_require__(785); -function remove() { - var _this$opts; - this._assertUnremoved(); - this.resync(); - if (!((_this$opts = this.opts) != null && _this$opts.noScope)) { - this._removeFromScope(); - } - if (this._callRemovalHooks()) { - this._markRemoved(); - return; - } - this.shareCommentsWithSiblings(); - this._remove(); - this._markRemoved(); -} -function _removeFromScope() { - const bindings = this.getBindingIdentifiers(); - Object.keys(bindings).forEach(name => this.scope.removeBinding(name)); -} -function _callRemovalHooks() { - for (const fn of _removalHooks.hooks) { - if (fn(this, this.parentPath)) return true; - } -} -function _remove() { - if (Array.isArray(this.container)) { - this.container.splice(this.key, 1); - this.updateSiblingKeys(this.key, -1); - } else { - this._replaceWith(null); - } +exports.TaggedTemplateExpression = TaggedTemplateExpression; +exports.TemplateElement = TemplateElement; +exports.TemplateLiteral = TemplateLiteral; +function TaggedTemplateExpression(node) { + this.print(node.tag, node); + this.print(node.typeParameters, node); + this.print(node.quasi, node); } -function _markRemoved() { - this._traverseFlags |= _index.SHOULD_SKIP | _index.REMOVED; - if (this.parent) _cache.path.get(this.parent).delete(this.node); - this.node = null; +function TemplateElement(node, parent) { + const isFirst = parent.quasis[0] === node; + const isLast = parent.quasis[parent.quasis.length - 1] === node; + const value = (isFirst ? "`" : "}") + node.value.raw + (isLast ? "`" : "${"); + this.token(value, true); } -function _assertUnremoved() { - if (this.removed) { - throw this.buildCodeFrameError("NodePath has been removed so is read-only."); +function TemplateLiteral(node) { + const quasis = node.quasis; + for (let i = 0; i < quasis.length; i++) { + this.print(quasis[i], node); + if (i + 1 < quasis.length) { + this.print(node.expressions[i], node); + } } } -//# sourceMappingURL=removal.js.map +//# sourceMappingURL=template-literals.js.map /***/ }), -/***/ 2449: +/***/ 93674: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -123637,211 +37820,227 @@ function _assertUnremoved() { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports._replaceWith = _replaceWith; -exports.replaceExpressionWithStatements = replaceExpressionWithStatements; -exports.replaceInline = replaceInline; -exports.replaceWith = replaceWith; -exports.replaceWithMultiple = replaceWithMultiple; -exports.replaceWithSourceString = replaceWithSourceString; -var _codeFrame = __nccwpck_require__(93995); -var _index = __nccwpck_require__(34160); -var _index2 = __nccwpck_require__(785); -var _cache = __nccwpck_require__(39981); -var _parser = __nccwpck_require__(42973); -var _t = __nccwpck_require__(53501); -var _helperHoistVariables = __nccwpck_require__(51194); +exports.ArgumentPlaceholder = ArgumentPlaceholder; +exports.ArrayPattern = exports.ArrayExpression = ArrayExpression; +exports.BigIntLiteral = BigIntLiteral; +exports.BooleanLiteral = BooleanLiteral; +exports.DecimalLiteral = DecimalLiteral; +exports.Identifier = Identifier; +exports.NullLiteral = NullLiteral; +exports.NumericLiteral = NumericLiteral; +exports.ObjectPattern = exports.ObjectExpression = ObjectExpression; +exports.ObjectMethod = ObjectMethod; +exports.ObjectProperty = ObjectProperty; +exports.PipelineBareFunction = PipelineBareFunction; +exports.PipelinePrimaryTopicReference = PipelinePrimaryTopicReference; +exports.PipelineTopicExpression = PipelineTopicExpression; +exports.RecordExpression = RecordExpression; +exports.RegExpLiteral = RegExpLiteral; +exports.SpreadElement = exports.RestElement = RestElement; +exports.StringLiteral = StringLiteral; +exports.TopicReference = TopicReference; +exports.TupleExpression = TupleExpression; +var _t = __nccwpck_require__(68948); +var _jsesc = __nccwpck_require__(92095); const { - FUNCTION_TYPES, - arrowFunctionExpression, - assignmentExpression, - awaitExpression, - blockStatement, - callExpression, - cloneNode, - expressionStatement, - identifier, - inheritLeadingComments, - inheritTrailingComments, - inheritsComments, - isExpression, - isProgram, - isStatement, - removeComments, - returnStatement, - toSequenceExpression, - validate, - yieldExpression + isAssignmentPattern, + isIdentifier } = _t; -function replaceWithMultiple(nodes) { - var _pathCache$get; - this.resync(); - nodes = this._verifyNodeList(nodes); - inheritLeadingComments(nodes[0], this.node); - inheritTrailingComments(nodes[nodes.length - 1], this.node); - (_pathCache$get = _cache.path.get(this.parent)) == null ? void 0 : _pathCache$get.delete(this.node); - this.node = this.container[this.key] = null; - const paths = this.insertAfter(nodes); - if (this.node) { - this.requeue(); - } else { - this.remove(); +function Identifier(node) { + var _node$loc; + this.sourceIdentifierName(((_node$loc = node.loc) == null ? void 0 : _node$loc.identifierName) || node.name); + this.word(node.name); +} +function ArgumentPlaceholder() { + this.tokenChar(63); +} +function RestElement(node) { + this.token("..."); + this.print(node.argument, node); +} +function ObjectExpression(node) { + const props = node.properties; + this.tokenChar(123); + if (props.length) { + this.space(); + this.printList(props, node, { + indent: true, + statement: true + }); + this.space(); } - return paths; + this.sourceWithOffset("end", node.loc, -1); + this.tokenChar(125); } -function replaceWithSourceString(replacement) { - this.resync(); - let ast; - try { - replacement = `(${replacement})`; - ast = (0, _parser.parse)(replacement); - } catch (err) { - const loc = err.loc; - if (loc) { - err.message += " - make sure this is an expression.\n" + (0, _codeFrame.codeFrameColumns)(replacement, { - start: { - line: loc.line, - column: loc.column + 1 - } - }); - err.code = "BABEL_REPLACE_SOURCE_ERROR"; +function ObjectMethod(node) { + this.printJoin(node.decorators, node); + this._methodHead(node); + this.space(); + this.print(node.body, node); +} +function ObjectProperty(node) { + this.printJoin(node.decorators, node); + if (node.computed) { + this.tokenChar(91); + this.print(node.key, node); + this.tokenChar(93); + } else { + if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) { + this.print(node.value, node); + return; + } + this.print(node.key, node); + if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) { + return; } - throw err; } - const expressionAST = ast.program.body[0].expression; - _index.default.removeProperties(expressionAST); - return this.replaceWith(expressionAST); + this.tokenChar(58); + this.space(); + this.print(node.value, node); } -function replaceWith(replacementPath) { - this.resync(); - if (this.removed) { - throw new Error("You can't replace this node, we've already removed it"); - } - let replacement = replacementPath instanceof _index2.default ? replacementPath.node : replacementPath; - if (!replacement) { - throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead"); - } - if (this.node === replacement) { - return [this]; - } - if (this.isProgram() && !isProgram(replacement)) { - throw new Error("You can only replace a Program root node with another Program node"); +function ArrayExpression(node) { + const elems = node.elements; + const len = elems.length; + this.tokenChar(91); + for (let i = 0; i < elems.length; i++) { + const elem = elems[i]; + if (elem) { + if (i > 0) this.space(); + this.print(elem, node); + if (i < len - 1) this.tokenChar(44); + } else { + this.tokenChar(44); + } } - if (Array.isArray(replacement)) { - throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`"); + this.tokenChar(93); +} +function RecordExpression(node) { + const props = node.properties; + let startToken; + let endToken; + if (this.format.recordAndTupleSyntaxType === "bar") { + startToken = "{|"; + endToken = "|}"; + } else if (this.format.recordAndTupleSyntaxType !== "hash" && this.format.recordAndTupleSyntaxType != null) { + throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`); + } else { + startToken = "#{"; + endToken = "}"; } - if (typeof replacement === "string") { - throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`"); + this.token(startToken); + if (props.length) { + this.space(); + this.printList(props, node, { + indent: true, + statement: true + }); + this.space(); } - let nodePath = ""; - if (this.isNodeType("Statement") && isExpression(replacement)) { - if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement) && !this.parentPath.isExportDefaultDeclaration()) { - replacement = expressionStatement(replacement); - nodePath = "expression"; - } + this.token(endToken); +} +function TupleExpression(node) { + const elems = node.elements; + const len = elems.length; + let startToken; + let endToken; + if (this.format.recordAndTupleSyntaxType === "bar") { + startToken = "[|"; + endToken = "|]"; + } else if (this.format.recordAndTupleSyntaxType === "hash") { + startToken = "#["; + endToken = "]"; + } else { + throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`); } - if (this.isNodeType("Expression") && isStatement(replacement)) { - if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement)) { - return this.replaceExpressionWithStatements([replacement]); + this.token(startToken); + for (let i = 0; i < elems.length; i++) { + const elem = elems[i]; + if (elem) { + if (i > 0) this.space(); + this.print(elem, node); + if (i < len - 1) this.tokenChar(44); } } - const oldNode = this.node; - if (oldNode) { - inheritsComments(replacement, oldNode); - removeComments(oldNode); - } - this._replaceWith(replacement); - this.type = replacement.type; - this.setScope(); - this.requeue(); - return [nodePath ? this.get(nodePath) : this]; + this.token(endToken); } -function _replaceWith(node) { - var _pathCache$get2; - if (!this.container) { - throw new ReferenceError("Container is falsy"); - } - if (this.inList) { - validate(this.parent, this.key, [node]); +function RegExpLiteral(node) { + this.word(`/${node.pattern}/${node.flags}`); +} +function BooleanLiteral(node) { + this.word(node.value ? "true" : "false"); +} +function NullLiteral() { + this.word("null"); +} +function NumericLiteral(node) { + const raw = this.getPossibleRaw(node); + const opts = this.format.jsescOption; + const value = node.value; + const str = value + ""; + if (opts.numbers) { + this.number(_jsesc(value, opts), value); + } else if (raw == null) { + this.number(str, value); + } else if (this.format.minified) { + this.number(raw.length < str.length ? raw : str, value); } else { - validate(this.parent, this.key, node); + this.number(raw, value); } - this.debug(`Replace with ${node == null ? void 0 : node.type}`); - (_pathCache$get2 = _cache.path.get(this.parent)) == null ? void 0 : _pathCache$get2.set(node, this).delete(this.node); - this.node = this.container[this.key] = node; } -function replaceExpressionWithStatements(nodes) { - this.resync(); - const nodesAsSequenceExpression = toSequenceExpression(nodes, this.scope); - if (nodesAsSequenceExpression) { - return this.replaceWith(nodesAsSequenceExpression)[0].get("expressions"); - } - const functionParent = this.getFunctionParent(); - const isParentAsync = functionParent == null ? void 0 : functionParent.is("async"); - const isParentGenerator = functionParent == null ? void 0 : functionParent.is("generator"); - const container = arrowFunctionExpression([], blockStatement(nodes)); - this.replaceWith(callExpression(container, [])); - const callee = this.get("callee"); - (0, _helperHoistVariables.default)(callee.get("body"), id => { - this.scope.push({ - id - }); - }, "var"); - const completionRecords = this.get("callee").getCompletionRecords(); - for (const path of completionRecords) { - if (!path.isExpressionStatement()) continue; - const loop = path.findParent(path => path.isLoop()); - if (loop) { - let uid = loop.getData("expressionReplacementReturnUid"); - if (!uid) { - uid = callee.scope.generateDeclaredUidIdentifier("ret"); - callee.get("body").pushContainer("body", returnStatement(cloneNode(uid))); - loop.setData("expressionReplacementReturnUid", uid); - } else { - uid = identifier(uid.name); - } - path.get("expression").replaceWith(assignmentExpression("=", cloneNode(uid), path.node.expression)); - } else { - path.replaceWith(returnStatement(path.node.expression)); - } +function StringLiteral(node) { + const raw = this.getPossibleRaw(node); + if (!this.format.minified && raw !== undefined) { + this.token(raw); + return; } - callee.arrowFunctionToExpression(); - const newCallee = callee; - const needToAwaitFunction = isParentAsync && _index.default.hasType(this.get("callee.body").node, "AwaitExpression", FUNCTION_TYPES); - const needToYieldFunction = isParentGenerator && _index.default.hasType(this.get("callee.body").node, "YieldExpression", FUNCTION_TYPES); - if (needToAwaitFunction) { - newCallee.set("async", true); - if (!needToYieldFunction) { - this.replaceWith(awaitExpression(this.node)); - } + const val = _jsesc(node.value, this.format.jsescOption); + this.token(val); +} +function BigIntLiteral(node) { + const raw = this.getPossibleRaw(node); + if (!this.format.minified && raw !== undefined) { + this.word(raw); + return; } - if (needToYieldFunction) { - newCallee.set("generator", true); - this.replaceWith(yieldExpression(this.node, true)); + this.word(node.value + "n"); +} +function DecimalLiteral(node) { + const raw = this.getPossibleRaw(node); + if (!this.format.minified && raw !== undefined) { + this.word(raw); + return; } - return newCallee.get("body.body"); + this.word(node.value + "m"); } -function replaceInline(nodes) { - this.resync(); - if (Array.isArray(nodes)) { - if (Array.isArray(this.container)) { - nodes = this._verifyNodeList(nodes); - const paths = this._containerInsertAfter(nodes); - this.remove(); - return paths; - } else { - return this.replaceWithMultiple(nodes); - } +const validTopicTokenSet = new Set(["^^", "@@", "^", "%", "#"]); +function TopicReference() { + const { + topicToken + } = this.format; + if (validTopicTokenSet.has(topicToken)) { + this.token(topicToken); } else { - return this.replaceWith(nodes); + const givenTopicTokenJSON = JSON.stringify(topicToken); + const validTopics = Array.from(validTopicTokenSet, v => JSON.stringify(v)); + throw new Error(`The "topicToken" generator option must be one of ` + `${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`); } } +function PipelineTopicExpression(node) { + this.print(node.expression, node); +} +function PipelineBareFunction(node) { + this.print(node.callee, node); +} +function PipelinePrimaryTopicReference() { + this.tokenChar(35); +} -//# sourceMappingURL=replacement.js.map +//# sourceMappingURL=types.js.map /***/ }), -/***/ 62652: +/***/ 4835: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -123850,974 +38049,1260 @@ function replaceInline(nodes) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -class Binding { - constructor({ - identifier, - scope, - path, +exports.TSAnyKeyword = TSAnyKeyword; +exports.TSArrayType = TSArrayType; +exports.TSSatisfiesExpression = exports.TSAsExpression = TSTypeExpression; +exports.TSBigIntKeyword = TSBigIntKeyword; +exports.TSBooleanKeyword = TSBooleanKeyword; +exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration; +exports.TSConditionalType = TSConditionalType; +exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration; +exports.TSConstructorType = TSConstructorType; +exports.TSDeclareFunction = TSDeclareFunction; +exports.TSDeclareMethod = TSDeclareMethod; +exports.TSEnumDeclaration = TSEnumDeclaration; +exports.TSEnumMember = TSEnumMember; +exports.TSExportAssignment = TSExportAssignment; +exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments; +exports.TSExternalModuleReference = TSExternalModuleReference; +exports.TSFunctionType = TSFunctionType; +exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration; +exports.TSImportType = TSImportType; +exports.TSIndexSignature = TSIndexSignature; +exports.TSIndexedAccessType = TSIndexedAccessType; +exports.TSInferType = TSInferType; +exports.TSInstantiationExpression = TSInstantiationExpression; +exports.TSInterfaceBody = TSInterfaceBody; +exports.TSInterfaceDeclaration = TSInterfaceDeclaration; +exports.TSIntersectionType = TSIntersectionType; +exports.TSIntrinsicKeyword = TSIntrinsicKeyword; +exports.TSLiteralType = TSLiteralType; +exports.TSMappedType = TSMappedType; +exports.TSMethodSignature = TSMethodSignature; +exports.TSModuleBlock = TSModuleBlock; +exports.TSModuleDeclaration = TSModuleDeclaration; +exports.TSNamedTupleMember = TSNamedTupleMember; +exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration; +exports.TSNeverKeyword = TSNeverKeyword; +exports.TSNonNullExpression = TSNonNullExpression; +exports.TSNullKeyword = TSNullKeyword; +exports.TSNumberKeyword = TSNumberKeyword; +exports.TSObjectKeyword = TSObjectKeyword; +exports.TSOptionalType = TSOptionalType; +exports.TSParameterProperty = TSParameterProperty; +exports.TSParenthesizedType = TSParenthesizedType; +exports.TSPropertySignature = TSPropertySignature; +exports.TSQualifiedName = TSQualifiedName; +exports.TSRestType = TSRestType; +exports.TSStringKeyword = TSStringKeyword; +exports.TSSymbolKeyword = TSSymbolKeyword; +exports.TSThisType = TSThisType; +exports.TSTupleType = TSTupleType; +exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration; +exports.TSTypeAnnotation = TSTypeAnnotation; +exports.TSTypeAssertion = TSTypeAssertion; +exports.TSTypeLiteral = TSTypeLiteral; +exports.TSTypeOperator = TSTypeOperator; +exports.TSTypeParameter = TSTypeParameter; +exports.TSTypeParameterDeclaration = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation; +exports.TSTypePredicate = TSTypePredicate; +exports.TSTypeQuery = TSTypeQuery; +exports.TSTypeReference = TSTypeReference; +exports.TSUndefinedKeyword = TSUndefinedKeyword; +exports.TSUnionType = TSUnionType; +exports.TSUnknownKeyword = TSUnknownKeyword; +exports.TSVoidKeyword = TSVoidKeyword; +exports.tsPrintClassMemberModifiers = tsPrintClassMemberModifiers; +exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType; +exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName; +exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase; +exports.tsPrintTypeLiteralOrInterfaceBody = tsPrintTypeLiteralOrInterfaceBody; +function TSTypeAnnotation(node) { + this.tokenChar(58); + this.space(); + if (node.optional) this.tokenChar(63); + this.print(node.typeAnnotation, node); +} +function TSTypeParameterInstantiation(node, parent) { + this.tokenChar(60); + this.printList(node.params, node, {}); + if (parent.type === "ArrowFunctionExpression" && node.params.length === 1) { + this.tokenChar(44); + } + this.tokenChar(62); +} +function TSTypeParameter(node) { + if (node.in) { + this.word("in"); + this.space(); + } + if (node.out) { + this.word("out"); + this.space(); + } + this.word(node.name); + if (node.constraint) { + this.space(); + this.word("extends"); + this.space(); + this.print(node.constraint, node); + } + if (node.default) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.default, node); + } +} +function TSParameterProperty(node) { + if (node.accessibility) { + this.word(node.accessibility); + this.space(); + } + if (node.readonly) { + this.word("readonly"); + this.space(); + } + this._param(node.parameter); +} +function TSDeclareFunction(node, parent) { + if (node.declare) { + this.word("declare"); + this.space(); + } + this._functionHead(node, parent); + this.tokenChar(59); +} +function TSDeclareMethod(node) { + this._classMethodHead(node); + this.tokenChar(59); +} +function TSQualifiedName(node) { + this.print(node.left, node); + this.tokenChar(46); + this.print(node.right, node); +} +function TSCallSignatureDeclaration(node) { + this.tsPrintSignatureDeclarationBase(node); + this.tokenChar(59); +} +function TSConstructSignatureDeclaration(node) { + this.word("new"); + this.space(); + this.tsPrintSignatureDeclarationBase(node); + this.tokenChar(59); +} +function TSPropertySignature(node) { + const { + readonly + } = node; + if (readonly) { + this.word("readonly"); + this.space(); + } + this.tsPrintPropertyOrMethodName(node); + this.print(node.typeAnnotation, node); + this.tokenChar(59); +} +function tsPrintPropertyOrMethodName(node) { + if (node.computed) { + this.tokenChar(91); + } + this.print(node.key, node); + if (node.computed) { + this.tokenChar(93); + } + if (node.optional) { + this.tokenChar(63); + } +} +function TSMethodSignature(node) { + const { kind - }) { - this.identifier = void 0; - this.scope = void 0; - this.path = void 0; - this.kind = void 0; - this.constantViolations = []; - this.constant = true; - this.referencePaths = []; - this.referenced = false; - this.references = 0; - this.identifier = identifier; - this.scope = scope; - this.path = path; - this.kind = kind; - if ((kind === "var" || kind === "hoisted") && isDeclaredInLoop(path || (() => { - throw new Error("Internal Babel error: unreachable "); - })())) { - this.reassign(path); - } - this.clearValue(); + } = node; + if (kind === "set" || kind === "get") { + this.word(kind); + this.space(); } - deoptValue() { - this.clearValue(); - this.hasDeoptedValue = true; + this.tsPrintPropertyOrMethodName(node); + this.tsPrintSignatureDeclarationBase(node); + this.tokenChar(59); +} +function TSIndexSignature(node) { + const { + readonly, + static: isStatic + } = node; + if (isStatic) { + this.word("static"); + this.space(); } - setValue(value) { - if (this.hasDeoptedValue) return; - this.hasValue = true; - this.value = value; + if (readonly) { + this.word("readonly"); + this.space(); } - clearValue() { - this.hasDeoptedValue = false; - this.hasValue = false; - this.value = null; + this.tokenChar(91); + this._parameters(node.parameters, node); + this.tokenChar(93); + this.print(node.typeAnnotation, node); + this.tokenChar(59); +} +function TSAnyKeyword() { + this.word("any"); +} +function TSBigIntKeyword() { + this.word("bigint"); +} +function TSUnknownKeyword() { + this.word("unknown"); +} +function TSNumberKeyword() { + this.word("number"); +} +function TSObjectKeyword() { + this.word("object"); +} +function TSBooleanKeyword() { + this.word("boolean"); +} +function TSStringKeyword() { + this.word("string"); +} +function TSSymbolKeyword() { + this.word("symbol"); +} +function TSVoidKeyword() { + this.word("void"); +} +function TSUndefinedKeyword() { + this.word("undefined"); +} +function TSNullKeyword() { + this.word("null"); +} +function TSNeverKeyword() { + this.word("never"); +} +function TSIntrinsicKeyword() { + this.word("intrinsic"); +} +function TSThisType() { + this.word("this"); +} +function TSFunctionType(node) { + this.tsPrintFunctionOrConstructorType(node); +} +function TSConstructorType(node) { + if (node.abstract) { + this.word("abstract"); + this.space(); } - reassign(path) { - this.constant = false; - if (this.constantViolations.indexOf(path) !== -1) { - return; + this.word("new"); + this.space(); + this.tsPrintFunctionOrConstructorType(node); +} +function tsPrintFunctionOrConstructorType(node) { + const { + typeParameters + } = node; + const parameters = node.parameters; + this.print(typeParameters, node); + this.tokenChar(40); + this._parameters(parameters, node); + this.tokenChar(41); + this.space(); + this.token("=>"); + this.space(); + const returnType = node.typeAnnotation; + this.print(returnType.typeAnnotation, node); +} +function TSTypeReference(node) { + this.print(node.typeName, node, true); + this.print(node.typeParameters, node, true); +} +function TSTypePredicate(node) { + if (node.asserts) { + this.word("asserts"); + this.space(); + } + this.print(node.parameterName); + if (node.typeAnnotation) { + this.space(); + this.word("is"); + this.space(); + this.print(node.typeAnnotation.typeAnnotation); + } +} +function TSTypeQuery(node) { + this.word("typeof"); + this.space(); + this.print(node.exprName); + if (node.typeParameters) { + this.print(node.typeParameters, node); + } +} +function TSTypeLiteral(node) { + this.tsPrintTypeLiteralOrInterfaceBody(node.members, node); +} +function tsPrintTypeLiteralOrInterfaceBody(members, node) { + tsPrintBraced(this, members, node); +} +function tsPrintBraced(printer, members, node) { + printer.token("{"); + if (members.length) { + printer.indent(); + printer.newline(); + for (const member of members) { + printer.print(member, node); + printer.newline(); + } + printer.dedent(); + } + printer.rightBrace(node); +} +function TSArrayType(node) { + this.print(node.elementType, node, true); + this.token("[]"); +} +function TSTupleType(node) { + this.tokenChar(91); + this.printList(node.elementTypes, node); + this.tokenChar(93); +} +function TSOptionalType(node) { + this.print(node.typeAnnotation, node); + this.tokenChar(63); +} +function TSRestType(node) { + this.token("..."); + this.print(node.typeAnnotation, node); +} +function TSNamedTupleMember(node) { + this.print(node.label, node); + if (node.optional) this.tokenChar(63); + this.tokenChar(58); + this.space(); + this.print(node.elementType, node); +} +function TSUnionType(node) { + tsPrintUnionOrIntersectionType(this, node, "|"); +} +function TSIntersectionType(node) { + tsPrintUnionOrIntersectionType(this, node, "&"); +} +function tsPrintUnionOrIntersectionType(printer, node, sep) { + printer.printJoin(node.types, node, { + separator() { + this.space(); + this.token(sep); + this.space(); } - this.constantViolations.push(path); + }); +} +function TSConditionalType(node) { + this.print(node.checkType); + this.space(); + this.word("extends"); + this.space(); + this.print(node.extendsType); + this.space(); + this.tokenChar(63); + this.space(); + this.print(node.trueType); + this.space(); + this.tokenChar(58); + this.space(); + this.print(node.falseType); +} +function TSInferType(node) { + this.token("infer"); + this.space(); + this.print(node.typeParameter); +} +function TSParenthesizedType(node) { + this.tokenChar(40); + this.print(node.typeAnnotation, node); + this.tokenChar(41); +} +function TSTypeOperator(node) { + this.word(node.operator); + this.space(); + this.print(node.typeAnnotation, node); +} +function TSIndexedAccessType(node) { + this.print(node.objectType, node, true); + this.tokenChar(91); + this.print(node.indexType, node); + this.tokenChar(93); +} +function TSMappedType(node) { + const { + nameType, + optional, + readonly, + typeParameter + } = node; + this.tokenChar(123); + this.space(); + if (readonly) { + tokenIfPlusMinus(this, readonly); + this.word("readonly"); + this.space(); } - reference(path) { - if (this.referencePaths.indexOf(path) !== -1) { - return; - } - this.referenced = true; - this.references++; - this.referencePaths.push(path); + this.tokenChar(91); + this.word(typeParameter.name); + this.space(); + this.word("in"); + this.space(); + this.print(typeParameter.constraint, typeParameter); + if (nameType) { + this.space(); + this.word("as"); + this.space(); + this.print(nameType, node); } - dereference() { - this.references--; - this.referenced = !!this.references; + this.tokenChar(93); + if (optional) { + tokenIfPlusMinus(this, optional); + this.tokenChar(63); } + this.tokenChar(58); + this.space(); + this.print(node.typeAnnotation, node); + this.space(); + this.tokenChar(125); } -exports["default"] = Binding; -function isDeclaredInLoop(path) { - for (let { - parentPath, - key - } = path; parentPath; ({ - parentPath, - key - } = parentPath)) { - if (parentPath.isFunctionParent()) return false; - if (parentPath.isWhile() || parentPath.isForXStatement() || parentPath.isForStatement() && key === "body") { - return true; - } +function tokenIfPlusMinus(self, tok) { + if (tok !== true) { + self.token(tok); } - return false; } - -//# sourceMappingURL=binding.js.map - - -/***/ }), - -/***/ 80035: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _renamer = __nccwpck_require__(36221); -var _index = __nccwpck_require__(34160); -var _binding = __nccwpck_require__(62652); -var _globals = __nccwpck_require__(47629); -var _t = __nccwpck_require__(53501); -var _cache = __nccwpck_require__(39981); -var _visitors = __nccwpck_require__(6539); -const { - NOT_LOCAL_BINDING, - callExpression, - cloneNode, - getBindingIdentifiers, - identifier, - isArrayExpression, - isBinary, - isClass, - isClassBody, - isClassDeclaration, - isExportAllDeclaration, - isExportDefaultDeclaration, - isExportNamedDeclaration, - isFunctionDeclaration, - isIdentifier, - isImportDeclaration, - isLiteral, - isMethod, - isModuleSpecifier, - isNullLiteral, - isObjectExpression, - isProperty, - isPureish, - isRegExpLiteral, - isSuper, - isTaggedTemplateExpression, - isTemplateLiteral, - isThisExpression, - isUnaryExpression, - isVariableDeclaration, - matchesPattern, - memberExpression, - numericLiteral, - toIdentifier, - unaryExpression, - variableDeclaration, - variableDeclarator, - isRecordExpression, - isTupleExpression, - isObjectProperty, - isTopicReference, - isMetaProperty, - isPrivateName, - isExportDeclaration -} = _t; -function gatherNodeParts(node, parts) { - switch (node == null ? void 0 : node.type) { - default: - if (isImportDeclaration(node) || isExportDeclaration(node)) { - if ((isExportAllDeclaration(node) || isExportNamedDeclaration(node) || isImportDeclaration(node)) && node.source) { - gatherNodeParts(node.source, parts); - } else if ((isExportNamedDeclaration(node) || isImportDeclaration(node)) && node.specifiers && node.specifiers.length) { - for (const e of node.specifiers) gatherNodeParts(e, parts); - } else if ((isExportDefaultDeclaration(node) || isExportNamedDeclaration(node)) && node.declaration) { - gatherNodeParts(node.declaration, parts); - } - } else if (isModuleSpecifier(node)) { - gatherNodeParts(node.local, parts); - } else if (isLiteral(node) && !isNullLiteral(node) && !isRegExpLiteral(node) && !isTemplateLiteral(node)) { - parts.push(node.value); - } - break; - case "MemberExpression": - case "OptionalMemberExpression": - case "JSXMemberExpression": - gatherNodeParts(node.object, parts); - gatherNodeParts(node.property, parts); - break; - case "Identifier": - case "JSXIdentifier": - parts.push(node.name); - break; - case "CallExpression": - case "OptionalCallExpression": - case "NewExpression": - gatherNodeParts(node.callee, parts); - break; - case "ObjectExpression": - case "ObjectPattern": - for (const e of node.properties) { - gatherNodeParts(e, parts); - } - break; - case "SpreadElement": - case "RestElement": - gatherNodeParts(node.argument, parts); - break; - case "ObjectProperty": - case "ObjectMethod": - case "ClassProperty": - case "ClassMethod": - case "ClassPrivateProperty": - case "ClassPrivateMethod": - gatherNodeParts(node.key, parts); - break; - case "ThisExpression": - parts.push("this"); - break; - case "Super": - parts.push("super"); - break; - case "Import": - parts.push("import"); - break; - case "DoExpression": - parts.push("do"); - break; - case "YieldExpression": - parts.push("yield"); - gatherNodeParts(node.argument, parts); - break; - case "AwaitExpression": - parts.push("await"); - gatherNodeParts(node.argument, parts); - break; - case "AssignmentExpression": - gatherNodeParts(node.left, parts); - break; - case "VariableDeclarator": - gatherNodeParts(node.id, parts); - break; - case "FunctionExpression": - case "FunctionDeclaration": - case "ClassExpression": - case "ClassDeclaration": - gatherNodeParts(node.id, parts); - break; - case "PrivateName": - gatherNodeParts(node.id, parts); - break; - case "ParenthesizedExpression": - gatherNodeParts(node.expression, parts); - break; - case "UnaryExpression": - case "UpdateExpression": - gatherNodeParts(node.argument, parts); - break; - case "MetaProperty": - gatherNodeParts(node.meta, parts); - gatherNodeParts(node.property, parts); - break; - case "JSXElement": - gatherNodeParts(node.openingElement, parts); - break; - case "JSXOpeningElement": - gatherNodeParts(node.name, parts); - break; - case "JSXFragment": - gatherNodeParts(node.openingFragment, parts); - break; - case "JSXOpeningFragment": - parts.push("Fragment"); - break; - case "JSXNamespacedName": - gatherNodeParts(node.namespace, parts); - gatherNodeParts(node.name, parts); - break; - } +function TSLiteralType(node) { + this.print(node.literal, node); } -const collectorVisitor = { - ForStatement(path) { - const declar = path.get("init"); - if (declar.isVar()) { - const { - scope - } = path; - const parentScope = scope.getFunctionParent() || scope.getProgramParent(); - parentScope.registerBinding("var", declar); - } - }, - Declaration(path) { - if (path.isBlockScoped()) return; - if (path.isImportDeclaration()) return; - if (path.isExportDeclaration()) return; - const parent = path.scope.getFunctionParent() || path.scope.getProgramParent(); - parent.registerDeclaration(path); - }, - ImportDeclaration(path) { - const parent = path.scope.getBlockParent(); - parent.registerDeclaration(path); - }, - ReferencedIdentifier(path, state) { - state.references.push(path); - }, - ForXStatement(path, state) { - const left = path.get("left"); - if (left.isPattern() || left.isIdentifier()) { - state.constantViolations.push(path); - } else if (left.isVar()) { - const { - scope - } = path; - const parentScope = scope.getFunctionParent() || scope.getProgramParent(); - parentScope.registerBinding("var", left); - } - }, - ExportDeclaration: { - exit(path) { - const { - node, - scope - } = path; - if (isExportAllDeclaration(node)) return; - const declar = node.declaration; - if (isClassDeclaration(declar) || isFunctionDeclaration(declar)) { - const id = declar.id; - if (!id) return; - const binding = scope.getBinding(id.name); - binding == null ? void 0 : binding.reference(path); - } else if (isVariableDeclaration(declar)) { - for (const decl of declar.declarations) { - for (const name of Object.keys(getBindingIdentifiers(decl))) { - const binding = scope.getBinding(name); - binding == null ? void 0 : binding.reference(path); - } - } - } - } - }, - LabeledStatement(path) { - path.scope.getBlockParent().registerDeclaration(path); - }, - AssignmentExpression(path, state) { - state.assignments.push(path); - }, - UpdateExpression(path, state) { - state.constantViolations.push(path); - }, - UnaryExpression(path, state) { - if (path.node.operator === "delete") { - state.constantViolations.push(path); - } - }, - BlockScoped(path) { - let scope = path.scope; - if (scope.path === path) scope = scope.parent; - const parent = scope.getBlockParent(); - parent.registerDeclaration(path); - if (path.isClassDeclaration() && path.node.id) { - const id = path.node.id; - const name = id.name; - path.scope.bindings[name] = path.scope.parent.getBinding(name); - } - }, - CatchClause(path) { - path.scope.registerBinding("let", path); - }, - Function(path) { - const params = path.get("params"); - for (const param of params) { - path.scope.registerBinding("param", param); - } - if (path.isFunctionExpression() && path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { - path.scope.registerBinding("local", path.get("id"), path); - } - }, - ClassExpression(path) { - if (path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { - path.scope.registerBinding("local", path); - } - } -}; -let uid = 0; -class Scope { - constructor(path) { - this.uid = void 0; - this.path = void 0; - this.block = void 0; - this.labels = void 0; - this.inited = void 0; - this.bindings = void 0; - this.references = void 0; - this.globals = void 0; - this.uids = void 0; - this.data = void 0; - this.crawling = void 0; - const { - node - } = path; - const cached = _cache.scope.get(node); - if ((cached == null ? void 0 : cached.path) === path) { - return cached; - } - _cache.scope.set(node, this); - this.uid = uid++; - this.block = node; - this.path = path; - this.labels = new Map(); - this.inited = false; +function TSExpressionWithTypeArguments(node) { + this.print(node.expression, node); + this.print(node.typeParameters, node); +} +function TSInterfaceDeclaration(node) { + const { + declare, + id, + typeParameters, + extends: extendz, + body + } = node; + if (declare) { + this.word("declare"); + this.space(); } - get parent() { - var _parent; - let parent, - path = this.path; - do { - const shouldSkip = path.key === "key" || path.listKey === "decorators"; - path = path.parentPath; - if (shouldSkip && path.isMethod()) path = path.parentPath; - if (path && path.isScope()) parent = path; - } while (path && !parent); - return (_parent = parent) == null ? void 0 : _parent.scope; + this.word("interface"); + this.space(); + this.print(id, node); + this.print(typeParameters, node); + if (extendz != null && extendz.length) { + this.space(); + this.word("extends"); + this.space(); + this.printList(extendz, node); } - get parentBlock() { - return this.path.parent; + this.space(); + this.print(body, node); +} +function TSInterfaceBody(node) { + this.tsPrintTypeLiteralOrInterfaceBody(node.body, node); +} +function TSTypeAliasDeclaration(node) { + const { + declare, + id, + typeParameters, + typeAnnotation + } = node; + if (declare) { + this.word("declare"); + this.space(); } - get hub() { - return this.path.hub; + this.word("type"); + this.space(); + this.print(id, node); + this.print(typeParameters, node); + this.space(); + this.tokenChar(61); + this.space(); + this.print(typeAnnotation, node); + this.tokenChar(59); +} +function TSTypeExpression(node) { + var _expression$trailingC; + const { + type, + expression, + typeAnnotation + } = node; + const forceParens = !!((_expression$trailingC = expression.trailingComments) != null && _expression$trailingC.length); + this.print(expression, node, true, undefined, forceParens); + this.space(); + this.word(type === "TSAsExpression" ? "as" : "satisfies"); + this.space(); + this.print(typeAnnotation, node); +} +function TSTypeAssertion(node) { + const { + typeAnnotation, + expression + } = node; + this.tokenChar(60); + this.print(typeAnnotation, node); + this.tokenChar(62); + this.space(); + this.print(expression, node); +} +function TSInstantiationExpression(node) { + this.print(node.expression, node); + this.print(node.typeParameters, node); +} +function TSEnumDeclaration(node) { + const { + declare, + const: isConst, + id, + members + } = node; + if (declare) { + this.word("declare"); + this.space(); } - traverse(node, opts, state) { - (0, _index.default)(node, opts, this, state, this.path); + if (isConst) { + this.word("const"); + this.space(); } - generateDeclaredUidIdentifier(name) { - const id = this.generateUidIdentifier(name); - this.push({ - id - }); - return cloneNode(id); + this.word("enum"); + this.space(); + this.print(id, node); + this.space(); + tsPrintBraced(this, members, node); +} +function TSEnumMember(node) { + const { + id, + initializer + } = node; + this.print(id, node); + if (initializer) { + this.space(); + this.tokenChar(61); + this.space(); + this.print(initializer, node); } - generateUidIdentifier(name) { - return identifier(this.generateUid(name)); + this.tokenChar(44); +} +function TSModuleDeclaration(node) { + const { + declare, + id + } = node; + if (declare) { + this.word("declare"); + this.space(); } - generateUid(name = "temp") { - name = toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, ""); - let uid; - let i = 1; - do { - uid = this._generateUid(name, i); - i++; - } while (this.hasLabel(uid) || this.hasBinding(uid) || this.hasGlobal(uid) || this.hasReference(uid)); - const program = this.getProgramParent(); - program.references[uid] = true; - program.uids[uid] = true; - return uid; + if (!node.global) { + this.word(id.type === "Identifier" ? "namespace" : "module"); + this.space(); } - _generateUid(name, i) { - let id = name; - if (i > 1) id += i; - return `_${id}`; + this.print(id, node); + if (!node.body) { + this.tokenChar(59); + return; } - generateUidBasedOnNode(node, defaultName) { - const parts = []; - gatherNodeParts(node, parts); - let id = parts.join("$"); - id = id.replace(/^_/, "") || defaultName || "ref"; - return this.generateUid(id.slice(0, 20)); + let body = node.body; + while (body.type === "TSModuleDeclaration") { + this.tokenChar(46); + this.print(body.id, body); + body = body.body; } - generateUidIdentifierBasedOnNode(node, defaultName) { - return identifier(this.generateUidBasedOnNode(node, defaultName)); + this.space(); + this.print(body, node); +} +function TSModuleBlock(node) { + tsPrintBraced(this, node.body, node); +} +function TSImportType(node) { + const { + argument, + qualifier, + typeParameters + } = node; + this.word("import"); + this.tokenChar(40); + this.print(argument, node); + this.tokenChar(41); + if (qualifier) { + this.tokenChar(46); + this.print(qualifier, node); } - isStatic(node) { - if (isThisExpression(node) || isSuper(node) || isTopicReference(node)) { - return true; - } - if (isIdentifier(node)) { - const binding = this.getBinding(node.name); - if (binding) { - return binding.constant; - } else { - return this.hasBinding(node.name); - } - } - return false; + if (typeParameters) { + this.print(typeParameters, node); } - maybeGenerateMemoised(node, dontPush) { - if (this.isStatic(node)) { - return null; - } else { - const id = this.generateUidIdentifierBasedOnNode(node); - if (!dontPush) { - this.push({ - id - }); - return cloneNode(id); - } - return id; - } +} +function TSImportEqualsDeclaration(node) { + const { + isExport, + id, + moduleReference + } = node; + if (isExport) { + this.word("export"); + this.space(); } - checkBlockScopedCollisions(local, kind, name, id) { - if (kind === "param") return; - if (local.kind === "local") return; - const duplicate = kind === "let" || local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param" && kind === "const"; - if (duplicate) { - throw this.hub.buildError(id, `Duplicate declaration "${name}"`, TypeError); - } + this.word("import"); + this.space(); + this.print(id, node); + this.space(); + this.tokenChar(61); + this.space(); + this.print(moduleReference, node); + this.tokenChar(59); +} +function TSExternalModuleReference(node) { + this.token("require("); + this.print(node.expression, node); + this.tokenChar(41); +} +function TSNonNullExpression(node) { + this.print(node.expression, node); + this.tokenChar(33); +} +function TSExportAssignment(node) { + this.word("export"); + this.space(); + this.tokenChar(61); + this.space(); + this.print(node.expression, node); + this.tokenChar(59); +} +function TSNamespaceExportDeclaration(node) { + this.word("export"); + this.space(); + this.word("as"); + this.space(); + this.word("namespace"); + this.space(); + this.print(node.id, node); +} +function tsPrintSignatureDeclarationBase(node) { + const { + typeParameters + } = node; + const parameters = node.parameters; + this.print(typeParameters, node); + this.tokenChar(40); + this._parameters(parameters, node); + this.tokenChar(41); + const returnType = node.typeAnnotation; + this.print(returnType, node); +} +function tsPrintClassMemberModifiers(node) { + const isField = node.type === "ClassAccessorProperty" || node.type === "ClassProperty"; + if (isField && node.declare) { + this.word("declare"); + this.space(); } - rename(oldName, newName) { - const binding = this.getBinding(oldName); - if (binding) { - newName || (newName = this.generateUidIdentifier(oldName).name); - const renamer = new _renamer.default(binding, oldName, newName); - { - renamer.rename(arguments[2]); - } - } + if (node.accessibility) { + this.word(node.accessibility); + this.space(); } - _renameFromMap(map, oldName, newName, value) { - if (map[oldName]) { - map[newName] = value; - map[oldName] = null; - } + if (node.static) { + this.word("static"); + this.space(); } - dump() { - const sep = "-".repeat(60); - console.log(sep); - let scope = this; - do { - console.log("#", scope.block.type); - for (const name of Object.keys(scope.bindings)) { - const binding = scope.bindings[name]; - console.log(" -", name, { - constant: binding.constant, - references: binding.references, - violations: binding.constantViolations.length, - kind: binding.kind - }); - } - } while (scope = scope.parent); - console.log(sep); + if (node.override) { + this.word("override"); + this.space(); } - toArray(node, i, arrayLikeIsIterable) { - if (isIdentifier(node)) { - const binding = this.getBinding(node.name); - if (binding != null && binding.constant && binding.path.isGenericType("Array")) { - return node; - } - } - if (isArrayExpression(node)) { - return node; - } - if (isIdentifier(node, { - name: "arguments" - })) { - return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"), identifier("prototype")), identifier("slice")), identifier("call")), [node]); - } - let helperName; - const args = [node]; - if (i === true) { - helperName = "toConsumableArray"; - } else if (typeof i === "number") { - args.push(numericLiteral(i)); - helperName = "slicedToArray"; - } else { - helperName = "toArray"; - } - if (arrayLikeIsIterable) { - args.unshift(this.hub.addHelper(helperName)); - helperName = "maybeArrayLike"; - } - return callExpression(this.hub.addHelper(helperName), args); + if (node.abstract) { + this.word("abstract"); + this.space(); } - hasLabel(name) { - return !!this.getLabel(name); + if (isField && node.readonly) { + this.word("readonly"); + this.space(); } - getLabel(name) { - return this.labels.get(name); +} + +//# sourceMappingURL=typescript.js.map + + +/***/ }), + +/***/ 8860: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = generate; +var _sourceMap = __nccwpck_require__(63080); +var _printer = __nccwpck_require__(13931); +function normalizeOptions(code, opts) { + var _opts$recordAndTupleS; + const format = { + auxiliaryCommentBefore: opts.auxiliaryCommentBefore, + auxiliaryCommentAfter: opts.auxiliaryCommentAfter, + shouldPrintComment: opts.shouldPrintComment, + retainLines: opts.retainLines, + retainFunctionParens: opts.retainFunctionParens, + comments: opts.comments == null || opts.comments, + compact: opts.compact, + minified: opts.minified, + concise: opts.concise, + indent: { + adjustMultilineComment: true, + style: " " + }, + jsescOption: Object.assign({ + quotes: "double", + wrap: true, + minimal: false + }, opts.jsescOption), + recordAndTupleSyntaxType: (_opts$recordAndTupleS = opts.recordAndTupleSyntaxType) != null ? _opts$recordAndTupleS : "hash", + topicToken: opts.topicToken, + importAttributesKeyword: opts.importAttributesKeyword + }; + { + format.decoratorsBeforeExport = opts.decoratorsBeforeExport; + format.jsescOption.json = opts.jsonCompatibleStrings; } - registerLabel(path) { - this.labels.set(path.node.label.name, path); + if (format.minified) { + format.compact = true; + format.shouldPrintComment = format.shouldPrintComment || (() => format.comments); + } else { + format.shouldPrintComment = format.shouldPrintComment || (value => format.comments || value.includes("@license") || value.includes("@preserve")); } - registerDeclaration(path) { - if (path.isLabeledStatement()) { - this.registerLabel(path); - } else if (path.isFunctionDeclaration()) { - this.registerBinding("hoisted", path.get("id"), path); - } else if (path.isVariableDeclaration()) { - const declarations = path.get("declarations"); - const { - kind - } = path.node; - for (const declar of declarations) { - this.registerBinding(kind === "using" || kind === "await using" ? "const" : kind, declar); - } - } else if (path.isClassDeclaration()) { - if (path.node.declare) return; - this.registerBinding("let", path); - } else if (path.isImportDeclaration()) { - const isTypeDeclaration = path.node.importKind === "type" || path.node.importKind === "typeof"; - const specifiers = path.get("specifiers"); - for (const specifier of specifiers) { - const isTypeSpecifier = isTypeDeclaration || specifier.isImportSpecifier() && (specifier.node.importKind === "type" || specifier.node.importKind === "typeof"); - this.registerBinding(isTypeSpecifier ? "unknown" : "module", specifier); - } - } else if (path.isExportDeclaration()) { - const declar = path.get("declaration"); - if (declar.isClassDeclaration() || declar.isFunctionDeclaration() || declar.isVariableDeclaration()) { - this.registerDeclaration(declar); - } - } else { - this.registerBinding("unknown", path); + if (format.compact === "auto") { + format.compact = typeof code === "string" && code.length > 500000; + if (format.compact) { + console.error("[BABEL] Note: The code generator has deoptimised the styling of " + `${opts.filename} as it exceeds the max of ${"500KB"}.`); } } - buildUndefinedNode() { - return unaryExpression("void", numericLiteral(0), true); + if (format.compact) { + format.indent.adjustMultilineComment = false; } - registerConstantViolation(path) { - const ids = path.getBindingIdentifiers(); - for (const name of Object.keys(ids)) { - const binding = this.getBinding(name); - if (binding) binding.reassign(path); - } + const { + auxiliaryCommentBefore, + auxiliaryCommentAfter, + shouldPrintComment + } = format; + if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) { + format.auxiliaryCommentBefore = undefined; } - registerBinding(kind, path, bindingPath = path) { - if (!kind) throw new ReferenceError("no `kind`"); - if (path.isVariableDeclaration()) { - const declarators = path.get("declarations"); - for (const declar of declarators) { - this.registerBinding(kind, declar); - } - return; + if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) { + format.auxiliaryCommentAfter = undefined; + } + return format; +} +{ + exports.CodeGenerator = class CodeGenerator { + constructor(ast, opts = {}, code) { + this._ast = void 0; + this._format = void 0; + this._map = void 0; + this._ast = ast; + this._format = normalizeOptions(code, opts); + this._map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null; } - const parent = this.getProgramParent(); - const ids = path.getOuterBindingIdentifiers(true); - for (const name of Object.keys(ids)) { - parent.references[name] = true; - for (const id of ids[name]) { - const local = this.getOwnBinding(name); - if (local) { - if (local.identifier === id) continue; - this.checkBlockScopedCollisions(local, kind, name, id); - } - if (local) { - this.registerConstantViolation(bindingPath); - } else { - this.bindings[name] = new _binding.default({ - identifier: id, - scope: this, - path: bindingPath, - kind: kind - }); - } - } + generate() { + const printer = new _printer.default(this._format, this._map); + return printer.generate(this._ast); } - } - addGlobal(node) { - this.globals[node.name] = node; - } - hasUid(name) { - let scope = this; - do { - if (scope.uids[name]) return true; - } while (scope = scope.parent); - return false; - } - hasGlobal(name) { - let scope = this; - do { - if (scope.globals[name]) return true; - } while (scope = scope.parent); - return false; - } - hasReference(name) { - return !!this.getProgramParent().references[name]; - } - isPure(node, constantsOnly) { - if (isIdentifier(node)) { - const binding = this.getBinding(node.name); - if (!binding) return false; - if (constantsOnly) return binding.constant; - return true; - } else if (isThisExpression(node) || isMetaProperty(node) || isTopicReference(node) || isPrivateName(node)) { - return true; - } else if (isClass(node)) { - var _node$decorators; - if (node.superClass && !this.isPure(node.superClass, constantsOnly)) { - return false; - } - if (((_node$decorators = node.decorators) == null ? void 0 : _node$decorators.length) > 0) { - return false; - } - return this.isPure(node.body, constantsOnly); - } else if (isClassBody(node)) { - for (const method of node.body) { - if (!this.isPure(method, constantsOnly)) return false; - } - return true; - } else if (isBinary(node)) { - return this.isPure(node.left, constantsOnly) && this.isPure(node.right, constantsOnly); - } else if (isArrayExpression(node) || isTupleExpression(node)) { - for (const elem of node.elements) { - if (elem !== null && !this.isPure(elem, constantsOnly)) return false; - } - return true; - } else if (isObjectExpression(node) || isRecordExpression(node)) { - for (const prop of node.properties) { - if (!this.isPure(prop, constantsOnly)) return false; - } - return true; - } else if (isMethod(node)) { - var _node$decorators2; - if (node.computed && !this.isPure(node.key, constantsOnly)) return false; - if (((_node$decorators2 = node.decorators) == null ? void 0 : _node$decorators2.length) > 0) { - return false; - } - return true; - } else if (isProperty(node)) { - var _node$decorators3; - if (node.computed && !this.isPure(node.key, constantsOnly)) return false; - if (((_node$decorators3 = node.decorators) == null ? void 0 : _node$decorators3.length) > 0) { - return false; - } - if (isObjectProperty(node) || node.static) { - if (node.value !== null && !this.isPure(node.value, constantsOnly)) { - return false; - } - } - return true; - } else if (isUnaryExpression(node)) { - return this.isPure(node.argument, constantsOnly); - } else if (isTaggedTemplateExpression(node)) { - return matchesPattern(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly); - } else if (isTemplateLiteral(node)) { - for (const expression of node.expressions) { - if (!this.isPure(expression, constantsOnly)) return false; + }; +} +function generate(ast, opts = {}, code) { + const format = normalizeOptions(code, opts); + const map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null; + const printer = new _printer.default(format, map); + return printer.generate(ast); +} + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 35715: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.needsParens = needsParens; +exports.needsWhitespace = needsWhitespace; +exports.needsWhitespaceAfter = needsWhitespaceAfter; +exports.needsWhitespaceBefore = needsWhitespaceBefore; +var whitespace = __nccwpck_require__(59250); +var parens = __nccwpck_require__(14566); +var _t = __nccwpck_require__(68948); +const { + FLIPPED_ALIAS_KEYS, + isCallExpression, + isExpressionStatement, + isMemberExpression, + isNewExpression +} = _t; +function expandAliases(obj) { + const map = new Map(); + function add(type, func) { + const fn = map.get(type); + map.set(type, fn ? function (node, parent, stack) { + var _fn; + return (_fn = fn(node, parent, stack)) != null ? _fn : func(node, parent, stack); + } : func); + } + for (const type of Object.keys(obj)) { + const aliases = FLIPPED_ALIAS_KEYS[type]; + if (aliases) { + for (const alias of aliases) { + add(alias, obj[type]); } - return true; } else { - return isPureish(node); + add(type, obj[type]); } } - setData(key, val) { - return this.data[key] = val; + return map; +} +const expandedParens = expandAliases(parens); +const expandedWhitespaceNodes = expandAliases(whitespace.nodes); +function isOrHasCallExpression(node) { + if (isCallExpression(node)) { + return true; } - getData(key) { - let scope = this; - do { - const data = scope.data[key]; - if (data != null) return data; - } while (scope = scope.parent); + return isMemberExpression(node) && isOrHasCallExpression(node.object); +} +function needsWhitespace(node, parent, type) { + var _expandedWhitespaceNo; + if (!node) return false; + if (isExpressionStatement(node)) { + node = node.expression; } - removeData(key) { - let scope = this; - do { - const data = scope.data[key]; - if (data != null) scope.data[key] = null; - } while (scope = scope.parent); + const flag = (_expandedWhitespaceNo = expandedWhitespaceNodes.get(node.type)) == null ? void 0 : _expandedWhitespaceNo(node, parent); + if (typeof flag === "number") { + return (flag & type) !== 0; } - init() { - if (!this.inited) { - this.inited = true; - this.crawl(); - } + return false; +} +function needsWhitespaceBefore(node, parent) { + return needsWhitespace(node, parent, 1); +} +function needsWhitespaceAfter(node, parent) { + return needsWhitespace(node, parent, 2); +} +function needsParens(node, parent, printStack) { + var _expandedParens$get; + if (!parent) return false; + if (isNewExpression(parent) && parent.callee === node) { + if (isOrHasCallExpression(node)) return true; } - crawl() { - const path = this.path; - this.references = Object.create(null); - this.bindings = Object.create(null); - this.globals = Object.create(null); - this.uids = Object.create(null); - this.data = Object.create(null); - const programParent = this.getProgramParent(); - if (programParent.crawling) return; - const state = { - references: [], - constantViolations: [], - assignments: [] - }; - this.crawling = true; - if (path.type !== "Program" && (0, _visitors.isExplodedVisitor)(collectorVisitor)) { - for (const visit of collectorVisitor.enter) { - visit.call(state, path, state); - } - const typeVisitors = collectorVisitor[path.type]; - if (typeVisitors) { - for (const visit of typeVisitors.enter) { - visit.call(state, path, state); - } - } - } - path.traverse(collectorVisitor, state); - this.crawling = false; - for (const path of state.assignments) { - const ids = path.getBindingIdentifiers(); - for (const name of Object.keys(ids)) { - if (path.scope.getBinding(name)) continue; - programParent.addGlobal(ids[name]); - } - path.scope.registerConstantViolation(path); - } - for (const ref of state.references) { - const binding = ref.scope.getBinding(ref.node.name); - if (binding) { - binding.reference(ref); - } else { - programParent.addGlobal(ref.node); - } - } - for (const path of state.constantViolations) { - path.scope.registerConstantViolation(path); - } + return (_expandedParens$get = expandedParens.get(node.type)) == null ? void 0 : _expandedParens$get(node, parent, printStack); +} + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 14566: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ArrowFunctionExpression = ArrowFunctionExpression; +exports.AssignmentExpression = AssignmentExpression; +exports.Binary = Binary; +exports.BinaryExpression = BinaryExpression; +exports.ClassExpression = ClassExpression; +exports.ConditionalExpression = ConditionalExpression; +exports.DoExpression = DoExpression; +exports.FunctionExpression = FunctionExpression; +exports.FunctionTypeAnnotation = FunctionTypeAnnotation; +exports.Identifier = Identifier; +exports.LogicalExpression = LogicalExpression; +exports.NullableTypeAnnotation = NullableTypeAnnotation; +exports.ObjectExpression = ObjectExpression; +exports.OptionalIndexedAccessType = OptionalIndexedAccessType; +exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression; +exports.SequenceExpression = SequenceExpression; +exports.TSTypeAssertion = exports.TSSatisfiesExpression = exports.TSAsExpression = TSAsExpression; +exports.TSInferType = TSInferType; +exports.TSInstantiationExpression = TSInstantiationExpression; +exports.TSIntersectionType = exports.TSUnionType = TSUnionType; +exports.UnaryLike = UnaryLike; +exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation; +exports.UpdateExpression = UpdateExpression; +exports.AwaitExpression = exports.YieldExpression = YieldExpression; +var _t = __nccwpck_require__(68948); +const { + isArrayTypeAnnotation, + isArrowFunctionExpression, + isBinaryExpression, + isCallExpression, + isExportDeclaration, + isForOfStatement, + isIndexedAccessType, + isMemberExpression, + isObjectPattern, + isOptionalMemberExpression, + isYieldExpression +} = _t; +const PRECEDENCE = new Map([["||", 0], ["??", 0], ["|>", 0], ["&&", 1], ["|", 2], ["^", 3], ["&", 4], ["==", 5], ["===", 5], ["!=", 5], ["!==", 5], ["<", 6], [">", 6], ["<=", 6], [">=", 6], ["in", 6], ["instanceof", 6], [">>", 7], ["<<", 7], [">>>", 7], ["+", 8], ["-", 8], ["*", 9], ["/", 9], ["%", 9], ["**", 10]]); +function isTSTypeExpression(nodeType) { + return nodeType === "TSAsExpression" || nodeType === "TSSatisfiesExpression" || nodeType === "TSTypeAssertion"; +} +const isClassExtendsClause = (node, parent) => { + const parentType = parent.type; + return (parentType === "ClassDeclaration" || parentType === "ClassExpression") && parent.superClass === node; +}; +const hasPostfixPart = (node, parent) => { + const parentType = parent.type; + return (parentType === "MemberExpression" || parentType === "OptionalMemberExpression") && parent.object === node || (parentType === "CallExpression" || parentType === "OptionalCallExpression" || parentType === "NewExpression") && parent.callee === node || parentType === "TaggedTemplateExpression" && parent.tag === node || parentType === "TSNonNullExpression"; +}; +function NullableTypeAnnotation(node, parent) { + return isArrayTypeAnnotation(parent); +} +function FunctionTypeAnnotation(node, parent, printStack) { + if (printStack.length < 3) return; + const parentType = parent.type; + return parentType === "UnionTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "ArrayTypeAnnotation" || parentType === "TypeAnnotation" && isArrowFunctionExpression(printStack[printStack.length - 3]); +} +function UpdateExpression(node, parent) { + return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent); +} +function ObjectExpression(node, parent, printStack) { + return isFirstInContext(printStack, 1 | 2); +} +function DoExpression(node, parent, printStack) { + return !node.async && isFirstInContext(printStack, 1); +} +function Binary(node, parent) { + const parentType = parent.type; + if (node.operator === "**" && parentType === "BinaryExpression" && parent.operator === "**") { + return parent.left === node; } - push(opts) { - let path = this.path; - if (path.isPattern()) { - path = this.getPatternParent().path; - } else if (!path.isBlockStatement() && !path.isProgram()) { - path = this.getBlockParent().path; - } - if (path.isSwitchStatement()) { - path = (this.getFunctionParent() || this.getProgramParent()).path; - } - if (path.isLoop() || path.isCatchClause() || path.isFunction()) { - path.ensureBlock(); - path = path.get("body"); - } - const unique = opts.unique; - const kind = opts.kind || "var"; - const blockHoist = opts._blockHoist == null ? 2 : opts._blockHoist; - const dataKey = `declaration:${kind}:${blockHoist}`; - let declarPath = !unique && path.getData(dataKey); - if (!declarPath) { - const declar = variableDeclaration(kind, []); - declar._blockHoist = blockHoist; - [declarPath] = path.unshiftContainer("body", [declar]); - if (!unique) path.setData(dataKey, declarPath); - } - const declarator = variableDeclarator(opts.id, opts.init); - const len = declarPath.node.declarations.push(declarator); - path.scope.registerBinding(kind, declarPath.get("declarations")[len - 1]); + if (isClassExtendsClause(node, parent)) { + return true; } - getProgramParent() { - let scope = this; - do { - if (scope.path.isProgram()) { - return scope; - } - } while (scope = scope.parent); - throw new Error("Couldn't find a Program"); + if (hasPostfixPart(node, parent) || parentType === "UnaryExpression" || parentType === "SpreadElement" || parentType === "AwaitExpression") { + return true; } - getFunctionParent() { - let scope = this; - do { - if (scope.path.isFunctionParent()) { - return scope; - } - } while (scope = scope.parent); - return null; + if (parentType === "BinaryExpression" || parentType === "LogicalExpression") { + const parentPos = PRECEDENCE.get(parent.operator); + const nodePos = PRECEDENCE.get(node.operator); + if (parentPos === nodePos && parent.right === node && parentType !== "LogicalExpression" || parentPos > nodePos) { + return true; + } } - getBlockParent() { - let scope = this; - do { - if (scope.path.isBlockParent()) { - return scope; - } - } while (scope = scope.parent); - throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); + return undefined; +} +function UnionTypeAnnotation(node, parent) { + const parentType = parent.type; + return parentType === "ArrayTypeAnnotation" || parentType === "NullableTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "UnionTypeAnnotation"; +} +function OptionalIndexedAccessType(node, parent) { + return isIndexedAccessType(parent) && parent.objectType === node; +} +function TSAsExpression() { + return true; +} +function TSUnionType(node, parent) { + const parentType = parent.type; + return parentType === "TSArrayType" || parentType === "TSOptionalType" || parentType === "TSIntersectionType" || parentType === "TSUnionType" || parentType === "TSRestType"; +} +function TSInferType(node, parent) { + const parentType = parent.type; + return parentType === "TSArrayType" || parentType === "TSOptionalType"; +} +function TSInstantiationExpression(node, parent) { + const parentType = parent.type; + return (parentType === "CallExpression" || parentType === "OptionalCallExpression" || parentType === "NewExpression" || parentType === "TSInstantiationExpression") && !!parent.typeParameters; +} +function BinaryExpression(node, parent) { + if (node.operator === "in") { + const parentType = parent.type; + return parentType === "VariableDeclarator" || parentType === "ForStatement" || parentType === "ForInStatement" || parentType === "ForOfStatement"; } - getPatternParent() { - let scope = this; - do { - if (!scope.path.isPattern()) { - return scope.getBlockParent(); - } - } while (scope = scope.parent.parent); - throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); + return false; +} +function SequenceExpression(node, parent) { + const parentType = parent.type; + if (parentType === "ForStatement" || parentType === "ThrowStatement" || parentType === "ReturnStatement" || parentType === "IfStatement" && parent.test === node || parentType === "WhileStatement" && parent.test === node || parentType === "ForInStatement" && parent.right === node || parentType === "SwitchStatement" && parent.discriminant === node || parentType === "ExpressionStatement" && parent.expression === node) { + return false; } - getAllBindings() { - const ids = Object.create(null); - let scope = this; - do { - for (const key of Object.keys(scope.bindings)) { - if (key in ids === false) { - ids[key] = scope.bindings[key]; - } - } - scope = scope.parent; - } while (scope); - return ids; + return true; +} +function YieldExpression(node, parent) { + const parentType = parent.type; + return parentType === "BinaryExpression" || parentType === "LogicalExpression" || parentType === "UnaryExpression" || parentType === "SpreadElement" || hasPostfixPart(node, parent) || parentType === "AwaitExpression" && isYieldExpression(node) || parentType === "ConditionalExpression" && node === parent.test || isClassExtendsClause(node, parent); +} +function ClassExpression(node, parent, printStack) { + return isFirstInContext(printStack, 1 | 4); +} +function UnaryLike(node, parent) { + return hasPostfixPart(node, parent) || isBinaryExpression(parent) && parent.operator === "**" && parent.left === node || isClassExtendsClause(node, parent); +} +function FunctionExpression(node, parent, printStack) { + return isFirstInContext(printStack, 1 | 4); +} +function ArrowFunctionExpression(node, parent) { + return isExportDeclaration(parent) || ConditionalExpression(node, parent); +} +function ConditionalExpression(node, parent) { + const parentType = parent.type; + if (parentType === "UnaryExpression" || parentType === "SpreadElement" || parentType === "BinaryExpression" || parentType === "LogicalExpression" || parentType === "ConditionalExpression" && parent.test === node || parentType === "AwaitExpression" || isTSTypeExpression(parentType)) { + return true; } - getAllBindingsOfKind(...kinds) { - const ids = Object.create(null); - for (const kind of kinds) { - let scope = this; - do { - for (const name of Object.keys(scope.bindings)) { - const binding = scope.bindings[name]; - if (binding.kind === kind) ids[name] = binding; - } - scope = scope.parent; - } while (scope); - } - return ids; + return UnaryLike(node, parent); +} +function OptionalMemberExpression(node, parent) { + return isCallExpression(parent) && parent.callee === node || isMemberExpression(parent) && parent.object === node; +} +function AssignmentExpression(node, parent) { + if (isObjectPattern(node.left)) { + return true; + } else { + return ConditionalExpression(node, parent); } - bindingIdentifierEquals(name, node) { - return this.getBindingIdentifier(name) === node; +} +function LogicalExpression(node, parent) { + const parentType = parent.type; + if (isTSTypeExpression(parentType)) return true; + if (parentType !== "LogicalExpression") return false; + switch (node.operator) { + case "||": + return parent.operator === "??" || parent.operator === "&&"; + case "&&": + return parent.operator === "??"; + case "??": + return parent.operator !== "??"; } - getBinding(name) { - let scope = this; - let previousPath; - do { - const binding = scope.getOwnBinding(name); - if (binding) { - var _previousPath; - if ((_previousPath = previousPath) != null && _previousPath.isPattern() && binding.kind !== "param" && binding.kind !== "local") {} else { - return binding; - } - } else if (!binding && name === "arguments" && scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { - break; - } - previousPath = scope.path; - } while (scope = scope.parent); +} +function Identifier(node, parent, printStack) { + var _node$extra; + const parentType = parent.type; + if ((_node$extra = node.extra) != null && _node$extra.parenthesized && parentType === "AssignmentExpression" && parent.left === node) { + const rightType = parent.right.type; + if ((rightType === "FunctionExpression" || rightType === "ClassExpression") && parent.right.id == null) { + return true; + } } - getOwnBinding(name) { - return this.bindings[name]; + if (node.name === "let") { + const isFollowedByBracket = isMemberExpression(parent, { + object: node, + computed: true + }) || isOptionalMemberExpression(parent, { + object: node, + computed: true, + optional: false + }); + return isFirstInContext(printStack, isFollowedByBracket ? 1 | 8 | 16 | 32 : 32); } - getBindingIdentifier(name) { - var _this$getBinding; - return (_this$getBinding = this.getBinding(name)) == null ? void 0 : _this$getBinding.identifier; + return node.name === "async" && isForOfStatement(parent) && node === parent.left; +} +function isFirstInContext(printStack, checkParam) { + const expressionStatement = checkParam & 1; + const arrowBody = checkParam & 2; + const exportDefault = checkParam & 4; + const forHead = checkParam & 8; + const forInHead = checkParam & 16; + const forOfHead = checkParam & 32; + let i = printStack.length - 1; + if (i <= 0) return; + let node = printStack[i]; + i--; + let parent = printStack[i]; + while (i >= 0) { + const parentType = parent.type; + if (expressionStatement && parentType === "ExpressionStatement" && parent.expression === node || exportDefault && parentType === "ExportDefaultDeclaration" && node === parent.declaration || arrowBody && parentType === "ArrowFunctionExpression" && parent.body === node || forHead && parentType === "ForStatement" && parent.init === node || forInHead && parentType === "ForInStatement" && parent.left === node || forOfHead && parentType === "ForOfStatement" && parent.left === node) { + return true; + } + if (i > 0 && (hasPostfixPart(node, parent) && parentType !== "NewExpression" || parentType === "SequenceExpression" && parent.expressions[0] === node || parentType === "UpdateExpression" && !parent.prefix || parentType === "ConditionalExpression" && parent.test === node || (parentType === "BinaryExpression" || parentType === "LogicalExpression") && parent.left === node || parentType === "AssignmentExpression" && parent.left === node)) { + node = parent; + i--; + parent = printStack[i]; + } else { + return false; + } } - getOwnBindingIdentifier(name) { - const binding = this.bindings[name]; - return binding == null ? void 0 : binding.identifier; + return false; +} + +//# sourceMappingURL=parentheses.js.map + + +/***/ }), + +/***/ 59250: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.nodes = void 0; +var _t = __nccwpck_require__(68948); +const { + FLIPPED_ALIAS_KEYS, + isArrayExpression, + isAssignmentExpression, + isBinary, + isBlockStatement, + isCallExpression, + isFunction, + isIdentifier, + isLiteral, + isMemberExpression, + isObjectExpression, + isOptionalCallExpression, + isOptionalMemberExpression, + isStringLiteral +} = _t; +function crawlInternal(node, state) { + if (!node) return state; + if (isMemberExpression(node) || isOptionalMemberExpression(node)) { + crawlInternal(node.object, state); + if (node.computed) crawlInternal(node.property, state); + } else if (isBinary(node) || isAssignmentExpression(node)) { + crawlInternal(node.left, state); + crawlInternal(node.right, state); + } else if (isCallExpression(node) || isOptionalCallExpression(node)) { + state.hasCall = true; + crawlInternal(node.callee, state); + } else if (isFunction(node)) { + state.hasFunction = true; + } else if (isIdentifier(node)) { + state.hasHelper = state.hasHelper || node.callee && isHelper(node.callee); } - hasOwnBinding(name) { - return !!this.getOwnBinding(name); + return state; +} +function crawl(node) { + return crawlInternal(node, { + hasCall: false, + hasFunction: false, + hasHelper: false + }); +} +function isHelper(node) { + if (!node) return false; + if (isMemberExpression(node)) { + return isHelper(node.object) || isHelper(node.property); + } else if (isIdentifier(node)) { + return node.name === "require" || node.name.charCodeAt(0) === 95; + } else if (isCallExpression(node)) { + return isHelper(node.callee); + } else if (isBinary(node) || isAssignmentExpression(node)) { + return isIdentifier(node.left) && isHelper(node.left) || isHelper(node.right); + } else { + return false; } - hasBinding(name, opts) { - var _opts, _opts2, _opts3; - if (!name) return false; - if (this.hasOwnBinding(name)) return true; - { - if (typeof opts === "boolean") opts = { - noGlobals: opts - }; +} +function isType(node) { + return isLiteral(node) || isObjectExpression(node) || isArrayExpression(node) || isIdentifier(node) || isMemberExpression(node); +} +const nodes = exports.nodes = { + AssignmentExpression(node) { + const state = crawl(node.right); + if (state.hasCall && state.hasHelper || state.hasFunction) { + return state.hasFunction ? 1 | 2 : 2; + } + }, + SwitchCase(node, parent) { + return (!!node.consequent.length || parent.cases[0] === node ? 1 : 0) | (!node.consequent.length && parent.cases[parent.cases.length - 1] === node ? 2 : 0); + }, + LogicalExpression(node) { + if (isFunction(node.left) || isFunction(node.right)) { + return 2; + } + }, + Literal(node) { + if (isStringLiteral(node) && node.value === "use strict") { + return 2; + } + }, + CallExpression(node) { + if (isFunction(node.callee) || isHelper(node)) { + return 1 | 2; + } + }, + OptionalCallExpression(node) { + if (isFunction(node.callee)) { + return 1 | 2; + } + }, + VariableDeclaration(node) { + for (let i = 0; i < node.declarations.length; i++) { + const declar = node.declarations[i]; + let enabled = isHelper(declar.id) && !isType(declar.init); + if (!enabled && declar.init) { + const state = crawl(declar.init); + enabled = isHelper(declar.init) && state.hasCall || state.hasFunction; + } + if (enabled) { + return 1 | 2; + } + } + }, + IfStatement(node) { + if (isBlockStatement(node.consequent)) { + return 1 | 2; } - if (this.parentHasBinding(name, opts)) return true; - if (!((_opts = opts) != null && _opts.noUids) && this.hasUid(name)) return true; - if (!((_opts2 = opts) != null && _opts2.noGlobals) && Scope.globals.includes(name)) return true; - if (!((_opts3 = opts) != null && _opts3.noGlobals) && Scope.contextVariables.includes(name)) return true; - return false; } - parentHasBinding(name, opts) { - var _this$parent; - return (_this$parent = this.parent) == null ? void 0 : _this$parent.hasBinding(name, opts); +}; +nodes.ObjectProperty = nodes.ObjectTypeProperty = nodes.ObjectMethod = function (node, parent) { + if (parent.properties[0] === node) { + return 1; } - moveBindingTo(name, scope) { - const info = this.getBinding(name); - if (info) { - info.scope.removeOwnBinding(name); - info.scope = scope; - scope.bindings[name] = info; - } +}; +nodes.ObjectTypeCallProperty = function (node, parent) { + var _parent$properties; + if (parent.callProperties[0] === node && !((_parent$properties = parent.properties) != null && _parent$properties.length)) { + return 1; } - removeOwnBinding(name) { - delete this.bindings[name]; +}; +nodes.ObjectTypeIndexer = function (node, parent) { + var _parent$properties2, _parent$callPropertie; + if (parent.indexers[0] === node && !((_parent$properties2 = parent.properties) != null && _parent$properties2.length) && !((_parent$callPropertie = parent.callProperties) != null && _parent$callPropertie.length)) { + return 1; } - removeBinding(name) { - var _this$getBinding2; - (_this$getBinding2 = this.getBinding(name)) == null ? void 0 : _this$getBinding2.scope.removeOwnBinding(name); - let scope = this; - do { - if (scope.uids[name]) { - scope.uids[name] = false; - } - } while (scope = scope.parent); +}; +nodes.ObjectTypeInternalSlot = function (node, parent) { + var _parent$properties3, _parent$callPropertie2, _parent$indexers; + if (parent.internalSlots[0] === node && !((_parent$properties3 = parent.properties) != null && _parent$properties3.length) && !((_parent$callPropertie2 = parent.callProperties) != null && _parent$callPropertie2.length) && !((_parent$indexers = parent.indexers) != null && _parent$indexers.length)) { + return 1; } -} -exports["default"] = Scope; -Scope.globals = Object.keys(_globals.builtin); -Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; +}; +[["Function", true], ["Class", true], ["Loop", true], ["LabeledStatement", true], ["SwitchStatement", true], ["TryStatement", true]].forEach(function ([type, amounts]) { + [type].concat(FLIPPED_ALIAS_KEYS[type] || []).forEach(function (type) { + const ret = amounts ? 1 | 2 : 0; + nodes[type] = () => ret; + }); +}); -//# sourceMappingURL=index.js.map +//# sourceMappingURL=whitespace.js.map /***/ }), -/***/ 36221: +/***/ 13931: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -124827,5236 +39312,29586 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _helperSplitExportDeclaration = __nccwpck_require__(48548); -var t = __nccwpck_require__(53501); -var _helperEnvironmentVisitor = __nccwpck_require__(82828); -var _traverseNode = __nccwpck_require__(2197); -var _visitors = __nccwpck_require__(6539); -const renameVisitor = { - ReferencedIdentifier({ - node - }, state) { - if (node.name === state.oldName) { - node.name = state.newName; +var _buffer = __nccwpck_require__(90401); +var n = __nccwpck_require__(35715); +var _t = __nccwpck_require__(68948); +var generatorFunctions = __nccwpck_require__(66880); +const { + isFunction, + isStatement, + isClassBody, + isTSInterfaceBody, + isTSEnumDeclaration +} = _t; +const SCIENTIFIC_NOTATION = /e/i; +const ZERO_DECIMAL_INTEGER = /\.0+$/; +const HAS_NEWLINE = /[\n\r\u2028\u2029]/; +const HAS_NEWLINE_OR_BlOCK_COMMENT_END = /[\n\r\u2028\u2029]|\*\//; +const { + needsParens +} = n; +class Printer { + constructor(format, map) { + this.inForStatementInitCounter = 0; + this._printStack = []; + this._indent = 0; + this._indentRepeat = 0; + this._insideAux = false; + this._parenPushNewlineState = null; + this._noLineTerminator = false; + this._printAuxAfterOnNextUserNode = false; + this._printedComments = new Set(); + this._endsWithInteger = false; + this._endsWithWord = false; + this._lastCommentLine = 0; + this._endsWithInnerRaw = false; + this._indentInnerComments = true; + this.format = format; + this._indentRepeat = format.indent.style.length; + this._inputMap = map == null ? void 0 : map._inputMap; + this._buf = new _buffer.default(map, format.indent.style[0]); + } + generate(ast) { + this.print(ast); + this._maybeAddAuxComment(); + return this._buf.get(); + } + indent() { + if (this.format.compact || this.format.concise) return; + this._indent++; + } + dedent() { + if (this.format.compact || this.format.concise) return; + this._indent--; + } + semicolon(force = false) { + this._maybeAddAuxComment(); + if (force) { + this._appendChar(59); + } else { + this._queue(59); } - }, - Scope(path, state) { - if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) { - path.skip(); - if (path.isMethod()) { - (0, _helperEnvironmentVisitor.requeueComputedKeyAndDecorators)(path); + this._noLineTerminator = false; + } + rightBrace(node) { + if (this.format.minified) { + this._buf.removeLastSemicolon(); + } + this.sourceWithOffset("end", node.loc, -1); + this.tokenChar(125); + } + rightParens(node) { + this.sourceWithOffset("end", node.loc, -1); + this.tokenChar(41); + } + space(force = false) { + if (this.format.compact) return; + if (force) { + this._space(); + } else if (this._buf.hasContent()) { + const lastCp = this.getLastChar(); + if (lastCp !== 32 && lastCp !== 10) { + this._space(); } } - }, - ObjectProperty({ - node, - scope - }, state) { - const { - name - } = node.key; - if (node.shorthand && (name === state.oldName || name === state.newName) && scope.getBindingIdentifier(name) === state.binding.identifier) { - var _node$extra; - node.shorthand = false; - if ((_node$extra = node.extra) != null && _node$extra.shorthand) node.extra.shorthand = false; + } + word(str, noLineTerminatorAfter = false) { + this._maybePrintInnerComments(); + if (this._endsWithWord || str.charCodeAt(0) === 47 && this.endsWith(47)) { + this._space(); } - }, - "AssignmentExpression|Declaration|VariableDeclarator"(path, state) { - if (path.isVariableDeclaration()) return; - const ids = path.getOuterBindingIdentifiers(); - for (const name in ids) { - if (name === state.oldName) ids[name].name = state.newName; + this._maybeAddAuxComment(); + this._append(str, false); + this._endsWithWord = true; + this._noLineTerminator = noLineTerminatorAfter; + } + number(str, number) { + function isNonDecimalLiteral(str) { + if (str.length > 2 && str.charCodeAt(0) === 48) { + const secondChar = str.charCodeAt(1); + return secondChar === 98 || secondChar === 111 || secondChar === 120; + } + return false; } + this.word(str); + this._endsWithInteger = Number.isInteger(number) && !isNonDecimalLiteral(str) && !SCIENTIFIC_NOTATION.test(str) && !ZERO_DECIMAL_INTEGER.test(str) && str.charCodeAt(str.length - 1) !== 46; } -}; -class Renamer { - constructor(binding, oldName, newName) { - this.newName = newName; - this.oldName = oldName; - this.binding = binding; + token(str, maybeNewline = false) { + this._maybePrintInnerComments(); + const lastChar = this.getLastChar(); + const strFirst = str.charCodeAt(0); + if (lastChar === 33 && (str === "--" || strFirst === 61) || strFirst === 43 && lastChar === 43 || strFirst === 45 && lastChar === 45 || strFirst === 46 && this._endsWithInteger) { + this._space(); + } + this._maybeAddAuxComment(); + this._append(str, maybeNewline); + this._noLineTerminator = false; } - maybeConvertFromExportDeclaration(parentDeclar) { - const maybeExportDeclar = parentDeclar.parentPath; - if (!maybeExportDeclar.isExportDeclaration()) { - return; + tokenChar(char) { + this._maybePrintInnerComments(); + const lastChar = this.getLastChar(); + if (char === 43 && lastChar === 43 || char === 45 && lastChar === 45 || char === 46 && this._endsWithInteger) { + this._space(); } - if (maybeExportDeclar.isExportDefaultDeclaration()) { - const { - declaration - } = maybeExportDeclar.node; - if (t.isDeclaration(declaration) && !declaration.id) { + this._maybeAddAuxComment(); + this._appendChar(char); + this._noLineTerminator = false; + } + newline(i = 1, force) { + if (i <= 0) return; + if (!force) { + if (this.format.retainLines || this.format.compact) return; + if (this.format.concise) { + this.space(); return; } } - if (maybeExportDeclar.isExportAllDeclaration()) { - return; + if (i > 2) i = 2; + i -= this._buf.getNewlineCount(); + for (let j = 0; j < i; j++) { + this._newline(); } - (0, _helperSplitExportDeclaration.default)(maybeExportDeclar); + return; } - maybeConvertFromClassFunctionDeclaration(path) { - return path; + endsWith(char) { + return this.getLastChar() === char; } - maybeConvertFromClassFunctionExpression(path) { - return path; + getLastChar() { + return this._buf.getLastChar(); } - rename() { - const { - binding, - oldName, - newName - } = this; - const { - scope, - path - } = binding; - const parentDeclar = path.find(path => path.isDeclaration() || path.isFunctionExpression() || path.isClassExpression()); - if (parentDeclar) { - const bindingIds = parentDeclar.getOuterBindingIdentifiers(); - if (bindingIds[oldName] === binding.identifier) { - this.maybeConvertFromExportDeclaration(parentDeclar); - } + endsWithCharAndNewline() { + return this._buf.endsWithCharAndNewline(); + } + removeTrailingNewline() { + this._buf.removeTrailingNewline(); + } + exactSource(loc, cb) { + if (!loc) { + cb(); + return; } - const blockToTraverse = arguments[0] || scope.block; - (0, _traverseNode.traverseNode)(blockToTraverse, (0, _visitors.explode)(renameVisitor), scope, this, scope.path, { - discriminant: true - }); - if (!arguments[0]) { - scope.removeOwnBinding(oldName); - scope.bindings[newName] = binding; - this.binding.identifier.name = newName; + this._catchUp("start", loc); + this._buf.exactSource(loc, cb); + } + source(prop, loc) { + if (!loc) return; + this._catchUp(prop, loc); + this._buf.source(prop, loc); + } + sourceWithOffset(prop, loc, columnOffset) { + if (!loc) return; + this._catchUp(prop, loc); + this._buf.sourceWithOffset(prop, loc, columnOffset); + } + withSource(prop, loc, cb) { + if (!loc) { + cb(); + return; } - if (parentDeclar) { - this.maybeConvertFromClassFunctionDeclaration(path); - this.maybeConvertFromClassFunctionExpression(path); + this._catchUp(prop, loc); + this._buf.withSource(prop, loc, cb); + } + sourceIdentifierName(identifierName, pos) { + if (!this._buf._canMarkIdName) return; + const sourcePosition = this._buf._sourcePosition; + sourcePosition.identifierNamePos = pos; + sourcePosition.identifierName = identifierName; + } + _space() { + this._queue(32); + } + _newline() { + this._queue(10); + } + _append(str, maybeNewline) { + this._maybeAddParen(str); + this._maybeIndent(str.charCodeAt(0)); + this._buf.append(str, maybeNewline); + this._endsWithWord = false; + this._endsWithInteger = false; + } + _appendChar(char) { + this._maybeAddParenChar(char); + this._maybeIndent(char); + this._buf.appendChar(char); + this._endsWithWord = false; + this._endsWithInteger = false; + } + _queue(char) { + this._maybeAddParenChar(char); + this._maybeIndent(char); + this._buf.queue(char); + this._endsWithWord = false; + this._endsWithInteger = false; + } + _maybeIndent(firstChar) { + if (this._indent && firstChar !== 10 && this.endsWith(10)) { + this._buf.queueIndentation(this._getIndent()); } } -} -exports["default"] = Renamer; - -//# sourceMappingURL=renamer.js.map - - -/***/ }), - -/***/ 2197: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.traverseNode = traverseNode; -var _context = __nccwpck_require__(70663); -var _t = __nccwpck_require__(53501); -const { - VISITOR_KEYS -} = _t; -function traverseNode(node, opts, scope, state, path, skipKeys) { - const keys = VISITOR_KEYS[node.type]; - if (!keys) return false; - const context = new _context.default(scope, opts, state, path); - for (const key of keys) { - if (skipKeys && skipKeys[key]) continue; - if (context.visit(node, key)) { + _shouldIndent(firstChar) { + if (this._indent && firstChar !== 10 && this.endsWith(10)) { return true; } } - return false; -} - -//# sourceMappingURL=traverse-node.js.map - - -/***/ }), - -/***/ 6539: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.explode = explode; -exports.isExplodedVisitor = isExplodedVisitor; -exports.merge = merge; -exports.verify = verify; -var virtualTypes = __nccwpck_require__(91518); -var _t = __nccwpck_require__(53501); -const { - DEPRECATED_KEYS, - DEPRECATED_ALIASES, - FLIPPED_ALIAS_KEYS, - TYPES, - __internal__deprecationWarning: deprecationWarning -} = _t; -function isVirtualType(type) { - return type in virtualTypes; -} -function isExplodedVisitor(visitor) { - return visitor == null ? void 0 : visitor._exploded; -} -function explode(visitor) { - if (isExplodedVisitor(visitor)) return visitor; - visitor._exploded = true; - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - const parts = nodeType.split("|"); - if (parts.length === 1) continue; - const fns = visitor[nodeType]; - delete visitor[nodeType]; - for (const part of parts) { - visitor[part] = fns; + _maybeAddParenChar(char) { + const parenPushNewlineState = this._parenPushNewlineState; + if (!parenPushNewlineState) return; + if (char === 32) { + return; + } + if (char !== 10) { + this._parenPushNewlineState = null; + return; } + this.tokenChar(40); + this.indent(); + parenPushNewlineState.printed = true; } - verify(visitor); - delete visitor.__esModule; - ensureEntranceObjects(visitor); - ensureCallbackArrays(visitor); - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - if (!isVirtualType(nodeType)) continue; - const fns = visitor[nodeType]; - for (const type of Object.keys(fns)) { - fns[type] = wrapCheck(nodeType, fns[type]); + _maybeAddParen(str) { + const parenPushNewlineState = this._parenPushNewlineState; + if (!parenPushNewlineState) return; + const len = str.length; + let i; + for (i = 0; i < len && str.charCodeAt(i) === 32; i++) continue; + if (i === len) { + return; } - delete visitor[nodeType]; - const types = virtualTypes[nodeType]; - if (types !== null) { - for (const type of types) { - if (visitor[type]) { - mergePair(visitor[type], fns); - } else { - visitor[type] = fns; - } + const cha = str.charCodeAt(i); + if (cha !== 10) { + if (cha !== 47 || i + 1 === len) { + this._parenPushNewlineState = null; + return; + } + const chaPost = str.charCodeAt(i + 1); + if (chaPost === 42) { + return; + } else if (chaPost !== 47) { + this._parenPushNewlineState = null; + return; } - } else { - mergePair(visitor, fns); } + this.tokenChar(40); + this.indent(); + parenPushNewlineState.printed = true; } - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - let aliases = FLIPPED_ALIAS_KEYS[nodeType]; - if (nodeType in DEPRECATED_KEYS) { - const deprecatedKey = DEPRECATED_KEYS[nodeType]; - deprecationWarning(nodeType, deprecatedKey, "Visitor "); - aliases = [deprecatedKey]; - } else if (nodeType in DEPRECATED_ALIASES) { - const deprecatedAlias = DEPRECATED_ALIASES[nodeType]; - deprecationWarning(nodeType, deprecatedAlias, "Visitor "); - aliases = FLIPPED_ALIAS_KEYS[deprecatedAlias]; + catchUp(line) { + if (!this.format.retainLines) return; + const count = line - this._buf.getCurrentLine(); + for (let i = 0; i < count; i++) { + this._newline(); } - if (!aliases) continue; - const fns = visitor[nodeType]; - delete visitor[nodeType]; - for (const alias of aliases) { - const existing = visitor[alias]; - if (existing) { - mergePair(existing, fns); - } else { - visitor[alias] = Object.assign({}, fns); + } + _catchUp(prop, loc) { + var _loc$prop; + if (!this.format.retainLines) return; + const line = loc == null || (_loc$prop = loc[prop]) == null ? void 0 : _loc$prop.line; + if (line != null) { + const count = line - this._buf.getCurrentLine(); + for (let i = 0; i < count; i++) { + this._newline(); } } } - for (const nodeType of Object.keys(visitor)) { - if (shouldIgnoreKey(nodeType)) continue; - ensureCallbackArrays(visitor[nodeType]); + _getIndent() { + return this._indentRepeat * this._indent; } - return visitor; -} -function verify(visitor) { - if (visitor._verified) return; - if (typeof visitor === "function") { - throw new Error("You passed `traverse()` a function when it expected a visitor object, " + "are you sure you didn't mean `{ enter: Function }`?"); + printTerminatorless(node, parent, isLabel) { + if (isLabel) { + this._noLineTerminator = true; + this.print(node, parent); + } else { + const terminatorState = { + printed: false + }; + this._parenPushNewlineState = terminatorState; + this.print(node, parent); + if (terminatorState.printed) { + this.dedent(); + this.newline(); + this.tokenChar(41); + } + } } - for (const nodeType of Object.keys(visitor)) { - if (nodeType === "enter" || nodeType === "exit") { - validateVisitorMethods(nodeType, visitor[nodeType]); + print(node, parent, noLineTerminatorAfter, trailingCommentsLineOffset, forceParens) { + var _node$extra, _node$leadingComments; + if (!node) return; + this._endsWithInnerRaw = false; + const nodeType = node.type; + const format = this.format; + const oldConcise = format.concise; + if (node._compact) { + format.concise = true; } - if (shouldIgnoreKey(nodeType)) continue; - if (TYPES.indexOf(nodeType) < 0) { - throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`); + const printMethod = this[nodeType]; + if (printMethod === undefined) { + throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`); } - const visitors = visitor[nodeType]; - if (typeof visitors === "object") { - for (const visitorKey of Object.keys(visitors)) { - if (visitorKey === "enter" || visitorKey === "exit") { - validateVisitorMethods(`${nodeType}.${visitorKey}`, visitors[visitorKey]); - } else { - throw new Error("You passed `traverse()` a visitor object with the property " + `${nodeType} that has the invalid property ${visitorKey}`); - } + this._printStack.push(node); + const oldInAux = this._insideAux; + this._insideAux = node.loc == undefined; + this._maybeAddAuxComment(this._insideAux && !oldInAux); + const parenthesized = (_node$extra = node.extra) == null ? void 0 : _node$extra.parenthesized; + let shouldPrintParens = forceParens || parenthesized && format.retainFunctionParens && nodeType === "FunctionExpression" || needsParens(node, parent, this._printStack); + if (!shouldPrintParens && parenthesized && (_node$leadingComments = node.leadingComments) != null && _node$leadingComments.length && node.leadingComments[0].type === "CommentBlock") { + const parentType = parent == null ? void 0 : parent.type; + switch (parentType) { + case "ExpressionStatement": + case "VariableDeclarator": + case "AssignmentExpression": + case "ReturnStatement": + break; + case "CallExpression": + case "OptionalCallExpression": + case "NewExpression": + if (parent.callee !== node) break; + default: + shouldPrintParens = true; } } - } - visitor._verified = true; -} -function validateVisitorMethods(path, val) { - const fns = [].concat(val); - for (const fn of fns) { - if (typeof fn !== "function") { - throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`); + if (shouldPrintParens) { + this.tokenChar(40); + this._endsWithInnerRaw = false; } - } -} -function merge(visitors, states = [], wrapper) { - const rootVisitor = {}; - for (let i = 0; i < visitors.length; i++) { - const visitor = visitors[i]; - const state = states[i]; - explode(visitor); - for (const type of Object.keys(visitor)) { - let visitorType = visitor[type]; - if (state || wrapper) { - visitorType = wrapWithStateOrWrapper(visitorType, state, wrapper); - } - const nodeVisitor = rootVisitor[type] || (rootVisitor[type] = {}); - mergePair(nodeVisitor, visitorType); + this._lastCommentLine = 0; + this._printLeadingComments(node, parent); + const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc; + this.exactSource(loc, printMethod.bind(this, node, parent)); + if (shouldPrintParens) { + this._printTrailingComments(node, parent); + this.tokenChar(41); + this._noLineTerminator = noLineTerminatorAfter; + } else if (noLineTerminatorAfter && !this._noLineTerminator) { + this._noLineTerminator = true; + this._printTrailingComments(node, parent); + } else { + this._printTrailingComments(node, parent, trailingCommentsLineOffset); } + this._printStack.pop(); + format.concise = oldConcise; + this._insideAux = oldInAux; + this._endsWithInnerRaw = false; } - return rootVisitor; -} -function wrapWithStateOrWrapper(oldVisitor, state, wrapper) { - const newVisitor = {}; - for (const key of Object.keys(oldVisitor)) { - let fns = oldVisitor[key]; - if (!Array.isArray(fns)) continue; - fns = fns.map(function (fn) { - let newFn = fn; - if (state) { - newFn = function (path) { - fn.call(state, path, state); - }; - } - if (wrapper) { - newFn = wrapper(state.key, key, newFn); - } - if (newFn !== fn) { - newFn.toString = () => fn.toString(); - } - return newFn; - }); - newVisitor[key] = fns; + _maybeAddAuxComment(enteredPositionlessNode) { + if (enteredPositionlessNode) this._printAuxBeforeComment(); + if (!this._insideAux) this._printAuxAfterComment(); } - return newVisitor; -} -function ensureEntranceObjects(obj) { - for (const key of Object.keys(obj)) { - if (shouldIgnoreKey(key)) continue; - const fns = obj[key]; - if (typeof fns === "function") { - obj[key] = { - enter: fns - }; + _printAuxBeforeComment() { + if (this._printAuxAfterOnNextUserNode) return; + this._printAuxAfterOnNextUserNode = true; + const comment = this.format.auxiliaryCommentBefore; + if (comment) { + this._printComment({ + type: "CommentBlock", + value: comment + }, 0); } } -} -function ensureCallbackArrays(obj) { - if (obj.enter && !Array.isArray(obj.enter)) obj.enter = [obj.enter]; - if (obj.exit && !Array.isArray(obj.exit)) obj.exit = [obj.exit]; -} -function wrapCheck(nodeType, fn) { - const newFn = function (path) { - if (path[`is${nodeType}`]()) { - return fn.apply(this, arguments); + _printAuxAfterComment() { + if (!this._printAuxAfterOnNextUserNode) return; + this._printAuxAfterOnNextUserNode = false; + const comment = this.format.auxiliaryCommentAfter; + if (comment) { + this._printComment({ + type: "CommentBlock", + value: comment + }, 0); } - }; - newFn.toString = () => fn.toString(); - return newFn; -} -function shouldIgnoreKey(key) { - if (key[0] === "_") return true; - if (key === "enter" || key === "exit" || key === "shouldSkip") return true; - if (key === "denylist" || key === "noScope" || key === "skipKeys") { - return true; } - { - if (key === "blacklist") { - return true; + getPossibleRaw(node) { + const extra = node.extra; + if ((extra == null ? void 0 : extra.raw) != null && extra.rawValue != null && node.value === extra.rawValue) { + return extra.raw; } } - return false; -} -function mergePair(dest, src) { - for (const key of Object.keys(src)) { - dest[key] = [].concat(dest[key] || [], src[key]); - } -} - -//# sourceMappingURL=visitors.js.map - - -/***/ }), - -/***/ 57293: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = assertNode; -var _isNode = __nccwpck_require__(6609); -function assertNode(node) { - if (!(0, _isNode.default)(node)) { - var _node$type; - const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node); - throw new TypeError(`Not a valid node of type "${type}"`); - } -} - -//# sourceMappingURL=assertNode.js.map - - -/***/ }), - -/***/ 92059: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.assertAccessor = assertAccessor; -exports.assertAnyTypeAnnotation = assertAnyTypeAnnotation; -exports.assertArgumentPlaceholder = assertArgumentPlaceholder; -exports.assertArrayExpression = assertArrayExpression; -exports.assertArrayPattern = assertArrayPattern; -exports.assertArrayTypeAnnotation = assertArrayTypeAnnotation; -exports.assertArrowFunctionExpression = assertArrowFunctionExpression; -exports.assertAssignmentExpression = assertAssignmentExpression; -exports.assertAssignmentPattern = assertAssignmentPattern; -exports.assertAwaitExpression = assertAwaitExpression; -exports.assertBigIntLiteral = assertBigIntLiteral; -exports.assertBinary = assertBinary; -exports.assertBinaryExpression = assertBinaryExpression; -exports.assertBindExpression = assertBindExpression; -exports.assertBlock = assertBlock; -exports.assertBlockParent = assertBlockParent; -exports.assertBlockStatement = assertBlockStatement; -exports.assertBooleanLiteral = assertBooleanLiteral; -exports.assertBooleanLiteralTypeAnnotation = assertBooleanLiteralTypeAnnotation; -exports.assertBooleanTypeAnnotation = assertBooleanTypeAnnotation; -exports.assertBreakStatement = assertBreakStatement; -exports.assertCallExpression = assertCallExpression; -exports.assertCatchClause = assertCatchClause; -exports.assertClass = assertClass; -exports.assertClassAccessorProperty = assertClassAccessorProperty; -exports.assertClassBody = assertClassBody; -exports.assertClassDeclaration = assertClassDeclaration; -exports.assertClassExpression = assertClassExpression; -exports.assertClassImplements = assertClassImplements; -exports.assertClassMethod = assertClassMethod; -exports.assertClassPrivateMethod = assertClassPrivateMethod; -exports.assertClassPrivateProperty = assertClassPrivateProperty; -exports.assertClassProperty = assertClassProperty; -exports.assertCompletionStatement = assertCompletionStatement; -exports.assertConditional = assertConditional; -exports.assertConditionalExpression = assertConditionalExpression; -exports.assertContinueStatement = assertContinueStatement; -exports.assertDebuggerStatement = assertDebuggerStatement; -exports.assertDecimalLiteral = assertDecimalLiteral; -exports.assertDeclaration = assertDeclaration; -exports.assertDeclareClass = assertDeclareClass; -exports.assertDeclareExportAllDeclaration = assertDeclareExportAllDeclaration; -exports.assertDeclareExportDeclaration = assertDeclareExportDeclaration; -exports.assertDeclareFunction = assertDeclareFunction; -exports.assertDeclareInterface = assertDeclareInterface; -exports.assertDeclareModule = assertDeclareModule; -exports.assertDeclareModuleExports = assertDeclareModuleExports; -exports.assertDeclareOpaqueType = assertDeclareOpaqueType; -exports.assertDeclareTypeAlias = assertDeclareTypeAlias; -exports.assertDeclareVariable = assertDeclareVariable; -exports.assertDeclaredPredicate = assertDeclaredPredicate; -exports.assertDecorator = assertDecorator; -exports.assertDirective = assertDirective; -exports.assertDirectiveLiteral = assertDirectiveLiteral; -exports.assertDoExpression = assertDoExpression; -exports.assertDoWhileStatement = assertDoWhileStatement; -exports.assertEmptyStatement = assertEmptyStatement; -exports.assertEmptyTypeAnnotation = assertEmptyTypeAnnotation; -exports.assertEnumBody = assertEnumBody; -exports.assertEnumBooleanBody = assertEnumBooleanBody; -exports.assertEnumBooleanMember = assertEnumBooleanMember; -exports.assertEnumDeclaration = assertEnumDeclaration; -exports.assertEnumDefaultedMember = assertEnumDefaultedMember; -exports.assertEnumMember = assertEnumMember; -exports.assertEnumNumberBody = assertEnumNumberBody; -exports.assertEnumNumberMember = assertEnumNumberMember; -exports.assertEnumStringBody = assertEnumStringBody; -exports.assertEnumStringMember = assertEnumStringMember; -exports.assertEnumSymbolBody = assertEnumSymbolBody; -exports.assertExistsTypeAnnotation = assertExistsTypeAnnotation; -exports.assertExportAllDeclaration = assertExportAllDeclaration; -exports.assertExportDeclaration = assertExportDeclaration; -exports.assertExportDefaultDeclaration = assertExportDefaultDeclaration; -exports.assertExportDefaultSpecifier = assertExportDefaultSpecifier; -exports.assertExportNamedDeclaration = assertExportNamedDeclaration; -exports.assertExportNamespaceSpecifier = assertExportNamespaceSpecifier; -exports.assertExportSpecifier = assertExportSpecifier; -exports.assertExpression = assertExpression; -exports.assertExpressionStatement = assertExpressionStatement; -exports.assertExpressionWrapper = assertExpressionWrapper; -exports.assertFile = assertFile; -exports.assertFlow = assertFlow; -exports.assertFlowBaseAnnotation = assertFlowBaseAnnotation; -exports.assertFlowDeclaration = assertFlowDeclaration; -exports.assertFlowPredicate = assertFlowPredicate; -exports.assertFlowType = assertFlowType; -exports.assertFor = assertFor; -exports.assertForInStatement = assertForInStatement; -exports.assertForOfStatement = assertForOfStatement; -exports.assertForStatement = assertForStatement; -exports.assertForXStatement = assertForXStatement; -exports.assertFunction = assertFunction; -exports.assertFunctionDeclaration = assertFunctionDeclaration; -exports.assertFunctionExpression = assertFunctionExpression; -exports.assertFunctionParent = assertFunctionParent; -exports.assertFunctionTypeAnnotation = assertFunctionTypeAnnotation; -exports.assertFunctionTypeParam = assertFunctionTypeParam; -exports.assertGenericTypeAnnotation = assertGenericTypeAnnotation; -exports.assertIdentifier = assertIdentifier; -exports.assertIfStatement = assertIfStatement; -exports.assertImmutable = assertImmutable; -exports.assertImport = assertImport; -exports.assertImportAttribute = assertImportAttribute; -exports.assertImportDeclaration = assertImportDeclaration; -exports.assertImportDefaultSpecifier = assertImportDefaultSpecifier; -exports.assertImportNamespaceSpecifier = assertImportNamespaceSpecifier; -exports.assertImportOrExportDeclaration = assertImportOrExportDeclaration; -exports.assertImportSpecifier = assertImportSpecifier; -exports.assertIndexedAccessType = assertIndexedAccessType; -exports.assertInferredPredicate = assertInferredPredicate; -exports.assertInterfaceDeclaration = assertInterfaceDeclaration; -exports.assertInterfaceExtends = assertInterfaceExtends; -exports.assertInterfaceTypeAnnotation = assertInterfaceTypeAnnotation; -exports.assertInterpreterDirective = assertInterpreterDirective; -exports.assertIntersectionTypeAnnotation = assertIntersectionTypeAnnotation; -exports.assertJSX = assertJSX; -exports.assertJSXAttribute = assertJSXAttribute; -exports.assertJSXClosingElement = assertJSXClosingElement; -exports.assertJSXClosingFragment = assertJSXClosingFragment; -exports.assertJSXElement = assertJSXElement; -exports.assertJSXEmptyExpression = assertJSXEmptyExpression; -exports.assertJSXExpressionContainer = assertJSXExpressionContainer; -exports.assertJSXFragment = assertJSXFragment; -exports.assertJSXIdentifier = assertJSXIdentifier; -exports.assertJSXMemberExpression = assertJSXMemberExpression; -exports.assertJSXNamespacedName = assertJSXNamespacedName; -exports.assertJSXOpeningElement = assertJSXOpeningElement; -exports.assertJSXOpeningFragment = assertJSXOpeningFragment; -exports.assertJSXSpreadAttribute = assertJSXSpreadAttribute; -exports.assertJSXSpreadChild = assertJSXSpreadChild; -exports.assertJSXText = assertJSXText; -exports.assertLVal = assertLVal; -exports.assertLabeledStatement = assertLabeledStatement; -exports.assertLiteral = assertLiteral; -exports.assertLogicalExpression = assertLogicalExpression; -exports.assertLoop = assertLoop; -exports.assertMemberExpression = assertMemberExpression; -exports.assertMetaProperty = assertMetaProperty; -exports.assertMethod = assertMethod; -exports.assertMiscellaneous = assertMiscellaneous; -exports.assertMixedTypeAnnotation = assertMixedTypeAnnotation; -exports.assertModuleDeclaration = assertModuleDeclaration; -exports.assertModuleExpression = assertModuleExpression; -exports.assertModuleSpecifier = assertModuleSpecifier; -exports.assertNewExpression = assertNewExpression; -exports.assertNoop = assertNoop; -exports.assertNullLiteral = assertNullLiteral; -exports.assertNullLiteralTypeAnnotation = assertNullLiteralTypeAnnotation; -exports.assertNullableTypeAnnotation = assertNullableTypeAnnotation; -exports.assertNumberLiteral = assertNumberLiteral; -exports.assertNumberLiteralTypeAnnotation = assertNumberLiteralTypeAnnotation; -exports.assertNumberTypeAnnotation = assertNumberTypeAnnotation; -exports.assertNumericLiteral = assertNumericLiteral; -exports.assertObjectExpression = assertObjectExpression; -exports.assertObjectMember = assertObjectMember; -exports.assertObjectMethod = assertObjectMethod; -exports.assertObjectPattern = assertObjectPattern; -exports.assertObjectProperty = assertObjectProperty; -exports.assertObjectTypeAnnotation = assertObjectTypeAnnotation; -exports.assertObjectTypeCallProperty = assertObjectTypeCallProperty; -exports.assertObjectTypeIndexer = assertObjectTypeIndexer; -exports.assertObjectTypeInternalSlot = assertObjectTypeInternalSlot; -exports.assertObjectTypeProperty = assertObjectTypeProperty; -exports.assertObjectTypeSpreadProperty = assertObjectTypeSpreadProperty; -exports.assertOpaqueType = assertOpaqueType; -exports.assertOptionalCallExpression = assertOptionalCallExpression; -exports.assertOptionalIndexedAccessType = assertOptionalIndexedAccessType; -exports.assertOptionalMemberExpression = assertOptionalMemberExpression; -exports.assertParenthesizedExpression = assertParenthesizedExpression; -exports.assertPattern = assertPattern; -exports.assertPatternLike = assertPatternLike; -exports.assertPipelineBareFunction = assertPipelineBareFunction; -exports.assertPipelinePrimaryTopicReference = assertPipelinePrimaryTopicReference; -exports.assertPipelineTopicExpression = assertPipelineTopicExpression; -exports.assertPlaceholder = assertPlaceholder; -exports.assertPrivate = assertPrivate; -exports.assertPrivateName = assertPrivateName; -exports.assertProgram = assertProgram; -exports.assertProperty = assertProperty; -exports.assertPureish = assertPureish; -exports.assertQualifiedTypeIdentifier = assertQualifiedTypeIdentifier; -exports.assertRecordExpression = assertRecordExpression; -exports.assertRegExpLiteral = assertRegExpLiteral; -exports.assertRegexLiteral = assertRegexLiteral; -exports.assertRestElement = assertRestElement; -exports.assertRestProperty = assertRestProperty; -exports.assertReturnStatement = assertReturnStatement; -exports.assertScopable = assertScopable; -exports.assertSequenceExpression = assertSequenceExpression; -exports.assertSpreadElement = assertSpreadElement; -exports.assertSpreadProperty = assertSpreadProperty; -exports.assertStandardized = assertStandardized; -exports.assertStatement = assertStatement; -exports.assertStaticBlock = assertStaticBlock; -exports.assertStringLiteral = assertStringLiteral; -exports.assertStringLiteralTypeAnnotation = assertStringLiteralTypeAnnotation; -exports.assertStringTypeAnnotation = assertStringTypeAnnotation; -exports.assertSuper = assertSuper; -exports.assertSwitchCase = assertSwitchCase; -exports.assertSwitchStatement = assertSwitchStatement; -exports.assertSymbolTypeAnnotation = assertSymbolTypeAnnotation; -exports.assertTSAnyKeyword = assertTSAnyKeyword; -exports.assertTSArrayType = assertTSArrayType; -exports.assertTSAsExpression = assertTSAsExpression; -exports.assertTSBaseType = assertTSBaseType; -exports.assertTSBigIntKeyword = assertTSBigIntKeyword; -exports.assertTSBooleanKeyword = assertTSBooleanKeyword; -exports.assertTSCallSignatureDeclaration = assertTSCallSignatureDeclaration; -exports.assertTSConditionalType = assertTSConditionalType; -exports.assertTSConstructSignatureDeclaration = assertTSConstructSignatureDeclaration; -exports.assertTSConstructorType = assertTSConstructorType; -exports.assertTSDeclareFunction = assertTSDeclareFunction; -exports.assertTSDeclareMethod = assertTSDeclareMethod; -exports.assertTSEntityName = assertTSEntityName; -exports.assertTSEnumDeclaration = assertTSEnumDeclaration; -exports.assertTSEnumMember = assertTSEnumMember; -exports.assertTSExportAssignment = assertTSExportAssignment; -exports.assertTSExpressionWithTypeArguments = assertTSExpressionWithTypeArguments; -exports.assertTSExternalModuleReference = assertTSExternalModuleReference; -exports.assertTSFunctionType = assertTSFunctionType; -exports.assertTSImportEqualsDeclaration = assertTSImportEqualsDeclaration; -exports.assertTSImportType = assertTSImportType; -exports.assertTSIndexSignature = assertTSIndexSignature; -exports.assertTSIndexedAccessType = assertTSIndexedAccessType; -exports.assertTSInferType = assertTSInferType; -exports.assertTSInstantiationExpression = assertTSInstantiationExpression; -exports.assertTSInterfaceBody = assertTSInterfaceBody; -exports.assertTSInterfaceDeclaration = assertTSInterfaceDeclaration; -exports.assertTSIntersectionType = assertTSIntersectionType; -exports.assertTSIntrinsicKeyword = assertTSIntrinsicKeyword; -exports.assertTSLiteralType = assertTSLiteralType; -exports.assertTSMappedType = assertTSMappedType; -exports.assertTSMethodSignature = assertTSMethodSignature; -exports.assertTSModuleBlock = assertTSModuleBlock; -exports.assertTSModuleDeclaration = assertTSModuleDeclaration; -exports.assertTSNamedTupleMember = assertTSNamedTupleMember; -exports.assertTSNamespaceExportDeclaration = assertTSNamespaceExportDeclaration; -exports.assertTSNeverKeyword = assertTSNeverKeyword; -exports.assertTSNonNullExpression = assertTSNonNullExpression; -exports.assertTSNullKeyword = assertTSNullKeyword; -exports.assertTSNumberKeyword = assertTSNumberKeyword; -exports.assertTSObjectKeyword = assertTSObjectKeyword; -exports.assertTSOptionalType = assertTSOptionalType; -exports.assertTSParameterProperty = assertTSParameterProperty; -exports.assertTSParenthesizedType = assertTSParenthesizedType; -exports.assertTSPropertySignature = assertTSPropertySignature; -exports.assertTSQualifiedName = assertTSQualifiedName; -exports.assertTSRestType = assertTSRestType; -exports.assertTSSatisfiesExpression = assertTSSatisfiesExpression; -exports.assertTSStringKeyword = assertTSStringKeyword; -exports.assertTSSymbolKeyword = assertTSSymbolKeyword; -exports.assertTSThisType = assertTSThisType; -exports.assertTSTupleType = assertTSTupleType; -exports.assertTSType = assertTSType; -exports.assertTSTypeAliasDeclaration = assertTSTypeAliasDeclaration; -exports.assertTSTypeAnnotation = assertTSTypeAnnotation; -exports.assertTSTypeAssertion = assertTSTypeAssertion; -exports.assertTSTypeElement = assertTSTypeElement; -exports.assertTSTypeLiteral = assertTSTypeLiteral; -exports.assertTSTypeOperator = assertTSTypeOperator; -exports.assertTSTypeParameter = assertTSTypeParameter; -exports.assertTSTypeParameterDeclaration = assertTSTypeParameterDeclaration; -exports.assertTSTypeParameterInstantiation = assertTSTypeParameterInstantiation; -exports.assertTSTypePredicate = assertTSTypePredicate; -exports.assertTSTypeQuery = assertTSTypeQuery; -exports.assertTSTypeReference = assertTSTypeReference; -exports.assertTSUndefinedKeyword = assertTSUndefinedKeyword; -exports.assertTSUnionType = assertTSUnionType; -exports.assertTSUnknownKeyword = assertTSUnknownKeyword; -exports.assertTSVoidKeyword = assertTSVoidKeyword; -exports.assertTaggedTemplateExpression = assertTaggedTemplateExpression; -exports.assertTemplateElement = assertTemplateElement; -exports.assertTemplateLiteral = assertTemplateLiteral; -exports.assertTerminatorless = assertTerminatorless; -exports.assertThisExpression = assertThisExpression; -exports.assertThisTypeAnnotation = assertThisTypeAnnotation; -exports.assertThrowStatement = assertThrowStatement; -exports.assertTopicReference = assertTopicReference; -exports.assertTryStatement = assertTryStatement; -exports.assertTupleExpression = assertTupleExpression; -exports.assertTupleTypeAnnotation = assertTupleTypeAnnotation; -exports.assertTypeAlias = assertTypeAlias; -exports.assertTypeAnnotation = assertTypeAnnotation; -exports.assertTypeCastExpression = assertTypeCastExpression; -exports.assertTypeParameter = assertTypeParameter; -exports.assertTypeParameterDeclaration = assertTypeParameterDeclaration; -exports.assertTypeParameterInstantiation = assertTypeParameterInstantiation; -exports.assertTypeScript = assertTypeScript; -exports.assertTypeofTypeAnnotation = assertTypeofTypeAnnotation; -exports.assertUnaryExpression = assertUnaryExpression; -exports.assertUnaryLike = assertUnaryLike; -exports.assertUnionTypeAnnotation = assertUnionTypeAnnotation; -exports.assertUpdateExpression = assertUpdateExpression; -exports.assertUserWhitespacable = assertUserWhitespacable; -exports.assertV8IntrinsicIdentifier = assertV8IntrinsicIdentifier; -exports.assertVariableDeclaration = assertVariableDeclaration; -exports.assertVariableDeclarator = assertVariableDeclarator; -exports.assertVariance = assertVariance; -exports.assertVoidTypeAnnotation = assertVoidTypeAnnotation; -exports.assertWhile = assertWhile; -exports.assertWhileStatement = assertWhileStatement; -exports.assertWithStatement = assertWithStatement; -exports.assertYieldExpression = assertYieldExpression; -var _is = __nccwpck_require__(73217); -var _deprecationWarning = __nccwpck_require__(43823); -function assert(type, node, opts) { - if (!(0, _is.default)(type, node, opts)) { - throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, ` + `but instead got "${node.type}".`); + printJoin(nodes, parent, opts = {}) { + if (!(nodes != null && nodes.length)) return; + let { + indent + } = opts; + if (indent == null && this.format.retainLines) { + var _nodes$0$loc; + const startLine = (_nodes$0$loc = nodes[0].loc) == null ? void 0 : _nodes$0$loc.start.line; + if (startLine != null && startLine !== this._buf.getCurrentLine()) { + indent = true; + } + } + if (indent) this.indent(); + const newlineOpts = { + addNewlines: opts.addNewlines, + nextNodeStartLine: 0 + }; + const separator = opts.separator ? opts.separator.bind(this) : null; + const len = nodes.length; + for (let i = 0; i < len; i++) { + const node = nodes[i]; + if (!node) continue; + if (opts.statement) this._printNewline(i === 0, newlineOpts); + this.print(node, parent, undefined, opts.trailingCommentsLineOffset || 0); + opts.iterator == null || opts.iterator(node, i); + if (i < len - 1) separator == null || separator(); + if (opts.statement) { + var _node$trailingComment; + if (!((_node$trailingComment = node.trailingComments) != null && _node$trailingComment.length)) { + this._lastCommentLine = 0; + } + if (i + 1 === len) { + this.newline(1); + } else { + var _nextNode$loc; + const nextNode = nodes[i + 1]; + newlineOpts.nextNodeStartLine = ((_nextNode$loc = nextNode.loc) == null ? void 0 : _nextNode$loc.start.line) || 0; + this._printNewline(true, newlineOpts); + } + } + } + if (indent) this.dedent(); + } + printAndIndentOnComments(node, parent) { + const indent = node.leadingComments && node.leadingComments.length > 0; + if (indent) this.indent(); + this.print(node, parent); + if (indent) this.dedent(); + } + printBlock(parent) { + const node = parent.body; + if (node.type !== "EmptyStatement") { + this.space(); + } + this.print(node, parent); + } + _printTrailingComments(node, parent, lineOffset) { + const { + innerComments, + trailingComments + } = node; + if (innerComments != null && innerComments.length) { + this._printComments(2, innerComments, node, parent, lineOffset); + } + if (trailingComments != null && trailingComments.length) { + this._printComments(2, trailingComments, node, parent, lineOffset); + } + } + _printLeadingComments(node, parent) { + const comments = node.leadingComments; + if (!(comments != null && comments.length)) return; + this._printComments(0, comments, node, parent); + } + _maybePrintInnerComments() { + if (this._endsWithInnerRaw) this.printInnerComments(); + this._endsWithInnerRaw = true; + this._indentInnerComments = true; + } + printInnerComments() { + const node = this._printStack[this._printStack.length - 1]; + const comments = node.innerComments; + if (!(comments != null && comments.length)) return; + const hasSpace = this.endsWith(32); + const indent = this._indentInnerComments; + const printedCommentsCount = this._printedComments.size; + if (indent) this.indent(); + this._printComments(1, comments, node); + if (hasSpace && printedCommentsCount !== this._printedComments.size) { + this.space(); + } + if (indent) this.dedent(); + } + noIndentInnerCommentsHere() { + this._indentInnerComments = false; + } + printSequence(nodes, parent, opts = {}) { + var _opts$indent; + opts.statement = true; + (_opts$indent = opts.indent) != null ? _opts$indent : opts.indent = false; + this.printJoin(nodes, parent, opts); + } + printList(items, parent, opts = {}) { + if (opts.separator == null) { + opts.separator = commaSeparator; + } + this.printJoin(items, parent, opts); + } + _printNewline(newLine, opts) { + const format = this.format; + if (format.retainLines || format.compact) return; + if (format.concise) { + this.space(); + return; + } + if (!newLine) { + return; + } + const startLine = opts.nextNodeStartLine; + const lastCommentLine = this._lastCommentLine; + if (startLine > 0 && lastCommentLine > 0) { + const offset = startLine - lastCommentLine; + if (offset >= 0) { + this.newline(offset || 1); + return; + } + } + if (this._buf.hasContent()) { + this.newline(1); + } + } + _shouldPrintComment(comment) { + if (comment.ignore) return 0; + if (this._printedComments.has(comment)) return 0; + if (this._noLineTerminator && HAS_NEWLINE_OR_BlOCK_COMMENT_END.test(comment.value)) { + return 2; + } + this._printedComments.add(comment); + if (!this.format.shouldPrintComment(comment.value)) { + return 0; + } + return 1; + } + _printComment(comment, skipNewLines) { + const noLineTerminator = this._noLineTerminator; + const isBlockComment = comment.type === "CommentBlock"; + const printNewLines = isBlockComment && skipNewLines !== 1 && !this._noLineTerminator; + if (printNewLines && this._buf.hasContent() && skipNewLines !== 2) { + this.newline(1); + } + const lastCharCode = this.getLastChar(); + if (lastCharCode !== 91 && lastCharCode !== 123) { + this.space(); + } + let val; + if (isBlockComment) { + const { + _parenPushNewlineState + } = this; + if ((_parenPushNewlineState == null ? void 0 : _parenPushNewlineState.printed) === false && HAS_NEWLINE.test(comment.value)) { + this.tokenChar(40); + this.indent(); + _parenPushNewlineState.printed = true; + } + val = `/*${comment.value}*/`; + if (this.format.indent.adjustMultilineComment) { + var _comment$loc; + const offset = (_comment$loc = comment.loc) == null ? void 0 : _comment$loc.start.column; + if (offset) { + const newlineRegex = new RegExp("\\n\\s{1," + offset + "}", "g"); + val = val.replace(newlineRegex, "\n"); + } + if (this.format.concise) { + val = val.replace(/\n(?!$)/g, `\n`); + } else { + let indentSize = this.format.retainLines ? 0 : this._buf.getCurrentColumn(); + if (this._shouldIndent(47) || this.format.retainLines) { + indentSize += this._getIndent(); + } + val = val.replace(/\n(?!$)/g, `\n${" ".repeat(indentSize)}`); + } + } + } else if (!noLineTerminator) { + val = `//${comment.value}`; + } else { + val = `/*${comment.value}*/`; + } + if (this.endsWith(47)) this._space(); + this.source("start", comment.loc); + this._append(val, isBlockComment); + if (!isBlockComment && !noLineTerminator) { + this.newline(1, true); + } + if (printNewLines && skipNewLines !== 3) { + this.newline(1); + } + } + _printComments(type, comments, node, parent, lineOffset = 0) { + const nodeLoc = node.loc; + const len = comments.length; + let hasLoc = !!nodeLoc; + const nodeStartLine = hasLoc ? nodeLoc.start.line : 0; + const nodeEndLine = hasLoc ? nodeLoc.end.line : 0; + let lastLine = 0; + let leadingCommentNewline = 0; + const maybeNewline = this._noLineTerminator ? function () {} : this.newline.bind(this); + for (let i = 0; i < len; i++) { + const comment = comments[i]; + const shouldPrint = this._shouldPrintComment(comment); + if (shouldPrint === 2) { + hasLoc = false; + break; + } + if (hasLoc && comment.loc && shouldPrint === 1) { + const commentStartLine = comment.loc.start.line; + const commentEndLine = comment.loc.end.line; + if (type === 0) { + let offset = 0; + if (i === 0) { + if (this._buf.hasContent() && (comment.type === "CommentLine" || commentStartLine != commentEndLine)) { + offset = leadingCommentNewline = 1; + } + } else { + offset = commentStartLine - lastLine; + } + lastLine = commentEndLine; + maybeNewline(offset); + this._printComment(comment, 1); + if (i + 1 === len) { + maybeNewline(Math.max(nodeStartLine - lastLine, leadingCommentNewline)); + lastLine = nodeStartLine; + } + } else if (type === 1) { + const offset = commentStartLine - (i === 0 ? nodeStartLine : lastLine); + lastLine = commentEndLine; + maybeNewline(offset); + this._printComment(comment, 1); + if (i + 1 === len) { + maybeNewline(Math.min(1, nodeEndLine - lastLine)); + lastLine = nodeEndLine; + } + } else { + const offset = commentStartLine - (i === 0 ? nodeEndLine - lineOffset : lastLine); + lastLine = commentEndLine; + maybeNewline(offset); + this._printComment(comment, 1); + } + } else { + hasLoc = false; + if (shouldPrint !== 1) { + continue; + } + if (len === 1) { + const singleLine = comment.loc ? comment.loc.start.line === comment.loc.end.line : !HAS_NEWLINE.test(comment.value); + const shouldSkipNewline = singleLine && !isStatement(node) && !isClassBody(parent) && !isTSInterfaceBody(parent) && !isTSEnumDeclaration(parent); + if (type === 0) { + this._printComment(comment, shouldSkipNewline && node.type !== "ObjectExpression" || singleLine && isFunction(parent, { + body: node + }) ? 1 : 0); + } else if (shouldSkipNewline && type === 2) { + this._printComment(comment, 1); + } else { + this._printComment(comment, 0); + } + } else if (type === 1 && !(node.type === "ObjectExpression" && node.properties.length > 1) && node.type !== "ClassBody" && node.type !== "TSInterfaceBody") { + this._printComment(comment, i === 0 ? 2 : i === len - 1 ? 3 : 0); + } else { + this._printComment(comment, 0); + } + } + } + if (type === 2 && hasLoc && lastLine) { + this._lastCommentLine = lastLine; + } } } -function assertArrayExpression(node, opts) { - assert("ArrayExpression", node, opts); -} -function assertAssignmentExpression(node, opts) { - assert("AssignmentExpression", node, opts); -} -function assertBinaryExpression(node, opts) { - assert("BinaryExpression", node, opts); -} -function assertInterpreterDirective(node, opts) { - assert("InterpreterDirective", node, opts); -} -function assertDirective(node, opts) { - assert("Directive", node, opts); -} -function assertDirectiveLiteral(node, opts) { - assert("DirectiveLiteral", node, opts); -} -function assertBlockStatement(node, opts) { - assert("BlockStatement", node, opts); -} -function assertBreakStatement(node, opts) { - assert("BreakStatement", node, opts); -} -function assertCallExpression(node, opts) { - assert("CallExpression", node, opts); -} -function assertCatchClause(node, opts) { - assert("CatchClause", node, opts); -} -function assertConditionalExpression(node, opts) { - assert("ConditionalExpression", node, opts); -} -function assertContinueStatement(node, opts) { - assert("ContinueStatement", node, opts); -} -function assertDebuggerStatement(node, opts) { - assert("DebuggerStatement", node, opts); -} -function assertDoWhileStatement(node, opts) { - assert("DoWhileStatement", node, opts); -} -function assertEmptyStatement(node, opts) { - assert("EmptyStatement", node, opts); -} -function assertExpressionStatement(node, opts) { - assert("ExpressionStatement", node, opts); -} -function assertFile(node, opts) { - assert("File", node, opts); -} -function assertForInStatement(node, opts) { - assert("ForInStatement", node, opts); -} -function assertForStatement(node, opts) { - assert("ForStatement", node, opts); -} -function assertFunctionDeclaration(node, opts) { - assert("FunctionDeclaration", node, opts); -} -function assertFunctionExpression(node, opts) { - assert("FunctionExpression", node, opts); -} -function assertIdentifier(node, opts) { - assert("Identifier", node, opts); -} -function assertIfStatement(node, opts) { - assert("IfStatement", node, opts); -} -function assertLabeledStatement(node, opts) { - assert("LabeledStatement", node, opts); -} -function assertStringLiteral(node, opts) { - assert("StringLiteral", node, opts); -} -function assertNumericLiteral(node, opts) { - assert("NumericLiteral", node, opts); -} -function assertNullLiteral(node, opts) { - assert("NullLiteral", node, opts); -} -function assertBooleanLiteral(node, opts) { - assert("BooleanLiteral", node, opts); -} -function assertRegExpLiteral(node, opts) { - assert("RegExpLiteral", node, opts); -} -function assertLogicalExpression(node, opts) { - assert("LogicalExpression", node, opts); -} -function assertMemberExpression(node, opts) { - assert("MemberExpression", node, opts); -} -function assertNewExpression(node, opts) { - assert("NewExpression", node, opts); -} -function assertProgram(node, opts) { - assert("Program", node, opts); -} -function assertObjectExpression(node, opts) { - assert("ObjectExpression", node, opts); -} -function assertObjectMethod(node, opts) { - assert("ObjectMethod", node, opts); -} -function assertObjectProperty(node, opts) { - assert("ObjectProperty", node, opts); -} -function assertRestElement(node, opts) { - assert("RestElement", node, opts); -} -function assertReturnStatement(node, opts) { - assert("ReturnStatement", node, opts); -} -function assertSequenceExpression(node, opts) { - assert("SequenceExpression", node, opts); -} -function assertParenthesizedExpression(node, opts) { - assert("ParenthesizedExpression", node, opts); -} -function assertSwitchCase(node, opts) { - assert("SwitchCase", node, opts); -} -function assertSwitchStatement(node, opts) { - assert("SwitchStatement", node, opts); -} -function assertThisExpression(node, opts) { - assert("ThisExpression", node, opts); -} -function assertThrowStatement(node, opts) { - assert("ThrowStatement", node, opts); -} -function assertTryStatement(node, opts) { - assert("TryStatement", node, opts); -} -function assertUnaryExpression(node, opts) { - assert("UnaryExpression", node, opts); -} -function assertUpdateExpression(node, opts) { - assert("UpdateExpression", node, opts); -} -function assertVariableDeclaration(node, opts) { - assert("VariableDeclaration", node, opts); -} -function assertVariableDeclarator(node, opts) { - assert("VariableDeclarator", node, opts); -} -function assertWhileStatement(node, opts) { - assert("WhileStatement", node, opts); -} -function assertWithStatement(node, opts) { - assert("WithStatement", node, opts); -} -function assertAssignmentPattern(node, opts) { - assert("AssignmentPattern", node, opts); -} -function assertArrayPattern(node, opts) { - assert("ArrayPattern", node, opts); -} -function assertArrowFunctionExpression(node, opts) { - assert("ArrowFunctionExpression", node, opts); -} -function assertClassBody(node, opts) { - assert("ClassBody", node, opts); -} -function assertClassExpression(node, opts) { - assert("ClassExpression", node, opts); -} -function assertClassDeclaration(node, opts) { - assert("ClassDeclaration", node, opts); -} -function assertExportAllDeclaration(node, opts) { - assert("ExportAllDeclaration", node, opts); -} -function assertExportDefaultDeclaration(node, opts) { - assert("ExportDefaultDeclaration", node, opts); -} -function assertExportNamedDeclaration(node, opts) { - assert("ExportNamedDeclaration", node, opts); -} -function assertExportSpecifier(node, opts) { - assert("ExportSpecifier", node, opts); -} -function assertForOfStatement(node, opts) { - assert("ForOfStatement", node, opts); -} -function assertImportDeclaration(node, opts) { - assert("ImportDeclaration", node, opts); -} -function assertImportDefaultSpecifier(node, opts) { - assert("ImportDefaultSpecifier", node, opts); -} -function assertImportNamespaceSpecifier(node, opts) { - assert("ImportNamespaceSpecifier", node, opts); -} -function assertImportSpecifier(node, opts) { - assert("ImportSpecifier", node, opts); -} -function assertMetaProperty(node, opts) { - assert("MetaProperty", node, opts); -} -function assertClassMethod(node, opts) { - assert("ClassMethod", node, opts); -} -function assertObjectPattern(node, opts) { - assert("ObjectPattern", node, opts); -} -function assertSpreadElement(node, opts) { - assert("SpreadElement", node, opts); -} -function assertSuper(node, opts) { - assert("Super", node, opts); -} -function assertTaggedTemplateExpression(node, opts) { - assert("TaggedTemplateExpression", node, opts); -} -function assertTemplateElement(node, opts) { - assert("TemplateElement", node, opts); -} -function assertTemplateLiteral(node, opts) { - assert("TemplateLiteral", node, opts); -} -function assertYieldExpression(node, opts) { - assert("YieldExpression", node, opts); -} -function assertAwaitExpression(node, opts) { - assert("AwaitExpression", node, opts); -} -function assertImport(node, opts) { - assert("Import", node, opts); -} -function assertBigIntLiteral(node, opts) { - assert("BigIntLiteral", node, opts); -} -function assertExportNamespaceSpecifier(node, opts) { - assert("ExportNamespaceSpecifier", node, opts); -} -function assertOptionalMemberExpression(node, opts) { - assert("OptionalMemberExpression", node, opts); -} -function assertOptionalCallExpression(node, opts) { - assert("OptionalCallExpression", node, opts); -} -function assertClassProperty(node, opts) { - assert("ClassProperty", node, opts); -} -function assertClassAccessorProperty(node, opts) { - assert("ClassAccessorProperty", node, opts); -} -function assertClassPrivateProperty(node, opts) { - assert("ClassPrivateProperty", node, opts); -} -function assertClassPrivateMethod(node, opts) { - assert("ClassPrivateMethod", node, opts); -} -function assertPrivateName(node, opts) { - assert("PrivateName", node, opts); -} -function assertStaticBlock(node, opts) { - assert("StaticBlock", node, opts); -} -function assertAnyTypeAnnotation(node, opts) { - assert("AnyTypeAnnotation", node, opts); -} -function assertArrayTypeAnnotation(node, opts) { - assert("ArrayTypeAnnotation", node, opts); -} -function assertBooleanTypeAnnotation(node, opts) { - assert("BooleanTypeAnnotation", node, opts); -} -function assertBooleanLiteralTypeAnnotation(node, opts) { - assert("BooleanLiteralTypeAnnotation", node, opts); -} -function assertNullLiteralTypeAnnotation(node, opts) { - assert("NullLiteralTypeAnnotation", node, opts); -} -function assertClassImplements(node, opts) { - assert("ClassImplements", node, opts); -} -function assertDeclareClass(node, opts) { - assert("DeclareClass", node, opts); -} -function assertDeclareFunction(node, opts) { - assert("DeclareFunction", node, opts); -} -function assertDeclareInterface(node, opts) { - assert("DeclareInterface", node, opts); -} -function assertDeclareModule(node, opts) { - assert("DeclareModule", node, opts); -} -function assertDeclareModuleExports(node, opts) { - assert("DeclareModuleExports", node, opts); -} -function assertDeclareTypeAlias(node, opts) { - assert("DeclareTypeAlias", node, opts); -} -function assertDeclareOpaqueType(node, opts) { - assert("DeclareOpaqueType", node, opts); -} -function assertDeclareVariable(node, opts) { - assert("DeclareVariable", node, opts); -} -function assertDeclareExportDeclaration(node, opts) { - assert("DeclareExportDeclaration", node, opts); -} -function assertDeclareExportAllDeclaration(node, opts) { - assert("DeclareExportAllDeclaration", node, opts); -} -function assertDeclaredPredicate(node, opts) { - assert("DeclaredPredicate", node, opts); -} -function assertExistsTypeAnnotation(node, opts) { - assert("ExistsTypeAnnotation", node, opts); -} -function assertFunctionTypeAnnotation(node, opts) { - assert("FunctionTypeAnnotation", node, opts); -} -function assertFunctionTypeParam(node, opts) { - assert("FunctionTypeParam", node, opts); -} -function assertGenericTypeAnnotation(node, opts) { - assert("GenericTypeAnnotation", node, opts); -} -function assertInferredPredicate(node, opts) { - assert("InferredPredicate", node, opts); -} -function assertInterfaceExtends(node, opts) { - assert("InterfaceExtends", node, opts); -} -function assertInterfaceDeclaration(node, opts) { - assert("InterfaceDeclaration", node, opts); -} -function assertInterfaceTypeAnnotation(node, opts) { - assert("InterfaceTypeAnnotation", node, opts); -} -function assertIntersectionTypeAnnotation(node, opts) { - assert("IntersectionTypeAnnotation", node, opts); -} -function assertMixedTypeAnnotation(node, opts) { - assert("MixedTypeAnnotation", node, opts); -} -function assertEmptyTypeAnnotation(node, opts) { - assert("EmptyTypeAnnotation", node, opts); -} -function assertNullableTypeAnnotation(node, opts) { - assert("NullableTypeAnnotation", node, opts); -} -function assertNumberLiteralTypeAnnotation(node, opts) { - assert("NumberLiteralTypeAnnotation", node, opts); -} -function assertNumberTypeAnnotation(node, opts) { - assert("NumberTypeAnnotation", node, opts); -} -function assertObjectTypeAnnotation(node, opts) { - assert("ObjectTypeAnnotation", node, opts); -} -function assertObjectTypeInternalSlot(node, opts) { - assert("ObjectTypeInternalSlot", node, opts); -} -function assertObjectTypeCallProperty(node, opts) { - assert("ObjectTypeCallProperty", node, opts); -} -function assertObjectTypeIndexer(node, opts) { - assert("ObjectTypeIndexer", node, opts); -} -function assertObjectTypeProperty(node, opts) { - assert("ObjectTypeProperty", node, opts); -} -function assertObjectTypeSpreadProperty(node, opts) { - assert("ObjectTypeSpreadProperty", node, opts); -} -function assertOpaqueType(node, opts) { - assert("OpaqueType", node, opts); -} -function assertQualifiedTypeIdentifier(node, opts) { - assert("QualifiedTypeIdentifier", node, opts); -} -function assertStringLiteralTypeAnnotation(node, opts) { - assert("StringLiteralTypeAnnotation", node, opts); -} -function assertStringTypeAnnotation(node, opts) { - assert("StringTypeAnnotation", node, opts); -} -function assertSymbolTypeAnnotation(node, opts) { - assert("SymbolTypeAnnotation", node, opts); -} -function assertThisTypeAnnotation(node, opts) { - assert("ThisTypeAnnotation", node, opts); +Object.assign(Printer.prototype, generatorFunctions); +{ + Printer.prototype.Noop = function Noop() {}; } -function assertTupleTypeAnnotation(node, opts) { - assert("TupleTypeAnnotation", node, opts); +var _default = exports["default"] = Printer; +function commaSeparator() { + this.tokenChar(44); + this.space(); } -function assertTypeofTypeAnnotation(node, opts) { - assert("TypeofTypeAnnotation", node, opts); + +//# sourceMappingURL=printer.js.map + + +/***/ }), + +/***/ 63080: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _genMapping = __nccwpck_require__(11885); +var _traceMapping = __nccwpck_require__(72215); +class SourceMap { + constructor(opts, code) { + var _opts$sourceFileName; + this._map = void 0; + this._rawMappings = void 0; + this._sourceFileName = void 0; + this._lastGenLine = 0; + this._lastSourceLine = 0; + this._lastSourceColumn = 0; + this._inputMap = void 0; + const map = this._map = new _genMapping.GenMapping({ + sourceRoot: opts.sourceRoot + }); + this._sourceFileName = (_opts$sourceFileName = opts.sourceFileName) == null ? void 0 : _opts$sourceFileName.replace(/\\/g, "/"); + this._rawMappings = undefined; + if (opts.inputSourceMap) { + this._inputMap = new _traceMapping.TraceMap(opts.inputSourceMap); + const resolvedSources = this._inputMap.resolvedSources; + if (resolvedSources.length) { + for (let i = 0; i < resolvedSources.length; i++) { + var _this$_inputMap$sourc; + (0, _genMapping.setSourceContent)(map, resolvedSources[i], (_this$_inputMap$sourc = this._inputMap.sourcesContent) == null ? void 0 : _this$_inputMap$sourc[i]); + } + } + } + if (typeof code === "string" && !opts.inputSourceMap) { + (0, _genMapping.setSourceContent)(map, this._sourceFileName, code); + } else if (typeof code === "object") { + for (const sourceFileName of Object.keys(code)) { + (0, _genMapping.setSourceContent)(map, sourceFileName.replace(/\\/g, "/"), code[sourceFileName]); + } + } + } + get() { + return (0, _genMapping.toEncodedMap)(this._map); + } + getDecoded() { + return (0, _genMapping.toDecodedMap)(this._map); + } + getRawMappings() { + return this._rawMappings || (this._rawMappings = (0, _genMapping.allMappings)(this._map)); + } + mark(generated, line, column, identifierName, identifierNamePos, filename) { + var _originalMapping; + this._rawMappings = undefined; + let originalMapping; + if (line != null) { + if (this._inputMap) { + originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, { + line, + column + }); + if (!originalMapping.name && identifierNamePos) { + const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos); + if (originalIdentifierMapping.name) { + identifierName = originalIdentifierMapping.name; + } + } + } else { + originalMapping = { + source: (filename == null ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName, + line: line, + column: column + }; + } + } + (0, _genMapping.maybeAddMapping)(this._map, { + name: identifierName, + generated, + source: (_originalMapping = originalMapping) == null ? void 0 : _originalMapping.source, + original: originalMapping + }); + } } -function assertTypeAlias(node, opts) { - assert("TypeAlias", node, opts); +exports["default"] = SourceMap; + +//# sourceMappingURL=source-map.js.map + + +/***/ }), + +/***/ 40151: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = annotateAsPure; +var _t = __nccwpck_require__(68948); +const { + addComment +} = _t; +const PURE_ANNOTATION = "#__PURE__"; +const isPureAnnotated = ({ + leadingComments +}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value)); +function annotateAsPure(pathOrNode) { + const node = pathOrNode["node"] || pathOrNode; + if (isPureAnnotated(node)) { + return; + } + addComment(node, "leading", PURE_ANNOTATION); } -function assertTypeAnnotation(node, opts) { - assert("TypeAnnotation", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 43888: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = explode; +var _t = __nccwpck_require__(68948); +const { + assignmentExpression, + cloneNode, + isIdentifier, + isLiteral, + isMemberExpression, + isPrivateName, + isPureish, + isSuper, + memberExpression, + toComputedKey +} = _t; +function getObjRef(node, nodes, scope) { + let ref; + if (isIdentifier(node)) { + if (scope.hasBinding(node.name)) { + return node; + } else { + ref = node; + } + } else if (isMemberExpression(node)) { + ref = node.object; + if (isSuper(ref) || isIdentifier(ref) && scope.hasBinding(ref.name)) { + return ref; + } + } else { + throw new Error(`We can't explode this node type ${node["type"]}`); + } + const temp = scope.generateUidIdentifierBasedOnNode(ref); + scope.push({ + id: temp + }); + nodes.push(assignmentExpression("=", cloneNode(temp), cloneNode(ref))); + return temp; } -function assertTypeCastExpression(node, opts) { - assert("TypeCastExpression", node, opts); +function getPropRef(node, nodes, scope) { + const prop = node.property; + if (isPrivateName(prop)) { + throw new Error("We can't generate property ref for private name, please install `@babel/plugin-transform-class-properties`"); + } + const key = toComputedKey(node, prop); + if (isLiteral(key) && isPureish(key)) return key; + const temp = scope.generateUidIdentifierBasedOnNode(prop); + scope.push({ + id: temp + }); + nodes.push(assignmentExpression("=", cloneNode(temp), cloneNode(prop))); + return temp; } -function assertTypeParameter(node, opts) { - assert("TypeParameter", node, opts); +function explode(node, nodes, scope) { + const obj = getObjRef(node, nodes, scope); + let ref, uid; + if (isIdentifier(node)) { + ref = cloneNode(node); + uid = obj; + } else { + const prop = getPropRef(node, nodes, scope); + const computed = node.computed || isLiteral(prop); + uid = memberExpression(cloneNode(obj), cloneNode(prop), computed); + ref = memberExpression(cloneNode(obj), cloneNode(prop), computed); + } + return { + uid: uid, + ref: ref + }; } -function assertTypeParameterDeclaration(node, opts) { - assert("TypeParameterDeclaration", node, opts); + +//# sourceMappingURL=explode-assignable-expression.js.map + + +/***/ }), + +/***/ 64406: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +var _t = __nccwpck_require__(68948); +var _explodeAssignableExpression = __nccwpck_require__(43888); +const { + assignmentExpression, + sequenceExpression +} = _t; +function _default(opts) { + const { + build, + operator + } = opts; + const visitor = { + AssignmentExpression(path) { + const { + node, + scope + } = path; + if (node.operator !== operator + "=") return; + const nodes = []; + const exploded = (0, _explodeAssignableExpression.default)(node.left, nodes, scope); + nodes.push(assignmentExpression("=", exploded.ref, build(exploded.uid, node.right))); + path.replaceWith(sequenceExpression(nodes)); + }, + BinaryExpression(path) { + const { + node + } = path; + if (node.operator === operator) { + path.replaceWith(build(node.left, node.right)); + } + } + }; + return visitor; } -function assertTypeParameterInstantiation(node, opts) { - assert("TypeParameterInstantiation", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 87773: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getInclusionReasons = getInclusionReasons; +var _semver = __nccwpck_require__(72641); +var _pretty = __nccwpck_require__(77526); +var _utils = __nccwpck_require__(59534); +function getInclusionReasons(item, targetVersions, list) { + const minVersions = list[item] || {}; + return Object.keys(targetVersions).reduce((result, env) => { + const minVersion = (0, _utils.getLowestImplementedVersion)(minVersions, env); + const targetVersion = targetVersions[env]; + if (!minVersion) { + result[env] = (0, _pretty.prettifyVersion)(targetVersion); + } else { + const minIsUnreleased = (0, _utils.isUnreleasedVersion)(minVersion, env); + const targetIsUnreleased = (0, _utils.isUnreleasedVersion)(targetVersion, env); + if (!targetIsUnreleased && (minIsUnreleased || _semver.lt(targetVersion.toString(), (0, _utils.semverify)(minVersion)))) { + result[env] = (0, _pretty.prettifyVersion)(targetVersion); + } + } + return result; + }, {}); } -function assertUnionTypeAnnotation(node, opts) { - assert("UnionTypeAnnotation", node, opts); + +//# sourceMappingURL=debug.js.map + + +/***/ }), + +/***/ 84581: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = filterItems; +exports.isRequired = isRequired; +exports.targetsSupported = targetsSupported; +var _semver = __nccwpck_require__(72641); +var _plugins = __nccwpck_require__(48255); +var _utils = __nccwpck_require__(59534); +function targetsSupported(target, support) { + const targetEnvironments = Object.keys(target); + if (targetEnvironments.length === 0) { + return false; + } + const unsupportedEnvironments = targetEnvironments.filter(environment => { + const lowestImplementedVersion = (0, _utils.getLowestImplementedVersion)(support, environment); + if (!lowestImplementedVersion) { + return true; + } + const lowestTargetedVersion = target[environment]; + if ((0, _utils.isUnreleasedVersion)(lowestTargetedVersion, environment)) { + return false; + } + if ((0, _utils.isUnreleasedVersion)(lowestImplementedVersion, environment)) { + return true; + } + if (!_semver.valid(lowestTargetedVersion.toString())) { + throw new Error(`Invalid version passed for target "${environment}": "${lowestTargetedVersion}". ` + "Versions must be in semver format (major.minor.patch)"); + } + return _semver.gt((0, _utils.semverify)(lowestImplementedVersion), lowestTargetedVersion.toString()); + }); + return unsupportedEnvironments.length === 0; } -function assertVariance(node, opts) { - assert("Variance", node, opts); +function isRequired(name, targets, { + compatData = _plugins, + includes, + excludes +} = {}) { + if (excludes != null && excludes.has(name)) return false; + if (includes != null && includes.has(name)) return true; + return !targetsSupported(targets, compatData[name]); } -function assertVoidTypeAnnotation(node, opts) { - assert("VoidTypeAnnotation", node, opts); +function filterItems(list, includes, excludes, targets, defaultIncludes, defaultExcludes, pluginSyntaxMap) { + const result = new Set(); + const options = { + compatData: list, + includes, + excludes + }; + for (const item in list) { + if (isRequired(item, targets, options)) { + result.add(item); + } else if (pluginSyntaxMap) { + const shippedProposalsSyntax = pluginSyntaxMap.get(item); + if (shippedProposalsSyntax) { + result.add(shippedProposalsSyntax); + } + } + } + defaultIncludes == null || defaultIncludes.forEach(item => !excludes.has(item) && result.add(item)); + defaultExcludes == null || defaultExcludes.forEach(item => !includes.has(item) && result.delete(item)); + return result; } -function assertEnumDeclaration(node, opts) { - assert("EnumDeclaration", node, opts); + +//# sourceMappingURL=filter-items.js.map + + +/***/ }), + +/***/ 91047: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "TargetNames", ({ + enumerable: true, + get: function () { + return _options.TargetNames; + } +})); +exports["default"] = getTargets; +Object.defineProperty(exports, "filterItems", ({ + enumerable: true, + get: function () { + return _filterItems.default; + } +})); +Object.defineProperty(exports, "getInclusionReasons", ({ + enumerable: true, + get: function () { + return _debug.getInclusionReasons; + } +})); +exports.isBrowsersQueryValid = isBrowsersQueryValid; +Object.defineProperty(exports, "isRequired", ({ + enumerable: true, + get: function () { + return _filterItems.isRequired; + } +})); +Object.defineProperty(exports, "prettifyTargets", ({ + enumerable: true, + get: function () { + return _pretty.prettifyTargets; + } +})); +Object.defineProperty(exports, "unreleasedLabels", ({ + enumerable: true, + get: function () { + return _targets.unreleasedLabels; + } +})); +var _browserslist = __nccwpck_require__(62509); +var _helperValidatorOption = __nccwpck_require__(16122); +var _nativeModules = __nccwpck_require__(53643); +var _lruCache = __nccwpck_require__(34543); +var _utils = __nccwpck_require__(59534); +var _targets = __nccwpck_require__(66818); +var _options = __nccwpck_require__(86862); +var _pretty = __nccwpck_require__(77526); +var _debug = __nccwpck_require__(87773); +var _filterItems = __nccwpck_require__(84581); +const ESM_SUPPORT = _nativeModules["es6.module"]; +const v = new _helperValidatorOption.OptionValidator("@babel/helper-compilation-targets"); +function validateTargetNames(targets) { + const validTargets = Object.keys(_options.TargetNames); + for (const target of Object.keys(targets)) { + if (!(target in _options.TargetNames)) { + throw new Error(v.formatMessage(`'${target}' is not a valid target +- Did you mean '${(0, _helperValidatorOption.findSuggestion)(target, validTargets)}'?`)); + } + } + return targets; } -function assertEnumBooleanBody(node, opts) { - assert("EnumBooleanBody", node, opts); +function isBrowsersQueryValid(browsers) { + return typeof browsers === "string" || Array.isArray(browsers) && browsers.every(b => typeof b === "string"); } -function assertEnumNumberBody(node, opts) { - assert("EnumNumberBody", node, opts); +function validateBrowsers(browsers) { + v.invariant(browsers === undefined || isBrowsersQueryValid(browsers), `'${String(browsers)}' is not a valid browserslist query`); + return browsers; } -function assertEnumStringBody(node, opts) { - assert("EnumStringBody", node, opts); +function getLowestVersions(browsers) { + return browsers.reduce((all, browser) => { + const [browserName, browserVersion] = browser.split(" "); + const target = _targets.browserNameMap[browserName]; + if (!target) { + return all; + } + try { + const splitVersion = browserVersion.split("-")[0].toLowerCase(); + const isSplitUnreleased = (0, _utils.isUnreleasedVersion)(splitVersion, target); + if (!all[target]) { + all[target] = isSplitUnreleased ? splitVersion : (0, _utils.semverify)(splitVersion); + return all; + } + const version = all[target]; + const isUnreleased = (0, _utils.isUnreleasedVersion)(version, target); + if (isUnreleased && isSplitUnreleased) { + all[target] = (0, _utils.getLowestUnreleased)(version, splitVersion, target); + } else if (isUnreleased) { + all[target] = (0, _utils.semverify)(splitVersion); + } else if (!isUnreleased && !isSplitUnreleased) { + const parsedBrowserVersion = (0, _utils.semverify)(splitVersion); + all[target] = (0, _utils.semverMin)(version, parsedBrowserVersion); + } + } catch (e) {} + return all; + }, {}); } -function assertEnumSymbolBody(node, opts) { - assert("EnumSymbolBody", node, opts); +function outputDecimalWarning(decimalTargets) { + if (!decimalTargets.length) { + return; + } + console.warn("Warning, the following targets are using a decimal version:\n"); + decimalTargets.forEach(({ + target, + value + }) => console.warn(` ${target}: ${value}`)); + console.warn(` +We recommend using a string for minor/patch versions to avoid numbers like 6.10 +getting parsed as 6.1, which can lead to unexpected behavior. +`); } -function assertEnumBooleanMember(node, opts) { - assert("EnumBooleanMember", node, opts); +function semverifyTarget(target, value) { + try { + return (0, _utils.semverify)(value); + } catch (error) { + throw new Error(v.formatMessage(`'${value}' is not a valid value for 'targets.${target}'.`)); + } } -function assertEnumNumberMember(node, opts) { - assert("EnumNumberMember", node, opts); +function nodeTargetParser(value) { + const parsed = value === true || value === "current" ? process.versions.node : semverifyTarget("node", value); + return ["node", parsed]; } -function assertEnumStringMember(node, opts) { - assert("EnumStringMember", node, opts); +function defaultTargetParser(target, value) { + const version = (0, _utils.isUnreleasedVersion)(value, target) ? value.toLowerCase() : semverifyTarget(target, value); + return [target, version]; } -function assertEnumDefaultedMember(node, opts) { - assert("EnumDefaultedMember", node, opts); +function generateTargets(inputTargets) { + const input = Object.assign({}, inputTargets); + delete input.esmodules; + delete input.browsers; + return input; } -function assertIndexedAccessType(node, opts) { - assert("IndexedAccessType", node, opts); +function resolveTargets(queries, env) { + const resolved = _browserslist(queries, { + mobileToDesktop: true, + env + }); + return getLowestVersions(resolved); } -function assertOptionalIndexedAccessType(node, opts) { - assert("OptionalIndexedAccessType", node, opts); +const targetsCache = new _lruCache({ + max: 64 +}); +function resolveTargetsCached(queries, env) { + const cacheKey = typeof queries === "string" ? queries : queries.join() + env; + let cached = targetsCache.get(cacheKey); + if (!cached) { + cached = resolveTargets(queries, env); + targetsCache.set(cacheKey, cached); + } + return Object.assign({}, cached); } -function assertJSXAttribute(node, opts) { - assert("JSXAttribute", node, opts); +function getTargets(inputTargets = {}, options = {}) { + var _browsers, _browsers2; + let { + browsers, + esmodules + } = inputTargets; + const { + configPath = "." + } = options; + validateBrowsers(browsers); + const input = generateTargets(inputTargets); + let targets = validateTargetNames(input); + const shouldParseBrowsers = !!browsers; + const hasTargets = shouldParseBrowsers || Object.keys(targets).length > 0; + const shouldSearchForConfig = !options.ignoreBrowserslistConfig && !hasTargets; + if (!browsers && shouldSearchForConfig) { + browsers = _browserslist.loadConfig({ + config: options.configFile, + path: configPath, + env: options.browserslistEnv + }); + if (browsers == null) { + { + browsers = []; + } + } + } + if (esmodules && (esmodules !== "intersect" || !((_browsers = browsers) != null && _browsers.length))) { + browsers = Object.keys(ESM_SUPPORT).map(browser => `${browser} >= ${ESM_SUPPORT[browser]}`).join(", "); + esmodules = false; + } + if ((_browsers2 = browsers) != null && _browsers2.length) { + const queryBrowsers = resolveTargetsCached(browsers, options.browserslistEnv); + if (esmodules === "intersect") { + for (const browser of Object.keys(queryBrowsers)) { + if (browser !== "deno" && browser !== "ie") { + const esmSupportVersion = ESM_SUPPORT[browser === "opera_mobile" ? "op_mob" : browser]; + if (esmSupportVersion) { + const version = queryBrowsers[browser]; + queryBrowsers[browser] = (0, _utils.getHighestUnreleased)(version, (0, _utils.semverify)(esmSupportVersion), browser); + } else { + delete queryBrowsers[browser]; + } + } else { + delete queryBrowsers[browser]; + } + } + } + targets = Object.assign(queryBrowsers, targets); + } + const result = {}; + const decimalWarnings = []; + for (const target of Object.keys(targets).sort()) { + const value = targets[target]; + if (typeof value === "number" && value % 1 !== 0) { + decimalWarnings.push({ + target, + value + }); + } + const [parsedTarget, parsedValue] = target === "node" ? nodeTargetParser(value) : defaultTargetParser(target, value); + if (parsedValue) { + result[parsedTarget] = parsedValue; + } + } + outputDecimalWarning(decimalWarnings); + return result; } -function assertJSXClosingElement(node, opts) { - assert("JSXClosingElement", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 86862: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.TargetNames = void 0; +const TargetNames = exports.TargetNames = { + node: "node", + deno: "deno", + chrome: "chrome", + opera: "opera", + edge: "edge", + firefox: "firefox", + safari: "safari", + ie: "ie", + ios: "ios", + android: "android", + electron: "electron", + samsung: "samsung", + rhino: "rhino", + opera_mobile: "opera_mobile" +}; + +//# sourceMappingURL=options.js.map + + +/***/ }), + +/***/ 77526: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.prettifyTargets = prettifyTargets; +exports.prettifyVersion = prettifyVersion; +var _semver = __nccwpck_require__(72641); +var _targets = __nccwpck_require__(66818); +function prettifyVersion(version) { + if (typeof version !== "string") { + return version; + } + const { + major, + minor, + patch + } = _semver.parse(version); + const parts = [major]; + if (minor || patch) { + parts.push(minor); + } + if (patch) { + parts.push(patch); + } + return parts.join("."); } -function assertJSXElement(node, opts) { - assert("JSXElement", node, opts); +function prettifyTargets(targets) { + return Object.keys(targets).reduce((results, target) => { + let value = targets[target]; + const unreleasedLabel = _targets.unreleasedLabels[target]; + if (typeof value === "string" && unreleasedLabel !== value) { + value = prettifyVersion(value); + } + results[target] = value; + return results; + }, {}); } -function assertJSXEmptyExpression(node, opts) { - assert("JSXEmptyExpression", node, opts); + +//# sourceMappingURL=pretty.js.map + + +/***/ }), + +/***/ 66818: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.unreleasedLabels = exports.browserNameMap = void 0; +const unreleasedLabels = exports.unreleasedLabels = { + safari: "tp" +}; +const browserNameMap = exports.browserNameMap = { + and_chr: "chrome", + and_ff: "firefox", + android: "android", + chrome: "chrome", + edge: "edge", + firefox: "firefox", + ie: "ie", + ie_mob: "ie", + ios_saf: "ios", + node: "node", + deno: "deno", + op_mob: "opera_mobile", + opera: "opera", + safari: "safari", + samsung: "samsung" +}; + +//# sourceMappingURL=targets.js.map + + +/***/ }), + +/***/ 59534: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.getHighestUnreleased = getHighestUnreleased; +exports.getLowestImplementedVersion = getLowestImplementedVersion; +exports.getLowestUnreleased = getLowestUnreleased; +exports.isUnreleasedVersion = isUnreleasedVersion; +exports.semverMin = semverMin; +exports.semverify = semverify; +var _semver = __nccwpck_require__(72641); +var _helperValidatorOption = __nccwpck_require__(16122); +var _targets = __nccwpck_require__(66818); +const versionRegExp = /^(\d+|\d+.\d+)$/; +const v = new _helperValidatorOption.OptionValidator("@babel/helper-compilation-targets"); +function semverMin(first, second) { + return first && _semver.lt(first, second) ? first : second; } -function assertJSXExpressionContainer(node, opts) { - assert("JSXExpressionContainer", node, opts); +function semverify(version) { + if (typeof version === "string" && _semver.valid(version)) { + return version; + } + v.invariant(typeof version === "number" || typeof version === "string" && versionRegExp.test(version), `'${version}' is not a valid version`); + version = version.toString(); + let pos = 0; + let num = 0; + while ((pos = version.indexOf(".", pos + 1)) > 0) { + num++; + } + return version + ".0".repeat(2 - num); } -function assertJSXSpreadChild(node, opts) { - assert("JSXSpreadChild", node, opts); +function isUnreleasedVersion(version, env) { + const unreleasedLabel = _targets.unreleasedLabels[env]; + return !!unreleasedLabel && unreleasedLabel === version.toString().toLowerCase(); } -function assertJSXIdentifier(node, opts) { - assert("JSXIdentifier", node, opts); +function getLowestUnreleased(a, b, env) { + const unreleasedLabel = _targets.unreleasedLabels[env]; + if (a === unreleasedLabel) { + return b; + } + if (b === unreleasedLabel) { + return a; + } + return semverMin(a, b); } -function assertJSXMemberExpression(node, opts) { - assert("JSXMemberExpression", node, opts); +function getHighestUnreleased(a, b, env) { + return getLowestUnreleased(a, b, env) === a ? b : a; } -function assertJSXNamespacedName(node, opts) { - assert("JSXNamespacedName", node, opts); +function getLowestImplementedVersion(plugin, environment) { + const result = plugin[environment]; + if (!result && environment === "android") { + return plugin.chrome; + } + return result; } -function assertJSXOpeningElement(node, opts) { - assert("JSXOpeningElement", node, opts); + +//# sourceMappingURL=utils.js.map + + +/***/ }), + +/***/ 92448: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.buildDecoratedClass = buildDecoratedClass; +exports.hasDecorators = hasDecorators; +exports.hasOwnDecorators = hasOwnDecorators; +var _core = __nccwpck_require__(65258); +var _helperReplaceSupers = __nccwpck_require__(43889); +var _helperFunctionName = __nccwpck_require__(54915); +function hasOwnDecorators(node) { + var _node$decorators; + return !!((_node$decorators = node.decorators) != null && _node$decorators.length); } -function assertJSXSpreadAttribute(node, opts) { - assert("JSXSpreadAttribute", node, opts); +function hasDecorators(node) { + return hasOwnDecorators(node) || node.body.body.some(hasOwnDecorators); } -function assertJSXText(node, opts) { - assert("JSXText", node, opts); +function prop(key, value) { + if (!value) return null; + return _core.types.objectProperty(_core.types.identifier(key), value); } -function assertJSXFragment(node, opts) { - assert("JSXFragment", node, opts); +function method(key, body) { + return _core.types.objectMethod("method", _core.types.identifier(key), [], _core.types.blockStatement(body)); } -function assertJSXOpeningFragment(node, opts) { - assert("JSXOpeningFragment", node, opts); +function takeDecorators(node) { + let result; + if (node.decorators && node.decorators.length > 0) { + result = _core.types.arrayExpression(node.decorators.map(decorator => decorator.expression)); + } + node.decorators = undefined; + return result; } -function assertJSXClosingFragment(node, opts) { - assert("JSXClosingFragment", node, opts); +function getKey(node) { + if (node.computed) { + return node.key; + } else if (_core.types.isIdentifier(node.key)) { + return _core.types.stringLiteral(node.key.name); + } else { + return _core.types.stringLiteral(String(node.key.value)); + } } -function assertNoop(node, opts) { - assert("Noop", node, opts); +function extractElementDescriptor(file, classRef, superRef, path) { + const isMethod = path.isClassMethod(); + if (path.isPrivate()) { + throw path.buildCodeFrameError(`Private ${isMethod ? "methods" : "fields"} in decorated classes are not supported yet.`); + } + if (path.node.type === "ClassAccessorProperty") { + throw path.buildCodeFrameError(`Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`); + } + if (path.node.type === "StaticBlock") { + throw path.buildCodeFrameError(`Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`); + } + const { + node, + scope + } = path; + if (!path.isTSDeclareMethod()) { + new _helperReplaceSupers.default({ + methodPath: path, + objectRef: classRef, + superRef, + file, + refToPreserve: classRef + }).replace(); + } + const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean); + if (_core.types.isClassMethod(node)) { + const id = node.computed ? null : node.key; + const transformed = _core.types.toExpression(node); + properties.push(prop("value", (0, _helperFunctionName.default)({ + node: transformed, + id, + scope + }) || transformed)); + } else if (_core.types.isClassProperty(node) && node.value) { + properties.push(method("value", _core.template.statements.ast`return ${node.value}`)); + } else { + properties.push(prop("value", scope.buildUndefinedNode())); + } + path.remove(); + return _core.types.objectExpression(properties); } -function assertPlaceholder(node, opts) { - assert("Placeholder", node, opts); +function addDecorateHelper(file) { + return file.addHelper("decorate"); } -function assertV8IntrinsicIdentifier(node, opts) { - assert("V8IntrinsicIdentifier", node, opts); +function buildDecoratedClass(ref, path, elements, file) { + const { + node, + scope + } = path; + const initializeId = scope.generateUidIdentifier("initialize"); + const isDeclaration = node.id && path.isDeclaration(); + const isStrict = path.isInStrictMode(); + const { + superClass + } = node; + node.type = "ClassDeclaration"; + if (!node.id) node.id = _core.types.cloneNode(ref); + let superId; + if (superClass) { + superId = scope.generateUidIdentifierBasedOnNode(node.superClass, "super"); + node.superClass = superId; + } + const classDecorators = takeDecorators(node); + const definitions = _core.types.arrayExpression(elements.filter(element => !element.node.abstract && element.node.type !== "TSIndexSignature").map(path => extractElementDescriptor(file, node.id, superId, path))); + const wrapperCall = _core.template.expression.ast` + ${addDecorateHelper(file)}( + ${classDecorators || _core.types.nullLiteral()}, + function (${initializeId}, ${superClass ? _core.types.cloneNode(superId) : null}) { + ${node} + return { F: ${_core.types.cloneNode(node.id)}, d: ${definitions} }; + }, + ${superClass} + ) + `; + if (!isStrict) { + wrapperCall.arguments[1].body.directives.push(_core.types.directive(_core.types.directiveLiteral("use strict"))); + } + let replacement = wrapperCall; + let classPathDesc = "arguments.1.body.body.0"; + if (isDeclaration) { + replacement = _core.template.statement.ast`let ${ref} = ${wrapperCall}`; + classPathDesc = "declarations.0.init." + classPathDesc; + } + return { + instanceNodes: [_core.template.statement.ast` + ${_core.types.cloneNode(initializeId)}(this) + `], + wrapClass(path) { + path.replaceWith(replacement); + return path.get(classPathDesc); + } + }; } -function assertArgumentPlaceholder(node, opts) { - assert("ArgumentPlaceholder", node, opts); + +//# sourceMappingURL=decorators.js.map + + +/***/ }), + +/***/ 50960: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FEATURES = void 0; +exports.enableFeature = enableFeature; +exports.isLoose = isLoose; +exports.shouldTransform = shouldTransform; +var _decorators = __nccwpck_require__(92448); +const FEATURES = exports.FEATURES = Object.freeze({ + fields: 1 << 1, + privateMethods: 1 << 2, + decorators: 1 << 3, + privateIn: 1 << 4, + staticBlocks: 1 << 5 +}); +const featuresSameLoose = new Map([[FEATURES.fields, "@babel/plugin-transform-class-properties"], [FEATURES.privateMethods, "@babel/plugin-transform-private-methods"], [FEATURES.privateIn, "@babel/plugin-transform-private-property-in-object"]]); +const featuresKey = "@babel/plugin-class-features/featuresKey"; +const looseKey = "@babel/plugin-class-features/looseKey"; +{ + var looseLowPriorityKey = "@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing"; } -function assertBindExpression(node, opts) { - assert("BindExpression", node, opts); +{ + var canIgnoreLoose = function (file, feature) { + return !!(file.get(looseLowPriorityKey) & feature); + }; } -function assertImportAttribute(node, opts) { - assert("ImportAttribute", node, opts); +function enableFeature(file, feature, loose) { + if (!hasFeature(file, feature) || canIgnoreLoose(file, feature)) { + file.set(featuresKey, file.get(featuresKey) | feature); + if (loose === "#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error") { + setLoose(file, feature, true); + file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) | feature); + } else if (loose === "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error") { + setLoose(file, feature, false); + file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) | feature); + } else { + setLoose(file, feature, loose); + } + } + let resolvedLoose; + for (const [mask, name] of featuresSameLoose) { + if (!hasFeature(file, mask)) continue; + { + if (canIgnoreLoose(file, mask)) continue; + } + const loose = isLoose(file, mask); + if (resolvedLoose === !loose) { + throw new Error("'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, " + "@babel/plugin-transform-private-methods and " + "@babel/plugin-transform-private-property-in-object (when they are enabled)."); + } else { + resolvedLoose = loose; + { + var higherPriorityPluginName = name; + } + } + } + if (resolvedLoose !== undefined) { + for (const [mask, name] of featuresSameLoose) { + if (hasFeature(file, mask) && isLoose(file, mask) !== resolvedLoose) { + setLoose(file, mask, resolvedLoose); + console.warn(`Though the "loose" option was set to "${!resolvedLoose}" in your @babel/preset-env ` + `config, it will not be used for ${name} since the "loose" mode option was set to ` + `"${resolvedLoose}" for ${higherPriorityPluginName}.\nThe "loose" option must be the ` + `same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods ` + `and @babel/plugin-transform-private-property-in-object (when they are enabled): you can ` + `silence this warning by explicitly adding\n` + `\t["${name}", { "loose": ${resolvedLoose} }]\n` + `to the "plugins" section of your Babel config.`); + } + } + } } -function assertDecorator(node, opts) { - assert("Decorator", node, opts); +function hasFeature(file, feature) { + return !!(file.get(featuresKey) & feature); } -function assertDoExpression(node, opts) { - assert("DoExpression", node, opts); +function isLoose(file, feature) { + return !!(file.get(looseKey) & feature); } -function assertExportDefaultSpecifier(node, opts) { - assert("ExportDefaultSpecifier", node, opts); +function setLoose(file, feature, loose) { + if (loose) file.set(looseKey, file.get(looseKey) | feature);else file.set(looseKey, file.get(looseKey) & ~feature); + { + file.set(looseLowPriorityKey, file.get(looseLowPriorityKey) & ~feature); + } } -function assertRecordExpression(node, opts) { - assert("RecordExpression", node, opts); +function shouldTransform(path, file) { + let decoratorPath = null; + let publicFieldPath = null; + let privateFieldPath = null; + let privateMethodPath = null; + let staticBlockPath = null; + if ((0, _decorators.hasOwnDecorators)(path.node)) { + decoratorPath = path.get("decorators.0"); + } + for (const el of path.get("body.body")) { + if (!decoratorPath && (0, _decorators.hasOwnDecorators)(el.node)) { + decoratorPath = el.get("decorators.0"); + } + if (!publicFieldPath && el.isClassProperty()) { + publicFieldPath = el; + } + if (!privateFieldPath && el.isClassPrivateProperty()) { + privateFieldPath = el; + } + if (!privateMethodPath && el.isClassPrivateMethod != null && el.isClassPrivateMethod()) { + privateMethodPath = el; + } + if (!staticBlockPath && el.isStaticBlock != null && el.isStaticBlock()) { + staticBlockPath = el; + } + } + if (decoratorPath && privateFieldPath) { + throw privateFieldPath.buildCodeFrameError("Private fields in decorated classes are not supported yet."); + } + if (decoratorPath && privateMethodPath) { + throw privateMethodPath.buildCodeFrameError("Private methods in decorated classes are not supported yet."); + } + if (decoratorPath && !hasFeature(file, FEATURES.decorators)) { + throw path.buildCodeFrameError("Decorators are not enabled." + "\nIf you are using " + '["@babel/plugin-proposal-decorators", { "version": "legacy" }], ' + 'make sure it comes *before* "@babel/plugin-transform-class-properties" ' + "and enable loose mode, like so:\n" + '\t["@babel/plugin-proposal-decorators", { "version": "legacy" }]\n' + '\t["@babel/plugin-transform-class-properties", { "loose": true }]'); + } + if (privateMethodPath && !hasFeature(file, FEATURES.privateMethods)) { + throw privateMethodPath.buildCodeFrameError("Class private methods are not enabled. " + "Please add `@babel/plugin-transform-private-methods` to your configuration."); + } + if ((publicFieldPath || privateFieldPath) && !hasFeature(file, FEATURES.fields) && !hasFeature(file, FEATURES.privateMethods)) { + throw path.buildCodeFrameError("Class fields are not enabled. " + "Please add `@babel/plugin-transform-class-properties` to your configuration."); + } + if (staticBlockPath && !hasFeature(file, FEATURES.staticBlocks)) { + throw path.buildCodeFrameError("Static class blocks are not enabled. " + "Please add `@babel/plugin-transform-class-static-block` to your configuration."); + } + if (decoratorPath || privateMethodPath || staticBlockPath) { + return true; + } + if ((publicFieldPath || privateFieldPath) && hasFeature(file, FEATURES.fields)) { + return true; + } + return false; } -function assertTupleExpression(node, opts) { - assert("TupleExpression", node, opts); + +//# sourceMappingURL=features.js.map + + +/***/ }), + +/***/ 59340: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.buildCheckInRHS = buildCheckInRHS; +exports.buildFieldsInitNodes = buildFieldsInitNodes; +exports.buildPrivateNamesMap = buildPrivateNamesMap; +exports.buildPrivateNamesNodes = buildPrivateNamesNodes; +exports.transformPrivateNamesUsage = transformPrivateNamesUsage; +var _core = __nccwpck_require__(65258); +var _helperReplaceSupers = __nccwpck_require__(43889); +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _helperMemberExpressionToFunctions = __nccwpck_require__(83690); +var _helperOptimiseCallExpression = __nccwpck_require__(2570); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +var _helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); +var ts = __nccwpck_require__(36089); +function buildPrivateNamesMap(props) { + const privateNamesMap = new Map(); + for (const prop of props) { + if (prop.isPrivate()) { + const { + name + } = prop.node.key.id; + const update = privateNamesMap.has(name) ? privateNamesMap.get(name) : { + id: prop.scope.generateUidIdentifier(name), + static: prop.node.static, + method: !prop.isProperty() + }; + if (prop.isClassPrivateMethod()) { + if (prop.node.kind === "get") { + update.getId = prop.scope.generateUidIdentifier(`get_${name}`); + } else if (prop.node.kind === "set") { + update.setId = prop.scope.generateUidIdentifier(`set_${name}`); + } else if (prop.node.kind === "method") { + update.methodId = prop.scope.generateUidIdentifier(name); + } + } + privateNamesMap.set(name, update); + } + } + return privateNamesMap; } -function assertDecimalLiteral(node, opts) { - assert("DecimalLiteral", node, opts); +function buildPrivateNamesNodes(privateNamesMap, privateFieldsAsProperties, privateFieldsAsSymbols, state) { + const initNodes = []; + for (const [name, value] of privateNamesMap) { + const { + static: isStatic, + method: isMethod, + getId, + setId + } = value; + const isAccessor = getId || setId; + const id = _core.types.cloneNode(value.id); + let init; + if (privateFieldsAsProperties) { + init = _core.types.callExpression(state.addHelper("classPrivateFieldLooseKey"), [_core.types.stringLiteral(name)]); + } else if (privateFieldsAsSymbols) { + init = _core.types.callExpression(_core.types.identifier("Symbol"), [_core.types.stringLiteral(name)]); + } else if (!isStatic) { + init = _core.types.newExpression(_core.types.identifier(!isMethod || isAccessor ? "WeakMap" : "WeakSet"), []); + } + if (init) { + (0, _helperAnnotateAsPure.default)(init); + initNodes.push(_core.template.statement.ast`var ${id} = ${init}`); + } + } + return initNodes; } -function assertModuleExpression(node, opts) { - assert("ModuleExpression", node, opts); +function privateNameVisitorFactory(visitor) { + const nestedVisitor = _core.traverse.visitors.merge([Object.assign({}, visitor), _helperEnvironmentVisitor.default]); + const privateNameVisitor = Object.assign({}, visitor, { + Class(path) { + const { + privateNamesMap + } = this; + const body = path.get("body.body"); + const visiblePrivateNames = new Map(privateNamesMap); + const redeclared = []; + for (const prop of body) { + if (!prop.isPrivate()) continue; + const { + name + } = prop.node.key.id; + visiblePrivateNames.delete(name); + redeclared.push(name); + } + if (!redeclared.length) { + return; + } + path.get("body").traverse(nestedVisitor, Object.assign({}, this, { + redeclared + })); + path.traverse(privateNameVisitor, Object.assign({}, this, { + privateNamesMap: visiblePrivateNames + })); + path.skipKey("body"); + } + }); + return privateNameVisitor; } -function assertTopicReference(node, opts) { - assert("TopicReference", node, opts); +const privateNameVisitor = privateNameVisitorFactory({ + PrivateName(path, { + noDocumentAll + }) { + const { + privateNamesMap, + redeclared + } = this; + const { + node, + parentPath + } = path; + if (!parentPath.isMemberExpression({ + property: node + }) && !parentPath.isOptionalMemberExpression({ + property: node + })) { + return; + } + const { + name + } = node.id; + if (!privateNamesMap.has(name)) return; + if (redeclared && redeclared.includes(name)) return; + this.handle(parentPath, noDocumentAll); + } +}); +function unshadow(name, scope, innerBinding) { + while ((_scope = scope) != null && _scope.hasBinding(name) && !scope.bindingIdentifierEquals(name, innerBinding)) { + var _scope; + scope.rename(name); + scope = scope.parent; + } } -function assertPipelineTopicExpression(node, opts) { - assert("PipelineTopicExpression", node, opts); +function buildCheckInRHS(rhs, file, inRHSIsObject) { + if (inRHSIsObject || !(file.availableHelper != null && file.availableHelper("checkInRHS"))) return rhs; + return _core.types.callExpression(file.addHelper("checkInRHS"), [rhs]); } -function assertPipelineBareFunction(node, opts) { - assert("PipelineBareFunction", node, opts); +const privateInVisitor = privateNameVisitorFactory({ + BinaryExpression(path, { + file + }) { + const { + operator, + left, + right + } = path.node; + if (operator !== "in") return; + if (!_core.types.isPrivateName(left)) return; + const { + privateFieldsAsProperties, + privateNamesMap, + redeclared + } = this; + const { + name + } = left.id; + if (!privateNamesMap.has(name)) return; + if (redeclared && redeclared.includes(name)) return; + unshadow(this.classRef.name, path.scope, this.innerBinding); + if (privateFieldsAsProperties) { + const { + id + } = privateNamesMap.get(name); + path.replaceWith(_core.template.expression.ast` + Object.prototype.hasOwnProperty.call(${buildCheckInRHS(right, file)}, ${_core.types.cloneNode(id)}) + `); + return; + } + const { + id, + static: isStatic + } = privateNamesMap.get(name); + if (isStatic) { + path.replaceWith(_core.template.expression.ast`${buildCheckInRHS(right, file)} === ${_core.types.cloneNode(this.classRef)}`); + return; + } + path.replaceWith(_core.template.expression.ast`${_core.types.cloneNode(id)}.has(${buildCheckInRHS(right, file)})`); + } +}); +const privateNameHandlerSpec = { + memoise(member, count) { + const { + scope + } = member; + const { + object + } = member.node; + const memo = scope.maybeGenerateMemoised(object); + if (!memo) { + return; + } + this.memoiser.set(object, memo, count); + }, + receiver(member) { + const { + object + } = member.node; + if (this.memoiser.has(object)) { + return _core.types.cloneNode(this.memoiser.get(object)); + } + return _core.types.cloneNode(object); + }, + get(member) { + const { + classRef, + privateNamesMap, + file, + innerBinding + } = this; + const { + name + } = member.node.property.id; + const { + id, + static: isStatic, + method: isMethod, + methodId, + getId, + setId + } = privateNamesMap.get(name); + const isAccessor = getId || setId; + if (isStatic) { + const helperName = isMethod && !isAccessor ? "classStaticPrivateMethodGet" : "classStaticPrivateFieldSpecGet"; + unshadow(classRef.name, member.scope, innerBinding); + return _core.types.callExpression(file.addHelper(helperName), [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id)]); + } + if (isMethod) { + if (isAccessor) { + if (!getId && setId) { + if (file.availableHelper("writeOnlyError")) { + return _core.types.sequenceExpression([this.receiver(member), _core.types.callExpression(file.addHelper("writeOnlyError"), [_core.types.stringLiteral(`#${name}`)])]); + } + console.warn(`@babel/helpers is outdated, update it to silence this warning.`); + } + return _core.types.callExpression(file.addHelper("classPrivateFieldGet"), [this.receiver(member), _core.types.cloneNode(id)]); + } + return _core.types.callExpression(file.addHelper("classPrivateMethodGet"), [this.receiver(member), _core.types.cloneNode(id), _core.types.cloneNode(methodId)]); + } + return _core.types.callExpression(file.addHelper("classPrivateFieldGet"), [this.receiver(member), _core.types.cloneNode(id)]); + }, + boundGet(member) { + this.memoise(member, 1); + return _core.types.callExpression(_core.types.memberExpression(this.get(member), _core.types.identifier("bind")), [this.receiver(member)]); + }, + set(member, value) { + const { + classRef, + privateNamesMap, + file + } = this; + const { + name + } = member.node.property.id; + const { + id, + static: isStatic, + method: isMethod, + setId, + getId + } = privateNamesMap.get(name); + const isAccessor = getId || setId; + if (isStatic) { + const helperName = isMethod && !isAccessor ? "classStaticPrivateMethodSet" : "classStaticPrivateFieldSpecSet"; + return _core.types.callExpression(file.addHelper(helperName), [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id), value]); + } + if (isMethod) { + if (setId) { + return _core.types.callExpression(file.addHelper("classPrivateFieldSet"), [this.receiver(member), _core.types.cloneNode(id), value]); + } + return _core.types.sequenceExpression([this.receiver(member), value, _core.types.callExpression(file.addHelper("readOnlyError"), [_core.types.stringLiteral(`#${name}`)])]); + } + return _core.types.callExpression(file.addHelper("classPrivateFieldSet"), [this.receiver(member), _core.types.cloneNode(id), value]); + }, + destructureSet(member) { + const { + classRef, + privateNamesMap, + file + } = this; + const { + name + } = member.node.property.id; + const { + id, + static: isStatic + } = privateNamesMap.get(name); + if (isStatic) { + try { + var helper = file.addHelper("classStaticPrivateFieldDestructureSet"); + } catch (_unused) { + throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \n" + "please update @babel/helpers to the latest version."); + } + return _core.types.memberExpression(_core.types.callExpression(helper, [this.receiver(member), _core.types.cloneNode(classRef), _core.types.cloneNode(id)]), _core.types.identifier("value")); + } + return _core.types.memberExpression(_core.types.callExpression(file.addHelper("classPrivateFieldDestructureSet"), [this.receiver(member), _core.types.cloneNode(id)]), _core.types.identifier("value")); + }, + call(member, args) { + this.memoise(member, 1); + return (0, _helperOptimiseCallExpression.default)(this.get(member), this.receiver(member), args, false); + }, + optionalCall(member, args) { + this.memoise(member, 1); + return (0, _helperOptimiseCallExpression.default)(this.get(member), this.receiver(member), args, true); + }, + delete() { + throw new Error("Internal Babel error: deleting private elements is a parsing error."); + } +}; +const privateNameHandlerLoose = { + get(member) { + const { + privateNamesMap, + file + } = this; + const { + object + } = member.node; + const { + name + } = member.node.property.id; + return _core.template.expression`BASE(REF, PROP)[PROP]`({ + BASE: file.addHelper("classPrivateFieldLooseBase"), + REF: _core.types.cloneNode(object), + PROP: _core.types.cloneNode(privateNamesMap.get(name).id) + }); + }, + set() { + throw new Error("private name handler with loose = true don't need set()"); + }, + boundGet(member) { + return _core.types.callExpression(_core.types.memberExpression(this.get(member), _core.types.identifier("bind")), [_core.types.cloneNode(member.node.object)]); + }, + simpleSet(member) { + return this.get(member); + }, + destructureSet(member) { + return this.get(member); + }, + call(member, args) { + return _core.types.callExpression(this.get(member), args); + }, + optionalCall(member, args) { + return _core.types.optionalCallExpression(this.get(member), args, true); + }, + delete() { + throw new Error("Internal Babel error: deleting private elements is a parsing error."); + } +}; +function transformPrivateNamesUsage(ref, path, privateNamesMap, { + privateFieldsAsProperties, + noDocumentAll, + innerBinding +}, state) { + if (!privateNamesMap.size) return; + const body = path.get("body"); + const handler = privateFieldsAsProperties ? privateNameHandlerLoose : privateNameHandlerSpec; + (0, _helperMemberExpressionToFunctions.default)(body, privateNameVisitor, Object.assign({ + privateNamesMap, + classRef: ref, + file: state + }, handler, { + noDocumentAll, + innerBinding + })); + body.traverse(privateInVisitor, { + privateNamesMap, + classRef: ref, + file: state, + privateFieldsAsProperties, + innerBinding + }); } -function assertPipelinePrimaryTopicReference(node, opts) { - assert("PipelinePrimaryTopicReference", node, opts); +function buildPrivateFieldInitLoose(ref, prop, privateNamesMap) { + const { + id + } = privateNamesMap.get(prop.node.key.id.name); + const value = prop.node.value || prop.scope.buildUndefinedNode(); + return inheritPropComments(_core.template.statement.ast` + Object.defineProperty(${ref}, ${_core.types.cloneNode(id)}, { + // configurable is false by default + // enumerable is false by default + writable: true, + value: ${value} + }); + `, prop); } -function assertTSParameterProperty(node, opts) { - assert("TSParameterProperty", node, opts); +function buildPrivateInstanceFieldInitSpec(ref, prop, privateNamesMap, state) { + const { + id + } = privateNamesMap.get(prop.node.key.id.name); + const value = prop.node.value || prop.scope.buildUndefinedNode(); + { + if (!state.availableHelper("classPrivateFieldInitSpec")) { + return inheritPropComments(_core.template.statement.ast`${_core.types.cloneNode(id)}.set(${ref}, { + // configurable is always false for private elements + // enumerable is always false for private elements + writable: true, + value: ${value}, + })`, prop); + } + } + const helper = state.addHelper("classPrivateFieldInitSpec"); + return inheritPropComments(_core.template.statement.ast`${helper}( + ${_core.types.thisExpression()}, + ${_core.types.cloneNode(id)}, + { + writable: true, + value: ${value} + }, + )`, prop); } -function assertTSDeclareFunction(node, opts) { - assert("TSDeclareFunction", node, opts); +function buildPrivateStaticFieldInitSpec(prop, privateNamesMap) { + const privateName = privateNamesMap.get(prop.node.key.id.name); + const { + id, + getId, + setId, + initAdded + } = privateName; + const isAccessor = getId || setId; + if (!prop.isProperty() && (initAdded || !isAccessor)) return; + if (isAccessor) { + privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { + initAdded: true + })); + return inheritPropComments(_core.template.statement.ast` + var ${_core.types.cloneNode(id)} = { + // configurable is false by default + // enumerable is false by default + // writable is false by default + get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, + set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} + } + `, prop); + } + const value = prop.node.value || prop.scope.buildUndefinedNode(); + return inheritPropComments(_core.template.statement.ast` + var ${_core.types.cloneNode(id)} = { + // configurable is false by default + // enumerable is false by default + writable: true, + value: ${value} + }; + `, prop); } -function assertTSDeclareMethod(node, opts) { - assert("TSDeclareMethod", node, opts); +function buildPrivateMethodInitLoose(ref, prop, privateNamesMap) { + const privateName = privateNamesMap.get(prop.node.key.id.name); + const { + methodId, + id, + getId, + setId, + initAdded + } = privateName; + if (initAdded) return; + if (methodId) { + return inheritPropComments(_core.template.statement.ast` + Object.defineProperty(${ref}, ${id}, { + // configurable is false by default + // enumerable is false by default + // writable is false by default + value: ${methodId.name} + }); + `, prop); + } + const isAccessor = getId || setId; + if (isAccessor) { + privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { + initAdded: true + })); + return inheritPropComments(_core.template.statement.ast` + Object.defineProperty(${ref}, ${id}, { + // configurable is false by default + // enumerable is false by default + // writable is false by default + get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, + set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} + }); + `, prop); + } } -function assertTSQualifiedName(node, opts) { - assert("TSQualifiedName", node, opts); +function buildPrivateInstanceMethodInitSpec(ref, prop, privateNamesMap, state) { + const privateName = privateNamesMap.get(prop.node.key.id.name); + const { + getId, + setId, + initAdded + } = privateName; + if (initAdded) return; + const isAccessor = getId || setId; + if (isAccessor) { + return buildPrivateAccessorInitialization(ref, prop, privateNamesMap, state); + } + return buildPrivateInstanceMethodInitialization(ref, prop, privateNamesMap, state); } -function assertTSCallSignatureDeclaration(node, opts) { - assert("TSCallSignatureDeclaration", node, opts); +function buildPrivateAccessorInitialization(ref, prop, privateNamesMap, state) { + const privateName = privateNamesMap.get(prop.node.key.id.name); + const { + id, + getId, + setId + } = privateName; + privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { + initAdded: true + })); + { + if (!state.availableHelper("classPrivateFieldInitSpec")) { + return inheritPropComments(_core.template.statement.ast` + ${id}.set(${ref}, { + get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, + set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} + }); + `, prop); + } + } + const helper = state.addHelper("classPrivateFieldInitSpec"); + return inheritPropComments(_core.template.statement.ast`${helper}( + ${_core.types.thisExpression()}, + ${_core.types.cloneNode(id)}, + { + get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, + set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} + }, + )`, prop); } -function assertTSConstructSignatureDeclaration(node, opts) { - assert("TSConstructSignatureDeclaration", node, opts); +function buildPrivateInstanceMethodInitialization(ref, prop, privateNamesMap, state) { + const privateName = privateNamesMap.get(prop.node.key.id.name); + const { + id + } = privateName; + { + if (!state.availableHelper("classPrivateMethodInitSpec")) { + return inheritPropComments(_core.template.statement.ast`${id}.add(${ref})`, prop); + } + } + const helper = state.addHelper("classPrivateMethodInitSpec"); + return inheritPropComments(_core.template.statement.ast`${helper}( + ${_core.types.thisExpression()}, + ${_core.types.cloneNode(id)} + )`, prop); } -function assertTSPropertySignature(node, opts) { - assert("TSPropertySignature", node, opts); +function buildPublicFieldInitLoose(ref, prop) { + const { + key, + computed + } = prop.node; + const value = prop.node.value || prop.scope.buildUndefinedNode(); + return inheritPropComments(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(ref, key, computed || _core.types.isLiteral(key)), value)), prop); } -function assertTSMethodSignature(node, opts) { - assert("TSMethodSignature", node, opts); +function buildPublicFieldInitSpec(ref, prop, state) { + const { + key, + computed + } = prop.node; + const value = prop.node.value || prop.scope.buildUndefinedNode(); + return inheritPropComments(_core.types.expressionStatement(_core.types.callExpression(state.addHelper("defineProperty"), [ref, computed || _core.types.isLiteral(key) ? key : _core.types.stringLiteral(key.name), value])), prop); } -function assertTSIndexSignature(node, opts) { - assert("TSIndexSignature", node, opts); +function buildPrivateStaticMethodInitLoose(ref, prop, state, privateNamesMap) { + const privateName = privateNamesMap.get(prop.node.key.id.name); + const { + id, + methodId, + getId, + setId, + initAdded + } = privateName; + if (initAdded) return; + const isAccessor = getId || setId; + if (isAccessor) { + privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { + initAdded: true + })); + return inheritPropComments(_core.template.statement.ast` + Object.defineProperty(${ref}, ${id}, { + // configurable is false by default + // enumerable is false by default + // writable is false by default + get: ${getId ? getId.name : prop.scope.buildUndefinedNode()}, + set: ${setId ? setId.name : prop.scope.buildUndefinedNode()} + }) + `, prop); + } + return inheritPropComments(_core.template.statement.ast` + Object.defineProperty(${ref}, ${id}, { + // configurable is false by default + // enumerable is false by default + // writable is false by default + value: ${methodId.name} + }); + `, prop); } -function assertTSAnyKeyword(node, opts) { - assert("TSAnyKeyword", node, opts); +function buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties = false) { + const privateName = privateNamesMap.get(prop.node.key.id.name); + const { + id, + methodId, + getId, + setId, + getterDeclared, + setterDeclared, + static: isStatic + } = privateName; + const { + params, + body, + generator, + async + } = prop.node; + const isGetter = getId && !getterDeclared && params.length === 0; + const isSetter = setId && !setterDeclared && params.length > 0; + let declId = methodId; + if (isGetter) { + privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { + getterDeclared: true + })); + declId = getId; + } else if (isSetter) { + privateNamesMap.set(prop.node.key.id.name, Object.assign({}, privateName, { + setterDeclared: true + })); + declId = setId; + } else if (isStatic && !privateFieldsAsProperties) { + declId = id; + } + return inheritPropComments(_core.types.functionDeclaration(_core.types.cloneNode(declId), params, body, generator, async), prop); } -function assertTSBooleanKeyword(node, opts) { - assert("TSBooleanKeyword", node, opts); +const thisContextVisitor = _core.traverse.visitors.merge([{ + UnaryExpression(path) { + const { + node + } = path; + if (node.operator === "delete") { + const argument = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes)(node.argument); + if (_core.types.isThisExpression(argument)) { + path.replaceWith(_core.types.booleanLiteral(true)); + } + } + }, + ThisExpression(path, state) { + state.needsClassRef = true; + path.replaceWith(_core.types.cloneNode(state.classRef)); + }, + MetaProperty(path) { + const { + node, + scope + } = path; + if (node.meta.name === "new" && node.property.name === "target") { + path.replaceWith(scope.buildUndefinedNode()); + } + } +}, _helperEnvironmentVisitor.default]); +const innerReferencesVisitor = { + ReferencedIdentifier(path, state) { + if (path.scope.bindingIdentifierEquals(path.node.name, state.innerBinding)) { + state.needsClassRef = true; + path.node.name = state.classRef.name; + } + } +}; +function replaceThisContext(path, ref, innerBindingRef) { + var _state$classRef; + const state = { + classRef: ref, + needsClassRef: false, + innerBinding: innerBindingRef + }; + if (!path.isMethod()) { + path.traverse(thisContextVisitor, state); + } + if (innerBindingRef != null && (_state$classRef = state.classRef) != null && _state$classRef.name && state.classRef.name !== innerBindingRef.name) { + path.traverse(innerReferencesVisitor, state); + } + return state.needsClassRef; } -function assertTSBigIntKeyword(node, opts) { - assert("TSBigIntKeyword", node, opts); +function isNameOrLength({ + key, + computed +}) { + if (key.type === "Identifier") { + return !computed && (key.name === "name" || key.name === "length"); + } + if (key.type === "StringLiteral") { + return key.value === "name" || key.value === "length"; + } + return false; } -function assertTSIntrinsicKeyword(node, opts) { - assert("TSIntrinsicKeyword", node, opts); +function inheritPropComments(node, prop) { + _core.types.inheritLeadingComments(node, prop.node); + _core.types.inheritInnerComments(node, prop.node); + return node; } -function assertTSNeverKeyword(node, opts) { - assert("TSNeverKeyword", node, opts); +function buildFieldsInitNodes(ref, superRef, props, privateNamesMap, file, setPublicClassFields, privateFieldsAsProperties, constantSuper, innerBindingRef) { + var _ref, _ref2; + let classRefFlags = 0; + let injectSuperRef; + const staticNodes = []; + const instanceNodes = []; + let lastInstanceNodeReturnsThis = false; + const pureStaticNodes = []; + let classBindingNode = null; + const getSuperRef = _core.types.isIdentifier(superRef) ? () => superRef : () => { + var _injectSuperRef; + (_injectSuperRef = injectSuperRef) != null ? _injectSuperRef : injectSuperRef = props[0].scope.generateUidIdentifierBasedOnNode(superRef); + return injectSuperRef; + }; + const classRefForInnerBinding = (_ref = ref) != null ? _ref : props[0].scope.generateUidIdentifier("class"); + (_ref2 = ref) != null ? _ref2 : ref = _core.types.cloneNode(innerBindingRef); + for (const prop of props) { + prop.isClassProperty() && ts.assertFieldTransformed(prop); + const isStatic = !(_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node)) && prop.node.static; + const isInstance = !isStatic; + const isPrivate = prop.isPrivate(); + const isPublic = !isPrivate; + const isField = prop.isProperty(); + const isMethod = !isField; + const isStaticBlock = prop.isStaticBlock == null ? void 0 : prop.isStaticBlock(); + if (isStatic) classRefFlags |= 1; + if (isStatic || isMethod && isPrivate || isStaticBlock) { + new _helperReplaceSupers.default({ + methodPath: prop, + constantSuper, + file: file, + refToPreserve: innerBindingRef, + getSuperRef, + getObjectRef() { + classRefFlags |= 2; + if (isStatic || isStaticBlock) { + return classRefForInnerBinding; + } else { + return _core.types.memberExpression(classRefForInnerBinding, _core.types.identifier("prototype")); + } + } + }).replace(); + const replaced = replaceThisContext(prop, classRefForInnerBinding, innerBindingRef); + if (replaced) { + classRefFlags |= 2; + } + } + lastInstanceNodeReturnsThis = false; + switch (true) { + case isStaticBlock: + { + const blockBody = prop.node.body; + if (blockBody.length === 1 && _core.types.isExpressionStatement(blockBody[0])) { + staticNodes.push(inheritPropComments(blockBody[0], prop)); + } else { + staticNodes.push(_core.types.inheritsComments(_core.template.statement.ast`(() => { ${blockBody} })()`, prop.node)); + } + break; + } + case isStatic && isPrivate && isField && privateFieldsAsProperties: + staticNodes.push(buildPrivateFieldInitLoose(_core.types.cloneNode(ref), prop, privateNamesMap)); + break; + case isStatic && isPrivate && isField && !privateFieldsAsProperties: + staticNodes.push(buildPrivateStaticFieldInitSpec(prop, privateNamesMap)); + break; + case isStatic && isPublic && isField && setPublicClassFields: + if (!isNameOrLength(prop.node)) { + staticNodes.push(buildPublicFieldInitLoose(_core.types.cloneNode(ref), prop)); + break; + } + case isStatic && isPublic && isField && !setPublicClassFields: + staticNodes.push(buildPublicFieldInitSpec(_core.types.cloneNode(ref), prop, file)); + break; + case isInstance && isPrivate && isField && privateFieldsAsProperties: + instanceNodes.push(buildPrivateFieldInitLoose(_core.types.thisExpression(), prop, privateNamesMap)); + break; + case isInstance && isPrivate && isField && !privateFieldsAsProperties: + instanceNodes.push(buildPrivateInstanceFieldInitSpec(_core.types.thisExpression(), prop, privateNamesMap, file)); + break; + case isInstance && isPrivate && isMethod && privateFieldsAsProperties: + instanceNodes.unshift(buildPrivateMethodInitLoose(_core.types.thisExpression(), prop, privateNamesMap)); + pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); + break; + case isInstance && isPrivate && isMethod && !privateFieldsAsProperties: + instanceNodes.unshift(buildPrivateInstanceMethodInitSpec(_core.types.thisExpression(), prop, privateNamesMap, file)); + pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); + break; + case isStatic && isPrivate && isMethod && !privateFieldsAsProperties: + staticNodes.unshift(buildPrivateStaticFieldInitSpec(prop, privateNamesMap)); + pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); + break; + case isStatic && isPrivate && isMethod && privateFieldsAsProperties: + staticNodes.unshift(buildPrivateStaticMethodInitLoose(_core.types.cloneNode(ref), prop, file, privateNamesMap)); + pureStaticNodes.push(buildPrivateMethodDeclaration(prop, privateNamesMap, privateFieldsAsProperties)); + break; + case isInstance && isPublic && isField && setPublicClassFields: + instanceNodes.push(buildPublicFieldInitLoose(_core.types.thisExpression(), prop)); + break; + case isInstance && isPublic && isField && !setPublicClassFields: + lastInstanceNodeReturnsThis = true; + instanceNodes.push(buildPublicFieldInitSpec(_core.types.thisExpression(), prop, file)); + break; + default: + throw new Error("Unreachable."); + } + } + if (classRefFlags & 2 && innerBindingRef != null) { + classBindingNode = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(classRefForInnerBinding), _core.types.cloneNode(innerBindingRef))); + } + return { + staticNodes: staticNodes.filter(Boolean), + instanceNodes: instanceNodes.filter(Boolean), + lastInstanceNodeReturnsThis, + pureStaticNodes: pureStaticNodes.filter(Boolean), + classBindingNode, + wrapClass(path) { + for (const prop of props) { + prop.node.leadingComments = null; + prop.remove(); + } + if (injectSuperRef) { + path.scope.push({ + id: _core.types.cloneNode(injectSuperRef) + }); + path.set("superClass", _core.types.assignmentExpression("=", injectSuperRef, path.node.superClass)); + } + if (classRefFlags !== 0) { + if (path.isClassExpression()) { + path.scope.push({ + id: ref + }); + path.replaceWith(_core.types.assignmentExpression("=", _core.types.cloneNode(ref), path.node)); + } else { + if (innerBindingRef == null) { + path.node.id = ref; + } + if (classBindingNode != null) { + path.scope.push({ + id: classRefForInnerBinding + }); + } + } + } + return path; + } + }; } -function assertTSNullKeyword(node, opts) { - assert("TSNullKeyword", node, opts); + +//# sourceMappingURL=fields.js.map + + +/***/ }), + +/***/ 42137: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "FEATURES", ({ + enumerable: true, + get: function () { + return _features.FEATURES; + } +})); +Object.defineProperty(exports, "buildCheckInRHS", ({ + enumerable: true, + get: function () { + return _fields.buildCheckInRHS; + } +})); +exports.createClassFeaturePlugin = createClassFeaturePlugin; +Object.defineProperty(exports, "enableFeature", ({ + enumerable: true, + get: function () { + return _features.enableFeature; + } +})); +Object.defineProperty(exports, "injectInitialization", ({ + enumerable: true, + get: function () { + return _misc.injectInitialization; + } +})); +var _core = __nccwpck_require__(65258); +var _helperFunctionName = __nccwpck_require__(54915); +var _helperSplitExportDeclaration = __nccwpck_require__(62605); +var _semver = __nccwpck_require__(72641); +var _fields = __nccwpck_require__(59340); +var _decorators = __nccwpck_require__(92448); +var _misc = __nccwpck_require__(9294); +var _features = __nccwpck_require__(50960); +var _typescript = __nccwpck_require__(36089); +const versionKey = "@babel/plugin-class-features/version"; +function createClassFeaturePlugin({ + name, + feature, + loose, + manipulateOptions, + api, + inherits +}) { + { + var _api; + (_api = api) != null ? _api : api = { + assumption: () => void 0 + }; + } + const setPublicClassFields = api.assumption("setPublicClassFields"); + const privateFieldsAsSymbols = api.assumption("privateFieldsAsSymbols"); + const privateFieldsAsProperties = api.assumption("privateFieldsAsProperties"); + const constantSuper = api.assumption("constantSuper"); + const noDocumentAll = api.assumption("noDocumentAll"); + if (privateFieldsAsProperties && privateFieldsAsSymbols) { + throw new Error(`Cannot enable both the "privateFieldsAsProperties" and ` + `"privateFieldsAsSymbols" assumptions as the same time.`); + } + const privateFieldsAsSymbolsOrProperties = privateFieldsAsProperties || privateFieldsAsSymbols; + if (loose === true) { + const explicit = []; + if (setPublicClassFields !== undefined) { + explicit.push(`"setPublicClassFields"`); + } + if (privateFieldsAsProperties !== undefined) { + explicit.push(`"privateFieldsAsProperties"`); + } + if (privateFieldsAsSymbols !== undefined) { + explicit.push(`"privateFieldsAsSymbols"`); + } + if (explicit.length !== 0) { + console.warn(`[${name}]: You are using the "loose: true" option and you are` + ` explicitly setting a value for the ${explicit.join(" and ")}` + ` assumption${explicit.length > 1 ? "s" : ""}. The "loose" option` + ` can cause incompatibilities with the other class features` + ` plugins, so it's recommended that you replace it with the` + ` following top-level option:\n` + `\t"assumptions": {\n` + `\t\t"setPublicClassFields": true,\n` + `\t\t"privateFieldsAsSymbols": true\n` + `\t}`); + } + } + return { + name, + manipulateOptions, + inherits, + pre(file) { + (0, _features.enableFeature)(file, feature, loose); + { + if (typeof file.get(versionKey) === "number") { + file.set(versionKey, "7.23.6"); + return; + } + } + if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.23.6")) { + file.set(versionKey, "7.23.6"); + } + }, + visitor: { + Class(path, { + file + }) { + var _ref; + if (file.get(versionKey) !== "7.23.6") return; + if (!(0, _features.shouldTransform)(path, file)) return; + const pathIsClassDeclaration = path.isClassDeclaration(); + if (pathIsClassDeclaration) (0, _typescript.assertFieldTransformed)(path); + const loose = (0, _features.isLoose)(file, feature); + let constructor; + const isDecorated = (0, _decorators.hasDecorators)(path.node); + const props = []; + const elements = []; + const computedPaths = []; + const privateNames = new Set(); + const body = path.get("body"); + for (const path of body.get("body")) { + if ((path.isClassProperty() || path.isClassMethod()) && path.node.computed) { + computedPaths.push(path); + } + if (path.isPrivate()) { + const { + name + } = path.node.key.id; + const getName = `get ${name}`; + const setName = `set ${name}`; + if (path.isClassPrivateMethod()) { + if (path.node.kind === "get") { + if (privateNames.has(getName) || privateNames.has(name) && !privateNames.has(setName)) { + throw path.buildCodeFrameError("Duplicate private field"); + } + privateNames.add(getName).add(name); + } else if (path.node.kind === "set") { + if (privateNames.has(setName) || privateNames.has(name) && !privateNames.has(getName)) { + throw path.buildCodeFrameError("Duplicate private field"); + } + privateNames.add(setName).add(name); + } + } else { + if (privateNames.has(name) && !privateNames.has(getName) && !privateNames.has(setName) || privateNames.has(name) && (privateNames.has(getName) || privateNames.has(setName))) { + throw path.buildCodeFrameError("Duplicate private field"); + } + privateNames.add(name); + } + } + if (path.isClassMethod({ + kind: "constructor" + })) { + constructor = path; + } else { + elements.push(path); + if (path.isProperty() || path.isPrivate() || path.isStaticBlock != null && path.isStaticBlock()) { + props.push(path); + } + } + } + { + if (!props.length && !isDecorated) return; + } + const innerBinding = path.node.id; + let ref; + if (!innerBinding || !pathIsClassDeclaration) { + (0, _helperFunctionName.default)(path); + ref = path.scope.generateUidIdentifier("class"); + } + const classRefForDefine = (_ref = ref) != null ? _ref : _core.types.cloneNode(innerBinding); + const privateNamesMap = (0, _fields.buildPrivateNamesMap)(props); + const privateNamesNodes = (0, _fields.buildPrivateNamesNodes)(privateNamesMap, privateFieldsAsProperties != null ? privateFieldsAsProperties : loose, privateFieldsAsSymbols != null ? privateFieldsAsSymbols : false, file); + (0, _fields.transformPrivateNamesUsage)(classRefForDefine, path, privateNamesMap, { + privateFieldsAsProperties: privateFieldsAsSymbolsOrProperties != null ? privateFieldsAsSymbolsOrProperties : loose, + noDocumentAll, + innerBinding + }, file); + let keysNodes, staticNodes, instanceNodes, lastInstanceNodeReturnsThis, pureStaticNodes, classBindingNode, wrapClass; + { + if (isDecorated) { + staticNodes = pureStaticNodes = keysNodes = []; + ({ + instanceNodes, + wrapClass + } = (0, _decorators.buildDecoratedClass)(classRefForDefine, path, elements, file)); + } else { + keysNodes = (0, _misc.extractComputedKeys)(path, computedPaths, file); + ({ + staticNodes, + pureStaticNodes, + instanceNodes, + lastInstanceNodeReturnsThis, + classBindingNode, + wrapClass + } = (0, _fields.buildFieldsInitNodes)(ref, path.node.superClass, props, privateNamesMap, file, setPublicClassFields != null ? setPublicClassFields : loose, privateFieldsAsSymbolsOrProperties != null ? privateFieldsAsSymbolsOrProperties : loose, constantSuper != null ? constantSuper : loose, innerBinding)); + } + } + if (instanceNodes.length > 0) { + (0, _misc.injectInitialization)(path, constructor, instanceNodes, (referenceVisitor, state) => { + { + if (isDecorated) return; + } + for (const prop of props) { + if (_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node) || prop.node.static) continue; + prop.traverse(referenceVisitor, state); + } + }, lastInstanceNodeReturnsThis); + } + const wrappedPath = wrapClass(path); + wrappedPath.insertBefore([...privateNamesNodes, ...keysNodes]); + if (staticNodes.length > 0) { + wrappedPath.insertAfter(staticNodes); + } + if (pureStaticNodes.length > 0) { + wrappedPath.find(parent => parent.isStatement() || parent.isDeclaration()).insertAfter(pureStaticNodes); + } + if (classBindingNode != null && pathIsClassDeclaration) { + wrappedPath.insertAfter(classBindingNode); + } + }, + ExportDefaultDeclaration(path, { + file + }) { + { + if (file.get(versionKey) !== "7.23.6") return; + const decl = path.get("declaration"); + if (decl.isClassDeclaration() && (0, _decorators.hasDecorators)(decl.node)) { + if (decl.node.id) { + (0, _helperSplitExportDeclaration.default)(path); + } else { + decl.node.type = "ClassExpression"; + } + } + } + } + } + }; } -function assertTSNumberKeyword(node, opts) { - assert("TSNumberKeyword", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 9294: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.extractComputedKeys = extractComputedKeys; +exports.injectInitialization = injectInitialization; +var _core = __nccwpck_require__(65258); +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +const findBareSupers = _core.traverse.visitors.merge([{ + Super(path) { + const { + node, + parentPath + } = path; + if (parentPath.isCallExpression({ + callee: node + })) { + this.push(parentPath); + } + } +}, _helperEnvironmentVisitor.default]); +const referenceVisitor = { + "TSTypeAnnotation|TypeAnnotation"(path) { + path.skip(); + }, + ReferencedIdentifier(path, { + scope + }) { + if (scope.hasOwnBinding(path.node.name)) { + scope.rename(path.node.name); + path.skip(); + } + } +}; +function handleClassTDZ(path, state) { + if (state.classBinding && state.classBinding === path.scope.getBinding(path.node.name)) { + const classNameTDZError = state.file.addHelper("classNameTDZError"); + const throwNode = _core.types.callExpression(classNameTDZError, [_core.types.stringLiteral(path.node.name)]); + path.replaceWith(_core.types.sequenceExpression([throwNode, path.node])); + path.skip(); + } } -function assertTSObjectKeyword(node, opts) { - assert("TSObjectKeyword", node, opts); +const classFieldDefinitionEvaluationTDZVisitor = { + ReferencedIdentifier: handleClassTDZ +}; +function injectInitialization(path, constructor, nodes, renamer, lastReturnsThis) { + if (!nodes.length) return; + const isDerived = !!path.node.superClass; + if (!constructor) { + const newConstructor = _core.types.classMethod("constructor", _core.types.identifier("constructor"), [], _core.types.blockStatement([])); + if (isDerived) { + newConstructor.params = [_core.types.restElement(_core.types.identifier("args"))]; + newConstructor.body.body.push(_core.template.statement.ast`super(...args)`); + } + [constructor] = path.get("body").unshiftContainer("body", newConstructor); + } + if (renamer) { + renamer(referenceVisitor, { + scope: constructor.scope + }); + } + if (isDerived) { + const bareSupers = []; + constructor.traverse(findBareSupers, bareSupers); + let isFirst = true; + for (const bareSuper of bareSupers) { + if (isFirst) { + isFirst = false; + } else { + nodes = nodes.map(n => _core.types.cloneNode(n)); + } + if (!bareSuper.parentPath.isExpressionStatement()) { + const allNodes = [bareSuper.node, ...nodes.map(n => _core.types.toExpression(n))]; + if (!lastReturnsThis) allNodes.push(_core.types.thisExpression()); + bareSuper.replaceWith(_core.types.sequenceExpression(allNodes)); + } else { + bareSuper.insertAfter(nodes); + } + } + } else { + constructor.get("body").unshiftContainer("body", nodes); + } } -function assertTSStringKeyword(node, opts) { - assert("TSStringKeyword", node, opts); +function extractComputedKeys(path, computedPaths, file) { + const declarations = []; + const state = { + classBinding: path.node.id && path.scope.getBinding(path.node.id.name), + file + }; + for (const computedPath of computedPaths) { + const computedKey = computedPath.get("key"); + if (computedKey.isReferencedIdentifier()) { + handleClassTDZ(computedKey, state); + } else { + computedKey.traverse(classFieldDefinitionEvaluationTDZVisitor, state); + } + const computedNode = computedPath.node; + if (!computedKey.isConstantExpression()) { + const scope = path.scope; + const isUidReference = _core.types.isIdentifier(computedKey.node) && scope.hasUid(computedKey.node.name); + const isMemoiseAssignment = computedKey.isAssignmentExpression({ + operator: "=" + }) && _core.types.isIdentifier(computedKey.node.left) && scope.hasUid(computedKey.node.left.name); + if (isUidReference) { + continue; + } else if (isMemoiseAssignment) { + declarations.push(_core.types.expressionStatement(_core.types.cloneNode(computedNode.key))); + computedNode.key = _core.types.cloneNode(computedNode.key.left); + } else { + const ident = path.scope.generateUidIdentifierBasedOnNode(computedNode.key); + scope.push({ + id: ident, + kind: "let" + }); + declarations.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(ident), computedNode.key))); + computedNode.key = _core.types.cloneNode(ident); + } + } + } + return declarations; } -function assertTSSymbolKeyword(node, opts) { - assert("TSSymbolKeyword", node, opts); + +//# sourceMappingURL=misc.js.map + + +/***/ }), + +/***/ 36089: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.assertFieldTransformed = assertFieldTransformed; +function assertFieldTransformed(path) { + if (path.node.declare || false) { + throw path.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by ` + `@babel/plugin-transform-typescript.\n` + `If you have already enabled that plugin (or '@babel/preset-typescript'), make sure ` + `that it runs before any plugin related to additional class features:\n` + ` - @babel/plugin-transform-class-properties\n` + ` - @babel/plugin-transform-private-methods\n` + ` - @babel/plugin-proposal-decorators`); + } } -function assertTSUndefinedKeyword(node, opts) { - assert("TSUndefinedKeyword", node, opts); + +//# sourceMappingURL=typescript.js.map + + +/***/ }), + +/***/ 45054: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.FEATURES = void 0; +exports.enableFeature = enableFeature; +exports.featuresKey = void 0; +exports.hasFeature = hasFeature; +exports.runtimeKey = void 0; +const FEATURES = Object.freeze({ + unicodeFlag: 1 << 0, + dotAllFlag: 1 << 1, + unicodePropertyEscape: 1 << 2, + namedCaptureGroups: 1 << 3, + unicodeSetsFlag_syntax: 1 << 4, + unicodeSetsFlag: 1 << 5, + duplicateNamedCaptureGroups: 1 << 6, + modifiers: 1 << 7 +}); +exports.FEATURES = FEATURES; +const featuresKey = "@babel/plugin-regexp-features/featuresKey"; +exports.featuresKey = featuresKey; +const runtimeKey = "@babel/plugin-regexp-features/runtimeKey"; +exports.runtimeKey = runtimeKey; +function enableFeature(features, feature) { + return features | feature; } -function assertTSUnknownKeyword(node, opts) { - assert("TSUnknownKeyword", node, opts); +function hasFeature(features, feature) { + return !!(features & feature); } -function assertTSVoidKeyword(node, opts) { - assert("TSVoidKeyword", node, opts); + +//# sourceMappingURL=features.js.map + + +/***/ }), + +/***/ 63106: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.createRegExpFeaturePlugin = createRegExpFeaturePlugin; +var _regexpuCore = __nccwpck_require__(64864); +var _core = __nccwpck_require__(65258); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +var _semver = __nccwpck_require__(72641); +var _features = __nccwpck_require__(45054); +var _util = __nccwpck_require__(20933); +const versionKey = "@babel/plugin-regexp-features/version"; +function createRegExpFeaturePlugin({ + name, + feature, + options = {}, + manipulateOptions = () => {} +}) { + return { + name, + manipulateOptions, + pre() { + var _file$get; + const { + file + } = this; + const features = (_file$get = file.get(_features.featuresKey)) != null ? _file$get : 0; + let newFeatures = (0, _features.enableFeature)(features, _features.FEATURES[feature]); + const { + useUnicodeFlag, + runtime + } = options; + if (useUnicodeFlag === false) { + newFeatures = (0, _features.enableFeature)(newFeatures, _features.FEATURES.unicodeFlag); + } + if (newFeatures !== features) { + file.set(_features.featuresKey, newFeatures); + } + if (runtime !== undefined) { + if (file.has(_features.runtimeKey) && file.get(_features.runtimeKey) !== runtime && (0, _features.hasFeature)(newFeatures, _features.FEATURES.duplicateNamedCaptureGroups)) { + throw new Error(`The 'runtime' option must be the same for ` + `'@babel/plugin-transform-named-capturing-groups-regex' and ` + `'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`); + } + if (feature === "namedCaptureGroups") { + if (!runtime || !file.has(_features.runtimeKey)) file.set(_features.runtimeKey, runtime); + } else { + file.set(_features.runtimeKey, runtime); + } + } + { + if (typeof file.get(versionKey) === "number") { + file.set(versionKey, "7.22.15"); + return; + } + } + if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.22.15")) { + file.set(versionKey, "7.22.15"); + } + }, + visitor: { + RegExpLiteral(path) { + var _file$get2, _newFlags; + const { + node + } = path; + const { + file + } = this; + const features = file.get(_features.featuresKey); + const runtime = (_file$get2 = file.get(_features.runtimeKey)) != null ? _file$get2 : true; + const regexpuOptions = (0, _util.generateRegexpuOptions)(node.pattern, features); + if ((0, _util.canSkipRegexpu)(node, regexpuOptions)) { + return; + } + const namedCaptureGroups = { + __proto__: null + }; + if (regexpuOptions.namedGroups === "transform") { + regexpuOptions.onNamedGroup = (name, index) => { + const prev = namedCaptureGroups[name]; + if (typeof prev === "number") { + namedCaptureGroups[name] = [prev, index]; + } else if (Array.isArray(prev)) { + prev.push(index); + } else { + namedCaptureGroups[name] = index; + } + }; + } + let newFlags; + if (regexpuOptions.modifiers === "transform") { + regexpuOptions.onNewFlags = flags => { + newFlags = flags; + }; + } + node.pattern = _regexpuCore(node.pattern, node.flags, regexpuOptions); + if (regexpuOptions.namedGroups === "transform" && Object.keys(namedCaptureGroups).length > 0 && runtime && !isRegExpTest(path)) { + const call = _core.types.callExpression(this.addHelper("wrapRegExp"), [node, _core.types.valueToNode(namedCaptureGroups)]); + (0, _helperAnnotateAsPure.default)(call); + path.replaceWith(call); + } + node.flags = (0, _util.transformFlags)(regexpuOptions, (_newFlags = newFlags) != null ? _newFlags : node.flags); + } + } + }; } -function assertTSThisType(node, opts) { - assert("TSThisType", node, opts); +function isRegExpTest(path) { + return path.parentPath.isMemberExpression({ + object: path.node, + computed: false + }) && path.parentPath.get("property").isIdentifier({ + name: "test" + }); } -function assertTSFunctionType(node, opts) { - assert("TSFunctionType", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 20933: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.canSkipRegexpu = canSkipRegexpu; +exports.generateRegexpuOptions = generateRegexpuOptions; +exports.transformFlags = transformFlags; +var _features = __nccwpck_require__(45054); +function generateRegexpuOptions(pattern, toTransform) { + const feat = (name, ok = "transform") => { + return (0, _features.hasFeature)(toTransform, _features.FEATURES[name]) ? ok : false; + }; + const featDuplicateNamedGroups = () => { + if (!feat("duplicateNamedCaptureGroups")) return false; + const regex = /\(\?<([^>]+)>/g; + const seen = new Set(); + for (let match; match = regex.exec(pattern); seen.add(match[1])) { + if (seen.has(match[1])) return "transform"; + } + return false; + }; + return { + unicodeFlag: feat("unicodeFlag"), + unicodeSetsFlag: feat("unicodeSetsFlag") || "parse", + dotAllFlag: feat("dotAllFlag"), + unicodePropertyEscapes: feat("unicodePropertyEscape"), + namedGroups: feat("namedCaptureGroups") || featDuplicateNamedGroups(), + onNamedGroup: () => {}, + modifiers: feat("modifiers") + }; } -function assertTSConstructorType(node, opts) { - assert("TSConstructorType", node, opts); +function canSkipRegexpu(node, options) { + const { + flags, + pattern + } = node; + if (flags.includes("v")) { + if (options.unicodeSetsFlag === "transform") return false; + } + if (flags.includes("u")) { + if (options.unicodeFlag === "transform") return false; + if (options.unicodePropertyEscapes === "transform" && /\\[pP]{/.test(pattern)) { + return false; + } + } + if (flags.includes("s")) { + if (options.dotAllFlag === "transform") return false; + } + if (options.namedGroups === "transform" && /\(\?<(?![=!])/.test(pattern)) { + return false; + } + if (options.modifiers === "transform" && /\(\?[\w-]+:/.test(pattern)) { + return false; + } + return true; } -function assertTSTypeReference(node, opts) { - assert("TSTypeReference", node, opts); +function transformFlags(regexpuOptions, flags) { + if (regexpuOptions.unicodeSetsFlag === "transform") { + flags = flags.replace("v", "u"); + } + if (regexpuOptions.unicodeFlag === "transform") { + flags = flags.replace("u", ""); + } + if (regexpuOptions.dotAllFlag === "transform") { + flags = flags.replace("s", ""); + } + return flags; } -function assertTSTypePredicate(node, opts) { - assert("TSTypePredicate", node, opts); + +//# sourceMappingURL=util.js.map + + +/***/ }), + +/***/ 91707: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +exports.requeueComputedKeyAndDecorators = requeueComputedKeyAndDecorators; +{ + exports.skipAllButComputedKey = function skipAllButComputedKey(path) { + path.skip(); + if (path.node.computed) { + path.context.maybeQueue(path.get("key")); + } + }; } -function assertTSTypeQuery(node, opts) { - assert("TSTypeQuery", node, opts); +function requeueComputedKeyAndDecorators(path) { + const { + context, + node + } = path; + if (node.computed) { + context.maybeQueue(path.get("key")); + } + if (node.decorators) { + for (const decorator of path.get("decorators")) { + context.maybeQueue(decorator); + } + } } -function assertTSTypeLiteral(node, opts) { - assert("TSTypeLiteral", node, opts); +const visitor = { + FunctionParent(path) { + if (path.isArrowFunctionExpression()) { + return; + } else { + path.skip(); + if (path.isMethod()) { + requeueComputedKeyAndDecorators(path); + } + } + }, + Property(path) { + if (path.isObjectProperty()) { + return; + } + path.skip(); + requeueComputedKeyAndDecorators(path); + } +}; +var _default = visitor; +exports["default"] = _default; + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 54915: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +var _template = __nccwpck_require__(98063); +var _t = __nccwpck_require__(68948); +const { + NOT_LOCAL_BINDING, + cloneNode, + identifier, + isAssignmentExpression, + isAssignmentPattern, + isFunction, + isIdentifier, + isLiteral, + isNullLiteral, + isObjectMethod, + isObjectProperty, + isRegExpLiteral, + isRestElement, + isTemplateLiteral, + isVariableDeclarator, + toBindingIdentifierName +} = _t; +function getFunctionArity(node) { + const count = node.params.findIndex(param => isAssignmentPattern(param) || isRestElement(param)); + return count === -1 ? node.params.length : count; } -function assertTSArrayType(node, opts) { - assert("TSArrayType", node, opts); +const buildPropertyMethodAssignmentWrapper = _template.default.statement(` + (function (FUNCTION_KEY) { + function FUNCTION_ID() { + return FUNCTION_KEY.apply(this, arguments); + } + + FUNCTION_ID.toString = function () { + return FUNCTION_KEY.toString(); + } + + return FUNCTION_ID; + })(FUNCTION) +`); +const buildGeneratorPropertyMethodAssignmentWrapper = _template.default.statement(` + (function (FUNCTION_KEY) { + function* FUNCTION_ID() { + return yield* FUNCTION_KEY.apply(this, arguments); + } + + FUNCTION_ID.toString = function () { + return FUNCTION_KEY.toString(); + }; + + return FUNCTION_ID; + })(FUNCTION) +`); +const visitor = { + "ReferencedIdentifier|BindingIdentifier"(path, state) { + if (path.node.name !== state.name) return; + const localDeclar = path.scope.getBindingIdentifier(state.name); + if (localDeclar !== state.outerDeclar) return; + state.selfReference = true; + path.stop(); + } +}; +function getNameFromLiteralId(id) { + if (isNullLiteral(id)) { + return "null"; + } + if (isRegExpLiteral(id)) { + return `_${id.pattern}_${id.flags}`; + } + if (isTemplateLiteral(id)) { + return id.quasis.map(quasi => quasi.value.raw).join(""); + } + if (id.value !== undefined) { + return id.value + ""; + } + return ""; } -function assertTSTupleType(node, opts) { - assert("TSTupleType", node, opts); +function wrap(state, method, id, scope) { + if (state.selfReference) { + if (scope.hasBinding(id.name) && !scope.hasGlobal(id.name)) { + scope.rename(id.name); + } else { + if (!isFunction(method)) return; + let build = buildPropertyMethodAssignmentWrapper; + if (method.generator) { + build = buildGeneratorPropertyMethodAssignmentWrapper; + } + const template = build({ + FUNCTION: method, + FUNCTION_ID: id, + FUNCTION_KEY: scope.generateUidIdentifier(id.name) + }).expression; + const params = template.callee.body.body[0].params; + for (let i = 0, len = getFunctionArity(method); i < len; i++) { + params.push(scope.generateUidIdentifier("x")); + } + return template; + } + } + method.id = id; + scope.getProgramParent().references[id.name] = true; } -function assertTSOptionalType(node, opts) { - assert("TSOptionalType", node, opts); +function visit(node, name, scope) { + const state = { + selfAssignment: false, + selfReference: false, + outerDeclar: scope.getBindingIdentifier(name), + name: name + }; + const binding = scope.getOwnBinding(name); + if (binding) { + if (binding.kind === "param") { + state.selfReference = true; + } else {} + } else if (state.outerDeclar || scope.hasGlobal(name)) { + scope.traverse(node, visitor, state); + } + return state; } -function assertTSRestType(node, opts) { - assert("TSRestType", node, opts); +function _default({ + node, + parent, + scope, + id +}, localBinding = false, supportUnicodeId = false) { + if (node.id) return; + if ((isObjectProperty(parent) || isObjectMethod(parent, { + kind: "method" + })) && (!parent.computed || isLiteral(parent.key))) { + id = parent.key; + } else if (isVariableDeclarator(parent)) { + id = parent.id; + if (isIdentifier(id) && !localBinding) { + const binding = scope.parent.getBinding(id.name); + if (binding && binding.constant && scope.getBinding(id.name) === binding) { + node.id = cloneNode(id); + node.id[NOT_LOCAL_BINDING] = true; + return; + } + } + } else if (isAssignmentExpression(parent, { + operator: "=" + })) { + id = parent.left; + } else if (!id) { + return; + } + let name; + if (id && isLiteral(id)) { + name = getNameFromLiteralId(id); + } else if (id && isIdentifier(id)) { + name = id.name; + } + if (name === undefined) { + return; + } + if (!supportUnicodeId && isFunction(node) && /[\uD800-\uDFFF]/.test(name)) { + return; + } + name = toBindingIdentifierName(name); + const newId = identifier(name); + newId[NOT_LOCAL_BINDING] = true; + const state = visit(node, name, scope); + return wrap(state, node, newId, scope) || node; } -function assertTSNamedTupleMember(node, opts) { - assert("TSNamedTupleMember", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 51194: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = hoistVariables; +var _t = __nccwpck_require__(68948); +const { + assignmentExpression, + expressionStatement, + identifier +} = _t; +const visitor = { + Scope(path, state) { + if (state.kind === "let") path.skip(); + }, + FunctionParent(path) { + path.skip(); + }, + VariableDeclaration(path, state) { + if (state.kind && path.node.kind !== state.kind) return; + const nodes = []; + const declarations = path.get("declarations"); + let firstId; + for (const declar of declarations) { + firstId = declar.node.id; + if (declar.node.init) { + nodes.push(expressionStatement(assignmentExpression("=", declar.node.id, declar.node.init))); + } + for (const name of Object.keys(declar.getBindingIdentifiers())) { + state.emit(identifier(name), name, declar.node.init !== null); + } + } + if (path.parentPath.isFor({ + left: path.node + })) { + path.replaceWith(firstId); + } else { + path.replaceWithMultiple(nodes); + } + } +}; +function hoistVariables(path, emit, kind = "var") { + path.traverse(visitor, { + kind, + emit + }); } -function assertTSUnionType(node, opts) { - assert("TSUnionType", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 83690: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var _t = __nccwpck_require__(68948); + +function _interopNamespace(e) { + if (e && e.__esModule) return e; + var n = Object.create(null); + if (e) { + Object.keys(e).forEach(function (k) { + if (k !== 'default') { + var d = Object.getOwnPropertyDescriptor(e, k); + Object.defineProperty(n, k, d.get ? d : { + enumerable: true, + get: function () { return e[k]; } + }); + } + }); + } + n.default = e; + return Object.freeze(n); } -function assertTSIntersectionType(node, opts) { - assert("TSIntersectionType", node, opts); + +var _t__namespace = /*#__PURE__*/_interopNamespace(_t); + +function willPathCastToBoolean(path) { + const maybeWrapped = path; + const { + node, + parentPath + } = maybeWrapped; + if (parentPath.isLogicalExpression()) { + const { + operator, + right + } = parentPath.node; + if (operator === "&&" || operator === "||" || operator === "??" && node === right) { + return willPathCastToBoolean(parentPath); + } + } + if (parentPath.isSequenceExpression()) { + const { + expressions + } = parentPath.node; + if (expressions[expressions.length - 1] === node) { + return willPathCastToBoolean(parentPath); + } else { + return true; + } + } + return parentPath.isConditional({ + test: node + }) || parentPath.isUnaryExpression({ + operator: "!" + }) || parentPath.isLoop({ + test: node + }); } -function assertTSConditionalType(node, opts) { - assert("TSConditionalType", node, opts); + +const { + LOGICAL_OPERATORS, + arrowFunctionExpression, + assignmentExpression, + binaryExpression, + booleanLiteral, + callExpression, + cloneNode, + conditionalExpression, + identifier, + isMemberExpression, + isOptionalCallExpression, + isOptionalMemberExpression, + isUpdateExpression, + logicalExpression, + memberExpression, + nullLiteral, + optionalCallExpression, + optionalMemberExpression, + sequenceExpression, + updateExpression +} = _t__namespace; +class AssignmentMemoiser { + constructor() { + this._map = void 0; + this._map = new WeakMap(); + } + has(key) { + return this._map.has(key); + } + get(key) { + if (!this.has(key)) return; + const record = this._map.get(key); + const { + value + } = record; + record.count--; + if (record.count === 0) { + return assignmentExpression("=", value, key); + } + return value; + } + set(key, value, count) { + return this._map.set(key, { + count, + value + }); + } } -function assertTSInferType(node, opts) { - assert("TSInferType", node, opts); +function toNonOptional(path, base) { + const { + node + } = path; + if (isOptionalMemberExpression(node)) { + return memberExpression(base, node.property, node.computed); + } + if (path.isOptionalCallExpression()) { + const callee = path.get("callee"); + if (path.node.optional && callee.isOptionalMemberExpression()) { + const object = callee.node.object; + const context = path.scope.maybeGenerateMemoised(object); + callee.get("object").replaceWith(assignmentExpression("=", context, object)); + return callExpression(memberExpression(base, identifier("call")), [context, ...path.node.arguments]); + } + return callExpression(base, path.node.arguments); + } + return path.node; } -function assertTSParenthesizedType(node, opts) { - assert("TSParenthesizedType", node, opts); +function isInDetachedTree(path) { + while (path) { + if (path.isProgram()) break; + const { + parentPath, + container, + listKey + } = path; + const parentNode = parentPath.node; + if (listKey) { + if (container !== parentNode[listKey]) { + return true; + } + } else { + if (container !== parentNode) return true; + } + path = parentPath; + } + return false; } -function assertTSTypeOperator(node, opts) { - assert("TSTypeOperator", node, opts); +const handle = { + memoise() {}, + handle(member, noDocumentAll) { + const { + node, + parent, + parentPath, + scope + } = member; + if (member.isOptionalMemberExpression()) { + if (isInDetachedTree(member)) return; + const endPath = member.find(({ + node, + parent + }) => { + if (isOptionalMemberExpression(parent)) { + return parent.optional || parent.object !== node; + } + if (isOptionalCallExpression(parent)) { + return node !== member.node && parent.optional || parent.callee !== node; + } + return true; + }); + if (scope.path.isPattern()) { + endPath.replaceWith(callExpression(arrowFunctionExpression([], endPath.node), [])); + return; + } + const willEndPathCastToBoolean = willPathCastToBoolean(endPath); + const rootParentPath = endPath.parentPath; + if (rootParentPath.isUpdateExpression({ + argument: node + })) { + throw member.buildCodeFrameError(`can't handle update expression`); + } + const isAssignment = rootParentPath.isAssignmentExpression({ + left: endPath.node + }); + const isDeleteOperation = rootParentPath.isUnaryExpression({ + operator: "delete" + }); + if (isDeleteOperation && endPath.isOptionalMemberExpression() && endPath.get("property").isPrivateName()) { + throw member.buildCodeFrameError(`can't delete a private class element`); + } + let startingOptional = member; + for (;;) { + if (startingOptional.isOptionalMemberExpression()) { + if (startingOptional.node.optional) break; + startingOptional = startingOptional.get("object"); + continue; + } else if (startingOptional.isOptionalCallExpression()) { + if (startingOptional.node.optional) break; + startingOptional = startingOptional.get("callee"); + continue; + } + throw new Error(`Internal error: unexpected ${startingOptional.node.type}`); + } + const startingNode = startingOptional.isOptionalMemberExpression() ? startingOptional.node.object : startingOptional.node.callee; + const baseNeedsMemoised = scope.maybeGenerateMemoised(startingNode); + const baseRef = baseNeedsMemoised != null ? baseNeedsMemoised : startingNode; + const parentIsOptionalCall = parentPath.isOptionalCallExpression({ + callee: node + }); + const isOptionalCall = parent => parentIsOptionalCall; + const parentIsCall = parentPath.isCallExpression({ + callee: node + }); + startingOptional.replaceWith(toNonOptional(startingOptional, baseRef)); + if (isOptionalCall()) { + if (parent.optional) { + parentPath.replaceWith(this.optionalCall(member, parent.arguments)); + } else { + parentPath.replaceWith(this.call(member, parent.arguments)); + } + } else if (parentIsCall) { + member.replaceWith(this.boundGet(member)); + } else if (this.delete && parentPath.isUnaryExpression({ + operator: "delete" + })) { + parentPath.replaceWith(this.delete(member)); + } else if (parentPath.isAssignmentExpression()) { + handleAssignment(this, member, parentPath); + } else { + member.replaceWith(this.get(member)); + } + let regular = member.node; + for (let current = member; current !== endPath;) { + const parentPath = current.parentPath; + if (parentPath === endPath && isOptionalCall() && parent.optional) { + regular = parentPath.node; + break; + } + regular = toNonOptional(parentPath, regular); + current = parentPath; + } + let context; + const endParentPath = endPath.parentPath; + if (isMemberExpression(regular) && endParentPath.isOptionalCallExpression({ + callee: endPath.node, + optional: true + })) { + const { + object + } = regular; + context = member.scope.maybeGenerateMemoised(object); + if (context) { + regular.object = assignmentExpression("=", context, object); + } + } + let replacementPath = endPath; + if (isDeleteOperation || isAssignment) { + replacementPath = endParentPath; + regular = endParentPath.node; + } + const baseMemoised = baseNeedsMemoised ? assignmentExpression("=", cloneNode(baseRef), cloneNode(startingNode)) : cloneNode(baseRef); + if (willEndPathCastToBoolean) { + let nonNullishCheck; + if (noDocumentAll) { + nonNullishCheck = binaryExpression("!=", baseMemoised, nullLiteral()); + } else { + nonNullishCheck = logicalExpression("&&", binaryExpression("!==", baseMemoised, nullLiteral()), binaryExpression("!==", cloneNode(baseRef), scope.buildUndefinedNode())); + } + replacementPath.replaceWith(logicalExpression("&&", nonNullishCheck, regular)); + } else { + let nullishCheck; + if (noDocumentAll) { + nullishCheck = binaryExpression("==", baseMemoised, nullLiteral()); + } else { + nullishCheck = logicalExpression("||", binaryExpression("===", baseMemoised, nullLiteral()), binaryExpression("===", cloneNode(baseRef), scope.buildUndefinedNode())); + } + replacementPath.replaceWith(conditionalExpression(nullishCheck, isDeleteOperation ? booleanLiteral(true) : scope.buildUndefinedNode(), regular)); + } + if (context) { + const endParent = endParentPath.node; + endParentPath.replaceWith(optionalCallExpression(optionalMemberExpression(endParent.callee, identifier("call"), false, true), [cloneNode(context), ...endParent.arguments], false)); + } + return; + } + if (isUpdateExpression(parent, { + argument: node + })) { + if (this.simpleSet) { + member.replaceWith(this.simpleSet(member)); + return; + } + const { + operator, + prefix + } = parent; + this.memoise(member, 2); + const ref = scope.generateUidIdentifierBasedOnNode(node); + scope.push({ + id: ref + }); + const seq = [assignmentExpression("=", cloneNode(ref), this.get(member))]; + if (prefix) { + seq.push(updateExpression(operator, cloneNode(ref), prefix)); + const value = sequenceExpression(seq); + parentPath.replaceWith(this.set(member, value)); + return; + } else { + const ref2 = scope.generateUidIdentifierBasedOnNode(node); + scope.push({ + id: ref2 + }); + seq.push(assignmentExpression("=", cloneNode(ref2), updateExpression(operator, cloneNode(ref), prefix)), cloneNode(ref)); + const value = sequenceExpression(seq); + parentPath.replaceWith(sequenceExpression([this.set(member, value), cloneNode(ref2)])); + return; + } + } + if (parentPath.isAssignmentExpression({ + left: node + })) { + handleAssignment(this, member, parentPath); + return; + } + if (parentPath.isCallExpression({ + callee: node + })) { + parentPath.replaceWith(this.call(member, parentPath.node.arguments)); + return; + } + if (parentPath.isOptionalCallExpression({ + callee: node + })) { + if (scope.path.isPattern()) { + parentPath.replaceWith(callExpression(arrowFunctionExpression([], parentPath.node), [])); + return; + } + parentPath.replaceWith(this.optionalCall(member, parentPath.node.arguments)); + return; + } + if (this.delete && parentPath.isUnaryExpression({ + operator: "delete" + })) { + parentPath.replaceWith(this.delete(member)); + return; + } + if (parentPath.isForXStatement({ + left: node + }) || parentPath.isObjectProperty({ + value: node + }) && parentPath.parentPath.isObjectPattern() || parentPath.isAssignmentPattern({ + left: node + }) && parentPath.parentPath.isObjectProperty({ + value: parent + }) && parentPath.parentPath.parentPath.isObjectPattern() || parentPath.isArrayPattern() || parentPath.isAssignmentPattern({ + left: node + }) && parentPath.parentPath.isArrayPattern() || parentPath.isRestElement()) { + member.replaceWith(this.destructureSet(member)); + return; + } + if (parentPath.isTaggedTemplateExpression()) { + member.replaceWith(this.boundGet(member)); + } else { + member.replaceWith(this.get(member)); + } + } +}; +function handleAssignment(state, member, parentPath) { + if (state.simpleSet) { + member.replaceWith(state.simpleSet(member)); + return; + } + const { + operator, + right: value + } = parentPath.node; + if (operator === "=") { + parentPath.replaceWith(state.set(member, value)); + } else { + const operatorTrunc = operator.slice(0, -1); + if (LOGICAL_OPERATORS.includes(operatorTrunc)) { + state.memoise(member, 1); + parentPath.replaceWith(logicalExpression(operatorTrunc, state.get(member), state.set(member, value))); + } else { + state.memoise(member, 2); + parentPath.replaceWith(state.set(member, binaryExpression(operatorTrunc, state.get(member), value))); + } + } } -function assertTSIndexedAccessType(node, opts) { - assert("TSIndexedAccessType", node, opts); +function memberExpressionToFunctions(path, visitor, state) { + path.traverse(visitor, Object.assign({}, handle, state, { + memoiser: new AssignmentMemoiser() + })); } -function assertTSMappedType(node, opts) { - assert("TSMappedType", node, opts); + +exports["default"] = memberExpressionToFunctions; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 94079: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _assert = __nccwpck_require__(39491); +var _t = __nccwpck_require__(68948); +const { + callExpression, + cloneNode, + expressionStatement, + identifier, + importDeclaration, + importDefaultSpecifier, + importNamespaceSpecifier, + importSpecifier, + memberExpression, + stringLiteral, + variableDeclaration, + variableDeclarator +} = _t; +class ImportBuilder { + constructor(importedSource, scope, hub) { + this._statements = []; + this._resultName = null; + this._importedSource = void 0; + this._scope = scope; + this._hub = hub; + this._importedSource = importedSource; + } + done() { + return { + statements: this._statements, + resultName: this._resultName + }; + } + import() { + this._statements.push(importDeclaration([], stringLiteral(this._importedSource))); + return this; + } + require() { + this._statements.push(expressionStatement(callExpression(identifier("require"), [stringLiteral(this._importedSource)]))); + return this; + } + namespace(name = "namespace") { + const local = this._scope.generateUidIdentifier(name); + const statement = this._statements[this._statements.length - 1]; + _assert(statement.type === "ImportDeclaration"); + _assert(statement.specifiers.length === 0); + statement.specifiers = [importNamespaceSpecifier(local)]; + this._resultName = cloneNode(local); + return this; + } + default(name) { + const id = this._scope.generateUidIdentifier(name); + const statement = this._statements[this._statements.length - 1]; + _assert(statement.type === "ImportDeclaration"); + _assert(statement.specifiers.length === 0); + statement.specifiers = [importDefaultSpecifier(id)]; + this._resultName = cloneNode(id); + return this; + } + named(name, importName) { + if (importName === "default") return this.default(name); + const id = this._scope.generateUidIdentifier(name); + const statement = this._statements[this._statements.length - 1]; + _assert(statement.type === "ImportDeclaration"); + _assert(statement.specifiers.length === 0); + statement.specifiers = [importSpecifier(id, identifier(importName))]; + this._resultName = cloneNode(id); + return this; + } + var(name) { + const id = this._scope.generateUidIdentifier(name); + let statement = this._statements[this._statements.length - 1]; + if (statement.type !== "ExpressionStatement") { + _assert(this._resultName); + statement = expressionStatement(this._resultName); + this._statements.push(statement); + } + this._statements[this._statements.length - 1] = variableDeclaration("var", [variableDeclarator(id, statement.expression)]); + this._resultName = cloneNode(id); + return this; + } + defaultInterop() { + return this._interop(this._hub.addHelper("interopRequireDefault")); + } + wildcardInterop() { + return this._interop(this._hub.addHelper("interopRequireWildcard")); + } + _interop(callee) { + const statement = this._statements[this._statements.length - 1]; + if (statement.type === "ExpressionStatement") { + statement.expression = callExpression(callee, [statement.expression]); + } else if (statement.type === "VariableDeclaration") { + _assert(statement.declarations.length === 1); + statement.declarations[0].init = callExpression(callee, [statement.declarations[0].init]); + } else { + _assert.fail("Unexpected type."); + } + return this; + } + prop(name) { + const statement = this._statements[this._statements.length - 1]; + if (statement.type === "ExpressionStatement") { + statement.expression = memberExpression(statement.expression, identifier(name)); + } else if (statement.type === "VariableDeclaration") { + _assert(statement.declarations.length === 1); + statement.declarations[0].init = memberExpression(statement.declarations[0].init, identifier(name)); + } else { + _assert.fail("Unexpected type:" + statement.type); + } + return this; + } + read(name) { + this._resultName = memberExpression(this._resultName, identifier(name)); + } } -function assertTSLiteralType(node, opts) { - assert("TSLiteralType", node, opts); +exports["default"] = ImportBuilder; + +//# sourceMappingURL=import-builder.js.map + + +/***/ }), + +/***/ 32378: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _assert = __nccwpck_require__(39491); +var _t = __nccwpck_require__(68948); +var _importBuilder = __nccwpck_require__(94079); +var _isModule = __nccwpck_require__(39898); +const { + numericLiteral, + sequenceExpression +} = _t; +class ImportInjector { + constructor(path, importedSource, opts) { + this._defaultOpts = { + importedSource: null, + importedType: "commonjs", + importedInterop: "babel", + importingInterop: "babel", + ensureLiveReference: false, + ensureNoContext: false, + importPosition: "before" + }; + const programPath = path.find(p => p.isProgram()); + this._programPath = programPath; + this._programScope = programPath.scope; + this._hub = programPath.hub; + this._defaultOpts = this._applyDefaults(importedSource, opts, true); + } + addDefault(importedSourceIn, opts) { + return this.addNamed("default", importedSourceIn, opts); + } + addNamed(importName, importedSourceIn, opts) { + _assert(typeof importName === "string"); + return this._generateImport(this._applyDefaults(importedSourceIn, opts), importName); + } + addNamespace(importedSourceIn, opts) { + return this._generateImport(this._applyDefaults(importedSourceIn, opts), null); + } + addSideEffect(importedSourceIn, opts) { + return this._generateImport(this._applyDefaults(importedSourceIn, opts), void 0); + } + _applyDefaults(importedSource, opts, isInit = false) { + let newOpts; + if (typeof importedSource === "string") { + newOpts = Object.assign({}, this._defaultOpts, { + importedSource + }, opts); + } else { + _assert(!opts, "Unexpected secondary arguments."); + newOpts = Object.assign({}, this._defaultOpts, importedSource); + } + if (!isInit && opts) { + if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint; + if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist; + } + return newOpts; + } + _generateImport(opts, importName) { + const isDefault = importName === "default"; + const isNamed = !!importName && !isDefault; + const isNamespace = importName === null; + const { + importedSource, + importedType, + importedInterop, + importingInterop, + ensureLiveReference, + ensureNoContext, + nameHint, + importPosition, + blockHoist + } = opts; + let name = nameHint || importName; + const isMod = (0, _isModule.default)(this._programPath); + const isModuleForNode = isMod && importingInterop === "node"; + const isModuleForBabel = isMod && importingInterop === "babel"; + if (importPosition === "after" && !isMod) { + throw new Error(`"importPosition": "after" is only supported in modules`); + } + const builder = new _importBuilder.default(importedSource, this._programScope, this._hub); + if (importedType === "es6") { + if (!isModuleForNode && !isModuleForBabel) { + throw new Error("Cannot import an ES6 module from CommonJS"); + } + builder.import(); + if (isNamespace) { + builder.namespace(nameHint || importedSource); + } else if (isDefault || isNamed) { + builder.named(name, importName); + } + } else if (importedType !== "commonjs") { + throw new Error(`Unexpected interopType "${importedType}"`); + } else if (importedInterop === "babel") { + if (isModuleForNode) { + name = name !== "default" ? name : importedSource; + const es6Default = `${importedSource}$es6Default`; + builder.import(); + if (isNamespace) { + builder.default(es6Default).var(name || importedSource).wildcardInterop(); + } else if (isDefault) { + if (ensureLiveReference) { + builder.default(es6Default).var(name || importedSource).defaultInterop().read("default"); + } else { + builder.default(es6Default).var(name).defaultInterop().prop(importName); + } + } else if (isNamed) { + builder.default(es6Default).read(importName); + } + } else if (isModuleForBabel) { + builder.import(); + if (isNamespace) { + builder.namespace(name || importedSource); + } else if (isDefault || isNamed) { + builder.named(name, importName); + } + } else { + builder.require(); + if (isNamespace) { + builder.var(name || importedSource).wildcardInterop(); + } else if ((isDefault || isNamed) && ensureLiveReference) { + if (isDefault) { + name = name !== "default" ? name : importedSource; + builder.var(name).read(importName); + builder.defaultInterop(); + } else { + builder.var(importedSource).read(importName); + } + } else if (isDefault) { + builder.var(name).defaultInterop().prop(importName); + } else if (isNamed) { + builder.var(name).prop(importName); + } + } + } else if (importedInterop === "compiled") { + if (isModuleForNode) { + builder.import(); + if (isNamespace) { + builder.default(name || importedSource); + } else if (isDefault || isNamed) { + builder.default(importedSource).read(name); + } + } else if (isModuleForBabel) { + builder.import(); + if (isNamespace) { + builder.namespace(name || importedSource); + } else if (isDefault || isNamed) { + builder.named(name, importName); + } + } else { + builder.require(); + if (isNamespace) { + builder.var(name || importedSource); + } else if (isDefault || isNamed) { + if (ensureLiveReference) { + builder.var(importedSource).read(name); + } else { + builder.prop(importName).var(name); + } + } + } + } else if (importedInterop === "uncompiled") { + if (isDefault && ensureLiveReference) { + throw new Error("No live reference for commonjs default"); + } + if (isModuleForNode) { + builder.import(); + if (isNamespace) { + builder.default(name || importedSource); + } else if (isDefault) { + builder.default(name); + } else if (isNamed) { + builder.default(importedSource).read(name); + } + } else if (isModuleForBabel) { + builder.import(); + if (isNamespace) { + builder.default(name || importedSource); + } else if (isDefault) { + builder.default(name); + } else if (isNamed) { + builder.named(name, importName); + } + } else { + builder.require(); + if (isNamespace) { + builder.var(name || importedSource); + } else if (isDefault) { + builder.var(name); + } else if (isNamed) { + if (ensureLiveReference) { + builder.var(importedSource).read(name); + } else { + builder.var(name).prop(importName); + } + } + } + } else { + throw new Error(`Unknown importedInterop "${importedInterop}".`); + } + const { + statements, + resultName + } = builder.done(); + this._insertStatements(statements, importPosition, blockHoist); + if ((isDefault || isNamed) && ensureNoContext && resultName.type !== "Identifier") { + return sequenceExpression([numericLiteral(0), resultName]); + } + return resultName; + } + _insertStatements(statements, importPosition = "before", blockHoist = 3) { + const body = this._programPath.get("body"); + if (importPosition === "after") { + for (let i = body.length - 1; i >= 0; i--) { + if (body[i].isImportDeclaration()) { + body[i].insertAfter(statements); + return; + } + } + } else { + statements.forEach(node => { + node._blockHoist = blockHoist; + }); + const targetPath = body.find(p => { + const val = p.node._blockHoist; + return Number.isFinite(val) && val < 4; + }); + if (targetPath) { + targetPath.insertBefore(statements); + return; + } + } + this._programPath.unshiftContainer("body", statements); + } } -function assertTSExpressionWithTypeArguments(node, opts) { - assert("TSExpressionWithTypeArguments", node, opts); +exports["default"] = ImportInjector; + +//# sourceMappingURL=import-injector.js.map + + +/***/ }), + +/***/ 52408: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "ImportInjector", ({ + enumerable: true, + get: function () { + return _importInjector.default; + } +})); +exports.addDefault = addDefault; +exports.addNamed = addNamed; +exports.addNamespace = addNamespace; +exports.addSideEffect = addSideEffect; +Object.defineProperty(exports, "isModule", ({ + enumerable: true, + get: function () { + return _isModule.default; + } +})); +var _importInjector = __nccwpck_require__(32378); +var _isModule = __nccwpck_require__(39898); +function addDefault(path, importedSource, opts) { + return new _importInjector.default(path).addDefault(importedSource, opts); } -function assertTSInterfaceDeclaration(node, opts) { - assert("TSInterfaceDeclaration", node, opts); +function addNamed(path, name, importedSource, opts) { + return new _importInjector.default(path).addNamed(name, importedSource, opts); } -function assertTSInterfaceBody(node, opts) { - assert("TSInterfaceBody", node, opts); +function addNamespace(path, importedSource, opts) { + return new _importInjector.default(path).addNamespace(importedSource, opts); } -function assertTSTypeAliasDeclaration(node, opts) { - assert("TSTypeAliasDeclaration", node, opts); +function addSideEffect(path, importedSource, opts) { + return new _importInjector.default(path).addSideEffect(importedSource, opts); } -function assertTSInstantiationExpression(node, opts) { - assert("TSInstantiationExpression", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 39898: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = isModule; +function isModule(path) { + return path.node.sourceType === "module"; } -function assertTSAsExpression(node, opts) { - assert("TSAsExpression", node, opts); + +//# sourceMappingURL=is-module.js.map + + +/***/ }), + +/***/ 56503: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.buildDynamicImport = buildDynamicImport; +var _core = __nccwpck_require__(65258); +{ + exports.getDynamicImportSource = function getDynamicImportSource(node) { + const [source] = node.arguments; + return _core.types.isStringLiteral(source) || _core.types.isTemplateLiteral(source) ? source : _core.template.expression.ast`\`\${${source}}\``; + }; } -function assertTSSatisfiesExpression(node, opts) { - assert("TSSatisfiesExpression", node, opts); +function buildDynamicImport(node, deferToThen, wrapWithPromise, builder) { + const specifier = _core.types.isCallExpression(node) ? node.arguments[0] : node.source; + if (_core.types.isStringLiteral(specifier) || _core.types.isTemplateLiteral(specifier) && specifier.quasis.length === 0) { + if (deferToThen) { + return _core.template.expression.ast` + Promise.resolve().then(() => ${builder(specifier)}) + `; + } else return builder(specifier); + } + const specifierToString = _core.types.isTemplateLiteral(specifier) ? _core.types.identifier("specifier") : _core.types.templateLiteral([_core.types.templateElement({ + raw: "" + }), _core.types.templateElement({ + raw: "" + })], [_core.types.identifier("specifier")]); + if (deferToThen) { + return _core.template.expression.ast` + (specifier => + new Promise(r => r(${specifierToString})) + .then(s => ${builder(_core.types.identifier("s"))}) + )(${specifier}) + `; + } else if (wrapWithPromise) { + return _core.template.expression.ast` + (specifier => + new Promise(r => r(${builder(specifierToString)})) + )(${specifier}) + `; + } else { + return _core.template.expression.ast` + (specifier => ${builder(specifierToString)})(${specifier}) + `; + } } -function assertTSTypeAssertion(node, opts) { - assert("TSTypeAssertion", node, opts); + +//# sourceMappingURL=dynamic-import.js.map + + +/***/ }), + +/***/ 18461: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = getModuleName; +{ + const originalGetModuleName = getModuleName; + exports["default"] = getModuleName = function getModuleName(rootOpts, pluginOpts) { + var _pluginOpts$moduleId, _pluginOpts$moduleIds, _pluginOpts$getModule, _pluginOpts$moduleRoo; + return originalGetModuleName(rootOpts, { + moduleId: (_pluginOpts$moduleId = pluginOpts.moduleId) != null ? _pluginOpts$moduleId : rootOpts.moduleId, + moduleIds: (_pluginOpts$moduleIds = pluginOpts.moduleIds) != null ? _pluginOpts$moduleIds : rootOpts.moduleIds, + getModuleId: (_pluginOpts$getModule = pluginOpts.getModuleId) != null ? _pluginOpts$getModule : rootOpts.getModuleId, + moduleRoot: (_pluginOpts$moduleRoo = pluginOpts.moduleRoot) != null ? _pluginOpts$moduleRoo : rootOpts.moduleRoot + }); + }; } -function assertTSEnumDeclaration(node, opts) { - assert("TSEnumDeclaration", node, opts); +function getModuleName(rootOpts, pluginOpts) { + const { + filename, + filenameRelative = filename, + sourceRoot = pluginOpts.moduleRoot + } = rootOpts; + const { + moduleId, + moduleIds = !!moduleId, + getModuleId, + moduleRoot = sourceRoot + } = pluginOpts; + if (!moduleIds) return null; + if (moduleId != null && !getModuleId) { + return moduleId; + } + let moduleName = moduleRoot != null ? moduleRoot + "/" : ""; + if (filenameRelative) { + const sourceRootReplacer = sourceRoot != null ? new RegExp("^" + sourceRoot + "/?") : ""; + moduleName += filenameRelative.replace(sourceRootReplacer, "").replace(/\.(\w*?)$/, ""); + } + moduleName = moduleName.replace(/\\/g, "/"); + if (getModuleId) { + return getModuleId(moduleName) || moduleName; + } else { + return moduleName; + } } -function assertTSEnumMember(node, opts) { - assert("TSEnumMember", node, opts); + +//# sourceMappingURL=get-module-name.js.map + + +/***/ }), + +/***/ 1642: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "buildDynamicImport", ({ + enumerable: true, + get: function () { + return _dynamicImport.buildDynamicImport; + } +})); +exports.buildNamespaceInitStatements = buildNamespaceInitStatements; +exports.ensureStatementsHoisted = ensureStatementsHoisted; +Object.defineProperty(exports, "getModuleName", ({ + enumerable: true, + get: function () { + return _getModuleName.default; + } +})); +Object.defineProperty(exports, "hasExports", ({ + enumerable: true, + get: function () { + return _normalizeAndLoadMetadata.hasExports; + } +})); +Object.defineProperty(exports, "isModule", ({ + enumerable: true, + get: function () { + return _helperModuleImports.isModule; + } +})); +Object.defineProperty(exports, "isSideEffectImport", ({ + enumerable: true, + get: function () { + return _normalizeAndLoadMetadata.isSideEffectImport; + } +})); +exports.rewriteModuleStatementsAndPrepareHeader = rewriteModuleStatementsAndPrepareHeader; +Object.defineProperty(exports, "rewriteThis", ({ + enumerable: true, + get: function () { + return _rewriteThis.default; + } +})); +exports.wrapInterop = wrapInterop; +var _assert = __nccwpck_require__(39491); +var _core = __nccwpck_require__(65258); +var _helperModuleImports = __nccwpck_require__(52408); +var _rewriteThis = __nccwpck_require__(55927); +var _rewriteLiveReferences = __nccwpck_require__(95446); +var _normalizeAndLoadMetadata = __nccwpck_require__(90916); +var Lazy = __nccwpck_require__(21450); +var _dynamicImport = __nccwpck_require__(56503); +var _getModuleName = __nccwpck_require__(18461); +const { + booleanLiteral, + callExpression, + cloneNode, + directive, + directiveLiteral, + expressionStatement, + identifier, + isIdentifier, + memberExpression, + stringLiteral, + valueToNode, + variableDeclaration, + variableDeclarator +} = _core.types; +{ + exports.getDynamicImportSource = __nccwpck_require__(56503).getDynamicImportSource; } -function assertTSModuleDeclaration(node, opts) { - assert("TSModuleDeclaration", node, opts); +function rewriteModuleStatementsAndPrepareHeader(path, { + exportName, + strict, + allowTopLevelThis, + strictMode, + noInterop, + importInterop = noInterop ? "none" : "babel", + lazy, + getWrapperPayload = Lazy.toGetWrapperPayload(lazy != null ? lazy : false), + wrapReference = Lazy.wrapReference, + esNamespaceOnly, + filename, + constantReexports = arguments[1].loose, + enumerableModuleMeta = arguments[1].loose, + noIncompleteNsImportDetection +}) { + (0, _normalizeAndLoadMetadata.validateImportInteropOption)(importInterop); + _assert((0, _helperModuleImports.isModule)(path), "Cannot process module statements in a script"); + path.node.sourceType = "script"; + const meta = (0, _normalizeAndLoadMetadata.default)(path, exportName, { + importInterop, + initializeReexports: constantReexports, + getWrapperPayload, + esNamespaceOnly, + filename + }); + if (!allowTopLevelThis) { + (0, _rewriteThis.default)(path); + } + (0, _rewriteLiveReferences.default)(path, meta, wrapReference); + if (strictMode !== false) { + const hasStrict = path.node.directives.some(directive => { + return directive.value.value === "use strict"; + }); + if (!hasStrict) { + path.unshiftContainer("directives", directive(directiveLiteral("use strict"))); + } + } + const headers = []; + if ((0, _normalizeAndLoadMetadata.hasExports)(meta) && !strict) { + headers.push(buildESModuleHeader(meta, enumerableModuleMeta)); + } + const nameList = buildExportNameListDeclaration(path, meta); + if (nameList) { + meta.exportNameListName = nameList.name; + headers.push(nameList.statement); + } + headers.push(...buildExportInitializationStatements(path, meta, wrapReference, constantReexports, noIncompleteNsImportDetection)); + return { + meta, + headers + }; } -function assertTSModuleBlock(node, opts) { - assert("TSModuleBlock", node, opts); +function ensureStatementsHoisted(statements) { + statements.forEach(header => { + header._blockHoist = 3; + }); } -function assertTSImportType(node, opts) { - assert("TSImportType", node, opts); +function wrapInterop(programPath, expr, type) { + if (type === "none") { + return null; + } + if (type === "node-namespace") { + return callExpression(programPath.hub.addHelper("interopRequireWildcard"), [expr, booleanLiteral(true)]); + } else if (type === "node-default") { + return null; + } + let helper; + if (type === "default") { + helper = "interopRequireDefault"; + } else if (type === "namespace") { + helper = "interopRequireWildcard"; + } else { + throw new Error(`Unknown interop: ${type}`); + } + return callExpression(programPath.hub.addHelper(helper), [expr]); } -function assertTSImportEqualsDeclaration(node, opts) { - assert("TSImportEqualsDeclaration", node, opts); +function buildNamespaceInitStatements(metadata, sourceMetadata, constantReexports = false, wrapReference = Lazy.wrapReference) { + var _wrapReference; + const statements = []; + const srcNamespaceId = identifier(sourceMetadata.name); + for (const localName of sourceMetadata.importsNamespace) { + if (localName === sourceMetadata.name) continue; + statements.push(_core.template.statement`var NAME = SOURCE;`({ + NAME: localName, + SOURCE: cloneNode(srcNamespaceId) + })); + } + const srcNamespace = (_wrapReference = wrapReference(srcNamespaceId, sourceMetadata.wrap)) != null ? _wrapReference : srcNamespaceId; + if (constantReexports) { + statements.push(...buildReexportsFromMeta(metadata, sourceMetadata, true, wrapReference)); + } + for (const exportName of sourceMetadata.reexportNamespace) { + statements.push((!_core.types.isIdentifier(srcNamespace) ? _core.template.statement` + Object.defineProperty(EXPORTS, "NAME", { + enumerable: true, + get: function() { + return NAMESPACE; + } + }); + ` : _core.template.statement`EXPORTS.NAME = NAMESPACE;`)({ + EXPORTS: metadata.exportName, + NAME: exportName, + NAMESPACE: cloneNode(srcNamespace) + })); + } + if (sourceMetadata.reexportAll) { + const statement = buildNamespaceReexport(metadata, cloneNode(srcNamespace), constantReexports); + statement.loc = sourceMetadata.reexportAll.loc; + statements.push(statement); + } + return statements; } -function assertTSExternalModuleReference(node, opts) { - assert("TSExternalModuleReference", node, opts); +const ReexportTemplate = { + constant: _core.template.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`, + constantComputed: _core.template.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`, + spec: _core.template.statement` + Object.defineProperty(EXPORTS, "EXPORT_NAME", { + enumerable: true, + get: function() { + return NAMESPACE_IMPORT; + }, + }); + ` +}; +function buildReexportsFromMeta(meta, metadata, constantReexports, wrapReference) { + var _wrapReference2; + let namespace = identifier(metadata.name); + namespace = (_wrapReference2 = wrapReference(namespace, metadata.wrap)) != null ? _wrapReference2 : namespace; + const { + stringSpecifiers + } = meta; + return Array.from(metadata.reexports, ([exportName, importName]) => { + let NAMESPACE_IMPORT = cloneNode(namespace); + if (importName === "default" && metadata.interop === "node-default") {} else if (stringSpecifiers.has(importName)) { + NAMESPACE_IMPORT = memberExpression(NAMESPACE_IMPORT, stringLiteral(importName), true); + } else { + NAMESPACE_IMPORT = memberExpression(NAMESPACE_IMPORT, identifier(importName)); + } + const astNodes = { + EXPORTS: meta.exportName, + EXPORT_NAME: exportName, + NAMESPACE_IMPORT + }; + if (constantReexports || isIdentifier(NAMESPACE_IMPORT)) { + if (stringSpecifiers.has(exportName)) { + return ReexportTemplate.constantComputed(astNodes); + } else { + return ReexportTemplate.constant(astNodes); + } + } else { + return ReexportTemplate.spec(astNodes); + } + }); } -function assertTSNonNullExpression(node, opts) { - assert("TSNonNullExpression", node, opts); +function buildESModuleHeader(metadata, enumerableModuleMeta = false) { + return (enumerableModuleMeta ? _core.template.statement` + EXPORTS.__esModule = true; + ` : _core.template.statement` + Object.defineProperty(EXPORTS, "__esModule", { + value: true, + }); + `)({ + EXPORTS: metadata.exportName + }); } -function assertTSExportAssignment(node, opts) { - assert("TSExportAssignment", node, opts); +function buildNamespaceReexport(metadata, namespace, constantReexports) { + return (constantReexports ? _core.template.statement` + Object.keys(NAMESPACE).forEach(function(key) { + if (key === "default" || key === "__esModule") return; + VERIFY_NAME_LIST; + if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; + + EXPORTS[key] = NAMESPACE[key]; + }); + ` : _core.template.statement` + Object.keys(NAMESPACE).forEach(function(key) { + if (key === "default" || key === "__esModule") return; + VERIFY_NAME_LIST; + if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; + + Object.defineProperty(EXPORTS, key, { + enumerable: true, + get: function() { + return NAMESPACE[key]; + }, + }); + }); + `)({ + NAMESPACE: namespace, + EXPORTS: metadata.exportName, + VERIFY_NAME_LIST: metadata.exportNameListName ? (0, _core.template)` + if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return; + `({ + EXPORTS_LIST: metadata.exportNameListName + }) : null + }); } -function assertTSNamespaceExportDeclaration(node, opts) { - assert("TSNamespaceExportDeclaration", node, opts); +function buildExportNameListDeclaration(programPath, metadata) { + const exportedVars = Object.create(null); + for (const data of metadata.local.values()) { + for (const name of data.names) { + exportedVars[name] = true; + } + } + let hasReexport = false; + for (const data of metadata.source.values()) { + for (const exportName of data.reexports.keys()) { + exportedVars[exportName] = true; + } + for (const exportName of data.reexportNamespace) { + exportedVars[exportName] = true; + } + hasReexport = hasReexport || !!data.reexportAll; + } + if (!hasReexport || Object.keys(exportedVars).length === 0) return null; + const name = programPath.scope.generateUidIdentifier("exportNames"); + delete exportedVars.default; + return { + name: name.name, + statement: variableDeclaration("var", [variableDeclarator(name, valueToNode(exportedVars))]) + }; } -function assertTSTypeAnnotation(node, opts) { - assert("TSTypeAnnotation", node, opts); +function buildExportInitializationStatements(programPath, metadata, wrapReference, constantReexports = false, noIncompleteNsImportDetection = false) { + const initStatements = []; + for (const [localName, data] of metadata.local) { + if (data.kind === "import") {} else if (data.kind === "hoisted") { + initStatements.push([data.names[0], buildInitStatement(metadata, data.names, identifier(localName))]); + } else if (!noIncompleteNsImportDetection) { + for (const exportName of data.names) { + initStatements.push([exportName, null]); + } + } + } + for (const data of metadata.source.values()) { + if (!constantReexports) { + const reexportsStatements = buildReexportsFromMeta(metadata, data, false, wrapReference); + const reexports = [...data.reexports.keys()]; + for (let i = 0; i < reexportsStatements.length; i++) { + initStatements.push([reexports[i], reexportsStatements[i]]); + } + } + if (!noIncompleteNsImportDetection) { + for (const exportName of data.reexportNamespace) { + initStatements.push([exportName, null]); + } + } + } + initStatements.sort(([a], [b]) => { + if (a < b) return -1; + if (b < a) return 1; + return 0; + }); + const results = []; + if (noIncompleteNsImportDetection) { + for (const [, initStatement] of initStatements) { + results.push(initStatement); + } + } else { + const chunkSize = 100; + for (let i = 0; i < initStatements.length; i += chunkSize) { + let uninitializedExportNames = []; + for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) { + const [exportName, initStatement] = initStatements[i + j]; + if (initStatement !== null) { + if (uninitializedExportNames.length > 0) { + results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode())); + uninitializedExportNames = []; + } + results.push(initStatement); + } else { + uninitializedExportNames.push(exportName); + } + } + if (uninitializedExportNames.length > 0) { + results.push(buildInitStatement(metadata, uninitializedExportNames, programPath.scope.buildUndefinedNode())); + } + } + } + return results; } -function assertTSTypeParameterInstantiation(node, opts) { - assert("TSTypeParameterInstantiation", node, opts); +const InitTemplate = { + computed: _core.template.expression`EXPORTS["NAME"] = VALUE`, + default: _core.template.expression`EXPORTS.NAME = VALUE`, + define: _core.template.expression`Object.defineProperty(EXPORTS, "NAME", { enumerable:true, value: void 0, writable: true })["NAME"] = VALUE` +}; +function buildInitStatement(metadata, exportNames, initExpr) { + const { + stringSpecifiers, + exportName: EXPORTS + } = metadata; + return expressionStatement(exportNames.reduce((acc, exportName) => { + const params = { + EXPORTS, + NAME: exportName, + VALUE: acc + }; + if (exportName === "__proto__") { + return InitTemplate.define(params); + } + if (stringSpecifiers.has(exportName)) { + return InitTemplate.computed(params); + } + return InitTemplate.default(params); + }, initExpr)); } -function assertTSTypeParameterDeclaration(node, opts) { - assert("TSTypeParameterDeclaration", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 21450: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.toGetWrapperPayload = toGetWrapperPayload; +exports.wrapReference = wrapReference; +var _core = __nccwpck_require__(65258); +var _normalizeAndLoadMetadata = __nccwpck_require__(90916); +function toGetWrapperPayload(lazy) { + return (source, metadata) => { + if (lazy === false) return null; + if ((0, _normalizeAndLoadMetadata.isSideEffectImport)(metadata) || metadata.reexportAll) return null; + if (lazy === true) { + return /\./.test(source) ? null : "lazy"; + } + if (Array.isArray(lazy)) { + return lazy.indexOf(source) === -1 ? null : "lazy"; + } + if (typeof lazy === "function") { + return lazy(source) ? "lazy" : null; + } + throw new Error(`.lazy must be a boolean, string array, or function`); + }; } -function assertTSTypeParameter(node, opts) { - assert("TSTypeParameter", node, opts); +function wrapReference(ref, payload) { + if (payload === "lazy") return _core.types.callExpression(ref, []); + return null; } -function assertStandardized(node, opts) { - assert("Standardized", node, opts); + +//# sourceMappingURL=lazy-modules.js.map + + +/***/ }), + +/***/ 90916: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = normalizeModuleAndLoadMetadata; +exports.hasExports = hasExports; +exports.isSideEffectImport = isSideEffectImport; +exports.validateImportInteropOption = validateImportInteropOption; +var _path = __nccwpck_require__(71017); +var _helperValidatorIdentifier = __nccwpck_require__(63442); +var _helperSplitExportDeclaration = __nccwpck_require__(62605); +function hasExports(metadata) { + return metadata.hasExports; } -function assertExpression(node, opts) { - assert("Expression", node, opts); +function isSideEffectImport(source) { + return source.imports.size === 0 && source.importsNamespace.size === 0 && source.reexports.size === 0 && source.reexportNamespace.size === 0 && !source.reexportAll; } -function assertBinary(node, opts) { - assert("Binary", node, opts); +function validateImportInteropOption(importInterop) { + if (typeof importInterop !== "function" && importInterop !== "none" && importInterop !== "babel" && importInterop !== "node") { + throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${importInterop}).`); + } + return importInterop; } -function assertScopable(node, opts) { - assert("Scopable", node, opts); +function resolveImportInterop(importInterop, source, filename) { + if (typeof importInterop === "function") { + return validateImportInteropOption(importInterop(source, filename)); + } + return importInterop; } -function assertBlockParent(node, opts) { - assert("BlockParent", node, opts); +function normalizeModuleAndLoadMetadata(programPath, exportName, { + importInterop, + initializeReexports = false, + getWrapperPayload, + esNamespaceOnly = false, + filename +}) { + if (!exportName) { + exportName = programPath.scope.generateUidIdentifier("exports").name; + } + const stringSpecifiers = new Set(); + nameAnonymousExports(programPath); + const { + local, + sources, + hasExports + } = getModuleMetadata(programPath, { + initializeReexports, + getWrapperPayload + }, stringSpecifiers); + removeImportExportDeclarations(programPath); + for (const [source, metadata] of sources) { + const { + importsNamespace, + imports + } = metadata; + if (importsNamespace.size > 0 && imports.size === 0) { + const [nameOfnamespace] = importsNamespace; + metadata.name = nameOfnamespace; + } + const resolvedInterop = resolveImportInterop(importInterop, source, filename); + if (resolvedInterop === "none") { + metadata.interop = "none"; + } else if (resolvedInterop === "node" && metadata.interop === "namespace") { + metadata.interop = "node-namespace"; + } else if (resolvedInterop === "node" && metadata.interop === "default") { + metadata.interop = "node-default"; + } else if (esNamespaceOnly && metadata.interop === "namespace") { + metadata.interop = "default"; + } + } + return { + exportName, + exportNameListName: null, + hasExports, + local, + source: sources, + stringSpecifiers + }; } -function assertBlock(node, opts) { - assert("Block", node, opts); +function getExportSpecifierName(path, stringSpecifiers) { + if (path.isIdentifier()) { + return path.node.name; + } else if (path.isStringLiteral()) { + const stringValue = path.node.value; + if (!(0, _helperValidatorIdentifier.isIdentifierName)(stringValue)) { + stringSpecifiers.add(stringValue); + } + return stringValue; + } else { + throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`); + } } -function assertStatement(node, opts) { - assert("Statement", node, opts); +function assertExportSpecifier(path) { + if (path.isExportSpecifier()) { + return; + } else if (path.isExportNamespaceSpecifier()) { + throw path.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`."); + } else { + throw path.buildCodeFrameError("Unexpected export specifier type"); + } } -function assertTerminatorless(node, opts) { - assert("Terminatorless", node, opts); +function getModuleMetadata(programPath, { + getWrapperPayload, + initializeReexports +}, stringSpecifiers) { + const localData = getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers); + const importNodes = new Map(); + const sourceData = new Map(); + const getData = (sourceNode, node) => { + const source = sourceNode.value; + let data = sourceData.get(source); + if (!data) { + data = { + name: programPath.scope.generateUidIdentifier((0, _path.basename)(source, (0, _path.extname)(source))).name, + interop: "none", + loc: null, + imports: new Map(), + importsNamespace: new Set(), + reexports: new Map(), + reexportNamespace: new Set(), + reexportAll: null, + wrap: null, + get lazy() { + return this.wrap === "lazy"; + }, + referenced: false + }; + sourceData.set(source, data); + importNodes.set(source, [node]); + } else { + importNodes.get(source).push(node); + } + return data; + }; + let hasExports = false; + programPath.get("body").forEach(child => { + if (child.isImportDeclaration()) { + const data = getData(child.node.source, child.node); + if (!data.loc) data.loc = child.node.loc; + child.get("specifiers").forEach(spec => { + if (spec.isImportDefaultSpecifier()) { + const localName = spec.get("local").node.name; + data.imports.set(localName, "default"); + const reexport = localData.get(localName); + if (reexport) { + localData.delete(localName); + reexport.names.forEach(name => { + data.reexports.set(name, "default"); + }); + data.referenced = true; + } + } else if (spec.isImportNamespaceSpecifier()) { + const localName = spec.get("local").node.name; + data.importsNamespace.add(localName); + const reexport = localData.get(localName); + if (reexport) { + localData.delete(localName); + reexport.names.forEach(name => { + data.reexportNamespace.add(name); + }); + data.referenced = true; + } + } else if (spec.isImportSpecifier()) { + const importName = getExportSpecifierName(spec.get("imported"), stringSpecifiers); + const localName = spec.get("local").node.name; + data.imports.set(localName, importName); + const reexport = localData.get(localName); + if (reexport) { + localData.delete(localName); + reexport.names.forEach(name => { + data.reexports.set(name, importName); + }); + data.referenced = true; + } + } + }); + } else if (child.isExportAllDeclaration()) { + hasExports = true; + const data = getData(child.node.source, child.node); + if (!data.loc) data.loc = child.node.loc; + data.reexportAll = { + loc: child.node.loc + }; + data.referenced = true; + } else if (child.isExportNamedDeclaration() && child.node.source) { + hasExports = true; + const data = getData(child.node.source, child.node); + if (!data.loc) data.loc = child.node.loc; + child.get("specifiers").forEach(spec => { + assertExportSpecifier(spec); + const importName = getExportSpecifierName(spec.get("local"), stringSpecifiers); + const exportName = getExportSpecifierName(spec.get("exported"), stringSpecifiers); + data.reexports.set(exportName, importName); + data.referenced = true; + if (exportName === "__esModule") { + throw spec.get("exported").buildCodeFrameError('Illegal export "__esModule".'); + } + }); + } else if (child.isExportNamedDeclaration() || child.isExportDefaultDeclaration()) { + hasExports = true; + } + }); + for (const metadata of sourceData.values()) { + let needsDefault = false; + let needsNamed = false; + if (metadata.importsNamespace.size > 0) { + needsDefault = true; + needsNamed = true; + } + if (metadata.reexportAll) { + needsNamed = true; + } + for (const importName of metadata.imports.values()) { + if (importName === "default") needsDefault = true;else needsNamed = true; + } + for (const importName of metadata.reexports.values()) { + if (importName === "default") needsDefault = true;else needsNamed = true; + } + if (needsDefault && needsNamed) { + metadata.interop = "namespace"; + } else if (needsDefault) { + metadata.interop = "default"; + } + } + if (getWrapperPayload) { + for (const [source, metadata] of sourceData) { + metadata.wrap = getWrapperPayload(source, metadata, importNodes.get(source)); + } + } + return { + hasExports, + local: localData, + sources: sourceData + }; } -function assertCompletionStatement(node, opts) { - assert("CompletionStatement", node, opts); +function getLocalExportMetadata(programPath, initializeReexports, stringSpecifiers) { + const bindingKindLookup = new Map(); + programPath.get("body").forEach(child => { + let kind; + if (child.isImportDeclaration()) { + kind = "import"; + } else { + if (child.isExportDefaultDeclaration()) { + child = child.get("declaration"); + } + if (child.isExportNamedDeclaration()) { + if (child.node.declaration) { + child = child.get("declaration"); + } else if (initializeReexports && child.node.source && child.get("source").isStringLiteral()) { + child.get("specifiers").forEach(spec => { + assertExportSpecifier(spec); + bindingKindLookup.set(spec.get("local").node.name, "block"); + }); + return; + } + } + if (child.isFunctionDeclaration()) { + kind = "hoisted"; + } else if (child.isClassDeclaration()) { + kind = "block"; + } else if (child.isVariableDeclaration({ + kind: "var" + })) { + kind = "var"; + } else if (child.isVariableDeclaration()) { + kind = "block"; + } else { + return; + } + } + Object.keys(child.getOuterBindingIdentifiers()).forEach(name => { + bindingKindLookup.set(name, kind); + }); + }); + const localMetadata = new Map(); + const getLocalMetadata = idPath => { + const localName = idPath.node.name; + let metadata = localMetadata.get(localName); + if (!metadata) { + const kind = bindingKindLookup.get(localName); + if (kind === undefined) { + throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`); + } + metadata = { + names: [], + kind + }; + localMetadata.set(localName, metadata); + } + return metadata; + }; + programPath.get("body").forEach(child => { + if (child.isExportNamedDeclaration() && (initializeReexports || !child.node.source)) { + if (child.node.declaration) { + const declaration = child.get("declaration"); + const ids = declaration.getOuterBindingIdentifierPaths(); + Object.keys(ids).forEach(name => { + if (name === "__esModule") { + throw declaration.buildCodeFrameError('Illegal export "__esModule".'); + } + getLocalMetadata(ids[name]).names.push(name); + }); + } else { + child.get("specifiers").forEach(spec => { + const local = spec.get("local"); + const exported = spec.get("exported"); + const localMetadata = getLocalMetadata(local); + const exportName = getExportSpecifierName(exported, stringSpecifiers); + if (exportName === "__esModule") { + throw exported.buildCodeFrameError('Illegal export "__esModule".'); + } + localMetadata.names.push(exportName); + }); + } + } else if (child.isExportDefaultDeclaration()) { + const declaration = child.get("declaration"); + if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) { + getLocalMetadata(declaration.get("id")).names.push("default"); + } else { + throw declaration.buildCodeFrameError("Unexpected default expression export."); + } + } + }); + return localMetadata; } -function assertConditional(node, opts) { - assert("Conditional", node, opts); +function nameAnonymousExports(programPath) { + programPath.get("body").forEach(child => { + if (!child.isExportDefaultDeclaration()) return; + (0, _helperSplitExportDeclaration.default)(child); + }); } -function assertLoop(node, opts) { - assert("Loop", node, opts); +function removeImportExportDeclarations(programPath) { + programPath.get("body").forEach(child => { + if (child.isImportDeclaration()) { + child.remove(); + } else if (child.isExportNamedDeclaration()) { + if (child.node.declaration) { + child.node.declaration._blockHoist = child.node._blockHoist; + child.replaceWith(child.node.declaration); + } else { + child.remove(); + } + } else if (child.isExportDefaultDeclaration()) { + const declaration = child.get("declaration"); + if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) { + declaration._blockHoist = child.node._blockHoist; + child.replaceWith(declaration); + } else { + throw declaration.buildCodeFrameError("Unexpected default expression export."); + } + } else if (child.isExportAllDeclaration()) { + child.remove(); + } + }); } -function assertWhile(node, opts) { - assert("While", node, opts); + +//# sourceMappingURL=normalize-and-load-metadata.js.map + + +/***/ }), + +/***/ 95446: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rewriteLiveReferences; +var _assert = __nccwpck_require__(39491); +var _core = __nccwpck_require__(65258); +var _helperSimpleAccess = __nccwpck_require__(62469); +const { + assignmentExpression, + cloneNode, + expressionStatement, + getOuterBindingIdentifiers, + identifier, + isArrowFunctionExpression, + isClassExpression, + isFunctionExpression, + isIdentifier, + isMemberExpression, + isVariableDeclaration, + jsxIdentifier, + jsxMemberExpression, + memberExpression, + numericLiteral, + sequenceExpression, + stringLiteral, + variableDeclaration, + variableDeclarator +} = _core.types; +function isInType(path) { + do { + switch (path.parent.type) { + case "TSTypeAnnotation": + case "TSTypeAliasDeclaration": + case "TSTypeReference": + case "TypeAnnotation": + case "TypeAlias": + return true; + case "ExportSpecifier": + return path.parentPath.parent.exportKind === "type"; + default: + if (path.parentPath.isStatement() || path.parentPath.isExpression()) { + return false; + } + } + } while (path = path.parentPath); } -function assertExpressionWrapper(node, opts) { - assert("ExpressionWrapper", node, opts); +function rewriteLiveReferences(programPath, metadata, wrapReference) { + const imported = new Map(); + const exported = new Map(); + const requeueInParent = path => { + programPath.requeue(path); + }; + for (const [source, data] of metadata.source) { + for (const [localName, importName] of data.imports) { + imported.set(localName, [source, importName, null]); + } + for (const localName of data.importsNamespace) { + imported.set(localName, [source, null, localName]); + } + } + for (const [local, data] of metadata.local) { + let exportMeta = exported.get(local); + if (!exportMeta) { + exportMeta = []; + exported.set(local, exportMeta); + } + exportMeta.push(...data.names); + } + const rewriteBindingInitVisitorState = { + metadata, + requeueInParent, + scope: programPath.scope, + exported + }; + programPath.traverse(rewriteBindingInitVisitor, rewriteBindingInitVisitorState); + const bindingNames = new Set([...Array.from(imported.keys()), ...Array.from(exported.keys())]); + { + (0, _helperSimpleAccess.default)(programPath, bindingNames, false); + } + const rewriteReferencesVisitorState = { + seen: new WeakSet(), + metadata, + requeueInParent, + scope: programPath.scope, + imported, + exported, + buildImportReference([source, importName, localName], identNode) { + const meta = metadata.source.get(source); + meta.referenced = true; + if (localName) { + if (meta.wrap) { + var _wrapReference; + identNode = (_wrapReference = wrapReference(identNode, meta.wrap)) != null ? _wrapReference : identNode; + } + return identNode; + } + let namespace = identifier(meta.name); + if (meta.wrap) { + var _wrapReference2; + namespace = (_wrapReference2 = wrapReference(namespace, meta.wrap)) != null ? _wrapReference2 : namespace; + } + if (importName === "default" && meta.interop === "node-default") { + return namespace; + } + const computed = metadata.stringSpecifiers.has(importName); + return memberExpression(namespace, computed ? stringLiteral(importName) : identifier(importName), computed); + } + }; + programPath.traverse(rewriteReferencesVisitor, rewriteReferencesVisitorState); } -function assertFor(node, opts) { - assert("For", node, opts); +const rewriteBindingInitVisitor = { + Scope(path) { + path.skip(); + }, + ClassDeclaration(path) { + const { + requeueInParent, + exported, + metadata + } = this; + const { + id + } = path.node; + if (!id) throw new Error("Expected class to have a name"); + const localName = id.name; + const exportNames = exported.get(localName) || []; + if (exportNames.length > 0) { + const statement = expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, identifier(localName), path.scope)); + statement._blockHoist = path.node._blockHoist; + requeueInParent(path.insertAfter(statement)[0]); + } + }, + VariableDeclaration(path) { + const { + requeueInParent, + exported, + metadata + } = this; + const isVar = path.node.kind === "var"; + for (const decl of path.get("declarations")) { + const { + id + } = decl.node; + let { + init + } = decl.node; + if (isIdentifier(id) && exported.has(id.name) && !isArrowFunctionExpression(init) && (!isFunctionExpression(init) || init.id) && (!isClassExpression(init) || init.id)) { + if (!init) { + if (isVar) { + continue; + } else { + init = path.scope.buildUndefinedNode(); + } + } + decl.node.init = buildBindingExportAssignmentExpression(metadata, exported.get(id.name), init, path.scope); + requeueInParent(decl.get("init")); + } else { + for (const localName of Object.keys(decl.getOuterBindingIdentifiers())) { + if (exported.has(localName)) { + const statement = expressionStatement(buildBindingExportAssignmentExpression(metadata, exported.get(localName), identifier(localName), path.scope)); + statement._blockHoist = path.node._blockHoist; + requeueInParent(path.insertAfter(statement)[0]); + } + } + } + } + } +}; +const buildBindingExportAssignmentExpression = (metadata, exportNames, localExpr, scope) => { + const exportsObjectName = metadata.exportName; + for (let currentScope = scope; currentScope != null; currentScope = currentScope.parent) { + if (currentScope.hasOwnBinding(exportsObjectName)) { + currentScope.rename(exportsObjectName); + } + } + return (exportNames || []).reduce((expr, exportName) => { + const { + stringSpecifiers + } = metadata; + const computed = stringSpecifiers.has(exportName); + return assignmentExpression("=", memberExpression(identifier(exportsObjectName), computed ? stringLiteral(exportName) : identifier(exportName), computed), expr); + }, localExpr); +}; +const buildImportThrow = localName => { + return _core.template.expression.ast` + (function() { + throw new Error('"' + '${localName}' + '" is read-only.'); + })() + `; +}; +const rewriteReferencesVisitor = { + ReferencedIdentifier(path) { + const { + seen, + buildImportReference, + scope, + imported, + requeueInParent + } = this; + if (seen.has(path.node)) return; + seen.add(path.node); + const localName = path.node.name; + const importData = imported.get(localName); + if (importData) { + if (isInType(path)) { + throw path.buildCodeFrameError(`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. ` + `Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`); + } + const localBinding = path.scope.getBinding(localName); + const rootBinding = scope.getBinding(localName); + if (rootBinding !== localBinding) return; + const ref = buildImportReference(importData, path.node); + ref.loc = path.node.loc; + if ((path.parentPath.isCallExpression({ + callee: path.node + }) || path.parentPath.isOptionalCallExpression({ + callee: path.node + }) || path.parentPath.isTaggedTemplateExpression({ + tag: path.node + })) && isMemberExpression(ref)) { + path.replaceWith(sequenceExpression([numericLiteral(0), ref])); + } else if (path.isJSXIdentifier() && isMemberExpression(ref)) { + const { + object, + property + } = ref; + path.replaceWith(jsxMemberExpression(jsxIdentifier(object.name), jsxIdentifier(property.name))); + } else { + path.replaceWith(ref); + } + requeueInParent(path); + path.skip(); + } + }, + UpdateExpression(path) { + const { + scope, + seen, + imported, + exported, + requeueInParent, + buildImportReference + } = this; + if (seen.has(path.node)) return; + seen.add(path.node); + const arg = path.get("argument"); + if (arg.isMemberExpression()) return; + const update = path.node; + if (arg.isIdentifier()) { + const localName = arg.node.name; + if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { + return; + } + const exportedNames = exported.get(localName); + const importData = imported.get(localName); + if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) { + if (importData) { + path.replaceWith(assignmentExpression(update.operator[0] + "=", buildImportReference(importData, arg.node), buildImportThrow(localName))); + } else if (update.prefix) { + path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, cloneNode(update), path.scope)); + } else { + const ref = scope.generateDeclaredUidIdentifier(localName); + path.replaceWith(sequenceExpression([assignmentExpression("=", cloneNode(ref), cloneNode(update)), buildBindingExportAssignmentExpression(this.metadata, exportedNames, identifier(localName), path.scope), cloneNode(ref)])); + } + } + } + requeueInParent(path); + path.skip(); + }, + AssignmentExpression: { + exit(path) { + const { + scope, + seen, + imported, + exported, + requeueInParent, + buildImportReference + } = this; + if (seen.has(path.node)) return; + seen.add(path.node); + const left = path.get("left"); + if (left.isMemberExpression()) return; + if (left.isIdentifier()) { + const localName = left.node.name; + if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { + return; + } + const exportedNames = exported.get(localName); + const importData = imported.get(localName); + if ((exportedNames == null ? void 0 : exportedNames.length) > 0 || importData) { + _assert(path.node.operator === "=", "Path was not simplified"); + const assignment = path.node; + if (importData) { + assignment.left = buildImportReference(importData, left.node); + assignment.right = sequenceExpression([assignment.right, buildImportThrow(localName)]); + } + path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, assignment, path.scope)); + requeueInParent(path); + } + } else { + const ids = left.getOuterBindingIdentifiers(); + const programScopeIds = Object.keys(ids).filter(localName => scope.getBinding(localName) === path.scope.getBinding(localName)); + const id = programScopeIds.find(localName => imported.has(localName)); + if (id) { + path.node.right = sequenceExpression([path.node.right, buildImportThrow(id)]); + } + const items = []; + programScopeIds.forEach(localName => { + const exportedNames = exported.get(localName) || []; + if (exportedNames.length > 0) { + items.push(buildBindingExportAssignmentExpression(this.metadata, exportedNames, identifier(localName), path.scope)); + } + }); + if (items.length > 0) { + let node = sequenceExpression(items); + if (path.parentPath.isExpressionStatement()) { + node = expressionStatement(node); + node._blockHoist = path.parentPath.node._blockHoist; + } + const statement = path.insertAfter(node)[0]; + requeueInParent(statement); + } + } + } + }, + "ForOfStatement|ForInStatement"(path) { + const { + scope, + node + } = path; + const { + left + } = node; + const { + exported, + imported, + scope: programScope + } = this; + if (!isVariableDeclaration(left)) { + let didTransformExport = false, + importConstViolationName; + const loopBodyScope = path.get("body").scope; + for (const name of Object.keys(getOuterBindingIdentifiers(left))) { + if (programScope.getBinding(name) === scope.getBinding(name)) { + if (exported.has(name)) { + didTransformExport = true; + if (loopBodyScope.hasOwnBinding(name)) { + loopBodyScope.rename(name); + } + } + if (imported.has(name) && !importConstViolationName) { + importConstViolationName = name; + } + } + } + if (!didTransformExport && !importConstViolationName) { + return; + } + path.ensureBlock(); + const bodyPath = path.get("body"); + const newLoopId = scope.generateUidIdentifierBasedOnNode(left); + path.get("left").replaceWith(variableDeclaration("let", [variableDeclarator(cloneNode(newLoopId))])); + scope.registerDeclaration(path.get("left")); + if (didTransformExport) { + bodyPath.unshiftContainer("body", expressionStatement(assignmentExpression("=", left, newLoopId))); + } + if (importConstViolationName) { + bodyPath.unshiftContainer("body", expressionStatement(buildImportThrow(importConstViolationName))); + } + } + } +}; + +//# sourceMappingURL=rewrite-live-references.js.map + + +/***/ }), + +/***/ 55927: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rewriteThis; +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _core = __nccwpck_require__(65258); +const { + numericLiteral, + unaryExpression +} = _core.types; +const rewriteThisVisitor = _core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { + ThisExpression(path) { + path.replaceWith(unaryExpression("void", numericLiteral(0), true)); + } +}]); +function rewriteThis(programPath) { + (0, _core.traverse)(programPath.node, Object.assign({}, rewriteThisVisitor, { + noScope: true + })); } -function assertForXStatement(node, opts) { - assert("ForXStatement", node, opts); + +//# sourceMappingURL=rewrite-this.js.map + + +/***/ }), + +/***/ 2570: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = optimiseCallExpression; +var _t = __nccwpck_require__(68948); +const { + callExpression, + identifier, + isIdentifier, + isSpreadElement, + memberExpression, + optionalCallExpression, + optionalMemberExpression +} = _t; +function optimiseCallExpression(callee, thisNode, args, optional) { + if (args.length === 1 && isSpreadElement(args[0]) && isIdentifier(args[0].argument, { + name: "arguments" + })) { + if (optional) { + return optionalCallExpression(optionalMemberExpression(callee, identifier("apply"), false, true), [thisNode, args[0].argument], false); + } + return callExpression(memberExpression(callee, identifier("apply")), [thisNode, args[0].argument]); + } else { + if (optional) { + return optionalCallExpression(optionalMemberExpression(callee, identifier("call"), false, true), [thisNode, ...args], false); + } + return callExpression(memberExpression(callee, identifier("call")), [thisNode, ...args]); + } } -function assertFunction(node, opts) { - assert("Function", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 36028: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.declare = declare; +exports.declarePreset = void 0; +const apiPolyfills = { + assertVersion: api => range => { + throwVersionError(range, api.version); + } +}; +{ + Object.assign(apiPolyfills, { + targets: () => () => { + return {}; + }, + assumption: () => () => { + return undefined; + } + }); } -function assertFunctionParent(node, opts) { - assert("FunctionParent", node, opts); +function declare(builder) { + return (api, options, dirname) => { + var _clonedApi2; + let clonedApi; + for (const name of Object.keys(apiPolyfills)) { + var _clonedApi; + if (api[name]) continue; + (_clonedApi = clonedApi) != null ? _clonedApi : clonedApi = copyApiObject(api); + clonedApi[name] = apiPolyfills[name](clonedApi); + } + return builder((_clonedApi2 = clonedApi) != null ? _clonedApi2 : api, options || {}, dirname); + }; } -function assertPureish(node, opts) { - assert("Pureish", node, opts); +const declarePreset = declare; +exports.declarePreset = declarePreset; +function copyApiObject(api) { + let proto = null; + if (typeof api.version === "string" && /^7\./.test(api.version)) { + proto = Object.getPrototypeOf(api); + if (proto && (!has(proto, "version") || !has(proto, "transform") || !has(proto, "template") || !has(proto, "types"))) { + proto = null; + } + } + return Object.assign({}, proto, api); } -function assertDeclaration(node, opts) { - assert("Declaration", node, opts); +function has(obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); } -function assertPatternLike(node, opts) { - assert("PatternLike", node, opts); +function throwVersionError(range, version) { + if (typeof range === "number") { + if (!Number.isInteger(range)) { + throw new Error("Expected string or integer value."); + } + range = `^${range}.0.0-0`; + } + if (typeof range !== "string") { + throw new Error("Expected string or integer value."); + } + const limit = Error.stackTraceLimit; + if (typeof limit === "number" && limit < 25) { + Error.stackTraceLimit = 25; + } + let err; + if (version.slice(0, 2) === "7.") { + err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`); + } else { + err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); + } + if (typeof limit === "number") { + Error.stackTraceLimit = limit; + } + throw Object.assign(err, { + code: "BABEL_VERSION_UNSUPPORTED", + version, + range + }); } -function assertLVal(node, opts) { - assert("LVal", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 65322: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +var _helperWrapFunction = __nccwpck_require__(89183); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _core = __nccwpck_require__(65258); +const { + callExpression, + cloneNode, + isIdentifier, + isThisExpression, + yieldExpression +} = _core.types; +const awaitVisitor = _core.traverse.visitors.merge([{ + ArrowFunctionExpression(path) { + path.skip(); + }, + AwaitExpression(path, { + wrapAwait + }) { + const argument = path.get("argument"); + path.replaceWith(yieldExpression(wrapAwait ? callExpression(cloneNode(wrapAwait), [argument.node]) : argument.node)); + } +}, _helperEnvironmentVisitor.default]); +function _default(path, helpers, noNewArrows, ignoreFunctionLength) { + path.traverse(awaitVisitor, { + wrapAwait: helpers.wrapAwait + }); + const isIIFE = checkIsIIFE(path); + path.node.async = false; + path.node.generator = true; + (0, _helperWrapFunction.default)(path, cloneNode(helpers.wrapAsync), noNewArrows, ignoreFunctionLength); + const isProperty = path.isObjectMethod() || path.isClassMethod() || path.parentPath.isObjectProperty() || path.parentPath.isClassProperty(); + if (!isProperty && !isIIFE && path.isExpression()) { + (0, _helperAnnotateAsPure.default)(path); + } + function checkIsIIFE(path) { + if (path.parentPath.isCallExpression({ + callee: path.node + })) { + return true; + } + const { + parentPath + } = path; + if (parentPath.isMemberExpression() && isIdentifier(parentPath.node.property, { + name: "bind" + })) { + const { + parentPath: bindCall + } = parentPath; + return bindCall.isCallExpression() && bindCall.node.arguments.length === 1 && isThisExpression(bindCall.node.arguments[0]) && bindCall.parentPath.isCallExpression({ + callee: bindCall.node + }); + } + return false; + } } -function assertTSEntityName(node, opts) { - assert("TSEntityName", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 43889: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _helperMemberExpressionToFunctions = __nccwpck_require__(83690); +var _helperOptimiseCallExpression = __nccwpck_require__(2570); +var _core = __nccwpck_require__(65258); +const { + assignmentExpression, + booleanLiteral, + callExpression, + cloneNode, + identifier, + memberExpression, + sequenceExpression, + stringLiteral, + thisExpression +} = _core.types; +{ + const ns = __nccwpck_require__(91707); + exports.environmentVisitor = ns.default; + exports.skipAllButComputedKey = ns.skipAllButComputedKey; } -function assertLiteral(node, opts) { - assert("Literal", node, opts); +function getPrototypeOfExpression(objectRef, isStatic, file, isPrivateMethod) { + objectRef = cloneNode(objectRef); + const targetRef = isStatic || isPrivateMethod ? objectRef : memberExpression(objectRef, identifier("prototype")); + return callExpression(file.addHelper("getPrototypeOf"), [targetRef]); } -function assertImmutable(node, opts) { - assert("Immutable", node, opts); +const visitor = _core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { + Super(path, state) { + const { + node, + parentPath + } = path; + if (!parentPath.isMemberExpression({ + object: node + })) return; + state.handle(parentPath); + } +}]); +const unshadowSuperBindingVisitor = _core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { + Scopable(path, { + refName + }) { + const binding = path.scope.getOwnBinding(refName); + if (binding && binding.identifier.name === refName) { + path.scope.rename(refName); + } + } +}]); +const specHandlers = { + memoise(superMember, count) { + const { + scope, + node + } = superMember; + const { + computed, + property + } = node; + if (!computed) { + return; + } + const memo = scope.maybeGenerateMemoised(property); + if (!memo) { + return; + } + this.memoiser.set(property, memo, count); + }, + prop(superMember) { + const { + computed, + property + } = superMember.node; + if (this.memoiser.has(property)) { + return cloneNode(this.memoiser.get(property)); + } + if (computed) { + return cloneNode(property); + } + return stringLiteral(property.name); + }, + get(superMember) { + return this._get(superMember, this._getThisRefs()); + }, + _get(superMember, thisRefs) { + const proto = getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod); + return callExpression(this.file.addHelper("get"), [thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), thisRefs.this]); + }, + _getThisRefs() { + if (!this.isDerivedConstructor) { + return { + this: thisExpression() + }; + } + const thisRef = this.scope.generateDeclaredUidIdentifier("thisSuper"); + return { + memo: assignmentExpression("=", thisRef, thisExpression()), + this: cloneNode(thisRef) + }; + }, + set(superMember, value) { + const thisRefs = this._getThisRefs(); + const proto = getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod); + return callExpression(this.file.addHelper("set"), [thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), value, thisRefs.this, booleanLiteral(superMember.isInStrictMode())]); + }, + destructureSet(superMember) { + throw superMember.buildCodeFrameError(`Destructuring to a super field is not supported yet.`); + }, + call(superMember, args) { + const thisRefs = this._getThisRefs(); + return (0, _helperOptimiseCallExpression.default)(this._get(superMember, thisRefs), cloneNode(thisRefs.this), args, false); + }, + optionalCall(superMember, args) { + const thisRefs = this._getThisRefs(); + return (0, _helperOptimiseCallExpression.default)(this._get(superMember, thisRefs), cloneNode(thisRefs.this), args, true); + }, + delete(superMember) { + if (superMember.node.computed) { + return sequenceExpression([callExpression(this.file.addHelper("toPropertyKey"), [cloneNode(superMember.node.property)]), _core.template.expression.ast` + function () { throw new ReferenceError("'delete super[expr]' is invalid"); }() + `]); + } else { + return _core.template.expression.ast` + function () { throw new ReferenceError("'delete super.prop' is invalid"); }() + `; + } + } +}; +const looseHandlers = Object.assign({}, specHandlers, { + prop(superMember) { + const { + property + } = superMember.node; + if (this.memoiser.has(property)) { + return cloneNode(this.memoiser.get(property)); + } + return cloneNode(property); + }, + get(superMember) { + const { + isStatic, + getSuperRef + } = this; + const { + computed + } = superMember.node; + const prop = this.prop(superMember); + let object; + if (isStatic) { + var _getSuperRef; + object = (_getSuperRef = getSuperRef()) != null ? _getSuperRef : memberExpression(identifier("Function"), identifier("prototype")); + } else { + var _getSuperRef2; + object = memberExpression((_getSuperRef2 = getSuperRef()) != null ? _getSuperRef2 : identifier("Object"), identifier("prototype")); + } + return memberExpression(object, prop, computed); + }, + set(superMember, value) { + const { + computed + } = superMember.node; + const prop = this.prop(superMember); + return assignmentExpression("=", memberExpression(thisExpression(), prop, computed), value); + }, + destructureSet(superMember) { + const { + computed + } = superMember.node; + const prop = this.prop(superMember); + return memberExpression(thisExpression(), prop, computed); + }, + call(superMember, args) { + return (0, _helperOptimiseCallExpression.default)(this.get(superMember), thisExpression(), args, false); + }, + optionalCall(superMember, args) { + return (0, _helperOptimiseCallExpression.default)(this.get(superMember), thisExpression(), args, true); + } +}); +class ReplaceSupers { + constructor(opts) { + var _opts$constantSuper; + const path = opts.methodPath; + this.methodPath = path; + this.isDerivedConstructor = path.isClassMethod({ + kind: "constructor" + }) && !!opts.superRef; + this.isStatic = path.isObjectMethod() || path.node.static || (path.isStaticBlock == null ? void 0 : path.isStaticBlock()); + this.isPrivateMethod = path.isPrivate() && path.isMethod(); + this.file = opts.file; + this.constantSuper = (_opts$constantSuper = opts.constantSuper) != null ? _opts$constantSuper : opts.isLoose; + this.opts = opts; + } + getObjectRef() { + return cloneNode(this.opts.objectRef || this.opts.getObjectRef()); + } + getSuperRef() { + if (this.opts.superRef) return cloneNode(this.opts.superRef); + if (this.opts.getSuperRef) { + return cloneNode(this.opts.getSuperRef()); + } + } + replace() { + if (this.opts.refToPreserve) { + this.methodPath.traverse(unshadowSuperBindingVisitor, { + refName: this.opts.refToPreserve.name + }); + } + const handler = this.constantSuper ? looseHandlers : specHandlers; + (0, _helperMemberExpressionToFunctions.default)(this.methodPath, visitor, Object.assign({ + file: this.file, + scope: this.methodPath.scope, + isDerivedConstructor: this.isDerivedConstructor, + isStatic: this.isStatic, + isPrivateMethod: this.isPrivateMethod, + getObjectRef: this.getObjectRef.bind(this), + getSuperRef: this.getSuperRef.bind(this), + boundGet: handler.get + }, handler)); + } } -function assertUserWhitespacable(node, opts) { - assert("UserWhitespacable", node, opts); +exports["default"] = ReplaceSupers; + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 62469: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = simplifyAccess; +var _t = __nccwpck_require__(68948); +const { + LOGICAL_OPERATORS, + assignmentExpression, + binaryExpression, + cloneNode, + identifier, + logicalExpression, + numericLiteral, + sequenceExpression, + unaryExpression +} = _t; +const simpleAssignmentVisitor = { + AssignmentExpression: { + exit(path) { + const { + scope, + seen, + bindingNames + } = this; + if (path.node.operator === "=") return; + if (seen.has(path.node)) return; + seen.add(path.node); + const left = path.get("left"); + if (!left.isIdentifier()) return; + const localName = left.node.name; + if (!bindingNames.has(localName)) return; + if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { + return; + } + const operator = path.node.operator.slice(0, -1); + if (LOGICAL_OPERATORS.includes(operator)) { + path.replaceWith(logicalExpression(operator, path.node.left, assignmentExpression("=", cloneNode(path.node.left), path.node.right))); + } else { + path.node.right = binaryExpression(operator, cloneNode(path.node.left), path.node.right); + path.node.operator = "="; + } + } + } +}; +{ + simpleAssignmentVisitor.UpdateExpression = { + exit(path) { + if (!this.includeUpdateExpression) return; + const { + scope, + bindingNames + } = this; + const arg = path.get("argument"); + if (!arg.isIdentifier()) return; + const localName = arg.node.name; + if (!bindingNames.has(localName)) return; + if (scope.getBinding(localName) !== path.scope.getBinding(localName)) { + return; + } + if (path.parentPath.isExpressionStatement() && !path.isCompletionRecord()) { + const operator = path.node.operator == "++" ? "+=" : "-="; + path.replaceWith(assignmentExpression(operator, arg.node, numericLiteral(1))); + } else if (path.node.prefix) { + path.replaceWith(assignmentExpression("=", identifier(localName), binaryExpression(path.node.operator[0], unaryExpression("+", arg.node), numericLiteral(1)))); + } else { + const old = path.scope.generateUidIdentifierBasedOnNode(arg.node, "old"); + const varName = old.name; + path.scope.push({ + id: old + }); + const binary = binaryExpression(path.node.operator[0], identifier(varName), numericLiteral(1)); + path.replaceWith(sequenceExpression([assignmentExpression("=", identifier(varName), unaryExpression("+", arg.node)), assignmentExpression("=", cloneNode(arg.node), binary), identifier(varName)])); + } + } + }; } -function assertMethod(node, opts) { - assert("Method", node, opts); +function simplifyAccess(path, bindingNames) { + { + var _arguments$; + path.traverse(simpleAssignmentVisitor, { + scope: path.scope, + bindingNames, + seen: new WeakSet(), + includeUpdateExpression: (_arguments$ = arguments[2]) != null ? _arguments$ : true + }); + } } -function assertObjectMember(node, opts) { - assert("ObjectMember", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 72291: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.isTransparentExprWrapper = isTransparentExprWrapper; +exports.skipTransparentExprWrapperNodes = skipTransparentExprWrapperNodes; +exports.skipTransparentExprWrappers = skipTransparentExprWrappers; +var _t = __nccwpck_require__(68948); +const { + isParenthesizedExpression, + isTSAsExpression, + isTSNonNullExpression, + isTSSatisfiesExpression, + isTSTypeAssertion, + isTypeCastExpression +} = _t; +function isTransparentExprWrapper(node) { + return isTSAsExpression(node) || isTSSatisfiesExpression(node) || isTSTypeAssertion(node) || isTSNonNullExpression(node) || isTypeCastExpression(node) || isParenthesizedExpression(node); } -function assertProperty(node, opts) { - assert("Property", node, opts); +function skipTransparentExprWrappers(path) { + while (isTransparentExprWrapper(path.node)) { + path = path.get("expression"); + } + return path; } -function assertUnaryLike(node, opts) { - assert("UnaryLike", node, opts); +function skipTransparentExprWrapperNodes(node) { + while (isTransparentExprWrapper(node)) { + node = node.expression; + } + return node; } -function assertPattern(node, opts) { - assert("Pattern", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 62605: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = splitExportDeclaration; +var _t = __nccwpck_require__(68948); +const { + cloneNode, + exportNamedDeclaration, + exportSpecifier, + identifier, + variableDeclaration, + variableDeclarator +} = _t; +function splitExportDeclaration(exportDeclaration) { + if (!exportDeclaration.isExportDeclaration() || exportDeclaration.isExportAllDeclaration()) { + throw new Error("Only default and named export declarations can be split."); + } + if (exportDeclaration.isExportDefaultDeclaration()) { + const declaration = exportDeclaration.get("declaration"); + const standaloneDeclaration = declaration.isFunctionDeclaration() || declaration.isClassDeclaration(); + const exportExpr = declaration.isFunctionExpression() || declaration.isClassExpression(); + const scope = declaration.isScope() ? declaration.scope.parent : declaration.scope; + let id = declaration.node.id; + let needBindingRegistration = false; + if (!id) { + needBindingRegistration = true; + id = scope.generateUidIdentifier("default"); + if (standaloneDeclaration || exportExpr) { + declaration.node.id = cloneNode(id); + } + } else if (exportExpr && scope.hasBinding(id.name)) { + needBindingRegistration = true; + id = scope.generateUidIdentifier(id.name); + } + const updatedDeclaration = standaloneDeclaration ? declaration.node : variableDeclaration("var", [variableDeclarator(cloneNode(id), declaration.node)]); + const updatedExportDeclaration = exportNamedDeclaration(null, [exportSpecifier(cloneNode(id), identifier("default"))]); + exportDeclaration.insertAfter(updatedExportDeclaration); + exportDeclaration.replaceWith(updatedDeclaration); + if (needBindingRegistration) { + scope.registerDeclaration(exportDeclaration); + } + return exportDeclaration; + } else if (exportDeclaration.get("specifiers").length > 0) { + throw new Error("It doesn't make sense to split exported specifiers."); + } + const declaration = exportDeclaration.get("declaration"); + const bindingIdentifiers = declaration.getOuterBindingIdentifiers(); + const specifiers = Object.keys(bindingIdentifiers).map(name => { + return exportSpecifier(identifier(name), identifier(name)); + }); + const aliasDeclar = exportNamedDeclaration(null, specifiers); + exportDeclaration.insertAfter(aliasDeclar); + exportDeclaration.replaceWith(declaration.node); + return exportDeclaration; } -function assertClass(node, opts) { - assert("Class", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 5995: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.readCodePoint = readCodePoint; +exports.readInt = readInt; +exports.readStringContents = readStringContents; +var _isDigit = function isDigit(code) { + return code >= 48 && code <= 57; +}; +const forbiddenNumericSeparatorSiblings = { + decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]), + hex: new Set([46, 88, 95, 120]) +}; +const isAllowedNumericSeparatorSibling = { + bin: ch => ch === 48 || ch === 49, + oct: ch => ch >= 48 && ch <= 55, + dec: ch => ch >= 48 && ch <= 57, + hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102 +}; +function readStringContents(type, input, pos, lineStart, curLine, errors) { + const initialPos = pos; + const initialLineStart = lineStart; + const initialCurLine = curLine; + let out = ""; + let firstInvalidLoc = null; + let chunkStart = pos; + const { + length + } = input; + for (;;) { + if (pos >= length) { + errors.unterminated(initialPos, initialLineStart, initialCurLine); + out += input.slice(chunkStart, pos); + break; + } + const ch = input.charCodeAt(pos); + if (isStringEnd(type, ch, input, pos)) { + out += input.slice(chunkStart, pos); + break; + } + if (ch === 92) { + out += input.slice(chunkStart, pos); + const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors); + if (res.ch === null && !firstInvalidLoc) { + firstInvalidLoc = { + pos, + lineStart, + curLine + }; + } else { + out += res.ch; + } + ({ + pos, + lineStart, + curLine + } = res); + chunkStart = pos; + } else if (ch === 8232 || ch === 8233) { + ++pos; + ++curLine; + lineStart = pos; + } else if (ch === 10 || ch === 13) { + if (type === "template") { + out += input.slice(chunkStart, pos) + "\n"; + ++pos; + if (ch === 13 && input.charCodeAt(pos) === 10) { + ++pos; + } + ++curLine; + chunkStart = lineStart = pos; + } else { + errors.unterminated(initialPos, initialLineStart, initialCurLine); + } + } else { + ++pos; + } + } + return { + pos, + str: out, + firstInvalidLoc, + lineStart, + curLine, + containsInvalid: !!firstInvalidLoc + }; } -function assertImportOrExportDeclaration(node, opts) { - assert("ImportOrExportDeclaration", node, opts); +function isStringEnd(type, ch, input, pos) { + if (type === "template") { + return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123; + } + return ch === (type === "double" ? 34 : 39); } -function assertExportDeclaration(node, opts) { - assert("ExportDeclaration", node, opts); +function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) { + const throwOnInvalid = !inTemplate; + pos++; + const res = ch => ({ + pos, + ch, + lineStart, + curLine + }); + const ch = input.charCodeAt(pos++); + switch (ch) { + case 110: + return res("\n"); + case 114: + return res("\r"); + case 120: + { + let code; + ({ + code, + pos + } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors)); + return res(code === null ? null : String.fromCharCode(code)); + } + case 117: + { + let code; + ({ + code, + pos + } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors)); + return res(code === null ? null : String.fromCodePoint(code)); + } + case 116: + return res("\t"); + case 98: + return res("\b"); + case 118: + return res("\u000b"); + case 102: + return res("\f"); + case 13: + if (input.charCodeAt(pos) === 10) { + ++pos; + } + case 10: + lineStart = pos; + ++curLine; + case 8232: + case 8233: + return res(""); + case 56: + case 57: + if (inTemplate) { + return res(null); + } else { + errors.strictNumericEscape(pos - 1, lineStart, curLine); + } + default: + if (ch >= 48 && ch <= 55) { + const startPos = pos - 1; + const match = input.slice(startPos, pos + 2).match(/^[0-7]+/); + let octalStr = match[0]; + let octal = parseInt(octalStr, 8); + if (octal > 255) { + octalStr = octalStr.slice(0, -1); + octal = parseInt(octalStr, 8); + } + pos += octalStr.length - 1; + const next = input.charCodeAt(pos); + if (octalStr !== "0" || next === 56 || next === 57) { + if (inTemplate) { + return res(null); + } else { + errors.strictNumericEscape(startPos, lineStart, curLine); + } + } + return res(String.fromCharCode(octal)); + } + return res(String.fromCharCode(ch)); + } } -function assertModuleSpecifier(node, opts) { - assert("ModuleSpecifier", node, opts); +function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) { + const initialPos = pos; + let n; + ({ + n, + pos + } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid)); + if (n === null) { + if (throwOnInvalid) { + errors.invalidEscapeSequence(initialPos, lineStart, curLine); + } else { + pos = initialPos - 1; + } + } + return { + code: n, + pos + }; } -function assertAccessor(node, opts) { - assert("Accessor", node, opts); +function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) { + const start = pos; + const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct; + const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin; + let invalid = false; + let total = 0; + for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) { + const code = input.charCodeAt(pos); + let val; + if (code === 95 && allowNumSeparator !== "bail") { + const prev = input.charCodeAt(pos - 1); + const next = input.charCodeAt(pos + 1); + if (!allowNumSeparator) { + if (bailOnError) return { + n: null, + pos + }; + errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine); + } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) { + if (bailOnError) return { + n: null, + pos + }; + errors.unexpectedNumericSeparator(pos, lineStart, curLine); + } + ++pos; + continue; + } + if (code >= 97) { + val = code - 97 + 10; + } else if (code >= 65) { + val = code - 65 + 10; + } else if (_isDigit(code)) { + val = code - 48; + } else { + val = Infinity; + } + if (val >= radix) { + if (val <= 9 && bailOnError) { + return { + n: null, + pos + }; + } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) { + val = 0; + } else if (forceLen) { + val = 0; + invalid = true; + } else { + break; + } + } + ++pos; + total = total * radix + val; + } + if (pos === start || len != null && pos - start !== len || invalid) { + return { + n: null, + pos + }; + } + return { + n: total, + pos + }; } -function assertPrivate(node, opts) { - assert("Private", node, opts); +function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) { + const ch = input.charCodeAt(pos); + let code; + if (ch === 123) { + ++pos; + ({ + code, + pos + } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors)); + ++pos; + if (code !== null && code > 0x10ffff) { + if (throwOnInvalid) { + errors.invalidCodePoint(pos, lineStart, curLine); + } else { + return { + code: null, + pos + }; + } + } + } else { + ({ + code, + pos + } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors)); + } + return { + code, + pos + }; } -function assertFlow(node, opts) { - assert("Flow", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 65704: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.isIdentifierChar = isIdentifierChar; +exports.isIdentifierName = isIdentifierName; +exports.isIdentifierStart = isIdentifierStart; +let nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; +let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65"; +const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); +const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); +nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; +const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191]; +const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; +function isInAstralSet(code, set) { + let pos = 0x10000; + for (let i = 0, length = set.length; i < length; i += 2) { + pos += set[i]; + if (pos > code) return false; + pos += set[i + 1]; + if (pos >= code) return true; + } + return false; } -function assertFlowType(node, opts) { - assert("FlowType", node, opts); +function isIdentifierStart(code) { + if (code < 65) return code === 36; + if (code <= 90) return true; + if (code < 97) return code === 95; + if (code <= 122) return true; + if (code <= 0xffff) { + return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)); + } + return isInAstralSet(code, astralIdentifierStartCodes); } -function assertFlowBaseAnnotation(node, opts) { - assert("FlowBaseAnnotation", node, opts); +function isIdentifierChar(code) { + if (code < 48) return code === 36; + if (code < 58) return true; + if (code < 65) return false; + if (code <= 90) return true; + if (code < 97) return code === 95; + if (code <= 122) return true; + if (code <= 0xffff) { + return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)); + } + return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); } -function assertFlowDeclaration(node, opts) { - assert("FlowDeclaration", node, opts); +function isIdentifierName(name) { + let isFirst = true; + for (let i = 0; i < name.length; i++) { + let cp = name.charCodeAt(i); + if ((cp & 0xfc00) === 0xd800 && i + 1 < name.length) { + const trail = name.charCodeAt(++i); + if ((trail & 0xfc00) === 0xdc00) { + cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff); + } + } + if (isFirst) { + isFirst = false; + if (!isIdentifierStart(cp)) { + return false; + } + } else if (!isIdentifierChar(cp)) { + return false; + } + } + return !isFirst; } -function assertFlowPredicate(node, opts) { - assert("FlowPredicate", node, opts); + +//# sourceMappingURL=identifier.js.map + + +/***/ }), + +/***/ 63442: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "isIdentifierChar", ({ + enumerable: true, + get: function () { + return _identifier.isIdentifierChar; + } +})); +Object.defineProperty(exports, "isIdentifierName", ({ + enumerable: true, + get: function () { + return _identifier.isIdentifierName; + } +})); +Object.defineProperty(exports, "isIdentifierStart", ({ + enumerable: true, + get: function () { + return _identifier.isIdentifierStart; + } +})); +Object.defineProperty(exports, "isKeyword", ({ + enumerable: true, + get: function () { + return _keyword.isKeyword; + } +})); +Object.defineProperty(exports, "isReservedWord", ({ + enumerable: true, + get: function () { + return _keyword.isReservedWord; + } +})); +Object.defineProperty(exports, "isStrictBindOnlyReservedWord", ({ + enumerable: true, + get: function () { + return _keyword.isStrictBindOnlyReservedWord; + } +})); +Object.defineProperty(exports, "isStrictBindReservedWord", ({ + enumerable: true, + get: function () { + return _keyword.isStrictBindReservedWord; + } +})); +Object.defineProperty(exports, "isStrictReservedWord", ({ + enumerable: true, + get: function () { + return _keyword.isStrictReservedWord; + } +})); +var _identifier = __nccwpck_require__(65704); +var _keyword = __nccwpck_require__(65810); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 65810: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.isKeyword = isKeyword; +exports.isReservedWord = isReservedWord; +exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord; +exports.isStrictBindReservedWord = isStrictBindReservedWord; +exports.isStrictReservedWord = isStrictReservedWord; +const reservedWords = { + keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], + strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], + strictBind: ["eval", "arguments"] +}; +const keywords = new Set(reservedWords.keyword); +const reservedWordsStrictSet = new Set(reservedWords.strict); +const reservedWordsStrictBindSet = new Set(reservedWords.strictBind); +function isReservedWord(word, inModule) { + return inModule && word === "await" || word === "enum"; } -function assertEnumBody(node, opts) { - assert("EnumBody", node, opts); +function isStrictReservedWord(word, inModule) { + return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); } -function assertEnumMember(node, opts) { - assert("EnumMember", node, opts); +function isStrictBindOnlyReservedWord(word) { + return reservedWordsStrictBindSet.has(word); } -function assertJSX(node, opts) { - assert("JSX", node, opts); +function isStrictBindReservedWord(word, inModule) { + return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); } -function assertMiscellaneous(node, opts) { - assert("Miscellaneous", node, opts); +function isKeyword(word) { + return keywords.has(word); } -function assertTypeScript(node, opts) { - assert("TypeScript", node, opts); + +//# sourceMappingURL=keyword.js.map + + +/***/ }), + +/***/ 40699: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.findSuggestion = findSuggestion; +const { + min +} = Math; +function levenshtein(a, b) { + let t = [], + u = [], + i, + j; + const m = a.length, + n = b.length; + if (!m) { + return n; + } + if (!n) { + return m; + } + for (j = 0; j <= n; j++) { + t[j] = j; + } + for (i = 1; i <= m; i++) { + for (u = [i], j = 1; j <= n; j++) { + u[j] = a[i - 1] === b[j - 1] ? t[j - 1] : min(t[j - 1], t[j], u[j - 1]) + 1; + } + t = u; + } + return u[n]; } -function assertTSTypeElement(node, opts) { - assert("TSTypeElement", node, opts); +function findSuggestion(str, arr) { + const distances = arr.map(el => levenshtein(el, str)); + return arr[distances.indexOf(min(...distances))]; } -function assertTSType(node, opts) { - assert("TSType", node, opts); + +//# sourceMappingURL=find-suggestion.js.map + + +/***/ }), + +/***/ 16122: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "OptionValidator", ({ + enumerable: true, + get: function () { + return _validator.OptionValidator; + } +})); +Object.defineProperty(exports, "findSuggestion", ({ + enumerable: true, + get: function () { + return _findSuggestion.findSuggestion; + } +})); +var _validator = __nccwpck_require__(72446); +var _findSuggestion = __nccwpck_require__(40699); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 72446: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.OptionValidator = void 0; +var _findSuggestion = __nccwpck_require__(40699); +class OptionValidator { + constructor(descriptor) { + this.descriptor = descriptor; + } + validateTopLevelOptions(options, TopLevelOptionShape) { + const validOptionNames = Object.keys(TopLevelOptionShape); + for (const option of Object.keys(options)) { + if (!validOptionNames.includes(option)) { + throw new Error(this.formatMessage(`'${option}' is not a valid top-level option. +- Did you mean '${(0, _findSuggestion.findSuggestion)(option, validOptionNames)}'?`)); + } + } + } + validateBooleanOption(name, value, defaultValue) { + if (value === undefined) { + return defaultValue; + } else { + this.invariant(typeof value === "boolean", `'${name}' option must be a boolean.`); + } + return value; + } + validateStringOption(name, value, defaultValue) { + if (value === undefined) { + return defaultValue; + } else { + this.invariant(typeof value === "string", `'${name}' option must be a string.`); + } + return value; + } + invariant(condition, message) { + if (!condition) { + throw new Error(this.formatMessage(message)); + } + } + formatMessage(message) { + return `${this.descriptor}: ${message}`; + } } -function assertTSBaseType(node, opts) { - assert("TSBaseType", node, opts); +exports.OptionValidator = OptionValidator; + +//# sourceMappingURL=validator.js.map + + +/***/ }), + +/***/ 89183: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = wrapFunction; +var _helperFunctionName = __nccwpck_require__(54915); +var _template = __nccwpck_require__(98063); +var _t = __nccwpck_require__(68948); +const { + blockStatement, + callExpression, + functionExpression, + isAssignmentPattern, + isFunctionDeclaration, + isRestElement, + returnStatement, + isCallExpression +} = _t; +const buildAnonymousExpressionWrapper = _template.default.expression(` + (function () { + var REF = FUNCTION; + return function NAME(PARAMS) { + return REF.apply(this, arguments); + }; + })() +`); +const buildNamedExpressionWrapper = _template.default.expression(` + (function () { + var REF = FUNCTION; + function NAME(PARAMS) { + return REF.apply(this, arguments); + } + return NAME; + })() +`); +const buildDeclarationWrapper = _template.default.statements(` + function NAME(PARAMS) { return REF.apply(this, arguments); } + function REF() { + REF = FUNCTION; + return REF.apply(this, arguments); + } +`); +function classOrObjectMethod(path, callId) { + const node = path.node; + const body = node.body; + const container = functionExpression(null, [], blockStatement(body.body), true); + body.body = [returnStatement(callExpression(callExpression(callId, [container]), []))]; + node.async = false; + node.generator = false; + path.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment(); } -function assertNumberLiteral(node, opts) { - (0, _deprecationWarning.default)("assertNumberLiteral", "assertNumericLiteral"); - assert("NumberLiteral", node, opts); +function plainFunction(inPath, callId, noNewArrows, ignoreFunctionLength) { + let path = inPath; + let node; + let functionId = null; + const nodeParams = inPath.node.params; + if (path.isArrowFunctionExpression()) { + { + var _path$arrowFunctionTo; + path = (_path$arrowFunctionTo = path.arrowFunctionToExpression({ + noNewArrows + })) != null ? _path$arrowFunctionTo : path; + } + node = path.node; + } else { + node = path.node; + } + const isDeclaration = isFunctionDeclaration(node); + let built = node; + if (!isCallExpression(node)) { + functionId = node.id; + node.id = null; + node.type = "FunctionExpression"; + built = callExpression(callId, [node]); + } + const params = []; + for (const param of nodeParams) { + if (isAssignmentPattern(param) || isRestElement(param)) { + break; + } + params.push(path.scope.generateUidIdentifier("x")); + } + const wrapperArgs = { + NAME: functionId || null, + REF: path.scope.generateUidIdentifier(functionId ? functionId.name : "ref"), + FUNCTION: built, + PARAMS: params + }; + if (isDeclaration) { + const container = buildDeclarationWrapper(wrapperArgs); + path.replaceWith(container[0]); + path.insertAfter(container[1]); + } else { + let container; + if (functionId) { + container = buildNamedExpressionWrapper(wrapperArgs); + } else { + container = buildAnonymousExpressionWrapper(wrapperArgs); + const returnFn = container.callee.body.body[1].argument; + (0, _helperFunctionName.default)({ + node: returnFn, + parent: path.parent, + scope: path.scope + }); + functionId = returnFn.id; + } + if (functionId || !ignoreFunctionLength && params.length) { + path.replaceWith(container); + } else { + path.replaceWith(built); + } + } } -function assertRegexLiteral(node, opts) { - (0, _deprecationWarning.default)("assertRegexLiteral", "assertRegExpLiteral"); - assert("RegexLiteral", node, opts); +function wrapFunction(path, callId, noNewArrows = true, ignoreFunctionLength = false) { + if (path.isMethod()) { + classOrObjectMethod(path, callId); + } else { + plainFunction(path, callId, noNewArrows, ignoreFunctionLength); + } } -function assertRestProperty(node, opts) { - (0, _deprecationWarning.default)("assertRestProperty", "assertRestElement"); - assert("RestProperty", node, opts); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 70610: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _template = __nccwpck_require__(98063); +function helper(minVersion, source) { + return Object.freeze({ + minVersion, + ast: () => _template.default.program.ast(source, { + preserveComments: true + }) + }); } -function assertSpreadProperty(node, opts) { - (0, _deprecationWarning.default)("assertSpreadProperty", "assertSpreadElement"); - assert("SpreadProperty", node, opts); +var _default = exports["default"] = Object.freeze({ + AsyncGenerator: helper("7.0.0-beta.0", 'import OverloadYield from"OverloadYield";export default function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};'), + OverloadYield: helper("7.18.14", "export default function _OverloadYield(t,e){this.v=t,this.k=e}"), + applyDecs: helper("7.17.8", 'import setFunctionName from"setFunctionName";import toPropertyKey from"toPropertyKey";function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=g[j],E=r?g[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","field","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(w)v=D.call(E,e,O);else{var k,F;O.static=l,O.private=f,f||!p&&2!==o?2===o?k=function(e){return m(e),S.value}:((o<2||3===o)&&(k=i(S,"get",f&&m)),(o<2||4===o)&&(F=i(S,"set",f&&m))):(k=function(e){return e[n]},p&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),v=D.call(E,d?{get:S.get,set:S.set}:S[P],O),d){if("object"==typeof v&&v)(y=s(v.get,"accessor.get"))&&(S.get=y),(y=s(v.set,"accessor.set"))&&(S.set=y),(y=s(v.init,"accessor.init"))&&A.push(y);else if(void 0!==v)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(v,(p?"field":"method")+" decorators","return")&&(p?A.push(v):S[P]=v)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=A.length-1;r>=0;r--)t=A[r].call(e,t);return t})),p||w||(f?d?u.push(i(S,"get"),i(S,"set")):u.push(2===o?S[P]:i.call.bind(S[P])):Object.defineProperty(e,n,S)),v}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(s(applyDec(e,[r],n,e.name,5,f,t),"class decorators","return")||e,f),c.bind(null,t,e)]}}}'), + asyncGeneratorDelegate: helper("7.0.0-beta.0", 'import OverloadYield from"OverloadYield";export default function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise((function(n){n(t[e](r))})),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}'), + asyncIterator: helper("7.15.9", 'export default function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then((function(r){return{value:r,done:n}}))}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}'), + awaitAsyncGenerator: helper("7.0.0-beta.0", 'import OverloadYield from"OverloadYield";export default function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}'), + checkInRHS: helper("7.20.5", 'export default function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of \'in\' should be an object, got "+(null!==e?typeof e:"null"));return e}'), + defineAccessor: helper("7.20.7", "export default function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty(r,n,c)}"), + dispose: helper("7.22.0", 'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=r,this.error=e,this.stack=(new Error).stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}export default function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(r,e):r,s=!0,next()}return next()}'), + importDeferProxy: helper("7.23.0", "export default function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=function(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValue(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:constValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:constValue(!1)})}"), + interopRequireWildcard: helper("7.14.0", 'function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}export default function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}'), + iterableToArrayLimit: helper("7.0.0-beta.0", 'export default function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}'), + iterableToArrayLimitLoose: helper("7.0.0-beta.0", 'export default function _iterableToArrayLimitLoose(e,r){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var o,l=[];for(t=t.call(e);e.length1){for(var t=new Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}'), + setFunctionName: helper("7.23.6", 'export default function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}'), + toPrimitive: helper("7.1.5", 'export default function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}'), + toPropertyKey: helper("7.1.5", 'import toPrimitive from"toPrimitive";export default function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:String(i)}'), + typeof: helper("7.0.0-beta.0", 'export default function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}'), + using: helper("7.22.0", 'export default function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}'), + wrapRegExp: helper("7.19.0", 'import setPrototypeOf from"setPrototypeOf";import inherits from"inherits";export default function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=new RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}') +}); + +//# sourceMappingURL=helpers-generated.js.map + + +/***/ }), + +/***/ 14466: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _template = __nccwpck_require__(98063); +var _helpersGenerated = __nccwpck_require__(70610); +const helpers = Object.assign({ + __proto__: null +}, _helpersGenerated.default); +var _default = exports["default"] = helpers; +const helper = minVersion => tpl => ({ + minVersion, + ast: () => _template.default.program.ast(tpl) +}); +{ + helpers.AwaitValue = helper("7.0.0-beta.0")` + export default function _AwaitValue(value) { + this.wrapped = value; + } + `; } -function assertModuleDeclaration(node, opts) { - (0, _deprecationWarning.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"); - assert("ModuleDeclaration", node, opts); +helpers.wrapAsyncGenerator = helper("7.0.0-beta.0")` + import AsyncGenerator from "AsyncGenerator"; + + export default function _wrapAsyncGenerator(fn) { + return function () { + return new AsyncGenerator(fn.apply(this, arguments)); + }; + } +`; +helpers.asyncToGenerator = helper("7.0.0-beta.0")` + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } + } + + export default function _asyncToGenerator(fn) { + return function () { + var self = this, args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; + } +`; +helpers.classCallCheck = helper("7.0.0-beta.0")` + export default function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } +`; +helpers.createClass = helper("7.0.0-beta.0")` + import toPropertyKey from "toPropertyKey"; + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i ++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); + } + } + + export default function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { writable: false }); + return Constructor; + } +`; +helpers.defineEnumerableProperties = helper("7.0.0-beta.0")` + export default function _defineEnumerableProperties(obj, descs) { + for (var key in descs) { + var desc = descs[key]; + desc.configurable = desc.enumerable = true; + if ("value" in desc) desc.writable = true; + Object.defineProperty(obj, key, desc); + } + + // Symbols are not enumerated over by for-in loops. If native + // Symbols are available, fetch all of the descs object's own + // symbol properties and define them on our target object too. + if (Object.getOwnPropertySymbols) { + var objectSymbols = Object.getOwnPropertySymbols(descs); + for (var i = 0; i < objectSymbols.length; i++) { + var sym = objectSymbols[i]; + var desc = descs[sym]; + desc.configurable = desc.enumerable = true; + if ("value" in desc) desc.writable = true; + Object.defineProperty(obj, sym, desc); + } + } + return obj; + } +`; +helpers.defaults = helper("7.0.0-beta.0")` + export default function _defaults(obj, defaults) { + var keys = Object.getOwnPropertyNames(defaults); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = Object.getOwnPropertyDescriptor(defaults, key); + if (value && value.configurable && obj[key] === undefined) { + Object.defineProperty(obj, key, value); + } + } + return obj; + } +`; +helpers.defineProperty = helper("7.0.0-beta.0")` + import toPropertyKey from "toPropertyKey"; + export default function _defineProperty(obj, key, value) { + key = toPropertyKey(key); + // Shortcircuit the slow defineProperty path when possible. + // We are trying to avoid issues where setters defined on the + // prototype cause side effects under the fast path of simple + // assignment. By checking for existence of the property with + // the in operator, we can optimize most of this overhead away. + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } +`; +helpers.extends = helper("7.0.0-beta.0")` + export default function _extends() { + _extends = Object.assign ? Object.assign.bind() : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + return target; + }; + + return _extends.apply(this, arguments); + } +`; +{ + helpers.objectSpread = helper("7.0.0-beta.0")` + import defineProperty from "defineProperty"; + + export default function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = (arguments[i] != null) ? Object(arguments[i]) : {}; + var ownKeys = Object.keys(source); + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + ownKeys.forEach(function(key) { + defineProperty(target, key, source[key]); + }); + } + return target; + } + `; } +helpers.inherits = helper("7.0.0-beta.0")` + import setPrototypeOf from "setPrototypeOf"; + + export default function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + // We can't use defineProperty to set the prototype in a single step because it + // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056 + // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334 + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + Object.defineProperty(subClass, "prototype", { writable: false }); + if (superClass) setPrototypeOf(subClass, superClass); + } +`; +helpers.inheritsLoose = helper("7.0.0-beta.0")` + import setPrototypeOf from "setPrototypeOf"; + + export default function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + setPrototypeOf(subClass, superClass); + } +`; +helpers.getPrototypeOf = helper("7.0.0-beta.0")` + export default function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } +`; +helpers.setPrototypeOf = helper("7.0.0-beta.0")` + export default function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } +`; +helpers.isNativeReflectConstruct = helper("7.9.0")` + export default function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + + // core-js@3 + if (Reflect.construct.sham) return false; + + // Proxy can't be polyfilled. Every browser implemented + // proxies before or at the same time as Reflect.construct, + // so if they support Proxy they also support Reflect.construct. + if (typeof Proxy === "function") return true; + + // Since Reflect.construct can't be properly polyfilled, some + // implementations (e.g. core-js@2) don't set the correct internal slots. + // Those polyfills don't allow us to subclass built-ins, so we need to + // use our fallback implementation. + try { + // If the internal slots aren't set, this throws an error similar to + // TypeError: this is not a Boolean object. + + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); + return true; + } catch (e) { + return false; + } + } +`; +helpers.construct = helper("7.0.0-beta.0")` + import setPrototypeOf from "setPrototypeOf"; + import isNativeReflectConstruct from "isNativeReflectConstruct"; + + export default function _construct(Parent, args, Class) { + if (isNativeReflectConstruct()) { + _construct = Reflect.construct.bind(); + } else { + // NOTE: If Parent !== Class, the correct __proto__ is set *after* + // calling the constructor. + _construct = function _construct(Parent, args, Class) { + var a = [null]; + a.push.apply(a, args); + var Constructor = Function.bind.apply(Parent, a); + var instance = new Constructor(); + if (Class) setPrototypeOf(instance, Class.prototype); + return instance; + }; + } + // Avoid issues with Class being present but undefined when it wasn't + // present in the original call. + return _construct.apply(null, arguments); + } +`; +helpers.isNativeFunction = helper("7.0.0-beta.0")` + export default function _isNativeFunction(fn) { + // Note: This function returns "true" for core-js functions. + try { + return Function.toString.call(fn).indexOf("[native code]") !== -1; + } catch (e) { + // Firefox 31 throws when "toString" is applied to an HTMLElement + return typeof fn === "function"; + } + } +`; +helpers.wrapNativeSuper = helper("7.0.0-beta.0")` + import getPrototypeOf from "getPrototypeOf"; + import setPrototypeOf from "setPrototypeOf"; + import isNativeFunction from "isNativeFunction"; + import construct from "construct"; + + export default function _wrapNativeSuper(Class) { + var _cache = typeof Map === "function" ? new Map() : undefined; + + _wrapNativeSuper = function _wrapNativeSuper(Class) { + if (Class === null || !isNativeFunction(Class)) return Class; + if (typeof Class !== "function") { + throw new TypeError("Super expression must either be null or a function"); + } + if (typeof _cache !== "undefined") { + if (_cache.has(Class)) return _cache.get(Class); + _cache.set(Class, Wrapper); + } + function Wrapper() { + return construct(Class, arguments, getPrototypeOf(this).constructor) + } + Wrapper.prototype = Object.create(Class.prototype, { + constructor: { + value: Wrapper, + enumerable: false, + writable: true, + configurable: true, + } + }); -//# sourceMappingURL=index.js.map + return setPrototypeOf(Wrapper, Class); + } + return _wrapNativeSuper(Class) + } +`; +helpers.instanceof = helper("7.0.0-beta.0")` + export default function _instanceof(left, right) { + if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { + return !!right[Symbol.hasInstance](left); + } else { + return left instanceof right; + } + } +`; +helpers.interopRequireDefault = helper("7.0.0-beta.0")` + export default function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } +`; +helpers.newArrowCheck = helper("7.0.0-beta.0")` + export default function _newArrowCheck(innerThis, boundThis) { + if (innerThis !== boundThis) { + throw new TypeError("Cannot instantiate an arrow function"); + } + } +`; +helpers.objectDestructuringEmpty = helper("7.0.0-beta.0")` + export default function _objectDestructuringEmpty(obj) { + if (obj == null) throw new TypeError("Cannot destructure " + obj); + } +`; +helpers.objectWithoutPropertiesLoose = helper("7.0.0-beta.0")` + export default function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; -/***/ }), + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; -/***/ 97275: -/***/ (function() { + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + return target; + } +`; +helpers.objectWithoutProperties = helper("7.0.0-beta.0")` + import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose"; + export default function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; -//# sourceMappingURL=index.js.map + var target = objectWithoutPropertiesLoose(source, excluded); + var key, i; + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } -/***/ }), + return target; + } +`; +helpers.assertThisInitialized = helper("7.0.0-beta.0")` + export default function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + return self; + } +`; +helpers.possibleConstructorReturn = helper("7.0.0-beta.0")` + import assertThisInitialized from "assertThisInitialized"; -/***/ 79441: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + export default function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } -"use strict"; + return assertThisInitialized(self); + } +`; +helpers.createSuper = helper("7.9.0")` + import getPrototypeOf from "getPrototypeOf"; + import isNativeReflectConstruct from "isNativeReflectConstruct"; + import possibleConstructorReturn from "possibleConstructorReturn"; + export default function _createSuper(Derived) { + var hasNativeReflectConstruct = isNativeReflectConstruct(); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = createFlowUnionType; -var _generated = __nccwpck_require__(54230); -var _removeTypeDuplicates = __nccwpck_require__(22908); -function createFlowUnionType(types) { - const flattened = (0, _removeTypeDuplicates.default)(types); - if (flattened.length === 1) { - return flattened[0]; - } else { - return (0, _generated.unionTypeAnnotation)(flattened); + return function _createSuperInternal() { + var Super = getPrototypeOf(Derived), result; + if (hasNativeReflectConstruct) { + // NOTE: This doesn't work if this.__proto__.constructor has been modified. + var NewTarget = getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return possibleConstructorReturn(this, result); + } } -} + `; +helpers.superPropBase = helper("7.0.0-beta.0")` + import getPrototypeOf from "getPrototypeOf"; -//# sourceMappingURL=createFlowUnionType.js.map + export default function _superPropBase(object, property) { + // Yes, this throws if object is null to being with, that's on purpose. + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = getPrototypeOf(object); + if (object === null) break; + } + return object; + } +`; +helpers.get = helper("7.0.0-beta.0")` + import superPropBase from "superPropBase"; + export default function _get() { + if (typeof Reflect !== "undefined" && Reflect.get) { + _get = Reflect.get.bind(); + } else { + _get = function _get(target, property, receiver) { + var base = superPropBase(target, property); -/***/ }), + if (!base) return; -/***/ 61494: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + var desc = Object.getOwnPropertyDescriptor(base, property); + if (desc.get) { + // STEP 3. If receiver is not present, then set receiver to target. + return desc.get.call(arguments.length < 3 ? target : receiver); + } -"use strict"; + return desc.value; + }; + } + return _get.apply(this, arguments); + } +`; +helpers.set = helper("7.0.0-beta.0")` + import superPropBase from "superPropBase"; + import defineProperty from "defineProperty"; + + function set(target, property, value, receiver) { + if (typeof Reflect !== "undefined" && Reflect.set) { + set = Reflect.set; + } else { + set = function set(target, property, value, receiver) { + var base = superPropBase(target, property); + var desc; + if (base) { + desc = Object.getOwnPropertyDescriptor(base, property); + if (desc.set) { + desc.set.call(receiver, value); + return true; + } else if (!desc.writable) { + // Both getter and non-writable fall into this. + return false; + } + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _generated = __nccwpck_require__(54230); -var _default = createTypeAnnotationBasedOnTypeof; -exports["default"] = _default; -function createTypeAnnotationBasedOnTypeof(type) { - switch (type) { - case "string": - return (0, _generated.stringTypeAnnotation)(); - case "number": - return (0, _generated.numberTypeAnnotation)(); - case "undefined": - return (0, _generated.voidTypeAnnotation)(); - case "boolean": - return (0, _generated.booleanTypeAnnotation)(); - case "function": - return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Function")); - case "object": - return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Object")); - case "symbol": - return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Symbol")); - case "bigint": - return (0, _generated.anyTypeAnnotation)(); + // Without a super that defines the property, spec boils down to + // "define on receiver" for some reason. + desc = Object.getOwnPropertyDescriptor(receiver, property); + if (desc) { + if (!desc.writable) { + // Setter, getter, and non-writable fall into this. + return false; + } + + desc.value = value; + Object.defineProperty(receiver, property, desc); + } else { + // Avoid setters that may be defined on Sub's prototype, but not on + // the instance. + defineProperty(receiver, property, value); + } + + return true; + }; + } + + return set(target, property, value, receiver); } - throw new Error("Invalid typeof value: " + type); -} -//# sourceMappingURL=createTypeAnnotationBasedOnTypeof.js.map + export default function _set(target, property, value, receiver, isStrict) { + var s = set(target, property, value, receiver || target); + if (!s && isStrict) { + throw new TypeError('failed to set property'); + } + + return value; + } +`; +helpers.taggedTemplateLiteral = helper("7.0.0-beta.0")` + export default function _taggedTemplateLiteral(strings, raw) { + if (!raw) { raw = strings.slice(0); } + return Object.freeze(Object.defineProperties(strings, { + raw: { value: Object.freeze(raw) } + })); + } +`; +helpers.taggedTemplateLiteralLoose = helper("7.0.0-beta.0")` + export default function _taggedTemplateLiteralLoose(strings, raw) { + if (!raw) { raw = strings.slice(0); } + strings.raw = raw; + return strings; + } +`; +helpers.readOnlyError = helper("7.0.0-beta.0")` + export default function _readOnlyError(name) { + throw new TypeError("\\"" + name + "\\" is read-only"); + } +`; +helpers.writeOnlyError = helper("7.12.13")` + export default function _writeOnlyError(name) { + throw new TypeError("\\"" + name + "\\" is write-only"); + } +`; +helpers.classNameTDZError = helper("7.0.0-beta.0")` + export default function _classNameTDZError(name) { + throw new ReferenceError("Class \\"" + name + "\\" cannot be referenced in computed property keys."); + } +`; +helpers.temporalUndefined = helper("7.0.0-beta.0")` + // This function isn't mean to be called, but to be used as a reference. + // We can't use a normal object because it isn't hoisted. + export default function _temporalUndefined() {} +`; +helpers.tdz = helper("7.5.5")` + export default function _tdzError(name) { + throw new ReferenceError(name + " is not defined - temporal dead zone"); + } +`; +helpers.temporalRef = helper("7.0.0-beta.0")` + import undef from "temporalUndefined"; + import err from "tdz"; + + export default function _temporalRef(val, name) { + return val === undef ? err(name) : val; + } +`; +helpers.slicedToArray = helper("7.0.0-beta.0")` + import arrayWithHoles from "arrayWithHoles"; + import iterableToArrayLimit from "iterableToArrayLimit"; + import unsupportedIterableToArray from "unsupportedIterableToArray"; + import nonIterableRest from "nonIterableRest"; + + export default function _slicedToArray(arr, i) { + return ( + arrayWithHoles(arr) || + iterableToArrayLimit(arr, i) || + unsupportedIterableToArray(arr, i) || + nonIterableRest() + ); + } +`; +helpers.slicedToArrayLoose = helper("7.0.0-beta.0")` + import arrayWithHoles from "arrayWithHoles"; + import iterableToArrayLimitLoose from "iterableToArrayLimitLoose"; + import unsupportedIterableToArray from "unsupportedIterableToArray"; + import nonIterableRest from "nonIterableRest"; + + export default function _slicedToArrayLoose(arr, i) { + return ( + arrayWithHoles(arr) || + iterableToArrayLimitLoose(arr, i) || + unsupportedIterableToArray(arr, i) || + nonIterableRest() + ); + } +`; +helpers.toArray = helper("7.0.0-beta.0")` + import arrayWithHoles from "arrayWithHoles"; + import iterableToArray from "iterableToArray"; + import unsupportedIterableToArray from "unsupportedIterableToArray"; + import nonIterableRest from "nonIterableRest"; + + export default function _toArray(arr) { + return ( + arrayWithHoles(arr) || + iterableToArray(arr) || + unsupportedIterableToArray(arr) || + nonIterableRest() + ); + } +`; +helpers.toConsumableArray = helper("7.0.0-beta.0")` + import arrayWithoutHoles from "arrayWithoutHoles"; + import iterableToArray from "iterableToArray"; + import unsupportedIterableToArray from "unsupportedIterableToArray"; + import nonIterableSpread from "nonIterableSpread"; + + export default function _toConsumableArray(arr) { + return ( + arrayWithoutHoles(arr) || + iterableToArray(arr) || + unsupportedIterableToArray(arr) || + nonIterableSpread() + ); + } +`; +helpers.arrayWithoutHoles = helper("7.0.0-beta.0")` + import arrayLikeToArray from "arrayLikeToArray"; + + export default function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return arrayLikeToArray(arr); + } +`; +helpers.arrayWithHoles = helper("7.0.0-beta.0")` + export default function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } +`; +helpers.maybeArrayLike = helper("7.9.0")` + import arrayLikeToArray from "arrayLikeToArray"; + + export default function _maybeArrayLike(next, arr, i) { + if (arr && !Array.isArray(arr) && typeof arr.length === "number") { + var len = arr.length; + return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); + } + return next(arr, i); + } +`; +helpers.iterableToArray = helper("7.0.0-beta.0")` + export default function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); + } +`; +helpers.unsupportedIterableToArray = helper("7.9.0")` + import arrayLikeToArray from "arrayLikeToArray"; + + export default function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return arrayLikeToArray(o, minLen); + } +`; +helpers.arrayLikeToArray = helper("7.9.0")` + export default function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } +`; +helpers.nonIterableSpread = helper("7.0.0-beta.0")` + export default function _nonIterableSpread() { + throw new TypeError( + "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." + ); + } +`; +helpers.nonIterableRest = helper("7.0.0-beta.0")` + export default function _nonIterableRest() { + throw new TypeError( + "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." + ); + } +`; +helpers.createForOfIteratorHelper = helper("7.9.0")` + import unsupportedIterableToArray from "unsupportedIterableToArray"; + + // s: start (create the iterator) + // n: next + // e: error (called whenever something throws) + // f: finish (always called at the end) + + export default function _createForOfIteratorHelper(o, allowArrayLike) { + var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + + if (!it) { + // Fallback for engines without symbol support + if ( + Array.isArray(o) || + (it = unsupportedIterableToArray(o)) || + (allowArrayLike && o && typeof o.length === "number") + ) { + if (it) o = it; + var i = 0; + var F = function(){}; + return { + s: F, + n: function() { + if (i >= o.length) return { done: true }; + return { done: false, value: o[i++] }; + }, + e: function(e) { throw e; }, + f: F, + }; + } + + throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + + var normalCompletion = true, didErr = false, err; + + return { + s: function() { + it = it.call(o); + }, + n: function() { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function(e) { + didErr = true; + err = e; + }, + f: function() { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; + } +`; +helpers.createForOfIteratorHelperLoose = helper("7.9.0")` + import unsupportedIterableToArray from "unsupportedIterableToArray"; + + export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + + if (it) return (it = it.call(o)).next.bind(it); + + // Fallback for engines without symbol support + if ( + Array.isArray(o) || + (it = unsupportedIterableToArray(o)) || + (allowArrayLike && o && typeof o.length === "number") + ) { + if (it) o = it; + var i = 0; + return function() { + if (i >= o.length) return { done: true }; + return { done: false, value: o[i++] }; + } + } + + throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } +`; +helpers.skipFirstGeneratorNext = helper("7.0.0-beta.0")` + export default function _skipFirstGeneratorNext(fn) { + return function () { + var it = fn.apply(this, arguments); + it.next(); + return it; + } + } +`; +helpers.initializerWarningHelper = helper("7.0.0-beta.0")` + export default function _initializerWarningHelper(descriptor, context){ + throw new Error( + 'Decorating class property failed. Please ensure that ' + + 'transform-class-properties is enabled and runs after the decorators transform.' + ); + } +`; +helpers.initializerDefineProperty = helper("7.0.0-beta.0")` + export default function _initializerDefineProperty(target, property, descriptor, context){ + if (!descriptor) return; + Object.defineProperty(target, property, { + enumerable: descriptor.enumerable, + configurable: descriptor.configurable, + writable: descriptor.writable, + value: descriptor.initializer ? descriptor.initializer.call(context) : void 0, + }); + } +`; +helpers.applyDecoratedDescriptor = helper("7.0.0-beta.0")` + export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){ + var desc = {}; + Object.keys(descriptor).forEach(function(key){ + desc[key] = descriptor[key]; + }); + desc.enumerable = !!desc.enumerable; + desc.configurable = !!desc.configurable; + if ('value' in desc || desc.initializer){ + desc.writable = true; + } -/***/ }), + desc = decorators.slice().reverse().reduce(function(desc, decorator){ + return decorator(target, property, desc) || desc; + }, desc); -/***/ 54230: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + if (context && desc.initializer !== void 0){ + desc.value = desc.initializer ? desc.initializer.call(context) : void 0; + desc.initializer = undefined; + } -"use strict"; + if (desc.initializer === void 0){ + Object.defineProperty(target, property, desc); + desc = null; + } + return desc; + } +`; +helpers.classPrivateFieldLooseKey = helper("7.0.0-beta.0")` + var id = 0; + export default function _classPrivateFieldKey(name) { + return "__private_" + (id++) + "_" + name; + } +`; +helpers.classPrivateFieldLooseBase = helper("7.0.0-beta.0")` + export default function _classPrivateFieldBase(receiver, privateKey) { + if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { + throw new TypeError("attempted to use private field on non-instance"); + } + return receiver; + } +`; +helpers.classPrivateFieldGet = helper("7.0.0-beta.0")` + import classApplyDescriptorGet from "classApplyDescriptorGet"; + import classExtractFieldDescriptor from "classExtractFieldDescriptor"; + export default function _classPrivateFieldGet(receiver, privateMap) { + var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); + return classApplyDescriptorGet(receiver, descriptor); + } +`; +helpers.classPrivateFieldSet = helper("7.0.0-beta.0")` + import classApplyDescriptorSet from "classApplyDescriptorSet"; + import classExtractFieldDescriptor from "classExtractFieldDescriptor"; + export default function _classPrivateFieldSet(receiver, privateMap, value) { + var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); + classApplyDescriptorSet(receiver, descriptor, value); + return value; + } +`; +helpers.classPrivateFieldDestructureSet = helper("7.4.4")` + import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; + import classExtractFieldDescriptor from "classExtractFieldDescriptor"; + export default function _classPrivateFieldDestructureSet(receiver, privateMap) { + var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); + return classApplyDescriptorDestructureSet(receiver, descriptor); + } +`; +helpers.classExtractFieldDescriptor = helper("7.13.10")` + export default function _classExtractFieldDescriptor(receiver, privateMap, action) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to " + action + " private field on non-instance"); + } + return privateMap.get(receiver); + } +`; +helpers.classStaticPrivateFieldSpecGet = helper("7.0.2")` + import classApplyDescriptorGet from "classApplyDescriptorGet"; + import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; + import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; + export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { + classCheckPrivateStaticAccess(receiver, classConstructor); + classCheckPrivateStaticFieldDescriptor(descriptor, "get"); + return classApplyDescriptorGet(receiver, descriptor); + } +`; +helpers.classStaticPrivateFieldSpecSet = helper("7.0.2")` + import classApplyDescriptorSet from "classApplyDescriptorSet"; + import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; + import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; + export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { + classCheckPrivateStaticAccess(receiver, classConstructor); + classCheckPrivateStaticFieldDescriptor(descriptor, "set"); + classApplyDescriptorSet(receiver, descriptor, value); + return value; + } +`; +helpers.classStaticPrivateMethodGet = helper("7.3.2")` + import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; + export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { + classCheckPrivateStaticAccess(receiver, classConstructor); + return method; + } +`; +helpers.classStaticPrivateMethodSet = helper("7.3.2")` + export default function _classStaticPrivateMethodSet() { + throw new TypeError("attempted to set read only static private field"); + } +`; +helpers.classApplyDescriptorGet = helper("7.13.10")` + export default function _classApplyDescriptorGet(receiver, descriptor) { + if (descriptor.get) { + return descriptor.get.call(receiver); + } + return descriptor.value; + } +`; +helpers.classApplyDescriptorSet = helper("7.13.10")` + export default function _classApplyDescriptorSet(receiver, descriptor, value) { + if (descriptor.set) { + descriptor.set.call(receiver, value); + } else { + if (!descriptor.writable) { + // This should only throw in strict mode, but class bodies are + // always strict and private fields can only be used inside + // class bodies. + throw new TypeError("attempted to set read only private field"); + } + descriptor.value = value; + } + } +`; +helpers.classApplyDescriptorDestructureSet = helper("7.13.10")` + export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { + if (descriptor.set) { + if (!("__destrObj" in descriptor)) { + descriptor.__destrObj = { + set value(v) { + descriptor.set.call(receiver, v) + }, + }; + } + return descriptor.__destrObj; + } else { + if (!descriptor.writable) { + // This should only throw in strict mode, but class bodies are + // always strict and private fields can only be used inside + // class bodies. + throw new TypeError("attempted to set read only private field"); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.anyTypeAnnotation = anyTypeAnnotation; -exports.argumentPlaceholder = argumentPlaceholder; -exports.arrayExpression = arrayExpression; -exports.arrayPattern = arrayPattern; -exports.arrayTypeAnnotation = arrayTypeAnnotation; -exports.arrowFunctionExpression = arrowFunctionExpression; -exports.assignmentExpression = assignmentExpression; -exports.assignmentPattern = assignmentPattern; -exports.awaitExpression = awaitExpression; -exports.bigIntLiteral = bigIntLiteral; -exports.binaryExpression = binaryExpression; -exports.bindExpression = bindExpression; -exports.blockStatement = blockStatement; -exports.booleanLiteral = booleanLiteral; -exports.booleanLiteralTypeAnnotation = booleanLiteralTypeAnnotation; -exports.booleanTypeAnnotation = booleanTypeAnnotation; -exports.breakStatement = breakStatement; -exports.callExpression = callExpression; -exports.catchClause = catchClause; -exports.classAccessorProperty = classAccessorProperty; -exports.classBody = classBody; -exports.classDeclaration = classDeclaration; -exports.classExpression = classExpression; -exports.classImplements = classImplements; -exports.classMethod = classMethod; -exports.classPrivateMethod = classPrivateMethod; -exports.classPrivateProperty = classPrivateProperty; -exports.classProperty = classProperty; -exports.conditionalExpression = conditionalExpression; -exports.continueStatement = continueStatement; -exports.debuggerStatement = debuggerStatement; -exports.decimalLiteral = decimalLiteral; -exports.declareClass = declareClass; -exports.declareExportAllDeclaration = declareExportAllDeclaration; -exports.declareExportDeclaration = declareExportDeclaration; -exports.declareFunction = declareFunction; -exports.declareInterface = declareInterface; -exports.declareModule = declareModule; -exports.declareModuleExports = declareModuleExports; -exports.declareOpaqueType = declareOpaqueType; -exports.declareTypeAlias = declareTypeAlias; -exports.declareVariable = declareVariable; -exports.declaredPredicate = declaredPredicate; -exports.decorator = decorator; -exports.directive = directive; -exports.directiveLiteral = directiveLiteral; -exports.doExpression = doExpression; -exports.doWhileStatement = doWhileStatement; -exports.emptyStatement = emptyStatement; -exports.emptyTypeAnnotation = emptyTypeAnnotation; -exports.enumBooleanBody = enumBooleanBody; -exports.enumBooleanMember = enumBooleanMember; -exports.enumDeclaration = enumDeclaration; -exports.enumDefaultedMember = enumDefaultedMember; -exports.enumNumberBody = enumNumberBody; -exports.enumNumberMember = enumNumberMember; -exports.enumStringBody = enumStringBody; -exports.enumStringMember = enumStringMember; -exports.enumSymbolBody = enumSymbolBody; -exports.existsTypeAnnotation = existsTypeAnnotation; -exports.exportAllDeclaration = exportAllDeclaration; -exports.exportDefaultDeclaration = exportDefaultDeclaration; -exports.exportDefaultSpecifier = exportDefaultSpecifier; -exports.exportNamedDeclaration = exportNamedDeclaration; -exports.exportNamespaceSpecifier = exportNamespaceSpecifier; -exports.exportSpecifier = exportSpecifier; -exports.expressionStatement = expressionStatement; -exports.file = file; -exports.forInStatement = forInStatement; -exports.forOfStatement = forOfStatement; -exports.forStatement = forStatement; -exports.functionDeclaration = functionDeclaration; -exports.functionExpression = functionExpression; -exports.functionTypeAnnotation = functionTypeAnnotation; -exports.functionTypeParam = functionTypeParam; -exports.genericTypeAnnotation = genericTypeAnnotation; -exports.identifier = identifier; -exports.ifStatement = ifStatement; -exports["import"] = _import; -exports.importAttribute = importAttribute; -exports.importDeclaration = importDeclaration; -exports.importDefaultSpecifier = importDefaultSpecifier; -exports.importNamespaceSpecifier = importNamespaceSpecifier; -exports.importSpecifier = importSpecifier; -exports.indexedAccessType = indexedAccessType; -exports.inferredPredicate = inferredPredicate; -exports.interfaceDeclaration = interfaceDeclaration; -exports.interfaceExtends = interfaceExtends; -exports.interfaceTypeAnnotation = interfaceTypeAnnotation; -exports.interpreterDirective = interpreterDirective; -exports.intersectionTypeAnnotation = intersectionTypeAnnotation; -exports.jSXAttribute = exports.jsxAttribute = jsxAttribute; -exports.jSXClosingElement = exports.jsxClosingElement = jsxClosingElement; -exports.jSXClosingFragment = exports.jsxClosingFragment = jsxClosingFragment; -exports.jSXElement = exports.jsxElement = jsxElement; -exports.jSXEmptyExpression = exports.jsxEmptyExpression = jsxEmptyExpression; -exports.jSXExpressionContainer = exports.jsxExpressionContainer = jsxExpressionContainer; -exports.jSXFragment = exports.jsxFragment = jsxFragment; -exports.jSXIdentifier = exports.jsxIdentifier = jsxIdentifier; -exports.jSXMemberExpression = exports.jsxMemberExpression = jsxMemberExpression; -exports.jSXNamespacedName = exports.jsxNamespacedName = jsxNamespacedName; -exports.jSXOpeningElement = exports.jsxOpeningElement = jsxOpeningElement; -exports.jSXOpeningFragment = exports.jsxOpeningFragment = jsxOpeningFragment; -exports.jSXSpreadAttribute = exports.jsxSpreadAttribute = jsxSpreadAttribute; -exports.jSXSpreadChild = exports.jsxSpreadChild = jsxSpreadChild; -exports.jSXText = exports.jsxText = jsxText; -exports.labeledStatement = labeledStatement; -exports.logicalExpression = logicalExpression; -exports.memberExpression = memberExpression; -exports.metaProperty = metaProperty; -exports.mixedTypeAnnotation = mixedTypeAnnotation; -exports.moduleExpression = moduleExpression; -exports.newExpression = newExpression; -exports.noop = noop; -exports.nullLiteral = nullLiteral; -exports.nullLiteralTypeAnnotation = nullLiteralTypeAnnotation; -exports.nullableTypeAnnotation = nullableTypeAnnotation; -exports.numberLiteral = NumberLiteral; -exports.numberLiteralTypeAnnotation = numberLiteralTypeAnnotation; -exports.numberTypeAnnotation = numberTypeAnnotation; -exports.numericLiteral = numericLiteral; -exports.objectExpression = objectExpression; -exports.objectMethod = objectMethod; -exports.objectPattern = objectPattern; -exports.objectProperty = objectProperty; -exports.objectTypeAnnotation = objectTypeAnnotation; -exports.objectTypeCallProperty = objectTypeCallProperty; -exports.objectTypeIndexer = objectTypeIndexer; -exports.objectTypeInternalSlot = objectTypeInternalSlot; -exports.objectTypeProperty = objectTypeProperty; -exports.objectTypeSpreadProperty = objectTypeSpreadProperty; -exports.opaqueType = opaqueType; -exports.optionalCallExpression = optionalCallExpression; -exports.optionalIndexedAccessType = optionalIndexedAccessType; -exports.optionalMemberExpression = optionalMemberExpression; -exports.parenthesizedExpression = parenthesizedExpression; -exports.pipelineBareFunction = pipelineBareFunction; -exports.pipelinePrimaryTopicReference = pipelinePrimaryTopicReference; -exports.pipelineTopicExpression = pipelineTopicExpression; -exports.placeholder = placeholder; -exports.privateName = privateName; -exports.program = program; -exports.qualifiedTypeIdentifier = qualifiedTypeIdentifier; -exports.recordExpression = recordExpression; -exports.regExpLiteral = regExpLiteral; -exports.regexLiteral = RegexLiteral; -exports.restElement = restElement; -exports.restProperty = RestProperty; -exports.returnStatement = returnStatement; -exports.sequenceExpression = sequenceExpression; -exports.spreadElement = spreadElement; -exports.spreadProperty = SpreadProperty; -exports.staticBlock = staticBlock; -exports.stringLiteral = stringLiteral; -exports.stringLiteralTypeAnnotation = stringLiteralTypeAnnotation; -exports.stringTypeAnnotation = stringTypeAnnotation; -exports["super"] = _super; -exports.switchCase = switchCase; -exports.switchStatement = switchStatement; -exports.symbolTypeAnnotation = symbolTypeAnnotation; -exports.taggedTemplateExpression = taggedTemplateExpression; -exports.templateElement = templateElement; -exports.templateLiteral = templateLiteral; -exports.thisExpression = thisExpression; -exports.thisTypeAnnotation = thisTypeAnnotation; -exports.throwStatement = throwStatement; -exports.topicReference = topicReference; -exports.tryStatement = tryStatement; -exports.tSAnyKeyword = exports.tsAnyKeyword = tsAnyKeyword; -exports.tSArrayType = exports.tsArrayType = tsArrayType; -exports.tSAsExpression = exports.tsAsExpression = tsAsExpression; -exports.tSBigIntKeyword = exports.tsBigIntKeyword = tsBigIntKeyword; -exports.tSBooleanKeyword = exports.tsBooleanKeyword = tsBooleanKeyword; -exports.tSCallSignatureDeclaration = exports.tsCallSignatureDeclaration = tsCallSignatureDeclaration; -exports.tSConditionalType = exports.tsConditionalType = tsConditionalType; -exports.tSConstructSignatureDeclaration = exports.tsConstructSignatureDeclaration = tsConstructSignatureDeclaration; -exports.tSConstructorType = exports.tsConstructorType = tsConstructorType; -exports.tSDeclareFunction = exports.tsDeclareFunction = tsDeclareFunction; -exports.tSDeclareMethod = exports.tsDeclareMethod = tsDeclareMethod; -exports.tSEnumDeclaration = exports.tsEnumDeclaration = tsEnumDeclaration; -exports.tSEnumMember = exports.tsEnumMember = tsEnumMember; -exports.tSExportAssignment = exports.tsExportAssignment = tsExportAssignment; -exports.tSExpressionWithTypeArguments = exports.tsExpressionWithTypeArguments = tsExpressionWithTypeArguments; -exports.tSExternalModuleReference = exports.tsExternalModuleReference = tsExternalModuleReference; -exports.tSFunctionType = exports.tsFunctionType = tsFunctionType; -exports.tSImportEqualsDeclaration = exports.tsImportEqualsDeclaration = tsImportEqualsDeclaration; -exports.tSImportType = exports.tsImportType = tsImportType; -exports.tSIndexSignature = exports.tsIndexSignature = tsIndexSignature; -exports.tSIndexedAccessType = exports.tsIndexedAccessType = tsIndexedAccessType; -exports.tSInferType = exports.tsInferType = tsInferType; -exports.tSInstantiationExpression = exports.tsInstantiationExpression = tsInstantiationExpression; -exports.tSInterfaceBody = exports.tsInterfaceBody = tsInterfaceBody; -exports.tSInterfaceDeclaration = exports.tsInterfaceDeclaration = tsInterfaceDeclaration; -exports.tSIntersectionType = exports.tsIntersectionType = tsIntersectionType; -exports.tSIntrinsicKeyword = exports.tsIntrinsicKeyword = tsIntrinsicKeyword; -exports.tSLiteralType = exports.tsLiteralType = tsLiteralType; -exports.tSMappedType = exports.tsMappedType = tsMappedType; -exports.tSMethodSignature = exports.tsMethodSignature = tsMethodSignature; -exports.tSModuleBlock = exports.tsModuleBlock = tsModuleBlock; -exports.tSModuleDeclaration = exports.tsModuleDeclaration = tsModuleDeclaration; -exports.tSNamedTupleMember = exports.tsNamedTupleMember = tsNamedTupleMember; -exports.tSNamespaceExportDeclaration = exports.tsNamespaceExportDeclaration = tsNamespaceExportDeclaration; -exports.tSNeverKeyword = exports.tsNeverKeyword = tsNeverKeyword; -exports.tSNonNullExpression = exports.tsNonNullExpression = tsNonNullExpression; -exports.tSNullKeyword = exports.tsNullKeyword = tsNullKeyword; -exports.tSNumberKeyword = exports.tsNumberKeyword = tsNumberKeyword; -exports.tSObjectKeyword = exports.tsObjectKeyword = tsObjectKeyword; -exports.tSOptionalType = exports.tsOptionalType = tsOptionalType; -exports.tSParameterProperty = exports.tsParameterProperty = tsParameterProperty; -exports.tSParenthesizedType = exports.tsParenthesizedType = tsParenthesizedType; -exports.tSPropertySignature = exports.tsPropertySignature = tsPropertySignature; -exports.tSQualifiedName = exports.tsQualifiedName = tsQualifiedName; -exports.tSRestType = exports.tsRestType = tsRestType; -exports.tSSatisfiesExpression = exports.tsSatisfiesExpression = tsSatisfiesExpression; -exports.tSStringKeyword = exports.tsStringKeyword = tsStringKeyword; -exports.tSSymbolKeyword = exports.tsSymbolKeyword = tsSymbolKeyword; -exports.tSThisType = exports.tsThisType = tsThisType; -exports.tSTupleType = exports.tsTupleType = tsTupleType; -exports.tSTypeAliasDeclaration = exports.tsTypeAliasDeclaration = tsTypeAliasDeclaration; -exports.tSTypeAnnotation = exports.tsTypeAnnotation = tsTypeAnnotation; -exports.tSTypeAssertion = exports.tsTypeAssertion = tsTypeAssertion; -exports.tSTypeLiteral = exports.tsTypeLiteral = tsTypeLiteral; -exports.tSTypeOperator = exports.tsTypeOperator = tsTypeOperator; -exports.tSTypeParameter = exports.tsTypeParameter = tsTypeParameter; -exports.tSTypeParameterDeclaration = exports.tsTypeParameterDeclaration = tsTypeParameterDeclaration; -exports.tSTypeParameterInstantiation = exports.tsTypeParameterInstantiation = tsTypeParameterInstantiation; -exports.tSTypePredicate = exports.tsTypePredicate = tsTypePredicate; -exports.tSTypeQuery = exports.tsTypeQuery = tsTypeQuery; -exports.tSTypeReference = exports.tsTypeReference = tsTypeReference; -exports.tSUndefinedKeyword = exports.tsUndefinedKeyword = tsUndefinedKeyword; -exports.tSUnionType = exports.tsUnionType = tsUnionType; -exports.tSUnknownKeyword = exports.tsUnknownKeyword = tsUnknownKeyword; -exports.tSVoidKeyword = exports.tsVoidKeyword = tsVoidKeyword; -exports.tupleExpression = tupleExpression; -exports.tupleTypeAnnotation = tupleTypeAnnotation; -exports.typeAlias = typeAlias; -exports.typeAnnotation = typeAnnotation; -exports.typeCastExpression = typeCastExpression; -exports.typeParameter = typeParameter; -exports.typeParameterDeclaration = typeParameterDeclaration; -exports.typeParameterInstantiation = typeParameterInstantiation; -exports.typeofTypeAnnotation = typeofTypeAnnotation; -exports.unaryExpression = unaryExpression; -exports.unionTypeAnnotation = unionTypeAnnotation; -exports.updateExpression = updateExpression; -exports.v8IntrinsicIdentifier = v8IntrinsicIdentifier; -exports.variableDeclaration = variableDeclaration; -exports.variableDeclarator = variableDeclarator; -exports.variance = variance; -exports.voidTypeAnnotation = voidTypeAnnotation; -exports.whileStatement = whileStatement; -exports.withStatement = withStatement; -exports.yieldExpression = yieldExpression; -var _validateNode = __nccwpck_require__(43348); -var _deprecationWarning = __nccwpck_require__(43823); -function arrayExpression(elements = []) { - return (0, _validateNode.default)({ - type: "ArrayExpression", - elements - }); -} -function assignmentExpression(operator, left, right) { - return (0, _validateNode.default)({ - type: "AssignmentExpression", - operator, - left, - right - }); -} -function binaryExpression(operator, left, right) { - return (0, _validateNode.default)({ - type: "BinaryExpression", - operator, - left, - right - }); -} -function interpreterDirective(value) { - return (0, _validateNode.default)({ - type: "InterpreterDirective", - value - }); -} -function directive(value) { - return (0, _validateNode.default)({ - type: "Directive", - value - }); -} -function directiveLiteral(value) { - return (0, _validateNode.default)({ - type: "DirectiveLiteral", - value - }); -} -function blockStatement(body, directives = []) { - return (0, _validateNode.default)({ - type: "BlockStatement", - body, - directives - }); -} -function breakStatement(label = null) { - return (0, _validateNode.default)({ - type: "BreakStatement", - label - }); -} -function callExpression(callee, _arguments) { - return (0, _validateNode.default)({ - type: "CallExpression", - callee, - arguments: _arguments - }); -} -function catchClause(param = null, body) { - return (0, _validateNode.default)({ - type: "CatchClause", - param, - body - }); -} -function conditionalExpression(test, consequent, alternate) { - return (0, _validateNode.default)({ - type: "ConditionalExpression", - test, - consequent, - alternate - }); -} -function continueStatement(label = null) { - return (0, _validateNode.default)({ - type: "ContinueStatement", - label - }); -} -function debuggerStatement() { - return { - type: "DebuggerStatement" + return descriptor; + } + } +`; +helpers.classStaticPrivateFieldDestructureSet = helper("7.13.10")` + import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; + import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; + import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; + export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { + classCheckPrivateStaticAccess(receiver, classConstructor); + classCheckPrivateStaticFieldDescriptor(descriptor, "set"); + return classApplyDescriptorDestructureSet(receiver, descriptor); + } +`; +helpers.classCheckPrivateStaticAccess = helper("7.13.10")` + export default function _classCheckPrivateStaticAccess(receiver, classConstructor) { + if (receiver !== classConstructor) { + throw new TypeError("Private static access of wrong provenance"); + } + } +`; +helpers.classCheckPrivateStaticFieldDescriptor = helper("7.13.10")` + export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { + if (descriptor === undefined) { + throw new TypeError("attempted to " + action + " private static field before its declaration"); + } + } +`; +helpers.decorate = helper("7.1.5")` + import toArray from "toArray"; + import toPropertyKey from "toPropertyKey"; + + // These comments are stripped by @babel/template + /*:: + type PropertyDescriptor = + | { + value: any, + writable: boolean, + configurable: boolean, + enumerable: boolean, + } + | { + get?: () => any, + set?: (v: any) => void, + configurable: boolean, + enumerable: boolean, + }; + + type FieldDescriptor ={ + writable: boolean, + configurable: boolean, + enumerable: boolean, }; -} -function doWhileStatement(test, body) { - return (0, _validateNode.default)({ - type: "DoWhileStatement", - test, - body - }); -} -function emptyStatement() { - return { - type: "EmptyStatement" + + type Placement = "static" | "prototype" | "own"; + type Key = string | symbol; // PrivateName is not supported yet. + + type ElementDescriptor = + | { + kind: "method", + key: Key, + placement: Placement, + descriptor: PropertyDescriptor + } + | { + kind: "field", + key: Key, + placement: Placement, + descriptor: FieldDescriptor, + initializer?: () => any, + }; + + // This is exposed to the user code + type ElementObjectInput = ElementDescriptor & { + [@@toStringTag]?: "Descriptor" }; -} -function expressionStatement(expression) { - return (0, _validateNode.default)({ - type: "ExpressionStatement", - expression - }); -} -function file(program, comments = null, tokens = null) { - return (0, _validateNode.default)({ - type: "File", - program, - comments, - tokens - }); -} -function forInStatement(left, right, body) { - return (0, _validateNode.default)({ - type: "ForInStatement", - left, - right, - body - }); -} -function forStatement(init = null, test = null, update = null, body) { - return (0, _validateNode.default)({ - type: "ForStatement", - init, - test, - update, - body - }); -} -function functionDeclaration(id = null, params, body, generator = false, async = false) { - return (0, _validateNode.default)({ - type: "FunctionDeclaration", - id, - params, - body, - generator, - async - }); -} -function functionExpression(id = null, params, body, generator = false, async = false) { - return (0, _validateNode.default)({ - type: "FunctionExpression", - id, - params, - body, - generator, - async - }); -} -function identifier(name) { - return (0, _validateNode.default)({ - type: "Identifier", - name - }); -} -function ifStatement(test, consequent, alternate = null) { - return (0, _validateNode.default)({ - type: "IfStatement", - test, - consequent, - alternate - }); -} -function labeledStatement(label, body) { - return (0, _validateNode.default)({ - type: "LabeledStatement", - label, - body - }); -} -function stringLiteral(value) { - return (0, _validateNode.default)({ - type: "StringLiteral", - value - }); -} -function numericLiteral(value) { - return (0, _validateNode.default)({ - type: "NumericLiteral", - value - }); -} -function nullLiteral() { - return { - type: "NullLiteral" + + // This is exposed to the user code + type ElementObjectOutput = ElementDescriptor & { + [@@toStringTag]?: "Descriptor" + extras?: ElementDescriptor[], + finisher?: ClassFinisher, }; -} -function booleanLiteral(value) { - return (0, _validateNode.default)({ - type: "BooleanLiteral", - value - }); -} -function regExpLiteral(pattern, flags = "") { - return (0, _validateNode.default)({ - type: "RegExpLiteral", - pattern, - flags - }); -} -function logicalExpression(operator, left, right) { - return (0, _validateNode.default)({ - type: "LogicalExpression", - operator, - left, - right - }); -} -function memberExpression(object, property, computed = false, optional = null) { - return (0, _validateNode.default)({ - type: "MemberExpression", - object, - property, - computed, - optional - }); -} -function newExpression(callee, _arguments) { - return (0, _validateNode.default)({ - type: "NewExpression", - callee, - arguments: _arguments - }); -} -function program(body, directives = [], sourceType = "script", interpreter = null) { - return (0, _validateNode.default)({ - type: "Program", - body, - directives, - sourceType, - interpreter, - sourceFile: null - }); -} -function objectExpression(properties) { - return (0, _validateNode.default)({ - type: "ObjectExpression", - properties - }); -} -function objectMethod(kind = "method", key, params, body, computed = false, generator = false, async = false) { - return (0, _validateNode.default)({ - type: "ObjectMethod", - kind, - key, - params, - body, - computed, - generator, - async - }); -} -function objectProperty(key, value, computed = false, shorthand = false, decorators = null) { - return (0, _validateNode.default)({ - type: "ObjectProperty", - key, - value, - computed, - shorthand, - decorators - }); -} -function restElement(argument) { - return (0, _validateNode.default)({ - type: "RestElement", - argument - }); -} -function returnStatement(argument = null) { - return (0, _validateNode.default)({ - type: "ReturnStatement", - argument - }); -} -function sequenceExpression(expressions) { - return (0, _validateNode.default)({ - type: "SequenceExpression", - expressions - }); -} -function parenthesizedExpression(expression) { - return (0, _validateNode.default)({ - type: "ParenthesizedExpression", - expression - }); -} -function switchCase(test = null, consequent) { - return (0, _validateNode.default)({ - type: "SwitchCase", - test, - consequent - }); -} -function switchStatement(discriminant, cases) { - return (0, _validateNode.default)({ - type: "SwitchStatement", - discriminant, - cases - }); -} -function thisExpression() { - return { - type: "ThisExpression" + + // This is exposed to the user code + type ClassObject = { + [@@toStringTag]?: "Descriptor", + kind: "class", + elements: ElementDescriptor[], }; -} -function throwStatement(argument) { - return (0, _validateNode.default)({ - type: "ThrowStatement", - argument - }); -} -function tryStatement(block, handler = null, finalizer = null) { - return (0, _validateNode.default)({ - type: "TryStatement", - block, - handler, - finalizer - }); -} -function unaryExpression(operator, argument, prefix = true) { - return (0, _validateNode.default)({ - type: "UnaryExpression", - operator, - argument, - prefix - }); -} -function updateExpression(operator, argument, prefix = false) { - return (0, _validateNode.default)({ - type: "UpdateExpression", - operator, - argument, - prefix - }); -} -function variableDeclaration(kind, declarations) { - return (0, _validateNode.default)({ - type: "VariableDeclaration", - kind, - declarations - }); -} -function variableDeclarator(id, init = null) { - return (0, _validateNode.default)({ - type: "VariableDeclarator", - id, - init - }); -} -function whileStatement(test, body) { - return (0, _validateNode.default)({ - type: "WhileStatement", - test, - body - }); -} -function withStatement(object, body) { - return (0, _validateNode.default)({ - type: "WithStatement", - object, - body - }); -} -function assignmentPattern(left, right) { - return (0, _validateNode.default)({ - type: "AssignmentPattern", - left, - right - }); -} -function arrayPattern(elements) { - return (0, _validateNode.default)({ - type: "ArrayPattern", - elements - }); -} -function arrowFunctionExpression(params, body, async = false) { - return (0, _validateNode.default)({ - type: "ArrowFunctionExpression", - params, - body, - async, - expression: null - }); -} -function classBody(body) { - return (0, _validateNode.default)({ - type: "ClassBody", - body - }); -} -function classExpression(id = null, superClass = null, body, decorators = null) { - return (0, _validateNode.default)({ - type: "ClassExpression", - id, - superClass, - body, - decorators - }); -} -function classDeclaration(id, superClass = null, body, decorators = null) { - return (0, _validateNode.default)({ - type: "ClassDeclaration", - id, - superClass, - body, - decorators - }); -} -function exportAllDeclaration(source) { - return (0, _validateNode.default)({ - type: "ExportAllDeclaration", - source - }); -} -function exportDefaultDeclaration(declaration) { - return (0, _validateNode.default)({ - type: "ExportDefaultDeclaration", - declaration - }); -} -function exportNamedDeclaration(declaration = null, specifiers = [], source = null) { - return (0, _validateNode.default)({ - type: "ExportNamedDeclaration", - declaration, - specifiers, - source - }); -} -function exportSpecifier(local, exported) { - return (0, _validateNode.default)({ - type: "ExportSpecifier", - local, - exported - }); -} -function forOfStatement(left, right, body, _await = false) { - return (0, _validateNode.default)({ - type: "ForOfStatement", - left, - right, - body, - await: _await - }); -} -function importDeclaration(specifiers, source) { - return (0, _validateNode.default)({ - type: "ImportDeclaration", - specifiers, - source - }); -} -function importDefaultSpecifier(local) { - return (0, _validateNode.default)({ - type: "ImportDefaultSpecifier", - local - }); -} -function importNamespaceSpecifier(local) { - return (0, _validateNode.default)({ - type: "ImportNamespaceSpecifier", - local - }); -} -function importSpecifier(local, imported) { - return (0, _validateNode.default)({ - type: "ImportSpecifier", - local, - imported - }); -} -function metaProperty(meta, property) { - return (0, _validateNode.default)({ - type: "MetaProperty", - meta, - property - }); -} -function classMethod(kind = "method", key, params, body, computed = false, _static = false, generator = false, async = false) { - return (0, _validateNode.default)({ - type: "ClassMethod", - kind, - key, - params, - body, - computed, - static: _static, - generator, - async - }); -} -function objectPattern(properties) { - return (0, _validateNode.default)({ - type: "ObjectPattern", - properties - }); -} -function spreadElement(argument) { - return (0, _validateNode.default)({ - type: "SpreadElement", - argument - }); -} -function _super() { - return { - type: "Super" + + type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput; + type ClassDecorator = (descriptor: ClassObject) => ?ClassObject; + type ClassFinisher = (cl: Class) => Class; + + // Only used by Babel in the transform output, not part of the spec. + type ElementDefinition = + | { + kind: "method", + value: any, + key: Key, + static?: boolean, + decorators?: ElementDecorator[], + } + | { + kind: "field", + value: () => any, + key: Key, + static?: boolean, + decorators?: ElementDecorator[], + }; + + declare function ClassFactory(initialize: (instance: C) => void): { + F: Class, + d: ElementDefinition[] + } + + */ + + /*:: + // Various combinations with/without extras and with one or many finishers + + type ElementFinisherExtras = { + element: ElementDescriptor, + finisher?: ClassFinisher, + extras?: ElementDescriptor[], + }; + + type ElementFinishersExtras = { + element: ElementDescriptor, + finishers: ClassFinisher[], + extras: ElementDescriptor[], }; -} -function taggedTemplateExpression(tag, quasi) { - return (0, _validateNode.default)({ - type: "TaggedTemplateExpression", - tag, - quasi - }); -} -function templateElement(value, tail = false) { - return (0, _validateNode.default)({ - type: "TemplateElement", - value, - tail - }); -} -function templateLiteral(quasis, expressions) { - return (0, _validateNode.default)({ - type: "TemplateLiteral", - quasis, - expressions - }); -} -function yieldExpression(argument = null, delegate = false) { - return (0, _validateNode.default)({ - type: "YieldExpression", - argument, - delegate - }); -} -function awaitExpression(argument) { - return (0, _validateNode.default)({ - type: "AwaitExpression", - argument - }); -} -function _import() { - return { - type: "Import" + + type ElementsFinisher = { + elements: ElementDescriptor[], + finisher?: ClassFinisher, }; -} -function bigIntLiteral(value) { - return (0, _validateNode.default)({ - type: "BigIntLiteral", - value - }); -} -function exportNamespaceSpecifier(exported) { - return (0, _validateNode.default)({ - type: "ExportNamespaceSpecifier", - exported - }); -} -function optionalMemberExpression(object, property, computed = false, optional) { - return (0, _validateNode.default)({ - type: "OptionalMemberExpression", - object, - property, - computed, - optional - }); -} -function optionalCallExpression(callee, _arguments, optional) { - return (0, _validateNode.default)({ - type: "OptionalCallExpression", - callee, - arguments: _arguments, - optional - }); -} -function classProperty(key, value = null, typeAnnotation = null, decorators = null, computed = false, _static = false) { - return (0, _validateNode.default)({ - type: "ClassProperty", - key, - value, - typeAnnotation, - decorators, - computed, - static: _static - }); -} -function classAccessorProperty(key, value = null, typeAnnotation = null, decorators = null, computed = false, _static = false) { - return (0, _validateNode.default)({ - type: "ClassAccessorProperty", - key, - value, - typeAnnotation, - decorators, - computed, - static: _static - }); -} -function classPrivateProperty(key, value = null, decorators = null, _static = false) { - return (0, _validateNode.default)({ - type: "ClassPrivateProperty", - key, - value, - decorators, - static: _static - }); -} -function classPrivateMethod(kind = "method", key, params, body, _static = false) { - return (0, _validateNode.default)({ - type: "ClassPrivateMethod", - kind, - key, - params, - body, - static: _static - }); -} -function privateName(id) { - return (0, _validateNode.default)({ - type: "PrivateName", - id - }); -} -function staticBlock(body) { - return (0, _validateNode.default)({ - type: "StaticBlock", - body - }); -} -function anyTypeAnnotation() { - return { - type: "AnyTypeAnnotation" + + type ElementsFinishers = { + elements: ElementDescriptor[], + finishers: ClassFinisher[], + }; + + */ + + /*:: + + type Placements = { + static: Key[], + prototype: Key[], + own: Key[], }; + + */ + + // ClassDefinitionEvaluation (Steps 26-*) + export default function _decorate( + decorators /*: ClassDecorator[] */, + factory /*: ClassFactory */, + superClass /*: ?Class<*> */, + mixins /*: ?Array */, + ) /*: Class<*> */ { + var api = _getDecoratorsApi(); + if (mixins) { + for (var i = 0; i < mixins.length; i++) { + api = mixins[i](api); + } + } + + var r = factory(function initialize(O) { + api.initializeInstanceElements(O, decorated.elements); + }, superClass); + var decorated = api.decorateClass( + _coalesceClassElements(r.d.map(_createElementDescriptor)), + decorators, + ); + + api.initializeClassElements(r.F, decorated.elements); + + return api.runClassFinishers(r.F, decorated.finishers); + } + + function _getDecoratorsApi() { + _getDecoratorsApi = function() { + return api; + }; + + var api = { + elementsDefinitionOrder: [["method"], ["field"]], + + // InitializeInstanceElements + initializeInstanceElements: function( + /*::*/ O /*: C */, + elements /*: ElementDescriptor[] */, + ) { + ["method", "field"].forEach(function(kind) { + elements.forEach(function(element /*: ElementDescriptor */) { + if (element.kind === kind && element.placement === "own") { + this.defineClassElement(O, element); + } + }, this); + }, this); + }, + + // InitializeClassElements + initializeClassElements: function( + /*::*/ F /*: Class */, + elements /*: ElementDescriptor[] */, + ) { + var proto = F.prototype; + + ["method", "field"].forEach(function(kind) { + elements.forEach(function(element /*: ElementDescriptor */) { + var placement = element.placement; + if ( + element.kind === kind && + (placement === "static" || placement === "prototype") + ) { + var receiver = placement === "static" ? F : proto; + this.defineClassElement(receiver, element); + } + }, this); + }, this); + }, + + // DefineClassElement + defineClassElement: function( + /*::*/ receiver /*: C | Class */, + element /*: ElementDescriptor */, + ) { + var descriptor /*: PropertyDescriptor */ = element.descriptor; + if (element.kind === "field") { + var initializer = element.initializer; + descriptor = { + enumerable: descriptor.enumerable, + writable: descriptor.writable, + configurable: descriptor.configurable, + value: initializer === void 0 ? void 0 : initializer.call(receiver), + }; + } + Object.defineProperty(receiver, element.key, descriptor); + }, + + // DecorateClass + decorateClass: function( + elements /*: ElementDescriptor[] */, + decorators /*: ClassDecorator[] */, + ) /*: ElementsFinishers */ { + var newElements /*: ElementDescriptor[] */ = []; + var finishers /*: ClassFinisher[] */ = []; + var placements /*: Placements */ = { + static: [], + prototype: [], + own: [], + }; + + elements.forEach(function(element /*: ElementDescriptor */) { + this.addElementPlacement(element, placements); + }, this); + + elements.forEach(function(element /*: ElementDescriptor */) { + if (!_hasDecorators(element)) return newElements.push(element); + + var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement( + element, + placements, + ); + newElements.push(elementFinishersExtras.element); + newElements.push.apply(newElements, elementFinishersExtras.extras); + finishers.push.apply(finishers, elementFinishersExtras.finishers); + }, this); + + if (!decorators) { + return { elements: newElements, finishers: finishers }; + } + + var result /*: ElementsFinishers */ = this.decorateConstructor( + newElements, + decorators, + ); + finishers.push.apply(finishers, result.finishers); + result.finishers = finishers; + + return result; + }, + + // AddElementPlacement + addElementPlacement: function( + element /*: ElementDescriptor */, + placements /*: Placements */, + silent /*: boolean */, + ) { + var keys = placements[element.placement]; + if (!silent && keys.indexOf(element.key) !== -1) { + throw new TypeError("Duplicated element (" + element.key + ")"); + } + keys.push(element.key); + }, + + // DecorateElement + decorateElement: function( + element /*: ElementDescriptor */, + placements /*: Placements */, + ) /*: ElementFinishersExtras */ { + var extras /*: ElementDescriptor[] */ = []; + var finishers /*: ClassFinisher[] */ = []; + + for ( + var decorators = element.decorators, i = decorators.length - 1; + i >= 0; + i-- + ) { + // (inlined) RemoveElementPlacement + var keys = placements[element.placement]; + keys.splice(keys.indexOf(element.key), 1); + + var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor( + element, + ); + var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras( + (0, decorators[i])(elementObject) /*: ElementObjectOutput */ || + elementObject, + ); + + element = elementFinisherExtras.element; + this.addElementPlacement(element, placements); + + if (elementFinisherExtras.finisher) { + finishers.push(elementFinisherExtras.finisher); + } + + var newExtras /*: ElementDescriptor[] | void */ = + elementFinisherExtras.extras; + if (newExtras) { + for (var j = 0; j < newExtras.length; j++) { + this.addElementPlacement(newExtras[j], placements); + } + extras.push.apply(extras, newExtras); + } + } + + return { element: element, finishers: finishers, extras: extras }; + }, + + // DecorateConstructor + decorateConstructor: function( + elements /*: ElementDescriptor[] */, + decorators /*: ClassDecorator[] */, + ) /*: ElementsFinishers */ { + var finishers /*: ClassFinisher[] */ = []; + + for (var i = decorators.length - 1; i >= 0; i--) { + var obj /*: ClassObject */ = this.fromClassDescriptor(elements); + var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor( + (0, decorators[i])(obj) /*: ClassObject */ || obj, + ); + + if (elementsAndFinisher.finisher !== undefined) { + finishers.push(elementsAndFinisher.finisher); + } + + if (elementsAndFinisher.elements !== undefined) { + elements = elementsAndFinisher.elements; + + for (var j = 0; j < elements.length - 1; j++) { + for (var k = j + 1; k < elements.length; k++) { + if ( + elements[j].key === elements[k].key && + elements[j].placement === elements[k].placement + ) { + throw new TypeError( + "Duplicated element (" + elements[j].key + ")", + ); + } + } + } + } + } + + return { elements: elements, finishers: finishers }; + }, + + // FromElementDescriptor + fromElementDescriptor: function( + element /*: ElementDescriptor */, + ) /*: ElementObject */ { + var obj /*: ElementObject */ = { + kind: element.kind, + key: element.key, + placement: element.placement, + descriptor: element.descriptor, + }; + + var desc = { + value: "Descriptor", + configurable: true, + }; + Object.defineProperty(obj, Symbol.toStringTag, desc); + + if (element.kind === "field") obj.initializer = element.initializer; + + return obj; + }, + + // ToElementDescriptors + toElementDescriptors: function( + elementObjects /*: ElementObject[] */, + ) /*: ElementDescriptor[] */ { + if (elementObjects === undefined) return; + return toArray(elementObjects).map(function(elementObject) { + var element = this.toElementDescriptor(elementObject); + this.disallowProperty(elementObject, "finisher", "An element descriptor"); + this.disallowProperty(elementObject, "extras", "An element descriptor"); + return element; + }, this); + }, + + // ToElementDescriptor + toElementDescriptor: function( + elementObject /*: ElementObject */, + ) /*: ElementDescriptor */ { + var kind = String(elementObject.kind); + if (kind !== "method" && kind !== "field") { + throw new TypeError( + 'An element descriptor\\'s .kind property must be either "method" or' + + ' "field", but a decorator created an element descriptor with' + + ' .kind "' + + kind + + '"', + ); + } + + var key = toPropertyKey(elementObject.key); + + var placement = String(elementObject.placement); + if ( + placement !== "static" && + placement !== "prototype" && + placement !== "own" + ) { + throw new TypeError( + 'An element descriptor\\'s .placement property must be one of "static",' + + ' "prototype" or "own", but a decorator created an element descriptor' + + ' with .placement "' + + placement + + '"', + ); + } + + var descriptor /*: PropertyDescriptor */ = elementObject.descriptor; + + this.disallowProperty(elementObject, "elements", "An element descriptor"); + + var element /*: ElementDescriptor */ = { + kind: kind, + key: key, + placement: placement, + descriptor: Object.assign({}, descriptor), + }; + + if (kind !== "field") { + this.disallowProperty(elementObject, "initializer", "A method descriptor"); + } else { + this.disallowProperty( + descriptor, + "get", + "The property descriptor of a field descriptor", + ); + this.disallowProperty( + descriptor, + "set", + "The property descriptor of a field descriptor", + ); + this.disallowProperty( + descriptor, + "value", + "The property descriptor of a field descriptor", + ); + + element.initializer = elementObject.initializer; + } + + return element; + }, + + toElementFinisherExtras: function( + elementObject /*: ElementObject */, + ) /*: ElementFinisherExtras */ { + var element /*: ElementDescriptor */ = this.toElementDescriptor( + elementObject, + ); + var finisher /*: ClassFinisher */ = _optionalCallableProperty( + elementObject, + "finisher", + ); + var extras /*: ElementDescriptors[] */ = this.toElementDescriptors( + elementObject.extras, + ); + + return { element: element, finisher: finisher, extras: extras }; + }, + + // FromClassDescriptor + fromClassDescriptor: function( + elements /*: ElementDescriptor[] */, + ) /*: ClassObject */ { + var obj = { + kind: "class", + elements: elements.map(this.fromElementDescriptor, this), + }; + + var desc = { value: "Descriptor", configurable: true }; + Object.defineProperty(obj, Symbol.toStringTag, desc); + + return obj; + }, + + // ToClassDescriptor + toClassDescriptor: function( + obj /*: ClassObject */, + ) /*: ElementsFinisher */ { + var kind = String(obj.kind); + if (kind !== "class") { + throw new TypeError( + 'A class descriptor\\'s .kind property must be "class", but a decorator' + + ' created a class descriptor with .kind "' + + kind + + '"', + ); + } + + this.disallowProperty(obj, "key", "A class descriptor"); + this.disallowProperty(obj, "placement", "A class descriptor"); + this.disallowProperty(obj, "descriptor", "A class descriptor"); + this.disallowProperty(obj, "initializer", "A class descriptor"); + this.disallowProperty(obj, "extras", "A class descriptor"); + + var finisher = _optionalCallableProperty(obj, "finisher"); + var elements = this.toElementDescriptors(obj.elements); + + return { elements: elements, finisher: finisher }; + }, + + // RunClassFinishers + runClassFinishers: function( + constructor /*: Class<*> */, + finishers /*: ClassFinisher[] */, + ) /*: Class<*> */ { + for (var i = 0; i < finishers.length; i++) { + var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor); + if (newConstructor !== undefined) { + // NOTE: This should check if IsConstructor(newConstructor) is false. + if (typeof newConstructor !== "function") { + throw new TypeError("Finishers must return a constructor."); + } + constructor = newConstructor; + } + } + return constructor; + }, + + disallowProperty: function(obj, name, objectType) { + if (obj[name] !== undefined) { + throw new TypeError(objectType + " can't have a ." + name + " property."); + } + } + }; + + return api; + } + + // ClassElementEvaluation + function _createElementDescriptor( + def /*: ElementDefinition */, + ) /*: ElementDescriptor */ { + var key = toPropertyKey(def.key); + + var descriptor /*: PropertyDescriptor */; + if (def.kind === "method") { + descriptor = { + value: def.value, + writable: true, + configurable: true, + enumerable: false, + }; + } else if (def.kind === "get") { + descriptor = { get: def.value, configurable: true, enumerable: false }; + } else if (def.kind === "set") { + descriptor = { set: def.value, configurable: true, enumerable: false }; + } else if (def.kind === "field") { + descriptor = { configurable: true, writable: true, enumerable: true }; + } + + var element /*: ElementDescriptor */ = { + kind: def.kind === "field" ? "field" : "method", + key: key, + placement: def.static + ? "static" + : def.kind === "field" + ? "own" + : "prototype", + descriptor: descriptor, + }; + if (def.decorators) element.decorators = def.decorators; + if (def.kind === "field") element.initializer = def.value; + + return element; + } + + // CoalesceGetterSetter + function _coalesceGetterSetter( + element /*: ElementDescriptor */, + other /*: ElementDescriptor */, + ) { + if (element.descriptor.get !== undefined) { + other.descriptor.get = element.descriptor.get; + } else { + other.descriptor.set = element.descriptor.set; + } + } + + // CoalesceClassElements + function _coalesceClassElements( + elements /*: ElementDescriptor[] */, + ) /*: ElementDescriptor[] */ { + var newElements /*: ElementDescriptor[] */ = []; + + var isSameElement = function( + other /*: ElementDescriptor */, + ) /*: boolean */ { + return ( + other.kind === "method" && + other.key === element.key && + other.placement === element.placement + ); + }; + + for (var i = 0; i < elements.length; i++) { + var element /*: ElementDescriptor */ = elements[i]; + var other /*: ElementDescriptor */; + + if ( + element.kind === "method" && + (other = newElements.find(isSameElement)) + ) { + if ( + _isDataDescriptor(element.descriptor) || + _isDataDescriptor(other.descriptor) + ) { + if (_hasDecorators(element) || _hasDecorators(other)) { + throw new ReferenceError( + "Duplicated methods (" + element.key + ") can't be decorated.", + ); + } + other.descriptor = element.descriptor; + } else { + if (_hasDecorators(element)) { + if (_hasDecorators(other)) { + throw new ReferenceError( + "Decorators can't be placed on different accessors with for " + + "the same property (" + + element.key + + ").", + ); + } + other.decorators = element.decorators; + } + _coalesceGetterSetter(element, other); + } + } else { + newElements.push(element); + } + } + + return newElements; + } + + function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ { + return element.decorators && element.decorators.length; + } + + function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ { + return ( + desc !== undefined && + !(desc.value === undefined && desc.writable === undefined) + ); + } + + function _optionalCallableProperty /*::*/( + obj /*: T */, + name /*: $Keys */, + ) /*: ?Function */ { + var value = obj[name]; + if (value !== undefined && typeof value !== "function") { + throw new TypeError("Expected '" + name + "' to be a function"); + } + return value; + } + +`; +helpers.classPrivateMethodGet = helper("7.1.6")` + export default function _classPrivateMethodGet(receiver, privateSet, fn) { + if (!privateSet.has(receiver)) { + throw new TypeError("attempted to get private field on non-instance"); + } + return fn; + } +`; +helpers.checkPrivateRedeclaration = helper("7.14.1")` + export default function _checkPrivateRedeclaration(obj, privateCollection) { + if (privateCollection.has(obj)) { + throw new TypeError("Cannot initialize the same private elements twice on an object"); + } + } +`; +helpers.classPrivateFieldInitSpec = helper("7.14.1")` + import checkPrivateRedeclaration from "checkPrivateRedeclaration"; + + export default function _classPrivateFieldInitSpec(obj, privateMap, value) { + checkPrivateRedeclaration(obj, privateMap); + privateMap.set(obj, value); + } +`; +helpers.classPrivateMethodInitSpec = helper("7.14.1")` + import checkPrivateRedeclaration from "checkPrivateRedeclaration"; + + export default function _classPrivateMethodInitSpec(obj, privateSet) { + checkPrivateRedeclaration(obj, privateSet); + privateSet.add(obj); + } +`; +{ + helpers.classPrivateMethodSet = helper("7.1.6")` + export default function _classPrivateMethodSet() { + throw new TypeError("attempted to reassign private method"); + } + `; } -function arrayTypeAnnotation(elementType) { - return (0, _validateNode.default)({ - type: "ArrayTypeAnnotation", - elementType - }); +helpers.identity = helper("7.17.0")` + export default function _identity(x) { + return x; + } +`; +helpers.nullishReceiverError = helper("7.22.6")` + export default function _nullishReceiverError(r) { + throw new TypeError("Cannot set property of null or undefined."); + } +`; + +//# sourceMappingURL=helpers.js.map + + +/***/ }), + +/***/ 78481: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +exports.ensure = ensure; +exports.get = get; +exports.getDependencies = getDependencies; +exports.list = void 0; +exports.minVersion = minVersion; +var _traverse = __nccwpck_require__(22382); +var _t = __nccwpck_require__(68948); +var _helpers = __nccwpck_require__(14466); +const { + assignmentExpression, + cloneNode, + expressionStatement, + file, + identifier +} = _t; +function makePath(path) { + const parts = []; + for (; path.parentPath; path = path.parentPath) { + parts.push(path.key); + if (path.inList) parts.push(path.listKey); + } + return parts.reverse().join("."); } -function booleanTypeAnnotation() { - return { - type: "BooleanTypeAnnotation" +let FileClass = undefined; +function getHelperMetadata(file) { + const globals = new Set(); + const localBindingNames = new Set(); + const dependencies = new Map(); + let exportName; + let exportPath; + const exportBindingAssignments = []; + const importPaths = []; + const importBindingsReferences = []; + const dependencyVisitor = { + ImportDeclaration(child) { + const name = child.node.source.value; + if (!_helpers.default[name]) { + throw child.buildCodeFrameError(`Unknown helper ${name}`); + } + if (child.get("specifiers").length !== 1 || !child.get("specifiers.0").isImportDefaultSpecifier()) { + throw child.buildCodeFrameError("Helpers can only import a default value"); + } + const bindingIdentifier = child.node.specifiers[0].local; + dependencies.set(bindingIdentifier, name); + importPaths.push(makePath(child)); + }, + ExportDefaultDeclaration(child) { + const decl = child.get("declaration"); + if (!decl.isFunctionDeclaration() || !decl.node.id) { + throw decl.buildCodeFrameError("Helpers can only export named function declarations"); + } + exportName = decl.node.id.name; + exportPath = makePath(child); + }, + ExportAllDeclaration(child) { + throw child.buildCodeFrameError("Helpers can only export default"); + }, + ExportNamedDeclaration(child) { + throw child.buildCodeFrameError("Helpers can only export default"); + }, + Statement(child) { + if (child.isImportDeclaration() || child.isExportDeclaration()) return; + child.skip(); + } }; -} -function booleanLiteralTypeAnnotation(value) { - return (0, _validateNode.default)({ - type: "BooleanLiteralTypeAnnotation", - value - }); -} -function nullLiteralTypeAnnotation() { - return { - type: "NullLiteralTypeAnnotation" + const referenceVisitor = { + Program(path) { + const bindings = path.scope.getAllBindings(); + Object.keys(bindings).forEach(name => { + if (name === exportName) return; + if (dependencies.has(bindings[name].identifier)) return; + localBindingNames.add(name); + }); + }, + ReferencedIdentifier(child) { + const name = child.node.name; + const binding = child.scope.getBinding(name); + if (!binding) { + globals.add(name); + } else if (dependencies.has(binding.identifier)) { + importBindingsReferences.push(makePath(child)); + } + }, + AssignmentExpression(child) { + const left = child.get("left"); + if (!(exportName in left.getBindingIdentifiers())) return; + if (!left.isIdentifier()) { + throw left.buildCodeFrameError("Only simple assignments to exports are allowed in helpers"); + } + const binding = child.scope.getBinding(exportName); + if (binding != null && binding.scope.path.isProgram()) { + exportBindingAssignments.push(makePath(child)); + } + } }; -} -function classImplements(id, typeParameters = null) { - return (0, _validateNode.default)({ - type: "ClassImplements", - id, - typeParameters - }); -} -function declareClass(id, typeParameters = null, _extends = null, body) { - return (0, _validateNode.default)({ - type: "DeclareClass", - id, - typeParameters, - extends: _extends, - body - }); -} -function declareFunction(id) { - return (0, _validateNode.default)({ - type: "DeclareFunction", - id - }); -} -function declareInterface(id, typeParameters = null, _extends = null, body) { - return (0, _validateNode.default)({ - type: "DeclareInterface", - id, - typeParameters, - extends: _extends, - body - }); -} -function declareModule(id, body, kind = null) { - return (0, _validateNode.default)({ - type: "DeclareModule", - id, - body, - kind - }); -} -function declareModuleExports(typeAnnotation) { - return (0, _validateNode.default)({ - type: "DeclareModuleExports", - typeAnnotation - }); -} -function declareTypeAlias(id, typeParameters = null, right) { - return (0, _validateNode.default)({ - type: "DeclareTypeAlias", - id, - typeParameters, - right - }); -} -function declareOpaqueType(id, typeParameters = null, supertype = null) { - return (0, _validateNode.default)({ - type: "DeclareOpaqueType", - id, - typeParameters, - supertype - }); -} -function declareVariable(id) { - return (0, _validateNode.default)({ - type: "DeclareVariable", - id - }); -} -function declareExportDeclaration(declaration = null, specifiers = null, source = null) { - return (0, _validateNode.default)({ - type: "DeclareExportDeclaration", - declaration, - specifiers, - source - }); -} -function declareExportAllDeclaration(source) { - return (0, _validateNode.default)({ - type: "DeclareExportAllDeclaration", - source - }); -} -function declaredPredicate(value) { - return (0, _validateNode.default)({ - type: "DeclaredPredicate", - value - }); -} -function existsTypeAnnotation() { + (0, _traverse.default)(file.ast, dependencyVisitor, file.scope); + (0, _traverse.default)(file.ast, referenceVisitor, file.scope); + if (!exportPath) throw new Error("Helpers must have a default export."); + exportBindingAssignments.reverse(); return { - type: "ExistsTypeAnnotation" + globals: Array.from(globals), + localBindingNames: Array.from(localBindingNames), + dependencies, + exportBindingAssignments, + exportPath, + exportName, + importBindingsReferences, + importPaths }; } -function functionTypeAnnotation(typeParameters = null, params, rest = null, returnType) { - return (0, _validateNode.default)({ - type: "FunctionTypeAnnotation", - typeParameters, - params, - rest, - returnType +function permuteHelperAST(file, metadata, id, localBindings, getDependency) { + if (localBindings && !id) { + throw new Error("Unexpected local bindings for module-based helpers."); + } + if (!id) return; + const { + localBindingNames, + dependencies, + exportBindingAssignments, + exportPath, + exportName, + importBindingsReferences, + importPaths + } = metadata; + const dependenciesRefs = {}; + dependencies.forEach((name, id) => { + dependenciesRefs[id.name] = typeof getDependency === "function" && getDependency(name) || id; }); -} -function functionTypeParam(name = null, typeAnnotation) { - return (0, _validateNode.default)({ - type: "FunctionTypeParam", - name, - typeAnnotation + const toRename = {}; + const bindings = new Set(localBindings || []); + if (id.type === "Identifier") bindings.add(id.name); + localBindingNames.forEach(name => { + let newName = name; + while (bindings.has(newName)) newName = "_" + newName; + if (newName !== name) toRename[name] = newName; }); -} -function genericTypeAnnotation(id, typeParameters = null) { - return (0, _validateNode.default)({ - type: "GenericTypeAnnotation", - id, - typeParameters + if (id.type === "Identifier" && exportName !== id.name) { + toRename[exportName] = id.name; + } + const { + path + } = file; + const exp = path.get(exportPath); + const imps = importPaths.map(p => path.get(p)); + const impsBindingRefs = importBindingsReferences.map(p => path.get(p)); + const decl = exp.get("declaration"); + if (id.type === "Identifier") { + exp.replaceWith(decl); + } else if (id.type === "MemberExpression") { + exportBindingAssignments.forEach(assignPath => { + const assign = path.get(assignPath); + assign.replaceWith(assignmentExpression("=", id, assign.node)); + }); + exp.replaceWith(decl); + path.pushContainer("body", expressionStatement(assignmentExpression("=", id, identifier(exportName)))); + } else { + throw new Error("Unexpected helper format."); + } + Object.keys(toRename).forEach(name => { + path.scope.rename(name, toRename[name]); }); + for (const path of imps) path.remove(); + for (const path of impsBindingRefs) { + const node = cloneNode(dependenciesRefs[path.node.name]); + path.replaceWith(node); + } } -function inferredPredicate() { - return { - type: "InferredPredicate" - }; +const helperData = Object.create(null); +function loadHelper(name) { + if (!helperData[name]) { + const helper = _helpers.default[name]; + if (!helper) { + throw Object.assign(new ReferenceError(`Unknown helper ${name}`), { + code: "BABEL_HELPER_UNKNOWN", + helper: name + }); + } + const fn = () => { + { + if (!FileClass) { + const fakeFile = { + ast: file(helper.ast()), + path: null + }; + (0, _traverse.default)(fakeFile.ast, { + Program: path => (fakeFile.path = path).stop() + }); + return fakeFile; + } + } + return new FileClass({ + filename: `babel-helper://${name}` + }, { + ast: file(helper.ast()), + code: "[internal Babel helper code]", + inputMap: null + }); + }; + let metadata = null; + helperData[name] = { + minVersion: helper.minVersion, + build(getDependency, id, localBindings) { + const file = fn(); + metadata || (metadata = getHelperMetadata(file)); + permuteHelperAST(file, metadata, id, localBindings, getDependency); + return { + nodes: file.ast.program.body, + globals: metadata.globals + }; + }, + getDependencies() { + metadata || (metadata = getHelperMetadata(fn())); + return Array.from(metadata.dependencies.values()); + } + }; + } + return helperData[name]; } -function interfaceExtends(id, typeParameters = null) { - return (0, _validateNode.default)({ - type: "InterfaceExtends", - id, - typeParameters - }); +function get(name, getDependency, id, localBindings) { + return loadHelper(name).build(getDependency, id, localBindings); } -function interfaceDeclaration(id, typeParameters = null, _extends = null, body) { - return (0, _validateNode.default)({ - type: "InterfaceDeclaration", - id, - typeParameters, - extends: _extends, - body - }); +function minVersion(name) { + return loadHelper(name).minVersion; } -function interfaceTypeAnnotation(_extends = null, body) { - return (0, _validateNode.default)({ - type: "InterfaceTypeAnnotation", - extends: _extends, - body - }); +function getDependencies(name) { + return loadHelper(name).getDependencies(); } -function intersectionTypeAnnotation(types) { - return (0, _validateNode.default)({ - type: "IntersectionTypeAnnotation", - types - }); +function ensure(name, newFileClass) { + FileClass || (FileClass = newFileClass); + loadHelper(name); } -function mixedTypeAnnotation() { +const list = exports.list = Object.keys(_helpers.default).map(name => name.replace(/^_/, "")); +var _default = exports["default"] = get; + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 39072: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = highlight; +exports.shouldHighlight = shouldHighlight; +var _jsTokens = __nccwpck_require__(58629); +var _helperValidatorIdentifier = __nccwpck_require__(63442); +var _chalk = _interopRequireWildcard(__nccwpck_require__(56673), true); +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]); +function getDefs(chalk) { return { - type: "MixedTypeAnnotation" + keyword: chalk.cyan, + capitalized: chalk.yellow, + jsxIdentifier: chalk.yellow, + punctuator: chalk.yellow, + number: chalk.magenta, + string: chalk.green, + regex: chalk.magenta, + comment: chalk.grey, + invalid: chalk.white.bgRed.bold }; } -function emptyTypeAnnotation() { - return { - type: "EmptyTypeAnnotation" +const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; +const BRACKET = /^[()[\]{}]$/; +let tokenize; +{ + const JSX_TAG = /^[a-z][\w-]*$/i; + const getTokenType = function (token, offset, text) { + if (token.type === "name") { + if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, true) || sometimesKeywords.has(token.value)) { + return "keyword"; + } + if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) == " colorize(str)).join("\n"); + } else { + highlighted += value; + } + } + return highlighted; } -function objectTypeInternalSlot(id, value, optional, _static, method) { - return (0, _validateNode.default)({ - type: "ObjectTypeInternalSlot", - id, - value, - optional, - static: _static, - method - }); +function shouldHighlight(options) { + return _chalk.default.level > 0 || options.forceColor; +} +let chalkWithForcedColor = undefined; +function getChalk(forceColor) { + if (forceColor) { + var _chalkWithForcedColor; + (_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({ + enabled: true, + level: 1 + }); + return chalkWithForcedColor; + } + return _chalk.default; } -function objectTypeCallProperty(value) { - return (0, _validateNode.default)({ - type: "ObjectTypeCallProperty", - value, - static: null - }); +{ + exports.getChalk = options => getChalk(options.forceColor); } -function objectTypeIndexer(id = null, key, value, variance = null) { - return (0, _validateNode.default)({ - type: "ObjectTypeIndexer", - id, - key, - value, - variance, - static: null - }); +function highlight(code, options = {}) { + if (code !== "" && shouldHighlight(options)) { + const defs = getDefs(getChalk(options.forceColor)); + return highlightTokens(defs, code); + } else { + return code; + } } -function objectTypeProperty(key, value, variance = null) { - return (0, _validateNode.default)({ - type: "ObjectTypeProperty", - key, - value, - variance, - kind: null, - method: null, - optional: null, - proto: null, - static: null - }); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 59067: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + return target; } -function objectTypeSpreadProperty(argument) { - return (0, _validateNode.default)({ - type: "ObjectTypeSpreadProperty", - argument - }); +class Position { + constructor(line, col, index) { + this.line = void 0; + this.column = void 0; + this.index = void 0; + this.line = line; + this.column = col; + this.index = index; + } } -function opaqueType(id, typeParameters = null, supertype = null, impltype) { - return (0, _validateNode.default)({ - type: "OpaqueType", - id, - typeParameters, - supertype, - impltype - }); +class SourceLocation { + constructor(start, end) { + this.start = void 0; + this.end = void 0; + this.filename = void 0; + this.identifierName = void 0; + this.start = start; + this.end = end; + } } -function qualifiedTypeIdentifier(id, qualification) { - return (0, _validateNode.default)({ - type: "QualifiedTypeIdentifier", - id, - qualification - }); +function createPositionWithColumnOffset(position, columnOffset) { + const { + line, + column, + index + } = position; + return new Position(line, column + columnOffset, index + columnOffset); } -function stringLiteralTypeAnnotation(value) { - return (0, _validateNode.default)({ - type: "StringLiteralTypeAnnotation", +const code = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"; +var ModuleErrors = { + ImportMetaOutsideModule: { + message: `import.meta may appear only with 'sourceType: "module"'`, + code + }, + ImportOutsideModule: { + message: `'import' and 'export' may appear only with 'sourceType: "module"'`, + code + } +}; +const NodeDescriptions = { + ArrayPattern: "array destructuring pattern", + AssignmentExpression: "assignment expression", + AssignmentPattern: "assignment expression", + ArrowFunctionExpression: "arrow function expression", + ConditionalExpression: "conditional expression", + CatchClause: "catch clause", + ForOfStatement: "for-of statement", + ForInStatement: "for-in statement", + ForStatement: "for-loop", + FormalParameters: "function parameter list", + Identifier: "identifier", + ImportSpecifier: "import specifier", + ImportDefaultSpecifier: "import default specifier", + ImportNamespaceSpecifier: "import namespace specifier", + ObjectPattern: "object destructuring pattern", + ParenthesizedExpression: "parenthesized expression", + RestElement: "rest element", + UpdateExpression: { + true: "prefix operation", + false: "postfix operation" + }, + VariableDeclarator: "variable declaration", + YieldExpression: "yield expression" +}; +const toNodeDescription = ({ + type, + prefix +}) => type === "UpdateExpression" ? NodeDescriptions.UpdateExpression[String(prefix)] : NodeDescriptions[type]; +var StandardErrors = { + AccessorIsGenerator: ({ + kind + }) => `A ${kind}ter cannot be a generator.`, + ArgumentsInClass: "'arguments' is only allowed in functions and class methods.", + AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.", + AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.", + AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.", + AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.", + AwaitUsingNotInAsyncContext: "'await using' is only allowed within async functions and at the top levels of modules.", + AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.", + AwaitNotInAsyncFunction: "'await' is only allowed within async functions.", + BadGetterArity: "A 'get' accessor must not have any formal parameters.", + BadSetterArity: "A 'set' accessor must have exactly one formal parameter.", + BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.", + ConstructorClassField: "Classes may not have a field named 'constructor'.", + ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.", + ConstructorIsAccessor: "Class constructor may not be an accessor.", + ConstructorIsAsync: "Constructor can't be an async function.", + ConstructorIsGenerator: "Constructor can't be a generator.", + DeclarationMissingInitializer: ({ + kind + }) => `Missing initializer in ${kind} declaration.`, + DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.", + DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.", + DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.", + DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?", + DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.", + DecoratorSemicolon: "Decorators must not be followed by a semicolon.", + DecoratorStaticBlock: "Decorators can't be used with a static block.", + DeferImportRequiresNamespace: 'Only `import defer * as x from "./module"` is valid.', + DeletePrivateField: "Deleting a private field is not allowed.", + DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.", + DuplicateConstructor: "Duplicate constructor in the same class.", + DuplicateDefaultExport: "Only one default export allowed per module.", + DuplicateExport: ({ + exportName + }) => `\`${exportName}\` has already been exported. Exported identifiers must be unique.`, + DuplicateProto: "Redefinition of __proto__ property.", + DuplicateRegExpFlags: "Duplicate regular expression flag.", + DynamicImportPhaseRequiresImportExpressions: ({ + phase + }) => `'import.${phase}(...)' can only be parsed when using the 'createImportExpressions' option.`, + ElementAfterRest: "Rest element must be last element.", + EscapedCharNotAnIdentifier: "Invalid Unicode escape.", + ExportBindingIsString: ({ + localName, + exportName + }) => `A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${localName}' as '${exportName}' } from 'some-module'\`?`, + ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.", + ForInOfLoopInitializer: ({ + type + }) => `'${type === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, + ForInUsing: "For-in loop may not start with 'using' declaration.", + ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.", + ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.", + GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.", + IllegalBreakContinue: ({ + type + }) => `Unsyntactic ${type === "BreakStatement" ? "break" : "continue"}.`, + IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.", + IllegalReturn: "'return' outside of function.", + ImportAttributesUseAssert: "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.", + ImportBindingIsString: ({ + importName + }) => `A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${importName}" as foo }\`?`, + ImportCallArgumentTrailingComma: "Trailing comma is disallowed inside import(...) arguments.", + ImportCallArity: ({ + maxArgumentCount + }) => `\`import()\` requires exactly ${maxArgumentCount === 1 ? "one argument" : "one or two arguments"}.`, + ImportCallNotNewExpression: "Cannot use new with import(...).", + ImportCallSpreadArgument: "`...` is not allowed in `import()`.", + ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.", + ImportReflectionHasAssertion: "`import module x` cannot have assertions.", + ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.', + IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.", + InvalidBigIntLiteral: "Invalid BigIntLiteral.", + InvalidCodePoint: "Code point out of bounds.", + InvalidCoverInitializedName: "Invalid shorthand property initializer.", + InvalidDecimal: "Invalid decimal.", + InvalidDigit: ({ + radix + }) => `Expected number in radix ${radix}.`, + InvalidEscapeSequence: "Bad character escape sequence.", + InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", + InvalidEscapedReservedWord: ({ + reservedWord + }) => `Escape sequence in keyword ${reservedWord}.`, + InvalidIdentifier: ({ + identifierName + }) => `Invalid identifier ${identifierName}.`, + InvalidLhs: ({ + ancestor + }) => `Invalid left-hand side in ${toNodeDescription(ancestor)}.`, + InvalidLhsBinding: ({ + ancestor + }) => `Binding invalid left-hand side in ${toNodeDescription(ancestor)}.`, + InvalidLhsOptionalChaining: ({ + ancestor + }) => `Invalid optional chaining in the left-hand side of ${toNodeDescription(ancestor)}.`, + InvalidNumber: "Invalid number.", + InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", + InvalidOrUnexpectedToken: ({ + unexpected + }) => `Unexpected character '${unexpected}'.`, + InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", + InvalidPrivateFieldResolution: ({ + identifierName + }) => `Private name #${identifierName} is not defined.`, + InvalidPropertyBindingPattern: "Binding member expression.", + InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.", + InvalidRestAssignmentPattern: "Invalid rest operator's argument.", + LabelRedeclaration: ({ + labelName + }) => `Label '${labelName}' is already declared.`, + LetInLexicalBinding: "'let' is disallowed as a lexically bound name.", + LineTerminatorBeforeArrow: "No line break is allowed before '=>'.", + MalformedRegExpFlags: "Invalid regular expression flag.", + MissingClassName: "A class name is required.", + MissingEqInAssignment: "Only '=' operator can be used for specifying default value.", + MissingSemicolon: "Missing semicolon.", + MissingPlugin: ({ + missingPlugin + }) => `This experimental syntax requires enabling the parser plugin: ${missingPlugin.map(name => JSON.stringify(name)).join(", ")}.`, + MissingOneOfPlugins: ({ + missingPlugin + }) => `This experimental syntax requires enabling one of the following parser plugin(s): ${missingPlugin.map(name => JSON.stringify(name)).join(", ")}.`, + MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.", + MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.", + ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.", + ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.", + ModuleAttributesWithDuplicateKeys: ({ + key + }) => `Duplicate key "${key}" is not allowed in module attributes.`, + ModuleExportNameHasLoneSurrogate: ({ + surrogateCharCode + }) => `An export name cannot include a lone surrogate, found '\\u${surrogateCharCode.toString(16)}'.`, + ModuleExportUndefined: ({ + localName + }) => `Export '${localName}' is not defined.`, + MultipleDefaultsInSwitch: "Multiple default clauses.", + NewlineAfterThrow: "Illegal newline after throw.", + NoCatchOrFinally: "Missing catch or finally clause.", + NumberIdentifier: "Identifier directly after number.", + NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.", + ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.", + OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.", + OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.", + OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.", + ParamDupe: "Argument name clash.", + PatternHasAccessor: "Object pattern can't contain getter or setter.", + PatternHasMethod: "Object pattern can't contain methods.", + PrivateInExpectedIn: ({ + identifierName + }) => `Private names are only allowed in property accesses (\`obj.#${identifierName}\`) or in \`in\` expressions (\`#${identifierName} in obj\`).`, + PrivateNameRedeclaration: ({ + identifierName + }) => `Duplicate private name #${identifierName}.`, + RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", + RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", + RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", + RecordNoProto: "'__proto__' is not allowed in Record expressions.", + RestTrailingComma: "Unexpected trailing comma after rest element.", + SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.", + SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.", + SourcePhaseImportRequiresDefault: 'Only `import source x from "./module"` is valid.', + StaticPrototype: "Classes may not have static property named prototype.", + SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?", + SuperPrivateField: "Private fields can't be accessed on super.", + TrailingDecorator: "Decorators must be attached to a class element.", + TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", + TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", + TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", + UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.", + UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.', + UnexpectedDigitAfterHash: "Unexpected digit after hash token.", + UnexpectedImportExport: "'import' and 'export' may only appear at the top level.", + UnexpectedKeyword: ({ + keyword + }) => `Unexpected keyword '${keyword}'.`, + UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.", + UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.", + UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.", + UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.", + UnexpectedPrivateField: "Unexpected private name.", + UnexpectedReservedWord: ({ + reservedWord + }) => `Unexpected reserved word '${reservedWord}'.`, + UnexpectedSuper: "'super' is only allowed in object methods and classes.", + UnexpectedToken: ({ + expected, + unexpected + }) => `Unexpected token${unexpected ? ` '${unexpected}'.` : ""}${expected ? `, expected "${expected}"` : ""}`, + UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.", + UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script`.", + UnsupportedBind: "Binding should be performed on object property.", + UnsupportedDecoratorExport: "A decorated export must export a class declaration.", + UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.", + UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.", + UnsupportedMetaProperty: ({ + target, + onlyValidPropertyName + }) => `The only valid meta property for ${target} is ${target}.${onlyValidPropertyName}.`, + UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.", + UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.", + UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).", + UnterminatedComment: "Unterminated comment.", + UnterminatedRegExp: "Unterminated regular expression.", + UnterminatedString: "Unterminated string constant.", + UnterminatedTemplate: "Unterminated template.", + UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.", + VarRedeclaration: ({ + identifierName + }) => `Identifier '${identifierName}' has already been declared.`, + YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.", + YieldInParameter: "Yield expression is not allowed in formal parameters.", + ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0." +}; +var StrictModeErrors = { + StrictDelete: "Deleting local variable in strict mode.", + StrictEvalArguments: ({ + referenceName + }) => `Assigning to '${referenceName}' in strict mode.`, + StrictEvalArgumentsBinding: ({ + bindingName + }) => `Binding '${bindingName}' in strict mode.`, + StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.", + StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.", + StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.", + StrictWith: "'with' in strict mode." +}; +const UnparenthesizedPipeBodyDescriptions = new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]); +var PipelineOperatorErrors = { + PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.", + PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.', + PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.", + PipeTopicUnconfiguredToken: ({ + token + }) => `Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`, + PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.", + PipeUnparenthesizedBody: ({ + type + }) => `Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({ + type + })}; please wrap it in parentheses.`, + PipelineBodyNoArrow: 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.', + PipelineBodySequenceExpression: "Pipeline body may not be a comma-separated sequence expression.", + PipelineHeadSequenceExpression: "Pipeline head should not be a comma-separated sequence expression.", + PipelineTopicUnused: "Pipeline is in topic style but does not use topic reference.", + PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.", + PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.' +}; +const _excluded$1 = ["toMessage"], + _excluded2$1 = ["message"]; +function defineHidden(obj, key, value) { + Object.defineProperty(obj, key, { + enumerable: false, + configurable: true, value }); } -function stringTypeAnnotation() { - return { - type: "StringTypeAnnotation" - }; -} -function symbolTypeAnnotation() { - return { - type: "SymbolTypeAnnotation" - }; -} -function thisTypeAnnotation() { - return { - type: "ThisTypeAnnotation" +function toParseErrorConstructor(_ref) { + let { + toMessage + } = _ref, + properties = _objectWithoutPropertiesLoose(_ref, _excluded$1); + return function constructor({ + loc, + details + }) { + const error = new SyntaxError(); + Object.assign(error, properties, { + loc, + pos: loc.index + }); + if ("missingPlugin" in details) { + Object.assign(error, { + missingPlugin: details.missingPlugin + }); + } + defineHidden(error, "clone", function clone(overrides = {}) { + var _overrides$loc; + const { + line, + column, + index + } = (_overrides$loc = overrides.loc) != null ? _overrides$loc : loc; + return constructor({ + loc: new Position(line, column, index), + details: Object.assign({}, details, overrides.details) + }); + }); + defineHidden(error, "details", details); + Object.defineProperty(error, "message", { + configurable: true, + get() { + const message = `${toMessage(details)} (${loc.line}:${loc.column})`; + this.message = message; + return message; + }, + set(value) { + Object.defineProperty(this, "message", { + value, + writable: true + }); + } + }); + return error; }; } -function tupleTypeAnnotation(types) { - return (0, _validateNode.default)({ - type: "TupleTypeAnnotation", - types - }); -} -function typeofTypeAnnotation(argument) { - return (0, _validateNode.default)({ - type: "TypeofTypeAnnotation", - argument - }); -} -function typeAlias(id, typeParameters = null, right) { - return (0, _validateNode.default)({ - type: "TypeAlias", - id, - typeParameters, - right - }); -} -function typeAnnotation(typeAnnotation) { - return (0, _validateNode.default)({ - type: "TypeAnnotation", - typeAnnotation - }); -} -function typeCastExpression(expression, typeAnnotation) { - return (0, _validateNode.default)({ - type: "TypeCastExpression", - expression, - typeAnnotation - }); -} -function typeParameter(bound = null, _default = null, variance = null) { - return (0, _validateNode.default)({ - type: "TypeParameter", - bound, - default: _default, - variance, - name: null - }); -} -function typeParameterDeclaration(params) { - return (0, _validateNode.default)({ - type: "TypeParameterDeclaration", - params - }); +function ParseErrorEnum(argument, syntaxPlugin) { + if (Array.isArray(argument)) { + return parseErrorTemplates => ParseErrorEnum(parseErrorTemplates, argument[0]); + } + const ParseErrorConstructors = {}; + for (const reasonCode of Object.keys(argument)) { + const template = argument[reasonCode]; + const _ref2 = typeof template === "string" ? { + message: () => template + } : typeof template === "function" ? { + message: template + } : template, + { + message + } = _ref2, + rest = _objectWithoutPropertiesLoose(_ref2, _excluded2$1); + const toMessage = typeof message === "string" ? () => message : message; + ParseErrorConstructors[reasonCode] = toParseErrorConstructor(Object.assign({ + code: "BABEL_PARSER_SYNTAX_ERROR", + reasonCode, + toMessage + }, syntaxPlugin ? { + syntaxPlugin + } : {}, rest)); + } + return ParseErrorConstructors; } -function typeParameterInstantiation(params) { - return (0, _validateNode.default)({ - type: "TypeParameterInstantiation", - params - }); +const Errors = Object.assign({}, ParseErrorEnum(ModuleErrors), ParseErrorEnum(StandardErrors), ParseErrorEnum(StrictModeErrors), ParseErrorEnum`pipelineOperator`(PipelineOperatorErrors)); +const { + defineProperty +} = Object; +const toUnenumerable = (object, key) => defineProperty(object, key, { + enumerable: false, + value: object[key] +}); +function toESTreeLocation(node) { + node.loc.start && toUnenumerable(node.loc.start, "index"); + node.loc.end && toUnenumerable(node.loc.end, "index"); + return node; } -function unionTypeAnnotation(types) { - return (0, _validateNode.default)({ - type: "UnionTypeAnnotation", - types - }); +var estree = superClass => class ESTreeParserMixin extends superClass { + parse() { + const file = toESTreeLocation(super.parse()); + if (this.options.tokens) { + file.tokens = file.tokens.map(toESTreeLocation); + } + return file; + } + parseRegExpLiteral({ + pattern, + flags + }) { + let regex = null; + try { + regex = new RegExp(pattern, flags); + } catch (e) {} + const node = this.estreeParseLiteral(regex); + node.regex = { + pattern, + flags + }; + return node; + } + parseBigIntLiteral(value) { + let bigInt; + try { + bigInt = BigInt(value); + } catch (_unused) { + bigInt = null; + } + const node = this.estreeParseLiteral(bigInt); + node.bigint = String(node.value || value); + return node; + } + parseDecimalLiteral(value) { + const decimal = null; + const node = this.estreeParseLiteral(decimal); + node.decimal = String(node.value || value); + return node; + } + estreeParseLiteral(value) { + return this.parseLiteral(value, "Literal"); + } + parseStringLiteral(value) { + return this.estreeParseLiteral(value); + } + parseNumericLiteral(value) { + return this.estreeParseLiteral(value); + } + parseNullLiteral() { + return this.estreeParseLiteral(null); + } + parseBooleanLiteral(value) { + return this.estreeParseLiteral(value); + } + directiveToStmt(directive) { + const expression = directive.value; + delete directive.value; + expression.type = "Literal"; + expression.raw = expression.extra.raw; + expression.value = expression.extra.expressionValue; + const stmt = directive; + stmt.type = "ExpressionStatement"; + stmt.expression = expression; + stmt.directive = expression.extra.rawValue; + delete expression.extra; + return stmt; + } + initFunction(node, isAsync) { + super.initFunction(node, isAsync); + node.expression = false; + } + checkDeclaration(node) { + if (node != null && this.isObjectProperty(node)) { + this.checkDeclaration(node.value); + } else { + super.checkDeclaration(node); + } + } + getObjectOrClassMethodParams(method) { + return method.value.params; + } + isValidDirective(stmt) { + var _stmt$expression$extr; + return stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && typeof stmt.expression.value === "string" && !((_stmt$expression$extr = stmt.expression.extra) != null && _stmt$expression$extr.parenthesized); + } + parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) { + super.parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse); + const directiveStatements = node.directives.map(d => this.directiveToStmt(d)); + node.body = directiveStatements.concat(node.body); + delete node.directives; + } + pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { + this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true); + if (method.typeParameters) { + method.value.typeParameters = method.typeParameters; + delete method.typeParameters; + } + classBody.body.push(method); + } + parsePrivateName() { + const node = super.parsePrivateName(); + { + if (!this.getPluginOption("estree", "classFeatures")) { + return node; + } + } + return this.convertPrivateNameToPrivateIdentifier(node); + } + convertPrivateNameToPrivateIdentifier(node) { + const name = super.getPrivateNameSV(node); + node = node; + delete node.id; + node.name = name; + node.type = "PrivateIdentifier"; + return node; + } + isPrivateName(node) { + { + if (!this.getPluginOption("estree", "classFeatures")) { + return super.isPrivateName(node); + } + } + return node.type === "PrivateIdentifier"; + } + getPrivateNameSV(node) { + { + if (!this.getPluginOption("estree", "classFeatures")) { + return super.getPrivateNameSV(node); + } + } + return node.name; + } + parseLiteral(value, type) { + const node = super.parseLiteral(value, type); + node.raw = node.extra.raw; + delete node.extra; + return node; + } + parseFunctionBody(node, allowExpression, isMethod = false) { + super.parseFunctionBody(node, allowExpression, isMethod); + node.expression = node.body.type !== "BlockStatement"; + } + parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) { + let funcNode = this.startNode(); + funcNode.kind = node.kind; + funcNode = super.parseMethod(funcNode, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope); + funcNode.type = "FunctionExpression"; + delete funcNode.kind; + node.value = funcNode; + if (type === "ClassPrivateMethod") { + node.computed = false; + } + return this.finishNode(node, "MethodDefinition"); + } + parseClassProperty(...args) { + const propertyNode = super.parseClassProperty(...args); + { + if (!this.getPluginOption("estree", "classFeatures")) { + return propertyNode; + } + } + propertyNode.type = "PropertyDefinition"; + return propertyNode; + } + parseClassPrivateProperty(...args) { + const propertyNode = super.parseClassPrivateProperty(...args); + { + if (!this.getPluginOption("estree", "classFeatures")) { + return propertyNode; + } + } + propertyNode.type = "PropertyDefinition"; + propertyNode.computed = false; + return propertyNode; + } + parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) { + const node = super.parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor); + if (node) { + node.type = "Property"; + if (node.kind === "method") { + node.kind = "init"; + } + node.shorthand = false; + } + return node; + } + parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors) { + const node = super.parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors); + if (node) { + node.kind = "init"; + node.type = "Property"; + } + return node; + } + isValidLVal(type, isUnparenthesizedInAssign, binding) { + return type === "Property" ? "value" : super.isValidLVal(type, isUnparenthesizedInAssign, binding); + } + isAssignable(node, isBinding) { + if (node != null && this.isObjectProperty(node)) { + return this.isAssignable(node.value, isBinding); + } + return super.isAssignable(node, isBinding); + } + toAssignable(node, isLHS = false) { + if (node != null && this.isObjectProperty(node)) { + const { + key, + value + } = node; + if (this.isPrivateName(key)) { + this.classScope.usePrivateName(this.getPrivateNameSV(key), key.loc.start); + } + this.toAssignable(value, isLHS); + } else { + super.toAssignable(node, isLHS); + } + } + toAssignableObjectExpressionProp(prop, isLast, isLHS) { + if (prop.kind === "get" || prop.kind === "set") { + this.raise(Errors.PatternHasAccessor, { + at: prop.key + }); + } else if (prop.method) { + this.raise(Errors.PatternHasMethod, { + at: prop.key + }); + } else { + super.toAssignableObjectExpressionProp(prop, isLast, isLHS); + } + } + finishCallExpression(unfinished, optional) { + const node = super.finishCallExpression(unfinished, optional); + if (node.callee.type === "Import") { + node.type = "ImportExpression"; + node.source = node.arguments[0]; + if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) { + var _node$arguments$, _node$arguments$2; + node.options = (_node$arguments$ = node.arguments[1]) != null ? _node$arguments$ : null; + node.attributes = (_node$arguments$2 = node.arguments[1]) != null ? _node$arguments$2 : null; + } + delete node.arguments; + delete node.callee; + } + return node; + } + toReferencedArguments(node) { + if (node.type === "ImportExpression") { + return; + } + super.toReferencedArguments(node); + } + parseExport(unfinished, decorators) { + const exportStartLoc = this.state.lastTokStartLoc; + const node = super.parseExport(unfinished, decorators); + switch (node.type) { + case "ExportAllDeclaration": + node.exported = null; + break; + case "ExportNamedDeclaration": + if (node.specifiers.length === 1 && node.specifiers[0].type === "ExportNamespaceSpecifier") { + node.type = "ExportAllDeclaration"; + node.exported = node.specifiers[0].exported; + delete node.specifiers; + } + case "ExportDefaultDeclaration": + { + var _declaration$decorato; + const { + declaration + } = node; + if ((declaration == null ? void 0 : declaration.type) === "ClassDeclaration" && ((_declaration$decorato = declaration.decorators) == null ? void 0 : _declaration$decorato.length) > 0 && declaration.start === node.start) { + this.resetStartLocation(node, exportStartLoc); + } + } + break; + } + return node; + } + parseSubscript(base, startLoc, noCalls, state) { + const node = super.parseSubscript(base, startLoc, noCalls, state); + if (state.optionalChainMember) { + if (node.type === "OptionalMemberExpression" || node.type === "OptionalCallExpression") { + node.type = node.type.substring(8); + } + if (state.stop) { + const chain = this.startNodeAtNode(node); + chain.expression = node; + return this.finishNode(chain, "ChainExpression"); + } + } else if (node.type === "MemberExpression" || node.type === "CallExpression") { + node.optional = false; + } + return node; + } + isOptionalMemberExpression(node) { + if (node.type === "ChainExpression") { + return node.expression.type === "MemberExpression"; + } + return super.isOptionalMemberExpression(node); + } + hasPropertyAsPrivateName(node) { + if (node.type === "ChainExpression") { + node = node.expression; + } + return super.hasPropertyAsPrivateName(node); + } + isObjectProperty(node) { + return node.type === "Property" && node.kind === "init" && !node.method; + } + isObjectMethod(node) { + return node.method || node.kind === "get" || node.kind === "set"; + } + finishNodeAt(node, type, endLoc) { + return toESTreeLocation(super.finishNodeAt(node, type, endLoc)); + } + resetStartLocation(node, startLoc) { + super.resetStartLocation(node, startLoc); + toESTreeLocation(node); + } + resetEndLocation(node, endLoc = this.state.lastTokEndLoc) { + super.resetEndLocation(node, endLoc); + toESTreeLocation(node); + } +}; +class TokContext { + constructor(token, preserveSpace) { + this.token = void 0; + this.preserveSpace = void 0; + this.token = token; + this.preserveSpace = !!preserveSpace; + } } -function variance(kind) { - return (0, _validateNode.default)({ - type: "Variance", - kind - }); +const types = { + brace: new TokContext("{"), + j_oTag: new TokContext("...", true) +}; +{ + types.template = new TokContext("`", true); } -function voidTypeAnnotation() { - return { - type: "VoidTypeAnnotation" - }; +const beforeExpr = true; +const startsExpr = true; +const isLoop = true; +const isAssign = true; +const prefix = true; +const postfix = true; +class ExportedTokenType { + constructor(label, conf = {}) { + this.label = void 0; + this.keyword = void 0; + this.beforeExpr = void 0; + this.startsExpr = void 0; + this.rightAssociative = void 0; + this.isLoop = void 0; + this.isAssign = void 0; + this.prefix = void 0; + this.postfix = void 0; + this.binop = void 0; + this.label = label; + this.keyword = conf.keyword; + this.beforeExpr = !!conf.beforeExpr; + this.startsExpr = !!conf.startsExpr; + this.rightAssociative = !!conf.rightAssociative; + this.isLoop = !!conf.isLoop; + this.isAssign = !!conf.isAssign; + this.prefix = !!conf.prefix; + this.postfix = !!conf.postfix; + this.binop = conf.binop != null ? conf.binop : null; + { + this.updateContext = null; + } + } } -function enumDeclaration(id, body) { - return (0, _validateNode.default)({ - type: "EnumDeclaration", - id, - body - }); +const keywords$1 = new Map(); +function createKeyword(name, options = {}) { + options.keyword = name; + const token = createToken(name, options); + keywords$1.set(name, token); + return token; } -function enumBooleanBody(members) { - return (0, _validateNode.default)({ - type: "EnumBooleanBody", - members, - explicitType: null, - hasUnknownMembers: null +function createBinop(name, binop) { + return createToken(name, { + beforeExpr, + binop }); } -function enumNumberBody(members) { - return (0, _validateNode.default)({ - type: "EnumNumberBody", - members, - explicitType: null, - hasUnknownMembers: null - }); +let tokenTypeCounter = -1; +const tokenTypes = []; +const tokenLabels = []; +const tokenBinops = []; +const tokenBeforeExprs = []; +const tokenStartsExprs = []; +const tokenPrefixes = []; +function createToken(name, options = {}) { + var _options$binop, _options$beforeExpr, _options$startsExpr, _options$prefix; + ++tokenTypeCounter; + tokenLabels.push(name); + tokenBinops.push((_options$binop = options.binop) != null ? _options$binop : -1); + tokenBeforeExprs.push((_options$beforeExpr = options.beforeExpr) != null ? _options$beforeExpr : false); + tokenStartsExprs.push((_options$startsExpr = options.startsExpr) != null ? _options$startsExpr : false); + tokenPrefixes.push((_options$prefix = options.prefix) != null ? _options$prefix : false); + tokenTypes.push(new ExportedTokenType(name, options)); + return tokenTypeCounter; } -function enumStringBody(members) { - return (0, _validateNode.default)({ - type: "EnumStringBody", - members, - explicitType: null, - hasUnknownMembers: null - }); +function createKeywordLike(name, options = {}) { + var _options$binop2, _options$beforeExpr2, _options$startsExpr2, _options$prefix2; + ++tokenTypeCounter; + keywords$1.set(name, tokenTypeCounter); + tokenLabels.push(name); + tokenBinops.push((_options$binop2 = options.binop) != null ? _options$binop2 : -1); + tokenBeforeExprs.push((_options$beforeExpr2 = options.beforeExpr) != null ? _options$beforeExpr2 : false); + tokenStartsExprs.push((_options$startsExpr2 = options.startsExpr) != null ? _options$startsExpr2 : false); + tokenPrefixes.push((_options$prefix2 = options.prefix) != null ? _options$prefix2 : false); + tokenTypes.push(new ExportedTokenType("name", options)); + return tokenTypeCounter; } -function enumSymbolBody(members) { - return (0, _validateNode.default)({ - type: "EnumSymbolBody", - members, - hasUnknownMembers: null - }); +const tt = { + bracketL: createToken("[", { + beforeExpr, + startsExpr + }), + bracketHashL: createToken("#[", { + beforeExpr, + startsExpr + }), + bracketBarL: createToken("[|", { + beforeExpr, + startsExpr + }), + bracketR: createToken("]"), + bracketBarR: createToken("|]"), + braceL: createToken("{", { + beforeExpr, + startsExpr + }), + braceBarL: createToken("{|", { + beforeExpr, + startsExpr + }), + braceHashL: createToken("#{", { + beforeExpr, + startsExpr + }), + braceR: createToken("}"), + braceBarR: createToken("|}"), + parenL: createToken("(", { + beforeExpr, + startsExpr + }), + parenR: createToken(")"), + comma: createToken(",", { + beforeExpr + }), + semi: createToken(";", { + beforeExpr + }), + colon: createToken(":", { + beforeExpr + }), + doubleColon: createToken("::", { + beforeExpr + }), + dot: createToken("."), + question: createToken("?", { + beforeExpr + }), + questionDot: createToken("?."), + arrow: createToken("=>", { + beforeExpr + }), + template: createToken("template"), + ellipsis: createToken("...", { + beforeExpr + }), + backQuote: createToken("`", { + startsExpr + }), + dollarBraceL: createToken("${", { + beforeExpr, + startsExpr + }), + templateTail: createToken("...`", { + startsExpr + }), + templateNonTail: createToken("...${", { + beforeExpr, + startsExpr + }), + at: createToken("@"), + hash: createToken("#", { + startsExpr + }), + interpreterDirective: createToken("#!..."), + eq: createToken("=", { + beforeExpr, + isAssign + }), + assign: createToken("_=", { + beforeExpr, + isAssign + }), + slashAssign: createToken("_=", { + beforeExpr, + isAssign + }), + xorAssign: createToken("_=", { + beforeExpr, + isAssign + }), + moduloAssign: createToken("_=", { + beforeExpr, + isAssign + }), + incDec: createToken("++/--", { + prefix, + postfix, + startsExpr + }), + bang: createToken("!", { + beforeExpr, + prefix, + startsExpr + }), + tilde: createToken("~", { + beforeExpr, + prefix, + startsExpr + }), + doubleCaret: createToken("^^", { + startsExpr + }), + doubleAt: createToken("@@", { + startsExpr + }), + pipeline: createBinop("|>", 0), + nullishCoalescing: createBinop("??", 1), + logicalOR: createBinop("||", 1), + logicalAND: createBinop("&&", 2), + bitwiseOR: createBinop("|", 3), + bitwiseXOR: createBinop("^", 4), + bitwiseAND: createBinop("&", 5), + equality: createBinop("==/!=/===/!==", 6), + lt: createBinop("/<=/>=", 7), + gt: createBinop("/<=/>=", 7), + relational: createBinop("/<=/>=", 7), + bitShift: createBinop("<>/>>>", 8), + bitShiftL: createBinop("<>/>>>", 8), + bitShiftR: createBinop("<>/>>>", 8), + plusMin: createToken("+/-", { + beforeExpr, + binop: 9, + prefix, + startsExpr + }), + modulo: createToken("%", { + binop: 10, + startsExpr + }), + star: createToken("*", { + binop: 10 + }), + slash: createBinop("/", 10), + exponent: createToken("**", { + beforeExpr, + binop: 11, + rightAssociative: true + }), + _in: createKeyword("in", { + beforeExpr, + binop: 7 + }), + _instanceof: createKeyword("instanceof", { + beforeExpr, + binop: 7 + }), + _break: createKeyword("break"), + _case: createKeyword("case", { + beforeExpr + }), + _catch: createKeyword("catch"), + _continue: createKeyword("continue"), + _debugger: createKeyword("debugger"), + _default: createKeyword("default", { + beforeExpr + }), + _else: createKeyword("else", { + beforeExpr + }), + _finally: createKeyword("finally"), + _function: createKeyword("function", { + startsExpr + }), + _if: createKeyword("if"), + _return: createKeyword("return", { + beforeExpr + }), + _switch: createKeyword("switch"), + _throw: createKeyword("throw", { + beforeExpr, + prefix, + startsExpr + }), + _try: createKeyword("try"), + _var: createKeyword("var"), + _const: createKeyword("const"), + _with: createKeyword("with"), + _new: createKeyword("new", { + beforeExpr, + startsExpr + }), + _this: createKeyword("this", { + startsExpr + }), + _super: createKeyword("super", { + startsExpr + }), + _class: createKeyword("class", { + startsExpr + }), + _extends: createKeyword("extends", { + beforeExpr + }), + _export: createKeyword("export"), + _import: createKeyword("import", { + startsExpr + }), + _null: createKeyword("null", { + startsExpr + }), + _true: createKeyword("true", { + startsExpr + }), + _false: createKeyword("false", { + startsExpr + }), + _typeof: createKeyword("typeof", { + beforeExpr, + prefix, + startsExpr + }), + _void: createKeyword("void", { + beforeExpr, + prefix, + startsExpr + }), + _delete: createKeyword("delete", { + beforeExpr, + prefix, + startsExpr + }), + _do: createKeyword("do", { + isLoop, + beforeExpr + }), + _for: createKeyword("for", { + isLoop + }), + _while: createKeyword("while", { + isLoop + }), + _as: createKeywordLike("as", { + startsExpr + }), + _assert: createKeywordLike("assert", { + startsExpr + }), + _async: createKeywordLike("async", { + startsExpr + }), + _await: createKeywordLike("await", { + startsExpr + }), + _defer: createKeywordLike("defer", { + startsExpr + }), + _from: createKeywordLike("from", { + startsExpr + }), + _get: createKeywordLike("get", { + startsExpr + }), + _let: createKeywordLike("let", { + startsExpr + }), + _meta: createKeywordLike("meta", { + startsExpr + }), + _of: createKeywordLike("of", { + startsExpr + }), + _sent: createKeywordLike("sent", { + startsExpr + }), + _set: createKeywordLike("set", { + startsExpr + }), + _source: createKeywordLike("source", { + startsExpr + }), + _static: createKeywordLike("static", { + startsExpr + }), + _using: createKeywordLike("using", { + startsExpr + }), + _yield: createKeywordLike("yield", { + startsExpr + }), + _asserts: createKeywordLike("asserts", { + startsExpr + }), + _checks: createKeywordLike("checks", { + startsExpr + }), + _exports: createKeywordLike("exports", { + startsExpr + }), + _global: createKeywordLike("global", { + startsExpr + }), + _implements: createKeywordLike("implements", { + startsExpr + }), + _intrinsic: createKeywordLike("intrinsic", { + startsExpr + }), + _infer: createKeywordLike("infer", { + startsExpr + }), + _is: createKeywordLike("is", { + startsExpr + }), + _mixins: createKeywordLike("mixins", { + startsExpr + }), + _proto: createKeywordLike("proto", { + startsExpr + }), + _require: createKeywordLike("require", { + startsExpr + }), + _satisfies: createKeywordLike("satisfies", { + startsExpr + }), + _keyof: createKeywordLike("keyof", { + startsExpr + }), + _readonly: createKeywordLike("readonly", { + startsExpr + }), + _unique: createKeywordLike("unique", { + startsExpr + }), + _abstract: createKeywordLike("abstract", { + startsExpr + }), + _declare: createKeywordLike("declare", { + startsExpr + }), + _enum: createKeywordLike("enum", { + startsExpr + }), + _module: createKeywordLike("module", { + startsExpr + }), + _namespace: createKeywordLike("namespace", { + startsExpr + }), + _interface: createKeywordLike("interface", { + startsExpr + }), + _type: createKeywordLike("type", { + startsExpr + }), + _opaque: createKeywordLike("opaque", { + startsExpr + }), + name: createToken("name", { + startsExpr + }), + string: createToken("string", { + startsExpr + }), + num: createToken("num", { + startsExpr + }), + bigint: createToken("bigint", { + startsExpr + }), + decimal: createToken("decimal", { + startsExpr + }), + regexp: createToken("regexp", { + startsExpr + }), + privateName: createToken("#name", { + startsExpr + }), + eof: createToken("eof"), + jsxName: createToken("jsxName"), + jsxText: createToken("jsxText", { + beforeExpr: true + }), + jsxTagStart: createToken("jsxTagStart", { + startsExpr: true + }), + jsxTagEnd: createToken("jsxTagEnd"), + placeholder: createToken("%%", { + startsExpr: true + }) +}; +function tokenIsIdentifier(token) { + return token >= 93 && token <= 132; } -function enumBooleanMember(id) { - return (0, _validateNode.default)({ - type: "EnumBooleanMember", - id, - init: null - }); +function tokenKeywordOrIdentifierIsKeyword(token) { + return token <= 92; } -function enumNumberMember(id, init) { - return (0, _validateNode.default)({ - type: "EnumNumberMember", - id, - init - }); +function tokenIsKeywordOrIdentifier(token) { + return token >= 58 && token <= 132; } -function enumStringMember(id, init) { - return (0, _validateNode.default)({ - type: "EnumStringMember", - id, - init - }); +function tokenIsLiteralPropertyName(token) { + return token >= 58 && token <= 136; } -function enumDefaultedMember(id) { - return (0, _validateNode.default)({ - type: "EnumDefaultedMember", - id - }); +function tokenComesBeforeExpression(token) { + return tokenBeforeExprs[token]; } -function indexedAccessType(objectType, indexType) { - return (0, _validateNode.default)({ - type: "IndexedAccessType", - objectType, - indexType - }); +function tokenCanStartExpression(token) { + return tokenStartsExprs[token]; } -function optionalIndexedAccessType(objectType, indexType) { - return (0, _validateNode.default)({ - type: "OptionalIndexedAccessType", - objectType, - indexType, - optional: null - }); +function tokenIsAssignment(token) { + return token >= 29 && token <= 33; } -function jsxAttribute(name, value = null) { - return (0, _validateNode.default)({ - type: "JSXAttribute", - name, - value - }); +function tokenIsFlowInterfaceOrTypeOrOpaque(token) { + return token >= 129 && token <= 131; } -function jsxClosingElement(name) { - return (0, _validateNode.default)({ - type: "JSXClosingElement", - name - }); +function tokenIsLoop(token) { + return token >= 90 && token <= 92; } -function jsxElement(openingElement, closingElement = null, children, selfClosing = null) { - return (0, _validateNode.default)({ - type: "JSXElement", - openingElement, - closingElement, - children, - selfClosing - }); +function tokenIsKeyword(token) { + return token >= 58 && token <= 92; } -function jsxEmptyExpression() { - return { - type: "JSXEmptyExpression" - }; +function tokenIsOperator(token) { + return token >= 39 && token <= 59; } -function jsxExpressionContainer(expression) { - return (0, _validateNode.default)({ - type: "JSXExpressionContainer", - expression - }); +function tokenIsPostfix(token) { + return token === 34; } -function jsxSpreadChild(expression) { - return (0, _validateNode.default)({ - type: "JSXSpreadChild", - expression - }); +function tokenIsPrefix(token) { + return tokenPrefixes[token]; } -function jsxIdentifier(name) { - return (0, _validateNode.default)({ - type: "JSXIdentifier", - name - }); +function tokenIsTSTypeOperator(token) { + return token >= 121 && token <= 123; } -function jsxMemberExpression(object, property) { - return (0, _validateNode.default)({ - type: "JSXMemberExpression", - object, - property - }); +function tokenIsTSDeclarationStart(token) { + return token >= 124 && token <= 130; } -function jsxNamespacedName(namespace, name) { - return (0, _validateNode.default)({ - type: "JSXNamespacedName", - namespace, - name - }); +function tokenLabelName(token) { + return tokenLabels[token]; } -function jsxOpeningElement(name, attributes, selfClosing = false) { - return (0, _validateNode.default)({ - type: "JSXOpeningElement", - name, - attributes, - selfClosing - }); +function tokenOperatorPrecedence(token) { + return tokenBinops[token]; } -function jsxSpreadAttribute(argument) { - return (0, _validateNode.default)({ - type: "JSXSpreadAttribute", - argument - }); +function tokenIsRightAssociative(token) { + return token === 57; } -function jsxText(value) { - return (0, _validateNode.default)({ - type: "JSXText", - value - }); +function tokenIsTemplate(token) { + return token >= 24 && token <= 25; } -function jsxFragment(openingFragment, closingFragment, children) { - return (0, _validateNode.default)({ - type: "JSXFragment", - openingFragment, - closingFragment, - children - }); +function getExportedToken(token) { + return tokenTypes[token]; } -function jsxOpeningFragment() { - return { - type: "JSXOpeningFragment" +{ + tokenTypes[8].updateContext = context => { + context.pop(); }; -} -function jsxClosingFragment() { - return { - type: "JSXClosingFragment" + tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = context => { + context.push(types.brace); }; -} -function noop() { - return { - type: "Noop" + tokenTypes[22].updateContext = context => { + if (context[context.length - 1] === types.template) { + context.pop(); + } else { + context.push(types.template); + } }; -} -function placeholder(expectedNode, name) { - return (0, _validateNode.default)({ - type: "Placeholder", - expectedNode, - name - }); -} -function v8IntrinsicIdentifier(name) { - return (0, _validateNode.default)({ - type: "V8IntrinsicIdentifier", - name - }); -} -function argumentPlaceholder() { - return { - type: "ArgumentPlaceholder" + tokenTypes[142].updateContext = context => { + context.push(types.j_expr, types.j_oTag); }; } -function bindExpression(object, callee) { - return (0, _validateNode.default)({ - type: "BindExpression", - object, - callee - }); -} -function importAttribute(key, value) { - return (0, _validateNode.default)({ - type: "ImportAttribute", - key, - value - }); -} -function decorator(expression) { - return (0, _validateNode.default)({ - type: "Decorator", - expression - }); -} -function doExpression(body, async = false) { - return (0, _validateNode.default)({ - type: "DoExpression", - body, - async - }); -} -function exportDefaultSpecifier(exported) { - return (0, _validateNode.default)({ - type: "ExportDefaultSpecifier", - exported - }); -} -function recordExpression(properties) { - return (0, _validateNode.default)({ - type: "RecordExpression", - properties - }); -} -function tupleExpression(elements = []) { - return (0, _validateNode.default)({ - type: "TupleExpression", - elements - }); -} -function decimalLiteral(value) { - return (0, _validateNode.default)({ - type: "DecimalLiteral", - value - }); +let nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; +let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65"; +const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); +const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); +nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; +const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191]; +const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; +function isInAstralSet(code, set) { + let pos = 0x10000; + for (let i = 0, length = set.length; i < length; i += 2) { + pos += set[i]; + if (pos > code) return false; + pos += set[i + 1]; + if (pos >= code) return true; + } + return false; } -function moduleExpression(body) { - return (0, _validateNode.default)({ - type: "ModuleExpression", - body - }); +function isIdentifierStart(code) { + if (code < 65) return code === 36; + if (code <= 90) return true; + if (code < 97) return code === 95; + if (code <= 122) return true; + if (code <= 0xffff) { + return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)); + } + return isInAstralSet(code, astralIdentifierStartCodes); } -function topicReference() { - return { - type: "TopicReference" - }; +function isIdentifierChar(code) { + if (code < 48) return code === 36; + if (code < 58) return true; + if (code < 65) return false; + if (code <= 90) return true; + if (code < 97) return code === 95; + if (code <= 122) return true; + if (code <= 0xffff) { + return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)); + } + return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes); } -function pipelineTopicExpression(expression) { - return (0, _validateNode.default)({ - type: "PipelineTopicExpression", - expression - }); +const reservedWords = { + keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], + strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], + strictBind: ["eval", "arguments"] +}; +const keywords = new Set(reservedWords.keyword); +const reservedWordsStrictSet = new Set(reservedWords.strict); +const reservedWordsStrictBindSet = new Set(reservedWords.strictBind); +function isReservedWord(word, inModule) { + return inModule && word === "await" || word === "enum"; } -function pipelineBareFunction(callee) { - return (0, _validateNode.default)({ - type: "PipelineBareFunction", - callee - }); +function isStrictReservedWord(word, inModule) { + return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word); } -function pipelinePrimaryTopicReference() { - return { - type: "PipelinePrimaryTopicReference" - }; +function isStrictBindOnlyReservedWord(word) { + return reservedWordsStrictBindSet.has(word); } -function tsParameterProperty(parameter) { - return (0, _validateNode.default)({ - type: "TSParameterProperty", - parameter - }); +function isStrictBindReservedWord(word, inModule) { + return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word); } -function tsDeclareFunction(id = null, typeParameters = null, params, returnType = null) { - return (0, _validateNode.default)({ - type: "TSDeclareFunction", - id, - typeParameters, - params, - returnType - }); +function isKeyword(word) { + return keywords.has(word); } -function tsDeclareMethod(decorators = null, key, typeParameters = null, params, returnType = null) { - return (0, _validateNode.default)({ - type: "TSDeclareMethod", - decorators, - key, - typeParameters, - params, - returnType - }); +function isIteratorStart(current, next, next2) { + return current === 64 && next === 64 && isIdentifierStart(next2); } -function tsQualifiedName(left, right) { - return (0, _validateNode.default)({ - type: "TSQualifiedName", - left, - right - }); +const reservedWordLikeSet = new Set(["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete", "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "eval", "arguments", "enum", "await"]); +function canBeReservedWord(word) { + return reservedWordLikeSet.has(word); } -function tsCallSignatureDeclaration(typeParameters = null, parameters, typeAnnotation = null) { - return (0, _validateNode.default)({ - type: "TSCallSignatureDeclaration", - typeParameters, - parameters, - typeAnnotation - }); +class Scope { + constructor(flags) { + this.var = new Set(); + this.lexical = new Set(); + this.functions = new Set(); + this.flags = flags; + } } -function tsConstructSignatureDeclaration(typeParameters = null, parameters, typeAnnotation = null) { - return (0, _validateNode.default)({ - type: "TSConstructSignatureDeclaration", - typeParameters, - parameters, - typeAnnotation - }); +class ScopeHandler { + constructor(parser, inModule) { + this.parser = void 0; + this.scopeStack = []; + this.inModule = void 0; + this.undefinedExports = new Map(); + this.parser = parser; + this.inModule = inModule; + } + get inTopLevel() { + return (this.currentScope().flags & 1) > 0; + } + get inFunction() { + return (this.currentVarScopeFlags() & 2) > 0; + } + get allowSuper() { + return (this.currentThisScopeFlags() & 16) > 0; + } + get allowDirectSuper() { + return (this.currentThisScopeFlags() & 32) > 0; + } + get inClass() { + return (this.currentThisScopeFlags() & 64) > 0; + } + get inClassAndNotInNonArrowFunction() { + const flags = this.currentThisScopeFlags(); + return (flags & 64) > 0 && (flags & 2) === 0; + } + get inStaticBlock() { + for (let i = this.scopeStack.length - 1;; i--) { + const { + flags + } = this.scopeStack[i]; + if (flags & 128) { + return true; + } + if (flags & (387 | 64)) { + return false; + } + } + } + get inNonArrowFunction() { + return (this.currentThisScopeFlags() & 2) > 0; + } + get treatFunctionsAsVar() { + return this.treatFunctionsAsVarInScope(this.currentScope()); + } + createScope(flags) { + return new Scope(flags); + } + enter(flags) { + this.scopeStack.push(this.createScope(flags)); + } + exit() { + const scope = this.scopeStack.pop(); + return scope.flags; + } + treatFunctionsAsVarInScope(scope) { + return !!(scope.flags & (2 | 128) || !this.parser.inModule && scope.flags & 1); + } + declareName(name, bindingType, loc) { + let scope = this.currentScope(); + if (bindingType & 8 || bindingType & 16) { + this.checkRedeclarationInScope(scope, name, bindingType, loc); + if (bindingType & 16) { + scope.functions.add(name); + } else { + scope.lexical.add(name); + } + if (bindingType & 8) { + this.maybeExportDefined(scope, name); + } + } else if (bindingType & 4) { + for (let i = this.scopeStack.length - 1; i >= 0; --i) { + scope = this.scopeStack[i]; + this.checkRedeclarationInScope(scope, name, bindingType, loc); + scope.var.add(name); + this.maybeExportDefined(scope, name); + if (scope.flags & 387) break; + } + } + if (this.parser.inModule && scope.flags & 1) { + this.undefinedExports.delete(name); + } + } + maybeExportDefined(scope, name) { + if (this.parser.inModule && scope.flags & 1) { + this.undefinedExports.delete(name); + } + } + checkRedeclarationInScope(scope, name, bindingType, loc) { + if (this.isRedeclaredInScope(scope, name, bindingType)) { + this.parser.raise(Errors.VarRedeclaration, { + at: loc, + identifierName: name + }); + } + } + isRedeclaredInScope(scope, name, bindingType) { + if (!(bindingType & 1)) return false; + if (bindingType & 8) { + return scope.lexical.has(name) || scope.functions.has(name) || scope.var.has(name); + } + if (bindingType & 16) { + return scope.lexical.has(name) || !this.treatFunctionsAsVarInScope(scope) && scope.var.has(name); + } + return scope.lexical.has(name) && !(scope.flags & 8 && scope.lexical.values().next().value === name) || !this.treatFunctionsAsVarInScope(scope) && scope.functions.has(name); + } + checkLocalExport(id) { + const { + name + } = id; + const topLevelScope = this.scopeStack[0]; + if (!topLevelScope.lexical.has(name) && !topLevelScope.var.has(name) && !topLevelScope.functions.has(name)) { + this.undefinedExports.set(name, id.loc.start); + } + } + currentScope() { + return this.scopeStack[this.scopeStack.length - 1]; + } + currentVarScopeFlags() { + for (let i = this.scopeStack.length - 1;; i--) { + const { + flags + } = this.scopeStack[i]; + if (flags & 387) { + return flags; + } + } + } + currentThisScopeFlags() { + for (let i = this.scopeStack.length - 1;; i--) { + const { + flags + } = this.scopeStack[i]; + if (flags & (387 | 64) && !(flags & 4)) { + return flags; + } + } + } } -function tsPropertySignature(key, typeAnnotation = null, initializer = null) { - return (0, _validateNode.default)({ - type: "TSPropertySignature", - key, - typeAnnotation, - initializer, - kind: null - }); +class FlowScope extends Scope { + constructor(...args) { + super(...args); + this.declareFunctions = new Set(); + } } -function tsMethodSignature(key, typeParameters = null, parameters, typeAnnotation = null) { - return (0, _validateNode.default)({ - type: "TSMethodSignature", - key, - typeParameters, - parameters, - typeAnnotation, - kind: null - }); +class FlowScopeHandler extends ScopeHandler { + createScope(flags) { + return new FlowScope(flags); + } + declareName(name, bindingType, loc) { + const scope = this.currentScope(); + if (bindingType & 2048) { + this.checkRedeclarationInScope(scope, name, bindingType, loc); + this.maybeExportDefined(scope, name); + scope.declareFunctions.add(name); + return; + } + super.declareName(name, bindingType, loc); + } + isRedeclaredInScope(scope, name, bindingType) { + if (super.isRedeclaredInScope(scope, name, bindingType)) return true; + if (bindingType & 2048) { + return !scope.declareFunctions.has(name) && (scope.lexical.has(name) || scope.functions.has(name)); + } + return false; + } + checkLocalExport(id) { + if (!this.scopeStack[0].declareFunctions.has(id.name)) { + super.checkLocalExport(id); + } + } } -function tsIndexSignature(parameters, typeAnnotation = null) { - return (0, _validateNode.default)({ - type: "TSIndexSignature", - parameters, - typeAnnotation - }); +class BaseParser { + constructor() { + this.sawUnambiguousESM = false; + this.ambiguousScriptDifferentAst = false; + } + hasPlugin(pluginConfig) { + if (typeof pluginConfig === "string") { + return this.plugins.has(pluginConfig); + } else { + const [pluginName, pluginOptions] = pluginConfig; + if (!this.hasPlugin(pluginName)) { + return false; + } + const actualOptions = this.plugins.get(pluginName); + for (const key of Object.keys(pluginOptions)) { + if ((actualOptions == null ? void 0 : actualOptions[key]) !== pluginOptions[key]) { + return false; + } + } + return true; + } + } + getPluginOption(plugin, name) { + var _this$plugins$get; + return (_this$plugins$get = this.plugins.get(plugin)) == null ? void 0 : _this$plugins$get[name]; + } } -function tsAnyKeyword() { - return { - type: "TSAnyKeyword" - }; +function setTrailingComments(node, comments) { + if (node.trailingComments === undefined) { + node.trailingComments = comments; + } else { + node.trailingComments.unshift(...comments); + } } -function tsBooleanKeyword() { - return { - type: "TSBooleanKeyword" - }; +function setLeadingComments(node, comments) { + if (node.leadingComments === undefined) { + node.leadingComments = comments; + } else { + node.leadingComments.unshift(...comments); + } } -function tsBigIntKeyword() { - return { - type: "TSBigIntKeyword" - }; +function setInnerComments(node, comments) { + if (node.innerComments === undefined) { + node.innerComments = comments; + } else { + node.innerComments.unshift(...comments); + } } -function tsIntrinsicKeyword() { - return { - type: "TSIntrinsicKeyword" - }; +function adjustInnerComments(node, elements, commentWS) { + let lastElement = null; + let i = elements.length; + while (lastElement === null && i > 0) { + lastElement = elements[--i]; + } + if (lastElement === null || lastElement.start > commentWS.start) { + setInnerComments(node, commentWS.comments); + } else { + setTrailingComments(lastElement, commentWS.comments); + } } -function tsNeverKeyword() { - return { - type: "TSNeverKeyword" - }; +class CommentsParser extends BaseParser { + addComment(comment) { + if (this.filename) comment.loc.filename = this.filename; + this.state.comments.push(comment); + } + processComment(node) { + const { + commentStack + } = this.state; + const commentStackLength = commentStack.length; + if (commentStackLength === 0) return; + let i = commentStackLength - 1; + const lastCommentWS = commentStack[i]; + if (lastCommentWS.start === node.end) { + lastCommentWS.leadingNode = node; + i--; + } + const { + start: nodeStart + } = node; + for (; i >= 0; i--) { + const commentWS = commentStack[i]; + const commentEnd = commentWS.end; + if (commentEnd > nodeStart) { + commentWS.containingNode = node; + this.finalizeComment(commentWS); + commentStack.splice(i, 1); + } else { + if (commentEnd === nodeStart) { + commentWS.trailingNode = node; + } + break; + } + } + } + finalizeComment(commentWS) { + const { + comments + } = commentWS; + if (commentWS.leadingNode !== null || commentWS.trailingNode !== null) { + if (commentWS.leadingNode !== null) { + setTrailingComments(commentWS.leadingNode, comments); + } + if (commentWS.trailingNode !== null) { + setLeadingComments(commentWS.trailingNode, comments); + } + } else { + const { + containingNode: node, + start: commentStart + } = commentWS; + if (this.input.charCodeAt(commentStart - 1) === 44) { + switch (node.type) { + case "ObjectExpression": + case "ObjectPattern": + case "RecordExpression": + adjustInnerComments(node, node.properties, commentWS); + break; + case "CallExpression": + case "OptionalCallExpression": + adjustInnerComments(node, node.arguments, commentWS); + break; + case "FunctionDeclaration": + case "FunctionExpression": + case "ArrowFunctionExpression": + case "ObjectMethod": + case "ClassMethod": + case "ClassPrivateMethod": + adjustInnerComments(node, node.params, commentWS); + break; + case "ArrayExpression": + case "ArrayPattern": + case "TupleExpression": + adjustInnerComments(node, node.elements, commentWS); + break; + case "ExportNamedDeclaration": + case "ImportDeclaration": + adjustInnerComments(node, node.specifiers, commentWS); + break; + default: + { + setInnerComments(node, comments); + } + } + } else { + setInnerComments(node, comments); + } + } + } + finalizeRemainingComments() { + const { + commentStack + } = this.state; + for (let i = commentStack.length - 1; i >= 0; i--) { + this.finalizeComment(commentStack[i]); + } + this.state.commentStack = []; + } + resetPreviousNodeTrailingComments(node) { + const { + commentStack + } = this.state; + const { + length + } = commentStack; + if (length === 0) return; + const commentWS = commentStack[length - 1]; + if (commentWS.leadingNode === node) { + commentWS.leadingNode = null; + } + } + resetPreviousIdentifierLeadingComments(node) { + const { + commentStack + } = this.state; + const { + length + } = commentStack; + if (length === 0) return; + if (commentStack[length - 1].trailingNode === node) { + commentStack[length - 1].trailingNode = null; + } else if (length >= 2 && commentStack[length - 2].trailingNode === node) { + commentStack[length - 2].trailingNode = null; + } + } + takeSurroundingComments(node, start, end) { + const { + commentStack + } = this.state; + const commentStackLength = commentStack.length; + if (commentStackLength === 0) return; + let i = commentStackLength - 1; + for (; i >= 0; i--) { + const commentWS = commentStack[i]; + const commentEnd = commentWS.end; + const commentStart = commentWS.start; + if (commentStart === end) { + commentWS.leadingNode = node; + } else if (commentEnd === start) { + commentWS.trailingNode = node; + } else if (commentEnd < start) { + break; + } + } + } } -function tsNullKeyword() { - return { - type: "TSNullKeyword" - }; +const lineBreak = /\r\n?|[\n\u2028\u2029]/; +const lineBreakG = new RegExp(lineBreak.source, "g"); +function isNewLine(code) { + switch (code) { + case 10: + case 13: + case 8232: + case 8233: + return true; + default: + return false; + } } -function tsNumberKeyword() { - return { - type: "TSNumberKeyword" - }; +const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; +const skipWhiteSpaceInLine = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g; +const skipWhiteSpaceToLineBreak = new RegExp("(?=(" + skipWhiteSpaceInLine.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"); +function isWhitespace(code) { + switch (code) { + case 0x0009: + case 0x000b: + case 0x000c: + case 32: + case 160: + case 5760: + case 0x2000: + case 0x2001: + case 0x2002: + case 0x2003: + case 0x2004: + case 0x2005: + case 0x2006: + case 0x2007: + case 0x2008: + case 0x2009: + case 0x200a: + case 0x202f: + case 0x205f: + case 0x3000: + case 0xfeff: + return true; + default: + return false; + } } -function tsObjectKeyword() { - return { - type: "TSObjectKeyword" - }; +class State { + constructor() { + this.strict = void 0; + this.curLine = void 0; + this.lineStart = void 0; + this.startLoc = void 0; + this.endLoc = void 0; + this.errors = []; + this.potentialArrowAt = -1; + this.noArrowAt = []; + this.noArrowParamsConversionAt = []; + this.maybeInArrowParameters = false; + this.inType = false; + this.noAnonFunctionType = false; + this.hasFlowComment = false; + this.isAmbientContext = false; + this.inAbstractClass = false; + this.inDisallowConditionalTypesContext = false; + this.topicContext = { + maxNumOfResolvableTopics: 0, + maxTopicIndex: null + }; + this.soloAwait = false; + this.inFSharpPipelineDirectBody = false; + this.labels = []; + this.comments = []; + this.commentStack = []; + this.pos = 0; + this.type = 139; + this.value = null; + this.start = 0; + this.end = 0; + this.lastTokEndLoc = null; + this.lastTokStartLoc = null; + this.lastTokStart = 0; + this.context = [types.brace]; + this.canStartJSXElement = true; + this.containsEsc = false; + this.firstInvalidTemplateEscapePos = null; + this.strictErrors = new Map(); + this.tokensLength = 0; + } + init({ + strictMode, + sourceType, + startLine, + startColumn + }) { + this.strict = strictMode === false ? false : strictMode === true ? true : sourceType === "module"; + this.curLine = startLine; + this.lineStart = -startColumn; + this.startLoc = this.endLoc = new Position(startLine, startColumn, 0); + } + curPosition() { + return new Position(this.curLine, this.pos - this.lineStart, this.pos); + } + clone(skipArrays) { + const state = new State(); + const keys = Object.keys(this); + for (let i = 0, length = keys.length; i < length; i++) { + const key = keys[i]; + let val = this[key]; + if (!skipArrays && Array.isArray(val)) { + val = val.slice(); + } + state[key] = val; + } + return state; + } } -function tsStringKeyword() { +var _isDigit = function isDigit(code) { + return code >= 48 && code <= 57; +}; +const forbiddenNumericSeparatorSiblings = { + decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]), + hex: new Set([46, 88, 95, 120]) +}; +const isAllowedNumericSeparatorSibling = { + bin: ch => ch === 48 || ch === 49, + oct: ch => ch >= 48 && ch <= 55, + dec: ch => ch >= 48 && ch <= 57, + hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102 +}; +function readStringContents(type, input, pos, lineStart, curLine, errors) { + const initialPos = pos; + const initialLineStart = lineStart; + const initialCurLine = curLine; + let out = ""; + let firstInvalidLoc = null; + let chunkStart = pos; + const { + length + } = input; + for (;;) { + if (pos >= length) { + errors.unterminated(initialPos, initialLineStart, initialCurLine); + out += input.slice(chunkStart, pos); + break; + } + const ch = input.charCodeAt(pos); + if (isStringEnd(type, ch, input, pos)) { + out += input.slice(chunkStart, pos); + break; + } + if (ch === 92) { + out += input.slice(chunkStart, pos); + const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors); + if (res.ch === null && !firstInvalidLoc) { + firstInvalidLoc = { + pos, + lineStart, + curLine + }; + } else { + out += res.ch; + } + ({ + pos, + lineStart, + curLine + } = res); + chunkStart = pos; + } else if (ch === 8232 || ch === 8233) { + ++pos; + ++curLine; + lineStart = pos; + } else if (ch === 10 || ch === 13) { + if (type === "template") { + out += input.slice(chunkStart, pos) + "\n"; + ++pos; + if (ch === 13 && input.charCodeAt(pos) === 10) { + ++pos; + } + ++curLine; + chunkStart = lineStart = pos; + } else { + errors.unterminated(initialPos, initialLineStart, initialCurLine); + } + } else { + ++pos; + } + } return { - type: "TSStringKeyword" + pos, + str: out, + firstInvalidLoc, + lineStart, + curLine, + containsInvalid: !!firstInvalidLoc }; } -function tsSymbolKeyword() { - return { - type: "TSSymbolKeyword" - }; +function isStringEnd(type, ch, input, pos) { + if (type === "template") { + return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123; + } + return ch === (type === "double" ? 34 : 39); } -function tsUndefinedKeyword() { - return { - type: "TSUndefinedKeyword" - }; +function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) { + const throwOnInvalid = !inTemplate; + pos++; + const res = ch => ({ + pos, + ch, + lineStart, + curLine + }); + const ch = input.charCodeAt(pos++); + switch (ch) { + case 110: + return res("\n"); + case 114: + return res("\r"); + case 120: + { + let code; + ({ + code, + pos + } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors)); + return res(code === null ? null : String.fromCharCode(code)); + } + case 117: + { + let code; + ({ + code, + pos + } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors)); + return res(code === null ? null : String.fromCodePoint(code)); + } + case 116: + return res("\t"); + case 98: + return res("\b"); + case 118: + return res("\u000b"); + case 102: + return res("\f"); + case 13: + if (input.charCodeAt(pos) === 10) { + ++pos; + } + case 10: + lineStart = pos; + ++curLine; + case 8232: + case 8233: + return res(""); + case 56: + case 57: + if (inTemplate) { + return res(null); + } else { + errors.strictNumericEscape(pos - 1, lineStart, curLine); + } + default: + if (ch >= 48 && ch <= 55) { + const startPos = pos - 1; + const match = input.slice(startPos, pos + 2).match(/^[0-7]+/); + let octalStr = match[0]; + let octal = parseInt(octalStr, 8); + if (octal > 255) { + octalStr = octalStr.slice(0, -1); + octal = parseInt(octalStr, 8); + } + pos += octalStr.length - 1; + const next = input.charCodeAt(pos); + if (octalStr !== "0" || next === 56 || next === 57) { + if (inTemplate) { + return res(null); + } else { + errors.strictNumericEscape(startPos, lineStart, curLine); + } + } + return res(String.fromCharCode(octal)); + } + return res(String.fromCharCode(ch)); + } } -function tsUnknownKeyword() { +function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) { + const initialPos = pos; + let n; + ({ + n, + pos + } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid)); + if (n === null) { + if (throwOnInvalid) { + errors.invalidEscapeSequence(initialPos, lineStart, curLine); + } else { + pos = initialPos - 1; + } + } return { - type: "TSUnknownKeyword" + code: n, + pos }; } -function tsVoidKeyword() { +function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) { + const start = pos; + const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct; + const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin; + let invalid = false; + let total = 0; + for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) { + const code = input.charCodeAt(pos); + let val; + if (code === 95 && allowNumSeparator !== "bail") { + const prev = input.charCodeAt(pos - 1); + const next = input.charCodeAt(pos + 1); + if (!allowNumSeparator) { + if (bailOnError) return { + n: null, + pos + }; + errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine); + } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) { + if (bailOnError) return { + n: null, + pos + }; + errors.unexpectedNumericSeparator(pos, lineStart, curLine); + } + ++pos; + continue; + } + if (code >= 97) { + val = code - 97 + 10; + } else if (code >= 65) { + val = code - 65 + 10; + } else if (_isDigit(code)) { + val = code - 48; + } else { + val = Infinity; + } + if (val >= radix) { + if (val <= 9 && bailOnError) { + return { + n: null, + pos + }; + } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) { + val = 0; + } else if (forceLen) { + val = 0; + invalid = true; + } else { + break; + } + } + ++pos; + total = total * radix + val; + } + if (pos === start || len != null && pos - start !== len || invalid) { + return { + n: null, + pos + }; + } return { - type: "TSVoidKeyword" + n: total, + pos }; } -function tsThisType() { +function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) { + const ch = input.charCodeAt(pos); + let code; + if (ch === 123) { + ++pos; + ({ + code, + pos + } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors)); + ++pos; + if (code !== null && code > 0x10ffff) { + if (throwOnInvalid) { + errors.invalidCodePoint(pos, lineStart, curLine); + } else { + return { + code: null, + pos + }; + } + } + } else { + ({ + code, + pos + } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors)); + } return { - type: "TSThisType" + code, + pos }; } -function tsFunctionType(typeParameters = null, parameters, typeAnnotation = null) { - return (0, _validateNode.default)({ - type: "TSFunctionType", - typeParameters, - parameters, - typeAnnotation - }); -} -function tsConstructorType(typeParameters = null, parameters, typeAnnotation = null) { - return (0, _validateNode.default)({ - type: "TSConstructorType", - typeParameters, - parameters, - typeAnnotation - }); +const _excluded = ["at"], + _excluded2 = ["at"]; +function buildPosition(pos, lineStart, curLine) { + return new Position(curLine, pos - lineStart, pos); } -function tsTypeReference(typeName, typeParameters = null) { - return (0, _validateNode.default)({ - type: "TSTypeReference", - typeName, - typeParameters - }); +const VALID_REGEX_FLAGS = new Set([103, 109, 115, 105, 121, 117, 100, 118]); +class Token { + constructor(state) { + this.type = state.type; + this.value = state.value; + this.start = state.start; + this.end = state.end; + this.loc = new SourceLocation(state.startLoc, state.endLoc); + } } -function tsTypePredicate(parameterName, typeAnnotation = null, asserts = null) { - return (0, _validateNode.default)({ - type: "TSTypePredicate", - parameterName, - typeAnnotation, - asserts - }); +class Tokenizer extends CommentsParser { + constructor(options, input) { + super(); + this.isLookahead = void 0; + this.tokens = []; + this.errorHandlers_readInt = { + invalidDigit: (pos, lineStart, curLine, radix) => { + if (!this.options.errorRecovery) return false; + this.raise(Errors.InvalidDigit, { + at: buildPosition(pos, lineStart, curLine), + radix + }); + return true; + }, + numericSeparatorInEscapeSequence: this.errorBuilder(Errors.NumericSeparatorInEscapeSequence), + unexpectedNumericSeparator: this.errorBuilder(Errors.UnexpectedNumericSeparator) + }; + this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { + invalidEscapeSequence: this.errorBuilder(Errors.InvalidEscapeSequence), + invalidCodePoint: this.errorBuilder(Errors.InvalidCodePoint) + }); + this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { + strictNumericEscape: (pos, lineStart, curLine) => { + this.recordStrictModeErrors(Errors.StrictNumericEscape, { + at: buildPosition(pos, lineStart, curLine) + }); + }, + unterminated: (pos, lineStart, curLine) => { + throw this.raise(Errors.UnterminatedString, { + at: buildPosition(pos - 1, lineStart, curLine) + }); + } + }); + this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { + strictNumericEscape: this.errorBuilder(Errors.StrictNumericEscape), + unterminated: (pos, lineStart, curLine) => { + throw this.raise(Errors.UnterminatedTemplate, { + at: buildPosition(pos, lineStart, curLine) + }); + } + }); + this.state = new State(); + this.state.init(options); + this.input = input; + this.length = input.length; + this.isLookahead = false; + } + pushToken(token) { + this.tokens.length = this.state.tokensLength; + this.tokens.push(token); + ++this.state.tokensLength; + } + next() { + this.checkKeywordEscapes(); + if (this.options.tokens) { + this.pushToken(new Token(this.state)); + } + this.state.lastTokStart = this.state.start; + this.state.lastTokEndLoc = this.state.endLoc; + this.state.lastTokStartLoc = this.state.startLoc; + this.nextToken(); + } + eat(type) { + if (this.match(type)) { + this.next(); + return true; + } else { + return false; + } + } + match(type) { + return this.state.type === type; + } + createLookaheadState(state) { + return { + pos: state.pos, + value: null, + type: state.type, + start: state.start, + end: state.end, + context: [this.curContext()], + inType: state.inType, + startLoc: state.startLoc, + lastTokEndLoc: state.lastTokEndLoc, + curLine: state.curLine, + lineStart: state.lineStart, + curPosition: state.curPosition + }; + } + lookahead() { + const old = this.state; + this.state = this.createLookaheadState(old); + this.isLookahead = true; + this.nextToken(); + this.isLookahead = false; + const curr = this.state; + this.state = old; + return curr; + } + nextTokenStart() { + return this.nextTokenStartSince(this.state.pos); + } + nextTokenStartSince(pos) { + skipWhiteSpace.lastIndex = pos; + return skipWhiteSpace.test(this.input) ? skipWhiteSpace.lastIndex : pos; + } + lookaheadCharCode() { + return this.input.charCodeAt(this.nextTokenStart()); + } + nextTokenInLineStart() { + return this.nextTokenInLineStartSince(this.state.pos); + } + nextTokenInLineStartSince(pos) { + skipWhiteSpaceInLine.lastIndex = pos; + return skipWhiteSpaceInLine.test(this.input) ? skipWhiteSpaceInLine.lastIndex : pos; + } + lookaheadInLineCharCode() { + return this.input.charCodeAt(this.nextTokenInLineStart()); + } + codePointAtPos(pos) { + let cp = this.input.charCodeAt(pos); + if ((cp & 0xfc00) === 0xd800 && ++pos < this.input.length) { + const trail = this.input.charCodeAt(pos); + if ((trail & 0xfc00) === 0xdc00) { + cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff); + } + } + return cp; + } + setStrict(strict) { + this.state.strict = strict; + if (strict) { + this.state.strictErrors.forEach(([toParseError, at]) => this.raise(toParseError, { + at + })); + this.state.strictErrors.clear(); + } + } + curContext() { + return this.state.context[this.state.context.length - 1]; + } + nextToken() { + this.skipSpace(); + this.state.start = this.state.pos; + if (!this.isLookahead) this.state.startLoc = this.state.curPosition(); + if (this.state.pos >= this.length) { + this.finishToken(139); + return; + } + this.getTokenFromCode(this.codePointAtPos(this.state.pos)); + } + skipBlockComment(commentEnd) { + let startLoc; + if (!this.isLookahead) startLoc = this.state.curPosition(); + const start = this.state.pos; + const end = this.input.indexOf(commentEnd, start + 2); + if (end === -1) { + throw this.raise(Errors.UnterminatedComment, { + at: this.state.curPosition() + }); + } + this.state.pos = end + commentEnd.length; + lineBreakG.lastIndex = start + 2; + while (lineBreakG.test(this.input) && lineBreakG.lastIndex <= end) { + ++this.state.curLine; + this.state.lineStart = lineBreakG.lastIndex; + } + if (this.isLookahead) return; + const comment = { + type: "CommentBlock", + value: this.input.slice(start + 2, end), + start, + end: end + commentEnd.length, + loc: new SourceLocation(startLoc, this.state.curPosition()) + }; + if (this.options.tokens) this.pushToken(comment); + return comment; + } + skipLineComment(startSkip) { + const start = this.state.pos; + let startLoc; + if (!this.isLookahead) startLoc = this.state.curPosition(); + let ch = this.input.charCodeAt(this.state.pos += startSkip); + if (this.state.pos < this.length) { + while (!isNewLine(ch) && ++this.state.pos < this.length) { + ch = this.input.charCodeAt(this.state.pos); + } + } + if (this.isLookahead) return; + const end = this.state.pos; + const value = this.input.slice(start + startSkip, end); + const comment = { + type: "CommentLine", + value, + start, + end, + loc: new SourceLocation(startLoc, this.state.curPosition()) + }; + if (this.options.tokens) this.pushToken(comment); + return comment; + } + skipSpace() { + const spaceStart = this.state.pos; + const comments = []; + loop: while (this.state.pos < this.length) { + const ch = this.input.charCodeAt(this.state.pos); + switch (ch) { + case 32: + case 160: + case 9: + ++this.state.pos; + break; + case 13: + if (this.input.charCodeAt(this.state.pos + 1) === 10) { + ++this.state.pos; + } + case 10: + case 8232: + case 8233: + ++this.state.pos; + ++this.state.curLine; + this.state.lineStart = this.state.pos; + break; + case 47: + switch (this.input.charCodeAt(this.state.pos + 1)) { + case 42: + { + const comment = this.skipBlockComment("*/"); + if (comment !== undefined) { + this.addComment(comment); + if (this.options.attachComment) comments.push(comment); + } + break; + } + case 47: + { + const comment = this.skipLineComment(2); + if (comment !== undefined) { + this.addComment(comment); + if (this.options.attachComment) comments.push(comment); + } + break; + } + default: + break loop; + } + break; + default: + if (isWhitespace(ch)) { + ++this.state.pos; + } else if (ch === 45 && !this.inModule && this.options.annexB) { + const pos = this.state.pos; + if (this.input.charCodeAt(pos + 1) === 45 && this.input.charCodeAt(pos + 2) === 62 && (spaceStart === 0 || this.state.lineStart > spaceStart)) { + const comment = this.skipLineComment(3); + if (comment !== undefined) { + this.addComment(comment); + if (this.options.attachComment) comments.push(comment); + } + } else { + break loop; + } + } else if (ch === 60 && !this.inModule && this.options.annexB) { + const pos = this.state.pos; + if (this.input.charCodeAt(pos + 1) === 33 && this.input.charCodeAt(pos + 2) === 45 && this.input.charCodeAt(pos + 3) === 45) { + const comment = this.skipLineComment(4); + if (comment !== undefined) { + this.addComment(comment); + if (this.options.attachComment) comments.push(comment); + } + } else { + break loop; + } + } else { + break loop; + } + } + } + if (comments.length > 0) { + const end = this.state.pos; + const commentWhitespace = { + start: spaceStart, + end, + comments, + leadingNode: null, + trailingNode: null, + containingNode: null + }; + this.state.commentStack.push(commentWhitespace); + } + } + finishToken(type, val) { + this.state.end = this.state.pos; + this.state.endLoc = this.state.curPosition(); + const prevType = this.state.type; + this.state.type = type; + this.state.value = val; + if (!this.isLookahead) { + this.updateContext(prevType); + } + } + replaceToken(type) { + this.state.type = type; + this.updateContext(); + } + readToken_numberSign() { + if (this.state.pos === 0 && this.readToken_interpreter()) { + return; + } + const nextPos = this.state.pos + 1; + const next = this.codePointAtPos(nextPos); + if (next >= 48 && next <= 57) { + throw this.raise(Errors.UnexpectedDigitAfterHash, { + at: this.state.curPosition() + }); + } + if (next === 123 || next === 91 && this.hasPlugin("recordAndTuple")) { + this.expectPlugin("recordAndTuple"); + if (this.getPluginOption("recordAndTuple", "syntaxType") === "bar") { + throw this.raise(next === 123 ? Errors.RecordExpressionHashIncorrectStartSyntaxType : Errors.TupleExpressionHashIncorrectStartSyntaxType, { + at: this.state.curPosition() + }); + } + this.state.pos += 2; + if (next === 123) { + this.finishToken(7); + } else { + this.finishToken(1); + } + } else if (isIdentifierStart(next)) { + ++this.state.pos; + this.finishToken(138, this.readWord1(next)); + } else if (next === 92) { + ++this.state.pos; + this.finishToken(138, this.readWord1()); + } else { + this.finishOp(27, 1); + } + } + readToken_dot() { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next >= 48 && next <= 57) { + this.readNumber(true); + return; + } + if (next === 46 && this.input.charCodeAt(this.state.pos + 2) === 46) { + this.state.pos += 3; + this.finishToken(21); + } else { + ++this.state.pos; + this.finishToken(16); + } + } + readToken_slash() { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next === 61) { + this.finishOp(31, 2); + } else { + this.finishOp(56, 1); + } + } + readToken_interpreter() { + if (this.state.pos !== 0 || this.length < 2) return false; + let ch = this.input.charCodeAt(this.state.pos + 1); + if (ch !== 33) return false; + const start = this.state.pos; + this.state.pos += 1; + while (!isNewLine(ch) && ++this.state.pos < this.length) { + ch = this.input.charCodeAt(this.state.pos); + } + const value = this.input.slice(start + 2, this.state.pos); + this.finishToken(28, value); + return true; + } + readToken_mult_modulo(code) { + let type = code === 42 ? 55 : 54; + let width = 1; + let next = this.input.charCodeAt(this.state.pos + 1); + if (code === 42 && next === 42) { + width++; + next = this.input.charCodeAt(this.state.pos + 2); + type = 57; + } + if (next === 61 && !this.state.inType) { + width++; + type = code === 37 ? 33 : 30; + } + this.finishOp(type, width); + } + readToken_pipe_amp(code) { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next === code) { + if (this.input.charCodeAt(this.state.pos + 2) === 61) { + this.finishOp(30, 3); + } else { + this.finishOp(code === 124 ? 41 : 42, 2); + } + return; + } + if (code === 124) { + if (next === 62) { + this.finishOp(39, 2); + return; + } + if (this.hasPlugin("recordAndTuple") && next === 125) { + if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { + throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType, { + at: this.state.curPosition() + }); + } + this.state.pos += 2; + this.finishToken(9); + return; + } + if (this.hasPlugin("recordAndTuple") && next === 93) { + if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { + throw this.raise(Errors.TupleExpressionBarIncorrectEndSyntaxType, { + at: this.state.curPosition() + }); + } + this.state.pos += 2; + this.finishToken(4); + return; + } + } + if (next === 61) { + this.finishOp(30, 2); + return; + } + this.finishOp(code === 124 ? 43 : 45, 1); + } + readToken_caret() { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next === 61 && !this.state.inType) { + this.finishOp(32, 2); + } else if (next === 94 && this.hasPlugin(["pipelineOperator", { + proposal: "hack", + topicToken: "^^" + }])) { + this.finishOp(37, 2); + const lookaheadCh = this.input.codePointAt(this.state.pos); + if (lookaheadCh === 94) { + this.unexpected(); + } + } else { + this.finishOp(44, 1); + } + } + readToken_atSign() { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next === 64 && this.hasPlugin(["pipelineOperator", { + proposal: "hack", + topicToken: "@@" + }])) { + this.finishOp(38, 2); + } else { + this.finishOp(26, 1); + } + } + readToken_plus_min(code) { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next === code) { + this.finishOp(34, 2); + return; + } + if (next === 61) { + this.finishOp(30, 2); + } else { + this.finishOp(53, 1); + } + } + readToken_lt() { + const { + pos + } = this.state; + const next = this.input.charCodeAt(pos + 1); + if (next === 60) { + if (this.input.charCodeAt(pos + 2) === 61) { + this.finishOp(30, 3); + return; + } + this.finishOp(51, 2); + return; + } + if (next === 61) { + this.finishOp(49, 2); + return; + } + this.finishOp(47, 1); + } + readToken_gt() { + const { + pos + } = this.state; + const next = this.input.charCodeAt(pos + 1); + if (next === 62) { + const size = this.input.charCodeAt(pos + 2) === 62 ? 3 : 2; + if (this.input.charCodeAt(pos + size) === 61) { + this.finishOp(30, size + 1); + return; + } + this.finishOp(52, size); + return; + } + if (next === 61) { + this.finishOp(49, 2); + return; + } + this.finishOp(48, 1); + } + readToken_eq_excl(code) { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next === 61) { + this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2); + return; + } + if (code === 61 && next === 62) { + this.state.pos += 2; + this.finishToken(19); + return; + } + this.finishOp(code === 61 ? 29 : 35, 1); + } + readToken_question() { + const next = this.input.charCodeAt(this.state.pos + 1); + const next2 = this.input.charCodeAt(this.state.pos + 2); + if (next === 63) { + if (next2 === 61) { + this.finishOp(30, 3); + } else { + this.finishOp(40, 2); + } + } else if (next === 46 && !(next2 >= 48 && next2 <= 57)) { + this.state.pos += 2; + this.finishToken(18); + } else { + ++this.state.pos; + this.finishToken(17); + } + } + getTokenFromCode(code) { + switch (code) { + case 46: + this.readToken_dot(); + return; + case 40: + ++this.state.pos; + this.finishToken(10); + return; + case 41: + ++this.state.pos; + this.finishToken(11); + return; + case 59: + ++this.state.pos; + this.finishToken(13); + return; + case 44: + ++this.state.pos; + this.finishToken(12); + return; + case 91: + if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { + if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { + throw this.raise(Errors.TupleExpressionBarIncorrectStartSyntaxType, { + at: this.state.curPosition() + }); + } + this.state.pos += 2; + this.finishToken(2); + } else { + ++this.state.pos; + this.finishToken(0); + } + return; + case 93: + ++this.state.pos; + this.finishToken(3); + return; + case 123: + if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) { + if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") { + throw this.raise(Errors.RecordExpressionBarIncorrectStartSyntaxType, { + at: this.state.curPosition() + }); + } + this.state.pos += 2; + this.finishToken(6); + } else { + ++this.state.pos; + this.finishToken(5); + } + return; + case 125: + ++this.state.pos; + this.finishToken(8); + return; + case 58: + if (this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58) { + this.finishOp(15, 2); + } else { + ++this.state.pos; + this.finishToken(14); + } + return; + case 63: + this.readToken_question(); + return; + case 96: + this.readTemplateToken(); + return; + case 48: + { + const next = this.input.charCodeAt(this.state.pos + 1); + if (next === 120 || next === 88) { + this.readRadixNumber(16); + return; + } + if (next === 111 || next === 79) { + this.readRadixNumber(8); + return; + } + if (next === 98 || next === 66) { + this.readRadixNumber(2); + return; + } + } + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + this.readNumber(false); + return; + case 34: + case 39: + this.readString(code); + return; + case 47: + this.readToken_slash(); + return; + case 37: + case 42: + this.readToken_mult_modulo(code); + return; + case 124: + case 38: + this.readToken_pipe_amp(code); + return; + case 94: + this.readToken_caret(); + return; + case 43: + case 45: + this.readToken_plus_min(code); + return; + case 60: + this.readToken_lt(); + return; + case 62: + this.readToken_gt(); + return; + case 61: + case 33: + this.readToken_eq_excl(code); + return; + case 126: + this.finishOp(36, 1); + return; + case 64: + this.readToken_atSign(); + return; + case 35: + this.readToken_numberSign(); + return; + case 92: + this.readWord(); + return; + default: + if (isIdentifierStart(code)) { + this.readWord(code); + return; + } + } + throw this.raise(Errors.InvalidOrUnexpectedToken, { + at: this.state.curPosition(), + unexpected: String.fromCodePoint(code) + }); + } + finishOp(type, size) { + const str = this.input.slice(this.state.pos, this.state.pos + size); + this.state.pos += size; + this.finishToken(type, str); + } + readRegexp() { + const startLoc = this.state.startLoc; + const start = this.state.start + 1; + let escaped, inClass; + let { + pos + } = this.state; + for (;; ++pos) { + if (pos >= this.length) { + throw this.raise(Errors.UnterminatedRegExp, { + at: createPositionWithColumnOffset(startLoc, 1) + }); + } + const ch = this.input.charCodeAt(pos); + if (isNewLine(ch)) { + throw this.raise(Errors.UnterminatedRegExp, { + at: createPositionWithColumnOffset(startLoc, 1) + }); + } + if (escaped) { + escaped = false; + } else { + if (ch === 91) { + inClass = true; + } else if (ch === 93 && inClass) { + inClass = false; + } else if (ch === 47 && !inClass) { + break; + } + escaped = ch === 92; + } + } + const content = this.input.slice(start, pos); + ++pos; + let mods = ""; + const nextPos = () => createPositionWithColumnOffset(startLoc, pos + 2 - start); + while (pos < this.length) { + const cp = this.codePointAtPos(pos); + const char = String.fromCharCode(cp); + if (VALID_REGEX_FLAGS.has(cp)) { + if (cp === 118) { + if (mods.includes("u")) { + this.raise(Errors.IncompatibleRegExpUVFlags, { + at: nextPos() + }); + } + } else if (cp === 117) { + if (mods.includes("v")) { + this.raise(Errors.IncompatibleRegExpUVFlags, { + at: nextPos() + }); + } + } + if (mods.includes(char)) { + this.raise(Errors.DuplicateRegExpFlags, { + at: nextPos() + }); + } + } else if (isIdentifierChar(cp) || cp === 92) { + this.raise(Errors.MalformedRegExpFlags, { + at: nextPos() + }); + } else { + break; + } + ++pos; + mods += char; + } + this.state.pos = pos; + this.finishToken(137, { + pattern: content, + flags: mods + }); + } + readInt(radix, len, forceLen = false, allowNumSeparator = true) { + const { + n, + pos + } = readInt(this.input, this.state.pos, this.state.lineStart, this.state.curLine, radix, len, forceLen, allowNumSeparator, this.errorHandlers_readInt, false); + this.state.pos = pos; + return n; + } + readRadixNumber(radix) { + const startLoc = this.state.curPosition(); + let isBigInt = false; + this.state.pos += 2; + const val = this.readInt(radix); + if (val == null) { + this.raise(Errors.InvalidDigit, { + at: createPositionWithColumnOffset(startLoc, 2), + radix + }); + } + const next = this.input.charCodeAt(this.state.pos); + if (next === 110) { + ++this.state.pos; + isBigInt = true; + } else if (next === 109) { + throw this.raise(Errors.InvalidDecimal, { + at: startLoc + }); + } + if (isIdentifierStart(this.codePointAtPos(this.state.pos))) { + throw this.raise(Errors.NumberIdentifier, { + at: this.state.curPosition() + }); + } + if (isBigInt) { + const str = this.input.slice(startLoc.index, this.state.pos).replace(/[_n]/g, ""); + this.finishToken(135, str); + return; + } + this.finishToken(134, val); + } + readNumber(startsWithDot) { + const start = this.state.pos; + const startLoc = this.state.curPosition(); + let isFloat = false; + let isBigInt = false; + let isDecimal = false; + let hasExponent = false; + let isOctal = false; + if (!startsWithDot && this.readInt(10) === null) { + this.raise(Errors.InvalidNumber, { + at: this.state.curPosition() + }); + } + const hasLeadingZero = this.state.pos - start >= 2 && this.input.charCodeAt(start) === 48; + if (hasLeadingZero) { + const integer = this.input.slice(start, this.state.pos); + this.recordStrictModeErrors(Errors.StrictOctalLiteral, { + at: startLoc + }); + if (!this.state.strict) { + const underscorePos = integer.indexOf("_"); + if (underscorePos > 0) { + this.raise(Errors.ZeroDigitNumericSeparator, { + at: createPositionWithColumnOffset(startLoc, underscorePos) + }); + } + } + isOctal = hasLeadingZero && !/[89]/.test(integer); + } + let next = this.input.charCodeAt(this.state.pos); + if (next === 46 && !isOctal) { + ++this.state.pos; + this.readInt(10); + isFloat = true; + next = this.input.charCodeAt(this.state.pos); + } + if ((next === 69 || next === 101) && !isOctal) { + next = this.input.charCodeAt(++this.state.pos); + if (next === 43 || next === 45) { + ++this.state.pos; + } + if (this.readInt(10) === null) { + this.raise(Errors.InvalidOrMissingExponent, { + at: startLoc + }); + } + isFloat = true; + hasExponent = true; + next = this.input.charCodeAt(this.state.pos); + } + if (next === 110) { + if (isFloat || hasLeadingZero) { + this.raise(Errors.InvalidBigIntLiteral, { + at: startLoc + }); + } + ++this.state.pos; + isBigInt = true; + } + if (next === 109) { + this.expectPlugin("decimal", this.state.curPosition()); + if (hasExponent || hasLeadingZero) { + this.raise(Errors.InvalidDecimal, { + at: startLoc + }); + } + ++this.state.pos; + isDecimal = true; + } + if (isIdentifierStart(this.codePointAtPos(this.state.pos))) { + throw this.raise(Errors.NumberIdentifier, { + at: this.state.curPosition() + }); + } + const str = this.input.slice(start, this.state.pos).replace(/[_mn]/g, ""); + if (isBigInt) { + this.finishToken(135, str); + return; + } + if (isDecimal) { + this.finishToken(136, str); + return; + } + const val = isOctal ? parseInt(str, 8) : parseFloat(str); + this.finishToken(134, val); + } + readCodePoint(throwOnInvalid) { + const { + code, + pos + } = readCodePoint(this.input, this.state.pos, this.state.lineStart, this.state.curLine, throwOnInvalid, this.errorHandlers_readCodePoint); + this.state.pos = pos; + return code; + } + readString(quote) { + const { + str, + pos, + curLine, + lineStart + } = readStringContents(quote === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string); + this.state.pos = pos + 1; + this.state.lineStart = lineStart; + this.state.curLine = curLine; + this.finishToken(133, str); + } + readTemplateContinuation() { + if (!this.match(8)) { + this.unexpected(null, 8); + } + this.state.pos--; + this.readTemplateToken(); + } + readTemplateToken() { + const opening = this.input[this.state.pos]; + const { + str, + firstInvalidLoc, + pos, + curLine, + lineStart + } = readStringContents("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template); + this.state.pos = pos + 1; + this.state.lineStart = lineStart; + this.state.curLine = curLine; + if (firstInvalidLoc) { + this.state.firstInvalidTemplateEscapePos = new Position(firstInvalidLoc.curLine, firstInvalidLoc.pos - firstInvalidLoc.lineStart, firstInvalidLoc.pos); + } + if (this.input.codePointAt(pos) === 96) { + this.finishToken(24, firstInvalidLoc ? null : opening + str + "`"); + } else { + this.state.pos++; + this.finishToken(25, firstInvalidLoc ? null : opening + str + "${"); + } + } + recordStrictModeErrors(toParseError, { + at + }) { + const index = at.index; + if (this.state.strict && !this.state.strictErrors.has(index)) { + this.raise(toParseError, { + at + }); + } else { + this.state.strictErrors.set(index, [toParseError, at]); + } + } + readWord1(firstCode) { + this.state.containsEsc = false; + let word = ""; + const start = this.state.pos; + let chunkStart = this.state.pos; + if (firstCode !== undefined) { + this.state.pos += firstCode <= 0xffff ? 1 : 2; + } + while (this.state.pos < this.length) { + const ch = this.codePointAtPos(this.state.pos); + if (isIdentifierChar(ch)) { + this.state.pos += ch <= 0xffff ? 1 : 2; + } else if (ch === 92) { + this.state.containsEsc = true; + word += this.input.slice(chunkStart, this.state.pos); + const escStart = this.state.curPosition(); + const identifierCheck = this.state.pos === start ? isIdentifierStart : isIdentifierChar; + if (this.input.charCodeAt(++this.state.pos) !== 117) { + this.raise(Errors.MissingUnicodeEscape, { + at: this.state.curPosition() + }); + chunkStart = this.state.pos - 1; + continue; + } + ++this.state.pos; + const esc = this.readCodePoint(true); + if (esc !== null) { + if (!identifierCheck(esc)) { + this.raise(Errors.EscapedCharNotAnIdentifier, { + at: escStart + }); + } + word += String.fromCodePoint(esc); + } + chunkStart = this.state.pos; + } else { + break; + } + } + return word + this.input.slice(chunkStart, this.state.pos); + } + readWord(firstCode) { + const word = this.readWord1(firstCode); + const type = keywords$1.get(word); + if (type !== undefined) { + this.finishToken(type, tokenLabelName(type)); + } else { + this.finishToken(132, word); + } + } + checkKeywordEscapes() { + const { + type + } = this.state; + if (tokenIsKeyword(type) && this.state.containsEsc) { + this.raise(Errors.InvalidEscapedReservedWord, { + at: this.state.startLoc, + reservedWord: tokenLabelName(type) + }); + } + } + raise(toParseError, raiseProperties) { + const { + at + } = raiseProperties, + details = _objectWithoutPropertiesLoose(raiseProperties, _excluded); + const loc = at instanceof Position ? at : at.loc.start; + const error = toParseError({ + loc, + details + }); + if (!this.options.errorRecovery) throw error; + if (!this.isLookahead) this.state.errors.push(error); + return error; + } + raiseOverwrite(toParseError, raiseProperties) { + const { + at + } = raiseProperties, + details = _objectWithoutPropertiesLoose(raiseProperties, _excluded2); + const loc = at instanceof Position ? at : at.loc.start; + const pos = loc.index; + const errors = this.state.errors; + for (let i = errors.length - 1; i >= 0; i--) { + const error = errors[i]; + if (error.loc.index === pos) { + return errors[i] = toParseError({ + loc, + details + }); + } + if (error.loc.index < pos) break; + } + return this.raise(toParseError, raiseProperties); + } + updateContext(prevType) {} + unexpected(loc, type) { + throw this.raise(Errors.UnexpectedToken, { + expected: type ? tokenLabelName(type) : null, + at: loc != null ? loc : this.state.startLoc + }); + } + expectPlugin(pluginName, loc) { + if (this.hasPlugin(pluginName)) { + return true; + } + throw this.raise(Errors.MissingPlugin, { + at: loc != null ? loc : this.state.startLoc, + missingPlugin: [pluginName] + }); + } + expectOnePlugin(pluginNames) { + if (!pluginNames.some(name => this.hasPlugin(name))) { + throw this.raise(Errors.MissingOneOfPlugins, { + at: this.state.startLoc, + missingPlugin: pluginNames + }); + } + } + errorBuilder(error) { + return (pos, lineStart, curLine) => { + this.raise(error, { + at: buildPosition(pos, lineStart, curLine) + }); + }; + } } -function tsTypeQuery(exprName, typeParameters = null) { - return (0, _validateNode.default)({ - type: "TSTypeQuery", - exprName, - typeParameters - }); +class ClassScope { + constructor() { + this.privateNames = new Set(); + this.loneAccessors = new Map(); + this.undefinedPrivateNames = new Map(); + } } -function tsTypeLiteral(members) { - return (0, _validateNode.default)({ - type: "TSTypeLiteral", - members - }); +class ClassScopeHandler { + constructor(parser) { + this.parser = void 0; + this.stack = []; + this.undefinedPrivateNames = new Map(); + this.parser = parser; + } + current() { + return this.stack[this.stack.length - 1]; + } + enter() { + this.stack.push(new ClassScope()); + } + exit() { + const oldClassScope = this.stack.pop(); + const current = this.current(); + for (const [name, loc] of Array.from(oldClassScope.undefinedPrivateNames)) { + if (current) { + if (!current.undefinedPrivateNames.has(name)) { + current.undefinedPrivateNames.set(name, loc); + } + } else { + this.parser.raise(Errors.InvalidPrivateFieldResolution, { + at: loc, + identifierName: name + }); + } + } + } + declarePrivateName(name, elementType, loc) { + const { + privateNames, + loneAccessors, + undefinedPrivateNames + } = this.current(); + let redefined = privateNames.has(name); + if (elementType & 3) { + const accessor = redefined && loneAccessors.get(name); + if (accessor) { + const oldStatic = accessor & 4; + const newStatic = elementType & 4; + const oldKind = accessor & 3; + const newKind = elementType & 3; + redefined = oldKind === newKind || oldStatic !== newStatic; + if (!redefined) loneAccessors.delete(name); + } else if (!redefined) { + loneAccessors.set(name, elementType); + } + } + if (redefined) { + this.parser.raise(Errors.PrivateNameRedeclaration, { + at: loc, + identifierName: name + }); + } + privateNames.add(name); + undefinedPrivateNames.delete(name); + } + usePrivateName(name, loc) { + let classScope; + for (classScope of this.stack) { + if (classScope.privateNames.has(name)) return; + } + if (classScope) { + classScope.undefinedPrivateNames.set(name, loc); + } else { + this.parser.raise(Errors.InvalidPrivateFieldResolution, { + at: loc, + identifierName: name + }); + } + } } -function tsArrayType(elementType) { - return (0, _validateNode.default)({ - type: "TSArrayType", - elementType - }); +class ExpressionScope { + constructor(type = 0) { + this.type = type; + } + canBeArrowParameterDeclaration() { + return this.type === 2 || this.type === 1; + } + isCertainlyParameterDeclaration() { + return this.type === 3; + } } -function tsTupleType(elementTypes) { - return (0, _validateNode.default)({ - type: "TSTupleType", - elementTypes - }); +class ArrowHeadParsingScope extends ExpressionScope { + constructor(type) { + super(type); + this.declarationErrors = new Map(); + } + recordDeclarationError(ParsingErrorClass, { + at + }) { + const index = at.index; + this.declarationErrors.set(index, [ParsingErrorClass, at]); + } + clearDeclarationError(index) { + this.declarationErrors.delete(index); + } + iterateErrors(iterator) { + this.declarationErrors.forEach(iterator); + } } -function tsOptionalType(typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSOptionalType", - typeAnnotation - }); +class ExpressionScopeHandler { + constructor(parser) { + this.parser = void 0; + this.stack = [new ExpressionScope()]; + this.parser = parser; + } + enter(scope) { + this.stack.push(scope); + } + exit() { + this.stack.pop(); + } + recordParameterInitializerError(toParseError, { + at: node + }) { + const origin = { + at: node.loc.start + }; + const { + stack + } = this; + let i = stack.length - 1; + let scope = stack[i]; + while (!scope.isCertainlyParameterDeclaration()) { + if (scope.canBeArrowParameterDeclaration()) { + scope.recordDeclarationError(toParseError, origin); + } else { + return; + } + scope = stack[--i]; + } + this.parser.raise(toParseError, origin); + } + recordArrowParameterBindingError(error, { + at: node + }) { + const { + stack + } = this; + const scope = stack[stack.length - 1]; + const origin = { + at: node.loc.start + }; + if (scope.isCertainlyParameterDeclaration()) { + this.parser.raise(error, origin); + } else if (scope.canBeArrowParameterDeclaration()) { + scope.recordDeclarationError(error, origin); + } else { + return; + } + } + recordAsyncArrowParametersError({ + at + }) { + const { + stack + } = this; + let i = stack.length - 1; + let scope = stack[i]; + while (scope.canBeArrowParameterDeclaration()) { + if (scope.type === 2) { + scope.recordDeclarationError(Errors.AwaitBindingIdentifier, { + at + }); + } + scope = stack[--i]; + } + } + validateAsPattern() { + const { + stack + } = this; + const currentScope = stack[stack.length - 1]; + if (!currentScope.canBeArrowParameterDeclaration()) return; + currentScope.iterateErrors(([toParseError, loc]) => { + this.parser.raise(toParseError, { + at: loc + }); + let i = stack.length - 2; + let scope = stack[i]; + while (scope.canBeArrowParameterDeclaration()) { + scope.clearDeclarationError(loc.index); + scope = stack[--i]; + } + }); + } } -function tsRestType(typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSRestType", - typeAnnotation - }); +function newParameterDeclarationScope() { + return new ExpressionScope(3); } -function tsNamedTupleMember(label, elementType, optional = false) { - return (0, _validateNode.default)({ - type: "TSNamedTupleMember", - label, - elementType, - optional - }); +function newArrowHeadScope() { + return new ArrowHeadParsingScope(1); } -function tsUnionType(types) { - return (0, _validateNode.default)({ - type: "TSUnionType", - types - }); +function newAsyncArrowScope() { + return new ArrowHeadParsingScope(2); } -function tsIntersectionType(types) { - return (0, _validateNode.default)({ - type: "TSIntersectionType", - types - }); +function newExpressionScope() { + return new ExpressionScope(); } -function tsConditionalType(checkType, extendsType, trueType, falseType) { - return (0, _validateNode.default)({ - type: "TSConditionalType", - checkType, - extendsType, - trueType, - falseType - }); +class ProductionParameterHandler { + constructor() { + this.stacks = []; + } + enter(flags) { + this.stacks.push(flags); + } + exit() { + this.stacks.pop(); + } + currentFlags() { + return this.stacks[this.stacks.length - 1]; + } + get hasAwait() { + return (this.currentFlags() & 2) > 0; + } + get hasYield() { + return (this.currentFlags() & 1) > 0; + } + get hasReturn() { + return (this.currentFlags() & 4) > 0; + } + get hasIn() { + return (this.currentFlags() & 8) > 0; + } } -function tsInferType(typeParameter) { - return (0, _validateNode.default)({ - type: "TSInferType", - typeParameter - }); +function functionFlags(isAsync, isGenerator) { + return (isAsync ? 2 : 0) | (isGenerator ? 1 : 0); } -function tsParenthesizedType(typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSParenthesizedType", - typeAnnotation - }); +class UtilParser extends Tokenizer { + addExtra(node, key, value, enumerable = true) { + if (!node) return; + const extra = node.extra = node.extra || {}; + if (enumerable) { + extra[key] = value; + } else { + Object.defineProperty(extra, key, { + enumerable, + value + }); + } + } + isContextual(token) { + return this.state.type === token && !this.state.containsEsc; + } + isUnparsedContextual(nameStart, name) { + const nameEnd = nameStart + name.length; + if (this.input.slice(nameStart, nameEnd) === name) { + const nextCh = this.input.charCodeAt(nameEnd); + return !(isIdentifierChar(nextCh) || (nextCh & 0xfc00) === 0xd800); + } + return false; + } + isLookaheadContextual(name) { + const next = this.nextTokenStart(); + return this.isUnparsedContextual(next, name); + } + eatContextual(token) { + if (this.isContextual(token)) { + this.next(); + return true; + } + return false; + } + expectContextual(token, toParseError) { + if (!this.eatContextual(token)) { + if (toParseError != null) { + throw this.raise(toParseError, { + at: this.state.startLoc + }); + } + this.unexpected(null, token); + } + } + canInsertSemicolon() { + return this.match(139) || this.match(8) || this.hasPrecedingLineBreak(); + } + hasPrecedingLineBreak() { + return lineBreak.test(this.input.slice(this.state.lastTokEndLoc.index, this.state.start)); + } + hasFollowingLineBreak() { + skipWhiteSpaceToLineBreak.lastIndex = this.state.end; + return skipWhiteSpaceToLineBreak.test(this.input); + } + isLineTerminator() { + return this.eat(13) || this.canInsertSemicolon(); + } + semicolon(allowAsi = true) { + if (allowAsi ? this.isLineTerminator() : this.eat(13)) return; + this.raise(Errors.MissingSemicolon, { + at: this.state.lastTokEndLoc + }); + } + expect(type, loc) { + this.eat(type) || this.unexpected(loc, type); + } + tryParse(fn, oldState = this.state.clone()) { + const abortSignal = { + node: null + }; + try { + const node = fn((node = null) => { + abortSignal.node = node; + throw abortSignal; + }); + if (this.state.errors.length > oldState.errors.length) { + const failState = this.state; + this.state = oldState; + this.state.tokensLength = failState.tokensLength; + return { + node, + error: failState.errors[oldState.errors.length], + thrown: false, + aborted: false, + failState + }; + } + return { + node, + error: null, + thrown: false, + aborted: false, + failState: null + }; + } catch (error) { + const failState = this.state; + this.state = oldState; + if (error instanceof SyntaxError) { + return { + node: null, + error, + thrown: true, + aborted: false, + failState + }; + } + if (error === abortSignal) { + return { + node: abortSignal.node, + error: null, + thrown: false, + aborted: true, + failState + }; + } + throw error; + } + } + checkExpressionErrors(refExpressionErrors, andThrow) { + if (!refExpressionErrors) return false; + const { + shorthandAssignLoc, + doubleProtoLoc, + privateKeyLoc, + optionalParametersLoc + } = refExpressionErrors; + const hasErrors = !!shorthandAssignLoc || !!doubleProtoLoc || !!optionalParametersLoc || !!privateKeyLoc; + if (!andThrow) { + return hasErrors; + } + if (shorthandAssignLoc != null) { + this.raise(Errors.InvalidCoverInitializedName, { + at: shorthandAssignLoc + }); + } + if (doubleProtoLoc != null) { + this.raise(Errors.DuplicateProto, { + at: doubleProtoLoc + }); + } + if (privateKeyLoc != null) { + this.raise(Errors.UnexpectedPrivateField, { + at: privateKeyLoc + }); + } + if (optionalParametersLoc != null) { + this.unexpected(optionalParametersLoc); + } + } + isLiteralPropertyName() { + return tokenIsLiteralPropertyName(this.state.type); + } + isPrivateName(node) { + return node.type === "PrivateName"; + } + getPrivateNameSV(node) { + return node.id.name; + } + hasPropertyAsPrivateName(node) { + return (node.type === "MemberExpression" || node.type === "OptionalMemberExpression") && this.isPrivateName(node.property); + } + isObjectProperty(node) { + return node.type === "ObjectProperty"; + } + isObjectMethod(node) { + return node.type === "ObjectMethod"; + } + initializeScopes(inModule = this.options.sourceType === "module") { + const oldLabels = this.state.labels; + this.state.labels = []; + const oldExportedIdentifiers = this.exportedIdentifiers; + this.exportedIdentifiers = new Set(); + const oldInModule = this.inModule; + this.inModule = inModule; + const oldScope = this.scope; + const ScopeHandler = this.getScopeHandler(); + this.scope = new ScopeHandler(this, inModule); + const oldProdParam = this.prodParam; + this.prodParam = new ProductionParameterHandler(); + const oldClassScope = this.classScope; + this.classScope = new ClassScopeHandler(this); + const oldExpressionScope = this.expressionScope; + this.expressionScope = new ExpressionScopeHandler(this); + return () => { + this.state.labels = oldLabels; + this.exportedIdentifiers = oldExportedIdentifiers; + this.inModule = oldInModule; + this.scope = oldScope; + this.prodParam = oldProdParam; + this.classScope = oldClassScope; + this.expressionScope = oldExpressionScope; + }; + } + enterInitialScopes() { + let paramFlags = 0; + if (this.inModule) { + paramFlags |= 2; + } + this.scope.enter(1); + this.prodParam.enter(paramFlags); + } + checkDestructuringPrivate(refExpressionErrors) { + const { + privateKeyLoc + } = refExpressionErrors; + if (privateKeyLoc !== null) { + this.expectPlugin("destructuringPrivate", privateKeyLoc); + } + } } -function tsTypeOperator(typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSTypeOperator", - typeAnnotation, - operator: null - }); +class ExpressionErrors { + constructor() { + this.shorthandAssignLoc = null; + this.doubleProtoLoc = null; + this.privateKeyLoc = null; + this.optionalParametersLoc = null; + } } -function tsIndexedAccessType(objectType, indexType) { - return (0, _validateNode.default)({ - type: "TSIndexedAccessType", - objectType, - indexType - }); +class Node { + constructor(parser, pos, loc) { + this.type = ""; + this.start = pos; + this.end = 0; + this.loc = new SourceLocation(loc); + if (parser != null && parser.options.ranges) this.range = [pos, 0]; + if (parser != null && parser.filename) this.loc.filename = parser.filename; + } } -function tsMappedType(typeParameter, typeAnnotation = null, nameType = null) { - return (0, _validateNode.default)({ - type: "TSMappedType", - typeParameter, - typeAnnotation, - nameType - }); +const NodePrototype = Node.prototype; +{ + NodePrototype.__clone = function () { + const newNode = new Node(undefined, this.start, this.loc.start); + const keys = Object.keys(this); + for (let i = 0, length = keys.length; i < length; i++) { + const key = keys[i]; + if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") { + newNode[key] = this[key]; + } + } + return newNode; + }; } -function tsLiteralType(literal) { - return (0, _validateNode.default)({ - type: "TSLiteralType", - literal - }); +function clonePlaceholder(node) { + return cloneIdentifier(node); } -function tsExpressionWithTypeArguments(expression, typeParameters = null) { - return (0, _validateNode.default)({ - type: "TSExpressionWithTypeArguments", - expression, - typeParameters - }); +function cloneIdentifier(node) { + const { + type, + start, + end, + loc, + range, + extra, + name + } = node; + const cloned = Object.create(NodePrototype); + cloned.type = type; + cloned.start = start; + cloned.end = end; + cloned.loc = loc; + cloned.range = range; + cloned.extra = extra; + cloned.name = name; + if (type === "Placeholder") { + cloned.expectedNode = node.expectedNode; + } + return cloned; } -function tsInterfaceDeclaration(id, typeParameters = null, _extends = null, body) { - return (0, _validateNode.default)({ - type: "TSInterfaceDeclaration", - id, - typeParameters, - extends: _extends, - body - }); +function cloneStringLiteral(node) { + const { + type, + start, + end, + loc, + range, + extra + } = node; + if (type === "Placeholder") { + return clonePlaceholder(node); + } + const cloned = Object.create(NodePrototype); + cloned.type = type; + cloned.start = start; + cloned.end = end; + cloned.loc = loc; + cloned.range = range; + if (node.raw !== undefined) { + cloned.raw = node.raw; + } else { + cloned.extra = extra; + } + cloned.value = node.value; + return cloned; } -function tsInterfaceBody(body) { - return (0, _validateNode.default)({ - type: "TSInterfaceBody", - body - }); +class NodeUtils extends UtilParser { + startNode() { + return new Node(this, this.state.start, this.state.startLoc); + } + startNodeAt(loc) { + return new Node(this, loc.index, loc); + } + startNodeAtNode(type) { + return this.startNodeAt(type.loc.start); + } + finishNode(node, type) { + return this.finishNodeAt(node, type, this.state.lastTokEndLoc); + } + finishNodeAt(node, type, endLoc) { + node.type = type; + node.end = endLoc.index; + node.loc.end = endLoc; + if (this.options.ranges) node.range[1] = endLoc.index; + if (this.options.attachComment) this.processComment(node); + return node; + } + resetStartLocation(node, startLoc) { + node.start = startLoc.index; + node.loc.start = startLoc; + if (this.options.ranges) node.range[0] = startLoc.index; + } + resetEndLocation(node, endLoc = this.state.lastTokEndLoc) { + node.end = endLoc.index; + node.loc.end = endLoc; + if (this.options.ranges) node.range[1] = endLoc.index; + } + resetStartLocationFromNode(node, locationNode) { + this.resetStartLocation(node, locationNode.loc.start); + } } -function tsTypeAliasDeclaration(id, typeParameters = null, typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSTypeAliasDeclaration", - id, - typeParameters, - typeAnnotation - }); +const reservedTypes = new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]); +const FlowErrors = ParseErrorEnum`flow`({ + AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.", + AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.", + AssignReservedType: ({ + reservedType + }) => `Cannot overwrite reserved type ${reservedType}.`, + DeclareClassElement: "The `declare` modifier can only appear on class fields.", + DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.", + DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.", + EnumBooleanMemberNotInitialized: ({ + memberName, + enumName + }) => `Boolean enum members need to be initialized. Use either \`${memberName} = true,\` or \`${memberName} = false,\` in enum \`${enumName}\`.`, + EnumDuplicateMemberName: ({ + memberName, + enumName + }) => `Enum member names need to be unique, but the name \`${memberName}\` has already been used before in enum \`${enumName}\`.`, + EnumInconsistentMemberValues: ({ + enumName + }) => `Enum \`${enumName}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`, + EnumInvalidExplicitType: ({ + invalidEnumType, + enumName + }) => `Enum type \`${invalidEnumType}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`, + EnumInvalidExplicitTypeUnknownSupplied: ({ + enumName + }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${enumName}\`.`, + EnumInvalidMemberInitializerPrimaryType: ({ + enumName, + memberName, + explicitType + }) => `Enum \`${enumName}\` has type \`${explicitType}\`, so the initializer of \`${memberName}\` needs to be a ${explicitType} literal.`, + EnumInvalidMemberInitializerSymbolType: ({ + enumName, + memberName + }) => `Symbol enum members cannot be initialized. Use \`${memberName},\` in enum \`${enumName}\`.`, + EnumInvalidMemberInitializerUnknownType: ({ + enumName, + memberName + }) => `The enum member initializer for \`${memberName}\` needs to be a literal (either a boolean, number, or string) in enum \`${enumName}\`.`, + EnumInvalidMemberName: ({ + enumName, + memberName, + suggestion + }) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${memberName}\`, consider using \`${suggestion}\`, in enum \`${enumName}\`.`, + EnumNumberMemberNotInitialized: ({ + enumName, + memberName + }) => `Number enum members need to be initialized, e.g. \`${memberName} = 1\` in enum \`${enumName}\`.`, + EnumStringMemberInconsistentlyInitialized: ({ + enumName + }) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${enumName}\`.`, + GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.", + ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.", + ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.", + InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.", + InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.", + InexactVariance: "Explicit inexact syntax cannot have variance.", + InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.", + MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", + NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.", + NestedFlowComment: "Cannot have a flow comment inside another flow comment.", + PatternIsOptional: Object.assign({ + message: "A binding pattern parameter cannot be optional in an implementation signature." + }, { + reasonCode: "OptionalBindingPattern" + }), + SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.", + SpreadVariance: "Spread properties cannot have variance.", + ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.", + ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", + ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.", + ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.", + ThisParamNoDefault: "The `this` parameter may not have a default value.", + TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", + TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.", + UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.", + UnexpectedReservedType: ({ + reservedType + }) => `Unexpected reserved type ${reservedType}.`, + UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.", + UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.", + UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.", + UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".', + UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.", + UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.", + UnsupportedDeclareExportKind: ({ + unsupportedExportKind, + suggestion + }) => `\`declare export ${unsupportedExportKind}\` is not supported. Use \`${suggestion}\` instead.`, + UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.", + UnterminatedFlowComment: "Unterminated flow-comment." +}); +function isEsModuleType(bodyElement) { + return bodyElement.type === "DeclareExportAllDeclaration" || bodyElement.type === "DeclareExportDeclaration" && (!bodyElement.declaration || bodyElement.declaration.type !== "TypeAlias" && bodyElement.declaration.type !== "InterfaceDeclaration"); } -function tsInstantiationExpression(expression, typeParameters = null) { - return (0, _validateNode.default)({ - type: "TSInstantiationExpression", - expression, - typeParameters - }); +function hasTypeImportKind(node) { + return node.importKind === "type" || node.importKind === "typeof"; } -function tsAsExpression(expression, typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSAsExpression", - expression, - typeAnnotation - }); +const exportSuggestions = { + const: "declare export var", + let: "declare export var", + type: "export type", + interface: "export interface" +}; +function partition(list, test) { + const list1 = []; + const list2 = []; + for (let i = 0; i < list.length; i++) { + (test(list[i], i, list) ? list1 : list2).push(list[i]); + } + return [list1, list2]; } -function tsSatisfiesExpression(expression, typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSSatisfiesExpression", - expression, - typeAnnotation - }); +const FLOW_PRAGMA_REGEX = /\*?\s*@((?:no)?flow)\b/; +var flow = superClass => class FlowParserMixin extends superClass { + constructor(...args) { + super(...args); + this.flowPragma = undefined; + } + getScopeHandler() { + return FlowScopeHandler; + } + shouldParseTypes() { + return this.getPluginOption("flow", "all") || this.flowPragma === "flow"; + } + shouldParseEnums() { + return !!this.getPluginOption("flow", "enums"); + } + finishToken(type, val) { + if (type !== 133 && type !== 13 && type !== 28) { + if (this.flowPragma === undefined) { + this.flowPragma = null; + } + } + super.finishToken(type, val); + } + addComment(comment) { + if (this.flowPragma === undefined) { + const matches = FLOW_PRAGMA_REGEX.exec(comment.value); + if (!matches) ;else if (matches[1] === "flow") { + this.flowPragma = "flow"; + } else if (matches[1] === "noflow") { + this.flowPragma = "noflow"; + } else { + throw new Error("Unexpected flow pragma"); + } + } + super.addComment(comment); + } + flowParseTypeInitialiser(tok) { + const oldInType = this.state.inType; + this.state.inType = true; + this.expect(tok || 14); + const type = this.flowParseType(); + this.state.inType = oldInType; + return type; + } + flowParsePredicate() { + const node = this.startNode(); + const moduloLoc = this.state.startLoc; + this.next(); + this.expectContextual(110); + if (this.state.lastTokStart > moduloLoc.index + 1) { + this.raise(FlowErrors.UnexpectedSpaceBetweenModuloChecks, { + at: moduloLoc + }); + } + if (this.eat(10)) { + node.value = super.parseExpression(); + this.expect(11); + return this.finishNode(node, "DeclaredPredicate"); + } else { + return this.finishNode(node, "InferredPredicate"); + } + } + flowParseTypeAndPredicateInitialiser() { + const oldInType = this.state.inType; + this.state.inType = true; + this.expect(14); + let type = null; + let predicate = null; + if (this.match(54)) { + this.state.inType = oldInType; + predicate = this.flowParsePredicate(); + } else { + type = this.flowParseType(); + this.state.inType = oldInType; + if (this.match(54)) { + predicate = this.flowParsePredicate(); + } + } + return [type, predicate]; + } + flowParseDeclareClass(node) { + this.next(); + this.flowParseInterfaceish(node, true); + return this.finishNode(node, "DeclareClass"); + } + flowParseDeclareFunction(node) { + this.next(); + const id = node.id = this.parseIdentifier(); + const typeNode = this.startNode(); + const typeContainer = this.startNode(); + if (this.match(47)) { + typeNode.typeParameters = this.flowParseTypeParameterDeclaration(); + } else { + typeNode.typeParameters = null; + } + this.expect(10); + const tmp = this.flowParseFunctionTypeParams(); + typeNode.params = tmp.params; + typeNode.rest = tmp.rest; + typeNode.this = tmp._this; + this.expect(11); + [typeNode.returnType, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); + typeContainer.typeAnnotation = this.finishNode(typeNode, "FunctionTypeAnnotation"); + id.typeAnnotation = this.finishNode(typeContainer, "TypeAnnotation"); + this.resetEndLocation(id); + this.semicolon(); + this.scope.declareName(node.id.name, 2048, node.id.loc.start); + return this.finishNode(node, "DeclareFunction"); + } + flowParseDeclare(node, insideModule) { + if (this.match(80)) { + return this.flowParseDeclareClass(node); + } else if (this.match(68)) { + return this.flowParseDeclareFunction(node); + } else if (this.match(74)) { + return this.flowParseDeclareVariable(node); + } else if (this.eatContextual(127)) { + if (this.match(16)) { + return this.flowParseDeclareModuleExports(node); + } else { + if (insideModule) { + this.raise(FlowErrors.NestedDeclareModule, { + at: this.state.lastTokStartLoc + }); + } + return this.flowParseDeclareModule(node); + } + } else if (this.isContextual(130)) { + return this.flowParseDeclareTypeAlias(node); + } else if (this.isContextual(131)) { + return this.flowParseDeclareOpaqueType(node); + } else if (this.isContextual(129)) { + return this.flowParseDeclareInterface(node); + } else if (this.match(82)) { + return this.flowParseDeclareExportDeclaration(node, insideModule); + } else { + this.unexpected(); + } + } + flowParseDeclareVariable(node) { + this.next(); + node.id = this.flowParseTypeAnnotatableIdentifier(true); + this.scope.declareName(node.id.name, 5, node.id.loc.start); + this.semicolon(); + return this.finishNode(node, "DeclareVariable"); + } + flowParseDeclareModule(node) { + this.scope.enter(0); + if (this.match(133)) { + node.id = super.parseExprAtom(); + } else { + node.id = this.parseIdentifier(); + } + const bodyNode = node.body = this.startNode(); + const body = bodyNode.body = []; + this.expect(5); + while (!this.match(8)) { + let bodyNode = this.startNode(); + if (this.match(83)) { + this.next(); + if (!this.isContextual(130) && !this.match(87)) { + this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule, { + at: this.state.lastTokStartLoc + }); + } + super.parseImport(bodyNode); + } else { + this.expectContextual(125, FlowErrors.UnsupportedStatementInDeclareModule); + bodyNode = this.flowParseDeclare(bodyNode, true); + } + body.push(bodyNode); + } + this.scope.exit(); + this.expect(8); + this.finishNode(bodyNode, "BlockStatement"); + let kind = null; + let hasModuleExport = false; + body.forEach(bodyElement => { + if (isEsModuleType(bodyElement)) { + if (kind === "CommonJS") { + this.raise(FlowErrors.AmbiguousDeclareModuleKind, { + at: bodyElement + }); + } + kind = "ES"; + } else if (bodyElement.type === "DeclareModuleExports") { + if (hasModuleExport) { + this.raise(FlowErrors.DuplicateDeclareModuleExports, { + at: bodyElement + }); + } + if (kind === "ES") { + this.raise(FlowErrors.AmbiguousDeclareModuleKind, { + at: bodyElement + }); + } + kind = "CommonJS"; + hasModuleExport = true; + } + }); + node.kind = kind || "CommonJS"; + return this.finishNode(node, "DeclareModule"); + } + flowParseDeclareExportDeclaration(node, insideModule) { + this.expect(82); + if (this.eat(65)) { + if (this.match(68) || this.match(80)) { + node.declaration = this.flowParseDeclare(this.startNode()); + } else { + node.declaration = this.flowParseType(); + this.semicolon(); + } + node.default = true; + return this.finishNode(node, "DeclareExportDeclaration"); + } else { + if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !insideModule) { + const label = this.state.value; + throw this.raise(FlowErrors.UnsupportedDeclareExportKind, { + at: this.state.startLoc, + unsupportedExportKind: label, + suggestion: exportSuggestions[label] + }); + } + if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131)) { + node.declaration = this.flowParseDeclare(this.startNode()); + node.default = false; + return this.finishNode(node, "DeclareExportDeclaration"); + } else if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131)) { + node = this.parseExport(node, null); + if (node.type === "ExportNamedDeclaration") { + node.type = "ExportDeclaration"; + node.default = false; + delete node.exportKind; + } + node.type = "Declare" + node.type; + return node; + } + } + this.unexpected(); + } + flowParseDeclareModuleExports(node) { + this.next(); + this.expectContextual(111); + node.typeAnnotation = this.flowParseTypeAnnotation(); + this.semicolon(); + return this.finishNode(node, "DeclareModuleExports"); + } + flowParseDeclareTypeAlias(node) { + this.next(); + const finished = this.flowParseTypeAlias(node); + finished.type = "DeclareTypeAlias"; + return finished; + } + flowParseDeclareOpaqueType(node) { + this.next(); + const finished = this.flowParseOpaqueType(node, true); + finished.type = "DeclareOpaqueType"; + return finished; + } + flowParseDeclareInterface(node) { + this.next(); + this.flowParseInterfaceish(node, false); + return this.finishNode(node, "DeclareInterface"); + } + flowParseInterfaceish(node, isClass) { + node.id = this.flowParseRestrictedIdentifier(!isClass, true); + this.scope.declareName(node.id.name, isClass ? 17 : 8201, node.id.loc.start); + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterDeclaration(); + } else { + node.typeParameters = null; + } + node.extends = []; + if (this.eat(81)) { + do { + node.extends.push(this.flowParseInterfaceExtends()); + } while (!isClass && this.eat(12)); + } + if (isClass) { + node.implements = []; + node.mixins = []; + if (this.eatContextual(117)) { + do { + node.mixins.push(this.flowParseInterfaceExtends()); + } while (this.eat(12)); + } + if (this.eatContextual(113)) { + do { + node.implements.push(this.flowParseInterfaceExtends()); + } while (this.eat(12)); + } + } + node.body = this.flowParseObjectType({ + allowStatic: isClass, + allowExact: false, + allowSpread: false, + allowProto: isClass, + allowInexact: false + }); + } + flowParseInterfaceExtends() { + const node = this.startNode(); + node.id = this.flowParseQualifiedTypeIdentifier(); + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterInstantiation(); + } else { + node.typeParameters = null; + } + return this.finishNode(node, "InterfaceExtends"); + } + flowParseInterface(node) { + this.flowParseInterfaceish(node, false); + return this.finishNode(node, "InterfaceDeclaration"); + } + checkNotUnderscore(word) { + if (word === "_") { + this.raise(FlowErrors.UnexpectedReservedUnderscore, { + at: this.state.startLoc + }); + } + } + checkReservedType(word, startLoc, declaration) { + if (!reservedTypes.has(word)) return; + this.raise(declaration ? FlowErrors.AssignReservedType : FlowErrors.UnexpectedReservedType, { + at: startLoc, + reservedType: word + }); + } + flowParseRestrictedIdentifier(liberal, declaration) { + this.checkReservedType(this.state.value, this.state.startLoc, declaration); + return this.parseIdentifier(liberal); + } + flowParseTypeAlias(node) { + node.id = this.flowParseRestrictedIdentifier(false, true); + this.scope.declareName(node.id.name, 8201, node.id.loc.start); + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterDeclaration(); + } else { + node.typeParameters = null; + } + node.right = this.flowParseTypeInitialiser(29); + this.semicolon(); + return this.finishNode(node, "TypeAlias"); + } + flowParseOpaqueType(node, declare) { + this.expectContextual(130); + node.id = this.flowParseRestrictedIdentifier(true, true); + this.scope.declareName(node.id.name, 8201, node.id.loc.start); + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterDeclaration(); + } else { + node.typeParameters = null; + } + node.supertype = null; + if (this.match(14)) { + node.supertype = this.flowParseTypeInitialiser(14); + } + node.impltype = null; + if (!declare) { + node.impltype = this.flowParseTypeInitialiser(29); + } + this.semicolon(); + return this.finishNode(node, "OpaqueType"); + } + flowParseTypeParameter(requireDefault = false) { + const nodeStartLoc = this.state.startLoc; + const node = this.startNode(); + const variance = this.flowParseVariance(); + const ident = this.flowParseTypeAnnotatableIdentifier(); + node.name = ident.name; + node.variance = variance; + node.bound = ident.typeAnnotation; + if (this.match(29)) { + this.eat(29); + node.default = this.flowParseType(); + } else { + if (requireDefault) { + this.raise(FlowErrors.MissingTypeParamDefault, { + at: nodeStartLoc + }); + } + } + return this.finishNode(node, "TypeParameter"); + } + flowParseTypeParameterDeclaration() { + const oldInType = this.state.inType; + const node = this.startNode(); + node.params = []; + this.state.inType = true; + if (this.match(47) || this.match(142)) { + this.next(); + } else { + this.unexpected(); + } + let defaultRequired = false; + do { + const typeParameter = this.flowParseTypeParameter(defaultRequired); + node.params.push(typeParameter); + if (typeParameter.default) { + defaultRequired = true; + } + if (!this.match(48)) { + this.expect(12); + } + } while (!this.match(48)); + this.expect(48); + this.state.inType = oldInType; + return this.finishNode(node, "TypeParameterDeclaration"); + } + flowParseTypeParameterInstantiation() { + const node = this.startNode(); + const oldInType = this.state.inType; + node.params = []; + this.state.inType = true; + this.expect(47); + const oldNoAnonFunctionType = this.state.noAnonFunctionType; + this.state.noAnonFunctionType = false; + while (!this.match(48)) { + node.params.push(this.flowParseType()); + if (!this.match(48)) { + this.expect(12); + } + } + this.state.noAnonFunctionType = oldNoAnonFunctionType; + this.expect(48); + this.state.inType = oldInType; + return this.finishNode(node, "TypeParameterInstantiation"); + } + flowParseTypeParameterInstantiationCallOrNew() { + const node = this.startNode(); + const oldInType = this.state.inType; + node.params = []; + this.state.inType = true; + this.expect(47); + while (!this.match(48)) { + node.params.push(this.flowParseTypeOrImplicitInstantiation()); + if (!this.match(48)) { + this.expect(12); + } + } + this.expect(48); + this.state.inType = oldInType; + return this.finishNode(node, "TypeParameterInstantiation"); + } + flowParseInterfaceType() { + const node = this.startNode(); + this.expectContextual(129); + node.extends = []; + if (this.eat(81)) { + do { + node.extends.push(this.flowParseInterfaceExtends()); + } while (this.eat(12)); + } + node.body = this.flowParseObjectType({ + allowStatic: false, + allowExact: false, + allowSpread: false, + allowProto: false, + allowInexact: false + }); + return this.finishNode(node, "InterfaceTypeAnnotation"); + } + flowParseObjectPropertyKey() { + return this.match(134) || this.match(133) ? super.parseExprAtom() : this.parseIdentifier(true); + } + flowParseObjectTypeIndexer(node, isStatic, variance) { + node.static = isStatic; + if (this.lookahead().type === 14) { + node.id = this.flowParseObjectPropertyKey(); + node.key = this.flowParseTypeInitialiser(); + } else { + node.id = null; + node.key = this.flowParseType(); + } + this.expect(3); + node.value = this.flowParseTypeInitialiser(); + node.variance = variance; + return this.finishNode(node, "ObjectTypeIndexer"); + } + flowParseObjectTypeInternalSlot(node, isStatic) { + node.static = isStatic; + node.id = this.flowParseObjectPropertyKey(); + this.expect(3); + this.expect(3); + if (this.match(47) || this.match(10)) { + node.method = true; + node.optional = false; + node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.loc.start)); + } else { + node.method = false; + if (this.eat(17)) { + node.optional = true; + } + node.value = this.flowParseTypeInitialiser(); + } + return this.finishNode(node, "ObjectTypeInternalSlot"); + } + flowParseObjectTypeMethodish(node) { + node.params = []; + node.rest = null; + node.typeParameters = null; + node.this = null; + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterDeclaration(); + } + this.expect(10); + if (this.match(78)) { + node.this = this.flowParseFunctionTypeParam(true); + node.this.name = null; + if (!this.match(11)) { + this.expect(12); + } + } + while (!this.match(11) && !this.match(21)) { + node.params.push(this.flowParseFunctionTypeParam(false)); + if (!this.match(11)) { + this.expect(12); + } + } + if (this.eat(21)) { + node.rest = this.flowParseFunctionTypeParam(false); + } + this.expect(11); + node.returnType = this.flowParseTypeInitialiser(); + return this.finishNode(node, "FunctionTypeAnnotation"); + } + flowParseObjectTypeCallProperty(node, isStatic) { + const valueNode = this.startNode(); + node.static = isStatic; + node.value = this.flowParseObjectTypeMethodish(valueNode); + return this.finishNode(node, "ObjectTypeCallProperty"); + } + flowParseObjectType({ + allowStatic, + allowExact, + allowSpread, + allowProto, + allowInexact + }) { + const oldInType = this.state.inType; + this.state.inType = true; + const nodeStart = this.startNode(); + nodeStart.callProperties = []; + nodeStart.properties = []; + nodeStart.indexers = []; + nodeStart.internalSlots = []; + let endDelim; + let exact; + let inexact = false; + if (allowExact && this.match(6)) { + this.expect(6); + endDelim = 9; + exact = true; + } else { + this.expect(5); + endDelim = 8; + exact = false; + } + nodeStart.exact = exact; + while (!this.match(endDelim)) { + let isStatic = false; + let protoStartLoc = null; + let inexactStartLoc = null; + const node = this.startNode(); + if (allowProto && this.isContextual(118)) { + const lookahead = this.lookahead(); + if (lookahead.type !== 14 && lookahead.type !== 17) { + this.next(); + protoStartLoc = this.state.startLoc; + allowStatic = false; + } + } + if (allowStatic && this.isContextual(106)) { + const lookahead = this.lookahead(); + if (lookahead.type !== 14 && lookahead.type !== 17) { + this.next(); + isStatic = true; + } + } + const variance = this.flowParseVariance(); + if (this.eat(0)) { + if (protoStartLoc != null) { + this.unexpected(protoStartLoc); + } + if (this.eat(0)) { + if (variance) { + this.unexpected(variance.loc.start); + } + nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node, isStatic)); + } else { + nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node, isStatic, variance)); + } + } else if (this.match(10) || this.match(47)) { + if (protoStartLoc != null) { + this.unexpected(protoStartLoc); + } + if (variance) { + this.unexpected(variance.loc.start); + } + nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, isStatic)); + } else { + let kind = "init"; + if (this.isContextual(99) || this.isContextual(104)) { + const lookahead = this.lookahead(); + if (tokenIsLiteralPropertyName(lookahead.type)) { + kind = this.state.value; + this.next(); + } + } + const propOrInexact = this.flowParseObjectTypeProperty(node, isStatic, protoStartLoc, variance, kind, allowSpread, allowInexact != null ? allowInexact : !exact); + if (propOrInexact === null) { + inexact = true; + inexactStartLoc = this.state.lastTokStartLoc; + } else { + nodeStart.properties.push(propOrInexact); + } + } + this.flowObjectTypeSemicolon(); + if (inexactStartLoc && !this.match(8) && !this.match(9)) { + this.raise(FlowErrors.UnexpectedExplicitInexactInObject, { + at: inexactStartLoc + }); + } + } + this.expect(endDelim); + if (allowSpread) { + nodeStart.inexact = inexact; + } + const out = this.finishNode(nodeStart, "ObjectTypeAnnotation"); + this.state.inType = oldInType; + return out; + } + flowParseObjectTypeProperty(node, isStatic, protoStartLoc, variance, kind, allowSpread, allowInexact) { + if (this.eat(21)) { + const isInexactToken = this.match(12) || this.match(13) || this.match(8) || this.match(9); + if (isInexactToken) { + if (!allowSpread) { + this.raise(FlowErrors.InexactInsideNonObject, { + at: this.state.lastTokStartLoc + }); + } else if (!allowInexact) { + this.raise(FlowErrors.InexactInsideExact, { + at: this.state.lastTokStartLoc + }); + } + if (variance) { + this.raise(FlowErrors.InexactVariance, { + at: variance + }); + } + return null; + } + if (!allowSpread) { + this.raise(FlowErrors.UnexpectedSpreadType, { + at: this.state.lastTokStartLoc + }); + } + if (protoStartLoc != null) { + this.unexpected(protoStartLoc); + } + if (variance) { + this.raise(FlowErrors.SpreadVariance, { + at: variance + }); + } + node.argument = this.flowParseType(); + return this.finishNode(node, "ObjectTypeSpreadProperty"); + } else { + node.key = this.flowParseObjectPropertyKey(); + node.static = isStatic; + node.proto = protoStartLoc != null; + node.kind = kind; + let optional = false; + if (this.match(47) || this.match(10)) { + node.method = true; + if (protoStartLoc != null) { + this.unexpected(protoStartLoc); + } + if (variance) { + this.unexpected(variance.loc.start); + } + node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.loc.start)); + if (kind === "get" || kind === "set") { + this.flowCheckGetterSetterParams(node); + } + if (!allowSpread && node.key.name === "constructor" && node.value.this) { + this.raise(FlowErrors.ThisParamBannedInConstructor, { + at: node.value.this + }); + } + } else { + if (kind !== "init") this.unexpected(); + node.method = false; + if (this.eat(17)) { + optional = true; + } + node.value = this.flowParseTypeInitialiser(); + node.variance = variance; + } + node.optional = optional; + return this.finishNode(node, "ObjectTypeProperty"); + } + } + flowCheckGetterSetterParams(property) { + const paramCount = property.kind === "get" ? 0 : 1; + const length = property.value.params.length + (property.value.rest ? 1 : 0); + if (property.value.this) { + this.raise(property.kind === "get" ? FlowErrors.GetterMayNotHaveThisParam : FlowErrors.SetterMayNotHaveThisParam, { + at: property.value.this + }); + } + if (length !== paramCount) { + this.raise(property.kind === "get" ? Errors.BadGetterArity : Errors.BadSetterArity, { + at: property + }); + } + if (property.kind === "set" && property.value.rest) { + this.raise(Errors.BadSetterRestParameter, { + at: property + }); + } + } + flowObjectTypeSemicolon() { + if (!this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9)) { + this.unexpected(); + } + } + flowParseQualifiedTypeIdentifier(startLoc, id) { + var _startLoc; + (_startLoc = startLoc) != null ? _startLoc : startLoc = this.state.startLoc; + let node = id || this.flowParseRestrictedIdentifier(true); + while (this.eat(16)) { + const node2 = this.startNodeAt(startLoc); + node2.qualification = node; + node2.id = this.flowParseRestrictedIdentifier(true); + node = this.finishNode(node2, "QualifiedTypeIdentifier"); + } + return node; + } + flowParseGenericType(startLoc, id) { + const node = this.startNodeAt(startLoc); + node.typeParameters = null; + node.id = this.flowParseQualifiedTypeIdentifier(startLoc, id); + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterInstantiation(); + } + return this.finishNode(node, "GenericTypeAnnotation"); + } + flowParseTypeofType() { + const node = this.startNode(); + this.expect(87); + node.argument = this.flowParsePrimaryType(); + return this.finishNode(node, "TypeofTypeAnnotation"); + } + flowParseTupleType() { + const node = this.startNode(); + node.types = []; + this.expect(0); + while (this.state.pos < this.length && !this.match(3)) { + node.types.push(this.flowParseType()); + if (this.match(3)) break; + this.expect(12); + } + this.expect(3); + return this.finishNode(node, "TupleTypeAnnotation"); + } + flowParseFunctionTypeParam(first) { + let name = null; + let optional = false; + let typeAnnotation = null; + const node = this.startNode(); + const lh = this.lookahead(); + const isThis = this.state.type === 78; + if (lh.type === 14 || lh.type === 17) { + if (isThis && !first) { + this.raise(FlowErrors.ThisParamMustBeFirst, { + at: node + }); + } + name = this.parseIdentifier(isThis); + if (this.eat(17)) { + optional = true; + if (isThis) { + this.raise(FlowErrors.ThisParamMayNotBeOptional, { + at: node + }); + } + } + typeAnnotation = this.flowParseTypeInitialiser(); + } else { + typeAnnotation = this.flowParseType(); + } + node.name = name; + node.optional = optional; + node.typeAnnotation = typeAnnotation; + return this.finishNode(node, "FunctionTypeParam"); + } + reinterpretTypeAsFunctionTypeParam(type) { + const node = this.startNodeAt(type.loc.start); + node.name = null; + node.optional = false; + node.typeAnnotation = type; + return this.finishNode(node, "FunctionTypeParam"); + } + flowParseFunctionTypeParams(params = []) { + let rest = null; + let _this = null; + if (this.match(78)) { + _this = this.flowParseFunctionTypeParam(true); + _this.name = null; + if (!this.match(11)) { + this.expect(12); + } + } + while (!this.match(11) && !this.match(21)) { + params.push(this.flowParseFunctionTypeParam(false)); + if (!this.match(11)) { + this.expect(12); + } + } + if (this.eat(21)) { + rest = this.flowParseFunctionTypeParam(false); + } + return { + params, + rest, + _this + }; + } + flowIdentToTypeAnnotation(startLoc, node, id) { + switch (id.name) { + case "any": + return this.finishNode(node, "AnyTypeAnnotation"); + case "bool": + case "boolean": + return this.finishNode(node, "BooleanTypeAnnotation"); + case "mixed": + return this.finishNode(node, "MixedTypeAnnotation"); + case "empty": + return this.finishNode(node, "EmptyTypeAnnotation"); + case "number": + return this.finishNode(node, "NumberTypeAnnotation"); + case "string": + return this.finishNode(node, "StringTypeAnnotation"); + case "symbol": + return this.finishNode(node, "SymbolTypeAnnotation"); + default: + this.checkNotUnderscore(id.name); + return this.flowParseGenericType(startLoc, id); + } + } + flowParsePrimaryType() { + const startLoc = this.state.startLoc; + const node = this.startNode(); + let tmp; + let type; + let isGroupedType = false; + const oldNoAnonFunctionType = this.state.noAnonFunctionType; + switch (this.state.type) { + case 5: + return this.flowParseObjectType({ + allowStatic: false, + allowExact: false, + allowSpread: true, + allowProto: false, + allowInexact: true + }); + case 6: + return this.flowParseObjectType({ + allowStatic: false, + allowExact: true, + allowSpread: true, + allowProto: false, + allowInexact: false + }); + case 0: + this.state.noAnonFunctionType = false; + type = this.flowParseTupleType(); + this.state.noAnonFunctionType = oldNoAnonFunctionType; + return type; + case 47: + node.typeParameters = this.flowParseTypeParameterDeclaration(); + this.expect(10); + tmp = this.flowParseFunctionTypeParams(); + node.params = tmp.params; + node.rest = tmp.rest; + node.this = tmp._this; + this.expect(11); + this.expect(19); + node.returnType = this.flowParseType(); + return this.finishNode(node, "FunctionTypeAnnotation"); + case 10: + this.next(); + if (!this.match(11) && !this.match(21)) { + if (tokenIsIdentifier(this.state.type) || this.match(78)) { + const token = this.lookahead().type; + isGroupedType = token !== 17 && token !== 14; + } else { + isGroupedType = true; + } + } + if (isGroupedType) { + this.state.noAnonFunctionType = false; + type = this.flowParseType(); + this.state.noAnonFunctionType = oldNoAnonFunctionType; + if (this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) { + this.expect(11); + return type; + } else { + this.eat(12); + } + } + if (type) { + tmp = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(type)]); + } else { + tmp = this.flowParseFunctionTypeParams(); + } + node.params = tmp.params; + node.rest = tmp.rest; + node.this = tmp._this; + this.expect(11); + this.expect(19); + node.returnType = this.flowParseType(); + node.typeParameters = null; + return this.finishNode(node, "FunctionTypeAnnotation"); + case 133: + return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation"); + case 85: + case 86: + node.value = this.match(85); + this.next(); + return this.finishNode(node, "BooleanLiteralTypeAnnotation"); + case 53: + if (this.state.value === "-") { + this.next(); + if (this.match(134)) { + return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", node); + } + if (this.match(135)) { + return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", node); + } + throw this.raise(FlowErrors.UnexpectedSubtractionOperand, { + at: this.state.startLoc + }); + } + this.unexpected(); + return; + case 134: + return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation"); + case 135: + return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation"); + case 88: + this.next(); + return this.finishNode(node, "VoidTypeAnnotation"); + case 84: + this.next(); + return this.finishNode(node, "NullLiteralTypeAnnotation"); + case 78: + this.next(); + return this.finishNode(node, "ThisTypeAnnotation"); + case 55: + this.next(); + return this.finishNode(node, "ExistsTypeAnnotation"); + case 87: + return this.flowParseTypeofType(); + default: + if (tokenIsKeyword(this.state.type)) { + const label = tokenLabelName(this.state.type); + this.next(); + return super.createIdentifier(node, label); + } else if (tokenIsIdentifier(this.state.type)) { + if (this.isContextual(129)) { + return this.flowParseInterfaceType(); + } + return this.flowIdentToTypeAnnotation(startLoc, node, this.parseIdentifier()); + } + } + this.unexpected(); + } + flowParsePostfixType() { + const startLoc = this.state.startLoc; + let type = this.flowParsePrimaryType(); + let seenOptionalIndexedAccess = false; + while ((this.match(0) || this.match(18)) && !this.canInsertSemicolon()) { + const node = this.startNodeAt(startLoc); + const optional = this.eat(18); + seenOptionalIndexedAccess = seenOptionalIndexedAccess || optional; + this.expect(0); + if (!optional && this.match(3)) { + node.elementType = type; + this.next(); + type = this.finishNode(node, "ArrayTypeAnnotation"); + } else { + node.objectType = type; + node.indexType = this.flowParseType(); + this.expect(3); + if (seenOptionalIndexedAccess) { + node.optional = optional; + type = this.finishNode(node, "OptionalIndexedAccessType"); + } else { + type = this.finishNode(node, "IndexedAccessType"); + } + } + } + return type; + } + flowParsePrefixType() { + const node = this.startNode(); + if (this.eat(17)) { + node.typeAnnotation = this.flowParsePrefixType(); + return this.finishNode(node, "NullableTypeAnnotation"); + } else { + return this.flowParsePostfixType(); + } + } + flowParseAnonFunctionWithoutParens() { + const param = this.flowParsePrefixType(); + if (!this.state.noAnonFunctionType && this.eat(19)) { + const node = this.startNodeAt(param.loc.start); + node.params = [this.reinterpretTypeAsFunctionTypeParam(param)]; + node.rest = null; + node.this = null; + node.returnType = this.flowParseType(); + node.typeParameters = null; + return this.finishNode(node, "FunctionTypeAnnotation"); + } + return param; + } + flowParseIntersectionType() { + const node = this.startNode(); + this.eat(45); + const type = this.flowParseAnonFunctionWithoutParens(); + node.types = [type]; + while (this.eat(45)) { + node.types.push(this.flowParseAnonFunctionWithoutParens()); + } + return node.types.length === 1 ? type : this.finishNode(node, "IntersectionTypeAnnotation"); + } + flowParseUnionType() { + const node = this.startNode(); + this.eat(43); + const type = this.flowParseIntersectionType(); + node.types = [type]; + while (this.eat(43)) { + node.types.push(this.flowParseIntersectionType()); + } + return node.types.length === 1 ? type : this.finishNode(node, "UnionTypeAnnotation"); + } + flowParseType() { + const oldInType = this.state.inType; + this.state.inType = true; + const type = this.flowParseUnionType(); + this.state.inType = oldInType; + return type; + } + flowParseTypeOrImplicitInstantiation() { + if (this.state.type === 132 && this.state.value === "_") { + const startLoc = this.state.startLoc; + const node = this.parseIdentifier(); + return this.flowParseGenericType(startLoc, node); + } else { + return this.flowParseType(); + } + } + flowParseTypeAnnotation() { + const node = this.startNode(); + node.typeAnnotation = this.flowParseTypeInitialiser(); + return this.finishNode(node, "TypeAnnotation"); + } + flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride) { + const ident = allowPrimitiveOverride ? this.parseIdentifier() : this.flowParseRestrictedIdentifier(); + if (this.match(14)) { + ident.typeAnnotation = this.flowParseTypeAnnotation(); + this.resetEndLocation(ident); + } + return ident; + } + typeCastToParameter(node) { + node.expression.typeAnnotation = node.typeAnnotation; + this.resetEndLocation(node.expression, node.typeAnnotation.loc.end); + return node.expression; + } + flowParseVariance() { + let variance = null; + if (this.match(53)) { + variance = this.startNode(); + if (this.state.value === "+") { + variance.kind = "plus"; + } else { + variance.kind = "minus"; + } + this.next(); + return this.finishNode(variance, "Variance"); + } + return variance; + } + parseFunctionBody(node, allowExpressionBody, isMethod = false) { + if (allowExpressionBody) { + this.forwardNoArrowParamsConversionAt(node, () => super.parseFunctionBody(node, true, isMethod)); + return; + } + super.parseFunctionBody(node, false, isMethod); + } + parseFunctionBodyAndFinish(node, type, isMethod = false) { + if (this.match(14)) { + const typeNode = this.startNode(); + [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); + node.returnType = typeNode.typeAnnotation ? this.finishNode(typeNode, "TypeAnnotation") : null; + } + return super.parseFunctionBodyAndFinish(node, type, isMethod); + } + parseStatementLike(flags) { + if (this.state.strict && this.isContextual(129)) { + const lookahead = this.lookahead(); + if (tokenIsKeywordOrIdentifier(lookahead.type)) { + const node = this.startNode(); + this.next(); + return this.flowParseInterface(node); + } + } else if (this.shouldParseEnums() && this.isContextual(126)) { + const node = this.startNode(); + this.next(); + return this.flowParseEnumDeclaration(node); + } + const stmt = super.parseStatementLike(flags); + if (this.flowPragma === undefined && !this.isValidDirective(stmt)) { + this.flowPragma = null; + } + return stmt; + } + parseExpressionStatement(node, expr, decorators) { + if (expr.type === "Identifier") { + if (expr.name === "declare") { + if (this.match(80) || tokenIsIdentifier(this.state.type) || this.match(68) || this.match(74) || this.match(82)) { + return this.flowParseDeclare(node); + } + } else if (tokenIsIdentifier(this.state.type)) { + if (expr.name === "interface") { + return this.flowParseInterface(node); + } else if (expr.name === "type") { + return this.flowParseTypeAlias(node); + } else if (expr.name === "opaque") { + return this.flowParseOpaqueType(node, false); + } + } + } + return super.parseExpressionStatement(node, expr, decorators); + } + shouldParseExportDeclaration() { + const { + type + } = this.state; + if (tokenIsFlowInterfaceOrTypeOrOpaque(type) || this.shouldParseEnums() && type === 126) { + return !this.state.containsEsc; + } + return super.shouldParseExportDeclaration(); + } + isExportDefaultSpecifier() { + const { + type + } = this.state; + if (tokenIsFlowInterfaceOrTypeOrOpaque(type) || this.shouldParseEnums() && type === 126) { + return this.state.containsEsc; + } + return super.isExportDefaultSpecifier(); + } + parseExportDefaultExpression() { + if (this.shouldParseEnums() && this.isContextual(126)) { + const node = this.startNode(); + this.next(); + return this.flowParseEnumDeclaration(node); + } + return super.parseExportDefaultExpression(); + } + parseConditional(expr, startLoc, refExpressionErrors) { + if (!this.match(17)) return expr; + if (this.state.maybeInArrowParameters) { + const nextCh = this.lookaheadCharCode(); + if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) { + this.setOptionalParametersError(refExpressionErrors); + return expr; + } + } + this.expect(17); + const state = this.state.clone(); + const originalNoArrowAt = this.state.noArrowAt; + const node = this.startNodeAt(startLoc); + let { + consequent, + failed + } = this.tryParseConditionalConsequent(); + let [valid, invalid] = this.getArrowLikeExpressions(consequent); + if (failed || invalid.length > 0) { + const noArrowAt = [...originalNoArrowAt]; + if (invalid.length > 0) { + this.state = state; + this.state.noArrowAt = noArrowAt; + for (let i = 0; i < invalid.length; i++) { + noArrowAt.push(invalid[i].start); + } + ({ + consequent, + failed + } = this.tryParseConditionalConsequent()); + [valid, invalid] = this.getArrowLikeExpressions(consequent); + } + if (failed && valid.length > 1) { + this.raise(FlowErrors.AmbiguousConditionalArrow, { + at: state.startLoc + }); + } + if (failed && valid.length === 1) { + this.state = state; + noArrowAt.push(valid[0].start); + this.state.noArrowAt = noArrowAt; + ({ + consequent, + failed + } = this.tryParseConditionalConsequent()); + } + } + this.getArrowLikeExpressions(consequent, true); + this.state.noArrowAt = originalNoArrowAt; + this.expect(14); + node.test = expr; + node.consequent = consequent; + node.alternate = this.forwardNoArrowParamsConversionAt(node, () => this.parseMaybeAssign(undefined, undefined)); + return this.finishNode(node, "ConditionalExpression"); + } + tryParseConditionalConsequent() { + this.state.noArrowParamsConversionAt.push(this.state.start); + const consequent = this.parseMaybeAssignAllowIn(); + const failed = !this.match(14); + this.state.noArrowParamsConversionAt.pop(); + return { + consequent, + failed + }; + } + getArrowLikeExpressions(node, disallowInvalid) { + const stack = [node]; + const arrows = []; + while (stack.length !== 0) { + const node = stack.pop(); + if (node.type === "ArrowFunctionExpression") { + if (node.typeParameters || !node.returnType) { + this.finishArrowValidation(node); + } else { + arrows.push(node); + } + stack.push(node.body); + } else if (node.type === "ConditionalExpression") { + stack.push(node.consequent); + stack.push(node.alternate); + } + } + if (disallowInvalid) { + arrows.forEach(node => this.finishArrowValidation(node)); + return [arrows, []]; + } + return partition(arrows, node => node.params.every(param => this.isAssignable(param, true))); + } + finishArrowValidation(node) { + var _node$extra; + this.toAssignableList(node.params, (_node$extra = node.extra) == null ? void 0 : _node$extra.trailingCommaLoc, false); + this.scope.enter(2 | 4); + super.checkParams(node, false, true); + this.scope.exit(); + } + forwardNoArrowParamsConversionAt(node, parse) { + let result; + if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { + this.state.noArrowParamsConversionAt.push(this.state.start); + result = parse(); + this.state.noArrowParamsConversionAt.pop(); + } else { + result = parse(); + } + return result; + } + parseParenItem(node, startLoc) { + node = super.parseParenItem(node, startLoc); + if (this.eat(17)) { + node.optional = true; + this.resetEndLocation(node); + } + if (this.match(14)) { + const typeCastNode = this.startNodeAt(startLoc); + typeCastNode.expression = node; + typeCastNode.typeAnnotation = this.flowParseTypeAnnotation(); + return this.finishNode(typeCastNode, "TypeCastExpression"); + } + return node; + } + assertModuleNodeAllowed(node) { + if (node.type === "ImportDeclaration" && (node.importKind === "type" || node.importKind === "typeof") || node.type === "ExportNamedDeclaration" && node.exportKind === "type" || node.type === "ExportAllDeclaration" && node.exportKind === "type") { + return; + } + super.assertModuleNodeAllowed(node); + } + parseExportDeclaration(node) { + if (this.isContextual(130)) { + node.exportKind = "type"; + const declarationNode = this.startNode(); + this.next(); + if (this.match(5)) { + node.specifiers = this.parseExportSpecifiers(true); + super.parseExportFrom(node); + return null; + } else { + return this.flowParseTypeAlias(declarationNode); + } + } else if (this.isContextual(131)) { + node.exportKind = "type"; + const declarationNode = this.startNode(); + this.next(); + return this.flowParseOpaqueType(declarationNode, false); + } else if (this.isContextual(129)) { + node.exportKind = "type"; + const declarationNode = this.startNode(); + this.next(); + return this.flowParseInterface(declarationNode); + } else if (this.shouldParseEnums() && this.isContextual(126)) { + node.exportKind = "value"; + const declarationNode = this.startNode(); + this.next(); + return this.flowParseEnumDeclaration(declarationNode); + } else { + return super.parseExportDeclaration(node); + } + } + eatExportStar(node) { + if (super.eatExportStar(node)) return true; + if (this.isContextual(130) && this.lookahead().type === 55) { + node.exportKind = "type"; + this.next(); + this.next(); + return true; + } + return false; + } + maybeParseExportNamespaceSpecifier(node) { + const { + startLoc + } = this.state; + const hasNamespace = super.maybeParseExportNamespaceSpecifier(node); + if (hasNamespace && node.exportKind === "type") { + this.unexpected(startLoc); + } + return hasNamespace; + } + parseClassId(node, isStatement, optionalId) { + super.parseClassId(node, isStatement, optionalId); + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterDeclaration(); + } + } + parseClassMember(classBody, member, state) { + const { + startLoc + } = this.state; + if (this.isContextual(125)) { + if (super.parseClassMemberFromModifier(classBody, member)) { + return; + } + member.declare = true; + } + super.parseClassMember(classBody, member, state); + if (member.declare) { + if (member.type !== "ClassProperty" && member.type !== "ClassPrivateProperty" && member.type !== "PropertyDefinition") { + this.raise(FlowErrors.DeclareClassElement, { + at: startLoc + }); + } else if (member.value) { + this.raise(FlowErrors.DeclareClassFieldInitializer, { + at: member.value + }); + } + } + } + isIterator(word) { + return word === "iterator" || word === "asyncIterator"; + } + readIterator() { + const word = super.readWord1(); + const fullWord = "@@" + word; + if (!this.isIterator(word) || !this.state.inType) { + this.raise(Errors.InvalidIdentifier, { + at: this.state.curPosition(), + identifierName: fullWord + }); + } + this.finishToken(132, fullWord); + } + getTokenFromCode(code) { + const next = this.input.charCodeAt(this.state.pos + 1); + if (code === 123 && next === 124) { + this.finishOp(6, 2); + } else if (this.state.inType && (code === 62 || code === 60)) { + this.finishOp(code === 62 ? 48 : 47, 1); + } else if (this.state.inType && code === 63) { + if (next === 46) { + this.finishOp(18, 2); + } else { + this.finishOp(17, 1); + } + } else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) { + this.state.pos += 2; + this.readIterator(); + } else { + super.getTokenFromCode(code); + } + } + isAssignable(node, isBinding) { + if (node.type === "TypeCastExpression") { + return this.isAssignable(node.expression, isBinding); + } else { + return super.isAssignable(node, isBinding); + } + } + toAssignable(node, isLHS = false) { + if (!isLHS && node.type === "AssignmentExpression" && node.left.type === "TypeCastExpression") { + node.left = this.typeCastToParameter(node.left); + } + super.toAssignable(node, isLHS); + } + toAssignableList(exprList, trailingCommaLoc, isLHS) { + for (let i = 0; i < exprList.length; i++) { + const expr = exprList[i]; + if ((expr == null ? void 0 : expr.type) === "TypeCastExpression") { + exprList[i] = this.typeCastToParameter(expr); + } + } + super.toAssignableList(exprList, trailingCommaLoc, isLHS); + } + toReferencedList(exprList, isParenthesizedExpr) { + for (let i = 0; i < exprList.length; i++) { + var _expr$extra; + const expr = exprList[i]; + if (expr && expr.type === "TypeCastExpression" && !((_expr$extra = expr.extra) != null && _expr$extra.parenthesized) && (exprList.length > 1 || !isParenthesizedExpr)) { + this.raise(FlowErrors.TypeCastInPattern, { + at: expr.typeAnnotation + }); + } + } + return exprList; + } + parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { + const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors); + if (canBePattern && !this.state.maybeInArrowParameters) { + this.toReferencedList(node.elements); + } + return node; + } + isValidLVal(type, isParenthesized, binding) { + return type === "TypeCastExpression" || super.isValidLVal(type, isParenthesized, binding); + } + parseClassProperty(node) { + if (this.match(14)) { + node.typeAnnotation = this.flowParseTypeAnnotation(); + } + return super.parseClassProperty(node); + } + parseClassPrivateProperty(node) { + if (this.match(14)) { + node.typeAnnotation = this.flowParseTypeAnnotation(); + } + return super.parseClassPrivateProperty(node); + } + isClassMethod() { + return this.match(47) || super.isClassMethod(); + } + isClassProperty() { + return this.match(14) || super.isClassProperty(); + } + isNonstaticConstructor(method) { + return !this.match(14) && super.isNonstaticConstructor(method); + } + pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { + if (method.variance) { + this.unexpected(method.variance.loc.start); + } + delete method.variance; + if (this.match(47)) { + method.typeParameters = this.flowParseTypeParameterDeclaration(); + } + super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper); + if (method.params && isConstructor) { + const params = method.params; + if (params.length > 0 && this.isThisParam(params[0])) { + this.raise(FlowErrors.ThisParamBannedInConstructor, { + at: method + }); + } + } else if (method.type === "MethodDefinition" && isConstructor && method.value.params) { + const params = method.value.params; + if (params.length > 0 && this.isThisParam(params[0])) { + this.raise(FlowErrors.ThisParamBannedInConstructor, { + at: method + }); + } + } + } + pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { + if (method.variance) { + this.unexpected(method.variance.loc.start); + } + delete method.variance; + if (this.match(47)) { + method.typeParameters = this.flowParseTypeParameterDeclaration(); + } + super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync); + } + parseClassSuper(node) { + super.parseClassSuper(node); + if (node.superClass && this.match(47)) { + node.superTypeParameters = this.flowParseTypeParameterInstantiation(); + } + if (this.isContextual(113)) { + this.next(); + const implemented = node.implements = []; + do { + const node = this.startNode(); + node.id = this.flowParseRestrictedIdentifier(true); + if (this.match(47)) { + node.typeParameters = this.flowParseTypeParameterInstantiation(); + } else { + node.typeParameters = null; + } + implemented.push(this.finishNode(node, "ClassImplements")); + } while (this.eat(12)); + } + } + checkGetterSetterParams(method) { + super.checkGetterSetterParams(method); + const params = this.getObjectOrClassMethodParams(method); + if (params.length > 0) { + const param = params[0]; + if (this.isThisParam(param) && method.kind === "get") { + this.raise(FlowErrors.GetterMayNotHaveThisParam, { + at: param + }); + } else if (this.isThisParam(param)) { + this.raise(FlowErrors.SetterMayNotHaveThisParam, { + at: param + }); + } + } + } + parsePropertyNamePrefixOperator(node) { + node.variance = this.flowParseVariance(); + } + parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { + if (prop.variance) { + this.unexpected(prop.variance.loc.start); + } + delete prop.variance; + let typeParameters; + if (this.match(47) && !isAccessor) { + typeParameters = this.flowParseTypeParameterDeclaration(); + if (!this.match(10)) this.unexpected(); + } + const result = super.parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors); + if (typeParameters) { + (result.value || result).typeParameters = typeParameters; + } + return result; + } + parseAssignableListItemTypes(param) { + if (this.eat(17)) { + if (param.type !== "Identifier") { + this.raise(FlowErrors.PatternIsOptional, { + at: param + }); + } + if (this.isThisParam(param)) { + this.raise(FlowErrors.ThisParamMayNotBeOptional, { + at: param + }); + } + param.optional = true; + } + if (this.match(14)) { + param.typeAnnotation = this.flowParseTypeAnnotation(); + } else if (this.isThisParam(param)) { + this.raise(FlowErrors.ThisParamAnnotationRequired, { + at: param + }); + } + if (this.match(29) && this.isThisParam(param)) { + this.raise(FlowErrors.ThisParamNoDefault, { + at: param + }); + } + this.resetEndLocation(param); + return param; + } + parseMaybeDefault(startLoc, left) { + const node = super.parseMaybeDefault(startLoc, left); + if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) { + this.raise(FlowErrors.TypeBeforeInitializer, { + at: node.typeAnnotation + }); + } + return node; + } + checkImportReflection(node) { + super.checkImportReflection(node); + if (node.module && node.importKind !== "value") { + this.raise(FlowErrors.ImportReflectionHasImportType, { + at: node.specifiers[0].loc.start + }); + } + } + parseImportSpecifierLocal(node, specifier, type) { + specifier.local = hasTypeImportKind(node) ? this.flowParseRestrictedIdentifier(true, true) : this.parseIdentifier(); + node.specifiers.push(this.finishImportSpecifier(specifier, type)); + } + isPotentialImportPhase(isExport) { + if (super.isPotentialImportPhase(isExport)) return true; + if (this.isContextual(130)) { + if (!isExport) return true; + const ch = this.lookaheadCharCode(); + return ch === 123 || ch === 42; + } + return !isExport && this.isContextual(87); + } + applyImportPhase(node, isExport, phase, loc) { + super.applyImportPhase(node, isExport, phase, loc); + if (isExport) { + if (!phase && this.match(65)) { + return; + } + node.exportKind = phase === "type" ? phase : "value"; + } else { + if (phase === "type" && this.match(55)) this.unexpected(); + node.importKind = phase === "type" || phase === "typeof" ? phase : "value"; + } + } + parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { + const firstIdent = specifier.imported; + let specifierTypeKind = null; + if (firstIdent.type === "Identifier") { + if (firstIdent.name === "type") { + specifierTypeKind = "type"; + } else if (firstIdent.name === "typeof") { + specifierTypeKind = "typeof"; + } + } + let isBinding = false; + if (this.isContextual(93) && !this.isLookaheadContextual("as")) { + const as_ident = this.parseIdentifier(true); + if (specifierTypeKind !== null && !tokenIsKeywordOrIdentifier(this.state.type)) { + specifier.imported = as_ident; + specifier.importKind = specifierTypeKind; + specifier.local = cloneIdentifier(as_ident); + } else { + specifier.imported = firstIdent; + specifier.importKind = null; + specifier.local = this.parseIdentifier(); + } + } else { + if (specifierTypeKind !== null && tokenIsKeywordOrIdentifier(this.state.type)) { + specifier.imported = this.parseIdentifier(true); + specifier.importKind = specifierTypeKind; + } else { + if (importedIsString) { + throw this.raise(Errors.ImportBindingIsString, { + at: specifier, + importName: firstIdent.value + }); + } + specifier.imported = firstIdent; + specifier.importKind = null; + } + if (this.eatContextual(93)) { + specifier.local = this.parseIdentifier(); + } else { + isBinding = true; + specifier.local = cloneIdentifier(specifier.imported); + } + } + const specifierIsTypeImport = hasTypeImportKind(specifier); + if (isInTypeOnlyImport && specifierIsTypeImport) { + this.raise(FlowErrors.ImportTypeShorthandOnlyInPureImport, { + at: specifier + }); + } + if (isInTypeOnlyImport || specifierIsTypeImport) { + this.checkReservedType(specifier.local.name, specifier.local.loc.start, true); + } + if (isBinding && !isInTypeOnlyImport && !specifierIsTypeImport) { + this.checkReservedWord(specifier.local.name, specifier.loc.start, true, true); + } + return this.finishImportSpecifier(specifier, "ImportSpecifier"); + } + parseBindingAtom() { + switch (this.state.type) { + case 78: + return this.parseIdentifier(true); + default: + return super.parseBindingAtom(); + } + } + parseFunctionParams(node, isConstructor) { + const kind = node.kind; + if (kind !== "get" && kind !== "set" && this.match(47)) { + node.typeParameters = this.flowParseTypeParameterDeclaration(); + } + super.parseFunctionParams(node, isConstructor); + } + parseVarId(decl, kind) { + super.parseVarId(decl, kind); + if (this.match(14)) { + decl.id.typeAnnotation = this.flowParseTypeAnnotation(); + this.resetEndLocation(decl.id); + } + } + parseAsyncArrowFromCallExpression(node, call) { + if (this.match(14)) { + const oldNoAnonFunctionType = this.state.noAnonFunctionType; + this.state.noAnonFunctionType = true; + node.returnType = this.flowParseTypeAnnotation(); + this.state.noAnonFunctionType = oldNoAnonFunctionType; + } + return super.parseAsyncArrowFromCallExpression(node, call); + } + shouldParseAsyncArrow() { + return this.match(14) || super.shouldParseAsyncArrow(); + } + parseMaybeAssign(refExpressionErrors, afterLeftParse) { + var _jsx; + let state = null; + let jsx; + if (this.hasPlugin("jsx") && (this.match(142) || this.match(47))) { + state = this.state.clone(); + jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); + if (!jsx.error) return jsx.node; + const { + context + } = this.state; + const currentContext = context[context.length - 1]; + if (currentContext === types.j_oTag || currentContext === types.j_expr) { + context.pop(); + } + } + if ((_jsx = jsx) != null && _jsx.error || this.match(47)) { + var _jsx2, _jsx3; + state = state || this.state.clone(); + let typeParameters; + const arrow = this.tryParse(abort => { + var _arrowExpression$extr; + typeParameters = this.flowParseTypeParameterDeclaration(); + const arrowExpression = this.forwardNoArrowParamsConversionAt(typeParameters, () => { + const result = super.parseMaybeAssign(refExpressionErrors, afterLeftParse); + this.resetStartLocationFromNode(result, typeParameters); + return result; + }); + if ((_arrowExpression$extr = arrowExpression.extra) != null && _arrowExpression$extr.parenthesized) abort(); + const expr = this.maybeUnwrapTypeCastExpression(arrowExpression); + if (expr.type !== "ArrowFunctionExpression") abort(); + expr.typeParameters = typeParameters; + this.resetStartLocationFromNode(expr, typeParameters); + return arrowExpression; + }, state); + let arrowExpression = null; + if (arrow.node && this.maybeUnwrapTypeCastExpression(arrow.node).type === "ArrowFunctionExpression") { + if (!arrow.error && !arrow.aborted) { + if (arrow.node.async) { + this.raise(FlowErrors.UnexpectedTypeParameterBeforeAsyncArrowFunction, { + at: typeParameters + }); + } + return arrow.node; + } + arrowExpression = arrow.node; + } + if ((_jsx2 = jsx) != null && _jsx2.node) { + this.state = jsx.failState; + return jsx.node; + } + if (arrowExpression) { + this.state = arrow.failState; + return arrowExpression; + } + if ((_jsx3 = jsx) != null && _jsx3.thrown) throw jsx.error; + if (arrow.thrown) throw arrow.error; + throw this.raise(FlowErrors.UnexpectedTokenAfterTypeParameter, { + at: typeParameters + }); + } + return super.parseMaybeAssign(refExpressionErrors, afterLeftParse); + } + parseArrow(node) { + if (this.match(14)) { + const result = this.tryParse(() => { + const oldNoAnonFunctionType = this.state.noAnonFunctionType; + this.state.noAnonFunctionType = true; + const typeNode = this.startNode(); + [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser(); + this.state.noAnonFunctionType = oldNoAnonFunctionType; + if (this.canInsertSemicolon()) this.unexpected(); + if (!this.match(19)) this.unexpected(); + return typeNode; + }); + if (result.thrown) return null; + if (result.error) this.state = result.failState; + node.returnType = result.node.typeAnnotation ? this.finishNode(result.node, "TypeAnnotation") : null; + } + return super.parseArrow(node); + } + shouldParseArrow(params) { + return this.match(14) || super.shouldParseArrow(params); + } + setArrowFunctionParameters(node, params) { + if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { + node.params = params; + } else { + super.setArrowFunctionParameters(node, params); + } + } + checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged = true) { + if (isArrowFunction && this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) { + return; + } + for (let i = 0; i < node.params.length; i++) { + if (this.isThisParam(node.params[i]) && i > 0) { + this.raise(FlowErrors.ThisParamMustBeFirst, { + at: node.params[i] + }); + } + } + super.checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged); + } + parseParenAndDistinguishExpression(canBeArrow) { + return super.parseParenAndDistinguishExpression(canBeArrow && this.state.noArrowAt.indexOf(this.state.start) === -1); + } + parseSubscripts(base, startLoc, noCalls) { + if (base.type === "Identifier" && base.name === "async" && this.state.noArrowAt.indexOf(startLoc.index) !== -1) { + this.next(); + const node = this.startNodeAt(startLoc); + node.callee = base; + node.arguments = super.parseCallExpressionArguments(11, false); + base = this.finishNode(node, "CallExpression"); + } else if (base.type === "Identifier" && base.name === "async" && this.match(47)) { + const state = this.state.clone(); + const arrow = this.tryParse(abort => this.parseAsyncArrowWithTypeParameters(startLoc) || abort(), state); + if (!arrow.error && !arrow.aborted) return arrow.node; + const result = this.tryParse(() => super.parseSubscripts(base, startLoc, noCalls), state); + if (result.node && !result.error) return result.node; + if (arrow.node) { + this.state = arrow.failState; + return arrow.node; + } + if (result.node) { + this.state = result.failState; + return result.node; + } + throw arrow.error || result.error; + } + return super.parseSubscripts(base, startLoc, noCalls); + } + parseSubscript(base, startLoc, noCalls, subscriptState) { + if (this.match(18) && this.isLookaheadToken_lt()) { + subscriptState.optionalChainMember = true; + if (noCalls) { + subscriptState.stop = true; + return base; + } + this.next(); + const node = this.startNodeAt(startLoc); + node.callee = base; + node.typeArguments = this.flowParseTypeParameterInstantiation(); + this.expect(10); + node.arguments = this.parseCallExpressionArguments(11, false); + node.optional = true; + return this.finishCallExpression(node, true); + } else if (!noCalls && this.shouldParseTypes() && this.match(47)) { + const node = this.startNodeAt(startLoc); + node.callee = base; + const result = this.tryParse(() => { + node.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(); + this.expect(10); + node.arguments = super.parseCallExpressionArguments(11, false); + if (subscriptState.optionalChainMember) { + node.optional = false; + } + return this.finishCallExpression(node, subscriptState.optionalChainMember); + }); + if (result.node) { + if (result.error) this.state = result.failState; + return result.node; + } + } + return super.parseSubscript(base, startLoc, noCalls, subscriptState); + } + parseNewCallee(node) { + super.parseNewCallee(node); + let targs = null; + if (this.shouldParseTypes() && this.match(47)) { + targs = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node; + } + node.typeArguments = targs; + } + parseAsyncArrowWithTypeParameters(startLoc) { + const node = this.startNodeAt(startLoc); + this.parseFunctionParams(node, false); + if (!this.parseArrow(node)) return; + return super.parseArrowExpression(node, undefined, true); + } + readToken_mult_modulo(code) { + const next = this.input.charCodeAt(this.state.pos + 1); + if (code === 42 && next === 47 && this.state.hasFlowComment) { + this.state.hasFlowComment = false; + this.state.pos += 2; + this.nextToken(); + return; + } + super.readToken_mult_modulo(code); + } + readToken_pipe_amp(code) { + const next = this.input.charCodeAt(this.state.pos + 1); + if (code === 124 && next === 125) { + this.finishOp(9, 2); + return; + } + super.readToken_pipe_amp(code); + } + parseTopLevel(file, program) { + const fileNode = super.parseTopLevel(file, program); + if (this.state.hasFlowComment) { + this.raise(FlowErrors.UnterminatedFlowComment, { + at: this.state.curPosition() + }); + } + return fileNode; + } + skipBlockComment() { + if (this.hasPlugin("flowComments") && this.skipFlowComment()) { + if (this.state.hasFlowComment) { + throw this.raise(FlowErrors.NestedFlowComment, { + at: this.state.startLoc + }); + } + this.hasFlowCommentCompletion(); + const commentSkip = this.skipFlowComment(); + if (commentSkip) { + this.state.pos += commentSkip; + this.state.hasFlowComment = true; + } + return; + } + return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/"); + } + skipFlowComment() { + const { + pos + } = this.state; + let shiftToFirstNonWhiteSpace = 2; + while ([32, 9].includes(this.input.charCodeAt(pos + shiftToFirstNonWhiteSpace))) { + shiftToFirstNonWhiteSpace++; + } + const ch2 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos); + const ch3 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos + 1); + if (ch2 === 58 && ch3 === 58) { + return shiftToFirstNonWhiteSpace + 2; + } + if (this.input.slice(shiftToFirstNonWhiteSpace + pos, shiftToFirstNonWhiteSpace + pos + 12) === "flow-include") { + return shiftToFirstNonWhiteSpace + 12; + } + if (ch2 === 58 && ch3 !== 58) { + return shiftToFirstNonWhiteSpace; + } + return false; + } + hasFlowCommentCompletion() { + const end = this.input.indexOf("*/", this.state.pos); + if (end === -1) { + throw this.raise(Errors.UnterminatedComment, { + at: this.state.curPosition() + }); + } + } + flowEnumErrorBooleanMemberNotInitialized(loc, { + enumName, + memberName + }) { + this.raise(FlowErrors.EnumBooleanMemberNotInitialized, { + at: loc, + memberName, + enumName + }); + } + flowEnumErrorInvalidMemberInitializer(loc, enumContext) { + return this.raise(!enumContext.explicitType ? FlowErrors.EnumInvalidMemberInitializerUnknownType : enumContext.explicitType === "symbol" ? FlowErrors.EnumInvalidMemberInitializerSymbolType : FlowErrors.EnumInvalidMemberInitializerPrimaryType, Object.assign({ + at: loc + }, enumContext)); + } + flowEnumErrorNumberMemberNotInitialized(loc, { + enumName, + memberName + }) { + this.raise(FlowErrors.EnumNumberMemberNotInitialized, { + at: loc, + enumName, + memberName + }); + } + flowEnumErrorStringMemberInconsistentlyInitialized(node, { + enumName + }) { + this.raise(FlowErrors.EnumStringMemberInconsistentlyInitialized, { + at: node, + enumName + }); + } + flowEnumMemberInit() { + const startLoc = this.state.startLoc; + const endOfInit = () => this.match(12) || this.match(8); + switch (this.state.type) { + case 134: + { + const literal = this.parseNumericLiteral(this.state.value); + if (endOfInit()) { + return { + type: "number", + loc: literal.loc.start, + value: literal + }; + } + return { + type: "invalid", + loc: startLoc + }; + } + case 133: + { + const literal = this.parseStringLiteral(this.state.value); + if (endOfInit()) { + return { + type: "string", + loc: literal.loc.start, + value: literal + }; + } + return { + type: "invalid", + loc: startLoc + }; + } + case 85: + case 86: + { + const literal = this.parseBooleanLiteral(this.match(85)); + if (endOfInit()) { + return { + type: "boolean", + loc: literal.loc.start, + value: literal + }; + } + return { + type: "invalid", + loc: startLoc + }; + } + default: + return { + type: "invalid", + loc: startLoc + }; + } + } + flowEnumMemberRaw() { + const loc = this.state.startLoc; + const id = this.parseIdentifier(true); + const init = this.eat(29) ? this.flowEnumMemberInit() : { + type: "none", + loc + }; + return { + id, + init + }; + } + flowEnumCheckExplicitTypeMismatch(loc, context, expectedType) { + const { + explicitType + } = context; + if (explicitType === null) { + return; + } + if (explicitType !== expectedType) { + this.flowEnumErrorInvalidMemberInitializer(loc, context); + } + } + flowEnumMembers({ + enumName, + explicitType + }) { + const seenNames = new Set(); + const members = { + booleanMembers: [], + numberMembers: [], + stringMembers: [], + defaultedMembers: [] + }; + let hasUnknownMembers = false; + while (!this.match(8)) { + if (this.eat(21)) { + hasUnknownMembers = true; + break; + } + const memberNode = this.startNode(); + const { + id, + init + } = this.flowEnumMemberRaw(); + const memberName = id.name; + if (memberName === "") { + continue; + } + if (/^[a-z]/.test(memberName)) { + this.raise(FlowErrors.EnumInvalidMemberName, { + at: id, + memberName, + suggestion: memberName[0].toUpperCase() + memberName.slice(1), + enumName + }); + } + if (seenNames.has(memberName)) { + this.raise(FlowErrors.EnumDuplicateMemberName, { + at: id, + memberName, + enumName + }); + } + seenNames.add(memberName); + const context = { + enumName, + explicitType, + memberName + }; + memberNode.id = id; + switch (init.type) { + case "boolean": + { + this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "boolean"); + memberNode.init = init.value; + members.booleanMembers.push(this.finishNode(memberNode, "EnumBooleanMember")); + break; + } + case "number": + { + this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "number"); + memberNode.init = init.value; + members.numberMembers.push(this.finishNode(memberNode, "EnumNumberMember")); + break; + } + case "string": + { + this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "string"); + memberNode.init = init.value; + members.stringMembers.push(this.finishNode(memberNode, "EnumStringMember")); + break; + } + case "invalid": + { + throw this.flowEnumErrorInvalidMemberInitializer(init.loc, context); + } + case "none": + { + switch (explicitType) { + case "boolean": + this.flowEnumErrorBooleanMemberNotInitialized(init.loc, context); + break; + case "number": + this.flowEnumErrorNumberMemberNotInitialized(init.loc, context); + break; + default: + members.defaultedMembers.push(this.finishNode(memberNode, "EnumDefaultedMember")); + } + } + } + if (!this.match(8)) { + this.expect(12); + } + } + return { + members, + hasUnknownMembers + }; + } + flowEnumStringMembers(initializedMembers, defaultedMembers, { + enumName + }) { + if (initializedMembers.length === 0) { + return defaultedMembers; + } else if (defaultedMembers.length === 0) { + return initializedMembers; + } else if (defaultedMembers.length > initializedMembers.length) { + for (const member of initializedMembers) { + this.flowEnumErrorStringMemberInconsistentlyInitialized(member, { + enumName + }); + } + return defaultedMembers; + } else { + for (const member of defaultedMembers) { + this.flowEnumErrorStringMemberInconsistentlyInitialized(member, { + enumName + }); + } + return initializedMembers; + } + } + flowEnumParseExplicitType({ + enumName + }) { + if (!this.eatContextual(102)) return null; + if (!tokenIsIdentifier(this.state.type)) { + throw this.raise(FlowErrors.EnumInvalidExplicitTypeUnknownSupplied, { + at: this.state.startLoc, + enumName + }); + } + const { + value + } = this.state; + this.next(); + if (value !== "boolean" && value !== "number" && value !== "string" && value !== "symbol") { + this.raise(FlowErrors.EnumInvalidExplicitType, { + at: this.state.startLoc, + enumName, + invalidEnumType: value + }); + } + return value; + } + flowEnumBody(node, id) { + const enumName = id.name; + const nameLoc = id.loc.start; + const explicitType = this.flowEnumParseExplicitType({ + enumName + }); + this.expect(5); + const { + members, + hasUnknownMembers + } = this.flowEnumMembers({ + enumName, + explicitType + }); + node.hasUnknownMembers = hasUnknownMembers; + switch (explicitType) { + case "boolean": + node.explicitType = true; + node.members = members.booleanMembers; + this.expect(8); + return this.finishNode(node, "EnumBooleanBody"); + case "number": + node.explicitType = true; + node.members = members.numberMembers; + this.expect(8); + return this.finishNode(node, "EnumNumberBody"); + case "string": + node.explicitType = true; + node.members = this.flowEnumStringMembers(members.stringMembers, members.defaultedMembers, { + enumName + }); + this.expect(8); + return this.finishNode(node, "EnumStringBody"); + case "symbol": + node.members = members.defaultedMembers; + this.expect(8); + return this.finishNode(node, "EnumSymbolBody"); + default: + { + const empty = () => { + node.members = []; + this.expect(8); + return this.finishNode(node, "EnumStringBody"); + }; + node.explicitType = false; + const boolsLen = members.booleanMembers.length; + const numsLen = members.numberMembers.length; + const strsLen = members.stringMembers.length; + const defaultedLen = members.defaultedMembers.length; + if (!boolsLen && !numsLen && !strsLen && !defaultedLen) { + return empty(); + } else if (!boolsLen && !numsLen) { + node.members = this.flowEnumStringMembers(members.stringMembers, members.defaultedMembers, { + enumName + }); + this.expect(8); + return this.finishNode(node, "EnumStringBody"); + } else if (!numsLen && !strsLen && boolsLen >= defaultedLen) { + for (const member of members.defaultedMembers) { + this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start, { + enumName, + memberName: member.id.name + }); + } + node.members = members.booleanMembers; + this.expect(8); + return this.finishNode(node, "EnumBooleanBody"); + } else if (!boolsLen && !strsLen && numsLen >= defaultedLen) { + for (const member of members.defaultedMembers) { + this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, { + enumName, + memberName: member.id.name + }); + } + node.members = members.numberMembers; + this.expect(8); + return this.finishNode(node, "EnumNumberBody"); + } else { + this.raise(FlowErrors.EnumInconsistentMemberValues, { + at: nameLoc, + enumName + }); + return empty(); + } + } + } + } + flowParseEnumDeclaration(node) { + const id = this.parseIdentifier(); + node.id = id; + node.body = this.flowEnumBody(this.startNode(), id); + return this.finishNode(node, "EnumDeclaration"); + } + isLookaheadToken_lt() { + const next = this.nextTokenStart(); + if (this.input.charCodeAt(next) === 60) { + const afterNext = this.input.charCodeAt(next + 1); + return afterNext !== 60 && afterNext !== 61; + } + return false; + } + maybeUnwrapTypeCastExpression(node) { + return node.type === "TypeCastExpression" ? node.expression : node; + } +}; +const entities = { + __proto__: null, + quot: "\u0022", + amp: "&", + apos: "\u0027", + lt: "<", + gt: ">", + nbsp: "\u00A0", + iexcl: "\u00A1", + cent: "\u00A2", + pound: "\u00A3", + curren: "\u00A4", + yen: "\u00A5", + brvbar: "\u00A6", + sect: "\u00A7", + uml: "\u00A8", + copy: "\u00A9", + ordf: "\u00AA", + laquo: "\u00AB", + not: "\u00AC", + shy: "\u00AD", + reg: "\u00AE", + macr: "\u00AF", + deg: "\u00B0", + plusmn: "\u00B1", + sup2: "\u00B2", + sup3: "\u00B3", + acute: "\u00B4", + micro: "\u00B5", + para: "\u00B6", + middot: "\u00B7", + cedil: "\u00B8", + sup1: "\u00B9", + ordm: "\u00BA", + raquo: "\u00BB", + frac14: "\u00BC", + frac12: "\u00BD", + frac34: "\u00BE", + iquest: "\u00BF", + Agrave: "\u00C0", + Aacute: "\u00C1", + Acirc: "\u00C2", + Atilde: "\u00C3", + Auml: "\u00C4", + Aring: "\u00C5", + AElig: "\u00C6", + Ccedil: "\u00C7", + Egrave: "\u00C8", + Eacute: "\u00C9", + Ecirc: "\u00CA", + Euml: "\u00CB", + Igrave: "\u00CC", + Iacute: "\u00CD", + Icirc: "\u00CE", + Iuml: "\u00CF", + ETH: "\u00D0", + Ntilde: "\u00D1", + Ograve: "\u00D2", + Oacute: "\u00D3", + Ocirc: "\u00D4", + Otilde: "\u00D5", + Ouml: "\u00D6", + times: "\u00D7", + Oslash: "\u00D8", + Ugrave: "\u00D9", + Uacute: "\u00DA", + Ucirc: "\u00DB", + Uuml: "\u00DC", + Yacute: "\u00DD", + THORN: "\u00DE", + szlig: "\u00DF", + agrave: "\u00E0", + aacute: "\u00E1", + acirc: "\u00E2", + atilde: "\u00E3", + auml: "\u00E4", + aring: "\u00E5", + aelig: "\u00E6", + ccedil: "\u00E7", + egrave: "\u00E8", + eacute: "\u00E9", + ecirc: "\u00EA", + euml: "\u00EB", + igrave: "\u00EC", + iacute: "\u00ED", + icirc: "\u00EE", + iuml: "\u00EF", + eth: "\u00F0", + ntilde: "\u00F1", + ograve: "\u00F2", + oacute: "\u00F3", + ocirc: "\u00F4", + otilde: "\u00F5", + ouml: "\u00F6", + divide: "\u00F7", + oslash: "\u00F8", + ugrave: "\u00F9", + uacute: "\u00FA", + ucirc: "\u00FB", + uuml: "\u00FC", + yacute: "\u00FD", + thorn: "\u00FE", + yuml: "\u00FF", + OElig: "\u0152", + oelig: "\u0153", + Scaron: "\u0160", + scaron: "\u0161", + Yuml: "\u0178", + fnof: "\u0192", + circ: "\u02C6", + tilde: "\u02DC", + Alpha: "\u0391", + Beta: "\u0392", + Gamma: "\u0393", + Delta: "\u0394", + Epsilon: "\u0395", + Zeta: "\u0396", + Eta: "\u0397", + Theta: "\u0398", + Iota: "\u0399", + Kappa: "\u039A", + Lambda: "\u039B", + Mu: "\u039C", + Nu: "\u039D", + Xi: "\u039E", + Omicron: "\u039F", + Pi: "\u03A0", + Rho: "\u03A1", + Sigma: "\u03A3", + Tau: "\u03A4", + Upsilon: "\u03A5", + Phi: "\u03A6", + Chi: "\u03A7", + Psi: "\u03A8", + Omega: "\u03A9", + alpha: "\u03B1", + beta: "\u03B2", + gamma: "\u03B3", + delta: "\u03B4", + epsilon: "\u03B5", + zeta: "\u03B6", + eta: "\u03B7", + theta: "\u03B8", + iota: "\u03B9", + kappa: "\u03BA", + lambda: "\u03BB", + mu: "\u03BC", + nu: "\u03BD", + xi: "\u03BE", + omicron: "\u03BF", + pi: "\u03C0", + rho: "\u03C1", + sigmaf: "\u03C2", + sigma: "\u03C3", + tau: "\u03C4", + upsilon: "\u03C5", + phi: "\u03C6", + chi: "\u03C7", + psi: "\u03C8", + omega: "\u03C9", + thetasym: "\u03D1", + upsih: "\u03D2", + piv: "\u03D6", + ensp: "\u2002", + emsp: "\u2003", + thinsp: "\u2009", + zwnj: "\u200C", + zwj: "\u200D", + lrm: "\u200E", + rlm: "\u200F", + ndash: "\u2013", + mdash: "\u2014", + lsquo: "\u2018", + rsquo: "\u2019", + sbquo: "\u201A", + ldquo: "\u201C", + rdquo: "\u201D", + bdquo: "\u201E", + dagger: "\u2020", + Dagger: "\u2021", + bull: "\u2022", + hellip: "\u2026", + permil: "\u2030", + prime: "\u2032", + Prime: "\u2033", + lsaquo: "\u2039", + rsaquo: "\u203A", + oline: "\u203E", + frasl: "\u2044", + euro: "\u20AC", + image: "\u2111", + weierp: "\u2118", + real: "\u211C", + trade: "\u2122", + alefsym: "\u2135", + larr: "\u2190", + uarr: "\u2191", + rarr: "\u2192", + darr: "\u2193", + harr: "\u2194", + crarr: "\u21B5", + lArr: "\u21D0", + uArr: "\u21D1", + rArr: "\u21D2", + dArr: "\u21D3", + hArr: "\u21D4", + forall: "\u2200", + part: "\u2202", + exist: "\u2203", + empty: "\u2205", + nabla: "\u2207", + isin: "\u2208", + notin: "\u2209", + ni: "\u220B", + prod: "\u220F", + sum: "\u2211", + minus: "\u2212", + lowast: "\u2217", + radic: "\u221A", + prop: "\u221D", + infin: "\u221E", + ang: "\u2220", + and: "\u2227", + or: "\u2228", + cap: "\u2229", + cup: "\u222A", + int: "\u222B", + there4: "\u2234", + sim: "\u223C", + cong: "\u2245", + asymp: "\u2248", + ne: "\u2260", + equiv: "\u2261", + le: "\u2264", + ge: "\u2265", + sub: "\u2282", + sup: "\u2283", + nsub: "\u2284", + sube: "\u2286", + supe: "\u2287", + oplus: "\u2295", + otimes: "\u2297", + perp: "\u22A5", + sdot: "\u22C5", + lceil: "\u2308", + rceil: "\u2309", + lfloor: "\u230A", + rfloor: "\u230B", + lang: "\u2329", + rang: "\u232A", + loz: "\u25CA", + spades: "\u2660", + clubs: "\u2663", + hearts: "\u2665", + diams: "\u2666" +}; +const JsxErrors = ParseErrorEnum`jsx`({ + AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", + MissingClosingTagElement: ({ + openingTagName + }) => `Expected corresponding JSX closing tag for <${openingTagName}>.`, + MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.", + UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?", + UnexpectedToken: ({ + unexpected, + HTMLEntity + }) => `Unexpected token \`${unexpected}\`. Did you mean \`${HTMLEntity}\` or \`{'${unexpected}'}\`?`, + UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.", + UnterminatedJsxContent: "Unterminated JSX contents.", + UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?" +}); +function isFragment(object) { + return object ? object.type === "JSXOpeningFragment" || object.type === "JSXClosingFragment" : false; } -function tsTypeAssertion(typeAnnotation, expression) { - return (0, _validateNode.default)({ - type: "TSTypeAssertion", - typeAnnotation, - expression - }); +function getQualifiedJSXName(object) { + if (object.type === "JSXIdentifier") { + return object.name; + } + if (object.type === "JSXNamespacedName") { + return object.namespace.name + ":" + object.name.name; + } + if (object.type === "JSXMemberExpression") { + return getQualifiedJSXName(object.object) + "." + getQualifiedJSXName(object.property); + } + throw new Error("Node had unexpected type: " + object.type); } -function tsEnumDeclaration(id, members) { - return (0, _validateNode.default)({ - type: "TSEnumDeclaration", - id, - members - }); +var jsx = superClass => class JSXParserMixin extends superClass { + jsxReadToken() { + let out = ""; + let chunkStart = this.state.pos; + for (;;) { + if (this.state.pos >= this.length) { + throw this.raise(JsxErrors.UnterminatedJsxContent, { + at: this.state.startLoc + }); + } + const ch = this.input.charCodeAt(this.state.pos); + switch (ch) { + case 60: + case 123: + if (this.state.pos === this.state.start) { + if (ch === 60 && this.state.canStartJSXElement) { + ++this.state.pos; + this.finishToken(142); + } else { + super.getTokenFromCode(ch); + } + return; + } + out += this.input.slice(chunkStart, this.state.pos); + this.finishToken(141, out); + return; + case 38: + out += this.input.slice(chunkStart, this.state.pos); + out += this.jsxReadEntity(); + chunkStart = this.state.pos; + break; + case 62: + case 125: + default: + if (isNewLine(ch)) { + out += this.input.slice(chunkStart, this.state.pos); + out += this.jsxReadNewLine(true); + chunkStart = this.state.pos; + } else { + ++this.state.pos; + } + } + } + } + jsxReadNewLine(normalizeCRLF) { + const ch = this.input.charCodeAt(this.state.pos); + let out; + ++this.state.pos; + if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) { + ++this.state.pos; + out = normalizeCRLF ? "\n" : "\r\n"; + } else { + out = String.fromCharCode(ch); + } + ++this.state.curLine; + this.state.lineStart = this.state.pos; + return out; + } + jsxReadString(quote) { + let out = ""; + let chunkStart = ++this.state.pos; + for (;;) { + if (this.state.pos >= this.length) { + throw this.raise(Errors.UnterminatedString, { + at: this.state.startLoc + }); + } + const ch = this.input.charCodeAt(this.state.pos); + if (ch === quote) break; + if (ch === 38) { + out += this.input.slice(chunkStart, this.state.pos); + out += this.jsxReadEntity(); + chunkStart = this.state.pos; + } else if (isNewLine(ch)) { + out += this.input.slice(chunkStart, this.state.pos); + out += this.jsxReadNewLine(false); + chunkStart = this.state.pos; + } else { + ++this.state.pos; + } + } + out += this.input.slice(chunkStart, this.state.pos++); + this.finishToken(133, out); + } + jsxReadEntity() { + const startPos = ++this.state.pos; + if (this.codePointAtPos(this.state.pos) === 35) { + ++this.state.pos; + let radix = 10; + if (this.codePointAtPos(this.state.pos) === 120) { + radix = 16; + ++this.state.pos; + } + const codePoint = this.readInt(radix, undefined, false, "bail"); + if (codePoint !== null && this.codePointAtPos(this.state.pos) === 59) { + ++this.state.pos; + return String.fromCodePoint(codePoint); + } + } else { + let count = 0; + let semi = false; + while (count++ < 10 && this.state.pos < this.length && !(semi = this.codePointAtPos(this.state.pos) == 59)) { + ++this.state.pos; + } + if (semi) { + const desc = this.input.slice(startPos, this.state.pos); + const entity = entities[desc]; + ++this.state.pos; + if (entity) { + return entity; + } + } + } + this.state.pos = startPos; + return "&"; + } + jsxReadWord() { + let ch; + const start = this.state.pos; + do { + ch = this.input.charCodeAt(++this.state.pos); + } while (isIdentifierChar(ch) || ch === 45); + this.finishToken(140, this.input.slice(start, this.state.pos)); + } + jsxParseIdentifier() { + const node = this.startNode(); + if (this.match(140)) { + node.name = this.state.value; + } else if (tokenIsKeyword(this.state.type)) { + node.name = tokenLabelName(this.state.type); + } else { + this.unexpected(); + } + this.next(); + return this.finishNode(node, "JSXIdentifier"); + } + jsxParseNamespacedName() { + const startLoc = this.state.startLoc; + const name = this.jsxParseIdentifier(); + if (!this.eat(14)) return name; + const node = this.startNodeAt(startLoc); + node.namespace = name; + node.name = this.jsxParseIdentifier(); + return this.finishNode(node, "JSXNamespacedName"); + } + jsxParseElementName() { + const startLoc = this.state.startLoc; + let node = this.jsxParseNamespacedName(); + if (node.type === "JSXNamespacedName") { + return node; + } + while (this.eat(16)) { + const newNode = this.startNodeAt(startLoc); + newNode.object = node; + newNode.property = this.jsxParseIdentifier(); + node = this.finishNode(newNode, "JSXMemberExpression"); + } + return node; + } + jsxParseAttributeValue() { + let node; + switch (this.state.type) { + case 5: + node = this.startNode(); + this.setContext(types.brace); + this.next(); + node = this.jsxParseExpressionContainer(node, types.j_oTag); + if (node.expression.type === "JSXEmptyExpression") { + this.raise(JsxErrors.AttributeIsEmpty, { + at: node + }); + } + return node; + case 142: + case 133: + return this.parseExprAtom(); + default: + throw this.raise(JsxErrors.UnsupportedJsxValue, { + at: this.state.startLoc + }); + } + } + jsxParseEmptyExpression() { + const node = this.startNodeAt(this.state.lastTokEndLoc); + return this.finishNodeAt(node, "JSXEmptyExpression", this.state.startLoc); + } + jsxParseSpreadChild(node) { + this.next(); + node.expression = this.parseExpression(); + this.setContext(types.j_expr); + this.state.canStartJSXElement = true; + this.expect(8); + return this.finishNode(node, "JSXSpreadChild"); + } + jsxParseExpressionContainer(node, previousContext) { + if (this.match(8)) { + node.expression = this.jsxParseEmptyExpression(); + } else { + const expression = this.parseExpression(); + node.expression = expression; + } + this.setContext(previousContext); + this.state.canStartJSXElement = true; + this.expect(8); + return this.finishNode(node, "JSXExpressionContainer"); + } + jsxParseAttribute() { + const node = this.startNode(); + if (this.match(5)) { + this.setContext(types.brace); + this.next(); + this.expect(21); + node.argument = this.parseMaybeAssignAllowIn(); + this.setContext(types.j_oTag); + this.state.canStartJSXElement = true; + this.expect(8); + return this.finishNode(node, "JSXSpreadAttribute"); + } + node.name = this.jsxParseNamespacedName(); + node.value = this.eat(29) ? this.jsxParseAttributeValue() : null; + return this.finishNode(node, "JSXAttribute"); + } + jsxParseOpeningElementAt(startLoc) { + const node = this.startNodeAt(startLoc); + if (this.eat(143)) { + return this.finishNode(node, "JSXOpeningFragment"); + } + node.name = this.jsxParseElementName(); + return this.jsxParseOpeningElementAfterName(node); + } + jsxParseOpeningElementAfterName(node) { + const attributes = []; + while (!this.match(56) && !this.match(143)) { + attributes.push(this.jsxParseAttribute()); + } + node.attributes = attributes; + node.selfClosing = this.eat(56); + this.expect(143); + return this.finishNode(node, "JSXOpeningElement"); + } + jsxParseClosingElementAt(startLoc) { + const node = this.startNodeAt(startLoc); + if (this.eat(143)) { + return this.finishNode(node, "JSXClosingFragment"); + } + node.name = this.jsxParseElementName(); + this.expect(143); + return this.finishNode(node, "JSXClosingElement"); + } + jsxParseElementAt(startLoc) { + const node = this.startNodeAt(startLoc); + const children = []; + const openingElement = this.jsxParseOpeningElementAt(startLoc); + let closingElement = null; + if (!openingElement.selfClosing) { + contents: for (;;) { + switch (this.state.type) { + case 142: + startLoc = this.state.startLoc; + this.next(); + if (this.eat(56)) { + closingElement = this.jsxParseClosingElementAt(startLoc); + break contents; + } + children.push(this.jsxParseElementAt(startLoc)); + break; + case 141: + children.push(this.parseExprAtom()); + break; + case 5: + { + const node = this.startNode(); + this.setContext(types.brace); + this.next(); + if (this.match(21)) { + children.push(this.jsxParseSpreadChild(node)); + } else { + children.push(this.jsxParseExpressionContainer(node, types.j_expr)); + } + break; + } + default: + this.unexpected(); + } + } + if (isFragment(openingElement) && !isFragment(closingElement) && closingElement !== null) { + this.raise(JsxErrors.MissingClosingTagFragment, { + at: closingElement + }); + } else if (!isFragment(openingElement) && isFragment(closingElement)) { + this.raise(JsxErrors.MissingClosingTagElement, { + at: closingElement, + openingTagName: getQualifiedJSXName(openingElement.name) + }); + } else if (!isFragment(openingElement) && !isFragment(closingElement)) { + if (getQualifiedJSXName(closingElement.name) !== getQualifiedJSXName(openingElement.name)) { + this.raise(JsxErrors.MissingClosingTagElement, { + at: closingElement, + openingTagName: getQualifiedJSXName(openingElement.name) + }); + } + } + } + if (isFragment(openingElement)) { + node.openingFragment = openingElement; + node.closingFragment = closingElement; + } else { + node.openingElement = openingElement; + node.closingElement = closingElement; + } + node.children = children; + if (this.match(47)) { + throw this.raise(JsxErrors.UnwrappedAdjacentJSXElements, { + at: this.state.startLoc + }); + } + return isFragment(openingElement) ? this.finishNode(node, "JSXFragment") : this.finishNode(node, "JSXElement"); + } + jsxParseElement() { + const startLoc = this.state.startLoc; + this.next(); + return this.jsxParseElementAt(startLoc); + } + setContext(newContext) { + const { + context + } = this.state; + context[context.length - 1] = newContext; + } + parseExprAtom(refExpressionErrors) { + if (this.match(141)) { + return this.parseLiteral(this.state.value, "JSXText"); + } else if (this.match(142)) { + return this.jsxParseElement(); + } else if (this.match(47) && this.input.charCodeAt(this.state.pos) !== 33) { + this.replaceToken(142); + return this.jsxParseElement(); + } else { + return super.parseExprAtom(refExpressionErrors); + } + } + skipSpace() { + const curContext = this.curContext(); + if (!curContext.preserveSpace) super.skipSpace(); + } + getTokenFromCode(code) { + const context = this.curContext(); + if (context === types.j_expr) { + this.jsxReadToken(); + return; + } + if (context === types.j_oTag || context === types.j_cTag) { + if (isIdentifierStart(code)) { + this.jsxReadWord(); + return; + } + if (code === 62) { + ++this.state.pos; + this.finishToken(143); + return; + } + if ((code === 34 || code === 39) && context === types.j_oTag) { + this.jsxReadString(code); + return; + } + } + if (code === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) { + ++this.state.pos; + this.finishToken(142); + return; + } + super.getTokenFromCode(code); + } + updateContext(prevType) { + const { + context, + type + } = this.state; + if (type === 56 && prevType === 142) { + context.splice(-2, 2, types.j_cTag); + this.state.canStartJSXElement = false; + } else if (type === 142) { + context.push(types.j_oTag); + } else if (type === 143) { + const out = context[context.length - 1]; + if (out === types.j_oTag && prevType === 56 || out === types.j_cTag) { + context.pop(); + this.state.canStartJSXElement = context[context.length - 1] === types.j_expr; + } else { + this.setContext(types.j_expr); + this.state.canStartJSXElement = true; + } + } else { + this.state.canStartJSXElement = tokenComesBeforeExpression(type); + } + } +}; +class TypeScriptScope extends Scope { + constructor(...args) { + super(...args); + this.types = new Set(); + this.enums = new Set(); + this.constEnums = new Set(); + this.classes = new Set(); + this.exportOnlyBindings = new Set(); + } } -function tsEnumMember(id, initializer = null) { - return (0, _validateNode.default)({ - type: "TSEnumMember", - id, - initializer - }); +class TypeScriptScopeHandler extends ScopeHandler { + constructor(...args) { + super(...args); + this.importsStack = []; + } + createScope(flags) { + this.importsStack.push(new Set()); + return new TypeScriptScope(flags); + } + enter(flags) { + if (flags == 256) { + this.importsStack.push(new Set()); + } + super.enter(flags); + } + exit() { + const flags = super.exit(); + if (flags == 256) { + this.importsStack.pop(); + } + return flags; + } + hasImport(name, allowShadow) { + const len = this.importsStack.length; + if (this.importsStack[len - 1].has(name)) { + return true; + } + if (!allowShadow && len > 1) { + for (let i = 0; i < len - 1; i++) { + if (this.importsStack[i].has(name)) return true; + } + } + return false; + } + declareName(name, bindingType, loc) { + if (bindingType & 4096) { + if (this.hasImport(name, true)) { + this.parser.raise(Errors.VarRedeclaration, { + at: loc, + identifierName: name + }); + } + this.importsStack[this.importsStack.length - 1].add(name); + return; + } + const scope = this.currentScope(); + if (bindingType & 1024) { + this.maybeExportDefined(scope, name); + scope.exportOnlyBindings.add(name); + return; + } + super.declareName(name, bindingType, loc); + if (bindingType & 2) { + if (!(bindingType & 1)) { + this.checkRedeclarationInScope(scope, name, bindingType, loc); + this.maybeExportDefined(scope, name); + } + scope.types.add(name); + } + if (bindingType & 256) scope.enums.add(name); + if (bindingType & 512) { + scope.constEnums.add(name); + } + if (bindingType & 128) scope.classes.add(name); + } + isRedeclaredInScope(scope, name, bindingType) { + if (scope.enums.has(name)) { + if (bindingType & 256) { + const isConst = !!(bindingType & 512); + const wasConst = scope.constEnums.has(name); + return isConst !== wasConst; + } + return true; + } + if (bindingType & 128 && scope.classes.has(name)) { + if (scope.lexical.has(name)) { + return !!(bindingType & 1); + } else { + return false; + } + } + if (bindingType & 2 && scope.types.has(name)) { + return true; + } + return super.isRedeclaredInScope(scope, name, bindingType); + } + checkLocalExport(id) { + const { + name + } = id; + if (this.hasImport(name)) return; + const len = this.scopeStack.length; + for (let i = len - 1; i >= 0; i--) { + const scope = this.scopeStack[i]; + if (scope.types.has(name) || scope.exportOnlyBindings.has(name)) return; + } + super.checkLocalExport(id); + } } -function tsModuleDeclaration(id, body) { - return (0, _validateNode.default)({ - type: "TSModuleDeclaration", - id, - body - }); +const getOwn$1 = (object, key) => Object.hasOwnProperty.call(object, key) && object[key]; +const unwrapParenthesizedExpression = node => { + return node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node; +}; +class LValParser extends NodeUtils { + toAssignable(node, isLHS = false) { + var _node$extra, _node$extra3; + let parenthesized = undefined; + if (node.type === "ParenthesizedExpression" || (_node$extra = node.extra) != null && _node$extra.parenthesized) { + parenthesized = unwrapParenthesizedExpression(node); + if (isLHS) { + if (parenthesized.type === "Identifier") { + this.expressionScope.recordArrowParameterBindingError(Errors.InvalidParenthesizedAssignment, { + at: node + }); + } else if (parenthesized.type !== "MemberExpression" && !this.isOptionalMemberExpression(parenthesized)) { + this.raise(Errors.InvalidParenthesizedAssignment, { + at: node + }); + } + } else { + this.raise(Errors.InvalidParenthesizedAssignment, { + at: node + }); + } + } + switch (node.type) { + case "Identifier": + case "ObjectPattern": + case "ArrayPattern": + case "AssignmentPattern": + case "RestElement": + break; + case "ObjectExpression": + node.type = "ObjectPattern"; + for (let i = 0, length = node.properties.length, last = length - 1; i < length; i++) { + var _node$extra2; + const prop = node.properties[i]; + const isLast = i === last; + this.toAssignableObjectExpressionProp(prop, isLast, isLHS); + if (isLast && prop.type === "RestElement" && (_node$extra2 = node.extra) != null && _node$extra2.trailingCommaLoc) { + this.raise(Errors.RestTrailingComma, { + at: node.extra.trailingCommaLoc + }); + } + } + break; + case "ObjectProperty": + { + const { + key, + value + } = node; + if (this.isPrivateName(key)) { + this.classScope.usePrivateName(this.getPrivateNameSV(key), key.loc.start); + } + this.toAssignable(value, isLHS); + break; + } + case "SpreadElement": + { + throw new Error("Internal @babel/parser error (this is a bug, please report it)." + " SpreadElement should be converted by .toAssignable's caller."); + } + case "ArrayExpression": + node.type = "ArrayPattern"; + this.toAssignableList(node.elements, (_node$extra3 = node.extra) == null ? void 0 : _node$extra3.trailingCommaLoc, isLHS); + break; + case "AssignmentExpression": + if (node.operator !== "=") { + this.raise(Errors.MissingEqInAssignment, { + at: node.left.loc.end + }); + } + node.type = "AssignmentPattern"; + delete node.operator; + this.toAssignable(node.left, isLHS); + break; + case "ParenthesizedExpression": + this.toAssignable(parenthesized, isLHS); + break; + } + } + toAssignableObjectExpressionProp(prop, isLast, isLHS) { + if (prop.type === "ObjectMethod") { + this.raise(prop.kind === "get" || prop.kind === "set" ? Errors.PatternHasAccessor : Errors.PatternHasMethod, { + at: prop.key + }); + } else if (prop.type === "SpreadElement") { + prop.type = "RestElement"; + const arg = prop.argument; + this.checkToRestConversion(arg, false); + this.toAssignable(arg, isLHS); + if (!isLast) { + this.raise(Errors.RestTrailingComma, { + at: prop + }); + } + } else { + this.toAssignable(prop, isLHS); + } + } + toAssignableList(exprList, trailingCommaLoc, isLHS) { + const end = exprList.length - 1; + for (let i = 0; i <= end; i++) { + const elt = exprList[i]; + if (!elt) continue; + if (elt.type === "SpreadElement") { + elt.type = "RestElement"; + const arg = elt.argument; + this.checkToRestConversion(arg, true); + this.toAssignable(arg, isLHS); + } else { + this.toAssignable(elt, isLHS); + } + if (elt.type === "RestElement") { + if (i < end) { + this.raise(Errors.RestTrailingComma, { + at: elt + }); + } else if (trailingCommaLoc) { + this.raise(Errors.RestTrailingComma, { + at: trailingCommaLoc + }); + } + } + } + } + isAssignable(node, isBinding) { + switch (node.type) { + case "Identifier": + case "ObjectPattern": + case "ArrayPattern": + case "AssignmentPattern": + case "RestElement": + return true; + case "ObjectExpression": + { + const last = node.properties.length - 1; + return node.properties.every((prop, i) => { + return prop.type !== "ObjectMethod" && (i === last || prop.type !== "SpreadElement") && this.isAssignable(prop); + }); + } + case "ObjectProperty": + return this.isAssignable(node.value); + case "SpreadElement": + return this.isAssignable(node.argument); + case "ArrayExpression": + return node.elements.every(element => element === null || this.isAssignable(element)); + case "AssignmentExpression": + return node.operator === "="; + case "ParenthesizedExpression": + return this.isAssignable(node.expression); + case "MemberExpression": + case "OptionalMemberExpression": + return !isBinding; + default: + return false; + } + } + toReferencedList(exprList, isParenthesizedExpr) { + return exprList; + } + toReferencedListDeep(exprList, isParenthesizedExpr) { + this.toReferencedList(exprList, isParenthesizedExpr); + for (const expr of exprList) { + if ((expr == null ? void 0 : expr.type) === "ArrayExpression") { + this.toReferencedListDeep(expr.elements); + } + } + } + parseSpread(refExpressionErrors) { + const node = this.startNode(); + this.next(); + node.argument = this.parseMaybeAssignAllowIn(refExpressionErrors, undefined); + return this.finishNode(node, "SpreadElement"); + } + parseRestBinding() { + const node = this.startNode(); + this.next(); + node.argument = this.parseBindingAtom(); + return this.finishNode(node, "RestElement"); + } + parseBindingAtom() { + switch (this.state.type) { + case 0: + { + const node = this.startNode(); + this.next(); + node.elements = this.parseBindingList(3, 93, 1); + return this.finishNode(node, "ArrayPattern"); + } + case 5: + return this.parseObjectLike(8, true); + } + return this.parseIdentifier(); + } + parseBindingList(close, closeCharCode, flags) { + const allowEmpty = flags & 1; + const elts = []; + let first = true; + while (!this.eat(close)) { + if (first) { + first = false; + } else { + this.expect(12); + } + if (allowEmpty && this.match(12)) { + elts.push(null); + } else if (this.eat(close)) { + break; + } else if (this.match(21)) { + elts.push(this.parseAssignableListItemTypes(this.parseRestBinding(), flags)); + if (!this.checkCommaAfterRest(closeCharCode)) { + this.expect(close); + break; + } + } else { + const decorators = []; + if (this.match(26) && this.hasPlugin("decorators")) { + this.raise(Errors.UnsupportedParameterDecorator, { + at: this.state.startLoc + }); + } + while (this.match(26)) { + decorators.push(this.parseDecorator()); + } + elts.push(this.parseAssignableListItem(flags, decorators)); + } + } + return elts; + } + parseBindingRestProperty(prop) { + this.next(); + prop.argument = this.parseIdentifier(); + this.checkCommaAfterRest(125); + return this.finishNode(prop, "RestElement"); + } + parseBindingProperty() { + const prop = this.startNode(); + const { + type, + startLoc + } = this.state; + if (type === 21) { + return this.parseBindingRestProperty(prop); + } else if (type === 138) { + this.expectPlugin("destructuringPrivate", startLoc); + this.classScope.usePrivateName(this.state.value, startLoc); + prop.key = this.parsePrivateName(); + } else { + this.parsePropertyName(prop); + } + prop.method = false; + return this.parseObjPropValue(prop, startLoc, false, false, true, false); + } + parseAssignableListItem(flags, decorators) { + const left = this.parseMaybeDefault(); + this.parseAssignableListItemTypes(left, flags); + const elt = this.parseMaybeDefault(left.loc.start, left); + if (decorators.length) { + left.decorators = decorators; + } + return elt; + } + parseAssignableListItemTypes(param, flags) { + return param; + } + parseMaybeDefault(startLoc, left) { + var _startLoc, _left; + (_startLoc = startLoc) != null ? _startLoc : startLoc = this.state.startLoc; + left = (_left = left) != null ? _left : this.parseBindingAtom(); + if (!this.eat(29)) return left; + const node = this.startNodeAt(startLoc); + node.left = left; + node.right = this.parseMaybeAssignAllowIn(); + return this.finishNode(node, "AssignmentPattern"); + } + isValidLVal(type, isUnparenthesizedInAssign, binding) { + return getOwn$1({ + AssignmentPattern: "left", + RestElement: "argument", + ObjectProperty: "value", + ParenthesizedExpression: "expression", + ArrayPattern: "elements", + ObjectPattern: "properties" + }, type); + } + isOptionalMemberExpression(expression) { + return expression.type === "OptionalMemberExpression"; + } + checkLVal(expression, { + in: ancestor, + binding = 64, + checkClashes = false, + strictModeChanged = false, + hasParenthesizedAncestor = false + }) { + var _expression$extra; + const type = expression.type; + if (this.isObjectMethod(expression)) return; + const isOptionalMemberExpression = this.isOptionalMemberExpression(expression); + if (isOptionalMemberExpression || type === "MemberExpression") { + if (isOptionalMemberExpression) { + this.expectPlugin("optionalChainingAssign", expression.loc.start); + if (ancestor.type !== "AssignmentExpression") { + this.raise(Errors.InvalidLhsOptionalChaining, { + at: expression, + ancestor + }); + } + } + if (binding !== 64) { + this.raise(Errors.InvalidPropertyBindingPattern, { + at: expression + }); + } + return; + } + if (type === "Identifier") { + this.checkIdentifier(expression, binding, strictModeChanged); + const { + name + } = expression; + if (checkClashes) { + if (checkClashes.has(name)) { + this.raise(Errors.ParamDupe, { + at: expression + }); + } else { + checkClashes.add(name); + } + } + return; + } + const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding); + if (validity === true) return; + if (validity === false) { + const ParseErrorClass = binding === 64 ? Errors.InvalidLhs : Errors.InvalidLhsBinding; + this.raise(ParseErrorClass, { + at: expression, + ancestor + }); + return; + } + const [key, isParenthesizedExpression] = Array.isArray(validity) ? validity : [validity, type === "ParenthesizedExpression"]; + const nextAncestor = type === "ArrayPattern" || type === "ObjectPattern" ? { + type + } : ancestor; + for (const child of [].concat(expression[key])) { + if (child) { + this.checkLVal(child, { + in: nextAncestor, + binding, + checkClashes, + strictModeChanged, + hasParenthesizedAncestor: isParenthesizedExpression + }); + } + } + } + checkIdentifier(at, bindingType, strictModeChanged = false) { + if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) { + if (bindingType === 64) { + this.raise(Errors.StrictEvalArguments, { + at, + referenceName: at.name + }); + } else { + this.raise(Errors.StrictEvalArgumentsBinding, { + at, + bindingName: at.name + }); + } + } + if (bindingType & 8192 && at.name === "let") { + this.raise(Errors.LetInLexicalBinding, { + at + }); + } + if (!(bindingType & 64)) { + this.declareNameFromIdentifier(at, bindingType); + } + } + declareNameFromIdentifier(identifier, binding) { + this.scope.declareName(identifier.name, binding, identifier.loc.start); + } + checkToRestConversion(node, allowPattern) { + switch (node.type) { + case "ParenthesizedExpression": + this.checkToRestConversion(node.expression, allowPattern); + break; + case "Identifier": + case "MemberExpression": + break; + case "ArrayExpression": + case "ObjectExpression": + if (allowPattern) break; + default: + this.raise(Errors.InvalidRestAssignmentPattern, { + at: node + }); + } + } + checkCommaAfterRest(close) { + if (!this.match(12)) { + return false; + } + this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, { + at: this.state.startLoc + }); + return true; + } } -function tsModuleBlock(body) { - return (0, _validateNode.default)({ - type: "TSModuleBlock", - body - }); +const getOwn = (object, key) => Object.hasOwnProperty.call(object, key) && object[key]; +function nonNull(x) { + if (x == null) { + throw new Error(`Unexpected ${x} value.`); + } + return x; } -function tsImportType(argument, qualifier = null, typeParameters = null) { - return (0, _validateNode.default)({ - type: "TSImportType", - argument, - qualifier, - typeParameters - }); +function assert(x) { + if (!x) { + throw new Error("Assert fail"); + } +} +const TSErrors = ParseErrorEnum`typescript`({ + AbstractMethodHasImplementation: ({ + methodName + }) => `Method '${methodName}' cannot have an implementation because it is marked abstract.`, + AbstractPropertyHasInitializer: ({ + propertyName + }) => `Property '${propertyName}' cannot have an initializer because it is marked abstract.`, + AccesorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", + AccesorCannotHaveTypeParameters: "An accessor cannot have type parameters.", + AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", + ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", + ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", + ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.", + ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", + DeclareAccessor: ({ + kind + }) => `'declare' is not allowed in ${kind}ters.`, + DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", + DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", + DuplicateAccessibilityModifier: ({ + modifier + }) => `Accessibility modifier already seen.`, + DuplicateModifier: ({ + modifier + }) => `Duplicate modifier: '${modifier}'.`, + EmptyHeritageClauseType: ({ + token + }) => `'${token}' list cannot be empty.`, + EmptyTypeArguments: "Type argument list cannot be empty.", + EmptyTypeParameters: "Type parameter list cannot be empty.", + ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", + ImportAliasHasImportType: "An import alias can not use 'import type'.", + ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier", + IncompatibleModifiers: ({ + modifiers + }) => `'${modifiers[0]}' modifier cannot be used with '${modifiers[1]}' modifier.`, + IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", + IndexSignatureHasAccessibility: ({ + modifier + }) => `Index signatures cannot have an accessibility modifier ('${modifier}').`, + IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.", + IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", + IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.", + InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.", + InvalidModifierOnTypeMember: ({ + modifier + }) => `'${modifier}' modifier cannot appear on a type member.`, + InvalidModifierOnTypeParameter: ({ + modifier + }) => `'${modifier}' modifier cannot appear on a type parameter.`, + InvalidModifierOnTypeParameterPositions: ({ + modifier + }) => `'${modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`, + InvalidModifiersOrder: ({ + orderedModifiers + }) => `'${orderedModifiers[0]}' modifier must precede '${orderedModifiers[1]}' modifier.`, + InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. " + "You can either wrap the instantiation expression in parentheses, or delete the type arguments.", + InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.", + MissingInterfaceName: "'interface' declarations must be followed by an identifier.", + NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.", + NonClassMethodPropertyHasAbstractModifer: "'abstract' modifier can only appear on a class, method, or property declaration.", + OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", + OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", + PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", + PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", + PrivateElementHasAccessibility: ({ + modifier + }) => `Private elements cannot have an accessibility modifier ('${modifier}').`, + ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", + ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.", + ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.", + SetAccesorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", + SetAccesorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", + SetAccesorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", + SingleTypeParameterWithoutTrailingComma: ({ + typeParameterName + }) => `Single type parameter ${typeParameterName} should have a trailing comma. Example usage: <${typeParameterName},>.`, + StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", + TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).", + TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", + TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", + TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", + TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", + UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", + UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", + UnexpectedTypeAnnotation: "Did not expect a type annotation here.", + UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", + UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", + UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", + UnsupportedSignatureParameterKind: ({ + type + }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.` +}); +function keywordTypeFromName(value) { + switch (value) { + case "any": + return "TSAnyKeyword"; + case "boolean": + return "TSBooleanKeyword"; + case "bigint": + return "TSBigIntKeyword"; + case "never": + return "TSNeverKeyword"; + case "number": + return "TSNumberKeyword"; + case "object": + return "TSObjectKeyword"; + case "string": + return "TSStringKeyword"; + case "symbol": + return "TSSymbolKeyword"; + case "undefined": + return "TSUndefinedKeyword"; + case "unknown": + return "TSUnknownKeyword"; + default: + return undefined; + } } -function tsImportEqualsDeclaration(id, moduleReference) { - return (0, _validateNode.default)({ - type: "TSImportEqualsDeclaration", - id, - moduleReference, - isExport: null - }); +function tsIsAccessModifier(modifier) { + return modifier === "private" || modifier === "public" || modifier === "protected"; } -function tsExternalModuleReference(expression) { - return (0, _validateNode.default)({ - type: "TSExternalModuleReference", - expression - }); +function tsIsVarianceAnnotations(modifier) { + return modifier === "in" || modifier === "out"; } -function tsNonNullExpression(expression) { - return (0, _validateNode.default)({ - type: "TSNonNullExpression", - expression - }); +var typescript = superClass => class TypeScriptParserMixin extends superClass { + constructor(...args) { + super(...args); + this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, { + allowedModifiers: ["in", "out"], + disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"], + errorTemplate: TSErrors.InvalidModifierOnTypeParameter + }); + this.tsParseConstModifier = this.tsParseModifiers.bind(this, { + allowedModifiers: ["const"], + disallowedModifiers: ["in", "out"], + errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions + }); + this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { + allowedModifiers: ["in", "out", "const"], + disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], + errorTemplate: TSErrors.InvalidModifierOnTypeParameter + }); + } + getScopeHandler() { + return TypeScriptScopeHandler; + } + tsIsIdentifier() { + return tokenIsIdentifier(this.state.type); + } + tsTokenCanFollowModifier() { + return (this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(138) || this.isLiteralPropertyName()) && !this.hasPrecedingLineBreak(); + } + tsNextTokenCanFollowModifier() { + this.next(); + return this.tsTokenCanFollowModifier(); + } + tsParseModifier(allowedModifiers, stopOnStartOfClassStaticBlock) { + if (!tokenIsIdentifier(this.state.type) && this.state.type !== 58 && this.state.type !== 75) { + return undefined; + } + const modifier = this.state.value; + if (allowedModifiers.indexOf(modifier) !== -1) { + if (stopOnStartOfClassStaticBlock && this.tsIsStartOfStaticBlocks()) { + return undefined; + } + if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) { + return modifier; + } + } + return undefined; + } + tsParseModifiers({ + allowedModifiers, + disallowedModifiers, + stopOnStartOfClassStaticBlock, + errorTemplate = TSErrors.InvalidModifierOnTypeMember + }, modified) { + const enforceOrder = (loc, modifier, before, after) => { + if (modifier === before && modified[after]) { + this.raise(TSErrors.InvalidModifiersOrder, { + at: loc, + orderedModifiers: [before, after] + }); + } + }; + const incompatible = (loc, modifier, mod1, mod2) => { + if (modified[mod1] && modifier === mod2 || modified[mod2] && modifier === mod1) { + this.raise(TSErrors.IncompatibleModifiers, { + at: loc, + modifiers: [mod1, mod2] + }); + } + }; + for (;;) { + const { + startLoc + } = this.state; + const modifier = this.tsParseModifier(allowedModifiers.concat(disallowedModifiers != null ? disallowedModifiers : []), stopOnStartOfClassStaticBlock); + if (!modifier) break; + if (tsIsAccessModifier(modifier)) { + if (modified.accessibility) { + this.raise(TSErrors.DuplicateAccessibilityModifier, { + at: startLoc, + modifier + }); + } else { + enforceOrder(startLoc, modifier, modifier, "override"); + enforceOrder(startLoc, modifier, modifier, "static"); + enforceOrder(startLoc, modifier, modifier, "readonly"); + modified.accessibility = modifier; + } + } else if (tsIsVarianceAnnotations(modifier)) { + if (modified[modifier]) { + this.raise(TSErrors.DuplicateModifier, { + at: startLoc, + modifier + }); + } + modified[modifier] = true; + enforceOrder(startLoc, modifier, "in", "out"); + } else { + if (Object.hasOwnProperty.call(modified, modifier)) { + this.raise(TSErrors.DuplicateModifier, { + at: startLoc, + modifier + }); + } else { + enforceOrder(startLoc, modifier, "static", "readonly"); + enforceOrder(startLoc, modifier, "static", "override"); + enforceOrder(startLoc, modifier, "override", "readonly"); + enforceOrder(startLoc, modifier, "abstract", "override"); + incompatible(startLoc, modifier, "declare", "override"); + incompatible(startLoc, modifier, "static", "abstract"); + } + modified[modifier] = true; + } + if (disallowedModifiers != null && disallowedModifiers.includes(modifier)) { + this.raise(errorTemplate, { + at: startLoc, + modifier + }); + } + } + } + tsIsListTerminator(kind) { + switch (kind) { + case "EnumMembers": + case "TypeMembers": + return this.match(8); + case "HeritageClauseElement": + return this.match(5); + case "TupleElementTypes": + return this.match(3); + case "TypeParametersOrArguments": + return this.match(48); + } + } + tsParseList(kind, parseElement) { + const result = []; + while (!this.tsIsListTerminator(kind)) { + result.push(parseElement()); + } + return result; + } + tsParseDelimitedList(kind, parseElement, refTrailingCommaPos) { + return nonNull(this.tsParseDelimitedListWorker(kind, parseElement, true, refTrailingCommaPos)); + } + tsParseDelimitedListWorker(kind, parseElement, expectSuccess, refTrailingCommaPos) { + const result = []; + let trailingCommaPos = -1; + for (;;) { + if (this.tsIsListTerminator(kind)) { + break; + } + trailingCommaPos = -1; + const element = parseElement(); + if (element == null) { + return undefined; + } + result.push(element); + if (this.eat(12)) { + trailingCommaPos = this.state.lastTokStart; + continue; + } + if (this.tsIsListTerminator(kind)) { + break; + } + if (expectSuccess) { + this.expect(12); + } + return undefined; + } + if (refTrailingCommaPos) { + refTrailingCommaPos.value = trailingCommaPos; + } + return result; + } + tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) { + if (!skipFirstToken) { + if (bracket) { + this.expect(0); + } else { + this.expect(47); + } + } + const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos); + if (bracket) { + this.expect(3); + } else { + this.expect(48); + } + return result; + } + tsParseImportType() { + const node = this.startNode(); + this.expect(83); + this.expect(10); + if (!this.match(133)) { + this.raise(TSErrors.UnsupportedImportTypeArgument, { + at: this.state.startLoc + }); + } + node.argument = super.parseExprAtom(); + this.expect(11); + if (this.eat(16)) { + node.qualifier = this.tsParseEntityName(); + } + if (this.match(47)) { + node.typeParameters = this.tsParseTypeArguments(); + } + return this.finishNode(node, "TSImportType"); + } + tsParseEntityName(allowReservedWords = true) { + let entity = this.parseIdentifier(allowReservedWords); + while (this.eat(16)) { + const node = this.startNodeAtNode(entity); + node.left = entity; + node.right = this.parseIdentifier(allowReservedWords); + entity = this.finishNode(node, "TSQualifiedName"); + } + return entity; + } + tsParseTypeReference() { + const node = this.startNode(); + node.typeName = this.tsParseEntityName(); + if (!this.hasPrecedingLineBreak() && this.match(47)) { + node.typeParameters = this.tsParseTypeArguments(); + } + return this.finishNode(node, "TSTypeReference"); + } + tsParseThisTypePredicate(lhs) { + this.next(); + const node = this.startNodeAtNode(lhs); + node.parameterName = lhs; + node.typeAnnotation = this.tsParseTypeAnnotation(false); + node.asserts = false; + return this.finishNode(node, "TSTypePredicate"); + } + tsParseThisTypeNode() { + const node = this.startNode(); + this.next(); + return this.finishNode(node, "TSThisType"); + } + tsParseTypeQuery() { + const node = this.startNode(); + this.expect(87); + if (this.match(83)) { + node.exprName = this.tsParseImportType(); + } else { + node.exprName = this.tsParseEntityName(); + } + if (!this.hasPrecedingLineBreak() && this.match(47)) { + node.typeParameters = this.tsParseTypeArguments(); + } + return this.finishNode(node, "TSTypeQuery"); + } + tsParseTypeParameter(parseModifiers) { + const node = this.startNode(); + parseModifiers(node); + node.name = this.tsParseTypeParameterName(); + node.constraint = this.tsEatThenParseType(81); + node.default = this.tsEatThenParseType(29); + return this.finishNode(node, "TSTypeParameter"); + } + tsTryParseTypeParameters(parseModifiers) { + if (this.match(47)) { + return this.tsParseTypeParameters(parseModifiers); + } + } + tsParseTypeParameters(parseModifiers) { + const node = this.startNode(); + if (this.match(47) || this.match(142)) { + this.next(); + } else { + this.unexpected(); + } + const refTrailingCommaPos = { + value: -1 + }; + node.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, parseModifiers), false, true, refTrailingCommaPos); + if (node.params.length === 0) { + this.raise(TSErrors.EmptyTypeParameters, { + at: node + }); + } + if (refTrailingCommaPos.value !== -1) { + this.addExtra(node, "trailingComma", refTrailingCommaPos.value); + } + return this.finishNode(node, "TSTypeParameterDeclaration"); + } + tsFillSignature(returnToken, signature) { + const returnTokenRequired = returnToken === 19; + const paramsKey = "parameters"; + const returnTypeKey = "typeAnnotation"; + signature.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); + this.expect(10); + signature[paramsKey] = this.tsParseBindingListForSignature(); + if (returnTokenRequired) { + signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken); + } else if (this.match(returnToken)) { + signature[returnTypeKey] = this.tsParseTypeOrTypePredicateAnnotation(returnToken); + } + } + tsParseBindingListForSignature() { + const list = super.parseBindingList(11, 41, 2); + for (const pattern of list) { + const { + type + } = pattern; + if (type === "AssignmentPattern" || type === "TSParameterProperty") { + this.raise(TSErrors.UnsupportedSignatureParameterKind, { + at: pattern, + type + }); + } + } + return list; + } + tsParseTypeMemberSemicolon() { + if (!this.eat(12) && !this.isLineTerminator()) { + this.expect(13); + } + } + tsParseSignatureMember(kind, node) { + this.tsFillSignature(14, node); + this.tsParseTypeMemberSemicolon(); + return this.finishNode(node, kind); + } + tsIsUnambiguouslyIndexSignature() { + this.next(); + if (tokenIsIdentifier(this.state.type)) { + this.next(); + return this.match(14); + } + return false; + } + tsTryParseIndexSignature(node) { + if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) { + return; + } + this.expect(0); + const id = this.parseIdentifier(); + id.typeAnnotation = this.tsParseTypeAnnotation(); + this.resetEndLocation(id); + this.expect(3); + node.parameters = [id]; + const type = this.tsTryParseTypeAnnotation(); + if (type) node.typeAnnotation = type; + this.tsParseTypeMemberSemicolon(); + return this.finishNode(node, "TSIndexSignature"); + } + tsParsePropertyOrMethodSignature(node, readonly) { + if (this.eat(17)) node.optional = true; + const nodeAny = node; + if (this.match(10) || this.match(47)) { + if (readonly) { + this.raise(TSErrors.ReadonlyForMethodSignature, { + at: node + }); + } + const method = nodeAny; + if (method.kind && this.match(47)) { + this.raise(TSErrors.AccesorCannotHaveTypeParameters, { + at: this.state.curPosition() + }); + } + this.tsFillSignature(14, method); + this.tsParseTypeMemberSemicolon(); + const paramsKey = "parameters"; + const returnTypeKey = "typeAnnotation"; + if (method.kind === "get") { + if (method[paramsKey].length > 0) { + this.raise(Errors.BadGetterArity, { + at: this.state.curPosition() + }); + if (this.isThisParam(method[paramsKey][0])) { + this.raise(TSErrors.AccesorCannotDeclareThisParameter, { + at: this.state.curPosition() + }); + } + } + } else if (method.kind === "set") { + if (method[paramsKey].length !== 1) { + this.raise(Errors.BadSetterArity, { + at: this.state.curPosition() + }); + } else { + const firstParameter = method[paramsKey][0]; + if (this.isThisParam(firstParameter)) { + this.raise(TSErrors.AccesorCannotDeclareThisParameter, { + at: this.state.curPosition() + }); + } + if (firstParameter.type === "Identifier" && firstParameter.optional) { + this.raise(TSErrors.SetAccesorCannotHaveOptionalParameter, { + at: this.state.curPosition() + }); + } + if (firstParameter.type === "RestElement") { + this.raise(TSErrors.SetAccesorCannotHaveRestParameter, { + at: this.state.curPosition() + }); + } + } + if (method[returnTypeKey]) { + this.raise(TSErrors.SetAccesorCannotHaveReturnType, { + at: method[returnTypeKey] + }); + } + } else { + method.kind = "method"; + } + return this.finishNode(method, "TSMethodSignature"); + } else { + const property = nodeAny; + if (readonly) property.readonly = true; + const type = this.tsTryParseTypeAnnotation(); + if (type) property.typeAnnotation = type; + this.tsParseTypeMemberSemicolon(); + return this.finishNode(property, "TSPropertySignature"); + } + } + tsParseTypeMember() { + const node = this.startNode(); + if (this.match(10) || this.match(47)) { + return this.tsParseSignatureMember("TSCallSignatureDeclaration", node); + } + if (this.match(77)) { + const id = this.startNode(); + this.next(); + if (this.match(10) || this.match(47)) { + return this.tsParseSignatureMember("TSConstructSignatureDeclaration", node); + } else { + node.key = this.createIdentifier(id, "new"); + return this.tsParsePropertyOrMethodSignature(node, false); + } + } + this.tsParseModifiers({ + allowedModifiers: ["readonly"], + disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] + }, node); + const idx = this.tsTryParseIndexSignature(node); + if (idx) { + return idx; + } + super.parsePropertyName(node); + if (!node.computed && node.key.type === "Identifier" && (node.key.name === "get" || node.key.name === "set") && this.tsTokenCanFollowModifier()) { + node.kind = node.key.name; + super.parsePropertyName(node); + } + return this.tsParsePropertyOrMethodSignature(node, !!node.readonly); + } + tsParseTypeLiteral() { + const node = this.startNode(); + node.members = this.tsParseObjectTypeMembers(); + return this.finishNode(node, "TSTypeLiteral"); + } + tsParseObjectTypeMembers() { + this.expect(5); + const members = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this)); + this.expect(8); + return members; + } + tsIsStartOfMappedType() { + this.next(); + if (this.eat(53)) { + return this.isContextual(122); + } + if (this.isContextual(122)) { + this.next(); + } + if (!this.match(0)) { + return false; + } + this.next(); + if (!this.tsIsIdentifier()) { + return false; + } + this.next(); + return this.match(58); + } + tsParseMappedTypeParameter() { + const node = this.startNode(); + node.name = this.tsParseTypeParameterName(); + node.constraint = this.tsExpectThenParseType(58); + return this.finishNode(node, "TSTypeParameter"); + } + tsParseMappedType() { + const node = this.startNode(); + this.expect(5); + if (this.match(53)) { + node.readonly = this.state.value; + this.next(); + this.expectContextual(122); + } else if (this.eatContextual(122)) { + node.readonly = true; + } + this.expect(0); + node.typeParameter = this.tsParseMappedTypeParameter(); + node.nameType = this.eatContextual(93) ? this.tsParseType() : null; + this.expect(3); + if (this.match(53)) { + node.optional = this.state.value; + this.next(); + this.expect(17); + } else if (this.eat(17)) { + node.optional = true; + } + node.typeAnnotation = this.tsTryParseType(); + this.semicolon(); + this.expect(8); + return this.finishNode(node, "TSMappedType"); + } + tsParseTupleType() { + const node = this.startNode(); + node.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), true, false); + let seenOptionalElement = false; + node.elementTypes.forEach(elementNode => { + const { + type + } = elementNode; + if (seenOptionalElement && type !== "TSRestType" && type !== "TSOptionalType" && !(type === "TSNamedTupleMember" && elementNode.optional)) { + this.raise(TSErrors.OptionalTypeBeforeRequired, { + at: elementNode + }); + } + seenOptionalElement || (seenOptionalElement = type === "TSNamedTupleMember" && elementNode.optional || type === "TSOptionalType"); + }); + return this.finishNode(node, "TSTupleType"); + } + tsParseTupleElementType() { + const { + startLoc + } = this.state; + const rest = this.eat(21); + let labeled; + let label; + let optional; + let type; + const isWord = tokenIsKeywordOrIdentifier(this.state.type); + const chAfterWord = isWord ? this.lookaheadCharCode() : null; + if (chAfterWord === 58) { + labeled = true; + optional = false; + label = this.parseIdentifier(true); + this.expect(14); + type = this.tsParseType(); + } else if (chAfterWord === 63) { + optional = true; + const startLoc = this.state.startLoc; + const wordName = this.state.value; + const typeOrLabel = this.tsParseNonArrayType(); + if (this.lookaheadCharCode() === 58) { + labeled = true; + label = this.createIdentifier(this.startNodeAt(startLoc), wordName); + this.expect(17); + this.expect(14); + type = this.tsParseType(); + } else { + labeled = false; + type = typeOrLabel; + this.expect(17); + } + } else { + type = this.tsParseType(); + optional = this.eat(17); + labeled = this.eat(14); + } + if (labeled) { + let labeledNode; + if (label) { + labeledNode = this.startNodeAtNode(label); + labeledNode.optional = optional; + labeledNode.label = label; + labeledNode.elementType = type; + if (this.eat(17)) { + labeledNode.optional = true; + this.raise(TSErrors.TupleOptionalAfterType, { + at: this.state.lastTokStartLoc + }); + } + } else { + labeledNode = this.startNodeAtNode(type); + labeledNode.optional = optional; + this.raise(TSErrors.InvalidTupleMemberLabel, { + at: type + }); + labeledNode.label = type; + labeledNode.elementType = this.tsParseType(); + } + type = this.finishNode(labeledNode, "TSNamedTupleMember"); + } else if (optional) { + const optionalTypeNode = this.startNodeAtNode(type); + optionalTypeNode.typeAnnotation = type; + type = this.finishNode(optionalTypeNode, "TSOptionalType"); + } + if (rest) { + const restNode = this.startNodeAt(startLoc); + restNode.typeAnnotation = type; + type = this.finishNode(restNode, "TSRestType"); + } + return type; + } + tsParseParenthesizedType() { + const node = this.startNode(); + this.expect(10); + node.typeAnnotation = this.tsParseType(); + this.expect(11); + return this.finishNode(node, "TSParenthesizedType"); + } + tsParseFunctionOrConstructorType(type, abstract) { + const node = this.startNode(); + if (type === "TSConstructorType") { + node.abstract = !!abstract; + if (abstract) this.next(); + this.next(); + } + this.tsInAllowConditionalTypesContext(() => this.tsFillSignature(19, node)); + return this.finishNode(node, type); + } + tsParseLiteralTypeNode() { + const node = this.startNode(); + switch (this.state.type) { + case 134: + case 135: + case 133: + case 85: + case 86: + node.literal = super.parseExprAtom(); + break; + default: + this.unexpected(); + } + return this.finishNode(node, "TSLiteralType"); + } + tsParseTemplateLiteralType() { + const node = this.startNode(); + node.literal = super.parseTemplate(false); + return this.finishNode(node, "TSLiteralType"); + } + parseTemplateSubstitution() { + if (this.state.inType) return this.tsParseType(); + return super.parseTemplateSubstitution(); + } + tsParseThisTypeOrThisTypePredicate() { + const thisKeyword = this.tsParseThisTypeNode(); + if (this.isContextual(116) && !this.hasPrecedingLineBreak()) { + return this.tsParseThisTypePredicate(thisKeyword); + } else { + return thisKeyword; + } + } + tsParseNonArrayType() { + switch (this.state.type) { + case 133: + case 134: + case 135: + case 85: + case 86: + return this.tsParseLiteralTypeNode(); + case 53: + if (this.state.value === "-") { + const node = this.startNode(); + const nextToken = this.lookahead(); + if (nextToken.type !== 134 && nextToken.type !== 135) { + this.unexpected(); + } + node.literal = this.parseMaybeUnary(); + return this.finishNode(node, "TSLiteralType"); + } + break; + case 78: + return this.tsParseThisTypeOrThisTypePredicate(); + case 87: + return this.tsParseTypeQuery(); + case 83: + return this.tsParseImportType(); + case 5: + return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral(); + case 0: + return this.tsParseTupleType(); + case 10: + return this.tsParseParenthesizedType(); + case 25: + case 24: + return this.tsParseTemplateLiteralType(); + default: + { + const { + type + } = this.state; + if (tokenIsIdentifier(type) || type === 88 || type === 84) { + const nodeType = type === 88 ? "TSVoidKeyword" : type === 84 ? "TSNullKeyword" : keywordTypeFromName(this.state.value); + if (nodeType !== undefined && this.lookaheadCharCode() !== 46) { + const node = this.startNode(); + this.next(); + return this.finishNode(node, nodeType); + } + return this.tsParseTypeReference(); + } + } + } + this.unexpected(); + } + tsParseArrayTypeOrHigher() { + let type = this.tsParseNonArrayType(); + while (!this.hasPrecedingLineBreak() && this.eat(0)) { + if (this.match(3)) { + const node = this.startNodeAtNode(type); + node.elementType = type; + this.expect(3); + type = this.finishNode(node, "TSArrayType"); + } else { + const node = this.startNodeAtNode(type); + node.objectType = type; + node.indexType = this.tsParseType(); + this.expect(3); + type = this.finishNode(node, "TSIndexedAccessType"); + } + } + return type; + } + tsParseTypeOperator() { + const node = this.startNode(); + const operator = this.state.value; + this.next(); + node.operator = operator; + node.typeAnnotation = this.tsParseTypeOperatorOrHigher(); + if (operator === "readonly") { + this.tsCheckTypeAnnotationForReadOnly(node); + } + return this.finishNode(node, "TSTypeOperator"); + } + tsCheckTypeAnnotationForReadOnly(node) { + switch (node.typeAnnotation.type) { + case "TSTupleType": + case "TSArrayType": + return; + default: + this.raise(TSErrors.UnexpectedReadonly, { + at: node + }); + } + } + tsParseInferType() { + const node = this.startNode(); + this.expectContextual(115); + const typeParameter = this.startNode(); + typeParameter.name = this.tsParseTypeParameterName(); + typeParameter.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()); + node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter"); + return this.finishNode(node, "TSInferType"); + } + tsParseConstraintForInferType() { + if (this.eat(81)) { + const constraint = this.tsInDisallowConditionalTypesContext(() => this.tsParseType()); + if (this.state.inDisallowConditionalTypesContext || !this.match(17)) { + return constraint; + } + } + } + tsParseTypeOperatorOrHigher() { + const isTypeOperator = tokenIsTSTypeOperator(this.state.type) && !this.state.containsEsc; + return isTypeOperator ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher()); + } + tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) { + const node = this.startNode(); + const hasLeadingOperator = this.eat(operator); + const types = []; + do { + types.push(parseConstituentType()); + } while (this.eat(operator)); + if (types.length === 1 && !hasLeadingOperator) { + return types[0]; + } + node.types = types; + return this.finishNode(node, kind); + } + tsParseIntersectionTypeOrHigher() { + return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45); + } + tsParseUnionTypeOrHigher() { + return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43); + } + tsIsStartOfFunctionType() { + if (this.match(47)) { + return true; + } + return this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); + } + tsSkipParameterStart() { + if (tokenIsIdentifier(this.state.type) || this.match(78)) { + this.next(); + return true; + } + if (this.match(5)) { + const { + errors + } = this.state; + const previousErrorCount = errors.length; + try { + this.parseObjectLike(8, true); + return errors.length === previousErrorCount; + } catch (_unused) { + return false; + } + } + if (this.match(0)) { + this.next(); + const { + errors + } = this.state; + const previousErrorCount = errors.length; + try { + super.parseBindingList(3, 93, 1); + return errors.length === previousErrorCount; + } catch (_unused2) { + return false; + } + } + return false; + } + tsIsUnambiguouslyStartOfFunctionType() { + this.next(); + if (this.match(11) || this.match(21)) { + return true; + } + if (this.tsSkipParameterStart()) { + if (this.match(14) || this.match(12) || this.match(17) || this.match(29)) { + return true; + } + if (this.match(11)) { + this.next(); + if (this.match(19)) { + return true; + } + } + } + return false; + } + tsParseTypeOrTypePredicateAnnotation(returnToken) { + return this.tsInType(() => { + const t = this.startNode(); + this.expect(returnToken); + const node = this.startNode(); + const asserts = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this)); + if (asserts && this.match(78)) { + let thisTypePredicate = this.tsParseThisTypeOrThisTypePredicate(); + if (thisTypePredicate.type === "TSThisType") { + node.parameterName = thisTypePredicate; + node.asserts = true; + node.typeAnnotation = null; + thisTypePredicate = this.finishNode(node, "TSTypePredicate"); + } else { + this.resetStartLocationFromNode(thisTypePredicate, node); + thisTypePredicate.asserts = true; + } + t.typeAnnotation = thisTypePredicate; + return this.finishNode(t, "TSTypeAnnotation"); + } + const typePredicateVariable = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this)); + if (!typePredicateVariable) { + if (!asserts) { + return this.tsParseTypeAnnotation(false, t); + } + node.parameterName = this.parseIdentifier(); + node.asserts = asserts; + node.typeAnnotation = null; + t.typeAnnotation = this.finishNode(node, "TSTypePredicate"); + return this.finishNode(t, "TSTypeAnnotation"); + } + const type = this.tsParseTypeAnnotation(false); + node.parameterName = typePredicateVariable; + node.typeAnnotation = type; + node.asserts = asserts; + t.typeAnnotation = this.finishNode(node, "TSTypePredicate"); + return this.finishNode(t, "TSTypeAnnotation"); + }); + } + tsTryParseTypeOrTypePredicateAnnotation() { + if (this.match(14)) { + return this.tsParseTypeOrTypePredicateAnnotation(14); + } + } + tsTryParseTypeAnnotation() { + if (this.match(14)) { + return this.tsParseTypeAnnotation(); + } + } + tsTryParseType() { + return this.tsEatThenParseType(14); + } + tsParseTypePredicatePrefix() { + const id = this.parseIdentifier(); + if (this.isContextual(116) && !this.hasPrecedingLineBreak()) { + this.next(); + return id; + } + } + tsParseTypePredicateAsserts() { + if (this.state.type !== 109) { + return false; + } + const containsEsc = this.state.containsEsc; + this.next(); + if (!tokenIsIdentifier(this.state.type) && !this.match(78)) { + return false; + } + if (containsEsc) { + this.raise(Errors.InvalidEscapedReservedWord, { + at: this.state.lastTokStartLoc, + reservedWord: "asserts" + }); + } + return true; + } + tsParseTypeAnnotation(eatColon = true, t = this.startNode()) { + this.tsInType(() => { + if (eatColon) this.expect(14); + t.typeAnnotation = this.tsParseType(); + }); + return this.finishNode(t, "TSTypeAnnotation"); + } + tsParseType() { + assert(this.state.inType); + const type = this.tsParseNonConditionalType(); + if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) { + return type; + } + const node = this.startNodeAtNode(type); + node.checkType = type; + node.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()); + this.expect(17); + node.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()); + this.expect(14); + node.falseType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()); + return this.finishNode(node, "TSConditionalType"); + } + isAbstractConstructorSignature() { + return this.isContextual(124) && this.lookahead().type === 77; + } + tsParseNonConditionalType() { + if (this.tsIsStartOfFunctionType()) { + return this.tsParseFunctionOrConstructorType("TSFunctionType"); + } + if (this.match(77)) { + return this.tsParseFunctionOrConstructorType("TSConstructorType"); + } else if (this.isAbstractConstructorSignature()) { + return this.tsParseFunctionOrConstructorType("TSConstructorType", true); + } + return this.tsParseUnionTypeOrHigher(); + } + tsParseTypeAssertion() { + if (this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) { + this.raise(TSErrors.ReservedTypeAssertion, { + at: this.state.startLoc + }); + } + const node = this.startNode(); + node.typeAnnotation = this.tsInType(() => { + this.next(); + return this.match(75) ? this.tsParseTypeReference() : this.tsParseType(); + }); + this.expect(48); + node.expression = this.parseMaybeUnary(); + return this.finishNode(node, "TSTypeAssertion"); + } + tsParseHeritageClause(token) { + const originalStartLoc = this.state.startLoc; + const delimitedList = this.tsParseDelimitedList("HeritageClauseElement", () => { + const node = this.startNode(); + node.expression = this.tsParseEntityName(); + if (this.match(47)) { + node.typeParameters = this.tsParseTypeArguments(); + } + return this.finishNode(node, "TSExpressionWithTypeArguments"); + }); + if (!delimitedList.length) { + this.raise(TSErrors.EmptyHeritageClauseType, { + at: originalStartLoc, + token + }); + } + return delimitedList; + } + tsParseInterfaceDeclaration(node, properties = {}) { + if (this.hasFollowingLineBreak()) return null; + this.expectContextual(129); + if (properties.declare) node.declare = true; + if (tokenIsIdentifier(this.state.type)) { + node.id = this.parseIdentifier(); + this.checkIdentifier(node.id, 130); + } else { + node.id = null; + this.raise(TSErrors.MissingInterfaceName, { + at: this.state.startLoc + }); + } + node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); + if (this.eat(81)) { + node.extends = this.tsParseHeritageClause("extends"); + } + const body = this.startNode(); + body.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)); + node.body = this.finishNode(body, "TSInterfaceBody"); + return this.finishNode(node, "TSInterfaceDeclaration"); + } + tsParseTypeAliasDeclaration(node) { + node.id = this.parseIdentifier(); + this.checkIdentifier(node.id, 2); + node.typeAnnotation = this.tsInType(() => { + node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers); + this.expect(29); + if (this.isContextual(114) && this.lookahead().type !== 16) { + const node = this.startNode(); + this.next(); + return this.finishNode(node, "TSIntrinsicKeyword"); + } + return this.tsParseType(); + }); + this.semicolon(); + return this.finishNode(node, "TSTypeAliasDeclaration"); + } + tsInNoContext(cb) { + const oldContext = this.state.context; + this.state.context = [oldContext[0]]; + try { + return cb(); + } finally { + this.state.context = oldContext; + } + } + tsInType(cb) { + const oldInType = this.state.inType; + this.state.inType = true; + try { + return cb(); + } finally { + this.state.inType = oldInType; + } + } + tsInDisallowConditionalTypesContext(cb) { + const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext; + this.state.inDisallowConditionalTypesContext = true; + try { + return cb(); + } finally { + this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext; + } + } + tsInAllowConditionalTypesContext(cb) { + const oldInDisallowConditionalTypesContext = this.state.inDisallowConditionalTypesContext; + this.state.inDisallowConditionalTypesContext = false; + try { + return cb(); + } finally { + this.state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext; + } + } + tsEatThenParseType(token) { + if (this.match(token)) { + return this.tsNextThenParseType(); + } + } + tsExpectThenParseType(token) { + return this.tsInType(() => { + this.expect(token); + return this.tsParseType(); + }); + } + tsNextThenParseType() { + return this.tsInType(() => { + this.next(); + return this.tsParseType(); + }); + } + tsParseEnumMember() { + const node = this.startNode(); + node.id = this.match(133) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(true); + if (this.eat(29)) { + node.initializer = super.parseMaybeAssignAllowIn(); + } + return this.finishNode(node, "TSEnumMember"); + } + tsParseEnumDeclaration(node, properties = {}) { + if (properties.const) node.const = true; + if (properties.declare) node.declare = true; + this.expectContextual(126); + node.id = this.parseIdentifier(); + this.checkIdentifier(node.id, node.const ? 8971 : 8459); + this.expect(5); + node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)); + this.expect(8); + return this.finishNode(node, "TSEnumDeclaration"); + } + tsParseModuleBlock() { + const node = this.startNode(); + this.scope.enter(0); + this.expect(5); + super.parseBlockOrModuleBlockBody(node.body = [], undefined, true, 8); + this.scope.exit(); + return this.finishNode(node, "TSModuleBlock"); + } + tsParseModuleOrNamespaceDeclaration(node, nested = false) { + node.id = this.parseIdentifier(); + if (!nested) { + this.checkIdentifier(node.id, 1024); + } + if (this.eat(16)) { + const inner = this.startNode(); + this.tsParseModuleOrNamespaceDeclaration(inner, true); + node.body = inner; + } else { + this.scope.enter(256); + this.prodParam.enter(0); + node.body = this.tsParseModuleBlock(); + this.prodParam.exit(); + this.scope.exit(); + } + return this.finishNode(node, "TSModuleDeclaration"); + } + tsParseAmbientExternalModuleDeclaration(node) { + if (this.isContextual(112)) { + node.global = true; + node.id = this.parseIdentifier(); + } else if (this.match(133)) { + node.id = super.parseStringLiteral(this.state.value); + } else { + this.unexpected(); + } + if (this.match(5)) { + this.scope.enter(256); + this.prodParam.enter(0); + node.body = this.tsParseModuleBlock(); + this.prodParam.exit(); + this.scope.exit(); + } else { + this.semicolon(); + } + return this.finishNode(node, "TSModuleDeclaration"); + } + tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, isExport) { + node.isExport = isExport || false; + node.id = maybeDefaultIdentifier || this.parseIdentifier(); + this.checkIdentifier(node.id, 4096); + this.expect(29); + const moduleReference = this.tsParseModuleReference(); + if (node.importKind === "type" && moduleReference.type !== "TSExternalModuleReference") { + this.raise(TSErrors.ImportAliasHasImportType, { + at: moduleReference + }); + } + node.moduleReference = moduleReference; + this.semicolon(); + return this.finishNode(node, "TSImportEqualsDeclaration"); + } + tsIsExternalModuleReference() { + return this.isContextual(119) && this.lookaheadCharCode() === 40; + } + tsParseModuleReference() { + return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(false); + } + tsParseExternalModuleReference() { + const node = this.startNode(); + this.expectContextual(119); + this.expect(10); + if (!this.match(133)) { + this.unexpected(); + } + node.expression = super.parseExprAtom(); + this.expect(11); + this.sawUnambiguousESM = true; + return this.finishNode(node, "TSExternalModuleReference"); + } + tsLookAhead(f) { + const state = this.state.clone(); + const res = f(); + this.state = state; + return res; + } + tsTryParseAndCatch(f) { + const result = this.tryParse(abort => f() || abort()); + if (result.aborted || !result.node) return; + if (result.error) this.state = result.failState; + return result.node; + } + tsTryParse(f) { + const state = this.state.clone(); + const result = f(); + if (result !== undefined && result !== false) { + return result; + } + this.state = state; + } + tsTryParseDeclare(nany) { + if (this.isLineTerminator()) { + return; + } + let startType = this.state.type; + let kind; + if (this.isContextual(100)) { + startType = 74; + kind = "let"; + } + return this.tsInAmbientContext(() => { + switch (startType) { + case 68: + nany.declare = true; + return super.parseFunctionStatement(nany, false, false); + case 80: + nany.declare = true; + return this.parseClass(nany, true, false); + case 126: + return this.tsParseEnumDeclaration(nany, { + declare: true + }); + case 112: + return this.tsParseAmbientExternalModuleDeclaration(nany); + case 75: + case 74: + if (!this.match(75) || !this.isLookaheadContextual("enum")) { + nany.declare = true; + return this.parseVarStatement(nany, kind || this.state.value, true); + } + this.expect(75); + return this.tsParseEnumDeclaration(nany, { + const: true, + declare: true + }); + case 129: + { + const result = this.tsParseInterfaceDeclaration(nany, { + declare: true + }); + if (result) return result; + } + default: + if (tokenIsIdentifier(startType)) { + return this.tsParseDeclaration(nany, this.state.value, true, null); + } + } + }); + } + tsTryParseExportDeclaration() { + return this.tsParseDeclaration(this.startNode(), this.state.value, true, null); + } + tsParseExpressionStatement(node, expr, decorators) { + switch (expr.name) { + case "declare": + { + const declaration = this.tsTryParseDeclare(node); + if (declaration) { + declaration.declare = true; + } + return declaration; + } + case "global": + if (this.match(5)) { + this.scope.enter(256); + this.prodParam.enter(0); + const mod = node; + mod.global = true; + mod.id = expr; + mod.body = this.tsParseModuleBlock(); + this.scope.exit(); + this.prodParam.exit(); + return this.finishNode(mod, "TSModuleDeclaration"); + } + break; + default: + return this.tsParseDeclaration(node, expr.name, false, decorators); + } + } + tsParseDeclaration(node, value, next, decorators) { + switch (value) { + case "abstract": + if (this.tsCheckLineTerminator(next) && (this.match(80) || tokenIsIdentifier(this.state.type))) { + return this.tsParseAbstractDeclaration(node, decorators); + } + break; + case "module": + if (this.tsCheckLineTerminator(next)) { + if (this.match(133)) { + return this.tsParseAmbientExternalModuleDeclaration(node); + } else if (tokenIsIdentifier(this.state.type)) { + return this.tsParseModuleOrNamespaceDeclaration(node); + } + } + break; + case "namespace": + if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) { + return this.tsParseModuleOrNamespaceDeclaration(node); + } + break; + case "type": + if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) { + return this.tsParseTypeAliasDeclaration(node); + } + break; + } + } + tsCheckLineTerminator(next) { + if (next) { + if (this.hasFollowingLineBreak()) return false; + this.next(); + return true; + } + return !this.isLineTerminator(); + } + tsTryParseGenericAsyncArrowFunction(startLoc) { + if (!this.match(47)) return; + const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; + this.state.maybeInArrowParameters = true; + const res = this.tsTryParseAndCatch(() => { + const node = this.startNodeAt(startLoc); + node.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier); + super.parseFunctionParams(node); + node.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(); + this.expect(19); + return node; + }); + this.state.maybeInArrowParameters = oldMaybeInArrowParameters; + if (!res) return; + return super.parseArrowExpression(res, null, true); + } + tsParseTypeArgumentsInExpression() { + if (this.reScan_lt() !== 47) return; + return this.tsParseTypeArguments(); + } + tsParseTypeArguments() { + const node = this.startNode(); + node.params = this.tsInType(() => this.tsInNoContext(() => { + this.expect(47); + return this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this)); + })); + if (node.params.length === 0) { + this.raise(TSErrors.EmptyTypeArguments, { + at: node + }); + } else if (!this.state.inType && this.curContext() === types.brace) { + this.reScan_lt_gt(); + } + this.expect(48); + return this.finishNode(node, "TSTypeParameterInstantiation"); + } + tsIsDeclarationStart() { + return tokenIsTSDeclarationStart(this.state.type); + } + isExportDefaultSpecifier() { + if (this.tsIsDeclarationStart()) return false; + return super.isExportDefaultSpecifier(); + } + parseAssignableListItem(flags, decorators) { + const startLoc = this.state.startLoc; + const modified = {}; + this.tsParseModifiers({ + allowedModifiers: ["public", "private", "protected", "override", "readonly"] + }, modified); + const accessibility = modified.accessibility; + const override = modified.override; + const readonly = modified.readonly; + if (!(flags & 4) && (accessibility || readonly || override)) { + this.raise(TSErrors.UnexpectedParameterModifier, { + at: startLoc + }); + } + const left = this.parseMaybeDefault(); + this.parseAssignableListItemTypes(left, flags); + const elt = this.parseMaybeDefault(left.loc.start, left); + if (accessibility || readonly || override) { + const pp = this.startNodeAt(startLoc); + if (decorators.length) { + pp.decorators = decorators; + } + if (accessibility) pp.accessibility = accessibility; + if (readonly) pp.readonly = readonly; + if (override) pp.override = override; + if (elt.type !== "Identifier" && elt.type !== "AssignmentPattern") { + this.raise(TSErrors.UnsupportedParameterPropertyKind, { + at: pp + }); + } + pp.parameter = elt; + return this.finishNode(pp, "TSParameterProperty"); + } + if (decorators.length) { + left.decorators = decorators; + } + return elt; + } + isSimpleParameter(node) { + return node.type === "TSParameterProperty" && super.isSimpleParameter(node.parameter) || super.isSimpleParameter(node); + } + tsDisallowOptionalPattern(node) { + for (const param of node.params) { + if (param.type !== "Identifier" && param.optional && !this.state.isAmbientContext) { + this.raise(TSErrors.PatternIsOptional, { + at: param + }); + } + } + } + setArrowFunctionParameters(node, params, trailingCommaLoc) { + super.setArrowFunctionParameters(node, params, trailingCommaLoc); + this.tsDisallowOptionalPattern(node); + } + parseFunctionBodyAndFinish(node, type, isMethod = false) { + if (this.match(14)) { + node.returnType = this.tsParseTypeOrTypePredicateAnnotation(14); + } + const bodilessType = type === "FunctionDeclaration" ? "TSDeclareFunction" : type === "ClassMethod" || type === "ClassPrivateMethod" ? "TSDeclareMethod" : undefined; + if (bodilessType && !this.match(5) && this.isLineTerminator()) { + return this.finishNode(node, bodilessType); + } + if (bodilessType === "TSDeclareFunction" && this.state.isAmbientContext) { + this.raise(TSErrors.DeclareFunctionHasImplementation, { + at: node + }); + if (node.declare) { + return super.parseFunctionBodyAndFinish(node, bodilessType, isMethod); + } + } + this.tsDisallowOptionalPattern(node); + return super.parseFunctionBodyAndFinish(node, type, isMethod); + } + registerFunctionStatementId(node) { + if (!node.body && node.id) { + this.checkIdentifier(node.id, 1024); + } else { + super.registerFunctionStatementId(node); + } + } + tsCheckForInvalidTypeCasts(items) { + items.forEach(node => { + if ((node == null ? void 0 : node.type) === "TSTypeCastExpression") { + this.raise(TSErrors.UnexpectedTypeAnnotation, { + at: node.typeAnnotation + }); + } + }); + } + toReferencedList(exprList, isInParens) { + this.tsCheckForInvalidTypeCasts(exprList); + return exprList; + } + parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { + const node = super.parseArrayLike(close, canBePattern, isTuple, refExpressionErrors); + if (node.type === "ArrayExpression") { + this.tsCheckForInvalidTypeCasts(node.elements); + } + return node; + } + parseSubscript(base, startLoc, noCalls, state) { + if (!this.hasPrecedingLineBreak() && this.match(35)) { + this.state.canStartJSXElement = false; + this.next(); + const nonNullExpression = this.startNodeAt(startLoc); + nonNullExpression.expression = base; + return this.finishNode(nonNullExpression, "TSNonNullExpression"); + } + let isOptionalCall = false; + if (this.match(18) && this.lookaheadCharCode() === 60) { + if (noCalls) { + state.stop = true; + return base; + } + state.optionalChainMember = isOptionalCall = true; + this.next(); + } + if (this.match(47) || this.match(51)) { + let missingParenErrorLoc; + const result = this.tsTryParseAndCatch(() => { + if (!noCalls && this.atPossibleAsyncArrow(base)) { + const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc); + if (asyncArrowFn) { + return asyncArrowFn; + } + } + const typeArguments = this.tsParseTypeArgumentsInExpression(); + if (!typeArguments) return; + if (isOptionalCall && !this.match(10)) { + missingParenErrorLoc = this.state.curPosition(); + return; + } + if (tokenIsTemplate(this.state.type)) { + const result = super.parseTaggedTemplateExpression(base, startLoc, state); + result.typeParameters = typeArguments; + return result; + } + if (!noCalls && this.eat(10)) { + const node = this.startNodeAt(startLoc); + node.callee = base; + node.arguments = this.parseCallExpressionArguments(11, false); + this.tsCheckForInvalidTypeCasts(node.arguments); + node.typeParameters = typeArguments; + if (state.optionalChainMember) { + node.optional = isOptionalCall; + } + return this.finishCallExpression(node, state.optionalChainMember); + } + const tokenType = this.state.type; + if (tokenType === 48 || tokenType === 52 || tokenType !== 10 && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) { + return; + } + const node = this.startNodeAt(startLoc); + node.expression = base; + node.typeParameters = typeArguments; + return this.finishNode(node, "TSInstantiationExpression"); + }); + if (missingParenErrorLoc) { + this.unexpected(missingParenErrorLoc, 10); + } + if (result) { + if (result.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40)) { + this.raise(TSErrors.InvalidPropertyAccessAfterInstantiationExpression, { + at: this.state.startLoc + }); + } + return result; + } + } + return super.parseSubscript(base, startLoc, noCalls, state); + } + parseNewCallee(node) { + var _callee$extra; + super.parseNewCallee(node); + const { + callee + } = node; + if (callee.type === "TSInstantiationExpression" && !((_callee$extra = callee.extra) != null && _callee$extra.parenthesized)) { + node.typeParameters = callee.typeParameters; + node.callee = callee.expression; + } + } + parseExprOp(left, leftStartLoc, minPrec) { + let isSatisfies; + if (tokenOperatorPrecedence(58) > minPrec && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (isSatisfies = this.isContextual(120)))) { + const node = this.startNodeAt(leftStartLoc); + node.expression = left; + node.typeAnnotation = this.tsInType(() => { + this.next(); + if (this.match(75)) { + if (isSatisfies) { + this.raise(Errors.UnexpectedKeyword, { + at: this.state.startLoc, + keyword: "const" + }); + } + return this.tsParseTypeReference(); + } + return this.tsParseType(); + }); + this.finishNode(node, isSatisfies ? "TSSatisfiesExpression" : "TSAsExpression"); + this.reScan_lt_gt(); + return this.parseExprOp(node, leftStartLoc, minPrec); + } + return super.parseExprOp(left, leftStartLoc, minPrec); + } + checkReservedWord(word, startLoc, checkKeywords, isBinding) { + if (!this.state.isAmbientContext) { + super.checkReservedWord(word, startLoc, checkKeywords, isBinding); + } + } + checkImportReflection(node) { + super.checkImportReflection(node); + if (node.module && node.importKind !== "value") { + this.raise(TSErrors.ImportReflectionHasImportType, { + at: node.specifiers[0].loc.start + }); + } + } + checkDuplicateExports() {} + isPotentialImportPhase(isExport) { + if (super.isPotentialImportPhase(isExport)) return true; + if (this.isContextual(130)) { + const ch = this.lookaheadCharCode(); + return isExport ? ch === 123 || ch === 42 : ch !== 61; + } + return !isExport && this.isContextual(87); + } + applyImportPhase(node, isExport, phase, loc) { + super.applyImportPhase(node, isExport, phase, loc); + if (isExport) { + node.exportKind = phase === "type" ? "type" : "value"; + } else { + node.importKind = phase === "type" || phase === "typeof" ? phase : "value"; + } + } + parseImport(node) { + if (this.match(133)) { + node.importKind = "value"; + return super.parseImport(node); + } + let importNode; + if (tokenIsIdentifier(this.state.type) && this.lookaheadCharCode() === 61) { + node.importKind = "value"; + return this.tsParseImportEqualsDeclaration(node); + } else if (this.isContextual(130)) { + const maybeDefaultIdentifier = this.parseMaybeImportPhase(node, false); + if (this.lookaheadCharCode() === 61) { + return this.tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier); + } else { + importNode = super.parseImportSpecifiersAndAfter(node, maybeDefaultIdentifier); + } + } else { + importNode = super.parseImport(node); + } + if (importNode.importKind === "type" && importNode.specifiers.length > 1 && importNode.specifiers[0].type === "ImportDefaultSpecifier") { + this.raise(TSErrors.TypeImportCannotSpecifyDefaultAndNamed, { + at: importNode + }); + } + return importNode; + } + parseExport(node, decorators) { + if (this.match(83)) { + this.next(); + let maybeDefaultIdentifier = null; + if (this.isContextual(130) && this.isPotentialImportPhase(false)) { + maybeDefaultIdentifier = this.parseMaybeImportPhase(node, false); + } else { + node.importKind = "value"; + } + return this.tsParseImportEqualsDeclaration(node, maybeDefaultIdentifier, true); + } else if (this.eat(29)) { + const assign = node; + assign.expression = super.parseExpression(); + this.semicolon(); + this.sawUnambiguousESM = true; + return this.finishNode(assign, "TSExportAssignment"); + } else if (this.eatContextual(93)) { + const decl = node; + this.expectContextual(128); + decl.id = this.parseIdentifier(); + this.semicolon(); + return this.finishNode(decl, "TSNamespaceExportDeclaration"); + } else { + return super.parseExport(node, decorators); + } + } + isAbstractClass() { + return this.isContextual(124) && this.lookahead().type === 80; + } + parseExportDefaultExpression() { + if (this.isAbstractClass()) { + const cls = this.startNode(); + this.next(); + cls.abstract = true; + return this.parseClass(cls, true, true); + } + if (this.match(129)) { + const result = this.tsParseInterfaceDeclaration(this.startNode()); + if (result) return result; + } + return super.parseExportDefaultExpression(); + } + parseVarStatement(node, kind, allowMissingInitializer = false) { + const { + isAmbientContext + } = this.state; + const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext); + if (!isAmbientContext) return declaration; + for (const { + id, + init + } of declaration.declarations) { + if (!init) continue; + if (kind !== "const" || !!id.typeAnnotation) { + this.raise(TSErrors.InitializerNotAllowedInAmbientContext, { + at: init + }); + } else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) { + this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, { + at: init + }); + } + } + return declaration; + } + parseStatementContent(flags, decorators) { + if (this.match(75) && this.isLookaheadContextual("enum")) { + const node = this.startNode(); + this.expect(75); + return this.tsParseEnumDeclaration(node, { + const: true + }); + } + if (this.isContextual(126)) { + return this.tsParseEnumDeclaration(this.startNode()); + } + if (this.isContextual(129)) { + const result = this.tsParseInterfaceDeclaration(this.startNode()); + if (result) return result; + } + return super.parseStatementContent(flags, decorators); + } + parseAccessModifier() { + return this.tsParseModifier(["public", "protected", "private"]); + } + tsHasSomeModifiers(member, modifiers) { + return modifiers.some(modifier => { + if (tsIsAccessModifier(modifier)) { + return member.accessibility === modifier; + } + return !!member[modifier]; + }); + } + tsIsStartOfStaticBlocks() { + return this.isContextual(106) && this.lookaheadCharCode() === 123; + } + parseClassMember(classBody, member, state) { + const modifiers = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"]; + this.tsParseModifiers({ + allowedModifiers: modifiers, + disallowedModifiers: ["in", "out"], + stopOnStartOfClassStaticBlock: true, + errorTemplate: TSErrors.InvalidModifierOnTypeParameterPositions + }, member); + const callParseClassMemberWithIsStatic = () => { + if (this.tsIsStartOfStaticBlocks()) { + this.next(); + this.next(); + if (this.tsHasSomeModifiers(member, modifiers)) { + this.raise(TSErrors.StaticBlockCannotHaveModifier, { + at: this.state.curPosition() + }); + } + super.parseClassStaticBlock(classBody, member); + } else { + this.parseClassMemberWithIsStatic(classBody, member, state, !!member.static); + } + }; + if (member.declare) { + this.tsInAmbientContext(callParseClassMemberWithIsStatic); + } else { + callParseClassMemberWithIsStatic(); + } + } + parseClassMemberWithIsStatic(classBody, member, state, isStatic) { + const idx = this.tsTryParseIndexSignature(member); + if (idx) { + classBody.body.push(idx); + if (member.abstract) { + this.raise(TSErrors.IndexSignatureHasAbstract, { + at: member + }); + } + if (member.accessibility) { + this.raise(TSErrors.IndexSignatureHasAccessibility, { + at: member, + modifier: member.accessibility + }); + } + if (member.declare) { + this.raise(TSErrors.IndexSignatureHasDeclare, { + at: member + }); + } + if (member.override) { + this.raise(TSErrors.IndexSignatureHasOverride, { + at: member + }); + } + return; + } + if (!this.state.inAbstractClass && member.abstract) { + this.raise(TSErrors.NonAbstractClassHasAbstractMethod, { + at: member + }); + } + if (member.override) { + if (!state.hadSuperClass) { + this.raise(TSErrors.OverrideNotInSubClass, { + at: member + }); + } + } + super.parseClassMemberWithIsStatic(classBody, member, state, isStatic); + } + parsePostMemberNameModifiers(methodOrProp) { + const optional = this.eat(17); + if (optional) methodOrProp.optional = true; + if (methodOrProp.readonly && this.match(10)) { + this.raise(TSErrors.ClassMethodHasReadonly, { + at: methodOrProp + }); + } + if (methodOrProp.declare && this.match(10)) { + this.raise(TSErrors.ClassMethodHasDeclare, { + at: methodOrProp + }); + } + } + parseExpressionStatement(node, expr, decorators) { + const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr, decorators) : undefined; + return decl || super.parseExpressionStatement(node, expr, decorators); + } + shouldParseExportDeclaration() { + if (this.tsIsDeclarationStart()) return true; + return super.shouldParseExportDeclaration(); + } + parseConditional(expr, startLoc, refExpressionErrors) { + if (!this.state.maybeInArrowParameters || !this.match(17)) { + return super.parseConditional(expr, startLoc, refExpressionErrors); + } + const result = this.tryParse(() => super.parseConditional(expr, startLoc)); + if (!result.node) { + if (result.error) { + super.setOptionalParametersError(refExpressionErrors, result.error); + } + return expr; + } + if (result.error) this.state = result.failState; + return result.node; + } + parseParenItem(node, startLoc) { + node = super.parseParenItem(node, startLoc); + if (this.eat(17)) { + node.optional = true; + this.resetEndLocation(node); + } + if (this.match(14)) { + const typeCastNode = this.startNodeAt(startLoc); + typeCastNode.expression = node; + typeCastNode.typeAnnotation = this.tsParseTypeAnnotation(); + return this.finishNode(typeCastNode, "TSTypeCastExpression"); + } + return node; + } + parseExportDeclaration(node) { + if (!this.state.isAmbientContext && this.isContextual(125)) { + return this.tsInAmbientContext(() => this.parseExportDeclaration(node)); + } + const startLoc = this.state.startLoc; + const isDeclare = this.eatContextual(125); + if (isDeclare && (this.isContextual(125) || !this.shouldParseExportDeclaration())) { + throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare, { + at: this.state.startLoc + }); + } + const isIdentifier = tokenIsIdentifier(this.state.type); + const declaration = isIdentifier && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(node); + if (!declaration) return null; + if (declaration.type === "TSInterfaceDeclaration" || declaration.type === "TSTypeAliasDeclaration" || isDeclare) { + node.exportKind = "type"; + } + if (isDeclare) { + this.resetStartLocation(declaration, startLoc); + declaration.declare = true; + } + return declaration; + } + parseClassId(node, isStatement, optionalId, bindingType) { + if ((!isStatement || optionalId) && this.isContextual(113)) { + return; + } + super.parseClassId(node, isStatement, optionalId, node.declare ? 1024 : 8331); + const typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); + if (typeParameters) node.typeParameters = typeParameters; + } + parseClassPropertyAnnotation(node) { + if (!node.optional) { + if (this.eat(35)) { + node.definite = true; + } else if (this.eat(17)) { + node.optional = true; + } + } + const type = this.tsTryParseTypeAnnotation(); + if (type) node.typeAnnotation = type; + } + parseClassProperty(node) { + this.parseClassPropertyAnnotation(node); + if (this.state.isAmbientContext && !(node.readonly && !node.typeAnnotation) && this.match(29)) { + this.raise(TSErrors.DeclareClassFieldHasInitializer, { + at: this.state.startLoc + }); + } + if (node.abstract && this.match(29)) { + const { + key + } = node; + this.raise(TSErrors.AbstractPropertyHasInitializer, { + at: this.state.startLoc, + propertyName: key.type === "Identifier" && !node.computed ? key.name : `[${this.input.slice(key.start, key.end)}]` + }); + } + return super.parseClassProperty(node); + } + parseClassPrivateProperty(node) { + if (node.abstract) { + this.raise(TSErrors.PrivateElementHasAbstract, { + at: node + }); + } + if (node.accessibility) { + this.raise(TSErrors.PrivateElementHasAccessibility, { + at: node, + modifier: node.accessibility + }); + } + this.parseClassPropertyAnnotation(node); + return super.parseClassPrivateProperty(node); + } + parseClassAccessorProperty(node) { + this.parseClassPropertyAnnotation(node); + if (node.optional) { + this.raise(TSErrors.AccessorCannotBeOptional, { + at: node + }); + } + return super.parseClassAccessorProperty(node); + } + pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { + const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); + if (typeParameters && isConstructor) { + this.raise(TSErrors.ConstructorHasTypeParameters, { + at: typeParameters + }); + } + const { + declare = false, + kind + } = method; + if (declare && (kind === "get" || kind === "set")) { + this.raise(TSErrors.DeclareAccessor, { + at: method, + kind + }); + } + if (typeParameters) method.typeParameters = typeParameters; + super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper); + } + pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { + const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); + if (typeParameters) method.typeParameters = typeParameters; + super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync); + } + declareClassPrivateMethodInScope(node, kind) { + if (node.type === "TSDeclareMethod") return; + if (node.type === "MethodDefinition" && !node.value.body) return; + super.declareClassPrivateMethodInScope(node, kind); + } + parseClassSuper(node) { + super.parseClassSuper(node); + if (node.superClass && (this.match(47) || this.match(51))) { + node.superTypeParameters = this.tsParseTypeArgumentsInExpression(); + } + if (this.eatContextual(113)) { + node.implements = this.tsParseHeritageClause("implements"); + } + } + parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { + const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); + if (typeParameters) prop.typeParameters = typeParameters; + return super.parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors); + } + parseFunctionParams(node, isConstructor) { + const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier); + if (typeParameters) node.typeParameters = typeParameters; + super.parseFunctionParams(node, isConstructor); + } + parseVarId(decl, kind) { + super.parseVarId(decl, kind); + if (decl.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35)) { + decl.definite = true; + } + const type = this.tsTryParseTypeAnnotation(); + if (type) { + decl.id.typeAnnotation = type; + this.resetEndLocation(decl.id); + } + } + parseAsyncArrowFromCallExpression(node, call) { + if (this.match(14)) { + node.returnType = this.tsParseTypeAnnotation(); + } + return super.parseAsyncArrowFromCallExpression(node, call); + } + parseMaybeAssign(refExpressionErrors, afterLeftParse) { + var _jsx, _jsx2, _typeCast, _jsx3, _typeCast2; + let state; + let jsx; + let typeCast; + if (this.hasPlugin("jsx") && (this.match(142) || this.match(47))) { + state = this.state.clone(); + jsx = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); + if (!jsx.error) return jsx.node; + const { + context + } = this.state; + const currentContext = context[context.length - 1]; + if (currentContext === types.j_oTag || currentContext === types.j_expr) { + context.pop(); + } + } + if (!((_jsx = jsx) != null && _jsx.error) && !this.match(47)) { + return super.parseMaybeAssign(refExpressionErrors, afterLeftParse); + } + if (!state || state === this.state) state = this.state.clone(); + let typeParameters; + const arrow = this.tryParse(abort => { + var _expr$extra, _typeParameters; + typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier); + const expr = super.parseMaybeAssign(refExpressionErrors, afterLeftParse); + if (expr.type !== "ArrowFunctionExpression" || (_expr$extra = expr.extra) != null && _expr$extra.parenthesized) { + abort(); + } + if (((_typeParameters = typeParameters) == null ? void 0 : _typeParameters.params.length) !== 0) { + this.resetStartLocationFromNode(expr, typeParameters); + } + expr.typeParameters = typeParameters; + return expr; + }, state); + if (!arrow.error && !arrow.aborted) { + if (typeParameters) this.reportReservedArrowTypeParam(typeParameters); + return arrow.node; + } + if (!jsx) { + assert(!this.hasPlugin("jsx")); + typeCast = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state); + if (!typeCast.error) return typeCast.node; + } + if ((_jsx2 = jsx) != null && _jsx2.node) { + this.state = jsx.failState; + return jsx.node; + } + if (arrow.node) { + this.state = arrow.failState; + if (typeParameters) this.reportReservedArrowTypeParam(typeParameters); + return arrow.node; + } + if ((_typeCast = typeCast) != null && _typeCast.node) { + this.state = typeCast.failState; + return typeCast.node; + } + throw ((_jsx3 = jsx) == null ? void 0 : _jsx3.error) || arrow.error || ((_typeCast2 = typeCast) == null ? void 0 : _typeCast2.error); + } + reportReservedArrowTypeParam(node) { + var _node$extra; + if (node.params.length === 1 && !node.params[0].constraint && !((_node$extra = node.extra) != null && _node$extra.trailingComma) && this.getPluginOption("typescript", "disallowAmbiguousJSXLike")) { + this.raise(TSErrors.ReservedArrowTypeParam, { + at: node + }); + } + } + parseMaybeUnary(refExpressionErrors, sawUnary) { + if (!this.hasPlugin("jsx") && this.match(47)) { + return this.tsParseTypeAssertion(); + } + return super.parseMaybeUnary(refExpressionErrors, sawUnary); + } + parseArrow(node) { + if (this.match(14)) { + const result = this.tryParse(abort => { + const returnType = this.tsParseTypeOrTypePredicateAnnotation(14); + if (this.canInsertSemicolon() || !this.match(19)) abort(); + return returnType; + }); + if (result.aborted) return; + if (!result.thrown) { + if (result.error) this.state = result.failState; + node.returnType = result.node; + } + } + return super.parseArrow(node); + } + parseAssignableListItemTypes(param, flags) { + if (!(flags & 2)) return param; + if (this.eat(17)) { + param.optional = true; + } + const type = this.tsTryParseTypeAnnotation(); + if (type) param.typeAnnotation = type; + this.resetEndLocation(param); + return param; + } + isAssignable(node, isBinding) { + switch (node.type) { + case "TSTypeCastExpression": + return this.isAssignable(node.expression, isBinding); + case "TSParameterProperty": + return true; + default: + return super.isAssignable(node, isBinding); + } + } + toAssignable(node, isLHS = false) { + switch (node.type) { + case "ParenthesizedExpression": + this.toAssignableParenthesizedExpression(node, isLHS); + break; + case "TSAsExpression": + case "TSSatisfiesExpression": + case "TSNonNullExpression": + case "TSTypeAssertion": + if (isLHS) { + this.expressionScope.recordArrowParameterBindingError(TSErrors.UnexpectedTypeCastInParameter, { + at: node + }); + } else { + this.raise(TSErrors.UnexpectedTypeCastInParameter, { + at: node + }); + } + this.toAssignable(node.expression, isLHS); + break; + case "AssignmentExpression": + if (!isLHS && node.left.type === "TSTypeCastExpression") { + node.left = this.typeCastToParameter(node.left); + } + default: + super.toAssignable(node, isLHS); + } + } + toAssignableParenthesizedExpression(node, isLHS) { + switch (node.expression.type) { + case "TSAsExpression": + case "TSSatisfiesExpression": + case "TSNonNullExpression": + case "TSTypeAssertion": + case "ParenthesizedExpression": + this.toAssignable(node.expression, isLHS); + break; + default: + super.toAssignable(node, isLHS); + } + } + checkToRestConversion(node, allowPattern) { + switch (node.type) { + case "TSAsExpression": + case "TSSatisfiesExpression": + case "TSTypeAssertion": + case "TSNonNullExpression": + this.checkToRestConversion(node.expression, false); + break; + default: + super.checkToRestConversion(node, allowPattern); + } + } + isValidLVal(type, isUnparenthesizedInAssign, binding) { + return getOwn({ + TSTypeCastExpression: true, + TSParameterProperty: "parameter", + TSNonNullExpression: "expression", + TSAsExpression: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true], + TSSatisfiesExpression: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true], + TSTypeAssertion: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true] + }, type) || super.isValidLVal(type, isUnparenthesizedInAssign, binding); + } + parseBindingAtom() { + if (this.state.type === 78) { + return this.parseIdentifier(true); + } + return super.parseBindingAtom(); + } + parseMaybeDecoratorArguments(expr) { + if (this.match(47) || this.match(51)) { + const typeArguments = this.tsParseTypeArgumentsInExpression(); + if (this.match(10)) { + const call = super.parseMaybeDecoratorArguments(expr); + call.typeParameters = typeArguments; + return call; + } + this.unexpected(null, 10); + } + return super.parseMaybeDecoratorArguments(expr); + } + checkCommaAfterRest(close) { + if (this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === close) { + this.next(); + return false; + } + return super.checkCommaAfterRest(close); + } + isClassMethod() { + return this.match(47) || super.isClassMethod(); + } + isClassProperty() { + return this.match(35) || this.match(14) || super.isClassProperty(); + } + parseMaybeDefault(startLoc, left) { + const node = super.parseMaybeDefault(startLoc, left); + if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) { + this.raise(TSErrors.TypeAnnotationAfterAssign, { + at: node.typeAnnotation + }); + } + return node; + } + getTokenFromCode(code) { + if (this.state.inType) { + if (code === 62) { + this.finishOp(48, 1); + return; + } + if (code === 60) { + this.finishOp(47, 1); + return; + } + } + super.getTokenFromCode(code); + } + reScan_lt_gt() { + const { + type + } = this.state; + if (type === 47) { + this.state.pos -= 1; + this.readToken_lt(); + } else if (type === 48) { + this.state.pos -= 1; + this.readToken_gt(); + } + } + reScan_lt() { + const { + type + } = this.state; + if (type === 51) { + this.state.pos -= 2; + this.finishOp(47, 1); + return 47; + } + return type; + } + toAssignableList(exprList, trailingCommaLoc, isLHS) { + for (let i = 0; i < exprList.length; i++) { + const expr = exprList[i]; + if ((expr == null ? void 0 : expr.type) === "TSTypeCastExpression") { + exprList[i] = this.typeCastToParameter(expr); + } + } + super.toAssignableList(exprList, trailingCommaLoc, isLHS); + } + typeCastToParameter(node) { + node.expression.typeAnnotation = node.typeAnnotation; + this.resetEndLocation(node.expression, node.typeAnnotation.loc.end); + return node.expression; + } + shouldParseArrow(params) { + if (this.match(14)) { + return params.every(expr => this.isAssignable(expr, true)); + } + return super.shouldParseArrow(params); + } + shouldParseAsyncArrow() { + return this.match(14) || super.shouldParseAsyncArrow(); + } + canHaveLeadingDecorator() { + return super.canHaveLeadingDecorator() || this.isAbstractClass(); + } + jsxParseOpeningElementAfterName(node) { + if (this.match(47) || this.match(51)) { + const typeArguments = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression()); + if (typeArguments) node.typeParameters = typeArguments; + } + return super.jsxParseOpeningElementAfterName(node); + } + getGetterSetterExpectedParamCount(method) { + const baseCount = super.getGetterSetterExpectedParamCount(method); + const params = this.getObjectOrClassMethodParams(method); + const firstParam = params[0]; + const hasContextParam = firstParam && this.isThisParam(firstParam); + return hasContextParam ? baseCount + 1 : baseCount; + } + parseCatchClauseParam() { + const param = super.parseCatchClauseParam(); + const type = this.tsTryParseTypeAnnotation(); + if (type) { + param.typeAnnotation = type; + this.resetEndLocation(param); + } + return param; + } + tsInAmbientContext(cb) { + const oldIsAmbientContext = this.state.isAmbientContext; + this.state.isAmbientContext = true; + try { + return cb(); + } finally { + this.state.isAmbientContext = oldIsAmbientContext; + } + } + parseClass(node, isStatement, optionalId) { + const oldInAbstractClass = this.state.inAbstractClass; + this.state.inAbstractClass = !!node.abstract; + try { + return super.parseClass(node, isStatement, optionalId); + } finally { + this.state.inAbstractClass = oldInAbstractClass; + } + } + tsParseAbstractDeclaration(node, decorators) { + if (this.match(80)) { + node.abstract = true; + return this.maybeTakeDecorators(decorators, this.parseClass(node, true, false)); + } else if (this.isContextual(129)) { + if (!this.hasFollowingLineBreak()) { + node.abstract = true; + this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifer, { + at: node + }); + return this.tsParseInterfaceDeclaration(node); + } + } else { + this.unexpected(null, 80); + } + } + parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) { + const method = super.parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope); + if (method.abstract) { + const hasBody = this.hasPlugin("estree") ? !!method.value.body : !!method.body; + if (hasBody) { + const { + key + } = method; + this.raise(TSErrors.AbstractMethodHasImplementation, { + at: method, + methodName: key.type === "Identifier" && !method.computed ? key.name : `[${this.input.slice(key.start, key.end)}]` + }); + } + } + return method; + } + tsParseTypeParameterName() { + const typeName = this.parseIdentifier(); + return typeName.name; + } + shouldParseAsAmbientContext() { + return !!this.getPluginOption("typescript", "dts"); + } + parse() { + if (this.shouldParseAsAmbientContext()) { + this.state.isAmbientContext = true; + } + return super.parse(); + } + getExpression() { + if (this.shouldParseAsAmbientContext()) { + this.state.isAmbientContext = true; + } + return super.getExpression(); + } + parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly) { + if (!isString && isMaybeTypeOnly) { + this.parseTypeOnlyImportExportSpecifier(node, false, isInTypeExport); + return this.finishNode(node, "ExportSpecifier"); + } + node.exportKind = "value"; + return super.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly); + } + parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { + if (!importedIsString && isMaybeTypeOnly) { + this.parseTypeOnlyImportExportSpecifier(specifier, true, isInTypeOnlyImport); + return this.finishNode(specifier, "ImportSpecifier"); + } + specifier.importKind = "value"; + return super.parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, isInTypeOnlyImport ? 4098 : 4096); + } + parseTypeOnlyImportExportSpecifier(node, isImport, isInTypeOnlyImportExport) { + const leftOfAsKey = isImport ? "imported" : "local"; + const rightOfAsKey = isImport ? "local" : "exported"; + let leftOfAs = node[leftOfAsKey]; + let rightOfAs; + let hasTypeSpecifier = false; + let canParseAsKeyword = true; + const loc = leftOfAs.loc.start; + if (this.isContextual(93)) { + const firstAs = this.parseIdentifier(); + if (this.isContextual(93)) { + const secondAs = this.parseIdentifier(); + if (tokenIsKeywordOrIdentifier(this.state.type)) { + hasTypeSpecifier = true; + leftOfAs = firstAs; + rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName(); + canParseAsKeyword = false; + } else { + rightOfAs = secondAs; + canParseAsKeyword = false; + } + } else if (tokenIsKeywordOrIdentifier(this.state.type)) { + canParseAsKeyword = false; + rightOfAs = isImport ? this.parseIdentifier() : this.parseModuleExportName(); + } else { + hasTypeSpecifier = true; + leftOfAs = firstAs; + } + } else if (tokenIsKeywordOrIdentifier(this.state.type)) { + hasTypeSpecifier = true; + if (isImport) { + leftOfAs = this.parseIdentifier(true); + if (!this.isContextual(93)) { + this.checkReservedWord(leftOfAs.name, leftOfAs.loc.start, true, true); + } + } else { + leftOfAs = this.parseModuleExportName(); + } + } + if (hasTypeSpecifier && isInTypeOnlyImportExport) { + this.raise(isImport ? TSErrors.TypeModifierIsUsedInTypeImports : TSErrors.TypeModifierIsUsedInTypeExports, { + at: loc + }); + } + node[leftOfAsKey] = leftOfAs; + node[rightOfAsKey] = rightOfAs; + const kindKey = isImport ? "importKind" : "exportKind"; + node[kindKey] = hasTypeSpecifier ? "type" : "value"; + if (canParseAsKeyword && this.eatContextual(93)) { + node[rightOfAsKey] = isImport ? this.parseIdentifier() : this.parseModuleExportName(); + } + if (!node[rightOfAsKey]) { + node[rightOfAsKey] = cloneIdentifier(node[leftOfAsKey]); + } + if (isImport) { + this.checkIdentifier(node[rightOfAsKey], hasTypeSpecifier ? 4098 : 4096); + } + } +}; +function isPossiblyLiteralEnum(expression) { + if (expression.type !== "MemberExpression") return false; + const { + computed, + property + } = expression; + if (computed && property.type !== "StringLiteral" && (property.type !== "TemplateLiteral" || property.expressions.length > 0)) { + return false; + } + return isUncomputedMemberExpressionChain(expression.object); } -function tsExportAssignment(expression) { - return (0, _validateNode.default)({ - type: "TSExportAssignment", - expression - }); +function isValidAmbientConstInitializer(expression, estree) { + var _expression$extra; + const { + type + } = expression; + if ((_expression$extra = expression.extra) != null && _expression$extra.parenthesized) { + return false; + } + if (estree) { + if (type === "Literal") { + const { + value + } = expression; + if (typeof value === "string" || typeof value === "boolean") { + return true; + } + } + } else { + if (type === "StringLiteral" || type === "BooleanLiteral") { + return true; + } + } + if (isNumber(expression, estree) || isNegativeNumber(expression, estree)) { + return true; + } + if (type === "TemplateLiteral" && expression.expressions.length === 0) { + return true; + } + if (isPossiblyLiteralEnum(expression)) { + return true; + } + return false; } -function tsNamespaceExportDeclaration(id) { - return (0, _validateNode.default)({ - type: "TSNamespaceExportDeclaration", - id - }); +function isNumber(expression, estree) { + if (estree) { + return expression.type === "Literal" && (typeof expression.value === "number" || "bigint" in expression); + } + return expression.type === "NumericLiteral" || expression.type === "BigIntLiteral"; } -function tsTypeAnnotation(typeAnnotation) { - return (0, _validateNode.default)({ - type: "TSTypeAnnotation", - typeAnnotation - }); +function isNegativeNumber(expression, estree) { + if (expression.type === "UnaryExpression") { + const { + operator, + argument + } = expression; + if (operator === "-" && isNumber(argument, estree)) { + return true; + } + } + return false; } -function tsTypeParameterInstantiation(params) { - return (0, _validateNode.default)({ - type: "TSTypeParameterInstantiation", - params - }); +function isUncomputedMemberExpressionChain(expression) { + if (expression.type === "Identifier") return true; + if (expression.type !== "MemberExpression" || expression.computed) { + return false; + } + return isUncomputedMemberExpressionChain(expression.object); } -function tsTypeParameterDeclaration(params) { - return (0, _validateNode.default)({ - type: "TSTypeParameterDeclaration", - params +const PlaceholderErrors = ParseErrorEnum`placeholders`({ + ClassNameIsRequired: "A class name is required.", + UnexpectedSpace: "Unexpected space in placeholder." +}); +var placeholders = superClass => class PlaceholdersParserMixin extends superClass { + parsePlaceholder(expectedNode) { + if (this.match(144)) { + const node = this.startNode(); + this.next(); + this.assertNoSpace(); + node.name = super.parseIdentifier(true); + this.assertNoSpace(); + this.expect(144); + return this.finishPlaceholder(node, expectedNode); + } + } + finishPlaceholder(node, expectedNode) { + const isFinished = !!(node.expectedNode && node.type === "Placeholder"); + node.expectedNode = expectedNode; + return isFinished ? node : this.finishNode(node, "Placeholder"); + } + getTokenFromCode(code) { + if (code === 37 && this.input.charCodeAt(this.state.pos + 1) === 37) { + this.finishOp(144, 2); + } else { + super.getTokenFromCode(code); + } + } + parseExprAtom(refExpressionErrors) { + return this.parsePlaceholder("Expression") || super.parseExprAtom(refExpressionErrors); + } + parseIdentifier(liberal) { + return this.parsePlaceholder("Identifier") || super.parseIdentifier(liberal); + } + checkReservedWord(word, startLoc, checkKeywords, isBinding) { + if (word !== undefined) { + super.checkReservedWord(word, startLoc, checkKeywords, isBinding); + } + } + parseBindingAtom() { + return this.parsePlaceholder("Pattern") || super.parseBindingAtom(); + } + isValidLVal(type, isParenthesized, binding) { + return type === "Placeholder" || super.isValidLVal(type, isParenthesized, binding); + } + toAssignable(node, isLHS) { + if (node && node.type === "Placeholder" && node.expectedNode === "Expression") { + node.expectedNode = "Pattern"; + } else { + super.toAssignable(node, isLHS); + } + } + chStartsBindingIdentifier(ch, pos) { + if (super.chStartsBindingIdentifier(ch, pos)) { + return true; + } + const nextToken = this.lookahead(); + if (nextToken.type === 144) { + return true; + } + return false; + } + verifyBreakContinue(node, isBreak) { + if (node.label && node.label.type === "Placeholder") return; + super.verifyBreakContinue(node, isBreak); + } + parseExpressionStatement(node, expr) { + var _expr$extra; + if (expr.type !== "Placeholder" || (_expr$extra = expr.extra) != null && _expr$extra.parenthesized) { + return super.parseExpressionStatement(node, expr); + } + if (this.match(14)) { + const stmt = node; + stmt.label = this.finishPlaceholder(expr, "Identifier"); + this.next(); + stmt.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(); + return this.finishNode(stmt, "LabeledStatement"); + } + this.semicolon(); + node.name = expr.name; + return this.finishPlaceholder(node, "Statement"); + } + parseBlock(allowDirectives, createNewLexicalScope, afterBlockParse) { + return this.parsePlaceholder("BlockStatement") || super.parseBlock(allowDirectives, createNewLexicalScope, afterBlockParse); + } + parseFunctionId(requireId) { + return this.parsePlaceholder("Identifier") || super.parseFunctionId(requireId); + } + parseClass(node, isStatement, optionalId) { + const type = isStatement ? "ClassDeclaration" : "ClassExpression"; + this.next(); + const oldStrict = this.state.strict; + const placeholder = this.parsePlaceholder("Identifier"); + if (placeholder) { + if (this.match(81) || this.match(144) || this.match(5)) { + node.id = placeholder; + } else if (optionalId || !isStatement) { + node.id = null; + node.body = this.finishPlaceholder(placeholder, "ClassBody"); + return this.finishNode(node, type); + } else { + throw this.raise(PlaceholderErrors.ClassNameIsRequired, { + at: this.state.startLoc + }); + } + } else { + this.parseClassId(node, isStatement, optionalId); + } + super.parseClassSuper(node); + node.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!node.superClass, oldStrict); + return this.finishNode(node, type); + } + parseExport(node, decorators) { + const placeholder = this.parsePlaceholder("Identifier"); + if (!placeholder) return super.parseExport(node, decorators); + if (!this.isContextual(98) && !this.match(12)) { + node.specifiers = []; + node.source = null; + node.declaration = this.finishPlaceholder(placeholder, "Declaration"); + return this.finishNode(node, "ExportNamedDeclaration"); + } + this.expectPlugin("exportDefaultFrom"); + const specifier = this.startNode(); + specifier.exported = placeholder; + node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]; + return super.parseExport(node, decorators); + } + isExportDefaultSpecifier() { + if (this.match(65)) { + const next = this.nextTokenStart(); + if (this.isUnparsedContextual(next, "from")) { + if (this.input.startsWith(tokenLabelName(144), this.nextTokenStartSince(next + 4))) { + return true; + } + } + } + return super.isExportDefaultSpecifier(); + } + maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier) { + var _specifiers; + if ((_specifiers = node.specifiers) != null && _specifiers.length) { + return true; + } + return super.maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier); + } + checkExport(node) { + const { + specifiers + } = node; + if (specifiers != null && specifiers.length) { + node.specifiers = specifiers.filter(node => node.exported.type === "Placeholder"); + } + super.checkExport(node); + node.specifiers = specifiers; + } + parseImport(node) { + const placeholder = this.parsePlaceholder("Identifier"); + if (!placeholder) return super.parseImport(node); + node.specifiers = []; + if (!this.isContextual(98) && !this.match(12)) { + node.source = this.finishPlaceholder(placeholder, "StringLiteral"); + this.semicolon(); + return this.finishNode(node, "ImportDeclaration"); + } + const specifier = this.startNodeAtNode(placeholder); + specifier.local = placeholder; + node.specifiers.push(this.finishNode(specifier, "ImportDefaultSpecifier")); + if (this.eat(12)) { + const hasStarImport = this.maybeParseStarImportSpecifier(node); + if (!hasStarImport) this.parseNamedImportSpecifiers(node); + } + this.expectContextual(98); + node.source = this.parseImportSource(); + this.semicolon(); + return this.finishNode(node, "ImportDeclaration"); + } + parseImportSource() { + return this.parsePlaceholder("StringLiteral") || super.parseImportSource(); + } + assertNoSpace() { + if (this.state.start > this.state.lastTokEndLoc.index) { + this.raise(PlaceholderErrors.UnexpectedSpace, { + at: this.state.lastTokEndLoc + }); + } + } +}; +var v8intrinsic = superClass => class V8IntrinsicMixin extends superClass { + parseV8Intrinsic() { + if (this.match(54)) { + const v8IntrinsicStartLoc = this.state.startLoc; + const node = this.startNode(); + this.next(); + if (tokenIsIdentifier(this.state.type)) { + const name = this.parseIdentifierName(); + const identifier = this.createIdentifier(node, name); + identifier.type = "V8IntrinsicIdentifier"; + if (this.match(10)) { + return identifier; + } + } + this.unexpected(v8IntrinsicStartLoc); + } + } + parseExprAtom(refExpressionErrors) { + return this.parseV8Intrinsic() || super.parseExprAtom(refExpressionErrors); + } +}; +function hasPlugin(plugins, expectedConfig) { + const [expectedName, expectedOptions] = typeof expectedConfig === "string" ? [expectedConfig, {}] : expectedConfig; + const expectedKeys = Object.keys(expectedOptions); + const expectedOptionsIsEmpty = expectedKeys.length === 0; + return plugins.some(p => { + if (typeof p === "string") { + return expectedOptionsIsEmpty && p === expectedName; + } else { + const [pluginName, pluginOptions] = p; + if (pluginName !== expectedName) { + return false; + } + for (const key of expectedKeys) { + if (pluginOptions[key] !== expectedOptions[key]) { + return false; + } + } + return true; + } }); } -function tsTypeParameter(constraint = null, _default = null, name) { - return (0, _validateNode.default)({ - type: "TSTypeParameter", - constraint, - default: _default, - name +function getPluginOption(plugins, name, option) { + const plugin = plugins.find(plugin => { + if (Array.isArray(plugin)) { + return plugin[0] === name; + } else { + return plugin === name; + } }); + if (plugin && Array.isArray(plugin) && plugin.length > 1) { + return plugin[1][option]; + } + return null; } -function NumberLiteral(value) { - (0, _deprecationWarning.default)("NumberLiteral", "NumericLiteral", "The node type "); - return numericLiteral(value); +const PIPELINE_PROPOSALS = ["minimal", "fsharp", "hack", "smart"]; +const TOPIC_TOKENS = ["^^", "@@", "^", "%", "#"]; +const RECORD_AND_TUPLE_SYNTAX_TYPES = ["hash", "bar"]; +function validatePlugins(plugins) { + if (hasPlugin(plugins, "decorators")) { + if (hasPlugin(plugins, "decorators-legacy")) { + throw new Error("Cannot use the decorators and decorators-legacy plugin together"); + } + const decoratorsBeforeExport = getPluginOption(plugins, "decorators", "decoratorsBeforeExport"); + if (decoratorsBeforeExport != null && typeof decoratorsBeforeExport !== "boolean") { + throw new Error("'decoratorsBeforeExport' must be a boolean, if specified."); + } + const allowCallParenthesized = getPluginOption(plugins, "decorators", "allowCallParenthesized"); + if (allowCallParenthesized != null && typeof allowCallParenthesized !== "boolean") { + throw new Error("'allowCallParenthesized' must be a boolean."); + } + } + if (hasPlugin(plugins, "flow") && hasPlugin(plugins, "typescript")) { + throw new Error("Cannot combine flow and typescript plugins."); + } + if (hasPlugin(plugins, "placeholders") && hasPlugin(plugins, "v8intrinsic")) { + throw new Error("Cannot combine placeholders and v8intrinsic plugins."); + } + if (hasPlugin(plugins, "pipelineOperator")) { + const proposal = getPluginOption(plugins, "pipelineOperator", "proposal"); + if (!PIPELINE_PROPOSALS.includes(proposal)) { + const proposalList = PIPELINE_PROPOSALS.map(p => `"${p}"`).join(", "); + throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`); + } + const tupleSyntaxIsHash = hasPlugin(plugins, ["recordAndTuple", { + syntaxType: "hash" + }]); + if (proposal === "hack") { + if (hasPlugin(plugins, "placeholders")) { + throw new Error("Cannot combine placeholders plugin and Hack-style pipes."); + } + if (hasPlugin(plugins, "v8intrinsic")) { + throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes."); + } + const topicToken = getPluginOption(plugins, "pipelineOperator", "topicToken"); + if (!TOPIC_TOKENS.includes(topicToken)) { + const tokenList = TOPIC_TOKENS.map(t => `"${t}"`).join(", "); + throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`); + } + if (topicToken === "#" && tupleSyntaxIsHash) { + throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.'); + } + } else if (proposal === "smart" && tupleSyntaxIsHash) { + throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.'); + } + } + if (hasPlugin(plugins, "moduleAttributes")) { + { + if (hasPlugin(plugins, "importAssertions") || hasPlugin(plugins, "importAttributes")) { + throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins."); + } + const moduleAttributesVersionPluginOption = getPluginOption(plugins, "moduleAttributes", "version"); + if (moduleAttributesVersionPluginOption !== "may-2020") { + throw new Error("The 'moduleAttributes' plugin requires a 'version' option," + " representing the last proposal update. Currently, the" + " only supported value is 'may-2020'."); + } + } + } + if (hasPlugin(plugins, "importAssertions") && hasPlugin(plugins, "importAttributes")) { + throw new Error("Cannot combine importAssertions and importAttributes plugins."); + } + if (hasPlugin(plugins, "recordAndTuple") && getPluginOption(plugins, "recordAndTuple", "syntaxType") != null && !RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins, "recordAndTuple", "syntaxType"))) { + throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map(p => `'${p}'`).join(", ")); + } + if (hasPlugin(plugins, "asyncDoExpressions") && !hasPlugin(plugins, "doExpressions")) { + const error = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins."); + error.missingPlugins = "doExpressions"; + throw error; + } + if (hasPlugin(plugins, "optionalChainingAssign") && getPluginOption(plugins, "optionalChainingAssign", "version") !== "2023-07") { + throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option," + " representing the last proposal update. Currently, the" + " only supported value is '2023-07'."); + } } -function RegexLiteral(pattern, flags = "") { - (0, _deprecationWarning.default)("RegexLiteral", "RegExpLiteral", "The node type "); - return regExpLiteral(pattern, flags); +const mixinPlugins = { + estree, + jsx, + flow, + typescript, + v8intrinsic, + placeholders +}; +const mixinPluginNames = Object.keys(mixinPlugins); +const defaultOptions = { + sourceType: "script", + sourceFilename: undefined, + startColumn: 0, + startLine: 1, + allowAwaitOutsideFunction: false, + allowReturnOutsideFunction: false, + allowNewTargetOutsideFunction: false, + allowImportExportEverywhere: false, + allowSuperOutsideMethod: false, + allowUndeclaredExports: false, + plugins: [], + strictMode: null, + ranges: false, + tokens: false, + createImportExpressions: false, + createParenthesizedExpressions: false, + errorRecovery: false, + attachComment: true, + annexB: true +}; +function getOptions(opts) { + if (opts == null) { + return Object.assign({}, defaultOptions); + } + if (opts.annexB != null && opts.annexB !== false) { + throw new Error("The `annexB` option can only be set to `false`."); + } + const options = {}; + for (const key of Object.keys(defaultOptions)) { + var _opts$key; + options[key] = (_opts$key = opts[key]) != null ? _opts$key : defaultOptions[key]; + } + return options; } -function RestProperty(argument) { - (0, _deprecationWarning.default)("RestProperty", "RestElement", "The node type "); - return restElement(argument); +class ExpressionParser extends LValParser { + checkProto(prop, isRecord, protoRef, refExpressionErrors) { + if (prop.type === "SpreadElement" || this.isObjectMethod(prop) || prop.computed || prop.shorthand) { + return; + } + const key = prop.key; + const name = key.type === "Identifier" ? key.name : key.value; + if (name === "__proto__") { + if (isRecord) { + this.raise(Errors.RecordNoProto, { + at: key + }); + return; + } + if (protoRef.used) { + if (refExpressionErrors) { + if (refExpressionErrors.doubleProtoLoc === null) { + refExpressionErrors.doubleProtoLoc = key.loc.start; + } + } else { + this.raise(Errors.DuplicateProto, { + at: key + }); + } + } + protoRef.used = true; + } + } + shouldExitDescending(expr, potentialArrowAt) { + return expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt; + } + getExpression() { + this.enterInitialScopes(); + this.nextToken(); + const expr = this.parseExpression(); + if (!this.match(139)) { + this.unexpected(); + } + this.finalizeRemainingComments(); + expr.comments = this.state.comments; + expr.errors = this.state.errors; + if (this.options.tokens) { + expr.tokens = this.tokens; + } + return expr; + } + parseExpression(disallowIn, refExpressionErrors) { + if (disallowIn) { + return this.disallowInAnd(() => this.parseExpressionBase(refExpressionErrors)); + } + return this.allowInAnd(() => this.parseExpressionBase(refExpressionErrors)); + } + parseExpressionBase(refExpressionErrors) { + const startLoc = this.state.startLoc; + const expr = this.parseMaybeAssign(refExpressionErrors); + if (this.match(12)) { + const node = this.startNodeAt(startLoc); + node.expressions = [expr]; + while (this.eat(12)) { + node.expressions.push(this.parseMaybeAssign(refExpressionErrors)); + } + this.toReferencedList(node.expressions); + return this.finishNode(node, "SequenceExpression"); + } + return expr; + } + parseMaybeAssignDisallowIn(refExpressionErrors, afterLeftParse) { + return this.disallowInAnd(() => this.parseMaybeAssign(refExpressionErrors, afterLeftParse)); + } + parseMaybeAssignAllowIn(refExpressionErrors, afterLeftParse) { + return this.allowInAnd(() => this.parseMaybeAssign(refExpressionErrors, afterLeftParse)); + } + setOptionalParametersError(refExpressionErrors, resultError) { + var _resultError$loc; + refExpressionErrors.optionalParametersLoc = (_resultError$loc = resultError == null ? void 0 : resultError.loc) != null ? _resultError$loc : this.state.startLoc; + } + parseMaybeAssign(refExpressionErrors, afterLeftParse) { + const startLoc = this.state.startLoc; + if (this.isContextual(108)) { + if (this.prodParam.hasYield) { + let left = this.parseYield(); + if (afterLeftParse) { + left = afterLeftParse.call(this, left, startLoc); + } + return left; + } + } + let ownExpressionErrors; + if (refExpressionErrors) { + ownExpressionErrors = false; + } else { + refExpressionErrors = new ExpressionErrors(); + ownExpressionErrors = true; + } + const { + type + } = this.state; + if (type === 10 || tokenIsIdentifier(type)) { + this.state.potentialArrowAt = this.state.start; + } + let left = this.parseMaybeConditional(refExpressionErrors); + if (afterLeftParse) { + left = afterLeftParse.call(this, left, startLoc); + } + if (tokenIsAssignment(this.state.type)) { + const node = this.startNodeAt(startLoc); + const operator = this.state.value; + node.operator = operator; + if (this.match(29)) { + this.toAssignable(left, true); + node.left = left; + const startIndex = startLoc.index; + if (refExpressionErrors.doubleProtoLoc != null && refExpressionErrors.doubleProtoLoc.index >= startIndex) { + refExpressionErrors.doubleProtoLoc = null; + } + if (refExpressionErrors.shorthandAssignLoc != null && refExpressionErrors.shorthandAssignLoc.index >= startIndex) { + refExpressionErrors.shorthandAssignLoc = null; + } + if (refExpressionErrors.privateKeyLoc != null && refExpressionErrors.privateKeyLoc.index >= startIndex) { + this.checkDestructuringPrivate(refExpressionErrors); + refExpressionErrors.privateKeyLoc = null; + } + } else { + node.left = left; + } + this.next(); + node.right = this.parseMaybeAssign(); + this.checkLVal(left, { + in: this.finishNode(node, "AssignmentExpression") + }); + return node; + } else if (ownExpressionErrors) { + this.checkExpressionErrors(refExpressionErrors, true); + } + return left; + } + parseMaybeConditional(refExpressionErrors) { + const startLoc = this.state.startLoc; + const potentialArrowAt = this.state.potentialArrowAt; + const expr = this.parseExprOps(refExpressionErrors); + if (this.shouldExitDescending(expr, potentialArrowAt)) { + return expr; + } + return this.parseConditional(expr, startLoc, refExpressionErrors); + } + parseConditional(expr, startLoc, refExpressionErrors) { + if (this.eat(17)) { + const node = this.startNodeAt(startLoc); + node.test = expr; + node.consequent = this.parseMaybeAssignAllowIn(); + this.expect(14); + node.alternate = this.parseMaybeAssign(); + return this.finishNode(node, "ConditionalExpression"); + } + return expr; + } + parseMaybeUnaryOrPrivate(refExpressionErrors) { + return this.match(138) ? this.parsePrivateName() : this.parseMaybeUnary(refExpressionErrors); + } + parseExprOps(refExpressionErrors) { + const startLoc = this.state.startLoc; + const potentialArrowAt = this.state.potentialArrowAt; + const expr = this.parseMaybeUnaryOrPrivate(refExpressionErrors); + if (this.shouldExitDescending(expr, potentialArrowAt)) { + return expr; + } + return this.parseExprOp(expr, startLoc, -1); + } + parseExprOp(left, leftStartLoc, minPrec) { + if (this.isPrivateName(left)) { + const value = this.getPrivateNameSV(left); + if (minPrec >= tokenOperatorPrecedence(58) || !this.prodParam.hasIn || !this.match(58)) { + this.raise(Errors.PrivateInExpectedIn, { + at: left, + identifierName: value + }); + } + this.classScope.usePrivateName(value, left.loc.start); + } + const op = this.state.type; + if (tokenIsOperator(op) && (this.prodParam.hasIn || !this.match(58))) { + let prec = tokenOperatorPrecedence(op); + if (prec > minPrec) { + if (op === 39) { + this.expectPlugin("pipelineOperator"); + if (this.state.inFSharpPipelineDirectBody) { + return left; + } + this.checkPipelineAtInfixOperator(left, leftStartLoc); + } + const node = this.startNodeAt(leftStartLoc); + node.left = left; + node.operator = this.state.value; + const logical = op === 41 || op === 42; + const coalesce = op === 40; + if (coalesce) { + prec = tokenOperatorPrecedence(42); + } + this.next(); + if (op === 39 && this.hasPlugin(["pipelineOperator", { + proposal: "minimal" + }])) { + if (this.state.type === 96 && this.prodParam.hasAwait) { + throw this.raise(Errors.UnexpectedAwaitAfterPipelineBody, { + at: this.state.startLoc + }); + } + } + node.right = this.parseExprOpRightExpr(op, prec); + const finishedNode = this.finishNode(node, logical || coalesce ? "LogicalExpression" : "BinaryExpression"); + const nextOp = this.state.type; + if (coalesce && (nextOp === 41 || nextOp === 42) || logical && nextOp === 40) { + throw this.raise(Errors.MixingCoalesceWithLogical, { + at: this.state.startLoc + }); + } + return this.parseExprOp(finishedNode, leftStartLoc, minPrec); + } + } + return left; + } + parseExprOpRightExpr(op, prec) { + const startLoc = this.state.startLoc; + switch (op) { + case 39: + switch (this.getPluginOption("pipelineOperator", "proposal")) { + case "hack": + return this.withTopicBindingContext(() => { + return this.parseHackPipeBody(); + }); + case "smart": + return this.withTopicBindingContext(() => { + if (this.prodParam.hasYield && this.isContextual(108)) { + throw this.raise(Errors.PipeBodyIsTighter, { + at: this.state.startLoc + }); + } + return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(op, prec), startLoc); + }); + case "fsharp": + return this.withSoloAwaitPermittingContext(() => { + return this.parseFSharpPipelineBody(prec); + }); + } + default: + return this.parseExprOpBaseRightExpr(op, prec); + } + } + parseExprOpBaseRightExpr(op, prec) { + const startLoc = this.state.startLoc; + return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, tokenIsRightAssociative(op) ? prec - 1 : prec); + } + parseHackPipeBody() { + var _body$extra; + const { + startLoc + } = this.state; + const body = this.parseMaybeAssign(); + const requiredParentheses = UnparenthesizedPipeBodyDescriptions.has(body.type); + if (requiredParentheses && !((_body$extra = body.extra) != null && _body$extra.parenthesized)) { + this.raise(Errors.PipeUnparenthesizedBody, { + at: startLoc, + type: body.type + }); + } + if (!this.topicReferenceWasUsedInCurrentContext()) { + this.raise(Errors.PipeTopicUnused, { + at: startLoc + }); + } + return body; + } + checkExponentialAfterUnary(node) { + if (this.match(57)) { + this.raise(Errors.UnexpectedTokenUnaryExponentiation, { + at: node.argument + }); + } + } + parseMaybeUnary(refExpressionErrors, sawUnary) { + const startLoc = this.state.startLoc; + const isAwait = this.isContextual(96); + if (isAwait && this.isAwaitAllowed()) { + this.next(); + const expr = this.parseAwait(startLoc); + if (!sawUnary) this.checkExponentialAfterUnary(expr); + return expr; + } + const update = this.match(34); + const node = this.startNode(); + if (tokenIsPrefix(this.state.type)) { + node.operator = this.state.value; + node.prefix = true; + if (this.match(72)) { + this.expectPlugin("throwExpressions"); + } + const isDelete = this.match(89); + this.next(); + node.argument = this.parseMaybeUnary(null, true); + this.checkExpressionErrors(refExpressionErrors, true); + if (this.state.strict && isDelete) { + const arg = node.argument; + if (arg.type === "Identifier") { + this.raise(Errors.StrictDelete, { + at: node + }); + } else if (this.hasPropertyAsPrivateName(arg)) { + this.raise(Errors.DeletePrivateField, { + at: node + }); + } + } + if (!update) { + if (!sawUnary) { + this.checkExponentialAfterUnary(node); + } + return this.finishNode(node, "UnaryExpression"); + } + } + const expr = this.parseUpdate(node, update, refExpressionErrors); + if (isAwait) { + const { + type + } = this.state; + const startsExpr = this.hasPlugin("v8intrinsic") ? tokenCanStartExpression(type) : tokenCanStartExpression(type) && !this.match(54); + if (startsExpr && !this.isAmbiguousAwait()) { + this.raiseOverwrite(Errors.AwaitNotInAsyncContext, { + at: startLoc + }); + return this.parseAwait(startLoc); + } + } + return expr; + } + parseUpdate(node, update, refExpressionErrors) { + if (update) { + const updateExpressionNode = node; + this.checkLVal(updateExpressionNode.argument, { + in: this.finishNode(updateExpressionNode, "UpdateExpression") + }); + return node; + } + const startLoc = this.state.startLoc; + let expr = this.parseExprSubscripts(refExpressionErrors); + if (this.checkExpressionErrors(refExpressionErrors, false)) return expr; + while (tokenIsPostfix(this.state.type) && !this.canInsertSemicolon()) { + const node = this.startNodeAt(startLoc); + node.operator = this.state.value; + node.prefix = false; + node.argument = expr; + this.next(); + this.checkLVal(expr, { + in: expr = this.finishNode(node, "UpdateExpression") + }); + } + return expr; + } + parseExprSubscripts(refExpressionErrors) { + const startLoc = this.state.startLoc; + const potentialArrowAt = this.state.potentialArrowAt; + const expr = this.parseExprAtom(refExpressionErrors); + if (this.shouldExitDescending(expr, potentialArrowAt)) { + return expr; + } + return this.parseSubscripts(expr, startLoc); + } + parseSubscripts(base, startLoc, noCalls) { + const state = { + optionalChainMember: false, + maybeAsyncArrow: this.atPossibleAsyncArrow(base), + stop: false + }; + do { + base = this.parseSubscript(base, startLoc, noCalls, state); + state.maybeAsyncArrow = false; + } while (!state.stop); + return base; + } + parseSubscript(base, startLoc, noCalls, state) { + const { + type + } = this.state; + if (!noCalls && type === 15) { + return this.parseBind(base, startLoc, noCalls, state); + } else if (tokenIsTemplate(type)) { + return this.parseTaggedTemplateExpression(base, startLoc, state); + } + let optional = false; + if (type === 18) { + if (noCalls) { + this.raise(Errors.OptionalChainingNoNew, { + at: this.state.startLoc + }); + if (this.lookaheadCharCode() === 40) { + state.stop = true; + return base; + } + } + state.optionalChainMember = optional = true; + this.next(); + } + if (!noCalls && this.match(10)) { + return this.parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional); + } else { + const computed = this.eat(0); + if (computed || optional || this.eat(16)) { + return this.parseMember(base, startLoc, state, computed, optional); + } else { + state.stop = true; + return base; + } + } + } + parseMember(base, startLoc, state, computed, optional) { + const node = this.startNodeAt(startLoc); + node.object = base; + node.computed = computed; + if (computed) { + node.property = this.parseExpression(); + this.expect(3); + } else if (this.match(138)) { + if (base.type === "Super") { + this.raise(Errors.SuperPrivateField, { + at: startLoc + }); + } + this.classScope.usePrivateName(this.state.value, this.state.startLoc); + node.property = this.parsePrivateName(); + } else { + node.property = this.parseIdentifier(true); + } + if (state.optionalChainMember) { + node.optional = optional; + return this.finishNode(node, "OptionalMemberExpression"); + } else { + return this.finishNode(node, "MemberExpression"); + } + } + parseBind(base, startLoc, noCalls, state) { + const node = this.startNodeAt(startLoc); + node.object = base; + this.next(); + node.callee = this.parseNoCallExpr(); + state.stop = true; + return this.parseSubscripts(this.finishNode(node, "BindExpression"), startLoc, noCalls); + } + parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional) { + const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; + let refExpressionErrors = null; + this.state.maybeInArrowParameters = true; + this.next(); + const node = this.startNodeAt(startLoc); + node.callee = base; + const { + maybeAsyncArrow, + optionalChainMember + } = state; + if (maybeAsyncArrow) { + this.expressionScope.enter(newAsyncArrowScope()); + refExpressionErrors = new ExpressionErrors(); + } + if (optionalChainMember) { + node.optional = optional; + } + if (optional) { + node.arguments = this.parseCallExpressionArguments(11); + } else { + node.arguments = this.parseCallExpressionArguments(11, base.type === "Import", base.type !== "Super", node, refExpressionErrors); + } + let finishedNode = this.finishCallExpression(node, optionalChainMember); + if (maybeAsyncArrow && this.shouldParseAsyncArrow() && !optional) { + state.stop = true; + this.checkDestructuringPrivate(refExpressionErrors); + this.expressionScope.validateAsPattern(); + this.expressionScope.exit(); + finishedNode = this.parseAsyncArrowFromCallExpression(this.startNodeAt(startLoc), finishedNode); + } else { + if (maybeAsyncArrow) { + this.checkExpressionErrors(refExpressionErrors, true); + this.expressionScope.exit(); + } + this.toReferencedArguments(finishedNode); + } + this.state.maybeInArrowParameters = oldMaybeInArrowParameters; + return finishedNode; + } + toReferencedArguments(node, isParenthesizedExpr) { + this.toReferencedListDeep(node.arguments, isParenthesizedExpr); + } + parseTaggedTemplateExpression(base, startLoc, state) { + const node = this.startNodeAt(startLoc); + node.tag = base; + node.quasi = this.parseTemplate(true); + if (state.optionalChainMember) { + this.raise(Errors.OptionalChainingNoTemplate, { + at: startLoc + }); + } + return this.finishNode(node, "TaggedTemplateExpression"); + } + atPossibleAsyncArrow(base) { + return base.type === "Identifier" && base.name === "async" && this.state.lastTokEndLoc.index === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && base.start === this.state.potentialArrowAt; + } + expectImportAttributesPlugin() { + if (!this.hasPlugin("importAssertions")) { + this.expectPlugin("importAttributes"); + } + } + finishCallExpression(node, optional) { + if (node.callee.type === "Import") { + if (node.arguments.length === 2) { + { + if (!this.hasPlugin("moduleAttributes")) { + this.expectImportAttributesPlugin(); + } + } + } + if (node.arguments.length === 0 || node.arguments.length > 2) { + this.raise(Errors.ImportCallArity, { + at: node, + maxArgumentCount: this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions") || this.hasPlugin("moduleAttributes") ? 2 : 1 + }); + } else { + for (const arg of node.arguments) { + if (arg.type === "SpreadElement") { + this.raise(Errors.ImportCallSpreadArgument, { + at: arg + }); + } + } + } + } + return this.finishNode(node, optional ? "OptionalCallExpression" : "CallExpression"); + } + parseCallExpressionArguments(close, dynamicImport, allowPlaceholder, nodeForExtra, refExpressionErrors) { + const elts = []; + let first = true; + const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; + this.state.inFSharpPipelineDirectBody = false; + while (!this.eat(close)) { + if (first) { + first = false; + } else { + this.expect(12); + if (this.match(close)) { + if (dynamicImport && !this.hasPlugin("importAttributes") && !this.hasPlugin("importAssertions") && !this.hasPlugin("moduleAttributes")) { + this.raise(Errors.ImportCallArgumentTrailingComma, { + at: this.state.lastTokStartLoc + }); + } + if (nodeForExtra) { + this.addTrailingCommaExtraToNode(nodeForExtra); + } + this.next(); + break; + } + } + elts.push(this.parseExprListItem(false, refExpressionErrors, allowPlaceholder)); + } + this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; + return elts; + } + shouldParseAsyncArrow() { + return this.match(19) && !this.canInsertSemicolon(); + } + parseAsyncArrowFromCallExpression(node, call) { + var _call$extra; + this.resetPreviousNodeTrailingComments(call); + this.expect(19); + this.parseArrowExpression(node, call.arguments, true, (_call$extra = call.extra) == null ? void 0 : _call$extra.trailingCommaLoc); + if (call.innerComments) { + setInnerComments(node, call.innerComments); + } + if (call.callee.trailingComments) { + setInnerComments(node, call.callee.trailingComments); + } + return node; + } + parseNoCallExpr() { + const startLoc = this.state.startLoc; + return this.parseSubscripts(this.parseExprAtom(), startLoc, true); + } + parseExprAtom(refExpressionErrors) { + let node; + let decorators = null; + const { + type + } = this.state; + switch (type) { + case 79: + return this.parseSuper(); + case 83: + node = this.startNode(); + this.next(); + if (this.match(16)) { + return this.parseImportMetaProperty(node); + } + if (this.match(10)) { + if (this.options.createImportExpressions) { + return this.parseImportCall(node); + } else { + return this.finishNode(node, "Import"); + } + } else { + this.raise(Errors.UnsupportedImport, { + at: this.state.lastTokStartLoc + }); + return this.finishNode(node, "Import"); + } + case 78: + node = this.startNode(); + this.next(); + return this.finishNode(node, "ThisExpression"); + case 90: + { + return this.parseDo(this.startNode(), false); + } + case 56: + case 31: + { + this.readRegexp(); + return this.parseRegExpLiteral(this.state.value); + } + case 134: + return this.parseNumericLiteral(this.state.value); + case 135: + return this.parseBigIntLiteral(this.state.value); + case 136: + return this.parseDecimalLiteral(this.state.value); + case 133: + return this.parseStringLiteral(this.state.value); + case 84: + return this.parseNullLiteral(); + case 85: + return this.parseBooleanLiteral(true); + case 86: + return this.parseBooleanLiteral(false); + case 10: + { + const canBeArrow = this.state.potentialArrowAt === this.state.start; + return this.parseParenAndDistinguishExpression(canBeArrow); + } + case 2: + case 1: + { + return this.parseArrayLike(this.state.type === 2 ? 4 : 3, false, true); + } + case 0: + { + return this.parseArrayLike(3, true, false, refExpressionErrors); + } + case 6: + case 7: + { + return this.parseObjectLike(this.state.type === 6 ? 9 : 8, false, true); + } + case 5: + { + return this.parseObjectLike(8, false, false, refExpressionErrors); + } + case 68: + return this.parseFunctionOrFunctionSent(); + case 26: + decorators = this.parseDecorators(); + case 80: + return this.parseClass(this.maybeTakeDecorators(decorators, this.startNode()), false); + case 77: + return this.parseNewOrNewTarget(); + case 25: + case 24: + return this.parseTemplate(false); + case 15: + { + node = this.startNode(); + this.next(); + node.object = null; + const callee = node.callee = this.parseNoCallExpr(); + if (callee.type === "MemberExpression") { + return this.finishNode(node, "BindExpression"); + } else { + throw this.raise(Errors.UnsupportedBind, { + at: callee + }); + } + } + case 138: + { + this.raise(Errors.PrivateInExpectedIn, { + at: this.state.startLoc, + identifierName: this.state.value + }); + return this.parsePrivateName(); + } + case 33: + { + return this.parseTopicReferenceThenEqualsSign(54, "%"); + } + case 32: + { + return this.parseTopicReferenceThenEqualsSign(44, "^"); + } + case 37: + case 38: + { + return this.parseTopicReference("hack"); + } + case 44: + case 54: + case 27: + { + const pipeProposal = this.getPluginOption("pipelineOperator", "proposal"); + if (pipeProposal) { + return this.parseTopicReference(pipeProposal); + } + this.unexpected(); + break; + } + case 47: + { + const lookaheadCh = this.input.codePointAt(this.nextTokenStart()); + if (isIdentifierStart(lookaheadCh) || lookaheadCh === 62) { + this.expectOnePlugin(["jsx", "flow", "typescript"]); + } else { + this.unexpected(); + } + break; + } + default: + if (tokenIsIdentifier(type)) { + if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123) { + return this.parseModuleExpression(); + } + const canBeArrow = this.state.potentialArrowAt === this.state.start; + const containsEsc = this.state.containsEsc; + const id = this.parseIdentifier(); + if (!containsEsc && id.name === "async" && !this.canInsertSemicolon()) { + const { + type + } = this.state; + if (type === 68) { + this.resetPreviousNodeTrailingComments(id); + this.next(); + return this.parseAsyncFunctionExpression(this.startNodeAtNode(id)); + } else if (tokenIsIdentifier(type)) { + if (this.lookaheadCharCode() === 61) { + return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id)); + } else { + return id; + } + } else if (type === 90) { + this.resetPreviousNodeTrailingComments(id); + return this.parseDo(this.startNodeAtNode(id), true); + } + } + if (canBeArrow && this.match(19) && !this.canInsertSemicolon()) { + this.next(); + return this.parseArrowExpression(this.startNodeAtNode(id), [id], false); + } + return id; + } else { + this.unexpected(); + } + } + } + parseTopicReferenceThenEqualsSign(topicTokenType, topicTokenValue) { + const pipeProposal = this.getPluginOption("pipelineOperator", "proposal"); + if (pipeProposal) { + this.state.type = topicTokenType; + this.state.value = topicTokenValue; + this.state.pos--; + this.state.end--; + this.state.endLoc = createPositionWithColumnOffset(this.state.endLoc, -1); + return this.parseTopicReference(pipeProposal); + } else { + this.unexpected(); + } + } + parseTopicReference(pipeProposal) { + const node = this.startNode(); + const startLoc = this.state.startLoc; + const tokenType = this.state.type; + this.next(); + return this.finishTopicReference(node, startLoc, pipeProposal, tokenType); + } + finishTopicReference(node, startLoc, pipeProposal, tokenType) { + if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) { + const nodeType = pipeProposal === "smart" ? "PipelinePrimaryTopicReference" : "TopicReference"; + if (!this.topicReferenceIsAllowedInCurrentContext()) { + this.raise(pipeProposal === "smart" ? Errors.PrimaryTopicNotAllowed : Errors.PipeTopicUnbound, { + at: startLoc + }); + } + this.registerTopicReference(); + return this.finishNode(node, nodeType); + } else { + throw this.raise(Errors.PipeTopicUnconfiguredToken, { + at: startLoc, + token: tokenLabelName(tokenType) + }); + } + } + testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType) { + switch (pipeProposal) { + case "hack": + { + return this.hasPlugin(["pipelineOperator", { + topicToken: tokenLabelName(tokenType) + }]); + } + case "smart": + return tokenType === 27; + default: + throw this.raise(Errors.PipeTopicRequiresHackPipes, { + at: startLoc + }); + } + } + parseAsyncArrowUnaryFunction(node) { + this.prodParam.enter(functionFlags(true, this.prodParam.hasYield)); + const params = [this.parseIdentifier()]; + this.prodParam.exit(); + if (this.hasPrecedingLineBreak()) { + this.raise(Errors.LineTerminatorBeforeArrow, { + at: this.state.curPosition() + }); + } + this.expect(19); + return this.parseArrowExpression(node, params, true); + } + parseDo(node, isAsync) { + this.expectPlugin("doExpressions"); + if (isAsync) { + this.expectPlugin("asyncDoExpressions"); + } + node.async = isAsync; + this.next(); + const oldLabels = this.state.labels; + this.state.labels = []; + if (isAsync) { + this.prodParam.enter(2); + node.body = this.parseBlock(); + this.prodParam.exit(); + } else { + node.body = this.parseBlock(); + } + this.state.labels = oldLabels; + return this.finishNode(node, "DoExpression"); + } + parseSuper() { + const node = this.startNode(); + this.next(); + if (this.match(10) && !this.scope.allowDirectSuper && !this.options.allowSuperOutsideMethod) { + this.raise(Errors.SuperNotAllowed, { + at: node + }); + } else if (!this.scope.allowSuper && !this.options.allowSuperOutsideMethod) { + this.raise(Errors.UnexpectedSuper, { + at: node + }); + } + if (!this.match(10) && !this.match(0) && !this.match(16)) { + this.raise(Errors.UnsupportedSuper, { + at: node + }); + } + return this.finishNode(node, "Super"); + } + parsePrivateName() { + const node = this.startNode(); + const id = this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc, 1)); + const name = this.state.value; + this.next(); + node.id = this.createIdentifier(id, name); + return this.finishNode(node, "PrivateName"); + } + parseFunctionOrFunctionSent() { + const node = this.startNode(); + this.next(); + if (this.prodParam.hasYield && this.match(16)) { + const meta = this.createIdentifier(this.startNodeAtNode(node), "function"); + this.next(); + if (this.match(103)) { + this.expectPlugin("functionSent"); + } else if (!this.hasPlugin("functionSent")) { + this.unexpected(); + } + return this.parseMetaProperty(node, meta, "sent"); + } + return this.parseFunction(node); + } + parseMetaProperty(node, meta, propertyName) { + node.meta = meta; + const containsEsc = this.state.containsEsc; + node.property = this.parseIdentifier(true); + if (node.property.name !== propertyName || containsEsc) { + this.raise(Errors.UnsupportedMetaProperty, { + at: node.property, + target: meta.name, + onlyValidPropertyName: propertyName + }); + } + return this.finishNode(node, "MetaProperty"); + } + parseImportMetaProperty(node) { + const id = this.createIdentifier(this.startNodeAtNode(node), "import"); + this.next(); + if (this.isContextual(101)) { + if (!this.inModule) { + this.raise(Errors.ImportMetaOutsideModule, { + at: id + }); + } + this.sawUnambiguousESM = true; + } else if (this.isContextual(105) || this.isContextual(97)) { + const isSource = this.isContextual(105); + if (!isSource) this.unexpected(); + this.expectPlugin(isSource ? "sourcePhaseImports" : "deferredImportEvaluation"); + if (!this.options.createImportExpressions) { + throw this.raise(Errors.DynamicImportPhaseRequiresImportExpressions, { + at: this.state.startLoc, + phase: this.state.value + }); + } + this.next(); + node.phase = isSource ? "source" : "defer"; + return this.parseImportCall(node); + } + return this.parseMetaProperty(node, id, "meta"); + } + parseLiteralAtNode(value, type, node) { + this.addExtra(node, "rawValue", value); + this.addExtra(node, "raw", this.input.slice(node.start, this.state.end)); + node.value = value; + this.next(); + return this.finishNode(node, type); + } + parseLiteral(value, type) { + const node = this.startNode(); + return this.parseLiteralAtNode(value, type, node); + } + parseStringLiteral(value) { + return this.parseLiteral(value, "StringLiteral"); + } + parseNumericLiteral(value) { + return this.parseLiteral(value, "NumericLiteral"); + } + parseBigIntLiteral(value) { + return this.parseLiteral(value, "BigIntLiteral"); + } + parseDecimalLiteral(value) { + return this.parseLiteral(value, "DecimalLiteral"); + } + parseRegExpLiteral(value) { + const node = this.parseLiteral(value.value, "RegExpLiteral"); + node.pattern = value.pattern; + node.flags = value.flags; + return node; + } + parseBooleanLiteral(value) { + const node = this.startNode(); + node.value = value; + this.next(); + return this.finishNode(node, "BooleanLiteral"); + } + parseNullLiteral() { + const node = this.startNode(); + this.next(); + return this.finishNode(node, "NullLiteral"); + } + parseParenAndDistinguishExpression(canBeArrow) { + const startLoc = this.state.startLoc; + let val; + this.next(); + this.expressionScope.enter(newArrowHeadScope()); + const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; + const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; + this.state.maybeInArrowParameters = true; + this.state.inFSharpPipelineDirectBody = false; + const innerStartLoc = this.state.startLoc; + const exprList = []; + const refExpressionErrors = new ExpressionErrors(); + let first = true; + let spreadStartLoc; + let optionalCommaStartLoc; + while (!this.match(11)) { + if (first) { + first = false; + } else { + this.expect(12, refExpressionErrors.optionalParametersLoc === null ? null : refExpressionErrors.optionalParametersLoc); + if (this.match(11)) { + optionalCommaStartLoc = this.state.startLoc; + break; + } + } + if (this.match(21)) { + const spreadNodeStartLoc = this.state.startLoc; + spreadStartLoc = this.state.startLoc; + exprList.push(this.parseParenItem(this.parseRestBinding(), spreadNodeStartLoc)); + if (!this.checkCommaAfterRest(41)) { + break; + } + } else { + exprList.push(this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem)); + } + } + const innerEndLoc = this.state.lastTokEndLoc; + this.expect(11); + this.state.maybeInArrowParameters = oldMaybeInArrowParameters; + this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; + let arrowNode = this.startNodeAt(startLoc); + if (canBeArrow && this.shouldParseArrow(exprList) && (arrowNode = this.parseArrow(arrowNode))) { + this.checkDestructuringPrivate(refExpressionErrors); + this.expressionScope.validateAsPattern(); + this.expressionScope.exit(); + this.parseArrowExpression(arrowNode, exprList, false); + return arrowNode; + } + this.expressionScope.exit(); + if (!exprList.length) { + this.unexpected(this.state.lastTokStartLoc); + } + if (optionalCommaStartLoc) this.unexpected(optionalCommaStartLoc); + if (spreadStartLoc) this.unexpected(spreadStartLoc); + this.checkExpressionErrors(refExpressionErrors, true); + this.toReferencedListDeep(exprList, true); + if (exprList.length > 1) { + val = this.startNodeAt(innerStartLoc); + val.expressions = exprList; + this.finishNode(val, "SequenceExpression"); + this.resetEndLocation(val, innerEndLoc); + } else { + val = exprList[0]; + } + return this.wrapParenthesis(startLoc, val); + } + wrapParenthesis(startLoc, expression) { + if (!this.options.createParenthesizedExpressions) { + this.addExtra(expression, "parenthesized", true); + this.addExtra(expression, "parenStart", startLoc.index); + this.takeSurroundingComments(expression, startLoc.index, this.state.lastTokEndLoc.index); + return expression; + } + const parenExpression = this.startNodeAt(startLoc); + parenExpression.expression = expression; + return this.finishNode(parenExpression, "ParenthesizedExpression"); + } + shouldParseArrow(params) { + return !this.canInsertSemicolon(); + } + parseArrow(node) { + if (this.eat(19)) { + return node; + } + } + parseParenItem(node, startLoc) { + return node; + } + parseNewOrNewTarget() { + const node = this.startNode(); + this.next(); + if (this.match(16)) { + const meta = this.createIdentifier(this.startNodeAtNode(node), "new"); + this.next(); + const metaProp = this.parseMetaProperty(node, meta, "target"); + if (!this.scope.inNonArrowFunction && !this.scope.inClass && !this.options.allowNewTargetOutsideFunction) { + this.raise(Errors.UnexpectedNewTarget, { + at: metaProp + }); + } + return metaProp; + } + return this.parseNew(node); + } + parseNew(node) { + this.parseNewCallee(node); + if (this.eat(10)) { + const args = this.parseExprList(11); + this.toReferencedList(args); + node.arguments = args; + } else { + node.arguments = []; + } + return this.finishNode(node, "NewExpression"); + } + parseNewCallee(node) { + const isImport = this.match(83); + const callee = this.parseNoCallExpr(); + node.callee = callee; + if (isImport && (callee.type === "Import" || callee.type === "ImportExpression")) { + this.raise(Errors.ImportCallNotNewExpression, { + at: callee + }); + } + } + parseTemplateElement(isTagged) { + const { + start, + startLoc, + end, + value + } = this.state; + const elemStart = start + 1; + const elem = this.startNodeAt(createPositionWithColumnOffset(startLoc, 1)); + if (value === null) { + if (!isTagged) { + this.raise(Errors.InvalidEscapeSequenceTemplate, { + at: createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos, 1) + }); + } + } + const isTail = this.match(24); + const endOffset = isTail ? -1 : -2; + const elemEnd = end + endOffset; + elem.value = { + raw: this.input.slice(elemStart, elemEnd).replace(/\r\n?/g, "\n"), + cooked: value === null ? null : value.slice(1, endOffset) + }; + elem.tail = isTail; + this.next(); + const finishedNode = this.finishNode(elem, "TemplateElement"); + this.resetEndLocation(finishedNode, createPositionWithColumnOffset(this.state.lastTokEndLoc, endOffset)); + return finishedNode; + } + parseTemplate(isTagged) { + const node = this.startNode(); + node.expressions = []; + let curElt = this.parseTemplateElement(isTagged); + node.quasis = [curElt]; + while (!curElt.tail) { + node.expressions.push(this.parseTemplateSubstitution()); + this.readTemplateContinuation(); + node.quasis.push(curElt = this.parseTemplateElement(isTagged)); + } + return this.finishNode(node, "TemplateLiteral"); + } + parseTemplateSubstitution() { + return this.parseExpression(); + } + parseObjectLike(close, isPattern, isRecord, refExpressionErrors) { + if (isRecord) { + this.expectPlugin("recordAndTuple"); + } + const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; + this.state.inFSharpPipelineDirectBody = false; + const propHash = Object.create(null); + let first = true; + const node = this.startNode(); + node.properties = []; + this.next(); + while (!this.match(close)) { + if (first) { + first = false; + } else { + this.expect(12); + if (this.match(close)) { + this.addTrailingCommaExtraToNode(node); + break; + } + } + let prop; + if (isPattern) { + prop = this.parseBindingProperty(); + } else { + prop = this.parsePropertyDefinition(refExpressionErrors); + this.checkProto(prop, isRecord, propHash, refExpressionErrors); + } + if (isRecord && !this.isObjectProperty(prop) && prop.type !== "SpreadElement") { + this.raise(Errors.InvalidRecordProperty, { + at: prop + }); + } + if (prop.shorthand) { + this.addExtra(prop, "shorthand", true); + } + node.properties.push(prop); + } + this.next(); + this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; + let type = "ObjectExpression"; + if (isPattern) { + type = "ObjectPattern"; + } else if (isRecord) { + type = "RecordExpression"; + } + return this.finishNode(node, type); + } + addTrailingCommaExtraToNode(node) { + this.addExtra(node, "trailingComma", this.state.lastTokStart); + this.addExtra(node, "trailingCommaLoc", this.state.lastTokStartLoc, false); + } + maybeAsyncOrAccessorProp(prop) { + return !prop.computed && prop.key.type === "Identifier" && (this.isLiteralPropertyName() || this.match(0) || this.match(55)); + } + parsePropertyDefinition(refExpressionErrors) { + let decorators = []; + if (this.match(26)) { + if (this.hasPlugin("decorators")) { + this.raise(Errors.UnsupportedPropertyDecorator, { + at: this.state.startLoc + }); + } + while (this.match(26)) { + decorators.push(this.parseDecorator()); + } + } + const prop = this.startNode(); + let isAsync = false; + let isAccessor = false; + let startLoc; + if (this.match(21)) { + if (decorators.length) this.unexpected(); + return this.parseSpread(); + } + if (decorators.length) { + prop.decorators = decorators; + decorators = []; + } + prop.method = false; + if (refExpressionErrors) { + startLoc = this.state.startLoc; + } + let isGenerator = this.eat(55); + this.parsePropertyNamePrefixOperator(prop); + const containsEsc = this.state.containsEsc; + const key = this.parsePropertyName(prop, refExpressionErrors); + if (!isGenerator && !containsEsc && this.maybeAsyncOrAccessorProp(prop)) { + const keyName = key.name; + if (keyName === "async" && !this.hasPrecedingLineBreak()) { + isAsync = true; + this.resetPreviousNodeTrailingComments(key); + isGenerator = this.eat(55); + this.parsePropertyName(prop); + } + if (keyName === "get" || keyName === "set") { + isAccessor = true; + this.resetPreviousNodeTrailingComments(key); + prop.kind = keyName; + if (this.match(55)) { + isGenerator = true; + this.raise(Errors.AccessorIsGenerator, { + at: this.state.curPosition(), + kind: keyName + }); + this.next(); + } + this.parsePropertyName(prop); + } + } + return this.parseObjPropValue(prop, startLoc, isGenerator, isAsync, false, isAccessor, refExpressionErrors); + } + getGetterSetterExpectedParamCount(method) { + return method.kind === "get" ? 0 : 1; + } + getObjectOrClassMethodParams(method) { + return method.params; + } + checkGetterSetterParams(method) { + var _params; + const paramCount = this.getGetterSetterExpectedParamCount(method); + const params = this.getObjectOrClassMethodParams(method); + if (params.length !== paramCount) { + this.raise(method.kind === "get" ? Errors.BadGetterArity : Errors.BadSetterArity, { + at: method + }); + } + if (method.kind === "set" && ((_params = params[params.length - 1]) == null ? void 0 : _params.type) === "RestElement") { + this.raise(Errors.BadSetterRestParameter, { + at: method + }); + } + } + parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) { + if (isAccessor) { + const finishedProp = this.parseMethod(prop, isGenerator, false, false, false, "ObjectMethod"); + this.checkGetterSetterParams(finishedProp); + return finishedProp; + } + if (isAsync || isGenerator || this.match(10)) { + if (isPattern) this.unexpected(); + prop.kind = "method"; + prop.method = true; + return this.parseMethod(prop, isGenerator, isAsync, false, false, "ObjectMethod"); + } + } + parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors) { + prop.shorthand = false; + if (this.eat(14)) { + prop.value = isPattern ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(refExpressionErrors); + return this.finishNode(prop, "ObjectProperty"); + } + if (!prop.computed && prop.key.type === "Identifier") { + this.checkReservedWord(prop.key.name, prop.key.loc.start, true, false); + if (isPattern) { + prop.value = this.parseMaybeDefault(startLoc, cloneIdentifier(prop.key)); + } else if (this.match(29)) { + const shorthandAssignLoc = this.state.startLoc; + if (refExpressionErrors != null) { + if (refExpressionErrors.shorthandAssignLoc === null) { + refExpressionErrors.shorthandAssignLoc = shorthandAssignLoc; + } + } else { + this.raise(Errors.InvalidCoverInitializedName, { + at: shorthandAssignLoc + }); + } + prop.value = this.parseMaybeDefault(startLoc, cloneIdentifier(prop.key)); + } else { + prop.value = cloneIdentifier(prop.key); + } + prop.shorthand = true; + return this.finishNode(prop, "ObjectProperty"); + } + } + parseObjPropValue(prop, startLoc, isGenerator, isAsync, isPattern, isAccessor, refExpressionErrors) { + const node = this.parseObjectMethod(prop, isGenerator, isAsync, isPattern, isAccessor) || this.parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors); + if (!node) this.unexpected(); + return node; + } + parsePropertyName(prop, refExpressionErrors) { + if (this.eat(0)) { + prop.computed = true; + prop.key = this.parseMaybeAssignAllowIn(); + this.expect(3); + } else { + const { + type, + value + } = this.state; + let key; + if (tokenIsKeywordOrIdentifier(type)) { + key = this.parseIdentifier(true); + } else { + switch (type) { + case 134: + key = this.parseNumericLiteral(value); + break; + case 133: + key = this.parseStringLiteral(value); + break; + case 135: + key = this.parseBigIntLiteral(value); + break; + case 136: + key = this.parseDecimalLiteral(value); + break; + case 138: + { + const privateKeyLoc = this.state.startLoc; + if (refExpressionErrors != null) { + if (refExpressionErrors.privateKeyLoc === null) { + refExpressionErrors.privateKeyLoc = privateKeyLoc; + } + } else { + this.raise(Errors.UnexpectedPrivateField, { + at: privateKeyLoc + }); + } + key = this.parsePrivateName(); + break; + } + default: + this.unexpected(); + } + } + prop.key = key; + if (type !== 138) { + prop.computed = false; + } + } + return prop.key; + } + initFunction(node, isAsync) { + node.id = null; + node.generator = false; + node.async = isAsync; + } + parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) { + this.initFunction(node, isAsync); + node.generator = isGenerator; + this.scope.enter(2 | 16 | (inClassScope ? 64 : 0) | (allowDirectSuper ? 32 : 0)); + this.prodParam.enter(functionFlags(isAsync, node.generator)); + this.parseFunctionParams(node, isConstructor); + const finishedNode = this.parseFunctionBodyAndFinish(node, type, true); + this.prodParam.exit(); + this.scope.exit(); + return finishedNode; + } + parseArrayLike(close, canBePattern, isTuple, refExpressionErrors) { + if (isTuple) { + this.expectPlugin("recordAndTuple"); + } + const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; + this.state.inFSharpPipelineDirectBody = false; + const node = this.startNode(); + this.next(); + node.elements = this.parseExprList(close, !isTuple, refExpressionErrors, node); + this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; + return this.finishNode(node, isTuple ? "TupleExpression" : "ArrayExpression"); + } + parseArrowExpression(node, params, isAsync, trailingCommaLoc) { + this.scope.enter(2 | 4); + let flags = functionFlags(isAsync, false); + if (!this.match(5) && this.prodParam.hasIn) { + flags |= 8; + } + this.prodParam.enter(flags); + this.initFunction(node, isAsync); + const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; + if (params) { + this.state.maybeInArrowParameters = true; + this.setArrowFunctionParameters(node, params, trailingCommaLoc); + } + this.state.maybeInArrowParameters = false; + this.parseFunctionBody(node, true); + this.prodParam.exit(); + this.scope.exit(); + this.state.maybeInArrowParameters = oldMaybeInArrowParameters; + return this.finishNode(node, "ArrowFunctionExpression"); + } + setArrowFunctionParameters(node, params, trailingCommaLoc) { + this.toAssignableList(params, trailingCommaLoc, false); + node.params = params; + } + parseFunctionBodyAndFinish(node, type, isMethod = false) { + this.parseFunctionBody(node, false, isMethod); + return this.finishNode(node, type); + } + parseFunctionBody(node, allowExpression, isMethod = false) { + const isExpression = allowExpression && !this.match(5); + this.expressionScope.enter(newExpressionScope()); + if (isExpression) { + node.body = this.parseMaybeAssign(); + this.checkParams(node, false, allowExpression, false); + } else { + const oldStrict = this.state.strict; + const oldLabels = this.state.labels; + this.state.labels = []; + this.prodParam.enter(this.prodParam.currentFlags() | 4); + node.body = this.parseBlock(true, false, hasStrictModeDirective => { + const nonSimple = !this.isSimpleParamList(node.params); + if (hasStrictModeDirective && nonSimple) { + this.raise(Errors.IllegalLanguageModeDirective, { + at: (node.kind === "method" || node.kind === "constructor") && !!node.key ? node.key.loc.end : node + }); + } + const strictModeChanged = !oldStrict && this.state.strict; + this.checkParams(node, !this.state.strict && !allowExpression && !isMethod && !nonSimple, allowExpression, strictModeChanged); + if (this.state.strict && node.id) { + this.checkIdentifier(node.id, 65, strictModeChanged); + } + }); + this.prodParam.exit(); + this.state.labels = oldLabels; + } + this.expressionScope.exit(); + } + isSimpleParameter(node) { + return node.type === "Identifier"; + } + isSimpleParamList(params) { + for (let i = 0, len = params.length; i < len; i++) { + if (!this.isSimpleParameter(params[i])) return false; + } + return true; + } + checkParams(node, allowDuplicates, isArrowFunction, strictModeChanged = true) { + const checkClashes = !allowDuplicates && new Set(); + const formalParameters = { + type: "FormalParameters" + }; + for (const param of node.params) { + this.checkLVal(param, { + in: formalParameters, + binding: 5, + checkClashes, + strictModeChanged + }); + } + } + parseExprList(close, allowEmpty, refExpressionErrors, nodeForExtra) { + const elts = []; + let first = true; + while (!this.eat(close)) { + if (first) { + first = false; + } else { + this.expect(12); + if (this.match(close)) { + if (nodeForExtra) { + this.addTrailingCommaExtraToNode(nodeForExtra); + } + this.next(); + break; + } + } + elts.push(this.parseExprListItem(allowEmpty, refExpressionErrors)); + } + return elts; + } + parseExprListItem(allowEmpty, refExpressionErrors, allowPlaceholder) { + let elt; + if (this.match(12)) { + if (!allowEmpty) { + this.raise(Errors.UnexpectedToken, { + at: this.state.curPosition(), + unexpected: "," + }); + } + elt = null; + } else if (this.match(21)) { + const spreadNodeStartLoc = this.state.startLoc; + elt = this.parseParenItem(this.parseSpread(refExpressionErrors), spreadNodeStartLoc); + } else if (this.match(17)) { + this.expectPlugin("partialApplication"); + if (!allowPlaceholder) { + this.raise(Errors.UnexpectedArgumentPlaceholder, { + at: this.state.startLoc + }); + } + const node = this.startNode(); + this.next(); + elt = this.finishNode(node, "ArgumentPlaceholder"); + } else { + elt = this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem); + } + return elt; + } + parseIdentifier(liberal) { + const node = this.startNode(); + const name = this.parseIdentifierName(liberal); + return this.createIdentifier(node, name); + } + createIdentifier(node, name) { + node.name = name; + node.loc.identifierName = name; + return this.finishNode(node, "Identifier"); + } + parseIdentifierName(liberal) { + let name; + const { + startLoc, + type + } = this.state; + if (tokenIsKeywordOrIdentifier(type)) { + name = this.state.value; + } else { + this.unexpected(); + } + const tokenIsKeyword = tokenKeywordOrIdentifierIsKeyword(type); + if (liberal) { + if (tokenIsKeyword) { + this.replaceToken(132); + } + } else { + this.checkReservedWord(name, startLoc, tokenIsKeyword, false); + } + this.next(); + return name; + } + checkReservedWord(word, startLoc, checkKeywords, isBinding) { + if (word.length > 10) { + return; + } + if (!canBeReservedWord(word)) { + return; + } + if (checkKeywords && isKeyword(word)) { + this.raise(Errors.UnexpectedKeyword, { + at: startLoc, + keyword: word + }); + return; + } + const reservedTest = !this.state.strict ? isReservedWord : isBinding ? isStrictBindReservedWord : isStrictReservedWord; + if (reservedTest(word, this.inModule)) { + this.raise(Errors.UnexpectedReservedWord, { + at: startLoc, + reservedWord: word + }); + return; + } else if (word === "yield") { + if (this.prodParam.hasYield) { + this.raise(Errors.YieldBindingIdentifier, { + at: startLoc + }); + return; + } + } else if (word === "await") { + if (this.prodParam.hasAwait) { + this.raise(Errors.AwaitBindingIdentifier, { + at: startLoc + }); + return; + } + if (this.scope.inStaticBlock) { + this.raise(Errors.AwaitBindingIdentifierInStaticBlock, { + at: startLoc + }); + return; + } + this.expressionScope.recordAsyncArrowParametersError({ + at: startLoc + }); + } else if (word === "arguments") { + if (this.scope.inClassAndNotInNonArrowFunction) { + this.raise(Errors.ArgumentsInClass, { + at: startLoc + }); + return; + } + } + } + isAwaitAllowed() { + if (this.prodParam.hasAwait) return true; + if (this.options.allowAwaitOutsideFunction && !this.scope.inFunction) { + return true; + } + return false; + } + parseAwait(startLoc) { + const node = this.startNodeAt(startLoc); + this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, { + at: node + }); + if (this.eat(55)) { + this.raise(Errors.ObsoleteAwaitStar, { + at: node + }); + } + if (!this.scope.inFunction && !this.options.allowAwaitOutsideFunction) { + if (this.isAmbiguousAwait()) { + this.ambiguousScriptDifferentAst = true; + } else { + this.sawUnambiguousESM = true; + } + } + if (!this.state.soloAwait) { + node.argument = this.parseMaybeUnary(null, true); + } + return this.finishNode(node, "AwaitExpression"); + } + isAmbiguousAwait() { + if (this.hasPrecedingLineBreak()) return true; + const { + type + } = this.state; + return type === 53 || type === 10 || type === 0 || tokenIsTemplate(type) || type === 102 && !this.state.containsEsc || type === 137 || type === 56 || this.hasPlugin("v8intrinsic") && type === 54; + } + parseYield() { + const node = this.startNode(); + this.expressionScope.recordParameterInitializerError(Errors.YieldInParameter, { + at: node + }); + this.next(); + let delegating = false; + let argument = null; + if (!this.hasPrecedingLineBreak()) { + delegating = this.eat(55); + switch (this.state.type) { + case 13: + case 139: + case 8: + case 11: + case 3: + case 9: + case 14: + case 12: + if (!delegating) break; + default: + argument = this.parseMaybeAssign(); + } + } + node.delegate = delegating; + node.argument = argument; + return this.finishNode(node, "YieldExpression"); + } + parseImportCall(node) { + this.next(); + node.source = this.parseMaybeAssignAllowIn(); + if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) { + node.options = null; + } + if (this.eat(12)) { + this.expectImportAttributesPlugin(); + if (!this.match(11)) { + node.options = this.parseMaybeAssignAllowIn(); + this.eat(12); + } + } + this.expect(11); + return this.finishNode(node, "ImportExpression"); + } + checkPipelineAtInfixOperator(left, leftStartLoc) { + if (this.hasPlugin(["pipelineOperator", { + proposal: "smart" + }])) { + if (left.type === "SequenceExpression") { + this.raise(Errors.PipelineHeadSequenceExpression, { + at: leftStartLoc + }); + } + } + } + parseSmartPipelineBodyInStyle(childExpr, startLoc) { + if (this.isSimpleReference(childExpr)) { + const bodyNode = this.startNodeAt(startLoc); + bodyNode.callee = childExpr; + return this.finishNode(bodyNode, "PipelineBareFunction"); + } else { + const bodyNode = this.startNodeAt(startLoc); + this.checkSmartPipeTopicBodyEarlyErrors(startLoc); + bodyNode.expression = childExpr; + return this.finishNode(bodyNode, "PipelineTopicExpression"); + } + } + isSimpleReference(expression) { + switch (expression.type) { + case "MemberExpression": + return !expression.computed && this.isSimpleReference(expression.object); + case "Identifier": + return true; + default: + return false; + } + } + checkSmartPipeTopicBodyEarlyErrors(startLoc) { + if (this.match(19)) { + throw this.raise(Errors.PipelineBodyNoArrow, { + at: this.state.startLoc + }); + } + if (!this.topicReferenceWasUsedInCurrentContext()) { + this.raise(Errors.PipelineTopicUnused, { + at: startLoc + }); + } + } + withTopicBindingContext(callback) { + const outerContextTopicState = this.state.topicContext; + this.state.topicContext = { + maxNumOfResolvableTopics: 1, + maxTopicIndex: null + }; + try { + return callback(); + } finally { + this.state.topicContext = outerContextTopicState; + } + } + withSmartMixTopicForbiddingContext(callback) { + if (this.hasPlugin(["pipelineOperator", { + proposal: "smart" + }])) { + const outerContextTopicState = this.state.topicContext; + this.state.topicContext = { + maxNumOfResolvableTopics: 0, + maxTopicIndex: null + }; + try { + return callback(); + } finally { + this.state.topicContext = outerContextTopicState; + } + } else { + return callback(); + } + } + withSoloAwaitPermittingContext(callback) { + const outerContextSoloAwaitState = this.state.soloAwait; + this.state.soloAwait = true; + try { + return callback(); + } finally { + this.state.soloAwait = outerContextSoloAwaitState; + } + } + allowInAnd(callback) { + const flags = this.prodParam.currentFlags(); + const prodParamToSet = 8 & ~flags; + if (prodParamToSet) { + this.prodParam.enter(flags | 8); + try { + return callback(); + } finally { + this.prodParam.exit(); + } + } + return callback(); + } + disallowInAnd(callback) { + const flags = this.prodParam.currentFlags(); + const prodParamToClear = 8 & flags; + if (prodParamToClear) { + this.prodParam.enter(flags & ~8); + try { + return callback(); + } finally { + this.prodParam.exit(); + } + } + return callback(); + } + registerTopicReference() { + this.state.topicContext.maxTopicIndex = 0; + } + topicReferenceIsAllowedInCurrentContext() { + return this.state.topicContext.maxNumOfResolvableTopics >= 1; + } + topicReferenceWasUsedInCurrentContext() { + return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0; + } + parseFSharpPipelineBody(prec) { + const startLoc = this.state.startLoc; + this.state.potentialArrowAt = this.state.start; + const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody; + this.state.inFSharpPipelineDirectBody = true; + const ret = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), startLoc, prec); + this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody; + return ret; + } + parseModuleExpression() { + this.expectPlugin("moduleBlocks"); + const node = this.startNode(); + this.next(); + if (!this.match(5)) { + this.unexpected(null, 5); + } + const program = this.startNodeAt(this.state.endLoc); + this.next(); + const revertScopes = this.initializeScopes(true); + this.enterInitialScopes(); + try { + node.body = this.parseProgram(program, 8, "module"); + } finally { + revertScopes(); + } + return this.finishNode(node, "ModuleExpression"); + } + parsePropertyNamePrefixOperator(prop) {} } -function SpreadProperty(argument) { - (0, _deprecationWarning.default)("SpreadProperty", "SpreadElement", "The node type "); - return spreadElement(argument); +const loopLabel = { + kind: "loop" + }, + switchLabel = { + kind: "switch" + }; +const loneSurrogate = /[\uD800-\uDFFF]/u; +const keywordRelationalOperator = /in(?:stanceof)?/y; +function babel7CompatTokens(tokens, input) { + for (let i = 0; i < tokens.length; i++) { + const token = tokens[i]; + const { + type + } = token; + if (typeof type === "number") { + { + if (type === 138) { + const { + loc, + start, + value, + end + } = token; + const hashEndPos = start + 1; + const hashEndLoc = createPositionWithColumnOffset(loc.start, 1); + tokens.splice(i, 1, new Token({ + type: getExportedToken(27), + value: "#", + start: start, + end: hashEndPos, + startLoc: loc.start, + endLoc: hashEndLoc + }), new Token({ + type: getExportedToken(132), + value: value, + start: hashEndPos, + end: end, + startLoc: hashEndLoc, + endLoc: loc.end + })); + i++; + continue; + } + if (tokenIsTemplate(type)) { + const { + loc, + start, + value, + end + } = token; + const backquoteEnd = start + 1; + const backquoteEndLoc = createPositionWithColumnOffset(loc.start, 1); + let startToken; + if (input.charCodeAt(start) === 96) { + startToken = new Token({ + type: getExportedToken(22), + value: "`", + start: start, + end: backquoteEnd, + startLoc: loc.start, + endLoc: backquoteEndLoc + }); + } else { + startToken = new Token({ + type: getExportedToken(8), + value: "}", + start: start, + end: backquoteEnd, + startLoc: loc.start, + endLoc: backquoteEndLoc + }); + } + let templateValue, templateElementEnd, templateElementEndLoc, endToken; + if (type === 24) { + templateElementEnd = end - 1; + templateElementEndLoc = createPositionWithColumnOffset(loc.end, -1); + templateValue = value === null ? null : value.slice(1, -1); + endToken = new Token({ + type: getExportedToken(22), + value: "`", + start: templateElementEnd, + end: end, + startLoc: templateElementEndLoc, + endLoc: loc.end + }); + } else { + templateElementEnd = end - 2; + templateElementEndLoc = createPositionWithColumnOffset(loc.end, -2); + templateValue = value === null ? null : value.slice(1, -2); + endToken = new Token({ + type: getExportedToken(23), + value: "${", + start: templateElementEnd, + end: end, + startLoc: templateElementEndLoc, + endLoc: loc.end + }); + } + tokens.splice(i, 1, startToken, new Token({ + type: getExportedToken(20), + value: templateValue, + start: backquoteEnd, + end: templateElementEnd, + startLoc: backquoteEndLoc, + endLoc: templateElementEndLoc + }), endToken); + i += 2; + continue; + } + } + token.type = getExportedToken(type); + } + } + return tokens; } - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 36869: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "AnyTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.anyTypeAnnotation; +class StatementParser extends ExpressionParser { + parseTopLevel(file, program) { + file.program = this.parseProgram(program); + file.comments = this.state.comments; + if (this.options.tokens) { + file.tokens = babel7CompatTokens(this.tokens, this.input); + } + return this.finishNode(file, "File"); + } + parseProgram(program, end = 139, sourceType = this.options.sourceType) { + program.sourceType = sourceType; + program.interpreter = this.parseInterpreterDirective(); + this.parseBlockBody(program, true, true, end); + if (this.inModule && !this.options.allowUndeclaredExports && this.scope.undefinedExports.size > 0) { + for (const [localName, at] of Array.from(this.scope.undefinedExports)) { + this.raise(Errors.ModuleExportUndefined, { + at, + localName + }); + } + } + let finishedProgram; + if (end === 139) { + finishedProgram = this.finishNode(program, "Program"); + } else { + finishedProgram = this.finishNodeAt(program, "Program", createPositionWithColumnOffset(this.state.startLoc, -1)); + } + return finishedProgram; + } + stmtToDirective(stmt) { + const directive = stmt; + directive.type = "Directive"; + directive.value = directive.expression; + delete directive.expression; + const directiveLiteral = directive.value; + const expressionValue = directiveLiteral.value; + const raw = this.input.slice(directiveLiteral.start, directiveLiteral.end); + const val = directiveLiteral.value = raw.slice(1, -1); + this.addExtra(directiveLiteral, "raw", raw); + this.addExtra(directiveLiteral, "rawValue", val); + this.addExtra(directiveLiteral, "expressionValue", expressionValue); + directiveLiteral.type = "DirectiveLiteral"; + return directive; + } + parseInterpreterDirective() { + if (!this.match(28)) { + return null; + } + const node = this.startNode(); + node.value = this.state.value; + this.next(); + return this.finishNode(node, "InterpreterDirective"); + } + isLet() { + if (!this.isContextual(100)) { + return false; + } + return this.hasFollowingBindingAtom(); + } + chStartsBindingIdentifier(ch, pos) { + if (isIdentifierStart(ch)) { + keywordRelationalOperator.lastIndex = pos; + if (keywordRelationalOperator.test(this.input)) { + const endCh = this.codePointAtPos(keywordRelationalOperator.lastIndex); + if (!isIdentifierChar(endCh) && endCh !== 92) { + return false; + } + } + return true; + } else if (ch === 92) { + return true; + } else { + return false; + } + } + chStartsBindingPattern(ch) { + return ch === 91 || ch === 123; + } + hasFollowingBindingAtom() { + const next = this.nextTokenStart(); + const nextCh = this.codePointAtPos(next); + return this.chStartsBindingPattern(nextCh) || this.chStartsBindingIdentifier(nextCh, next); + } + hasInLineFollowingBindingIdentifier() { + const next = this.nextTokenInLineStart(); + const nextCh = this.codePointAtPos(next); + return this.chStartsBindingIdentifier(nextCh, next); + } + startsUsingForOf() { + const { + type, + containsEsc + } = this.lookahead(); + if (type === 102 && !containsEsc) { + return false; + } else if (tokenIsIdentifier(type) && !this.hasFollowingLineBreak()) { + this.expectPlugin("explicitResourceManagement"); + return true; + } + } + startsAwaitUsing() { + let next = this.nextTokenInLineStart(); + if (this.isUnparsedContextual(next, "using")) { + next = this.nextTokenInLineStartSince(next + 5); + const nextCh = this.codePointAtPos(next); + if (this.chStartsBindingIdentifier(nextCh, next)) { + this.expectPlugin("explicitResourceManagement"); + return true; + } + } + return false; + } + parseModuleItem() { + return this.parseStatementLike(1 | 2 | 4 | 8); + } + parseStatementListItem() { + return this.parseStatementLike(2 | 4 | (!this.options.annexB || this.state.strict ? 0 : 8)); + } + parseStatementOrSloppyAnnexBFunctionDeclaration(allowLabeledFunction = false) { + let flags = 0; + if (this.options.annexB && !this.state.strict) { + flags |= 4; + if (allowLabeledFunction) { + flags |= 8; + } + } + return this.parseStatementLike(flags); + } + parseStatement() { + return this.parseStatementLike(0); + } + parseStatementLike(flags) { + let decorators = null; + if (this.match(26)) { + decorators = this.parseDecorators(true); + } + return this.parseStatementContent(flags, decorators); + } + parseStatementContent(flags, decorators) { + const starttype = this.state.type; + const node = this.startNode(); + const allowDeclaration = !!(flags & 2); + const allowFunctionDeclaration = !!(flags & 4); + const topLevel = flags & 1; + switch (starttype) { + case 60: + return this.parseBreakContinueStatement(node, true); + case 63: + return this.parseBreakContinueStatement(node, false); + case 64: + return this.parseDebuggerStatement(node); + case 90: + return this.parseDoWhileStatement(node); + case 91: + return this.parseForStatement(node); + case 68: + if (this.lookaheadCharCode() === 46) break; + if (!allowFunctionDeclaration) { + this.raise(this.state.strict ? Errors.StrictFunction : this.options.annexB ? Errors.SloppyFunctionAnnexB : Errors.SloppyFunction, { + at: this.state.startLoc + }); + } + return this.parseFunctionStatement(node, false, !allowDeclaration && allowFunctionDeclaration); + case 80: + if (!allowDeclaration) this.unexpected(); + return this.parseClass(this.maybeTakeDecorators(decorators, node), true); + case 69: + return this.parseIfStatement(node); + case 70: + return this.parseReturnStatement(node); + case 71: + return this.parseSwitchStatement(node); + case 72: + return this.parseThrowStatement(node); + case 73: + return this.parseTryStatement(node); + case 96: + if (!this.state.containsEsc && this.startsAwaitUsing()) { + if (!this.isAwaitAllowed()) { + this.raise(Errors.AwaitUsingNotInAsyncContext, { + at: node + }); + } else if (!allowDeclaration) { + this.raise(Errors.UnexpectedLexicalDeclaration, { + at: node + }); + } + this.next(); + return this.parseVarStatement(node, "await using"); + } + break; + case 107: + if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifier()) { + break; + } + this.expectPlugin("explicitResourceManagement"); + if (!this.scope.inModule && this.scope.inTopLevel) { + this.raise(Errors.UnexpectedUsingDeclaration, { + at: this.state.startLoc + }); + } else if (!allowDeclaration) { + this.raise(Errors.UnexpectedLexicalDeclaration, { + at: this.state.startLoc + }); + } + return this.parseVarStatement(node, "using"); + case 100: + { + if (this.state.containsEsc) { + break; + } + const next = this.nextTokenStart(); + const nextCh = this.codePointAtPos(next); + if (nextCh !== 91) { + if (!allowDeclaration && this.hasFollowingLineBreak()) break; + if (!this.chStartsBindingIdentifier(nextCh, next) && nextCh !== 123) { + break; + } + } + } + case 75: + { + if (!allowDeclaration) { + this.raise(Errors.UnexpectedLexicalDeclaration, { + at: this.state.startLoc + }); + } + } + case 74: + { + const kind = this.state.value; + return this.parseVarStatement(node, kind); + } + case 92: + return this.parseWhileStatement(node); + case 76: + return this.parseWithStatement(node); + case 5: + return this.parseBlock(); + case 13: + return this.parseEmptyStatement(node); + case 83: + { + const nextTokenCharCode = this.lookaheadCharCode(); + if (nextTokenCharCode === 40 || nextTokenCharCode === 46) { + break; + } + } + case 82: + { + if (!this.options.allowImportExportEverywhere && !topLevel) { + this.raise(Errors.UnexpectedImportExport, { + at: this.state.startLoc + }); + } + this.next(); + let result; + if (starttype === 83) { + result = this.parseImport(node); + if (result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value")) { + this.sawUnambiguousESM = true; + } + } else { + result = this.parseExport(node, decorators); + if (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") { + this.sawUnambiguousESM = true; + } + } + this.assertModuleNodeAllowed(result); + return result; + } + default: + { + if (this.isAsyncFunction()) { + if (!allowDeclaration) { + this.raise(Errors.AsyncFunctionInSingleStatementContext, { + at: this.state.startLoc + }); + } + this.next(); + return this.parseFunctionStatement(node, true, !allowDeclaration && allowFunctionDeclaration); + } + } + } + const maybeName = this.state.value; + const expr = this.parseExpression(); + if (tokenIsIdentifier(starttype) && expr.type === "Identifier" && this.eat(14)) { + return this.parseLabeledStatement(node, maybeName, expr, flags); + } else { + return this.parseExpressionStatement(node, expr, decorators); + } + } + assertModuleNodeAllowed(node) { + if (!this.options.allowImportExportEverywhere && !this.inModule) { + this.raise(Errors.ImportOutsideModule, { + at: node + }); + } + } + decoratorsEnabledBeforeExport() { + if (this.hasPlugin("decorators-legacy")) return true; + return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") !== false; + } + maybeTakeDecorators(maybeDecorators, classNode, exportNode) { + if (maybeDecorators) { + if (classNode.decorators && classNode.decorators.length > 0) { + if (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") !== "boolean") { + this.raise(Errors.DecoratorsBeforeAfterExport, { + at: classNode.decorators[0] + }); + } + classNode.decorators.unshift(...maybeDecorators); + } else { + classNode.decorators = maybeDecorators; + } + this.resetStartLocationFromNode(classNode, maybeDecorators[0]); + if (exportNode) this.resetStartLocationFromNode(exportNode, classNode); + } + return classNode; + } + canHaveLeadingDecorator() { + return this.match(80); + } + parseDecorators(allowExport) { + const decorators = []; + do { + decorators.push(this.parseDecorator()); + } while (this.match(26)); + if (this.match(82)) { + if (!allowExport) { + this.unexpected(); + } + if (!this.decoratorsEnabledBeforeExport()) { + this.raise(Errors.DecoratorExportClass, { + at: this.state.startLoc + }); + } + } else if (!this.canHaveLeadingDecorator()) { + throw this.raise(Errors.UnexpectedLeadingDecorator, { + at: this.state.startLoc + }); + } + return decorators; + } + parseDecorator() { + this.expectOnePlugin(["decorators", "decorators-legacy"]); + const node = this.startNode(); + this.next(); + if (this.hasPlugin("decorators")) { + const startLoc = this.state.startLoc; + let expr; + if (this.match(10)) { + const startLoc = this.state.startLoc; + this.next(); + expr = this.parseExpression(); + this.expect(11); + expr = this.wrapParenthesis(startLoc, expr); + const paramsStartLoc = this.state.startLoc; + node.expression = this.parseMaybeDecoratorArguments(expr); + if (this.getPluginOption("decorators", "allowCallParenthesized") === false && node.expression !== expr) { + this.raise(Errors.DecoratorArgumentsOutsideParentheses, { + at: paramsStartLoc + }); + } + } else { + expr = this.parseIdentifier(false); + while (this.eat(16)) { + const node = this.startNodeAt(startLoc); + node.object = expr; + if (this.match(138)) { + this.classScope.usePrivateName(this.state.value, this.state.startLoc); + node.property = this.parsePrivateName(); + } else { + node.property = this.parseIdentifier(true); + } + node.computed = false; + expr = this.finishNode(node, "MemberExpression"); + } + node.expression = this.parseMaybeDecoratorArguments(expr); + } + } else { + node.expression = this.parseExprSubscripts(); + } + return this.finishNode(node, "Decorator"); + } + parseMaybeDecoratorArguments(expr) { + if (this.eat(10)) { + const node = this.startNodeAtNode(expr); + node.callee = expr; + node.arguments = this.parseCallExpressionArguments(11, false); + this.toReferencedList(node.arguments); + return this.finishNode(node, "CallExpression"); + } + return expr; + } + parseBreakContinueStatement(node, isBreak) { + this.next(); + if (this.isLineTerminator()) { + node.label = null; + } else { + node.label = this.parseIdentifier(); + this.semicolon(); + } + this.verifyBreakContinue(node, isBreak); + return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement"); + } + verifyBreakContinue(node, isBreak) { + let i; + for (i = 0; i < this.state.labels.length; ++i) { + const lab = this.state.labels[i]; + if (node.label == null || lab.name === node.label.name) { + if (lab.kind != null && (isBreak || lab.kind === "loop")) break; + if (node.label && isBreak) break; + } + } + if (i === this.state.labels.length) { + const type = isBreak ? "BreakStatement" : "ContinueStatement"; + this.raise(Errors.IllegalBreakContinue, { + at: node, + type + }); + } + } + parseDebuggerStatement(node) { + this.next(); + this.semicolon(); + return this.finishNode(node, "DebuggerStatement"); + } + parseHeaderExpression() { + this.expect(10); + const val = this.parseExpression(); + this.expect(11); + return val; + } + parseDoWhileStatement(node) { + this.next(); + this.state.labels.push(loopLabel); + node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); + this.state.labels.pop(); + this.expect(92); + node.test = this.parseHeaderExpression(); + this.eat(13); + return this.finishNode(node, "DoWhileStatement"); + } + parseForStatement(node) { + this.next(); + this.state.labels.push(loopLabel); + let awaitAt = null; + if (this.isAwaitAllowed() && this.eatContextual(96)) { + awaitAt = this.state.lastTokStartLoc; + } + this.scope.enter(0); + this.expect(10); + if (this.match(13)) { + if (awaitAt !== null) { + this.unexpected(awaitAt); + } + return this.parseFor(node, null); + } + const startsWithLet = this.isContextual(100); + { + const startsWithAwaitUsing = this.isContextual(96) && this.startsAwaitUsing(); + const starsWithUsingDeclaration = startsWithAwaitUsing || this.isContextual(107) && this.startsUsingForOf(); + const isLetOrUsing = startsWithLet && this.hasFollowingBindingAtom() || starsWithUsingDeclaration; + if (this.match(74) || this.match(75) || isLetOrUsing) { + const initNode = this.startNode(); + let kind; + if (startsWithAwaitUsing) { + kind = "await using"; + if (!this.isAwaitAllowed()) { + this.raise(Errors.AwaitUsingNotInAsyncContext, { + at: this.state.startLoc + }); + } + this.next(); + } else { + kind = this.state.value; + } + this.next(); + this.parseVar(initNode, true, kind); + const init = this.finishNode(initNode, "VariableDeclaration"); + const isForIn = this.match(58); + if (isForIn && starsWithUsingDeclaration) { + this.raise(Errors.ForInUsing, { + at: init + }); + } + if ((isForIn || this.isContextual(102)) && init.declarations.length === 1) { + return this.parseForIn(node, init, awaitAt); + } + if (awaitAt !== null) { + this.unexpected(awaitAt); + } + return this.parseFor(node, init); + } + } + const startsWithAsync = this.isContextual(95); + const refExpressionErrors = new ExpressionErrors(); + const init = this.parseExpression(true, refExpressionErrors); + const isForOf = this.isContextual(102); + if (isForOf) { + if (startsWithLet) { + this.raise(Errors.ForOfLet, { + at: init + }); + } + if (awaitAt === null && startsWithAsync && init.type === "Identifier") { + this.raise(Errors.ForOfAsync, { + at: init + }); + } + } + if (isForOf || this.match(58)) { + this.checkDestructuringPrivate(refExpressionErrors); + this.toAssignable(init, true); + const type = isForOf ? "ForOfStatement" : "ForInStatement"; + this.checkLVal(init, { + in: { + type + } + }); + return this.parseForIn(node, init, awaitAt); + } else { + this.checkExpressionErrors(refExpressionErrors, true); + } + if (awaitAt !== null) { + this.unexpected(awaitAt); + } + return this.parseFor(node, init); + } + parseFunctionStatement(node, isAsync, isHangingDeclaration) { + this.next(); + return this.parseFunction(node, 1 | (isHangingDeclaration ? 2 : 0) | (isAsync ? 8 : 0)); + } + parseIfStatement(node) { + this.next(); + node.test = this.parseHeaderExpression(); + node.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(); + node.alternate = this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null; + return this.finishNode(node, "IfStatement"); + } + parseReturnStatement(node) { + if (!this.prodParam.hasReturn && !this.options.allowReturnOutsideFunction) { + this.raise(Errors.IllegalReturn, { + at: this.state.startLoc + }); + } + this.next(); + if (this.isLineTerminator()) { + node.argument = null; + } else { + node.argument = this.parseExpression(); + this.semicolon(); + } + return this.finishNode(node, "ReturnStatement"); + } + parseSwitchStatement(node) { + this.next(); + node.discriminant = this.parseHeaderExpression(); + const cases = node.cases = []; + this.expect(5); + this.state.labels.push(switchLabel); + this.scope.enter(0); + let cur; + for (let sawDefault; !this.match(8);) { + if (this.match(61) || this.match(65)) { + const isCase = this.match(61); + if (cur) this.finishNode(cur, "SwitchCase"); + cases.push(cur = this.startNode()); + cur.consequent = []; + this.next(); + if (isCase) { + cur.test = this.parseExpression(); + } else { + if (sawDefault) { + this.raise(Errors.MultipleDefaultsInSwitch, { + at: this.state.lastTokStartLoc + }); + } + sawDefault = true; + cur.test = null; + } + this.expect(14); + } else { + if (cur) { + cur.consequent.push(this.parseStatementListItem()); + } else { + this.unexpected(); + } + } + } + this.scope.exit(); + if (cur) this.finishNode(cur, "SwitchCase"); + this.next(); + this.state.labels.pop(); + return this.finishNode(node, "SwitchStatement"); + } + parseThrowStatement(node) { + this.next(); + if (this.hasPrecedingLineBreak()) { + this.raise(Errors.NewlineAfterThrow, { + at: this.state.lastTokEndLoc + }); + } + node.argument = this.parseExpression(); + this.semicolon(); + return this.finishNode(node, "ThrowStatement"); + } + parseCatchClauseParam() { + const param = this.parseBindingAtom(); + this.scope.enter(this.options.annexB && param.type === "Identifier" ? 8 : 0); + this.checkLVal(param, { + in: { + type: "CatchClause" + }, + binding: 9 + }); + return param; + } + parseTryStatement(node) { + this.next(); + node.block = this.parseBlock(); + node.handler = null; + if (this.match(62)) { + const clause = this.startNode(); + this.next(); + if (this.match(10)) { + this.expect(10); + clause.param = this.parseCatchClauseParam(); + this.expect(11); + } else { + clause.param = null; + this.scope.enter(0); + } + clause.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(false, false)); + this.scope.exit(); + node.handler = this.finishNode(clause, "CatchClause"); + } + node.finalizer = this.eat(67) ? this.parseBlock() : null; + if (!node.handler && !node.finalizer) { + this.raise(Errors.NoCatchOrFinally, { + at: node + }); + } + return this.finishNode(node, "TryStatement"); + } + parseVarStatement(node, kind, allowMissingInitializer = false) { + this.next(); + this.parseVar(node, false, kind, allowMissingInitializer); + this.semicolon(); + return this.finishNode(node, "VariableDeclaration"); + } + parseWhileStatement(node) { + this.next(); + node.test = this.parseHeaderExpression(); + this.state.labels.push(loopLabel); + node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); + this.state.labels.pop(); + return this.finishNode(node, "WhileStatement"); + } + parseWithStatement(node) { + if (this.state.strict) { + this.raise(Errors.StrictWith, { + at: this.state.startLoc + }); + } + this.next(); + node.object = this.parseHeaderExpression(); + node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); + return this.finishNode(node, "WithStatement"); + } + parseEmptyStatement(node) { + this.next(); + return this.finishNode(node, "EmptyStatement"); + } + parseLabeledStatement(node, maybeName, expr, flags) { + for (const label of this.state.labels) { + if (label.name === maybeName) { + this.raise(Errors.LabelRedeclaration, { + at: expr, + labelName: maybeName + }); + } + } + const kind = tokenIsLoop(this.state.type) ? "loop" : this.match(71) ? "switch" : null; + for (let i = this.state.labels.length - 1; i >= 0; i--) { + const label = this.state.labels[i]; + if (label.statementStart === node.start) { + label.statementStart = this.state.start; + label.kind = kind; + } else { + break; + } + } + this.state.labels.push({ + name: maybeName, + kind: kind, + statementStart: this.state.start + }); + node.body = flags & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(true) : this.parseStatement(); + this.state.labels.pop(); + node.label = expr; + return this.finishNode(node, "LabeledStatement"); + } + parseExpressionStatement(node, expr, decorators) { + node.expression = expr; + this.semicolon(); + return this.finishNode(node, "ExpressionStatement"); + } + parseBlock(allowDirectives = false, createNewLexicalScope = true, afterBlockParse) { + const node = this.startNode(); + if (allowDirectives) { + this.state.strictErrors.clear(); + } + this.expect(5); + if (createNewLexicalScope) { + this.scope.enter(0); + } + this.parseBlockBody(node, allowDirectives, false, 8, afterBlockParse); + if (createNewLexicalScope) { + this.scope.exit(); + } + return this.finishNode(node, "BlockStatement"); + } + isValidDirective(stmt) { + return stmt.type === "ExpressionStatement" && stmt.expression.type === "StringLiteral" && !stmt.expression.extra.parenthesized; + } + parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) { + const body = node.body = []; + const directives = node.directives = []; + this.parseBlockOrModuleBlockBody(body, allowDirectives ? directives : undefined, topLevel, end, afterBlockParse); + } + parseBlockOrModuleBlockBody(body, directives, topLevel, end, afterBlockParse) { + const oldStrict = this.state.strict; + let hasStrictModeDirective = false; + let parsedNonDirective = false; + while (!this.match(end)) { + const stmt = topLevel ? this.parseModuleItem() : this.parseStatementListItem(); + if (directives && !parsedNonDirective) { + if (this.isValidDirective(stmt)) { + const directive = this.stmtToDirective(stmt); + directives.push(directive); + if (!hasStrictModeDirective && directive.value.value === "use strict") { + hasStrictModeDirective = true; + this.setStrict(true); + } + continue; + } + parsedNonDirective = true; + this.state.strictErrors.clear(); + } + body.push(stmt); + } + afterBlockParse == null || afterBlockParse.call(this, hasStrictModeDirective); + if (!oldStrict) { + this.setStrict(false); + } + this.next(); + } + parseFor(node, init) { + node.init = init; + this.semicolon(false); + node.test = this.match(13) ? null : this.parseExpression(); + this.semicolon(false); + node.update = this.match(11) ? null : this.parseExpression(); + this.expect(11); + node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); + this.scope.exit(); + this.state.labels.pop(); + return this.finishNode(node, "ForStatement"); + } + parseForIn(node, init, awaitAt) { + const isForIn = this.match(58); + this.next(); + if (isForIn) { + if (awaitAt !== null) this.unexpected(awaitAt); + } else { + node.await = awaitAt !== null; + } + if (init.type === "VariableDeclaration" && init.declarations[0].init != null && (!isForIn || !this.options.annexB || this.state.strict || init.kind !== "var" || init.declarations[0].id.type !== "Identifier")) { + this.raise(Errors.ForInOfLoopInitializer, { + at: init, + type: isForIn ? "ForInStatement" : "ForOfStatement" + }); + } + if (init.type === "AssignmentPattern") { + this.raise(Errors.InvalidLhs, { + at: init, + ancestor: { + type: "ForStatement" + } + }); + } + node.left = init; + node.right = isForIn ? this.parseExpression() : this.parseMaybeAssignAllowIn(); + this.expect(11); + node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()); + this.scope.exit(); + this.state.labels.pop(); + return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement"); + } + parseVar(node, isFor, kind, allowMissingInitializer = false) { + const declarations = node.declarations = []; + node.kind = kind; + for (;;) { + const decl = this.startNode(); + this.parseVarId(decl, kind); + decl.init = !this.eat(29) ? null : isFor ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn(); + if (decl.init === null && !allowMissingInitializer) { + if (decl.id.type !== "Identifier" && !(isFor && (this.match(58) || this.isContextual(102)))) { + this.raise(Errors.DeclarationMissingInitializer, { + at: this.state.lastTokEndLoc, + kind: "destructuring" + }); + } else if (kind === "const" && !(this.match(58) || this.isContextual(102))) { + this.raise(Errors.DeclarationMissingInitializer, { + at: this.state.lastTokEndLoc, + kind: "const" + }); + } + } + declarations.push(this.finishNode(decl, "VariableDeclarator")); + if (!this.eat(12)) break; + } + return node; + } + parseVarId(decl, kind) { + const id = this.parseBindingAtom(); + this.checkLVal(id, { + in: { + type: "VariableDeclarator" + }, + binding: kind === "var" ? 5 : 8201 + }); + decl.id = id; + } + parseAsyncFunctionExpression(node) { + return this.parseFunction(node, 8); + } + parseFunction(node, flags = 0) { + const hangingDeclaration = flags & 2; + const isDeclaration = !!(flags & 1); + const requireId = isDeclaration && !(flags & 4); + const isAsync = !!(flags & 8); + this.initFunction(node, isAsync); + if (this.match(55)) { + if (hangingDeclaration) { + this.raise(Errors.GeneratorInSingleStatementContext, { + at: this.state.startLoc + }); + } + this.next(); + node.generator = true; + } + if (isDeclaration) { + node.id = this.parseFunctionId(requireId); + } + const oldMaybeInArrowParameters = this.state.maybeInArrowParameters; + this.state.maybeInArrowParameters = false; + this.scope.enter(2); + this.prodParam.enter(functionFlags(isAsync, node.generator)); + if (!isDeclaration) { + node.id = this.parseFunctionId(); + } + this.parseFunctionParams(node, false); + this.withSmartMixTopicForbiddingContext(() => { + this.parseFunctionBodyAndFinish(node, isDeclaration ? "FunctionDeclaration" : "FunctionExpression"); + }); + this.prodParam.exit(); + this.scope.exit(); + if (isDeclaration && !hangingDeclaration) { + this.registerFunctionStatementId(node); + } + this.state.maybeInArrowParameters = oldMaybeInArrowParameters; + return node; + } + parseFunctionId(requireId) { + return requireId || tokenIsIdentifier(this.state.type) ? this.parseIdentifier() : null; + } + parseFunctionParams(node, isConstructor) { + this.expect(10); + this.expressionScope.enter(newParameterDeclarationScope()); + node.params = this.parseBindingList(11, 41, 2 | (isConstructor ? 4 : 0)); + this.expressionScope.exit(); + } + registerFunctionStatementId(node) { + if (!node.id) return; + this.scope.declareName(node.id.name, !this.options.annexB || this.state.strict || node.generator || node.async ? this.scope.treatFunctionsAsVar ? 5 : 8201 : 17, node.id.loc.start); + } + parseClass(node, isStatement, optionalId) { + this.next(); + const oldStrict = this.state.strict; + this.state.strict = true; + this.parseClassId(node, isStatement, optionalId); + this.parseClassSuper(node); + node.body = this.parseClassBody(!!node.superClass, oldStrict); + return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression"); } -})); -Object.defineProperty(exports, "ArgumentPlaceholder", ({ - enumerable: true, - get: function () { - return _index.argumentPlaceholder; + isClassProperty() { + return this.match(29) || this.match(13) || this.match(8); } -})); -Object.defineProperty(exports, "ArrayExpression", ({ - enumerable: true, - get: function () { - return _index.arrayExpression; + isClassMethod() { + return this.match(10); } -})); -Object.defineProperty(exports, "ArrayPattern", ({ - enumerable: true, - get: function () { - return _index.arrayPattern; + isNonstaticConstructor(method) { + return !method.computed && !method.static && (method.key.name === "constructor" || method.key.value === "constructor"); } -})); -Object.defineProperty(exports, "ArrayTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.arrayTypeAnnotation; + parseClassBody(hadSuperClass, oldStrict) { + this.classScope.enter(); + const state = { + hadConstructor: false, + hadSuperClass + }; + let decorators = []; + const classBody = this.startNode(); + classBody.body = []; + this.expect(5); + this.withSmartMixTopicForbiddingContext(() => { + while (!this.match(8)) { + if (this.eat(13)) { + if (decorators.length > 0) { + throw this.raise(Errors.DecoratorSemicolon, { + at: this.state.lastTokEndLoc + }); + } + continue; + } + if (this.match(26)) { + decorators.push(this.parseDecorator()); + continue; + } + const member = this.startNode(); + if (decorators.length) { + member.decorators = decorators; + this.resetStartLocationFromNode(member, decorators[0]); + decorators = []; + } + this.parseClassMember(classBody, member, state); + if (member.kind === "constructor" && member.decorators && member.decorators.length > 0) { + this.raise(Errors.DecoratorConstructor, { + at: member + }); + } + } + }); + this.state.strict = oldStrict; + this.next(); + if (decorators.length) { + throw this.raise(Errors.TrailingDecorator, { + at: this.state.startLoc + }); + } + this.classScope.exit(); + return this.finishNode(classBody, "ClassBody"); } -})); -Object.defineProperty(exports, "ArrowFunctionExpression", ({ - enumerable: true, - get: function () { - return _index.arrowFunctionExpression; + parseClassMemberFromModifier(classBody, member) { + const key = this.parseIdentifier(true); + if (this.isClassMethod()) { + const method = member; + method.kind = "method"; + method.computed = false; + method.key = key; + method.static = false; + this.pushClassMethod(classBody, method, false, false, false, false); + return true; + } else if (this.isClassProperty()) { + const prop = member; + prop.computed = false; + prop.key = key; + prop.static = false; + classBody.body.push(this.parseClassProperty(prop)); + return true; + } + this.resetPreviousNodeTrailingComments(key); + return false; } -})); -Object.defineProperty(exports, "AssignmentExpression", ({ - enumerable: true, - get: function () { - return _index.assignmentExpression; + parseClassMember(classBody, member, state) { + const isStatic = this.isContextual(106); + if (isStatic) { + if (this.parseClassMemberFromModifier(classBody, member)) { + return; + } + if (this.eat(5)) { + this.parseClassStaticBlock(classBody, member); + return; + } + } + this.parseClassMemberWithIsStatic(classBody, member, state, isStatic); } -})); -Object.defineProperty(exports, "AssignmentPattern", ({ - enumerable: true, - get: function () { - return _index.assignmentPattern; + parseClassMemberWithIsStatic(classBody, member, state, isStatic) { + const publicMethod = member; + const privateMethod = member; + const publicProp = member; + const privateProp = member; + const accessorProp = member; + const method = publicMethod; + const publicMember = publicMethod; + member.static = isStatic; + this.parsePropertyNamePrefixOperator(member); + if (this.eat(55)) { + method.kind = "method"; + const isPrivateName = this.match(138); + this.parseClassElementName(method); + if (isPrivateName) { + this.pushClassPrivateMethod(classBody, privateMethod, true, false); + return; + } + if (this.isNonstaticConstructor(publicMethod)) { + this.raise(Errors.ConstructorIsGenerator, { + at: publicMethod.key + }); + } + this.pushClassMethod(classBody, publicMethod, true, false, false, false); + return; + } + const isContextual = tokenIsIdentifier(this.state.type) && !this.state.containsEsc; + const isPrivate = this.match(138); + const key = this.parseClassElementName(member); + const maybeQuestionTokenStartLoc = this.state.startLoc; + this.parsePostMemberNameModifiers(publicMember); + if (this.isClassMethod()) { + method.kind = "method"; + if (isPrivate) { + this.pushClassPrivateMethod(classBody, privateMethod, false, false); + return; + } + const isConstructor = this.isNonstaticConstructor(publicMethod); + let allowsDirectSuper = false; + if (isConstructor) { + publicMethod.kind = "constructor"; + if (state.hadConstructor && !this.hasPlugin("typescript")) { + this.raise(Errors.DuplicateConstructor, { + at: key + }); + } + if (isConstructor && this.hasPlugin("typescript") && member.override) { + this.raise(Errors.OverrideOnConstructor, { + at: key + }); + } + state.hadConstructor = true; + allowsDirectSuper = state.hadSuperClass; + } + this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper); + } else if (this.isClassProperty()) { + if (isPrivate) { + this.pushClassPrivateProperty(classBody, privateProp); + } else { + this.pushClassProperty(classBody, publicProp); + } + } else if (isContextual && key.name === "async" && !this.isLineTerminator()) { + this.resetPreviousNodeTrailingComments(key); + const isGenerator = this.eat(55); + if (publicMember.optional) { + this.unexpected(maybeQuestionTokenStartLoc); + } + method.kind = "method"; + const isPrivate = this.match(138); + this.parseClassElementName(method); + this.parsePostMemberNameModifiers(publicMember); + if (isPrivate) { + this.pushClassPrivateMethod(classBody, privateMethod, isGenerator, true); + } else { + if (this.isNonstaticConstructor(publicMethod)) { + this.raise(Errors.ConstructorIsAsync, { + at: publicMethod.key + }); + } + this.pushClassMethod(classBody, publicMethod, isGenerator, true, false, false); + } + } else if (isContextual && (key.name === "get" || key.name === "set") && !(this.match(55) && this.isLineTerminator())) { + this.resetPreviousNodeTrailingComments(key); + method.kind = key.name; + const isPrivate = this.match(138); + this.parseClassElementName(publicMethod); + if (isPrivate) { + this.pushClassPrivateMethod(classBody, privateMethod, false, false); + } else { + if (this.isNonstaticConstructor(publicMethod)) { + this.raise(Errors.ConstructorIsAccessor, { + at: publicMethod.key + }); + } + this.pushClassMethod(classBody, publicMethod, false, false, false, false); + } + this.checkGetterSetterParams(publicMethod); + } else if (isContextual && key.name === "accessor" && !this.isLineTerminator()) { + this.expectPlugin("decoratorAutoAccessors"); + this.resetPreviousNodeTrailingComments(key); + const isPrivate = this.match(138); + this.parseClassElementName(publicProp); + this.pushClassAccessorProperty(classBody, accessorProp, isPrivate); + } else if (this.isLineTerminator()) { + if (isPrivate) { + this.pushClassPrivateProperty(classBody, privateProp); + } else { + this.pushClassProperty(classBody, publicProp); + } + } else { + this.unexpected(); + } } -})); -Object.defineProperty(exports, "AwaitExpression", ({ - enumerable: true, - get: function () { - return _index.awaitExpression; + parseClassElementName(member) { + const { + type, + value + } = this.state; + if ((type === 132 || type === 133) && member.static && value === "prototype") { + this.raise(Errors.StaticPrototype, { + at: this.state.startLoc + }); + } + if (type === 138) { + if (value === "constructor") { + this.raise(Errors.ConstructorClassPrivateField, { + at: this.state.startLoc + }); + } + const key = this.parsePrivateName(); + member.key = key; + return key; + } + return this.parsePropertyName(member); } -})); -Object.defineProperty(exports, "BigIntLiteral", ({ - enumerable: true, - get: function () { - return _index.bigIntLiteral; + parseClassStaticBlock(classBody, member) { + var _member$decorators; + this.scope.enter(64 | 128 | 16); + const oldLabels = this.state.labels; + this.state.labels = []; + this.prodParam.enter(0); + const body = member.body = []; + this.parseBlockOrModuleBlockBody(body, undefined, false, 8); + this.prodParam.exit(); + this.scope.exit(); + this.state.labels = oldLabels; + classBody.body.push(this.finishNode(member, "StaticBlock")); + if ((_member$decorators = member.decorators) != null && _member$decorators.length) { + this.raise(Errors.DecoratorStaticBlock, { + at: member + }); + } } -})); -Object.defineProperty(exports, "BinaryExpression", ({ - enumerable: true, - get: function () { - return _index.binaryExpression; + pushClassProperty(classBody, prop) { + if (!prop.computed && (prop.key.name === "constructor" || prop.key.value === "constructor")) { + this.raise(Errors.ConstructorClassField, { + at: prop.key + }); + } + classBody.body.push(this.parseClassProperty(prop)); } -})); -Object.defineProperty(exports, "BindExpression", ({ - enumerable: true, - get: function () { - return _index.bindExpression; + pushClassPrivateProperty(classBody, prop) { + const node = this.parseClassPrivateProperty(prop); + classBody.body.push(node); + this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), 0, node.key.loc.start); } -})); -Object.defineProperty(exports, "BlockStatement", ({ - enumerable: true, - get: function () { - return _index.blockStatement; + pushClassAccessorProperty(classBody, prop, isPrivate) { + if (!isPrivate && !prop.computed) { + const key = prop.key; + if (key.name === "constructor" || key.value === "constructor") { + this.raise(Errors.ConstructorClassField, { + at: key + }); + } + } + const node = this.parseClassAccessorProperty(prop); + classBody.body.push(node); + if (isPrivate) { + this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), 0, node.key.loc.start); + } } -})); -Object.defineProperty(exports, "BooleanLiteral", ({ - enumerable: true, - get: function () { - return _index.booleanLiteral; + pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) { + classBody.body.push(this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true)); } -})); -Object.defineProperty(exports, "BooleanLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.booleanLiteralTypeAnnotation; + pushClassPrivateMethod(classBody, method, isGenerator, isAsync) { + const node = this.parseMethod(method, isGenerator, isAsync, false, false, "ClassPrivateMethod", true); + classBody.body.push(node); + const kind = node.kind === "get" ? node.static ? 6 : 2 : node.kind === "set" ? node.static ? 5 : 1 : 0; + this.declareClassPrivateMethodInScope(node, kind); } -})); -Object.defineProperty(exports, "BooleanTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.booleanTypeAnnotation; + declareClassPrivateMethodInScope(node, kind) { + this.classScope.declarePrivateName(this.getPrivateNameSV(node.key), kind, node.key.loc.start); } -})); -Object.defineProperty(exports, "BreakStatement", ({ - enumerable: true, - get: function () { - return _index.breakStatement; + parsePostMemberNameModifiers(methodOrProp) {} + parseClassPrivateProperty(node) { + this.parseInitializer(node); + this.semicolon(); + return this.finishNode(node, "ClassPrivateProperty"); } -})); -Object.defineProperty(exports, "CallExpression", ({ - enumerable: true, - get: function () { - return _index.callExpression; + parseClassProperty(node) { + this.parseInitializer(node); + this.semicolon(); + return this.finishNode(node, "ClassProperty"); } -})); -Object.defineProperty(exports, "CatchClause", ({ - enumerable: true, - get: function () { - return _index.catchClause; + parseClassAccessorProperty(node) { + this.parseInitializer(node); + this.semicolon(); + return this.finishNode(node, "ClassAccessorProperty"); } -})); -Object.defineProperty(exports, "ClassAccessorProperty", ({ - enumerable: true, - get: function () { - return _index.classAccessorProperty; + parseInitializer(node) { + this.scope.enter(64 | 16); + this.expressionScope.enter(newExpressionScope()); + this.prodParam.enter(0); + node.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null; + this.expressionScope.exit(); + this.prodParam.exit(); + this.scope.exit(); } -})); -Object.defineProperty(exports, "ClassBody", ({ - enumerable: true, - get: function () { - return _index.classBody; + parseClassId(node, isStatement, optionalId, bindingType = 8331) { + if (tokenIsIdentifier(this.state.type)) { + node.id = this.parseIdentifier(); + if (isStatement) { + this.declareNameFromIdentifier(node.id, bindingType); + } + } else { + if (optionalId || !isStatement) { + node.id = null; + } else { + throw this.raise(Errors.MissingClassName, { + at: this.state.startLoc + }); + } + } } -})); -Object.defineProperty(exports, "ClassDeclaration", ({ - enumerable: true, - get: function () { - return _index.classDeclaration; + parseClassSuper(node) { + node.superClass = this.eat(81) ? this.parseExprSubscripts() : null; } -})); -Object.defineProperty(exports, "ClassExpression", ({ - enumerable: true, - get: function () { - return _index.classExpression; + parseExport(node, decorators) { + const maybeDefaultIdentifier = this.parseMaybeImportPhase(node, true); + const hasDefault = this.maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier); + const parseAfterDefault = !hasDefault || this.eat(12); + const hasStar = parseAfterDefault && this.eatExportStar(node); + const hasNamespace = hasStar && this.maybeParseExportNamespaceSpecifier(node); + const parseAfterNamespace = parseAfterDefault && (!hasNamespace || this.eat(12)); + const isFromRequired = hasDefault || hasStar; + if (hasStar && !hasNamespace) { + if (hasDefault) this.unexpected(); + if (decorators) { + throw this.raise(Errors.UnsupportedDecoratorExport, { + at: node + }); + } + this.parseExportFrom(node, true); + return this.finishNode(node, "ExportAllDeclaration"); + } + const hasSpecifiers = this.maybeParseExportNamedSpecifiers(node); + if (hasDefault && parseAfterDefault && !hasStar && !hasSpecifiers) { + this.unexpected(null, 5); + } + if (hasNamespace && parseAfterNamespace) { + this.unexpected(null, 98); + } + let hasDeclaration; + if (isFromRequired || hasSpecifiers) { + hasDeclaration = false; + if (decorators) { + throw this.raise(Errors.UnsupportedDecoratorExport, { + at: node + }); + } + this.parseExportFrom(node, isFromRequired); + } else { + hasDeclaration = this.maybeParseExportDeclaration(node); + } + if (isFromRequired || hasSpecifiers || hasDeclaration) { + var _node2$declaration; + const node2 = node; + this.checkExport(node2, true, false, !!node2.source); + if (((_node2$declaration = node2.declaration) == null ? void 0 : _node2$declaration.type) === "ClassDeclaration") { + this.maybeTakeDecorators(decorators, node2.declaration, node2); + } else if (decorators) { + throw this.raise(Errors.UnsupportedDecoratorExport, { + at: node + }); + } + return this.finishNode(node2, "ExportNamedDeclaration"); + } + if (this.eat(65)) { + const node2 = node; + const decl = this.parseExportDefaultExpression(); + node2.declaration = decl; + if (decl.type === "ClassDeclaration") { + this.maybeTakeDecorators(decorators, decl, node2); + } else if (decorators) { + throw this.raise(Errors.UnsupportedDecoratorExport, { + at: node + }); + } + this.checkExport(node2, true, true); + return this.finishNode(node2, "ExportDefaultDeclaration"); + } + this.unexpected(null, 5); } -})); -Object.defineProperty(exports, "ClassImplements", ({ - enumerable: true, - get: function () { - return _index.classImplements; + eatExportStar(node) { + return this.eat(55); } -})); -Object.defineProperty(exports, "ClassMethod", ({ - enumerable: true, - get: function () { - return _index.classMethod; + maybeParseExportDefaultSpecifier(node, maybeDefaultIdentifier) { + if (maybeDefaultIdentifier || this.isExportDefaultSpecifier()) { + this.expectPlugin("exportDefaultFrom", maybeDefaultIdentifier == null ? void 0 : maybeDefaultIdentifier.loc.start); + const id = maybeDefaultIdentifier || this.parseIdentifier(true); + const specifier = this.startNodeAtNode(id); + specifier.exported = id; + node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]; + return true; + } + return false; + } + maybeParseExportNamespaceSpecifier(node) { + if (this.isContextual(93)) { + if (!node.specifiers) node.specifiers = []; + const specifier = this.startNodeAt(this.state.lastTokStartLoc); + this.next(); + specifier.exported = this.parseModuleExportName(); + node.specifiers.push(this.finishNode(specifier, "ExportNamespaceSpecifier")); + return true; + } + return false; + } + maybeParseExportNamedSpecifiers(node) { + if (this.match(5)) { + if (!node.specifiers) node.specifiers = []; + const isTypeExport = node.exportKind === "type"; + node.specifiers.push(...this.parseExportSpecifiers(isTypeExport)); + node.source = null; + node.declaration = null; + if (this.hasPlugin("importAssertions")) { + node.assertions = []; + } + return true; + } + return false; } -})); -Object.defineProperty(exports, "ClassPrivateMethod", ({ - enumerable: true, - get: function () { - return _index.classPrivateMethod; + maybeParseExportDeclaration(node) { + if (this.shouldParseExportDeclaration()) { + node.specifiers = []; + node.source = null; + if (this.hasPlugin("importAssertions")) { + node.assertions = []; + } + node.declaration = this.parseExportDeclaration(node); + return true; + } + return false; } -})); -Object.defineProperty(exports, "ClassPrivateProperty", ({ - enumerable: true, - get: function () { - return _index.classPrivateProperty; + isAsyncFunction() { + if (!this.isContextual(95)) return false; + const next = this.nextTokenInLineStart(); + return this.isUnparsedContextual(next, "function"); } -})); -Object.defineProperty(exports, "ClassProperty", ({ - enumerable: true, - get: function () { - return _index.classProperty; + parseExportDefaultExpression() { + const expr = this.startNode(); + if (this.match(68)) { + this.next(); + return this.parseFunction(expr, 1 | 4); + } else if (this.isAsyncFunction()) { + this.next(); + this.next(); + return this.parseFunction(expr, 1 | 4 | 8); + } + if (this.match(80)) { + return this.parseClass(expr, true, true); + } + if (this.match(26)) { + if (this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === true) { + this.raise(Errors.DecoratorBeforeExport, { + at: this.state.startLoc + }); + } + return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false), this.startNode()), true, true); + } + if (this.match(75) || this.match(74) || this.isLet()) { + throw this.raise(Errors.UnsupportedDefaultExport, { + at: this.state.startLoc + }); + } + const res = this.parseMaybeAssignAllowIn(); + this.semicolon(); + return res; } -})); -Object.defineProperty(exports, "ConditionalExpression", ({ - enumerable: true, - get: function () { - return _index.conditionalExpression; + parseExportDeclaration(node) { + if (this.match(80)) { + const node = this.parseClass(this.startNode(), true, false); + return node; + } + return this.parseStatementListItem(); } -})); -Object.defineProperty(exports, "ContinueStatement", ({ - enumerable: true, - get: function () { - return _index.continueStatement; + isExportDefaultSpecifier() { + const { + type + } = this.state; + if (tokenIsIdentifier(type)) { + if (type === 95 && !this.state.containsEsc || type === 100) { + return false; + } + if ((type === 130 || type === 129) && !this.state.containsEsc) { + const { + type: nextType + } = this.lookahead(); + if (tokenIsIdentifier(nextType) && nextType !== 98 || nextType === 5) { + this.expectOnePlugin(["flow", "typescript"]); + return false; + } + } + } else if (!this.match(65)) { + return false; + } + const next = this.nextTokenStart(); + const hasFrom = this.isUnparsedContextual(next, "from"); + if (this.input.charCodeAt(next) === 44 || tokenIsIdentifier(this.state.type) && hasFrom) { + return true; + } + if (this.match(65) && hasFrom) { + const nextAfterFrom = this.input.charCodeAt(this.nextTokenStartSince(next + 4)); + return nextAfterFrom === 34 || nextAfterFrom === 39; + } + return false; } -})); -Object.defineProperty(exports, "DebuggerStatement", ({ - enumerable: true, - get: function () { - return _index.debuggerStatement; + parseExportFrom(node, expect) { + if (this.eatContextual(98)) { + node.source = this.parseImportSource(); + this.checkExport(node); + this.maybeParseImportAttributes(node); + this.checkJSONModuleImport(node); + } else if (expect) { + this.unexpected(); + } + this.semicolon(); } -})); -Object.defineProperty(exports, "DecimalLiteral", ({ - enumerable: true, - get: function () { - return _index.decimalLiteral; + shouldParseExportDeclaration() { + const { + type + } = this.state; + if (type === 26) { + this.expectOnePlugin(["decorators", "decorators-legacy"]); + if (this.hasPlugin("decorators")) { + if (this.getPluginOption("decorators", "decoratorsBeforeExport") === true) { + this.raise(Errors.DecoratorBeforeExport, { + at: this.state.startLoc + }); + } + return true; + } + } + return type === 74 || type === 75 || type === 68 || type === 80 || this.isLet() || this.isAsyncFunction(); } -})); -Object.defineProperty(exports, "DeclareClass", ({ - enumerable: true, - get: function () { - return _index.declareClass; + checkExport(node, checkNames, isDefault, isFrom) { + if (checkNames) { + var _node$specifiers; + if (isDefault) { + this.checkDuplicateExports(node, "default"); + if (this.hasPlugin("exportDefaultFrom")) { + var _declaration$extra; + const declaration = node.declaration; + if (declaration.type === "Identifier" && declaration.name === "from" && declaration.end - declaration.start === 4 && !((_declaration$extra = declaration.extra) != null && _declaration$extra.parenthesized)) { + this.raise(Errors.ExportDefaultFromAsIdentifier, { + at: declaration + }); + } + } + } else if ((_node$specifiers = node.specifiers) != null && _node$specifiers.length) { + for (const specifier of node.specifiers) { + const { + exported + } = specifier; + const exportName = exported.type === "Identifier" ? exported.name : exported.value; + this.checkDuplicateExports(specifier, exportName); + if (!isFrom && specifier.local) { + const { + local + } = specifier; + if (local.type !== "Identifier") { + this.raise(Errors.ExportBindingIsString, { + at: specifier, + localName: local.value, + exportName + }); + } else { + this.checkReservedWord(local.name, local.loc.start, true, false); + this.scope.checkLocalExport(local); + } + } + } + } else if (node.declaration) { + if (node.declaration.type === "FunctionDeclaration" || node.declaration.type === "ClassDeclaration") { + const id = node.declaration.id; + if (!id) throw new Error("Assertion failure"); + this.checkDuplicateExports(node, id.name); + } else if (node.declaration.type === "VariableDeclaration") { + for (const declaration of node.declaration.declarations) { + this.checkDeclaration(declaration.id); + } + } + } + } } -})); -Object.defineProperty(exports, "DeclareExportAllDeclaration", ({ - enumerable: true, - get: function () { - return _index.declareExportAllDeclaration; + checkDeclaration(node) { + if (node.type === "Identifier") { + this.checkDuplicateExports(node, node.name); + } else if (node.type === "ObjectPattern") { + for (const prop of node.properties) { + this.checkDeclaration(prop); + } + } else if (node.type === "ArrayPattern") { + for (const elem of node.elements) { + if (elem) { + this.checkDeclaration(elem); + } + } + } else if (node.type === "ObjectProperty") { + this.checkDeclaration(node.value); + } else if (node.type === "RestElement") { + this.checkDeclaration(node.argument); + } else if (node.type === "AssignmentPattern") { + this.checkDeclaration(node.left); + } } -})); -Object.defineProperty(exports, "DeclareExportDeclaration", ({ - enumerable: true, - get: function () { - return _index.declareExportDeclaration; + checkDuplicateExports(node, exportName) { + if (this.exportedIdentifiers.has(exportName)) { + if (exportName === "default") { + this.raise(Errors.DuplicateDefaultExport, { + at: node + }); + } else { + this.raise(Errors.DuplicateExport, { + at: node, + exportName + }); + } + } + this.exportedIdentifiers.add(exportName); } -})); -Object.defineProperty(exports, "DeclareFunction", ({ - enumerable: true, - get: function () { - return _index.declareFunction; + parseExportSpecifiers(isInTypeExport) { + const nodes = []; + let first = true; + this.expect(5); + while (!this.eat(8)) { + if (first) { + first = false; + } else { + this.expect(12); + if (this.eat(8)) break; + } + const isMaybeTypeOnly = this.isContextual(130); + const isString = this.match(133); + const node = this.startNode(); + node.local = this.parseModuleExportName(); + nodes.push(this.parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly)); + } + return nodes; } -})); -Object.defineProperty(exports, "DeclareInterface", ({ - enumerable: true, - get: function () { - return _index.declareInterface; + parseExportSpecifier(node, isString, isInTypeExport, isMaybeTypeOnly) { + if (this.eatContextual(93)) { + node.exported = this.parseModuleExportName(); + } else if (isString) { + node.exported = cloneStringLiteral(node.local); + } else if (!node.exported) { + node.exported = cloneIdentifier(node.local); + } + return this.finishNode(node, "ExportSpecifier"); } -})); -Object.defineProperty(exports, "DeclareModule", ({ - enumerable: true, - get: function () { - return _index.declareModule; + parseModuleExportName() { + if (this.match(133)) { + const result = this.parseStringLiteral(this.state.value); + const surrogate = result.value.match(loneSurrogate); + if (surrogate) { + this.raise(Errors.ModuleExportNameHasLoneSurrogate, { + at: result, + surrogateCharCode: surrogate[0].charCodeAt(0) + }); + } + return result; + } + return this.parseIdentifier(true); } -})); -Object.defineProperty(exports, "DeclareModuleExports", ({ - enumerable: true, - get: function () { - return _index.declareModuleExports; + isJSONModuleImport(node) { + if (node.assertions != null) { + return node.assertions.some(({ + key, + value + }) => { + return value.value === "json" && (key.type === "Identifier" ? key.name === "type" : key.value === "type"); + }); + } + return false; } -})); -Object.defineProperty(exports, "DeclareOpaqueType", ({ - enumerable: true, - get: function () { - return _index.declareOpaqueType; + checkImportReflection(node) { + const { + specifiers + } = node; + const singleBindingType = specifiers.length === 1 ? specifiers[0].type : null; + if (node.phase === "source") { + if (singleBindingType !== "ImportDefaultSpecifier") { + this.raise(Errors.SourcePhaseImportRequiresDefault, { + at: specifiers[0].loc.start + }); + } + } else if (node.phase === "defer") { + if (singleBindingType !== "ImportNamespaceSpecifier") { + this.raise(Errors.DeferImportRequiresNamespace, { + at: specifiers[0].loc.start + }); + } + } else if (node.module) { + var _node$assertions; + if (singleBindingType !== "ImportDefaultSpecifier") { + this.raise(Errors.ImportReflectionNotBinding, { + at: specifiers[0].loc.start + }); + } + if (((_node$assertions = node.assertions) == null ? void 0 : _node$assertions.length) > 0) { + this.raise(Errors.ImportReflectionHasAssertion, { + at: node.specifiers[0].loc.start + }); + } + } } -})); -Object.defineProperty(exports, "DeclareTypeAlias", ({ - enumerable: true, - get: function () { - return _index.declareTypeAlias; + checkJSONModuleImport(node) { + if (this.isJSONModuleImport(node) && node.type !== "ExportAllDeclaration") { + const { + specifiers + } = node; + if (specifiers != null) { + const nonDefaultNamedSpecifier = specifiers.find(specifier => { + let imported; + if (specifier.type === "ExportSpecifier") { + imported = specifier.local; + } else if (specifier.type === "ImportSpecifier") { + imported = specifier.imported; + } + if (imported !== undefined) { + return imported.type === "Identifier" ? imported.name !== "default" : imported.value !== "default"; + } + }); + if (nonDefaultNamedSpecifier !== undefined) { + this.raise(Errors.ImportJSONBindingNotDefault, { + at: nonDefaultNamedSpecifier.loc.start + }); + } + } + } } -})); -Object.defineProperty(exports, "DeclareVariable", ({ - enumerable: true, - get: function () { - return _index.declareVariable; + isPotentialImportPhase(isExport) { + if (isExport) return false; + return this.isContextual(105) || this.isContextual(97) || this.isContextual(127); } -})); -Object.defineProperty(exports, "DeclaredPredicate", ({ - enumerable: true, - get: function () { - return _index.declaredPredicate; + applyImportPhase(node, isExport, phase, loc) { + if (isExport) { + return; + } + if (phase === "module") { + this.expectPlugin("importReflection", loc); + node.module = true; + } else if (this.hasPlugin("importReflection")) { + node.module = false; + } + if (phase === "source") { + this.expectPlugin("sourcePhaseImports", loc); + node.phase = "source"; + } else if (phase === "defer") { + this.expectPlugin("deferredImportEvaluation", loc); + node.phase = "defer"; + } else if (this.hasPlugin("sourcePhaseImports")) { + node.phase = null; + } } -})); -Object.defineProperty(exports, "Decorator", ({ - enumerable: true, - get: function () { - return _index.decorator; + parseMaybeImportPhase(node, isExport) { + if (!this.isPotentialImportPhase(isExport)) { + this.applyImportPhase(node, isExport, null); + return null; + } + const phaseIdentifier = this.parseIdentifier(true); + const { + type + } = this.state; + const isImportPhase = tokenIsKeywordOrIdentifier(type) ? type !== 98 || this.lookaheadCharCode() === 102 : type !== 12; + if (isImportPhase) { + this.resetPreviousIdentifierLeadingComments(phaseIdentifier); + this.applyImportPhase(node, isExport, phaseIdentifier.name, phaseIdentifier.loc.start); + return null; + } else { + this.applyImportPhase(node, isExport, null); + return phaseIdentifier; + } } -})); -Object.defineProperty(exports, "Directive", ({ - enumerable: true, - get: function () { - return _index.directive; + isPrecedingIdImportPhase(phase) { + const { + type + } = this.state; + return tokenIsIdentifier(type) ? type !== 98 || this.lookaheadCharCode() === 102 : type !== 12; } -})); -Object.defineProperty(exports, "DirectiveLiteral", ({ - enumerable: true, - get: function () { - return _index.directiveLiteral; + parseImport(node) { + if (this.match(133)) { + return this.parseImportSourceAndAttributes(node); + } + return this.parseImportSpecifiersAndAfter(node, this.parseMaybeImportPhase(node, false)); } -})); -Object.defineProperty(exports, "DoExpression", ({ - enumerable: true, - get: function () { - return _index.doExpression; + parseImportSpecifiersAndAfter(node, maybeDefaultIdentifier) { + node.specifiers = []; + const hasDefault = this.maybeParseDefaultImportSpecifier(node, maybeDefaultIdentifier); + const parseNext = !hasDefault || this.eat(12); + const hasStar = parseNext && this.maybeParseStarImportSpecifier(node); + if (parseNext && !hasStar) this.parseNamedImportSpecifiers(node); + this.expectContextual(98); + return this.parseImportSourceAndAttributes(node); } -})); -Object.defineProperty(exports, "DoWhileStatement", ({ - enumerable: true, - get: function () { - return _index.doWhileStatement; + parseImportSourceAndAttributes(node) { + var _node$specifiers2; + (_node$specifiers2 = node.specifiers) != null ? _node$specifiers2 : node.specifiers = []; + node.source = this.parseImportSource(); + this.maybeParseImportAttributes(node); + this.checkImportReflection(node); + this.checkJSONModuleImport(node); + this.semicolon(); + return this.finishNode(node, "ImportDeclaration"); } -})); -Object.defineProperty(exports, "EmptyStatement", ({ - enumerable: true, - get: function () { - return _index.emptyStatement; + parseImportSource() { + if (!this.match(133)) this.unexpected(); + return this.parseExprAtom(); } -})); -Object.defineProperty(exports, "EmptyTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.emptyTypeAnnotation; + parseImportSpecifierLocal(node, specifier, type) { + specifier.local = this.parseIdentifier(); + node.specifiers.push(this.finishImportSpecifier(specifier, type)); } -})); -Object.defineProperty(exports, "EnumBooleanBody", ({ - enumerable: true, - get: function () { - return _index.enumBooleanBody; + finishImportSpecifier(specifier, type, bindingType = 8201) { + this.checkLVal(specifier.local, { + in: { + type + }, + binding: bindingType + }); + return this.finishNode(specifier, type); } -})); -Object.defineProperty(exports, "EnumBooleanMember", ({ - enumerable: true, - get: function () { - return _index.enumBooleanMember; + parseImportAttributes() { + this.expect(5); + const attrs = []; + const attrNames = new Set(); + do { + if (this.match(8)) { + break; + } + const node = this.startNode(); + const keyName = this.state.value; + if (attrNames.has(keyName)) { + this.raise(Errors.ModuleAttributesWithDuplicateKeys, { + at: this.state.startLoc, + key: keyName + }); + } + attrNames.add(keyName); + if (this.match(133)) { + node.key = this.parseStringLiteral(keyName); + } else { + node.key = this.parseIdentifier(true); + } + this.expect(14); + if (!this.match(133)) { + throw this.raise(Errors.ModuleAttributeInvalidValue, { + at: this.state.startLoc + }); + } + node.value = this.parseStringLiteral(this.state.value); + attrs.push(this.finishNode(node, "ImportAttribute")); + } while (this.eat(12)); + this.expect(8); + return attrs; + } + parseModuleAttributes() { + const attrs = []; + const attributes = new Set(); + do { + const node = this.startNode(); + node.key = this.parseIdentifier(true); + if (node.key.name !== "type") { + this.raise(Errors.ModuleAttributeDifferentFromType, { + at: node.key + }); + } + if (attributes.has(node.key.name)) { + this.raise(Errors.ModuleAttributesWithDuplicateKeys, { + at: node.key, + key: node.key.name + }); + } + attributes.add(node.key.name); + this.expect(14); + if (!this.match(133)) { + throw this.raise(Errors.ModuleAttributeInvalidValue, { + at: this.state.startLoc + }); + } + node.value = this.parseStringLiteral(this.state.value); + attrs.push(this.finishNode(node, "ImportAttribute")); + } while (this.eat(12)); + return attrs; } -})); -Object.defineProperty(exports, "EnumDeclaration", ({ - enumerable: true, - get: function () { - return _index.enumDeclaration; + maybeParseImportAttributes(node) { + let attributes; + let useWith = false; + if (this.match(76)) { + if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40) { + return; + } + this.next(); + { + if (this.hasPlugin("moduleAttributes")) { + attributes = this.parseModuleAttributes(); + } else { + this.expectImportAttributesPlugin(); + attributes = this.parseImportAttributes(); + } + } + useWith = true; + } else if (this.isContextual(94) && !this.hasPrecedingLineBreak()) { + if (this.hasPlugin("importAttributes")) { + if (this.getPluginOption("importAttributes", "deprecatedAssertSyntax") !== true) { + this.raise(Errors.ImportAttributesUseAssert, { + at: this.state.startLoc + }); + } + this.addExtra(node, "deprecatedAssertSyntax", true); + } else { + this.expectOnePlugin(["importAttributes", "importAssertions"]); + } + this.next(); + attributes = this.parseImportAttributes(); + } else if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) { + attributes = []; + } else { + if (this.hasPlugin("moduleAttributes")) { + attributes = []; + } else return; + } + if (!useWith && this.hasPlugin("importAssertions")) { + node.assertions = attributes; + } else { + node.attributes = attributes; + } } -})); -Object.defineProperty(exports, "EnumDefaultedMember", ({ - enumerable: true, - get: function () { - return _index.enumDefaultedMember; + maybeParseDefaultImportSpecifier(node, maybeDefaultIdentifier) { + if (maybeDefaultIdentifier) { + const specifier = this.startNodeAtNode(maybeDefaultIdentifier); + specifier.local = maybeDefaultIdentifier; + node.specifiers.push(this.finishImportSpecifier(specifier, "ImportDefaultSpecifier")); + return true; + } else if (tokenIsKeywordOrIdentifier(this.state.type)) { + this.parseImportSpecifierLocal(node, this.startNode(), "ImportDefaultSpecifier"); + return true; + } + return false; } -})); -Object.defineProperty(exports, "EnumNumberBody", ({ - enumerable: true, - get: function () { - return _index.enumNumberBody; + maybeParseStarImportSpecifier(node) { + if (this.match(55)) { + const specifier = this.startNode(); + this.next(); + this.expectContextual(93); + this.parseImportSpecifierLocal(node, specifier, "ImportNamespaceSpecifier"); + return true; + } + return false; } -})); -Object.defineProperty(exports, "EnumNumberMember", ({ - enumerable: true, - get: function () { - return _index.enumNumberMember; + parseNamedImportSpecifiers(node) { + let first = true; + this.expect(5); + while (!this.eat(8)) { + if (first) { + first = false; + } else { + if (this.eat(14)) { + throw this.raise(Errors.DestructureNamedImport, { + at: this.state.startLoc + }); + } + this.expect(12); + if (this.eat(8)) break; + } + const specifier = this.startNode(); + const importedIsString = this.match(133); + const isMaybeTypeOnly = this.isContextual(130); + specifier.imported = this.parseModuleExportName(); + const importSpecifier = this.parseImportSpecifier(specifier, importedIsString, node.importKind === "type" || node.importKind === "typeof", isMaybeTypeOnly, undefined); + node.specifiers.push(importSpecifier); + } } -})); -Object.defineProperty(exports, "EnumStringBody", ({ - enumerable: true, - get: function () { - return _index.enumStringBody; + parseImportSpecifier(specifier, importedIsString, isInTypeOnlyImport, isMaybeTypeOnly, bindingType) { + if (this.eatContextual(93)) { + specifier.local = this.parseIdentifier(); + } else { + const { + imported + } = specifier; + if (importedIsString) { + throw this.raise(Errors.ImportBindingIsString, { + at: specifier, + importName: imported.value + }); + } + this.checkReservedWord(imported.name, specifier.loc.start, true, true); + if (!specifier.local) { + specifier.local = cloneIdentifier(imported); + } + } + return this.finishImportSpecifier(specifier, "ImportSpecifier", bindingType); } -})); -Object.defineProperty(exports, "EnumStringMember", ({ - enumerable: true, - get: function () { - return _index.enumStringMember; + isThisParam(param) { + return param.type === "Identifier" && param.name === "this"; } -})); -Object.defineProperty(exports, "EnumSymbolBody", ({ - enumerable: true, - get: function () { - return _index.enumSymbolBody; +} +class Parser extends StatementParser { + constructor(options, input) { + options = getOptions(options); + super(options, input); + this.options = options; + this.initializeScopes(); + this.plugins = pluginsMap(this.options.plugins); + this.filename = options.sourceFilename; } -})); -Object.defineProperty(exports, "ExistsTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.existsTypeAnnotation; + getScopeHandler() { + return ScopeHandler; } -})); -Object.defineProperty(exports, "ExportAllDeclaration", ({ - enumerable: true, - get: function () { - return _index.exportAllDeclaration; + parse() { + this.enterInitialScopes(); + const file = this.startNode(); + const program = this.startNode(); + this.nextToken(); + file.errors = null; + this.parseTopLevel(file, program); + file.errors = this.state.errors; + return file; } -})); -Object.defineProperty(exports, "ExportDefaultDeclaration", ({ - enumerable: true, - get: function () { - return _index.exportDefaultDeclaration; +} +function pluginsMap(plugins) { + const pluginMap = new Map(); + for (const plugin of plugins) { + const [name, options] = Array.isArray(plugin) ? plugin : [plugin, {}]; + if (!pluginMap.has(name)) pluginMap.set(name, options || {}); } -})); -Object.defineProperty(exports, "ExportDefaultSpecifier", ({ - enumerable: true, - get: function () { - return _index.exportDefaultSpecifier; + return pluginMap; +} +function parse(input, options) { + var _options; + if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") { + options = Object.assign({}, options); + try { + options.sourceType = "module"; + const parser = getParser(options, input); + const ast = parser.parse(); + if (parser.sawUnambiguousESM) { + return ast; + } + if (parser.ambiguousScriptDifferentAst) { + try { + options.sourceType = "script"; + return getParser(options, input).parse(); + } catch (_unused) {} + } else { + ast.program.sourceType = "script"; + } + return ast; + } catch (moduleError) { + try { + options.sourceType = "script"; + return getParser(options, input).parse(); + } catch (_unused2) {} + throw moduleError; + } + } else { + return getParser(options, input).parse(); } -})); -Object.defineProperty(exports, "ExportNamedDeclaration", ({ - enumerable: true, - get: function () { - return _index.exportNamedDeclaration; +} +function parseExpression(input, options) { + const parser = getParser(options, input); + if (parser.options.strictMode) { + parser.state.strict = true; } -})); -Object.defineProperty(exports, "ExportNamespaceSpecifier", ({ - enumerable: true, - get: function () { - return _index.exportNamespaceSpecifier; + return parser.getExpression(); +} +function generateExportedTokenTypes(internalTokenTypes) { + const tokenTypes = {}; + for (const typeName of Object.keys(internalTokenTypes)) { + tokenTypes[typeName] = getExportedToken(internalTokenTypes[typeName]); } -})); -Object.defineProperty(exports, "ExportSpecifier", ({ - enumerable: true, - get: function () { - return _index.exportSpecifier; + return tokenTypes; +} +const tokTypes = generateExportedTokenTypes(tt); +function getParser(options, input) { + let cls = Parser; + if (options != null && options.plugins) { + validatePlugins(options.plugins); + cls = getParserClass(options.plugins); } -})); -Object.defineProperty(exports, "ExpressionStatement", ({ - enumerable: true, - get: function () { - return _index.expressionStatement; + return new cls(options, input); +} +const parserClassCache = {}; +function getParserClass(pluginsFromOptions) { + const pluginList = mixinPluginNames.filter(name => hasPlugin(pluginsFromOptions, name)); + const key = pluginList.join("/"); + let cls = parserClassCache[key]; + if (!cls) { + cls = Parser; + for (const plugin of pluginList) { + cls = mixinPlugins[plugin](cls); + } + parserClassCache[key] = cls; } -})); -Object.defineProperty(exports, "File", ({ - enumerable: true, - get: function () { - return _index.file; + return cls; +} +exports.parse = parse; +exports.parseExpression = parseExpression; +exports.tokTypes = tokTypes; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 88947: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var helperPluginUtils = __nccwpck_require__(36028); + +function shouldTransform(path) { + const { + node + } = path; + const functionId = node.id; + if (!functionId) return false; + const name = functionId.name; + const paramNameBinding = path.scope.getOwnBinding(name); + if (paramNameBinding === undefined) { + return false; } -})); -Object.defineProperty(exports, "ForInStatement", ({ - enumerable: true, - get: function () { - return _index.forInStatement; + if (paramNameBinding.kind !== "param") { + return false; } -})); -Object.defineProperty(exports, "ForOfStatement", ({ - enumerable: true, - get: function () { - return _index.forOfStatement; + if (paramNameBinding.identifier === paramNameBinding.path.node) { + return false; } -})); -Object.defineProperty(exports, "ForStatement", ({ - enumerable: true, - get: function () { - return _index.forStatement; + return name; +} + +var index = helperPluginUtils.declare(api => { + api.assertVersion("^7.16.0"); + return { + name: "plugin-bugfix-safari-id-destructuring-collision-in-function-expression", + visitor: { + FunctionExpression(path) { + const name = shouldTransform(path); + if (name) { + const { + scope + } = path; + const newParamName = scope.generateUid(name); + scope.rename(name, newParamName); + } + } + } + }; +}); + +exports["default"] = index; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 64307: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var helperPluginUtils = __nccwpck_require__(36028); +var pluginTransformOptionalChaining = __nccwpck_require__(84733); +var helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); +var core = __nccwpck_require__(65258); + +function matchAffectedArguments(argumentNodes) { + const spreadIndex = argumentNodes.findIndex(node => core.types.isSpreadElement(node)); + return spreadIndex >= 0 && spreadIndex !== argumentNodes.length - 1; +} +function shouldTransform(path) { + let optionalPath = path; + const chains = []; + for (;;) { + if (optionalPath.isOptionalMemberExpression()) { + chains.push(optionalPath.node); + optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object")); + } else if (optionalPath.isOptionalCallExpression()) { + chains.push(optionalPath.node); + optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")); + } else { + break; + } } -})); -Object.defineProperty(exports, "FunctionDeclaration", ({ - enumerable: true, - get: function () { - return _index.functionDeclaration; + for (let i = 0; i < chains.length; i++) { + const node = chains[i]; + if (core.types.isOptionalCallExpression(node) && matchAffectedArguments(node.arguments)) { + if (node.optional) { + return true; + } + const callee = chains[i + 1]; + if (core.types.isOptionalMemberExpression(callee, { + optional: true + })) { + return true; + } + } } -})); -Object.defineProperty(exports, "FunctionExpression", ({ - enumerable: true, - get: function () { - return _index.functionExpression; + return false; +} + +var index = helperPluginUtils.declare(api => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : false; + const pureGetters = (_api$assumption2 = api.assumption("pureGetters")) != null ? _api$assumption2 : false; + return { + name: "bugfix-v8-spread-parameters-in-optional-chaining", + visitor: { + "OptionalCallExpression|OptionalMemberExpression"(path) { + if (shouldTransform(path)) { + pluginTransformOptionalChaining.transform(path, { + noDocumentAll, + pureGetters + }); + } + } + } + }; +}); + +exports["default"] = index; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 32532: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var core = __nccwpck_require__(65258); +var helperPluginUtils = __nccwpck_require__(36028); +var helperEnvironmentVisitor = __nccwpck_require__(91707); + +function isNameOrLength(key) { + if (core.types.isIdentifier(key)) { + return key.name === "name" || key.name === "length"; } -})); -Object.defineProperty(exports, "FunctionTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.functionTypeAnnotation; + if (core.types.isStringLiteral(key)) { + return key.value === "name" || key.value === "length"; } -})); -Object.defineProperty(exports, "FunctionTypeParam", ({ - enumerable: true, - get: function () { - return _index.functionTypeParam; + return false; +} +function isStaticFieldWithValue(node) { + return (core.types.isClassProperty(node) || core.types.isClassPrivateProperty(node)) && node.static && !!node.value; +} +const hasReferenceVisitor = { + ReferencedIdentifier(path, state) { + if (path.node.name === state.name) { + state.ref(); + path.stop(); + } + }, + Scope(path, { + name + }) { + if (path.scope.hasOwnBinding(name)) { + path.skip(); + } } -})); -Object.defineProperty(exports, "GenericTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.genericTypeAnnotation; +}; +function isReferenceOrThis(node, name) { + return core.types.isThisExpression(node) || name && core.types.isIdentifier(node, { + name + }); +} +const hasReferenceOrThisVisitor = { + "ThisExpression|ReferencedIdentifier"(path, state) { + if (isReferenceOrThis(path.node, state.name)) { + state.ref(); + path.stop(); + } + }, + FunctionParent(path, state) { + if (path.isArrowFunctionExpression()) return; + if (state.name && !path.scope.hasOwnBinding(state.name)) { + path.traverse(hasReferenceVisitor, state); + } + path.skip(); + if (path.isMethod()) { + helperEnvironmentVisitor.requeueComputedKeyAndDecorators(path); + } } -})); -Object.defineProperty(exports, "Identifier", ({ - enumerable: true, - get: function () { - return _index.identifier; +}; +function getPotentiallyBuggyFieldsIndexes(path) { + var _path$node$id; + const buggyPublicStaticFieldsIndexes = []; + let classReferenced = false; + const className = (_path$node$id = path.node.id) == null ? void 0 : _path$node$id.name; + const hasReferenceState = { + name: className, + ref: () => classReferenced = true + }; + if (className) { + for (const el of path.get("body.body")) { + if (el.node.computed) { + el.get("key").traverse(hasReferenceVisitor, hasReferenceState); + if (classReferenced) break; + } + } } -})); -Object.defineProperty(exports, "IfStatement", ({ - enumerable: true, - get: function () { - return _index.ifStatement; + let nextPotentiallyBuggy = false; + const { + body + } = path.node.body; + for (let i = 0; i < body.length; i++) { + const node = body[i]; + if (!nextPotentiallyBuggy) { + if (core.types.isStaticBlock(node)) { + classReferenced = true; + nextPotentiallyBuggy = true; + } else if (isStaticFieldWithValue(node)) { + if (!classReferenced) { + if (isReferenceOrThis(node.value, className)) { + classReferenced = true; + } else { + path.get(`body.body.${i}.value`).traverse(hasReferenceOrThisVisitor, hasReferenceState); + } + } + if (classReferenced) { + nextPotentiallyBuggy = !path.scope.isPure(node.value); + } + } + } + if (core.types.isClassProperty(node, { + static: true + }) && (nextPotentiallyBuggy || node.computed || isNameOrLength(node.key))) { + buggyPublicStaticFieldsIndexes.push(i); + } } -})); -Object.defineProperty(exports, "Import", ({ - enumerable: true, - get: function () { - return _index.import; + return buggyPublicStaticFieldsIndexes; +} +function getNameOrLengthStaticFieldsIndexes(path) { + const indexes = []; + const { + body + } = path.node.body; + for (let i = 0; i < body.length; i++) { + const node = body[i]; + if (core.types.isClassProperty(node, { + static: true, + computed: false + }) && isNameOrLength(node.key)) { + indexes.push(i); + } } -})); -Object.defineProperty(exports, "ImportAttribute", ({ - enumerable: true, - get: function () { - return _index.importAttribute; + return indexes; +} +function toRanges(nums) { + const ranges = []; + if (nums.length === 0) return ranges; + let start = nums[0]; + let end = start + 1; + for (let i = 1; i < nums.length; i++) { + if (nums[i] <= nums[i - 1]) { + throw new Error("Internal Babel error: nums must be in ascending order"); + } + if (nums[i] === end) { + end++; + } else { + ranges.push([start, end]); + start = nums[i]; + end = start + 1; + } } + ranges.push([start, end]); + return ranges; +} + +function buildFieldsReplacement(fields, scope, file) { + return core.types.staticBlock(fields.map(field => { + const key = field.computed || !core.types.isIdentifier(field.key) ? field.key : core.types.stringLiteral(field.key.name); + return core.types.expressionStatement(core.types.callExpression(file.addHelper("defineProperty"), [core.types.thisExpression(), key, field.value || scope.buildUndefinedNode()])); + })); +} +var index = helperPluginUtils.declare(api => { + api.assertVersion(7); + const setPublicClassFields = api.assumption("setPublicClassFields"); + return { + name: "bugfix-v8-static-class-fields-redefine-readonly", + visitor: { + Class(path) { + const ranges = toRanges(setPublicClassFields ? getNameOrLengthStaticFieldsIndexes(path) : getPotentiallyBuggyFieldsIndexes(path)); + for (let i = ranges.length - 1; i >= 0; i--) { + const [start, end] = ranges[i]; + const startPath = path.get("body.body")[start]; + startPath.replaceWith(buildFieldsReplacement(path.node.body.body.slice(start, end), path.scope, this.file)); + for (let j = end - 1; j > start; j--) { + path.get("body.body")[j].remove(); + } + } + } + } + }; +}); + +exports["default"] = index; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 25932: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ImportDeclaration", ({ - enumerable: true, - get: function () { - return _index.importDeclaration; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxDecorators = __nccwpck_require__(48691); +var _helperCreateClassFeaturesPlugin = __nccwpck_require__(42137); +var _transformerLegacy = __nccwpck_require__(95244); +var _transformer = __nccwpck_require__(53008); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + { + var { + legacy + } = options; } -})); -Object.defineProperty(exports, "ImportDefaultSpecifier", ({ - enumerable: true, - get: function () { - return _index.importDefaultSpecifier; + const { + version + } = options; + if (legacy || version === "legacy") { + return { + name: "proposal-decorators", + inherits: _pluginSyntaxDecorators.default, + visitor: _transformerLegacy.default + }; + } else if (version === "2021-12" || version === "2022-03" || version === "2023-01" || version === "2023-05") { + return (0, _transformer.default)(api, options, version); + } else { + api.assertVersion("^7.0.2"); + return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ + name: "proposal-decorators", + api, + feature: _helperCreateClassFeaturesPlugin.FEATURES.decorators, + inherits: _pluginSyntaxDecorators.default + }); } +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 53008: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ImportNamespaceSpecifier", ({ - enumerable: true, - get: function () { - return _index.importNamespaceSpecifier; +exports["default"] = _default; +var _core = __nccwpck_require__(65258); +var _pluginSyntaxDecorators = __nccwpck_require__(48691); +var _helperReplaceSupers = __nccwpck_require__(43889); +var _helperSplitExportDeclaration = __nccwpck_require__(62605); +var _helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); +function incrementId(id, idx = id.length - 1) { + if (idx === -1) { + id.unshift(65); + return; } -})); -Object.defineProperty(exports, "ImportSpecifier", ({ - enumerable: true, - get: function () { - return _index.importSpecifier; + const current = id[idx]; + if (current === 90) { + id[idx] = 97; + } else if (current === 122) { + id[idx] = 65; + incrementId(id, idx - 1); + } else { + id[idx] = current + 1; } -})); -Object.defineProperty(exports, "IndexedAccessType", ({ - enumerable: true, - get: function () { - return _index.indexedAccessType; +} +function createPrivateUidGeneratorForClass(classPath) { + const currentPrivateId = []; + const privateNames = new Set(); + classPath.traverse({ + PrivateName(path) { + privateNames.add(path.node.id.name); + } + }); + return () => { + let reifiedId; + do { + incrementId(currentPrivateId); + reifiedId = String.fromCharCode(...currentPrivateId); + } while (privateNames.has(reifiedId)); + return _core.types.privateName(_core.types.identifier(reifiedId)); + }; +} +function createLazyPrivateUidGeneratorForClass(classPath) { + let generator; + return () => { + if (!generator) { + generator = createPrivateUidGeneratorForClass(classPath); + } + return generator(); + }; +} +function replaceClassWithVar(path, className) { + if (path.type === "ClassDeclaration") { + const id = path.node.id; + const className = id.name; + const varId = path.scope.generateUidIdentifierBasedOnNode(id); + const classId = _core.types.identifier(className); + path.scope.rename(className, varId.name); + path.get("id").replaceWith(classId); + return { + id: _core.types.cloneNode(varId), + path + }; + } else { + let varId; + if (path.node.id) { + className = path.node.id.name; + varId = path.scope.parent.generateDeclaredUidIdentifier(className); + path.scope.rename(className, varId.name); + } else { + varId = path.scope.parent.generateDeclaredUidIdentifier(typeof className === "string" ? className : "decorated_class"); + } + const newClassExpr = _core.types.classExpression(typeof className === "string" ? _core.types.identifier(className) : null, path.node.superClass, path.node.body); + const [newPath] = path.replaceWith(_core.types.sequenceExpression([newClassExpr, varId])); + return { + id: _core.types.cloneNode(varId), + path: newPath.get("expressions.0") + }; } -})); -Object.defineProperty(exports, "InferredPredicate", ({ - enumerable: true, - get: function () { - return _index.inferredPredicate; +} +function generateClassProperty(key, value, isStatic) { + if (key.type === "PrivateName") { + return _core.types.classPrivateProperty(key, value, undefined, isStatic); + } else { + return _core.types.classProperty(key, value, undefined, undefined, isStatic); } -})); -Object.defineProperty(exports, "InterfaceDeclaration", ({ - enumerable: true, - get: function () { - return _index.interfaceDeclaration; +} +function addProxyAccessorsFor(className, element, originalKey, targetKey, version, isComputed = false) { + const { + static: isStatic + } = element.node; + const thisArg = version === "2023-05" && isStatic ? className : _core.types.thisExpression(); + const getterBody = _core.types.blockStatement([_core.types.returnStatement(_core.types.memberExpression(_core.types.cloneNode(thisArg), _core.types.cloneNode(targetKey)))]); + const setterBody = _core.types.blockStatement([_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.cloneNode(thisArg), _core.types.cloneNode(targetKey)), _core.types.identifier("v")))]); + let getter, setter; + if (originalKey.type === "PrivateName") { + getter = _core.types.classPrivateMethod("get", _core.types.cloneNode(originalKey), [], getterBody, isStatic); + setter = _core.types.classPrivateMethod("set", _core.types.cloneNode(originalKey), [_core.types.identifier("v")], setterBody, isStatic); + } else { + getter = _core.types.classMethod("get", _core.types.cloneNode(originalKey), [], getterBody, isComputed, isStatic); + setter = _core.types.classMethod("set", _core.types.cloneNode(originalKey), [_core.types.identifier("v")], setterBody, isComputed, isStatic); } -})); -Object.defineProperty(exports, "InterfaceExtends", ({ - enumerable: true, - get: function () { - return _index.interfaceExtends; + element.insertAfter(setter); + element.insertAfter(getter); +} +function extractProxyAccessorsFor(targetKey, version) { + if (version !== "2023-05" && version !== "2023-01") { + return [_core.template.expression.ast` + function () { + return this.${_core.types.cloneNode(targetKey)}; + } + `, _core.template.expression.ast` + function (value) { + this.${_core.types.cloneNode(targetKey)} = value; + } + `]; } -})); -Object.defineProperty(exports, "InterfaceTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.interfaceTypeAnnotation; + return [_core.template.expression.ast` + o => o.${_core.types.cloneNode(targetKey)} + `, _core.template.expression.ast` + (o, v) => o.${_core.types.cloneNode(targetKey)} = v + `]; +} +const FIELD = 0; +const ACCESSOR = 1; +const METHOD = 2; +const GETTER = 3; +const SETTER = 4; +const STATIC_OLD_VERSION = 5; +const STATIC = 8; +const DECORATORS_HAVE_THIS = 16; +function getElementKind(element) { + switch (element.node.type) { + case "ClassProperty": + case "ClassPrivateProperty": + return FIELD; + case "ClassAccessorProperty": + return ACCESSOR; + case "ClassMethod": + case "ClassPrivateMethod": + if (element.node.kind === "get") { + return GETTER; + } else if (element.node.kind === "set") { + return SETTER; + } else { + return METHOD; + } } -})); -Object.defineProperty(exports, "InterpreterDirective", ({ - enumerable: true, - get: function () { - return _index.interpreterDirective; +} +function isDecoratorInfo(info) { + return "decorators" in info; +} +function filteredOrderedDecoratorInfo(info) { + const filtered = info.filter(isDecoratorInfo); + return [...filtered.filter(el => el.isStatic && el.kind >= ACCESSOR && el.kind <= SETTER), ...filtered.filter(el => !el.isStatic && el.kind >= ACCESSOR && el.kind <= SETTER), ...filtered.filter(el => el.isStatic && el.kind === FIELD), ...filtered.filter(el => !el.isStatic && el.kind === FIELD)]; +} +function generateDecorationList(decorators, decoratorsThis, version) { + const decsCount = decorators.length; + const hasOneThis = decoratorsThis.some(Boolean); + const decs = []; + for (let i = 0; i < decsCount; i++) { + if (version === "2023-05" && hasOneThis) { + decs.push(decoratorsThis[i] || _core.types.unaryExpression("void", _core.types.numericLiteral(0))); + } + decs.push(decorators[i]); } -})); -Object.defineProperty(exports, "IntersectionTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.intersectionTypeAnnotation; + return { + hasThis: hasOneThis, + decs + }; +} +function generateDecorationExprs(info, version) { + return _core.types.arrayExpression(filteredOrderedDecoratorInfo(info).map(el => { + const { + decs, + hasThis + } = generateDecorationList(el.decorators, el.decoratorsThis, version); + let flag = el.kind; + if (el.isStatic) { + flag += version === "2023-05" ? STATIC : STATIC_OLD_VERSION; + } + if (hasThis) flag += DECORATORS_HAVE_THIS; + return _core.types.arrayExpression([decs.length === 1 ? decs[0] : _core.types.arrayExpression(decs), _core.types.numericLiteral(flag), el.name, ...(el.privateMethods || [])]); + })); +} +function extractElementLocalAssignments(decorationInfo) { + const localIds = []; + for (const el of filteredOrderedDecoratorInfo(decorationInfo)) { + const { + locals + } = el; + if (Array.isArray(locals)) { + localIds.push(...locals); + } else if (locals !== undefined) { + localIds.push(locals); + } } -})); -Object.defineProperty(exports, "JSXAttribute", ({ - enumerable: true, - get: function () { - return _index.jsxAttribute; + return localIds; +} +function addCallAccessorsFor(element, key, getId, setId) { + element.insertAfter(_core.types.classPrivateMethod("get", _core.types.cloneNode(key), [], _core.types.blockStatement([_core.types.returnStatement(_core.types.callExpression(_core.types.cloneNode(getId), [_core.types.thisExpression()]))]))); + element.insertAfter(_core.types.classPrivateMethod("set", _core.types.cloneNode(key), [_core.types.identifier("v")], _core.types.blockStatement([_core.types.expressionStatement(_core.types.callExpression(_core.types.cloneNode(setId), [_core.types.thisExpression(), _core.types.identifier("v")]))]))); +} +function isNotTsParameter(node) { + return node.type !== "TSParameterProperty"; +} +function movePrivateAccessor(element, key, methodLocalVar, isStatic) { + let params; + let block; + if (element.node.kind === "set") { + params = [_core.types.identifier("v")]; + block = [_core.types.expressionStatement(_core.types.callExpression(methodLocalVar, [_core.types.thisExpression(), _core.types.identifier("v")]))]; + } else { + params = []; + block = [_core.types.returnStatement(_core.types.callExpression(methodLocalVar, [_core.types.thisExpression()]))]; } -})); -Object.defineProperty(exports, "JSXClosingElement", ({ - enumerable: true, - get: function () { - return _index.jsxClosingElement; + element.replaceWith(_core.types.classPrivateMethod(element.node.kind, _core.types.cloneNode(key), params, _core.types.blockStatement(block), isStatic)); +} +function isClassDecoratableElementPath(path) { + const { + type + } = path; + return type !== "TSDeclareMethod" && type !== "TSIndexSignature" && type !== "StaticBlock"; +} +function staticBlockToIIFE(block) { + return _core.types.callExpression(_core.types.arrowFunctionExpression([], _core.types.blockStatement(block.body)), []); +} +function maybeSequenceExpression(exprs) { + if (exprs.length === 0) return _core.types.unaryExpression("void", _core.types.numericLiteral(0)); + if (exprs.length === 1) return exprs[0]; + return _core.types.sequenceExpression(exprs); +} +function createSetFunctionNameCall(state, className) { + return _core.types.callExpression(state.addHelper("setFunctionName"), [_core.types.thisExpression(), className]); +} +function createToPropertyKeyCall(state, propertyKey) { + return _core.types.callExpression(state.addHelper("toPropertyKey"), [propertyKey]); +} +function transformClass(path, state, constantSuper, version, className, propertyVisitor) { + const body = path.get("body.body"); + const classDecorators = path.node.decorators; + let hasElementDecorators = false; + const generateClassPrivateUid = createLazyPrivateUidGeneratorForClass(path); + const assignments = []; + const scopeParent = path.scope.parent; + const memoiseExpression = (expression, hint) => { + const localEvaluatedId = scopeParent.generateDeclaredUidIdentifier(hint); + assignments.push(_core.types.assignmentExpression("=", localEvaluatedId, expression)); + return _core.types.cloneNode(localEvaluatedId); + }; + for (const element of body) { + if (!isClassDecoratableElementPath(element)) { + continue; + } + if (element.node.decorators && element.node.decorators.length > 0) { + switch (element.node.type) { + case "ClassProperty": + propertyVisitor.ClassProperty(element, state); + break; + case "ClassPrivateProperty": + propertyVisitor.ClassPrivateProperty(element, state); + break; + case "ClassAccessorProperty": + propertyVisitor.ClassAccessorProperty(element, state); + break; + } + hasElementDecorators = true; + } else if (element.node.type === "ClassAccessorProperty") { + propertyVisitor.ClassAccessorProperty(element, state); + const { + key, + value, + static: isStatic, + computed + } = element.node; + const newId = generateClassPrivateUid(); + const newField = generateClassProperty(newId, value, isStatic); + const keyPath = element.get("key"); + const [newPath] = element.replaceWith(newField); + addProxyAccessorsFor(path.node.id, newPath, computed && !keyPath.isConstantExpression() ? memoiseExpression(createToPropertyKeyCall(state, key), "computedKey") : key, newId, version, computed); + } } -})); -Object.defineProperty(exports, "JSXClosingFragment", ({ - enumerable: true, - get: function () { - return _index.jsxClosingFragment; + if (!classDecorators && !hasElementDecorators) { + if (assignments.length > 0) { + path.insertBefore(assignments.map(expr => _core.types.expressionStatement(expr))); + path.scope.crawl(); + } + return; } -})); -Object.defineProperty(exports, "JSXElement", ({ - enumerable: true, - get: function () { - return _index.jsxElement; + const elementDecoratorInfo = []; + let firstFieldPath; + let constructorPath; + let requiresProtoInit = false; + let requiresStaticInit = false; + const decoratedPrivateMethods = new Set(); + let protoInitLocal, staticInitLocal, classInitLocal, classIdLocal; + const decoratorsThis = new Map(); + const maybeExtractDecorator = decorator => { + const { + expression + } = decorator; + if (version === "2023-05" && _core.types.isMemberExpression(expression)) { + let object; + if (_core.types.isSuper(expression.object) || _core.types.isThisExpression(expression.object)) { + object = memoiseExpression(_core.types.thisExpression(), "obj"); + } else if (!scopeParent.isStatic(expression.object)) { + object = memoiseExpression(expression.object, "obj"); + expression.object = object; + } else { + object = expression.object; + } + decoratorsThis.set(decorator, _core.types.cloneNode(object)); + } + if (!scopeParent.isStatic(expression)) { + decorator.expression = memoiseExpression(expression, "dec"); + } + }; + let needsDeclaraionForClassBinding = false; + if (classDecorators) { + classInitLocal = scopeParent.generateDeclaredUidIdentifier("initClass"); + needsDeclaraionForClassBinding = path.isClassDeclaration(); + ({ + id: classIdLocal, + path + } = replaceClassWithVar(path, className)); + path.node.decorators = null; + for (const classDecorator of classDecorators) { + maybeExtractDecorator(classDecorator); + } + } else { + if (!path.node.id) { + path.node.id = path.scope.generateUidIdentifier("Class"); + } + classIdLocal = _core.types.cloneNode(path.node.id); } -})); -Object.defineProperty(exports, "JSXEmptyExpression", ({ - enumerable: true, - get: function () { - return _index.jsxEmptyExpression; + let lastInstancePrivateName; + let needsInstancePrivateBrandCheck = false; + if (hasElementDecorators) { + for (const element of body) { + if (!isClassDecoratableElementPath(element)) { + continue; + } + const { + node + } = element; + const decorators = element.get("decorators"); + const hasDecorators = Array.isArray(decorators) && decorators.length > 0; + if (hasDecorators) { + for (const decoratorPath of decorators) { + maybeExtractDecorator(decoratorPath.node); + } + } + const isComputed = "computed" in element.node && element.node.computed === true; + if (isComputed) { + if (!element.get("key").isConstantExpression()) { + node.key = memoiseExpression(createToPropertyKeyCall(state, node.key), "computedKey"); + } + } + const kind = getElementKind(element); + const { + key + } = node; + const isPrivate = key.type === "PrivateName"; + const isStatic = !!element.node.static; + let name = "computedKey"; + if (isPrivate) { + name = key.id.name; + } else if (!isComputed && key.type === "Identifier") { + name = key.name; + } + if (isPrivate && !isStatic) { + if (hasDecorators) { + needsInstancePrivateBrandCheck = true; + } + if (_core.types.isClassPrivateProperty(node) || !lastInstancePrivateName) { + lastInstancePrivateName = key; + } + } + if (element.isClassMethod({ + kind: "constructor" + })) { + constructorPath = element; + } + if (hasDecorators) { + let locals; + let privateMethods; + if (kind === ACCESSOR) { + const { + value + } = element.node; + const params = [_core.types.thisExpression()]; + if (value) { + params.push(_core.types.cloneNode(value)); + } + const newId = generateClassPrivateUid(); + const newFieldInitId = element.scope.parent.generateDeclaredUidIdentifier(`init_${name}`); + const newValue = _core.types.callExpression(_core.types.cloneNode(newFieldInitId), params); + const newField = generateClassProperty(newId, newValue, isStatic); + const [newPath] = element.replaceWith(newField); + if (isPrivate) { + privateMethods = extractProxyAccessorsFor(newId, version); + const getId = newPath.scope.parent.generateDeclaredUidIdentifier(`get_${name}`); + const setId = newPath.scope.parent.generateDeclaredUidIdentifier(`set_${name}`); + addCallAccessorsFor(newPath, key, getId, setId); + locals = [newFieldInitId, getId, setId]; + } else { + addProxyAccessorsFor(path.node.id, newPath, key, newId, version, isComputed); + locals = newFieldInitId; + } + } else if (kind === FIELD) { + const initId = element.scope.parent.generateDeclaredUidIdentifier(`init_${name}`); + const valuePath = element.get("value"); + valuePath.replaceWith(_core.types.callExpression(_core.types.cloneNode(initId), [_core.types.thisExpression(), valuePath.node].filter(v => v))); + locals = initId; + if (isPrivate) { + privateMethods = extractProxyAccessorsFor(key, version); + } + } else if (isPrivate) { + locals = element.scope.parent.generateDeclaredUidIdentifier(`call_${name}`); + const replaceSupers = new _helperReplaceSupers.default({ + constantSuper, + methodPath: element, + objectRef: classIdLocal, + superRef: path.node.superClass, + file: state.file, + refToPreserve: classIdLocal + }); + replaceSupers.replace(); + const { + params, + body, + async: isAsync + } = element.node; + privateMethods = [_core.types.functionExpression(undefined, params.filter(isNotTsParameter), body, isAsync)]; + if (kind === GETTER || kind === SETTER) { + movePrivateAccessor(element, _core.types.cloneNode(key), _core.types.cloneNode(locals), isStatic); + } else { + const node = element.node; + path.node.body.body.unshift(_core.types.classPrivateProperty(key, _core.types.cloneNode(locals), [], node.static)); + decoratedPrivateMethods.add(key.id.name); + element.remove(); + } + } + let nameExpr; + if (isComputed) { + nameExpr = _core.types.cloneNode(key); + } else if (key.type === "PrivateName") { + nameExpr = _core.types.stringLiteral(key.id.name); + } else if (key.type === "Identifier") { + nameExpr = _core.types.stringLiteral(key.name); + } else { + nameExpr = _core.types.cloneNode(key); + } + elementDecoratorInfo.push({ + kind, + decorators: decorators.map(d => d.node.expression), + decoratorsThis: decorators.map(d => decoratorsThis.get(d.node)), + name: nameExpr, + isStatic, + privateMethods, + locals + }); + if (kind !== FIELD) { + if (isStatic) { + requiresStaticInit = true; + } else { + requiresProtoInit = true; + } + } + if (element.node) { + element.node.decorators = null; + } + if (!firstFieldPath && !isStatic && (kind === FIELD || kind === ACCESSOR)) { + firstFieldPath = element; + } + } + } } -})); -Object.defineProperty(exports, "JSXExpressionContainer", ({ - enumerable: true, - get: function () { - return _index.jsxExpressionContainer; + const elementDecorations = generateDecorationExprs(elementDecoratorInfo, version); + let classDecorationsFlag = 0; + let classDecorations = []; + if (classDecorators) { + const { + hasThis, + decs + } = generateDecorationList(classDecorators.map(el => el.expression), classDecorators.map(dec => decoratorsThis.get(dec)), version); + classDecorationsFlag = hasThis ? 1 : 0; + classDecorations = decs; } -})); -Object.defineProperty(exports, "JSXFragment", ({ - enumerable: true, - get: function () { - return _index.jsxFragment; + const elementLocals = extractElementLocalAssignments(elementDecoratorInfo); + if (requiresProtoInit) { + protoInitLocal = scopeParent.generateDeclaredUidIdentifier("initProto"); + elementLocals.push(protoInitLocal); + const protoInitCall = _core.types.callExpression(_core.types.cloneNode(protoInitLocal), [_core.types.thisExpression()]); + if (firstFieldPath) { + const value = firstFieldPath.get("value"); + const body = [protoInitCall]; + if (value.node) { + body.push(value.node); + } + value.replaceWith(_core.types.sequenceExpression(body)); + } else if (constructorPath) { + if (path.node.superClass) { + path.traverse({ + CallExpression: { + exit(path) { + if (!path.get("callee").isSuper()) return; + path.replaceWith(_core.types.callExpression(_core.types.cloneNode(protoInitLocal), [path.node])); + path.skip(); + } + } + }); + } else { + constructorPath.node.body.body.unshift(_core.types.expressionStatement(protoInitCall)); + } + } else { + const body = [_core.types.expressionStatement(protoInitCall)]; + if (path.node.superClass) { + body.unshift(_core.types.expressionStatement(_core.types.callExpression(_core.types.super(), [_core.types.spreadElement(_core.types.identifier("args"))]))); + } + path.node.body.body.unshift(_core.types.classMethod("constructor", _core.types.identifier("constructor"), [_core.types.restElement(_core.types.identifier("args"))], _core.types.blockStatement(body))); + } } -})); -Object.defineProperty(exports, "JSXIdentifier", ({ - enumerable: true, - get: function () { - return _index.jsxIdentifier; + if (requiresStaticInit) { + staticInitLocal = scopeParent.generateDeclaredUidIdentifier("initStatic"); + elementLocals.push(staticInitLocal); } -})); -Object.defineProperty(exports, "JSXMemberExpression", ({ - enumerable: true, - get: function () { - return _index.jsxMemberExpression; + if (decoratedPrivateMethods.size > 0) { + path.traverse({ + PrivateName(path) { + if (!decoratedPrivateMethods.has(path.node.id.name)) return; + const parentPath = path.parentPath; + const parentParentPath = parentPath.parentPath; + if (parentParentPath.node.type === "AssignmentExpression" && parentParentPath.node.left === parentPath.node || parentParentPath.node.type === "UpdateExpression" || parentParentPath.node.type === "RestElement" || parentParentPath.node.type === "ArrayPattern" || parentParentPath.node.type === "ObjectProperty" && parentParentPath.node.value === parentPath.node && parentParentPath.parentPath.type === "ObjectPattern" || parentParentPath.node.type === "ForOfStatement" && parentParentPath.node.left === parentPath.node) { + throw path.buildCodeFrameError(`Decorated private methods are not updatable, but "#${path.node.id.name}" is updated via this expression.`); + } + } + }); } -})); -Object.defineProperty(exports, "JSXNamespacedName", ({ - enumerable: true, - get: function () { - return _index.jsxNamespacedName; + const classLocals = []; + let classInitInjected = false; + const classInitCall = classInitLocal && _core.types.callExpression(_core.types.cloneNode(classInitLocal), []); + const originalClass = path.node; + if (classDecorators) { + classLocals.push(classIdLocal, classInitLocal); + const statics = []; + let staticBlocks = []; + path.get("body.body").forEach(element => { + if (element.isStaticBlock()) { + staticBlocks.push(element.node); + element.remove(); + return; + } + const isProperty = element.isClassProperty() || element.isClassPrivateProperty(); + if ((isProperty || element.isClassPrivateMethod()) && element.node.static) { + if (isProperty && staticBlocks.length > 0) { + const allValues = staticBlocks.map(staticBlockToIIFE); + if (element.node.value) allValues.push(element.node.value); + element.node.value = maybeSequenceExpression(allValues); + staticBlocks = []; + } + element.node.static = false; + statics.push(element.node); + element.remove(); + } + }); + if (statics.length > 0 || staticBlocks.length > 0) { + const staticsClass = _core.template.expression.ast` + class extends ${state.addHelper("identity")} {} + `; + staticsClass.body.body = [_core.types.staticBlock([_core.types.toStatement(originalClass, true) || _core.types.expressionStatement(originalClass)]), ...statics]; + const constructorBody = []; + const newExpr = _core.types.newExpression(staticsClass, []); + if (staticBlocks.length > 0) { + constructorBody.push(...staticBlocks.map(staticBlockToIIFE)); + } + if (classInitCall) { + classInitInjected = true; + constructorBody.push(classInitCall); + } + if (constructorBody.length > 0) { + constructorBody.unshift(_core.types.callExpression(_core.types.super(), [_core.types.cloneNode(classIdLocal)])); + staticsClass.body.body.push(_core.types.classMethod("constructor", _core.types.identifier("constructor"), [], _core.types.blockStatement([_core.types.expressionStatement(_core.types.sequenceExpression(constructorBody))]))); + } else { + newExpr.arguments.push(_core.types.cloneNode(classIdLocal)); + } + path.replaceWith(newExpr); + } } -})); -Object.defineProperty(exports, "JSXOpeningElement", ({ - enumerable: true, - get: function () { - return _index.jsxOpeningElement; + if (!classInitInjected && classInitCall) { + path.node.body.body.push(_core.types.staticBlock([_core.types.expressionStatement(classInitCall)])); } -})); -Object.defineProperty(exports, "JSXOpeningFragment", ({ - enumerable: true, - get: function () { - return _index.jsxOpeningFragment; + let { + superClass + } = originalClass; + if (superClass && version === "2023-05") { + const id = path.scope.maybeGenerateMemoised(superClass); + if (id) { + originalClass.superClass = _core.types.assignmentExpression("=", id, superClass); + superClass = id; + } } -})); -Object.defineProperty(exports, "JSXSpreadAttribute", ({ - enumerable: true, - get: function () { - return _index.jsxSpreadAttribute; + originalClass.body.body.unshift(_core.types.staticBlock([_core.types.expressionStatement(createLocalsAssignment(elementLocals, classLocals, elementDecorations, _core.types.arrayExpression(classDecorations), _core.types.numericLiteral(classDecorationsFlag), needsInstancePrivateBrandCheck ? lastInstancePrivateName : null, typeof className === "object" ? className : undefined, _core.types.cloneNode(superClass), state, version)), requiresStaticInit && _core.types.expressionStatement(_core.types.callExpression(_core.types.cloneNode(staticInitLocal), [_core.types.thisExpression()]))].filter(Boolean))); + path.insertBefore(assignments.map(expr => _core.types.expressionStatement(expr))); + if (needsDeclaraionForClassBinding) { + path.insertBefore(_core.types.variableDeclaration("let", [_core.types.variableDeclarator(_core.types.cloneNode(classIdLocal))])); } -})); -Object.defineProperty(exports, "JSXSpreadChild", ({ - enumerable: true, - get: function () { - return _index.jsxSpreadChild; + path.scope.crawl(); + return path; +} +function createLocalsAssignment(elementLocals, classLocals, elementDecorations, classDecorations, classDecorationsFlag, maybePrivateBranName, setClassName, superClass, state, version) { + let lhs, rhs; + const args = [setClassName ? createSetFunctionNameCall(state, setClassName) : _core.types.thisExpression(), elementDecorations, classDecorations]; + { + if (version === "2021-12" || version === "2022-03" && !state.availableHelper("applyDecs2203R")) { + const lhs = _core.types.arrayPattern([...elementLocals, ...classLocals]); + const rhs = _core.types.callExpression(state.addHelper(version === "2021-12" ? "applyDecs" : "applyDecs2203"), args); + return _core.types.assignmentExpression("=", lhs, rhs); + } } -})); -Object.defineProperty(exports, "JSXText", ({ - enumerable: true, - get: function () { - return _index.jsxText; + if (version === "2023-05") { + if (maybePrivateBranName || superClass || classDecorationsFlag.value !== 0) { + args.push(classDecorationsFlag); + } + if (maybePrivateBranName) { + args.push(_core.template.expression.ast` + _ => ${_core.types.cloneNode(maybePrivateBranName)} in _ + `); + } else if (superClass) { + args.push(_core.types.unaryExpression("void", _core.types.numericLiteral(0))); + } + if (superClass) args.push(superClass); + rhs = _core.types.callExpression(state.addHelper("applyDecs2305"), args); + } else if (version === "2023-01") { + if (maybePrivateBranName) { + args.push(_core.template.expression.ast` + _ => ${_core.types.cloneNode(maybePrivateBranName)} in _ + `); + } + rhs = _core.types.callExpression(state.addHelper("applyDecs2301"), args); + } else { + rhs = _core.types.callExpression(state.addHelper("applyDecs2203R"), args); } -})); -Object.defineProperty(exports, "LabeledStatement", ({ - enumerable: true, - get: function () { - return _index.labeledStatement; + if (elementLocals.length > 0) { + if (classLocals.length > 0) { + lhs = _core.types.objectPattern([_core.types.objectProperty(_core.types.identifier("e"), _core.types.arrayPattern(elementLocals)), _core.types.objectProperty(_core.types.identifier("c"), _core.types.arrayPattern(classLocals))]); + } else { + lhs = _core.types.arrayPattern(elementLocals); + rhs = _core.types.memberExpression(rhs, _core.types.identifier("e"), false, false); + } + } else { + lhs = _core.types.arrayPattern(classLocals); + rhs = _core.types.memberExpression(rhs, _core.types.identifier("c"), false, false); } -})); -Object.defineProperty(exports, "LogicalExpression", ({ - enumerable: true, - get: function () { - return _index.logicalExpression; + return _core.types.assignmentExpression("=", lhs, rhs); +} +function isProtoKey(node) { + return node.type === "Identifier" ? node.name === "__proto__" : node.value === "__proto__"; +} +function isDecorated(node) { + return node.decorators && node.decorators.length > 0; +} +function shouldTransformElement(node) { + switch (node.type) { + case "ClassAccessorProperty": + return true; + case "ClassMethod": + case "ClassProperty": + case "ClassPrivateMethod": + case "ClassPrivateProperty": + return isDecorated(node); + default: + return false; } -})); -Object.defineProperty(exports, "MemberExpression", ({ - enumerable: true, - get: function () { - return _index.memberExpression; +} +function shouldTransformClass(node) { + return isDecorated(node) || node.body.body.some(shouldTransformElement); +} +function NamedEvaluationVisitoryFactory(isAnonymous, visitor) { + function handleComputedProperty(propertyPath, key, state) { + switch (key.type) { + case "StringLiteral": + return _core.types.stringLiteral(key.value); + case "NumericLiteral": + case "BigIntLiteral": + { + const keyValue = key.value + ""; + propertyPath.get("key").replaceWith(_core.types.stringLiteral(keyValue)); + return _core.types.stringLiteral(keyValue); + } + default: + { + const ref = propertyPath.scope.maybeGenerateMemoised(key); + propertyPath.get("key").replaceWith(_core.types.assignmentExpression("=", ref, _core.types.callExpression(state.addHelper("toPropertyKey"), [key]))); + return _core.types.cloneNode(ref); + } + } } -})); -Object.defineProperty(exports, "MetaProperty", ({ - enumerable: true, - get: function () { - return _index.metaProperty; + return { + VariableDeclarator(path, state) { + const id = path.node.id; + if (id.type === "Identifier") { + const initializer = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("init")); + if (isAnonymous(initializer)) { + const name = id.name; + visitor(initializer, state, name); + } + } + }, + AssignmentExpression(path, state) { + const id = path.node.left; + if (id.type === "Identifier") { + const initializer = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("right")); + if (isAnonymous(initializer)) { + switch (path.node.operator) { + case "=": + case "&&=": + case "||=": + case "??=": + visitor(initializer, state, id.name); + } + } + } + }, + AssignmentPattern(path, state) { + const id = path.node.left; + if (id.type === "Identifier") { + const initializer = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("right")); + if (isAnonymous(initializer)) { + const name = id.name; + visitor(initializer, state, name); + } + } + }, + ObjectExpression(path, state) { + for (const propertyPath of path.get("properties")) { + const { + node + } = propertyPath; + if (node.type !== "ObjectProperty") continue; + const id = node.key; + const initializer = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(propertyPath.get("value")); + if (isAnonymous(initializer)) { + if (!node.computed) { + if (!isProtoKey(id)) { + if (id.type === "Identifier") { + visitor(initializer, state, id.name); + } else { + const className = _core.types.stringLiteral(id.value + ""); + visitor(initializer, state, className); + } + } + } else { + const ref = handleComputedProperty(propertyPath, id, state); + visitor(initializer, state, ref); + } + } + } + }, + ClassPrivateProperty(path, state) { + const { + node + } = path; + const initializer = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("value")); + if (isAnonymous(initializer)) { + const className = _core.types.stringLiteral("#" + node.key.id.name); + visitor(initializer, state, className); + } + }, + ClassAccessorProperty(path, state) { + const { + node + } = path; + const id = node.key; + const initializer = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("value")); + if (isAnonymous(initializer)) { + if (!node.computed) { + if (id.type === "Identifier") { + visitor(initializer, state, id.name); + } else if (id.type === "PrivateName") { + const className = _core.types.stringLiteral("#" + id.id.name); + visitor(initializer, state, className); + } else { + const className = _core.types.stringLiteral(id.value + ""); + visitor(initializer, state, className); + } + } else { + const ref = handleComputedProperty(path, id, state); + visitor(initializer, state, ref); + } + } + }, + ClassProperty(path, state) { + const { + node + } = path; + const id = node.key; + const initializer = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("value")); + if (isAnonymous(initializer)) { + if (!node.computed) { + if (id.type === "Identifier") { + visitor(initializer, state, id.name); + } else { + const className = _core.types.stringLiteral(id.value + ""); + visitor(initializer, state, className); + } + } else { + const ref = handleComputedProperty(path, id, state); + visitor(initializer, state, ref); + } + } + } + }; +} +function isDecoratedAnonymousClassExpression(path) { + return path.isClassExpression({ + id: null + }) && shouldTransformClass(path.node); +} +function _default({ + assertVersion, + assumption +}, { + loose +}, version) { + var _assumption; + { + if (version === "2023-05" || version === "2023-01") { + assertVersion("^7.21.0"); + } else if (version === "2021-12") { + assertVersion("^7.16.0"); + } else { + assertVersion("^7.19.0"); + } } -})); -Object.defineProperty(exports, "MixedTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.mixedTypeAnnotation; + const VISITED = new WeakSet(); + const constantSuper = (_assumption = assumption("constantSuper")) != null ? _assumption : loose; + const namedEvaluationVisitor = NamedEvaluationVisitoryFactory(isDecoratedAnonymousClassExpression, visitClass); + function visitClass(path, state, className) { + var _className, _node$id; + if (VISITED.has(path)) return; + const { + node + } = path; + (_className = className) != null ? _className : className = (_node$id = node.id) == null ? void 0 : _node$id.name; + const newPath = transformClass(path, state, constantSuper, version, className, namedEvaluationVisitor); + if (newPath) { + VISITED.add(newPath); + return; + } + VISITED.add(path); } + return { + name: "proposal-decorators", + inherits: _pluginSyntaxDecorators.default, + visitor: Object.assign({ + ExportDefaultDeclaration(path, state) { + const { + declaration + } = path.node; + if ((declaration == null ? void 0 : declaration.type) === "ClassDeclaration" && isDecorated(declaration)) { + const isAnonymous = !declaration.id; + const updatedVarDeclarationPath = (0, _helperSplitExportDeclaration.default)(path); + if (isAnonymous) { + visitClass(updatedVarDeclarationPath, state, _core.types.stringLiteral("default")); + } + } + }, + ExportNamedDeclaration(path) { + const { + declaration + } = path.node; + if ((declaration == null ? void 0 : declaration.type) === "ClassDeclaration" && isDecorated(declaration)) { + (0, _helperSplitExportDeclaration.default)(path); + } + }, + Class(path, state) { + visitClass(path, state, undefined); + } + }, namedEvaluationVisitor) + }; +} + +//# sourceMappingURL=transformer-2023-05.js.map + + +/***/ }), + +/***/ 95244: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ModuleExpression", ({ - enumerable: true, - get: function () { - return _index.moduleExpression; +exports["default"] = void 0; +var _core = __nccwpck_require__(65258); +const buildClassDecorator = _core.template.statement(` + DECORATOR(CLASS_REF = INNER) || CLASS_REF; +`); +const buildClassPrototype = (0, _core.template)(` + CLASS_REF.prototype; +`); +const buildGetDescriptor = (0, _core.template)(` + Object.getOwnPropertyDescriptor(TARGET, PROPERTY); +`); +const buildGetObjectInitializer = (0, _core.template)(` + (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), { + enumerable: true, + configurable: true, + writable: true, + initializer: function(){ + return TEMP; + } + }) +`); +const WARNING_CALLS = new WeakSet(); +function applyEnsureOrdering(path) { + const decorators = (path.isClass() ? [path, ...path.get("body.body")] : path.get("properties")).reduce((acc, prop) => acc.concat(prop.node.decorators || []), []); + const identDecorators = decorators.filter(decorator => !_core.types.isIdentifier(decorator.expression)); + if (identDecorators.length === 0) return; + return _core.types.sequenceExpression(identDecorators.map(decorator => { + const expression = decorator.expression; + const id = decorator.expression = path.scope.generateDeclaredUidIdentifier("dec"); + return _core.types.assignmentExpression("=", id, expression); + }).concat([path.node])); +} +function applyClassDecorators(classPath) { + if (!hasClassDecorators(classPath.node)) return; + const decorators = classPath.node.decorators || []; + classPath.node.decorators = null; + const name = classPath.scope.generateDeclaredUidIdentifier("class"); + return decorators.map(dec => dec.expression).reverse().reduce(function (acc, decorator) { + return buildClassDecorator({ + CLASS_REF: _core.types.cloneNode(name), + DECORATOR: _core.types.cloneNode(decorator), + INNER: acc + }).expression; + }, classPath.node); +} +function hasClassDecorators(classNode) { + var _classNode$decorators; + return !!((_classNode$decorators = classNode.decorators) != null && _classNode$decorators.length); +} +function applyMethodDecorators(path, state) { + if (!hasMethodDecorators(path.node.body.body)) return; + return applyTargetDecorators(path, state, path.node.body.body); +} +function hasMethodDecorators(body) { + return body.some(node => { + var _node$decorators; + return (_node$decorators = node.decorators) == null ? void 0 : _node$decorators.length; + }); +} +function applyObjectDecorators(path, state) { + if (!hasMethodDecorators(path.node.properties)) return; + return applyTargetDecorators(path, state, path.node.properties.filter(prop => prop.type !== "SpreadElement")); +} +function applyTargetDecorators(path, state, decoratedProps) { + const name = path.scope.generateDeclaredUidIdentifier(path.isClass() ? "class" : "obj"); + const exprs = decoratedProps.reduce(function (acc, node) { + let decorators = []; + if (node.decorators != null) { + decorators = node.decorators; + node.decorators = null; + } + if (decorators.length === 0) return acc; + if (node.computed) { + throw path.buildCodeFrameError("Computed method/property decorators are not yet supported."); + } + const property = _core.types.isLiteral(node.key) ? node.key : _core.types.stringLiteral(node.key.name); + const target = path.isClass() && !node.static ? buildClassPrototype({ + CLASS_REF: name + }).expression : name; + if (_core.types.isClassProperty(node, { + static: false + })) { + const descriptor = path.scope.generateDeclaredUidIdentifier("descriptor"); + const initializer = node.value ? _core.types.functionExpression(null, [], _core.types.blockStatement([_core.types.returnStatement(node.value)])) : _core.types.nullLiteral(); + node.value = _core.types.callExpression(state.addHelper("initializerWarningHelper"), [descriptor, _core.types.thisExpression()]); + WARNING_CALLS.add(node.value); + acc.push(_core.types.assignmentExpression("=", _core.types.cloneNode(descriptor), _core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map(dec => _core.types.cloneNode(dec.expression))), _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("enumerable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("writable"), _core.types.booleanLiteral(true)), _core.types.objectProperty(_core.types.identifier("initializer"), initializer)])]))); + } else { + acc.push(_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"), [_core.types.cloneNode(target), _core.types.cloneNode(property), _core.types.arrayExpression(decorators.map(dec => _core.types.cloneNode(dec.expression))), _core.types.isObjectProperty(node) || _core.types.isClassProperty(node, { + static: true + }) ? buildGetObjectInitializer({ + TEMP: path.scope.generateDeclaredUidIdentifier("init"), + TARGET: _core.types.cloneNode(target), + PROPERTY: _core.types.cloneNode(property) + }).expression : buildGetDescriptor({ + TARGET: _core.types.cloneNode(target), + PROPERTY: _core.types.cloneNode(property) + }).expression, _core.types.cloneNode(target)])); + } + return acc; + }, []); + return _core.types.sequenceExpression([_core.types.assignmentExpression("=", _core.types.cloneNode(name), path.node), _core.types.sequenceExpression(exprs), _core.types.cloneNode(name)]); +} +function decoratedClassToExpression({ + node, + scope +}) { + if (!hasClassDecorators(node) && !hasMethodDecorators(node.body.body)) { + return; } -})); -Object.defineProperty(exports, "NewExpression", ({ - enumerable: true, - get: function () { - return _index.newExpression; + const ref = node.id ? _core.types.cloneNode(node.id) : scope.generateUidIdentifier("class"); + return _core.types.variableDeclaration("let", [_core.types.variableDeclarator(ref, _core.types.toExpression(node))]); +} +const visitor = { + ExportDefaultDeclaration(path) { + const decl = path.get("declaration"); + if (!decl.isClassDeclaration()) return; + const replacement = decoratedClassToExpression(decl); + if (replacement) { + const [varDeclPath] = path.replaceWithMultiple([replacement, _core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.cloneNode(replacement.declarations[0].id), _core.types.identifier("default"))])]); + if (!decl.node.id) { + path.scope.registerDeclaration(varDeclPath); + } + } + }, + ClassDeclaration(path) { + const replacement = decoratedClassToExpression(path); + if (replacement) { + const [newPath] = path.replaceWith(replacement); + const decl = newPath.get("declarations.0"); + const id = decl.node.id; + const binding = path.scope.getOwnBinding(id.name); + binding.identifier = id; + binding.path = decl; + } + }, + ClassExpression(path, state) { + const decoratedClass = applyEnsureOrdering(path) || applyClassDecorators(path) || applyMethodDecorators(path, state); + if (decoratedClass) path.replaceWith(decoratedClass); + }, + ObjectExpression(path, state) { + const decoratedObject = applyEnsureOrdering(path) || applyObjectDecorators(path, state); + if (decoratedObject) path.replaceWith(decoratedObject); + }, + AssignmentExpression(path, state) { + if (!WARNING_CALLS.has(path.node.right)) return; + path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"), [_core.types.cloneNode(path.get("left.object").node), _core.types.stringLiteral(path.get("left.property").node.name || path.get("left.property").node.value), _core.types.cloneNode(path.get("right.arguments")[0].node), _core.types.cloneNode(path.get("right.arguments")[1].node)])); + }, + CallExpression(path, state) { + if (path.node.arguments.length !== 3) return; + if (!WARNING_CALLS.has(path.node.arguments[2])) return; + if (path.node.callee.name !== state.addHelper("defineProperty").name) { + return; + } + path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"), [_core.types.cloneNode(path.get("arguments")[0].node), _core.types.cloneNode(path.get("arguments")[1].node), _core.types.cloneNode(path.get("arguments.2.arguments")[0].node), _core.types.cloneNode(path.get("arguments.2.arguments")[1].node)])); } +}; +var _default = exports["default"] = visitor; + +//# sourceMappingURL=transformer-legacy.js.map + + +/***/ }), + +/***/ 27638: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Noop", ({ - enumerable: true, - get: function () { - return _index.noop; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxDoExpressions = __nccwpck_require__(96698); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "proposal-do-expressions", + inherits: _pluginSyntaxDoExpressions.default, + visitor: { + DoExpression: { + exit(path) { + const { + node + } = path; + if (node.async) { + return; + } + const body = node.body.body; + if (body.length) { + path.replaceExpressionWithStatements(body); + } else { + path.replaceWith(path.scope.buildUndefinedNode()); + } + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 97933: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "NullLiteral", ({ - enumerable: true, - get: function () { - return _index.nullLiteral; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxExportDefaultFrom = __nccwpck_require__(97253); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "proposal-export-default-from", + inherits: _pluginSyntaxExportDefaultFrom.default, + visitor: { + ExportNamedDeclaration(path) { + const { + node + } = path; + const { + specifiers, + source + } = node; + if (!_core.types.isExportDefaultSpecifier(specifiers[0])) return; + const { + exported + } = specifiers.shift(); + if (specifiers.every(s => _core.types.isExportSpecifier(s))) { + specifiers.unshift(_core.types.exportSpecifier(_core.types.identifier("default"), exported)); + return; + } + path.insertBefore(_core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.identifier("default"), exported)], _core.types.cloneNode(source))); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 56394: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "NullLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.nullLiteralTypeAnnotation; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxFunctionBind = __nccwpck_require__(25953); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + function getTempId(scope) { + let id = scope.path.getData("functionBind"); + if (id) return _core.types.cloneNode(id); + id = scope.generateDeclaredUidIdentifier("context"); + return scope.path.setData("functionBind", id); } -})); -Object.defineProperty(exports, "NullableTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.nullableTypeAnnotation; + function getObject(bind) { + if (_core.types.isExpression(bind.object)) { + return bind.object; + } + return bind.callee.object; } -})); -Object.defineProperty(exports, "NumberLiteral", ({ - enumerable: true, - get: function () { - return _index.numberLiteral; + function getStaticContext(bind, scope) { + const object = getObject(bind); + return scope.isStatic(object) && (_core.types.isSuper(object) ? _core.types.thisExpression() : object); } -})); -Object.defineProperty(exports, "NumberLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.numberLiteralTypeAnnotation; + function inferBindContext(bind, scope) { + const staticContext = getStaticContext(bind, scope); + if (staticContext) return _core.types.cloneNode(staticContext); + const tempId = getTempId(scope); + if (bind.object) { + bind.callee = _core.types.sequenceExpression([_core.types.assignmentExpression("=", tempId, bind.object), bind.callee]); + } else if (_core.types.isMemberExpression(bind.callee)) { + bind.callee.object = _core.types.assignmentExpression("=", tempId, bind.callee.object); + } + return _core.types.cloneNode(tempId); } + return { + name: "proposal-function-bind", + inherits: _pluginSyntaxFunctionBind.default, + visitor: { + CallExpression({ + node, + scope + }) { + const bind = node.callee; + if (!_core.types.isBindExpression(bind)) return; + const context = inferBindContext(bind, scope); + node.callee = _core.types.memberExpression(bind.callee, _core.types.identifier("call")); + node.arguments.unshift(context); + }, + BindExpression(path) { + const { + node, + scope + } = path; + const context = inferBindContext(node, scope); + path.replaceWith(_core.types.callExpression(_core.types.memberExpression(node.callee, _core.types.identifier("bind")), [context])); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 36351: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "NumberTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.numberTypeAnnotation; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxPartialApplication = __nccwpck_require__(99685); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + function hasArgumentPlaceholder(node) { + return node.arguments.some(arg => _core.types.isArgumentPlaceholder(arg)); } -})); -Object.defineProperty(exports, "NumericLiteral", ({ - enumerable: true, - get: function () { - return _index.numericLiteral; + function unwrapArguments({ + arguments: args + }, scope) { + const init = []; + for (let i = 0; i < args.length; i++) { + const node = args[i]; + if (!_core.types.isArgumentPlaceholder(node) && !_core.types.isImmutable(node)) { + const id = scope.generateUidIdentifierBasedOnNode(node, "param"); + scope.push({ + id + }); + if (_core.types.isSpreadElement(node)) { + init.push(_core.types.assignmentExpression("=", _core.types.cloneNode(id), _core.types.arrayExpression([_core.types.spreadElement(node.argument)]))); + node.argument = _core.types.cloneNode(id); + } else { + init.push(_core.types.assignmentExpression("=", _core.types.cloneNode(id), node)); + args[i] = _core.types.cloneNode(id); + } + } + } + return init; } -})); -Object.defineProperty(exports, "ObjectExpression", ({ - enumerable: true, - get: function () { - return _index.objectExpression; + function replacePlaceholders(node, scope) { + const placeholders = []; + const newArgs = []; + node.arguments.forEach(arg => { + if (_core.types.isArgumentPlaceholder(arg)) { + const id = scope.generateUid("_argPlaceholder"); + placeholders.push(_core.types.identifier(id)); + newArgs.push(_core.types.identifier(id)); + } else { + newArgs.push(arg); + } + }); + return [placeholders, newArgs]; } + return { + name: "proposal-partial-application", + inherits: _pluginSyntaxPartialApplication.default, + visitor: { + CallExpression(path) { + if (!hasArgumentPlaceholder(path.node)) { + return; + } + const { + node, + scope + } = path; + const functionLVal = path.scope.generateUidIdentifierBasedOnNode(node.callee); + const sequenceParts = []; + const argsInitializers = unwrapArguments(node, scope); + const [placeholdersParams, args] = replacePlaceholders(node, scope); + scope.push({ + id: functionLVal + }); + if (node.callee.type === "MemberExpression") { + const { + object: receiver, + property + } = node.callee; + const receiverLVal = path.scope.generateUidIdentifierBasedOnNode(receiver); + scope.push({ + id: receiverLVal + }); + sequenceParts.push(_core.types.assignmentExpression("=", _core.types.cloneNode(receiverLVal), receiver), _core.types.assignmentExpression("=", _core.types.cloneNode(functionLVal), _core.types.memberExpression(_core.types.cloneNode(receiverLVal), property)), ...argsInitializers, _core.types.functionExpression(_core.types.isIdentifier(property) ? _core.types.cloneNode(property) : path.scope.generateUidIdentifierBasedOnNode(property), placeholdersParams, _core.types.blockStatement([_core.types.returnStatement(_core.types.callExpression(_core.types.memberExpression(_core.types.cloneNode(functionLVal), _core.types.identifier("call")), [_core.types.cloneNode(receiverLVal), ...args]))], []), false, false)); + } else { + sequenceParts.push(_core.types.assignmentExpression("=", _core.types.cloneNode(functionLVal), node.callee), ...argsInitializers, _core.types.functionExpression(_core.types.isIdentifier(node.callee) ? _core.types.cloneNode(node.callee) : path.scope.generateUidIdentifierBasedOnNode(node.callee), placeholdersParams, _core.types.blockStatement([_core.types.returnStatement(_core.types.callExpression(_core.types.cloneNode(functionLVal), args))], []), false, false)); + } + path.replaceWith(_core.types.sequenceExpression(sequenceParts)); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 23251: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectMethod", ({ - enumerable: true, - get: function () { - return _index.objectMethod; +exports["default"] = void 0; +var _core = __nccwpck_require__(65258); +function isConciseArrowExpression(node) { + return _core.types.isArrowFunctionExpression(node) && _core.types.isExpression(node.body) && !node.async; +} +const buildOptimizedSequenceExpression = ({ + call, + path, + placeholder +}) => { + const { + callee: calledExpression + } = call; + const pipelineLeft = path.node.left; + const assign = _core.types.assignmentExpression("=", _core.types.cloneNode(placeholder), pipelineLeft); + const expressionIsArrow = isConciseArrowExpression(calledExpression); + if (expressionIsArrow) { + let param; + let optimizeArrow = true; + const { + params + } = calledExpression; + if (params.length === 1 && _core.types.isIdentifier(params[0])) { + param = params[0]; + } else if (params.length > 0) { + optimizeArrow = false; + } + if (optimizeArrow && !param) { + return _core.types.sequenceExpression([pipelineLeft, calledExpression.body]); + } else if (param) { + path.scope.push({ + id: _core.types.cloneNode(placeholder) + }); + path.get("right").scope.rename(param.name, placeholder.name); + return _core.types.sequenceExpression([assign, calledExpression.body]); + } + } else if (_core.types.isIdentifier(calledExpression, { + name: "eval" + })) { + const evalSequence = _core.types.sequenceExpression([_core.types.numericLiteral(0), calledExpression]); + call.callee = evalSequence; } + path.scope.push({ + id: _core.types.cloneNode(placeholder) + }); + return _core.types.sequenceExpression([assign, call]); +}; +var _default = exports["default"] = buildOptimizedSequenceExpression; + +//# sourceMappingURL=buildOptimizedSequenceExpression.js.map + + +/***/ }), + +/***/ 51381: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectPattern", ({ - enumerable: true, - get: function () { - return _index.objectPattern; +exports["default"] = void 0; +var _core = __nccwpck_require__(65258); +var _buildOptimizedSequenceExpression = __nccwpck_require__(23251); +const fsharpVisitor = { + BinaryExpression(path) { + const { + scope, + node + } = path; + const { + operator, + left, + right + } = node; + if (operator !== "|>") return; + const placeholder = scope.generateUidIdentifierBasedOnNode(left); + const call = right.type === "AwaitExpression" ? _core.types.awaitExpression(_core.types.cloneNode(placeholder)) : _core.types.callExpression(right, [_core.types.cloneNode(placeholder)]); + const sequence = (0, _buildOptimizedSequenceExpression.default)({ + placeholder, + call, + path: path + }); + path.replaceWith(sequence); } +}; +var _default = exports["default"] = fsharpVisitor; + +//# sourceMappingURL=fsharpVisitor.js.map + + +/***/ }), + +/***/ 68270: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectProperty", ({ - enumerable: true, - get: function () { - return _index.objectProperty; +exports["default"] = void 0; +var _core = __nccwpck_require__(65258); +const topicReferenceVisitor = { + exit(path, state) { + if (path.isTopicReference()) { + state.topicReferences.push(path); + } else { + if (state.topicReferences.length === 0 && !state.sideEffectsBeforeFirstTopicReference && !path.isPure()) { + state.sideEffectsBeforeFirstTopicReference = true; + } + } + }, + "ClassBody|Function"(_, state) { + if (state.topicReferences.length === 0) { + state.sideEffectsBeforeFirstTopicReference = true; + } } -})); -Object.defineProperty(exports, "ObjectTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.objectTypeAnnotation; +}; +const visitor = { + BinaryExpression: { + exit(path) { + const { + scope, + node + } = path; + if (node.operator !== "|>") { + return; + } + const pipeBodyPath = path.get("right"); + if (pipeBodyPath.node.type === "TopicReference") { + path.replaceWith(node.left); + return; + } + const visitorState = { + topicReferences: [], + sideEffectsBeforeFirstTopicReference: pipeBodyPath.isFunction() + }; + pipeBodyPath.traverse(topicReferenceVisitor, visitorState); + if (visitorState.topicReferences.length === 1 && (!visitorState.sideEffectsBeforeFirstTopicReference || path.scope.isPure(node.left, true))) { + visitorState.topicReferences[0].replaceWith(node.left); + path.replaceWith(node.right); + return; + } + const topicVariable = scope.generateUidIdentifierBasedOnNode(node); + scope.push({ + id: topicVariable + }); + visitorState.topicReferences.forEach(path => path.replaceWith(_core.types.cloneNode(topicVariable))); + path.replaceWith(_core.types.sequenceExpression([_core.types.assignmentExpression("=", _core.types.cloneNode(topicVariable), node.left), node.right])); + } } +}; +var _default = exports["default"] = visitor; + +//# sourceMappingURL=hackVisitor.js.map + + +/***/ }), + +/***/ 86804: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectTypeCallProperty", ({ - enumerable: true, - get: function () { - return _index.objectTypeCallProperty; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxPipelineOperator = __nccwpck_require__(31618); +var _minimalVisitor = __nccwpck_require__(78030); +var _hackVisitor = __nccwpck_require__(68270); +var _fsharpVisitor = __nccwpck_require__(51381); +var _smartVisitor = __nccwpck_require__(74757); +const visitorsPerProposal = { + minimal: _minimalVisitor.default, + hack: _hackVisitor.default, + fsharp: _fsharpVisitor.default, + smart: _smartVisitor.default +}; +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + const { + proposal + } = options; + if (proposal === "smart") { + console.warn(`The smart-mix pipe operator is deprecated. Use "proposal": "hack" instead.`); } + return { + name: "proposal-pipeline-operator", + inherits: _pluginSyntaxPipelineOperator.default, + visitor: visitorsPerProposal[options.proposal] + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 78030: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectTypeIndexer", ({ - enumerable: true, - get: function () { - return _index.objectTypeIndexer; +exports["default"] = void 0; +var _core = __nccwpck_require__(65258); +var _buildOptimizedSequenceExpression = __nccwpck_require__(23251); +const minimalVisitor = { + BinaryExpression(path) { + const { + scope, + node + } = path; + const { + operator, + left, + right + } = node; + if (operator !== "|>") return; + const placeholder = scope.generateUidIdentifierBasedOnNode(left); + const call = _core.types.callExpression(right, [_core.types.cloneNode(placeholder)]); + path.replaceWith((0, _buildOptimizedSequenceExpression.default)({ + placeholder, + call, + path: path + })); } +}; +var _default = exports["default"] = minimalVisitor; + +//# sourceMappingURL=minimalVisitor.js.map + + +/***/ }), + +/***/ 74757: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectTypeInternalSlot", ({ - enumerable: true, - get: function () { - return _index.objectTypeInternalSlot; +exports["default"] = void 0; +var _core = __nccwpck_require__(65258); +const updateTopicReferenceVisitor = { + PipelinePrimaryTopicReference(path) { + path.replaceWith(_core.types.cloneNode(this.topicId)); + }, + PipelineTopicExpression(path) { + path.skip(); } -})); -Object.defineProperty(exports, "ObjectTypeProperty", ({ - enumerable: true, - get: function () { - return _index.objectTypeProperty; +}; +const smartVisitor = { + BinaryExpression(path) { + const { + scope + } = path; + const { + node + } = path; + const { + operator, + left, + right + } = node; + if (operator !== "|>") return; + const placeholder = scope.generateUidIdentifierBasedOnNode(left); + scope.push({ + id: placeholder + }); + let call; + if (_core.types.isPipelineTopicExpression(right)) { + path.get("right").traverse(updateTopicReferenceVisitor, { + topicId: placeholder + }); + call = right.expression; + } else { + let callee = right.callee; + if (_core.types.isIdentifier(callee, { + name: "eval" + })) { + callee = _core.types.sequenceExpression([_core.types.numericLiteral(0), callee]); + } + call = _core.types.callExpression(callee, [_core.types.cloneNode(placeholder)]); + } + path.replaceWith(_core.types.sequenceExpression([_core.types.assignmentExpression("=", _core.types.cloneNode(placeholder), left), call])); } +}; +var _default = exports["default"] = smartVisitor; + +//# sourceMappingURL=smartVisitor.js.map + + +/***/ }), + +/***/ 56639: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ObjectTypeSpreadProperty", ({ - enumerable: true, - get: function () { - return _index.objectTypeSpreadProperty; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxRecordAndTuple = __nccwpck_require__(184); +var _core = __nccwpck_require__(65258); +var _helperModuleImports = __nccwpck_require__(52408); +var _helperValidatorOption = __nccwpck_require__(16122); +const v = new _helperValidatorOption.OptionValidator("@babel/plugin-proposal-record-and-tuple"); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + const polyfillModuleName = v.validateStringOption("polyfillModuleName", options.polyfillModuleName, "@bloomberg/record-tuple-polyfill"); + const shouldImportPolyfill = v.validateBooleanOption("importPolyfill", options.importPolyfill, !!options.polyfillModuleName); + const importCaches = new WeakMap(); + function getOr(map, key, getDefault) { + let value = map.get(key); + if (!value) map.set(key, value = getDefault()); + return value; } -})); -Object.defineProperty(exports, "OpaqueType", ({ - enumerable: true, - get: function () { - return _index.opaqueType; + function getBuiltIn(name, programPath) { + if (!shouldImportPolyfill) return _core.types.identifier(name); + if (!programPath) { + throw new Error("Internal error: unable to find the Program node."); + } + const cacheKey = `${name}:${(0, _helperModuleImports.isModule)(programPath)}`; + const cache = getOr(importCaches, programPath.node, () => new Map()); + const localBindingName = getOr(cache, cacheKey, () => { + return (0, _helperModuleImports.addNamed)(programPath, name, polyfillModuleName, { + importedInterop: "uncompiled" + }).name; + }); + return _core.types.identifier(localBindingName); } + return { + name: "proposal-record-and-tuple", + inherits: _pluginSyntaxRecordAndTuple.default, + visitor: { + Program(path, state) { + state.programPath = path; + }, + RecordExpression(path, state) { + const record = getBuiltIn("Record", state.programPath); + const object = _core.types.objectExpression(path.node.properties); + const wrapped = _core.types.callExpression(record, [object]); + path.replaceWith(wrapped); + }, + TupleExpression(path, state) { + const tuple = getBuiltIn("Tuple", state.programPath); + const wrapped = _core.types.callExpression(tuple, path.node.elements); + path.replaceWith(wrapped); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 48691: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OptionalCallExpression", ({ - enumerable: true, - get: function () { - return _index.optionalCallExpression; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + let { + version + } = options; + { + const { + legacy + } = options; + if (legacy !== undefined) { + if (typeof legacy !== "boolean") { + throw new Error(".legacy must be a boolean."); + } + if (version !== undefined) { + throw new Error("You can either use the .legacy or the .version option, not both."); + } + } + if (version === undefined) { + version = legacy ? "legacy" : "2018-09"; + } else if (version !== "2023-05" && version !== "2023-01" && version !== "2022-03" && version !== "2021-12" && version !== "2018-09" && version !== "legacy") { + throw new Error("Unsupported decorators version: " + version); + } + var { + decoratorsBeforeExport + } = options; + if (decoratorsBeforeExport === undefined) { + if (version === "2021-12" || version === "2022-03") { + decoratorsBeforeExport = false; + } else if (version === "2018-09") { + throw new Error("The decorators plugin, when .version is '2018-09' or not specified," + " requires a 'decoratorsBeforeExport' option, whose value must be a boolean."); + } + } else { + if (version === "legacy" || version === "2022-03" || version === "2023-01") { + throw new Error(`'decoratorsBeforeExport' can't be used with ${version} decorators.`); + } + if (typeof decoratorsBeforeExport !== "boolean") { + throw new Error("'decoratorsBeforeExport' must be a boolean."); + } + } } + return { + name: "syntax-decorators", + manipulateOptions({ + generatorOpts + }, parserOpts) { + if (version === "legacy") { + parserOpts.plugins.push("decorators-legacy"); + } else { + if (version === "2023-01" || version === "2023-05") { + parserOpts.plugins.push(["decorators", { + allowCallParenthesized: false + }], "decoratorAutoAccessors"); + } else if (version === "2022-03") { + parserOpts.plugins.push(["decorators", { + decoratorsBeforeExport: false, + allowCallParenthesized: false + }], "decoratorAutoAccessors"); + } else if (version === "2021-12") { + parserOpts.plugins.push(["decorators", { + decoratorsBeforeExport + }], "decoratorAutoAccessors"); + generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport; + } else if (version === "2018-09") { + parserOpts.plugins.push(["decorators", { + decoratorsBeforeExport + }]); + generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport; + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 96698: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OptionalIndexedAccessType", ({ - enumerable: true, - get: function () { - return _index.optionalIndexedAccessType; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "syntax-do-expressions", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("doExpressions"); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 97253: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "OptionalMemberExpression", ({ - enumerable: true, - get: function () { - return _index.optionalMemberExpression; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "syntax-export-default-from", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("exportDefaultFrom"); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 25953: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "ParenthesizedExpression", ({ - enumerable: true, - get: function () { - return _index.parenthesizedExpression; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "syntax-function-bind", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("functionBind"); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 67882: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PipelineBareFunction", ({ - enumerable: true, - get: function () { - return _index.pipelineBareFunction; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "syntax-import-assertions", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("importAssertions"); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 92040: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PipelinePrimaryTopicReference", ({ - enumerable: true, - get: function () { - return _index.pipelinePrimaryTopicReference; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, { + deprecatedAssertSyntax +}) => { + api.assertVersion("^7.22.0"); + if (deprecatedAssertSyntax != null && typeof deprecatedAssertSyntax !== "boolean") { + throw new Error("'deprecatedAssertSyntax' must be a boolean, if specified."); } + return { + name: "syntax-import-attributes", + manipulateOptions({ + parserOpts, + generatorOpts + }) { + var _generatorOpts$import; + (_generatorOpts$import = generatorOpts.importAttributesKeyword) != null ? _generatorOpts$import : generatorOpts.importAttributesKeyword = "with"; + parserOpts.plugins.push(["importAttributes", { + deprecatedAssertSyntax: Boolean(deprecatedAssertSyntax) + }]); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 41594: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PipelineTopicExpression", ({ - enumerable: true, - get: function () { - return _index.pipelineTopicExpression; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "syntax-jsx", + manipulateOptions(opts, parserOpts) { + { + if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) { + return; + } + } + parserOpts.plugins.push("jsx"); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 99685: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "Placeholder", ({ - enumerable: true, - get: function () { - return _index.placeholder; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "syntax-partial-application", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("partialApplication"); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 31618: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "PrivateName", ({ - enumerable: true, - get: function () { - return _index.privateName; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +const PIPELINE_PROPOSALS = ["minimal", "fsharp", "hack", "smart"]; +const TOPIC_TOKENS = ["^^", "@@", "^", "%", "#"]; +const documentationURL = "https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator"; +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, { + proposal, + topicToken +}) => { + api.assertVersion(7); + if (typeof proposal !== "string" || !PIPELINE_PROPOSALS.includes(proposal)) { + const proposalList = PIPELINE_PROPOSALS.map(p => `"${p}"`).join(", "); + throw new Error(`The pipeline plugin requires a "proposal" option. "proposal" must be one of: ${proposalList}. See <${documentationURL}>.`); } -})); -Object.defineProperty(exports, "Program", ({ - enumerable: true, - get: function () { - return _index.program; + if (proposal === "hack" && !TOPIC_TOKENS.includes(topicToken)) { + const topicTokenList = TOPIC_TOKENS.map(t => `"${t}"`).join(", "); + throw new Error(`The pipeline plugin in "proposal": "hack" mode also requires a "topicToken" option. "topicToken" must be one of: ${topicTokenList}. See <${documentationURL}>.`); } + return { + name: "syntax-pipeline-operator", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push(["pipelineOperator", { + proposal, + topicToken + }]); + opts.generatorOpts.topicToken = topicToken; + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 184: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "QualifiedTypeIdentifier", ({ - enumerable: true, - get: function () { - return _index.qualifiedTypeIdentifier; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + return { + name: "syntax-record-and-tuple", + manipulateOptions(opts, parserOpts) { + opts.generatorOpts.recordAndTupleSyntaxType = options.syntaxType; + parserOpts.plugins.push(["recordAndTuple", { + syntaxType: options.syntaxType + }]); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 67006: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RecordExpression", ({ - enumerable: true, - get: function () { - return _index.recordExpression; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +{ + var removePlugin = function (plugins, name) { + const indices = []; + plugins.forEach((plugin, i) => { + const n = Array.isArray(plugin) ? plugin[0] : plugin; + if (n === name) { + indices.unshift(i); + } + }); + for (const i of indices) { + plugins.splice(i, 1); + } + }; +} +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, opts) => { + api.assertVersion(7); + const { + disallowAmbiguousJSXLike, + dts + } = opts; + { + var { + isTSX + } = opts; } + return { + name: "syntax-typescript", + manipulateOptions(opts, parserOpts) { + { + const { + plugins + } = parserOpts; + removePlugin(plugins, "flow"); + removePlugin(plugins, "jsx"); + plugins.push("objectRestSpread", "classProperties"); + if (isTSX) { + plugins.push("jsx"); + } + } + parserOpts.plugins.push(["typescript", { + disallowAmbiguousJSXLike, + dts + }]); + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 78069: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RegExpLiteral", ({ - enumerable: true, - get: function () { - return _index.regExpLiteral; - } +exports["default"] = void 0; + +var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(63106); + +var _helperPluginUtils = __nccwpck_require__(36028); + +var _default = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "syntax-unicode-sets-regex", + feature: "unicodeSetsFlag_syntax", + + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("regexpUnicodeSets"); + } + + }); +}); + +exports["default"] = _default; + +/***/ }), + +/***/ 9158: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RegexLiteral", ({ - enumerable: true, - get: function () { - return _index.regexLiteral; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption; + api.assertVersion(7); + const noNewArrows = (_api$assumption = api.assumption("noNewArrows")) != null ? _api$assumption : !options.spec; + return { + name: "transform-arrow-functions", + visitor: { + ArrowFunctionExpression(path) { + if (!path.isArrowFunctionExpression()) return; + { + path.arrowFunctionToExpression({ + allowInsertArrow: false, + noNewArrows, + specCompliant: !noNewArrows + }); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 22608: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "RestElement", ({ - enumerable: true, - get: function () { - return _index.restElement; +exports["default"] = _default; +var _core = __nccwpck_require__(65258); +const buildForAwait = (0, _core.template)(` + async function wrapper() { + var ITERATOR_ABRUPT_COMPLETION = false; + var ITERATOR_HAD_ERROR_KEY = false; + var ITERATOR_ERROR_KEY; + try { + for ( + var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY; + ITERATOR_ABRUPT_COMPLETION = !(STEP_KEY = await ITERATOR_KEY.next()).done; + ITERATOR_ABRUPT_COMPLETION = false + ) { + } + } catch (err) { + ITERATOR_HAD_ERROR_KEY = true; + ITERATOR_ERROR_KEY = err; + } finally { + try { + if (ITERATOR_ABRUPT_COMPLETION && ITERATOR_KEY.return != null) { + await ITERATOR_KEY.return(); + } + } finally { + if (ITERATOR_HAD_ERROR_KEY) { + throw ITERATOR_ERROR_KEY; + } + } + } } -})); -Object.defineProperty(exports, "RestProperty", ({ - enumerable: true, - get: function () { - return _index.restProperty; +`); +function _default(path, { + getAsyncIterator +}) { + const { + node, + scope, + parent + } = path; + const stepKey = scope.generateUidIdentifier("step"); + const stepValue = _core.types.memberExpression(stepKey, _core.types.identifier("value")); + const left = node.left; + let declar; + if (_core.types.isIdentifier(left) || _core.types.isPattern(left) || _core.types.isMemberExpression(left)) { + declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, stepValue)); + } else if (_core.types.isVariableDeclaration(left)) { + declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, stepValue)]); } -})); -Object.defineProperty(exports, "ReturnStatement", ({ - enumerable: true, - get: function () { - return _index.returnStatement; + let template = buildForAwait({ + ITERATOR_HAD_ERROR_KEY: scope.generateUidIdentifier("didIteratorError"), + ITERATOR_ABRUPT_COMPLETION: scope.generateUidIdentifier("iteratorAbruptCompletion"), + ITERATOR_ERROR_KEY: scope.generateUidIdentifier("iteratorError"), + ITERATOR_KEY: scope.generateUidIdentifier("iterator"), + GET_ITERATOR: getAsyncIterator, + OBJECT: node.right, + STEP_KEY: _core.types.cloneNode(stepKey) + }); + template = template.body.body; + const isLabeledParent = _core.types.isLabeledStatement(parent); + const tryBody = template[3].block.body; + const loop = tryBody[0]; + if (isLabeledParent) { + tryBody[0] = _core.types.labeledStatement(parent.label, loop); } + return { + replaceParent: isLabeledParent, + node: template, + declar, + loop + }; +} + +//# sourceMappingURL=for-await.js.map + + +/***/ }), + +/***/ 79178: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SequenceExpression", ({ - enumerable: true, - get: function () { - return _index.sequenceExpression; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperRemapAsyncToGenerator = __nccwpck_require__(65322); +var _core = __nccwpck_require__(65258); +var _forAwait = __nccwpck_require__(22608); +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const yieldStarVisitor = _core.traverse.visitors.merge([{ + ArrowFunctionExpression(path) { + path.skip(); + }, + YieldExpression({ + node + }, state) { + if (!node.delegate) return; + const asyncIter = _core.types.callExpression(state.addHelper("asyncIterator"), [node.argument]); + node.argument = _core.types.callExpression(state.addHelper("asyncGeneratorDelegate"), [asyncIter, state.addHelper("awaitAsyncGenerator")]); + } + }, _helperEnvironmentVisitor.default]); + const forAwaitVisitor = _core.traverse.visitors.merge([{ + ArrowFunctionExpression(path) { + path.skip(); + }, + ForOfStatement(path, { + file + }) { + const { + node + } = path; + if (!node.await) return; + const build = (0, _forAwait.default)(path, { + getAsyncIterator: file.addHelper("asyncIterator") + }); + const { + declar, + loop + } = build; + const block = loop.body; + path.ensureBlock(); + if (declar) { + block.body.push(declar); + if (path.node.body.body.length) { + block.body.push(_core.types.blockStatement(path.node.body.body)); + } + } else { + block.body.push(...path.node.body.body); + } + _core.types.inherits(loop, node); + _core.types.inherits(loop.body, node.body); + const p = build.replaceParent ? path.parentPath : path; + p.replaceWithMultiple(build.node); + p.scope.parent.crawl(); + } + }, _helperEnvironmentVisitor.default]); + const visitor = { + Function(path, state) { + if (!path.node.async) return; + path.traverse(forAwaitVisitor, state); + if (!path.node.generator) return; + path.traverse(yieldStarVisitor, state); + (0, _helperRemapAsyncToGenerator.default)(path, { + wrapAsync: state.addHelper("wrapAsyncGenerator"), + wrapAwait: state.addHelper("awaitAsyncGenerator") + }); + } + }; + return { + name: "transform-async-generator-functions", + inherits: (__nccwpck_require__(58656)["default"]), + visitor: { + Program(path, state) { + path.traverse(visitor, state); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 57524: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SpreadElement", ({ - enumerable: true, - get: function () { - return _index.spreadElement; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperRemapAsyncToGenerator = __nccwpck_require__(65322); +var _helperModuleImports = __nccwpck_require__(52408); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const { + method, + module + } = options; + const noNewArrows = (_api$assumption = api.assumption("noNewArrows")) != null ? _api$assumption : true; + const ignoreFunctionLength = (_api$assumption2 = api.assumption("ignoreFunctionLength")) != null ? _api$assumption2 : false; + if (method && module) { + return { + name: "transform-async-to-generator", + visitor: { + Function(path, state) { + if (!path.node.async || path.node.generator) return; + let wrapAsync = state.methodWrapper; + if (wrapAsync) { + wrapAsync = _core.types.cloneNode(wrapAsync); + } else { + wrapAsync = state.methodWrapper = (0, _helperModuleImports.addNamed)(path, method, module); + } + (0, _helperRemapAsyncToGenerator.default)(path, { + wrapAsync + }, noNewArrows, ignoreFunctionLength); + } + } + }; } + return { + name: "transform-async-to-generator", + visitor: { + Function(path, state) { + if (!path.node.async || path.node.generator) return; + (0, _helperRemapAsyncToGenerator.default)(path, { + wrapAsync: state.addHelper("asyncToGenerator") + }, noNewArrows, ignoreFunctionLength); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 287: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "SpreadProperty", ({ - enumerable: true, - get: function () { - return _index.spreadProperty; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + function transformStatementList(paths) { + for (const path of paths) { + if (!path.isFunctionDeclaration()) continue; + const func = path.node; + const declar = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(func.id, _core.types.toExpression(func))]); + declar._blockHoist = 2; + func.id = null; + path.replaceWith(declar); + } } + return { + name: "transform-block-scoped-functions", + visitor: { + BlockStatement(path) { + const { + node, + parent + } = path; + if (_core.types.isFunction(parent, { + body: node + }) || _core.types.isExportDeclaration(parent)) { + return; + } + transformStatementList(path.get("body")); + }, + SwitchCase(path) { + transformStatementList(path.get("consequent")); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 64050: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "StaticBlock", ({ - enumerable: true, - get: function () { - return _index.staticBlock; +exports.annexB33FunctionsVisitor = void 0; +exports.isVarScope = isVarScope; +var _core = __nccwpck_require__(65258); +const annexB33FunctionsVisitor = exports.annexB33FunctionsVisitor = { + VariableDeclaration(path) { + if (isStrict(path)) return; + if (path.node.kind !== "var") return; + const varScope = path.scope.getFunctionParent() || path.scope.getProgramParent(); + varScope.path.traverse(functionsToVarVisitor, { + names: Object.keys(path.getBindingIdentifiers()) + }); + }, + BlockStatement(path) { + if (isStrict(path)) return; + if (_core.types.isFunction(path.parent, { + body: path.node + })) return; + transformStatementList(path.get("body")); + }, + SwitchCase(path) { + if (isStrict(path)) return; + transformStatementList(path.get("consequent")); } -})); -Object.defineProperty(exports, "StringLiteral", ({ - enumerable: true, - get: function () { - return _index.stringLiteral; +}; +function transformStatementList(paths) { + outer: for (const path of paths) { + if (!path.isFunctionDeclaration()) continue; + if (path.node.async || path.node.generator) return; + const { + scope + } = path.parentPath; + if (isVarScope(scope)) return; + const { + name + } = path.node.id; + let currScope = scope; + do { + if (currScope.parent.hasOwnBinding(name)) continue outer; + currScope = currScope.parent; + } while (!isVarScope(currScope)); + maybeTransformBlockScopedFunction(path); } -})); -Object.defineProperty(exports, "StringLiteralTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.stringLiteralTypeAnnotation; +} +function maybeTransformBlockScopedFunction(path) { + const { + node, + parentPath: { + scope + } + } = path; + const { + id + } = node; + scope.removeOwnBinding(id.name); + node.id = null; + const varNode = _core.types.variableDeclaration("var", [_core.types.variableDeclarator(id, _core.types.toExpression(node))]); + varNode._blockHoist = 2; + const [varPath] = path.replaceWith(varNode); + scope.registerDeclaration(varPath); +} +const functionsToVarVisitor = { + Scope(path, { + names + }) { + for (const name of names) { + const binding = path.scope.getOwnBinding(name); + if (binding && binding.kind === "hoisted") { + maybeTransformBlockScopedFunction(binding.path); + } + } + }, + "Expression|Declaration"(path) { + path.skip(); } +}; +function isVarScope(scope) { + return scope.path.isFunctionParent() || scope.path.isProgram(); +} +function isStrict(path) { + return !!path.find(({ + node + }) => { + var _node$directives; + if (_core.types.isProgram(node)) { + if (node.sourceType === "module") return true; + } else if (_core.types.isClass(node)) { + return true; + } else if (!_core.types.isBlockStatement(node)) { + return false; + } + return (_node$directives = node.directives) == null ? void 0 : _node$directives.some(directive => directive.value.value === "use strict"); + }); +} + +//# sourceMappingURL=annex-B_3_3.js.map + + +/***/ }), + +/***/ 27971: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "StringTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.stringTypeAnnotation; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _loop = __nccwpck_require__(44544); +var _validation = __nccwpck_require__(28211); +var _annexB_3_ = __nccwpck_require__(64050); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, opts) => { + api.assertVersion(7); + const { + throwIfClosureRequired = false, + tdz: tdzEnabled = false + } = opts; + if (typeof throwIfClosureRequired !== "boolean") { + throw new Error(`.throwIfClosureRequired must be a boolean, or undefined`); } -})); -Object.defineProperty(exports, "Super", ({ - enumerable: true, - get: function () { - return _index.super; + if (typeof tdzEnabled !== "boolean") { + throw new Error(`.tdz must be a boolean, or undefined`); } -})); -Object.defineProperty(exports, "SwitchCase", ({ - enumerable: true, - get: function () { - return _index.switchCase; + return { + name: "transform-block-scoping", + visitor: _core.traverse.visitors.merge([_annexB_3_.annexB33FunctionsVisitor, { + Loop(path, state) { + const isForStatement = path.isForStatement(); + const headPath = isForStatement ? path.get("init") : path.isForXStatement() ? path.get("left") : null; + let needsBodyWrap = false; + const markNeedsBodyWrap = () => { + if (throwIfClosureRequired) { + throw path.buildCodeFrameError("Compiling let/const in this block would add a closure " + "(throwIfClosureRequired)."); + } + needsBodyWrap = true; + }; + const body = path.get("body"); + let bodyScope; + if (body.isBlockStatement()) { + bodyScope = body.scope; + const bindings = (0, _loop.getLoopBodyBindings)(path); + for (const binding of bindings) { + const { + capturedInClosure + } = (0, _loop.getUsageInBody)(binding, path); + if (capturedInClosure) markNeedsBodyWrap(); + } + } + const captured = []; + const updatedBindingsUsages = new Map(); + if (headPath && isBlockScoped(headPath.node)) { + const names = Object.keys(headPath.getBindingIdentifiers()); + const headScope = headPath.scope; + for (let name of names) { + var _bodyScope; + if ((_bodyScope = bodyScope) != null && _bodyScope.hasOwnBinding(name)) continue; + let binding = headScope.getOwnBinding(name); + if (!binding) { + headScope.crawl(); + binding = headScope.getOwnBinding(name); + } + const { + usages, + capturedInClosure, + hasConstantViolations + } = (0, _loop.getUsageInBody)(binding, path); + if (headScope.parent.hasBinding(name) || headScope.parent.hasGlobal(name)) { + const newName = headScope.generateUid(name); + headScope.rename(name, newName); + name = newName; + } + if (capturedInClosure) { + markNeedsBodyWrap(); + captured.push(name); + } + if (isForStatement && hasConstantViolations) { + updatedBindingsUsages.set(name, usages); + } + } + } + if (needsBodyWrap) { + const varPath = (0, _loop.wrapLoopBody)(path, captured, updatedBindingsUsages); + if (headPath != null && headPath.isVariableDeclaration()) { + transformBlockScopedVariable(headPath, state, tdzEnabled); + } + varPath.get("declarations.0.init").unwrapFunctionEnvironment(); + } + }, + VariableDeclaration(path, state) { + transformBlockScopedVariable(path, state, tdzEnabled); + }, + ClassDeclaration(path) { + const { + id + } = path.node; + if (!id) return; + const { + scope + } = path.parentPath; + if (!(0, _annexB_3_.isVarScope)(scope) && scope.parent.hasBinding(id.name, { + noUids: true + })) { + path.scope.rename(id.name); + } + } + }]) + }; +}); +const conflictingFunctionsVisitor = { + Scope(path, { + names + }) { + for (const name of names) { + const binding = path.scope.getOwnBinding(name); + if (binding && binding.kind === "hoisted") { + path.scope.rename(name); + } + } + }, + "Expression|Declaration"(path) { + path.skip(); } -})); -Object.defineProperty(exports, "SwitchStatement", ({ - enumerable: true, - get: function () { - return _index.switchStatement; +}; +function transformBlockScopedVariable(path, state, tdzEnabled) { + if (!isBlockScoped(path.node)) return; + const dynamicTDZNames = (0, _validation.validateUsage)(path, state, tdzEnabled); + path.node.kind = "var"; + const bindingNames = Object.keys(path.getBindingIdentifiers()); + for (const name of bindingNames) { + const binding = path.scope.getOwnBinding(name); + if (!binding) continue; + binding.kind = "var"; } -})); -Object.defineProperty(exports, "SymbolTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.symbolTypeAnnotation; + if (isInLoop(path) && !(0, _loop.isVarInLoopHead)(path) || dynamicTDZNames.length > 0) { + for (const decl of path.node.declarations) { + var _decl$init; + (_decl$init = decl.init) != null ? _decl$init : decl.init = path.scope.buildUndefinedNode(); + } } -})); -Object.defineProperty(exports, "TSAnyKeyword", ({ - enumerable: true, - get: function () { - return _index.tsAnyKeyword; + const blockScope = path.scope; + const varScope = blockScope.getFunctionParent() || blockScope.getProgramParent(); + if (varScope !== blockScope) { + for (const name of bindingNames) { + let newName = name; + if (blockScope.parent.hasBinding(name, { + noUids: true + }) || blockScope.parent.hasGlobal(name)) { + newName = blockScope.generateUid(name); + blockScope.rename(name, newName); + } + blockScope.moveBindingTo(newName, varScope); + } } -})); -Object.defineProperty(exports, "TSArrayType", ({ - enumerable: true, - get: function () { - return _index.tsArrayType; + blockScope.path.traverse(conflictingFunctionsVisitor, { + names: bindingNames + }); + for (const name of dynamicTDZNames) { + path.scope.push({ + id: _core.types.identifier(name), + init: state.addHelper("temporalUndefined") + }); } -})); -Object.defineProperty(exports, "TSAsExpression", ({ - enumerable: true, - get: function () { - return _index.tsAsExpression; +} +function isLetOrConst(kind) { + return kind === "let" || kind === "const"; +} +function isInLoop(path) { + if (!path.parentPath) return false; + if (path.parentPath.isLoop()) return true; + if (path.parentPath.isFunctionParent()) return false; + return isInLoop(path.parentPath); +} +function isBlockScoped(node) { + if (!_core.types.isVariableDeclaration(node)) return false; + if (node[_core.types.BLOCK_SCOPED_SYMBOL]) { + return true; } -})); -Object.defineProperty(exports, "TSBigIntKeyword", ({ - enumerable: true, - get: function () { - return _index.tsBigIntKeyword; + if (!isLetOrConst(node.kind) && node.kind !== "using") { + return false; } + return true; +} + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 44544: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSBooleanKeyword", ({ - enumerable: true, - get: function () { - return _index.tsBooleanKeyword; +exports.getLoopBodyBindings = getLoopBodyBindings; +exports.getUsageInBody = getUsageInBody; +exports.isVarInLoopHead = isVarInLoopHead; +exports.wrapLoopBody = wrapLoopBody; +var _core = __nccwpck_require__(65258); +const collectLoopBodyBindingsVisitor = { + "Expression|Declaration|Loop"(path) { + path.skip(); + }, + Scope(path, state) { + if (path.isFunctionParent()) path.skip(); + const { + bindings + } = path.scope; + for (const name of Object.keys(bindings)) { + const binding = bindings[name]; + if (binding.kind === "let" || binding.kind === "const" || binding.kind === "hoisted") { + state.blockScoped.push(binding); + } + } } -})); -Object.defineProperty(exports, "TSCallSignatureDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsCallSignatureDeclaration; +}; +function getLoopBodyBindings(loopPath) { + const state = { + blockScoped: [] + }; + loopPath.traverse(collectLoopBodyBindingsVisitor, state); + return state.blockScoped; +} +function getUsageInBody(binding, loopPath) { + const seen = new WeakSet(); + let capturedInClosure = false; + const constantViolations = filterMap(binding.constantViolations, path => { + const { + inBody, + inClosure + } = relativeLoopLocation(path, loopPath); + if (!inBody) return null; + capturedInClosure || (capturedInClosure = inClosure); + const id = path.isUpdateExpression() ? path.get("argument") : path.isAssignmentExpression() ? path.get("left") : null; + if (id) seen.add(id.node); + return id; + }); + const references = filterMap(binding.referencePaths, path => { + if (seen.has(path.node)) return null; + const { + inBody, + inClosure + } = relativeLoopLocation(path, loopPath); + if (!inBody) return null; + capturedInClosure || (capturedInClosure = inClosure); + return path; + }); + return { + capturedInClosure, + hasConstantViolations: constantViolations.length > 0, + usages: references.concat(constantViolations) + }; +} +function relativeLoopLocation(path, loopPath) { + const bodyPath = loopPath.get("body"); + let inClosure = false; + for (let currPath = path; currPath; currPath = currPath.parentPath) { + if (currPath.isFunction() || currPath.isClass() || currPath.isMethod()) { + inClosure = true; + } + if (currPath === bodyPath) { + return { + inBody: true, + inClosure + }; + } else if (currPath === loopPath) { + return { + inBody: false, + inClosure + }; + } } -})); -Object.defineProperty(exports, "TSConditionalType", ({ - enumerable: true, - get: function () { - return _index.tsConditionalType; + throw new Error("Internal Babel error: path is not in loop. Please report this as a bug."); +} +const collectCompletionsAndVarsVisitor = { + Function(path) { + path.skip(); + }, + LabeledStatement: { + enter({ + node + }, state) { + state.labelsStack.push(node.label.name); + }, + exit({ + node + }, state) { + const popped = state.labelsStack.pop(); + if (popped !== node.label.name) { + throw new Error("Assertion failure. Please report this bug to Babel."); + } + } + }, + Loop: { + enter(_, state) { + state.labellessContinueTargets++; + state.labellessBreakTargets++; + }, + exit(_, state) { + state.labellessContinueTargets--; + state.labellessBreakTargets--; + } + }, + SwitchStatement: { + enter(_, state) { + state.labellessBreakTargets++; + }, + exit(_, state) { + state.labellessBreakTargets--; + } + }, + "BreakStatement|ContinueStatement"(path, state) { + const { + label + } = path.node; + if (label) { + if (state.labelsStack.includes(label.name)) return; + } else if (path.isBreakStatement() ? state.labellessBreakTargets > 0 : state.labellessContinueTargets > 0) { + return; + } + state.breaksContinues.push(path); + }, + ReturnStatement(path, state) { + state.returns.push(path); + }, + VariableDeclaration(path, state) { + if (path.parent === state.loopNode && isVarInLoopHead(path)) return; + if (path.node.kind === "var") state.vars.push(path); } -})); -Object.defineProperty(exports, "TSConstructSignatureDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsConstructSignatureDeclaration; +}; +function wrapLoopBody(loopPath, captured, updatedBindingsUsages) { + const loopNode = loopPath.node; + const state = { + breaksContinues: [], + returns: [], + labelsStack: [], + labellessBreakTargets: 0, + labellessContinueTargets: 0, + vars: [], + loopNode + }; + loopPath.traverse(collectCompletionsAndVarsVisitor, state); + const callArgs = []; + const closureParams = []; + const updater = []; + for (const [name, updatedUsage] of updatedBindingsUsages) { + callArgs.push(_core.types.identifier(name)); + const innerName = loopPath.scope.generateUid(name); + closureParams.push(_core.types.identifier(innerName)); + updater.push(_core.types.assignmentExpression("=", _core.types.identifier(name), _core.types.identifier(innerName))); + for (const path of updatedUsage) path.replaceWith(_core.types.identifier(innerName)); } -})); -Object.defineProperty(exports, "TSConstructorType", ({ - enumerable: true, - get: function () { - return _index.tsConstructorType; + for (const name of captured) { + if (updatedBindingsUsages.has(name)) continue; + callArgs.push(_core.types.identifier(name)); + closureParams.push(_core.types.identifier(name)); } -})); -Object.defineProperty(exports, "TSDeclareFunction", ({ - enumerable: true, - get: function () { - return _index.tsDeclareFunction; + const id = loopPath.scope.generateUid("loop"); + const fn = _core.types.functionExpression(null, closureParams, _core.types.toBlock(loopNode.body)); + let call = _core.types.callExpression(_core.types.identifier(id), callArgs); + const fnParent = loopPath.findParent(p => p.isFunction()); + if (fnParent) { + const { + async, + generator + } = fnParent.node; + fn.async = async; + fn.generator = generator; + if (generator) call = _core.types.yieldExpression(call, true);else if (async) call = _core.types.awaitExpression(call); } -})); -Object.defineProperty(exports, "TSDeclareMethod", ({ - enumerable: true, - get: function () { - return _index.tsDeclareMethod; + const updaterNode = updater.length > 0 ? _core.types.expressionStatement(_core.types.sequenceExpression(updater)) : null; + if (updaterNode) fn.body.body.push(updaterNode); + const [varPath] = loopPath.insertBefore(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(id), fn)])); + const bodyStmts = []; + const varNames = []; + for (const varPath of state.vars) { + const assign = []; + for (const decl of varPath.node.declarations) { + varNames.push(...Object.keys(_core.types.getBindingIdentifiers(decl.id))); + if (decl.init) { + assign.push(_core.types.assignmentExpression("=", decl.id, decl.init)); + } + } + if (assign.length > 0) { + let replacement = assign.length === 1 ? assign[0] : _core.types.sequenceExpression(assign); + if (!_core.types.isForStatement(varPath.parent, { + init: varPath.node + }) && !_core.types.isForXStatement(varPath.parent, { + left: varPath.node + })) { + replacement = _core.types.expressionStatement(replacement); + } + varPath.replaceWith(replacement); + } else { + varPath.remove(); + } } -})); -Object.defineProperty(exports, "TSEnumDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsEnumDeclaration; + if (varNames.length) { + varPath.pushContainer("declarations", varNames.map(name => _core.types.variableDeclarator(_core.types.identifier(name)))); } -})); -Object.defineProperty(exports, "TSEnumMember", ({ - enumerable: true, - get: function () { - return _index.tsEnumMember; + const labelNum = state.breaksContinues.length; + const returnNum = state.returns.length; + if (labelNum + returnNum === 0) { + bodyStmts.push(_core.types.expressionStatement(call)); + } else if (labelNum === 1 && returnNum === 0) { + for (const path of state.breaksContinues) { + const { + node + } = path; + const { + type, + label + } = node; + let name = type === "BreakStatement" ? "break" : "continue"; + if (label) name += " " + label.name; + path.replaceWith(_core.types.addComment(_core.types.returnStatement(_core.types.numericLiteral(1)), "trailing", " " + name, true)); + if (updaterNode) path.insertBefore(_core.types.cloneNode(updaterNode)); + bodyStmts.push(_core.template.statement.ast` + if (${call}) ${node} + `); + } + } else { + const completionId = loopPath.scope.generateUid("ret"); + if (varPath.isVariableDeclaration()) { + varPath.pushContainer("declarations", [_core.types.variableDeclarator(_core.types.identifier(completionId))]); + bodyStmts.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(completionId), call))); + } else { + bodyStmts.push(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(completionId), call)])); + } + const injected = []; + for (const path of state.breaksContinues) { + const { + node + } = path; + const { + type, + label + } = node; + let name = type === "BreakStatement" ? "break" : "continue"; + if (label) name += " " + label.name; + let i = injected.indexOf(name); + const hasInjected = i !== -1; + if (!hasInjected) { + injected.push(name); + i = injected.length - 1; + } + path.replaceWith(_core.types.addComment(_core.types.returnStatement(_core.types.numericLiteral(i)), "trailing", " " + name, true)); + if (updaterNode) path.insertBefore(_core.types.cloneNode(updaterNode)); + if (hasInjected) continue; + bodyStmts.push(_core.template.statement.ast` + if (${_core.types.identifier(completionId)} === ${_core.types.numericLiteral(i)}) ${node} + `); + } + if (returnNum) { + for (const path of state.returns) { + const arg = path.node.argument || path.scope.buildUndefinedNode(); + path.replaceWith(_core.template.statement.ast` + return { v: ${arg} }; + `); + } + bodyStmts.push(_core.template.statement.ast` + if (${_core.types.identifier(completionId)}) return ${_core.types.identifier(completionId)}.v; + `); + } } -})); -Object.defineProperty(exports, "TSExportAssignment", ({ - enumerable: true, - get: function () { - return _index.tsExportAssignment; + loopNode.body = _core.types.blockStatement(bodyStmts); + return varPath; +} +function isVarInLoopHead(path) { + if (_core.types.isForStatement(path.parent)) return path.key === "init"; + if (_core.types.isForXStatement(path.parent)) return path.key === "left"; + return false; +} +function filterMap(list, fn) { + const result = []; + for (const item of list) { + const mapped = fn(item); + if (mapped) result.push(mapped); } + return result; +} + +//# sourceMappingURL=loop.js.map + + +/***/ }), + +/***/ 28211: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSExpressionWithTypeArguments", ({ - enumerable: true, - get: function () { - return _index.tsExpressionWithTypeArguments; +exports.validateUsage = validateUsage; +var _core = __nccwpck_require__(65258); +function validateUsage(path, state, tdzEnabled) { + const dynamicTDZNames = []; + for (const name of Object.keys(path.getBindingIdentifiers())) { + const binding = path.scope.getBinding(name); + if (!binding) continue; + if (tdzEnabled) { + if (injectTDZChecks(binding, state)) dynamicTDZNames.push(name); + } + if (path.node.kind === "const") { + disallowConstantViolations(name, binding, state); + } } -})); -Object.defineProperty(exports, "TSExternalModuleReference", ({ - enumerable: true, - get: function () { - return _index.tsExternalModuleReference; + return dynamicTDZNames; +} +function disallowConstantViolations(name, binding, state) { + for (const violation of binding.constantViolations) { + const readOnlyError = state.addHelper("readOnlyError"); + const throwNode = _core.types.callExpression(readOnlyError, [_core.types.stringLiteral(name)]); + if (violation.isAssignmentExpression()) { + const { + operator, + left, + right + } = violation.node; + if (operator === "=") { + const exprs = [right]; + exprs.push(throwNode); + violation.replaceWith(_core.types.sequenceExpression(exprs)); + } else if (["&&=", "||=", "??="].includes(operator)) { + violation.replaceWith(_core.types.logicalExpression(operator.slice(0, -1), left, _core.types.sequenceExpression([right, throwNode]))); + } else { + violation.replaceWith(_core.types.sequenceExpression([_core.types.binaryExpression(operator.slice(0, -1), left, right), throwNode])); + } + } else if (violation.isUpdateExpression()) { + violation.replaceWith(_core.types.sequenceExpression([_core.types.unaryExpression("+", violation.get("argument").node), throwNode])); + } else if (violation.isForXStatement()) { + violation.ensureBlock(); + violation.get("left").replaceWith(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(violation.scope.generateUidIdentifier(name))])); + violation.node.body.body.unshift(_core.types.expressionStatement(throwNode)); + } } -})); -Object.defineProperty(exports, "TSFunctionType", ({ - enumerable: true, - get: function () { - return _index.tsFunctionType; +} +function getTDZStatus(refPath, bindingPath) { + const executionStatus = bindingPath._guessExecutionStatusRelativeTo(refPath); + if (executionStatus === "before") { + return "outside"; + } else if (executionStatus === "after") { + return "inside"; + } else { + return "maybe"; } -})); -Object.defineProperty(exports, "TSImportEqualsDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsImportEqualsDeclaration; +} +const skipTDZChecks = new WeakSet(); +function buildTDZAssert(status, node, state) { + if (status === "maybe") { + const clone = _core.types.cloneNode(node); + skipTDZChecks.add(clone); + return _core.types.callExpression(state.addHelper("temporalRef"), [clone, _core.types.stringLiteral(node.name)]); + } else { + return _core.types.callExpression(state.addHelper("tdz"), [_core.types.stringLiteral(node.name)]); } -})); -Object.defineProperty(exports, "TSImportType", ({ - enumerable: true, - get: function () { - return _index.tsImportType; +} +function getTDZReplacement(path, state, id = path.node) { + var _path$scope$getBindin; + if (skipTDZChecks.has(id)) return; + skipTDZChecks.add(id); + const bindingPath = (_path$scope$getBindin = path.scope.getBinding(id.name)) == null ? void 0 : _path$scope$getBindin.path; + if (!bindingPath || bindingPath.isFunctionDeclaration()) return; + const status = getTDZStatus(path, bindingPath); + if (status === "outside") return; + if (status === "maybe") { + bindingPath.parent._tdzThis = true; } -})); -Object.defineProperty(exports, "TSIndexSignature", ({ - enumerable: true, - get: function () { - return _index.tsIndexSignature; + return { + status, + node: buildTDZAssert(status, id, state) + }; +} +function injectTDZChecks(binding, state) { + const allUsages = new Set(binding.referencePaths); + binding.constantViolations.forEach(allUsages.add, allUsages); + let dynamicTdz = false; + for (const path of binding.constantViolations) { + const { + node + } = path; + if (skipTDZChecks.has(node)) continue; + skipTDZChecks.add(node); + if (path.isUpdateExpression()) { + const arg = path.get("argument"); + const replacement = getTDZReplacement(path, state, arg.node); + if (!replacement) continue; + if (replacement.status === "maybe") { + dynamicTdz = true; + path.insertBefore(replacement.node); + } else { + path.replaceWith(replacement.node); + } + } else if (path.isAssignmentExpression()) { + const nodes = []; + const ids = path.getBindingIdentifiers(); + for (const name of Object.keys(ids)) { + const replacement = getTDZReplacement(path, state, ids[name]); + if (replacement) { + nodes.push(_core.types.expressionStatement(replacement.node)); + if (replacement.status === "inside") break; + if (replacement.status === "maybe") dynamicTdz = true; + } + } + if (nodes.length > 0) path.insertBefore(nodes); + } } -})); -Object.defineProperty(exports, "TSIndexedAccessType", ({ - enumerable: true, - get: function () { - return _index.tsIndexedAccessType; + for (const path of binding.referencePaths) { + if (path.parentPath.isUpdateExpression()) continue; + if (path.parentPath.isFor({ + left: path.node + })) continue; + const replacement = getTDZReplacement(path, state); + if (!replacement) continue; + if (replacement.status === "maybe") dynamicTdz = true; + path.replaceWith(replacement.node); } + return dynamicTdz; +} + +//# sourceMappingURL=validation.js.map + + +/***/ }), + +/***/ 60281: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSInferType", ({ - enumerable: true, - get: function () { - return _index.tsInferType; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperCreateClassFeaturesPlugin = __nccwpck_require__(42137); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ + name: "transform-class-properties", + api, + feature: _helperCreateClassFeaturesPlugin.FEATURES.fields, + loose: options.loose, + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("classProperties", "classPrivateProperties"); + } + }); +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 96162: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSInstantiationExpression", ({ - enumerable: true, - get: function () { - return _index.tsInstantiationExpression; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperCreateClassFeaturesPlugin = __nccwpck_require__(42137); +function generateUid(scope, denyList) { + const name = ""; + let uid; + let i = 1; + do { + uid = scope._generateUid(name, i); + i++; + } while (denyList.has(uid)); + return uid; +} +var _default = exports["default"] = (0, _helperPluginUtils.declare)(({ + types: t, + template, + assertVersion +}) => { + assertVersion("^7.12.0"); + return { + name: "transform-class-static-block", + inherits: (__nccwpck_require__(69861)["default"]), + pre() { + (0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.staticBlocks, false); + }, + visitor: { + ClassBody(classBody) { + const { + scope + } = classBody; + const privateNames = new Set(); + const body = classBody.get("body"); + for (const path of body) { + if (path.isPrivate()) { + privateNames.add(path.get("key.id").node.name); + } + } + for (const path of body) { + if (!path.isStaticBlock()) continue; + const staticBlockPrivateId = generateUid(scope, privateNames); + privateNames.add(staticBlockPrivateId); + const staticBlockRef = t.privateName(t.identifier(staticBlockPrivateId)); + let replacement; + const blockBody = path.node.body; + if (blockBody.length === 1 && t.isExpressionStatement(blockBody[0])) { + replacement = t.inheritsComments(blockBody[0].expression, blockBody[0]); + } else { + replacement = template.expression.ast`(() => { ${blockBody} })()`; + } + path.replaceWith(t.classPrivateProperty(staticBlockRef, replacement, [], true)); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 65347: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSInterfaceBody", ({ - enumerable: true, - get: function () { - return _index.tsInterfaceBody; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperCompilationTargets = __nccwpck_require__(91047); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +var _helperFunctionName = __nccwpck_require__(54915); +var _helperSplitExportDeclaration = __nccwpck_require__(62605); +var _core = __nccwpck_require__(65258); +var _globals = __nccwpck_require__(47629); +var _transformClass = __nccwpck_require__(25228); +const getBuiltinClasses = category => Object.keys(_globals[category]).filter(name => /^[A-Z]/.test(name)); +const builtinClasses = new Set([...getBuiltinClasses("builtin"), ...getBuiltinClasses("browser")]); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2, _api$assumption3, _api$assumption4; + api.assertVersion(7); + const { + loose = false + } = options; + const setClassMethods = (_api$assumption = api.assumption("setClassMethods")) != null ? _api$assumption : loose; + const constantSuper = (_api$assumption2 = api.assumption("constantSuper")) != null ? _api$assumption2 : loose; + const superIsCallableConstructor = (_api$assumption3 = api.assumption("superIsCallableConstructor")) != null ? _api$assumption3 : loose; + const noClassCalls = (_api$assumption4 = api.assumption("noClassCalls")) != null ? _api$assumption4 : loose; + const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets()); + const VISITED = new WeakSet(); + return { + name: "transform-classes", + visitor: { + ExportDefaultDeclaration(path) { + if (!path.get("declaration").isClassDeclaration()) return; + (0, _helperSplitExportDeclaration.default)(path); + }, + ClassDeclaration(path) { + const { + node + } = path; + const ref = node.id || path.scope.generateUidIdentifier("class"); + path.replaceWith(_core.types.variableDeclaration("let", [_core.types.variableDeclarator(ref, _core.types.toExpression(node))])); + }, + ClassExpression(path, state) { + const { + node + } = path; + if (VISITED.has(node)) return; + const inferred = (0, _helperFunctionName.default)(path, undefined, supportUnicodeId); + if (inferred && inferred !== node) { + path.replaceWith(inferred); + return; + } + VISITED.add(node); + const [replacedPath] = path.replaceWith((0, _transformClass.default)(path, state.file, builtinClasses, loose, { + setClassMethods, + constantSuper, + superIsCallableConstructor, + noClassCalls + }, supportUnicodeId)); + if (replacedPath.isCallExpression()) { + (0, _helperAnnotateAsPure.default)(replacedPath); + const callee = replacedPath.get("callee"); + if (callee.isArrowFunctionExpression()) { + callee.arrowFunctionToExpression(); + } + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 54955: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSInterfaceDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsInterfaceDeclaration; +exports["default"] = addCreateSuperHelper; +var _core = __nccwpck_require__(65258); +const helper = _core.template.statement` + function CREATE_SUPER(Derived) { + function isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + + // core-js@3 + if (Reflect.construct.sham) return false; + + // Proxy can't be polyfilled. Every browser implemented + // proxies before or at the same time as Reflect.construct, + // so if they support Proxy they also support Reflect.construct. + if (typeof Proxy === "function") return true; + + // Since Reflect.construct can't be properly polyfilled, some + // implementations (e.g. core-js@2) don't set the correct internal slots. + // Those polyfills don't allow us to subclass built-ins, so we need to + // use our fallback implementation. + try { + // If the internal slots aren't set, this throws an error similar to + // TypeError: this is not a Date object. + Date.prototype.toString.call(Reflect.construct(Date, [], function() {})); + return true; + } catch (e) { + return false; + } + } + + return function () { + var Super = GET_PROTOTYPE_OF(Derived), result; + if (isNativeReflectConstruct()) { + // NOTE: This doesn't work if this.__proto__.constructor has been modified. + var NewTarget = GET_PROTOTYPE_OF(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + return POSSIBLE_CONSTRUCTOR_RETURN(this, result); + } } -})); -Object.defineProperty(exports, "TSIntersectionType", ({ - enumerable: true, - get: function () { - return _index.tsIntersectionType; +`; +const helperIDs = new WeakMap(); +function addCreateSuperHelper(file) { + if (helperIDs.has(file)) { + return (_core.types.cloneNode || _core.types.clone)(helperIDs.get(file)); } + try { + return file.addHelper("createSuper"); + } catch (_unused) {} + const id = file.scope.generateUidIdentifier("createSuper"); + helperIDs.set(file, id); + const fn = helper({ + CREATE_SUPER: id, + GET_PROTOTYPE_OF: file.addHelper("getPrototypeOf"), + POSSIBLE_CONSTRUCTOR_RETURN: file.addHelper("possibleConstructorReturn") + }); + file.path.unshiftContainer("body", [fn]); + file.scope.registerDeclaration(file.path.get("body.0")); + return _core.types.cloneNode(id); +} + +//# sourceMappingURL=inline-createSuper-helpers.js.map + + +/***/ }), + +/***/ 25228: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSIntrinsicKeyword", ({ - enumerable: true, - get: function () { - return _index.tsIntrinsicKeyword; +exports["default"] = transformClass; +var _helperFunctionName = __nccwpck_require__(54915); +var _helperReplaceSupers = __nccwpck_require__(43889); +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _helperOptimiseCallExpression = __nccwpck_require__(2570); +var _core = __nccwpck_require__(65258); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +var _inlineCreateSuperHelpers = __nccwpck_require__(54955); +function buildConstructor(classRef, constructorBody, node) { + const func = _core.types.functionDeclaration(_core.types.cloneNode(classRef), [], constructorBody); + _core.types.inherits(func, node); + return func; +} +function transformClass(path, file, builtinClasses, isLoose, assumptions, supportUnicodeId) { + const classState = { + parent: undefined, + scope: undefined, + node: undefined, + path: undefined, + file: undefined, + classId: undefined, + classRef: undefined, + superFnId: undefined, + superName: null, + superReturns: [], + isDerived: false, + extendsNative: false, + construct: undefined, + constructorBody: undefined, + userConstructor: undefined, + userConstructorPath: undefined, + hasConstructor: false, + body: [], + superThises: [], + pushedConstructor: false, + pushedInherits: false, + pushedCreateClass: false, + protoAlias: null, + isLoose: false, + dynamicKeys: new Map(), + methods: { + instance: { + hasComputed: false, + list: [], + map: new Map() + }, + static: { + hasComputed: false, + list: [], + map: new Map() + } + } + }; + const setState = newState => { + Object.assign(classState, newState); + }; + const findThisesVisitor = _core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { + ThisExpression(path) { + classState.superThises.push(path); + } + }]); + function createClassHelper(args) { + return _core.types.callExpression(classState.file.addHelper("createClass"), args); } -})); -Object.defineProperty(exports, "TSLiteralType", ({ - enumerable: true, - get: function () { - return _index.tsLiteralType; + function maybeCreateConstructor() { + const classBodyPath = classState.path.get("body"); + for (const path of classBodyPath.get("body")) { + if (path.isClassMethod({ + kind: "constructor" + })) return; + } + let params, body; + if (classState.isDerived) { + const constructor = _core.template.expression.ast` + (function () { + super(...arguments); + }) + `; + params = constructor.params; + body = constructor.body; + } else { + params = []; + body = _core.types.blockStatement([]); + } + classBodyPath.unshiftContainer("body", _core.types.classMethod("constructor", _core.types.identifier("constructor"), params, body)); } -})); -Object.defineProperty(exports, "TSMappedType", ({ - enumerable: true, - get: function () { - return _index.tsMappedType; + function buildBody() { + maybeCreateConstructor(); + pushBody(); + verifyConstructor(); + if (classState.userConstructor) { + const { + constructorBody, + userConstructor, + construct + } = classState; + constructorBody.body.push(...userConstructor.body.body); + _core.types.inherits(construct, userConstructor); + _core.types.inherits(constructorBody, userConstructor.body); + } + pushDescriptors(); } -})); -Object.defineProperty(exports, "TSMethodSignature", ({ - enumerable: true, - get: function () { - return _index.tsMethodSignature; + function pushBody() { + const classBodyPaths = classState.path.get("body.body"); + for (const path of classBodyPaths) { + const node = path.node; + if (path.isClassProperty() || path.isClassPrivateProperty()) { + throw path.buildCodeFrameError("Missing class properties transform."); + } + if (node.decorators) { + throw path.buildCodeFrameError("Method has decorators, put the decorator plugin before the classes one."); + } + if (_core.types.isClassMethod(node)) { + const isConstructor = node.kind === "constructor"; + const replaceSupers = new _helperReplaceSupers.default({ + methodPath: path, + objectRef: classState.classRef, + superRef: classState.superName, + constantSuper: assumptions.constantSuper, + file: classState.file, + refToPreserve: classState.classRef + }); + replaceSupers.replace(); + const superReturns = []; + path.traverse(_core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { + ReturnStatement(path) { + if (!path.getFunctionParent().isArrowFunctionExpression()) { + superReturns.push(path); + } + } + }])); + if (isConstructor) { + pushConstructor(superReturns, node, path); + } else { + pushMethod(node, path); + } + } + } } -})); -Object.defineProperty(exports, "TSModuleBlock", ({ - enumerable: true, - get: function () { - return _index.tsModuleBlock; + function pushDescriptors() { + pushInheritsToBody(); + const { + body + } = classState; + const props = { + instance: null, + static: null + }; + for (const placement of ["static", "instance"]) { + if (classState.methods[placement].list.length) { + props[placement] = classState.methods[placement].list.map(desc => { + const obj = _core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("key"), desc.key)]); + for (const kind of ["get", "set", "value"]) { + if (desc[kind] != null) { + obj.properties.push(_core.types.objectProperty(_core.types.identifier(kind), desc[kind])); + } + } + return obj; + }); + } + } + if (props.instance || props.static) { + let args = [_core.types.cloneNode(classState.classRef), props.instance ? _core.types.arrayExpression(props.instance) : _core.types.nullLiteral(), props.static ? _core.types.arrayExpression(props.static) : _core.types.nullLiteral()]; + let lastNonNullIndex = 0; + for (let i = 0; i < args.length; i++) { + if (!_core.types.isNullLiteral(args[i])) lastNonNullIndex = i; + } + args = args.slice(0, lastNonNullIndex + 1); + body.push(_core.types.expressionStatement(createClassHelper(args))); + classState.pushedCreateClass = true; + } } -})); -Object.defineProperty(exports, "TSModuleDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsModuleDeclaration; + function wrapSuperCall(bareSuper, superRef, thisRef, body) { + const bareSuperNode = bareSuper.node; + let call; + if (assumptions.superIsCallableConstructor) { + bareSuperNode.arguments.unshift(_core.types.thisExpression()); + if (bareSuperNode.arguments.length === 2 && _core.types.isSpreadElement(bareSuperNode.arguments[1]) && _core.types.isIdentifier(bareSuperNode.arguments[1].argument, { + name: "arguments" + })) { + bareSuperNode.arguments[1] = bareSuperNode.arguments[1].argument; + bareSuperNode.callee = _core.types.memberExpression(_core.types.cloneNode(superRef), _core.types.identifier("apply")); + } else { + bareSuperNode.callee = _core.types.memberExpression(_core.types.cloneNode(superRef), _core.types.identifier("call")); + } + call = _core.types.logicalExpression("||", bareSuperNode, _core.types.thisExpression()); + } else { + call = (0, _helperOptimiseCallExpression.default)(_core.types.cloneNode(classState.superFnId), _core.types.thisExpression(), bareSuperNode.arguments, false); + } + if (bareSuper.parentPath.isExpressionStatement() && bareSuper.parentPath.container === body.node.body && body.node.body.length - 1 === bareSuper.parentPath.key) { + if (classState.superThises.length) { + call = _core.types.assignmentExpression("=", thisRef(), call); + } + bareSuper.parentPath.replaceWith(_core.types.returnStatement(call)); + } else { + bareSuper.replaceWith(_core.types.assignmentExpression("=", thisRef(), call)); + } } -})); -Object.defineProperty(exports, "TSNamedTupleMember", ({ - enumerable: true, - get: function () { - return _index.tsNamedTupleMember; + function verifyConstructor() { + if (!classState.isDerived) return; + const path = classState.userConstructorPath; + const body = path.get("body"); + path.traverse(findThisesVisitor); + let thisRef = function () { + const ref = path.scope.generateDeclaredUidIdentifier("this"); + thisRef = () => _core.types.cloneNode(ref); + return ref; + }; + for (const thisPath of classState.superThises) { + const { + node, + parentPath + } = thisPath; + if (parentPath.isMemberExpression({ + object: node + })) { + thisPath.replaceWith(thisRef()); + continue; + } + thisPath.replaceWith(_core.types.callExpression(classState.file.addHelper("assertThisInitialized"), [thisRef()])); + } + const bareSupers = []; + path.traverse(_core.traverse.visitors.merge([_helperEnvironmentVisitor.default, { + Super(path) { + const { + node, + parentPath + } = path; + if (parentPath.isCallExpression({ + callee: node + })) { + bareSupers.unshift(parentPath); + } + } + }])); + let guaranteedSuperBeforeFinish = !!bareSupers.length; + for (const bareSuper of bareSupers) { + wrapSuperCall(bareSuper, classState.superName, thisRef, body); + if (guaranteedSuperBeforeFinish) { + bareSuper.find(function (parentPath) { + if (parentPath === path) { + return true; + } + if (parentPath.isLoop() || parentPath.isConditional() || parentPath.isArrowFunctionExpression()) { + guaranteedSuperBeforeFinish = false; + return true; + } + }); + } + } + let wrapReturn; + if (classState.isLoose) { + wrapReturn = returnArg => { + const thisExpr = _core.types.callExpression(classState.file.addHelper("assertThisInitialized"), [thisRef()]); + return returnArg ? _core.types.logicalExpression("||", returnArg, thisExpr) : thisExpr; + }; + } else { + wrapReturn = returnArg => { + const returnParams = [thisRef()]; + if (returnArg != null) { + returnParams.push(returnArg); + } + return _core.types.callExpression(classState.file.addHelper("possibleConstructorReturn"), returnParams); + }; + } + const bodyPaths = body.get("body"); + if (!bodyPaths.length || !bodyPaths.pop().isReturnStatement()) { + body.pushContainer("body", _core.types.returnStatement(guaranteedSuperBeforeFinish ? thisRef() : wrapReturn())); + } + for (const returnPath of classState.superReturns) { + returnPath.get("argument").replaceWith(wrapReturn(returnPath.node.argument)); + } } -})); -Object.defineProperty(exports, "TSNamespaceExportDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsNamespaceExportDeclaration; + function pushMethod(node, path) { + const scope = path ? path.scope : classState.scope; + if (node.kind === "method") { + if (processMethod(node, scope)) return; + } + const placement = node.static ? "static" : "instance"; + const methods = classState.methods[placement]; + const descKey = node.kind === "method" ? "value" : node.kind; + const key = _core.types.isNumericLiteral(node.key) || _core.types.isBigIntLiteral(node.key) ? _core.types.stringLiteral(String(node.key.value)) : _core.types.toComputedKey(node); + let fn = _core.types.toExpression(node); + if (_core.types.isStringLiteral(key)) { + if (node.kind === "method") { + var _nameFunction; + fn = (_nameFunction = (0, _helperFunctionName.default)({ + id: key, + node: node, + scope + }, undefined, supportUnicodeId)) != null ? _nameFunction : fn; + } + } else { + methods.hasComputed = true; + } + let descriptor; + if (!methods.hasComputed && methods.map.has(key.value)) { + descriptor = methods.map.get(key.value); + descriptor[descKey] = fn; + if (descKey === "value") { + descriptor.get = null; + descriptor.set = null; + } else { + descriptor.value = null; + } + } else { + descriptor = { + key: key, + [descKey]: fn + }; + methods.list.push(descriptor); + if (!methods.hasComputed) { + methods.map.set(key.value, descriptor); + } + } } -})); -Object.defineProperty(exports, "TSNeverKeyword", ({ - enumerable: true, - get: function () { - return _index.tsNeverKeyword; + function processMethod(node, scope) { + if (assumptions.setClassMethods && !node.decorators) { + let { + classRef + } = classState; + if (!node.static) { + insertProtoAliasOnce(); + classRef = classState.protoAlias; + } + const methodName = _core.types.memberExpression(_core.types.cloneNode(classRef), node.key, node.computed || _core.types.isLiteral(node.key)); + let func = _core.types.functionExpression(null, node.params, node.body, node.generator, node.async); + _core.types.inherits(func, node); + const key = _core.types.toComputedKey(node, node.key); + if (_core.types.isStringLiteral(key)) { + var _nameFunction2; + func = (_nameFunction2 = (0, _helperFunctionName.default)({ + node: func, + id: key, + scope + }, undefined, supportUnicodeId)) != null ? _nameFunction2 : func; + } + const expr = _core.types.expressionStatement(_core.types.assignmentExpression("=", methodName, func)); + _core.types.inheritsComments(expr, node); + classState.body.push(expr); + return true; + } + return false; } -})); -Object.defineProperty(exports, "TSNonNullExpression", ({ - enumerable: true, - get: function () { - return _index.tsNonNullExpression; + function insertProtoAliasOnce() { + if (classState.protoAlias === null) { + setState({ + protoAlias: classState.scope.generateUidIdentifier("proto") + }); + const classProto = _core.types.memberExpression(classState.classRef, _core.types.identifier("prototype")); + const protoDeclaration = _core.types.variableDeclaration("var", [_core.types.variableDeclarator(classState.protoAlias, classProto)]); + classState.body.push(protoDeclaration); + } } -})); -Object.defineProperty(exports, "TSNullKeyword", ({ - enumerable: true, - get: function () { - return _index.tsNullKeyword; + function pushConstructor(superReturns, method, path) { + setState({ + userConstructorPath: path, + userConstructor: method, + hasConstructor: true, + superReturns + }); + const { + construct + } = classState; + _core.types.inheritsComments(construct, method); + construct.params = method.params; + _core.types.inherits(construct.body, method.body); + construct.body.directives = method.body.directives; + pushConstructorToBody(); } -})); -Object.defineProperty(exports, "TSNumberKeyword", ({ - enumerable: true, - get: function () { - return _index.tsNumberKeyword; + function pushConstructorToBody() { + if (classState.pushedConstructor) return; + classState.pushedConstructor = true; + if (classState.hasInstanceDescriptors || classState.hasStaticDescriptors) { + pushDescriptors(); + } + classState.body.push(classState.construct); + pushInheritsToBody(); } -})); -Object.defineProperty(exports, "TSObjectKeyword", ({ - enumerable: true, - get: function () { - return _index.tsObjectKeyword; + function pushInheritsToBody() { + if (!classState.isDerived || classState.pushedInherits) return; + const superFnId = path.scope.generateUidIdentifier("super"); + setState({ + pushedInherits: true, + superFnId + }); + if (!assumptions.superIsCallableConstructor) { + classState.body.unshift(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(superFnId, _core.types.callExpression((0, _inlineCreateSuperHelpers.default)(classState.file), [_core.types.cloneNode(classState.classRef)]))])); + } + classState.body.unshift(_core.types.expressionStatement(_core.types.callExpression(classState.file.addHelper(classState.isLoose ? "inheritsLoose" : "inherits"), [_core.types.cloneNode(classState.classRef), _core.types.cloneNode(classState.superName)]))); } -})); -Object.defineProperty(exports, "TSOptionalType", ({ - enumerable: true, - get: function () { - return _index.tsOptionalType; + function extractDynamicKeys() { + const { + dynamicKeys, + node, + scope + } = classState; + for (const elem of node.body.body) { + if (!_core.types.isClassMethod(elem) || !elem.computed) continue; + if (scope.isPure(elem.key, true)) continue; + const id = scope.generateUidIdentifierBasedOnNode(elem.key); + dynamicKeys.set(id.name, elem.key); + elem.key = id; + } + } + function setupClosureParamsArgs() { + const { + superName, + dynamicKeys + } = classState; + const closureParams = []; + const closureArgs = []; + if (classState.isDerived) { + let arg = _core.types.cloneNode(superName); + if (classState.extendsNative) { + arg = _core.types.callExpression(classState.file.addHelper("wrapNativeSuper"), [arg]); + (0, _helperAnnotateAsPure.default)(arg); + } + const param = classState.scope.generateUidIdentifierBasedOnNode(superName); + closureParams.push(param); + closureArgs.push(arg); + setState({ + superName: _core.types.cloneNode(param) + }); + } + for (const [name, value] of dynamicKeys) { + closureParams.push(_core.types.identifier(name)); + closureArgs.push(value); + } + return { + closureParams, + closureArgs + }; } -})); -Object.defineProperty(exports, "TSParameterProperty", ({ - enumerable: true, - get: function () { - return _index.tsParameterProperty; + function classTransformer(path, file, builtinClasses, isLoose) { + setState({ + parent: path.parent, + scope: path.scope, + node: path.node, + path, + file, + isLoose + }); + setState({ + classId: classState.node.id, + classRef: classState.node.id ? _core.types.identifier(classState.node.id.name) : classState.scope.generateUidIdentifier("class"), + superName: classState.node.superClass, + isDerived: !!classState.node.superClass, + constructorBody: _core.types.blockStatement([]) + }); + setState({ + extendsNative: _core.types.isIdentifier(classState.superName) && builtinClasses.has(classState.superName.name) && !classState.scope.hasBinding(classState.superName.name, true) + }); + const { + classRef, + node, + constructorBody + } = classState; + setState({ + construct: buildConstructor(classRef, constructorBody, node) + }); + extractDynamicKeys(); + const { + body + } = classState; + const { + closureParams, + closureArgs + } = setupClosureParamsArgs(); + buildBody(); + if (!assumptions.noClassCalls) { + constructorBody.body.unshift(_core.types.expressionStatement(_core.types.callExpression(classState.file.addHelper("classCallCheck"), [_core.types.thisExpression(), _core.types.cloneNode(classState.classRef)]))); + } + const isStrict = path.isInStrictMode(); + let constructorOnly = classState.classId && body.length === 1; + if (constructorOnly && !isStrict) { + for (const param of classState.construct.params) { + if (!_core.types.isIdentifier(param)) { + constructorOnly = false; + break; + } + } + } + const directives = constructorOnly ? body[0].body.directives : []; + if (!isStrict) { + directives.push(_core.types.directive(_core.types.directiveLiteral("use strict"))); + } + if (constructorOnly) { + const expr = _core.types.toExpression(body[0]); + return classState.isLoose ? expr : createClassHelper([expr]); + } + let returnArg = _core.types.cloneNode(classState.classRef); + if (!classState.pushedCreateClass && !classState.isLoose) { + returnArg = createClassHelper([returnArg]); + } + body.push(_core.types.returnStatement(returnArg)); + const container = _core.types.arrowFunctionExpression(closureParams, _core.types.blockStatement(body, directives)); + return _core.types.callExpression(container, closureArgs); } + return classTransformer(path, file, builtinClasses, isLoose); +} + +//# sourceMappingURL=transformClass.js.map + + +/***/ }), + +/***/ 86169: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TSParenthesizedType", ({ - enumerable: true, - get: function () { - return _index.tsParenthesizedType; +exports["default"] = void 0; +var _core = __nccwpck_require__(65258); +var _helperPluginUtils = __nccwpck_require__(36028); +var _template = __nccwpck_require__(98063); +{ + var DefineAccessorHelper = _template.default.expression.ast` + function (type, obj, key, fn) { + var desc = { configurable: true, enumerable: true }; + desc[type] = fn; + return Object.defineProperty(obj, key, desc); + } + `; + DefineAccessorHelper._compact = true; +} +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption; + api.assertVersion(7); + const setComputedProperties = (_api$assumption = api.assumption("setComputedProperties")) != null ? _api$assumption : options.loose; + const pushComputedProps = setComputedProperties ? pushComputedPropsLoose : pushComputedPropsSpec; + function buildDefineAccessor(state, obj, prop) { + const type = prop.kind; + const key = !prop.computed && _core.types.isIdentifier(prop.key) ? _core.types.stringLiteral(prop.key.name) : prop.key; + const fn = getValue(prop); + { + let helper; + if (state.availableHelper("defineAccessor")) { + helper = state.addHelper("defineAccessor"); + } else { + const file = state.file; + helper = file.get("fallbackDefineAccessorHelper"); + if (!helper) { + const id = file.scope.generateUidIdentifier("defineAccessor"); + file.scope.push({ + id, + init: DefineAccessorHelper + }); + file.set("fallbackDefineAccessorHelper", helper = id); + } + helper = _core.types.cloneNode(helper); + } + return _core.types.callExpression(helper, [_core.types.stringLiteral(type), obj, key, fn]); + } } -})); -Object.defineProperty(exports, "TSPropertySignature", ({ - enumerable: true, - get: function () { - return _index.tsPropertySignature; + function getValue(prop) { + if (_core.types.isObjectProperty(prop)) { + return prop.value; + } else if (_core.types.isObjectMethod(prop)) { + return _core.types.functionExpression(null, prop.params, prop.body, prop.generator, prop.async); + } } -})); -Object.defineProperty(exports, "TSQualifiedName", ({ - enumerable: true, - get: function () { - return _index.tsQualifiedName; + function pushAssign(objId, prop, body) { + body.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.cloneNode(objId), prop.key, prop.computed || _core.types.isLiteral(prop.key)), getValue(prop)))); } -})); -Object.defineProperty(exports, "TSRestType", ({ - enumerable: true, - get: function () { - return _index.tsRestType; + function pushComputedPropsLoose(info) { + const { + computedProps, + state, + initPropExpression, + objId, + body + } = info; + for (const prop of computedProps) { + if (_core.types.isObjectMethod(prop) && (prop.kind === "get" || prop.kind === "set")) { + if (computedProps.length === 1) { + return buildDefineAccessor(state, initPropExpression, prop); + } else { + body.push(_core.types.expressionStatement(buildDefineAccessor(state, _core.types.cloneNode(objId), prop))); + } + } else { + pushAssign(_core.types.cloneNode(objId), prop, body); + } + } } -})); -Object.defineProperty(exports, "TSSatisfiesExpression", ({ - enumerable: true, - get: function () { - return _index.tsSatisfiesExpression; + function pushComputedPropsSpec(info) { + const { + objId, + body, + computedProps, + state + } = info; + const CHUNK_LENGTH_CAP = 10; + let currentChunk = null; + const computedPropsChunks = []; + for (const prop of computedProps) { + if (!currentChunk || currentChunk.length === CHUNK_LENGTH_CAP) { + currentChunk = []; + computedPropsChunks.push(currentChunk); + } + currentChunk.push(prop); + } + for (const chunk of computedPropsChunks) { + const single = computedPropsChunks.length === 1; + let node = single ? info.initPropExpression : _core.types.cloneNode(objId); + for (const prop of chunk) { + if (_core.types.isObjectMethod(prop) && (prop.kind === "get" || prop.kind === "set")) { + node = buildDefineAccessor(info.state, node, prop); + } else { + node = _core.types.callExpression(state.addHelper("defineProperty"), [node, _core.types.toComputedKey(prop), getValue(prop)]); + } + } + if (single) return node; + body.push(_core.types.expressionStatement(node)); + } } -})); -Object.defineProperty(exports, "TSStringKeyword", ({ - enumerable: true, - get: function () { - return _index.tsStringKeyword; + return { + name: "transform-computed-properties", + visitor: { + ObjectExpression: { + exit(path, state) { + const { + node, + parent, + scope + } = path; + let hasComputed = false; + for (const prop of node.properties) { + hasComputed = prop.computed === true; + if (hasComputed) break; + } + if (!hasComputed) return; + const initProps = []; + const computedProps = []; + let foundComputed = false; + for (const prop of node.properties) { + if (_core.types.isSpreadElement(prop)) { + continue; + } + if (prop.computed) { + foundComputed = true; + } + if (foundComputed) { + computedProps.push(prop); + } else { + initProps.push(prop); + } + } + const objId = scope.generateUidIdentifierBasedOnNode(parent); + const initPropExpression = _core.types.objectExpression(initProps); + const body = []; + body.push(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(objId, initPropExpression)])); + const single = pushComputedProps({ + scope, + objId, + body, + computedProps, + initPropExpression, + state + }); + if (single) { + path.replaceWith(single); + } else { + if (setComputedProperties) { + body.push(_core.types.expressionStatement(_core.types.cloneNode(objId))); + } + path.replaceWithMultiple(body); + } + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 41135: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var helperPluginUtils = __nccwpck_require__(36028); +var core = __nccwpck_require__(65258); + +function isPureVoid(node) { + return core.types.isUnaryExpression(node) && node.operator === "void" && core.types.isPureish(node.argument); +} +function unshiftForXStatementBody(statementPath, newStatements) { + statementPath.ensureBlock(); + const { + scope, + node + } = statementPath; + const bodyScopeBindings = statementPath.get("body").scope.bindings; + const hasShadowedBlockScopedBindings = Object.keys(bodyScopeBindings).some(name => scope.hasBinding(name)); + if (hasShadowedBlockScopedBindings) { + node.body = core.types.blockStatement([...newStatements, node.body]); + } else { + node.body.body.unshift(...newStatements); } -})); -Object.defineProperty(exports, "TSSymbolKeyword", ({ - enumerable: true, - get: function () { - return _index.tsSymbolKeyword; +} +function hasArrayRest(pattern) { + return pattern.elements.some(elem => core.types.isRestElement(elem)); +} +function hasObjectRest(pattern) { + return pattern.properties.some(prop => core.types.isRestElement(prop)); +} +const STOP_TRAVERSAL = {}; +const arrayUnpackVisitor = (node, ancestors, state) => { + if (!ancestors.length) { + return; } -})); -Object.defineProperty(exports, "TSThisType", ({ - enumerable: true, - get: function () { - return _index.tsThisType; + if (core.types.isIdentifier(node) && core.types.isReferenced(node, ancestors[ancestors.length - 1].node) && state.bindings[node.name]) { + state.deopt = true; + throw STOP_TRAVERSAL; } -})); -Object.defineProperty(exports, "TSTupleType", ({ - enumerable: true, - get: function () { - return _index.tsTupleType; +}; +class DestructuringTransformer { + constructor(opts) { + this.blockHoist = void 0; + this.operator = void 0; + this.arrayRefSet = void 0; + this.nodes = void 0; + this.scope = void 0; + this.kind = void 0; + this.iterableIsArray = void 0; + this.arrayLikeIsIterable = void 0; + this.objectRestNoSymbols = void 0; + this.useBuiltIns = void 0; + this.addHelper = void 0; + this.blockHoist = opts.blockHoist; + this.operator = opts.operator; + this.arrayRefSet = new Set(); + this.nodes = opts.nodes || []; + this.scope = opts.scope; + this.kind = opts.kind; + this.iterableIsArray = opts.iterableIsArray; + this.arrayLikeIsIterable = opts.arrayLikeIsIterable; + this.objectRestNoSymbols = opts.objectRestNoSymbols; + this.useBuiltIns = opts.useBuiltIns; + this.addHelper = opts.addHelper; } -})); -Object.defineProperty(exports, "TSTypeAliasDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsTypeAliasDeclaration; + getExtendsHelper() { + return this.useBuiltIns ? core.types.memberExpression(core.types.identifier("Object"), core.types.identifier("assign")) : this.addHelper("extends"); } -})); -Object.defineProperty(exports, "TSTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.tsTypeAnnotation; + buildVariableAssignment(id, init) { + let op = this.operator; + if (core.types.isMemberExpression(id) || core.types.isOptionalMemberExpression(id)) op = "="; + let node; + if (op) { + node = core.types.expressionStatement(core.types.assignmentExpression(op, id, core.types.cloneNode(init) || this.scope.buildUndefinedNode())); + } else { + let nodeInit; + if ((this.kind === "const" || this.kind === "using") && init === null) { + nodeInit = this.scope.buildUndefinedNode(); + } else { + nodeInit = core.types.cloneNode(init); + } + node = core.types.variableDeclaration(this.kind, [core.types.variableDeclarator(id, nodeInit)]); + } + node._blockHoist = this.blockHoist; + return node; } -})); -Object.defineProperty(exports, "TSTypeAssertion", ({ - enumerable: true, - get: function () { - return _index.tsTypeAssertion; + buildVariableDeclaration(id, init) { + const declar = core.types.variableDeclaration("var", [core.types.variableDeclarator(core.types.cloneNode(id), core.types.cloneNode(init))]); + declar._blockHoist = this.blockHoist; + return declar; } -})); -Object.defineProperty(exports, "TSTypeLiteral", ({ - enumerable: true, - get: function () { - return _index.tsTypeLiteral; + push(id, _init) { + const init = core.types.cloneNode(_init); + if (core.types.isObjectPattern(id)) { + this.pushObjectPattern(id, init); + } else if (core.types.isArrayPattern(id)) { + this.pushArrayPattern(id, init); + } else if (core.types.isAssignmentPattern(id)) { + this.pushAssignmentPattern(id, init); + } else { + this.nodes.push(this.buildVariableAssignment(id, init)); + } } -})); -Object.defineProperty(exports, "TSTypeOperator", ({ - enumerable: true, - get: function () { - return _index.tsTypeOperator; + toArray(node, count) { + if (this.iterableIsArray || core.types.isIdentifier(node) && this.arrayRefSet.has(node.name)) { + return node; + } else { + return this.scope.toArray(node, count, this.arrayLikeIsIterable); + } } -})); -Object.defineProperty(exports, "TSTypeParameter", ({ - enumerable: true, - get: function () { - return _index.tsTypeParameter; + pushAssignmentPattern({ + left, + right + }, valueRef) { + if (isPureVoid(valueRef)) { + this.push(left, right); + return; + } + const tempId = this.scope.generateUidIdentifierBasedOnNode(valueRef); + this.nodes.push(this.buildVariableDeclaration(tempId, valueRef)); + const tempConditional = core.types.conditionalExpression(core.types.binaryExpression("===", core.types.cloneNode(tempId), this.scope.buildUndefinedNode()), right, core.types.cloneNode(tempId)); + if (core.types.isPattern(left)) { + let patternId; + let node; + if (this.kind === "const" || this.kind === "let" || this.kind === "using") { + patternId = this.scope.generateUidIdentifier(tempId.name); + node = this.buildVariableDeclaration(patternId, tempConditional); + } else { + patternId = tempId; + node = core.types.expressionStatement(core.types.assignmentExpression("=", core.types.cloneNode(tempId), tempConditional)); + } + this.nodes.push(node); + this.push(left, patternId); + } else { + this.nodes.push(this.buildVariableAssignment(left, tempConditional)); + } } -})); -Object.defineProperty(exports, "TSTypeParameterDeclaration", ({ - enumerable: true, - get: function () { - return _index.tsTypeParameterDeclaration; + pushObjectRest(pattern, objRef, spreadProp, spreadPropIndex) { + const value = buildObjectExcludingKeys(pattern.properties.slice(0, spreadPropIndex), objRef, this.scope, name => this.addHelper(name), this.objectRestNoSymbols, this.useBuiltIns); + this.nodes.push(this.buildVariableAssignment(spreadProp.argument, value)); } -})); -Object.defineProperty(exports, "TSTypeParameterInstantiation", ({ - enumerable: true, - get: function () { - return _index.tsTypeParameterInstantiation; + pushObjectProperty(prop, propRef) { + if (core.types.isLiteral(prop.key)) prop.computed = true; + const pattern = prop.value; + const objRef = core.types.memberExpression(core.types.cloneNode(propRef), prop.key, prop.computed); + if (core.types.isPattern(pattern)) { + this.push(pattern, objRef); + } else { + this.nodes.push(this.buildVariableAssignment(pattern, objRef)); + } } -})); -Object.defineProperty(exports, "TSTypePredicate", ({ - enumerable: true, - get: function () { - return _index.tsTypePredicate; + pushObjectPattern(pattern, objRef) { + if (!pattern.properties.length) { + this.nodes.push(core.types.expressionStatement(core.types.callExpression(this.addHelper("objectDestructuringEmpty"), isPureVoid(objRef) ? [] : [objRef]))); + return; + } + if (pattern.properties.length > 1 && !this.scope.isStatic(objRef)) { + const temp = this.scope.generateUidIdentifierBasedOnNode(objRef); + this.nodes.push(this.buildVariableDeclaration(temp, objRef)); + objRef = temp; + } + if (hasObjectRest(pattern)) { + let copiedPattern; + for (let i = 0; i < pattern.properties.length; i++) { + const prop = pattern.properties[i]; + if (core.types.isRestElement(prop)) { + break; + } + const key = prop.key; + if (prop.computed && !this.scope.isPure(key)) { + const name = this.scope.generateUidIdentifierBasedOnNode(key); + this.nodes.push(this.buildVariableDeclaration(name, key)); + if (!copiedPattern) { + copiedPattern = pattern = Object.assign({}, pattern, { + properties: pattern.properties.slice() + }); + } + copiedPattern.properties[i] = Object.assign({}, prop, { + key: name + }); + } + } + } + for (let i = 0; i < pattern.properties.length; i++) { + const prop = pattern.properties[i]; + if (core.types.isRestElement(prop)) { + this.pushObjectRest(pattern, objRef, prop, i); + } else { + this.pushObjectProperty(prop, objRef); + } + } } -})); -Object.defineProperty(exports, "TSTypeQuery", ({ - enumerable: true, - get: function () { - return _index.tsTypeQuery; + canUnpackArrayPattern(pattern, arr) { + if (!core.types.isArrayExpression(arr)) return false; + if (pattern.elements.length > arr.elements.length) return; + if (pattern.elements.length < arr.elements.length && !hasArrayRest(pattern)) { + return false; + } + for (const elem of pattern.elements) { + if (!elem) return false; + if (core.types.isMemberExpression(elem)) return false; + } + for (const elem of arr.elements) { + if (core.types.isSpreadElement(elem)) return false; + if (core.types.isCallExpression(elem)) return false; + if (core.types.isMemberExpression(elem)) return false; + } + const bindings = core.types.getBindingIdentifiers(pattern); + const state = { + deopt: false, + bindings + }; + try { + core.types.traverse(arr, arrayUnpackVisitor, state); + } catch (e) { + if (e !== STOP_TRAVERSAL) throw e; + } + return !state.deopt; } -})); -Object.defineProperty(exports, "TSTypeReference", ({ - enumerable: true, - get: function () { - return _index.tsTypeReference; + pushUnpackedArrayPattern(pattern, arr) { + const holeToUndefined = el => el != null ? el : this.scope.buildUndefinedNode(); + for (let i = 0; i < pattern.elements.length; i++) { + const elem = pattern.elements[i]; + if (core.types.isRestElement(elem)) { + this.push(elem.argument, core.types.arrayExpression(arr.elements.slice(i).map(holeToUndefined))); + } else { + this.push(elem, holeToUndefined(arr.elements[i])); + } + } } -})); -Object.defineProperty(exports, "TSUndefinedKeyword", ({ - enumerable: true, - get: function () { - return _index.tsUndefinedKeyword; + pushArrayPattern(pattern, arrayRef) { + if (arrayRef === null) { + this.nodes.push(core.types.expressionStatement(core.types.callExpression(this.addHelper("objectDestructuringEmpty"), []))); + return; + } + if (!pattern.elements) return; + if (this.canUnpackArrayPattern(pattern, arrayRef)) { + this.pushUnpackedArrayPattern(pattern, arrayRef); + return; + } + const count = !hasArrayRest(pattern) && pattern.elements.length; + const toArray = this.toArray(arrayRef, count); + if (core.types.isIdentifier(toArray)) { + arrayRef = toArray; + } else { + arrayRef = this.scope.generateUidIdentifierBasedOnNode(arrayRef); + this.arrayRefSet.add(arrayRef.name); + this.nodes.push(this.buildVariableDeclaration(arrayRef, toArray)); + } + for (let i = 0; i < pattern.elements.length; i++) { + const elem = pattern.elements[i]; + if (!elem) continue; + let elemRef; + if (core.types.isRestElement(elem)) { + elemRef = this.toArray(arrayRef); + elemRef = core.types.callExpression(core.types.memberExpression(elemRef, core.types.identifier("slice")), [core.types.numericLiteral(i)]); + this.push(elem.argument, elemRef); + } else { + elemRef = core.types.memberExpression(arrayRef, core.types.numericLiteral(i), true); + this.push(elem, elemRef); + } + } } -})); -Object.defineProperty(exports, "TSUnionType", ({ - enumerable: true, - get: function () { - return _index.tsUnionType; + init(pattern, ref) { + if (!core.types.isArrayExpression(ref) && !core.types.isMemberExpression(ref)) { + const memo = this.scope.maybeGenerateMemoised(ref, true); + if (memo) { + this.nodes.push(this.buildVariableDeclaration(memo, core.types.cloneNode(ref))); + ref = memo; + } + } + this.push(pattern, ref); + return this.nodes; } -})); -Object.defineProperty(exports, "TSUnknownKeyword", ({ - enumerable: true, - get: function () { - return _index.tsUnknownKeyword; +} +function buildObjectExcludingKeys(excludedKeys, objRef, scope, addHelper, objectRestNoSymbols, useBuiltIns) { + const keys = []; + let allLiteral = true; + let hasTemplateLiteral = false; + for (let i = 0; i < excludedKeys.length; i++) { + const prop = excludedKeys[i]; + const key = prop.key; + if (core.types.isIdentifier(key) && !prop.computed) { + keys.push(core.types.stringLiteral(key.name)); + } else if (core.types.isTemplateLiteral(key)) { + keys.push(core.types.cloneNode(key)); + hasTemplateLiteral = true; + } else if (core.types.isLiteral(key)) { + keys.push(core.types.stringLiteral(String(key.value))); + } else if (core.types.isPrivateName(key)) ; else { + keys.push(core.types.cloneNode(key)); + allLiteral = false; + } } -})); -Object.defineProperty(exports, "TSVoidKeyword", ({ - enumerable: true, - get: function () { - return _index.tsVoidKeyword; + let value; + if (keys.length === 0) { + const extendsHelper = useBuiltIns ? core.types.memberExpression(core.types.identifier("Object"), core.types.identifier("assign")) : addHelper("extends"); + value = core.types.callExpression(extendsHelper, [core.types.objectExpression([]), core.types.sequenceExpression([core.types.callExpression(addHelper("objectDestructuringEmpty"), [core.types.cloneNode(objRef)]), core.types.cloneNode(objRef)])]); + } else { + let keyExpression = core.types.arrayExpression(keys); + if (!allLiteral) { + keyExpression = core.types.callExpression(core.types.memberExpression(keyExpression, core.types.identifier("map")), [addHelper("toPropertyKey")]); + } else if (!hasTemplateLiteral && !core.types.isProgram(scope.block)) { + const programScope = scope.getProgramParent(); + const id = programScope.generateUidIdentifier("excluded"); + programScope.push({ + id, + init: keyExpression, + kind: "const" + }); + keyExpression = core.types.cloneNode(id); + } + value = core.types.callExpression(addHelper(`objectWithoutProperties${objectRestNoSymbols ? "Loose" : ""}`), [core.types.cloneNode(objRef), keyExpression]); } -})); -Object.defineProperty(exports, "TaggedTemplateExpression", ({ - enumerable: true, - get: function () { - return _index.taggedTemplateExpression; + return value; +} +function convertVariableDeclaration(path, addHelper, arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns) { + const { + node, + scope + } = path; + const nodeKind = node.kind; + const nodeLoc = node.loc; + const nodes = []; + for (let i = 0; i < node.declarations.length; i++) { + const declar = node.declarations[i]; + const patternId = declar.init; + const pattern = declar.id; + const destructuring = new DestructuringTransformer({ + blockHoist: node._blockHoist, + nodes: nodes, + scope: scope, + kind: node.kind, + iterableIsArray, + arrayLikeIsIterable, + useBuiltIns, + objectRestNoSymbols, + addHelper + }); + if (core.types.isPattern(pattern)) { + destructuring.init(pattern, patternId); + if (+i !== node.declarations.length - 1) { + core.types.inherits(nodes[nodes.length - 1], declar); + } + } else { + nodes.push(core.types.inherits(destructuring.buildVariableAssignment(pattern, patternId), declar)); + } } -})); -Object.defineProperty(exports, "TemplateElement", ({ - enumerable: true, - get: function () { - return _index.templateElement; + let tail = null; + let nodesOut = []; + for (const node of nodes) { + if (core.types.isVariableDeclaration(node)) { + if (tail !== null) { + tail.declarations.push(...node.declarations); + continue; + } else { + node.kind = nodeKind; + tail = node; + } + } else { + tail = null; + } + if (!node.loc) { + node.loc = nodeLoc; + } + nodesOut.push(node); } -})); -Object.defineProperty(exports, "TemplateLiteral", ({ - enumerable: true, - get: function () { - return _index.templateLiteral; + if (nodesOut.length === 2 && core.types.isVariableDeclaration(nodesOut[0]) && core.types.isExpressionStatement(nodesOut[1]) && core.types.isCallExpression(nodesOut[1].expression) && nodesOut[0].declarations.length === 1) { + const expr = nodesOut[1].expression; + expr.arguments = [nodesOut[0].declarations[0].init]; + nodesOut = [expr]; + } else { + if (core.types.isForStatement(path.parent, { + init: node + }) && !nodesOut.some(v => core.types.isVariableDeclaration(v))) { + for (let i = 0; i < nodesOut.length; i++) { + const node = nodesOut[i]; + if (core.types.isExpressionStatement(node)) { + nodesOut[i] = node.expression; + } + } + } } -})); -Object.defineProperty(exports, "ThisExpression", ({ - enumerable: true, - get: function () { - return _index.thisExpression; + if (nodesOut.length === 1) { + path.replaceWith(nodesOut[0]); + } else { + path.replaceWithMultiple(nodesOut); } -})); -Object.defineProperty(exports, "ThisTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.thisTypeAnnotation; + scope.crawl(); +} +function convertAssignmentExpression(path, addHelper, arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns) { + const { + node, + scope, + parentPath + } = path; + const nodes = []; + const destructuring = new DestructuringTransformer({ + operator: node.operator, + scope: scope, + nodes: nodes, + arrayLikeIsIterable, + iterableIsArray, + objectRestNoSymbols, + useBuiltIns, + addHelper + }); + let ref; + if (!parentPath.isExpressionStatement() && !parentPath.isSequenceExpression() || path.isCompletionRecord()) { + ref = scope.generateUidIdentifierBasedOnNode(node.right, "ref"); + nodes.push(core.types.variableDeclaration("var", [core.types.variableDeclarator(ref, node.right)])); + if (core.types.isArrayExpression(node.right)) { + destructuring.arrayRefSet.add(ref.name); + } } -})); -Object.defineProperty(exports, "ThrowStatement", ({ - enumerable: true, - get: function () { - return _index.throwStatement; + destructuring.init(node.left, ref || node.right); + if (ref) { + if (parentPath.isArrowFunctionExpression()) { + path.replaceWith(core.types.blockStatement([])); + nodes.push(core.types.returnStatement(core.types.cloneNode(ref))); + } else { + nodes.push(core.types.expressionStatement(core.types.cloneNode(ref))); + } } -})); -Object.defineProperty(exports, "TopicReference", ({ - enumerable: true, - get: function () { - return _index.topicReference; + path.replaceWithMultiple(nodes); + scope.crawl(); +} + +function variableDeclarationHasPattern(node) { + for (const declar of node.declarations) { + if (core.types.isPattern(declar.id)) { + return true; + } } + return false; +} +var index = helperPluginUtils.declare((api, options) => { + var _ref, _api$assumption, _ref2, _options$allowArrayLi, _ref3, _api$assumption2; + api.assertVersion(7); + const { + useBuiltIns = false + } = options; + const iterableIsArray = (_ref = (_api$assumption = api.assumption("iterableIsArray")) != null ? _api$assumption : options.loose) != null ? _ref : false; + const arrayLikeIsIterable = (_ref2 = (_options$allowArrayLi = options.allowArrayLike) != null ? _options$allowArrayLi : api.assumption("arrayLikeIsIterable")) != null ? _ref2 : false; + const objectRestNoSymbols = (_ref3 = (_api$assumption2 = api.assumption("objectRestNoSymbols")) != null ? _api$assumption2 : options.loose) != null ? _ref3 : false; + return { + name: "transform-destructuring", + visitor: { + ExportNamedDeclaration(path) { + const declaration = path.get("declaration"); + if (!declaration.isVariableDeclaration()) return; + if (!variableDeclarationHasPattern(declaration.node)) return; + const specifiers = []; + for (const name of Object.keys(path.getOuterBindingIdentifiers())) { + specifiers.push(core.types.exportSpecifier(core.types.identifier(name), core.types.identifier(name))); + } + path.replaceWith(declaration.node); + path.insertAfter(core.types.exportNamedDeclaration(null, specifiers)); + path.scope.crawl(); + }, + ForXStatement(path) { + const { + node, + scope + } = path; + const left = node.left; + if (core.types.isPattern(left)) { + const temp = scope.generateUidIdentifier("ref"); + node.left = core.types.variableDeclaration("var", [core.types.variableDeclarator(temp)]); + path.ensureBlock(); + const statementBody = path.node.body.body; + const nodes = []; + if (statementBody.length === 0 && path.isCompletionRecord()) { + nodes.unshift(core.types.expressionStatement(scope.buildUndefinedNode())); + } + nodes.unshift(core.types.expressionStatement(core.types.assignmentExpression("=", left, core.types.cloneNode(temp)))); + unshiftForXStatementBody(path, nodes); + scope.crawl(); + return; + } + if (!core.types.isVariableDeclaration(left)) return; + const pattern = left.declarations[0].id; + if (!core.types.isPattern(pattern)) return; + const key = scope.generateUidIdentifier("ref"); + node.left = core.types.variableDeclaration(left.kind, [core.types.variableDeclarator(key, null)]); + const nodes = []; + const destructuring = new DestructuringTransformer({ + kind: left.kind, + scope: scope, + nodes: nodes, + arrayLikeIsIterable, + iterableIsArray, + objectRestNoSymbols, + useBuiltIns, + addHelper: name => this.addHelper(name) + }); + destructuring.init(pattern, key); + unshiftForXStatementBody(path, nodes); + scope.crawl(); + }, + CatchClause({ + node, + scope + }) { + const pattern = node.param; + if (!core.types.isPattern(pattern)) return; + const ref = scope.generateUidIdentifier("ref"); + node.param = ref; + const nodes = []; + const destructuring = new DestructuringTransformer({ + kind: "let", + scope: scope, + nodes: nodes, + arrayLikeIsIterable, + iterableIsArray, + objectRestNoSymbols, + useBuiltIns, + addHelper: name => this.addHelper(name) + }); + destructuring.init(pattern, ref); + node.body.body = [...nodes, ...node.body.body]; + scope.crawl(); + }, + AssignmentExpression(path, state) { + if (!core.types.isPattern(path.node.left)) return; + convertAssignmentExpression(path, name => state.addHelper(name), arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns); + }, + VariableDeclaration(path, state) { + const { + node, + parent + } = path; + if (core.types.isForXStatement(parent)) return; + if (!parent || !path.container) return; + if (!variableDeclarationHasPattern(node)) return; + convertVariableDeclaration(path, name => state.addHelper(name), arrayLikeIsIterable, iterableIsArray, objectRestNoSymbols, useBuiltIns); + } + } + }; +}); + +exports.buildObjectExcludingKeys = buildObjectExcludingKeys; +exports["default"] = index; +exports.unshiftForXStatementBody = unshiftForXStatementBody; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 26220: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TryStatement", ({ - enumerable: true, - get: function () { - return _index.tryStatement; - } +exports["default"] = void 0; +var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(63106); +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-dotall-regex", + feature: "dotAllFlag" + }); +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 3211: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TupleExpression", ({ - enumerable: true, - get: function () { - return _index.tupleExpression; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +function getName(key) { + if (_core.types.isIdentifier(key)) { + return key.name; } + return key.value.toString(); +} +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-duplicate-keys", + visitor: { + ObjectExpression(path) { + const { + node + } = path; + const plainProps = node.properties.filter(prop => !_core.types.isSpreadElement(prop) && !prop.computed); + const alreadySeenData = Object.create(null); + const alreadySeenGetters = Object.create(null); + const alreadySeenSetters = Object.create(null); + for (const prop of plainProps) { + const name = getName(prop.key); + let isDuplicate = false; + switch (prop.kind) { + case "get": + if (alreadySeenData[name] || alreadySeenGetters[name]) { + isDuplicate = true; + } + alreadySeenGetters[name] = true; + break; + case "set": + if (alreadySeenData[name] || alreadySeenSetters[name]) { + isDuplicate = true; + } + alreadySeenSetters[name] = true; + break; + default: + if (alreadySeenData[name] || alreadySeenGetters[name] || alreadySeenSetters[name]) { + isDuplicate = true; + } + alreadySeenData[name] = true; + } + if (isDuplicate) { + prop.computed = true; + prop.key = _core.types.stringLiteral(name); + } + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 2824: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TupleTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.tupleTypeAnnotation; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +const SUPPORTED_MODULES = ["commonjs", "amd", "systemjs"]; +const MODULES_NOT_FOUND = `\ +@babel/plugin-transform-dynamic-import depends on a modules +transform plugin. Supported plugins are: + - @babel/plugin-transform-modules-commonjs ^7.4.0 + - @babel/plugin-transform-modules-amd ^7.4.0 + - @babel/plugin-transform-modules-systemjs ^7.4.0 + +If you are using Webpack or Rollup and thus don't want +Babel to transpile your imports and exports, you can use +the @babel/plugin-syntax-dynamic-import plugin and let your +bundler handle dynamic imports. +`; +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-dynamic-import", + inherits: (__nccwpck_require__(20797)["default"]), + pre() { + this.file.set("@babel/plugin-proposal-dynamic-import", "7.23.4"); + }, + visitor: { + Program() { + const modules = this.file.get("@babel/plugin-transform-modules-*"); + if (!SUPPORTED_MODULES.includes(modules)) { + throw new Error(MODULES_NOT_FOUND); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 84169: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TypeAlias", ({ - enumerable: true, - get: function () { - return _index.typeAlias; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperBuilderBinaryAssignmentOperatorVisitor = __nccwpck_require__(64406); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-exponentiation-operator", + visitor: (0, _helperBuilderBinaryAssignmentOperatorVisitor.default)({ + operator: "**", + build(left, right) { + return _core.types.callExpression(_core.types.memberExpression(_core.types.identifier("Math"), _core.types.identifier("pow")), [left, right]); + } + }) + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 29722: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.typeAnnotation; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-export-namespace-from", + inherits: (__nccwpck_require__(46972)["default"]), + visitor: { + ExportNamedDeclaration(path) { + var _exported$name; + const { + node, + scope + } = path; + const { + specifiers + } = node; + const index = _core.types.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0; + if (!_core.types.isExportNamespaceSpecifier(specifiers[index])) return; + const nodes = []; + if (index === 1) { + nodes.push(_core.types.exportNamedDeclaration(null, [specifiers.shift()], node.source)); + } + const specifier = specifiers.shift(); + const { + exported + } = specifier; + const uid = scope.generateUidIdentifier((_exported$name = exported.name) != null ? _exported$name : exported.value); + nodes.push(_core.types.importDeclaration([_core.types.importNamespaceSpecifier(uid)], _core.types.cloneNode(node.source)), _core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.cloneNode(uid), exported)])); + if (node.specifiers.length >= 1) { + nodes.push(node); + } + const [importDeclaration] = path.replaceWithMultiple(nodes); + path.scope.registerDeclaration(importDeclaration); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 56685: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "TypeCastExpression", ({ - enumerable: true, - get: function () { - return _index.typeCastExpression; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _noHelperImplementation = __nccwpck_require__(30225); +var _helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); +function buildLoopBody(path, declar, newBody) { + let block; + const bodyPath = path.get("body"); + const body = newBody != null ? newBody : bodyPath.node; + if (_core.types.isBlockStatement(body) && Object.keys(path.getBindingIdentifiers()).some(id => bodyPath.scope.hasOwnBinding(id))) { + block = _core.types.blockStatement([declar, body]); + } else { + block = _core.types.toBlock(body); + block.body.unshift(declar); } -})); -Object.defineProperty(exports, "TypeParameter", ({ - enumerable: true, - get: function () { - return _index.typeParameter; + return block; +} +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _options$assumeArray, _options$allowArrayLi, _api$assumption; + api.assertVersion(7); + { + const { + assumeArray, + allowArrayLike, + loose + } = options; + if (loose === true && assumeArray === true) { + throw new Error(`The loose and assumeArray options cannot be used together in @babel/plugin-transform-for-of`); + } + if (assumeArray === true && allowArrayLike === true) { + throw new Error(`The assumeArray and allowArrayLike options cannot be used together in @babel/plugin-transform-for-of`); + } + { + if (allowArrayLike && /^7\.\d\./.test(api.version)) { + throw new Error(`The allowArrayLike is only supported when using @babel/core@^7.10.0`); + } + } } -})); -Object.defineProperty(exports, "TypeParameterDeclaration", ({ - enumerable: true, - get: function () { - return _index.typeParameterDeclaration; + const iterableIsArray = (_options$assumeArray = options.assumeArray) != null ? _options$assumeArray : !options.loose && api.assumption("iterableIsArray"); + const arrayLikeIsIterable = (_options$allowArrayLi = options.allowArrayLike) != null ? _options$allowArrayLi : api.assumption("arrayLikeIsIterable"); + const skipIteratorClosing = (_api$assumption = api.assumption("skipForOfIteratorClosing")) != null ? _api$assumption : options.loose; + if (iterableIsArray && arrayLikeIsIterable) { + throw new Error(`The "iterableIsArray" and "arrayLikeIsIterable" assumptions are not compatible.`); } -})); -Object.defineProperty(exports, "TypeParameterInstantiation", ({ - enumerable: true, - get: function () { - return _index.typeParameterInstantiation; + if (iterableIsArray) { + return { + name: "transform-for-of", + visitor: { + ForOfStatement(path) { + const { + scope + } = path; + const { + left, + await: isAwait + } = path.node; + if (isAwait) { + return; + } + const right = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes)(path.node.right); + const i = scope.generateUidIdentifier("i"); + let array = scope.maybeGenerateMemoised(right, true); + if (!array && _core.types.isIdentifier(right) && path.get("body").scope.hasOwnBinding(right.name)) { + array = scope.generateUidIdentifier("arr"); + } + const inits = [_core.types.variableDeclarator(i, _core.types.numericLiteral(0))]; + if (array) { + inits.push(_core.types.variableDeclarator(array, right)); + } else { + array = right; + } + const item = _core.types.memberExpression(_core.types.cloneNode(array), _core.types.cloneNode(i), true); + let assignment; + if (_core.types.isVariableDeclaration(left)) { + assignment = left; + assignment.declarations[0].init = item; + } else { + assignment = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, item)); + } + path.replaceWith(_core.types.forStatement(_core.types.variableDeclaration("let", inits), _core.types.binaryExpression("<", _core.types.cloneNode(i), _core.types.memberExpression(_core.types.cloneNode(array), _core.types.identifier("length"))), _core.types.updateExpression("++", _core.types.cloneNode(i)), buildLoopBody(path, assignment))); + } + } + }; } -})); -Object.defineProperty(exports, "TypeofTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.typeofTypeAnnotation; + const buildForOfArray = (0, _core.template)` + for (var KEY = 0, NAME = ARR; KEY < NAME.length; KEY++) BODY; + `; + const buildForOfNoIteratorClosing = _core.template.statements` + for (var ITERATOR_HELPER = CREATE_ITERATOR_HELPER(OBJECT, ARRAY_LIKE_IS_ITERABLE), STEP_KEY; + !(STEP_KEY = ITERATOR_HELPER()).done;) BODY; + `; + const buildForOf = _core.template.statements` + var ITERATOR_HELPER = CREATE_ITERATOR_HELPER(OBJECT, ARRAY_LIKE_IS_ITERABLE), STEP_KEY; + try { + for (ITERATOR_HELPER.s(); !(STEP_KEY = ITERATOR_HELPER.n()).done;) BODY; + } catch (err) { + ITERATOR_HELPER.e(err); + } finally { + ITERATOR_HELPER.f(); + } + `; + const builder = skipIteratorClosing ? { + build: buildForOfNoIteratorClosing, + helper: "createForOfIteratorHelperLoose", + getContainer: nodes => nodes + } : { + build: buildForOf, + helper: "createForOfIteratorHelper", + getContainer: nodes => nodes[1].block.body + }; + function _ForOfStatementArray(path) { + const { + node, + scope + } = path; + const right = scope.generateUidIdentifierBasedOnNode(node.right, "arr"); + const iterationKey = scope.generateUidIdentifier("i"); + const loop = buildForOfArray({ + BODY: node.body, + KEY: iterationKey, + NAME: right, + ARR: node.right + }); + _core.types.inherits(loop, node); + const iterationValue = _core.types.memberExpression(_core.types.cloneNode(right), _core.types.cloneNode(iterationKey), true); + let declar; + const left = node.left; + if (_core.types.isVariableDeclaration(left)) { + left.declarations[0].init = iterationValue; + declar = left; + } else { + declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, iterationValue)); + } + loop.body = buildLoopBody(path, declar, loop.body); + return loop; } + return { + name: "transform-for-of", + visitor: { + ForOfStatement(path, state) { + const right = path.get("right"); + if (right.isArrayExpression() || right.isGenericType("Array") || _core.types.isArrayTypeAnnotation(right.getTypeAnnotation())) { + path.replaceWith(_ForOfStatementArray(path)); + return; + } + { + if (!state.availableHelper(builder.helper)) { + (0, _noHelperImplementation.default)(skipIteratorClosing, path, state); + return; + } + } + const { + node, + parent, + scope + } = path; + const left = node.left; + let declar; + const stepKey = scope.generateUid("step"); + const stepValue = _core.types.memberExpression(_core.types.identifier(stepKey), _core.types.identifier("value")); + if (_core.types.isVariableDeclaration(left)) { + declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, stepValue)]); + } else { + declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, stepValue)); + } + const nodes = builder.build({ + CREATE_ITERATOR_HELPER: state.addHelper(builder.helper), + ITERATOR_HELPER: scope.generateUidIdentifier("iterator"), + ARRAY_LIKE_IS_ITERABLE: arrayLikeIsIterable ? _core.types.booleanLiteral(true) : null, + STEP_KEY: _core.types.identifier(stepKey), + OBJECT: node.right, + BODY: buildLoopBody(path, declar) + }); + const container = builder.getContainer(nodes); + _core.types.inherits(container[0], node); + _core.types.inherits(container[0].body, node.body); + if (_core.types.isLabeledStatement(parent)) { + container[0] = _core.types.labeledStatement(parent.label, container[0]); + path.parentPath.replaceWithMultiple(nodes); + path.skip(); + } else { + path.replaceWithMultiple(nodes); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 30225: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "UnaryExpression", ({ - enumerable: true, - get: function () { - return _index.unaryExpression; +exports["default"] = transformWithoutHelper; +var _core = __nccwpck_require__(65258); +function transformWithoutHelper(loose, path, state) { + const pushComputedProps = loose ? pushComputedPropsLoose : pushComputedPropsSpec; + const { + node + } = path; + const build = pushComputedProps(path, state); + const declar = build.declar; + const loop = build.loop; + const block = loop.body; + path.ensureBlock(); + if (declar) { + block.body.push(declar); } -})); -Object.defineProperty(exports, "UnionTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.unionTypeAnnotation; + block.body.push(...node.body.body); + _core.types.inherits(loop, node); + _core.types.inherits(loop.body, node.body); + if (build.replaceParent) { + path.parentPath.replaceWithMultiple(build.node); + path.remove(); + } else { + path.replaceWithMultiple(build.node); } -})); -Object.defineProperty(exports, "UpdateExpression", ({ - enumerable: true, - get: function () { - return _index.updateExpression; +} +const buildForOfLoose = _core.template.statement(` + for (var LOOP_OBJECT = OBJECT, + IS_ARRAY = Array.isArray(LOOP_OBJECT), + INDEX = 0, + LOOP_OBJECT = IS_ARRAY ? LOOP_OBJECT : LOOP_OBJECT[Symbol.iterator]();;) { + INTERMEDIATE; + if (IS_ARRAY) { + if (INDEX >= LOOP_OBJECT.length) break; + ID = LOOP_OBJECT[INDEX++]; + } else { + INDEX = LOOP_OBJECT.next(); + if (INDEX.done) break; + ID = INDEX.value; + } } -})); -Object.defineProperty(exports, "V8IntrinsicIdentifier", ({ - enumerable: true, - get: function () { - return _index.v8IntrinsicIdentifier; +`); +const buildForOf = _core.template.statements(` + var ITERATOR_COMPLETION = true; + var ITERATOR_HAD_ERROR_KEY = false; + var ITERATOR_ERROR_KEY = undefined; + try { + for ( + var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY; + !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done); + ITERATOR_COMPLETION = true + ) {} + } catch (err) { + ITERATOR_HAD_ERROR_KEY = true; + ITERATOR_ERROR_KEY = err; + } finally { + try { + if (!ITERATOR_COMPLETION && ITERATOR_KEY.return != null) { + ITERATOR_KEY.return(); + } + } finally { + if (ITERATOR_HAD_ERROR_KEY) { + throw ITERATOR_ERROR_KEY; + } + } } -})); -Object.defineProperty(exports, "VariableDeclaration", ({ - enumerable: true, - get: function () { - return _index.variableDeclaration; +`); +function pushComputedPropsLoose(path, state) { + const { + node, + scope, + parent + } = path; + const { + left + } = node; + let declar, id, intermediate; + if (_core.types.isIdentifier(left) || _core.types.isPattern(left) || _core.types.isMemberExpression(left)) { + id = left; + intermediate = null; + } else if (_core.types.isVariableDeclaration(left)) { + id = scope.generateUidIdentifier("ref"); + declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, _core.types.identifier(id.name))]); + intermediate = _core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(id.name))]); + } else { + throw state.buildCodeFrameError(left, `Unknown node type ${left.type} in ForStatement`); } -})); -Object.defineProperty(exports, "VariableDeclarator", ({ - enumerable: true, - get: function () { - return _index.variableDeclarator; + const iteratorKey = scope.generateUidIdentifier("iterator"); + const isArrayKey = scope.generateUidIdentifier("isArray"); + const loop = buildForOfLoose({ + LOOP_OBJECT: iteratorKey, + IS_ARRAY: isArrayKey, + OBJECT: node.right, + INDEX: scope.generateUidIdentifier("i"), + ID: id, + INTERMEDIATE: intermediate + }); + const isLabeledParent = _core.types.isLabeledStatement(parent); + let labeled; + if (isLabeledParent) { + labeled = _core.types.labeledStatement(parent.label, loop); } -})); -Object.defineProperty(exports, "Variance", ({ - enumerable: true, - get: function () { - return _index.variance; + return { + replaceParent: isLabeledParent, + declar: declar, + node: labeled || loop, + loop: loop + }; +} +function pushComputedPropsSpec(path, state) { + const { + node, + scope, + parent + } = path; + const left = node.left; + let declar; + const stepKey = scope.generateUid("step"); + const stepValue = _core.types.memberExpression(_core.types.identifier(stepKey), _core.types.identifier("value")); + if (_core.types.isIdentifier(left) || _core.types.isPattern(left) || _core.types.isMemberExpression(left)) { + declar = _core.types.expressionStatement(_core.types.assignmentExpression("=", left, stepValue)); + } else if (_core.types.isVariableDeclaration(left)) { + declar = _core.types.variableDeclaration(left.kind, [_core.types.variableDeclarator(left.declarations[0].id, stepValue)]); + } else { + throw state.buildCodeFrameError(left, `Unknown node type ${left.type} in ForStatement`); } -})); -Object.defineProperty(exports, "VoidTypeAnnotation", ({ - enumerable: true, - get: function () { - return _index.voidTypeAnnotation; + const template = buildForOf({ + ITERATOR_HAD_ERROR_KEY: scope.generateUidIdentifier("didIteratorError"), + ITERATOR_COMPLETION: scope.generateUidIdentifier("iteratorNormalCompletion"), + ITERATOR_ERROR_KEY: scope.generateUidIdentifier("iteratorError"), + ITERATOR_KEY: scope.generateUidIdentifier("iterator"), + STEP_KEY: _core.types.identifier(stepKey), + OBJECT: node.right + }); + const isLabeledParent = _core.types.isLabeledStatement(parent); + const tryBody = template[3].block.body; + const loop = tryBody[0]; + if (isLabeledParent) { + tryBody[0] = _core.types.labeledStatement(parent.label, loop); } + return { + replaceParent: isLabeledParent, + declar: declar, + loop: loop, + node: template + }; +} + +//# sourceMappingURL=no-helper-implementation.js.map + + +/***/ }), + +/***/ 4365: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "WhileStatement", ({ - enumerable: true, - get: function () { - return _index.whileStatement; - } +exports["default"] = void 0; +var _helperCompilationTargets = __nccwpck_require__(91047); +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperFunctionName = __nccwpck_require__(54915); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets()); + return { + name: "transform-function-name", + visitor: { + FunctionExpression: { + exit(path) { + if (path.key !== "value" && !path.parentPath.isObjectProperty()) { + const replacement = (0, _helperFunctionName.default)(path); + if (replacement) path.replaceWith(replacement); + } + } + }, + ObjectProperty(path) { + const value = path.get("value"); + if (value.isFunction()) { + const newNode = (0, _helperFunctionName.default)(value, false, supportUnicodeId); + if (newNode) value.replaceWith(newNode); + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 59995: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "WithStatement", ({ - enumerable: true, - get: function () { - return _index.withStatement; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const regex = /(\\*)([\u2028\u2029])/g; + function replace(match, escapes, separator) { + const isEscaped = escapes.length % 2 === 1; + if (isEscaped) return match; + return `${escapes}\\u${separator.charCodeAt(0).toString(16)}`; } + return { + name: "transform-json-strings", + inherits: (__nccwpck_require__(45142)["default"]), + visitor: { + "DirectiveLiteral|StringLiteral"({ + node + }) { + const { + extra + } = node; + if (!(extra != null && extra.raw)) return; + extra.raw = extra.raw.replace(regex, replace); + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 48498: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "YieldExpression", ({ - enumerable: true, - get: function () { - return _index.yieldExpression; - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-literals", + visitor: { + NumericLiteral({ + node + }) { + if (node.extra && /^0[ob]/i.test(node.extra.raw)) { + node.extra = undefined; + } + }, + StringLiteral({ + node + }) { + if (node.extra && /\\[u]/gi.test(node.extra.raw)) { + node.extra = undefined; + } + } + } + }; +}); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 90587: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -var _index = __nccwpck_require__(54230); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-logical-assignment-operators", + inherits: (__nccwpck_require__(70400)["default"]), + visitor: { + AssignmentExpression(path) { + const { + node, + scope + } = path; + const { + operator, + left, + right + } = node; + const operatorTrunc = operator.slice(0, -1); + if (!_core.types.LOGICAL_OPERATORS.includes(operatorTrunc)) { + return; + } + const lhs = _core.types.cloneNode(left); + if (_core.types.isMemberExpression(left)) { + const { + object, + property, + computed + } = left; + const memo = scope.maybeGenerateMemoised(object); + if (memo) { + left.object = memo; + lhs.object = _core.types.assignmentExpression("=", _core.types.cloneNode(memo), object); + } + if (computed) { + const memo = scope.maybeGenerateMemoised(property); + if (memo) { + left.property = memo; + lhs.property = _core.types.assignmentExpression("=", _core.types.cloneNode(memo), property); + } + } + } + path.replaceWith(_core.types.logicalExpression(operatorTrunc, lhs, _core.types.assignmentExpression("=", left, right))); + } + } + }; +}); -//# sourceMappingURL=uppercase.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 72783: +/***/ 53098: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130065,30 +68900,35 @@ var _index = __nccwpck_require__(54230); Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = buildChildren; -var _generated = __nccwpck_require__(99451); -var _cleanJSXElementLiteralChild = __nccwpck_require__(18921); -function buildChildren(node) { - const elements = []; - for (let i = 0; i < node.children.length; i++) { - let child = node.children[i]; - if ((0, _generated.isJSXText)(child)) { - (0, _cleanJSXElementLiteralChild.default)(child, elements); - continue; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-member-expression-literals", + visitor: { + MemberExpression: { + exit({ + node + }) { + const prop = node.property; + if (!node.computed && _core.types.isIdentifier(prop) && !_core.types.isValidES3Identifier(prop.name)) { + node.property = _core.types.stringLiteral(prop.name); + node.computed = true; + } + } + } } - if ((0, _generated.isJSXExpressionContainer)(child)) child = child.expression; - if ((0, _generated.isJSXEmptyExpression)(child)) continue; - elements.push(child); - } - return elements; -} + }; +}); -//# sourceMappingURL=buildChildren.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 35328: +/***/ 97119: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130097,28 +68937,150 @@ function buildChildren(node) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = createTSUnionType; -var _generated = __nccwpck_require__(54230); -var _removeTypeDuplicates = __nccwpck_require__(1375); -var _index = __nccwpck_require__(99451); -function createTSUnionType(typeAnnotations) { - const types = typeAnnotations.map(type => { - return (0, _index.isTSTypeAnnotation)(type) ? type.typeAnnotation : type; - }); - const flattened = (0, _removeTypeDuplicates.default)(types); - if (flattened.length === 1) { - return flattened[0]; - } else { - return (0, _generated.tsUnionType)(flattened); - } +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperModuleTransforms = __nccwpck_require__(1642); +var _core = __nccwpck_require__(65258); +const buildWrapper = _core.template.statement(` + define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) { + }) +`); +const buildAnonymousWrapper = _core.template.statement(` + define(["require"], function(REQUIRE) { + }) +`); +function injectWrapper(path, wrapper) { + const { + body, + directives + } = path.node; + path.node.directives = []; + path.node.body = []; + const amdFactoryCall = path.pushContainer("body", wrapper)[0].get("expression"); + const amdFactoryCallArgs = amdFactoryCall.get("arguments"); + const amdFactory = amdFactoryCallArgs[amdFactoryCallArgs.length - 1].get("body"); + amdFactory.pushContainer("directives", directives); + amdFactory.pushContainer("body", body); } +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const { + allowTopLevelThis, + strict, + strictMode, + importInterop, + noInterop + } = options; + const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose; + const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose; + return { + name: "transform-modules-amd", + pre() { + this.file.set("@babel/plugin-transform-modules-*", "amd"); + }, + visitor: { + ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path, state) { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return; + if (path.isCallExpression() && !path.get("callee").isImport()) return; + let { + requireId, + resolveId, + rejectId + } = state; + if (!requireId) { + requireId = path.scope.generateUidIdentifier("require"); + state.requireId = requireId; + } + if (!resolveId || !rejectId) { + resolveId = path.scope.generateUidIdentifier("resolve"); + rejectId = path.scope.generateUidIdentifier("reject"); + state.resolveId = resolveId; + state.rejectId = rejectId; + } + let result = _core.types.identifier("imported"); + if (!noInterop) { + result = (0, _helperModuleTransforms.wrapInterop)(this.file.path, result, "namespace"); + } + path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, false, specifier => _core.template.expression.ast` + new Promise((${resolveId}, ${rejectId}) => + ${requireId}( + [${specifier}], + imported => ${_core.types.cloneNode(resolveId)}(${result}), + ${_core.types.cloneNode(rejectId)} + ) + ) + `)); + }, + Program: { + exit(path, { + requireId + }) { + if (!(0, _helperModuleTransforms.isModule)(path)) { + if (requireId) { + injectWrapper(path, buildAnonymousWrapper({ + REQUIRE: _core.types.cloneNode(requireId) + })); + } + return; + } + const amdArgs = []; + const importNames = []; + if (requireId) { + amdArgs.push(_core.types.stringLiteral("require")); + importNames.push(_core.types.cloneNode(requireId)); + } + let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + if (moduleName) moduleName = _core.types.stringLiteral(moduleName); + const { + meta, + headers + } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { + enumerableModuleMeta, + constantReexports, + strict, + strictMode, + allowTopLevelThis, + importInterop, + noInterop, + filename: this.file.opts.filename + }); + if ((0, _helperModuleTransforms.hasExports)(meta)) { + amdArgs.push(_core.types.stringLiteral("exports")); + importNames.push(_core.types.identifier(meta.exportName)); + } + for (const [source, metadata] of meta.source) { + amdArgs.push(_core.types.stringLiteral(source)); + importNames.push(_core.types.identifier(metadata.name)); + if (!(0, _helperModuleTransforms.isSideEffectImport)(metadata)) { + const interop = (0, _helperModuleTransforms.wrapInterop)(path, _core.types.identifier(metadata.name), metadata.interop); + if (interop) { + const header = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(metadata.name), interop)); + header.loc = metadata.loc; + headers.push(header); + } + } + headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); + } + (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); + path.unshiftContainer("body", headers); + injectWrapper(path, buildWrapper({ + MODULE_NAME: moduleName, + AMD_ARGUMENTS: _core.types.arrayExpression(amdArgs), + IMPORT_NAMES: importNames + })); + } + } + } + }; +}); -//# sourceMappingURL=createTSUnionType.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 43348: +/***/ 5465: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130127,24 +69089,23 @@ function createTSUnionType(typeAnnotations) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = validateNode; -var _validate = __nccwpck_require__(6000); -var _ = __nccwpck_require__(89316); -function validateNode(node) { - const keys = _.BUILDER_KEYS[node.type]; - for (const key of keys) { - (0, _validate.default)(node, key, node[key]); - } - return node; +exports.transformDynamicImport = transformDynamicImport; +var _core = __nccwpck_require__(65258); +var _helperModuleTransforms = __nccwpck_require__(1642); +const requireNoInterop = source => _core.template.expression.ast`require(${source})`; +const requireInterop = (source, file) => _core.types.callExpression(file.addHelper("interopRequireWildcard"), [requireNoInterop(source)]); +function transformDynamicImport(path, noInterop, file) { + const buildRequire = noInterop ? requireNoInterop : requireInterop; + path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, true, false, specifier => buildRequire(specifier, file))); } -//# sourceMappingURL=validateNode.js.map +//# sourceMappingURL=dynamic-import.js.map /***/ }), -/***/ 38254: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 87213: +/***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -130152,18 +69113,43 @@ function validateNode(node) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = clone; -var _cloneNode = __nccwpck_require__(17151); -function clone(node) { - return (0, _cloneNode.default)(node, false); +exports.defineCommonJSHook = defineCommonJSHook; +exports.makeInvokers = makeInvokers; +const commonJSHooksKey = "@babel/plugin-transform-modules-commonjs/customWrapperPlugin"; +function defineCommonJSHook(file, hook) { + let hooks = file.get(commonJSHooksKey); + if (!hooks) file.set(commonJSHooksKey, hooks = []); + hooks.push(hook); +} +function findMap(arr, cb) { + if (arr) { + for (const el of arr) { + const res = cb(el); + if (res != null) return res; + } + } +} +function makeInvokers(file) { + const hooks = file.get(commonJSHooksKey); + return { + getWrapperPayload(...args) { + return findMap(hooks, hook => hook.getWrapperPayload == null ? void 0 : hook.getWrapperPayload(...args)); + }, + wrapReference(...args) { + return findMap(hooks, hook => hook.wrapReference == null ? void 0 : hook.wrapReference(...args)); + }, + buildRequireWrapper(...args) { + return findMap(hooks, hook => hook.buildRequireWrapper == null ? void 0 : hook.buildRequireWrapper(...args)); + } + }; } -//# sourceMappingURL=clone.js.map +//# sourceMappingURL=hooks.js.map /***/ }), -/***/ 79743: +/***/ 17146: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130172,18 +69158,203 @@ function clone(node) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = cloneDeep; -var _cloneNode = __nccwpck_require__(17151); -function cloneDeep(node) { - return (0, _cloneNode.default)(node); -} +exports["default"] = void 0; +Object.defineProperty(exports, "defineCommonJSHook", ({ + enumerable: true, + get: function () { + return _hooks.defineCommonJSHook; + } +})); +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperModuleTransforms = __nccwpck_require__(1642); +var _helperSimpleAccess = __nccwpck_require__(62469); +var _core = __nccwpck_require__(65258); +var _dynamicImport = __nccwpck_require__(5465); +var _lazy = __nccwpck_require__(39705); +var _hooks = __nccwpck_require__(87213); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2, _api$assumption3; + api.assertVersion(7); + const { + strictNamespace = false, + mjsStrictNamespace = strictNamespace, + allowTopLevelThis, + strict, + strictMode, + noInterop, + importInterop, + lazy = false, + allowCommonJSExports = true, + loose = false + } = options; + const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : loose; + const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : loose; + const noIncompleteNsImportDetection = (_api$assumption3 = api.assumption("noIncompleteNsImportDetection")) != null ? _api$assumption3 : false; + if (typeof lazy !== "boolean" && typeof lazy !== "function" && (!Array.isArray(lazy) || !lazy.every(item => typeof item === "string"))) { + throw new Error(`.lazy must be a boolean, array of strings, or a function`); + } + if (typeof strictNamespace !== "boolean") { + throw new Error(`.strictNamespace must be a boolean, or undefined`); + } + if (typeof mjsStrictNamespace !== "boolean") { + throw new Error(`.mjsStrictNamespace must be a boolean, or undefined`); + } + const getAssertion = localName => _core.template.expression.ast` + (function(){ + throw new Error( + "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." + + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + + "Babel config for this file."); + })() + `; + const moduleExportsVisitor = { + ReferencedIdentifier(path) { + const localName = path.node.name; + if (localName !== "module" && localName !== "exports") return; + const localBinding = path.scope.getBinding(localName); + const rootBinding = this.scope.getBinding(localName); + if (rootBinding !== localBinding || path.parentPath.isObjectProperty({ + value: path.node + }) && path.parentPath.parentPath.isObjectPattern() || path.parentPath.isAssignmentExpression({ + left: path.node + }) || path.isAssignmentExpression({ + left: path.node + })) { + return; + } + path.replaceWith(getAssertion(localName)); + }, + UpdateExpression(path) { + const arg = path.get("argument"); + if (!arg.isIdentifier()) return; + const localName = arg.node.name; + if (localName !== "module" && localName !== "exports") return; + const localBinding = path.scope.getBinding(localName); + const rootBinding = this.scope.getBinding(localName); + if (rootBinding !== localBinding) return; + path.replaceWith(_core.types.assignmentExpression(path.node.operator[0] + "=", arg.node, getAssertion(localName))); + }, + AssignmentExpression(path) { + const left = path.get("left"); + if (left.isIdentifier()) { + const localName = left.node.name; + if (localName !== "module" && localName !== "exports") return; + const localBinding = path.scope.getBinding(localName); + const rootBinding = this.scope.getBinding(localName); + if (rootBinding !== localBinding) return; + const right = path.get("right"); + right.replaceWith(_core.types.sequenceExpression([right.node, getAssertion(localName)])); + } else if (left.isPattern()) { + const ids = left.getOuterBindingIdentifiers(); + const localName = Object.keys(ids).filter(localName => { + if (localName !== "module" && localName !== "exports") return false; + return this.scope.getBinding(localName) === path.scope.getBinding(localName); + })[0]; + if (localName) { + const right = path.get("right"); + right.replaceWith(_core.types.sequenceExpression([right.node, getAssertion(localName)])); + } + } + } + }; + return { + name: "transform-modules-commonjs", + pre() { + this.file.set("@babel/plugin-transform-modules-*", "commonjs"); + if (lazy) (0, _hooks.defineCommonJSHook)(this.file, (0, _lazy.lazyImportsHook)(lazy)); + }, + visitor: { + ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path) { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return; + if (path.isCallExpression() && !_core.types.isImport(path.node.callee)) return; + let { + scope + } = path; + do { + scope.rename("require"); + } while (scope = scope.parent); + (0, _dynamicImport.transformDynamicImport)(path, noInterop, this.file); + }, + Program: { + exit(path, state) { + if (!(0, _helperModuleTransforms.isModule)(path)) return; + path.scope.rename("exports"); + path.scope.rename("module"); + path.scope.rename("require"); + path.scope.rename("__filename"); + path.scope.rename("__dirname"); + if (!allowCommonJSExports) { + { + (0, _helperSimpleAccess.default)(path, new Set(["module", "exports"]), false); + } + path.traverse(moduleExportsVisitor, { + scope: path.scope + }); + } + let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + if (moduleName) moduleName = _core.types.stringLiteral(moduleName); + const hooks = (0, _hooks.makeInvokers)(this.file); + const { + meta, + headers + } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { + exportName: "exports", + constantReexports, + enumerableModuleMeta, + strict, + strictMode, + allowTopLevelThis, + noInterop, + importInterop, + wrapReference: hooks.wrapReference, + getWrapperPayload: hooks.getWrapperPayload, + esNamespaceOnly: typeof state.filename === "string" && /\.mjs$/.test(state.filename) ? mjsStrictNamespace : strictNamespace, + noIncompleteNsImportDetection, + filename: this.file.opts.filename + }); + for (const [source, metadata] of meta.source) { + const loadExpr = _core.types.callExpression(_core.types.identifier("require"), [_core.types.stringLiteral(source)]); + let header; + if ((0, _helperModuleTransforms.isSideEffectImport)(metadata)) { + if (lazy && metadata.wrap === "function") { + throw new Error("Assertion failure"); + } + header = _core.types.expressionStatement(loadExpr); + } else { + var _header; + const init = (0, _helperModuleTransforms.wrapInterop)(path, loadExpr, metadata.interop) || loadExpr; + if (metadata.wrap) { + const res = hooks.buildRequireWrapper(metadata.name, init, metadata.wrap, metadata.referenced); + if (res === false) continue;else header = res; + } + (_header = header) != null ? _header : header = _core.template.statement.ast` + var ${metadata.name} = ${init}; + `; + } + header.loc = metadata.loc; + headers.push(header); + headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports, hooks.wrapReference)); + } + (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); + path.unshiftContainer("body", headers); + path.get("body").forEach(path => { + if (headers.indexOf(path.node) === -1) return; + if (path.isVariableDeclaration()) { + path.scope.registerDeclaration(path); + } + }); + } + } + } + }; +}); -//# sourceMappingURL=cloneDeep.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 97613: +/***/ 39705: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130192,18 +69363,50 @@ function cloneDeep(node) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = cloneDeepWithoutLoc; -var _cloneNode = __nccwpck_require__(17151); -function cloneDeepWithoutLoc(node) { - return (0, _cloneNode.default)(node, true, true); -} +exports.lazyImportsHook = void 0; +var _core = __nccwpck_require__(65258); +var _helperModuleTransforms = __nccwpck_require__(1642); +const lazyImportsHook = lazy => ({ + name: `${"@babel/plugin-transform-modules-commonjs"}/lazy`, + version: "7.23.3", + getWrapperPayload(source, metadata) { + if ((0, _helperModuleTransforms.isSideEffectImport)(metadata) || metadata.reexportAll) { + return null; + } + if (lazy === true) { + return /\./.test(source) ? null : "lazy/function"; + } + if (Array.isArray(lazy)) { + return lazy.indexOf(source) === -1 ? null : "lazy/function"; + } + if (typeof lazy === "function") { + return lazy(source) ? "lazy/function" : null; + } + }, + buildRequireWrapper(name, init, payload, referenced) { + if (payload === "lazy/function") { + if (!referenced) return false; + return _core.template.statement.ast` + function ${name}() { + const data = ${init}; + ${name} = function(){ return data; }; + return data; + } + `; + } + }, + wrapReference(ref, payload) { + if (payload === "lazy/function") return _core.types.callExpression(ref, []); + } +}); +exports.lazyImportsHook = lazyImportsHook; -//# sourceMappingURL=cloneDeepWithoutLoc.js.map +//# sourceMappingURL=lazy.js.map /***/ }), -/***/ 17151: +/***/ 89332: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130212,463 +69415,408 @@ function cloneDeepWithoutLoc(node) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = cloneNode; -var _definitions = __nccwpck_require__(59357); -var _generated = __nccwpck_require__(99451); -const has = Function.call.bind(Object.prototype.hasOwnProperty); -function cloneIfNode(obj, deep, withoutLoc, commentsCache) { - if (obj && typeof obj.type === "string") { - return cloneNodeInternal(obj, deep, withoutLoc, commentsCache); - } - return obj; -} -function cloneIfNodeOrArray(obj, deep, withoutLoc, commentsCache) { - if (Array.isArray(obj)) { - return obj.map(node => cloneIfNode(node, deep, withoutLoc, commentsCache)); +exports["default"] = void 0; +exports.getExportSpecifierName = getExportSpecifierName; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperHoistVariables = __nccwpck_require__(51194); +var _core = __nccwpck_require__(65258); +var _helperModuleTransforms = __nccwpck_require__(1642); +var _helperValidatorIdentifier = __nccwpck_require__(63442); +const buildTemplate = _core.template.statement(` + SYSTEM_REGISTER(MODULE_NAME, SOURCES, function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) { + "use strict"; + BEFORE_BODY; + return { + setters: SETTERS, + execute: EXECUTE, + }; + }); +`); +const buildExportAll = _core.template.statement(` + for (var KEY in TARGET) { + if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY]; } - return cloneIfNode(obj, deep, withoutLoc, commentsCache); -} -function cloneNode(node, deep = true, withoutLoc = false) { - return cloneNodeInternal(node, deep, withoutLoc, new Map()); -} -function cloneNodeInternal(node, deep = true, withoutLoc = false, commentsCache) { - if (!node) return node; - const { - type - } = node; - const newNode = { - type: node.type - }; - if ((0, _generated.isIdentifier)(node)) { - newNode.name = node.name; - if (has(node, "optional") && typeof node.optional === "boolean") { - newNode.optional = node.optional; - } - if (has(node, "typeAnnotation")) { - newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation; +`); +const MISSING_PLUGIN_WARNING = `\ +WARNING: Dynamic import() transformation must be enabled using the + @babel/plugin-transform-dynamic-import plugin. Babel 8 will + no longer transform import() without using that plugin. +`; +const MISSING_PLUGIN_ERROR = `\ +ERROR: Dynamic import() transformation must be enabled using the + @babel/plugin-transform-dynamic-import plugin. Babel 8 + no longer transforms import() without using that plugin. +`; +function getExportSpecifierName(node, stringSpecifiers) { + if (node.type === "Identifier") { + return node.name; + } else if (node.type === "StringLiteral") { + const stringValue = node.value; + if (!(0, _helperValidatorIdentifier.isIdentifierName)(stringValue)) { + stringSpecifiers.add(stringValue); } - } else if (!has(_definitions.NODE_FIELDS, type)) { - throw new Error(`Unknown node type: "${type}"`); + return stringValue; } else { - for (const field of Object.keys(_definitions.NODE_FIELDS[type])) { - if (has(node, field)) { - if (deep) { - newNode[field] = (0, _generated.isFile)(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache); - } else { - newNode[field] = node[field]; - } - } - } + throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${node.type}`); } - if (has(node, "loc")) { - if (withoutLoc) { - newNode.loc = null; +} +function constructExportCall(path, exportIdent, exportNames, exportValues, exportStarTarget, stringSpecifiers) { + const statements = []; + if (!exportStarTarget) { + if (exportNames.length === 1) { + statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.stringLiteral(exportNames[0]), exportValues[0]]))); } else { - newNode.loc = node.loc; + const objectProperties = []; + for (let i = 0; i < exportNames.length; i++) { + const exportName = exportNames[i]; + const exportValue = exportValues[i]; + objectProperties.push(_core.types.objectProperty(stringSpecifiers.has(exportName) ? _core.types.stringLiteral(exportName) : _core.types.identifier(exportName), exportValue)); + } + statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.objectExpression(objectProperties)]))); } + } else { + const exportObj = path.scope.generateUid("exportObj"); + statements.push(_core.types.variableDeclaration("var", [_core.types.variableDeclarator(_core.types.identifier(exportObj), _core.types.objectExpression([]))])); + statements.push(buildExportAll({ + KEY: path.scope.generateUidIdentifier("key"), + EXPORT_OBJ: _core.types.identifier(exportObj), + TARGET: exportStarTarget + })); + for (let i = 0; i < exportNames.length; i++) { + const exportName = exportNames[i]; + const exportValue = exportValues[i]; + statements.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.memberExpression(_core.types.identifier(exportObj), _core.types.identifier(exportName)), exportValue))); + } + statements.push(_core.types.expressionStatement(_core.types.callExpression(exportIdent, [_core.types.identifier(exportObj)]))); } - if (has(node, "leadingComments")) { - newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache); - } - if (has(node, "innerComments")) { - newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache); - } - if (has(node, "trailingComments")) { - newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache); - } - if (has(node, "extra")) { - newNode.extra = Object.assign({}, node.extra); - } - return newNode; + return statements; } -function maybeCloneComments(comments, deep, withoutLoc, commentsCache) { - if (!comments || !deep) { - return comments; - } - return comments.map(comment => { - const cache = commentsCache.get(comment); - if (cache) return cache; - const { - type, - value, - loc - } = comment; - const ret = { - type, - value, - loc - }; - if (withoutLoc) { - ret.loc = null; +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + const { + systemGlobal = "System", + allowTopLevelThis = false + } = options; + const reassignmentVisited = new WeakSet(); + const reassignmentVisitor = { + "AssignmentExpression|UpdateExpression"(path) { + if (reassignmentVisited.has(path.node)) return; + reassignmentVisited.add(path.node); + const arg = path.isAssignmentExpression() ? path.get("left") : path.get("argument"); + if (arg.isObjectPattern() || arg.isArrayPattern()) { + const exprs = [path.node]; + for (const name of Object.keys(arg.getBindingIdentifiers())) { + if (this.scope.getBinding(name) !== path.scope.getBinding(name)) { + return; + } + const exportedNames = this.exports[name]; + if (!exportedNames) continue; + for (const exportedName of exportedNames) { + exprs.push(this.buildCall(exportedName, _core.types.identifier(name)).expression); + } + } + path.replaceWith(_core.types.sequenceExpression(exprs)); + return; + } + if (!arg.isIdentifier()) return; + const name = arg.node.name; + if (this.scope.getBinding(name) !== path.scope.getBinding(name)) return; + const exportedNames = this.exports[name]; + if (!exportedNames) return; + let node = path.node; + const isPostUpdateExpression = _core.types.isUpdateExpression(node, { + prefix: false + }); + if (isPostUpdateExpression) { + node = _core.types.binaryExpression(node.operator[0], _core.types.unaryExpression("+", _core.types.cloneNode(node.argument)), _core.types.numericLiteral(1)); + } + for (const exportedName of exportedNames) { + node = this.buildCall(exportedName, node).expression; + } + if (isPostUpdateExpression) { + node = _core.types.sequenceExpression([node, path.node]); + } + path.replaceWith(node); } - commentsCache.set(comment, ret); - return ret; - }); -} - -//# sourceMappingURL=cloneNode.js.map - - -/***/ }), - -/***/ 75996: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = cloneWithoutLoc; -var _cloneNode = __nccwpck_require__(17151); -function cloneWithoutLoc(node) { - return (0, _cloneNode.default)(node, false, true); -} - -//# sourceMappingURL=cloneWithoutLoc.js.map - - -/***/ }), - -/***/ 15551: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = addComment; -var _addComments = __nccwpck_require__(47777); -function addComment(node, type, content, line) { - return (0, _addComments.default)(node, type, [{ - type: line ? "CommentLine" : "CommentBlock", - value: content - }]); -} - -//# sourceMappingURL=addComment.js.map - - -/***/ }), - -/***/ 47777: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = addComments; -function addComments(node, type, comments) { - if (!comments || !node) return node; - const key = `${type}Comments`; - if (node[key]) { - if (type === "leading") { - node[key] = comments.concat(node[key]); - } else { - node[key].push(...comments); + }; + return { + name: "transform-modules-systemjs", + pre() { + this.file.set("@babel/plugin-transform-modules-*", "systemjs"); + }, + visitor: { + ["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path, state) { + if (path.isCallExpression() && !_core.types.isImport(path.node.callee)) return; + if (path.isCallExpression()) { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) { + { + console.warn(MISSING_PLUGIN_WARNING); + } + } + } else { + if (!this.file.has("@babel/plugin-proposal-dynamic-import")) { + throw new Error(MISSING_PLUGIN_ERROR); + } + } + path.replaceWith((0, _helperModuleTransforms.buildDynamicImport)(path.node, false, true, specifier => _core.types.callExpression(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("import")), [specifier]))); + }, + MetaProperty(path, state) { + if (path.node.meta.name === "import" && path.node.property.name === "meta") { + path.replaceWith(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("meta"))); + } + }, + ReferencedIdentifier(path, state) { + if (path.node.name === "__moduleName" && !path.scope.hasBinding("__moduleName")) { + path.replaceWith(_core.types.memberExpression(_core.types.identifier(state.contextIdent), _core.types.identifier("id"))); + } + }, + Program: { + enter(path, state) { + state.contextIdent = path.scope.generateUid("context"); + state.stringSpecifiers = new Set(); + if (!allowTopLevelThis) { + (0, _helperModuleTransforms.rewriteThis)(path); + } + }, + exit(path, state) { + const scope = path.scope; + const exportIdent = scope.generateUid("export"); + const { + contextIdent, + stringSpecifiers + } = state; + const exportMap = Object.create(null); + const modules = []; + const beforeBody = []; + const setters = []; + const sources = []; + const variableIds = []; + const removedPaths = []; + function addExportName(key, val) { + exportMap[key] = exportMap[key] || []; + exportMap[key].push(val); + } + function pushModule(source, key, specifiers) { + let module; + modules.forEach(function (m) { + if (m.key === source) { + module = m; + } + }); + if (!module) { + modules.push(module = { + key: source, + imports: [], + exports: [] + }); + } + module[key] = module[key].concat(specifiers); + } + function buildExportCall(name, val) { + return _core.types.expressionStatement(_core.types.callExpression(_core.types.identifier(exportIdent), [_core.types.stringLiteral(name), val])); + } + const exportNames = []; + const exportValues = []; + const body = path.get("body"); + for (const path of body) { + if (path.isFunctionDeclaration()) { + beforeBody.push(path.node); + removedPaths.push(path); + } else if (path.isClassDeclaration()) { + variableIds.push(_core.types.cloneNode(path.node.id)); + path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(path.node.id), _core.types.toExpression(path.node)))); + } else if (path.isVariableDeclaration()) { + path.node.kind = "var"; + } else if (path.isImportDeclaration()) { + const source = path.node.source.value; + pushModule(source, "imports", path.node.specifiers); + for (const name of Object.keys(path.getBindingIdentifiers())) { + scope.removeBinding(name); + variableIds.push(_core.types.identifier(name)); + } + path.remove(); + } else if (path.isExportAllDeclaration()) { + pushModule(path.node.source.value, "exports", path.node); + path.remove(); + } else if (path.isExportDefaultDeclaration()) { + const declar = path.node.declaration; + if (_core.types.isClassDeclaration(declar)) { + const id = declar.id; + if (id) { + exportNames.push("default"); + exportValues.push(scope.buildUndefinedNode()); + variableIds.push(_core.types.cloneNode(id)); + addExportName(id.name, "default"); + path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(id), _core.types.toExpression(declar)))); + } else { + exportNames.push("default"); + exportValues.push(_core.types.toExpression(declar)); + removedPaths.push(path); + } + } else if (_core.types.isFunctionDeclaration(declar)) { + const id = declar.id; + if (id) { + beforeBody.push(declar); + exportNames.push("default"); + exportValues.push(_core.types.cloneNode(id)); + addExportName(id.name, "default"); + } else { + exportNames.push("default"); + exportValues.push(_core.types.toExpression(declar)); + } + removedPaths.push(path); + } else { + path.replaceWith(buildExportCall("default", declar)); + } + } else if (path.isExportNamedDeclaration()) { + const declar = path.node.declaration; + if (declar) { + path.replaceWith(declar); + if (_core.types.isFunction(declar)) { + const name = declar.id.name; + addExportName(name, name); + beforeBody.push(declar); + exportNames.push(name); + exportValues.push(_core.types.cloneNode(declar.id)); + removedPaths.push(path); + } else if (_core.types.isClass(declar)) { + const name = declar.id.name; + exportNames.push(name); + exportValues.push(scope.buildUndefinedNode()); + variableIds.push(_core.types.cloneNode(declar.id)); + path.replaceWith(_core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.cloneNode(declar.id), _core.types.toExpression(declar)))); + addExportName(name, name); + } else { + if (_core.types.isVariableDeclaration(declar)) { + declar.kind = "var"; + } + for (const name of Object.keys(_core.types.getBindingIdentifiers(declar))) { + addExportName(name, name); + } + } + } else { + const specifiers = path.node.specifiers; + if (specifiers != null && specifiers.length) { + if (path.node.source) { + pushModule(path.node.source.value, "exports", specifiers); + path.remove(); + } else { + const nodes = []; + for (const specifier of specifiers) { + const { + local, + exported + } = specifier; + const binding = scope.getBinding(local.name); + const exportedName = getExportSpecifierName(exported, stringSpecifiers); + if (binding && _core.types.isFunctionDeclaration(binding.path.node)) { + exportNames.push(exportedName); + exportValues.push(_core.types.cloneNode(local)); + } else if (!binding) { + nodes.push(buildExportCall(exportedName, local)); + } + addExportName(local.name, exportedName); + } + path.replaceWithMultiple(nodes); + } + } else { + path.remove(); + } + } + } + } + modules.forEach(function (specifiers) { + const setterBody = []; + const target = scope.generateUid(specifiers.key); + for (let specifier of specifiers.imports) { + if (_core.types.isImportNamespaceSpecifier(specifier)) { + setterBody.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", specifier.local, _core.types.identifier(target)))); + } else if (_core.types.isImportDefaultSpecifier(specifier)) { + specifier = _core.types.importSpecifier(specifier.local, _core.types.identifier("default")); + } + if (_core.types.isImportSpecifier(specifier)) { + const { + imported + } = specifier; + setterBody.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", specifier.local, _core.types.memberExpression(_core.types.identifier(target), specifier.imported, imported.type === "StringLiteral")))); + } + } + if (specifiers.exports.length) { + const exportNames = []; + const exportValues = []; + let hasExportStar = false; + for (const node of specifiers.exports) { + if (_core.types.isExportAllDeclaration(node)) { + hasExportStar = true; + } else if (_core.types.isExportSpecifier(node)) { + const exportedName = getExportSpecifierName(node.exported, stringSpecifiers); + exportNames.push(exportedName); + exportValues.push(_core.types.memberExpression(_core.types.identifier(target), node.local, _core.types.isStringLiteral(node.local))); + } else {} + } + setterBody.push(...constructExportCall(path, _core.types.identifier(exportIdent), exportNames, exportValues, hasExportStar ? _core.types.identifier(target) : null, stringSpecifiers)); + } + sources.push(_core.types.stringLiteral(specifiers.key)); + setters.push(_core.types.functionExpression(null, [_core.types.identifier(target)], _core.types.blockStatement(setterBody))); + }); + let moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + if (moduleName) moduleName = _core.types.stringLiteral(moduleName); + (0, _helperHoistVariables.default)(path, (id, name, hasInit) => { + variableIds.push(id); + if (!hasInit && name in exportMap) { + for (const exported of exportMap[name]) { + exportNames.push(exported); + exportValues.push(scope.buildUndefinedNode()); + } + } + }); + if (variableIds.length) { + beforeBody.unshift(_core.types.variableDeclaration("var", variableIds.map(id => _core.types.variableDeclarator(id)))); + } + if (exportNames.length) { + beforeBody.push(...constructExportCall(path, _core.types.identifier(exportIdent), exportNames, exportValues, null, stringSpecifiers)); + } + path.traverse(reassignmentVisitor, { + exports: exportMap, + buildCall: buildExportCall, + scope + }); + for (const path of removedPaths) { + path.remove(); + } + let hasTLA = false; + path.traverse({ + AwaitExpression(path) { + hasTLA = true; + path.stop(); + }, + Function(path) { + path.skip(); + }, + noScope: true + }); + path.node.body = [buildTemplate({ + SYSTEM_REGISTER: _core.types.memberExpression(_core.types.identifier(systemGlobal), _core.types.identifier("register")), + BEFORE_BODY: beforeBody, + MODULE_NAME: moduleName, + SETTERS: _core.types.arrayExpression(setters), + EXECUTE: _core.types.functionExpression(null, [], _core.types.blockStatement(path.node.body), false, hasTLA), + SOURCES: _core.types.arrayExpression(sources), + EXPORT_IDENTIFIER: _core.types.identifier(exportIdent), + CONTEXT_IDENTIFIER: _core.types.identifier(contextIdent) + })]; + } + } } - } else { - node[key] = comments; - } - return node; -} - -//# sourceMappingURL=addComments.js.map - - -/***/ }), - -/***/ 11824: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = inheritInnerComments; -var _inherit = __nccwpck_require__(59857); -function inheritInnerComments(child, parent) { - (0, _inherit.default)("innerComments", child, parent); -} - -//# sourceMappingURL=inheritInnerComments.js.map - - -/***/ }), - -/***/ 49434: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = inheritLeadingComments; -var _inherit = __nccwpck_require__(59857); -function inheritLeadingComments(child, parent) { - (0, _inherit.default)("leadingComments", child, parent); -} - -//# sourceMappingURL=inheritLeadingComments.js.map - - -/***/ }), - -/***/ 57753: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = inheritTrailingComments; -var _inherit = __nccwpck_require__(59857); -function inheritTrailingComments(child, parent) { - (0, _inherit.default)("trailingComments", child, parent); -} - -//# sourceMappingURL=inheritTrailingComments.js.map - - -/***/ }), - -/***/ 16373: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = inheritsComments; -var _inheritTrailingComments = __nccwpck_require__(57753); -var _inheritLeadingComments = __nccwpck_require__(49434); -var _inheritInnerComments = __nccwpck_require__(11824); -function inheritsComments(child, parent) { - (0, _inheritTrailingComments.default)(child, parent); - (0, _inheritLeadingComments.default)(child, parent); - (0, _inheritInnerComments.default)(child, parent); - return child; -} - -//# sourceMappingURL=inheritsComments.js.map - - -/***/ }), - -/***/ 22731: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = removeComments; -var _constants = __nccwpck_require__(49384); -function removeComments(node) { - _constants.COMMENT_KEYS.forEach(key => { - node[key] = null; - }); - return node; -} - -//# sourceMappingURL=removeComments.js.map - - -/***/ }), - -/***/ 21502: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.WHILE_TYPES = exports.USERWHITESPACABLE_TYPES = exports.UNARYLIKE_TYPES = exports.TYPESCRIPT_TYPES = exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.TSENTITYNAME_TYPES = exports.TSBASETYPE_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.STANDARDIZED_TYPES = exports.SCOPABLE_TYPES = exports.PUREISH_TYPES = exports.PROPERTY_TYPES = exports.PRIVATE_TYPES = exports.PATTERN_TYPES = exports.PATTERNLIKE_TYPES = exports.OBJECTMEMBER_TYPES = exports.MODULESPECIFIER_TYPES = exports.MODULEDECLARATION_TYPES = exports.MISCELLANEOUS_TYPES = exports.METHOD_TYPES = exports.LVAL_TYPES = exports.LOOP_TYPES = exports.LITERAL_TYPES = exports.JSX_TYPES = exports.IMPORTOREXPORTDECLARATION_TYPES = exports.IMMUTABLE_TYPES = exports.FUNCTION_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FOR_TYPES = exports.FORXSTATEMENT_TYPES = exports.FLOW_TYPES = exports.FLOWTYPE_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.EXPRESSION_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.ENUMMEMBER_TYPES = exports.ENUMBODY_TYPES = exports.DECLARATION_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.CLASS_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.BINARY_TYPES = exports.ACCESSOR_TYPES = void 0; -var _definitions = __nccwpck_require__(59357); -const STANDARDIZED_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Standardized"]; -exports.STANDARDIZED_TYPES = STANDARDIZED_TYPES; -const EXPRESSION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Expression"]; -exports.EXPRESSION_TYPES = EXPRESSION_TYPES; -const BINARY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Binary"]; -exports.BINARY_TYPES = BINARY_TYPES; -const SCOPABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Scopable"]; -exports.SCOPABLE_TYPES = SCOPABLE_TYPES; -const BLOCKPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["BlockParent"]; -exports.BLOCKPARENT_TYPES = BLOCKPARENT_TYPES; -const BLOCK_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Block"]; -exports.BLOCK_TYPES = BLOCK_TYPES; -const STATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Statement"]; -exports.STATEMENT_TYPES = STATEMENT_TYPES; -const TERMINATORLESS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Terminatorless"]; -exports.TERMINATORLESS_TYPES = TERMINATORLESS_TYPES; -const COMPLETIONSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["CompletionStatement"]; -exports.COMPLETIONSTATEMENT_TYPES = COMPLETIONSTATEMENT_TYPES; -const CONDITIONAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Conditional"]; -exports.CONDITIONAL_TYPES = CONDITIONAL_TYPES; -const LOOP_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Loop"]; -exports.LOOP_TYPES = LOOP_TYPES; -const WHILE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["While"]; -exports.WHILE_TYPES = WHILE_TYPES; -const EXPRESSIONWRAPPER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExpressionWrapper"]; -exports.EXPRESSIONWRAPPER_TYPES = EXPRESSIONWRAPPER_TYPES; -const FOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["For"]; -exports.FOR_TYPES = FOR_TYPES; -const FORXSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ForXStatement"]; -exports.FORXSTATEMENT_TYPES = FORXSTATEMENT_TYPES; -const FUNCTION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Function"]; -exports.FUNCTION_TYPES = FUNCTION_TYPES; -const FUNCTIONPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FunctionParent"]; -exports.FUNCTIONPARENT_TYPES = FUNCTIONPARENT_TYPES; -const PUREISH_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pureish"]; -exports.PUREISH_TYPES = PUREISH_TYPES; -const DECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Declaration"]; -exports.DECLARATION_TYPES = DECLARATION_TYPES; -const PATTERNLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["PatternLike"]; -exports.PATTERNLIKE_TYPES = PATTERNLIKE_TYPES; -const LVAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["LVal"]; -exports.LVAL_TYPES = LVAL_TYPES; -const TSENTITYNAME_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSEntityName"]; -exports.TSENTITYNAME_TYPES = TSENTITYNAME_TYPES; -const LITERAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Literal"]; -exports.LITERAL_TYPES = LITERAL_TYPES; -const IMMUTABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Immutable"]; -exports.IMMUTABLE_TYPES = IMMUTABLE_TYPES; -const USERWHITESPACABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UserWhitespacable"]; -exports.USERWHITESPACABLE_TYPES = USERWHITESPACABLE_TYPES; -const METHOD_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Method"]; -exports.METHOD_TYPES = METHOD_TYPES; -const OBJECTMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ObjectMember"]; -exports.OBJECTMEMBER_TYPES = OBJECTMEMBER_TYPES; -const PROPERTY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Property"]; -exports.PROPERTY_TYPES = PROPERTY_TYPES; -const UNARYLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UnaryLike"]; -exports.UNARYLIKE_TYPES = UNARYLIKE_TYPES; -const PATTERN_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pattern"]; -exports.PATTERN_TYPES = PATTERN_TYPES; -const CLASS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Class"]; -exports.CLASS_TYPES = CLASS_TYPES; -const IMPORTOREXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"]; -exports.IMPORTOREXPORTDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES; -const EXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExportDeclaration"]; -exports.EXPORTDECLARATION_TYPES = EXPORTDECLARATION_TYPES; -const MODULESPECIFIER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleSpecifier"]; -exports.MODULESPECIFIER_TYPES = MODULESPECIFIER_TYPES; -const ACCESSOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Accessor"]; -exports.ACCESSOR_TYPES = ACCESSOR_TYPES; -const PRIVATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Private"]; -exports.PRIVATE_TYPES = PRIVATE_TYPES; -const FLOW_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Flow"]; -exports.FLOW_TYPES = FLOW_TYPES; -const FLOWTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowType"]; -exports.FLOWTYPE_TYPES = FLOWTYPE_TYPES; -const FLOWBASEANNOTATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"]; -exports.FLOWBASEANNOTATION_TYPES = FLOWBASEANNOTATION_TYPES; -const FLOWDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowDeclaration"]; -exports.FLOWDECLARATION_TYPES = FLOWDECLARATION_TYPES; -const FLOWPREDICATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowPredicate"]; -exports.FLOWPREDICATE_TYPES = FLOWPREDICATE_TYPES; -const ENUMBODY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["EnumBody"]; -exports.ENUMBODY_TYPES = ENUMBODY_TYPES; -const ENUMMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["EnumMember"]; -exports.ENUMMEMBER_TYPES = ENUMMEMBER_TYPES; -const JSX_TYPES = _definitions.FLIPPED_ALIAS_KEYS["JSX"]; -exports.JSX_TYPES = JSX_TYPES; -const MISCELLANEOUS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Miscellaneous"]; -exports.MISCELLANEOUS_TYPES = MISCELLANEOUS_TYPES; -const TYPESCRIPT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TypeScript"]; -exports.TYPESCRIPT_TYPES = TYPESCRIPT_TYPES; -const TSTYPEELEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSTypeElement"]; -exports.TSTYPEELEMENT_TYPES = TSTYPEELEMENT_TYPES; -const TSTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSType"]; -exports.TSTYPE_TYPES = TSTYPE_TYPES; -const TSBASETYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSBaseType"]; -exports.TSBASETYPE_TYPES = TSBASETYPE_TYPES; -const MODULEDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES; -exports.MODULEDECLARATION_TYPES = MODULEDECLARATION_TYPES; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 49384: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.UPDATE_OPERATORS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.STATEMENT_OR_BLOCK_KEYS = exports.NUMBER_UNARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.NOT_LOCAL_BINDING = exports.LOGICAL_OPERATORS = exports.INHERIT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.EQUALITY_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.COMMENT_KEYS = exports.BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.BLOCK_SCOPED_SYMBOL = exports.BINARY_OPERATORS = exports.ASSIGNMENT_OPERATORS = void 0; -const STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"]; -exports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS; -const FLATTENABLE_KEYS = ["body", "expressions"]; -exports.FLATTENABLE_KEYS = FLATTENABLE_KEYS; -const FOR_INIT_KEYS = ["left", "init"]; -exports.FOR_INIT_KEYS = FOR_INIT_KEYS; -const COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"]; -exports.COMMENT_KEYS = COMMENT_KEYS; -const LOGICAL_OPERATORS = ["||", "&&", "??"]; -exports.LOGICAL_OPERATORS = LOGICAL_OPERATORS; -const UPDATE_OPERATORS = ["++", "--"]; -exports.UPDATE_OPERATORS = UPDATE_OPERATORS; -const BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="]; -exports.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS; -const EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="]; -exports.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS; -const COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"]; -exports.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS; -const BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS]; -exports.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS; -const NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"]; -exports.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS; -const BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS, "|>"]; -exports.BINARY_OPERATORS = BINARY_OPERATORS; -const ASSIGNMENT_OPERATORS = ["=", "+=", ...NUMBER_BINARY_OPERATORS.map(op => op + "="), ...LOGICAL_OPERATORS.map(op => op + "=")]; -exports.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS; -const BOOLEAN_UNARY_OPERATORS = ["delete", "!"]; -exports.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS; -const NUMBER_UNARY_OPERATORS = ["+", "-", "~"]; -exports.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS; -const STRING_UNARY_OPERATORS = ["typeof"]; -exports.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS; -const UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS]; -exports.UNARY_OPERATORS = UNARY_OPERATORS; -const INHERIT_KEYS = { - optional: ["typeAnnotation", "typeParameters", "returnType"], - force: ["start", "loc", "end"] -}; -exports.INHERIT_KEYS = INHERIT_KEYS; -const BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"); -exports.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL; -const NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding"); -exports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING; + }; +}); //# sourceMappingURL=index.js.map /***/ }), -/***/ 33843: +/***/ 47417: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130677,92 +69825,162 @@ exports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = ensureBlock; -var _toBlock = __nccwpck_require__(23873); -function ensureBlock(node, key = "body") { - const result = (0, _toBlock.default)(node[key], node); - node[key] = result; - return result; -} - -//# sourceMappingURL=ensureBlock.js.map - - -/***/ }), - -/***/ 30409: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _path = __nccwpck_require__(71017); +var _helperModuleTransforms = __nccwpck_require__(1642); +var _core = __nccwpck_require__(65258); +const buildPrerequisiteAssignment = (0, _core.template)(` + GLOBAL_REFERENCE = GLOBAL_REFERENCE || {} +`); +const buildWrapper = (0, _core.template)(` + (function (global, factory) { + if (typeof define === "function" && define.amd) { + define(MODULE_NAME, AMD_ARGUMENTS, factory); + } else if (typeof exports !== "undefined") { + factory(COMMONJS_ARGUMENTS); + } else { + var mod = { exports: {} }; + factory(BROWSER_ARGUMENTS); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = gatherSequenceExpressions; -var _getBindingIdentifiers = __nccwpck_require__(9853); -var _generated = __nccwpck_require__(99451); -var _generated2 = __nccwpck_require__(54230); -var _cloneNode = __nccwpck_require__(17151); -function gatherSequenceExpressions(nodes, scope, declars) { - const exprs = []; - let ensureLastUndefined = true; - for (const node of nodes) { - if (!(0, _generated.isEmptyStatement)(node)) { - ensureLastUndefined = false; + GLOBAL_TO_ASSIGN; } - if ((0, _generated.isExpression)(node)) { - exprs.push(node); - } else if ((0, _generated.isExpressionStatement)(node)) { - exprs.push(node.expression); - } else if ((0, _generated.isVariableDeclaration)(node)) { - if (node.kind !== "var") return; - for (const declar of node.declarations) { - const bindings = (0, _getBindingIdentifiers.default)(declar); - for (const key of Object.keys(bindings)) { - declars.push({ - kind: node.kind, - id: (0, _cloneNode.default)(bindings[key]) - }); - } - if (declar.init) { - exprs.push((0, _generated2.assignmentExpression)("=", declar.id, declar.init)); - } + })( + typeof globalThis !== "undefined" ? globalThis + : typeof self !== "undefined" ? self + : this, + function(IMPORT_NAMES) { + }) +`); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const { + globals, + exactGlobals, + allowTopLevelThis, + strict, + strictMode, + noInterop, + importInterop + } = options; + const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose; + const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose; + function buildBrowserInit(browserGlobals, exactGlobals, filename, moduleName) { + const moduleNameOrBasename = moduleName ? moduleName.value : (0, _path.basename)(filename, (0, _path.extname)(filename)); + let globalToAssign = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(moduleNameOrBasename))); + let initAssignments = []; + if (exactGlobals) { + const globalName = browserGlobals[moduleNameOrBasename]; + if (globalName) { + initAssignments = []; + const members = globalName.split("."); + globalToAssign = members.slice(1).reduce((accum, curr) => { + initAssignments.push(buildPrerequisiteAssignment({ + GLOBAL_REFERENCE: _core.types.cloneNode(accum) + })); + return _core.types.memberExpression(accum, _core.types.identifier(curr)); + }, _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(members[0]))); } - ensureLastUndefined = true; - } else if ((0, _generated.isIfStatement)(node)) { - const consequent = node.consequent ? gatherSequenceExpressions([node.consequent], scope, declars) : scope.buildUndefinedNode(); - const alternate = node.alternate ? gatherSequenceExpressions([node.alternate], scope, declars) : scope.buildUndefinedNode(); - if (!consequent || !alternate) return; - exprs.push((0, _generated2.conditionalExpression)(node.test, consequent, alternate)); - } else if ((0, _generated.isBlockStatement)(node)) { - const body = gatherSequenceExpressions(node.body, scope, declars); - if (!body) return; - exprs.push(body); - } else if ((0, _generated.isEmptyStatement)(node)) { - if (nodes.indexOf(node) === 0) { - ensureLastUndefined = true; + } + initAssignments.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", globalToAssign, _core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports"))))); + return initAssignments; + } + function buildBrowserArg(browserGlobals, exactGlobals, source) { + let memberExpression; + if (exactGlobals) { + const globalRef = browserGlobals[source]; + if (globalRef) { + memberExpression = globalRef.split(".").reduce((accum, curr) => _core.types.memberExpression(accum, _core.types.identifier(curr)), _core.types.identifier("global")); + } else { + memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(source))); } } else { - return; + const requireName = (0, _path.basename)(source, (0, _path.extname)(source)); + const globalName = browserGlobals[requireName] || requireName; + memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(globalName))); } + return memberExpression; } - if (ensureLastUndefined) { - exprs.push(scope.buildUndefinedNode()); - } - if (exprs.length === 1) { - return exprs[0]; - } else { - return (0, _generated2.sequenceExpression)(exprs); - } -} + return { + name: "transform-modules-umd", + visitor: { + Program: { + exit(path) { + if (!(0, _helperModuleTransforms.isModule)(path)) return; + const browserGlobals = globals || {}; + const moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options); + let moduleNameLiteral; + if (moduleName) moduleNameLiteral = _core.types.stringLiteral(moduleName); + const { + meta, + headers + } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, { + constantReexports, + enumerableModuleMeta, + strict, + strictMode, + allowTopLevelThis, + noInterop, + importInterop, + filename: this.file.opts.filename + }); + const amdArgs = []; + const commonjsArgs = []; + const browserArgs = []; + const importNames = []; + if ((0, _helperModuleTransforms.hasExports)(meta)) { + amdArgs.push(_core.types.stringLiteral("exports")); + commonjsArgs.push(_core.types.identifier("exports")); + browserArgs.push(_core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports"))); + importNames.push(_core.types.identifier(meta.exportName)); + } + for (const [source, metadata] of meta.source) { + amdArgs.push(_core.types.stringLiteral(source)); + commonjsArgs.push(_core.types.callExpression(_core.types.identifier("require"), [_core.types.stringLiteral(source)])); + browserArgs.push(buildBrowserArg(browserGlobals, exactGlobals, source)); + importNames.push(_core.types.identifier(metadata.name)); + if (!(0, _helperModuleTransforms.isSideEffectImport)(metadata)) { + const interop = (0, _helperModuleTransforms.wrapInterop)(path, _core.types.identifier(metadata.name), metadata.interop); + if (interop) { + const header = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(metadata.name), interop)); + header.loc = meta.loc; + headers.push(header); + } + } + headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); + } + (0, _helperModuleTransforms.ensureStatementsHoisted)(headers); + path.unshiftContainer("body", headers); + const { + body, + directives + } = path.node; + path.node.directives = []; + path.node.body = []; + const umdWrapper = path.pushContainer("body", [buildWrapper({ + MODULE_NAME: moduleNameLiteral, + AMD_ARGUMENTS: _core.types.arrayExpression(amdArgs), + COMMONJS_ARGUMENTS: commonjsArgs, + BROWSER_ARGUMENTS: browserArgs, + IMPORT_NAMES: importNames, + GLOBAL_TO_ASSIGN: buildBrowserInit(browserGlobals, exactGlobals, this.filename || "unknown", moduleNameLiteral) + })])[0]; + const umdFactory = umdWrapper.get("expression.arguments")[1].get("body"); + umdFactory.pushContainer("directives", directives); + umdFactory.pushContainer("body", body); + } + } + } + }; +}); -//# sourceMappingURL=gatherSequenceExpressions.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 98233: +/***/ 96625: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130771,20 +69989,32 @@ function gatherSequenceExpressions(nodes, scope, declars) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = toBindingIdentifierName; -var _toIdentifier = __nccwpck_require__(26759); -function toBindingIdentifierName(name) { - name = (0, _toIdentifier.default)(name); - if (name === "eval" || name === "arguments") name = "_" + name; - return name; -} +exports["default"] = void 0; +var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(63106); +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = (0, _helperPluginUtils.declare)((api, options) => { + const { + runtime + } = options; + if (runtime !== undefined && typeof runtime !== "boolean") { + throw new Error("The 'runtime' option must be boolean"); + } + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-named-capturing-groups-regex", + feature: "namedCaptureGroups", + options: { + runtime + } + }); +}); +exports["default"] = _default; -//# sourceMappingURL=toBindingIdentifierName.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 23873: +/***/ 3256: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130793,35 +70023,77 @@ function toBindingIdentifierName(name) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = toBlock; -var _generated = __nccwpck_require__(99451); -var _generated2 = __nccwpck_require__(54230); -function toBlock(node, parent) { - if ((0, _generated.isBlockStatement)(node)) { - return node; - } - let blockNodes = []; - if ((0, _generated.isEmptyStatement)(node)) { - blockNodes = []; - } else { - if (!(0, _generated.isStatement)(node)) { - if ((0, _generated.isFunction)(parent)) { - node = (0, _generated2.returnStatement)(node); - } else { - node = (0, _generated2.expressionStatement)(node); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-new-target", + visitor: { + MetaProperty(path) { + const meta = path.get("meta"); + const property = path.get("property"); + const { + scope + } = path; + if (meta.isIdentifier({ + name: "new" + }) && property.isIdentifier({ + name: "target" + })) { + const func = path.findParent(path => { + if (path.isClass()) return true; + if (path.isFunction() && !path.isArrowFunctionExpression()) { + if (path.isClassMethod({ + kind: "constructor" + })) { + return false; + } + return true; + } + return false; + }); + if (!func) { + throw path.buildCodeFrameError("new.target must be under a (non-arrow) function or a class."); + } + const { + node + } = func; + if (_core.types.isMethod(node)) { + path.replaceWith(scope.buildUndefinedNode()); + return; + } + const constructor = _core.types.memberExpression(_core.types.thisExpression(), _core.types.identifier("constructor")); + if (func.isClass()) { + path.replaceWith(constructor); + return; + } + if (!node.id) { + node.id = scope.generateUidIdentifier("target"); + } else { + let scope = path.scope; + const name = node.id.name; + while (scope !== func.parentPath.scope) { + if (scope.hasOwnBinding(name) && !scope.bindingIdentifierEquals(name, node.id)) { + scope.rename(name); + } + scope = scope.parent; + } + } + path.replaceWith(_core.types.conditionalExpression(_core.types.binaryExpression("instanceof", _core.types.thisExpression(), _core.types.cloneNode(node.id)), constructor, scope.buildUndefinedNode())); + } } } - blockNodes = [node]; - } - return (0, _generated2.blockStatement)(blockNodes); -} + }; +}); -//# sourceMappingURL=toBlock.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 65548: +/***/ 75810: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130830,20 +70102,54 @@ function toBlock(node, parent) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = toComputedKey; -var _generated = __nccwpck_require__(99451); -var _generated2 = __nccwpck_require__(54230); -function toComputedKey(node, key = node.key || node.property) { - if (!node.computed && (0, _generated.isIdentifier)(key)) key = (0, _generated2.stringLiteral)(key.name); - return key; -} +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, { + loose = false +}) => { + var _api$assumption; + api.assertVersion(7); + const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : loose; + return { + name: "transform-nullish-coalescing-operator", + inherits: (__nccwpck_require__(94339)["default"]), + visitor: { + LogicalExpression(path) { + const { + node, + scope + } = path; + if (node.operator !== "??") { + return; + } + let ref; + let assignment; + if (scope.isStatic(node.left)) { + ref = node.left; + assignment = _core.types.cloneNode(node.left); + } else if (scope.path.isPattern()) { + path.replaceWith(_core.template.statement.ast`(() => ${path.node})()`); + return; + } else { + ref = scope.generateUidIdentifierBasedOnNode(node.left); + scope.push({ + id: _core.types.cloneNode(ref) + }); + assignment = _core.types.assignmentExpression("=", ref, node.left); + } + path.replaceWith(_core.types.conditionalExpression(noDocumentAll ? _core.types.binaryExpression("!=", assignment, _core.types.nullLiteral()) : _core.types.logicalExpression("&&", _core.types.binaryExpression("!==", assignment, _core.types.nullLiteral()), _core.types.binaryExpression("!==", _core.types.cloneNode(ref), scope.buildUndefinedNode())), _core.types.cloneNode(ref), node.right)); + } + } + }; +}); -//# sourceMappingURL=toComputedKey.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 35036: +/***/ 73294: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130853,139 +70159,495 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _generated = __nccwpck_require__(99451); -var _default = toExpression; -exports["default"] = _default; -function toExpression(node) { - if ((0, _generated.isExpressionStatement)(node)) { - node = node.expression; - } - if ((0, _generated.isExpression)(node)) { - return node; - } - if ((0, _generated.isClass)(node)) { - node.type = "ClassExpression"; - } else if ((0, _generated.isFunction)(node)) { - node.type = "FunctionExpression"; - } - if (!(0, _generated.isExpression)(node)) { - throw new Error(`cannot turn ${node.type} to an expression`); +var _helperPluginUtils = __nccwpck_require__(36028); +function remover({ + node +}) { + var _extra$raw; + const { + extra + } = node; + if (extra != null && (_extra$raw = extra.raw) != null && _extra$raw.includes("_")) { + extra.raw = extra.raw.replace(/_/g, ""); } - return node; } +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-numeric-separator", + inherits: (__nccwpck_require__(40311)["default"]), + visitor: { + NumericLiteral: remover, + BigIntLiteral: remover + } + }; +}); -//# sourceMappingURL=toExpression.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 26759: +/***/ 23177: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = toIdentifier; -var _isValidIdentifier = __nccwpck_require__(42897); -var _helperValidatorIdentifier = __nccwpck_require__(21974); -function toIdentifier(input) { - input = input + ""; - let name = ""; - for (const c of input) { - name += (0, _helperValidatorIdentifier.isIdentifierChar)(c.codePointAt(0)) ? c : "-"; - } - name = name.replace(/^[-0-9]+/, ""); - name = name.replace(/[-\s]+(.)?/g, function (match, c) { - return c ? c.toUpperCase() : ""; - }); - if (!(0, _isValidIdentifier.default)(name)) { - name = `_${name}`; - } - return name || "_"; -} - -//# sourceMappingURL=toIdentifier.js.map - - -/***/ }), +Object.defineProperty(exports, "__esModule", ({ value: true })); -/***/ 86054: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +var helperPluginUtils = __nccwpck_require__(36028); +var core = __nccwpck_require__(65258); +var pluginTransformParameters = __nccwpck_require__(8046); +var helperCompilationTargets = __nccwpck_require__(91047); +var compatData = __nccwpck_require__(65838); -"use strict"; +function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } +var compatData__default = /*#__PURE__*/_interopDefault(compatData); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = toKeyAlias; -var _generated = __nccwpck_require__(99451); -var _cloneNode = __nccwpck_require__(17151); -var _removePropertiesDeep = __nccwpck_require__(36613); -function toKeyAlias(node, key = node.key) { - let alias; - if (node.kind === "method") { - return toKeyAlias.increment() + ""; - } else if ((0, _generated.isIdentifier)(key)) { - alias = key.name; - } else if ((0, _generated.isStringLiteral)(key)) { - alias = JSON.stringify(key.value); +const { + isObjectProperty: isObjectProperty$1, + isArrayPattern, + isObjectPattern, + isAssignmentPattern: isAssignmentPattern$1, + isRestElement, + isIdentifier +} = core.types; +function shouldStoreRHSInTemporaryVariable(node) { + if (isArrayPattern(node)) { + const nonNullElements = node.elements.filter(element => element !== null); + if (nonNullElements.length > 1) return true;else return shouldStoreRHSInTemporaryVariable(nonNullElements[0]); + } else if (isObjectPattern(node)) { + const { + properties + } = node; + if (properties.length > 1) return true;else if (properties.length === 0) return false;else { + const firstProperty = properties[0]; + if (isObjectProperty$1(firstProperty)) { + return shouldStoreRHSInTemporaryVariable(firstProperty.value); + } else { + return shouldStoreRHSInTemporaryVariable(firstProperty); + } + } + } else if (isAssignmentPattern$1(node)) { + return shouldStoreRHSInTemporaryVariable(node.left); + } else if (isRestElement(node)) { + if (isIdentifier(node.argument)) return true; + return shouldStoreRHSInTemporaryVariable(node.argument); } else { - alias = JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key))); + return false; } - if (node.computed) { - alias = `[${alias}]`; +} + +const { + isAssignmentPattern, + isObjectProperty +} = core.types; +{ + const node = core.types.identifier("a"); + const property = core.types.objectProperty(core.types.identifier("key"), node); + const pattern = core.types.objectPattern([property]); + var ZERO_REFS = core.types.isReferenced(node, property, pattern) ? 1 : 0; +} +var index = helperPluginUtils.declare((api, opts) => { + var _api$assumption, _api$assumption2, _api$assumption3, _api$assumption4; + api.assertVersion(7); + const targets = api.targets(); + const supportsObjectAssign = !helperCompilationTargets.isRequired("es6.object.assign", targets, { + compatData: compatData__default.default + }); + const { + useBuiltIns = supportsObjectAssign, + loose = false + } = opts; + if (typeof loose !== "boolean") { + throw new Error(".loose must be a boolean, or undefined"); } - if (node.static) { - alias = `static:${alias}`; + const ignoreFunctionLength = (_api$assumption = api.assumption("ignoreFunctionLength")) != null ? _api$assumption : loose; + const objectRestNoSymbols = (_api$assumption2 = api.assumption("objectRestNoSymbols")) != null ? _api$assumption2 : loose; + const pureGetters = (_api$assumption3 = api.assumption("pureGetters")) != null ? _api$assumption3 : loose; + const setSpreadProperties = (_api$assumption4 = api.assumption("setSpreadProperties")) != null ? _api$assumption4 : loose; + function getExtendsHelper(file) { + return useBuiltIns ? core.types.memberExpression(core.types.identifier("Object"), core.types.identifier("assign")) : file.addHelper("extends"); } - return alias; -} -toKeyAlias.uid = 0; -toKeyAlias.increment = function () { - if (toKeyAlias.uid >= Number.MAX_SAFE_INTEGER) { - return toKeyAlias.uid = 0; - } else { - return toKeyAlias.uid++; + function hasRestElement(path) { + let foundRestElement = false; + visitRestElements(path, restElement => { + foundRestElement = true; + restElement.stop(); + }); + return foundRestElement; } -}; - -//# sourceMappingURL=toKeyAlias.js.map - - -/***/ }), - -/***/ 3231: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = toSequenceExpression; -var _gatherSequenceExpressions = __nccwpck_require__(30409); -function toSequenceExpression(nodes, scope) { - if (!(nodes != null && nodes.length)) return; - const declars = []; - const result = (0, _gatherSequenceExpressions.default)(nodes, scope, declars); - if (!result) return; - for (const declar of declars) { - scope.push(declar); + function hasObjectPatternRestElement(path) { + let foundRestElement = false; + visitRestElements(path, restElement => { + if (restElement.parentPath.isObjectPattern()) { + foundRestElement = true; + restElement.stop(); + } + }); + return foundRestElement; } - return result; -} + function visitRestElements(path, visitor) { + path.traverse({ + Expression(path) { + const { + parent, + key + } = path; + if (isAssignmentPattern(parent) && key === "right" || isObjectProperty(parent) && parent.computed && key === "key") { + path.skip(); + } + }, + RestElement: visitor + }); + } + function hasSpread(node) { + for (const prop of node.properties) { + if (core.types.isSpreadElement(prop)) { + return true; + } + } + return false; + } + function extractNormalizedKeys(node) { + const props = node.properties; + const keys = []; + let allLiteral = true; + let hasTemplateLiteral = false; + for (const prop of props) { + if (core.types.isIdentifier(prop.key) && !prop.computed) { + keys.push(core.types.stringLiteral(prop.key.name)); + } else if (core.types.isTemplateLiteral(prop.key)) { + keys.push(core.types.cloneNode(prop.key)); + hasTemplateLiteral = true; + } else if (core.types.isLiteral(prop.key)) { + keys.push(core.types.stringLiteral(String(prop.key.value))); + } else { + keys.push(core.types.cloneNode(prop.key)); + allLiteral = false; + } + } + return { + keys, + allLiteral, + hasTemplateLiteral + }; + } + function replaceImpureComputedKeys(properties, scope) { + const impureComputedPropertyDeclarators = []; + for (const propPath of properties) { + const key = propPath.get("key"); + if (propPath.node.computed && !key.isPure()) { + const name = scope.generateUidBasedOnNode(key.node); + const declarator = core.types.variableDeclarator(core.types.identifier(name), key.node); + impureComputedPropertyDeclarators.push(declarator); + key.replaceWith(core.types.identifier(name)); + } + } + return impureComputedPropertyDeclarators; + } + function removeUnusedExcludedKeys(path) { + const bindings = path.getOuterBindingIdentifierPaths(); + Object.keys(bindings).forEach(bindingName => { + const bindingParentPath = bindings[bindingName].parentPath; + if (path.scope.getBinding(bindingName).references > ZERO_REFS || !bindingParentPath.isObjectProperty()) { + return; + } + bindingParentPath.remove(); + }); + } + function createObjectRest(path, file, objRef) { + const props = path.get("properties"); + const last = props[props.length - 1]; + core.types.assertRestElement(last.node); + const restElement = core.types.cloneNode(last.node); + last.remove(); + const impureComputedPropertyDeclarators = replaceImpureComputedKeys(path.get("properties"), path.scope); + const { + keys, + allLiteral, + hasTemplateLiteral + } = extractNormalizedKeys(path.node); + if (keys.length === 0) { + return [impureComputedPropertyDeclarators, restElement.argument, core.types.callExpression(getExtendsHelper(file), [core.types.objectExpression([]), core.types.sequenceExpression([core.types.callExpression(file.addHelper("objectDestructuringEmpty"), [core.types.cloneNode(objRef)]), core.types.cloneNode(objRef)])])]; + } + let keyExpression; + if (!allLiteral) { + keyExpression = core.types.callExpression(core.types.memberExpression(core.types.arrayExpression(keys), core.types.identifier("map")), [file.addHelper("toPropertyKey")]); + } else { + keyExpression = core.types.arrayExpression(keys); + if (!hasTemplateLiteral && !core.types.isProgram(path.scope.block)) { + const program = path.findParent(path => path.isProgram()); + const id = path.scope.generateUidIdentifier("excluded"); + program.scope.push({ + id, + init: keyExpression, + kind: "const" + }); + keyExpression = core.types.cloneNode(id); + } + } + return [impureComputedPropertyDeclarators, restElement.argument, core.types.callExpression(file.addHelper(`objectWithoutProperties${objectRestNoSymbols ? "Loose" : ""}`), [core.types.cloneNode(objRef), keyExpression])]; + } + function replaceRestElement(parentPath, paramPath, container) { + if (paramPath.isAssignmentPattern()) { + replaceRestElement(parentPath, paramPath.get("left"), container); + return; + } + if (paramPath.isArrayPattern() && hasRestElement(paramPath)) { + const elements = paramPath.get("elements"); + for (let i = 0; i < elements.length; i++) { + replaceRestElement(parentPath, elements[i], container); + } + } + if (paramPath.isObjectPattern() && hasRestElement(paramPath)) { + const uid = parentPath.scope.generateUidIdentifier("ref"); + const declar = core.types.variableDeclaration("let", [core.types.variableDeclarator(paramPath.node, uid)]); + if (container) { + container.push(declar); + } else { + parentPath.ensureBlock(); + parentPath.get("body").unshiftContainer("body", declar); + } + paramPath.replaceWith(core.types.cloneNode(uid)); + } + } + return { + name: "transform-object-rest-spread", + inherits: (__nccwpck_require__(36156)["default"]), + visitor: { + Function(path) { + const params = path.get("params"); + const paramsWithRestElement = new Set(); + const idsInRestParams = new Set(); + for (let i = 0; i < params.length; ++i) { + const param = params[i]; + if (hasRestElement(param)) { + paramsWithRestElement.add(i); + for (const name of Object.keys(param.getBindingIdentifiers())) { + idsInRestParams.add(name); + } + } + } + let idInRest = false; + const IdentifierHandler = function (path, functionScope) { + const name = path.node.name; + if (path.scope.getBinding(name) === functionScope.getBinding(name) && idsInRestParams.has(name)) { + idInRest = true; + path.stop(); + } + }; + let i; + for (i = 0; i < params.length && !idInRest; ++i) { + const param = params[i]; + if (!paramsWithRestElement.has(i)) { + if (param.isReferencedIdentifier() || param.isBindingIdentifier()) { + IdentifierHandler(param, path.scope); + } else { + param.traverse({ + "Scope|TypeAnnotation|TSTypeAnnotation": path => path.skip(), + "ReferencedIdentifier|BindingIdentifier": IdentifierHandler + }, path.scope); + } + } + } + if (!idInRest) { + for (let i = 0; i < params.length; ++i) { + const param = params[i]; + if (paramsWithRestElement.has(i)) { + replaceRestElement(path, param); + } + } + } else { + const shouldTransformParam = idx => idx >= i - 1 || paramsWithRestElement.has(idx); + pluginTransformParameters.convertFunctionParams(path, ignoreFunctionLength, shouldTransformParam, replaceRestElement); + } + }, + VariableDeclarator(path, file) { + if (!path.get("id").isObjectPattern()) { + return; + } + let insertionPath = path; + const originalPath = path; + visitRestElements(path.get("id"), path => { + if (!path.parentPath.isObjectPattern()) { + return; + } + if (shouldStoreRHSInTemporaryVariable(originalPath.node.id) && !core.types.isIdentifier(originalPath.node.init)) { + const initRef = path.scope.generateUidIdentifierBasedOnNode(originalPath.node.init, "ref"); + originalPath.insertBefore(core.types.variableDeclarator(initRef, originalPath.node.init)); + originalPath.replaceWith(core.types.variableDeclarator(originalPath.node.id, core.types.cloneNode(initRef))); + return; + } + let ref = originalPath.node.init; + const refPropertyPath = []; + let kind; + path.findParent(path => { + if (path.isObjectProperty()) { + refPropertyPath.unshift(path); + } else if (path.isVariableDeclarator()) { + kind = path.parentPath.node.kind; + return true; + } + }); + const impureObjRefComputedDeclarators = replaceImpureComputedKeys(refPropertyPath, path.scope); + refPropertyPath.forEach(prop => { + const { + node + } = prop; + ref = core.types.memberExpression(ref, core.types.cloneNode(node.key), node.computed || core.types.isLiteral(node.key)); + }); + const objectPatternPath = path.findParent(path => path.isObjectPattern()); + const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectRest(objectPatternPath, file, ref); + if (pureGetters) { + removeUnusedExcludedKeys(objectPatternPath); + } + core.types.assertIdentifier(argument); + insertionPath.insertBefore(impureComputedPropertyDeclarators); + insertionPath.insertBefore(impureObjRefComputedDeclarators); + insertionPath = insertionPath.insertAfter(core.types.variableDeclarator(argument, callExpression))[0]; + path.scope.registerBinding(kind, insertionPath); + if (objectPatternPath.node.properties.length === 0) { + objectPatternPath.findParent(path => path.isObjectProperty() || path.isVariableDeclarator()).remove(); + } + }); + }, + ExportNamedDeclaration(path) { + const declaration = path.get("declaration"); + if (!declaration.isVariableDeclaration()) return; + const hasRest = declaration.get("declarations").some(path => hasObjectPatternRestElement(path.get("id"))); + if (!hasRest) return; + const specifiers = []; + for (const name of Object.keys(path.getOuterBindingIdentifiers(true))) { + specifiers.push(core.types.exportSpecifier(core.types.identifier(name), core.types.identifier(name))); + } + path.replaceWith(declaration.node); + path.insertAfter(core.types.exportNamedDeclaration(null, specifiers)); + }, + CatchClause(path) { + const paramPath = path.get("param"); + replaceRestElement(path, paramPath); + }, + AssignmentExpression(path, file) { + const leftPath = path.get("left"); + if (leftPath.isObjectPattern() && hasRestElement(leftPath)) { + const nodes = []; + const refName = path.scope.generateUidBasedOnNode(path.node.right, "ref"); + nodes.push(core.types.variableDeclaration("var", [core.types.variableDeclarator(core.types.identifier(refName), path.node.right)])); + const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectRest(leftPath, file, core.types.identifier(refName)); + if (impureComputedPropertyDeclarators.length > 0) { + nodes.push(core.types.variableDeclaration("var", impureComputedPropertyDeclarators)); + } + const nodeWithoutSpread = core.types.cloneNode(path.node); + nodeWithoutSpread.right = core.types.identifier(refName); + nodes.push(core.types.expressionStatement(nodeWithoutSpread)); + nodes.push(core.types.expressionStatement(core.types.assignmentExpression("=", argument, callExpression))); + nodes.push(core.types.expressionStatement(core.types.identifier(refName))); + path.replaceWithMultiple(nodes); + } + }, + ForXStatement(path) { + const { + node, + scope + } = path; + const leftPath = path.get("left"); + const left = node.left; + if (!hasObjectPatternRestElement(leftPath)) { + return; + } + if (!core.types.isVariableDeclaration(left)) { + const temp = scope.generateUidIdentifier("ref"); + node.left = core.types.variableDeclaration("var", [core.types.variableDeclarator(temp)]); + path.ensureBlock(); + const body = path.node.body; + if (body.body.length === 0 && path.isCompletionRecord()) { + body.body.unshift(core.types.expressionStatement(scope.buildUndefinedNode())); + } + body.body.unshift(core.types.expressionStatement(core.types.assignmentExpression("=", left, core.types.cloneNode(temp)))); + } else { + const pattern = left.declarations[0].id; + const key = scope.generateUidIdentifier("ref"); + node.left = core.types.variableDeclaration(left.kind, [core.types.variableDeclarator(key, null)]); + path.ensureBlock(); + const body = node.body; + body.body.unshift(core.types.variableDeclaration(node.left.kind, [core.types.variableDeclarator(pattern, core.types.cloneNode(key))])); + } + }, + ArrayPattern(path) { + const objectPatterns = []; + visitRestElements(path, path => { + if (!path.parentPath.isObjectPattern()) { + return; + } + const objectPattern = path.parentPath; + const uid = path.scope.generateUidIdentifier("ref"); + objectPatterns.push(core.types.variableDeclarator(objectPattern.node, uid)); + objectPattern.replaceWith(core.types.cloneNode(uid)); + path.skip(); + }); + if (objectPatterns.length > 0) { + const statementPath = path.getStatementParent(); + const statementNode = statementPath.node; + const kind = statementNode.type === "VariableDeclaration" ? statementNode.kind : "var"; + statementPath.insertAfter(core.types.variableDeclaration(kind, objectPatterns)); + } + }, + ObjectExpression(path, file) { + if (!hasSpread(path.node)) return; + let helper; + if (setSpreadProperties) { + helper = getExtendsHelper(file); + } else { + try { + helper = file.addHelper("objectSpread2"); + } catch (_unused) { + this.file.declarations["objectSpread2"] = null; + helper = file.addHelper("objectSpread"); + } + } + let exp = null; + let props = []; + function make() { + const hadProps = props.length > 0; + const obj = core.types.objectExpression(props); + props = []; + if (!exp) { + exp = core.types.callExpression(helper, [obj]); + return; + } + if (pureGetters) { + if (hadProps) { + exp.arguments.push(obj); + } + return; + } + exp = core.types.callExpression(core.types.cloneNode(helper), [exp, ...(hadProps ? [core.types.objectExpression([]), obj] : [])]); + } + for (const prop of path.node.properties) { + if (core.types.isSpreadElement(prop)) { + make(); + exp.arguments.push(prop.argument); + } else { + props.push(prop); + } + } + if (props.length) make(); + path.replaceWith(exp); + } + } + }; +}); -//# sourceMappingURL=toSequenceExpression.js.map +exports["default"] = index; +//# sourceMappingURL=index.js.map /***/ }), -/***/ 87648: +/***/ 63893: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -130995,45 +70657,72 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _generated = __nccwpck_require__(99451); -var _generated2 = __nccwpck_require__(54230); -var _default = toStatement; -exports["default"] = _default; -function toStatement(node, ignore) { - if ((0, _generated.isStatement)(node)) { - return node; - } - let mustHaveId = false; - let newType; - if ((0, _generated.isClass)(node)) { - mustHaveId = true; - newType = "ClassDeclaration"; - } else if ((0, _generated.isFunction)(node)) { - mustHaveId = true; - newType = "FunctionDeclaration"; - } else if ((0, _generated.isAssignmentExpression)(node)) { - return (0, _generated2.expressionStatement)(node); - } - if (mustHaveId && !node.id) { - newType = false; - } - if (!newType) { - if (ignore) { - return false; - } else { - throw new Error(`cannot turn ${node.type} to a statement`); - } - } - node.type = newType; - return node; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperReplaceSupers = __nccwpck_require__(43889); +var _core = __nccwpck_require__(65258); +function replacePropertySuper(path, getObjectRef, file) { + const replaceSupers = new _helperReplaceSupers.default({ + getObjectRef: getObjectRef, + methodPath: path, + file: file + }); + replaceSupers.replace(); } +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const newLets = new Set(); + return { + name: "transform-object-super", + visitor: { + Loop: { + exit(path) { + newLets.forEach(v => { + if (v.scopePath === path) { + path.scope.push({ + id: v.id, + kind: "let" + }); + path.scope.crawl(); + path.requeue(); + newLets.delete(v); + } + }); + } + }, + ObjectExpression(path, state) { + let objectRef; + const getObjectRef = () => objectRef = objectRef || path.scope.generateUidIdentifier("obj"); + path.get("properties").forEach(propPath => { + if (!propPath.isMethod()) return; + replacePropertySuper(propPath, getObjectRef, state.file); + }); + if (objectRef) { + const scopePath = path.findParent(p => p.isFunction() || p.isProgram() || p.isLoop()); + const useLet = scopePath.isLoop(); + if (useLet) { + newLets.add({ + scopePath, + id: _core.types.cloneNode(objectRef) + }); + } else { + path.scope.push({ + id: _core.types.cloneNode(objectRef), + kind: "var" + }); + } + path.replaceWith(_core.types.assignmentExpression("=", _core.types.cloneNode(objectRef), path.node)); + } + } + } + }; +}); -//# sourceMappingURL=toStatement.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 74802: +/***/ 88030: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -131043,1739 +70732,1679 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _isValidIdentifier = __nccwpck_require__(42897); -var _generated = __nccwpck_require__(54230); -var _default = valueToNode; -exports["default"] = _default; -const objectToString = Function.call.bind(Object.prototype.toString); -function isRegExp(value) { - return objectToString(value) === "[object RegExp]"; -} -function isPlainObject(value) { - if (typeof value !== "object" || value === null || Object.prototype.toString.call(value) !== "[object Object]") { - return false; - } - const proto = Object.getPrototypeOf(value); - return proto === null || Object.getPrototypeOf(proto) === null; -} -function valueToNode(value) { - if (value === undefined) { - return (0, _generated.identifier)("undefined"); - } - if (value === true || value === false) { - return (0, _generated.booleanLiteral)(value); - } - if (value === null) { - return (0, _generated.nullLiteral)(); - } - if (typeof value === "string") { - return (0, _generated.stringLiteral)(value); - } - if (typeof value === "number") { - let result; - if (Number.isFinite(value)) { - result = (0, _generated.numericLiteral)(Math.abs(value)); - } else { - let numerator; - if (Number.isNaN(value)) { - numerator = (0, _generated.numericLiteral)(0); - } else { - numerator = (0, _generated.numericLiteral)(1); - } - result = (0, _generated.binaryExpression)("/", numerator, (0, _generated.numericLiteral)(0)); - } - if (value < 0 || Object.is(value, -0)) { - result = (0, _generated.unaryExpression)("-", result); - } - return result; - } - if (isRegExp(value)) { - const pattern = value.source; - const flags = value.toString().match(/\/([a-z]+|)$/)[1]; - return (0, _generated.regExpLiteral)(pattern, flags); - } - if (Array.isArray(value)) { - return (0, _generated.arrayExpression)(value.map(valueToNode)); - } - if (isPlainObject(value)) { - const props = []; - for (const key of Object.keys(value)) { - let nodeKey; - if ((0, _isValidIdentifier.default)(key)) { - nodeKey = (0, _generated.identifier)(key); - } else { - nodeKey = (0, _generated.stringLiteral)(key); +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-optional-catch-binding", + inherits: (__nccwpck_require__(70110)["default"]), + visitor: { + CatchClause(path) { + if (!path.node.param) { + const uid = path.scope.generateUidIdentifier("unused"); + const paramPath = path.get("param"); + paramPath.replaceWith(uid); + } } - props.push((0, _generated.objectProperty)(nodeKey, valueToNode(value[key]))); } - return (0, _generated.objectExpression)(props); - } - throw new Error("don't know how to turn this value into a node"); -} + }; +}); -//# sourceMappingURL=valueToNode.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 60730: +/***/ 84733: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.patternLikeCommon = exports.functionTypeAnnotationCommon = exports.functionDeclarationCommon = exports.functionCommon = exports.classMethodOrPropertyCommon = exports.classMethodOrDeclareMethodCommon = void 0; -var _is = __nccwpck_require__(73217); -var _isValidIdentifier = __nccwpck_require__(42897); -var _helperValidatorIdentifier = __nccwpck_require__(21974); -var _helperStringParser = __nccwpck_require__(92776); -var _constants = __nccwpck_require__(49384); -var _utils = __nccwpck_require__(52203); -const defineType = (0, _utils.defineAliasedType)("Standardized"); -defineType("ArrayExpression", { - fields: { - elements: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "Expression", "SpreadElement"))), - default: !process.env.BABEL_TYPES_8_BREAKING ? [] : undefined - } - }, - visitor: ["elements"], - aliases: ["Expression"] -}); -defineType("AssignmentExpression", { - fields: { - operator: { - validate: function () { - if (!process.env.BABEL_TYPES_8_BREAKING) { - return (0, _utils.assertValueType)("string"); - } - const identifier = (0, _utils.assertOneOf)(..._constants.ASSIGNMENT_OPERATORS); - const pattern = (0, _utils.assertOneOf)("="); - return function (node, key, val) { - const validator = (0, _is.default)("Pattern", node.left) ? pattern : identifier; - validator(node, key, val); - }; - }() - }, - left: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") - }, - right: { - validate: (0, _utils.assertNodeType)("Expression") - } - }, - builder: ["operator", "left", "right"], - visitor: ["left", "right"], - aliases: ["Expression"] -}); -defineType("BinaryExpression", { - builder: ["operator", "left", "right"], - fields: { - operator: { - validate: (0, _utils.assertOneOf)(..._constants.BINARY_OPERATORS) - }, - left: { - validate: function () { - const expression = (0, _utils.assertNodeType)("Expression"); - const inOp = (0, _utils.assertNodeType)("Expression", "PrivateName"); - const validator = Object.assign(function (node, key, val) { - const validator = node.operator === "in" ? inOp : expression; - validator(node, key, val); - }, { - oneOfNodeTypes: ["Expression", "PrivateName"] - }); - return validator; - }() - }, - right: { - validate: (0, _utils.assertNodeType)("Expression") - } - }, - visitor: ["left", "right"], - aliases: ["Binary", "Expression"] -}); -defineType("InterpreterDirective", { - builder: ["value"], - fields: { - value: { - validate: (0, _utils.assertValueType)("string") - } - } -}); -defineType("Directive", { - visitor: ["value"], - fields: { - value: { - validate: (0, _utils.assertNodeType)("DirectiveLiteral") - } - } -}); -defineType("DirectiveLiteral", { - builder: ["value"], - fields: { - value: { - validate: (0, _utils.assertValueType)("string") - } - } -}); -defineType("BlockStatement", { - builder: ["body", "directives"], - visitor: ["directives", "body"], - fields: { - directives: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))), - default: [] - }, - body: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) - } - }, - aliases: ["Scopable", "BlockParent", "Block", "Statement"] -}); -defineType("BreakStatement", { - visitor: ["label"], - fields: { - label: { - validate: (0, _utils.assertNodeType)("Identifier"), - optional: true - } - }, - aliases: ["Statement", "Terminatorless", "CompletionStatement"] -}); -defineType("CallExpression", { - visitor: ["callee", "arguments", "typeParameters", "typeArguments"], - builder: ["callee", "arguments"], - aliases: ["Expression"], - fields: Object.assign({ - callee: { - validate: (0, _utils.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier") - }, - arguments: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName", "ArgumentPlaceholder"))) - } - }, !process.env.BABEL_TYPES_8_BREAKING ? { - optional: { - validate: (0, _utils.assertOneOf)(true, false), - optional: true - } - } : {}, { - typeArguments: { - validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"), - optional: true - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"), - optional: true - } - }) -}); -defineType("CatchClause", { - visitor: ["param", "body"], - fields: { - param: { - validate: (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"), - optional: true - }, - body: { - validate: (0, _utils.assertNodeType)("BlockStatement") - } - }, - aliases: ["Scopable", "BlockParent"] -}); -defineType("ConditionalExpression", { - visitor: ["test", "consequent", "alternate"], - fields: { - test: { - validate: (0, _utils.assertNodeType)("Expression") - }, - consequent: { - validate: (0, _utils.assertNodeType)("Expression") - }, - alternate: { - validate: (0, _utils.assertNodeType)("Expression") - } - }, - aliases: ["Expression", "Conditional"] -}); -defineType("ContinueStatement", { - visitor: ["label"], - fields: { - label: { - validate: (0, _utils.assertNodeType)("Identifier"), - optional: true - } - }, - aliases: ["Statement", "Terminatorless", "CompletionStatement"] -}); -defineType("DebuggerStatement", { - aliases: ["Statement"] -}); -defineType("DoWhileStatement", { - visitor: ["test", "body"], - fields: { - test: { - validate: (0, _utils.assertNodeType)("Expression") - }, - body: { - validate: (0, _utils.assertNodeType)("Statement") - } - }, - aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"] -}); -defineType("EmptyStatement", { - aliases: ["Statement"] -}); -defineType("ExpressionStatement", { - visitor: ["expression"], - fields: { - expression: { - validate: (0, _utils.assertNodeType)("Expression") - } - }, - aliases: ["Statement", "ExpressionWrapper"] -}); -defineType("File", { - builder: ["program", "comments", "tokens"], - visitor: ["program"], - fields: { - program: { - validate: (0, _utils.assertNodeType)("Program") - }, - comments: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? Object.assign(() => {}, { - each: { - oneOfNodeTypes: ["CommentBlock", "CommentLine"] - } - }) : (0, _utils.assertEach)((0, _utils.assertNodeType)("CommentBlock", "CommentLine")), - optional: true - }, - tokens: { - validate: (0, _utils.assertEach)(Object.assign(() => {}, { - type: "any" - })), - optional: true +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var helperPluginUtils = __nccwpck_require__(36028); +var core = __nccwpck_require__(65258); +var helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); + +function willPathCastToBoolean(path) { + const maybeWrapped = findOutermostTransparentParent(path); + const { + node, + parentPath + } = maybeWrapped; + if (parentPath.isLogicalExpression()) { + const { + operator, + right + } = parentPath.node; + if (operator === "&&" || operator === "||" || operator === "??" && node === right) { + return willPathCastToBoolean(parentPath); } } -}); -defineType("ForInStatement", { - visitor: ["left", "right", "body"], - aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], - fields: { - left: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("VariableDeclaration", "LVal") : (0, _utils.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") - }, - right: { - validate: (0, _utils.assertNodeType)("Expression") - }, - body: { - validate: (0, _utils.assertNodeType)("Statement") + if (parentPath.isSequenceExpression()) { + const { + expressions + } = parentPath.node; + if (expressions[expressions.length - 1] === node) { + return willPathCastToBoolean(parentPath); + } else { + return true; } } -}); -defineType("ForStatement", { - visitor: ["init", "test", "update", "body"], - aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"], - fields: { - init: { - validate: (0, _utils.assertNodeType)("VariableDeclaration", "Expression"), - optional: true - }, - test: { - validate: (0, _utils.assertNodeType)("Expression"), - optional: true - }, - update: { - validate: (0, _utils.assertNodeType)("Expression"), - optional: true - }, - body: { - validate: (0, _utils.assertNodeType)("Statement") + return parentPath.isConditional({ + test: node + }) || parentPath.isUnaryExpression({ + operator: "!" + }) || parentPath.isLoop({ + test: node + }); +} +function findOutermostTransparentParent(path) { + let maybeWrapped = path; + path.findParent(p => { + if (!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p.node)) return true; + maybeWrapped = p; + }); + return maybeWrapped; +} + +const last = arr => arr[arr.length - 1]; +function isSimpleMemberExpression(expression) { + expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression); + return core.types.isIdentifier(expression) || core.types.isSuper(expression) || core.types.isMemberExpression(expression) && !expression.computed && isSimpleMemberExpression(expression.object); +} +function needsMemoize(path) { + let optionalPath = path; + const { + scope + } = path; + while (optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression()) { + const { + node + } = optionalPath; + const childPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.isOptionalMemberExpression() ? optionalPath.get("object") : optionalPath.get("callee")); + if (node.optional) { + return !scope.isStatic(childPath.node); } + optionalPath = childPath; } -}); -const functionCommon = () => ({ - params: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier", "Pattern", "RestElement"))) - }, - generator: { - default: false - }, - async: { - default: false - } -}); -exports.functionCommon = functionCommon; -const functionTypeAnnotationCommon = () => ({ - returnType: { - validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), - optional: true - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), - optional: true - } -}); -exports.functionTypeAnnotationCommon = functionTypeAnnotationCommon; -const functionDeclarationCommon = () => Object.assign({}, functionCommon(), { - declare: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - id: { - validate: (0, _utils.assertNodeType)("Identifier"), - optional: true +} +const NULLISH_CHECK = core.template.expression(`%%check%% === null || %%ref%% === void 0`); +const NULLISH_CHECK_NO_DDA = core.template.expression(`%%check%% == null`); +const NULLISH_CHECK_NEG = core.template.expression(`%%check%% !== null && %%ref%% !== void 0`); +const NULLISH_CHECK_NO_DDA_NEG = core.template.expression(`%%check%% != null`); +function transformOptionalChain(path, { + pureGetters, + noDocumentAll +}, replacementPath, ifNullish, wrapLast) { + const { + scope + } = path; + if (scope.path.isPattern() && needsMemoize(path)) { + replacementPath.replaceWith(core.template.expression.ast`(() => ${replacementPath.node})()`); + return; } -}); -exports.functionDeclarationCommon = functionDeclarationCommon; -defineType("FunctionDeclaration", { - builder: ["id", "params", "body", "generator", "async"], - visitor: ["id", "params", "body", "returnType", "typeParameters"], - fields: Object.assign({}, functionDeclarationCommon(), functionTypeAnnotationCommon(), { - body: { - validate: (0, _utils.assertNodeType)("BlockStatement") - }, - predicate: { - validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"), - optional: true + const optionals = []; + let optionalPath = path; + while (optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression()) { + const { + node + } = optionalPath; + if (node.optional) { + optionals.push(node); } - }), - aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"], - validate: function () { - if (!process.env.BABEL_TYPES_8_BREAKING) return () => {}; - const identifier = (0, _utils.assertNodeType)("Identifier"); - return function (parent, key, node) { - if (!(0, _is.default)("ExportDefaultDeclaration", parent)) { - identifier(node, "id", node.id); - } - }; - }() -}); -defineType("FunctionExpression", { - inherits: "FunctionDeclaration", - aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], - fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), { - id: { - validate: (0, _utils.assertNodeType)("Identifier"), - optional: true - }, - body: { - validate: (0, _utils.assertNodeType)("BlockStatement") - }, - predicate: { - validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"), - optional: true + if (optionalPath.isOptionalMemberExpression()) { + optionalPath.node.type = "MemberExpression"; + optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object")); + } else if (optionalPath.isOptionalCallExpression()) { + optionalPath.node.type = "CallExpression"; + optionalPath = helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")); } - }) -}); -const patternLikeCommon = () => ({ - typeAnnotation: { - validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), - optional: true - }, - optional: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true } -}); -exports.patternLikeCommon = patternLikeCommon; -defineType("Identifier", { - builder: ["name"], - visitor: ["typeAnnotation", "decorators"], - aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"], - fields: Object.assign({}, patternLikeCommon(), { - name: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (!(0, _isValidIdentifier.default)(val, false)) { - throw new TypeError(`"${val}" is not a valid identifier name`); + if (optionals.length === 0) { + return; + } + const checks = []; + let tmpVar; + for (let i = optionals.length - 1; i >= 0; i--) { + const node = optionals[i]; + const isCall = core.types.isCallExpression(node); + const chainWithTypes = isCall ? node.callee : node.object; + const chain = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes); + let ref; + let check; + if (isCall && core.types.isIdentifier(chain, { + name: "eval" + })) { + check = ref = chain; + node.callee = core.types.sequenceExpression([core.types.numericLiteral(0), ref]); + } else if (pureGetters && isCall && isSimpleMemberExpression(chain)) { + check = ref = node.callee; + } else if (scope.isStatic(chain)) { + check = ref = chainWithTypes; + } else { + if (!tmpVar || isCall) { + tmpVar = scope.generateUidIdentifierBasedOnNode(chain); + scope.push({ + id: core.types.cloneNode(tmpVar) + }); + } + ref = tmpVar; + check = core.types.assignmentExpression("=", core.types.cloneNode(tmpVar), chainWithTypes); + isCall ? node.callee = ref : node.object = ref; + } + if (isCall && core.types.isMemberExpression(chain)) { + if (pureGetters && isSimpleMemberExpression(chain)) { + node.callee = chainWithTypes; + } else { + const { + object + } = chain; + let context; + if (core.types.isSuper(object)) { + context = core.types.thisExpression(); + } else { + const memoized = scope.maybeGenerateMemoised(object); + if (memoized) { + context = memoized; + chain.object = core.types.assignmentExpression("=", memoized, object); + } else { + context = object; + } } - }, { - type: "string" - })) + node.arguments.unshift(core.types.cloneNode(context)); + node.callee = core.types.memberExpression(node.callee, core.types.identifier("call")); + } } - }), - validate(parent, key, node) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - const match = /\.(\w+)$/.exec(key); - if (!match) return; - const [, parentKey] = match; - const nonComp = { - computed: false + const data = { + check: core.types.cloneNode(check), + ref: core.types.cloneNode(ref) }; - if (parentKey === "property") { - if ((0, _is.default)("MemberExpression", parent, nonComp)) return; - if ((0, _is.default)("OptionalMemberExpression", parent, nonComp)) return; - } else if (parentKey === "key") { - if ((0, _is.default)("Property", parent, nonComp)) return; - if ((0, _is.default)("Method", parent, nonComp)) return; - } else if (parentKey === "exported") { - if ((0, _is.default)("ExportSpecifier", parent)) return; - } else if (parentKey === "imported") { - if ((0, _is.default)("ImportSpecifier", parent, { - imported: node - })) return; - } else if (parentKey === "meta") { - if ((0, _is.default)("MetaProperty", parent, { - meta: node - })) return; - } - if (((0, _helperValidatorIdentifier.isKeyword)(node.name) || (0, _helperValidatorIdentifier.isReservedWord)(node.name, false)) && node.name !== "this") { - throw new TypeError(`"${node.name}" is not a valid identifier`); + Object.defineProperty(data, "ref", { + enumerable: false + }); + checks.push(data); + } + let result = replacementPath.node; + if (wrapLast) result = wrapLast(result); + const ifNullishBoolean = core.types.isBooleanLiteral(ifNullish); + const ifNullishFalse = ifNullishBoolean && ifNullish.value === false; + const ifNullishVoid = !ifNullishBoolean && core.types.isUnaryExpression(ifNullish, { + operator: "void" + }); + const isEvaluationValueIgnored = core.types.isExpressionStatement(replacementPath.parent) && !replacementPath.isCompletionRecord() || core.types.isSequenceExpression(replacementPath.parent) && last(replacementPath.parent.expressions) !== replacementPath.node; + const tpl = ifNullishFalse ? noDocumentAll ? NULLISH_CHECK_NO_DDA_NEG : NULLISH_CHECK_NEG : noDocumentAll ? NULLISH_CHECK_NO_DDA : NULLISH_CHECK; + const logicalOp = ifNullishFalse ? "&&" : "||"; + const check = checks.map(tpl).reduce((expr, check) => core.types.logicalExpression(logicalOp, expr, check)); + replacementPath.replaceWith(ifNullishBoolean || ifNullishVoid && isEvaluationValueIgnored ? core.types.logicalExpression(logicalOp, check, result) : core.types.conditionalExpression(check, ifNullish, result)); +} +function transform(path, assumptions) { + const { + scope + } = path; + const maybeWrapped = findOutermostTransparentParent(path); + const { + parentPath + } = maybeWrapped; + if (parentPath.isUnaryExpression({ + operator: "delete" + })) { + transformOptionalChain(path, assumptions, parentPath, core.types.booleanLiteral(true)); + } else { + let wrapLast; + if (parentPath.isCallExpression({ + callee: maybeWrapped.node + }) && path.isOptionalMemberExpression()) { + wrapLast = replacement => { + var _baseRef; + const object = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object); + let baseRef; + if (!assumptions.pureGetters || !isSimpleMemberExpression(object)) { + baseRef = scope.maybeGenerateMemoised(object); + if (baseRef) { + replacement.object = core.types.assignmentExpression("=", baseRef, object); + } + } + return core.types.callExpression(core.types.memberExpression(replacement, core.types.identifier("bind")), [core.types.cloneNode((_baseRef = baseRef) != null ? _baseRef : object)]); + }; } + transformOptionalChain(path, assumptions, path, willPathCastToBoolean(maybeWrapped) ? core.types.booleanLiteral(false) : scope.buildUndefinedNode(), wrapLast); } -}); -defineType("IfStatement", { - visitor: ["test", "consequent", "alternate"], - aliases: ["Statement", "Conditional"], - fields: { - test: { - validate: (0, _utils.assertNodeType)("Expression") - }, - consequent: { - validate: (0, _utils.assertNodeType)("Statement") - }, - alternate: { - optional: true, - validate: (0, _utils.assertNodeType)("Statement") +} + +var index = helperPluginUtils.declare((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const { + loose = false + } = options; + const noDocumentAll = (_api$assumption = api.assumption("noDocumentAll")) != null ? _api$assumption : loose; + const pureGetters = (_api$assumption2 = api.assumption("pureGetters")) != null ? _api$assumption2 : loose; + return { + name: "transform-optional-chaining", + inherits: (__nccwpck_require__(99617)["default"]), + visitor: { + "OptionalCallExpression|OptionalMemberExpression"(path) { + transform(path, { + noDocumentAll, + pureGetters + }); + } } - } + }; }); -defineType("LabeledStatement", { - visitor: ["label", "body"], - aliases: ["Statement"], - fields: { - label: { - validate: (0, _utils.assertNodeType)("Identifier") - }, - body: { - validate: (0, _utils.assertNodeType)("Statement") - } + +exports["default"] = index; +exports.transform = transform; +exports.transformOptionalChain = transformOptionalChain; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 8046: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "convertFunctionParams", ({ + enumerable: true, + get: function () { + return _params.default; } -}); -defineType("StringLiteral", { - builder: ["value"], - fields: { - value: { - validate: (0, _utils.assertValueType)("string") - } - }, - aliases: ["Expression", "Pureish", "Literal", "Immutable"] -}); -defineType("NumericLiteral", { - builder: ["value"], - deprecatedAlias: "NumberLiteral", - fields: { - value: { - validate: (0, _utils.assertValueType)("number") - } - }, - aliases: ["Expression", "Pureish", "Literal", "Immutable"] -}); -defineType("NullLiteral", { - aliases: ["Expression", "Pureish", "Literal", "Immutable"] -}); -defineType("BooleanLiteral", { - builder: ["value"], - fields: { - value: { - validate: (0, _utils.assertValueType)("boolean") - } - }, - aliases: ["Expression", "Pureish", "Literal", "Immutable"] -}); -defineType("RegExpLiteral", { - builder: ["pattern", "flags"], - deprecatedAlias: "RegexLiteral", - aliases: ["Expression", "Pureish", "Literal"], - fields: { - pattern: { - validate: (0, _utils.assertValueType)("string") - }, - flags: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - const invalid = /[^gimsuy]/.exec(val); - if (invalid) { - throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`); +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _params = __nccwpck_require__(68539); +var _rest = __nccwpck_require__(97606); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const ignoreFunctionLength = (_api$assumption = api.assumption("ignoreFunctionLength")) != null ? _api$assumption : options.loose; + const noNewArrows = (_api$assumption2 = api.assumption("noNewArrows")) != null ? _api$assumption2 : true; + return { + name: "transform-parameters", + visitor: { + Function(path) { + if (path.isArrowFunctionExpression() && path.get("params").some(param => param.isRestElement() || param.isAssignmentPattern())) { + path.arrowFunctionToExpression({ + allowInsertArrowWithRest: false, + noNewArrows + }); + if (!path.isFunctionExpression()) return; } - }, { - type: "string" - })), - default: "" + const convertedRest = (0, _rest.default)(path); + const convertedParams = (0, _params.default)(path, ignoreFunctionLength); + if (convertedRest || convertedParams) { + path.scope.crawl(); + } + } } - } + }; }); -defineType("LogicalExpression", { - builder: ["operator", "left", "right"], - visitor: ["left", "right"], - aliases: ["Binary", "Expression"], - fields: { - operator: { - validate: (0, _utils.assertOneOf)(..._constants.LOGICAL_OPERATORS) - }, - left: { - validate: (0, _utils.assertNodeType)("Expression") - }, - right: { - validate: (0, _utils.assertNodeType)("Expression") + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 68539: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = convertFunctionParams; +var _core = __nccwpck_require__(65258); +var _shadowUtils = __nccwpck_require__(25204); +const buildDefaultParam = _core.template.statement(` + let VARIABLE_NAME = + arguments.length > ARGUMENT_KEY && arguments[ARGUMENT_KEY] !== undefined ? + arguments[ARGUMENT_KEY] + : + DEFAULT_VALUE; +`); +const buildLooseDefaultParam = _core.template.statement(` + if (ASSIGNMENT_IDENTIFIER === UNDEFINED) { + ASSIGNMENT_IDENTIFIER = DEFAULT_VALUE; + } +`); +const buildLooseDestructuredDefaultParam = _core.template.statement(` + let ASSIGNMENT_IDENTIFIER = PARAMETER_NAME === UNDEFINED ? DEFAULT_VALUE : PARAMETER_NAME ; +`); +const buildSafeArgumentsAccess = _core.template.statement(` + let $0 = arguments.length > $1 ? arguments[$1] : undefined; +`); +function convertFunctionParams(path, ignoreFunctionLength, shouldTransformParam, replaceRestElement) { + const params = path.get("params"); + const isSimpleParameterList = params.every(param => param.isIdentifier()); + if (isSimpleParameterList) return false; + const { + node, + scope + } = path; + const body = []; + const shadowedParams = new Set(); + for (const param of params) { + (0, _shadowUtils.collectShadowedParamsNames)(param, scope, shadowedParams); + } + const state = { + needsOuterBinding: false, + scope + }; + if (shadowedParams.size === 0) { + for (const param of params) { + if (!param.isIdentifier()) param.traverse(_shadowUtils.iifeVisitor, state); + if (state.needsOuterBinding) break; } } -}); -defineType("MemberExpression", { - builder: ["object", "property", "computed", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : [])], - visitor: ["object", "property"], - aliases: ["Expression", "LVal"], - fields: Object.assign({ - object: { - validate: (0, _utils.assertNodeType)("Expression", "Super") - }, - property: { - validate: function () { - const normal = (0, _utils.assertNodeType)("Identifier", "PrivateName"); - const computed = (0, _utils.assertNodeType)("Expression"); - const validator = function (node, key, val) { - const validator = node.computed ? computed : normal; - validator(node, key, val); - }; - validator.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"]; - return validator; - }() - }, - computed: { - default: false + let firstOptionalIndex = null; + for (let i = 0; i < params.length; i++) { + const param = params[i]; + if (shouldTransformParam && !shouldTransformParam(i)) { + continue; } - }, !process.env.BABEL_TYPES_8_BREAKING ? { - optional: { - validate: (0, _utils.assertOneOf)(true, false), - optional: true + const transformedRestNodes = []; + if (replaceRestElement) { + replaceRestElement(path, param, transformedRestNodes); } - } : {}) -}); -defineType("NewExpression", { - inherits: "CallExpression" -}); -defineType("Program", { - visitor: ["directives", "body"], - builder: ["body", "directives", "sourceType", "interpreter"], - fields: { - sourceFile: { - validate: (0, _utils.assertValueType)("string") - }, - sourceType: { - validate: (0, _utils.assertOneOf)("script", "module"), - default: "script" - }, - interpreter: { - validate: (0, _utils.assertNodeType)("InterpreterDirective"), - default: null, - optional: true - }, - directives: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))), - default: [] - }, - body: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) + const paramIsAssignmentPattern = param.isAssignmentPattern(); + if (paramIsAssignmentPattern && (ignoreFunctionLength || _core.types.isMethod(node, { + kind: "set" + }))) { + const left = param.get("left"); + const right = param.get("right"); + const undefinedNode = scope.buildUndefinedNode(); + if (left.isIdentifier()) { + body.push(buildLooseDefaultParam({ + ASSIGNMENT_IDENTIFIER: _core.types.cloneNode(left.node), + DEFAULT_VALUE: right.node, + UNDEFINED: undefinedNode + })); + param.replaceWith(left.node); + } else if (left.isObjectPattern() || left.isArrayPattern()) { + const paramName = scope.generateUidIdentifier(); + body.push(buildLooseDestructuredDefaultParam({ + ASSIGNMENT_IDENTIFIER: left.node, + DEFAULT_VALUE: right.node, + PARAMETER_NAME: _core.types.cloneNode(paramName), + UNDEFINED: undefinedNode + })); + param.replaceWith(paramName); + } + } else if (paramIsAssignmentPattern) { + if (firstOptionalIndex === null) firstOptionalIndex = i; + const left = param.get("left"); + const right = param.get("right"); + const defNode = buildDefaultParam({ + VARIABLE_NAME: left.node, + DEFAULT_VALUE: right.node, + ARGUMENT_KEY: _core.types.numericLiteral(i) + }); + body.push(defNode); + } else if (firstOptionalIndex !== null) { + const defNode = buildSafeArgumentsAccess([param.node, _core.types.numericLiteral(i)]); + body.push(defNode); + } else if (param.isObjectPattern() || param.isArrayPattern()) { + const uid = path.scope.generateUidIdentifier("ref"); + uid.typeAnnotation = param.node.typeAnnotation; + const defNode = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(param.node, uid)]); + body.push(defNode); + param.replaceWith(_core.types.cloneNode(uid)); } - }, - aliases: ["Scopable", "BlockParent", "Block"] -}); -defineType("ObjectExpression", { - visitor: ["properties"], - aliases: ["Expression"], - fields: { - properties: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectMethod", "ObjectProperty", "SpreadElement"))) + if (transformedRestNodes) { + for (const transformedNode of transformedRestNodes) { + body.push(transformedNode); + } + } + } + if (firstOptionalIndex !== null) { + node.params = node.params.slice(0, firstOptionalIndex); + } + path.ensureBlock(); + const { + async, + generator + } = node; + if (generator || state.needsOuterBinding || shadowedParams.size > 0) { + body.push((0, _shadowUtils.buildScopeIIFE)(shadowedParams, path.node.body)); + path.set("body", _core.types.blockStatement(body)); + const bodyPath = path.get("body.body"); + const arrowPath = bodyPath[bodyPath.length - 1].get("argument.callee"); + arrowPath.arrowFunctionToExpression(); + arrowPath.node.generator = generator; + arrowPath.node.async = async; + node.generator = false; + node.async = false; + if (async) { + path.node.body = _core.template.statement.ast`{ + try { + ${path.node.body.body} + } catch (e) { + return Promise.reject(e); + } + }`; } + } else { + path.get("body").unshiftContainer("body", body); } -}); -defineType("ObjectMethod", { - builder: ["kind", "key", "params", "body", "computed", "generator", "async"], - fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), { - kind: Object.assign({ - validate: (0, _utils.assertOneOf)("method", "get", "set") - }, !process.env.BABEL_TYPES_8_BREAKING ? { - default: "method" - } : {}), - computed: { - default: false - }, - key: { - validate: function () { - const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"); - const computed = (0, _utils.assertNodeType)("Expression"); - const validator = function (node, key, val) { - const validator = node.computed ? computed : normal; - validator(node, key, val); - }; - validator.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"]; - return validator; - }() - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true - }, - body: { - validate: (0, _utils.assertNodeType)("BlockStatement") + return true; +} + +//# sourceMappingURL=params.js.map + + +/***/ }), + +/***/ 97606: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = convertFunctionRest; +var _core = __nccwpck_require__(65258); +var _shadowUtils = __nccwpck_require__(25204); +const buildRest = _core.template.statement(` + for (var LEN = ARGUMENTS.length, + ARRAY = new Array(ARRAY_LEN), + KEY = START; + KEY < LEN; + KEY++) { + ARRAY[ARRAY_KEY] = ARGUMENTS[KEY]; + } +`); +const restIndex = _core.template.expression(` + (INDEX < OFFSET || ARGUMENTS.length <= INDEX) ? undefined : ARGUMENTS[INDEX] +`); +const restIndexImpure = _core.template.expression(` + REF = INDEX, (REF < OFFSET || ARGUMENTS.length <= REF) ? undefined : ARGUMENTS[REF] +`); +const restLength = _core.template.expression(` + ARGUMENTS.length <= OFFSET ? 0 : ARGUMENTS.length - OFFSET +`); +function referencesRest(path, state) { + if (path.node.name === state.name) { + return path.scope.bindingIdentifierEquals(state.name, state.outerBinding); + } + return false; +} +const memberExpressionOptimisationVisitor = { + Scope(path, state) { + if (!path.scope.bindingIdentifierEquals(state.name, state.outerBinding)) { + path.skip(); } - }), - visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], - aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"] -}); -defineType("ObjectProperty", { - builder: ["key", "value", "computed", "shorthand", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["decorators"] : [])], - fields: { - computed: { - default: false - }, - key: { - validate: function () { - const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"); - const computed = (0, _utils.assertNodeType)("Expression"); - const validator = Object.assign(function (node, key, val) { - const validator = node.computed ? computed : normal; - validator(node, key, val); - }, { - oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"] - }); - return validator; - }() - }, - value: { - validate: (0, _utils.assertNodeType)("Expression", "PatternLike") - }, - shorthand: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (val && node.computed) { - throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true"); + }, + Flow(path) { + if (path.isTypeCastExpression()) return; + path.skip(); + }, + Function(path, state) { + const oldNoOptimise = state.noOptimise; + state.noOptimise = true; + path.traverse(memberExpressionOptimisationVisitor, state); + state.noOptimise = oldNoOptimise; + path.skip(); + }, + ReferencedIdentifier(path, state) { + const { + node + } = path; + if (node.name === "arguments") { + state.deopted = true; + } + if (!referencesRest(path, state)) return; + if (state.noOptimise) { + state.deopted = true; + } else { + const { + parentPath + } = path; + if (parentPath.listKey === "params" && parentPath.key < state.offset) { + return; + } + if (parentPath.isMemberExpression({ + object: node + })) { + const grandparentPath = parentPath.parentPath; + const argsOptEligible = !state.deopted && !(grandparentPath.isAssignmentExpression() && parentPath.node === grandparentPath.node.left || grandparentPath.isLVal() || grandparentPath.isForXStatement() || grandparentPath.isUpdateExpression() || grandparentPath.isUnaryExpression({ + operator: "delete" + }) || (grandparentPath.isCallExpression() || grandparentPath.isNewExpression()) && parentPath.node === grandparentPath.node.callee); + if (argsOptEligible) { + if (parentPath.node.computed) { + if (parentPath.get("property").isBaseType("number")) { + state.candidates.push({ + cause: "indexGetter", + path + }); + return; + } + } else if (parentPath.node.property.name === "length") { + state.candidates.push({ + cause: "lengthGetter", + path + }); + return; + } } - }, { - type: "boolean" - }), function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (val && !(0, _is.default)("Identifier", node.key)) { - throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier"); + } + if (state.offset === 0 && parentPath.isSpreadElement()) { + const call = parentPath.parentPath; + if (call.isCallExpression() && call.node.arguments.length === 1) { + state.candidates.push({ + cause: "argSpread", + path + }); + return; } - }), - default: false - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true + } + state.references.push(path); } }, - visitor: ["key", "value", "decorators"], - aliases: ["UserWhitespacable", "Property", "ObjectMember"], - validate: function () { - const pattern = (0, _utils.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssertion"); - const expression = (0, _utils.assertNodeType)("Expression"); - return function (parent, key, node) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - const validator = (0, _is.default)("ObjectPattern", parent) ? pattern : expression; - validator(node, "value", node.value); - }; - }() -}); -defineType("RestElement", { - visitor: ["argument", "typeAnnotation"], - builder: ["argument"], - aliases: ["LVal", "PatternLike"], - deprecatedAlias: "RestProperty", - fields: Object.assign({}, patternLikeCommon(), { - argument: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") - } - }), - validate(parent, key) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - const match = /(\w+)\[(\d+)\]/.exec(key); - if (!match) throw new Error("Internal Babel error: malformed key."); - const [, listKey, index] = match; - if (parent[listKey].length > +index + 1) { - throw new TypeError(`RestElement must be last element of ${listKey}`); + BindingIdentifier(path, state) { + if (referencesRest(path, state)) { + state.deopted = true; } } -}); -defineType("ReturnStatement", { - visitor: ["argument"], - aliases: ["Statement", "Terminatorless", "CompletionStatement"], - fields: { - argument: { - validate: (0, _utils.assertNodeType)("Expression"), - optional: true +}; +function getParamsCount(node) { + let count = node.params.length; + if (count > 0 && _core.types.isIdentifier(node.params[0], { + name: "this" + })) { + count -= 1; + } + return count; +} +function hasRest(node) { + const length = node.params.length; + return length > 0 && _core.types.isRestElement(node.params[length - 1]); +} +function optimiseIndexGetter(path, argsId, offset) { + const offsetLiteral = _core.types.numericLiteral(offset); + let index; + const parent = path.parent; + if (_core.types.isNumericLiteral(parent.property)) { + index = _core.types.numericLiteral(parent.property.value + offset); + } else if (offset === 0) { + index = parent.property; + } else { + index = _core.types.binaryExpression("+", parent.property, _core.types.cloneNode(offsetLiteral)); + } + const { + scope, + parentPath + } = path; + if (!scope.isPure(index)) { + const temp = scope.generateUidIdentifierBasedOnNode(index); + scope.push({ + id: temp, + kind: "var" + }); + parentPath.replaceWith(restIndexImpure({ + ARGUMENTS: argsId, + OFFSET: offsetLiteral, + INDEX: index, + REF: _core.types.cloneNode(temp) + })); + } else { + parentPath.replaceWith(restIndex({ + ARGUMENTS: argsId, + OFFSET: offsetLiteral, + INDEX: index + })); + const replacedParentPath = parentPath; + const offsetTestPath = replacedParentPath.get("test"); + const valRes = offsetTestPath.get("left").evaluate(); + if (valRes.confident) { + if (valRes.value === true) { + replacedParentPath.replaceWith(scope.buildUndefinedNode()); + } else { + offsetTestPath.replaceWith(offsetTestPath.get("right")); + } } } -}); -defineType("SequenceExpression", { - visitor: ["expressions"], - fields: { - expressions: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression"))) +} +function optimiseLengthGetter(path, argsId, offset) { + if (offset) { + path.parentPath.replaceWith(restLength({ + ARGUMENTS: argsId, + OFFSET: _core.types.numericLiteral(offset) + })); + } else { + path.replaceWith(argsId); + } +} +function convertFunctionRest(path) { + const { + node, + scope + } = path; + if (!hasRest(node)) return false; + const restPath = path.get(`params.${node.params.length - 1}.argument`); + if (!restPath.isIdentifier()) { + const shadowedParams = new Set(); + (0, _shadowUtils.collectShadowedParamsNames)(restPath, path.scope, shadowedParams); + let needsIIFE = shadowedParams.size > 0; + if (!needsIIFE) { + const state = { + needsOuterBinding: false, + scope + }; + restPath.traverse(_shadowUtils.iifeVisitor, state); + needsIIFE = state.needsOuterBinding; } - }, - aliases: ["Expression"] -}); -defineType("ParenthesizedExpression", { - visitor: ["expression"], - aliases: ["Expression", "ExpressionWrapper"], - fields: { - expression: { - validate: (0, _utils.assertNodeType)("Expression") + if (needsIIFE) { + path.ensureBlock(); + path.set("body", _core.types.blockStatement([(0, _shadowUtils.buildScopeIIFE)(shadowedParams, path.node.body)])); } } -}); -defineType("SwitchCase", { - visitor: ["test", "consequent"], - fields: { - test: { - validate: (0, _utils.assertNodeType)("Expression"), - optional: true - }, - consequent: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) - } + let rest = restPath.node; + node.params.pop(); + if (_core.types.isPattern(rest)) { + const pattern = rest; + rest = scope.generateUidIdentifier("ref"); + const declar = _core.types.variableDeclaration("let", [_core.types.variableDeclarator(pattern, rest)]); + path.ensureBlock(); + node.body.body.unshift(declar); + } else if (rest.name === "arguments") { + scope.rename(rest.name); } -}); -defineType("SwitchStatement", { - visitor: ["discriminant", "cases"], - aliases: ["Statement", "BlockParent", "Scopable"], - fields: { - discriminant: { - validate: (0, _utils.assertNodeType)("Expression") - }, - cases: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("SwitchCase"))) + const argsId = _core.types.identifier("arguments"); + const paramsCount = getParamsCount(node); + const state = { + references: [], + offset: paramsCount, + argumentsNode: argsId, + outerBinding: scope.getBindingIdentifier(rest.name), + candidates: [], + name: rest.name, + deopted: false + }; + path.traverse(memberExpressionOptimisationVisitor, state); + if (!state.deopted && !state.references.length) { + for (const { + path, + cause + } of state.candidates) { + const clonedArgsId = _core.types.cloneNode(argsId); + switch (cause) { + case "indexGetter": + optimiseIndexGetter(path, clonedArgsId, state.offset); + break; + case "lengthGetter": + optimiseLengthGetter(path, clonedArgsId, state.offset); + break; + default: + path.replaceWith(clonedArgsId); + } } + return true; } -}); -defineType("ThisExpression", { - aliases: ["Expression"] -}); -defineType("ThrowStatement", { - visitor: ["argument"], - aliases: ["Statement", "Terminatorless", "CompletionStatement"], - fields: { - argument: { - validate: (0, _utils.assertNodeType)("Expression") - } + state.references.push(...state.candidates.map(({ + path + }) => path)); + const start = _core.types.numericLiteral(paramsCount); + const key = scope.generateUidIdentifier("key"); + const len = scope.generateUidIdentifier("len"); + let arrKey, arrLen; + if (paramsCount) { + arrKey = _core.types.binaryExpression("-", _core.types.cloneNode(key), _core.types.cloneNode(start)); + arrLen = _core.types.conditionalExpression(_core.types.binaryExpression(">", _core.types.cloneNode(len), _core.types.cloneNode(start)), _core.types.binaryExpression("-", _core.types.cloneNode(len), _core.types.cloneNode(start)), _core.types.numericLiteral(0)); + } else { + arrKey = _core.types.identifier(key.name); + arrLen = _core.types.identifier(len.name); } -}); -defineType("TryStatement", { - visitor: ["block", "handler", "finalizer"], - aliases: ["Statement"], - fields: { - block: { - validate: (0, _utils.chain)((0, _utils.assertNodeType)("BlockStatement"), Object.assign(function (node) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (!node.handler && !node.finalizer) { - throw new TypeError("TryStatement expects either a handler or finalizer, or both"); - } - }, { - oneOfNodeTypes: ["BlockStatement"] - })) - }, - handler: { - optional: true, - validate: (0, _utils.assertNodeType)("CatchClause") - }, - finalizer: { - optional: true, - validate: (0, _utils.assertNodeType)("BlockStatement") - } + const loop = buildRest({ + ARGUMENTS: argsId, + ARRAY_KEY: arrKey, + ARRAY_LEN: arrLen, + START: start, + ARRAY: rest, + KEY: key, + LEN: len + }); + if (state.deopted) { + node.body.body.unshift(loop); + } else { + let target = path.getEarliestCommonAncestorFrom(state.references).getStatementParent(); + target.findParent(path => { + if (path.isLoop()) { + target = path; + } else { + return path.isFunction(); + } + }); + target.insertBefore(loop); } -}); -defineType("UnaryExpression", { - builder: ["operator", "argument", "prefix"], - fields: { - prefix: { - default: true - }, - argument: { - validate: (0, _utils.assertNodeType)("Expression") - }, - operator: { - validate: (0, _utils.assertOneOf)(..._constants.UNARY_OPERATORS) - } - }, - visitor: ["argument"], - aliases: ["UnaryLike", "Expression"] -}); -defineType("UpdateExpression", { - builder: ["operator", "argument", "prefix"], - fields: { - prefix: { - default: false - }, - argument: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Expression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression") - }, - operator: { - validate: (0, _utils.assertOneOf)(..._constants.UPDATE_OPERATORS) - } - }, - visitor: ["argument"], - aliases: ["Expression"] -}); -defineType("VariableDeclaration", { - builder: ["kind", "declarations"], - visitor: ["declarations"], - aliases: ["Statement", "Declaration"], - fields: { - declare: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - kind: { - validate: (0, _utils.assertOneOf)("var", "let", "const", "using") - }, - declarations: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("VariableDeclarator"))) + return true; +} + +//# sourceMappingURL=rest.js.map + + +/***/ }), + +/***/ 25204: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.buildScopeIIFE = buildScopeIIFE; +exports.collectShadowedParamsNames = collectShadowedParamsNames; +exports.iifeVisitor = void 0; +var _core = __nccwpck_require__(65258); +const iifeVisitor = exports.iifeVisitor = { + "ReferencedIdentifier|BindingIdentifier"(path, state) { + const { + scope, + node + } = path; + const { + name + } = node; + if (name === "eval" || scope.getBinding(name) === state.scope.parent.getBinding(name) && state.scope.hasOwnBinding(name)) { + state.needsOuterBinding = true; + path.stop(); } }, - validate(parent, key, node) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (!(0, _is.default)("ForXStatement", parent, { - left: node - })) return; - if (node.declarations.length !== 1) { - throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${parent.type}`); - } - } -}); -defineType("VariableDeclarator", { - visitor: ["id", "init"], - fields: { - id: { - validate: function () { - if (!process.env.BABEL_TYPES_8_BREAKING) { - return (0, _utils.assertNodeType)("LVal"); + "TypeAnnotation|TSTypeAnnotation|TypeParameterDeclaration|TSTypeParameterDeclaration": path => path.skip() +}; +function collectShadowedParamsNames(param, functionScope, shadowedParams) { + for (const name of Object.keys(param.getBindingIdentifiers())) { + var _functionScope$bindin; + const constantViolations = (_functionScope$bindin = functionScope.bindings[name]) == null ? void 0 : _functionScope$bindin.constantViolations; + if (constantViolations) { + for (const redeclarator of constantViolations) { + const node = redeclarator.node; + switch (node.type) { + case "VariableDeclarator": + { + if (node.init === null) { + const declaration = redeclarator.parentPath; + if (!declaration.parentPath.isFor() || declaration.parentPath.get("body") === declaration) { + redeclarator.remove(); + break; + } + } + shadowedParams.add(name); + break; + } + case "FunctionDeclaration": + shadowedParams.add(name); + break; } - const normal = (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"); - const without = (0, _utils.assertNodeType)("Identifier"); - return function (node, key, val) { - const validator = node.init ? normal : without; - validator(node, key, val); - }; - }() - }, - definite: { - optional: true, - validate: (0, _utils.assertValueType)("boolean") - }, - init: { - optional: true, - validate: (0, _utils.assertNodeType)("Expression") - } - } -}); -defineType("WhileStatement", { - visitor: ["test", "body"], - aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"], - fields: { - test: { - validate: (0, _utils.assertNodeType)("Expression") - }, - body: { - validate: (0, _utils.assertNodeType)("Statement") + } } } -}); -defineType("WithStatement", { - visitor: ["object", "body"], - aliases: ["Statement"], - fields: { - object: { - validate: (0, _utils.assertNodeType)("Expression") - }, - body: { - validate: (0, _utils.assertNodeType)("Statement") - } +} +function buildScopeIIFE(shadowedParams, body) { + const args = []; + const params = []; + for (const name of shadowedParams) { + args.push(_core.types.identifier(name)); + params.push(_core.types.identifier(name)); } -}); -defineType("AssignmentPattern", { - visitor: ["left", "right", "decorators"], - builder: ["left", "right"], - aliases: ["Pattern", "PatternLike", "LVal"], - fields: Object.assign({}, patternLikeCommon(), { - left: { - validate: (0, _utils.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") - }, - right: { - validate: (0, _utils.assertNodeType)("Expression") - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true - } - }) -}); -defineType("ArrayPattern", { - visitor: ["elements", "typeAnnotation"], - builder: ["elements"], - aliases: ["Pattern", "PatternLike", "LVal"], - fields: Object.assign({}, patternLikeCommon(), { - elements: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "PatternLike", "LVal"))) - } - }) -}); -defineType("ArrowFunctionExpression", { - builder: ["params", "body", "async"], - visitor: ["params", "body", "returnType", "typeParameters"], - aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], - fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), { - expression: { - validate: (0, _utils.assertValueType)("boolean") - }, - body: { - validate: (0, _utils.assertNodeType)("BlockStatement", "Expression") - }, - predicate: { - validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"), - optional: true + return _core.types.returnStatement(_core.types.callExpression(_core.types.arrowFunctionExpression(params, body), args)); +} + +//# sourceMappingURL=shadow-utils.js.map + + +/***/ }), + +/***/ 15351: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperCreateClassFeaturesPlugin = __nccwpck_require__(42137); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ + name: "transform-private-methods", + api, + feature: _helperCreateClassFeaturesPlugin.FEATURES.privateMethods, + loose: options.loose, + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("classPrivateMethods"); } - }) + }); }); -defineType("ClassBody", { - visitor: ["body"], - fields: { - body: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock"))) + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 22245: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperCreateClassFeaturesPlugin = __nccwpck_require__(42137); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, opt) => { + api.assertVersion(7); + const { + types: t, + template + } = api; + const { + loose + } = opt; + const classWeakSets = new WeakMap(); + const fieldsWeakSets = new WeakMap(); + function unshadow(name, targetScope, scope) { + while (scope !== targetScope) { + if (scope.hasOwnBinding(name)) scope.rename(name); + scope = scope.parent; } } -}); -defineType("ClassExpression", { - builder: ["id", "superClass", "body", "decorators"], - visitor: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators"], - aliases: ["Scopable", "Class", "Expression"], - fields: { - id: { - validate: (0, _utils.assertNodeType)("Identifier"), - optional: true - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), - optional: true - }, - body: { - validate: (0, _utils.assertNodeType)("ClassBody") - }, - superClass: { - optional: true, - validate: (0, _utils.assertNodeType)("Expression") - }, - superTypeParameters: { - validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), - optional: true - }, - implements: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments", "ClassImplements"))), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true - }, - mixins: { - validate: (0, _utils.assertNodeType)("InterfaceExtends"), - optional: true + function injectToFieldInit(fieldPath, expr, before = false) { + if (fieldPath.node.value) { + const value = fieldPath.get("value"); + if (before) { + value.insertBefore(expr); + } else { + value.insertAfter(expr); + } + } else { + fieldPath.set("value", t.unaryExpression("void", expr)); } } -}); -defineType("ClassDeclaration", { - inherits: "ClassExpression", - aliases: ["Scopable", "Class", "Statement", "Declaration"], - fields: { - id: { - validate: (0, _utils.assertNodeType)("Identifier") - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), - optional: true - }, - body: { - validate: (0, _utils.assertNodeType)("ClassBody") - }, - superClass: { - optional: true, - validate: (0, _utils.assertNodeType)("Expression") - }, - superTypeParameters: { - validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), - optional: true - }, - implements: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments", "ClassImplements"))), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true - }, - mixins: { - validate: (0, _utils.assertNodeType)("InterfaceExtends"), - optional: true - }, - declare: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - abstract: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - } - }, - validate: function () { - const identifier = (0, _utils.assertNodeType)("Identifier"); - return function (parent, key, node) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (!(0, _is.default)("ExportDefaultDeclaration", parent)) { - identifier(node, "id", node.id); + function injectInitialization(classPath, init) { + let firstFieldPath; + let constructorPath; + for (const el of classPath.get("body.body")) { + if ((el.isClassProperty() || el.isClassPrivateProperty()) && !el.node.static) { + firstFieldPath = el; + break; + } + if (!constructorPath && el.isClassMethod({ + kind: "constructor" + })) { + constructorPath = el; } - }; - }() -}); -defineType("ExportAllDeclaration", { - visitor: ["source"], - aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], - fields: { - source: { - validate: (0, _utils.assertNodeType)("StringLiteral") - }, - exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value")), - assertions: { - optional: true, - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute"))) } - } -}); -defineType("ExportDefaultDeclaration", { - visitor: ["declaration"], - aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], - fields: { - declaration: { - validate: (0, _utils.assertNodeType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression") - }, - exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("value")) - } -}); -defineType("ExportNamedDeclaration", { - visitor: ["declaration", "specifiers", "source"], - aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], - fields: { - declaration: { - optional: true, - validate: (0, _utils.chain)((0, _utils.assertNodeType)("Declaration"), Object.assign(function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (val && node.specifiers.length) { - throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration"); - } - }, { - oneOfNodeTypes: ["Declaration"] - }), function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (val && node.source) { - throw new TypeError("Cannot export a declaration from a source"); - } - }) - }, - assertions: { - optional: true, - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute"))) - }, - specifiers: { - default: [], - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)(function () { - const sourced = (0, _utils.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"); - const sourceless = (0, _utils.assertNodeType)("ExportSpecifier"); - if (!process.env.BABEL_TYPES_8_BREAKING) return sourced; - return function (node, key, val) { - const validator = node.source ? sourced : sourceless; - validator(node, key, val); - }; - }())) - }, - source: { - validate: (0, _utils.assertNodeType)("StringLiteral"), - optional: true - }, - exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value")) - } -}); -defineType("ExportSpecifier", { - visitor: ["local", "exported"], - aliases: ["ModuleSpecifier"], - fields: { - local: { - validate: (0, _utils.assertNodeType)("Identifier") - }, - exported: { - validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral") - }, - exportKind: { - validate: (0, _utils.assertOneOf)("type", "value"), - optional: true + if (firstFieldPath) { + injectToFieldInit(firstFieldPath, init, true); + } else { + (0, _helperCreateClassFeaturesPlugin.injectInitialization)(classPath, constructorPath, [t.expressionStatement(init)]); } } -}); -defineType("ForOfStatement", { - visitor: ["left", "right", "body"], - builder: ["left", "right", "body", "await"], - aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], - fields: { - left: { - validate: function () { - if (!process.env.BABEL_TYPES_8_BREAKING) { - return (0, _utils.assertNodeType)("VariableDeclaration", "LVal"); - } - const declaration = (0, _utils.assertNodeType)("VariableDeclaration"); - const lval = (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"); - return function (node, key, val) { - if ((0, _is.default)("VariableDeclaration", val)) { - declaration(node, key, val); - } else { - lval(node, key, val); - } - }; - }() - }, - right: { - validate: (0, _utils.assertNodeType)("Expression") - }, - body: { - validate: (0, _utils.assertNodeType)("Statement") - }, - await: { - default: false + function getWeakSetId(weakSets, outerClass, reference, name = "", inject) { + let id = weakSets.get(reference.node); + if (!id) { + id = outerClass.scope.generateUidIdentifier(`${name || ""} brandCheck`); + weakSets.set(reference.node, id); + inject(reference, template.expression.ast`${t.cloneNode(id)}.add(this)`); + const newExpr = t.newExpression(t.identifier("WeakSet"), []); + (0, _helperAnnotateAsPure.default)(newExpr); + outerClass.insertBefore(template.ast`var ${id} = ${newExpr}`); } + return t.cloneNode(id); } -}); -defineType("ImportDeclaration", { - visitor: ["specifiers", "source"], - aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"], - fields: { - assertions: { - optional: true, - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute"))) - }, - module: { - optional: true, - validate: (0, _utils.assertValueType)("boolean") - }, - specifiers: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"))) - }, - source: { - validate: (0, _utils.assertNodeType)("StringLiteral") + return { + name: "transform-private-property-in-object", + inherits: (__nccwpck_require__(52495)["default"]), + pre() { + (0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.privateIn, loose); }, - importKind: { - validate: (0, _utils.assertOneOf)("type", "typeof", "value"), - optional: true + visitor: { + BinaryExpression(path, state) { + const { + node + } = path; + const { + file + } = state; + if (node.operator !== "in") return; + if (!t.isPrivateName(node.left)) return; + const { + name + } = node.left.id; + let privateElement; + const outerClass = path.findParent(path => { + if (!path.isClass()) return false; + privateElement = path.get("body.body").find(({ + node + }) => t.isPrivate(node) && node.key.id.name === name); + return !!privateElement; + }); + if (outerClass.parentPath.scope.path.isPattern()) { + outerClass.replaceWith(template.ast`(() => ${outerClass.node})()`); + return; + } + if (privateElement.node.type === "ClassPrivateMethod") { + if (privateElement.node.static) { + if (outerClass.node.id) { + unshadow(outerClass.node.id.name, outerClass.scope, path.scope); + } else { + outerClass.set("id", path.scope.generateUidIdentifier("class")); + } + path.replaceWith(template.expression.ast` + ${t.cloneNode(outerClass.node.id)} === ${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)} + `); + } else { + var _outerClass$node$id; + const id = getWeakSetId(classWeakSets, outerClass, outerClass, (_outerClass$node$id = outerClass.node.id) == null ? void 0 : _outerClass$node$id.name, injectInitialization); + path.replaceWith(template.expression.ast`${id}.has(${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)})`); + } + } else { + const id = getWeakSetId(fieldsWeakSets, outerClass, privateElement, privateElement.node.key.id.name, injectToFieldInit); + path.replaceWith(template.expression.ast`${id}.has(${(0, _helperCreateClassFeaturesPlugin.buildCheckInRHS)(node.right, file)})`); + } + } } - } + }; }); -defineType("ImportDefaultSpecifier", { - visitor: ["local"], - aliases: ["ModuleSpecifier"], - fields: { - local: { - validate: (0, _utils.assertNodeType)("Identifier") + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 29678: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-property-literals", + visitor: { + ObjectProperty: { + exit({ + node + }) { + const key = node.key; + if (!node.computed && _core.types.isIdentifier(key) && !_core.types.isValidES3Identifier(key.name)) { + node.key = _core.types.stringLiteral(key.name); + } + } + } } - } + }; }); -defineType("ImportNamespaceSpecifier", { - visitor: ["local"], - aliases: ["ModuleSpecifier"], - fields: { - local: { - validate: (0, _utils.assertNodeType)("Identifier") + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 31194: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _path = __nccwpck_require__(71017); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + function addDisplayName(id, call) { + const props = call.arguments[0].properties; + let safe = true; + for (let i = 0; i < props.length; i++) { + const prop = props[i]; + if (_core.types.isSpreadElement(prop)) { + continue; + } + const key = _core.types.toComputedKey(prop); + if (_core.types.isStringLiteral(key, { + value: "displayName" + })) { + safe = false; + break; + } + } + if (safe) { + props.unshift(_core.types.objectProperty(_core.types.identifier("displayName"), _core.types.stringLiteral(id))); } } -}); -defineType("ImportSpecifier", { - visitor: ["local", "imported"], - aliases: ["ModuleSpecifier"], - fields: { - local: { - validate: (0, _utils.assertNodeType)("Identifier") - }, - imported: { - validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral") - }, - importKind: { - validate: (0, _utils.assertOneOf)("type", "typeof", "value"), - optional: true + const isCreateClassCallExpression = _core.types.buildMatchMemberExpression("React.createClass"); + const isCreateClassAddon = callee => _core.types.isIdentifier(callee, { + name: "createReactClass" + }); + function isCreateClass(node) { + if (!node || !_core.types.isCallExpression(node)) return false; + if (!isCreateClassCallExpression(node.callee) && !isCreateClassAddon(node.callee)) { + return false; } + const args = node.arguments; + if (args.length !== 1) return false; + const first = args[0]; + if (!_core.types.isObjectExpression(first)) return false; + return true; } -}); -defineType("MetaProperty", { - visitor: ["meta", "property"], - aliases: ["Expression"], - fields: { - meta: { - validate: (0, _utils.chain)((0, _utils.assertNodeType)("Identifier"), Object.assign(function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - let property; - switch (val.name) { - case "function": - property = "sent"; - break; - case "new": - property = "target"; - break; - case "import": - property = "meta"; - break; + return { + name: "transform-react-display-name", + visitor: { + ExportDefaultDeclaration({ + node + }, state) { + if (isCreateClass(node.declaration)) { + const filename = state.filename || "unknown"; + let displayName = _path.basename(filename, _path.extname(filename)); + if (displayName === "index") { + displayName = _path.basename(_path.dirname(filename)); + } + addDisplayName(displayName, node.declaration); } - if (!(0, _is.default)("Identifier", node.property, { - name: property - })) { - throw new TypeError("Unrecognised MetaProperty"); + }, + CallExpression(path) { + const { + node + } = path; + if (!isCreateClass(node)) return; + let id; + path.find(function (path) { + if (path.isAssignmentExpression()) { + id = path.node.left; + } else if (path.isObjectProperty()) { + id = path.node.key; + } else if (path.isVariableDeclarator()) { + id = path.node.id; + } else if (path.isStatement()) { + return true; + } + if (id) return true; + }); + if (!id) return; + if (_core.types.isMemberExpression(id)) { + id = id.property; } - }, { - oneOfNodeTypes: ["Identifier"] - })) - }, - property: { - validate: (0, _utils.assertNodeType)("Identifier") + if (_core.types.isIdentifier(id)) { + addDisplayName(id.name, node); + } + } } - } -}); -const classMethodOrPropertyCommon = () => ({ - abstract: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - accessibility: { - validate: (0, _utils.assertOneOf)("public", "private", "protected"), - optional: true - }, - static: { - default: false - }, - override: { - default: false - }, - computed: { - default: false - }, - optional: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - key: { - validate: (0, _utils.chain)(function () { - const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral"); - const computed = (0, _utils.assertNodeType)("Expression"); - return function (node, key, val) { - const validator = node.computed ? computed : normal; - validator(node, key, val); - }; - }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression")) - } + }; }); -exports.classMethodOrPropertyCommon = classMethodOrPropertyCommon; -const classMethodOrDeclareMethodCommon = () => Object.assign({}, functionCommon(), classMethodOrPropertyCommon(), { - params: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier", "Pattern", "RestElement", "TSParameterProperty"))) - }, - kind: { - validate: (0, _utils.assertOneOf)("get", "set", "method", "constructor"), - default: "method" - }, - access: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 85205: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: function () { + return _development.default; } -}); -exports.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon; -defineType("ClassMethod", { - aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"], - builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"], - visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], - fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), { - body: { - validate: (0, _utils.assertNodeType)("BlockStatement") +})); +var _development = __nccwpck_require__(87348); + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 18226: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = createPlugin; +var _pluginSyntaxJsx = __nccwpck_require__(41594); +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _helperModuleImports = __nccwpck_require__(52408); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +const DEFAULT = { + importSource: "react", + runtime: "automatic", + pragma: "React.createElement", + pragmaFrag: "React.Fragment" +}; +const JSX_SOURCE_ANNOTATION_REGEX = /^\s*\*?\s*@jsxImportSource\s+([^\s]+)\s*$/m; +const JSX_RUNTIME_ANNOTATION_REGEX = /^\s*\*?\s*@jsxRuntime\s+([^\s]+)\s*$/m; +const JSX_ANNOTATION_REGEX = /^\s*\*?\s*@jsx\s+([^\s]+)\s*$/m; +const JSX_FRAG_ANNOTATION_REGEX = /^\s*\*?\s*@jsxFrag\s+([^\s]+)\s*$/m; +const get = (pass, name) => pass.get(`@babel/plugin-react-jsx/${name}`); +const set = (pass, name, v) => pass.set(`@babel/plugin-react-jsx/${name}`, v); +function hasProto(node) { + return node.properties.some(value => _core.types.isObjectProperty(value, { + computed: false, + shorthand: false + }) && (_core.types.isIdentifier(value.key, { + name: "__proto__" + }) || _core.types.isStringLiteral(value.key, { + value: "__proto__" + }))); +} +function createPlugin({ + name, + development +}) { + return (0, _helperPluginUtils.declare)((_, options) => { + const { + pure: PURE_ANNOTATION, + throwIfNamespace = true, + filter, + runtime: RUNTIME_DEFAULT = development ? "automatic" : "classic", + importSource: IMPORT_SOURCE_DEFAULT = DEFAULT.importSource, + pragma: PRAGMA_DEFAULT = DEFAULT.pragma, + pragmaFrag: PRAGMA_FRAG_DEFAULT = DEFAULT.pragmaFrag + } = options; + { + var { + useSpread = false, + useBuiltIns = false + } = options; + if (RUNTIME_DEFAULT === "classic") { + if (typeof useSpread !== "boolean") { + throw new Error("transform-react-jsx currently only accepts a boolean option for " + "useSpread (defaults to false)"); + } + if (typeof useBuiltIns !== "boolean") { + throw new Error("transform-react-jsx currently only accepts a boolean option for " + "useBuiltIns (defaults to false)"); + } + if (useSpread && useBuiltIns) { + throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread " + "but not both"); + } + } } - }) -}); -defineType("ObjectPattern", { - visitor: ["properties", "typeAnnotation", "decorators"], - builder: ["properties"], - aliases: ["Pattern", "PatternLike", "LVal"], - fields: Object.assign({}, patternLikeCommon(), { - properties: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("RestElement", "ObjectProperty"))) + const injectMetaPropertiesVisitor = { + JSXOpeningElement(path, state) { + const attributes = []; + if (isThisAllowed(path.scope)) { + attributes.push(_core.types.jsxAttribute(_core.types.jsxIdentifier("__self"), _core.types.jsxExpressionContainer(_core.types.thisExpression()))); + } + attributes.push(_core.types.jsxAttribute(_core.types.jsxIdentifier("__source"), _core.types.jsxExpressionContainer(makeSource(path, state)))); + path.pushContainer("attributes", attributes); + } + }; + return { + name, + inherits: _pluginSyntaxJsx.default, + visitor: { + JSXNamespacedName(path) { + if (throwIfNamespace) { + throw path.buildCodeFrameError(`Namespace tags are not supported by default. React's JSX doesn't support namespace tags. \ +You can set \`throwIfNamespace: false\` to bypass this warning.`); + } + }, + JSXSpreadChild(path) { + throw path.buildCodeFrameError("Spread children are not supported in React."); + }, + Program: { + enter(path, state) { + const { + file + } = state; + let runtime = RUNTIME_DEFAULT; + let source = IMPORT_SOURCE_DEFAULT; + let pragma = PRAGMA_DEFAULT; + let pragmaFrag = PRAGMA_FRAG_DEFAULT; + let sourceSet = !!options.importSource; + let pragmaSet = !!options.pragma; + let pragmaFragSet = !!options.pragmaFrag; + if (file.ast.comments) { + for (const comment of file.ast.comments) { + const sourceMatches = JSX_SOURCE_ANNOTATION_REGEX.exec(comment.value); + if (sourceMatches) { + source = sourceMatches[1]; + sourceSet = true; + } + const runtimeMatches = JSX_RUNTIME_ANNOTATION_REGEX.exec(comment.value); + if (runtimeMatches) { + runtime = runtimeMatches[1]; + } + const jsxMatches = JSX_ANNOTATION_REGEX.exec(comment.value); + if (jsxMatches) { + pragma = jsxMatches[1]; + pragmaSet = true; + } + const jsxFragMatches = JSX_FRAG_ANNOTATION_REGEX.exec(comment.value); + if (jsxFragMatches) { + pragmaFrag = jsxFragMatches[1]; + pragmaFragSet = true; + } + } + } + set(state, "runtime", runtime); + if (runtime === "classic") { + if (sourceSet) { + throw path.buildCodeFrameError(`importSource cannot be set when runtime is classic.`); + } + const createElement = toMemberExpression(pragma); + const fragment = toMemberExpression(pragmaFrag); + set(state, "id/createElement", () => _core.types.cloneNode(createElement)); + set(state, "id/fragment", () => _core.types.cloneNode(fragment)); + set(state, "defaultPure", pragma === DEFAULT.pragma); + } else if (runtime === "automatic") { + if (pragmaSet || pragmaFragSet) { + throw path.buildCodeFrameError(`pragma and pragmaFrag cannot be set when runtime is automatic.`); + } + const define = (name, id) => set(state, name, createImportLazily(state, path, id, source)); + define("id/jsx", development ? "jsxDEV" : "jsx"); + define("id/jsxs", development ? "jsxDEV" : "jsxs"); + define("id/createElement", "createElement"); + define("id/fragment", "Fragment"); + set(state, "defaultPure", source === DEFAULT.importSource); + } else { + throw path.buildCodeFrameError(`Runtime must be either "classic" or "automatic".`); + } + if (development) { + path.traverse(injectMetaPropertiesVisitor, state); + } + } + }, + JSXFragment: { + exit(path, file) { + let callExpr; + if (get(file, "runtime") === "classic") { + callExpr = buildCreateElementFragmentCall(path, file); + } else { + callExpr = buildJSXFragmentCall(path, file); + } + path.replaceWith(_core.types.inherits(callExpr, path.node)); + } + }, + JSXElement: { + exit(path, file) { + let callExpr; + if (get(file, "runtime") === "classic" || shouldUseCreateElement(path)) { + callExpr = buildCreateElementCall(path, file); + } else { + callExpr = buildJSXElementCall(path, file); + } + path.replaceWith(_core.types.inherits(callExpr, path.node)); + } + }, + JSXAttribute(path) { + if (_core.types.isJSXElement(path.node.value)) { + path.node.value = _core.types.jsxExpressionContainer(path.node.value); + } + } + } + }; + function isDerivedClass(classPath) { + return classPath.node.superClass !== null; } - }) -}); -defineType("SpreadElement", { - visitor: ["argument"], - aliases: ["UnaryLike"], - deprecatedAlias: "SpreadProperty", - fields: { - argument: { - validate: (0, _utils.assertNodeType)("Expression") + function isThisAllowed(scope) { + do { + const { + path + } = scope; + if (path.isFunctionParent() && !path.isArrowFunctionExpression()) { + if (!path.isMethod()) { + return true; + } + if (path.node.kind !== "constructor") { + return true; + } + return !isDerivedClass(path.parentPath.parentPath); + } + if (path.isTSModuleBlock()) { + return false; + } + } while (scope = scope.parent); + return true; } - } -}); -defineType("Super", { - aliases: ["Expression"] -}); -defineType("TaggedTemplateExpression", { - visitor: ["tag", "quasi", "typeParameters"], - builder: ["tag", "quasi"], - aliases: ["Expression"], - fields: { - tag: { - validate: (0, _utils.assertNodeType)("Expression") - }, - quasi: { - validate: (0, _utils.assertNodeType)("TemplateLiteral") - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), - optional: true + function call(pass, name, args) { + const node = _core.types.callExpression(get(pass, `id/${name}`)(), args); + if (PURE_ANNOTATION != null ? PURE_ANNOTATION : get(pass, "defaultPure")) (0, _helperAnnotateAsPure.default)(node); + return node; } - } -}); -defineType("TemplateElement", { - builder: ["value", "tail"], - fields: { - value: { - validate: (0, _utils.chain)((0, _utils.assertShape)({ - raw: { - validate: (0, _utils.assertValueType)("string") - }, - cooked: { - validate: (0, _utils.assertValueType)("string"), - optional: true + function shouldUseCreateElement(path) { + const openingPath = path.get("openingElement"); + const attributes = openingPath.node.attributes; + let seenPropsSpread = false; + for (let i = 0; i < attributes.length; i++) { + const attr = attributes[i]; + if (seenPropsSpread && _core.types.isJSXAttribute(attr) && attr.name.name === "key") { + return true; + } else if (_core.types.isJSXSpreadAttribute(attr)) { + seenPropsSpread = true; } - }), function templateElementCookedValidator(node) { - const raw = node.value.raw; - let unterminatedCalled = false; - const error = () => { - throw new Error("Internal @babel/types error."); - }; - const { - str, - firstInvalidLoc - } = (0, _helperStringParser.readStringContents)("template", raw, 0, 0, 0, { - unterminated() { - unterminatedCalled = true; - }, - strictNumericEscape: error, - invalidEscapeSequence: error, - numericSeparatorInEscapeSequence: error, - unexpectedNumericSeparator: error, - invalidDigit: error, - invalidCodePoint: error - }); - if (!unterminatedCalled) throw new Error("Invalid raw"); - node.value.cooked = firstInvalidLoc ? null : str; - }) - }, - tail: { - default: false + } + return false; } - } -}); -defineType("TemplateLiteral", { - visitor: ["quasis", "expressions"], - aliases: ["Expression", "Literal"], - fields: { - quasis: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TemplateElement"))) - }, - expressions: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "TSType")), function (node, key, val) { - if (node.quasis.length !== val.length + 1) { - throw new TypeError(`Number of ${node.type} quasis should be exactly one more than the number of expressions.\nExpected ${val.length + 1} quasis but got ${node.quasis.length}`); + function convertJSXIdentifier(node, parent) { + if (_core.types.isJSXIdentifier(node)) { + if (node.name === "this" && _core.types.isReferenced(node, parent)) { + return _core.types.thisExpression(); + } else if (_core.types.isValidIdentifier(node.name, false)) { + node.type = "Identifier"; + return node; + } else { + return _core.types.stringLiteral(node.name); } - }) + } else if (_core.types.isJSXMemberExpression(node)) { + return _core.types.memberExpression(convertJSXIdentifier(node.object, node), convertJSXIdentifier(node.property, node)); + } else if (_core.types.isJSXNamespacedName(node)) { + return _core.types.stringLiteral(`${node.namespace.name}:${node.name.name}`); + } + return node; } - } -}); -defineType("YieldExpression", { - builder: ["argument", "delegate"], - visitor: ["argument"], - aliases: ["Expression", "Terminatorless"], - fields: { - delegate: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, val) { - if (!process.env.BABEL_TYPES_8_BREAKING) return; - if (val && !node.argument) { - throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument"); + function convertAttributeValue(node) { + if (_core.types.isJSXExpressionContainer(node)) { + return node.expression; + } else { + return node; + } + } + function accumulateAttribute(array, attribute) { + if (_core.types.isJSXSpreadAttribute(attribute.node)) { + const arg = attribute.node.argument; + if (_core.types.isObjectExpression(arg) && !hasProto(arg)) { + array.push(...arg.properties); + } else { + array.push(_core.types.spreadElement(arg)); } - }, { - type: "boolean" - })), - default: false - }, - argument: { - optional: true, - validate: (0, _utils.assertNodeType)("Expression") + return array; + } + const value = convertAttributeValue(attribute.node.name.name !== "key" ? attribute.node.value || _core.types.booleanLiteral(true) : attribute.node.value); + if (attribute.node.name.name === "key" && value === null) { + throw attribute.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.'); + } + if (_core.types.isStringLiteral(value) && !_core.types.isJSXExpressionContainer(attribute.node.value)) { + var _value$extra; + value.value = value.value.replace(/\n\s+/g, " "); + (_value$extra = value.extra) == null || delete _value$extra.raw; + } + if (_core.types.isJSXNamespacedName(attribute.node.name)) { + attribute.node.name = _core.types.stringLiteral(attribute.node.name.namespace.name + ":" + attribute.node.name.name.name); + } else if (_core.types.isValidIdentifier(attribute.node.name.name, false)) { + attribute.node.name.type = "Identifier"; + } else { + attribute.node.name = _core.types.stringLiteral(attribute.node.name.name); + } + array.push(_core.types.inherits(_core.types.objectProperty(attribute.node.name, value), attribute.node)); + return array; } - } -}); -defineType("AwaitExpression", { - builder: ["argument"], - visitor: ["argument"], - aliases: ["Expression", "Terminatorless"], - fields: { - argument: { - validate: (0, _utils.assertNodeType)("Expression") + function buildChildrenProperty(children) { + let childrenNode; + if (children.length === 1) { + childrenNode = children[0]; + } else if (children.length > 1) { + childrenNode = _core.types.arrayExpression(children); + } else { + return undefined; + } + return _core.types.objectProperty(_core.types.identifier("children"), childrenNode); } - } -}); -defineType("Import", { - aliases: ["Expression"] -}); -defineType("BigIntLiteral", { - builder: ["value"], - fields: { - value: { - validate: (0, _utils.assertValueType)("string") + function buildJSXElementCall(path, file) { + const openingPath = path.get("openingElement"); + const args = [getTag(openingPath)]; + const attribsArray = []; + const extracted = Object.create(null); + for (const attr of openingPath.get("attributes")) { + if (attr.isJSXAttribute() && _core.types.isJSXIdentifier(attr.node.name)) { + const { + name + } = attr.node.name; + switch (name) { + case "__source": + case "__self": + if (extracted[name]) throw sourceSelfError(path, name); + case "key": + { + const keyValue = convertAttributeValue(attr.node.value); + if (keyValue === null) { + throw attr.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.'); + } + extracted[name] = keyValue; + break; + } + default: + attribsArray.push(attr); + } + } else { + attribsArray.push(attr); + } + } + const children = _core.types.react.buildChildren(path.node); + let attribs; + if (attribsArray.length || children.length) { + attribs = buildJSXOpeningElementAttributes(attribsArray, children); + } else { + attribs = _core.types.objectExpression([]); + } + args.push(attribs); + if (development) { + var _extracted$key; + args.push((_extracted$key = extracted.key) != null ? _extracted$key : path.scope.buildUndefinedNode(), _core.types.booleanLiteral(children.length > 1)); + if (extracted.__source) { + args.push(extracted.__source); + if (extracted.__self) args.push(extracted.__self); + } else if (extracted.__self) { + args.push(path.scope.buildUndefinedNode(), extracted.__self); + } + } else if (extracted.key !== undefined) { + args.push(extracted.key); + } + return call(file, children.length > 1 ? "jsxs" : "jsx", args); } - }, - aliases: ["Expression", "Pureish", "Literal", "Immutable"] -}); -defineType("ExportNamespaceSpecifier", { - visitor: ["exported"], - aliases: ["ModuleSpecifier"], - fields: { - exported: { - validate: (0, _utils.assertNodeType)("Identifier") + function buildJSXOpeningElementAttributes(attribs, children) { + const props = attribs.reduce(accumulateAttribute, []); + if ((children == null ? void 0 : children.length) > 0) { + props.push(buildChildrenProperty(children)); + } + return _core.types.objectExpression(props); } - } -}); -defineType("OptionalMemberExpression", { - builder: ["object", "property", "computed", "optional"], - visitor: ["object", "property"], - aliases: ["Expression"], - fields: { - object: { - validate: (0, _utils.assertNodeType)("Expression") - }, - property: { - validate: function () { - const normal = (0, _utils.assertNodeType)("Identifier"); - const computed = (0, _utils.assertNodeType)("Expression"); - const validator = Object.assign(function (node, key, val) { - const validator = node.computed ? computed : normal; - validator(node, key, val); - }, { - oneOfNodeTypes: ["Expression", "Identifier"] - }); - return validator; - }() - }, - computed: { - default: false - }, - optional: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)()) + function buildJSXFragmentCall(path, file) { + const args = [get(file, "id/fragment")()]; + const children = _core.types.react.buildChildren(path.node); + args.push(_core.types.objectExpression(children.length > 0 ? [buildChildrenProperty(children)] : [])); + if (development) { + args.push(path.scope.buildUndefinedNode(), _core.types.booleanLiteral(children.length > 1)); + } + return call(file, children.length > 1 ? "jsxs" : "jsx", args); } - } -}); -defineType("OptionalCallExpression", { - visitor: ["callee", "arguments", "typeParameters", "typeArguments"], - builder: ["callee", "arguments", "optional"], - aliases: ["Expression"], - fields: { - callee: { - validate: (0, _utils.assertNodeType)("Expression") - }, - arguments: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName", "ArgumentPlaceholder"))) - }, - optional: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)()) - }, - typeArguments: { - validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"), - optional: true - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"), - optional: true + function buildCreateElementFragmentCall(path, file) { + if (filter && !filter(path.node, file)) return; + return call(file, "createElement", [get(file, "id/fragment")(), _core.types.nullLiteral(), ..._core.types.react.buildChildren(path.node)]); } - } -}); -defineType("ClassProperty", { - visitor: ["key", "value", "typeAnnotation", "decorators"], - builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], - aliases: ["Property"], - fields: Object.assign({}, classMethodOrPropertyCommon(), { - value: { - validate: (0, _utils.assertNodeType)("Expression"), - optional: true - }, - definite: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - typeAnnotation: { - validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true - }, - readonly: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - declare: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - variance: { - validate: (0, _utils.assertNodeType)("Variance"), - optional: true + function buildCreateElementCall(path, file) { + const openingPath = path.get("openingElement"); + return call(file, "createElement", [getTag(openingPath), buildCreateElementOpeningElementAttributes(file, path, openingPath.get("attributes")), ..._core.types.react.buildChildren(path.node)]); } - }) -}); -defineType("ClassAccessorProperty", { - visitor: ["key", "value", "typeAnnotation", "decorators"], - builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], - aliases: ["Property", "Accessor"], - fields: Object.assign({}, classMethodOrPropertyCommon(), { - key: { - validate: (0, _utils.chain)(function () { - const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"); - const computed = (0, _utils.assertNodeType)("Expression"); - return function (node, key, val) { - const validator = node.computed ? computed : normal; - validator(node, key, val); - }; - }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName")) - }, - value: { - validate: (0, _utils.assertNodeType)("Expression"), - optional: true - }, - definite: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - typeAnnotation: { - validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true - }, - readonly: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - declare: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - variance: { - validate: (0, _utils.assertNodeType)("Variance"), - optional: true + function getTag(openingPath) { + const tagExpr = convertJSXIdentifier(openingPath.node.name, openingPath.node); + let tagName; + if (_core.types.isIdentifier(tagExpr)) { + tagName = tagExpr.name; + } else if (_core.types.isStringLiteral(tagExpr)) { + tagName = tagExpr.value; + } + if (_core.types.react.isCompatTag(tagName)) { + return _core.types.stringLiteral(tagName); + } else { + return tagExpr; + } } - }) -}); -defineType("ClassPrivateProperty", { - visitor: ["key", "value", "decorators", "typeAnnotation"], - builder: ["key", "value", "decorators", "static"], - aliases: ["Property", "Private"], - fields: { - key: { - validate: (0, _utils.assertNodeType)("PrivateName") - }, - value: { - validate: (0, _utils.assertNodeType)("Expression"), - optional: true - }, - typeAnnotation: { - validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true - }, - static: { - validate: (0, _utils.assertValueType)("boolean"), - default: false - }, - readonly: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - definite: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - variance: { - validate: (0, _utils.assertNodeType)("Variance"), - optional: true + function buildCreateElementOpeningElementAttributes(file, path, attribs) { + const runtime = get(file, "runtime"); + { + if (runtime !== "automatic") { + const objs = []; + const props = attribs.reduce(accumulateAttribute, []); + if (!useSpread) { + let start = 0; + props.forEach((prop, i) => { + if (_core.types.isSpreadElement(prop)) { + if (i > start) { + objs.push(_core.types.objectExpression(props.slice(start, i))); + } + objs.push(prop.argument); + start = i + 1; + } + }); + if (props.length > start) { + objs.push(_core.types.objectExpression(props.slice(start))); + } + } else if (props.length) { + objs.push(_core.types.objectExpression(props)); + } + if (!objs.length) { + return _core.types.nullLiteral(); + } + if (objs.length === 1) { + if (!(_core.types.isSpreadElement(props[0]) && _core.types.isObjectExpression(props[0].argument))) { + return objs[0]; + } + } + if (!_core.types.isObjectExpression(objs[0])) { + objs.unshift(_core.types.objectExpression([])); + } + const helper = useBuiltIns ? _core.types.memberExpression(_core.types.identifier("Object"), _core.types.identifier("assign")) : file.addHelper("extends"); + return _core.types.callExpression(helper, objs); + } + } + const props = []; + const found = Object.create(null); + for (const attr of attribs) { + const { + node + } = attr; + const name = _core.types.isJSXAttribute(node) && _core.types.isJSXIdentifier(node.name) && node.name.name; + if (runtime === "automatic" && (name === "__source" || name === "__self")) { + if (found[name]) throw sourceSelfError(path, name); + found[name] = true; + } + accumulateAttribute(props, attr); + } + return props.length === 1 && _core.types.isSpreadElement(props[0]) && !_core.types.isObjectExpression(props[0].argument) ? props[0].argument : props.length > 0 ? _core.types.objectExpression(props) : _core.types.nullLiteral(); + } + }); + function getSource(source, importName) { + switch (importName) { + case "Fragment": + return `${source}/${development ? "jsx-dev-runtime" : "jsx-runtime"}`; + case "jsxDEV": + return `${source}/jsx-dev-runtime`; + case "jsx": + case "jsxs": + return `${source}/jsx-runtime`; + case "createElement": + return source; } } -}); -defineType("ClassPrivateMethod", { - builder: ["kind", "key", "params", "body", "static"], - visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], - aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"], - fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), { - kind: { - validate: (0, _utils.assertOneOf)("get", "set", "method"), - default: "method" - }, - key: { - validate: (0, _utils.assertNodeType)("PrivateName") - }, - body: { - validate: (0, _utils.assertNodeType)("BlockStatement") - } - }) -}); -defineType("PrivateName", { - visitor: ["id"], - aliases: ["Private"], - fields: { - id: { - validate: (0, _utils.assertNodeType)("Identifier") - } + function createImportLazily(pass, path, importName, source) { + return () => { + const actualSource = getSource(source, importName); + if ((0, _helperModuleImports.isModule)(path)) { + let reference = get(pass, `imports/${importName}`); + if (reference) return _core.types.cloneNode(reference); + reference = (0, _helperModuleImports.addNamed)(path, importName, actualSource, { + importedInterop: "uncompiled", + importPosition: "after" + }); + set(pass, `imports/${importName}`, reference); + return reference; + } else { + let reference = get(pass, `requires/${actualSource}`); + if (reference) { + reference = _core.types.cloneNode(reference); + } else { + reference = (0, _helperModuleImports.addNamespace)(path, actualSource, { + importedInterop: "uncompiled" + }); + set(pass, `requires/${actualSource}`, reference); + } + return _core.types.memberExpression(reference, _core.types.identifier(importName)); + } + }; + } +} +function toMemberExpression(id) { + return id.split(".").map(name => _core.types.identifier(name)).reduce((object, property) => _core.types.memberExpression(object, property)); +} +function makeSource(path, state) { + const location = path.node.loc; + if (!location) { + return path.scope.buildUndefinedNode(); } -}); -defineType("StaticBlock", { - visitor: ["body"], - fields: { - body: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) - } - }, - aliases: ["Scopable", "BlockParent", "FunctionParent"] -}); + if (!state.fileNameIdentifier) { + const { + filename = "" + } = state; + const fileNameIdentifier = path.scope.generateUidIdentifier("_jsxFileName"); + path.scope.getProgramParent().push({ + id: fileNameIdentifier, + init: _core.types.stringLiteral(filename) + }); + state.fileNameIdentifier = fileNameIdentifier; + } + return makeTrace(_core.types.cloneNode(state.fileNameIdentifier), location.start.line, location.start.column); +} +function makeTrace(fileNameIdentifier, lineNumber, column0Based) { + const fileLineLiteral = lineNumber != null ? _core.types.numericLiteral(lineNumber) : _core.types.nullLiteral(); + const fileColumnLiteral = column0Based != null ? _core.types.numericLiteral(column0Based + 1) : _core.types.nullLiteral(); + return _core.template.expression.ast`{ + fileName: ${fileNameIdentifier}, + lineNumber: ${fileLineLiteral}, + columnNumber: ${fileColumnLiteral}, + }`; +} +function sourceSelfError(path, name) { + const pluginName = `transform-react-jsx-${name.slice(2)}`; + return path.buildCodeFrameError(`Duplicate ${name} prop found. You are most likely using the deprecated ${pluginName} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`); +} -//# sourceMappingURL=core.js.map +//# sourceMappingURL=create-plugin.js.map /***/ }), -/***/ 29015: -/***/ (function(__unused_webpack_module, exports) { +/***/ 87348: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -132783,653 +72412,1736 @@ defineType("StaticBlock", { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DEPRECATED_ALIASES = void 0; -const DEPRECATED_ALIASES = { - ModuleDeclaration: "ImportOrExportDeclaration" -}; -exports.DEPRECATED_ALIASES = DEPRECATED_ALIASES; +exports["default"] = void 0; +var _createPlugin = __nccwpck_require__(18226); +var _default = exports["default"] = (0, _createPlugin.default)({ + name: "transform-react-jsx/development", + development: true +}); -//# sourceMappingURL=deprecated-aliases.js.map +//# sourceMappingURL=development.js.map /***/ }), -/***/ 52233: -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { +/***/ 59129: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -var _utils = __nccwpck_require__(52203); -(0, _utils.default)("ArgumentPlaceholder", {}); -(0, _utils.default)("BindExpression", { - visitor: ["object", "callee"], - aliases: ["Expression"], - fields: !process.env.BABEL_TYPES_8_BREAKING ? { - object: { - validate: Object.assign(() => {}, { - oneOfNodeTypes: ["Expression"] - }) - }, - callee: { - validate: Object.assign(() => {}, { - oneOfNodeTypes: ["Expression"] - }) - } - } : { - object: { - validate: (0, _utils.assertNodeType)("Expression") - }, - callee: { - validate: (0, _utils.assertNodeType)("Expression") - } - } -}); -(0, _utils.default)("ImportAttribute", { - visitor: ["key", "value"], - fields: { - key: { - validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral") - }, - value: { - validate: (0, _utils.assertNodeType)("StringLiteral") - } - } -}); -(0, _utils.default)("Decorator", { - visitor: ["expression"], - fields: { - expression: { - validate: (0, _utils.assertNodeType)("Expression") - } - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _createPlugin = __nccwpck_require__(18226); +var _default = exports["default"] = (0, _createPlugin.default)({ + name: "transform-react-jsx", + development: false }); -(0, _utils.default)("DoExpression", { - visitor: ["body"], - builder: ["body", "async"], - aliases: ["Expression"], - fields: { - body: { - validate: (0, _utils.assertNodeType)("BlockStatement") - }, - async: { - validate: (0, _utils.assertValueType)("boolean"), - default: false + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 59386: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +var _core = __nccwpck_require__(65258); +const PURE_CALLS = [["react", new Set(["cloneElement", "createContext", "createElement", "createFactory", "createRef", "forwardRef", "isValidElement", "memo", "lazy"])], ["react-dom", new Set(["createPortal"])]]; +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-react-pure-annotations", + visitor: { + CallExpression(path) { + if (isReactCall(path)) { + (0, _helperAnnotateAsPure.default)(path); + } + } } - } + }; }); -(0, _utils.default)("ExportDefaultSpecifier", { - visitor: ["exported"], - aliases: ["ModuleSpecifier"], - fields: { - exported: { - validate: (0, _utils.assertNodeType)("Identifier") +function isReactCall(path) { + const calleePath = path.get("callee"); + if (!calleePath.isMemberExpression()) { + for (const [module, methods] of PURE_CALLS) { + for (const method of methods) { + if (calleePath.referencesImport(module, method)) { + return true; + } + } } + return false; } -}); -(0, _utils.default)("RecordExpression", { - visitor: ["properties"], - aliases: ["Expression"], - fields: { - properties: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectProperty", "SpreadElement"))) + const object = calleePath.get("object"); + const callee = calleePath.node; + if (!callee.computed && _core.types.isIdentifier(callee.property)) { + const propertyName = callee.property.name; + for (const [module, methods] of PURE_CALLS) { + if (object.referencesImport(module, "default") || object.referencesImport(module, "*")) { + return methods.has(propertyName); + } } } -}); -(0, _utils.default)("TupleExpression", { - fields: { - elements: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement"))), - default: [] - } - }, - visitor: ["elements"], - aliases: ["Expression"] -}); -(0, _utils.default)("DecimalLiteral", { - builder: ["value"], - fields: { - value: { - validate: (0, _utils.assertValueType)("string") - } - }, - aliases: ["Expression", "Pureish", "Literal", "Immutable"] -}); -(0, _utils.default)("ModuleExpression", { - visitor: ["body"], - fields: { - body: { - validate: (0, _utils.assertNodeType)("Program") - } - }, - aliases: ["Expression"] -}); -(0, _utils.default)("TopicReference", { - aliases: ["Expression"] -}); -(0, _utils.default)("PipelineTopicExpression", { - builder: ["expression"], - visitor: ["expression"], - fields: { - expression: { - validate: (0, _utils.assertNodeType)("Expression") - } - }, - aliases: ["Expression"] -}); -(0, _utils.default)("PipelineBareFunction", { - builder: ["callee"], - visitor: ["callee"], - fields: { - callee: { - validate: (0, _utils.assertNodeType)("Expression") + return false; +} + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 47755: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _regeneratorTransform = __nccwpck_require__(54888); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(({ + types: t, + assertVersion +}) => { + assertVersion(7); + return { + name: "transform-regenerator", + inherits: _regeneratorTransform.default, + visitor: { + MemberExpression(path) { + { + var _this$availableHelper; + if (!((_this$availableHelper = this.availableHelper) != null && _this$availableHelper.call(this, "regeneratorRuntime"))) { + return; + } + } + const obj = path.get("object"); + if (obj.isIdentifier({ + name: "regeneratorRuntime" + })) { + const helper = this.addHelper("regeneratorRuntime"); + { + if (t.isArrowFunctionExpression(helper)) { + obj.replaceWith(helper.body); + return; + } + } + obj.replaceWith(t.callExpression(helper, [])); + } + } } - }, - aliases: ["Expression"] -}); -(0, _utils.default)("PipelinePrimaryTopicReference", { - aliases: ["Expression"] + }; }); -//# sourceMappingURL=experimental.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 81544: -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { +/***/ 17447: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -var _utils = __nccwpck_require__(52203); -const defineType = (0, _utils.defineAliasedType)("Flow"); -const defineInterfaceishType = name => { - defineType(name, { - builder: ["id", "typeParameters", "extends", "body"], - visitor: ["id", "typeParameters", "extends", "mixins", "implements", "body"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), - extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")), - mixins: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")), - implements: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ClassImplements")), - body: (0, _utils.validateType)("ObjectTypeAnnotation") +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-reserved-words", + visitor: { + "BindingIdentifier|ReferencedIdentifier"(path) { + if (!_core.types.isValidES3Identifier(path.node.name)) { + path.scope.rename(path.node.name); + } + } } - }); -}; -defineType("AnyTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("ArrayTypeAnnotation", { - visitor: ["elementType"], - aliases: ["FlowType"], - fields: { - elementType: (0, _utils.validateType)("FlowType") - } -}); -defineType("BooleanTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("BooleanLiteralTypeAnnotation", { - builder: ["value"], - aliases: ["FlowType"], - fields: { - value: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) - } -}); -defineType("NullLiteralTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("ClassImplements", { - visitor: ["id", "typeParameters"], - fields: { - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation") - } -}); -defineInterfaceishType("DeclareClass"); -defineType("DeclareFunction", { - visitor: ["id"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)("Identifier"), - predicate: (0, _utils.validateOptionalType)("DeclaredPredicate") - } -}); -defineInterfaceishType("DeclareInterface"); -defineType("DeclareModule", { - builder: ["id", "body", "kind"], - visitor: ["id", "body"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)(["Identifier", "StringLiteral"]), - body: (0, _utils.validateType)("BlockStatement"), - kind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("CommonJS", "ES")) - } -}); -defineType("DeclareModuleExports", { - visitor: ["typeAnnotation"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - typeAnnotation: (0, _utils.validateType)("TypeAnnotation") - } -}); -defineType("DeclareTypeAlias", { - visitor: ["id", "typeParameters", "right"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), - right: (0, _utils.validateType)("FlowType") - } -}); -defineType("DeclareOpaqueType", { - visitor: ["id", "typeParameters", "supertype"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), - supertype: (0, _utils.validateOptionalType)("FlowType"), - impltype: (0, _utils.validateOptionalType)("FlowType") - } -}); -defineType("DeclareVariable", { - visitor: ["id"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)("Identifier") - } -}); -defineType("DeclareExportDeclaration", { - visitor: ["declaration", "specifiers", "source"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - declaration: (0, _utils.validateOptionalType)("Flow"), - specifiers: (0, _utils.validateOptional)((0, _utils.arrayOfType)(["ExportSpecifier", "ExportNamespaceSpecifier"])), - source: (0, _utils.validateOptionalType)("StringLiteral"), - default: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean")) - } -}); -defineType("DeclareExportAllDeclaration", { - visitor: ["source"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - source: (0, _utils.validateType)("StringLiteral"), - exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value")) - } -}); -defineType("DeclaredPredicate", { - visitor: ["value"], - aliases: ["FlowPredicate"], - fields: { - value: (0, _utils.validateType)("Flow") - } -}); -defineType("ExistsTypeAnnotation", { - aliases: ["FlowType"] + }; }); -defineType("FunctionTypeAnnotation", { - visitor: ["typeParameters", "params", "rest", "returnType"], - aliases: ["FlowType"], - fields: { - typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), - params: (0, _utils.validate)((0, _utils.arrayOfType)("FunctionTypeParam")), - rest: (0, _utils.validateOptionalType)("FunctionTypeParam"), - this: (0, _utils.validateOptionalType)("FunctionTypeParam"), - returnType: (0, _utils.validateType)("FlowType") + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 43656: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.createCorejs3Plugin = createCorejs3Plugin; +var _babelPluginPolyfillCorejs = __nccwpck_require__(84604); +const pluginCorejs3 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; +const pluginsCompat = "#__secret_key__@babel/runtime__compatibility"; +function createCorejs3Plugin(corejs, absoluteImports) { + let proposals = false; + let rawVersion; + if (typeof corejs === "object" && corejs !== null) { + rawVersion = corejs.version; + proposals = Boolean(corejs.proposals); + } else { + rawVersion = corejs; } -}); -defineType("FunctionTypeParam", { - visitor: ["name", "typeAnnotation"], - fields: { - name: (0, _utils.validateOptionalType)("Identifier"), - typeAnnotation: (0, _utils.validateType)("FlowType"), - optional: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean")) + if (!rawVersion) return null; + const version = rawVersion ? Number(rawVersion) : false; + if (version !== 3) { + throw new Error(`The \`core-js\` version must be 3, but got ${JSON.stringify(rawVersion)}.`); } -}); -defineType("GenericTypeAnnotation", { - visitor: ["id", "typeParameters"], - aliases: ["FlowType"], - fields: { - id: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation") + return (api, _, filename) => pluginCorejs3(api, { + method: "usage-pure", + proposals, + absoluteImports, + [pluginsCompat]: { + useBabelRuntime: true, + ext: "" + } + }, filename); +} + +//# sourceMappingURL=core-js.js.map + + +/***/ }), + +/***/ 24994: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +exports.resolveFSPath = resolveFSPath; +var _path = __nccwpck_require__(71017); +var _module = __nccwpck_require__(98188); +function _default(moduleName, dirname, absoluteRuntime) { + if (absoluteRuntime === false) return moduleName; + return resolveAbsoluteRuntime(moduleName, _path.resolve(dirname, absoluteRuntime === true ? "." : absoluteRuntime)); +} +function resolveAbsoluteRuntime(moduleName, dirname) { + try { + return _path.dirname((((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, { + paths: [b] + }, M = __nccwpck_require__(98188)) => { + let f = M._findPath(r, M._nodeModulePaths(b).concat(b)); + if (f) return f; + f = new Error(`Cannot resolve module '${r}'`); + f.code = "MODULE_NOT_FOUND"; + throw f; + })(`${moduleName}/package.json`, { + paths: [dirname] + })).replace(/\\/g, "/"); + } catch (err) { + if (err.code !== "MODULE_NOT_FOUND") throw err; + throw Object.assign(new Error(`Failed to resolve "${moduleName}" relative to "${dirname}"`), { + code: "BABEL_RUNTIME_NOT_FOUND", + runtime: moduleName, + dirname + }); } -}); -defineType("InferredPredicate", { - aliases: ["FlowPredicate"] -}); -defineType("InterfaceExtends", { - visitor: ["id", "typeParameters"], - fields: { - id: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation") +} +function resolveFSPath(path) { + return require.resolve(path).replace(/\\/g, "/"); +} + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 88949: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.hasMinVersion = hasMinVersion; +var _semver = __nccwpck_require__(72641); +function hasMinVersion(minVersion, runtimeVersion) { + if (!runtimeVersion) return true; + if (_semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`; + return !_semver.intersects(`<${minVersion}`, runtimeVersion) && !_semver.intersects(`>=8.0.0`, runtimeVersion); +} + +//# sourceMappingURL=helpers.js.map + + +/***/ }), + +/***/ 71850: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperModuleImports = __nccwpck_require__(52408); +var _core = __nccwpck_require__(65258); +var _helpers = __nccwpck_require__(88949); +var _index = __nccwpck_require__(24994); +var _coreJs = __nccwpck_require__(43656); +var _index2 = __nccwpck_require__(84062); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options, dirname) => { + var _options$corejs; + api.assertVersion(7); + const { + helpers: useRuntimeHelpers = true, + version: runtimeVersion = "7.0.0-beta.0", + absoluteRuntime = false + } = options; + if (typeof useRuntimeHelpers !== "boolean") { + throw new Error("The 'helpers' option must be undefined, or a boolean."); } -}); -defineInterfaceishType("InterfaceDeclaration"); -defineType("InterfaceTypeAnnotation", { - visitor: ["extends", "body"], - aliases: ["FlowType"], - fields: { - extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")), - body: (0, _utils.validateType)("ObjectTypeAnnotation") + if (typeof absoluteRuntime !== "boolean" && typeof absoluteRuntime !== "string") { + throw new Error("The 'absoluteRuntime' option must be undefined, a boolean, or a string."); } -}); -defineType("IntersectionTypeAnnotation", { - visitor: ["types"], - aliases: ["FlowType"], - fields: { - types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + if (typeof runtimeVersion !== "string") { + throw new Error(`The 'version' option must be a version string.`); } -}); -defineType("MixedTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("EmptyTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("NullableTypeAnnotation", { - visitor: ["typeAnnotation"], - aliases: ["FlowType"], - fields: { - typeAnnotation: (0, _utils.validateType)("FlowType") + { + const DUAL_MODE_RUNTIME = "7.13.0"; + var supportsCJSDefault = (0, _helpers.hasMinVersion)(DUAL_MODE_RUNTIME, runtimeVersion); } -}); -defineType("NumberLiteralTypeAnnotation", { - builder: ["value"], - aliases: ["FlowType"], - fields: { - value: (0, _utils.validate)((0, _utils.assertValueType)("number")) + function has(obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); } -}); -defineType("NumberTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("ObjectTypeAnnotation", { - visitor: ["properties", "indexers", "callProperties", "internalSlots"], - aliases: ["FlowType"], - builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"], - fields: { - properties: (0, _utils.validate)((0, _utils.arrayOfType)(["ObjectTypeProperty", "ObjectTypeSpreadProperty"])), - indexers: { - validate: (0, _utils.arrayOfType)("ObjectTypeIndexer"), - optional: true, - default: [] - }, - callProperties: { - validate: (0, _utils.arrayOfType)("ObjectTypeCallProperty"), - optional: true, - default: [] - }, - internalSlots: { - validate: (0, _utils.arrayOfType)("ObjectTypeInternalSlot"), - optional: true, - default: [] - }, - exact: { - validate: (0, _utils.assertValueType)("boolean"), - default: false - }, - inexact: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean")) + if (has(options, "useBuiltIns")) { + if (options["useBuiltIns"]) { + throw new Error("The 'useBuiltIns' option has been removed. The @babel/runtime " + "module now uses builtins by default."); + } else { + throw new Error("The 'useBuiltIns' option has been removed. Use the 'corejs'" + "option to polyfill with `core-js` via @babel/runtime."); + } } -}); -defineType("ObjectTypeInternalSlot", { - visitor: ["id", "value", "optional", "static", "method"], - aliases: ["UserWhitespacable"], - fields: { - id: (0, _utils.validateType)("Identifier"), - value: (0, _utils.validateType)("FlowType"), - optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - method: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + if (has(options, "polyfill")) { + if (options["polyfill"] === false) { + throw new Error("The 'polyfill' option has been removed. The @babel/runtime " + "module now skips polyfilling by default."); + } else { + throw new Error("The 'polyfill' option has been removed. Use the 'corejs'" + "option to polyfill with `core-js` via @babel/runtime."); + } } -}); -defineType("ObjectTypeCallProperty", { - visitor: ["value"], - aliases: ["UserWhitespacable"], - fields: { - value: (0, _utils.validateType)("FlowType"), - static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + if (has(options, "moduleName")) { + throw new Error("The 'moduleName' option has been removed. @babel/transform-runtime " + "no longer supports arbitrary runtimes. If you were using this to " + "set an absolute path for Babel's standard runtimes, please use the " + "'absoluteRuntime' option."); } -}); -defineType("ObjectTypeIndexer", { - visitor: ["id", "key", "value", "variance"], - aliases: ["UserWhitespacable"], - fields: { - id: (0, _utils.validateOptionalType)("Identifier"), - key: (0, _utils.validateType)("FlowType"), - value: (0, _utils.validateType)("FlowType"), - static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - variance: (0, _utils.validateOptionalType)("Variance") + ; + { + const { + useESModules = false + } = options; + if (typeof useESModules !== "boolean" && useESModules !== "auto") { + throw new Error("The 'useESModules' option must be undefined, or a boolean, or 'auto'."); + } + var esModules = useESModules === "auto" ? api.caller(caller => !!(caller != null && caller.supportsStaticESM)) : useESModules; } + const HEADER_HELPERS = ["interopRequireWildcard", "interopRequireDefault"]; + return { + name: "transform-runtime", + inherits: _index2.createPolyfillPlugins(options, runtimeVersion, absoluteRuntime, options.corejs === 3 || ((_options$corejs = options.corejs) == null ? void 0 : _options$corejs.version) === 3 ? (0, _coreJs.createCorejs3Plugin)(options.corejs, absoluteRuntime) : null), + pre(file) { + if (!useRuntimeHelpers) return; + let modulePath; + file.set("helperGenerator", name => { + var _modulePath, _file$get; + (_modulePath = modulePath) != null ? _modulePath : modulePath = (0, _index.default)((_file$get = file.get("runtimeHelpersModuleName")) != null ? _file$get : "@babel/runtime", dirname, absoluteRuntime); + { + if (!(file.availableHelper != null && file.availableHelper(name, runtimeVersion))) { + if (name === "regeneratorRuntime") { + return _core.types.arrowFunctionExpression([], _core.types.identifier("regeneratorRuntime")); + } + return; + } + } + const isInteropHelper = HEADER_HELPERS.indexOf(name) !== -1; + const blockHoist = isInteropHelper && !(0, _helperModuleImports.isModule)(file.path) ? 4 : undefined; + let helperPath = `${modulePath}/helpers/${esModules && file.path.node.sourceType === "module" ? "esm/" + name : name}`; + if (absoluteRuntime) helperPath = (0, _index.resolveFSPath)(helperPath); + return addDefaultImport(helperPath, name, blockHoist, true); + }); + const cache = new Map(); + function addDefaultImport(source, nameHint, blockHoist, isHelper = false) { + const cacheKey = (0, _helperModuleImports.isModule)(file.path); + const key = `${source}:${nameHint}:${cacheKey || ""}`; + let cached = cache.get(key); + if (cached) { + cached = _core.types.cloneNode(cached); + } else { + cached = (0, _helperModuleImports.addDefault)(file.path, source, { + importedInterop: isHelper && supportsCJSDefault ? "compiled" : "uncompiled", + nameHint, + blockHoist + }); + cache.set(key, cached); + } + return cached; + } + } + }; }); -defineType("ObjectTypeProperty", { - visitor: ["key", "value", "variance"], - aliases: ["UserWhitespacable"], - fields: { - key: (0, _utils.validateType)(["Identifier", "StringLiteral"]), - value: (0, _utils.validateType)("FlowType"), - kind: (0, _utils.validate)((0, _utils.assertOneOf)("init", "get", "set")), - static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - proto: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - variance: (0, _utils.validateOptionalType)("Variance"), - method: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) - } + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 72776: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-shorthand-properties", + visitor: { + ObjectMethod(path) { + const { + node + } = path; + if (node.kind === "method") { + const func = _core.types.functionExpression(null, node.params, node.body, node.generator, node.async); + func.returnType = node.returnType; + const computedKey = _core.types.toComputedKey(node); + if (_core.types.isStringLiteral(computedKey, { + value: "__proto__" + })) { + path.replaceWith(_core.types.objectProperty(computedKey, func, true)); + } else { + path.replaceWith(_core.types.objectProperty(node.key, func, node.computed)); + } + } + }, + ObjectProperty(path) { + const { + node + } = path; + if (node.shorthand) { + const computedKey = _core.types.toComputedKey(node); + if (_core.types.isStringLiteral(computedKey, { + value: "__proto__" + })) { + path.replaceWith(_core.types.objectProperty(computedKey, node.value, true)); + } else { + node.shorthand = false; + } + } + } + } + }; }); -defineType("ObjectTypeSpreadProperty", { - visitor: ["argument"], - aliases: ["UserWhitespacable"], - fields: { - argument: (0, _utils.validateType)("FlowType") + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 72599: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _helperSkipTransparentExpressionWrappers = __nccwpck_require__(72291); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _options$allowArrayLi; + api.assertVersion(7); + const iterableIsArray = (_api$assumption = api.assumption("iterableIsArray")) != null ? _api$assumption : options.loose; + const arrayLikeIsIterable = (_options$allowArrayLi = options.allowArrayLike) != null ? _options$allowArrayLi : api.assumption("arrayLikeIsIterable"); + function getSpreadLiteral(spread, scope) { + if (iterableIsArray && !_core.types.isIdentifier(spread.argument, { + name: "arguments" + })) { + return spread.argument; + } else { + return scope.toArray(spread.argument, true, arrayLikeIsIterable); + } } -}); -defineType("OpaqueType", { - visitor: ["id", "typeParameters", "supertype", "impltype"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), - supertype: (0, _utils.validateOptionalType)("FlowType"), - impltype: (0, _utils.validateType)("FlowType") + function hasHole(spread) { + return spread.elements.some(el => el === null); } -}); -defineType("QualifiedTypeIdentifier", { - visitor: ["id", "qualification"], - fields: { - id: (0, _utils.validateType)("Identifier"), - qualification: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]) + function hasSpread(nodes) { + for (let i = 0; i < nodes.length; i++) { + if (_core.types.isSpreadElement(nodes[i])) { + return true; + } + } + return false; } -}); -defineType("StringLiteralTypeAnnotation", { - builder: ["value"], - aliases: ["FlowType"], - fields: { - value: (0, _utils.validate)((0, _utils.assertValueType)("string")) + function push(_props, nodes) { + if (!_props.length) return _props; + nodes.push(_core.types.arrayExpression(_props)); + return []; } -}); -defineType("StringTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("SymbolTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("ThisTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("TupleTypeAnnotation", { - visitor: ["types"], - aliases: ["FlowType"], - fields: { - types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + function build(props, scope, file) { + const nodes = []; + let _props = []; + for (const prop of props) { + if (_core.types.isSpreadElement(prop)) { + _props = push(_props, nodes); + let spreadLiteral = getSpreadLiteral(prop, scope); + if (_core.types.isArrayExpression(spreadLiteral) && hasHole(spreadLiteral)) { + spreadLiteral = _core.types.callExpression(file.addHelper("arrayWithoutHoles"), [spreadLiteral]); + } + nodes.push(spreadLiteral); + } else { + _props.push(prop); + } + } + push(_props, nodes); + return nodes; } + return { + name: "transform-spread", + visitor: { + ArrayExpression(path) { + const { + node, + scope + } = path; + const elements = node.elements; + if (!hasSpread(elements)) return; + const nodes = build(elements, scope, this.file); + let first = nodes[0]; + if (nodes.length === 1 && first !== elements[0].argument) { + path.replaceWith(first); + return; + } + if (!_core.types.isArrayExpression(first)) { + first = _core.types.arrayExpression([]); + } else { + nodes.shift(); + } + path.replaceWith(_core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes)); + }, + CallExpression(path) { + const { + node, + scope + } = path; + const args = node.arguments; + if (!hasSpread(args)) return; + const calleePath = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("callee")); + if (calleePath.isSuper()) { + throw path.buildCodeFrameError("It's not possible to compile spread arguments in `super()` without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); + } + let contextLiteral = scope.buildUndefinedNode(); + node.arguments = []; + let nodes; + if (args.length === 1 && _core.types.isIdentifier(args[0].argument, { + name: "arguments" + })) { + nodes = [args[0].argument]; + } else { + nodes = build(args, scope, this.file); + } + const first = nodes.shift(); + if (nodes.length) { + node.arguments.push(_core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes)); + } else { + node.arguments.push(first); + } + const callee = calleePath.node; + if (_core.types.isMemberExpression(callee)) { + const temp = scope.maybeGenerateMemoised(callee.object); + if (temp) { + callee.object = _core.types.assignmentExpression("=", temp, callee.object); + contextLiteral = temp; + } else { + contextLiteral = _core.types.cloneNode(callee.object); + } + } + node.callee = _core.types.memberExpression(node.callee, _core.types.identifier("apply")); + if (_core.types.isSuper(contextLiteral)) { + contextLiteral = _core.types.thisExpression(); + } + node.arguments.unshift(_core.types.cloneNode(contextLiteral)); + }, + NewExpression(path) { + const { + node, + scope + } = path; + if (!hasSpread(node.arguments)) return; + const nodes = build(node.arguments, scope, this.file); + const first = nodes.shift(); + let args; + if (nodes.length) { + args = _core.types.callExpression(_core.types.memberExpression(first, _core.types.identifier("concat")), nodes); + } else { + args = first; + } + path.replaceWith(_core.types.callExpression(path.hub.addHelper("construct"), [node.callee, args])); + } + } + }; }); -defineType("TypeofTypeAnnotation", { - visitor: ["argument"], - aliases: ["FlowType"], - fields: { - argument: (0, _utils.validateType)("FlowType") - } + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 96204: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-sticky-regex", + visitor: { + RegExpLiteral(path) { + const { + node + } = path; + if (!node.flags.includes("y")) return; + path.replaceWith(_core.types.newExpression(_core.types.identifier("RegExp"), [_core.types.stringLiteral(node.pattern), _core.types.stringLiteral(node.flags)])); + } + } + }; }); -defineType("TypeAlias", { - visitor: ["id", "typeParameters", "right"], - aliases: ["FlowDeclaration", "Statement", "Declaration"], - fields: { - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), - right: (0, _utils.validateType)("FlowType") + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 29341: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + var _api$assumption, _api$assumption2; + api.assertVersion(7); + const ignoreToPrimitiveHint = (_api$assumption = api.assumption("ignoreToPrimitiveHint")) != null ? _api$assumption : options.loose; + const mutableTemplateObject = (_api$assumption2 = api.assumption("mutableTemplateObject")) != null ? _api$assumption2 : options.loose; + let helperName = "taggedTemplateLiteral"; + if (mutableTemplateObject) helperName += "Loose"; + function buildConcatCallExpressions(items) { + let avail = true; + return items.reduce(function (left, right) { + let canBeInserted = _core.types.isLiteral(right); + if (!canBeInserted && avail) { + canBeInserted = true; + avail = false; + } + if (canBeInserted && _core.types.isCallExpression(left)) { + left.arguments.push(right); + return left; + } + return _core.types.callExpression(_core.types.memberExpression(left, _core.types.identifier("concat")), [right]); + }); } + return { + name: "transform-template-literals", + visitor: { + TaggedTemplateExpression(path) { + const { + node + } = path; + const { + quasi + } = node; + const strings = []; + const raws = []; + let isStringsRawEqual = true; + for (const elem of quasi.quasis) { + const { + raw, + cooked + } = elem.value; + const value = cooked == null ? path.scope.buildUndefinedNode() : _core.types.stringLiteral(cooked); + strings.push(value); + raws.push(_core.types.stringLiteral(raw)); + if (raw !== cooked) { + isStringsRawEqual = false; + } + } + const helperArgs = [_core.types.arrayExpression(strings)]; + if (!isStringsRawEqual) { + helperArgs.push(_core.types.arrayExpression(raws)); + } + const tmp = path.scope.generateUidIdentifier("templateObject"); + path.scope.getProgramParent().push({ + id: _core.types.cloneNode(tmp) + }); + path.replaceWith(_core.types.callExpression(node.tag, [_core.template.expression.ast` + ${_core.types.cloneNode(tmp)} || ( + ${tmp} = ${this.addHelper(helperName)}(${helperArgs}) + ) + `, ...quasi.expressions])); + }, + TemplateLiteral(path) { + if (path.parent.type === "TSLiteralType") { + return; + } + const nodes = []; + const expressions = path.get("expressions"); + let index = 0; + for (const elem of path.node.quasis) { + if (elem.value.cooked) { + nodes.push(_core.types.stringLiteral(elem.value.cooked)); + } + if (index < expressions.length) { + const expr = expressions[index++]; + const node = expr.node; + if (!_core.types.isStringLiteral(node, { + value: "" + })) { + nodes.push(node); + } + } + } + if (!_core.types.isStringLiteral(nodes[0]) && !(ignoreToPrimitiveHint && _core.types.isStringLiteral(nodes[1]))) { + nodes.unshift(_core.types.stringLiteral("")); + } + let root = nodes[0]; + if (ignoreToPrimitiveHint) { + for (let i = 1; i < nodes.length; i++) { + root = _core.types.binaryExpression("+", root, nodes[i]); + } + } else if (nodes.length > 1) { + root = buildConcatCallExpressions(nodes); + } + path.replaceWith(root); + } + } + }; }); -defineType("TypeAnnotation", { - visitor: ["typeAnnotation"], - fields: { - typeAnnotation: (0, _utils.validateType)("FlowType") - } + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 12484: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return { + name: "transform-typeof-symbol", + visitor: { + Scope({ + scope + }) { + if (!scope.getBinding("Symbol")) { + return; + } + scope.rename("Symbol"); + }, + UnaryExpression(path) { + const { + node, + parent + } = path; + if (node.operator !== "typeof") return; + if (path.parentPath.isBinaryExpression() && _core.types.EQUALITY_BINARY_OPERATORS.indexOf(parent.operator) >= 0) { + const opposite = path.getOpposite(); + if (opposite.isStringLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") { + return; + } + } + let isUnderHelper = path.findParent(path => { + if (path.isFunction()) { + var _path$get; + return ((_path$get = path.get("body.directives.0")) == null ? void 0 : _path$get.node.value.value) === "@babel/helpers - typeof"; + } + }); + if (isUnderHelper) return; + const helper = this.addHelper("typeof"); + isUnderHelper = path.findParent(path => { + return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name; + }); + if (isUnderHelper) { + return; + } + const call = _core.types.callExpression(helper, [node.argument]); + const arg = path.get("argument"); + if (arg.isIdentifier() && !path.scope.hasBinding(arg.node.name, true)) { + const unary = _core.types.unaryExpression("typeof", _core.types.cloneNode(node.argument)); + path.replaceWith(_core.types.conditionalExpression(_core.types.binaryExpression("===", unary, _core.types.stringLiteral("undefined")), _core.types.stringLiteral("undefined"), call)); + } else { + path.replaceWith(call); + } + } + } + }; }); -defineType("TypeCastExpression", { - visitor: ["expression", "typeAnnotation"], - aliases: ["ExpressionWrapper", "Expression"], - fields: { - expression: (0, _utils.validateType)("Expression"), - typeAnnotation: (0, _utils.validateType)("TypeAnnotation") + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 95732: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = transpileConstEnum; +var _enum = __nccwpck_require__(56063); +function transpileConstEnum(path, t) { + const { + name + } = path.node.id; + const parentIsExport = path.parentPath.isExportNamedDeclaration(); + let isExported = parentIsExport; + if (!isExported && t.isProgram(path.parent)) { + isExported = path.parent.body.some(stmt => t.isExportNamedDeclaration(stmt) && stmt.exportKind !== "type" && !stmt.source && stmt.specifiers.some(spec => t.isExportSpecifier(spec) && spec.exportKind !== "type" && spec.local.name === name)); } -}); -defineType("TypeParameter", { - visitor: ["bound", "default", "variance"], - fields: { - name: (0, _utils.validate)((0, _utils.assertValueType)("string")), - bound: (0, _utils.validateOptionalType)("TypeAnnotation"), - default: (0, _utils.validateOptionalType)("FlowType"), - variance: (0, _utils.validateOptionalType)("Variance") + const { + enumValues: entries + } = (0, _enum.translateEnumValues)(path, t); + if (isExported) { + const obj = t.objectExpression(entries.map(([name, value]) => t.objectProperty(t.isValidIdentifier(name) ? t.identifier(name) : t.stringLiteral(name), value))); + if (path.scope.hasOwnBinding(name)) { + (parentIsExport ? path.parentPath : path).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"), t.identifier("assign")), [path.node.id, obj]))); + } else { + path.replaceWith(t.variableDeclaration("var", [t.variableDeclarator(path.node.id, obj)])); + path.scope.registerDeclaration(path); + } + return; } -}); -defineType("TypeParameterDeclaration", { - visitor: ["params"], - fields: { - params: (0, _utils.validate)((0, _utils.arrayOfType)("TypeParameter")) + const entriesMap = new Map(entries); + path.scope.path.traverse({ + Scope(path) { + if (path.scope.hasOwnBinding(name)) path.skip(); + }, + MemberExpression(path) { + if (!t.isIdentifier(path.node.object, { + name + })) return; + let key; + if (path.node.computed) { + if (t.isStringLiteral(path.node.property)) { + key = path.node.property.value; + } else { + return; + } + } else if (t.isIdentifier(path.node.property)) { + key = path.node.property.name; + } else { + return; + } + if (!entriesMap.has(key)) return; + path.replaceWith(t.cloneNode(entriesMap.get(key))); + } + }); + path.remove(); +} + +//# sourceMappingURL=const-enum.js.map + + +/***/ }), + +/***/ 56063: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = transpileEnum; +exports.translateEnumValues = translateEnumValues; +var _core = __nccwpck_require__(65258); +var _assert = __nccwpck_require__(39491); +var _helperAnnotateAsPure = __nccwpck_require__(40151); +const ENUMS = new WeakMap(); +const buildEnumWrapper = _core.template.expression(` + (function (ID) { + ASSIGNMENTS; + return ID; + })(INIT) + `); +function transpileEnum(path, t) { + const { + node, + parentPath + } = path; + if (node.declare) { + path.remove(); + return; } -}); -defineType("TypeParameterInstantiation", { - visitor: ["params"], - fields: { - params: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + const name = node.id.name; + const { + fill, + data, + isPure + } = enumFill(path, t, node.id); + switch (parentPath.type) { + case "BlockStatement": + case "ExportNamedDeclaration": + case "Program": + { + const isGlobal = t.isProgram(path.parent); + const isSeen = seen(parentPath); + let init = t.objectExpression([]); + if (isSeen || isGlobal) { + init = t.logicalExpression("||", t.cloneNode(fill.ID), init); + } + const enumIIFE = buildEnumWrapper(Object.assign({}, fill, { + INIT: init + })); + if (isPure) (0, _helperAnnotateAsPure.default)(enumIIFE); + if (isSeen) { + const toReplace = parentPath.isExportDeclaration() ? parentPath : path; + toReplace.replaceWith(t.expressionStatement(t.assignmentExpression("=", t.cloneNode(node.id), enumIIFE))); + } else { + path.scope.registerDeclaration(path.replaceWith(t.variableDeclaration(isGlobal ? "var" : "let", [t.variableDeclarator(node.id, enumIIFE)]))[0]); + } + ENUMS.set(path.scope.getBindingIdentifier(name), data); + break; + } + default: + throw new Error(`Unexpected enum parent '${path.parent.type}`); } -}); -defineType("UnionTypeAnnotation", { - visitor: ["types"], - aliases: ["FlowType"], - fields: { - types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + function seen(parentPath) { + if (parentPath.isExportDeclaration()) { + return seen(parentPath.parentPath); + } + if (parentPath.getData(name)) { + return true; + } else { + parentPath.setData(name, true); + return false; + } } -}); -defineType("Variance", { - builder: ["kind"], - fields: { - kind: (0, _utils.validate)((0, _utils.assertOneOf)("minus", "plus")) +} +const buildStringAssignment = (0, _core.template)(` + ENUM["NAME"] = VALUE; +`); +const buildNumericAssignment = (0, _core.template)(` + ENUM[ENUM["NAME"] = VALUE] = "NAME"; +`); +const buildEnumMember = (isString, options) => (isString ? buildStringAssignment : buildNumericAssignment)(options); +function enumFill(path, t, id) { + const { + enumValues: x, + data, + isPure + } = translateEnumValues(path, t); + const assignments = x.map(([memberName, memberValue]) => buildEnumMember(t.isStringLiteral(memberValue), { + ENUM: t.cloneNode(id), + NAME: memberName, + VALUE: memberValue + })); + return { + fill: { + ID: t.cloneNode(id), + ASSIGNMENTS: assignments + }, + data, + isPure + }; +} +function ReferencedIdentifier(expr, state) { + const { + seen, + path, + t + } = state; + const name = expr.node.name; + if (seen.has(name) && !expr.scope.hasOwnBinding(name)) { + expr.replaceWith(t.memberExpression(t.cloneNode(path.node.id), t.cloneNode(expr.node))); + expr.skip(); } -}); -defineType("VoidTypeAnnotation", { - aliases: ["FlowType", "FlowBaseAnnotation"] -}); -defineType("EnumDeclaration", { - aliases: ["Statement", "Declaration"], - visitor: ["id", "body"], - fields: { - id: (0, _utils.validateType)("Identifier"), - body: (0, _utils.validateType)(["EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody"]) +} +const enumSelfReferenceVisitor = { + ReferencedIdentifier +}; +function translateEnumValues(path, t) { + var _ENUMS$get; + const bindingIdentifier = path.scope.getBindingIdentifier(path.node.id.name); + const seen = (_ENUMS$get = ENUMS.get(bindingIdentifier)) != null ? _ENUMS$get : new Map(); + let constValue = -1; + let lastName; + let isPure = true; + const enumValues = path.get("members").map(memberPath => { + const member = memberPath.node; + const name = t.isIdentifier(member.id) ? member.id.name : member.id.value; + const initializerPath = memberPath.get("initializer"); + const initializer = member.initializer; + let value; + if (initializer) { + constValue = computeConstantValue(initializerPath, seen); + if (constValue !== undefined) { + seen.set(name, constValue); + _assert(typeof constValue === "number" || typeof constValue === "string"); + if (constValue === Infinity || Number.isNaN(constValue)) { + value = t.identifier(String(constValue)); + } else if (constValue === -Infinity) { + value = t.unaryExpression("-", t.identifier("Infinity")); + } else { + value = t.valueToNode(constValue); + } + } else { + isPure && (isPure = initializerPath.isPure()); + if (initializerPath.isReferencedIdentifier()) { + ReferencedIdentifier(initializerPath, { + t, + seen, + path + }); + } else { + initializerPath.traverse(enumSelfReferenceVisitor, { + t, + seen, + path + }); + } + value = initializerPath.node; + seen.set(name, undefined); + } + } else if (typeof constValue === "number") { + constValue += 1; + value = t.numericLiteral(constValue); + seen.set(name, constValue); + } else if (typeof constValue === "string") { + throw path.buildCodeFrameError("Enum member must have initializer."); + } else { + const lastRef = t.memberExpression(t.cloneNode(path.node.id), t.stringLiteral(lastName), true); + value = t.binaryExpression("+", t.numericLiteral(1), lastRef); + seen.set(name, undefined); + } + lastName = name; + return [name, value]; + }); + return { + isPure, + data: seen, + enumValues + }; +} +function computeConstantValue(path, prevMembers, seen = new Set()) { + return evaluate(path); + function evaluate(path) { + const expr = path.node; + switch (expr.type) { + case "MemberExpression": + return evaluateRef(path, prevMembers, seen); + case "StringLiteral": + return expr.value; + case "UnaryExpression": + return evalUnaryExpression(path); + case "BinaryExpression": + return evalBinaryExpression(path); + case "NumericLiteral": + return expr.value; + case "ParenthesizedExpression": + return evaluate(path.get("expression")); + case "Identifier": + return evaluateRef(path, prevMembers, seen); + case "TemplateLiteral": + { + if (expr.quasis.length === 1) { + return expr.quasis[0].value.cooked; + } + const paths = path.get("expressions"); + const quasis = expr.quasis; + let str = ""; + for (let i = 0; i < quasis.length; i++) { + str += quasis[i].value.cooked; + if (i + 1 < quasis.length) { + const value = evaluateRef(paths[i], prevMembers, seen); + if (value === undefined) return undefined; + str += value; + } + } + return str; + } + default: + return undefined; + } } -}); -defineType("EnumBooleanBody", { - aliases: ["EnumBody"], - visitor: ["members"], - fields: { - explicitType: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - members: (0, _utils.validateArrayOfType)("EnumBooleanMember"), - hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + function evaluateRef(path, prevMembers, seen) { + if (path.isMemberExpression()) { + const expr = path.node; + const obj = expr.object; + const prop = expr.property; + if (!_core.types.isIdentifier(obj) || (expr.computed ? !_core.types.isStringLiteral(prop) : !_core.types.isIdentifier(prop))) { + return; + } + const bindingIdentifier = path.scope.getBindingIdentifier(obj.name); + const data = ENUMS.get(bindingIdentifier); + if (!data) return; + return data.get(prop.computed ? prop.value : prop.name); + } else if (path.isIdentifier()) { + const name = path.node.name; + if (["Infinity", "NaN"].includes(name)) { + return Number(name); + } + let value = prevMembers == null ? void 0 : prevMembers.get(name); + if (value !== undefined) { + return value; + } + if (seen.has(path.node)) return; + seen.add(path.node); + value = computeConstantValue(path.resolve(), prevMembers, seen); + prevMembers == null || prevMembers.set(name, value); + return value; + } } -}); -defineType("EnumNumberBody", { - aliases: ["EnumBody"], - visitor: ["members"], - fields: { - explicitType: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - members: (0, _utils.validateArrayOfType)("EnumNumberMember"), - hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + function evalUnaryExpression(path) { + const value = evaluate(path.get("argument")); + if (value === undefined) { + return undefined; + } + switch (path.node.operator) { + case "+": + return value; + case "-": + return -value; + case "~": + return ~value; + default: + return undefined; + } } -}); -defineType("EnumStringBody", { - aliases: ["EnumBody"], - visitor: ["members"], - fields: { - explicitType: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), - members: (0, _utils.validateArrayOfType)(["EnumStringMember", "EnumDefaultedMember"]), - hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + function evalBinaryExpression(path) { + const left = evaluate(path.get("left")); + if (left === undefined) { + return undefined; + } + const right = evaluate(path.get("right")); + if (right === undefined) { + return undefined; + } + switch (path.node.operator) { + case "|": + return left | right; + case "&": + return left & right; + case ">>": + return left >> right; + case ">>>": + return left >>> right; + case "<<": + return left << right; + case "^": + return left ^ right; + case "*": + return left * right; + case "/": + return left / right; + case "+": + return left + right; + case "-": + return left - right; + case "%": + return left % right; + case "**": + return Math.pow(left, right); + default: + return undefined; + } } -}); -defineType("EnumSymbolBody", { - aliases: ["EnumBody"], - visitor: ["members"], - fields: { - members: (0, _utils.validateArrayOfType)("EnumDefaultedMember"), - hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) +} + +//# sourceMappingURL=enum.js.map + + +/***/ }), + +/***/ 12444: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.GLOBAL_TYPES = void 0; +exports.isGlobalType = isGlobalType; +exports.registerGlobalType = registerGlobalType; +const GLOBAL_TYPES = exports.GLOBAL_TYPES = new WeakMap(); +function isGlobalType({ + scope +}, name) { + if (scope.hasBinding(name)) return false; + if (GLOBAL_TYPES.get(scope).has(name)) return true; + console.warn(`The exported identifier "${name}" is not declared in Babel's scope tracker\n` + `as a JavaScript value binding, and "@babel/plugin-transform-typescript"\n` + `never encountered it as a TypeScript type declaration.\n` + `It will be treated as a JavaScript value.\n\n` + `This problem is likely caused by another plugin injecting\n` + `"${name}" without registering it in the scope tracker. If you are the author\n` + ` of that plugin, please use "scope.registerDeclaration(declarationPath)".`); + return false; +} +function registerGlobalType(programScope, name) { + GLOBAL_TYPES.get(programScope).add(name); +} + +//# sourceMappingURL=global-types.js.map + + +/***/ }), + +/***/ 59562: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _pluginSyntaxTypescript = __nccwpck_require__(67006); +var _helperCreateClassFeaturesPlugin = __nccwpck_require__(42137); +var _constEnum = __nccwpck_require__(95732); +var _enum = __nccwpck_require__(56063); +var _globalTypes = __nccwpck_require__(12444); +var _namespace = __nccwpck_require__(59940); +function isInType(path) { + switch (path.parent.type) { + case "TSTypeReference": + case "TSExpressionWithTypeArguments": + case "TSTypeQuery": + return true; + case "TSQualifiedName": + return path.parentPath.findParent(path => path.type !== "TSQualifiedName").type !== "TSImportEqualsDeclaration"; + case "ExportSpecifier": + return path.parent.exportKind === "type" || path.parentPath.parent.exportKind === "type"; + default: + return false; } -}); -defineType("EnumBooleanMember", { - aliases: ["EnumMember"], - visitor: ["id"], - fields: { - id: (0, _utils.validateType)("Identifier"), - init: (0, _utils.validateType)("BooleanLiteral") +} +const NEEDS_EXPLICIT_ESM = new WeakMap(); +const PARSED_PARAMS = new WeakSet(); +function safeRemove(path) { + const ids = path.getBindingIdentifiers(); + for (const name of Object.keys(ids)) { + const binding = path.scope.getBinding(name); + if (binding && binding.identifier === ids[name]) { + binding.scope.removeBinding(name); + } } -}); -defineType("EnumNumberMember", { - aliases: ["EnumMember"], - visitor: ["id", "init"], - fields: { - id: (0, _utils.validateType)("Identifier"), - init: (0, _utils.validateType)("NumericLiteral") + path.opts.noScope = true; + path.remove(); + path.opts.noScope = false; +} +function assertCjsTransformEnabled(path, pass, wrong, suggestion, extra = "") { + if (pass.file.get("@babel/plugin-transform-modules-*") !== "commonjs") { + throw path.buildCodeFrameError(`\`${wrong}\` is only supported when compiling modules to CommonJS.\n` + `Please consider using \`${suggestion}\`${extra}, or add ` + `@babel/plugin-transform-modules-commonjs to your Babel config.`); } -}); -defineType("EnumStringMember", { - aliases: ["EnumMember"], - visitor: ["id", "init"], - fields: { - id: (0, _utils.validateType)("Identifier"), - init: (0, _utils.validateType)("StringLiteral") +} +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, opts) => { + const { + types: t, + template + } = api; + api.assertVersion(7); + const JSX_PRAGMA_REGEX = /\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/; + const { + allowNamespaces = true, + jsxPragma = "React.createElement", + jsxPragmaFrag = "React.Fragment", + onlyRemoveTypeImports = false, + optimizeConstEnums = false + } = opts; + { + var { + allowDeclareFields = false + } = opts; } -}); -defineType("EnumDefaultedMember", { - aliases: ["EnumMember"], - visitor: ["id"], - fields: { - id: (0, _utils.validateType)("Identifier") + const classMemberVisitors = { + field(path) { + const { + node + } = path; + { + if (!allowDeclareFields && node.declare) { + throw path.buildCodeFrameError(`The 'declare' modifier is only allowed when the 'allowDeclareFields' option of ` + `@babel/plugin-transform-typescript or @babel/preset-typescript is enabled.`); + } + } + if (node.declare) { + if (node.value) { + throw path.buildCodeFrameError(`Fields with the 'declare' modifier cannot be initialized here, but only in the constructor`); + } + if (!node.decorators) { + path.remove(); + } + } else if (node.definite) { + if (node.value) { + throw path.buildCodeFrameError(`Definitely assigned fields cannot be initialized here, but only in the constructor`); + } + { + if (!allowDeclareFields && !node.decorators && !t.isClassPrivateProperty(node)) { + path.remove(); + } + } + } else if (node.abstract) { + path.remove(); + } else { + if (!allowDeclareFields && !node.value && !node.decorators && !t.isClassPrivateProperty(node)) { + path.remove(); + } + } + if (node.accessibility) node.accessibility = null; + if (node.abstract) node.abstract = null; + if (node.readonly) node.readonly = null; + if (node.optional) node.optional = null; + if (node.typeAnnotation) node.typeAnnotation = null; + if (node.definite) node.definite = null; + if (node.declare) node.declare = null; + if (node.override) node.override = null; + }, + method({ + node + }) { + if (node.accessibility) node.accessibility = null; + if (node.abstract) node.abstract = null; + if (node.optional) node.optional = null; + if (node.override) node.override = null; + }, + constructor(path, classPath) { + if (path.node.accessibility) path.node.accessibility = null; + const assigns = []; + const { + scope + } = path; + for (const paramPath of path.get("params")) { + const param = paramPath.node; + if (param.type === "TSParameterProperty") { + const parameter = param.parameter; + if (PARSED_PARAMS.has(parameter)) continue; + PARSED_PARAMS.add(parameter); + let id; + if (t.isIdentifier(parameter)) { + id = parameter; + } else if (t.isAssignmentPattern(parameter) && t.isIdentifier(parameter.left)) { + id = parameter.left; + } else { + throw paramPath.buildCodeFrameError("Parameter properties can not be destructuring patterns."); + } + assigns.push(template.statement.ast` + this.${t.cloneNode(id)} = ${t.cloneNode(id)} + `); + paramPath.replaceWith(paramPath.get("parameter")); + scope.registerBinding("param", paramPath); + } + } + (0, _helperCreateClassFeaturesPlugin.injectInitialization)(classPath, path, assigns); + } + }; + return { + name: "transform-typescript", + inherits: _pluginSyntaxTypescript.default, + visitor: { + Pattern: visitPattern, + Identifier: visitPattern, + RestElement: visitPattern, + Program: { + enter(path, state) { + const { + file + } = state; + let fileJsxPragma = null; + let fileJsxPragmaFrag = null; + const programScope = path.scope; + if (!_globalTypes.GLOBAL_TYPES.has(programScope)) { + _globalTypes.GLOBAL_TYPES.set(programScope, new Set()); + } + if (file.ast.comments) { + for (const comment of file.ast.comments) { + const jsxMatches = JSX_PRAGMA_REGEX.exec(comment.value); + if (jsxMatches) { + if (jsxMatches[1]) { + fileJsxPragmaFrag = jsxMatches[2]; + } else { + fileJsxPragma = jsxMatches[2]; + } + } + } + } + let pragmaImportName = fileJsxPragma || jsxPragma; + if (pragmaImportName) { + [pragmaImportName] = pragmaImportName.split("."); + } + let pragmaFragImportName = fileJsxPragmaFrag || jsxPragmaFrag; + if (pragmaFragImportName) { + [pragmaFragImportName] = pragmaFragImportName.split("."); + } + for (let stmt of path.get("body")) { + if (stmt.isImportDeclaration()) { + if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { + NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); + } + if (stmt.node.importKind === "type") { + for (const specifier of stmt.node.specifiers) { + (0, _globalTypes.registerGlobalType)(programScope, specifier.local.name); + } + stmt.remove(); + continue; + } + const importsToRemove = new Set(); + const specifiersLength = stmt.node.specifiers.length; + const isAllSpecifiersElided = () => specifiersLength > 0 && specifiersLength === importsToRemove.size; + for (const specifier of stmt.node.specifiers) { + if (specifier.type === "ImportSpecifier" && specifier.importKind === "type") { + (0, _globalTypes.registerGlobalType)(programScope, specifier.local.name); + const binding = stmt.scope.getBinding(specifier.local.name); + if (binding) { + importsToRemove.add(binding.path); + } + } + } + if (onlyRemoveTypeImports) { + NEEDS_EXPLICIT_ESM.set(path.node, false); + } else { + if (stmt.node.specifiers.length === 0) { + NEEDS_EXPLICIT_ESM.set(path.node, false); + continue; + } + for (const specifier of stmt.node.specifiers) { + const binding = stmt.scope.getBinding(specifier.local.name); + if (binding && !importsToRemove.has(binding.path)) { + if (isImportTypeOnly({ + binding, + programPath: path, + pragmaImportName, + pragmaFragImportName + })) { + importsToRemove.add(binding.path); + } else { + NEEDS_EXPLICIT_ESM.set(path.node, false); + } + } + } + } + if (isAllSpecifiersElided() && !onlyRemoveTypeImports) { + stmt.remove(); + } else { + for (const importPath of importsToRemove) { + importPath.remove(); + } + } + continue; + } + if (stmt.isExportDeclaration()) { + stmt = stmt.get("declaration"); + } + if (stmt.isVariableDeclaration({ + declare: true + })) { + for (const name of Object.keys(stmt.getBindingIdentifiers())) { + (0, _globalTypes.registerGlobalType)(programScope, name); + } + } else if (stmt.isTSTypeAliasDeclaration() || stmt.isTSDeclareFunction() && stmt.get("id").isIdentifier() || stmt.isTSInterfaceDeclaration() || stmt.isClassDeclaration({ + declare: true + }) || stmt.isTSEnumDeclaration({ + declare: true + }) || stmt.isTSModuleDeclaration({ + declare: true + }) && stmt.get("id").isIdentifier()) { + (0, _globalTypes.registerGlobalType)(programScope, stmt.node.id.name); + } + } + }, + exit(path) { + if (path.node.sourceType === "module" && NEEDS_EXPLICIT_ESM.get(path.node)) { + path.pushContainer("body", t.exportNamedDeclaration()); + } + } + }, + ExportNamedDeclaration(path, state) { + if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { + NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); + } + if (path.node.exportKind === "type") { + path.remove(); + return; + } + if (path.node.source && path.node.specifiers.length > 0 && path.node.specifiers.every(specifier => specifier.type === "ExportSpecifier" && specifier.exportKind === "type")) { + path.remove(); + return; + } + if (!path.node.source && path.node.specifiers.length > 0 && path.node.specifiers.every(specifier => t.isExportSpecifier(specifier) && (0, _globalTypes.isGlobalType)(path, specifier.local.name))) { + path.remove(); + return; + } + if (t.isTSModuleDeclaration(path.node.declaration)) { + const namespace = path.node.declaration; + const { + id + } = namespace; + if (t.isIdentifier(id)) { + if (path.scope.hasOwnBinding(id.name)) { + path.replaceWith(namespace); + } else { + const [newExport] = path.replaceWithMultiple([t.exportNamedDeclaration(t.variableDeclaration("let", [t.variableDeclarator(t.cloneNode(id))])), namespace]); + path.scope.registerDeclaration(newExport); + } + } + } + NEEDS_EXPLICIT_ESM.set(state.file.ast.program, false); + }, + ExportAllDeclaration(path) { + if (path.node.exportKind === "type") path.remove(); + }, + ExportSpecifier(path) { + const parent = path.parent; + if (!parent.source && (0, _globalTypes.isGlobalType)(path, path.node.local.name) || path.node.exportKind === "type") { + path.remove(); + } + }, + ExportDefaultDeclaration(path, state) { + if (!NEEDS_EXPLICIT_ESM.has(state.file.ast.program)) { + NEEDS_EXPLICIT_ESM.set(state.file.ast.program, true); + } + if (t.isIdentifier(path.node.declaration) && (0, _globalTypes.isGlobalType)(path, path.node.declaration.name)) { + path.remove(); + return; + } + NEEDS_EXPLICIT_ESM.set(state.file.ast.program, false); + }, + TSDeclareFunction(path) { + safeRemove(path); + }, + TSDeclareMethod(path) { + safeRemove(path); + }, + VariableDeclaration(path) { + if (path.node.declare) { + safeRemove(path); + } + }, + VariableDeclarator({ + node + }) { + if (node.definite) node.definite = null; + }, + TSIndexSignature(path) { + path.remove(); + }, + ClassDeclaration(path) { + const { + node + } = path; + if (node.declare) { + safeRemove(path); + } + }, + Class(path) { + const { + node + } = path; + if (node.typeParameters) node.typeParameters = null; + if (node.superTypeParameters) node.superTypeParameters = null; + if (node.implements) node.implements = null; + if (node.abstract) node.abstract = null; + path.get("body.body").forEach(child => { + if (child.isClassMethod() || child.isClassPrivateMethod()) { + if (child.node.kind === "constructor") { + classMemberVisitors.constructor(child, path); + } else { + classMemberVisitors.method(child); + } + } else if (child.isClassProperty() || child.isClassPrivateProperty() || child.isClassAccessorProperty()) { + classMemberVisitors.field(child); + } + }); + }, + Function(path) { + const { + node + } = path; + if (node.typeParameters) node.typeParameters = null; + if (node.returnType) node.returnType = null; + const params = node.params; + if (params.length > 0 && t.isIdentifier(params[0], { + name: "this" + })) { + params.shift(); + } + }, + TSModuleDeclaration(path) { + (0, _namespace.default)(path, allowNamespaces); + }, + TSInterfaceDeclaration(path) { + path.remove(); + }, + TSTypeAliasDeclaration(path) { + path.remove(); + }, + TSEnumDeclaration(path) { + if (optimizeConstEnums && path.node.const) { + (0, _constEnum.default)(path, t); + } else { + (0, _enum.default)(path, t); + } + }, + TSImportEqualsDeclaration(path, pass) { + const { + id, + moduleReference + } = path.node; + let init; + let varKind; + if (t.isTSExternalModuleReference(moduleReference)) { + assertCjsTransformEnabled(path, pass, `import ${id.name} = require(...);`, `import ${id.name} from '...';`, " alongside Typescript's --allowSyntheticDefaultImports option"); + init = t.callExpression(t.identifier("require"), [moduleReference.expression]); + varKind = "const"; + } else { + init = entityNameToExpr(moduleReference); + varKind = "var"; + } + path.replaceWith(t.variableDeclaration(varKind, [t.variableDeclarator(id, init)])); + path.scope.registerDeclaration(path); + }, + TSExportAssignment(path, pass) { + assertCjsTransformEnabled(path, pass, `export = ;`, `export default ;`); + path.replaceWith(template.statement.ast`module.exports = ${path.node.expression}`); + }, + TSTypeAssertion(path) { + path.replaceWith(path.node.expression); + }, + [`TSAsExpression${t.tsSatisfiesExpression ? "|TSSatisfiesExpression" : ""}`](path) { + let { + node + } = path; + do { + node = node.expression; + } while (t.isTSAsExpression(node) || t.isTSSatisfiesExpression != null && t.isTSSatisfiesExpression(node)); + path.replaceWith(node); + }, + [api.types.tsInstantiationExpression ? "TSNonNullExpression|TSInstantiationExpression" : "TSNonNullExpression"](path) { + path.replaceWith(path.node.expression); + }, + CallExpression(path) { + path.node.typeParameters = null; + }, + OptionalCallExpression(path) { + path.node.typeParameters = null; + }, + NewExpression(path) { + path.node.typeParameters = null; + }, + JSXOpeningElement(path) { + path.node.typeParameters = null; + }, + TaggedTemplateExpression(path) { + path.node.typeParameters = null; + } + } + }; + function entityNameToExpr(node) { + if (t.isTSQualifiedName(node)) { + return t.memberExpression(entityNameToExpr(node.left), node.right); + } + return node; } -}); -defineType("IndexedAccessType", { - visitor: ["objectType", "indexType"], - aliases: ["FlowType"], - fields: { - objectType: (0, _utils.validateType)("FlowType"), - indexType: (0, _utils.validateType)("FlowType") + function visitPattern({ + node + }) { + if (node.typeAnnotation) node.typeAnnotation = null; + if (t.isIdentifier(node) && node.optional) node.optional = null; } -}); -defineType("OptionalIndexedAccessType", { - visitor: ["objectType", "indexType"], - aliases: ["FlowType"], - fields: { - objectType: (0, _utils.validateType)("FlowType"), - indexType: (0, _utils.validateType)("FlowType"), - optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + function isImportTypeOnly({ + binding, + programPath, + pragmaImportName, + pragmaFragImportName + }) { + for (const path of binding.referencePaths) { + if (!isInType(path)) { + return false; + } + } + if (binding.identifier.name !== pragmaImportName && binding.identifier.name !== pragmaFragImportName) { + return true; + } + let sourceFileHasJsx = false; + programPath.traverse({ + "JSXElement|JSXFragment"(path) { + sourceFileHasJsx = true; + path.stop(); + } + }); + return !sourceFileHasJsx; } }); -//# sourceMappingURL=flow.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 59357: +/***/ 59940: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -133438,309 +74150,171 @@ defineType("OptionalIndexedAccessType", { Object.defineProperty(exports, "__esModule", ({ value: true })); -Object.defineProperty(exports, "ALIAS_KEYS", ({ - enumerable: true, - get: function () { - return _utils.ALIAS_KEYS; - } -})); -Object.defineProperty(exports, "BUILDER_KEYS", ({ - enumerable: true, - get: function () { - return _utils.BUILDER_KEYS; - } -})); -Object.defineProperty(exports, "DEPRECATED_ALIASES", ({ - enumerable: true, - get: function () { - return _deprecatedAliases.DEPRECATED_ALIASES; - } -})); -Object.defineProperty(exports, "DEPRECATED_KEYS", ({ - enumerable: true, - get: function () { - return _utils.DEPRECATED_KEYS; - } -})); -Object.defineProperty(exports, "FLIPPED_ALIAS_KEYS", ({ - enumerable: true, - get: function () { - return _utils.FLIPPED_ALIAS_KEYS; - } -})); -Object.defineProperty(exports, "NODE_FIELDS", ({ - enumerable: true, - get: function () { - return _utils.NODE_FIELDS; - } -})); -Object.defineProperty(exports, "NODE_PARENT_VALIDATIONS", ({ - enumerable: true, - get: function () { - return _utils.NODE_PARENT_VALIDATIONS; - } -})); -Object.defineProperty(exports, "PLACEHOLDERS", ({ - enumerable: true, - get: function () { - return _placeholders.PLACEHOLDERS; - } -})); -Object.defineProperty(exports, "PLACEHOLDERS_ALIAS", ({ - enumerable: true, - get: function () { - return _placeholders.PLACEHOLDERS_ALIAS; - } -})); -Object.defineProperty(exports, "PLACEHOLDERS_FLIPPED_ALIAS", ({ - enumerable: true, - get: function () { - return _placeholders.PLACEHOLDERS_FLIPPED_ALIAS; - } -})); -exports.TYPES = void 0; -Object.defineProperty(exports, "VISITOR_KEYS", ({ - enumerable: true, - get: function () { - return _utils.VISITOR_KEYS; - } -})); -var _toFastProperties = __nccwpck_require__(36802); -__nccwpck_require__(60730); -__nccwpck_require__(81544); -__nccwpck_require__(108); -__nccwpck_require__(20945); -__nccwpck_require__(52233); -__nccwpck_require__(43703); -var _utils = __nccwpck_require__(52203); -var _placeholders = __nccwpck_require__(26715); -var _deprecatedAliases = __nccwpck_require__(29015); -Object.keys(_deprecatedAliases.DEPRECATED_ALIASES).forEach(deprecatedAlias => { - _utils.FLIPPED_ALIAS_KEYS[deprecatedAlias] = _utils.FLIPPED_ALIAS_KEYS[_deprecatedAliases.DEPRECATED_ALIASES[deprecatedAlias]]; -}); -_toFastProperties(_utils.VISITOR_KEYS); -_toFastProperties(_utils.ALIAS_KEYS); -_toFastProperties(_utils.FLIPPED_ALIAS_KEYS); -_toFastProperties(_utils.NODE_FIELDS); -_toFastProperties(_utils.BUILDER_KEYS); -_toFastProperties(_utils.DEPRECATED_KEYS); -_toFastProperties(_placeholders.PLACEHOLDERS_ALIAS); -_toFastProperties(_placeholders.PLACEHOLDERS_FLIPPED_ALIAS); -const TYPES = [].concat(Object.keys(_utils.VISITOR_KEYS), Object.keys(_utils.FLIPPED_ALIAS_KEYS), Object.keys(_utils.DEPRECATED_KEYS)); -exports.TYPES = TYPES; - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 108: -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - - -var _utils = __nccwpck_require__(52203); -const defineType = (0, _utils.defineAliasedType)("JSX"); -defineType("JSXAttribute", { - visitor: ["name", "value"], - aliases: ["Immutable"], - fields: { - name: { - validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXNamespacedName") - }, - value: { - optional: true, - validate: (0, _utils.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer") - } - } -}); -defineType("JSXClosingElement", { - visitor: ["name"], - aliases: ["Immutable"], - fields: { - name: { - validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") - } +exports["default"] = transpileNamespace; +var _core = __nccwpck_require__(65258); +var _globalTypes = __nccwpck_require__(12444); +function transpileNamespace(path, allowNamespaces) { + if (path.node.declare || path.node.id.type === "StringLiteral") { + path.remove(); + return; } -}); -defineType("JSXElement", { - builder: ["openingElement", "closingElement", "children", "selfClosing"], - visitor: ["openingElement", "children", "closingElement"], - aliases: ["Immutable", "Expression"], - fields: Object.assign({ - openingElement: { - validate: (0, _utils.assertNodeType)("JSXOpeningElement") - }, - closingElement: { - optional: true, - validate: (0, _utils.assertNodeType)("JSXClosingElement") - }, - children: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment"))) - } - }, { - selfClosing: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - } - }) -}); -defineType("JSXEmptyExpression", {}); -defineType("JSXExpressionContainer", { - visitor: ["expression"], - aliases: ["Immutable"], - fields: { - expression: { - validate: (0, _utils.assertNodeType)("Expression", "JSXEmptyExpression") - } + if (!allowNamespaces) { + throw path.get("id").buildCodeFrameError("Namespace not marked type-only declare." + " Non-declarative namespaces are only supported experimentally in Babel." + " To enable and review caveats see:" + " https://babeljs.io/docs/en/babel-plugin-transform-typescript"); } -}); -defineType("JSXSpreadChild", { - visitor: ["expression"], - aliases: ["Immutable"], - fields: { - expression: { - validate: (0, _utils.assertNodeType)("Expression") - } + const name = path.node.id.name; + const value = handleNested(path, _core.types.cloneNode(path.node, true)); + if (value === null) { + const program = path.findParent(p => p.isProgram()); + (0, _globalTypes.registerGlobalType)(program.scope, name); + path.remove(); + } else if (path.scope.hasOwnBinding(name)) { + path.replaceWith(value); + } else { + path.scope.registerDeclaration(path.replaceWithMultiple([getDeclaration(name), value])[0]); } -}); -defineType("JSXIdentifier", { - builder: ["name"], - fields: { - name: { - validate: (0, _utils.assertValueType)("string") - } +} +function getDeclaration(name) { + return _core.types.variableDeclaration("let", [_core.types.variableDeclarator(_core.types.identifier(name))]); +} +function getMemberExpression(name, itemName) { + return _core.types.memberExpression(_core.types.identifier(name), _core.types.identifier(itemName)); +} +function handleVariableDeclaration(node, name, hub) { + if (node.kind !== "const") { + throw hub.file.buildCodeFrameError(node, "Namespaces exporting non-const are not supported by Babel." + " Change to const or see:" + " https://babeljs.io/docs/en/babel-plugin-transform-typescript"); } -}); -defineType("JSXMemberExpression", { - visitor: ["object", "property"], - fields: { - object: { - validate: (0, _utils.assertNodeType)("JSXMemberExpression", "JSXIdentifier") - }, - property: { - validate: (0, _utils.assertNodeType)("JSXIdentifier") + const { + declarations + } = node; + if (declarations.every(declarator => _core.types.isIdentifier(declarator.id))) { + for (const declarator of declarations) { + declarator.init = _core.types.assignmentExpression("=", getMemberExpression(name, declarator.id.name), declarator.init); } + return [node]; } -}); -defineType("JSXNamespacedName", { - visitor: ["namespace", "name"], - fields: { - namespace: { - validate: (0, _utils.assertNodeType)("JSXIdentifier") - }, - name: { - validate: (0, _utils.assertNodeType)("JSXIdentifier") - } + const bindingIdentifiers = _core.types.getBindingIdentifiers(node); + const assignments = []; + for (const idName in bindingIdentifiers) { + assignments.push(_core.types.assignmentExpression("=", getMemberExpression(name, idName), _core.types.cloneNode(bindingIdentifiers[idName]))); } -}); -defineType("JSXOpeningElement", { - builder: ["name", "attributes", "selfClosing"], - visitor: ["name", "attributes"], - aliases: ["Immutable"], - fields: { - name: { - validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") - }, - selfClosing: { - default: false - }, - attributes: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXAttribute", "JSXSpreadAttribute"))) - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), - optional: true + return [node, _core.types.expressionStatement(_core.types.sequenceExpression(assignments))]; +} +function buildNestedAmbientModuleError(path, node) { + return path.hub.buildError(node, "Ambient modules cannot be nested in other modules or namespaces.", Error); +} +function handleNested(path, node, parentExport) { + const names = new Set(); + const realName = node.id; + _core.types.assertIdentifier(realName); + const name = path.scope.generateUid(realName.name); + const namespaceTopLevel = _core.types.isTSModuleBlock(node.body) ? node.body.body : [_core.types.exportNamedDeclaration(node.body)]; + let isEmpty = true; + for (let i = 0; i < namespaceTopLevel.length; i++) { + const subNode = namespaceTopLevel[i]; + switch (subNode.type) { + case "TSModuleDeclaration": + { + if (!_core.types.isIdentifier(subNode.id)) { + throw buildNestedAmbientModuleError(path, subNode); + } + const transformed = handleNested(path, subNode); + if (transformed !== null) { + isEmpty = false; + const moduleName = subNode.id.name; + if (names.has(moduleName)) { + namespaceTopLevel[i] = transformed; + } else { + names.add(moduleName); + namespaceTopLevel.splice(i++, 1, getDeclaration(moduleName), transformed); + } + } + continue; + } + case "TSEnumDeclaration": + case "FunctionDeclaration": + case "ClassDeclaration": + isEmpty = false; + names.add(subNode.id.name); + continue; + case "VariableDeclaration": + { + isEmpty = false; + for (const name in _core.types.getBindingIdentifiers(subNode)) { + names.add(name); + } + continue; + } + default: + isEmpty && (isEmpty = _core.types.isTypeScript(subNode)); + continue; + case "ExportNamedDeclaration": } - } -}); -defineType("JSXSpreadAttribute", { - visitor: ["argument"], - fields: { - argument: { - validate: (0, _utils.assertNodeType)("Expression") + if ("declare" in subNode.declaration && subNode.declaration.declare) { + continue; } - } -}); -defineType("JSXText", { - aliases: ["Immutable"], - builder: ["value"], - fields: { - value: { - validate: (0, _utils.assertValueType)("string") + switch (subNode.declaration.type) { + case "TSEnumDeclaration": + case "FunctionDeclaration": + case "ClassDeclaration": + { + isEmpty = false; + const itemName = subNode.declaration.id.name; + names.add(itemName); + namespaceTopLevel.splice(i++, 1, subNode.declaration, _core.types.expressionStatement(_core.types.assignmentExpression("=", getMemberExpression(name, itemName), _core.types.identifier(itemName)))); + break; + } + case "VariableDeclaration": + { + isEmpty = false; + const nodes = handleVariableDeclaration(subNode.declaration, name, path.hub); + namespaceTopLevel.splice(i, nodes.length, ...nodes); + i += nodes.length - 1; + break; + } + case "TSModuleDeclaration": + { + if (!_core.types.isIdentifier(subNode.declaration.id)) { + throw buildNestedAmbientModuleError(path, subNode.declaration); + } + const transformed = handleNested(path, subNode.declaration, _core.types.identifier(name)); + if (transformed !== null) { + isEmpty = false; + const moduleName = subNode.declaration.id.name; + if (names.has(moduleName)) { + namespaceTopLevel[i] = transformed; + } else { + names.add(moduleName); + namespaceTopLevel.splice(i++, 1, getDeclaration(moduleName), transformed); + } + } else { + namespaceTopLevel.splice(i, 1); + i--; + } + } } } -}); -defineType("JSXFragment", { - builder: ["openingFragment", "closingFragment", "children"], - visitor: ["openingFragment", "children", "closingFragment"], - aliases: ["Immutable", "Expression"], - fields: { - openingFragment: { - validate: (0, _utils.assertNodeType)("JSXOpeningFragment") - }, - closingFragment: { - validate: (0, _utils.assertNodeType)("JSXClosingFragment") - }, - children: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment"))) - } + if (isEmpty) return null; + let fallthroughValue = _core.types.objectExpression([]); + if (parentExport) { + const memberExpr = _core.types.memberExpression(parentExport, realName); + fallthroughValue = _core.template.expression.ast` + ${_core.types.cloneNode(memberExpr)} || + (${_core.types.cloneNode(memberExpr)} = ${fallthroughValue}) + `; } -}); -defineType("JSXOpeningFragment", { - aliases: ["Immutable"] -}); -defineType("JSXClosingFragment", { - aliases: ["Immutable"] -}); - -//# sourceMappingURL=jsx.js.map - - -/***/ }), - -/***/ 20945: -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - - -var _utils = __nccwpck_require__(52203); -var _placeholders = __nccwpck_require__(26715); -const defineType = (0, _utils.defineAliasedType)("Miscellaneous"); -{ - defineType("Noop", { - visitor: [] - }); + return _core.template.statement.ast` + (function (${_core.types.identifier(name)}) { + ${namespaceTopLevel} + })(${realName} || (${_core.types.cloneNode(realName)} = ${fallthroughValue})); + `; } -defineType("Placeholder", { - visitor: [], - builder: ["expectedNode", "name"], - fields: { - name: { - validate: (0, _utils.assertNodeType)("Identifier") - }, - expectedNode: { - validate: (0, _utils.assertOneOf)(..._placeholders.PLACEHOLDERS) - } - } -}); -defineType("V8IntrinsicIdentifier", { - builder: ["name"], - fields: { - name: { - validate: (0, _utils.assertValueType)("string") - } - } -}); -//# sourceMappingURL=misc.js.map +//# sourceMappingURL=namespace.js.map /***/ }), -/***/ 26715: +/***/ 17630: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -133749,534 +74323,219 @@ defineType("V8IntrinsicIdentifier", { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PLACEHOLDERS_FLIPPED_ALIAS = exports.PLACEHOLDERS_ALIAS = exports.PLACEHOLDERS = void 0; -var _utils = __nccwpck_require__(52203); -const PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"]; -exports.PLACEHOLDERS = PLACEHOLDERS; -const PLACEHOLDERS_ALIAS = { - Declaration: ["Statement"], - Pattern: ["PatternLike", "LVal"] -}; -exports.PLACEHOLDERS_ALIAS = PLACEHOLDERS_ALIAS; -for (const type of PLACEHOLDERS) { - const alias = _utils.ALIAS_KEYS[type]; - if (alias != null && alias.length) PLACEHOLDERS_ALIAS[type] = alias; -} -const PLACEHOLDERS_FLIPPED_ALIAS = {}; -exports.PLACEHOLDERS_FLIPPED_ALIAS = PLACEHOLDERS_FLIPPED_ALIAS; -Object.keys(PLACEHOLDERS_ALIAS).forEach(type => { - PLACEHOLDERS_ALIAS[type].forEach(alias => { - if (!Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS, alias)) { - PLACEHOLDERS_FLIPPED_ALIAS[alias] = []; +exports["default"] = void 0; +var _helperPluginUtils = __nccwpck_require__(36028); +var _core = __nccwpck_require__(65258); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + const surrogate = /[\ud800-\udfff]/g; + const unicodeEscape = /(\\+)u\{([0-9a-fA-F]+)\}/g; + function escape(code) { + { + let str = code.toString(16); + while (str.length < 4) str = "0" + str; + return "\\u" + str; } - PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type); - }); -}); - -//# sourceMappingURL=placeholders.js.map - - -/***/ }), - -/***/ 43703: -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - - -var _utils = __nccwpck_require__(52203); -var _core = __nccwpck_require__(60730); -var _is = __nccwpck_require__(73217); -const defineType = (0, _utils.defineAliasedType)("TypeScript"); -const bool = (0, _utils.assertValueType)("boolean"); -const tSFunctionTypeAnnotationCommon = () => ({ - returnType: { - validate: (0, _utils.assertNodeType)("TSTypeAnnotation", "Noop"), - optional: true - }, - typeParameters: { - validate: (0, _utils.assertNodeType)("TSTypeParameterDeclaration", "Noop"), - optional: true } -}); -defineType("TSParameterProperty", { - aliases: ["LVal"], - visitor: ["parameter"], - fields: { - accessibility: { - validate: (0, _utils.assertOneOf)("public", "private", "protected"), - optional: true - }, - readonly: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - parameter: { - validate: (0, _utils.assertNodeType)("Identifier", "AssignmentPattern") - }, - override: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - decorators: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), - optional: true + function replacer(match, backslashes, code) { + if (backslashes.length % 2 === 0) { + return match; } + const char = String.fromCodePoint(parseInt(code, 16)); + const escaped = backslashes.slice(0, -1) + escape(char.charCodeAt(0)); + return char.length === 1 ? escaped : escaped + escape(char.charCodeAt(1)); } -}); -defineType("TSDeclareFunction", { - aliases: ["Statement", "Declaration"], - visitor: ["id", "typeParameters", "params", "returnType"], - fields: Object.assign({}, (0, _core.functionDeclarationCommon)(), tSFunctionTypeAnnotationCommon()) -}); -defineType("TSDeclareMethod", { - visitor: ["decorators", "key", "typeParameters", "params", "returnType"], - fields: Object.assign({}, (0, _core.classMethodOrDeclareMethodCommon)(), tSFunctionTypeAnnotationCommon()) -}); -defineType("TSQualifiedName", { - aliases: ["TSEntityName"], - visitor: ["left", "right"], - fields: { - left: (0, _utils.validateType)("TSEntityName"), - right: (0, _utils.validateType)("Identifier") + function replaceUnicodeEscapes(str) { + return str.replace(unicodeEscape, replacer); } -}); -const signatureDeclarationCommon = () => ({ - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"), - ["parameters"]: (0, _utils.validateArrayOfType)(["Identifier", "RestElement"]), - ["typeAnnotation"]: (0, _utils.validateOptionalType)("TSTypeAnnotation") -}); -const callConstructSignatureDeclaration = { - aliases: ["TSTypeElement"], - visitor: ["typeParameters", "parameters", "typeAnnotation"], - fields: signatureDeclarationCommon() -}; -defineType("TSCallSignatureDeclaration", callConstructSignatureDeclaration); -defineType("TSConstructSignatureDeclaration", callConstructSignatureDeclaration); -const namedTypeElementCommon = () => ({ - key: (0, _utils.validateType)("Expression"), - computed: { - default: false - }, - optional: (0, _utils.validateOptional)(bool) -}); -defineType("TSPropertySignature", { - aliases: ["TSTypeElement"], - visitor: ["key", "typeAnnotation", "initializer"], - fields: Object.assign({}, namedTypeElementCommon(), { - readonly: (0, _utils.validateOptional)(bool), - typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), - initializer: (0, _utils.validateOptionalType)("Expression"), - kind: { - validate: (0, _utils.assertOneOf)("get", "set") - } - }) -}); -defineType("TSMethodSignature", { - aliases: ["TSTypeElement"], - visitor: ["key", "typeParameters", "parameters", "typeAnnotation"], - fields: Object.assign({}, signatureDeclarationCommon(), namedTypeElementCommon(), { - kind: { - validate: (0, _utils.assertOneOf)("method", "get", "set") + function getUnicodeEscape(str) { + let match; + while (match = unicodeEscape.exec(str)) { + if (match[1].length % 2 === 0) continue; + unicodeEscape.lastIndex = 0; + return match[0]; } - }) -}); -defineType("TSIndexSignature", { - aliases: ["TSTypeElement"], - visitor: ["parameters", "typeAnnotation"], - fields: { - readonly: (0, _utils.validateOptional)(bool), - static: (0, _utils.validateOptional)(bool), - parameters: (0, _utils.validateArrayOfType)("Identifier"), - typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation") - } -}); -const tsKeywordTypes = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeyword", "TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"]; -for (const type of tsKeywordTypes) { - defineType(type, { - aliases: ["TSType", "TSBaseType"], - visitor: [], - fields: {} - }); -} -defineType("TSThisType", { - aliases: ["TSType", "TSBaseType"], - visitor: [], - fields: {} -}); -const fnOrCtrBase = { - aliases: ["TSType"], - visitor: ["typeParameters", "parameters", "typeAnnotation"] -}; -defineType("TSFunctionType", Object.assign({}, fnOrCtrBase, { - fields: signatureDeclarationCommon() -})); -defineType("TSConstructorType", Object.assign({}, fnOrCtrBase, { - fields: Object.assign({}, signatureDeclarationCommon(), { - abstract: (0, _utils.validateOptional)(bool) - }) -})); -defineType("TSTypeReference", { - aliases: ["TSType"], - visitor: ["typeName", "typeParameters"], - fields: { - typeName: (0, _utils.validateType)("TSEntityName"), - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") - } -}); -defineType("TSTypePredicate", { - aliases: ["TSType"], - visitor: ["parameterName", "typeAnnotation"], - builder: ["parameterName", "typeAnnotation", "asserts"], - fields: { - parameterName: (0, _utils.validateType)(["Identifier", "TSThisType"]), - typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), - asserts: (0, _utils.validateOptional)(bool) - } -}); -defineType("TSTypeQuery", { - aliases: ["TSType"], - visitor: ["exprName", "typeParameters"], - fields: { - exprName: (0, _utils.validateType)(["TSEntityName", "TSImportType"]), - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") - } -}); -defineType("TSTypeLiteral", { - aliases: ["TSType"], - visitor: ["members"], - fields: { - members: (0, _utils.validateArrayOfType)("TSTypeElement") - } -}); -defineType("TSArrayType", { - aliases: ["TSType"], - visitor: ["elementType"], - fields: { - elementType: (0, _utils.validateType)("TSType") - } -}); -defineType("TSTupleType", { - aliases: ["TSType"], - visitor: ["elementTypes"], - fields: { - elementTypes: (0, _utils.validateArrayOfType)(["TSType", "TSNamedTupleMember"]) - } -}); -defineType("TSOptionalType", { - aliases: ["TSType"], - visitor: ["typeAnnotation"], - fields: { - typeAnnotation: (0, _utils.validateType)("TSType") - } -}); -defineType("TSRestType", { - aliases: ["TSType"], - visitor: ["typeAnnotation"], - fields: { - typeAnnotation: (0, _utils.validateType)("TSType") + return null; } -}); -defineType("TSNamedTupleMember", { - visitor: ["label", "elementType"], - builder: ["label", "elementType", "optional"], - fields: { - label: (0, _utils.validateType)("Identifier"), - optional: { - validate: bool, - default: false + return { + name: "transform-unicode-escapes", + manipulateOptions({ + generatorOpts + }) { + var _generatorOpts$jsescO, _generatorOpts$jsescO2; + if (!generatorOpts.jsescOption) { + generatorOpts.jsescOption = {}; + } + (_generatorOpts$jsescO2 = (_generatorOpts$jsescO = generatorOpts.jsescOption).minimal) != null ? _generatorOpts$jsescO2 : _generatorOpts$jsescO.minimal = false; }, - elementType: (0, _utils.validateType)("TSType") - } -}); -const unionOrIntersection = { - aliases: ["TSType"], - visitor: ["types"], - fields: { - types: (0, _utils.validateArrayOfType)("TSType") - } -}; -defineType("TSUnionType", unionOrIntersection); -defineType("TSIntersectionType", unionOrIntersection); -defineType("TSConditionalType", { - aliases: ["TSType"], - visitor: ["checkType", "extendsType", "trueType", "falseType"], - fields: { - checkType: (0, _utils.validateType)("TSType"), - extendsType: (0, _utils.validateType)("TSType"), - trueType: (0, _utils.validateType)("TSType"), - falseType: (0, _utils.validateType)("TSType") - } -}); -defineType("TSInferType", { - aliases: ["TSType"], - visitor: ["typeParameter"], - fields: { - typeParameter: (0, _utils.validateType)("TSTypeParameter") - } -}); -defineType("TSParenthesizedType", { - aliases: ["TSType"], - visitor: ["typeAnnotation"], - fields: { - typeAnnotation: (0, _utils.validateType)("TSType") - } -}); -defineType("TSTypeOperator", { - aliases: ["TSType"], - visitor: ["typeAnnotation"], - fields: { - operator: (0, _utils.validate)((0, _utils.assertValueType)("string")), - typeAnnotation: (0, _utils.validateType)("TSType") - } -}); -defineType("TSIndexedAccessType", { - aliases: ["TSType"], - visitor: ["objectType", "indexType"], - fields: { - objectType: (0, _utils.validateType)("TSType"), - indexType: (0, _utils.validateType)("TSType") - } -}); -defineType("TSMappedType", { - aliases: ["TSType"], - visitor: ["typeParameter", "typeAnnotation", "nameType"], - fields: { - readonly: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), - typeParameter: (0, _utils.validateType)("TSTypeParameter"), - optional: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), - typeAnnotation: (0, _utils.validateOptionalType)("TSType"), - nameType: (0, _utils.validateOptionalType)("TSType") - } -}); -defineType("TSLiteralType", { - aliases: ["TSType", "TSBaseType"], - visitor: ["literal"], - fields: { - literal: { - validate: function () { - const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"); - const unaryOperator = (0, _utils.assertOneOf)("-"); - const literal = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral"); - function validator(parent, key, node) { - if ((0, _is.default)("UnaryExpression", node)) { - unaryOperator(node, "operator", node.operator); - unaryExpression(node, "argument", node.argument); - } else { - literal(parent, key, node); - } + visitor: { + Identifier(path) { + const { + node, + key + } = path; + const { + name + } = node; + const replaced = name.replace(surrogate, c => { + return `_u${c.charCodeAt(0).toString(16)}`; + }); + if (name === replaced) return; + const str = _core.types.inherits(_core.types.stringLiteral(name), node); + if (key === "key") { + path.replaceWith(str); + return; } - validator.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpression"]; - return validator; - }() - } - } -}); -defineType("TSExpressionWithTypeArguments", { - aliases: ["TSType"], - visitor: ["expression", "typeParameters"], - fields: { - expression: (0, _utils.validateType)("TSEntityName"), - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") - } -}); -defineType("TSInterfaceDeclaration", { - aliases: ["Statement", "Declaration"], - visitor: ["id", "typeParameters", "extends", "body"], - fields: { - declare: (0, _utils.validateOptional)(bool), - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"), - extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("TSExpressionWithTypeArguments")), - body: (0, _utils.validateType)("TSInterfaceBody") - } -}); -defineType("TSInterfaceBody", { - visitor: ["body"], - fields: { - body: (0, _utils.validateArrayOfType)("TSTypeElement") - } -}); -defineType("TSTypeAliasDeclaration", { - aliases: ["Statement", "Declaration"], - visitor: ["id", "typeParameters", "typeAnnotation"], - fields: { - declare: (0, _utils.validateOptional)(bool), - id: (0, _utils.validateType)("Identifier"), - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"), - typeAnnotation: (0, _utils.validateType)("TSType") - } -}); -defineType("TSInstantiationExpression", { - aliases: ["Expression"], - visitor: ["expression", "typeParameters"], - fields: { - expression: (0, _utils.validateType)("Expression"), - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") - } -}); -const TSTypeExpression = { - aliases: ["Expression", "LVal", "PatternLike"], - visitor: ["expression", "typeAnnotation"], - fields: { - expression: (0, _utils.validateType)("Expression"), - typeAnnotation: (0, _utils.validateType)("TSType") - } -}; -defineType("TSAsExpression", TSTypeExpression); -defineType("TSSatisfiesExpression", TSTypeExpression); -defineType("TSTypeAssertion", { - aliases: ["Expression", "LVal", "PatternLike"], - visitor: ["typeAnnotation", "expression"], - fields: { - typeAnnotation: (0, _utils.validateType)("TSType"), - expression: (0, _utils.validateType)("Expression") - } -}); -defineType("TSEnumDeclaration", { - aliases: ["Statement", "Declaration"], - visitor: ["id", "members"], - fields: { - declare: (0, _utils.validateOptional)(bool), - const: (0, _utils.validateOptional)(bool), - id: (0, _utils.validateType)("Identifier"), - members: (0, _utils.validateArrayOfType)("TSEnumMember"), - initializer: (0, _utils.validateOptionalType)("Expression") - } -}); -defineType("TSEnumMember", { - visitor: ["id", "initializer"], - fields: { - id: (0, _utils.validateType)(["Identifier", "StringLiteral"]), - initializer: (0, _utils.validateOptionalType)("Expression") - } -}); -defineType("TSModuleDeclaration", { - aliases: ["Statement", "Declaration"], - visitor: ["id", "body"], - fields: { - declare: (0, _utils.validateOptional)(bool), - global: (0, _utils.validateOptional)(bool), - id: (0, _utils.validateType)(["Identifier", "StringLiteral"]), - body: (0, _utils.validateType)(["TSModuleBlock", "TSModuleDeclaration"]) - } -}); -defineType("TSModuleBlock", { - aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"], - visitor: ["body"], - fields: { - body: (0, _utils.validateArrayOfType)("Statement") - } -}); -defineType("TSImportType", { - aliases: ["TSType"], - visitor: ["argument", "qualifier", "typeParameters"], - fields: { - argument: (0, _utils.validateType)("StringLiteral"), - qualifier: (0, _utils.validateOptionalType)("TSEntityName"), - typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") - } -}); -defineType("TSImportEqualsDeclaration", { - aliases: ["Statement"], - visitor: ["id", "moduleReference"], - fields: { - isExport: (0, _utils.validate)(bool), - id: (0, _utils.validateType)("Identifier"), - moduleReference: (0, _utils.validateType)(["TSEntityName", "TSExternalModuleReference"]), - importKind: { - validate: (0, _utils.assertOneOf)("type", "value"), - optional: true + const { + parentPath, + scope + } = path; + if (parentPath.isMemberExpression({ + property: node + }) || parentPath.isOptionalMemberExpression({ + property: node + })) { + parentPath.node.computed = true; + path.replaceWith(str); + return; + } + const binding = scope.getBinding(name); + if (binding) { + scope.rename(name, scope.generateUid(replaced)); + return; + } + throw path.buildCodeFrameError(`Can't reference '${name}' as a bare identifier`); + }, + "StringLiteral|DirectiveLiteral"(path) { + const { + node + } = path; + const { + extra + } = node; + if (extra != null && extra.raw) extra.raw = replaceUnicodeEscapes(extra.raw); + }, + TemplateElement(path) { + const { + node, + parentPath + } = path; + const { + value + } = node; + const firstEscape = getUnicodeEscape(value.raw); + if (!firstEscape) return; + const grandParent = parentPath.parentPath; + if (grandParent.isTaggedTemplateExpression()) { + throw path.buildCodeFrameError(`Can't replace Unicode escape '${firstEscape}' inside tagged template literals. You can enable '@babel/plugin-transform-template-literals' to compile them to classic strings.`); + } + value.raw = replaceUnicodeEscapes(value.raw); + } } - } -}); -defineType("TSExternalModuleReference", { - visitor: ["expression"], - fields: { - expression: (0, _utils.validateType)("StringLiteral") - } -}); -defineType("TSNonNullExpression", { - aliases: ["Expression", "LVal", "PatternLike"], - visitor: ["expression"], - fields: { - expression: (0, _utils.validateType)("Expression") - } -}); -defineType("TSExportAssignment", { - aliases: ["Statement"], - visitor: ["expression"], - fields: { - expression: (0, _utils.validateType)("Expression") - } -}); -defineType("TSNamespaceExportDeclaration", { - aliases: ["Statement"], - visitor: ["id"], - fields: { - id: (0, _utils.validateType)("Identifier") - } + }; }); -defineType("TSTypeAnnotation", { - visitor: ["typeAnnotation"], - fields: { - typeAnnotation: { - validate: (0, _utils.assertNodeType)("TSType") - } + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 26498: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(63106); +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)((api, options) => { + api.assertVersion(7); + const { + useUnicodeFlag = true + } = options; + if (typeof useUnicodeFlag !== "boolean") { + throw new Error(".useUnicodeFlag must be a boolean, or undefined"); } -}); -defineType("TSTypeParameterInstantiation", { - visitor: ["params"], - fields: { - params: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSType"))) + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-unicode-property-regex", + feature: "unicodePropertyEscape", + options: { + useUnicodeFlag } - } + }); }); -defineType("TSTypeParameterDeclaration", { - visitor: ["params"], - fields: { - params: { - validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSTypeParameter"))) - } - } + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 54361: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(63106); +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-unicode-regex", + feature: "unicodeFlag" + }); }); -defineType("TSTypeParameter", { - builder: ["constraint", "default", "name"], - visitor: ["constraint", "default"], - fields: { - name: { - validate: (0, _utils.assertValueType)("string") - }, - in: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - out: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - const: { - validate: (0, _utils.assertValueType)("boolean"), - optional: true - }, - constraint: { - validate: (0, _utils.assertNodeType)("TSType"), - optional: true - }, - default: { - validate: (0, _utils.assertNodeType)("TSType"), - optional: true + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 59108: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _helperCreateRegexpFeaturesPlugin = __nccwpck_require__(63106); +var _helperPluginUtils = __nccwpck_require__(36028); +var _default = exports["default"] = (0, _helperPluginUtils.declare)(api => { + api.assertVersion(7); + return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ + name: "transform-unicode-sets-regex", + feature: "unicodeSetsFlag", + manipulateOptions(opts, parserOpts) { + parserOpts.plugins.push("regexpUnicodeSets"); } - } + }); }); -//# sourceMappingURL=typescript.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 52203: +/***/ 40480: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +module.exports = __nccwpck_require__(33408); + + +/***/ }), + +/***/ 11818: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -134285,285 +74544,249 @@ defineType("TSTypeParameter", { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.VISITOR_KEYS = exports.NODE_PARENT_VALIDATIONS = exports.NODE_FIELDS = exports.FLIPPED_ALIAS_KEYS = exports.DEPRECATED_KEYS = exports.BUILDER_KEYS = exports.ALIAS_KEYS = void 0; -exports.arrayOf = arrayOf; -exports.arrayOfType = arrayOfType; -exports.assertEach = assertEach; -exports.assertNodeOrValueType = assertNodeOrValueType; -exports.assertNodeType = assertNodeType; -exports.assertOneOf = assertOneOf; -exports.assertOptionalChainStart = assertOptionalChainStart; -exports.assertShape = assertShape; -exports.assertValueType = assertValueType; -exports.chain = chain; -exports["default"] = defineType; -exports.defineAliasedType = defineAliasedType; -exports.typeIs = typeIs; -exports.validate = validate; -exports.validateArrayOfType = validateArrayOfType; -exports.validateOptional = validateOptional; -exports.validateOptionalType = validateOptionalType; -exports.validateType = validateType; -var _is = __nccwpck_require__(73217); -var _validate = __nccwpck_require__(6000); -const VISITOR_KEYS = {}; -exports.VISITOR_KEYS = VISITOR_KEYS; -const ALIAS_KEYS = {}; -exports.ALIAS_KEYS = ALIAS_KEYS; -const FLIPPED_ALIAS_KEYS = {}; -exports.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS; -const NODE_FIELDS = {}; -exports.NODE_FIELDS = NODE_FIELDS; -const BUILDER_KEYS = {}; -exports.BUILDER_KEYS = BUILDER_KEYS; -const DEPRECATED_KEYS = {}; -exports.DEPRECATED_KEYS = DEPRECATED_KEYS; -const NODE_PARENT_VALIDATIONS = {}; -exports.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS; -function getType(val) { - if (Array.isArray(val)) { - return "array"; - } else if (val === null) { - return "null"; - } else { - return typeof val; - } -} -function validate(validate) { - return { - validate - }; -} -function typeIs(typeName) { - return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName); -} -function validateType(typeName) { - return validate(typeIs(typeName)); -} -function validateOptional(validate) { - return { - validate, - optional: true - }; -} -function validateOptionalType(typeName) { - return { - validate: typeIs(typeName), - optional: true - }; -} -function arrayOf(elementType) { - return chain(assertValueType("array"), assertEach(elementType)); -} -function arrayOfType(typeName) { - return arrayOf(typeIs(typeName)); -} -function validateArrayOfType(typeName) { - return validate(arrayOfType(typeName)); -} -function assertEach(callback) { - function validator(node, key, val) { - if (!Array.isArray(val)) return; - for (let i = 0; i < val.length; i++) { - const subkey = `${key}[${i}]`; - const v = val[i]; - callback(node, subkey, v); - if (process.env.BABEL_TYPES_8_BREAKING) (0, _validate.validateChild)(node, subkey, v); - } - } - validator.each = callback; - return validator; -} -function assertOneOf(...values) { - function validate(node, key, val) { - if (values.indexOf(val) < 0) { - throw new TypeError(`Property ${key} expected value to be one of ${JSON.stringify(values)} but got ${JSON.stringify(val)}`); - } - } - validate.oneOf = values; - return validate; -} -function assertNodeType(...types) { - function validate(node, key, val) { - for (const type of types) { - if ((0, _is.default)(type, val)) { - (0, _validate.validateChild)(node, key, val); - return; - } - } - throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(val == null ? void 0 : val.type)}`); - } - validate.oneOfNodeTypes = types; - return validate; -} -function assertNodeOrValueType(...types) { - function validate(node, key, val) { - for (const type of types) { - if (getType(val) === type || (0, _is.default)(type, val)) { - (0, _validate.validateChild)(node, key, val); - return; - } - } - throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(val == null ? void 0 : val.type)}`); - } - validate.oneOfNodeOrValueTypes = types; - return validate; -} -function assertValueType(type) { - function validate(node, key, val) { - const valid = getType(val) === type; - if (!valid) { - throw new TypeError(`Property ${key} expected type of ${type} but got ${getType(val)}`); - } - } - validate.type = type; - return validate; -} -function assertShape(shape) { - function validate(node, key, val) { - const errors = []; - for (const property of Object.keys(shape)) { - try { - (0, _validate.validateField)(node, property, val[property], shape[property]); - } catch (error) { - if (error instanceof TypeError) { - errors.push(error.message); - continue; - } - throw error; - } - } - if (errors.length) { - throw new TypeError(`Property ${key} of ${node.type} expected to have the following:\n${errors.join("\n")}`); - } +exports.minVersions = exports["default"] = void 0; +var _pluginSyntaxImportAssertions = __nccwpck_require__(67882); +var _pluginSyntaxImportAttributes = __nccwpck_require__(92040); +var _pluginTransformAsyncGeneratorFunctions = __nccwpck_require__(79178); +var _pluginTransformClassProperties = __nccwpck_require__(60281); +var _pluginTransformClassStaticBlock = __nccwpck_require__(96162); +var _pluginTransformDynamicImport = __nccwpck_require__(2824); +var _pluginTransformExportNamespaceFrom = __nccwpck_require__(29722); +var _pluginTransformJsonStrings = __nccwpck_require__(59995); +var _pluginTransformLogicalAssignmentOperators = __nccwpck_require__(90587); +var _pluginTransformNullishCoalescingOperator = __nccwpck_require__(75810); +var _pluginTransformNumericSeparator = __nccwpck_require__(73294); +var _pluginTransformObjectRestSpread = __nccwpck_require__(23177); +var _pluginTransformOptionalCatchBinding = __nccwpck_require__(88030); +var _pluginTransformOptionalChaining = __nccwpck_require__(84733); +var _pluginTransformPrivateMethods = __nccwpck_require__(15351); +var _pluginTransformPrivatePropertyInObject = __nccwpck_require__(22245); +var _pluginTransformUnicodePropertyRegex = __nccwpck_require__(26498); +var _pluginTransformAsyncToGenerator = __nccwpck_require__(57524); +var _pluginTransformArrowFunctions = __nccwpck_require__(9158); +var _pluginTransformBlockScopedFunctions = __nccwpck_require__(287); +var _pluginTransformBlockScoping = __nccwpck_require__(27971); +var _pluginTransformClasses = __nccwpck_require__(65347); +var _pluginTransformComputedProperties = __nccwpck_require__(86169); +var _pluginTransformDestructuring = __nccwpck_require__(41135); +var _pluginTransformDotallRegex = __nccwpck_require__(26220); +var _pluginTransformDuplicateKeys = __nccwpck_require__(3211); +var _pluginTransformExponentiationOperator = __nccwpck_require__(84169); +var _pluginTransformForOf = __nccwpck_require__(56685); +var _pluginTransformFunctionName = __nccwpck_require__(4365); +var _pluginTransformLiterals = __nccwpck_require__(48498); +var _pluginTransformMemberExpressionLiterals = __nccwpck_require__(53098); +var _pluginTransformModulesAmd = __nccwpck_require__(97119); +var _pluginTransformModulesCommonjs = __nccwpck_require__(17146); +var _pluginTransformModulesSystemjs = __nccwpck_require__(89332); +var _pluginTransformModulesUmd = __nccwpck_require__(47417); +var _pluginTransformNamedCapturingGroupsRegex = __nccwpck_require__(96625); +var _pluginTransformNewTarget = __nccwpck_require__(3256); +var _pluginTransformObjectSuper = __nccwpck_require__(63893); +var _pluginTransformParameters = __nccwpck_require__(8046); +var _pluginTransformPropertyLiterals = __nccwpck_require__(29678); +var _pluginTransformRegenerator = __nccwpck_require__(47755); +var _pluginTransformReservedWords = __nccwpck_require__(17447); +var _pluginTransformShorthandProperties = __nccwpck_require__(72776); +var _pluginTransformSpread = __nccwpck_require__(72599); +var _pluginTransformStickyRegex = __nccwpck_require__(96204); +var _pluginTransformTemplateLiterals = __nccwpck_require__(29341); +var _pluginTransformTypeofSymbol = __nccwpck_require__(12484); +var _pluginTransformUnicodeEscapes = __nccwpck_require__(17630); +var _pluginTransformUnicodeRegex = __nccwpck_require__(54361); +var _pluginTransformUnicodeSetsRegex = __nccwpck_require__(59108); +var _index = __nccwpck_require__(81003); +var _index2 = __nccwpck_require__(54976); +var _index3 = __nccwpck_require__(35136); +var _index4 = __nccwpck_require__(26513); +var _index5 = __nccwpck_require__(57275); +var _index6 = __nccwpck_require__(47742); +var _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression = __nccwpck_require__(88947); +var _pluginBugfixV8SpreadParametersInOptionalChaining = __nccwpck_require__(64307); +var _pluginBugfixV8StaticClassFieldsRedefineReadonly = __nccwpck_require__(32532); +const availablePlugins = exports["default"] = { + "bugfix/transform-async-arrows-in-class": () => _index, + "bugfix/transform-edge-default-parameters": () => _index2, + "bugfix/transform-edge-function-name": () => _index3, + "bugfix/transform-safari-block-shadowing": () => _index5, + "bugfix/transform-safari-for-shadowing": () => _index6, + "bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default, + "bugfix/transform-tagged-template-caching": () => _index4, + "bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default, + "bugfix/transform-v8-static-class-fields-redefine-readonly": () => _pluginBugfixV8StaticClassFieldsRedefineReadonly.default, + "syntax-import-assertions": () => _pluginSyntaxImportAssertions.default, + "syntax-import-attributes": () => _pluginSyntaxImportAttributes.default, + "transform-arrow-functions": () => _pluginTransformArrowFunctions.default, + "transform-async-generator-functions": () => _pluginTransformAsyncGeneratorFunctions.default, + "transform-async-to-generator": () => _pluginTransformAsyncToGenerator.default, + "transform-block-scoped-functions": () => _pluginTransformBlockScopedFunctions.default, + "transform-block-scoping": () => _pluginTransformBlockScoping.default, + "transform-class-properties": () => _pluginTransformClassProperties.default, + "transform-class-static-block": () => _pluginTransformClassStaticBlock.default, + "transform-classes": () => _pluginTransformClasses.default, + "transform-computed-properties": () => _pluginTransformComputedProperties.default, + "transform-destructuring": () => _pluginTransformDestructuring.default, + "transform-dotall-regex": () => _pluginTransformDotallRegex.default, + "transform-duplicate-keys": () => _pluginTransformDuplicateKeys.default, + "transform-dynamic-import": () => _pluginTransformDynamicImport.default, + "transform-exponentiation-operator": () => _pluginTransformExponentiationOperator.default, + "transform-export-namespace-from": () => _pluginTransformExportNamespaceFrom.default, + "transform-for-of": () => _pluginTransformForOf.default, + "transform-function-name": () => _pluginTransformFunctionName.default, + "transform-json-strings": () => _pluginTransformJsonStrings.default, + "transform-literals": () => _pluginTransformLiterals.default, + "transform-logical-assignment-operators": () => _pluginTransformLogicalAssignmentOperators.default, + "transform-member-expression-literals": () => _pluginTransformMemberExpressionLiterals.default, + "transform-modules-amd": () => _pluginTransformModulesAmd.default, + "transform-modules-commonjs": () => _pluginTransformModulesCommonjs.default, + "transform-modules-systemjs": () => _pluginTransformModulesSystemjs.default, + "transform-modules-umd": () => _pluginTransformModulesUmd.default, + "transform-named-capturing-groups-regex": () => _pluginTransformNamedCapturingGroupsRegex.default, + "transform-new-target": () => _pluginTransformNewTarget.default, + "transform-nullish-coalescing-operator": () => _pluginTransformNullishCoalescingOperator.default, + "transform-numeric-separator": () => _pluginTransformNumericSeparator.default, + "transform-object-rest-spread": () => _pluginTransformObjectRestSpread.default, + "transform-object-super": () => _pluginTransformObjectSuper.default, + "transform-optional-catch-binding": () => _pluginTransformOptionalCatchBinding.default, + "transform-optional-chaining": () => _pluginTransformOptionalChaining.default, + "transform-parameters": () => _pluginTransformParameters.default, + "transform-private-methods": () => _pluginTransformPrivateMethods.default, + "transform-private-property-in-object": () => _pluginTransformPrivatePropertyInObject.default, + "transform-property-literals": () => _pluginTransformPropertyLiterals.default, + "transform-regenerator": () => _pluginTransformRegenerator.default, + "transform-reserved-words": () => _pluginTransformReservedWords.default, + "transform-shorthand-properties": () => _pluginTransformShorthandProperties.default, + "transform-spread": () => _pluginTransformSpread.default, + "transform-sticky-regex": () => _pluginTransformStickyRegex.default, + "transform-template-literals": () => _pluginTransformTemplateLiterals.default, + "transform-typeof-symbol": () => _pluginTransformTypeofSymbol.default, + "transform-unicode-escapes": () => _pluginTransformUnicodeEscapes.default, + "transform-unicode-property-regex": () => _pluginTransformUnicodePropertyRegex.default, + "transform-unicode-regex": () => _pluginTransformUnicodeRegex.default, + "transform-unicode-sets-regex": () => _pluginTransformUnicodeSetsRegex.default +}; +const minVersions = exports.minVersions = {}; +{ + Object.assign(minVersions, { + "bugfix/transform-safari-id-destructuring-collision-in-function-expression": "7.16.0", + "bugfix/transform-v8-static-class-fields-redefine-readonly": "7.12.0", + "syntax-import-attributes": "7.22.0", + "transform-class-static-block": "7.12.0", + "transform-private-property-in-object": "7.10.0" + }); + const e = () => () => () => ({}); + Object.assign(availablePlugins, { + "syntax-async-generators": () => __nccwpck_require__(58656), + "syntax-class-properties": () => __nccwpck_require__(94961), + "syntax-class-static-block": () => __nccwpck_require__(69861), + "syntax-dynamic-import": () => __nccwpck_require__(20797), + "syntax-export-namespace-from": () => __nccwpck_require__(46972), + "syntax-import-meta": () => __nccwpck_require__(14362), + "syntax-json-strings": () => __nccwpck_require__(45142), + "syntax-logical-assignment-operators": () => __nccwpck_require__(70400), + "syntax-nullish-coalescing-operator": () => __nccwpck_require__(94339), + "syntax-numeric-separator": () => __nccwpck_require__(40311), + "syntax-object-rest-spread": () => __nccwpck_require__(36156), + "syntax-optional-catch-binding": () => __nccwpck_require__(70110), + "syntax-optional-chaining": () => __nccwpck_require__(99617), + "syntax-private-property-in-object": () => __nccwpck_require__(52495), + "syntax-top-level-await": () => __nccwpck_require__(62166) + }); + { + availablePlugins["unicode-sets-regex"] = () => __nccwpck_require__(78069); } - validate.shapeOf = shape; - return validate; } -function assertOptionalChainStart() { - function validate(node) { - var _current; - let current = node; - while (node) { - const { - type - } = current; - if (type === "OptionalCallExpression") { - if (current.optional) return; - current = current.callee; - continue; - } - if (type === "OptionalMemberExpression") { - if (current.optional) return; - current = current.object; - continue; + +//# sourceMappingURL=available-plugins.js.map + + +/***/ }), + +/***/ 86434: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.logPlugin = void 0; +var _helperCompilationTargets = __nccwpck_require__(91047); +var _plugins = __nccwpck_require__(48255); +const logPlugin = (item, targetVersions, list) => { + const filteredList = (0, _helperCompilationTargets.getInclusionReasons)(item, targetVersions, list); + const support = list[item]; + { + if (item.startsWith("transform-")) { + const proposalName = `proposal-${item.slice(10)}`; + if (proposalName === "proposal-dynamic-import" || Object.prototype.hasOwnProperty.call(_plugins, proposalName)) { + item = proposalName; } - break; } - throw new TypeError(`Non-optional ${node.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(_current = current) == null ? void 0 : _current.type}`); } - return validate; -} -function chain(...fns) { - function validate(...args) { - for (const fn of fns) { - fn(...args); - } + if (!support) { + console.log(` ${item}`); + return; } - validate.chainOf = fns; - if (fns.length >= 2 && "type" in fns[0] && fns[0].type === "array" && !("each" in fns[1])) { - throw new Error(`An assertValueType("array") validator can only be followed by an assertEach(...) validator.`); + let formattedTargets = `{`; + let first = true; + for (const target of Object.keys(filteredList)) { + if (!first) formattedTargets += `,`; + first = false; + formattedTargets += ` ${target}`; + if (support[target]) formattedTargets += ` < ${support[target]}`; } - return validate; + formattedTargets += ` }`; + console.log(` ${item} ${formattedTargets}`); +}; +exports.logPlugin = logPlugin; + +//# sourceMappingURL=debug.js.map + + +/***/ }), + +/***/ 74971: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.addProposalSyntaxPlugins = addProposalSyntaxPlugins; +exports.removeUnnecessaryItems = removeUnnecessaryItems; +exports.removeUnsupportedItems = removeUnsupportedItems; +var _semver = __nccwpck_require__(72641); +var _availablePlugins = __nccwpck_require__(11818); +const has = Function.call.bind(Object.hasOwnProperty); +function addProposalSyntaxPlugins(items, proposalSyntaxPlugins) { + proposalSyntaxPlugins.forEach(plugin => { + items.add(plugin); + }); } -const validTypeOpts = ["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"]; -const validFieldKeys = ["default", "optional", "validate"]; -const store = {}; -function defineAliasedType(...aliases) { - return (type, opts = {}) => { - let defined = opts.aliases; - if (!defined) { - var _store$opts$inherits$, _defined; - if (opts.inherits) defined = (_store$opts$inherits$ = store[opts.inherits].aliases) == null ? void 0 : _store$opts$inherits$.slice(); - (_defined = defined) != null ? _defined : defined = []; - opts.aliases = defined; - } - const additional = aliases.filter(a => !defined.includes(a)); - defined.unshift(...additional); - return defineType(type, opts); - }; +function removeUnnecessaryItems(items, overlapping) { + items.forEach(item => { + var _overlapping$item; + (_overlapping$item = overlapping[item]) == null || _overlapping$item.forEach(name => items.delete(name)); + }); } -function defineType(type, opts = {}) { - const inherits = opts.inherits && store[opts.inherits] || {}; - let fields = opts.fields; - if (!fields) { - fields = {}; - if (inherits.fields) { - const keys = Object.getOwnPropertyNames(inherits.fields); - for (const key of keys) { - const field = inherits.fields[key]; - const def = field.default; - if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") { - throw new Error("field defaults can only be primitives or empty arrays currently"); - } - fields[key] = { - default: Array.isArray(def) ? [] : def, - optional: field.optional, - validate: field.validate - }; - } - } - } - const visitor = opts.visitor || inherits.visitor || []; - const aliases = opts.aliases || inherits.aliases || []; - const builder = opts.builder || inherits.builder || opts.visitor || []; - for (const k of Object.keys(opts)) { - if (validTypeOpts.indexOf(k) === -1) { - throw new Error(`Unknown type option "${k}" on ${type}`); - } - } - if (opts.deprecatedAlias) { - DEPRECATED_KEYS[opts.deprecatedAlias] = type; - } - for (const key of visitor.concat(builder)) { - fields[key] = fields[key] || {}; - } - for (const key of Object.keys(fields)) { - const field = fields[key]; - if (field.default !== undefined && builder.indexOf(key) === -1) { - field.optional = true; - } - if (field.default === undefined) { - field.default = null; - } else if (!field.validate && field.default != null) { - field.validate = assertValueType(getType(field.default)); - } - for (const k of Object.keys(field)) { - if (validFieldKeys.indexOf(k) === -1) { - throw new Error(`Unknown field key "${k}" on ${type}.${key}`); - } +function removeUnsupportedItems(items, babelVersion) { + items.forEach(item => { + if (has(_availablePlugins.minVersions, item) && _semver.lt(babelVersion, _availablePlugins.minVersions[item])) { + items.delete(item); } - } - VISITOR_KEYS[type] = opts.visitor = visitor; - BUILDER_KEYS[type] = opts.builder = builder; - NODE_FIELDS[type] = opts.fields = fields; - ALIAS_KEYS[type] = opts.aliases = aliases; - aliases.forEach(alias => { - FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || []; - FLIPPED_ALIAS_KEYS[alias].push(type); }); - if (opts.validate) { - NODE_PARENT_VALIDATIONS[type] = opts.validate; - } - store[type] = opts; } -//# sourceMappingURL=utils.js.map +//# sourceMappingURL=filter-items.js.map /***/ }), -/***/ 89316: +/***/ 43342: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -134572,743 +74795,1480 @@ function defineType(type, opts = {}) { Object.defineProperty(exports, "__esModule", ({ value: true })); -var _exportNames = { - react: true, - assertNode: true, - createTypeAnnotationBasedOnTypeof: true, - createUnionTypeAnnotation: true, - createFlowUnionType: true, - createTSUnionType: true, - cloneNode: true, - clone: true, - cloneDeep: true, - cloneDeepWithoutLoc: true, - cloneWithoutLoc: true, - addComment: true, - addComments: true, - inheritInnerComments: true, - inheritLeadingComments: true, - inheritsComments: true, - inheritTrailingComments: true, - removeComments: true, - ensureBlock: true, - toBindingIdentifierName: true, - toBlock: true, - toComputedKey: true, - toExpression: true, - toIdentifier: true, - toKeyAlias: true, - toSequenceExpression: true, - toStatement: true, - valueToNode: true, - appendToMemberExpression: true, - inherits: true, - prependToMemberExpression: true, - removeProperties: true, - removePropertiesDeep: true, - removeTypeDuplicates: true, - getBindingIdentifiers: true, - getOuterBindingIdentifiers: true, - traverse: true, - traverseFast: true, - shallowEqual: true, - is: true, - isBinding: true, - isBlockScoped: true, - isImmutable: true, - isLet: true, - isNode: true, - isNodesEquivalent: true, - isPlaceholderType: true, - isReferenced: true, - isScope: true, - isSpecifierDefault: true, - isType: true, - isValidES3Identifier: true, - isValidIdentifier: true, - isVar: true, - matchesPattern: true, - validate: true, - buildMatchMemberExpression: true, - __internal__deprecationWarning: true -}; -Object.defineProperty(exports, "__internal__deprecationWarning", ({ - enumerable: true, - get: function () { - return _deprecationWarning.default; - } -})); -Object.defineProperty(exports, "addComment", ({ - enumerable: true, - get: function () { - return _addComment.default; - } -})); -Object.defineProperty(exports, "addComments", ({ - enumerable: true, - get: function () { - return _addComments.default; - } -})); -Object.defineProperty(exports, "appendToMemberExpression", ({ - enumerable: true, - get: function () { - return _appendToMemberExpression.default; - } -})); -Object.defineProperty(exports, "assertNode", ({ - enumerable: true, - get: function () { - return _assertNode.default; - } -})); -Object.defineProperty(exports, "buildMatchMemberExpression", ({ - enumerable: true, - get: function () { - return _buildMatchMemberExpression.default; - } -})); -Object.defineProperty(exports, "clone", ({ - enumerable: true, - get: function () { - return _clone.default; - } -})); -Object.defineProperty(exports, "cloneDeep", ({ - enumerable: true, - get: function () { - return _cloneDeep.default; - } -})); -Object.defineProperty(exports, "cloneDeepWithoutLoc", ({ - enumerable: true, - get: function () { - return _cloneDeepWithoutLoc.default; - } -})); -Object.defineProperty(exports, "cloneNode", ({ - enumerable: true, - get: function () { - return _cloneNode.default; - } -})); -Object.defineProperty(exports, "cloneWithoutLoc", ({ - enumerable: true, - get: function () { - return _cloneWithoutLoc.default; - } -})); -Object.defineProperty(exports, "createFlowUnionType", ({ - enumerable: true, - get: function () { - return _createFlowUnionType.default; - } -})); -Object.defineProperty(exports, "createTSUnionType", ({ - enumerable: true, - get: function () { - return _createTSUnionType.default; - } -})); -Object.defineProperty(exports, "createTypeAnnotationBasedOnTypeof", ({ - enumerable: true, - get: function () { - return _createTypeAnnotationBasedOnTypeof.default; - } -})); -Object.defineProperty(exports, "createUnionTypeAnnotation", ({ - enumerable: true, - get: function () { - return _createFlowUnionType.default; - } -})); -Object.defineProperty(exports, "ensureBlock", ({ - enumerable: true, - get: function () { - return _ensureBlock.default; - } -})); -Object.defineProperty(exports, "getBindingIdentifiers", ({ - enumerable: true, - get: function () { - return _getBindingIdentifiers.default; - } -})); -Object.defineProperty(exports, "getOuterBindingIdentifiers", ({ - enumerable: true, - get: function () { - return _getOuterBindingIdentifiers.default; - } -})); -Object.defineProperty(exports, "inheritInnerComments", ({ - enumerable: true, - get: function () { - return _inheritInnerComments.default; - } -})); -Object.defineProperty(exports, "inheritLeadingComments", ({ - enumerable: true, - get: function () { - return _inheritLeadingComments.default; - } -})); -Object.defineProperty(exports, "inheritTrailingComments", ({ - enumerable: true, - get: function () { - return _inheritTrailingComments.default; - } -})); -Object.defineProperty(exports, "inherits", ({ - enumerable: true, - get: function () { - return _inherits.default; - } -})); -Object.defineProperty(exports, "inheritsComments", ({ - enumerable: true, - get: function () { - return _inheritsComments.default; - } -})); -Object.defineProperty(exports, "is", ({ - enumerable: true, - get: function () { - return _is.default; - } -})); -Object.defineProperty(exports, "isBinding", ({ - enumerable: true, - get: function () { - return _isBinding.default; - } -})); -Object.defineProperty(exports, "isBlockScoped", ({ - enumerable: true, - get: function () { - return _isBlockScoped.default; - } -})); -Object.defineProperty(exports, "isImmutable", ({ - enumerable: true, - get: function () { - return _isImmutable.default; - } -})); -Object.defineProperty(exports, "isLet", ({ - enumerable: true, - get: function () { - return _isLet.default; - } -})); -Object.defineProperty(exports, "isNode", ({ - enumerable: true, - get: function () { - return _isNode.default; - } -})); -Object.defineProperty(exports, "isNodesEquivalent", ({ - enumerable: true, - get: function () { - return _isNodesEquivalent.default; - } -})); -Object.defineProperty(exports, "isPlaceholderType", ({ - enumerable: true, - get: function () { - return _isPlaceholderType.default; - } -})); -Object.defineProperty(exports, "isReferenced", ({ - enumerable: true, - get: function () { - return _isReferenced.default; - } -})); -Object.defineProperty(exports, "isScope", ({ - enumerable: true, - get: function () { - return _isScope.default; - } -})); -Object.defineProperty(exports, "isSpecifierDefault", ({ - enumerable: true, - get: function () { - return _isSpecifierDefault.default; - } -})); -Object.defineProperty(exports, "isType", ({ - enumerable: true, - get: function () { - return _isType.default; - } -})); -Object.defineProperty(exports, "isValidES3Identifier", ({ - enumerable: true, - get: function () { - return _isValidES3Identifier.default; - } -})); -Object.defineProperty(exports, "isValidIdentifier", ({ - enumerable: true, - get: function () { - return _isValidIdentifier.default; +exports["default"] = void 0; +exports.isPluginRequired = isPluginRequired; +exports.transformIncludesAndExcludes = void 0; +var _semver = __nccwpck_require__(72641); +var _debug = __nccwpck_require__(86434); +var _filterItems = __nccwpck_require__(74971); +var _moduleTransformations = __nccwpck_require__(83349); +var _normalizeOptions = __nccwpck_require__(2783); +var _shippedProposals = __nccwpck_require__(70428); +var _pluginsCompatData = __nccwpck_require__(85424); +var _babelPluginPolyfillCorejs = __nccwpck_require__(84604); +var _babel7Plugins = __nccwpck_require__(5646); +var _helperCompilationTargets = __nccwpck_require__(91047); +var _availablePlugins = __nccwpck_require__(11818); +var _helperPluginUtils = __nccwpck_require__(36028); +const pluginCoreJS3 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; +function isPluginRequired(targets, support) { + return (0, _helperCompilationTargets.isRequired)("fake-name", targets, { + compatData: { + "fake-name": support + } + }); +} +function filterStageFromList(list, stageList) { + return Object.keys(list).reduce((result, item) => { + if (!stageList.has(item)) { + result[item] = list[item]; + } + return result; + }, {}); +} +const pluginLists = { + withProposals: { + withoutBugfixes: _pluginsCompatData.plugins, + withBugfixes: Object.assign({}, _pluginsCompatData.plugins, _pluginsCompatData.pluginsBugfixes) + }, + withoutProposals: { + withoutBugfixes: filterStageFromList(_pluginsCompatData.plugins, _shippedProposals.proposalPlugins), + withBugfixes: filterStageFromList(Object.assign({}, _pluginsCompatData.plugins, _pluginsCompatData.pluginsBugfixes), _shippedProposals.proposalPlugins) } -})); -Object.defineProperty(exports, "isVar", ({ - enumerable: true, - get: function () { - return _isVar.default; +}; +function getPluginList(proposals, bugfixes) { + if (proposals) { + if (bugfixes) return pluginLists.withProposals.withBugfixes;else return pluginLists.withProposals.withoutBugfixes; + } else { + if (bugfixes) return pluginLists.withoutProposals.withBugfixes;else return pluginLists.withoutProposals.withoutBugfixes; } -})); -Object.defineProperty(exports, "matchesPattern", ({ - enumerable: true, - get: function () { - return _matchesPattern.default; +} +const getPlugin = pluginName => { + const plugin = _availablePlugins.default[pluginName](); + if (!plugin) { + throw new Error(`Could not find plugin "${pluginName}". Ensure there is an entry in ./available-plugins.js for it.`); } -})); -Object.defineProperty(exports, "prependToMemberExpression", ({ - enumerable: true, - get: function () { - return _prependToMemberExpression.default; + return plugin; +}; +const transformIncludesAndExcludes = opts => { + return opts.reduce((result, opt) => { + const target = opt.match(/^(es|es6|es7|esnext|web)\./) ? "builtIns" : "plugins"; + result[target].add(opt); + return result; + }, { + all: opts, + plugins: new Set(), + builtIns: new Set() + }); +}; +exports.transformIncludesAndExcludes = transformIncludesAndExcludes; +function getSpecialModulesPluginNames(modules, shouldTransformDynamicImport) { + const modulesPluginNames = []; + if (modules) { + modulesPluginNames.push(_moduleTransformations.default[modules]); } -})); -exports.react = void 0; -Object.defineProperty(exports, "removeComments", ({ - enumerable: true, - get: function () { - return _removeComments.default; + if (shouldTransformDynamicImport) { + if (modules && modules !== "umd") { + modulesPluginNames.push("transform-dynamic-import"); + } else { + console.warn("Dynamic import can only be transformed when transforming ES" + " modules to AMD, CommonJS or SystemJS."); + } } -})); -Object.defineProperty(exports, "removeProperties", ({ - enumerable: true, - get: function () { - return _removeProperties.default; + { + if (!shouldTransformDynamicImport) { + modulesPluginNames.push("syntax-dynamic-import"); + } + modulesPluginNames.push("syntax-top-level-await"); + modulesPluginNames.push("syntax-import-meta"); } -})); -Object.defineProperty(exports, "removePropertiesDeep", ({ - enumerable: true, - get: function () { - return _removePropertiesDeep.default; + return modulesPluginNames; +} +const getCoreJSOptions = ({ + useBuiltIns, + corejs, + polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + debug +}) => ({ + method: `${useBuiltIns}-global`, + version: corejs ? corejs.toString() : undefined, + targets: polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + debug, + "#__secret_key__@babel/preset-env__compatibility": { + noRuntimeName: true } -})); -Object.defineProperty(exports, "removeTypeDuplicates", ({ - enumerable: true, - get: function () { - return _removeTypeDuplicates.default; +}); +{ + var getPolyfillPlugins = ({ + useBuiltIns, + corejs, + polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + regenerator, + debug + }) => { + const polyfillPlugins = []; + if (useBuiltIns === "usage" || useBuiltIns === "entry") { + const pluginOptions = getCoreJSOptions({ + useBuiltIns, + corejs, + polyfillTargets, + include, + exclude, + proposals, + shippedProposals, + debug + }); + if (corejs) { + { + if (useBuiltIns === "usage") { + if (corejs.major === 2) { + polyfillPlugins.push([_babel7Plugins.pluginCoreJS2, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { + usage: true + }]); + } else { + polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { + usage: true, + deprecated: true + }]); + } + if (regenerator) { + polyfillPlugins.push([_babel7Plugins.pluginRegenerator, { + method: "usage-global", + debug + }]); + } + } else { + if (corejs.major === 2) { + polyfillPlugins.push([_babel7Plugins.legacyBabelPolyfillPlugin, { + regenerator + }], [_babel7Plugins.pluginCoreJS2, pluginOptions]); + } else { + polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { + deprecated: true + }]); + if (!regenerator) { + polyfillPlugins.push([_babel7Plugins.removeRegeneratorEntryPlugin, pluginOptions]); + } + } + } + } + } + } + return polyfillPlugins; + }; + { + exports.getPolyfillPlugins = getPolyfillPlugins; } -})); -Object.defineProperty(exports, "shallowEqual", ({ - enumerable: true, - get: function () { - return _shallowEqual.default; +} +function getLocalTargets(optionsTargets, ignoreBrowserslistConfig, configPath, browserslistEnv) { + if (optionsTargets != null && optionsTargets.esmodules && optionsTargets.browsers) { + console.warn(` +@babel/preset-env: esmodules and browsers targets have been specified together. +\`browsers\` target, \`${optionsTargets.browsers.toString()}\` will be ignored. +`); } -})); -Object.defineProperty(exports, "toBindingIdentifierName", ({ - enumerable: true, - get: function () { - return _toBindingIdentifierName.default; + return (0, _helperCompilationTargets.default)(optionsTargets, { + ignoreBrowserslistConfig, + configPath, + browserslistEnv + }); +} +function supportsStaticESM(caller) { + return !!(caller != null && caller.supportsStaticESM); +} +function supportsDynamicImport(caller) { + return !!(caller != null && caller.supportsDynamicImport); +} +function supportsExportNamespaceFrom(caller) { + return !!(caller != null && caller.supportsExportNamespaceFrom); +} +var _default = exports["default"] = (0, _helperPluginUtils.declarePreset)((api, opts) => { + api.assertVersion(7); + const babelTargets = api.targets(); + ; + const { + bugfixes, + configPath, + debug, + exclude: optionsExclude, + forceAllTransforms, + ignoreBrowserslistConfig, + include: optionsInclude, + modules: optionsModules, + shippedProposals, + targets: optionsTargets, + useBuiltIns, + corejs: { + version: corejs, + proposals + }, + browserslistEnv + } = (0, _normalizeOptions.default)(opts); + { + var { + loose, + spec = false + } = opts; } -})); -Object.defineProperty(exports, "toBlock", ({ - enumerable: true, - get: function () { - return _toBlock.default; + let targets = babelTargets; + if (_semver.lt(api.version, "7.13.0") || opts.targets || opts.configPath || opts.browserslistEnv || opts.ignoreBrowserslistConfig) { + { + var hasUglifyTarget = false; + if (optionsTargets != null && optionsTargets.uglify) { + hasUglifyTarget = true; + delete optionsTargets.uglify; + console.warn(` +The uglify target has been deprecated. Set the top level +option \`forceAllTransforms: true\` instead. +`); + } + } + targets = getLocalTargets(optionsTargets, ignoreBrowserslistConfig, configPath, browserslistEnv); } -})); -Object.defineProperty(exports, "toComputedKey", ({ - enumerable: true, - get: function () { - return _toComputedKey.default; + const transformTargets = forceAllTransforms || hasUglifyTarget ? {} : targets; + const include = transformIncludesAndExcludes(optionsInclude); + const exclude = transformIncludesAndExcludes(optionsExclude); + const compatData = getPluginList(shippedProposals, bugfixes); + const modules = optionsModules === "auto" ? api.caller(supportsStaticESM) ? false : "commonjs" : optionsModules; + const shouldTransformDynamicImport = optionsModules === "auto" ? !api.caller(supportsDynamicImport) : !!modules; + if (optionsModules === "auto" && !api.caller(supportsExportNamespaceFrom) && !exclude.plugins.has("transform-export-namespace-from")) { + include.plugins.add("transform-export-namespace-from"); } -})); -Object.defineProperty(exports, "toExpression", ({ - enumerable: true, - get: function () { - return _toExpression.default; + const pluginNames = (0, _helperCompilationTargets.filterItems)(compatData, include.plugins, exclude.plugins, transformTargets, getSpecialModulesPluginNames(modules, shouldTransformDynamicImport), !loose ? undefined : ["transform-typeof-symbol"], _shippedProposals.pluginSyntaxMap); + if (shippedProposals) { + (0, _filterItems.addProposalSyntaxPlugins)(pluginNames, _shippedProposals.proposalSyntaxPlugins); } -})); -Object.defineProperty(exports, "toIdentifier", ({ - enumerable: true, - get: function () { - return _toIdentifier.default; + (0, _filterItems.removeUnsupportedItems)(pluginNames, api.version); + (0, _filterItems.removeUnnecessaryItems)(pluginNames, _pluginsCompatData.overlappingPlugins); + const polyfillPlugins = getPolyfillPlugins({ + useBuiltIns, + corejs, + polyfillTargets: targets, + include: include.builtIns, + exclude: exclude.builtIns, + proposals, + shippedProposals, + regenerator: pluginNames.has("transform-regenerator"), + debug + }); + const pluginUseBuiltIns = useBuiltIns !== false; + const plugins = Array.from(pluginNames).map(pluginName => { + if (pluginName === "transform-class-properties" || pluginName === "transform-private-methods" || pluginName === "transform-private-property-in-object") { + return [getPlugin(pluginName), { + loose: loose ? "#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error" : "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error" + }]; + } + if (pluginName === "syntax-import-attributes") { + return [getPlugin(pluginName), { + deprecatedAssertSyntax: true + }]; + } + return [getPlugin(pluginName), { + spec, + loose, + useBuiltIns: pluginUseBuiltIns + }]; + }).concat(polyfillPlugins); + if (debug) { + console.log("@babel/preset-env: `DEBUG` option"); + console.log("\nUsing targets:"); + console.log(JSON.stringify((0, _helperCompilationTargets.prettifyTargets)(targets), null, 2)); + console.log(`\nUsing modules transform: ${optionsModules.toString()}`); + console.log("\nUsing plugins:"); + pluginNames.forEach(pluginName => { + (0, _debug.logPlugin)(pluginName, targets, compatData); + }); + if (!useBuiltIns) { + console.log("\nUsing polyfills: No polyfills were added, since the `useBuiltIns` option was not set."); + } } + return { + plugins + }; +}); +{ + exports.getModulesPluginNames = ({ + modules, + transformations, + shouldTransformESM, + shouldTransformDynamicImport, + shouldTransformExportNamespaceFrom + }) => { + const modulesPluginNames = []; + if (modules !== false && transformations[modules]) { + if (shouldTransformESM) { + modulesPluginNames.push(transformations[modules]); + } + if (shouldTransformDynamicImport) { + if (shouldTransformESM && modules !== "umd") { + modulesPluginNames.push("transform-dynamic-import"); + } else { + console.warn("Dynamic import can only be transformed when transforming ES" + " modules to AMD, CommonJS or SystemJS."); + } + } + } + if (shouldTransformExportNamespaceFrom) { + modulesPluginNames.push("transform-export-namespace-from"); + } + if (!shouldTransformDynamicImport) { + modulesPluginNames.push("syntax-dynamic-import"); + } + if (!shouldTransformExportNamespaceFrom) { + modulesPluginNames.push("syntax-export-namespace-from"); + } + modulesPluginNames.push("syntax-top-level-await"); + modulesPluginNames.push("syntax-import-meta"); + return modulesPluginNames; + }; +} + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 83349: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "toKeyAlias", ({ - enumerable: true, - get: function () { - return _toKeyAlias.default; - } +exports["default"] = void 0; +var _default = exports["default"] = { + amd: "transform-modules-amd", + commonjs: "transform-modules-commonjs", + cjs: "transform-modules-commonjs", + systemjs: "transform-modules-systemjs", + umd: "transform-modules-umd" +}; + +//# sourceMappingURL=module-transformations.js.map + + +/***/ }), + +/***/ 2783: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "toSequenceExpression", ({ - enumerable: true, - get: function () { - return _toSequenceExpression.default; +exports.checkDuplicateIncludeExcludes = void 0; +exports["default"] = normalizeOptions; +exports.normalizeCoreJSOption = normalizeCoreJSOption; +exports.validateUseBuiltInsOption = exports.validateModulesOption = exports.normalizePluginName = void 0; +var _semver = __nccwpck_require__(72641); +var _corejs2BuiltIns = __nccwpck_require__(65838); +var _coreJsCompat = __nccwpck_require__(40480); +var _pluginsCompatData = __nccwpck_require__(85424); +var _moduleTransformations = __nccwpck_require__(83349); +var _options = __nccwpck_require__(77887); +var _helperValidatorOption = __nccwpck_require__(16122); +const corejs2DefaultWebIncludes = ["web.timers", "web.immediate", "web.dom.iterable"]; +const v = new _helperValidatorOption.OptionValidator("@babel/preset-env"); +const allPluginsList = Object.keys(_pluginsCompatData.plugins); +const modulePlugins = ["transform-dynamic-import", ...Object.keys(_moduleTransformations.default).map(m => _moduleTransformations.default[m])]; +const getValidIncludesAndExcludes = (type, corejs) => { + const set = new Set(allPluginsList); + if (type === "exclude") modulePlugins.map(set.add, set); + if (corejs) { + { + if (corejs === 2) { + Object.keys(_corejs2BuiltIns).map(set.add, set); + corejs2DefaultWebIncludes.map(set.add, set); + } else { + Object.keys(_coreJsCompat).map(set.add, set); + } + } } -})); -Object.defineProperty(exports, "toStatement", ({ - enumerable: true, - get: function () { - return _toStatement.default; + return Array.from(set); +}; +function flatMap(array, fn) { + return Array.prototype.concat.apply([], array.map(fn)); +} +const normalizePluginName = plugin => plugin.replace(/^(@babel\/|babel-)(plugin-)?/, ""); +exports.normalizePluginName = normalizePluginName; +const expandIncludesAndExcludes = (filterList = [], type, corejs) => { + if (filterList.length === 0) return []; + const filterableItems = getValidIncludesAndExcludes(type, corejs); + const invalidFilters = []; + const selectedPlugins = flatMap(filterList, filter => { + let re; + if (typeof filter === "string") { + try { + re = new RegExp(`^${normalizePluginName(filter)}$`); + } catch (e) { + invalidFilters.push(filter); + return []; + } + } else { + re = filter; + } + const items = filterableItems.filter(item => { + return re.test(item) || re.test(item.replace(/^transform-/, "proposal-")); + }); + if (items.length === 0) invalidFilters.push(filter); + return items; + }); + v.invariant(invalidFilters.length === 0, `The plugins/built-ins '${invalidFilters.join(", ")}' passed to the '${type}' option are not + valid. Please check data/[plugin-features|built-in-features].js in babel-preset-env`); + return selectedPlugins; +}; +const checkDuplicateIncludeExcludes = (include = [], exclude = []) => { + const duplicates = include.filter(opt => exclude.indexOf(opt) >= 0); + v.invariant(duplicates.length === 0, `The plugins/built-ins '${duplicates.join(", ")}' were found in both the "include" and + "exclude" options.`); +}; +exports.checkDuplicateIncludeExcludes = checkDuplicateIncludeExcludes; +const normalizeTargets = targets => { + if (typeof targets === "string" || Array.isArray(targets)) { + return { + browsers: targets + }; } -})); -Object.defineProperty(exports, "traverse", ({ - enumerable: true, - get: function () { - return _traverse.default; + return Object.assign({}, targets); +}; +const validateModulesOption = (modulesOpt = _options.ModulesOption.auto) => { + v.invariant(_options.ModulesOption[modulesOpt.toString()] || modulesOpt === _options.ModulesOption.false, `The 'modules' option must be one of \n` + ` - 'false' to indicate no module processing\n` + ` - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs'` + ` - 'auto' (default) which will automatically select 'false' if the current\n` + ` process is known to support ES module syntax, or "commonjs" otherwise\n`); + return modulesOpt; +}; +exports.validateModulesOption = validateModulesOption; +const validateUseBuiltInsOption = (builtInsOpt = false) => { + v.invariant(_options.UseBuiltInsOption[builtInsOpt.toString()] || builtInsOpt === _options.UseBuiltInsOption.false, `The 'useBuiltIns' option must be either + 'false' (default) to indicate no polyfill, + '"entry"' to indicate replacing the entry polyfill, or + '"usage"' to import only used polyfills per file`); + return builtInsOpt; +}; +exports.validateUseBuiltInsOption = validateUseBuiltInsOption; +function normalizeCoreJSOption(corejs, useBuiltIns) { + let proposals = false; + let rawVersion; + if (useBuiltIns && corejs === undefined) { + { + rawVersion = 2; + console.warn("\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a " + `core-js version. Currently, we assume version 2.x when no version ` + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + "you are using via the `corejs` option.\n" + "\nYou should also be sure that the version you pass to the `corejs` " + "option matches the version specified in your `package.json`'s " + "`dependencies` section. If it doesn't, you need to run one of the " + "following commands:\n\n" + " npm install --save core-js@2 npm install --save core-js@3\n" + " yarn add core-js@2 yarn add core-js@3\n\n" + "More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\n" + "More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs"); + } + } else if (typeof corejs === "object" && corejs !== null) { + rawVersion = corejs.version; + proposals = Boolean(corejs.proposals); + } else { + rawVersion = corejs; } -})); -Object.defineProperty(exports, "traverseFast", ({ - enumerable: true, - get: function () { - return _traverseFast.default; + const version = rawVersion ? _semver.coerce(String(rawVersion)) : false; + if (version) { + if (useBuiltIns) { + { + if (version.major < 2 || version.major > 3) { + throw new RangeError("Invalid Option: The version passed to `corejs` is invalid. Currently, " + "only core-js@2 and core-js@3 are supported."); + } + } + } else { + console.warn("\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n"); + } } -})); -Object.defineProperty(exports, "validate", ({ - enumerable: true, - get: function () { - return _validate.default; + return { + version, + proposals + }; +} +function normalizeOptions(opts) { + v.validateTopLevelOptions(opts, _options.TopLevelOptions); + const useBuiltIns = validateUseBuiltInsOption(opts.useBuiltIns); + const corejs = normalizeCoreJSOption(opts.corejs, useBuiltIns); + const include = expandIncludesAndExcludes(opts.include, _options.TopLevelOptions.include, !!corejs.version && corejs.version.major); + const exclude = expandIncludesAndExcludes(opts.exclude, _options.TopLevelOptions.exclude, !!corejs.version && corejs.version.major); + checkDuplicateIncludeExcludes(include, exclude); + { + v.validateBooleanOption("loose", opts.loose); + v.validateBooleanOption("spec", opts.spec); } + return { + bugfixes: v.validateBooleanOption(_options.TopLevelOptions.bugfixes, opts.bugfixes, false), + configPath: v.validateStringOption(_options.TopLevelOptions.configPath, opts.configPath, process.cwd()), + corejs, + debug: v.validateBooleanOption(_options.TopLevelOptions.debug, opts.debug, false), + include, + exclude, + forceAllTransforms: v.validateBooleanOption(_options.TopLevelOptions.forceAllTransforms, opts.forceAllTransforms, false), + ignoreBrowserslistConfig: v.validateBooleanOption(_options.TopLevelOptions.ignoreBrowserslistConfig, opts.ignoreBrowserslistConfig, false), + modules: validateModulesOption(opts.modules), + shippedProposals: v.validateBooleanOption(_options.TopLevelOptions.shippedProposals, opts.shippedProposals, false), + targets: normalizeTargets(opts.targets), + useBuiltIns: useBuiltIns, + browserslistEnv: v.validateStringOption(_options.TopLevelOptions.browserslistEnv, opts.browserslistEnv) + }; +} + +//# sourceMappingURL=normalize-options.js.map + + +/***/ }), + +/***/ 77887: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -Object.defineProperty(exports, "valueToNode", ({ - enumerable: true, - get: function () { - return _valueToNode.default; - } +exports.UseBuiltInsOption = exports.TopLevelOptions = exports.ModulesOption = void 0; +const TopLevelOptions = exports.TopLevelOptions = { + bugfixes: "bugfixes", + configPath: "configPath", + corejs: "corejs", + debug: "debug", + exclude: "exclude", + forceAllTransforms: "forceAllTransforms", + ignoreBrowserslistConfig: "ignoreBrowserslistConfig", + include: "include", + modules: "modules", + shippedProposals: "shippedProposals", + targets: "targets", + useBuiltIns: "useBuiltIns", + browserslistEnv: "browserslistEnv" +}; +{ + Object.assign(TopLevelOptions, { + loose: "loose", + spec: "spec" + }); +} +const ModulesOption = exports.ModulesOption = { + false: false, + auto: "auto", + amd: "amd", + commonjs: "commonjs", + cjs: "cjs", + systemjs: "systemjs", + umd: "umd" +}; +const UseBuiltInsOption = exports.UseBuiltInsOption = { + false: false, + entry: "entry", + usage: "usage" +}; + +//# sourceMappingURL=options.js.map + + +/***/ }), + +/***/ 85424: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -var _isReactComponent = __nccwpck_require__(68309); -var _isCompatTag = __nccwpck_require__(62502); -var _buildChildren = __nccwpck_require__(72783); -var _assertNode = __nccwpck_require__(57293); -var _generated = __nccwpck_require__(92059); -Object.keys(_generated).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _generated[key]; +exports.pluginsBugfixes = exports.plugins = exports.overlappingPlugins = void 0; +var _plugins = __nccwpck_require__(48255); +var _pluginBugfixes = __nccwpck_require__(4748); +var _overlappingPlugins = __nccwpck_require__(67181); +var _availablePlugins = __nccwpck_require__(11818); +const keys = Object.keys; +const plugins = exports.plugins = filterAvailable(_plugins); +const pluginsBugfixes = exports.pluginsBugfixes = filterAvailable(_pluginBugfixes); +const overlappingPlugins = exports.overlappingPlugins = filterAvailable(_overlappingPlugins); +overlappingPlugins["syntax-import-attributes"] = ["syntax-import-assertions"]; +function filterAvailable(data) { + const result = {}; + for (const plugin of keys(data)) { + if (Object.hasOwnProperty.call(_availablePlugins.default, plugin)) { + result[plugin] = data[plugin]; } - }); + } + return result; +} + +//# sourceMappingURL=plugins-compat-data.js.map + + +/***/ }), + +/***/ 70428: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.proposalSyntaxPlugins = exports.proposalPlugins = exports.pluginSyntaxMap = void 0; +const proposalPlugins = exports.proposalPlugins = new Set(); +const proposalSyntaxPlugins = exports.proposalSyntaxPlugins = ["syntax-import-assertions", "syntax-import-attributes"]; +const pluginSyntaxObject = { + "transform-async-generator-functions": "syntax-async-generators", + "transform-class-properties": "syntax-class-properties", + "transform-class-static-block": "syntax-class-static-block", + "transform-export-namespace-from": "syntax-export-namespace-from", + "transform-json-strings": "syntax-json-strings", + "transform-nullish-coalescing-operator": "syntax-nullish-coalescing-operator", + "transform-numeric-separator": "syntax-numeric-separator", + "transform-object-rest-spread": "syntax-object-rest-spread", + "transform-optional-catch-binding": "syntax-optional-catch-binding", + "transform-optional-chaining": "syntax-optional-chaining", + "transform-private-methods": "syntax-class-properties", + "transform-private-property-in-object": "syntax-private-property-in-object", + "transform-unicode-property-regex": null +}; +const pluginSyntaxEntries = Object.keys(pluginSyntaxObject).map(function (key) { + return [key, pluginSyntaxObject[key]]; }); -var _createTypeAnnotationBasedOnTypeof = __nccwpck_require__(61494); -var _createFlowUnionType = __nccwpck_require__(79441); -var _createTSUnionType = __nccwpck_require__(35328); -var _generated2 = __nccwpck_require__(54230); -Object.keys(_generated2).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated2[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _generated2[key]; +const pluginSyntaxMap = exports.pluginSyntaxMap = new Map(pluginSyntaxEntries); + +//# sourceMappingURL=shipped-proposals.js.map + + +/***/ }), + +/***/ 79092: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var helperPluginUtils = __nccwpck_require__(36028); +var transformReactJSX = __nccwpck_require__(59129); +var transformReactJSXDevelopment = __nccwpck_require__(85205); +var transformReactDisplayName = __nccwpck_require__(31194); +var transformReactPure = __nccwpck_require__(59386); +var helperValidatorOption = __nccwpck_require__(16122); + +function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } + +var transformReactJSX__default = /*#__PURE__*/_interopDefault(transformReactJSX); +var transformReactJSXDevelopment__default = /*#__PURE__*/_interopDefault(transformReactJSXDevelopment); +var transformReactDisplayName__default = /*#__PURE__*/_interopDefault(transformReactDisplayName); +var transformReactPure__default = /*#__PURE__*/_interopDefault(transformReactPure); + +new helperValidatorOption.OptionValidator("@babel/preset-react"); +function normalizeOptions(options = {}) { + { + let { + pragma, + pragmaFrag + } = options; + const { + pure, + throwIfNamespace = true, + runtime = "classic", + importSource, + useBuiltIns, + useSpread + } = options; + if (runtime === "classic") { + pragma = pragma || "React.createElement"; + pragmaFrag = pragmaFrag || "React.Fragment"; } - }); + const development = !!options.development; + return { + development, + importSource, + pragma, + pragmaFrag, + pure, + runtime, + throwIfNamespace, + useBuiltIns, + useSpread + }; + } +} + +var index = helperPluginUtils.declarePreset((api, opts) => { + api.assertVersion(7); + const { + development, + importSource, + pragma, + pragmaFrag, + pure, + runtime, + throwIfNamespace + } = normalizeOptions(opts); + return { + plugins: [[development ? transformReactJSXDevelopment__default.default : transformReactJSX__default.default, { + importSource, + pragma, + pragmaFrag, + runtime, + throwIfNamespace, + pure, + useBuiltIns: !!opts.useBuiltIns, + useSpread: opts.useSpread + }], transformReactDisplayName__default.default, pure !== false && transformReactPure__default.default].filter(Boolean) + }; }); -var _uppercase = __nccwpck_require__(36869); -Object.keys(_uppercase).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _uppercase[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _uppercase[key]; + +exports["default"] = index; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 8413: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var helperPluginUtils = __nccwpck_require__(36028); +var transformTypeScript = __nccwpck_require__(59562); +__nccwpck_require__(41594); +var transformModulesCommonJS = __nccwpck_require__(17146); +var helperValidatorOption = __nccwpck_require__(16122); + +function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } + +var transformTypeScript__default = /*#__PURE__*/_interopDefault(transformTypeScript); +var transformModulesCommonJS__default = /*#__PURE__*/_interopDefault(transformModulesCommonJS); + +const v = new helperValidatorOption.OptionValidator("@babel/preset-typescript"); +function normalizeOptions(options = {}) { + let { + allowNamespaces = true, + jsxPragma, + onlyRemoveTypeImports + } = options; + const TopLevelOptions = { + ignoreExtensions: "ignoreExtensions", + allowNamespaces: "allowNamespaces", + disallowAmbiguousJSXLike: "disallowAmbiguousJSXLike", + jsxPragma: "jsxPragma", + jsxPragmaFrag: "jsxPragmaFrag", + onlyRemoveTypeImports: "onlyRemoveTypeImports", + optimizeConstEnums: "optimizeConstEnums", + rewriteImportExtensions: "rewriteImportExtensions", + allExtensions: "allExtensions", + isTSX: "isTSX" + }; + const jsxPragmaFrag = v.validateStringOption(TopLevelOptions.jsxPragmaFrag, options.jsxPragmaFrag, "React.Fragment"); + { + var allExtensions = v.validateBooleanOption(TopLevelOptions.allExtensions, options.allExtensions, false); + var isTSX = v.validateBooleanOption(TopLevelOptions.isTSX, options.isTSX, false); + if (isTSX) { + v.invariant(allExtensions, "isTSX:true requires allExtensions:true"); } - }); -}); -var _cloneNode = __nccwpck_require__(17151); -var _clone = __nccwpck_require__(38254); -var _cloneDeep = __nccwpck_require__(79743); -var _cloneDeepWithoutLoc = __nccwpck_require__(97613); -var _cloneWithoutLoc = __nccwpck_require__(75996); -var _addComment = __nccwpck_require__(15551); -var _addComments = __nccwpck_require__(47777); -var _inheritInnerComments = __nccwpck_require__(11824); -var _inheritLeadingComments = __nccwpck_require__(49434); -var _inheritsComments = __nccwpck_require__(16373); -var _inheritTrailingComments = __nccwpck_require__(57753); -var _removeComments = __nccwpck_require__(22731); -var _generated3 = __nccwpck_require__(21502); -Object.keys(_generated3).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated3[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _generated3[key]; + } + const ignoreExtensions = v.validateBooleanOption(TopLevelOptions.ignoreExtensions, options.ignoreExtensions, false); + const disallowAmbiguousJSXLike = v.validateBooleanOption(TopLevelOptions.disallowAmbiguousJSXLike, options.disallowAmbiguousJSXLike, false); + if (disallowAmbiguousJSXLike) { + { + v.invariant(allExtensions, "disallowAmbiguousJSXLike:true requires allExtensions:true"); } - }); -}); -var _constants = __nccwpck_require__(49384); -Object.keys(_constants).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _constants[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _constants[key]; + } + const optimizeConstEnums = v.validateBooleanOption(TopLevelOptions.optimizeConstEnums, options.optimizeConstEnums, false); + const rewriteImportExtensions = v.validateBooleanOption(TopLevelOptions.rewriteImportExtensions, options.rewriteImportExtensions, false); + const normalized = { + ignoreExtensions, + allowNamespaces, + disallowAmbiguousJSXLike, + jsxPragma, + jsxPragmaFrag, + onlyRemoveTypeImports, + optimizeConstEnums, + rewriteImportExtensions + }; + { + normalized.allExtensions = allExtensions; + normalized.isTSX = isTSX; + } + return normalized; +} + +var pluginRewriteTSImports = helperPluginUtils.declare(function ({ + types: t +}) { + return { + name: "preset-typescript/plugin-rewrite-ts-imports", + visitor: { + "ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"({ + node + }) { + const { + source + } = node; + const kind = t.isImportDeclaration(node) ? node.importKind : node.exportKind; + if (kind === "value" && source && /[\\/]/.test(source.value)) { + source.value = source.value.replace(/(\.[mc]?)ts$/, "$1js").replace(/\.tsx$/, ".js"); + } + } } - }); + }; }); -var _ensureBlock = __nccwpck_require__(33843); -var _toBindingIdentifierName = __nccwpck_require__(98233); -var _toBlock = __nccwpck_require__(23873); -var _toComputedKey = __nccwpck_require__(65548); -var _toExpression = __nccwpck_require__(35036); -var _toIdentifier = __nccwpck_require__(26759); -var _toKeyAlias = __nccwpck_require__(86054); -var _toSequenceExpression = __nccwpck_require__(3231); -var _toStatement = __nccwpck_require__(87648); -var _valueToNode = __nccwpck_require__(74802); -var _definitions = __nccwpck_require__(59357); -Object.keys(_definitions).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _definitions[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _definitions[key]; - } + +var index = helperPluginUtils.declarePreset((api, opts) => { + api.assertVersion(7); + const { + allExtensions, + ignoreExtensions, + allowNamespaces, + disallowAmbiguousJSXLike, + isTSX, + jsxPragma, + jsxPragmaFrag, + onlyRemoveTypeImports, + optimizeConstEnums, + rewriteImportExtensions + } = normalizeOptions(opts); + const pluginOptions = disallowAmbiguousJSXLike => ({ + allowDeclareFields: opts.allowDeclareFields, + allowNamespaces, + disallowAmbiguousJSXLike, + jsxPragma, + jsxPragmaFrag, + onlyRemoveTypeImports, + optimizeConstEnums }); -}); -var _appendToMemberExpression = __nccwpck_require__(50151); -var _inherits = __nccwpck_require__(83984); -var _prependToMemberExpression = __nccwpck_require__(65421); -var _removeProperties = __nccwpck_require__(4626); -var _removePropertiesDeep = __nccwpck_require__(36613); -var _removeTypeDuplicates = __nccwpck_require__(22908); -var _getBindingIdentifiers = __nccwpck_require__(9853); -var _getOuterBindingIdentifiers = __nccwpck_require__(87729); -var _traverse = __nccwpck_require__(87994); -Object.keys(_traverse).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _traverse[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _traverse[key]; + const getPlugins = (isTSX, disallowAmbiguousJSXLike) => { + { + return [[transformTypeScript__default.default, Object.assign({ + isTSX + }, pluginOptions(disallowAmbiguousJSXLike))]]; } - }); + }; + const disableExtensionDetect = allExtensions || ignoreExtensions; + return { + plugins: rewriteImportExtensions ? [pluginRewriteTSImports] : [], + overrides: disableExtensionDetect ? [{ + plugins: getPlugins(isTSX, disallowAmbiguousJSXLike) + }] : [{ + test: /\.ts$/, + plugins: getPlugins(false, false) + }, { + test: /\.mts$/, + sourceType: "module", + plugins: getPlugins(false, true) + }, { + test: /\.cts$/, + sourceType: "unambiguous", + plugins: [[transformModulesCommonJS__default.default, { + allowTopLevelThis: true + }], [transformTypeScript__default.default, pluginOptions(true)]] + }, { + test: /\.tsx$/, + plugins: getPlugins(true, false) + }] + }; }); -var _traverseFast = __nccwpck_require__(93159); -var _shallowEqual = __nccwpck_require__(28271); -var _is = __nccwpck_require__(73217); -var _isBinding = __nccwpck_require__(36245); -var _isBlockScoped = __nccwpck_require__(95087); -var _isImmutable = __nccwpck_require__(1592); -var _isLet = __nccwpck_require__(44850); -var _isNode = __nccwpck_require__(6609); -var _isNodesEquivalent = __nccwpck_require__(50776); -var _isPlaceholderType = __nccwpck_require__(38480); -var _isReferenced = __nccwpck_require__(70247); -var _isScope = __nccwpck_require__(46430); -var _isSpecifierDefault = __nccwpck_require__(60647); -var _isType = __nccwpck_require__(88467); -var _isValidES3Identifier = __nccwpck_require__(17355); -var _isValidIdentifier = __nccwpck_require__(42897); -var _isVar = __nccwpck_require__(89886); -var _matchesPattern = __nccwpck_require__(54280); -var _validate = __nccwpck_require__(6000); -var _buildMatchMemberExpression = __nccwpck_require__(15694); -var _generated4 = __nccwpck_require__(99451); -Object.keys(_generated4).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated4[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _generated4[key]; + +exports["default"] = index; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 16692: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +module.exports = __nccwpck_require__(66120); + +//# sourceMappingURL=cache.js.map + + +/***/ }), + +/***/ 3413: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +const { + addHook +} = __nccwpck_require__(15652); +const sourceMapSupport = __nccwpck_require__(16754); +let piratesRevert; +const maps = Object.create(null); +function installSourceMapSupport() { + installSourceMapSupport = () => {}; + sourceMapSupport.install({ + handleUncaughtExceptions: false, + environment: "node", + retrieveSourceMap(filename) { + const map = maps == null ? void 0 : maps[filename]; + if (map) { + return { + url: null, + map: map + }; + } else { + return null; + } } }); -}); -var _generated5 = __nccwpck_require__(97275); -Object.keys(_generated5).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated5[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function () { - return _generated5[key]; +} +{ + const Module = __nccwpck_require__(98188); + let compiling = false; + const internalModuleCache = Module._cache; + var compileBabel7 = function compileBabel7(client, code, filename) { + if (!client.isLocalClient) return compile(client, code, filename); + if (compiling) return code; + const globalModuleCache = Module._cache; + try { + compiling = true; + Module._cache = internalModuleCache; + return compile(client, code, filename); + } finally { + compiling = false; + Module._cache = globalModuleCache; } + }; +} +function compile(client, inputCode, filename) { + const result = client.transform(inputCode, filename); + if (result === null) return inputCode; + const { + code, + map + } = result; + if (map) { + maps[filename] = map; + installSourceMapSupport(); + } + return code; +} +exports.register = function register(client, opts = {}) { + var _opts$extensions; + if (piratesRevert) piratesRevert(); + piratesRevert = addHook(compileBabel7.bind(null, client), { + exts: (_opts$extensions = opts.extensions) != null ? _opts$extensions : client.getDefaultExtensions(), + ignoreNodeModules: false }); -}); -var _deprecationWarning = __nccwpck_require__(43823); -const react = { - isReactComponent: _isReactComponent.default, - isCompatTag: _isCompatTag.default, - buildChildren: _buildChildren.default + client.setOptions(opts); +}; +exports.revert = function revert() { + if (piratesRevert) piratesRevert(); }; -exports.react = react; + +//# sourceMappingURL=hook.js.map + + +/***/ }), + +/***/ 90059: +/***/ (function(module, exports, __nccwpck_require__) { + +{ + exports = module.exports = function (...args) { + return register(...args); + }; + exports.__esModule = true; + const node = __nccwpck_require__(71674); + const register = node.default; + Object.assign(exports, node); +} //# sourceMappingURL=index.js.map /***/ }), -/***/ 50151: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 88621: +/***/ (function(__unused_webpack_module, exports) { "use strict"; +var __webpack_unused_export__; + +const envVarName = "___INTERNAL___IS_INSIDE_BABEL_REGISTER_WORKER___"; +const envVarValue = "yes_I_am"; +exports.v = env => Object.assign({}, env, { + [envVarName]: envVarValue +}); +__webpack_unused_export__ = process.env[envVarName] === envVarValue; +//# sourceMappingURL=is-in-register-worker.js.map -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = appendToMemberExpression; -var _generated = __nccwpck_require__(54230); -function appendToMemberExpression(member, append, computed = false) { - member.object = (0, _generated.memberExpression)(member.object, member.property, member.computed); - member.property = append; - member.computed = !!computed; - return member; + +/***/ }), + +/***/ 69629: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + + +const hook = __nccwpck_require__(3413); +const { + LocalClient +} = __nccwpck_require__(82352); +const client = new LocalClient(); +function register(opts = {}) { + return hook.register(client, Object.assign({}, opts)); } +module.exports = Object.assign(register, { + revert: hook.revert, + default: register +}); -//# sourceMappingURL=appendToMemberExpression.js.map +//# sourceMappingURL=node.js.map + + +/***/ }), + +/***/ 71674: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +const Module = __nccwpck_require__(98188); +const globalModuleCache = Module._cache; +const internalModuleCache = Object.create(null); +Module._cache = internalModuleCache; +const node = __nccwpck_require__(69629); +Module._cache = globalModuleCache; +const smsPath = __nccwpck_require__.ab + "source-map-support.js"; +globalModuleCache[__nccwpck_require__.ab + "source-map-support.js"] = internalModuleCache[__nccwpck_require__.ab + "source-map-support.js"]; +const register = node.default; +register(); +module.exports = node; + +//# sourceMappingURL=nodeWrapper.js.map /***/ }), -/***/ 22908: +/***/ 82352: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +var _class2, _worker, _signal, _markInRegisterWorker, _worker_threads; +function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { _classCheckPrivateStaticAccess(receiver, classConstructor); _classCheckPrivateStaticFieldDescriptor(descriptor, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; } +function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { _classCheckPrivateStaticAccess(receiver, classConstructor); _classCheckPrivateStaticFieldDescriptor(descriptor, "get"); return _classApplyDescriptorGet(receiver, descriptor); } +function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { if (descriptor === undefined) { throw new TypeError("attempted to " + action + " private static field before its declaration"); } } +function _classCheckPrivateStaticAccess(receiver, classConstructor) { if (receiver !== classConstructor) { throw new TypeError("Private static access of wrong provenance"); } } +function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); } +function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } +function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); } +function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; } +function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; } +function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); } +function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } } +const path = __nccwpck_require__(71017); +const ACTIONS = { + GET_DEFAULT_EXTENSIONS: "GET_DEFAULT_EXTENSIONS", + SET_OPTIONS: "SET_OPTIONS", + TRANSFORM: "TRANSFORM", + TRANSFORM_SYNC: "TRANSFORM_SYNC" +}; +var _send = new WeakMap(); +var _eCache = new WeakMap(); +class Client { + constructor(send) { + _classPrivateFieldInitSpec(this, _send, { + writable: true, + value: void 0 + }); + _classPrivateFieldInitSpec(this, _eCache, { + writable: true, + value: void 0 + }); + _classPrivateFieldSet(this, _send, send); + } + getDefaultExtensions() { + var _classPrivateFieldGet2; + return (_classPrivateFieldGet2 = _classPrivateFieldGet(this, _eCache)) != null ? _classPrivateFieldGet2 : _classPrivateFieldSet(this, _eCache, _classPrivateFieldGet(this, _send).call(this, ACTIONS.GET_DEFAULT_EXTENSIONS, undefined)); + } + setOptions(options) { + return _classPrivateFieldGet(this, _send).call(this, ACTIONS.SET_OPTIONS, options); + } + transform(code, filename) { + return _classPrivateFieldGet(this, _send).call(this, ACTIONS.TRANSFORM, { + code, + filename + }); + } +} +exports.WorkerClient = (_worker = new WeakMap(), _signal = new WeakMap(), (_class2 = class WorkerClient extends Client { + constructor() { + super((action, payload) => { + _classPrivateFieldGet(this, _signal)[0] = 0; + const subChannel = new (_classStaticPrivateFieldSpecGet(WorkerClient, _class2, _worker_threads).MessageChannel)(); + _classPrivateFieldGet(this, _worker).postMessage({ + signal: _classPrivateFieldGet(this, _signal), + port: subChannel.port1, + action, + payload + }, [subChannel.port1]); + Atomics.wait(_classPrivateFieldGet(this, _signal), 0, 0); + const { + message + } = _classStaticPrivateFieldSpecGet(WorkerClient, _class2, _worker_threads).receiveMessageOnPort(subChannel.port2); + if (message.error) throw Object.assign(message.error, message.errorData);else return message.result; + }); + _classPrivateFieldInitSpec(this, _worker, { + writable: true, + value: new (_classStaticPrivateFieldSpecGet(WorkerClient, _class2, _worker_threads).Worker)(__nccwpck_require__.ab + "index1.js", { + env: _classStaticPrivateFieldSpecGet(WorkerClient, _class2, _markInRegisterWorker).call(WorkerClient, process.env) + }) + }); + _classPrivateFieldInitSpec(this, _signal, { + writable: true, + value: new Int32Array(new SharedArrayBuffer(4)) + }); + _classPrivateFieldGet(this, _worker).unref(); + } +}, _markInRegisterWorker = { + get: _get_markInRegisterWorker, + set: void 0 +}, _worker_threads = { + get: _get_worker_threads, + set: void 0 +}, _class2)); +function _get_worker_threads() { + return __nccwpck_require__(71267); +} +function _get_markInRegisterWorker() { + return (__nccwpck_require__(88621)/* .markInRegisterWorker */ .v); +} +{ + var _class3, _handleMessage; + exports.LocalClient = (_class3 = class LocalClient extends Client { + constructor() { + var _classStaticPrivateFi; + (_classStaticPrivateFi = _classStaticPrivateFieldSpecGet(LocalClient, _class3, _handleMessage)) != null ? _classStaticPrivateFi : _classStaticPrivateFieldSpecSet(LocalClient, _class3, _handleMessage, __nccwpck_require__(81894)); + super((action, payload) => { + return _classStaticPrivateFieldSpecGet(LocalClient, _class3, _handleMessage).call(LocalClient, action === ACTIONS.TRANSFORM ? ACTIONS.TRANSFORM_SYNC : action, payload); + }); + this.isLocalClient = true; + } + }, _handleMessage = { + writable: true, + value: void 0 + }, _class3); +} + +//# sourceMappingURL=worker-client.js.map + + +/***/ }), + +/***/ 9288: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +const cache = __nccwpck_require__(66120); +function initialize(babel) { + exports.init = null; + exports.version = babel.version; + exports.DEFAULT_EXTENSIONS = babel.DEFAULT_EXTENSIONS; + exports.loadOptionsAsync = babel.loadOptionsAsync; + exports.transformAsync = babel.transformAsync; + exports.getEnv = babel.getEnv; + { + exports.OptionManager = babel.OptionManager; + exports.transformSync = babel.transformSync; + } + cache.initializeCacheFilename(); +} +{ + initialize(__nccwpck_require__(65258)); +} + +//# sourceMappingURL=babel-core.js.map + + +/***/ }), + +/***/ 66120: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = removeTypeDuplicates; -var _generated = __nccwpck_require__(99451); -function getQualifiedName(node) { - return (0, _generated.isIdentifier)(node) ? node.name : `${node.id.name}.${getQualifiedName(node.qualification)}`; +const path = __nccwpck_require__(71017); +const fs = __nccwpck_require__(57147); +const os = __nccwpck_require__(22037); +const findCacheDir = __nccwpck_require__(27693); +let FILENAME = process.env.BABEL_CACHE_PATH; +exports.initializeCacheFilename = function () { + FILENAME || (FILENAME = path.join(findCacheDir({ + name: "@babel/register" + }) || os.homedir() || os.tmpdir(), `.babel.${babel.version}.${babel.getEnv()}.json`)); +}; +const babel = __nccwpck_require__(9288); +let data = {}; +let cacheDirty = false; +let cacheDisabled = false; +function isCacheDisabled() { + var _process$env$BABEL_DI; + return (_process$env$BABEL_DI = process.env.BABEL_DISABLE_CACHE) != null ? _process$env$BABEL_DI : cacheDisabled; } -function removeTypeDuplicates(nodes) { - const generics = new Map(); - const bases = new Map(); - const typeGroups = new Set(); - const types = []; - for (let i = 0; i < nodes.length; i++) { - const node = nodes[i]; - if (!node) continue; - if (types.indexOf(node) >= 0) { - continue; - } - if ((0, _generated.isAnyTypeAnnotation)(node)) { - return [node]; +exports.save = save; +function save() { + if (isCacheDisabled() || !cacheDirty) return; + cacheDirty = false; + let serialised = "{}"; + try { + serialised = JSON.stringify(data); + } catch (err) { + if (err.message === "Invalid string length") { + err.message = "Cache too large so it's been cleared."; + console.error(err.stack); + } else { + throw err; } - if ((0, _generated.isFlowBaseAnnotation)(node)) { - bases.set(node.type, node); - continue; + } + try { + (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "10.12") ? fs.mkdirSync : (__nccwpck_require__(81000).sync))(path.dirname(FILENAME), { + recursive: true + }); + fs.writeFileSync(FILENAME, serialised); + } catch (e) { + switch (e.code) { + case "ENOENT": + case "EACCES": + case "EPERM": + console.warn(`Babel could not write cache to file: ${FILENAME} +due to a permission issue. Cache is disabled.`); + cacheDisabled = true; + break; + case "EROFS": + console.warn(`Babel could not write cache to file: ${FILENAME} +because it resides in a readonly filesystem. Cache is disabled.`); + cacheDisabled = true; + break; + default: + throw e; } - if ((0, _generated.isUnionTypeAnnotation)(node)) { - if (!typeGroups.has(node.types)) { - nodes = nodes.concat(node.types); - typeGroups.add(node.types); - } - continue; + } +} +exports.load = function load() { + if (isCacheDisabled()) { + data = {}; + return; + } + process.on("exit", save); + process.nextTick(save); + let cacheContent; + try { + cacheContent = fs.readFileSync(FILENAME); + } catch (e) { + switch (e.code) { + case "EACCES": + console.warn(`Babel could not read cache file: ${FILENAME} +due to a permission issue. Cache is disabled.`); + cacheDisabled = true; + default: + return; } - if ((0, _generated.isGenericTypeAnnotation)(node)) { - const name = getQualifiedName(node.id); - if (generics.has(name)) { - let existing = generics.get(name); - if (existing.typeParameters) { - if (node.typeParameters) { - existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params.concat(node.typeParameters.params)); - } - } else { - existing = node.typeParameters; - } - } else { - generics.set(name, node); + } + try { + data = JSON.parse(cacheContent); + } catch (_unused) {} +}; +exports.get = function get() { + return data; +}; +exports.setDirty = function setDirty() { + cacheDirty = true; +}; +exports.clear = function clear() { + data = {}; +}; + +//# sourceMappingURL=cache.js.map + + +/***/ }), + +/***/ 81894: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +const babel = __nccwpck_require__(9288); +const { + setOptions, + transform, + transformSync +} = __nccwpck_require__(53145); +module.exports = function handleMessage(action, payload) { + switch (action) { + case "GET_DEFAULT_EXTENSIONS": + return babel.DEFAULT_EXTENSIONS; + case "SET_OPTIONS": + setOptions(payload); + return; + case "TRANSFORM": + return transform(payload.code, payload.filename); + case "TRANSFORM_SYNC": + { + return transformSync(payload.code, payload.filename); } - continue; - } - types.push(node); - } - for (const [, baseType] of bases) { - types.push(baseType); - } - for (const [, genericName] of generics) { - types.push(genericName); } - return types; -} + throw new Error(`Unknown internal parser worker action: ${action}`); +}; -//# sourceMappingURL=removeTypeDuplicates.js.map +//# sourceMappingURL=handle-message.js.map /***/ }), -/***/ 83984: +/***/ 53145: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = inherits; -var _constants = __nccwpck_require__(49384); -var _inheritsComments = __nccwpck_require__(16373); -function inherits(child, parent) { - if (!child || !parent) return child; - for (const key of _constants.INHERIT_KEYS.optional) { - if (child[key] == null) { - child[key] = parent[key]; - } +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } +const cloneDeep = __nccwpck_require__(37838); +const path = __nccwpck_require__(71017); +const fs = __nccwpck_require__(57147); +const babel = __nccwpck_require__(9288); +const registerCache = __nccwpck_require__(16692); +const nmRE = escapeRegExp(path.sep + "node_modules" + path.sep); +function escapeRegExp(string) { + return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"); +} +let cache; +let transformOpts; +exports.setOptions = function (opts) { + if (opts.cache === false && cache) { + registerCache.clear(); + cache = null; + } else if (opts.cache !== false && !cache) { + registerCache.load(); + cache = registerCache.get(); } - for (const key of Object.keys(parent)) { - if (key[0] === "_" && key !== "__clone") { - child[key] = parent[key]; - } + delete opts.cache; + delete opts.extensions; + transformOpts = Object.assign({}, opts, { + caller: Object.assign({ + name: "@babel/register" + }, opts.caller || {}) + }); + let { + cwd = "." + } = transformOpts; + cwd = transformOpts.cwd = path.resolve(cwd); + if (transformOpts.ignore === undefined && transformOpts.only === undefined) { + const cwdRE = escapeRegExp(cwd); + transformOpts.only = [new RegExp("^" + cwdRE, "i")]; + transformOpts.ignore = [new RegExp(`^${cwdRE}(?:${path.sep}.*)?${nmRE}`, "i")]; } - for (const key of _constants.INHERIT_KEYS.force) { - child[key] = parent[key]; +}; +exports.transform = _asyncToGenerator(function* (input, filename) { + const opts = yield babel.loadOptionsAsync(Object.assign({ + sourceRoot: path.dirname(filename) + path.sep + }, cloneDeep(transformOpts), { + filename + })); + if (opts === null) return null; + const { + cached, + store + } = cacheLookup(opts, filename); + if (cached) return cached; + const { + code, + map + } = yield babel.transformAsync(input, Object.assign({}, opts, { + sourceMaps: opts.sourceMaps === undefined ? "both" : opts.sourceMaps, + ast: false + })); + return store({ + code, + map + }); +}); +{ + exports.transformSync = function (input, filename) { + const opts = new babel.OptionManager().init(Object.assign({ + sourceRoot: path.dirname(filename) + path.sep + }, cloneDeep(transformOpts), { + filename + })); + if (opts === null) return null; + const { + cached, + store + } = cacheLookup(opts, filename); + if (cached) return cached; + const { + code, + map + } = babel.transformSync(input, Object.assign({}, opts, { + sourceMaps: opts.sourceMaps === undefined ? "both" : opts.sourceMaps, + ast: false + })); + return store({ + code, + map + }); + }; +} +const id = value => value; +function cacheLookup(opts, filename) { + if (!cache) return { + cached: null, + store: id + }; + let cacheKey = `${JSON.stringify(opts)}:${babel.version}`; + const env = babel.getEnv(); + if (env) cacheKey += `:${env}`; + const cached = cache[cacheKey]; + const fileMtime = +fs.statSync(filename).mtime; + if (cached && cached.mtime === fileMtime) { + return { + cached: cached.value, + store: id + }; } - (0, _inheritsComments.default)(child, parent); - return child; + return { + cached: null, + store(value) { + cache[cacheKey] = { + value, + mtime: fileMtime + }; + registerCache.setDirty(); + return value; + } + }; } -//# sourceMappingURL=inherits.js.map +//# sourceMappingURL=transform.js.map /***/ }), -/***/ 65421: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - +/***/ 48870: +/***/ (function(module) { -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = prependToMemberExpression; -var _generated = __nccwpck_require__(54230); -var _ = __nccwpck_require__(89316); -function prependToMemberExpression(member, prepend) { - if ((0, _.isSuper)(member.object)) { - throw new Error("Cannot prepend node to super property access (`super.foo`)."); - } - member.object = (0, _generated.memberExpression)(prepend, member.object); - return member; +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; } - -//# sourceMappingURL=prependToMemberExpression.js.map - +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), -/***/ 4626: +/***/ 46435: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135317,30 +76277,75 @@ function prependToMemberExpression(member, prepend) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = removeProperties; -var _constants = __nccwpck_require__(49384); -const CLEAR_KEYS = ["tokens", "start", "end", "loc", "raw", "rawValue"]; -const CLEAR_KEYS_PLUS_COMMENTS = [..._constants.COMMENT_KEYS, "comments", ...CLEAR_KEYS]; -function removeProperties(node, opts = {}) { - const map = opts.preserveComments ? CLEAR_KEYS : CLEAR_KEYS_PLUS_COMMENTS; - for (const key of map) { - if (node[key] != null) node[key] = undefined; - } - for (const key of Object.keys(node)) { - if (key[0] === "_" && node[key] != null) node[key] = undefined; - } - const symbols = Object.getOwnPropertySymbols(node); - for (const sym of symbols) { - node[sym] = null; +exports["default"] = createTemplateBuilder; +var _options = __nccwpck_require__(59541); +var _string = __nccwpck_require__(55435); +var _literal = __nccwpck_require__(41527); +const NO_PLACEHOLDER = (0, _options.validate)({ + placeholderPattern: false +}); +function createTemplateBuilder(formatter, defaultOpts) { + const templateFnCache = new WeakMap(); + const templateAstCache = new WeakMap(); + const cachedOpts = defaultOpts || (0, _options.validate)(null); + return Object.assign((tpl, ...args) => { + if (typeof tpl === "string") { + if (args.length > 1) throw new Error("Unexpected extra params."); + return extendedTrace((0, _string.default)(formatter, tpl, (0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])))); + } else if (Array.isArray(tpl)) { + let builder = templateFnCache.get(tpl); + if (!builder) { + builder = (0, _literal.default)(formatter, tpl, cachedOpts); + templateFnCache.set(tpl, builder); + } + return extendedTrace(builder(args)); + } else if (typeof tpl === "object" && tpl) { + if (args.length > 0) throw new Error("Unexpected extra params."); + return createTemplateBuilder(formatter, (0, _options.merge)(cachedOpts, (0, _options.validate)(tpl))); + } + throw new Error(`Unexpected template param ${typeof tpl}`); + }, { + ast: (tpl, ...args) => { + if (typeof tpl === "string") { + if (args.length > 1) throw new Error("Unexpected extra params."); + return (0, _string.default)(formatter, tpl, (0, _options.merge)((0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])), NO_PLACEHOLDER))(); + } else if (Array.isArray(tpl)) { + let builder = templateAstCache.get(tpl); + if (!builder) { + builder = (0, _literal.default)(formatter, tpl, (0, _options.merge)(cachedOpts, NO_PLACEHOLDER)); + templateAstCache.set(tpl, builder); + } + return builder(args)(); + } + throw new Error(`Unexpected template param ${typeof tpl}`); + } + }); +} +function extendedTrace(fn) { + let rootStack = ""; + try { + throw new Error(); + } catch (error) { + if (error.stack) { + rootStack = error.stack.split("\n").slice(3).join("\n"); + } } + return arg => { + try { + return fn(arg); + } catch (err) { + err.stack += `\n =============\n${rootStack}`; + throw err; + } + }; } -//# sourceMappingURL=removeProperties.js.map +//# sourceMappingURL=builder.js.map /***/ }), -/***/ 36613: +/***/ 53499: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135349,20 +76354,72 @@ function removeProperties(node, opts = {}) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = removePropertiesDeep; -var _traverseFast = __nccwpck_require__(93159); -var _removeProperties = __nccwpck_require__(4626); -function removePropertiesDeep(tree, opts) { - (0, _traverseFast.default)(tree, _removeProperties.default, opts); - return tree; +exports.statements = exports.statement = exports.smart = exports.program = exports.expression = void 0; +var _t = __nccwpck_require__(68948); +const { + assertExpressionStatement +} = _t; +function makeStatementFormatter(fn) { + return { + code: str => `/* @babel/template */;\n${str}`, + validate: () => {}, + unwrap: ast => { + return fn(ast.program.body.slice(1)); + } + }; } +const smart = makeStatementFormatter(body => { + if (body.length > 1) { + return body; + } else { + return body[0]; + } +}); +exports.smart = smart; +const statements = makeStatementFormatter(body => body); +exports.statements = statements; +const statement = makeStatementFormatter(body => { + if (body.length === 0) { + throw new Error("Found nothing to return."); + } + if (body.length > 1) { + throw new Error("Found multiple statements but wanted one"); + } + return body[0]; +}); +exports.statement = statement; +const expression = { + code: str => `(\n${str}\n)`, + validate: ast => { + if (ast.program.body.length > 1) { + throw new Error("Found multiple statements but wanted one"); + } + if (expression.unwrap(ast).start === 0) { + throw new Error("Parse result included parens."); + } + }, + unwrap: ({ + program + }) => { + const [stmt] = program.body; + assertExpressionStatement(stmt); + return stmt.expression; + } +}; +exports.expression = expression; +const program = { + code: str => str, + validate: () => {}, + unwrap: ast => ast.program +}; +exports.program = program; -//# sourceMappingURL=removePropertiesDeep.js.map +//# sourceMappingURL=formatters.js.map /***/ }), -/***/ 1375: +/***/ 98063: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135371,69 +76428,35 @@ function removePropertiesDeep(tree, opts) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = removeTypeDuplicates; -var _generated = __nccwpck_require__(99451); -function getQualifiedName(node) { - return (0, _generated.isIdentifier)(node) ? node.name : `${node.right.name}.${getQualifiedName(node.left)}`; -} -function removeTypeDuplicates(nodes) { - const generics = new Map(); - const bases = new Map(); - const typeGroups = new Set(); - const types = []; - for (let i = 0; i < nodes.length; i++) { - const node = nodes[i]; - if (!node) continue; - if (types.indexOf(node) >= 0) { - continue; - } - if ((0, _generated.isTSAnyKeyword)(node)) { - return [node]; - } - if ((0, _generated.isTSBaseType)(node)) { - bases.set(node.type, node); - continue; - } - if ((0, _generated.isTSUnionType)(node)) { - if (!typeGroups.has(node.types)) { - nodes.push(...node.types); - typeGroups.add(node.types); - } - continue; - } - if ((0, _generated.isTSTypeReference)(node) && node.typeParameters) { - const name = getQualifiedName(node.typeName); - if (generics.has(name)) { - let existing = generics.get(name); - if (existing.typeParameters) { - if (node.typeParameters) { - existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params.concat(node.typeParameters.params)); - } - } else { - existing = node.typeParameters; - } - } else { - generics.set(name, node); - } - continue; - } - types.push(node); - } - for (const [, baseType] of bases) { - types.push(baseType); - } - for (const [, genericName] of generics) { - types.push(genericName); - } - return types; -} +exports.statements = exports.statement = exports.smart = exports.program = exports.expression = exports["default"] = void 0; +var formatters = __nccwpck_require__(53499); +var _builder = __nccwpck_require__(46435); +const smart = (0, _builder.default)(formatters.smart); +exports.smart = smart; +const statement = (0, _builder.default)(formatters.statement); +exports.statement = statement; +const statements = (0, _builder.default)(formatters.statements); +exports.statements = statements; +const expression = (0, _builder.default)(formatters.expression); +exports.expression = expression; +const program = (0, _builder.default)(formatters.program); +exports.program = program; +var _default = Object.assign(smart.bind(undefined), { + smart, + statement, + statements, + expression, + program, + ast: smart.ast +}); +exports["default"] = _default; -//# sourceMappingURL=removeTypeDuplicates.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 9853: +/***/ 41527: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135442,100 +76465,76 @@ function removeTypeDuplicates(nodes) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = getBindingIdentifiers; -var _generated = __nccwpck_require__(99451); -function getBindingIdentifiers(node, duplicates, outerOnly) { - const search = [].concat(node); - const ids = Object.create(null); - while (search.length) { - const id = search.shift(); - if (!id) continue; - const keys = getBindingIdentifiers.keys[id.type]; - if ((0, _generated.isIdentifier)(id)) { - if (duplicates) { - const _ids = ids[id.name] = ids[id.name] || []; - _ids.push(id); - } else { - ids[id.name] = id; - } - continue; - } - if ((0, _generated.isExportDeclaration)(id) && !(0, _generated.isExportAllDeclaration)(id)) { - if ((0, _generated.isDeclaration)(id.declaration)) { - search.push(id.declaration); - } - continue; - } - if (outerOnly) { - if ((0, _generated.isFunctionDeclaration)(id)) { - search.push(id.id); - continue; - } - if ((0, _generated.isFunctionExpression)(id)) { - continue; - } - } - if (keys) { - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const nodes = id[key]; - if (nodes) { - Array.isArray(nodes) ? search.push(...nodes) : search.push(nodes); - } +exports["default"] = literalTemplate; +var _options = __nccwpck_require__(59541); +var _parse = __nccwpck_require__(66340); +var _populate = __nccwpck_require__(47839); +function literalTemplate(formatter, tpl, opts) { + const { + metadata, + names + } = buildLiteralData(formatter, tpl, opts); + return arg => { + const defaultReplacements = {}; + arg.forEach((replacement, i) => { + defaultReplacements[names[i]] = replacement; + }); + return arg => { + const replacements = (0, _options.normalizeReplacements)(arg); + if (replacements) { + Object.keys(replacements).forEach(key => { + if (Object.prototype.hasOwnProperty.call(defaultReplacements, key)) { + throw new Error("Unexpected replacement overlap."); + } + }); } - } - } - return ids; + return formatter.unwrap((0, _populate.default)(metadata, replacements ? Object.assign(replacements, defaultReplacements) : defaultReplacements)); + }; + }; +} +function buildLiteralData(formatter, tpl, opts) { + let prefix = "BABEL_TPL$"; + const raw = tpl.join(""); + do { + prefix = "$$" + prefix; + } while (raw.includes(prefix)); + const { + names, + code + } = buildTemplateCode(tpl, prefix); + const metadata = (0, _parse.default)(formatter, formatter.code(code), { + parser: opts.parser, + placeholderWhitelist: new Set(names.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])), + placeholderPattern: opts.placeholderPattern, + preserveComments: opts.preserveComments, + syntacticPlaceholders: opts.syntacticPlaceholders + }); + return { + metadata, + names + }; +} +function buildTemplateCode(tpl, prefix) { + const names = []; + let code = tpl[0]; + for (let i = 1; i < tpl.length; i++) { + const value = `${prefix}${i - 1}`; + names.push(value); + code += value + tpl[i]; + } + return { + names, + code + }; } -getBindingIdentifiers.keys = { - DeclareClass: ["id"], - DeclareFunction: ["id"], - DeclareModule: ["id"], - DeclareVariable: ["id"], - DeclareInterface: ["id"], - DeclareTypeAlias: ["id"], - DeclareOpaqueType: ["id"], - InterfaceDeclaration: ["id"], - TypeAlias: ["id"], - OpaqueType: ["id"], - CatchClause: ["param"], - LabeledStatement: ["label"], - UnaryExpression: ["argument"], - AssignmentExpression: ["left"], - ImportSpecifier: ["local"], - ImportNamespaceSpecifier: ["local"], - ImportDefaultSpecifier: ["local"], - ImportDeclaration: ["specifiers"], - ExportSpecifier: ["exported"], - ExportNamespaceSpecifier: ["exported"], - ExportDefaultSpecifier: ["exported"], - FunctionDeclaration: ["id", "params"], - FunctionExpression: ["id", "params"], - ArrowFunctionExpression: ["params"], - ObjectMethod: ["params"], - ClassMethod: ["params"], - ClassPrivateMethod: ["params"], - ForInStatement: ["left"], - ForOfStatement: ["left"], - ClassDeclaration: ["id"], - ClassExpression: ["id"], - RestElement: ["argument"], - UpdateExpression: ["argument"], - ObjectProperty: ["value"], - AssignmentPattern: ["left"], - ArrayPattern: ["elements"], - ObjectPattern: ["properties"], - VariableDeclaration: ["declarations"], - VariableDeclarator: ["id"] -}; -//# sourceMappingURL=getBindingIdentifiers.js.map +//# sourceMappingURL=literal.js.map /***/ }), -/***/ 87729: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 59541: +/***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -135543,20 +76542,79 @@ getBindingIdentifiers.keys = { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = void 0; -var _getBindingIdentifiers = __nccwpck_require__(9853); -var _default = getOuterBindingIdentifiers; -exports["default"] = _default; -function getOuterBindingIdentifiers(node, duplicates) { - return (0, _getBindingIdentifiers.default)(node, duplicates, true); +exports.merge = merge; +exports.normalizeReplacements = normalizeReplacements; +exports.validate = validate; +const _excluded = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +function merge(a, b) { + const { + placeholderWhitelist = a.placeholderWhitelist, + placeholderPattern = a.placeholderPattern, + preserveComments = a.preserveComments, + syntacticPlaceholders = a.syntacticPlaceholders + } = b; + return { + parser: Object.assign({}, a.parser, b.parser), + placeholderWhitelist, + placeholderPattern, + preserveComments, + syntacticPlaceholders + }; +} +function validate(opts) { + if (opts != null && typeof opts !== "object") { + throw new Error("Unknown template options."); + } + const _ref = opts || {}, + { + placeholderWhitelist, + placeholderPattern, + preserveComments, + syntacticPlaceholders + } = _ref, + parser = _objectWithoutPropertiesLoose(_ref, _excluded); + if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) { + throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); + } + if (placeholderPattern != null && !(placeholderPattern instanceof RegExp) && placeholderPattern !== false) { + throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); + } + if (preserveComments != null && typeof preserveComments !== "boolean") { + throw new Error("'.preserveComments' must be a boolean, null, or undefined"); + } + if (syntacticPlaceholders != null && typeof syntacticPlaceholders !== "boolean") { + throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined"); + } + if (syntacticPlaceholders === true && (placeholderWhitelist != null || placeholderPattern != null)) { + throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); + } + return { + parser, + placeholderWhitelist: placeholderWhitelist || undefined, + placeholderPattern: placeholderPattern == null ? undefined : placeholderPattern, + preserveComments: preserveComments == null ? undefined : preserveComments, + syntacticPlaceholders: syntacticPlaceholders == null ? undefined : syntacticPlaceholders + }; +} +function normalizeReplacements(replacements) { + if (Array.isArray(replacements)) { + return replacements.reduce((acc, replacement, i) => { + acc["$" + i] = replacement; + return acc; + }, {}); + } else if (typeof replacements === "object" || replacements == null) { + return replacements || undefined; + } + throw new Error("Template replacements must be an array, object, null, or undefined"); } -//# sourceMappingURL=getOuterBindingIdentifiers.js.map +//# sourceMappingURL=options.js.map /***/ }), -/***/ 87994: +/***/ 66340: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135565,56 +76623,166 @@ function getOuterBindingIdentifiers(node, duplicates) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = traverse; -var _definitions = __nccwpck_require__(59357); -function traverse(node, handlers, state) { - if (typeof handlers === "function") { - handlers = { - enter: handlers - }; +exports["default"] = parseAndBuildMetadata; +var _t = __nccwpck_require__(68948); +var _parser = __nccwpck_require__(59067); +var _codeFrame = __nccwpck_require__(77956); +const { + isCallExpression, + isExpressionStatement, + isFunction, + isIdentifier, + isJSXIdentifier, + isNewExpression, + isPlaceholder, + isStatement, + isStringLiteral, + removePropertiesDeep, + traverse +} = _t; +const PATTERN = /^[_$A-Z0-9]+$/; +function parseAndBuildMetadata(formatter, code, opts) { + const { + placeholderWhitelist, + placeholderPattern, + preserveComments, + syntacticPlaceholders + } = opts; + const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders); + removePropertiesDeep(ast, { + preserveComments + }); + formatter.validate(ast); + const state = { + syntactic: { + placeholders: [], + placeholderNames: new Set() + }, + legacy: { + placeholders: [], + placeholderNames: new Set() + }, + placeholderWhitelist, + placeholderPattern, + syntacticPlaceholders + }; + traverse(ast, placeholderVisitorHandler, state); + return Object.assign({ + ast + }, state.syntactic.placeholders.length ? state.syntactic : state.legacy); +} +function placeholderVisitorHandler(node, ancestors, state) { + var _state$placeholderWhi; + let name; + let hasSyntacticPlaceholders = state.syntactic.placeholders.length > 0; + if (isPlaceholder(node)) { + if (state.syntacticPlaceholders === false) { + throw new Error("%%foo%%-style placeholders can't be used when " + "'.syntacticPlaceholders' is false."); + } + name = node.name.name; + hasSyntacticPlaceholders = true; + } else if (hasSyntacticPlaceholders || state.syntacticPlaceholders) { + return; + } else if (isIdentifier(node) || isJSXIdentifier(node)) { + name = node.name; + } else if (isStringLiteral(node)) { + name = node.value; + } else { + return; + } + if (hasSyntacticPlaceholders && (state.placeholderPattern != null || state.placeholderWhitelist != null)) { + throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); } + if (!hasSyntacticPlaceholders && (state.placeholderPattern === false || !(state.placeholderPattern || PATTERN).test(name)) && !((_state$placeholderWhi = state.placeholderWhitelist) != null && _state$placeholderWhi.has(name))) { + return; + } + ancestors = ancestors.slice(); const { - enter, - exit - } = handlers; - traverseSimpleImpl(node, enter, exit, state, []); + node: parent, + key + } = ancestors[ancestors.length - 1]; + let type; + if (isStringLiteral(node) || isPlaceholder(node, { + expectedNode: "StringLiteral" + })) { + type = "string"; + } else if (isNewExpression(parent) && key === "arguments" || isCallExpression(parent) && key === "arguments" || isFunction(parent) && key === "params") { + type = "param"; + } else if (isExpressionStatement(parent) && !isPlaceholder(node)) { + type = "statement"; + ancestors = ancestors.slice(0, -1); + } else if (isStatement(node) && isPlaceholder(node)) { + type = "statement"; + } else { + type = "other"; + } + const { + placeholders, + placeholderNames + } = !hasSyntacticPlaceholders ? state.legacy : state.syntactic; + placeholders.push({ + name, + type, + resolve: ast => resolveAncestors(ast, ancestors), + isDuplicate: placeholderNames.has(name) + }); + placeholderNames.add(name); } -function traverseSimpleImpl(node, enter, exit, state, ancestors) { - const keys = _definitions.VISITOR_KEYS[node.type]; - if (!keys) return; - if (enter) enter(node, ancestors, state); - for (const key of keys) { - const subNode = node[key]; - if (Array.isArray(subNode)) { - for (let i = 0; i < subNode.length; i++) { - const child = subNode[i]; - if (!child) continue; - ancestors.push({ - node, - key, - index: i - }); - traverseSimpleImpl(child, enter, exit, state, ancestors); - ancestors.pop(); - } - } else if (subNode) { - ancestors.push({ - node, - key +function resolveAncestors(ast, ancestors) { + let parent = ast; + for (let i = 0; i < ancestors.length - 1; i++) { + const { + key, + index + } = ancestors[i]; + if (index === undefined) { + parent = parent[key]; + } else { + parent = parent[key][index]; + } + } + const { + key, + index + } = ancestors[ancestors.length - 1]; + return { + parent, + key, + index + }; +} +function parseWithCodeFrame(code, parserOpts, syntacticPlaceholders) { + const plugins = (parserOpts.plugins || []).slice(); + if (syntacticPlaceholders !== false) { + plugins.push("placeholders"); + } + parserOpts = Object.assign({ + allowReturnOutsideFunction: true, + allowSuperOutsideMethod: true, + sourceType: "module" + }, parserOpts, { + plugins + }); + try { + return (0, _parser.parse)(code, parserOpts); + } catch (err) { + const loc = err.loc; + if (loc) { + err.message += "\n" + (0, _codeFrame.codeFrameColumns)(code, { + start: loc }); - traverseSimpleImpl(subNode, enter, exit, state, ancestors); - ancestors.pop(); + err.code = "BABEL_TEMPLATE_PARSE_ERROR"; } + throw err; } - if (exit) exit(node, ancestors, state); } -//# sourceMappingURL=traverse.js.map +//# sourceMappingURL=parse.js.map /***/ }), -/***/ 93159: +/***/ 47839: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135623,33 +76791,129 @@ function traverseSimpleImpl(node, enter, exit, state, ancestors) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = traverseFast; -var _definitions = __nccwpck_require__(59357); -function traverseFast(node, enter, opts) { - if (!node) return; - const keys = _definitions.VISITOR_KEYS[node.type]; - if (!keys) return; - opts = opts || {}; - enter(node, opts); - for (const key of keys) { - const subNode = node[key]; - if (Array.isArray(subNode)) { - for (const node of subNode) { - traverseFast(node, enter, opts); +exports["default"] = populatePlaceholders; +var _t = __nccwpck_require__(68948); +const { + blockStatement, + cloneNode, + emptyStatement, + expressionStatement, + identifier, + isStatement, + isStringLiteral, + stringLiteral, + validate +} = _t; +function populatePlaceholders(metadata, replacements) { + const ast = cloneNode(metadata.ast); + if (replacements) { + metadata.placeholders.forEach(placeholder => { + if (!Object.prototype.hasOwnProperty.call(replacements, placeholder.name)) { + const placeholderName = placeholder.name; + throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a + placeholder you may want to consider passing one of the following options to @babel/template: + - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])} + - { placeholderPattern: /^${placeholderName}$/ }`); + } + }); + Object.keys(replacements).forEach(key => { + if (!metadata.placeholderNames.has(key)) { + throw new Error(`Unknown substitution "${key}" given`); + } + }); + } + metadata.placeholders.slice().reverse().forEach(placeholder => { + try { + applyReplacement(placeholder, ast, replacements && replacements[placeholder.name] || null); + } catch (e) { + e.message = `@babel/template placeholder "${placeholder.name}": ${e.message}`; + throw e; + } + }); + return ast; +} +function applyReplacement(placeholder, ast, replacement) { + if (placeholder.isDuplicate) { + if (Array.isArray(replacement)) { + replacement = replacement.map(node => cloneNode(node)); + } else if (typeof replacement === "object") { + replacement = cloneNode(replacement); + } + } + const { + parent, + key, + index + } = placeholder.resolve(ast); + if (placeholder.type === "string") { + if (typeof replacement === "string") { + replacement = stringLiteral(replacement); + } + if (!replacement || !isStringLiteral(replacement)) { + throw new Error("Expected string substitution"); + } + } else if (placeholder.type === "statement") { + if (index === undefined) { + if (!replacement) { + replacement = emptyStatement(); + } else if (Array.isArray(replacement)) { + replacement = blockStatement(replacement); + } else if (typeof replacement === "string") { + replacement = expressionStatement(identifier(replacement)); + } else if (!isStatement(replacement)) { + replacement = expressionStatement(replacement); } } else { - traverseFast(subNode, enter, opts); + if (replacement && !Array.isArray(replacement)) { + if (typeof replacement === "string") { + replacement = identifier(replacement); + } + if (!isStatement(replacement)) { + replacement = expressionStatement(replacement); + } + } + } + } else if (placeholder.type === "param") { + if (typeof replacement === "string") { + replacement = identifier(replacement); + } + if (index === undefined) throw new Error("Assertion failure."); + } else { + if (typeof replacement === "string") { + replacement = identifier(replacement); + } + if (Array.isArray(replacement)) { + throw new Error("Cannot replace single expression with an array."); + } + } + if (index === undefined) { + validate(parent, key, replacement); + parent[key] = replacement; + } else { + const items = parent[key].slice(); + if (placeholder.type === "statement" || placeholder.type === "param") { + if (replacement == null) { + items.splice(index, 1); + } else if (Array.isArray(replacement)) { + items.splice(index, 1, ...replacement); + } else { + items[index] = replacement; + } + } else { + items[index] = replacement; } + validate(parent, key, items); + parent[key] = items; } } -//# sourceMappingURL=traverseFast.js.map +//# sourceMappingURL=populate.js.map /***/ }), -/***/ 43823: -/***/ (function(__unused_webpack_module, exports) { +/***/ 55435: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135657,36 +76921,26 @@ function traverseFast(node, enter, opts) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = deprecationWarning; -const warnings = new Set(); -function deprecationWarning(oldName, newName, prefix = "") { - if (warnings.has(oldName)) return; - warnings.add(oldName); - const stack = captureShortStackTrace(1, 2); - console.warn(`${prefix}\`${oldName}\` has been deprecated, please migrate to \`${newName}\`\n${stack}`); -} -function captureShortStackTrace(skip, length) { - const { - stackTraceLimit, - prepareStackTrace - } = Error; - let stackTrace; - Error.stackTraceLimit = 1 + skip + length; - Error.prepareStackTrace = function (err, stack) { - stackTrace = stack; +exports["default"] = stringTemplate; +var _options = __nccwpck_require__(59541); +var _parse = __nccwpck_require__(66340); +var _populate = __nccwpck_require__(47839); +function stringTemplate(formatter, code, opts) { + code = formatter.code(code); + let metadata; + return arg => { + const replacements = (0, _options.normalizeReplacements)(arg); + if (!metadata) metadata = (0, _parse.default)(formatter, code, opts); + return formatter.unwrap((0, _populate.default)(metadata, replacements)); }; - new Error().stack; - Error.stackTraceLimit = stackTraceLimit; - Error.prepareStackTrace = prepareStackTrace; - return stackTrace.slice(1 + skip, 1 + skip + length).map(frame => ` at ${frame}`).join("\n"); } -//# sourceMappingURL=deprecationWarning.js.map +//# sourceMappingURL=string.js.map /***/ }), -/***/ 59857: +/***/ 12640: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -135695,19 +76949,50 @@ function captureShortStackTrace(skip, length) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = inherit; -function inherit(key, child, parent) { - if (child && parent) { - child[key] = Array.from(new Set([].concat(child[key], parent[key]).filter(Boolean))); +exports.clear = clear; +exports.clearPath = clearPath; +exports.clearScope = clearScope; +exports.getCachedPaths = getCachedPaths; +exports.getOrCreateCachedPaths = getOrCreateCachedPaths; +exports.scope = exports.path = void 0; +let pathsCache = exports.path = new WeakMap(); +let scope = exports.scope = new WeakMap(); +function clear() { + clearPath(); + clearScope(); +} +function clearPath() { + exports.path = pathsCache = new WeakMap(); +} +function clearScope() { + exports.scope = scope = new WeakMap(); +} +const nullHub = Object.freeze({}); +function getCachedPaths(hub, parent) { + var _pathsCache$get, _hub; + { + hub = null; + } + return (_pathsCache$get = pathsCache.get((_hub = hub) != null ? _hub : nullHub)) == null ? void 0 : _pathsCache$get.get(parent); +} +function getOrCreateCachedPaths(hub, parent) { + var _hub2, _hub3; + { + hub = null; } + let parents = pathsCache.get((_hub2 = hub) != null ? _hub2 : nullHub); + if (!parents) pathsCache.set((_hub3 = hub) != null ? _hub3 : nullHub, parents = new WeakMap()); + let paths = parents.get(parent); + if (!paths) parents.set(parent, paths = new Map()); + return paths; } -//# sourceMappingURL=inherit.js.map +//# sourceMappingURL=cache.js.map /***/ }), -/***/ 18921: +/***/ 46701: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135716,46 +77001,121 @@ function inherit(key, child, parent) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = cleanJSXElementLiteralChild; -var _generated = __nccwpck_require__(54230); -var _ = __nccwpck_require__(89316); -function cleanJSXElementLiteralChild(child, args) { - const lines = child.value.split(/\r\n|\n|\r/); - let lastNonEmptyLine = 0; - for (let i = 0; i < lines.length; i++) { - if (lines[i].match(/[^ \t]/)) { - lastNonEmptyLine = i; +exports["default"] = void 0; +var _index = __nccwpck_require__(87093); +var _t = __nccwpck_require__(68948); +const { + VISITOR_KEYS +} = _t; +class TraversalContext { + constructor(scope, opts, state, parentPath) { + this.queue = null; + this.priorityQueue = null; + this.parentPath = parentPath; + this.scope = scope; + this.state = state; + this.opts = opts; + } + shouldVisit(node) { + const opts = this.opts; + if (opts.enter || opts.exit) return true; + if (opts[node.type]) return true; + const keys = VISITOR_KEYS[node.type]; + if (!(keys != null && keys.length)) return false; + for (const key of keys) { + if (node[key]) { + return true; + } } + return false; } - let str = ""; - for (let i = 0; i < lines.length; i++) { - const line = lines[i]; - const isFirstLine = i === 0; - const isLastLine = i === lines.length - 1; - const isLastNonEmptyLine = i === lastNonEmptyLine; - let trimmedLine = line.replace(/\t/g, " "); - if (!isFirstLine) { - trimmedLine = trimmedLine.replace(/^[ ]+/, ""); + create(node, container, key, listKey) { + return _index.default.get({ + parentPath: this.parentPath, + parent: node, + container, + key: key, + listKey + }); + } + maybeQueue(path, notPriority) { + if (this.queue) { + if (notPriority) { + this.queue.push(path); + } else { + this.priorityQueue.push(path); + } + } + } + visitMultiple(container, parent, listKey) { + if (container.length === 0) return false; + const queue = []; + for (let key = 0; key < container.length; key++) { + const node = container[key]; + if (node && this.shouldVisit(node)) { + queue.push(this.create(parent, container, key, listKey)); + } + } + return this.visitQueue(queue); + } + visitSingle(node, key) { + if (this.shouldVisit(node[key])) { + return this.visitQueue([this.create(node, node, key)]); + } else { + return false; + } + } + visitQueue(queue) { + this.queue = queue; + this.priorityQueue = []; + const visited = new WeakSet(); + let stop = false; + for (const path of queue) { + path.resync(); + if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) { + path.pushContext(this); + } + if (path.key === null) continue; + const { + node + } = path; + if (visited.has(node)) continue; + if (node) visited.add(node); + if (path.visit()) { + stop = true; + break; + } + if (this.priorityQueue.length) { + stop = this.visitQueue(this.priorityQueue); + this.priorityQueue = []; + this.queue = queue; + if (stop) break; + } } - if (!isLastLine) { - trimmedLine = trimmedLine.replace(/[ ]+$/, ""); + for (const path of queue) { + path.popContext(); } - if (trimmedLine) { - if (!isLastNonEmptyLine) { - trimmedLine += " "; - } - str += trimmedLine; + this.queue = null; + return stop; + } + visit(node, key) { + const nodes = node[key]; + if (!nodes) return false; + if (Array.isArray(nodes)) { + return this.visitMultiple(nodes, node, key); + } else { + return this.visitSingle(node, key); } } - if (str) args.push((0, _.inherits)((0, _generated.stringLiteral)(str), child)); } +exports["default"] = TraversalContext; -//# sourceMappingURL=cleanJSXElementLiteralChild.js.map +//# sourceMappingURL=context.js.map /***/ }), -/***/ 28271: +/***/ 11184: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -135764,23 +77124,25 @@ function cleanJSXElementLiteralChild(child, args) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = shallowEqual; -function shallowEqual(actual, expected) { - const keys = Object.keys(expected); - for (const key of keys) { - if (actual[key] !== expected[key]) { - return false; - } +exports["default"] = void 0; +class Hub { + getCode() {} + getScope() {} + addHelper() { + throw new Error("Helpers are not supported by the default hub."); + } + buildError(node, msg, Error = TypeError) { + return new Error(msg); } - return true; } +exports["default"] = Hub; -//# sourceMappingURL=shallowEqual.js.map +//# sourceMappingURL=hub.js.map /***/ }), -/***/ 15694: +/***/ 22382: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135789,19 +77151,100 @@ function shallowEqual(actual, expected) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = buildMatchMemberExpression; -var _matchesPattern = __nccwpck_require__(54280); -function buildMatchMemberExpression(match, allowPartial) { - const parts = match.split("."); - return member => (0, _matchesPattern.default)(member, parts, allowPartial); +Object.defineProperty(exports, "Hub", ({ + enumerable: true, + get: function () { + return _hub.default; + } +})); +Object.defineProperty(exports, "NodePath", ({ + enumerable: true, + get: function () { + return _index.default; + } +})); +Object.defineProperty(exports, "Scope", ({ + enumerable: true, + get: function () { + return _index2.default; + } +})); +exports.visitors = exports["default"] = void 0; +var visitors = __nccwpck_require__(24464); +exports.visitors = visitors; +var _t = __nccwpck_require__(68948); +var cache = __nccwpck_require__(12640); +var _traverseNode = __nccwpck_require__(48670); +var _index = __nccwpck_require__(87093); +var _index2 = __nccwpck_require__(45461); +var _hub = __nccwpck_require__(11184); +const { + VISITOR_KEYS, + removeProperties, + traverseFast +} = _t; +function traverse(parent, opts = {}, scope, state, parentPath, visitSelf) { + if (!parent) return; + if (!opts.noScope && !scope) { + if (parent.type !== "Program" && parent.type !== "File") { + throw new Error("You must pass a scope and parentPath unless traversing a Program/File. " + `Instead of that you tried to traverse a ${parent.type} node without ` + "passing scope and parentPath."); + } + } + if (!parentPath && visitSelf) { + throw new Error("visitSelf can only be used when providing a NodePath."); + } + if (!VISITOR_KEYS[parent.type]) { + return; + } + visitors.explode(opts); + (0, _traverseNode.traverseNode)(parent, opts, scope, state, parentPath, null, visitSelf); +} +var _default = exports["default"] = traverse; +traverse.visitors = visitors; +traverse.verify = visitors.verify; +traverse.explode = visitors.explode; +traverse.cheap = function (node, enter) { + traverseFast(node, enter); + return; +}; +traverse.node = function (node, opts, scope, state, path, skipKeys) { + (0, _traverseNode.traverseNode)(node, opts, scope, state, path, skipKeys); +}; +traverse.clearNode = function (node, opts) { + removeProperties(node, opts); +}; +traverse.removeProperties = function (tree, opts) { + traverseFast(tree, traverse.clearNode, opts); + return tree; +}; +function hasDenylistedType(path, state) { + if (path.node.type === state.type) { + state.has = true; + path.stop(); + } } +traverse.hasType = function (tree, type, denylistTypes) { + if (denylistTypes != null && denylistTypes.includes(tree.type)) return false; + if (tree.type === type) return true; + const state = { + has: false, + type: type + }; + traverse(tree, { + noScope: true, + denylist: denylistTypes, + enter: hasDenylistedType + }, null, state); + return state.has; +}; +traverse.cache = cache; -//# sourceMappingURL=buildMatchMemberExpression.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 99451: +/***/ 76921: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135810,4384 +77253,4761 @@ function buildMatchMemberExpression(match, allowPartial) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isAccessor = isAccessor; -exports.isAnyTypeAnnotation = isAnyTypeAnnotation; -exports.isArgumentPlaceholder = isArgumentPlaceholder; -exports.isArrayExpression = isArrayExpression; -exports.isArrayPattern = isArrayPattern; -exports.isArrayTypeAnnotation = isArrayTypeAnnotation; -exports.isArrowFunctionExpression = isArrowFunctionExpression; -exports.isAssignmentExpression = isAssignmentExpression; -exports.isAssignmentPattern = isAssignmentPattern; -exports.isAwaitExpression = isAwaitExpression; -exports.isBigIntLiteral = isBigIntLiteral; -exports.isBinary = isBinary; -exports.isBinaryExpression = isBinaryExpression; -exports.isBindExpression = isBindExpression; -exports.isBlock = isBlock; -exports.isBlockParent = isBlockParent; -exports.isBlockStatement = isBlockStatement; -exports.isBooleanLiteral = isBooleanLiteral; -exports.isBooleanLiteralTypeAnnotation = isBooleanLiteralTypeAnnotation; -exports.isBooleanTypeAnnotation = isBooleanTypeAnnotation; -exports.isBreakStatement = isBreakStatement; -exports.isCallExpression = isCallExpression; -exports.isCatchClause = isCatchClause; -exports.isClass = isClass; -exports.isClassAccessorProperty = isClassAccessorProperty; -exports.isClassBody = isClassBody; -exports.isClassDeclaration = isClassDeclaration; -exports.isClassExpression = isClassExpression; -exports.isClassImplements = isClassImplements; -exports.isClassMethod = isClassMethod; -exports.isClassPrivateMethod = isClassPrivateMethod; -exports.isClassPrivateProperty = isClassPrivateProperty; -exports.isClassProperty = isClassProperty; -exports.isCompletionStatement = isCompletionStatement; -exports.isConditional = isConditional; -exports.isConditionalExpression = isConditionalExpression; -exports.isContinueStatement = isContinueStatement; -exports.isDebuggerStatement = isDebuggerStatement; -exports.isDecimalLiteral = isDecimalLiteral; -exports.isDeclaration = isDeclaration; -exports.isDeclareClass = isDeclareClass; -exports.isDeclareExportAllDeclaration = isDeclareExportAllDeclaration; -exports.isDeclareExportDeclaration = isDeclareExportDeclaration; -exports.isDeclareFunction = isDeclareFunction; -exports.isDeclareInterface = isDeclareInterface; -exports.isDeclareModule = isDeclareModule; -exports.isDeclareModuleExports = isDeclareModuleExports; -exports.isDeclareOpaqueType = isDeclareOpaqueType; -exports.isDeclareTypeAlias = isDeclareTypeAlias; -exports.isDeclareVariable = isDeclareVariable; -exports.isDeclaredPredicate = isDeclaredPredicate; -exports.isDecorator = isDecorator; -exports.isDirective = isDirective; -exports.isDirectiveLiteral = isDirectiveLiteral; -exports.isDoExpression = isDoExpression; -exports.isDoWhileStatement = isDoWhileStatement; -exports.isEmptyStatement = isEmptyStatement; -exports.isEmptyTypeAnnotation = isEmptyTypeAnnotation; -exports.isEnumBody = isEnumBody; -exports.isEnumBooleanBody = isEnumBooleanBody; -exports.isEnumBooleanMember = isEnumBooleanMember; -exports.isEnumDeclaration = isEnumDeclaration; -exports.isEnumDefaultedMember = isEnumDefaultedMember; -exports.isEnumMember = isEnumMember; -exports.isEnumNumberBody = isEnumNumberBody; -exports.isEnumNumberMember = isEnumNumberMember; -exports.isEnumStringBody = isEnumStringBody; -exports.isEnumStringMember = isEnumStringMember; -exports.isEnumSymbolBody = isEnumSymbolBody; -exports.isExistsTypeAnnotation = isExistsTypeAnnotation; -exports.isExportAllDeclaration = isExportAllDeclaration; -exports.isExportDeclaration = isExportDeclaration; -exports.isExportDefaultDeclaration = isExportDefaultDeclaration; -exports.isExportDefaultSpecifier = isExportDefaultSpecifier; -exports.isExportNamedDeclaration = isExportNamedDeclaration; -exports.isExportNamespaceSpecifier = isExportNamespaceSpecifier; -exports.isExportSpecifier = isExportSpecifier; -exports.isExpression = isExpression; -exports.isExpressionStatement = isExpressionStatement; -exports.isExpressionWrapper = isExpressionWrapper; -exports.isFile = isFile; -exports.isFlow = isFlow; -exports.isFlowBaseAnnotation = isFlowBaseAnnotation; -exports.isFlowDeclaration = isFlowDeclaration; -exports.isFlowPredicate = isFlowPredicate; -exports.isFlowType = isFlowType; -exports.isFor = isFor; -exports.isForInStatement = isForInStatement; -exports.isForOfStatement = isForOfStatement; -exports.isForStatement = isForStatement; -exports.isForXStatement = isForXStatement; -exports.isFunction = isFunction; -exports.isFunctionDeclaration = isFunctionDeclaration; -exports.isFunctionExpression = isFunctionExpression; -exports.isFunctionParent = isFunctionParent; -exports.isFunctionTypeAnnotation = isFunctionTypeAnnotation; -exports.isFunctionTypeParam = isFunctionTypeParam; -exports.isGenericTypeAnnotation = isGenericTypeAnnotation; -exports.isIdentifier = isIdentifier; -exports.isIfStatement = isIfStatement; -exports.isImmutable = isImmutable; -exports.isImport = isImport; -exports.isImportAttribute = isImportAttribute; -exports.isImportDeclaration = isImportDeclaration; -exports.isImportDefaultSpecifier = isImportDefaultSpecifier; -exports.isImportNamespaceSpecifier = isImportNamespaceSpecifier; -exports.isImportOrExportDeclaration = isImportOrExportDeclaration; -exports.isImportSpecifier = isImportSpecifier; -exports.isIndexedAccessType = isIndexedAccessType; -exports.isInferredPredicate = isInferredPredicate; -exports.isInterfaceDeclaration = isInterfaceDeclaration; -exports.isInterfaceExtends = isInterfaceExtends; -exports.isInterfaceTypeAnnotation = isInterfaceTypeAnnotation; -exports.isInterpreterDirective = isInterpreterDirective; -exports.isIntersectionTypeAnnotation = isIntersectionTypeAnnotation; -exports.isJSX = isJSX; -exports.isJSXAttribute = isJSXAttribute; -exports.isJSXClosingElement = isJSXClosingElement; -exports.isJSXClosingFragment = isJSXClosingFragment; -exports.isJSXElement = isJSXElement; -exports.isJSXEmptyExpression = isJSXEmptyExpression; -exports.isJSXExpressionContainer = isJSXExpressionContainer; -exports.isJSXFragment = isJSXFragment; -exports.isJSXIdentifier = isJSXIdentifier; -exports.isJSXMemberExpression = isJSXMemberExpression; -exports.isJSXNamespacedName = isJSXNamespacedName; -exports.isJSXOpeningElement = isJSXOpeningElement; -exports.isJSXOpeningFragment = isJSXOpeningFragment; -exports.isJSXSpreadAttribute = isJSXSpreadAttribute; -exports.isJSXSpreadChild = isJSXSpreadChild; -exports.isJSXText = isJSXText; -exports.isLVal = isLVal; -exports.isLabeledStatement = isLabeledStatement; -exports.isLiteral = isLiteral; -exports.isLogicalExpression = isLogicalExpression; -exports.isLoop = isLoop; -exports.isMemberExpression = isMemberExpression; -exports.isMetaProperty = isMetaProperty; -exports.isMethod = isMethod; -exports.isMiscellaneous = isMiscellaneous; -exports.isMixedTypeAnnotation = isMixedTypeAnnotation; -exports.isModuleDeclaration = isModuleDeclaration; -exports.isModuleExpression = isModuleExpression; -exports.isModuleSpecifier = isModuleSpecifier; -exports.isNewExpression = isNewExpression; -exports.isNoop = isNoop; -exports.isNullLiteral = isNullLiteral; -exports.isNullLiteralTypeAnnotation = isNullLiteralTypeAnnotation; -exports.isNullableTypeAnnotation = isNullableTypeAnnotation; -exports.isNumberLiteral = isNumberLiteral; -exports.isNumberLiteralTypeAnnotation = isNumberLiteralTypeAnnotation; -exports.isNumberTypeAnnotation = isNumberTypeAnnotation; -exports.isNumericLiteral = isNumericLiteral; -exports.isObjectExpression = isObjectExpression; -exports.isObjectMember = isObjectMember; -exports.isObjectMethod = isObjectMethod; -exports.isObjectPattern = isObjectPattern; -exports.isObjectProperty = isObjectProperty; -exports.isObjectTypeAnnotation = isObjectTypeAnnotation; -exports.isObjectTypeCallProperty = isObjectTypeCallProperty; -exports.isObjectTypeIndexer = isObjectTypeIndexer; -exports.isObjectTypeInternalSlot = isObjectTypeInternalSlot; -exports.isObjectTypeProperty = isObjectTypeProperty; -exports.isObjectTypeSpreadProperty = isObjectTypeSpreadProperty; -exports.isOpaqueType = isOpaqueType; -exports.isOptionalCallExpression = isOptionalCallExpression; -exports.isOptionalIndexedAccessType = isOptionalIndexedAccessType; -exports.isOptionalMemberExpression = isOptionalMemberExpression; -exports.isParenthesizedExpression = isParenthesizedExpression; -exports.isPattern = isPattern; -exports.isPatternLike = isPatternLike; -exports.isPipelineBareFunction = isPipelineBareFunction; -exports.isPipelinePrimaryTopicReference = isPipelinePrimaryTopicReference; -exports.isPipelineTopicExpression = isPipelineTopicExpression; -exports.isPlaceholder = isPlaceholder; -exports.isPrivate = isPrivate; -exports.isPrivateName = isPrivateName; -exports.isProgram = isProgram; -exports.isProperty = isProperty; -exports.isPureish = isPureish; -exports.isQualifiedTypeIdentifier = isQualifiedTypeIdentifier; -exports.isRecordExpression = isRecordExpression; -exports.isRegExpLiteral = isRegExpLiteral; -exports.isRegexLiteral = isRegexLiteral; -exports.isRestElement = isRestElement; -exports.isRestProperty = isRestProperty; -exports.isReturnStatement = isReturnStatement; -exports.isScopable = isScopable; -exports.isSequenceExpression = isSequenceExpression; -exports.isSpreadElement = isSpreadElement; -exports.isSpreadProperty = isSpreadProperty; -exports.isStandardized = isStandardized; -exports.isStatement = isStatement; -exports.isStaticBlock = isStaticBlock; -exports.isStringLiteral = isStringLiteral; -exports.isStringLiteralTypeAnnotation = isStringLiteralTypeAnnotation; -exports.isStringTypeAnnotation = isStringTypeAnnotation; -exports.isSuper = isSuper; -exports.isSwitchCase = isSwitchCase; -exports.isSwitchStatement = isSwitchStatement; -exports.isSymbolTypeAnnotation = isSymbolTypeAnnotation; -exports.isTSAnyKeyword = isTSAnyKeyword; -exports.isTSArrayType = isTSArrayType; -exports.isTSAsExpression = isTSAsExpression; -exports.isTSBaseType = isTSBaseType; -exports.isTSBigIntKeyword = isTSBigIntKeyword; -exports.isTSBooleanKeyword = isTSBooleanKeyword; -exports.isTSCallSignatureDeclaration = isTSCallSignatureDeclaration; -exports.isTSConditionalType = isTSConditionalType; -exports.isTSConstructSignatureDeclaration = isTSConstructSignatureDeclaration; -exports.isTSConstructorType = isTSConstructorType; -exports.isTSDeclareFunction = isTSDeclareFunction; -exports.isTSDeclareMethod = isTSDeclareMethod; -exports.isTSEntityName = isTSEntityName; -exports.isTSEnumDeclaration = isTSEnumDeclaration; -exports.isTSEnumMember = isTSEnumMember; -exports.isTSExportAssignment = isTSExportAssignment; -exports.isTSExpressionWithTypeArguments = isTSExpressionWithTypeArguments; -exports.isTSExternalModuleReference = isTSExternalModuleReference; -exports.isTSFunctionType = isTSFunctionType; -exports.isTSImportEqualsDeclaration = isTSImportEqualsDeclaration; -exports.isTSImportType = isTSImportType; -exports.isTSIndexSignature = isTSIndexSignature; -exports.isTSIndexedAccessType = isTSIndexedAccessType; -exports.isTSInferType = isTSInferType; -exports.isTSInstantiationExpression = isTSInstantiationExpression; -exports.isTSInterfaceBody = isTSInterfaceBody; -exports.isTSInterfaceDeclaration = isTSInterfaceDeclaration; -exports.isTSIntersectionType = isTSIntersectionType; -exports.isTSIntrinsicKeyword = isTSIntrinsicKeyword; -exports.isTSLiteralType = isTSLiteralType; -exports.isTSMappedType = isTSMappedType; -exports.isTSMethodSignature = isTSMethodSignature; -exports.isTSModuleBlock = isTSModuleBlock; -exports.isTSModuleDeclaration = isTSModuleDeclaration; -exports.isTSNamedTupleMember = isTSNamedTupleMember; -exports.isTSNamespaceExportDeclaration = isTSNamespaceExportDeclaration; -exports.isTSNeverKeyword = isTSNeverKeyword; -exports.isTSNonNullExpression = isTSNonNullExpression; -exports.isTSNullKeyword = isTSNullKeyword; -exports.isTSNumberKeyword = isTSNumberKeyword; -exports.isTSObjectKeyword = isTSObjectKeyword; -exports.isTSOptionalType = isTSOptionalType; -exports.isTSParameterProperty = isTSParameterProperty; -exports.isTSParenthesizedType = isTSParenthesizedType; -exports.isTSPropertySignature = isTSPropertySignature; -exports.isTSQualifiedName = isTSQualifiedName; -exports.isTSRestType = isTSRestType; -exports.isTSSatisfiesExpression = isTSSatisfiesExpression; -exports.isTSStringKeyword = isTSStringKeyword; -exports.isTSSymbolKeyword = isTSSymbolKeyword; -exports.isTSThisType = isTSThisType; -exports.isTSTupleType = isTSTupleType; -exports.isTSType = isTSType; -exports.isTSTypeAliasDeclaration = isTSTypeAliasDeclaration; -exports.isTSTypeAnnotation = isTSTypeAnnotation; -exports.isTSTypeAssertion = isTSTypeAssertion; -exports.isTSTypeElement = isTSTypeElement; -exports.isTSTypeLiteral = isTSTypeLiteral; -exports.isTSTypeOperator = isTSTypeOperator; -exports.isTSTypeParameter = isTSTypeParameter; -exports.isTSTypeParameterDeclaration = isTSTypeParameterDeclaration; -exports.isTSTypeParameterInstantiation = isTSTypeParameterInstantiation; -exports.isTSTypePredicate = isTSTypePredicate; -exports.isTSTypeQuery = isTSTypeQuery; -exports.isTSTypeReference = isTSTypeReference; -exports.isTSUndefinedKeyword = isTSUndefinedKeyword; -exports.isTSUnionType = isTSUnionType; -exports.isTSUnknownKeyword = isTSUnknownKeyword; -exports.isTSVoidKeyword = isTSVoidKeyword; -exports.isTaggedTemplateExpression = isTaggedTemplateExpression; -exports.isTemplateElement = isTemplateElement; -exports.isTemplateLiteral = isTemplateLiteral; -exports.isTerminatorless = isTerminatorless; -exports.isThisExpression = isThisExpression; -exports.isThisTypeAnnotation = isThisTypeAnnotation; -exports.isThrowStatement = isThrowStatement; -exports.isTopicReference = isTopicReference; -exports.isTryStatement = isTryStatement; -exports.isTupleExpression = isTupleExpression; -exports.isTupleTypeAnnotation = isTupleTypeAnnotation; -exports.isTypeAlias = isTypeAlias; -exports.isTypeAnnotation = isTypeAnnotation; -exports.isTypeCastExpression = isTypeCastExpression; -exports.isTypeParameter = isTypeParameter; -exports.isTypeParameterDeclaration = isTypeParameterDeclaration; -exports.isTypeParameterInstantiation = isTypeParameterInstantiation; -exports.isTypeScript = isTypeScript; -exports.isTypeofTypeAnnotation = isTypeofTypeAnnotation; -exports.isUnaryExpression = isUnaryExpression; -exports.isUnaryLike = isUnaryLike; -exports.isUnionTypeAnnotation = isUnionTypeAnnotation; -exports.isUpdateExpression = isUpdateExpression; -exports.isUserWhitespacable = isUserWhitespacable; -exports.isV8IntrinsicIdentifier = isV8IntrinsicIdentifier; -exports.isVariableDeclaration = isVariableDeclaration; -exports.isVariableDeclarator = isVariableDeclarator; -exports.isVariance = isVariance; -exports.isVoidTypeAnnotation = isVoidTypeAnnotation; -exports.isWhile = isWhile; -exports.isWhileStatement = isWhileStatement; -exports.isWithStatement = isWithStatement; -exports.isYieldExpression = isYieldExpression; -var _shallowEqual = __nccwpck_require__(28271); -var _deprecationWarning = __nccwpck_require__(43823); -function isArrayExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ArrayExpression") { - if (typeof opts === "undefined") { - return true; +exports.find = find; +exports.findParent = findParent; +exports.getAncestry = getAncestry; +exports.getDeepestCommonAncestorFrom = getDeepestCommonAncestorFrom; +exports.getEarliestCommonAncestorFrom = getEarliestCommonAncestorFrom; +exports.getFunctionParent = getFunctionParent; +exports.getStatementParent = getStatementParent; +exports.inType = inType; +exports.isAncestor = isAncestor; +exports.isDescendant = isDescendant; +var _t = __nccwpck_require__(68948); +const { + VISITOR_KEYS +} = _t; +function findParent(callback) { + let path = this; + while (path = path.parentPath) { + if (callback(path)) return path; + } + return null; +} +function find(callback) { + let path = this; + do { + if (callback(path)) return path; + } while (path = path.parentPath); + return null; +} +function getFunctionParent() { + return this.findParent(p => p.isFunction()); +} +function getStatementParent() { + let path = this; + do { + if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { + break; } else { - return (0, _shallowEqual.default)(node, opts); + path = path.parentPath; + } + } while (path); + if (path && (path.isProgram() || path.isFile())) { + throw new Error("File/Program node, we can't possibly find a statement parent to this"); + } + return path; +} +function getEarliestCommonAncestorFrom(paths) { + return this.getDeepestCommonAncestorFrom(paths, function (deepest, i, ancestries) { + let earliest; + const keys = VISITOR_KEYS[deepest.type]; + for (const ancestry of ancestries) { + const path = ancestry[i + 1]; + if (!earliest) { + earliest = path; + continue; + } + if (path.listKey && earliest.listKey === path.listKey) { + if (path.key < earliest.key) { + earliest = path; + continue; + } + } + const earliestKeyIndex = keys.indexOf(earliest.parentKey); + const currentKeyIndex = keys.indexOf(path.parentKey); + if (earliestKeyIndex > currentKeyIndex) { + earliest = path; + } } - } - return false; + return earliest; + }); } -function isAssignmentExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "AssignmentExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function getDeepestCommonAncestorFrom(paths, filter) { + if (!paths.length) { + return this; + } + if (paths.length === 1) { + return paths[0]; + } + let minDepth = Infinity; + let lastCommonIndex, lastCommon; + const ancestries = paths.map(path => { + const ancestry = []; + do { + ancestry.unshift(path); + } while ((path = path.parentPath) && path !== this); + if (ancestry.length < minDepth) { + minDepth = ancestry.length; + } + return ancestry; + }); + const first = ancestries[0]; + depthLoop: for (let i = 0; i < minDepth; i++) { + const shouldMatch = first[i]; + for (const ancestry of ancestries) { + if (ancestry[i] !== shouldMatch) { + break depthLoop; + } } + lastCommonIndex = i; + lastCommon = shouldMatch; } - return false; -} -function isBinaryExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BinaryExpression") { - if (typeof opts === "undefined") { - return true; + if (lastCommon) { + if (filter) { + return filter(lastCommon, lastCommonIndex, ancestries); } else { - return (0, _shallowEqual.default)(node, opts); + return lastCommon; } + } else { + throw new Error("Couldn't find intersection"); } - return false; } -function isInterpreterDirective(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "InterpreterDirective") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function getAncestry() { + let path = this; + const paths = []; + do { + paths.push(path); + } while (path = path.parentPath); + return paths; +} +function isAncestor(maybeDescendant) { + return maybeDescendant.isDescendant(this); +} +function isDescendant(maybeAncestor) { + return !!this.findParent(parent => parent === maybeAncestor); +} +function inType(...candidateTypes) { + let path = this; + while (path) { + for (const type of candidateTypes) { + if (path.node.type === type) return true; } + path = path.parentPath; } return false; } -function isDirective(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Directive") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + +//# sourceMappingURL=ancestry.js.map + + +/***/ }), + +/***/ 61692: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.addComment = addComment; +exports.addComments = addComments; +exports.shareCommentsWithSiblings = shareCommentsWithSiblings; +var _t = __nccwpck_require__(68948); +const { + addComment: _addComment, + addComments: _addComments +} = _t; +function shareCommentsWithSiblings() { + if (typeof this.key === "string") return; + const node = this.node; + if (!node) return; + const trailing = node.trailingComments; + const leading = node.leadingComments; + if (!trailing && !leading) return; + const prev = this.getSibling(this.key - 1); + const next = this.getSibling(this.key + 1); + const hasPrev = Boolean(prev.node); + const hasNext = Boolean(next.node); + if (hasPrev) { + if (leading) { + prev.addComments("trailing", removeIfExisting(leading, prev.node.trailingComments)); } + if (trailing && !hasNext) prev.addComments("trailing", trailing); } - return false; -} -function isDirectiveLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DirectiveLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (hasNext) { + if (trailing) { + next.addComments("leading", removeIfExisting(trailing, next.node.leadingComments)); } + if (leading && !hasPrev) next.addComments("leading", leading); } - return false; } -function isBlockStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BlockStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function removeIfExisting(list, toRemove) { + if (!(toRemove != null && toRemove.length)) return list; + const set = new Set(toRemove); + return list.filter(el => { + return !set.has(el); + }); +} +function addComment(type, content, line) { + _addComment(this.node, type, content, line); +} +function addComments(type, comments) { + _addComments(this.node, type, comments); +} + +//# sourceMappingURL=comments.js.map + + +/***/ }), + +/***/ 54971: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports._call = _call; +exports._getQueueContexts = _getQueueContexts; +exports._resyncKey = _resyncKey; +exports._resyncList = _resyncList; +exports._resyncParent = _resyncParent; +exports._resyncRemoved = _resyncRemoved; +exports.call = call; +exports.isBlacklisted = exports.isDenylisted = isDenylisted; +exports.popContext = popContext; +exports.pushContext = pushContext; +exports.requeue = requeue; +exports.resync = resync; +exports.setContext = setContext; +exports.setKey = setKey; +exports.setScope = setScope; +exports.setup = setup; +exports.skip = skip; +exports.skipKey = skipKey; +exports.stop = stop; +exports.visit = visit; +var _traverseNode = __nccwpck_require__(48670); +var _index = __nccwpck_require__(87093); +function call(key) { + const opts = this.opts; + this.debug(key); + if (this.node) { + if (this._call(opts[key])) return true; + } + if (this.node) { + var _opts$this$node$type; + return this._call((_opts$this$node$type = opts[this.node.type]) == null ? void 0 : _opts$this$node$type[key]); } return false; } -function isBreakStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BreakStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function _call(fns) { + if (!fns) return false; + for (const fn of fns) { + if (!fn) continue; + const node = this.node; + if (!node) return true; + const ret = fn.call(this.state, this, this.state); + if (ret && typeof ret === "object" && typeof ret.then === "function") { + throw new Error(`You appear to be using a plugin with an async traversal visitor, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); + } + if (ret) { + throw new Error(`Unexpected return value from visitor method ${fn}`); } + if (this.node !== node) return true; + if (this._traverseFlags > 0) return true; } return false; } -function isCallExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "CallExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function isDenylisted() { + var _this$opts$denylist; + const denylist = (_this$opts$denylist = this.opts.denylist) != null ? _this$opts$denylist : this.opts.blacklist; + return denylist && denylist.indexOf(this.node.type) > -1; +} +function restoreContext(path, context) { + if (path.context !== context) { + path.context = context; + path.state = context.state; + path.opts = context.opts; } - return false; } -function isCatchClause(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "CatchClause") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function visit() { + var _this$opts$shouldSkip, _this$opts; + if (!this.node) { + return false; } - return false; + if (this.isDenylisted()) { + return false; + } + if ((_this$opts$shouldSkip = (_this$opts = this.opts).shouldSkip) != null && _this$opts$shouldSkip.call(_this$opts, this)) { + return false; + } + const currentContext = this.context; + if (this.shouldSkip || this.call("enter")) { + this.debug("Skip..."); + return this.shouldStop; + } + restoreContext(this, currentContext); + this.debug("Recursing into..."); + this.shouldStop = (0, _traverseNode.traverseNode)(this.node, this.opts, this.scope, this.state, this, this.skipKeys); + restoreContext(this, currentContext); + this.call("exit"); + return this.shouldStop; } -function isConditionalExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ConditionalExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function skip() { + this.shouldSkip = true; +} +function skipKey(key) { + if (this.skipKeys == null) { + this.skipKeys = {}; } - return false; + this.skipKeys[key] = true; } -function isContinueStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ContinueStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function stop() { + this._traverseFlags |= _index.SHOULD_SKIP | _index.SHOULD_STOP; +} +function setScope() { + var _this$opts2, _this$scope; + if ((_this$opts2 = this.opts) != null && _this$opts2.noScope) return; + let path = this.parentPath; + if ((this.key === "key" || this.listKey === "decorators") && path.isMethod() || this.key === "discriminant" && path.isSwitchStatement()) { + path = path.parentPath; } - return false; + let target; + while (path && !target) { + var _path$opts; + if ((_path$opts = path.opts) != null && _path$opts.noScope) return; + target = path.scope; + path = path.parentPath; + } + this.scope = this.getScope(target); + (_this$scope = this.scope) == null || _this$scope.init(); } -function isDebuggerStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DebuggerStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function setContext(context) { + if (this.skipKeys != null) { + this.skipKeys = {}; } - return false; + this._traverseFlags = 0; + if (context) { + this.context = context; + this.state = context.state; + this.opts = context.opts; + } + this.setScope(); + return this; } -function isDoWhileStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DoWhileStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function resync() { + if (this.removed) return; + this._resyncParent(); + this._resyncList(); + this._resyncKey(); +} +function _resyncParent() { + if (this.parentPath) { + this.parent = this.parentPath.node; + } +} +function _resyncKey() { + if (!this.container) return; + if (this.node === this.container[this.key]) { + return; + } + if (Array.isArray(this.container)) { + for (let i = 0; i < this.container.length; i++) { + if (this.container[i] === this.node) { + this.setKey(i); + return; + } + } + } else { + for (const key of Object.keys(this.container)) { + if (this.container[key] === this.node) { + this.setKey(key); + return; + } } } - return false; + this.key = null; } -function isEmptyStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EmptyStatement") { - if (typeof opts === "undefined") { - return true; +function _resyncList() { + if (!this.parent || !this.inList) return; + const newContainer = this.parent[this.listKey]; + if (this.container === newContainer) return; + this.container = newContainer || null; +} +function _resyncRemoved() { + if (this.key == null || !this.container || this.container[this.key] !== this.node) { + this._markRemoved(); + } +} +function popContext() { + this.contexts.pop(); + if (this.contexts.length > 0) { + this.setContext(this.contexts[this.contexts.length - 1]); + } else { + this.setContext(undefined); + } +} +function pushContext(context) { + this.contexts.push(context); + this.setContext(context); +} +function setup(parentPath, container, listKey, key) { + this.listKey = listKey; + this.container = container; + this.parentPath = parentPath || this.parentPath; + this.setKey(key); +} +function setKey(key) { + var _this$node; + this.key = key; + this.node = this.container[this.key]; + this.type = (_this$node = this.node) == null ? void 0 : _this$node.type; +} +function requeue(pathToQueue = this) { + if (pathToQueue.removed) return; + ; + const contexts = this.contexts; + for (const context of contexts) { + context.maybeQueue(pathToQueue); + } +} +function _getQueueContexts() { + let path = this; + let contexts = this.contexts; + while (!contexts.length) { + path = path.parentPath; + if (!path) break; + contexts = path.contexts; + } + return contexts; +} + +//# sourceMappingURL=context.js.map + + +/***/ }), + +/***/ 31835: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.arrowFunctionToExpression = arrowFunctionToExpression; +exports.ensureBlock = ensureBlock; +exports.toComputedKey = toComputedKey; +exports.unwrapFunctionEnvironment = unwrapFunctionEnvironment; +var _t = __nccwpck_require__(68948); +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _helperFunctionName = __nccwpck_require__(54915); +var _visitors = __nccwpck_require__(24464); +const { + arrowFunctionExpression, + assignmentExpression, + binaryExpression, + blockStatement, + callExpression, + conditionalExpression, + expressionStatement, + identifier, + isIdentifier, + jsxIdentifier, + logicalExpression, + LOGICAL_OPERATORS, + memberExpression, + metaProperty, + numericLiteral, + objectExpression, + restElement, + returnStatement, + sequenceExpression, + spreadElement, + stringLiteral, + super: _super, + thisExpression, + toExpression, + unaryExpression +} = _t; +function toComputedKey() { + let key; + if (this.isMemberExpression()) { + key = this.node.property; + } else if (this.isProperty() || this.isMethod()) { + key = this.node.key; + } else { + throw new ReferenceError("todo"); + } + if (!this.node.computed) { + if (isIdentifier(key)) key = stringLiteral(key.name); + } + return key; +} +function ensureBlock() { + const body = this.get("body"); + const bodyNode = body.node; + if (Array.isArray(body)) { + throw new Error("Can't convert array path to a block statement"); + } + if (!bodyNode) { + throw new Error("Can't convert node without a body"); + } + if (body.isBlockStatement()) { + return bodyNode; + } + const statements = []; + let stringPath = "body"; + let key; + let listKey; + if (body.isStatement()) { + listKey = "body"; + key = 0; + statements.push(body.node); + } else { + stringPath += ".body.0"; + if (this.isFunction()) { + key = "argument"; + statements.push(returnStatement(body.node)); } else { - return (0, _shallowEqual.default)(node, opts); + key = "expression"; + statements.push(expressionStatement(body.node)); } } - return false; + this.node.body = blockStatement(statements); + const parentPath = this.get(stringPath); + body.setup(parentPath, listKey ? parentPath.node[listKey] : parentPath.node, listKey, key); + return this.node; } -function isExpressionStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExpressionStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +{ + exports.arrowFunctionToShadowed = function () { + if (!this.isArrowFunctionExpression()) return; + this.arrowFunctionToExpression(); + }; +} +function unwrapFunctionEnvironment() { + if (!this.isArrowFunctionExpression() && !this.isFunctionExpression() && !this.isFunctionDeclaration()) { + throw this.buildCodeFrameError("Can only unwrap the environment of a function."); + } + hoistFunctionEnvironment(this); +} +function setType(path, type) { + path.node.type = type; +} +function arrowFunctionToExpression({ + allowInsertArrow = true, + allowInsertArrowWithRest = allowInsertArrow, + noNewArrows = !(_arguments$ => (_arguments$ = arguments[0]) == null ? void 0 : _arguments$.specCompliant)() +} = {}) { + if (!this.isArrowFunctionExpression()) { + throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression."); + } + const { + thisBinding, + fnPath: fn + } = hoistFunctionEnvironment(this, noNewArrows, allowInsertArrow, allowInsertArrowWithRest); + fn.ensureBlock(); + setType(fn, "FunctionExpression"); + if (!noNewArrows) { + const checkBinding = thisBinding ? null : fn.scope.generateUidIdentifier("arrowCheckId"); + if (checkBinding) { + fn.parentPath.scope.push({ + id: checkBinding, + init: objectExpression([]) + }); } + fn.get("body").unshiftContainer("body", expressionStatement(callExpression(this.hub.addHelper("newArrowCheck"), [thisExpression(), checkBinding ? identifier(checkBinding.name) : identifier(thisBinding)]))); + fn.replaceWith(callExpression(memberExpression((0, _helperFunctionName.default)(this, true) || fn.node, identifier("bind")), [checkBinding ? identifier(checkBinding.name) : thisExpression()])); + return fn.get("callee.object"); } - return false; + return fn; } -function isFile(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "File") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +const getSuperCallsVisitor = (0, _visitors.merge)([{ + CallExpression(child, { + allSuperCalls + }) { + if (!child.get("callee").isSuper()) return; + allSuperCalls.push(child); } - return false; -} -function isForInStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ForInStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +}, _helperEnvironmentVisitor.default]); +function hoistFunctionEnvironment(fnPath, noNewArrows = true, allowInsertArrow = true, allowInsertArrowWithRest = true) { + let arrowParent; + let thisEnvFn = fnPath.findParent(p => { + if (p.isArrowFunctionExpression()) { + var _arrowParent; + (_arrowParent = arrowParent) != null ? _arrowParent : arrowParent = p; + return false; } - } - return false; -} -function isForStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ForStatement") { - if (typeof opts === "undefined") { - return true; + return p.isFunction() || p.isProgram() || p.isClassProperty({ + static: false + }) || p.isClassPrivateProperty({ + static: false + }); + }); + const inConstructor = thisEnvFn.isClassMethod({ + kind: "constructor" + }); + if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) { + if (arrowParent) { + thisEnvFn = arrowParent; + } else if (allowInsertArrow) { + fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), [])); + thisEnvFn = fnPath.get("callee"); + fnPath = thisEnvFn.get("body"); } else { - return (0, _shallowEqual.default)(node, opts); + throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property"); } } - return false; -} -function isFunctionDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "FunctionDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const { + thisPaths, + argumentsPaths, + newTargetPaths, + superProps, + superCalls + } = getScopeInformation(fnPath); + if (inConstructor && superCalls.length > 0) { + if (!allowInsertArrow) { + throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', " + "it's not possible to compile `super()` in an arrow function without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); } - } - return false; -} -function isFunctionExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "FunctionExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (!allowInsertArrowWithRest) { + throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', " + "it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); } + const allSuperCalls = []; + thisEnvFn.traverse(getSuperCallsVisitor, { + allSuperCalls + }); + const superBinding = getSuperBinding(thisEnvFn); + allSuperCalls.forEach(superCall => { + const callee = identifier(superBinding); + callee.loc = superCall.node.callee.loc; + superCall.get("callee").replaceWith(callee); + }); } - return false; -} -function isIdentifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Identifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (argumentsPaths.length > 0) { + const argumentsBinding = getBinding(thisEnvFn, "arguments", () => { + const args = () => identifier("arguments"); + if (thisEnvFn.scope.path.isProgram()) { + return conditionalExpression(binaryExpression("===", unaryExpression("typeof", args()), stringLiteral("undefined")), thisEnvFn.scope.buildUndefinedNode(), args()); + } else { + return args(); + } + }); + argumentsPaths.forEach(argumentsChild => { + const argsRef = identifier(argumentsBinding); + argsRef.loc = argumentsChild.node.loc; + argumentsChild.replaceWith(argsRef); + }); } - return false; -} -function isIfStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "IfStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (newTargetPaths.length > 0) { + const newTargetBinding = getBinding(thisEnvFn, "newtarget", () => metaProperty(identifier("new"), identifier("target"))); + newTargetPaths.forEach(targetChild => { + const targetRef = identifier(newTargetBinding); + targetRef.loc = targetChild.node.loc; + targetChild.replaceWith(targetRef); + }); } - return false; -} -function isLabeledStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "LabeledStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (superProps.length > 0) { + if (!allowInsertArrow) { + throw superProps[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', " + "it's not possible to compile `super.prop` in an arrow function without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); } + const flatSuperProps = superProps.reduce((acc, superProp) => acc.concat(standardizeSuperProperty(superProp)), []); + flatSuperProps.forEach(superProp => { + const key = superProp.node.computed ? "" : superProp.get("property").node.name; + const superParentPath = superProp.parentPath; + const isAssignment = superParentPath.isAssignmentExpression({ + left: superProp.node + }); + const isCall = superParentPath.isCallExpression({ + callee: superProp.node + }); + const isTaggedTemplate = superParentPath.isTaggedTemplateExpression({ + tag: superProp.node + }); + const superBinding = getSuperPropBinding(thisEnvFn, isAssignment, key); + const args = []; + if (superProp.node.computed) { + args.push(superProp.get("property").node); + } + if (isAssignment) { + const value = superParentPath.node.right; + args.push(value); + } + const call = callExpression(identifier(superBinding), args); + if (isCall) { + superParentPath.unshiftContainer("arguments", thisExpression()); + superProp.replaceWith(memberExpression(call, identifier("call"))); + thisPaths.push(superParentPath.get("arguments.0")); + } else if (isAssignment) { + superParentPath.replaceWith(call); + } else if (isTaggedTemplate) { + superProp.replaceWith(callExpression(memberExpression(call, identifier("bind"), false), [thisExpression()])); + thisPaths.push(superProp.get("arguments.0")); + } else { + superProp.replaceWith(call); + } + }); } - return false; -} -function isStringLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "StringLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + let thisBinding; + if (thisPaths.length > 0 || !noNewArrows) { + thisBinding = getThisBinding(thisEnvFn, inConstructor); + if (noNewArrows || inConstructor && hasSuperClass(thisEnvFn)) { + thisPaths.forEach(thisChild => { + const thisRef = thisChild.isJSX() ? jsxIdentifier(thisBinding) : identifier(thisBinding); + thisRef.loc = thisChild.node.loc; + thisChild.replaceWith(thisRef); + }); + if (!noNewArrows) thisBinding = null; } } - return false; + return { + thisBinding, + fnPath + }; } -function isNumericLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NumericLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isLogicalOp(op) { + return LOGICAL_OPERATORS.includes(op); } -function isNullLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NullLiteral") { - if (typeof opts === "undefined") { - return true; +function standardizeSuperProperty(superProp) { + if (superProp.parentPath.isAssignmentExpression() && superProp.parentPath.node.operator !== "=") { + const assignmentPath = superProp.parentPath; + const op = assignmentPath.node.operator.slice(0, -1); + const value = assignmentPath.node.right; + const isLogicalAssignment = isLogicalOp(op); + if (superProp.node.computed) { + const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); + const object = superProp.node.object; + const property = superProp.node.property; + assignmentPath.get("left").replaceWith(memberExpression(object, assignmentExpression("=", tmp, property), true)); + assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(tmp.name), true), value)); } else { - return (0, _shallowEqual.default)(node, opts); + const object = superProp.node.object; + const property = superProp.node.property; + assignmentPath.get("left").replaceWith(memberExpression(object, property)); + assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(property.name)), value)); } - } - return false; -} -function isBooleanLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BooleanLiteral") { - if (typeof opts === "undefined") { - return true; + if (isLogicalAssignment) { + assignmentPath.replaceWith(logicalExpression(op, assignmentPath.node.left, assignmentPath.node.right)); } else { - return (0, _shallowEqual.default)(node, opts); + assignmentPath.node.operator = "="; } - } - return false; -} -function isRegExpLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "RegExpLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + return [assignmentPath.get("left"), assignmentPath.get("right").get("left")]; + } else if (superProp.parentPath.isUpdateExpression()) { + const updateExpr = superProp.parentPath; + const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); + const computedKey = superProp.node.computed ? superProp.scope.generateDeclaredUidIdentifier("prop") : null; + const parts = [assignmentExpression("=", tmp, memberExpression(superProp.node.object, computedKey ? assignmentExpression("=", computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)), assignmentExpression("=", memberExpression(superProp.node.object, computedKey ? identifier(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression(superProp.parentPath.node.operator[0], identifier(tmp.name), numericLiteral(1)))]; + if (!superProp.parentPath.node.prefix) { + parts.push(identifier(tmp.name)); } + updateExpr.replaceWith(sequenceExpression(parts)); + const left = updateExpr.get("expressions.0.right"); + const right = updateExpr.get("expressions.1.left"); + return [left, right]; } - return false; -} -function isLogicalExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "LogicalExpression") { - if (typeof opts === "undefined") { - return true; + return [superProp]; + function rightExpression(op, left, right) { + if (op === "=") { + return assignmentExpression("=", left, right); } else { - return (0, _shallowEqual.default)(node, opts); + return binaryExpression(op, left, right); } } - return false; } -function isMemberExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "MemberExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function hasSuperClass(thisEnvFn) { + return thisEnvFn.isClassMethod() && !!thisEnvFn.parentPath.parentPath.node.superClass; } -function isNewExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NewExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +const assignSuperThisVisitor = (0, _visitors.merge)([{ + CallExpression(child, { + supers, + thisBinding + }) { + if (!child.get("callee").isSuper()) return; + if (supers.has(child.node)) return; + supers.add(child.node); + child.replaceWithMultiple([child.node, assignmentExpression("=", identifier(thisBinding), identifier("this"))]); } - return false; +}, _helperEnvironmentVisitor.default]); +function getThisBinding(thisEnvFn, inConstructor) { + return getBinding(thisEnvFn, "this", thisBinding => { + if (!inConstructor || !hasSuperClass(thisEnvFn)) return thisExpression(); + thisEnvFn.traverse(assignSuperThisVisitor, { + supers: new WeakSet(), + thisBinding + }); + }); } -function isProgram(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Program") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getSuperBinding(thisEnvFn) { + return getBinding(thisEnvFn, "supercall", () => { + const argsBinding = thisEnvFn.scope.generateUidIdentifier("args"); + return arrowFunctionExpression([restElement(argsBinding)], callExpression(_super(), [spreadElement(identifier(argsBinding.name))])); + }); } -function isObjectExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectExpression") { - if (typeof opts === "undefined") { - return true; +function getSuperPropBinding(thisEnvFn, isAssignment, propName) { + const op = isAssignment ? "set" : "get"; + return getBinding(thisEnvFn, `superprop_${op}:${propName || ""}`, () => { + const argsList = []; + let fnBody; + if (propName) { + fnBody = memberExpression(_super(), identifier(propName)); } else { - return (0, _shallowEqual.default)(node, opts); + const method = thisEnvFn.scope.generateUidIdentifier("prop"); + argsList.unshift(method); + fnBody = memberExpression(_super(), identifier(method.name), true); } - } - return false; -} -function isObjectMethod(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectMethod") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (isAssignment) { + const valueIdent = thisEnvFn.scope.generateUidIdentifier("value"); + argsList.push(valueIdent); + fnBody = assignmentExpression("=", fnBody, identifier(valueIdent.name)); } - } - return false; + return arrowFunctionExpression(argsList, fnBody); + }); } -function isObjectProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function getBinding(thisEnvFn, key, init) { + const cacheKey = "binding:" + key; + let data = thisEnvFn.getData(cacheKey); + if (!data) { + const id = thisEnvFn.scope.generateUidIdentifier(key); + data = id.name; + thisEnvFn.setData(cacheKey, data); + thisEnvFn.scope.push({ + id: id, + init: init(data) + }); } - return false; + return data; } -function isRestElement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "RestElement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +const getScopeInformationVisitor = (0, _visitors.merge)([{ + ThisExpression(child, { + thisPaths + }) { + thisPaths.push(child); + }, + JSXIdentifier(child, { + thisPaths + }) { + if (child.node.name !== "this") return; + if (!child.parentPath.isJSXMemberExpression({ + object: child.node + }) && !child.parentPath.isJSXOpeningElement({ + name: child.node + })) { + return; } + thisPaths.push(child); + }, + CallExpression(child, { + superCalls + }) { + if (child.get("callee").isSuper()) superCalls.push(child); + }, + MemberExpression(child, { + superProps + }) { + if (child.get("object").isSuper()) superProps.push(child); + }, + Identifier(child, { + argumentsPaths + }) { + if (!child.isReferencedIdentifier({ + name: "arguments" + })) return; + let curr = child.scope; + do { + if (curr.hasOwnBinding("arguments")) { + curr.rename("arguments"); + return; + } + if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) { + break; + } + } while (curr = curr.parent); + argumentsPaths.push(child); + }, + MetaProperty(child, { + newTargetPaths + }) { + if (!child.get("meta").isIdentifier({ + name: "new" + })) return; + if (!child.get("property").isIdentifier({ + name: "target" + })) return; + newTargetPaths.push(child); } - return false; +}, _helperEnvironmentVisitor.default]); +function getScopeInformation(fnPath) { + const thisPaths = []; + const argumentsPaths = []; + const newTargetPaths = []; + const superProps = []; + const superCalls = []; + fnPath.traverse(getScopeInformationVisitor, { + thisPaths, + argumentsPaths, + newTargetPaths, + superProps, + superCalls + }); + return { + thisPaths, + argumentsPaths, + newTargetPaths, + superProps, + superCalls + }; } -function isReturnStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ReturnStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; + +//# sourceMappingURL=conversion.js.map + + +/***/ }), + +/***/ 39725: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.evaluate = evaluate; +exports.evaluateTruthy = evaluateTruthy; +const VALID_OBJECT_CALLEES = ["Number", "String", "Math"]; +const VALID_IDENTIFIER_CALLEES = ["isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", null, null]; +const INVALID_METHODS = ["random"]; +function isValidObjectCallee(val) { + return VALID_OBJECT_CALLEES.includes(val); } -function isSequenceExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "SequenceExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isValidIdentifierCallee(val) { + return VALID_IDENTIFIER_CALLEES.includes(val); } -function isParenthesizedExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ParenthesizedExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isInvalidMethod(val) { + return INVALID_METHODS.includes(val); } -function isSwitchCase(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "SwitchCase") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function evaluateTruthy() { + const res = this.evaluate(); + if (res.confident) return !!res.value; } -function isSwitchStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "SwitchStatement") { - if (typeof opts === "undefined") { - return true; +function deopt(path, state) { + if (!state.confident) return; + state.deoptPath = path; + state.confident = false; +} +const Globals = new Map([["undefined", undefined], ["Infinity", Infinity], ["NaN", NaN]]); +function evaluateCached(path, state) { + const { + node + } = path; + const { + seen + } = state; + if (seen.has(node)) { + const existing = seen.get(node); + if (existing.resolved) { + return existing.value; } else { - return (0, _shallowEqual.default)(node, opts); + deopt(path, state); + return; + } + } else { + const item = { + resolved: false + }; + seen.set(node, item); + const val = _evaluate(path, state); + if (state.confident) { + item.resolved = true; + item.value = val; } + return val; } - return false; } -function isThisExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ThisExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _evaluate(path, state) { + if (!state.confident) return; + if (path.isSequenceExpression()) { + const exprs = path.get("expressions"); + return evaluateCached(exprs[exprs.length - 1], state); } - return false; -} -function isThrowStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ThrowStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (path.isStringLiteral() || path.isNumericLiteral() || path.isBooleanLiteral()) { + return path.node.value; } - return false; -} -function isTryStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TryStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (path.isNullLiteral()) { + return null; } - return false; -} -function isUnaryExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "UnaryExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (path.isTemplateLiteral()) { + return evaluateQuasis(path, path.node.quasis, state); } - return false; -} -function isUpdateExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "UpdateExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isTaggedTemplateExpression() && path.get("tag").isMemberExpression()) { + const object = path.get("tag.object"); + const { + node: { + name + } + } = object; + const property = path.get("tag.property"); + if (object.isIdentifier() && name === "String" && !path.scope.getBinding(name) && property.isIdentifier() && property.node.name === "raw") { + return evaluateQuasis(path, path.node.quasi.quasis, state, true); } } - return false; -} -function isVariableDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "VariableDeclaration") { - if (typeof opts === "undefined") { - return true; + if (path.isConditionalExpression()) { + const testResult = evaluateCached(path.get("test"), state); + if (!state.confident) return; + if (testResult) { + return evaluateCached(path.get("consequent"), state); } else { - return (0, _shallowEqual.default)(node, opts); + return evaluateCached(path.get("alternate"), state); } } - return false; -} -function isVariableDeclarator(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "VariableDeclarator") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (path.isExpressionWrapper()) { + return evaluateCached(path.get("expression"), state); } - return false; -} -function isWhileStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "WhileStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isMemberExpression() && !path.parentPath.isCallExpression({ + callee: path.node + })) { + const property = path.get("property"); + const object = path.get("object"); + if (object.isLiteral()) { + const value = object.node.value; + const type = typeof value; + let key = null; + if (path.node.computed) { + key = evaluateCached(property, state); + if (!state.confident) return; + } else if (property.isIdentifier()) { + key = property.node.name; + } + if ((type === "number" || type === "string") && key != null && (typeof key === "number" || typeof key === "string")) { + return value[key]; + } } } - return false; -} -function isWithStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "WithStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isReferencedIdentifier()) { + const binding = path.scope.getBinding(path.node.name); + if (binding) { + if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end) { + deopt(binding.path, state); + return; + } + if (binding.hasValue) { + return binding.value; + } } - } - return false; -} -function isAssignmentPattern(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "AssignmentPattern") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const name = path.node.name; + if (Globals.has(name)) { + if (!binding) { + return Globals.get(name); + } + deopt(binding.path, state); + return; } - } - return false; -} -function isArrayPattern(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ArrayPattern") { - if (typeof opts === "undefined") { - return true; + const resolved = path.resolve(); + if (resolved === path) { + deopt(path, state); + return; } else { - return (0, _shallowEqual.default)(node, opts); + return evaluateCached(resolved, state); } } - return false; -} -function isArrowFunctionExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ArrowFunctionExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isUnaryExpression({ + prefix: true + })) { + if (path.node.operator === "void") { + return undefined; } - } - return false; -} -function isClassBody(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassBody") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const argument = path.get("argument"); + if (path.node.operator === "typeof" && (argument.isFunction() || argument.isClass())) { + return "function"; } - } - return false; -} -function isClassExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const arg = evaluateCached(argument, state); + if (!state.confident) return; + switch (path.node.operator) { + case "!": + return !arg; + case "+": + return +arg; + case "-": + return -arg; + case "~": + return ~arg; + case "typeof": + return typeof arg; } } - return false; -} -function isClassDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isArrayExpression()) { + const arr = []; + const elems = path.get("elements"); + for (const elem of elems) { + const elemValue = elem.evaluate(); + if (elemValue.confident) { + arr.push(elemValue.value); + } else { + deopt(elemValue.deopt, state); + return; + } } + return arr; } - return false; -} -function isExportAllDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExportAllDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isObjectExpression()) { + const obj = {}; + const props = path.get("properties"); + for (const prop of props) { + if (prop.isObjectMethod() || prop.isSpreadElement()) { + deopt(prop, state); + return; + } + const keyPath = prop.get("key"); + let key; + if (prop.node.computed) { + key = keyPath.evaluate(); + if (!key.confident) { + deopt(key.deopt, state); + return; + } + key = key.value; + } else if (keyPath.isIdentifier()) { + key = keyPath.node.name; + } else { + key = keyPath.node.value; + } + const valuePath = prop.get("value"); + let value = valuePath.evaluate(); + if (!value.confident) { + deopt(value.deopt, state); + return; + } + value = value.value; + obj[key] = value; } + return obj; } - return false; -} -function isExportDefaultDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExportDefaultDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isLogicalExpression()) { + const wasConfident = state.confident; + const left = evaluateCached(path.get("left"), state); + const leftConfident = state.confident; + state.confident = wasConfident; + const right = evaluateCached(path.get("right"), state); + const rightConfident = state.confident; + switch (path.node.operator) { + case "||": + state.confident = leftConfident && (!!left || rightConfident); + if (!state.confident) return; + return left || right; + case "&&": + state.confident = leftConfident && (!left || rightConfident); + if (!state.confident) return; + return left && right; + case "??": + state.confident = leftConfident && (left != null || rightConfident); + if (!state.confident) return; + return left != null ? left : right; } } - return false; -} -function isExportNamedDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExportNamedDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isBinaryExpression()) { + const left = evaluateCached(path.get("left"), state); + if (!state.confident) return; + const right = evaluateCached(path.get("right"), state); + if (!state.confident) return; + switch (path.node.operator) { + case "-": + return left - right; + case "+": + return left + right; + case "/": + return left / right; + case "*": + return left * right; + case "%": + return left % right; + case "**": + return Math.pow(left, right); + case "<": + return left < right; + case ">": + return left > right; + case "<=": + return left <= right; + case ">=": + return left >= right; + case "==": + return left == right; + case "!=": + return left != right; + case "===": + return left === right; + case "!==": + return left !== right; + case "|": + return left | right; + case "&": + return left & right; + case "^": + return left ^ right; + case "<<": + return left << right; + case ">>": + return left >> right; + case ">>>": + return left >>> right; } } - return false; -} -function isExportSpecifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExportSpecifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (path.isCallExpression()) { + const callee = path.get("callee"); + let context; + let func; + if (callee.isIdentifier() && !path.scope.getBinding(callee.node.name) && (isValidObjectCallee(callee.node.name) || isValidIdentifierCallee(callee.node.name))) { + func = global[callee.node.name]; + } + if (callee.isMemberExpression()) { + const object = callee.get("object"); + const property = callee.get("property"); + if (object.isIdentifier() && property.isIdentifier() && isValidObjectCallee(object.node.name) && !isInvalidMethod(property.node.name)) { + context = global[object.node.name]; + const key = property.node.name; + if (Object.hasOwnProperty.call(context, key)) { + func = context[key]; + } + } + if (object.isLiteral() && property.isIdentifier()) { + const type = typeof object.node.value; + if (type === "string" || type === "number") { + context = object.node.value; + func = context[property.node.name]; + } + } + } + if (func) { + const args = path.get("arguments").map(arg => evaluateCached(arg, state)); + if (!state.confident) return; + return func.apply(context, args); } } - return false; + deopt(path, state); } -function isForOfStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ForOfStatement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function evaluateQuasis(path, quasis, state, raw = false) { + let str = ""; + let i = 0; + const exprs = path.isTemplateLiteral() ? path.get("expressions") : path.get("quasi.expressions"); + for (const elem of quasis) { + if (!state.confident) break; + str += raw ? elem.value.raw : elem.value.cooked; + const expr = exprs[i++]; + if (expr) str += String(evaluateCached(expr, state)); } - return false; + if (!state.confident) return; + return str; } -function isImportDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ImportDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function evaluate() { + const state = { + confident: true, + deoptPath: null, + seen: new Map() + }; + let value = evaluateCached(this, state); + if (!state.confident) value = undefined; + return { + confident: state.confident, + deopt: state.deoptPath, + value: value + }; +} + +//# sourceMappingURL=evaluation.js.map + + +/***/ }), + +/***/ 37185: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports._getKey = _getKey; +exports._getPattern = _getPattern; +exports.get = get; +exports.getAllNextSiblings = getAllNextSiblings; +exports.getAllPrevSiblings = getAllPrevSiblings; +exports.getBindingIdentifierPaths = getBindingIdentifierPaths; +exports.getBindingIdentifiers = getBindingIdentifiers; +exports.getCompletionRecords = getCompletionRecords; +exports.getNextSibling = getNextSibling; +exports.getOpposite = getOpposite; +exports.getOuterBindingIdentifierPaths = getOuterBindingIdentifierPaths; +exports.getOuterBindingIdentifiers = getOuterBindingIdentifiers; +exports.getPrevSibling = getPrevSibling; +exports.getSibling = getSibling; +var _index = __nccwpck_require__(87093); +var _t = __nccwpck_require__(68948); +const { + getBindingIdentifiers: _getBindingIdentifiers, + getOuterBindingIdentifiers: _getOuterBindingIdentifiers, + isDeclaration, + numericLiteral, + unaryExpression +} = _t; +const NORMAL_COMPLETION = 0; +const BREAK_COMPLETION = 1; +function NormalCompletion(path) { + return { + type: NORMAL_COMPLETION, + path + }; +} +function BreakCompletion(path) { + return { + type: BREAK_COMPLETION, + path + }; +} +function getOpposite() { + if (this.key === "left") { + return this.getSibling("right"); + } else if (this.key === "right") { + return this.getSibling("left"); } - return false; + return null; } -function isImportDefaultSpecifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ImportDefaultSpecifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function addCompletionRecords(path, records, context) { + if (path) { + records.push(..._getCompletionRecords(path, context)); } - return false; + return records; } -function isImportNamespaceSpecifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ImportNamespaceSpecifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function completionRecordForSwitch(cases, records, context) { + let lastNormalCompletions = []; + for (let i = 0; i < cases.length; i++) { + const casePath = cases[i]; + const caseCompletions = _getCompletionRecords(casePath, context); + const normalCompletions = []; + const breakCompletions = []; + for (const c of caseCompletions) { + if (c.type === NORMAL_COMPLETION) { + normalCompletions.push(c); + } + if (c.type === BREAK_COMPLETION) { + breakCompletions.push(c); + } + } + if (normalCompletions.length) { + lastNormalCompletions = normalCompletions; } + records.push(...breakCompletions); } - return false; + records.push(...lastNormalCompletions); + return records; } -function isImportSpecifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ImportSpecifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function normalCompletionToBreak(completions) { + completions.forEach(c => { + c.type = BREAK_COMPLETION; + }); +} +function replaceBreakStatementInBreakCompletion(completions, reachable) { + completions.forEach(c => { + if (c.path.isBreakStatement({ + label: null + })) { + if (reachable) { + c.path.replaceWith(unaryExpression("void", numericLiteral(0))); + } else { + c.path.remove(); + } } - } - return false; + }); } -function isMetaProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "MetaProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function getStatementListCompletion(paths, context) { + const completions = []; + if (context.canHaveBreak) { + let lastNormalCompletions = []; + for (let i = 0; i < paths.length; i++) { + const path = paths[i]; + const newContext = Object.assign({}, context, { + inCaseClause: false + }); + if (path.isBlockStatement() && (context.inCaseClause || context.shouldPopulateBreak)) { + newContext.shouldPopulateBreak = true; + } else { + newContext.shouldPopulateBreak = false; + } + const statementCompletions = _getCompletionRecords(path, newContext); + if (statementCompletions.length > 0 && statementCompletions.every(c => c.type === BREAK_COMPLETION)) { + if (lastNormalCompletions.length > 0 && statementCompletions.every(c => c.path.isBreakStatement({ + label: null + }))) { + normalCompletionToBreak(lastNormalCompletions); + completions.push(...lastNormalCompletions); + if (lastNormalCompletions.some(c => c.path.isDeclaration())) { + completions.push(...statementCompletions); + replaceBreakStatementInBreakCompletion(statementCompletions, true); + } + replaceBreakStatementInBreakCompletion(statementCompletions, false); + } else { + completions.push(...statementCompletions); + if (!context.shouldPopulateBreak) { + replaceBreakStatementInBreakCompletion(statementCompletions, true); + } + } + break; + } + if (i === paths.length - 1) { + completions.push(...statementCompletions); + } else { + lastNormalCompletions = []; + for (let i = 0; i < statementCompletions.length; i++) { + const c = statementCompletions[i]; + if (c.type === BREAK_COMPLETION) { + completions.push(c); + } + if (c.type === NORMAL_COMPLETION) { + lastNormalCompletions.push(c); + } + } + } } - } - return false; -} -function isClassMethod(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassMethod") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + } else if (paths.length) { + for (let i = paths.length - 1; i >= 0; i--) { + const pathCompletions = _getCompletionRecords(paths[i], context); + if (pathCompletions.length > 1 || pathCompletions.length === 1 && !pathCompletions[0].path.isVariableDeclaration()) { + completions.push(...pathCompletions); + break; + } } } - return false; + return completions; } -function isObjectPattern(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectPattern") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _getCompletionRecords(path, context) { + let records = []; + if (path.isIfStatement()) { + records = addCompletionRecords(path.get("consequent"), records, context); + records = addCompletionRecords(path.get("alternate"), records, context); + } else if (path.isDoExpression() || path.isFor() || path.isWhile() || path.isLabeledStatement()) { + return addCompletionRecords(path.get("body"), records, context); + } else if (path.isProgram() || path.isBlockStatement()) { + return getStatementListCompletion(path.get("body"), context); + } else if (path.isFunction()) { + return _getCompletionRecords(path.get("body"), context); + } else if (path.isTryStatement()) { + records = addCompletionRecords(path.get("block"), records, context); + records = addCompletionRecords(path.get("handler"), records, context); + } else if (path.isCatchClause()) { + return addCompletionRecords(path.get("body"), records, context); + } else if (path.isSwitchStatement()) { + return completionRecordForSwitch(path.get("cases"), records, context); + } else if (path.isSwitchCase()) { + return getStatementListCompletion(path.get("consequent"), { + canHaveBreak: true, + shouldPopulateBreak: false, + inCaseClause: true + }); + } else if (path.isBreakStatement()) { + records.push(BreakCompletion(path)); + } else { + records.push(NormalCompletion(path)); } - return false; + return records; } -function isSpreadElement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "SpreadElement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getCompletionRecords() { + const records = _getCompletionRecords(this, { + canHaveBreak: false, + shouldPopulateBreak: false, + inCaseClause: false + }); + return records.map(r => r.path); } -function isSuper(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Super") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getSibling(key) { + return _index.default.get({ + parentPath: this.parentPath, + parent: this.parent, + container: this.container, + listKey: this.listKey, + key: key + }).setContext(this.context); } -function isTaggedTemplateExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TaggedTemplateExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getPrevSibling() { + return this.getSibling(this.key - 1); } -function isTemplateElement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TemplateElement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getNextSibling() { + return this.getSibling(this.key + 1); } -function isTemplateLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TemplateLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function getAllNextSiblings() { + let _key = this.key; + let sibling = this.getSibling(++_key); + const siblings = []; + while (sibling.node) { + siblings.push(sibling); + sibling = this.getSibling(++_key); } - return false; + return siblings; } -function isYieldExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "YieldExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function getAllPrevSiblings() { + let _key = this.key; + let sibling = this.getSibling(--_key); + const siblings = []; + while (sibling.node) { + siblings.push(sibling); + sibling = this.getSibling(--_key); } - return false; + return siblings; } -function isAwaitExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "AwaitExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function get(key, context = true) { + if (context === true) context = this.context; + const parts = key.split("."); + if (parts.length === 1) { + return this._getKey(key, context); + } else { + return this._getPattern(parts, context); } - return false; } -function isImport(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Import") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _getKey(key, context) { + const node = this.node; + const container = node[key]; + if (Array.isArray(container)) { + return container.map((_, i) => { + return _index.default.get({ + listKey: key, + parentPath: this, + parent: node, + container: container, + key: i + }).setContext(context); + }); + } else { + return _index.default.get({ + parentPath: this, + parent: node, + container: node, + key: key + }).setContext(context); } - return false; } -function isBigIntLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BigIntLiteral") { - if (typeof opts === "undefined") { - return true; +function _getPattern(parts, context) { + let path = this; + for (const part of parts) { + if (part === ".") { + path = path.parentPath; } else { - return (0, _shallowEqual.default)(node, opts); + if (Array.isArray(path)) { + path = path[part]; + } else { + path = path.get(part, context); + } } } - return false; + return path; } -function isExportNamespaceSpecifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExportNamespaceSpecifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getBindingIdentifiers(duplicates) { + return _getBindingIdentifiers(this.node, duplicates); } -function isOptionalMemberExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "OptionalMemberExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getOuterBindingIdentifiers(duplicates) { + return _getOuterBindingIdentifiers(this.node, duplicates); } -function isOptionalCallExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "OptionalCallExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function getBindingIdentifierPaths(duplicates = false, outerOnly = false) { + const path = this; + const search = [path]; + const ids = Object.create(null); + while (search.length) { + const id = search.shift(); + if (!id) continue; + if (!id.node) continue; + const keys = _getBindingIdentifiers.keys[id.node.type]; + if (id.isIdentifier()) { + if (duplicates) { + const _ids = ids[id.node.name] = ids[id.node.name] || []; + _ids.push(id); + } else { + ids[id.node.name] = id; + } + continue; } - } - return false; -} -function isClassProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (id.isExportDeclaration()) { + const declaration = id.get("declaration"); + if (isDeclaration(declaration)) { + search.push(declaration); + } + continue; } - } - return false; -} -function isClassAccessorProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassAccessorProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (outerOnly) { + if (id.isFunctionDeclaration()) { + search.push(id.get("id")); + continue; + } + if (id.isFunctionExpression()) { + continue; + } } - } - return false; -} -function isClassPrivateProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassPrivateProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (keys) { + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const child = id.get(key); + if (Array.isArray(child)) { + search.push(...child); + } else if (child.node) { + search.push(child); + } + } } } - return false; + return ids; } -function isClassPrivateMethod(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassPrivateMethod") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getOuterBindingIdentifierPaths(duplicates = false) { + return this.getBindingIdentifierPaths(duplicates, true); } -function isPrivateName(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "PrivateName") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + +//# sourceMappingURL=family.js.map + + +/***/ }), + +/***/ 87093: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = exports.SHOULD_STOP = exports.SHOULD_SKIP = exports.REMOVED = void 0; +var virtualTypes = __nccwpck_require__(14514); +var _debug = __nccwpck_require__(34755); +var _index = __nccwpck_require__(22382); +var _index2 = __nccwpck_require__(45461); +var _t = __nccwpck_require__(68948); +var t = _t; +var cache = __nccwpck_require__(12640); +var _generator = __nccwpck_require__(8860); +var NodePath_ancestry = __nccwpck_require__(76921); +var NodePath_inference = __nccwpck_require__(21074); +var NodePath_replacement = __nccwpck_require__(50352); +var NodePath_evaluation = __nccwpck_require__(39725); +var NodePath_conversion = __nccwpck_require__(31835); +var NodePath_introspection = __nccwpck_require__(76806); +var NodePath_context = __nccwpck_require__(54971); +var NodePath_removal = __nccwpck_require__(16926); +var NodePath_modification = __nccwpck_require__(78452); +var NodePath_family = __nccwpck_require__(37185); +var NodePath_comments = __nccwpck_require__(61692); +var NodePath_virtual_types_validator = __nccwpck_require__(21412); +const { + validate +} = _t; +const debug = _debug("babel"); +const REMOVED = exports.REMOVED = 1 << 0; +const SHOULD_STOP = exports.SHOULD_STOP = 1 << 1; +const SHOULD_SKIP = exports.SHOULD_SKIP = 1 << 2; +class NodePath { + constructor(hub, parent) { + this.contexts = []; + this.state = null; + this.opts = null; + this._traverseFlags = 0; + this.skipKeys = null; + this.parentPath = null; + this.container = null; + this.listKey = null; + this.key = null; + this.node = null; + this.type = null; + this.parent = parent; + this.hub = hub; + this.data = null; + this.context = null; + this.scope = null; } - return false; -} -function isStaticBlock(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "StaticBlock") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + static get({ + hub, + parentPath, + parent, + container, + listKey, + key + }) { + if (!hub && parentPath) { + hub = parentPath.hub; } - } - return false; -} -function isAnyTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "AnyTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (!parent) { + throw new Error("To get a node path the parent needs to exist"); } - } - return false; -} -function isArrayTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ArrayTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const targetNode = container[key]; + const paths = cache.getOrCreateCachedPaths(hub, parent); + let path = paths.get(targetNode); + if (!path) { + path = new NodePath(hub, parent); + if (targetNode) paths.set(targetNode, path); } + path.setup(parentPath, container, listKey, key); + return path; } - return false; -} -function isBooleanTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BooleanTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + getScope(scope) { + return this.isScope() ? new _index2.default(this) : scope; } - return false; -} -function isBooleanLiteralTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BooleanLiteralTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + setData(key, val) { + if (this.data == null) { + this.data = Object.create(null); } + return this.data[key] = val; } - return false; -} -function isNullLiteralTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NullLiteralTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + getData(key, def) { + if (this.data == null) { + this.data = Object.create(null); } + let val = this.data[key]; + if (val === undefined && def !== undefined) val = this.data[key] = def; + return val; } - return false; -} -function isClassImplements(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ClassImplements") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + hasNode() { + return this.node != null; } - return false; -} -function isDeclareClass(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareClass") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + buildCodeFrameError(msg, Error = SyntaxError) { + return this.hub.buildError(this.node, msg, Error); } - return false; -} -function isDeclareFunction(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareFunction") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + traverse(visitor, state) { + (0, _index.default)(this.node, visitor, this.scope, state, this); } - return false; -} -function isDeclareInterface(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareInterface") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + set(key, node) { + validate(this.node, key, node); + this.node[key] = node; } - return false; -} -function isDeclareModule(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareModule") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + getPathLocation() { + const parts = []; + let path = this; + do { + let key = path.key; + if (path.inList) key = `${path.listKey}[${key}]`; + parts.unshift(key); + } while (path = path.parentPath); + return parts.join("."); } - return false; -} -function isDeclareModuleExports(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareModuleExports") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + debug(message) { + if (!debug.enabled) return; + debug(`${this.getPathLocation()} ${this.type}: ${message}`); } - return false; -} -function isDeclareTypeAlias(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareTypeAlias") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + toString() { + return (0, _generator.default)(this.node).code; } - return false; -} -function isDeclareOpaqueType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareOpaqueType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get inList() { + return !!this.listKey; } - return false; -} -function isDeclareVariable(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareVariable") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + set inList(inList) { + if (!inList) { + this.listKey = null; } } - return false; -} -function isDeclareExportDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareExportDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get parentKey() { + return this.listKey || this.key; } - return false; -} -function isDeclareExportAllDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclareExportAllDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get shouldSkip() { + return !!(this._traverseFlags & SHOULD_SKIP); } - return false; -} -function isDeclaredPredicate(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DeclaredPredicate") { - if (typeof opts === "undefined") { - return true; + set shouldSkip(v) { + if (v) { + this._traverseFlags |= SHOULD_SKIP; } else { - return (0, _shallowEqual.default)(node, opts); + this._traverseFlags &= ~SHOULD_SKIP; } } - return false; -} -function isExistsTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExistsTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get shouldStop() { + return !!(this._traverseFlags & SHOULD_STOP); } - return false; -} -function isFunctionTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "FunctionTypeAnnotation") { - if (typeof opts === "undefined") { - return true; + set shouldStop(v) { + if (v) { + this._traverseFlags |= SHOULD_STOP; } else { - return (0, _shallowEqual.default)(node, opts); + this._traverseFlags &= ~SHOULD_STOP; } } - return false; -} -function isFunctionTypeParam(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "FunctionTypeParam") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get removed() { + return !!(this._traverseFlags & REMOVED); } - return false; -} -function isGenericTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "GenericTypeAnnotation") { - if (typeof opts === "undefined") { - return true; + set removed(v) { + if (v) { + this._traverseFlags |= REMOVED; } else { - return (0, _shallowEqual.default)(node, opts); + this._traverseFlags &= ~REMOVED; } } - return false; } -function isInferredPredicate(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "InferredPredicate") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments); +{ + NodePath.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo; } -function isInterfaceExtends(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "InterfaceExtends") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +for (const type of t.TYPES) { + const typeKey = `is${type}`; + const fn = t[typeKey]; + NodePath.prototype[typeKey] = function (opts) { + return fn(this.node, opts); + }; + NodePath.prototype[`assert${type}`] = function (opts) { + if (!fn(this.node, opts)) { + throw new TypeError(`Expected node path of type ${type}`); } - } - return false; + }; } -function isInterfaceDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "InterfaceDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +Object.assign(NodePath.prototype, NodePath_virtual_types_validator); +for (const type of Object.keys(virtualTypes)) { + if (type[0] === "_") continue; + if (!t.TYPES.includes(type)) t.TYPES.push(type); } -function isInterfaceTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "InterfaceTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +var _default = exports["default"] = NodePath; + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 21074: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports._getTypeAnnotation = _getTypeAnnotation; +exports.baseTypeStrictlyMatches = baseTypeStrictlyMatches; +exports.couldBeBaseType = couldBeBaseType; +exports.getTypeAnnotation = getTypeAnnotation; +exports.isBaseType = isBaseType; +exports.isGenericType = isGenericType; +var inferers = __nccwpck_require__(11827); +var _t = __nccwpck_require__(68948); +const { + anyTypeAnnotation, + isAnyTypeAnnotation, + isArrayTypeAnnotation, + isBooleanTypeAnnotation, + isEmptyTypeAnnotation, + isFlowBaseAnnotation, + isGenericTypeAnnotation, + isIdentifier, + isMixedTypeAnnotation, + isNumberTypeAnnotation, + isStringTypeAnnotation, + isTSArrayType, + isTSTypeAnnotation, + isTSTypeReference, + isTupleTypeAnnotation, + isTypeAnnotation, + isUnionTypeAnnotation, + isVoidTypeAnnotation, + stringTypeAnnotation, + voidTypeAnnotation +} = _t; +function getTypeAnnotation() { + let type = this.getData("typeAnnotation"); + if (type != null) { + return type; } - return false; -} -function isIntersectionTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "IntersectionTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + type = this._getTypeAnnotation() || anyTypeAnnotation(); + if (isTypeAnnotation(type) || isTSTypeAnnotation(type)) { + type = type.typeAnnotation; } - return false; + this.setData("typeAnnotation", type); + return type; } -function isMixedTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "MixedTypeAnnotation") { - if (typeof opts === "undefined") { - return true; +const typeAnnotationInferringNodes = new WeakSet(); +function _getTypeAnnotation() { + const node = this.node; + if (!node) { + if (this.key === "init" && this.parentPath.isVariableDeclarator()) { + const declar = this.parentPath.parentPath; + const declarParent = declar.parentPath; + if (declar.key === "left" && declarParent.isForInStatement()) { + return stringTypeAnnotation(); + } + if (declar.key === "left" && declarParent.isForOfStatement()) { + return anyTypeAnnotation(); + } + return voidTypeAnnotation(); } else { - return (0, _shallowEqual.default)(node, opts); + return; } } - return false; -} -function isEmptyTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EmptyTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (node.typeAnnotation) { + return node.typeAnnotation; } - return false; -} -function isNullableTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NullableTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (typeAnnotationInferringNodes.has(node)) { + return; } - return false; -} -function isNumberLiteralTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NumberLiteralTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + typeAnnotationInferringNodes.add(node); + try { + var _inferer; + let inferer = inferers[node.type]; + if (inferer) { + return inferer.call(this, node); } - } - return false; -} -function isNumberTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NumberTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + inferer = inferers[this.parentPath.type]; + if ((_inferer = inferer) != null && _inferer.validParent) { + return this.parentPath.getTypeAnnotation(); } + } finally { + typeAnnotationInferringNodes.delete(node); } - return false; } -function isObjectTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isBaseType(baseName, soft) { + return _isBaseType(baseName, this.getTypeAnnotation(), soft); } -function isObjectTypeInternalSlot(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectTypeInternalSlot") { - if (typeof opts === "undefined") { - return true; +function _isBaseType(baseName, type, soft) { + if (baseName === "string") { + return isStringTypeAnnotation(type); + } else if (baseName === "number") { + return isNumberTypeAnnotation(type); + } else if (baseName === "boolean") { + return isBooleanTypeAnnotation(type); + } else if (baseName === "any") { + return isAnyTypeAnnotation(type); + } else if (baseName === "mixed") { + return isMixedTypeAnnotation(type); + } else if (baseName === "empty") { + return isEmptyTypeAnnotation(type); + } else if (baseName === "void") { + return isVoidTypeAnnotation(type); + } else { + if (soft) { + return false; } else { - return (0, _shallowEqual.default)(node, opts); + throw new Error(`Unknown base type ${baseName}`); } } - return false; } -function isObjectTypeCallProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectTypeCallProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function couldBeBaseType(name) { + const type = this.getTypeAnnotation(); + if (isAnyTypeAnnotation(type)) return true; + if (isUnionTypeAnnotation(type)) { + for (const type2 of type.types) { + if (isAnyTypeAnnotation(type2) || _isBaseType(name, type2, true)) { + return true; + } } + return false; + } else { + return _isBaseType(name, type, true); } - return false; } -function isObjectTypeIndexer(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectTypeIndexer") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function baseTypeStrictlyMatches(rightArg) { + const left = this.getTypeAnnotation(); + const right = rightArg.getTypeAnnotation(); + if (!isAnyTypeAnnotation(left) && isFlowBaseAnnotation(left)) { + return right.type === left.type; } return false; } -function isObjectTypeProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectTypeProperty") { - if (typeof opts === "undefined") { +function isGenericType(genericName) { + const type = this.getTypeAnnotation(); + if (genericName === "Array") { + if (isTSArrayType(type) || isArrayTypeAnnotation(type) || isTupleTypeAnnotation(type)) { return true; - } else { - return (0, _shallowEqual.default)(node, opts); } } - return false; + return isGenericTypeAnnotation(type) && isIdentifier(type.id, { + name: genericName + }) || isTSTypeReference(type) && isIdentifier(type.typeName, { + name: genericName + }); } -function isObjectTypeSpreadProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ObjectTypeSpreadProperty") { - if (typeof opts === "undefined") { - return true; + +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 87611: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +var _t = __nccwpck_require__(68948); +var _util = __nccwpck_require__(91039); +const { + BOOLEAN_NUMBER_BINARY_OPERATORS, + createTypeAnnotationBasedOnTypeof, + numberTypeAnnotation, + voidTypeAnnotation +} = _t; +function _default(node) { + if (!this.isReferenced()) return; + const binding = this.scope.getBinding(node.name); + if (binding) { + if (binding.identifier.typeAnnotation) { + return binding.identifier.typeAnnotation; } else { - return (0, _shallowEqual.default)(node, opts); + return getTypeAnnotationBindingConstantViolations(binding, this, node.name); } } - return false; + if (node.name === "undefined") { + return voidTypeAnnotation(); + } else if (node.name === "NaN" || node.name === "Infinity") { + return numberTypeAnnotation(); + } else if (node.name === "arguments") {} } -function isOpaqueType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "OpaqueType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function getTypeAnnotationBindingConstantViolations(binding, path, name) { + const types = []; + const functionConstantViolations = []; + let constantViolations = getConstantViolationsBefore(binding, path, functionConstantViolations); + const testType = getConditionalAnnotation(binding, path, name); + if (testType) { + const testConstantViolations = getConstantViolationsBefore(binding, testType.ifStatement); + constantViolations = constantViolations.filter(path => testConstantViolations.indexOf(path) < 0); + types.push(testType.typeAnnotation); } - return false; -} -function isQualifiedTypeIdentifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "QualifiedTypeIdentifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (constantViolations.length) { + constantViolations.push(...functionConstantViolations); + for (const violation of constantViolations) { + types.push(violation.getTypeAnnotation()); } } - return false; -} -function isStringLiteralTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "StringLiteralTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (!types.length) { + return; } - return false; + return (0, _util.createUnionType)(types); } -function isStringTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "StringTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function getConstantViolationsBefore(binding, path, functions) { + const violations = binding.constantViolations.slice(); + violations.unshift(binding.path); + return violations.filter(violation => { + violation = violation.resolve(); + const status = violation._guessExecutionStatusRelativeTo(path); + if (functions && status === "unknown") functions.push(violation); + return status === "before"; + }); +} +function inferAnnotationFromBinaryExpression(name, path) { + const operator = path.node.operator; + const right = path.get("right").resolve(); + const left = path.get("left").resolve(); + let target; + if (left.isIdentifier({ + name + })) { + target = right; + } else if (right.isIdentifier({ + name + })) { + target = left; + } + if (target) { + if (operator === "===") { + return target.getTypeAnnotation(); + } + if (BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { + return numberTypeAnnotation(); } + return; } - return false; + if (operator !== "===" && operator !== "==") return; + let typeofPath; + let typePath; + if (left.isUnaryExpression({ + operator: "typeof" + })) { + typeofPath = left; + typePath = right; + } else if (right.isUnaryExpression({ + operator: "typeof" + })) { + typeofPath = right; + typePath = left; + } + if (!typeofPath) return; + if (!typeofPath.get("argument").isIdentifier({ + name + })) return; + typePath = typePath.resolve(); + if (!typePath.isLiteral()) return; + const typeValue = typePath.node.value; + if (typeof typeValue !== "string") return; + return createTypeAnnotationBasedOnTypeof(typeValue); } -function isSymbolTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "SymbolTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function getParentConditionalPath(binding, path, name) { + let parentPath; + while (parentPath = path.parentPath) { + if (parentPath.isIfStatement() || parentPath.isConditionalExpression()) { + if (path.key === "test") { + return; + } + return parentPath; + } + if (parentPath.isFunction()) { + if (parentPath.parentPath.scope.getBinding(name) !== binding) return; } + path = parentPath; } - return false; } -function isThisTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ThisTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function getConditionalAnnotation(binding, path, name) { + const ifStatement = getParentConditionalPath(binding, path, name); + if (!ifStatement) return; + const test = ifStatement.get("test"); + const paths = [test]; + const types = []; + for (let i = 0; i < paths.length; i++) { + const path = paths[i]; + if (path.isLogicalExpression()) { + if (path.node.operator === "&&") { + paths.push(path.get("left")); + paths.push(path.get("right")); + } + } else if (path.isBinaryExpression()) { + const type = inferAnnotationFromBinaryExpression(name, path); + if (type) types.push(type); } } - return false; + if (types.length) { + return { + typeAnnotation: (0, _util.createUnionType)(types), + ifStatement + }; + } + return getConditionalAnnotation(binding, ifStatement, name); } -function isTupleTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TupleTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + +//# sourceMappingURL=inferer-reference.js.map + + +/***/ }), + +/***/ 11827: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ArrayExpression = ArrayExpression; +exports.AssignmentExpression = AssignmentExpression; +exports.BinaryExpression = BinaryExpression; +exports.BooleanLiteral = BooleanLiteral; +exports.CallExpression = CallExpression; +exports.ConditionalExpression = ConditionalExpression; +exports.ClassDeclaration = exports.ClassExpression = exports.FunctionDeclaration = exports.ArrowFunctionExpression = exports.FunctionExpression = Func; +Object.defineProperty(exports, "Identifier", ({ + enumerable: true, + get: function () { + return _infererReference.default; } - return false; +})); +exports.LogicalExpression = LogicalExpression; +exports.NewExpression = NewExpression; +exports.NullLiteral = NullLiteral; +exports.NumericLiteral = NumericLiteral; +exports.ObjectExpression = ObjectExpression; +exports.ParenthesizedExpression = ParenthesizedExpression; +exports.RegExpLiteral = RegExpLiteral; +exports.RestElement = RestElement; +exports.SequenceExpression = SequenceExpression; +exports.StringLiteral = StringLiteral; +exports.TSAsExpression = TSAsExpression; +exports.TSNonNullExpression = TSNonNullExpression; +exports.TaggedTemplateExpression = TaggedTemplateExpression; +exports.TemplateLiteral = TemplateLiteral; +exports.TypeCastExpression = TypeCastExpression; +exports.UnaryExpression = UnaryExpression; +exports.UpdateExpression = UpdateExpression; +exports.VariableDeclarator = VariableDeclarator; +var _t = __nccwpck_require__(68948); +var _infererReference = __nccwpck_require__(87611); +var _util = __nccwpck_require__(91039); +const { + BOOLEAN_BINARY_OPERATORS, + BOOLEAN_UNARY_OPERATORS, + NUMBER_BINARY_OPERATORS, + NUMBER_UNARY_OPERATORS, + STRING_UNARY_OPERATORS, + anyTypeAnnotation, + arrayTypeAnnotation, + booleanTypeAnnotation, + buildMatchMemberExpression, + genericTypeAnnotation, + identifier, + nullLiteralTypeAnnotation, + numberTypeAnnotation, + stringTypeAnnotation, + tupleTypeAnnotation, + unionTypeAnnotation, + voidTypeAnnotation, + isIdentifier +} = _t; +function VariableDeclarator() { + if (!this.get("id").isIdentifier()) return; + return this.get("init").getTypeAnnotation(); } -function isTypeofTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TypeofTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function TypeCastExpression(node) { + return node.typeAnnotation; } -function isTypeAlias(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TypeAlias") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +TypeCastExpression.validParent = true; +function TSAsExpression(node) { + return node.typeAnnotation; } -function isTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +TSAsExpression.validParent = true; +function TSNonNullExpression() { + return this.get("expression").getTypeAnnotation(); } -function isTypeCastExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TypeCastExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function NewExpression(node) { + if (node.callee.type === "Identifier") { + return genericTypeAnnotation(node.callee); } - return false; } -function isTypeParameter(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TypeParameter") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function TemplateLiteral() { + return stringTypeAnnotation(); } -function isTypeParameterDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TypeParameterDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function UnaryExpression(node) { + const operator = node.operator; + if (operator === "void") { + return voidTypeAnnotation(); + } else if (NUMBER_UNARY_OPERATORS.indexOf(operator) >= 0) { + return numberTypeAnnotation(); + } else if (STRING_UNARY_OPERATORS.indexOf(operator) >= 0) { + return stringTypeAnnotation(); + } else if (BOOLEAN_UNARY_OPERATORS.indexOf(operator) >= 0) { + return booleanTypeAnnotation(); } - return false; } -function isTypeParameterInstantiation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TypeParameterInstantiation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function BinaryExpression(node) { + const operator = node.operator; + if (NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { + return numberTypeAnnotation(); + } else if (BOOLEAN_BINARY_OPERATORS.indexOf(operator) >= 0) { + return booleanTypeAnnotation(); + } else if (operator === "+") { + const right = this.get("right"); + const left = this.get("left"); + if (left.isBaseType("number") && right.isBaseType("number")) { + return numberTypeAnnotation(); + } else if (left.isBaseType("string") || right.isBaseType("string")) { + return stringTypeAnnotation(); } + return unionTypeAnnotation([stringTypeAnnotation(), numberTypeAnnotation()]); } - return false; } -function isUnionTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "UnionTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function LogicalExpression() { + const argumentTypes = [this.get("left").getTypeAnnotation(), this.get("right").getTypeAnnotation()]; + return (0, _util.createUnionType)(argumentTypes); } -function isVariance(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Variance") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function ConditionalExpression() { + const argumentTypes = [this.get("consequent").getTypeAnnotation(), this.get("alternate").getTypeAnnotation()]; + return (0, _util.createUnionType)(argumentTypes); } -function isVoidTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "VoidTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function SequenceExpression() { + return this.get("expressions").pop().getTypeAnnotation(); } -function isEnumDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function ParenthesizedExpression() { + return this.get("expression").getTypeAnnotation(); } -function isEnumBooleanBody(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumBooleanBody") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function AssignmentExpression() { + return this.get("right").getTypeAnnotation(); } -function isEnumNumberBody(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumNumberBody") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function UpdateExpression(node) { + const operator = node.operator; + if (operator === "++" || operator === "--") { + return numberTypeAnnotation(); } - return false; } -function isEnumStringBody(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumStringBody") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function StringLiteral() { + return stringTypeAnnotation(); } -function isEnumSymbolBody(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumSymbolBody") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function NumericLiteral() { + return numberTypeAnnotation(); } -function isEnumBooleanMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumBooleanMember") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function BooleanLiteral() { + return booleanTypeAnnotation(); } -function isEnumNumberMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumNumberMember") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function NullLiteral() { + return nullLiteralTypeAnnotation(); } -function isEnumStringMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumStringMember") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function RegExpLiteral() { + return genericTypeAnnotation(identifier("RegExp")); } -function isEnumDefaultedMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "EnumDefaultedMember") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function ObjectExpression() { + return genericTypeAnnotation(identifier("Object")); } -function isIndexedAccessType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "IndexedAccessType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function ArrayExpression() { + return genericTypeAnnotation(identifier("Array")); } -function isOptionalIndexedAccessType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "OptionalIndexedAccessType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function RestElement() { + return ArrayExpression(); } -function isJSXAttribute(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXAttribute") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +RestElement.validParent = true; +function Func() { + return genericTypeAnnotation(identifier("Function")); } -function isJSXClosingElement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXClosingElement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +const isArrayFrom = buildMatchMemberExpression("Array.from"); +const isObjectKeys = buildMatchMemberExpression("Object.keys"); +const isObjectValues = buildMatchMemberExpression("Object.values"); +const isObjectEntries = buildMatchMemberExpression("Object.entries"); +function CallExpression() { + const { + callee + } = this.node; + if (isObjectKeys(callee)) { + return arrayTypeAnnotation(stringTypeAnnotation()); + } else if (isArrayFrom(callee) || isObjectValues(callee) || isIdentifier(callee, { + name: "Array" + })) { + return arrayTypeAnnotation(anyTypeAnnotation()); + } else if (isObjectEntries(callee)) { + return arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(), anyTypeAnnotation()])); } - return false; + return resolveCall(this.get("callee")); } -function isJSXElement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXElement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function TaggedTemplateExpression() { + return resolveCall(this.get("tag")); } -function isJSXEmptyExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXEmptyExpression") { - if (typeof opts === "undefined") { - return true; +function resolveCall(callee) { + callee = callee.resolve(); + if (callee.isFunction()) { + const { + node + } = callee; + if (node.async) { + if (node.generator) { + return genericTypeAnnotation(identifier("AsyncIterator")); + } else { + return genericTypeAnnotation(identifier("Promise")); + } } else { - return (0, _shallowEqual.default)(node, opts); + if (node.generator) { + return genericTypeAnnotation(identifier("Iterator")); + } else if (callee.node.returnType) { + return callee.node.returnType; + } else {} } } - return false; } -function isJSXExpressionContainer(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXExpressionContainer") { - if (typeof opts === "undefined") { - return true; + +//# sourceMappingURL=inferers.js.map + + +/***/ }), + +/***/ 91039: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.createUnionType = createUnionType; +var _t = __nccwpck_require__(68948); +const { + createFlowUnionType, + createTSUnionType, + createUnionTypeAnnotation, + isFlowType, + isTSType +} = _t; +function createUnionType(types) { + { + if (isFlowType(types[0])) { + if (createFlowUnionType) { + return createFlowUnionType(types); + } + return createUnionTypeAnnotation(types); } else { - return (0, _shallowEqual.default)(node, opts); + if (createTSUnionType) { + return createTSUnionType(types); + } } } - return false; } -function isJSXSpreadChild(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXSpreadChild") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; + +//# sourceMappingURL=util.js.map + + +/***/ }), + +/***/ 76806: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports._guessExecutionStatusRelativeTo = _guessExecutionStatusRelativeTo; +exports._resolve = _resolve; +exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression; +exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement; +exports.equals = equals; +exports.getSource = getSource; +exports.has = has; +exports.is = void 0; +exports.isCompletionRecord = isCompletionRecord; +exports.isConstantExpression = isConstantExpression; +exports.isInStrictMode = isInStrictMode; +exports.isNodeType = isNodeType; +exports.isStatementOrBlock = isStatementOrBlock; +exports.isStatic = isStatic; +exports.isnt = isnt; +exports.matchesPattern = matchesPattern; +exports.referencesImport = referencesImport; +exports.resolve = resolve; +exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore; +var _t = __nccwpck_require__(68948); +const { + STATEMENT_OR_BLOCK_KEYS, + VISITOR_KEYS, + isBlockStatement, + isExpression, + isIdentifier, + isLiteral, + isStringLiteral, + isType, + matchesPattern: _matchesPattern +} = _t; +function matchesPattern(pattern, allowPartial) { + return _matchesPattern(this.node, pattern, allowPartial); } -function isJSXIdentifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXIdentifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function has(key) { + const val = this.node && this.node[key]; + if (val && Array.isArray(val)) { + return !!val.length; + } else { + return !!val; } - return false; } -function isJSXMemberExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXMemberExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isStatic() { + return this.scope.isStatic(this.node); } -function isJSXNamespacedName(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXNamespacedName") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +const is = exports.is = has; +function isnt(key) { + return !this.has(key); } -function isJSXOpeningElement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXOpeningElement") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function equals(key, value) { + return this.node[key] === value; } -function isJSXSpreadAttribute(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXSpreadAttribute") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isNodeType(type) { + return isType(this.type, type); } -function isJSXText(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXText") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function canHaveVariableDeclarationOrExpression() { + return (this.key === "init" || this.key === "left") && this.parentPath.isFor(); } -function isJSXFragment(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXFragment") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function canSwapBetweenExpressionAndStatement(replacement) { + if (this.key !== "body" || !this.parentPath.isArrowFunctionExpression()) { + return false; } - return false; -} -function isJSXOpeningFragment(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXOpeningFragment") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (this.isExpression()) { + return isBlockStatement(replacement); + } else if (this.isBlockStatement()) { + return isExpression(replacement); } return false; } -function isJSXClosingFragment(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "JSXClosingFragment") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function isCompletionRecord(allowInsideFunction) { + let path = this; + let first = true; + do { + const { + type, + container + } = path; + if (!first && (path.isFunction() || type === "StaticBlock")) { + return !!allowInsideFunction; } - } - return false; -} -function isNoop(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Noop") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + first = false; + if (Array.isArray(container) && path.key !== container.length - 1) { + return false; } - } - return false; + } while ((path = path.parentPath) && !path.isProgram() && !path.isDoExpression()); + return true; } -function isPlaceholder(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Placeholder") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function isStatementOrBlock() { + if (this.parentPath.isLabeledStatement() || isBlockStatement(this.container)) { + return false; + } else { + return STATEMENT_OR_BLOCK_KEYS.includes(this.key); } - return false; } -function isV8IntrinsicIdentifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "V8IntrinsicIdentifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function referencesImport(moduleSource, importName) { + if (!this.isReferencedIdentifier()) { + if (this.isJSXMemberExpression() && this.node.property.name === importName || (this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, { + value: importName + }) : this.node.property.name === importName)) { + const object = this.get("object"); + return object.isReferencedIdentifier() && object.referencesImport(moduleSource, "*"); } + return false; } - return false; -} -function isArgumentPlaceholder(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ArgumentPlaceholder") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + const binding = this.scope.getBinding(this.node.name); + if (!binding || binding.kind !== "module") return false; + const path = binding.path; + const parent = path.parentPath; + if (!parent.isImportDeclaration()) return false; + if (parent.node.source.value === moduleSource) { + if (!importName) return true; + } else { + return false; } - return false; -} -function isBindExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "BindExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (path.isImportDefaultSpecifier() && importName === "default") { + return true; } - return false; -} -function isImportAttribute(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ImportAttribute") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (path.isImportNamespaceSpecifier() && importName === "*") { + return true; } - return false; -} -function isDecorator(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "Decorator") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (path.isImportSpecifier() && isIdentifier(path.node.imported, { + name: importName + })) { + return true; } return false; } -function isDoExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DoExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function getSource() { + const node = this.node; + if (node.end) { + const code = this.hub.getCode(); + if (code) return code.slice(node.start, node.end); } - return false; + return ""; } -function isExportDefaultSpecifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ExportDefaultSpecifier") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function willIMaybeExecuteBefore(target) { + return this._guessExecutionStatusRelativeTo(target) !== "after"; } -function isRecordExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "RecordExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function getOuterFunction(path) { + return path.isProgram() ? path : (path.parentPath.scope.getFunctionParent() || path.parentPath.scope.getProgramParent()).path; } -function isTupleExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TupleExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function isExecutionUncertain(type, key) { + switch (type) { + case "LogicalExpression": + return key === "right"; + case "ConditionalExpression": + case "IfStatement": + return key === "consequent" || key === "alternate"; + case "WhileStatement": + case "DoWhileStatement": + case "ForInStatement": + case "ForOfStatement": + return key === "body"; + case "ForStatement": + return key === "body" || key === "update"; + case "SwitchStatement": + return key === "cases"; + case "TryStatement": + return key === "handler"; + case "AssignmentPattern": + return key === "right"; + case "OptionalMemberExpression": + return key === "property"; + case "OptionalCallExpression": + return key === "arguments"; + default: + return false; } - return false; } -function isDecimalLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "DecimalLiteral") { - if (typeof opts === "undefined") { +function isExecutionUncertainInList(paths, maxIndex) { + for (let i = 0; i < maxIndex; i++) { + const path = paths[i]; + if (isExecutionUncertain(path.parent.type, path.parentKey)) { return true; - } else { - return (0, _shallowEqual.default)(node, opts); } } return false; } -function isModuleExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "ModuleExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +const SYMBOL_CHECKING = Symbol(); +function _guessExecutionStatusRelativeTo(target) { + return _guessExecutionStatusRelativeToCached(this, target, new Map()); } -function isTopicReference(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TopicReference") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _guessExecutionStatusRelativeToCached(base, target, cache) { + const funcParent = { + this: getOuterFunction(base), + target: getOuterFunction(target) + }; + if (funcParent.target.node !== funcParent.this.node) { + return _guessExecutionStatusRelativeToDifferentFunctionsCached(base, funcParent.target, cache); } - return false; -} -function isPipelineTopicExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "PipelineTopicExpression") { - if (typeof opts === "undefined") { - return true; + const paths = { + target: target.getAncestry(), + this: base.getAncestry() + }; + if (paths.target.indexOf(base) >= 0) return "after"; + if (paths.this.indexOf(target) >= 0) return "before"; + let commonPath; + const commonIndex = { + target: 0, + this: 0 + }; + while (!commonPath && commonIndex.this < paths.this.length) { + const path = paths.this[commonIndex.this]; + commonIndex.target = paths.target.indexOf(path); + if (commonIndex.target >= 0) { + commonPath = path; } else { - return (0, _shallowEqual.default)(node, opts); + commonIndex.this++; } } - return false; -} -function isPipelineBareFunction(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "PipelineBareFunction") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (!commonPath) { + throw new Error("Internal Babel error - The two compared nodes" + " don't appear to belong to the same program."); } - return false; -} -function isPipelinePrimaryTopicReference(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "PipelinePrimaryTopicReference") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (isExecutionUncertainInList(paths.this, commonIndex.this - 1) || isExecutionUncertainInList(paths.target, commonIndex.target - 1)) { + return "unknown"; } - return false; -} -function isTSParameterProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSParameterProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + const divergence = { + this: paths.this[commonIndex.this - 1], + target: paths.target[commonIndex.target - 1] + }; + if (divergence.target.listKey && divergence.this.listKey && divergence.target.container === divergence.this.container) { + return divergence.target.key > divergence.this.key ? "before" : "after"; } - return false; + const keys = VISITOR_KEYS[commonPath.type]; + const keyPosition = { + this: keys.indexOf(divergence.this.parentKey), + target: keys.indexOf(divergence.target.parentKey) + }; + return keyPosition.target > keyPosition.this ? "before" : "after"; } -function isTSDeclareFunction(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSDeclareFunction") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function _guessExecutionStatusRelativeToDifferentFunctionsInternal(base, target, cache) { + if (!target.isFunctionDeclaration()) { + if (_guessExecutionStatusRelativeToCached(base, target, cache) === "before") { + return "before"; } + return "unknown"; + } else if (target.parentPath.isExportDeclaration()) { + return "unknown"; } - return false; -} -function isTSDeclareMethod(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSDeclareMethod") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const binding = target.scope.getBinding(target.node.id.name); + if (!binding.references) return "before"; + const referencePaths = binding.referencePaths; + let allStatus; + for (const path of referencePaths) { + const childOfFunction = !!path.find(path => path.node === target.node); + if (childOfFunction) continue; + if (path.key !== "callee" || !path.parentPath.isCallExpression()) { + return "unknown"; } - } - return false; -} -function isTSQualifiedName(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSQualifiedName") { - if (typeof opts === "undefined") { - return true; + const status = _guessExecutionStatusRelativeToCached(base, path, cache); + if (allStatus && allStatus !== status) { + return "unknown"; } else { - return (0, _shallowEqual.default)(node, opts); + allStatus = status; } } - return false; + return allStatus; } -function isTSCallSignatureDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSCallSignatureDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function _guessExecutionStatusRelativeToDifferentFunctionsCached(base, target, cache) { + let nodeMap = cache.get(base.node); + let cached; + if (!nodeMap) { + cache.set(base.node, nodeMap = new Map()); + } else if (cached = nodeMap.get(target.node)) { + if (cached === SYMBOL_CHECKING) { + return "unknown"; } + return cached; } - return false; + nodeMap.set(target.node, SYMBOL_CHECKING); + const result = _guessExecutionStatusRelativeToDifferentFunctionsInternal(base, target, cache); + nodeMap.set(target.node, result); + return result; } -function isTSConstructSignatureDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSConstructSignatureDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function resolve(dangerous, resolved) { + return this._resolve(dangerous, resolved) || this; } -function isTSPropertySignature(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSPropertySignature") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function _resolve(dangerous, resolved) { + if (resolved && resolved.indexOf(this) >= 0) return; + resolved = resolved || []; + resolved.push(this); + if (this.isVariableDeclarator()) { + if (this.get("id").isIdentifier()) { + return this.get("init").resolve(dangerous, resolved); + } else {} + } else if (this.isReferencedIdentifier()) { + const binding = this.scope.getBinding(this.node.name); + if (!binding) return; + if (!binding.constant) return; + if (binding.kind === "module") return; + if (binding.path !== this) { + const ret = binding.path.resolve(dangerous, resolved); + if (this.find(parent => parent.node === ret.node)) return; + return ret; } - } - return false; -} -function isTSMethodSignature(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSMethodSignature") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + } else if (this.isTypeCastExpression()) { + return this.get("expression").resolve(dangerous, resolved); + } else if (dangerous && this.isMemberExpression()) { + const targetKey = this.toComputedKey(); + if (!isLiteral(targetKey)) return; + const targetName = targetKey.value; + const target = this.get("object").resolve(dangerous, resolved); + if (target.isObjectExpression()) { + const props = target.get("properties"); + for (const prop of props) { + if (!prop.isProperty()) continue; + const key = prop.get("key"); + let match = prop.isnt("computed") && key.isIdentifier({ + name: targetName + }); + match = match || key.isLiteral({ + value: targetName + }); + if (match) return prop.get("value").resolve(dangerous, resolved); + } + } else if (target.isArrayExpression() && !isNaN(+targetName)) { + const elems = target.get("elements"); + const elem = elems[targetName]; + if (elem) return elem.resolve(dangerous, resolved); } } - return false; } -function isTSIndexSignature(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSIndexSignature") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function isConstantExpression() { + if (this.isIdentifier()) { + const binding = this.scope.getBinding(this.node.name); + if (!binding) return false; + return binding.constant; } - return false; -} -function isTSAnyKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSAnyKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (this.isLiteral()) { + if (this.isRegExpLiteral()) { + return false; } - } - return false; -} -function isTSBooleanKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSBooleanKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (this.isTemplateLiteral()) { + return this.get("expressions").every(expression => expression.isConstantExpression()); } + return true; } - return false; -} -function isTSBigIntKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSBigIntKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (this.isUnaryExpression()) { + if (this.node.operator !== "void") { + return false; } + return this.get("argument").isConstantExpression(); } - return false; -} -function isTSIntrinsicKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSIntrinsicKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (this.isBinaryExpression()) { + const { + operator + } = this.node; + return operator !== "in" && operator !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression(); } return false; } -function isTSNeverKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSNeverKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function isInStrictMode() { + const start = this.isProgram() ? this : this.parentPath; + const strictParent = start.find(path => { + if (path.isProgram({ + sourceType: "module" + })) return true; + if (path.isClass()) return true; + if (path.isArrowFunctionExpression() && !path.get("body").isBlockStatement()) { + return false; } - } - return false; -} -function isTSNullKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSNullKeyword") { - if (typeof opts === "undefined") { - return true; + let body; + if (path.isFunction()) { + body = path.node.body; + } else if (path.isProgram()) { + body = path.node; } else { - return (0, _shallowEqual.default)(node, opts); + return false; } - } - return false; -} -function isTSNumberKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSNumberKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + for (const directive of body.directives) { + if (directive.value.value === "use strict") { + return true; + } } - } - return false; + }); + return !!strictParent; } -function isTSObjectKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSObjectKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + +//# sourceMappingURL=introspection.js.map + + +/***/ }), + +/***/ 49186: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _t = __nccwpck_require__(68948); +var _t2 = _t; +const { + react +} = _t; +const { + cloneNode, + jsxExpressionContainer, + variableDeclaration, + variableDeclarator +} = _t2; +const referenceVisitor = { + ReferencedIdentifier(path, state) { + if (path.isJSXIdentifier() && react.isCompatTag(path.node.name) && !path.parentPath.isJSXMemberExpression()) { + return; + } + if (path.node.name === "this") { + let scope = path.scope; + do { + if (scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { + break; + } + } while (scope = scope.parent); + if (scope) state.breakOnScopePaths.push(scope.path); + } + const binding = path.scope.getBinding(path.node.name); + if (!binding) return; + for (const violation of binding.constantViolations) { + if (violation.scope !== binding.path.scope) { + state.mutableBinding = true; + path.stop(); + return; + } } + if (binding !== state.scope.getBinding(path.node.name)) return; + state.bindings[path.node.name] = binding; } - return false; -} -function isTSStringKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSStringKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +}; +class PathHoister { + constructor(path, scope) { + this.breakOnScopePaths = void 0; + this.bindings = void 0; + this.mutableBinding = void 0; + this.scopes = void 0; + this.scope = void 0; + this.path = void 0; + this.attachAfter = void 0; + this.breakOnScopePaths = []; + this.bindings = {}; + this.mutableBinding = false; + this.scopes = []; + this.scope = scope; + this.path = path; + this.attachAfter = false; + } + isCompatibleScope(scope) { + for (const key of Object.keys(this.bindings)) { + const binding = this.bindings[key]; + if (!scope.bindingIdentifierEquals(key, binding.identifier)) { + return false; + } } + return true; + } + getCompatibleScopes() { + let scope = this.path.scope; + do { + if (this.isCompatibleScope(scope)) { + this.scopes.push(scope); + } else { + break; + } + if (this.breakOnScopePaths.indexOf(scope.path) >= 0) { + break; + } + } while (scope = scope.parent); } - return false; -} -function isTSSymbolKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSSymbolKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + getAttachmentPath() { + let path = this._getAttachmentPath(); + if (!path) return; + let targetScope = path.scope; + if (targetScope.path === path) { + targetScope = path.scope.parent; } - } - return false; -} -function isTSUndefinedKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSUndefinedKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (targetScope.path.isProgram() || targetScope.path.isFunction()) { + for (const name of Object.keys(this.bindings)) { + if (!targetScope.hasOwnBinding(name)) continue; + const binding = this.bindings[name]; + if (binding.kind === "param" || binding.path.parentKey === "params") { + continue; + } + const bindingParentPath = this.getAttachmentParentForPath(binding.path); + if (bindingParentPath.key >= path.key) { + this.attachAfter = true; + path = binding.path; + for (const violationPath of binding.constantViolations) { + if (this.getAttachmentParentForPath(violationPath).key > path.key) { + path = violationPath; + } + } + } + } } + return path; } - return false; -} -function isTSUnknownKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSUnknownKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + _getAttachmentPath() { + const scopes = this.scopes; + const scope = scopes.pop(); + if (!scope) return; + if (scope.path.isFunction()) { + if (this.hasOwnParamBindings(scope)) { + if (this.scope === scope) return; + const bodies = scope.path.get("body").get("body"); + for (let i = 0; i < bodies.length; i++) { + if (bodies[i].node._blockHoist) continue; + return bodies[i]; + } + } else { + return this.getNextScopeAttachmentParent(); + } + } else if (scope.path.isProgram()) { + return this.getNextScopeAttachmentParent(); } } - return false; -} -function isTSVoidKeyword(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSVoidKeyword") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + getNextScopeAttachmentParent() { + const scope = this.scopes.pop(); + if (scope) return this.getAttachmentParentForPath(scope.path); } - return false; -} -function isTSThisType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSThisType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + getAttachmentParentForPath(path) { + do { + if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { + return path; + } + } while (path = path.parentPath); } - return false; -} -function isTSFunctionType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSFunctionType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + hasOwnParamBindings(scope) { + for (const name of Object.keys(this.bindings)) { + if (!scope.hasOwnBinding(name)) continue; + const binding = this.bindings[name]; + if (binding.kind === "param" && binding.constant) return true; } + return false; } - return false; -} -function isTSConstructorType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSConstructorType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + run() { + this.path.traverse(referenceVisitor, this); + if (this.mutableBinding) return; + this.getCompatibleScopes(); + const attachTo = this.getAttachmentPath(); + if (!attachTo) return; + if (attachTo.getFunctionParent() === this.path.getFunctionParent()) return; + let uid = attachTo.scope.generateUidIdentifier("ref"); + const declarator = variableDeclarator(uid, this.path.node); + const insertFn = this.attachAfter ? "insertAfter" : "insertBefore"; + const [attached] = attachTo[insertFn]([attachTo.isVariableDeclarator() ? declarator : variableDeclaration("var", [declarator])]); + const parent = this.path.parentPath; + if (parent.isJSXElement() && this.path.container === parent.node.children) { + uid = jsxExpressionContainer(uid); } + this.path.replaceWith(cloneNode(uid)); + return attachTo.isVariableDeclarator() ? attached.get("init") : attached.get("declarations.0.init"); } - return false; } -function isTSTypeReference(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeReference") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +exports["default"] = PathHoister; + +//# sourceMappingURL=hoister.js.map + + +/***/ }), + +/***/ 13318: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.hooks = void 0; +const hooks = exports.hooks = [function (self, parent) { + const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement(); + if (removeParent) { + parent.remove(); + return true; } - return false; -} -function isTSTypePredicate(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypePredicate") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +}, function (self, parent) { + if (parent.isSequenceExpression() && parent.node.expressions.length === 1) { + parent.replaceWith(parent.node.expressions[0]); + return true; } - return false; -} -function isTSTypeQuery(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeQuery") { - if (typeof opts === "undefined") { - return true; +}, function (self, parent) { + if (parent.isBinary()) { + if (self.key === "left") { + parent.replaceWith(parent.node.right); } else { - return (0, _shallowEqual.default)(node, opts); + parent.replaceWith(parent.node.left); } + return true; } - return false; -} -function isTSTypeLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +}, function (self, parent) { + if (parent.isIfStatement() && self.key === "consequent" || self.key === "body" && (parent.isLoop() || parent.isArrowFunctionExpression())) { + self.replaceWith({ + type: "BlockStatement", + body: [] + }); + return true; } - return false; -} -function isTSArrayType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSArrayType") { - if (typeof opts === "undefined") { - return true; +}]; + +//# sourceMappingURL=removal-hooks.js.map + + +/***/ }), + +/***/ 21412: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.isBindingIdentifier = isBindingIdentifier; +exports.isBlockScoped = isBlockScoped; +exports.isExpression = isExpression; +exports.isFlow = isFlow; +exports.isForAwaitStatement = isForAwaitStatement; +exports.isGenerated = isGenerated; +exports.isPure = isPure; +exports.isReferenced = isReferenced; +exports.isReferencedIdentifier = isReferencedIdentifier; +exports.isReferencedMemberExpression = isReferencedMemberExpression; +exports.isRestProperty = isRestProperty; +exports.isScope = isScope; +exports.isSpreadProperty = isSpreadProperty; +exports.isStatement = isStatement; +exports.isUser = isUser; +exports.isVar = isVar; +var _t = __nccwpck_require__(68948); +const { + isBinding, + isBlockScoped: nodeIsBlockScoped, + isExportDeclaration, + isExpression: nodeIsExpression, + isFlow: nodeIsFlow, + isForStatement, + isForXStatement, + isIdentifier, + isImportDeclaration, + isImportSpecifier, + isJSXIdentifier, + isJSXMemberExpression, + isMemberExpression, + isRestElement: nodeIsRestElement, + isReferenced: nodeIsReferenced, + isScope: nodeIsScope, + isStatement: nodeIsStatement, + isVar: nodeIsVar, + isVariableDeclaration, + react, + isForOfStatement +} = _t; +const { + isCompatTag +} = react; +function isReferencedIdentifier(opts) { + const { + node, + parent + } = this; + if (!isIdentifier(node, opts) && !isJSXMemberExpression(parent, opts)) { + if (isJSXIdentifier(node, opts)) { + if (isCompatTag(node.name)) return false; } else { - return (0, _shallowEqual.default)(node, opts); + return false; } } - return false; + return nodeIsReferenced(node, parent, this.parentPath.parent); } -function isTSTupleType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTupleType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isReferencedMemberExpression() { + const { + node, + parent + } = this; + return isMemberExpression(node) && nodeIsReferenced(node, parent); } -function isTSOptionalType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSOptionalType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isBindingIdentifier() { + const { + node, + parent + } = this; + const grandparent = this.parentPath.parent; + return isIdentifier(node) && isBinding(node, parent, grandparent); } -function isTSRestType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSRestType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function isStatement() { + const { + node, + parent + } = this; + if (nodeIsStatement(node)) { + if (isVariableDeclaration(node)) { + if (isForXStatement(parent, { + left: node + })) return false; + if (isForStatement(parent, { + init: node + })) return false; } + return true; + } else { + return false; } - return false; } -function isTSNamedTupleMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSNamedTupleMember") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function isExpression() { + if (this.isIdentifier()) { + return this.isReferencedIdentifier(); + } else { + return nodeIsExpression(this.node); } - return false; } -function isTSUnionType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSUnionType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isScope() { + return nodeIsScope(this.node, this.parent); } -function isTSIntersectionType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSIntersectionType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isReferenced() { + return nodeIsReferenced(this.node, this.parent); } -function isTSConditionalType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSConditionalType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isBlockScoped() { + return nodeIsBlockScoped(this.node); } -function isTSInferType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSInferType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isVar() { + return nodeIsVar(this.node); } -function isTSParenthesizedType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSParenthesizedType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isUser() { + return this.node && !!this.node.loc; } -function isTSTypeOperator(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeOperator") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isGenerated() { + return !this.isUser(); } -function isTSIndexedAccessType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSIndexedAccessType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isPure(constantsOnly) { + return this.scope.isPure(this.node, constantsOnly); } -function isTSMappedType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSMappedType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function isFlow() { + const { + node + } = this; + if (nodeIsFlow(node)) { + return true; + } else if (isImportDeclaration(node)) { + return node.importKind === "type" || node.importKind === "typeof"; + } else if (isExportDeclaration(node)) { + return node.exportKind === "type"; + } else if (isImportSpecifier(node)) { + return node.importKind === "type" || node.importKind === "typeof"; + } else { + return false; } - return false; } -function isTSLiteralType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSLiteralType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isRestProperty() { + return nodeIsRestElement(this.node) && this.parentPath && this.parentPath.isObjectPattern(); } -function isTSExpressionWithTypeArguments(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSExpressionWithTypeArguments") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isSpreadProperty() { + return nodeIsRestElement(this.node) && this.parentPath && this.parentPath.isObjectExpression(); } -function isTSInterfaceDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSInterfaceDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function isForAwaitStatement() { + return isForOfStatement(this.node, { + await: true + }); } -function isTSInterfaceBody(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSInterfaceBody") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +{ + exports.isExistentialTypeParam = function isExistentialTypeParam() { + throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7."); + }; + exports.isNumericLiteralTypeAnnotation = function isNumericLiteralTypeAnnotation() { + throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7."); + }; +} + +//# sourceMappingURL=virtual-types-validator.js.map + + +/***/ }), + +/***/ 14514: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.Var = exports.User = exports.Statement = exports.SpreadProperty = exports.Scope = exports.RestProperty = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = exports.Referenced = exports.Pure = exports.NumericLiteralTypeAnnotation = exports.Generated = exports.ForAwaitStatement = exports.Flow = exports.Expression = exports.ExistentialTypeParam = exports.BlockScoped = exports.BindingIdentifier = void 0; +const ReferencedIdentifier = exports.ReferencedIdentifier = ["Identifier", "JSXIdentifier"]; +const ReferencedMemberExpression = exports.ReferencedMemberExpression = ["MemberExpression"]; +const BindingIdentifier = exports.BindingIdentifier = ["Identifier"]; +const Statement = exports.Statement = ["Statement"]; +const Expression = exports.Expression = ["Expression"]; +const Scope = exports.Scope = ["Scopable", "Pattern"]; +const Referenced = exports.Referenced = null; +const BlockScoped = exports.BlockScoped = null; +const Var = exports.Var = ["VariableDeclaration"]; +const User = exports.User = null; +const Generated = exports.Generated = null; +const Pure = exports.Pure = null; +const Flow = exports.Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"]; +const RestProperty = exports.RestProperty = ["RestElement"]; +const SpreadProperty = exports.SpreadProperty = ["RestElement"]; +const ExistentialTypeParam = exports.ExistentialTypeParam = ["ExistsTypeAnnotation"]; +const NumericLiteralTypeAnnotation = exports.NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"]; +const ForAwaitStatement = exports.ForAwaitStatement = ["ForOfStatement"]; + +//# sourceMappingURL=virtual-types.js.map + + +/***/ }), + +/***/ 78452: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports._containerInsert = _containerInsert; +exports._containerInsertAfter = _containerInsertAfter; +exports._containerInsertBefore = _containerInsertBefore; +exports._verifyNodeList = _verifyNodeList; +exports.hoist = hoist; +exports.insertAfter = insertAfter; +exports.insertBefore = insertBefore; +exports.pushContainer = pushContainer; +exports.unshiftContainer = unshiftContainer; +exports.updateSiblingKeys = updateSiblingKeys; +var _cache = __nccwpck_require__(12640); +var _hoister = __nccwpck_require__(49186); +var _index = __nccwpck_require__(87093); +var _t = __nccwpck_require__(68948); +const { + arrowFunctionExpression, + assertExpression, + assignmentExpression, + blockStatement, + callExpression, + cloneNode, + expressionStatement, + isAssignmentExpression, + isCallExpression, + isExportNamedDeclaration, + isExpression, + isIdentifier, + isSequenceExpression, + isSuper, + thisExpression +} = _t; +function insertBefore(nodes_) { + this._assertUnremoved(); + const nodes = this._verifyNodeList(nodes_); + const { + parentPath, + parent + } = this; + if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { + return parentPath.insertBefore(nodes); + } else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") { + if (this.node) nodes.push(this.node); + return this.replaceExpressionWithStatements(nodes); + } else if (Array.isArray(this.container)) { + return this._containerInsertBefore(nodes); + } else if (this.isStatementOrBlock()) { + const node = this.node; + const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); + this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); + return this.unshiftContainer("body", nodes); + } else { + throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); } - return false; } -function isTSTypeAliasDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeAliasDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function _containerInsert(from, nodes) { + this.updateSiblingKeys(from, nodes.length); + const paths = []; + this.container.splice(from, 0, ...nodes); + for (let i = 0; i < nodes.length; i++) { + var _this$context; + const to = from + i; + const path = this.getSibling(to); + paths.push(path); + if ((_this$context = this.context) != null && _this$context.queue) { + path.pushContext(this.context); } } - return false; -} -function isTSInstantiationExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSInstantiationExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const contexts = this._getQueueContexts(); + for (const path of paths) { + path.setScope(); + path.debug("Inserted."); + for (const context of contexts) { + context.maybeQueue(path, true); } } - return false; + return paths; } -function isTSAsExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSAsExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function _containerInsertBefore(nodes) { + return this._containerInsert(this.key, nodes); } -function isTSSatisfiesExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSSatisfiesExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function _containerInsertAfter(nodes) { + return this._containerInsert(this.key + 1, nodes); } -function isTSTypeAssertion(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeAssertion") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +const last = arr => arr[arr.length - 1]; +function isHiddenInSequenceExpression(path) { + return isSequenceExpression(path.parent) && (last(path.parent.expressions) !== path.node || isHiddenInSequenceExpression(path.parentPath)); } -function isTSEnumDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSEnumDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function isAlmostConstantAssignment(node, scope) { + if (!isAssignmentExpression(node) || !isIdentifier(node.left)) { + return false; } - return false; + const blockScope = scope.getBlockParent(); + return blockScope.hasOwnBinding(node.left.name) && blockScope.getOwnBinding(node.left.name).constantViolations.length <= 1; } -function isTSEnumMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSEnumMember") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function insertAfter(nodes_) { + this._assertUnremoved(); + if (this.isSequenceExpression()) { + return last(this.get("expressions")).insertAfter(nodes_); } - return false; -} -function isTSModuleDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSModuleDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + const nodes = this._verifyNodeList(nodes_); + const { + parentPath, + parent + } = this; + if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration(parent) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { + return parentPath.insertAfter(nodes.map(node => { + return isExpression(node) ? expressionStatement(node) : node; + })); + } else if (this.isNodeType("Expression") && !this.isJSXElement() && !parentPath.isJSXElement() || parentPath.isForStatement() && this.key === "init") { + if (this.node) { + const node = this.node; + let { + scope + } = this; + if (scope.path.isPattern()) { + assertExpression(node); + this.replaceWith(callExpression(arrowFunctionExpression([], node), [])); + this.get("callee.body").insertAfter(nodes); + return [this]; + } + if (isHiddenInSequenceExpression(this)) { + nodes.unshift(node); + } else if (isCallExpression(node) && isSuper(node.callee)) { + nodes.unshift(node); + nodes.push(thisExpression()); + } else if (isAlmostConstantAssignment(node, scope)) { + nodes.unshift(node); + nodes.push(cloneNode(node.left)); + } else if (scope.isPure(node, true)) { + nodes.push(node); + } else { + if (parentPath.isMethod({ + computed: true, + key: node + })) { + scope = scope.parent; + } + const temp = scope.generateDeclaredUidIdentifier(); + nodes.unshift(expressionStatement(assignmentExpression("=", cloneNode(temp), node))); + nodes.push(expressionStatement(cloneNode(temp))); + } } + return this.replaceExpressionWithStatements(nodes); + } else if (Array.isArray(this.container)) { + return this._containerInsertAfter(nodes); + } else if (this.isStatementOrBlock()) { + const node = this.node; + const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); + this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); + return this.pushContainer("body", nodes); + } else { + throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); } - return false; } -function isTSModuleBlock(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSModuleBlock") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function updateSiblingKeys(fromIndex, incrementBy) { + if (!this.parent) return; + const paths = (0, _cache.getCachedPaths)(this.hub, this.parent) || []; + for (const [, path] of paths) { + if (typeof path.key === "number" && path.key >= fromIndex) { + path.key += incrementBy; } } - return false; } -function isTSImportType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSImportType") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _verifyNodeList(nodes) { + if (!nodes) { + return []; } - return false; -} -function isTSImportEqualsDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSImportEqualsDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (!Array.isArray(nodes)) { + nodes = [nodes]; } - return false; -} -function isTSExternalModuleReference(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSExternalModuleReference") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + let msg; + if (!node) { + msg = "has falsy node"; + } else if (typeof node !== "object") { + msg = "contains a non-object node"; + } else if (!node.type) { + msg = "without a type"; + } else if (node instanceof _index.default) { + msg = "has a NodePath when it expected a raw object"; } - } - return false; -} -function isTSNonNullExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSNonNullExpression") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (msg) { + const type = Array.isArray(node) ? "array" : typeof node; + throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`); } } - return false; + return nodes; } -function isTSExportAssignment(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSExportAssignment") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function unshiftContainer(listKey, nodes) { + this._assertUnremoved(); + nodes = this._verifyNodeList(nodes); + const path = _index.default.get({ + parentPath: this, + parent: this.node, + container: this.node[listKey], + listKey, + key: 0 + }).setContext(this.context); + return path._containerInsertBefore(nodes); } -function isTSNamespaceExportDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSNamespaceExportDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function pushContainer(listKey, nodes) { + this._assertUnremoved(); + const verifiedNodes = this._verifyNodeList(nodes); + const container = this.node[listKey]; + const path = _index.default.get({ + parentPath: this, + parent: this.node, + container: container, + listKey, + key: container.length + }).setContext(this.context); + return path.replaceWithMultiple(verifiedNodes); } -function isTSTypeAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeAnnotation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } - } - return false; +function hoist(scope = this.scope) { + const hoister = new _hoister.default(this, scope); + return hoister.run(); } -function isTSTypeParameterInstantiation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeParameterInstantiation") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + +//# sourceMappingURL=modification.js.map + + +/***/ }), + +/***/ 16926: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports._assertUnremoved = _assertUnremoved; +exports._callRemovalHooks = _callRemovalHooks; +exports._markRemoved = _markRemoved; +exports._remove = _remove; +exports._removeFromScope = _removeFromScope; +exports.remove = remove; +var _removalHooks = __nccwpck_require__(13318); +var _cache = __nccwpck_require__(12640); +var _index = __nccwpck_require__(87093); +var _t = __nccwpck_require__(68948); +const { + getBindingIdentifiers +} = _t; +function remove() { + var _this$opts; + this._assertUnremoved(); + this.resync(); + if (!((_this$opts = this.opts) != null && _this$opts.noScope)) { + this._removeFromScope(); } - return false; + if (this._callRemovalHooks()) { + this._markRemoved(); + return; + } + this.shareCommentsWithSiblings(); + this._remove(); + this._markRemoved(); } -function isTSTypeParameterDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeParameterDeclaration") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _removeFromScope() { + const bindings = getBindingIdentifiers(this.node, false, false, true); + Object.keys(bindings).forEach(name => this.scope.removeBinding(name)); +} +function _callRemovalHooks() { + for (const fn of _removalHooks.hooks) { + if (fn(this, this.parentPath)) return true; } - return false; } -function isTSTypeParameter(node, opts) { - if (!node) return false; - const nodeType = node.type; - if (nodeType === "TSTypeParameter") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _remove() { + if (Array.isArray(this.container)) { + this.container.splice(this.key, 1); + this.updateSiblingKeys(this.key, -1); + } else { + this._replaceWith(null); } - return false; } -function isStandardized(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ArrayExpression" === nodeType || "AssignmentExpression" === nodeType || "BinaryExpression" === nodeType || "InterpreterDirective" === nodeType || "Directive" === nodeType || "DirectiveLiteral" === nodeType || "BlockStatement" === nodeType || "BreakStatement" === nodeType || "CallExpression" === nodeType || "CatchClause" === nodeType || "ConditionalExpression" === nodeType || "ContinueStatement" === nodeType || "DebuggerStatement" === nodeType || "DoWhileStatement" === nodeType || "EmptyStatement" === nodeType || "ExpressionStatement" === nodeType || "File" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "Identifier" === nodeType || "IfStatement" === nodeType || "LabeledStatement" === nodeType || "StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "LogicalExpression" === nodeType || "MemberExpression" === nodeType || "NewExpression" === nodeType || "Program" === nodeType || "ObjectExpression" === nodeType || "ObjectMethod" === nodeType || "ObjectProperty" === nodeType || "RestElement" === nodeType || "ReturnStatement" === nodeType || "SequenceExpression" === nodeType || "ParenthesizedExpression" === nodeType || "SwitchCase" === nodeType || "SwitchStatement" === nodeType || "ThisExpression" === nodeType || "ThrowStatement" === nodeType || "TryStatement" === nodeType || "UnaryExpression" === nodeType || "UpdateExpression" === nodeType || "VariableDeclaration" === nodeType || "VariableDeclarator" === nodeType || "WhileStatement" === nodeType || "WithStatement" === nodeType || "AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassBody" === nodeType || "ClassExpression" === nodeType || "ClassDeclaration" === nodeType || "ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ExportSpecifier" === nodeType || "ForOfStatement" === nodeType || "ImportDeclaration" === nodeType || "ImportDefaultSpecifier" === nodeType || "ImportNamespaceSpecifier" === nodeType || "ImportSpecifier" === nodeType || "MetaProperty" === nodeType || "ClassMethod" === nodeType || "ObjectPattern" === nodeType || "SpreadElement" === nodeType || "Super" === nodeType || "TaggedTemplateExpression" === nodeType || "TemplateElement" === nodeType || "TemplateLiteral" === nodeType || "YieldExpression" === nodeType || "AwaitExpression" === nodeType || "Import" === nodeType || "BigIntLiteral" === nodeType || "ExportNamespaceSpecifier" === nodeType || "OptionalMemberExpression" === nodeType || "OptionalCallExpression" === nodeType || "ClassProperty" === nodeType || "ClassAccessorProperty" === nodeType || "ClassPrivateProperty" === nodeType || "ClassPrivateMethod" === nodeType || "PrivateName" === nodeType || "StaticBlock" === nodeType || nodeType === "Placeholder" && ("Identifier" === node.expectedNode || "StringLiteral" === node.expectedNode || "BlockStatement" === node.expectedNode || "ClassBody" === node.expectedNode)) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _markRemoved() { + this._traverseFlags |= _index.SHOULD_SKIP | _index.REMOVED; + if (this.parent) { + (0, _cache.getCachedPaths)(this.hub, this.parent).delete(this.node); } - return false; + this.node = null; } -function isExpression(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ArrayExpression" === nodeType || "AssignmentExpression" === nodeType || "BinaryExpression" === nodeType || "CallExpression" === nodeType || "ConditionalExpression" === nodeType || "FunctionExpression" === nodeType || "Identifier" === nodeType || "StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "LogicalExpression" === nodeType || "MemberExpression" === nodeType || "NewExpression" === nodeType || "ObjectExpression" === nodeType || "SequenceExpression" === nodeType || "ParenthesizedExpression" === nodeType || "ThisExpression" === nodeType || "UnaryExpression" === nodeType || "UpdateExpression" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassExpression" === nodeType || "MetaProperty" === nodeType || "Super" === nodeType || "TaggedTemplateExpression" === nodeType || "TemplateLiteral" === nodeType || "YieldExpression" === nodeType || "AwaitExpression" === nodeType || "Import" === nodeType || "BigIntLiteral" === nodeType || "OptionalMemberExpression" === nodeType || "OptionalCallExpression" === nodeType || "TypeCastExpression" === nodeType || "JSXElement" === nodeType || "JSXFragment" === nodeType || "BindExpression" === nodeType || "DoExpression" === nodeType || "RecordExpression" === nodeType || "TupleExpression" === nodeType || "DecimalLiteral" === nodeType || "ModuleExpression" === nodeType || "TopicReference" === nodeType || "PipelineTopicExpression" === nodeType || "PipelineBareFunction" === nodeType || "PipelinePrimaryTopicReference" === nodeType || "TSInstantiationExpression" === nodeType || "TSAsExpression" === nodeType || "TSSatisfiesExpression" === nodeType || "TSTypeAssertion" === nodeType || "TSNonNullExpression" === nodeType || nodeType === "Placeholder" && ("Expression" === node.expectedNode || "Identifier" === node.expectedNode || "StringLiteral" === node.expectedNode)) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _assertUnremoved() { + if (this.removed) { + throw this.buildCodeFrameError("NodePath has been removed so is read-only."); } - return false; } -function isBinary(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("BinaryExpression" === nodeType || "LogicalExpression" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + +//# sourceMappingURL=removal.js.map + + +/***/ }), + +/***/ 50352: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports._replaceWith = _replaceWith; +exports.replaceExpressionWithStatements = replaceExpressionWithStatements; +exports.replaceInline = replaceInline; +exports.replaceWith = replaceWith; +exports.replaceWithMultiple = replaceWithMultiple; +exports.replaceWithSourceString = replaceWithSourceString; +var _codeFrame = __nccwpck_require__(77956); +var _index = __nccwpck_require__(22382); +var _index2 = __nccwpck_require__(87093); +var _cache = __nccwpck_require__(12640); +var _parser = __nccwpck_require__(59067); +var _t = __nccwpck_require__(68948); +var _helperHoistVariables = __nccwpck_require__(51194); +const { + FUNCTION_TYPES, + arrowFunctionExpression, + assignmentExpression, + awaitExpression, + blockStatement, + buildUndefinedNode, + callExpression, + cloneNode, + conditionalExpression, + expressionStatement, + getBindingIdentifiers, + identifier, + inheritLeadingComments, + inheritTrailingComments, + inheritsComments, + isBlockStatement, + isEmptyStatement, + isExpression, + isExpressionStatement, + isIfStatement, + isProgram, + isStatement, + isVariableDeclaration, + removeComments, + returnStatement, + sequenceExpression, + validate, + yieldExpression +} = _t; +function replaceWithMultiple(nodes) { + var _getCachedPaths; + this.resync(); + nodes = this._verifyNodeList(nodes); + inheritLeadingComments(nodes[0], this.node); + inheritTrailingComments(nodes[nodes.length - 1], this.node); + (_getCachedPaths = (0, _cache.getCachedPaths)(this.hub, this.parent)) == null || _getCachedPaths.delete(this.node); + this.node = this.container[this.key] = null; + const paths = this.insertAfter(nodes); + if (this.node) { + this.requeue(); + } else { + this.remove(); } - return false; + return paths; } -function isScopable(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("BlockStatement" === nodeType || "CatchClause" === nodeType || "DoWhileStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "Program" === nodeType || "ObjectMethod" === nodeType || "SwitchStatement" === nodeType || "WhileStatement" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassExpression" === nodeType || "ClassDeclaration" === nodeType || "ForOfStatement" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType || "StaticBlock" === nodeType || "TSModuleBlock" === nodeType || nodeType === "Placeholder" && "BlockStatement" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function replaceWithSourceString(replacement) { + this.resync(); + let ast; + try { + replacement = `(${replacement})`; + ast = (0, _parser.parse)(replacement); + } catch (err) { + const loc = err.loc; + if (loc) { + err.message += " - make sure this is an expression.\n" + (0, _codeFrame.codeFrameColumns)(replacement, { + start: { + line: loc.line, + column: loc.column + 1 + } + }); + err.code = "BABEL_REPLACE_SOURCE_ERROR"; } + throw err; } - return false; + const expressionAST = ast.program.body[0].expression; + _index.default.removeProperties(expressionAST); + return this.replaceWith(expressionAST); } -function isBlockParent(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("BlockStatement" === nodeType || "CatchClause" === nodeType || "DoWhileStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "Program" === nodeType || "ObjectMethod" === nodeType || "SwitchStatement" === nodeType || "WhileStatement" === nodeType || "ArrowFunctionExpression" === nodeType || "ForOfStatement" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType || "StaticBlock" === nodeType || "TSModuleBlock" === nodeType || nodeType === "Placeholder" && "BlockStatement" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function replaceWith(replacementPath) { + this.resync(); + if (this.removed) { + throw new Error("You can't replace this node, we've already removed it"); + } + let replacement = replacementPath instanceof _index2.default ? replacementPath.node : replacementPath; + if (!replacement) { + throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead"); + } + if (this.node === replacement) { + return [this]; + } + if (this.isProgram() && !isProgram(replacement)) { + throw new Error("You can only replace a Program root node with another Program node"); + } + if (Array.isArray(replacement)) { + throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`"); + } + if (typeof replacement === "string") { + throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`"); + } + let nodePath = ""; + if (this.isNodeType("Statement") && isExpression(replacement)) { + if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement) && !this.parentPath.isExportDefaultDeclaration()) { + replacement = expressionStatement(replacement); + nodePath = "expression"; } } - return false; -} -function isBlock(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("BlockStatement" === nodeType || "Program" === nodeType || "TSModuleBlock" === nodeType || nodeType === "Placeholder" && "BlockStatement" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (this.isNodeType("Expression") && isStatement(replacement)) { + if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement)) { + return this.replaceExpressionWithStatements([replacement]); } } - return false; + const oldNode = this.node; + if (oldNode) { + inheritsComments(replacement, oldNode); + removeComments(oldNode); + } + this._replaceWith(replacement); + this.type = replacement.type; + this.setScope(); + this.requeue(); + return [nodePath ? this.get(nodePath) : this]; } -function isStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("BlockStatement" === nodeType || "BreakStatement" === nodeType || "ContinueStatement" === nodeType || "DebuggerStatement" === nodeType || "DoWhileStatement" === nodeType || "EmptyStatement" === nodeType || "ExpressionStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "IfStatement" === nodeType || "LabeledStatement" === nodeType || "ReturnStatement" === nodeType || "SwitchStatement" === nodeType || "ThrowStatement" === nodeType || "TryStatement" === nodeType || "VariableDeclaration" === nodeType || "WhileStatement" === nodeType || "WithStatement" === nodeType || "ClassDeclaration" === nodeType || "ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ForOfStatement" === nodeType || "ImportDeclaration" === nodeType || "DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "InterfaceDeclaration" === nodeType || "OpaqueType" === nodeType || "TypeAlias" === nodeType || "EnumDeclaration" === nodeType || "TSDeclareFunction" === nodeType || "TSInterfaceDeclaration" === nodeType || "TSTypeAliasDeclaration" === nodeType || "TSEnumDeclaration" === nodeType || "TSModuleDeclaration" === nodeType || "TSImportEqualsDeclaration" === nodeType || "TSExportAssignment" === nodeType || "TSNamespaceExportDeclaration" === nodeType || nodeType === "Placeholder" && ("Statement" === node.expectedNode || "Declaration" === node.expectedNode || "BlockStatement" === node.expectedNode)) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } +function _replaceWith(node) { + var _getCachedPaths2; + if (!this.container) { + throw new ReferenceError("Container is falsy"); } - return false; + if (this.inList) { + validate(this.parent, this.key, [node]); + } else { + validate(this.parent, this.key, node); + } + this.debug(`Replace with ${node == null ? void 0 : node.type}`); + (_getCachedPaths2 = (0, _cache.getCachedPaths)(this.hub, this.parent)) == null || _getCachedPaths2.set(node, this).delete(this.node); + this.node = this.container[this.key] = node; } -function isTerminatorless(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("BreakStatement" === nodeType || "ContinueStatement" === nodeType || "ReturnStatement" === nodeType || "ThrowStatement" === nodeType || "YieldExpression" === nodeType || "AwaitExpression" === nodeType) { - if (typeof opts === "undefined") { - return true; +function replaceExpressionWithStatements(nodes) { + this.resync(); + const declars = []; + const nodesAsSingleExpression = gatherSequenceExpressions(nodes, declars); + if (nodesAsSingleExpression) { + for (const id of declars) this.scope.push({ + id + }); + return this.replaceWith(nodesAsSingleExpression)[0].get("expressions"); + } + const functionParent = this.getFunctionParent(); + const isParentAsync = functionParent == null ? void 0 : functionParent.is("async"); + const isParentGenerator = functionParent == null ? void 0 : functionParent.is("generator"); + const container = arrowFunctionExpression([], blockStatement(nodes)); + this.replaceWith(callExpression(container, [])); + const callee = this.get("callee"); + (0, _helperHoistVariables.default)(callee.get("body"), id => { + this.scope.push({ + id + }); + }, "var"); + const completionRecords = this.get("callee").getCompletionRecords(); + for (const path of completionRecords) { + if (!path.isExpressionStatement()) continue; + const loop = path.findParent(path => path.isLoop()); + if (loop) { + let uid = loop.getData("expressionReplacementReturnUid"); + if (!uid) { + uid = callee.scope.generateDeclaredUidIdentifier("ret"); + callee.get("body").pushContainer("body", returnStatement(cloneNode(uid))); + loop.setData("expressionReplacementReturnUid", uid); + } else { + uid = identifier(uid.name); + } + path.get("expression").replaceWith(assignmentExpression("=", cloneNode(uid), path.node.expression)); } else { - return (0, _shallowEqual.default)(node, opts); + path.replaceWith(returnStatement(path.node.expression)); } } - return false; -} -function isCompletionStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("BreakStatement" === nodeType || "ContinueStatement" === nodeType || "ReturnStatement" === nodeType || "ThrowStatement" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + callee.arrowFunctionToExpression(); + const newCallee = callee; + const needToAwaitFunction = isParentAsync && _index.default.hasType(this.get("callee.body").node, "AwaitExpression", FUNCTION_TYPES); + const needToYieldFunction = isParentGenerator && _index.default.hasType(this.get("callee.body").node, "YieldExpression", FUNCTION_TYPES); + if (needToAwaitFunction) { + newCallee.set("async", true); + if (!needToYieldFunction) { + this.replaceWith(awaitExpression(this.node)); } } - return false; -} -function isConditional(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ConditionalExpression" === nodeType || "IfStatement" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (needToYieldFunction) { + newCallee.set("generator", true); + this.replaceWith(yieldExpression(this.node, true)); } - return false; + return newCallee.get("body.body"); } -function isLoop(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("DoWhileStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "WhileStatement" === nodeType || "ForOfStatement" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +function gatherSequenceExpressions(nodes, declars) { + const exprs = []; + let ensureLastUndefined = true; + for (const node of nodes) { + if (!isEmptyStatement(node)) { + ensureLastUndefined = false; } - } - return false; -} -function isWhile(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("DoWhileStatement" === nodeType || "WhileStatement" === nodeType) { - if (typeof opts === "undefined") { - return true; + if (isExpression(node)) { + exprs.push(node); + } else if (isExpressionStatement(node)) { + exprs.push(node.expression); + } else if (isVariableDeclaration(node)) { + if (node.kind !== "var") return; + for (const declar of node.declarations) { + const bindings = getBindingIdentifiers(declar); + for (const key of Object.keys(bindings)) { + declars.push(cloneNode(bindings[key])); + } + if (declar.init) { + exprs.push(assignmentExpression("=", declar.id, declar.init)); + } + } + ensureLastUndefined = true; + } else if (isIfStatement(node)) { + const consequent = node.consequent ? gatherSequenceExpressions([node.consequent], declars) : buildUndefinedNode(); + const alternate = node.alternate ? gatherSequenceExpressions([node.alternate], declars) : buildUndefinedNode(); + if (!consequent || !alternate) return; + exprs.push(conditionalExpression(node.test, consequent, alternate)); + } else if (isBlockStatement(node)) { + const body = gatherSequenceExpressions(node.body, declars); + if (!body) return; + exprs.push(body); + } else if (isEmptyStatement(node)) { + if (nodes.indexOf(node) === 0) { + ensureLastUndefined = true; + } } else { - return (0, _shallowEqual.default)(node, opts); + return; } } - return false; -} -function isExpressionWrapper(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ExpressionStatement" === nodeType || "ParenthesizedExpression" === nodeType || "TypeCastExpression" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + if (ensureLastUndefined) exprs.push(buildUndefinedNode()); + if (exprs.length === 1) { + return exprs[0]; + } else { + return sequenceExpression(exprs); } - return false; } -function isFor(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ForInStatement" === nodeType || "ForStatement" === nodeType || "ForOfStatement" === nodeType) { - if (typeof opts === "undefined") { - return true; +function replaceInline(nodes) { + this.resync(); + if (Array.isArray(nodes)) { + if (Array.isArray(this.container)) { + nodes = this._verifyNodeList(nodes); + const paths = this._containerInsertAfter(nodes); + this.remove(); + return paths; } else { - return (0, _shallowEqual.default)(node, opts); + return this.replaceWithMultiple(nodes); } + } else { + return this.replaceWith(nodes); } - return false; } -function isForXStatement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ForInStatement" === nodeType || "ForOfStatement" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + +//# sourceMappingURL=replacement.js.map + + +/***/ }), + +/***/ 94138: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +class Binding { + constructor({ + identifier, + scope, + path, + kind + }) { + this.identifier = void 0; + this.scope = void 0; + this.path = void 0; + this.kind = void 0; + this.constantViolations = []; + this.constant = true; + this.referencePaths = []; + this.referenced = false; + this.references = 0; + this.identifier = identifier; + this.scope = scope; + this.path = path; + this.kind = kind; + if ((kind === "var" || kind === "hoisted") && isDeclaredInLoop(path)) { + this.reassign(path); } + this.clearValue(); } - return false; -} -function isFunction(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "ObjectMethod" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + deoptValue() { + this.clearValue(); + this.hasDeoptedValue = true; } - return false; -} -function isFunctionParent(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "ObjectMethod" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType || "StaticBlock" === nodeType || "TSModuleBlock" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + setValue(value) { + if (this.hasDeoptedValue) return; + this.hasValue = true; + this.value = value; } - return false; -} -function isPureish(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "ArrowFunctionExpression" === nodeType || "BigIntLiteral" === nodeType || "DecimalLiteral" === nodeType || nodeType === "Placeholder" && "StringLiteral" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + clearValue() { + this.hasDeoptedValue = false; + this.hasValue = false; + this.value = null; } - return false; -} -function isDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("FunctionDeclaration" === nodeType || "VariableDeclaration" === nodeType || "ClassDeclaration" === nodeType || "ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ImportDeclaration" === nodeType || "DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "InterfaceDeclaration" === nodeType || "OpaqueType" === nodeType || "TypeAlias" === nodeType || "EnumDeclaration" === nodeType || "TSDeclareFunction" === nodeType || "TSInterfaceDeclaration" === nodeType || "TSTypeAliasDeclaration" === nodeType || "TSEnumDeclaration" === nodeType || "TSModuleDeclaration" === nodeType || nodeType === "Placeholder" && "Declaration" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + reassign(path) { + this.constant = false; + if (this.constantViolations.indexOf(path) !== -1) { + return; } + this.constantViolations.push(path); } - return false; -} -function isPatternLike(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("Identifier" === nodeType || "RestElement" === nodeType || "AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ObjectPattern" === nodeType || "TSAsExpression" === nodeType || "TSSatisfiesExpression" === nodeType || "TSTypeAssertion" === nodeType || "TSNonNullExpression" === nodeType || nodeType === "Placeholder" && ("Pattern" === node.expectedNode || "Identifier" === node.expectedNode)) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + reference(path) { + if (this.referencePaths.indexOf(path) !== -1) { + return; } + this.referenced = true; + this.references++; + this.referencePaths.push(path); } - return false; -} -function isLVal(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("Identifier" === nodeType || "MemberExpression" === nodeType || "RestElement" === nodeType || "AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ObjectPattern" === nodeType || "TSParameterProperty" === nodeType || "TSAsExpression" === nodeType || "TSSatisfiesExpression" === nodeType || "TSTypeAssertion" === nodeType || "TSNonNullExpression" === nodeType || nodeType === "Placeholder" && ("Pattern" === node.expectedNode || "Identifier" === node.expectedNode)) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + dereference() { + this.references--; + this.referenced = !!this.references; } - return false; } -function isTSEntityName(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("Identifier" === nodeType || "TSQualifiedName" === nodeType || nodeType === "Placeholder" && "Identifier" === node.expectedNode) { - if (typeof opts === "undefined") { +exports["default"] = Binding; +function isDeclaredInLoop(path) { + for (let { + parentPath, + key + } = path; parentPath; ({ + parentPath, + key + } = parentPath)) { + if (parentPath.isFunctionParent()) return false; + if (parentPath.isWhile() || parentPath.isForXStatement() || parentPath.isForStatement() && key === "body") { return true; - } else { - return (0, _shallowEqual.default)(node, opts); } } return false; } -function isLiteral(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "TemplateLiteral" === nodeType || "BigIntLiteral" === nodeType || "DecimalLiteral" === nodeType || nodeType === "Placeholder" && "StringLiteral" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + +//# sourceMappingURL=binding.js.map + + +/***/ }), + +/***/ 45461: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _renamer = __nccwpck_require__(74364); +var _index = __nccwpck_require__(22382); +var _binding = __nccwpck_require__(94138); +var _globals = __nccwpck_require__(47629); +var _t = __nccwpck_require__(68948); +var t = _t; +var _cache = __nccwpck_require__(12640); +var _visitors = __nccwpck_require__(24464); +const { + NOT_LOCAL_BINDING, + callExpression, + cloneNode, + getBindingIdentifiers, + identifier, + isArrayExpression, + isBinary, + isClass, + isClassBody, + isClassDeclaration, + isExportAllDeclaration, + isExportDefaultDeclaration, + isExportNamedDeclaration, + isFunctionDeclaration, + isIdentifier, + isImportDeclaration, + isLiteral, + isMethod, + isModuleSpecifier, + isNullLiteral, + isObjectExpression, + isProperty, + isPureish, + isRegExpLiteral, + isSuper, + isTaggedTemplateExpression, + isTemplateLiteral, + isThisExpression, + isUnaryExpression, + isVariableDeclaration, + matchesPattern, + memberExpression, + numericLiteral, + toIdentifier, + variableDeclaration, + variableDeclarator, + isRecordExpression, + isTupleExpression, + isObjectProperty, + isTopicReference, + isMetaProperty, + isPrivateName, + isExportDeclaration, + buildUndefinedNode +} = _t; +function gatherNodeParts(node, parts) { + switch (node == null ? void 0 : node.type) { + default: + if (isImportDeclaration(node) || isExportDeclaration(node)) { + var _node$specifiers; + if ((isExportAllDeclaration(node) || isExportNamedDeclaration(node) || isImportDeclaration(node)) && node.source) { + gatherNodeParts(node.source, parts); + } else if ((isExportNamedDeclaration(node) || isImportDeclaration(node)) && (_node$specifiers = node.specifiers) != null && _node$specifiers.length) { + for (const e of node.specifiers) gatherNodeParts(e, parts); + } else if ((isExportDefaultDeclaration(node) || isExportNamedDeclaration(node)) && node.declaration) { + gatherNodeParts(node.declaration, parts); + } + } else if (isModuleSpecifier(node)) { + gatherNodeParts(node.local, parts); + } else if (isLiteral(node) && !isNullLiteral(node) && !isRegExpLiteral(node) && !isTemplateLiteral(node)) { + parts.push(node.value); + } + break; + case "MemberExpression": + case "OptionalMemberExpression": + case "JSXMemberExpression": + gatherNodeParts(node.object, parts); + gatherNodeParts(node.property, parts); + break; + case "Identifier": + case "JSXIdentifier": + parts.push(node.name); + break; + case "CallExpression": + case "OptionalCallExpression": + case "NewExpression": + gatherNodeParts(node.callee, parts); + break; + case "ObjectExpression": + case "ObjectPattern": + for (const e of node.properties) { + gatherNodeParts(e, parts); + } + break; + case "SpreadElement": + case "RestElement": + gatherNodeParts(node.argument, parts); + break; + case "ObjectProperty": + case "ObjectMethod": + case "ClassProperty": + case "ClassMethod": + case "ClassPrivateProperty": + case "ClassPrivateMethod": + gatherNodeParts(node.key, parts); + break; + case "ThisExpression": + parts.push("this"); + break; + case "Super": + parts.push("super"); + break; + case "Import": + parts.push("import"); + break; + case "DoExpression": + parts.push("do"); + break; + case "YieldExpression": + parts.push("yield"); + gatherNodeParts(node.argument, parts); + break; + case "AwaitExpression": + parts.push("await"); + gatherNodeParts(node.argument, parts); + break; + case "AssignmentExpression": + gatherNodeParts(node.left, parts); + break; + case "VariableDeclarator": + gatherNodeParts(node.id, parts); + break; + case "FunctionExpression": + case "FunctionDeclaration": + case "ClassExpression": + case "ClassDeclaration": + gatherNodeParts(node.id, parts); + break; + case "PrivateName": + gatherNodeParts(node.id, parts); + break; + case "ParenthesizedExpression": + gatherNodeParts(node.expression, parts); + break; + case "UnaryExpression": + case "UpdateExpression": + gatherNodeParts(node.argument, parts); + break; + case "MetaProperty": + gatherNodeParts(node.meta, parts); + gatherNodeParts(node.property, parts); + break; + case "JSXElement": + gatherNodeParts(node.openingElement, parts); + break; + case "JSXOpeningElement": + gatherNodeParts(node.name, parts); + break; + case "JSXFragment": + gatherNodeParts(node.openingFragment, parts); + break; + case "JSXOpeningFragment": + parts.push("Fragment"); + break; + case "JSXNamespacedName": + gatherNodeParts(node.namespace, parts); + gatherNodeParts(node.name, parts); + break; } - return false; } -function isImmutable(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "BigIntLiteral" === nodeType || "JSXAttribute" === nodeType || "JSXClosingElement" === nodeType || "JSXElement" === nodeType || "JSXExpressionContainer" === nodeType || "JSXSpreadChild" === nodeType || "JSXOpeningElement" === nodeType || "JSXText" === nodeType || "JSXFragment" === nodeType || "JSXOpeningFragment" === nodeType || "JSXClosingFragment" === nodeType || "DecimalLiteral" === nodeType || nodeType === "Placeholder" && "StringLiteral" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +const collectorVisitor = { + ForStatement(path) { + const declar = path.get("init"); + if (declar.isVar()) { + const { + scope + } = path; + const parentScope = scope.getFunctionParent() || scope.getProgramParent(); + parentScope.registerBinding("var", declar); } - } - return false; -} -function isUserWhitespacable(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ObjectMethod" === nodeType || "ObjectProperty" === nodeType || "ObjectTypeInternalSlot" === nodeType || "ObjectTypeCallProperty" === nodeType || "ObjectTypeIndexer" === nodeType || "ObjectTypeProperty" === nodeType || "ObjectTypeSpreadProperty" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + }, + Declaration(path) { + if (path.isBlockScoped()) return; + if (path.isImportDeclaration()) return; + if (path.isExportDeclaration()) return; + const parent = path.scope.getFunctionParent() || path.scope.getProgramParent(); + parent.registerDeclaration(path); + }, + ImportDeclaration(path) { + const parent = path.scope.getBlockParent(); + parent.registerDeclaration(path); + }, + ReferencedIdentifier(path, state) { + state.references.push(path); + }, + ForXStatement(path, state) { + const left = path.get("left"); + if (left.isPattern() || left.isIdentifier()) { + state.constantViolations.push(path); + } else if (left.isVar()) { + const { + scope + } = path; + const parentScope = scope.getFunctionParent() || scope.getProgramParent(); + parentScope.registerBinding("var", left); } - } - return false; -} -function isMethod(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ObjectMethod" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + }, + ExportDeclaration: { + exit(path) { + const { + node, + scope + } = path; + if (isExportAllDeclaration(node)) return; + const declar = node.declaration; + if (isClassDeclaration(declar) || isFunctionDeclaration(declar)) { + const id = declar.id; + if (!id) return; + const binding = scope.getBinding(id.name); + binding == null || binding.reference(path); + } else if (isVariableDeclaration(declar)) { + for (const decl of declar.declarations) { + for (const name of Object.keys(getBindingIdentifiers(decl))) { + const binding = scope.getBinding(name); + binding == null || binding.reference(path); + } + } + } } - } - return false; -} -function isObjectMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ObjectMethod" === nodeType || "ObjectProperty" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + }, + LabeledStatement(path) { + path.scope.getBlockParent().registerDeclaration(path); + }, + AssignmentExpression(path, state) { + state.assignments.push(path); + }, + UpdateExpression(path, state) { + state.constantViolations.push(path); + }, + UnaryExpression(path, state) { + if (path.node.operator === "delete") { + state.constantViolations.push(path); } - } - return false; -} -function isProperty(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ObjectProperty" === nodeType || "ClassProperty" === nodeType || "ClassAccessorProperty" === nodeType || "ClassPrivateProperty" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + }, + BlockScoped(path) { + let scope = path.scope; + if (scope.path === path) scope = scope.parent; + const parent = scope.getBlockParent(); + parent.registerDeclaration(path); + if (path.isClassDeclaration() && path.node.id) { + const id = path.node.id; + const name = id.name; + path.scope.bindings[name] = path.scope.parent.getBinding(name); } - } - return false; -} -function isUnaryLike(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("UnaryExpression" === nodeType || "SpreadElement" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + }, + CatchClause(path) { + path.scope.registerBinding("let", path); + }, + Function(path) { + const params = path.get("params"); + for (const param of params) { + path.scope.registerBinding("param", param); + } + if (path.isFunctionExpression() && path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { + path.scope.registerBinding("local", path.get("id"), path); } - } - return false; -} -function isPattern(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ObjectPattern" === nodeType || nodeType === "Placeholder" && "Pattern" === node.expectedNode) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + }, + ClassExpression(path) { + if (path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { + path.scope.registerBinding("local", path); } } - return false; -} -function isClass(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ClassExpression" === nodeType || "ClassDeclaration" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); +}; +let uid = 0; +class Scope { + constructor(path) { + this.uid = void 0; + this.path = void 0; + this.block = void 0; + this.labels = void 0; + this.inited = void 0; + this.bindings = void 0; + this.references = void 0; + this.globals = void 0; + this.uids = void 0; + this.data = void 0; + this.crawling = void 0; + const { + node + } = path; + const cached = _cache.scope.get(node); + if ((cached == null ? void 0 : cached.path) === path) { + return cached; } + _cache.scope.set(node, this); + this.uid = uid++; + this.block = node; + this.path = path; + this.labels = new Map(); + this.inited = false; } - return false; -} -function isImportOrExportDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ImportDeclaration" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get parent() { + var _parent; + let parent, + path = this.path; + do { + const shouldSkip = path.key === "key" || path.listKey === "decorators"; + path = path.parentPath; + if (shouldSkip && path.isMethod()) path = path.parentPath; + if (path && path.isScope()) parent = path; + } while (path && !parent); + return (_parent = parent) == null ? void 0 : _parent.scope; } - return false; -} -function isExportDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get parentBlock() { + return this.path.parent; } - return false; -} -function isModuleSpecifier(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ExportSpecifier" === nodeType || "ImportDefaultSpecifier" === nodeType || "ImportNamespaceSpecifier" === nodeType || "ImportSpecifier" === nodeType || "ExportNamespaceSpecifier" === nodeType || "ExportDefaultSpecifier" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + get hub() { + return this.path.hub; } - return false; -} -function isAccessor(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ClassAccessorProperty" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + traverse(node, opts, state) { + (0, _index.default)(node, opts, this, state, this.path); } - return false; -} -function isPrivate(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("ClassPrivateProperty" === nodeType || "ClassPrivateMethod" === nodeType || "PrivateName" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + generateDeclaredUidIdentifier(name) { + const id = this.generateUidIdentifier(name); + this.push({ + id + }); + return cloneNode(id); } - return false; -} -function isFlow(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("AnyTypeAnnotation" === nodeType || "ArrayTypeAnnotation" === nodeType || "BooleanTypeAnnotation" === nodeType || "BooleanLiteralTypeAnnotation" === nodeType || "NullLiteralTypeAnnotation" === nodeType || "ClassImplements" === nodeType || "DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "DeclaredPredicate" === nodeType || "ExistsTypeAnnotation" === nodeType || "FunctionTypeAnnotation" === nodeType || "FunctionTypeParam" === nodeType || "GenericTypeAnnotation" === nodeType || "InferredPredicate" === nodeType || "InterfaceExtends" === nodeType || "InterfaceDeclaration" === nodeType || "InterfaceTypeAnnotation" === nodeType || "IntersectionTypeAnnotation" === nodeType || "MixedTypeAnnotation" === nodeType || "EmptyTypeAnnotation" === nodeType || "NullableTypeAnnotation" === nodeType || "NumberLiteralTypeAnnotation" === nodeType || "NumberTypeAnnotation" === nodeType || "ObjectTypeAnnotation" === nodeType || "ObjectTypeInternalSlot" === nodeType || "ObjectTypeCallProperty" === nodeType || "ObjectTypeIndexer" === nodeType || "ObjectTypeProperty" === nodeType || "ObjectTypeSpreadProperty" === nodeType || "OpaqueType" === nodeType || "QualifiedTypeIdentifier" === nodeType || "StringLiteralTypeAnnotation" === nodeType || "StringTypeAnnotation" === nodeType || "SymbolTypeAnnotation" === nodeType || "ThisTypeAnnotation" === nodeType || "TupleTypeAnnotation" === nodeType || "TypeofTypeAnnotation" === nodeType || "TypeAlias" === nodeType || "TypeAnnotation" === nodeType || "TypeCastExpression" === nodeType || "TypeParameter" === nodeType || "TypeParameterDeclaration" === nodeType || "TypeParameterInstantiation" === nodeType || "UnionTypeAnnotation" === nodeType || "Variance" === nodeType || "VoidTypeAnnotation" === nodeType || "EnumDeclaration" === nodeType || "EnumBooleanBody" === nodeType || "EnumNumberBody" === nodeType || "EnumStringBody" === nodeType || "EnumSymbolBody" === nodeType || "EnumBooleanMember" === nodeType || "EnumNumberMember" === nodeType || "EnumStringMember" === nodeType || "EnumDefaultedMember" === nodeType || "IndexedAccessType" === nodeType || "OptionalIndexedAccessType" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + generateUidIdentifier(name) { + return identifier(this.generateUid(name)); } - return false; -} -function isFlowType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("AnyTypeAnnotation" === nodeType || "ArrayTypeAnnotation" === nodeType || "BooleanTypeAnnotation" === nodeType || "BooleanLiteralTypeAnnotation" === nodeType || "NullLiteralTypeAnnotation" === nodeType || "ExistsTypeAnnotation" === nodeType || "FunctionTypeAnnotation" === nodeType || "GenericTypeAnnotation" === nodeType || "InterfaceTypeAnnotation" === nodeType || "IntersectionTypeAnnotation" === nodeType || "MixedTypeAnnotation" === nodeType || "EmptyTypeAnnotation" === nodeType || "NullableTypeAnnotation" === nodeType || "NumberLiteralTypeAnnotation" === nodeType || "NumberTypeAnnotation" === nodeType || "ObjectTypeAnnotation" === nodeType || "StringLiteralTypeAnnotation" === nodeType || "StringTypeAnnotation" === nodeType || "SymbolTypeAnnotation" === nodeType || "ThisTypeAnnotation" === nodeType || "TupleTypeAnnotation" === nodeType || "TypeofTypeAnnotation" === nodeType || "UnionTypeAnnotation" === nodeType || "VoidTypeAnnotation" === nodeType || "IndexedAccessType" === nodeType || "OptionalIndexedAccessType" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + generateUid(name = "temp") { + name = toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, ""); + let uid; + let i = 1; + do { + uid = this._generateUid(name, i); + i++; + } while (this.hasLabel(uid) || this.hasBinding(uid) || this.hasGlobal(uid) || this.hasReference(uid)); + const program = this.getProgramParent(); + program.references[uid] = true; + program.uids[uid] = true; + return uid; } - return false; -} -function isFlowBaseAnnotation(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("AnyTypeAnnotation" === nodeType || "BooleanTypeAnnotation" === nodeType || "NullLiteralTypeAnnotation" === nodeType || "MixedTypeAnnotation" === nodeType || "EmptyTypeAnnotation" === nodeType || "NumberTypeAnnotation" === nodeType || "StringTypeAnnotation" === nodeType || "SymbolTypeAnnotation" === nodeType || "ThisTypeAnnotation" === nodeType || "VoidTypeAnnotation" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + _generateUid(name, i) { + let id = name; + if (i > 1) id += i; + return `_${id}`; } - return false; -} -function isFlowDeclaration(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "InterfaceDeclaration" === nodeType || "OpaqueType" === nodeType || "TypeAlias" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + generateUidBasedOnNode(node, defaultName) { + const parts = []; + gatherNodeParts(node, parts); + let id = parts.join("$"); + id = id.replace(/^_/, "") || defaultName || "ref"; + return this.generateUid(id.slice(0, 20)); } - return false; -} -function isFlowPredicate(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("DeclaredPredicate" === nodeType || "InferredPredicate" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + generateUidIdentifierBasedOnNode(node, defaultName) { + return identifier(this.generateUidBasedOnNode(node, defaultName)); } - return false; -} -function isEnumBody(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("EnumBooleanBody" === nodeType || "EnumNumberBody" === nodeType || "EnumStringBody" === nodeType || "EnumSymbolBody" === nodeType) { - if (typeof opts === "undefined") { + isStatic(node) { + if (isThisExpression(node) || isSuper(node) || isTopicReference(node)) { return true; - } else { - return (0, _shallowEqual.default)(node, opts); } - } - return false; -} -function isEnumMember(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("EnumBooleanMember" === nodeType || "EnumNumberMember" === nodeType || "EnumStringMember" === nodeType || "EnumDefaultedMember" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (isIdentifier(node)) { + const binding = this.getBinding(node.name); + if (binding) { + return binding.constant; + } else { + return this.hasBinding(node.name); + } } + return false; } - return false; -} -function isJSX(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("JSXAttribute" === nodeType || "JSXClosingElement" === nodeType || "JSXElement" === nodeType || "JSXEmptyExpression" === nodeType || "JSXExpressionContainer" === nodeType || "JSXSpreadChild" === nodeType || "JSXIdentifier" === nodeType || "JSXMemberExpression" === nodeType || "JSXNamespacedName" === nodeType || "JSXOpeningElement" === nodeType || "JSXSpreadAttribute" === nodeType || "JSXText" === nodeType || "JSXFragment" === nodeType || "JSXOpeningFragment" === nodeType || "JSXClosingFragment" === nodeType) { - if (typeof opts === "undefined") { - return true; + maybeGenerateMemoised(node, dontPush) { + if (this.isStatic(node)) { + return null; } else { - return (0, _shallowEqual.default)(node, opts); + const id = this.generateUidIdentifierBasedOnNode(node); + if (!dontPush) { + this.push({ + id + }); + return cloneNode(id); + } + return id; } } - return false; -} -function isMiscellaneous(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("Noop" === nodeType || "Placeholder" === nodeType || "V8IntrinsicIdentifier" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + checkBlockScopedCollisions(local, kind, name, id) { + if (kind === "param") return; + if (local.kind === "local") return; + const duplicate = kind === "let" || local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param" && kind === "const"; + if (duplicate) { + throw this.hub.buildError(id, `Duplicate declaration "${name}"`, TypeError); } } - return false; -} -function isTypeScript(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("TSParameterProperty" === nodeType || "TSDeclareFunction" === nodeType || "TSDeclareMethod" === nodeType || "TSQualifiedName" === nodeType || "TSCallSignatureDeclaration" === nodeType || "TSConstructSignatureDeclaration" === nodeType || "TSPropertySignature" === nodeType || "TSMethodSignature" === nodeType || "TSIndexSignature" === nodeType || "TSAnyKeyword" === nodeType || "TSBooleanKeyword" === nodeType || "TSBigIntKeyword" === nodeType || "TSIntrinsicKeyword" === nodeType || "TSNeverKeyword" === nodeType || "TSNullKeyword" === nodeType || "TSNumberKeyword" === nodeType || "TSObjectKeyword" === nodeType || "TSStringKeyword" === nodeType || "TSSymbolKeyword" === nodeType || "TSUndefinedKeyword" === nodeType || "TSUnknownKeyword" === nodeType || "TSVoidKeyword" === nodeType || "TSThisType" === nodeType || "TSFunctionType" === nodeType || "TSConstructorType" === nodeType || "TSTypeReference" === nodeType || "TSTypePredicate" === nodeType || "TSTypeQuery" === nodeType || "TSTypeLiteral" === nodeType || "TSArrayType" === nodeType || "TSTupleType" === nodeType || "TSOptionalType" === nodeType || "TSRestType" === nodeType || "TSNamedTupleMember" === nodeType || "TSUnionType" === nodeType || "TSIntersectionType" === nodeType || "TSConditionalType" === nodeType || "TSInferType" === nodeType || "TSParenthesizedType" === nodeType || "TSTypeOperator" === nodeType || "TSIndexedAccessType" === nodeType || "TSMappedType" === nodeType || "TSLiteralType" === nodeType || "TSExpressionWithTypeArguments" === nodeType || "TSInterfaceDeclaration" === nodeType || "TSInterfaceBody" === nodeType || "TSTypeAliasDeclaration" === nodeType || "TSInstantiationExpression" === nodeType || "TSAsExpression" === nodeType || "TSSatisfiesExpression" === nodeType || "TSTypeAssertion" === nodeType || "TSEnumDeclaration" === nodeType || "TSEnumMember" === nodeType || "TSModuleDeclaration" === nodeType || "TSModuleBlock" === nodeType || "TSImportType" === nodeType || "TSImportEqualsDeclaration" === nodeType || "TSExternalModuleReference" === nodeType || "TSNonNullExpression" === nodeType || "TSExportAssignment" === nodeType || "TSNamespaceExportDeclaration" === nodeType || "TSTypeAnnotation" === nodeType || "TSTypeParameterInstantiation" === nodeType || "TSTypeParameterDeclaration" === nodeType || "TSTypeParameter" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + rename(oldName, newName) { + const binding = this.getBinding(oldName); + if (binding) { + newName || (newName = this.generateUidIdentifier(oldName).name); + const renamer = new _renamer.default(binding, oldName, newName); + { + renamer.rename(arguments[2]); + } } } - return false; -} -function isTSTypeElement(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("TSCallSignatureDeclaration" === nodeType || "TSConstructSignatureDeclaration" === nodeType || "TSPropertySignature" === nodeType || "TSMethodSignature" === nodeType || "TSIndexSignature" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + _renameFromMap(map, oldName, newName, value) { + if (map[oldName]) { + map[newName] = value; + map[oldName] = null; } } - return false; -} -function isTSType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("TSAnyKeyword" === nodeType || "TSBooleanKeyword" === nodeType || "TSBigIntKeyword" === nodeType || "TSIntrinsicKeyword" === nodeType || "TSNeverKeyword" === nodeType || "TSNullKeyword" === nodeType || "TSNumberKeyword" === nodeType || "TSObjectKeyword" === nodeType || "TSStringKeyword" === nodeType || "TSSymbolKeyword" === nodeType || "TSUndefinedKeyword" === nodeType || "TSUnknownKeyword" === nodeType || "TSVoidKeyword" === nodeType || "TSThisType" === nodeType || "TSFunctionType" === nodeType || "TSConstructorType" === nodeType || "TSTypeReference" === nodeType || "TSTypePredicate" === nodeType || "TSTypeQuery" === nodeType || "TSTypeLiteral" === nodeType || "TSArrayType" === nodeType || "TSTupleType" === nodeType || "TSOptionalType" === nodeType || "TSRestType" === nodeType || "TSUnionType" === nodeType || "TSIntersectionType" === nodeType || "TSConditionalType" === nodeType || "TSInferType" === nodeType || "TSParenthesizedType" === nodeType || "TSTypeOperator" === nodeType || "TSIndexedAccessType" === nodeType || "TSMappedType" === nodeType || "TSLiteralType" === nodeType || "TSExpressionWithTypeArguments" === nodeType || "TSImportType" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); - } + dump() { + const sep = "-".repeat(60); + console.log(sep); + let scope = this; + do { + console.log("#", scope.block.type); + for (const name of Object.keys(scope.bindings)) { + const binding = scope.bindings[name]; + console.log(" -", name, { + constant: binding.constant, + references: binding.references, + violations: binding.constantViolations.length, + kind: binding.kind + }); + } + } while (scope = scope.parent); + console.log(sep); } - return false; -} -function isTSBaseType(node, opts) { - if (!node) return false; - const nodeType = node.type; - if ("TSAnyKeyword" === nodeType || "TSBooleanKeyword" === nodeType || "TSBigIntKeyword" === nodeType || "TSIntrinsicKeyword" === nodeType || "TSNeverKeyword" === nodeType || "TSNullKeyword" === nodeType || "TSNumberKeyword" === nodeType || "TSObjectKeyword" === nodeType || "TSStringKeyword" === nodeType || "TSSymbolKeyword" === nodeType || "TSUndefinedKeyword" === nodeType || "TSUnknownKeyword" === nodeType || "TSVoidKeyword" === nodeType || "TSThisType" === nodeType || "TSLiteralType" === nodeType) { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + toArray(node, i, arrayLikeIsIterable) { + if (isIdentifier(node)) { + const binding = this.getBinding(node.name); + if (binding != null && binding.constant && binding.path.isGenericType("Array")) { + return node; + } } - } - return false; -} -function isNumberLiteral(node, opts) { - (0, _deprecationWarning.default)("isNumberLiteral", "isNumericLiteral"); - if (!node) return false; - const nodeType = node.type; - if (nodeType === "NumberLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (isArrayExpression(node)) { + return node; } - } - return false; -} -function isRegexLiteral(node, opts) { - (0, _deprecationWarning.default)("isRegexLiteral", "isRegExpLiteral"); - if (!node) return false; - const nodeType = node.type; - if (nodeType === "RegexLiteral") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (isIdentifier(node, { + name: "arguments" + })) { + return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"), identifier("prototype")), identifier("slice")), identifier("call")), [node]); } - } - return false; -} -function isRestProperty(node, opts) { - (0, _deprecationWarning.default)("isRestProperty", "isRestElement"); - if (!node) return false; - const nodeType = node.type; - if (nodeType === "RestProperty") { - if (typeof opts === "undefined") { - return true; + let helperName; + const args = [node]; + if (i === true) { + helperName = "toConsumableArray"; + } else if (typeof i === "number") { + args.push(numericLiteral(i)); + helperName = "slicedToArray"; } else { - return (0, _shallowEqual.default)(node, opts); + helperName = "toArray"; } - } - return false; -} -function isSpreadProperty(node, opts) { - (0, _deprecationWarning.default)("isSpreadProperty", "isSpreadElement"); - if (!node) return false; - const nodeType = node.type; - if (nodeType === "SpreadProperty") { - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + if (arrayLikeIsIterable) { + args.unshift(this.hub.addHelper(helperName)); + helperName = "maybeArrayLike"; } + return callExpression(this.hub.addHelper(helperName), args); } - return false; -} -function isModuleDeclaration(node, opts) { - (0, _deprecationWarning.default)("isModuleDeclaration", "isImportOrExportDeclaration"); - return isImportOrExportDeclaration(node, opts); -} - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 73217: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = is; -var _shallowEqual = __nccwpck_require__(28271); -var _isType = __nccwpck_require__(88467); -var _isPlaceholderType = __nccwpck_require__(38480); -var _definitions = __nccwpck_require__(59357); -function is(type, node, opts) { - if (!node) return false; - const matches = (0, _isType.default)(node.type, type); - if (!matches) { - if (!opts && node.type === "Placeholder" && type in _definitions.FLIPPED_ALIAS_KEYS) { - return (0, _isPlaceholderType.default)(node.expectedNode, type); - } - return false; + hasLabel(name) { + return !!this.getLabel(name); } - if (typeof opts === "undefined") { - return true; - } else { - return (0, _shallowEqual.default)(node, opts); + getLabel(name) { + return this.labels.get(name); } -} - -//# sourceMappingURL=is.js.map - - -/***/ }), - -/***/ 36245: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isBinding; -var _getBindingIdentifiers = __nccwpck_require__(9853); -function isBinding(node, parent, grandparent) { - if (grandparent && node.type === "Identifier" && parent.type === "ObjectProperty" && grandparent.type === "ObjectExpression") { - return false; + registerLabel(path) { + this.labels.set(path.node.label.name, path); } - const keys = _getBindingIdentifiers.default.keys[parent.type]; - if (keys) { - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const val = parent[key]; - if (Array.isArray(val)) { - if (val.indexOf(node) >= 0) return true; - } else { - if (val === node) return true; + registerDeclaration(path) { + if (path.isLabeledStatement()) { + this.registerLabel(path); + } else if (path.isFunctionDeclaration()) { + this.registerBinding("hoisted", path.get("id"), path); + } else if (path.isVariableDeclaration()) { + const declarations = path.get("declarations"); + const { + kind + } = path.node; + for (const declar of declarations) { + this.registerBinding(kind === "using" || kind === "await using" ? "const" : kind, declar); } - } - } - return false; -} - -//# sourceMappingURL=isBinding.js.map - - -/***/ }), - -/***/ 95087: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isBlockScoped; -var _generated = __nccwpck_require__(99451); -var _isLet = __nccwpck_require__(44850); -function isBlockScoped(node) { - return (0, _generated.isFunctionDeclaration)(node) || (0, _generated.isClassDeclaration)(node) || (0, _isLet.default)(node); -} - -//# sourceMappingURL=isBlockScoped.js.map - - -/***/ }), - -/***/ 1592: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isImmutable; -var _isType = __nccwpck_require__(88467); -var _generated = __nccwpck_require__(99451); -function isImmutable(node) { - if ((0, _isType.default)(node.type, "Immutable")) return true; - if ((0, _generated.isIdentifier)(node)) { - if (node.name === "undefined") { - return true; - } else { - return false; - } - } - return false; -} - -//# sourceMappingURL=isImmutable.js.map - - -/***/ }), - -/***/ 44850: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isLet; -var _generated = __nccwpck_require__(99451); -var _constants = __nccwpck_require__(49384); -function isLet(node) { - return (0, _generated.isVariableDeclaration)(node) && (node.kind !== "var" || node[_constants.BLOCK_SCOPED_SYMBOL]); -} - -//# sourceMappingURL=isLet.js.map - - -/***/ }), - -/***/ 6609: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isNode; -var _definitions = __nccwpck_require__(59357); -function isNode(node) { - return !!(node && _definitions.VISITOR_KEYS[node.type]); -} - -//# sourceMappingURL=isNode.js.map - - -/***/ }), - -/***/ 50776: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isNodesEquivalent; -var _definitions = __nccwpck_require__(59357); -function isNodesEquivalent(a, b) { - if (typeof a !== "object" || typeof b !== "object" || a == null || b == null) { - return a === b; + } else if (path.isClassDeclaration()) { + if (path.node.declare) return; + this.registerBinding("let", path); + } else if (path.isImportDeclaration()) { + const isTypeDeclaration = path.node.importKind === "type" || path.node.importKind === "typeof"; + const specifiers = path.get("specifiers"); + for (const specifier of specifiers) { + const isTypeSpecifier = isTypeDeclaration || specifier.isImportSpecifier() && (specifier.node.importKind === "type" || specifier.node.importKind === "typeof"); + this.registerBinding(isTypeSpecifier ? "unknown" : "module", specifier); + } + } else if (path.isExportDeclaration()) { + const declar = path.get("declaration"); + if (declar.isClassDeclaration() || declar.isFunctionDeclaration() || declar.isVariableDeclaration()) { + this.registerDeclaration(declar); + } + } else { + this.registerBinding("unknown", path); + } } - if (a.type !== b.type) { - return false; + buildUndefinedNode() { + return buildUndefinedNode(); } - const fields = Object.keys(_definitions.NODE_FIELDS[a.type] || a.type); - const visitorKeys = _definitions.VISITOR_KEYS[a.type]; - for (const field of fields) { - const val_a = a[field]; - const val_b = b[field]; - if (typeof val_a !== typeof val_b) { - return false; + registerConstantViolation(path) { + const ids = path.getBindingIdentifiers(); + for (const name of Object.keys(ids)) { + var _this$getBinding; + (_this$getBinding = this.getBinding(name)) == null || _this$getBinding.reassign(path); } - if (val_a == null && val_b == null) { - continue; - } else if (val_a == null || val_b == null) { - return false; + } + registerBinding(kind, path, bindingPath = path) { + if (!kind) throw new ReferenceError("no `kind`"); + if (path.isVariableDeclaration()) { + const declarators = path.get("declarations"); + for (const declar of declarators) { + this.registerBinding(kind, declar); + } + return; } - if (Array.isArray(val_a)) { - if (!Array.isArray(val_b)) { + const parent = this.getProgramParent(); + const ids = path.getOuterBindingIdentifiers(true); + for (const name of Object.keys(ids)) { + parent.references[name] = true; + for (const id of ids[name]) { + const local = this.getOwnBinding(name); + if (local) { + if (local.identifier === id) continue; + this.checkBlockScopedCollisions(local, kind, name, id); + } + if (local) { + this.registerConstantViolation(bindingPath); + } else { + this.bindings[name] = new _binding.default({ + identifier: id, + scope: this, + path: bindingPath, + kind: kind + }); + } + } + } + } + addGlobal(node) { + this.globals[node.name] = node; + } + hasUid(name) { + let scope = this; + do { + if (scope.uids[name]) return true; + } while (scope = scope.parent); + return false; + } + hasGlobal(name) { + let scope = this; + do { + if (scope.globals[name]) return true; + } while (scope = scope.parent); + return false; + } + hasReference(name) { + return !!this.getProgramParent().references[name]; + } + isPure(node, constantsOnly) { + if (isIdentifier(node)) { + const binding = this.getBinding(node.name); + if (!binding) return false; + if (constantsOnly) return binding.constant; + return true; + } else if (isThisExpression(node) || isMetaProperty(node) || isTopicReference(node) || isPrivateName(node)) { + return true; + } else if (isClass(node)) { + var _node$decorators; + if (node.superClass && !this.isPure(node.superClass, constantsOnly)) { return false; } - if (val_a.length !== val_b.length) { + if (((_node$decorators = node.decorators) == null ? void 0 : _node$decorators.length) > 0) { return false; } - for (let i = 0; i < val_a.length; i++) { - if (!isNodesEquivalent(val_a[i], val_b[i])) { + return this.isPure(node.body, constantsOnly); + } else if (isClassBody(node)) { + for (const method of node.body) { + if (!this.isPure(method, constantsOnly)) return false; + } + return true; + } else if (isBinary(node)) { + return this.isPure(node.left, constantsOnly) && this.isPure(node.right, constantsOnly); + } else if (isArrayExpression(node) || isTupleExpression(node)) { + for (const elem of node.elements) { + if (elem !== null && !this.isPure(elem, constantsOnly)) return false; + } + return true; + } else if (isObjectExpression(node) || isRecordExpression(node)) { + for (const prop of node.properties) { + if (!this.isPure(prop, constantsOnly)) return false; + } + return true; + } else if (isMethod(node)) { + var _node$decorators2; + if (node.computed && !this.isPure(node.key, constantsOnly)) return false; + if (((_node$decorators2 = node.decorators) == null ? void 0 : _node$decorators2.length) > 0) { + return false; + } + return true; + } else if (isProperty(node)) { + var _node$decorators3; + if (node.computed && !this.isPure(node.key, constantsOnly)) return false; + if (((_node$decorators3 = node.decorators) == null ? void 0 : _node$decorators3.length) > 0) { + return false; + } + if (isObjectProperty(node) || node.static) { + if (node.value !== null && !this.isPure(node.value, constantsOnly)) { return false; } } - continue; + return true; + } else if (isUnaryExpression(node)) { + return this.isPure(node.argument, constantsOnly); + } else if (isTaggedTemplateExpression(node)) { + return matchesPattern(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly); + } else if (isTemplateLiteral(node)) { + for (const expression of node.expressions) { + if (!this.isPure(expression, constantsOnly)) return false; + } + return true; + } else { + return isPureish(node); } - if (typeof val_a === "object" && !(visitorKeys != null && visitorKeys.includes(field))) { - for (const key of Object.keys(val_a)) { - if (val_a[key] !== val_b[key]) { - return false; + } + setData(key, val) { + return this.data[key] = val; + } + getData(key) { + let scope = this; + do { + const data = scope.data[key]; + if (data != null) return data; + } while (scope = scope.parent); + } + removeData(key) { + let scope = this; + do { + const data = scope.data[key]; + if (data != null) scope.data[key] = null; + } while (scope = scope.parent); + } + init() { + if (!this.inited) { + this.inited = true; + this.crawl(); + } + } + crawl() { + const path = this.path; + this.references = Object.create(null); + this.bindings = Object.create(null); + this.globals = Object.create(null); + this.uids = Object.create(null); + this.data = Object.create(null); + const programParent = this.getProgramParent(); + if (programParent.crawling) return; + const state = { + references: [], + constantViolations: [], + assignments: [] + }; + this.crawling = true; + if (path.type !== "Program" && (0, _visitors.isExplodedVisitor)(collectorVisitor)) { + for (const visit of collectorVisitor.enter) { + visit.call(state, path, state); + } + const typeVisitors = collectorVisitor[path.type]; + if (typeVisitors) { + for (const visit of typeVisitors.enter) { + visit.call(state, path, state); } } - continue; } - if (!isNodesEquivalent(val_a, val_b)) { - return false; + path.traverse(collectorVisitor, state); + this.crawling = false; + for (const path of state.assignments) { + const ids = path.getBindingIdentifiers(); + for (const name of Object.keys(ids)) { + if (path.scope.getBinding(name)) continue; + programParent.addGlobal(ids[name]); + } + path.scope.registerConstantViolation(path); + } + for (const ref of state.references) { + const binding = ref.scope.getBinding(ref.node.name); + if (binding) { + binding.reference(ref); + } else { + programParent.addGlobal(ref.node); + } + } + for (const path of state.constantViolations) { + path.scope.registerConstantViolation(path); } } - return true; -} - -//# sourceMappingURL=isNodesEquivalent.js.map - - -/***/ }), - -/***/ 38480: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isPlaceholderType; -var _definitions = __nccwpck_require__(59357); -function isPlaceholderType(placeholderType, targetType) { - if (placeholderType === targetType) return true; - const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType]; - if (aliases) { - for (const alias of aliases) { - if (targetType === alias) return true; + push(opts) { + let path = this.path; + if (path.isPattern()) { + path = this.getPatternParent().path; + } else if (!path.isBlockStatement() && !path.isProgram()) { + path = this.getBlockParent().path; + } + if (path.isSwitchStatement()) { + path = (this.getFunctionParent() || this.getProgramParent()).path; + } + const { + init, + unique, + kind = "var", + id + } = opts; + if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && t.isCallExpression(path.parent, { + callee: path.node + }) && path.parent.arguments.length <= path.node.params.length && t.isIdentifier(id)) { + path.pushContainer("params", id); + path.scope.registerBinding("param", path.get("params")[path.node.params.length - 1]); + return; + } + if (path.isLoop() || path.isCatchClause() || path.isFunction()) { + path.ensureBlock(); + path = path.get("body"); + } + const blockHoist = opts._blockHoist == null ? 2 : opts._blockHoist; + const dataKey = `declaration:${kind}:${blockHoist}`; + let declarPath = !unique && path.getData(dataKey); + if (!declarPath) { + const declar = variableDeclaration(kind, []); + declar._blockHoist = blockHoist; + [declarPath] = path.unshiftContainer("body", [declar]); + if (!unique) path.setData(dataKey, declarPath); } + const declarator = variableDeclarator(id, init); + const len = declarPath.node.declarations.push(declarator); + path.scope.registerBinding(kind, declarPath.get("declarations")[len - 1]); } - return false; -} - -//# sourceMappingURL=isPlaceholderType.js.map - - -/***/ }), - -/***/ 70247: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isReferenced; -function isReferenced(node, parent, grandparent) { - switch (parent.type) { - case "MemberExpression": - case "OptionalMemberExpression": - if (parent.property === node) { - return !!parent.computed; + getProgramParent() { + let scope = this; + do { + if (scope.path.isProgram()) { + return scope; } - return parent.object === node; - case "JSXMemberExpression": - return parent.object === node; - case "VariableDeclarator": - return parent.init === node; - case "ArrowFunctionExpression": - return parent.body === node; - case "PrivateName": - return false; - case "ClassMethod": - case "ClassPrivateMethod": - case "ObjectMethod": - if (parent.key === node) { - return !!parent.computed; + } while (scope = scope.parent); + throw new Error("Couldn't find a Program"); + } + getFunctionParent() { + let scope = this; + do { + if (scope.path.isFunctionParent()) { + return scope; } - return false; - case "ObjectProperty": - if (parent.key === node) { - return !!parent.computed; + } while (scope = scope.parent); + return null; + } + getBlockParent() { + let scope = this; + do { + if (scope.path.isBlockParent()) { + return scope; } - return !grandparent || grandparent.type !== "ObjectPattern"; - case "ClassProperty": - case "ClassAccessorProperty": - if (parent.key === node) { - return !!parent.computed; + } while (scope = scope.parent); + throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); + } + getPatternParent() { + let scope = this; + do { + if (!scope.path.isPattern()) { + return scope.getBlockParent(); } - return true; - case "ClassPrivateProperty": - return parent.key !== node; - case "ClassDeclaration": - case "ClassExpression": - return parent.superClass === node; - case "AssignmentExpression": - return parent.right === node; - case "AssignmentPattern": - return parent.right === node; - case "LabeledStatement": - return false; - case "CatchClause": - return false; - case "RestElement": - return false; - case "BreakStatement": - case "ContinueStatement": - return false; - case "FunctionDeclaration": - case "FunctionExpression": - return false; - case "ExportNamespaceSpecifier": - case "ExportDefaultSpecifier": - return false; - case "ExportSpecifier": - if (grandparent != null && grandparent.source) { - return false; + } while (scope = scope.parent.parent); + throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); + } + getAllBindings() { + const ids = Object.create(null); + let scope = this; + do { + for (const key of Object.keys(scope.bindings)) { + if (key in ids === false) { + ids[key] = scope.bindings[key]; + } } - return parent.local === node; - case "ImportDefaultSpecifier": - case "ImportNamespaceSpecifier": - case "ImportSpecifier": - return false; - case "ImportAttribute": - return false; - case "JSXAttribute": - return false; - case "ObjectPattern": - case "ArrayPattern": - return false; - case "MetaProperty": - return false; - case "ObjectTypeProperty": - return parent.key !== node; - case "TSEnumMember": - return parent.id !== node; - case "TSPropertySignature": - if (parent.key === node) { - return !!parent.computed; + scope = scope.parent; + } while (scope); + return ids; + } + getAllBindingsOfKind(...kinds) { + const ids = Object.create(null); + for (const kind of kinds) { + let scope = this; + do { + for (const name of Object.keys(scope.bindings)) { + const binding = scope.bindings[name]; + if (binding.kind === kind) ids[name] = binding; + } + scope = scope.parent; + } while (scope); + } + return ids; + } + bindingIdentifierEquals(name, node) { + return this.getBindingIdentifier(name) === node; + } + getBinding(name) { + let scope = this; + let previousPath; + do { + const binding = scope.getOwnBinding(name); + if (binding) { + var _previousPath; + if ((_previousPath = previousPath) != null && _previousPath.isPattern() && binding.kind !== "param" && binding.kind !== "local") {} else { + return binding; + } + } else if (!binding && name === "arguments" && scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { + break; } - return true; + previousPath = scope.path; + } while (scope = scope.parent); } - return true; -} - -//# sourceMappingURL=isReferenced.js.map - - -/***/ }), - -/***/ 46430: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isScope; -var _generated = __nccwpck_require__(99451); -function isScope(node, parent) { - if ((0, _generated.isBlockStatement)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { - return false; + getOwnBinding(name) { + return this.bindings[name]; } - if ((0, _generated.isPattern)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { - return true; + getBindingIdentifier(name) { + var _this$getBinding2; + return (_this$getBinding2 = this.getBinding(name)) == null ? void 0 : _this$getBinding2.identifier; } - return (0, _generated.isScopable)(node); -} - -//# sourceMappingURL=isScope.js.map - - -/***/ }), - -/***/ 60647: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isSpecifierDefault; -var _generated = __nccwpck_require__(99451); -function isSpecifierDefault(specifier) { - return (0, _generated.isImportDefaultSpecifier)(specifier) || (0, _generated.isIdentifier)(specifier.imported || specifier.exported, { - name: "default" - }); -} - -//# sourceMappingURL=isSpecifierDefault.js.map - - -/***/ }), - -/***/ 88467: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isType; -var _definitions = __nccwpck_require__(59357); -function isType(nodeType, targetType) { - if (nodeType === targetType) return true; - if (_definitions.ALIAS_KEYS[targetType]) return false; - const aliases = _definitions.FLIPPED_ALIAS_KEYS[targetType]; - if (aliases) { - if (aliases[0] === nodeType) return true; - for (const alias of aliases) { - if (nodeType === alias) return true; + getOwnBindingIdentifier(name) { + const binding = this.bindings[name]; + return binding == null ? void 0 : binding.identifier; + } + hasOwnBinding(name) { + return !!this.getOwnBinding(name); + } + hasBinding(name, opts) { + var _opts, _opts2, _opts3; + if (!name) return false; + if (this.hasOwnBinding(name)) return true; + { + if (typeof opts === "boolean") opts = { + noGlobals: opts + }; } + if (this.parentHasBinding(name, opts)) return true; + if (!((_opts = opts) != null && _opts.noUids) && this.hasUid(name)) return true; + if (!((_opts2 = opts) != null && _opts2.noGlobals) && Scope.globals.includes(name)) return true; + if (!((_opts3 = opts) != null && _opts3.noGlobals) && Scope.contextVariables.includes(name)) return true; + return false; + } + parentHasBinding(name, opts) { + var _this$parent; + return (_this$parent = this.parent) == null ? void 0 : _this$parent.hasBinding(name, opts); + } + moveBindingTo(name, scope) { + const info = this.getBinding(name); + if (info) { + info.scope.removeOwnBinding(name); + info.scope = scope; + scope.bindings[name] = info; + } + } + removeOwnBinding(name) { + delete this.bindings[name]; + } + removeBinding(name) { + var _this$getBinding3; + (_this$getBinding3 = this.getBinding(name)) == null || _this$getBinding3.scope.removeOwnBinding(name); + let scope = this; + do { + if (scope.uids[name]) { + scope.uids[name] = false; + } + } while (scope = scope.parent); } - return false; } +exports["default"] = Scope; +Scope.globals = Object.keys(_globals.builtin); +Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; -//# sourceMappingURL=isType.js.map +//# sourceMappingURL=index.js.map /***/ }), -/***/ 17355: +/***/ 74364: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -140196,19 +82016,119 @@ function isType(nodeType, targetType) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = isValidES3Identifier; -var _isValidIdentifier = __nccwpck_require__(42897); -const RESERVED_WORDS_ES3_ONLY = new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implements", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transient", "volatile"]); -function isValidES3Identifier(name) { - return (0, _isValidIdentifier.default)(name) && !RESERVED_WORDS_ES3_ONLY.has(name); +exports["default"] = void 0; +var _helperSplitExportDeclaration = __nccwpck_require__(62605); +var t = __nccwpck_require__(68948); +var _helperEnvironmentVisitor = __nccwpck_require__(91707); +var _traverseNode = __nccwpck_require__(48670); +var _visitors = __nccwpck_require__(24464); +const renameVisitor = { + ReferencedIdentifier({ + node + }, state) { + if (node.name === state.oldName) { + node.name = state.newName; + } + }, + Scope(path, state) { + if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) { + path.skip(); + if (path.isMethod()) { + (0, _helperEnvironmentVisitor.requeueComputedKeyAndDecorators)(path); + } + } + }, + ObjectProperty({ + node, + scope + }, state) { + const { + name + } = node.key; + if (node.shorthand && (name === state.oldName || name === state.newName) && scope.getBindingIdentifier(name) === state.binding.identifier) { + var _node$extra; + node.shorthand = false; + if ((_node$extra = node.extra) != null && _node$extra.shorthand) node.extra.shorthand = false; + } + }, + "AssignmentExpression|Declaration|VariableDeclarator"(path, state) { + if (path.isVariableDeclaration()) return; + const ids = path.getOuterBindingIdentifiers(); + for (const name in ids) { + if (name === state.oldName) ids[name].name = state.newName; + } + } +}; +class Renamer { + constructor(binding, oldName, newName) { + this.newName = newName; + this.oldName = oldName; + this.binding = binding; + } + maybeConvertFromExportDeclaration(parentDeclar) { + const maybeExportDeclar = parentDeclar.parentPath; + if (!maybeExportDeclar.isExportDeclaration()) { + return; + } + if (maybeExportDeclar.isExportDefaultDeclaration()) { + const { + declaration + } = maybeExportDeclar.node; + if (t.isDeclaration(declaration) && !declaration.id) { + return; + } + } + if (maybeExportDeclar.isExportAllDeclaration()) { + return; + } + (0, _helperSplitExportDeclaration.default)(maybeExportDeclar); + } + maybeConvertFromClassFunctionDeclaration(path) { + return path; + } + maybeConvertFromClassFunctionExpression(path) { + return path; + } + rename() { + const { + binding, + oldName, + newName + } = this; + const { + scope, + path + } = binding; + const parentDeclar = path.find(path => path.isDeclaration() || path.isFunctionExpression() || path.isClassExpression()); + if (parentDeclar) { + const bindingIds = parentDeclar.getOuterBindingIdentifiers(); + if (bindingIds[oldName] === binding.identifier) { + this.maybeConvertFromExportDeclaration(parentDeclar); + } + } + const blockToTraverse = arguments[0] || scope.block; + (0, _traverseNode.traverseNode)(blockToTraverse, (0, _visitors.explode)(renameVisitor), scope, this, scope.path, { + discriminant: true + }); + if (!arguments[0]) { + scope.removeOwnBinding(oldName); + scope.bindings[newName] = binding; + this.binding.identifier.name = newName; + } + if (parentDeclar) { + this.maybeConvertFromClassFunctionDeclaration(path); + this.maybeConvertFromClassFunctionExpression(path); + } + } } +exports["default"] = Renamer; -//# sourceMappingURL=isValidES3Identifier.js.map +//# sourceMappingURL=renamer.js.map /***/ }), -/***/ 42897: +/***/ 48670: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -140217,24 +82137,35 @@ function isValidES3Identifier(name) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = isValidIdentifier; -var _helperValidatorIdentifier = __nccwpck_require__(21974); -function isValidIdentifier(name, reserved = true) { - if (typeof name !== "string") return false; - if (reserved) { - if ((0, _helperValidatorIdentifier.isKeyword)(name) || (0, _helperValidatorIdentifier.isStrictReservedWord)(name, true)) { - return false; +exports.traverseNode = traverseNode; +var _context = __nccwpck_require__(46701); +var _t = __nccwpck_require__(68948); +const { + VISITOR_KEYS +} = _t; +function traverseNode(node, opts, scope, state, path, skipKeys, visitSelf) { + const keys = VISITOR_KEYS[node.type]; + if (!keys) return false; + const context = new _context.default(scope, opts, state, path); + if (visitSelf) { + if (skipKeys != null && skipKeys[path.parentKey]) return false; + return context.visitQueue([path]); + } + for (const key of keys) { + if (skipKeys != null && skipKeys[key]) continue; + if (context.visit(node, key)) { + return true; } } - return (0, _helperValidatorIdentifier.isIdentifierName)(name); + return false; } -//# sourceMappingURL=isValidIdentifier.js.map +//# sourceMappingURL=traverse-node.js.map /***/ }), -/***/ 89886: +/***/ 24464: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -140243,142 +82174,227 @@ function isValidIdentifier(name, reserved = true) { Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = isVar; -var _generated = __nccwpck_require__(99451); -var _constants = __nccwpck_require__(49384); -function isVar(node) { - return (0, _generated.isVariableDeclaration)(node, { - kind: "var" - }) && !node[_constants.BLOCK_SCOPED_SYMBOL]; +exports.explode = explode; +exports.isExplodedVisitor = isExplodedVisitor; +exports.merge = merge; +exports.verify = verify; +var virtualTypes = __nccwpck_require__(14514); +var virtualTypesValidators = __nccwpck_require__(21412); +var _t = __nccwpck_require__(68948); +const { + DEPRECATED_KEYS, + DEPRECATED_ALIASES, + FLIPPED_ALIAS_KEYS, + TYPES, + __internal__deprecationWarning: deprecationWarning +} = _t; +function isVirtualType(type) { + return type in virtualTypes; } - -//# sourceMappingURL=isVar.js.map - - -/***/ }), - -/***/ 54280: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = matchesPattern; -var _generated = __nccwpck_require__(99451); -function matchesPattern(member, match, allowPartial) { - if (!(0, _generated.isMemberExpression)(member)) return false; - const parts = Array.isArray(match) ? match : match.split("."); - const nodes = []; - let node; - for (node = member; (0, _generated.isMemberExpression)(node); node = node.object) { - nodes.push(node.property); +function isExplodedVisitor(visitor) { + return visitor == null ? void 0 : visitor._exploded; +} +function explode(visitor) { + if (isExplodedVisitor(visitor)) return visitor; + visitor._exploded = true; + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + const parts = nodeType.split("|"); + if (parts.length === 1) continue; + const fns = visitor[nodeType]; + delete visitor[nodeType]; + for (const part of parts) { + visitor[part] = fns; + } } - nodes.push(node); - if (nodes.length < parts.length) return false; - if (!allowPartial && nodes.length > parts.length) return false; - for (let i = 0, j = nodes.length - 1; i < parts.length; i++, j--) { - const node = nodes[j]; - let value; - if ((0, _generated.isIdentifier)(node)) { - value = node.name; - } else if ((0, _generated.isStringLiteral)(node)) { - value = node.value; - } else if ((0, _generated.isThisExpression)(node)) { - value = "this"; + verify(visitor); + delete visitor.__esModule; + ensureEntranceObjects(visitor); + ensureCallbackArrays(visitor); + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + if (!isVirtualType(nodeType)) continue; + const fns = visitor[nodeType]; + for (const type of Object.keys(fns)) { + fns[type] = wrapCheck(nodeType, fns[type]); + } + delete visitor[nodeType]; + const types = virtualTypes[nodeType]; + if (types !== null) { + for (const type of types) { + if (visitor[type]) { + mergePair(visitor[type], fns); + } else { + visitor[type] = fns; + } + } } else { - return false; + mergePair(visitor, fns); } - if (parts[i] !== value) return false; } - return true; + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + let aliases = FLIPPED_ALIAS_KEYS[nodeType]; + if (nodeType in DEPRECATED_KEYS) { + const deprecatedKey = DEPRECATED_KEYS[nodeType]; + deprecationWarning(nodeType, deprecatedKey, "Visitor "); + aliases = [deprecatedKey]; + } else if (nodeType in DEPRECATED_ALIASES) { + const deprecatedAlias = DEPRECATED_ALIASES[nodeType]; + deprecationWarning(nodeType, deprecatedAlias, "Visitor "); + aliases = FLIPPED_ALIAS_KEYS[deprecatedAlias]; + } + if (!aliases) continue; + const fns = visitor[nodeType]; + delete visitor[nodeType]; + for (const alias of aliases) { + const existing = visitor[alias]; + if (existing) { + mergePair(existing, fns); + } else { + visitor[alias] = Object.assign({}, fns); + } + } + } + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + ensureCallbackArrays(visitor[nodeType]); + } + return visitor; } - -//# sourceMappingURL=matchesPattern.js.map - - -/***/ }), - -/***/ 62502: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isCompatTag; -function isCompatTag(tagName) { - return !!tagName && /^[a-z]/.test(tagName); +function verify(visitor) { + if (visitor._verified) return; + if (typeof visitor === "function") { + throw new Error("You passed `traverse()` a function when it expected a visitor object, " + "are you sure you didn't mean `{ enter: Function }`?"); + } + for (const nodeType of Object.keys(visitor)) { + if (nodeType === "enter" || nodeType === "exit") { + validateVisitorMethods(nodeType, visitor[nodeType]); + } + if (shouldIgnoreKey(nodeType)) continue; + if (TYPES.indexOf(nodeType) < 0) { + throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`); + } + const visitors = visitor[nodeType]; + if (typeof visitors === "object") { + for (const visitorKey of Object.keys(visitors)) { + if (visitorKey === "enter" || visitorKey === "exit") { + validateVisitorMethods(`${nodeType}.${visitorKey}`, visitors[visitorKey]); + } else { + throw new Error("You passed `traverse()` a visitor object with the property " + `${nodeType} that has the invalid property ${visitorKey}`); + } + } + } + } + visitor._verified = true; } - -//# sourceMappingURL=isCompatTag.js.map - - -/***/ }), - -/***/ 68309: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _buildMatchMemberExpression = __nccwpck_require__(15694); -const isReactComponent = (0, _buildMatchMemberExpression.default)("React.Component"); -var _default = isReactComponent; -exports["default"] = _default; - -//# sourceMappingURL=isReactComponent.js.map - - -/***/ }), - -/***/ 6000: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = validate; -exports.validateChild = validateChild; -exports.validateField = validateField; -var _definitions = __nccwpck_require__(59357); -function validate(node, key, val) { - if (!node) return; - const fields = _definitions.NODE_FIELDS[node.type]; - if (!fields) return; - const field = fields[key]; - validateField(node, key, val, field); - validateChild(node, key, val); +function validateVisitorMethods(path, val) { + const fns = [].concat(val); + for (const fn of fns) { + if (typeof fn !== "function") { + throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`); + } + } } -function validateField(node, key, val, field) { - if (!(field != null && field.validate)) return; - if (field.optional && val == null) return; - field.validate(node, key, val); +function merge(visitors, states = [], wrapper) { + const mergedVisitor = {}; + for (let i = 0; i < visitors.length; i++) { + const visitor = explode(visitors[i]); + const state = states[i]; + let topVisitor = visitor; + if (state || wrapper) { + topVisitor = wrapWithStateOrWrapper(topVisitor, state, wrapper); + } + mergePair(mergedVisitor, topVisitor); + for (const key of Object.keys(visitor)) { + if (shouldIgnoreKey(key)) continue; + let typeVisitor = visitor[key]; + if (state || wrapper) { + typeVisitor = wrapWithStateOrWrapper(typeVisitor, state, wrapper); + } + const nodeVisitor = mergedVisitor[key] || (mergedVisitor[key] = {}); + mergePair(nodeVisitor, typeVisitor); + } + } + ; + return mergedVisitor; } -function validateChild(node, key, val) { - if (val == null) return; - const validate = _definitions.NODE_PARENT_VALIDATIONS[val.type]; - if (!validate) return; - validate(node, key, val); +function wrapWithStateOrWrapper(oldVisitor, state, wrapper) { + const newVisitor = {}; + for (const phase of ["enter", "exit"]) { + let fns = oldVisitor[phase]; + if (!Array.isArray(fns)) continue; + fns = fns.map(function (fn) { + let newFn = fn; + if (state) { + newFn = function (path) { + fn.call(state, path, state); + }; + } + if (wrapper) { + newFn = wrapper(state == null ? void 0 : state.key, phase, newFn); + } + if (newFn !== fn) { + newFn.toString = () => fn.toString(); + } + return newFn; + }); + newVisitor[phase] = fns; + } + return newVisitor; +} +function ensureEntranceObjects(obj) { + for (const key of Object.keys(obj)) { + if (shouldIgnoreKey(key)) continue; + const fns = obj[key]; + if (typeof fns === "function") { + obj[key] = { + enter: fns + }; + } + } +} +function ensureCallbackArrays(obj) { + if (obj.enter && !Array.isArray(obj.enter)) obj.enter = [obj.enter]; + if (obj.exit && !Array.isArray(obj.exit)) obj.exit = [obj.exit]; +} +function wrapCheck(nodeType, fn) { + const fnKey = `is${nodeType}`; + const validator = virtualTypesValidators[fnKey]; + const newFn = function (path) { + if (validator.call(path)) { + return fn.apply(this, arguments); + } + }; + newFn.toString = () => fn.toString(); + return newFn; +} +function shouldIgnoreKey(key) { + if (key[0] === "_") return true; + if (key === "enter" || key === "exit" || key === "shouldSkip") return true; + if (key === "denylist" || key === "noScope" || key === "skipKeys") { + return true; + } + { + if (key === "blacklist") { + return true; + } + } + return false; +} +function mergePair(dest, src) { + for (const phase of ["enter", "exit"]) { + if (!src[phase]) continue; + dest[phase] = [].concat(dest[phase] || [], src[phase]); + } } -//# sourceMappingURL=validate.js.map +//# sourceMappingURL=visitors.js.map /***/ }), -/***/ 3286: +/***/ 50957: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -140388,7 +82404,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = assertNode; -var _isNode = __nccwpck_require__(38163); +var _isNode = __nccwpck_require__(93972); function assertNode(node) { if (!(0, _isNode.default)(node)) { var _node$type; @@ -140402,7 +82418,7 @@ function assertNode(node) { /***/ }), -/***/ 67624: +/***/ 1105: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -140516,6 +82532,7 @@ exports.assertImport = assertImport; exports.assertImportAttribute = assertImportAttribute; exports.assertImportDeclaration = assertImportDeclaration; exports.assertImportDefaultSpecifier = assertImportDefaultSpecifier; +exports.assertImportExpression = assertImportExpression; exports.assertImportNamespaceSpecifier = assertImportNamespaceSpecifier; exports.assertImportOrExportDeclaration = assertImportOrExportDeclaration; exports.assertImportSpecifier = assertImportSpecifier; @@ -140714,8 +82731,8 @@ exports.assertWhile = assertWhile; exports.assertWhileStatement = assertWhileStatement; exports.assertWithStatement = assertWithStatement; exports.assertYieldExpression = assertYieldExpression; -var _is = __nccwpck_require__(1285); -var _deprecationWarning = __nccwpck_require__(20008); +var _is = __nccwpck_require__(60212); +var _deprecationWarning = __nccwpck_require__(29236); function assert(type, node, opts) { if (!(0, _is.default)(type, node, opts)) { throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, ` + `but instead got "${node.type}".`); @@ -140919,6 +82936,9 @@ function assertImportNamespaceSpecifier(node, opts) { function assertImportSpecifier(node, opts) { assert("ImportSpecifier", node, opts); } +function assertImportExpression(node, opts) { + assert("ImportExpression", node, opts); +} function assertMetaProperty(node, opts) { assert("MetaProperty", node, opts); } @@ -141641,7 +83661,7 @@ function assertModuleDeclaration(node, opts) { /***/ }), -/***/ 68811: +/***/ 59195: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -141651,14 +83671,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = createFlowUnionType; -var _generated = __nccwpck_require__(52849); -var _removeTypeDuplicates = __nccwpck_require__(11331); +var _index = __nccwpck_require__(61007); +var _removeTypeDuplicates = __nccwpck_require__(29710); function createFlowUnionType(types) { const flattened = (0, _removeTypeDuplicates.default)(types); if (flattened.length === 1) { return flattened[0]; } else { - return (0, _generated.unionTypeAnnotation)(flattened); + return (0, _index.unionTypeAnnotation)(flattened); } } @@ -141667,7 +83687,7 @@ function createFlowUnionType(types) { /***/ }), -/***/ 74259: +/***/ 6402: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -141677,27 +83697,26 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _generated = __nccwpck_require__(52849); -var _default = createTypeAnnotationBasedOnTypeof; -exports["default"] = _default; +var _index = __nccwpck_require__(61007); +var _default = exports["default"] = createTypeAnnotationBasedOnTypeof; function createTypeAnnotationBasedOnTypeof(type) { switch (type) { case "string": - return (0, _generated.stringTypeAnnotation)(); + return (0, _index.stringTypeAnnotation)(); case "number": - return (0, _generated.numberTypeAnnotation)(); + return (0, _index.numberTypeAnnotation)(); case "undefined": - return (0, _generated.voidTypeAnnotation)(); + return (0, _index.voidTypeAnnotation)(); case "boolean": - return (0, _generated.booleanTypeAnnotation)(); + return (0, _index.booleanTypeAnnotation)(); case "function": - return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Function")); + return (0, _index.genericTypeAnnotation)((0, _index.identifier)("Function")); case "object": - return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Object")); + return (0, _index.genericTypeAnnotation)((0, _index.identifier)("Object")); case "symbol": - return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Symbol")); + return (0, _index.genericTypeAnnotation)((0, _index.identifier)("Symbol")); case "bigint": - return (0, _generated.anyTypeAnnotation)(); + return (0, _index.anyTypeAnnotation)(); } throw new Error("Invalid typeof value: " + type); } @@ -141707,7 +83726,7 @@ function createTypeAnnotationBasedOnTypeof(type) { /***/ }), -/***/ 52849: +/***/ 61007: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -141798,6 +83817,7 @@ exports["import"] = _import; exports.importAttribute = importAttribute; exports.importDeclaration = importDeclaration; exports.importDefaultSpecifier = importDefaultSpecifier; +exports.importExpression = importExpression; exports.importNamespaceSpecifier = importNamespaceSpecifier; exports.importSpecifier = importSpecifier; exports.indexedAccessType = indexedAccessType; @@ -141969,8 +83989,8 @@ exports.voidTypeAnnotation = voidTypeAnnotation; exports.whileStatement = whileStatement; exports.withStatement = withStatement; exports.yieldExpression = yieldExpression; -var _validateNode = __nccwpck_require__(47352); -var _deprecationWarning = __nccwpck_require__(20008); +var _validateNode = __nccwpck_require__(42201); +var _deprecationWarning = __nccwpck_require__(29236); function arrayExpression(elements = []) { return (0, _validateNode.default)({ type: "ArrayExpression", @@ -142371,7 +84391,7 @@ function classExpression(id = null, superClass = null, body, decorators = null) decorators }); } -function classDeclaration(id, superClass = null, body, decorators = null) { +function classDeclaration(id = null, superClass = null, body, decorators = null) { return (0, _validateNode.default)({ type: "ClassDeclaration", id, @@ -142442,6 +84462,13 @@ function importSpecifier(local, imported) { imported }); } +function importExpression(source, options = null) { + return (0, _validateNode.default)({ + type: "ImportExpression", + source, + options + }); +} function metaProperty(meta, property) { return (0, _validateNode.default)({ type: "MetaProperty", @@ -143294,12 +85321,11 @@ function tsConstructSignatureDeclaration(typeParameters = null, parameters, type typeAnnotation }); } -function tsPropertySignature(key, typeAnnotation = null, initializer = null) { +function tsPropertySignature(key, typeAnnotation = null) { return (0, _validateNode.default)({ type: "TSPropertySignature", key, typeAnnotation, - initializer, kind: null }); } @@ -143700,7 +85726,7 @@ function SpreadProperty(argument) { /***/ }), -/***/ 8506: +/***/ 49112: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -144201,6 +86227,12 @@ Object.defineProperty(exports, "ImportDefaultSpecifier", ({ return _index.importDefaultSpecifier; } })); +Object.defineProperty(exports, "ImportExpression", ({ + enumerable: true, + get: function () { + return _index.importExpression; + } +})); Object.defineProperty(exports, "ImportNamespaceSpecifier", ({ enumerable: true, get: function () { @@ -145227,14 +87259,34 @@ Object.defineProperty(exports, "YieldExpression", ({ return _index.yieldExpression; } })); -var _index = __nccwpck_require__(52849); +var _index = __nccwpck_require__(61007); //# sourceMappingURL=uppercase.js.map /***/ }), -/***/ 91131: +/***/ 62883: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.buildUndefinedNode = buildUndefinedNode; +var _index = __nccwpck_require__(61007); +function buildUndefinedNode() { + return (0, _index.unaryExpression)("void", (0, _index.numericLiteral)(0), true); +} + +//# sourceMappingURL=productions.js.map + + +/***/ }), + +/***/ 69446: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145244,18 +87296,18 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = buildChildren; -var _generated = __nccwpck_require__(24625); -var _cleanJSXElementLiteralChild = __nccwpck_require__(95340); +var _index = __nccwpck_require__(27834); +var _cleanJSXElementLiteralChild = __nccwpck_require__(52529); function buildChildren(node) { const elements = []; for (let i = 0; i < node.children.length; i++) { let child = node.children[i]; - if ((0, _generated.isJSXText)(child)) { + if ((0, _index.isJSXText)(child)) { (0, _cleanJSXElementLiteralChild.default)(child, elements); continue; } - if ((0, _generated.isJSXExpressionContainer)(child)) child = child.expression; - if ((0, _generated.isJSXEmptyExpression)(child)) continue; + if ((0, _index.isJSXExpressionContainer)(child)) child = child.expression; + if ((0, _index.isJSXEmptyExpression)(child)) continue; elements.push(child); } return elements; @@ -145266,7 +87318,7 @@ function buildChildren(node) { /***/ }), -/***/ 19654: +/***/ 61707: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145276,18 +87328,18 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = createTSUnionType; -var _generated = __nccwpck_require__(52849); -var _removeTypeDuplicates = __nccwpck_require__(53232); -var _index = __nccwpck_require__(24625); +var _index = __nccwpck_require__(61007); +var _removeTypeDuplicates = __nccwpck_require__(9489); +var _index2 = __nccwpck_require__(27834); function createTSUnionType(typeAnnotations) { const types = typeAnnotations.map(type => { - return (0, _index.isTSTypeAnnotation)(type) ? type.typeAnnotation : type; + return (0, _index2.isTSTypeAnnotation)(type) ? type.typeAnnotation : type; }); const flattened = (0, _removeTypeDuplicates.default)(types); if (flattened.length === 1) { return flattened[0]; } else { - return (0, _generated.tsUnionType)(flattened); + return (0, _index.tsUnionType)(flattened); } } @@ -145296,7 +87348,7 @@ function createTSUnionType(typeAnnotations) { /***/ }), -/***/ 47352: +/***/ 42201: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145306,10 +87358,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = validateNode; -var _validate = __nccwpck_require__(43588); -var _ = __nccwpck_require__(53501); +var _validate = __nccwpck_require__(99850); +var _index = __nccwpck_require__(68948); function validateNode(node) { - const keys = _.BUILDER_KEYS[node.type]; + const keys = _index.BUILDER_KEYS[node.type]; for (const key of keys) { (0, _validate.default)(node, key, node[key]); } @@ -145321,7 +87373,7 @@ function validateNode(node) { /***/ }), -/***/ 66588: +/***/ 69784: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145331,7 +87383,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = clone; -var _cloneNode = __nccwpck_require__(94886); +var _cloneNode = __nccwpck_require__(93181); function clone(node) { return (0, _cloneNode.default)(node, false); } @@ -145341,7 +87393,7 @@ function clone(node) { /***/ }), -/***/ 31869: +/***/ 46650: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145351,7 +87403,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = cloneDeep; -var _cloneNode = __nccwpck_require__(94886); +var _cloneNode = __nccwpck_require__(93181); function cloneDeep(node) { return (0, _cloneNode.default)(node); } @@ -145361,7 +87413,7 @@ function cloneDeep(node) { /***/ }), -/***/ 1560: +/***/ 12065: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145371,7 +87423,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = cloneDeepWithoutLoc; -var _cloneNode = __nccwpck_require__(94886); +var _cloneNode = __nccwpck_require__(93181); function cloneDeepWithoutLoc(node) { return (0, _cloneNode.default)(node, true, true); } @@ -145381,7 +87433,7 @@ function cloneDeepWithoutLoc(node) { /***/ }), -/***/ 94886: +/***/ 93181: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145391,8 +87443,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = cloneNode; -var _definitions = __nccwpck_require__(25441); -var _generated = __nccwpck_require__(24625); +var _index = __nccwpck_require__(26010); +var _index2 = __nccwpck_require__(27834); const has = Function.call.bind(Object.prototype.hasOwnProperty); function cloneIfNode(obj, deep, withoutLoc, commentsCache) { if (obj && typeof obj.type === "string") { @@ -145417,7 +87469,7 @@ function cloneNodeInternal(node, deep = true, withoutLoc = false, commentsCache) const newNode = { type: node.type }; - if ((0, _generated.isIdentifier)(node)) { + if ((0, _index2.isIdentifier)(node)) { newNode.name = node.name; if (has(node, "optional") && typeof node.optional === "boolean") { newNode.optional = node.optional; @@ -145425,13 +87477,13 @@ function cloneNodeInternal(node, deep = true, withoutLoc = false, commentsCache) if (has(node, "typeAnnotation")) { newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation; } - } else if (!has(_definitions.NODE_FIELDS, type)) { + } else if (!has(_index.NODE_FIELDS, type)) { throw new Error(`Unknown node type: "${type}"`); } else { - for (const field of Object.keys(_definitions.NODE_FIELDS[type])) { + for (const field of Object.keys(_index.NODE_FIELDS[type])) { if (has(node, field)) { if (deep) { - newNode[field] = (0, _generated.isFile)(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache); + newNode[field] = (0, _index2.isFile)(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache); } else { newNode[field] = node[field]; } @@ -145489,7 +87541,7 @@ function maybeCloneComments(comments, deep, withoutLoc, commentsCache) { /***/ }), -/***/ 20886: +/***/ 87258: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145499,7 +87551,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = cloneWithoutLoc; -var _cloneNode = __nccwpck_require__(94886); +var _cloneNode = __nccwpck_require__(93181); function cloneWithoutLoc(node) { return (0, _cloneNode.default)(node, false, true); } @@ -145509,7 +87561,7 @@ function cloneWithoutLoc(node) { /***/ }), -/***/ 24491: +/***/ 38046: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145519,7 +87571,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = addComment; -var _addComments = __nccwpck_require__(75355); +var _addComments = __nccwpck_require__(29577); function addComment(node, type, content, line) { return (0, _addComments.default)(node, type, [{ type: line ? "CommentLine" : "CommentBlock", @@ -145532,7 +87584,7 @@ function addComment(node, type, content, line) { /***/ }), -/***/ 75355: +/***/ 29577: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -145562,7 +87614,7 @@ function addComments(node, type, comments) { /***/ }), -/***/ 44427: +/***/ 47649: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145572,7 +87624,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = inheritInnerComments; -var _inherit = __nccwpck_require__(1822); +var _inherit = __nccwpck_require__(56666); function inheritInnerComments(child, parent) { (0, _inherit.default)("innerComments", child, parent); } @@ -145582,7 +87634,7 @@ function inheritInnerComments(child, parent) { /***/ }), -/***/ 30748: +/***/ 65278: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145592,7 +87644,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = inheritLeadingComments; -var _inherit = __nccwpck_require__(1822); +var _inherit = __nccwpck_require__(56666); function inheritLeadingComments(child, parent) { (0, _inherit.default)("leadingComments", child, parent); } @@ -145602,7 +87654,7 @@ function inheritLeadingComments(child, parent) { /***/ }), -/***/ 47825: +/***/ 86591: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145612,7 +87664,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = inheritTrailingComments; -var _inherit = __nccwpck_require__(1822); +var _inherit = __nccwpck_require__(56666); function inheritTrailingComments(child, parent) { (0, _inherit.default)("trailingComments", child, parent); } @@ -145622,7 +87674,7 @@ function inheritTrailingComments(child, parent) { /***/ }), -/***/ 3770: +/***/ 69664: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145632,9 +87684,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = inheritsComments; -var _inheritTrailingComments = __nccwpck_require__(47825); -var _inheritLeadingComments = __nccwpck_require__(30748); -var _inheritInnerComments = __nccwpck_require__(44427); +var _inheritTrailingComments = __nccwpck_require__(86591); +var _inheritLeadingComments = __nccwpck_require__(65278); +var _inheritInnerComments = __nccwpck_require__(47649); function inheritsComments(child, parent) { (0, _inheritTrailingComments.default)(child, parent); (0, _inheritLeadingComments.default)(child, parent); @@ -145647,7 +87699,7 @@ function inheritsComments(child, parent) { /***/ }), -/***/ 56058: +/***/ 35106: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145657,9 +87709,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = removeComments; -var _constants = __nccwpck_require__(23768); +var _index = __nccwpck_require__(38133); function removeComments(node) { - _constants.COMMENT_KEYS.forEach(key => { + _index.COMMENT_KEYS.forEach(key => { node[key] = null; }); return node; @@ -145670,7 +87722,7 @@ function removeComments(node) { /***/ }), -/***/ 35208: +/***/ 51751: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145680,114 +87732,64 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WHILE_TYPES = exports.USERWHITESPACABLE_TYPES = exports.UNARYLIKE_TYPES = exports.TYPESCRIPT_TYPES = exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.TSENTITYNAME_TYPES = exports.TSBASETYPE_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.STANDARDIZED_TYPES = exports.SCOPABLE_TYPES = exports.PUREISH_TYPES = exports.PROPERTY_TYPES = exports.PRIVATE_TYPES = exports.PATTERN_TYPES = exports.PATTERNLIKE_TYPES = exports.OBJECTMEMBER_TYPES = exports.MODULESPECIFIER_TYPES = exports.MODULEDECLARATION_TYPES = exports.MISCELLANEOUS_TYPES = exports.METHOD_TYPES = exports.LVAL_TYPES = exports.LOOP_TYPES = exports.LITERAL_TYPES = exports.JSX_TYPES = exports.IMPORTOREXPORTDECLARATION_TYPES = exports.IMMUTABLE_TYPES = exports.FUNCTION_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FOR_TYPES = exports.FORXSTATEMENT_TYPES = exports.FLOW_TYPES = exports.FLOWTYPE_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.EXPRESSION_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.ENUMMEMBER_TYPES = exports.ENUMBODY_TYPES = exports.DECLARATION_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.CLASS_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.BINARY_TYPES = exports.ACCESSOR_TYPES = void 0; -var _definitions = __nccwpck_require__(25441); -const STANDARDIZED_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Standardized"]; -exports.STANDARDIZED_TYPES = STANDARDIZED_TYPES; -const EXPRESSION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Expression"]; -exports.EXPRESSION_TYPES = EXPRESSION_TYPES; -const BINARY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Binary"]; -exports.BINARY_TYPES = BINARY_TYPES; -const SCOPABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Scopable"]; -exports.SCOPABLE_TYPES = SCOPABLE_TYPES; -const BLOCKPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["BlockParent"]; -exports.BLOCKPARENT_TYPES = BLOCKPARENT_TYPES; -const BLOCK_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Block"]; -exports.BLOCK_TYPES = BLOCK_TYPES; -const STATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Statement"]; -exports.STATEMENT_TYPES = STATEMENT_TYPES; -const TERMINATORLESS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Terminatorless"]; -exports.TERMINATORLESS_TYPES = TERMINATORLESS_TYPES; -const COMPLETIONSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["CompletionStatement"]; -exports.COMPLETIONSTATEMENT_TYPES = COMPLETIONSTATEMENT_TYPES; -const CONDITIONAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Conditional"]; -exports.CONDITIONAL_TYPES = CONDITIONAL_TYPES; -const LOOP_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Loop"]; -exports.LOOP_TYPES = LOOP_TYPES; -const WHILE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["While"]; -exports.WHILE_TYPES = WHILE_TYPES; -const EXPRESSIONWRAPPER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExpressionWrapper"]; -exports.EXPRESSIONWRAPPER_TYPES = EXPRESSIONWRAPPER_TYPES; -const FOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["For"]; -exports.FOR_TYPES = FOR_TYPES; -const FORXSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ForXStatement"]; -exports.FORXSTATEMENT_TYPES = FORXSTATEMENT_TYPES; -const FUNCTION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Function"]; -exports.FUNCTION_TYPES = FUNCTION_TYPES; -const FUNCTIONPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FunctionParent"]; -exports.FUNCTIONPARENT_TYPES = FUNCTIONPARENT_TYPES; -const PUREISH_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pureish"]; -exports.PUREISH_TYPES = PUREISH_TYPES; -const DECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Declaration"]; -exports.DECLARATION_TYPES = DECLARATION_TYPES; -const PATTERNLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["PatternLike"]; -exports.PATTERNLIKE_TYPES = PATTERNLIKE_TYPES; -const LVAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["LVal"]; -exports.LVAL_TYPES = LVAL_TYPES; -const TSENTITYNAME_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSEntityName"]; -exports.TSENTITYNAME_TYPES = TSENTITYNAME_TYPES; -const LITERAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Literal"]; -exports.LITERAL_TYPES = LITERAL_TYPES; -const IMMUTABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Immutable"]; -exports.IMMUTABLE_TYPES = IMMUTABLE_TYPES; -const USERWHITESPACABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UserWhitespacable"]; -exports.USERWHITESPACABLE_TYPES = USERWHITESPACABLE_TYPES; -const METHOD_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Method"]; -exports.METHOD_TYPES = METHOD_TYPES; -const OBJECTMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ObjectMember"]; -exports.OBJECTMEMBER_TYPES = OBJECTMEMBER_TYPES; -const PROPERTY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Property"]; -exports.PROPERTY_TYPES = PROPERTY_TYPES; -const UNARYLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UnaryLike"]; -exports.UNARYLIKE_TYPES = UNARYLIKE_TYPES; -const PATTERN_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pattern"]; -exports.PATTERN_TYPES = PATTERN_TYPES; -const CLASS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Class"]; -exports.CLASS_TYPES = CLASS_TYPES; -const IMPORTOREXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"]; -exports.IMPORTOREXPORTDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES; -const EXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExportDeclaration"]; -exports.EXPORTDECLARATION_TYPES = EXPORTDECLARATION_TYPES; -const MODULESPECIFIER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleSpecifier"]; -exports.MODULESPECIFIER_TYPES = MODULESPECIFIER_TYPES; -const ACCESSOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Accessor"]; -exports.ACCESSOR_TYPES = ACCESSOR_TYPES; -const PRIVATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Private"]; -exports.PRIVATE_TYPES = PRIVATE_TYPES; -const FLOW_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Flow"]; -exports.FLOW_TYPES = FLOW_TYPES; -const FLOWTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowType"]; -exports.FLOWTYPE_TYPES = FLOWTYPE_TYPES; -const FLOWBASEANNOTATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"]; -exports.FLOWBASEANNOTATION_TYPES = FLOWBASEANNOTATION_TYPES; -const FLOWDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowDeclaration"]; -exports.FLOWDECLARATION_TYPES = FLOWDECLARATION_TYPES; -const FLOWPREDICATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowPredicate"]; -exports.FLOWPREDICATE_TYPES = FLOWPREDICATE_TYPES; -const ENUMBODY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["EnumBody"]; -exports.ENUMBODY_TYPES = ENUMBODY_TYPES; -const ENUMMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["EnumMember"]; -exports.ENUMMEMBER_TYPES = ENUMMEMBER_TYPES; -const JSX_TYPES = _definitions.FLIPPED_ALIAS_KEYS["JSX"]; -exports.JSX_TYPES = JSX_TYPES; -const MISCELLANEOUS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Miscellaneous"]; -exports.MISCELLANEOUS_TYPES = MISCELLANEOUS_TYPES; -const TYPESCRIPT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TypeScript"]; -exports.TYPESCRIPT_TYPES = TYPESCRIPT_TYPES; -const TSTYPEELEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSTypeElement"]; -exports.TSTYPEELEMENT_TYPES = TSTYPEELEMENT_TYPES; -const TSTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSType"]; -exports.TSTYPE_TYPES = TSTYPE_TYPES; -const TSBASETYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSBaseType"]; -exports.TSBASETYPE_TYPES = TSBASETYPE_TYPES; -const MODULEDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES; -exports.MODULEDECLARATION_TYPES = MODULEDECLARATION_TYPES; +var _index = __nccwpck_require__(26010); +const STANDARDIZED_TYPES = exports.STANDARDIZED_TYPES = _index.FLIPPED_ALIAS_KEYS["Standardized"]; +const EXPRESSION_TYPES = exports.EXPRESSION_TYPES = _index.FLIPPED_ALIAS_KEYS["Expression"]; +const BINARY_TYPES = exports.BINARY_TYPES = _index.FLIPPED_ALIAS_KEYS["Binary"]; +const SCOPABLE_TYPES = exports.SCOPABLE_TYPES = _index.FLIPPED_ALIAS_KEYS["Scopable"]; +const BLOCKPARENT_TYPES = exports.BLOCKPARENT_TYPES = _index.FLIPPED_ALIAS_KEYS["BlockParent"]; +const BLOCK_TYPES = exports.BLOCK_TYPES = _index.FLIPPED_ALIAS_KEYS["Block"]; +const STATEMENT_TYPES = exports.STATEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["Statement"]; +const TERMINATORLESS_TYPES = exports.TERMINATORLESS_TYPES = _index.FLIPPED_ALIAS_KEYS["Terminatorless"]; +const COMPLETIONSTATEMENT_TYPES = exports.COMPLETIONSTATEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["CompletionStatement"]; +const CONDITIONAL_TYPES = exports.CONDITIONAL_TYPES = _index.FLIPPED_ALIAS_KEYS["Conditional"]; +const LOOP_TYPES = exports.LOOP_TYPES = _index.FLIPPED_ALIAS_KEYS["Loop"]; +const WHILE_TYPES = exports.WHILE_TYPES = _index.FLIPPED_ALIAS_KEYS["While"]; +const EXPRESSIONWRAPPER_TYPES = exports.EXPRESSIONWRAPPER_TYPES = _index.FLIPPED_ALIAS_KEYS["ExpressionWrapper"]; +const FOR_TYPES = exports.FOR_TYPES = _index.FLIPPED_ALIAS_KEYS["For"]; +const FORXSTATEMENT_TYPES = exports.FORXSTATEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["ForXStatement"]; +const FUNCTION_TYPES = exports.FUNCTION_TYPES = _index.FLIPPED_ALIAS_KEYS["Function"]; +const FUNCTIONPARENT_TYPES = exports.FUNCTIONPARENT_TYPES = _index.FLIPPED_ALIAS_KEYS["FunctionParent"]; +const PUREISH_TYPES = exports.PUREISH_TYPES = _index.FLIPPED_ALIAS_KEYS["Pureish"]; +const DECLARATION_TYPES = exports.DECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["Declaration"]; +const PATTERNLIKE_TYPES = exports.PATTERNLIKE_TYPES = _index.FLIPPED_ALIAS_KEYS["PatternLike"]; +const LVAL_TYPES = exports.LVAL_TYPES = _index.FLIPPED_ALIAS_KEYS["LVal"]; +const TSENTITYNAME_TYPES = exports.TSENTITYNAME_TYPES = _index.FLIPPED_ALIAS_KEYS["TSEntityName"]; +const LITERAL_TYPES = exports.LITERAL_TYPES = _index.FLIPPED_ALIAS_KEYS["Literal"]; +const IMMUTABLE_TYPES = exports.IMMUTABLE_TYPES = _index.FLIPPED_ALIAS_KEYS["Immutable"]; +const USERWHITESPACABLE_TYPES = exports.USERWHITESPACABLE_TYPES = _index.FLIPPED_ALIAS_KEYS["UserWhitespacable"]; +const METHOD_TYPES = exports.METHOD_TYPES = _index.FLIPPED_ALIAS_KEYS["Method"]; +const OBJECTMEMBER_TYPES = exports.OBJECTMEMBER_TYPES = _index.FLIPPED_ALIAS_KEYS["ObjectMember"]; +const PROPERTY_TYPES = exports.PROPERTY_TYPES = _index.FLIPPED_ALIAS_KEYS["Property"]; +const UNARYLIKE_TYPES = exports.UNARYLIKE_TYPES = _index.FLIPPED_ALIAS_KEYS["UnaryLike"]; +const PATTERN_TYPES = exports.PATTERN_TYPES = _index.FLIPPED_ALIAS_KEYS["Pattern"]; +const CLASS_TYPES = exports.CLASS_TYPES = _index.FLIPPED_ALIAS_KEYS["Class"]; +const IMPORTOREXPORTDECLARATION_TYPES = exports.IMPORTOREXPORTDECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"]; +const EXPORTDECLARATION_TYPES = exports.EXPORTDECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["ExportDeclaration"]; +const MODULESPECIFIER_TYPES = exports.MODULESPECIFIER_TYPES = _index.FLIPPED_ALIAS_KEYS["ModuleSpecifier"]; +const ACCESSOR_TYPES = exports.ACCESSOR_TYPES = _index.FLIPPED_ALIAS_KEYS["Accessor"]; +const PRIVATE_TYPES = exports.PRIVATE_TYPES = _index.FLIPPED_ALIAS_KEYS["Private"]; +const FLOW_TYPES = exports.FLOW_TYPES = _index.FLIPPED_ALIAS_KEYS["Flow"]; +const FLOWTYPE_TYPES = exports.FLOWTYPE_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowType"]; +const FLOWBASEANNOTATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"]; +const FLOWDECLARATION_TYPES = exports.FLOWDECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowDeclaration"]; +const FLOWPREDICATE_TYPES = exports.FLOWPREDICATE_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowPredicate"]; +const ENUMBODY_TYPES = exports.ENUMBODY_TYPES = _index.FLIPPED_ALIAS_KEYS["EnumBody"]; +const ENUMMEMBER_TYPES = exports.ENUMMEMBER_TYPES = _index.FLIPPED_ALIAS_KEYS["EnumMember"]; +const JSX_TYPES = exports.JSX_TYPES = _index.FLIPPED_ALIAS_KEYS["JSX"]; +const MISCELLANEOUS_TYPES = exports.MISCELLANEOUS_TYPES = _index.FLIPPED_ALIAS_KEYS["Miscellaneous"]; +const TYPESCRIPT_TYPES = exports.TYPESCRIPT_TYPES = _index.FLIPPED_ALIAS_KEYS["TypeScript"]; +const TSTYPEELEMENT_TYPES = exports.TSTYPEELEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["TSTypeElement"]; +const TSTYPE_TYPES = exports.TSTYPE_TYPES = _index.FLIPPED_ALIAS_KEYS["TSType"]; +const TSBASETYPE_TYPES = exports.TSBASETYPE_TYPES = _index.FLIPPED_ALIAS_KEYS["TSBaseType"]; +const MODULEDECLARATION_TYPES = exports.MODULEDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES; //# sourceMappingURL=index.js.map /***/ }), -/***/ 23768: +/***/ 38133: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -145797,56 +87799,36 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.UPDATE_OPERATORS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.STATEMENT_OR_BLOCK_KEYS = exports.NUMBER_UNARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.NOT_LOCAL_BINDING = exports.LOGICAL_OPERATORS = exports.INHERIT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.EQUALITY_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.COMMENT_KEYS = exports.BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.BLOCK_SCOPED_SYMBOL = exports.BINARY_OPERATORS = exports.ASSIGNMENT_OPERATORS = void 0; -const STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"]; -exports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS; -const FLATTENABLE_KEYS = ["body", "expressions"]; -exports.FLATTENABLE_KEYS = FLATTENABLE_KEYS; -const FOR_INIT_KEYS = ["left", "init"]; -exports.FOR_INIT_KEYS = FOR_INIT_KEYS; -const COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"]; -exports.COMMENT_KEYS = COMMENT_KEYS; -const LOGICAL_OPERATORS = ["||", "&&", "??"]; -exports.LOGICAL_OPERATORS = LOGICAL_OPERATORS; -const UPDATE_OPERATORS = ["++", "--"]; -exports.UPDATE_OPERATORS = UPDATE_OPERATORS; -const BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="]; -exports.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS; -const EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="]; -exports.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS; -const COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"]; -exports.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS; -const BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS]; -exports.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS; -const NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"]; -exports.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS; -const BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS, "|>"]; -exports.BINARY_OPERATORS = BINARY_OPERATORS; -const ASSIGNMENT_OPERATORS = ["=", "+=", ...NUMBER_BINARY_OPERATORS.map(op => op + "="), ...LOGICAL_OPERATORS.map(op => op + "=")]; -exports.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS; -const BOOLEAN_UNARY_OPERATORS = ["delete", "!"]; -exports.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS; -const NUMBER_UNARY_OPERATORS = ["+", "-", "~"]; -exports.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS; -const STRING_UNARY_OPERATORS = ["typeof"]; -exports.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS; -const UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS]; -exports.UNARY_OPERATORS = UNARY_OPERATORS; -const INHERIT_KEYS = { +const STATEMENT_OR_BLOCK_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"]; +const FLATTENABLE_KEYS = exports.FLATTENABLE_KEYS = ["body", "expressions"]; +const FOR_INIT_KEYS = exports.FOR_INIT_KEYS = ["left", "init"]; +const COMMENT_KEYS = exports.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"]; +const LOGICAL_OPERATORS = exports.LOGICAL_OPERATORS = ["||", "&&", "??"]; +const UPDATE_OPERATORS = exports.UPDATE_OPERATORS = ["++", "--"]; +const BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="]; +const EQUALITY_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="]; +const COMPARISON_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"]; +const BOOLEAN_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS]; +const NUMBER_BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"]; +const BINARY_OPERATORS = exports.BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS, "|>"]; +const ASSIGNMENT_OPERATORS = exports.ASSIGNMENT_OPERATORS = ["=", "+=", ...NUMBER_BINARY_OPERATORS.map(op => op + "="), ...LOGICAL_OPERATORS.map(op => op + "=")]; +const BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = ["delete", "!"]; +const NUMBER_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = ["+", "-", "~"]; +const STRING_UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = ["typeof"]; +const UNARY_OPERATORS = exports.UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS]; +const INHERIT_KEYS = exports.INHERIT_KEYS = { optional: ["typeAnnotation", "typeParameters", "returnType"], force: ["start", "loc", "end"] }; -exports.INHERIT_KEYS = INHERIT_KEYS; -const BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"); -exports.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL; -const NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding"); -exports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING; +const BLOCK_SCOPED_SYMBOL = exports.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"); +const NOT_LOCAL_BINDING = exports.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding"); //# sourceMappingURL=index.js.map /***/ }), -/***/ 56657: +/***/ 16791: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145856,7 +87838,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = ensureBlock; -var _toBlock = __nccwpck_require__(66695); +var _toBlock = __nccwpck_require__(76429); function ensureBlock(node, key = "body") { const result = (0, _toBlock.default)(node[key], node); node[key] = result; @@ -145868,7 +87850,7 @@ function ensureBlock(node, key = "body") { /***/ }), -/***/ 40823: +/***/ 90895: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145878,22 +87860,23 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = gatherSequenceExpressions; -var _getBindingIdentifiers = __nccwpck_require__(44738); -var _generated = __nccwpck_require__(24625); -var _generated2 = __nccwpck_require__(52849); -var _cloneNode = __nccwpck_require__(94886); +var _getBindingIdentifiers = __nccwpck_require__(20506); +var _index = __nccwpck_require__(27834); +var _index2 = __nccwpck_require__(61007); +var _cloneNode = __nccwpck_require__(93181); +; function gatherSequenceExpressions(nodes, scope, declars) { const exprs = []; let ensureLastUndefined = true; for (const node of nodes) { - if (!(0, _generated.isEmptyStatement)(node)) { + if (!(0, _index.isEmptyStatement)(node)) { ensureLastUndefined = false; } - if ((0, _generated.isExpression)(node)) { + if ((0, _index.isExpression)(node)) { exprs.push(node); - } else if ((0, _generated.isExpressionStatement)(node)) { + } else if ((0, _index.isExpressionStatement)(node)) { exprs.push(node.expression); - } else if ((0, _generated.isVariableDeclaration)(node)) { + } else if ((0, _index.isVariableDeclaration)(node)) { if (node.kind !== "var") return; for (const declar of node.declarations) { const bindings = (0, _getBindingIdentifiers.default)(declar); @@ -145904,20 +87887,20 @@ function gatherSequenceExpressions(nodes, scope, declars) { }); } if (declar.init) { - exprs.push((0, _generated2.assignmentExpression)("=", declar.id, declar.init)); + exprs.push((0, _index2.assignmentExpression)("=", declar.id, declar.init)); } } ensureLastUndefined = true; - } else if ((0, _generated.isIfStatement)(node)) { + } else if ((0, _index.isIfStatement)(node)) { const consequent = node.consequent ? gatherSequenceExpressions([node.consequent], scope, declars) : scope.buildUndefinedNode(); const alternate = node.alternate ? gatherSequenceExpressions([node.alternate], scope, declars) : scope.buildUndefinedNode(); if (!consequent || !alternate) return; - exprs.push((0, _generated2.conditionalExpression)(node.test, consequent, alternate)); - } else if ((0, _generated.isBlockStatement)(node)) { + exprs.push((0, _index2.conditionalExpression)(node.test, consequent, alternate)); + } else if ((0, _index.isBlockStatement)(node)) { const body = gatherSequenceExpressions(node.body, scope, declars); if (!body) return; exprs.push(body); - } else if ((0, _generated.isEmptyStatement)(node)) { + } else if ((0, _index.isEmptyStatement)(node)) { if (nodes.indexOf(node) === 0) { ensureLastUndefined = true; } @@ -145931,7 +87914,7 @@ function gatherSequenceExpressions(nodes, scope, declars) { if (exprs.length === 1) { return exprs[0]; } else { - return (0, _generated2.sequenceExpression)(exprs); + return (0, _index2.sequenceExpression)(exprs); } } @@ -145940,7 +87923,7 @@ function gatherSequenceExpressions(nodes, scope, declars) { /***/ }), -/***/ 63261: +/***/ 27672: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145950,7 +87933,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = toBindingIdentifierName; -var _toIdentifier = __nccwpck_require__(20994); +var _toIdentifier = __nccwpck_require__(81576); function toBindingIdentifierName(name) { name = (0, _toIdentifier.default)(name); if (name === "eval" || name === "arguments") name = "_" + name; @@ -145962,7 +87945,7 @@ function toBindingIdentifierName(name) { /***/ }), -/***/ 66695: +/***/ 76429: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -145972,26 +87955,26 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = toBlock; -var _generated = __nccwpck_require__(24625); -var _generated2 = __nccwpck_require__(52849); +var _index = __nccwpck_require__(27834); +var _index2 = __nccwpck_require__(61007); function toBlock(node, parent) { - if ((0, _generated.isBlockStatement)(node)) { + if ((0, _index.isBlockStatement)(node)) { return node; } let blockNodes = []; - if ((0, _generated.isEmptyStatement)(node)) { + if ((0, _index.isEmptyStatement)(node)) { blockNodes = []; } else { - if (!(0, _generated.isStatement)(node)) { - if ((0, _generated.isFunction)(parent)) { - node = (0, _generated2.returnStatement)(node); + if (!(0, _index.isStatement)(node)) { + if ((0, _index.isFunction)(parent)) { + node = (0, _index2.returnStatement)(node); } else { - node = (0, _generated2.expressionStatement)(node); + node = (0, _index2.expressionStatement)(node); } } blockNodes = [node]; } - return (0, _generated2.blockStatement)(blockNodes); + return (0, _index2.blockStatement)(blockNodes); } //# sourceMappingURL=toBlock.js.map @@ -145999,7 +87982,7 @@ function toBlock(node, parent) { /***/ }), -/***/ 26189: +/***/ 85215: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -146009,10 +87992,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = toComputedKey; -var _generated = __nccwpck_require__(24625); -var _generated2 = __nccwpck_require__(52849); +var _index = __nccwpck_require__(27834); +var _index2 = __nccwpck_require__(61007); function toComputedKey(node, key = node.key || node.property) { - if (!node.computed && (0, _generated.isIdentifier)(key)) key = (0, _generated2.stringLiteral)(key.name); + if (!node.computed && (0, _index.isIdentifier)(key)) key = (0, _index2.stringLiteral)(key.name); return key; } @@ -146021,7 +88004,7 @@ function toComputedKey(node, key = node.key || node.property) { /***/ }), -/***/ 73689: +/***/ 48461: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -146031,22 +88014,21 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _generated = __nccwpck_require__(24625); -var _default = toExpression; -exports["default"] = _default; +var _index = __nccwpck_require__(27834); +var _default = exports["default"] = toExpression; function toExpression(node) { - if ((0, _generated.isExpressionStatement)(node)) { + if ((0, _index.isExpressionStatement)(node)) { node = node.expression; } - if ((0, _generated.isExpression)(node)) { + if ((0, _index.isExpression)(node)) { return node; } - if ((0, _generated.isClass)(node)) { + if ((0, _index.isClass)(node)) { node.type = "ClassExpression"; - } else if ((0, _generated.isFunction)(node)) { + } else if ((0, _index.isFunction)(node)) { node.type = "FunctionExpression"; } - if (!(0, _generated.isExpression)(node)) { + if (!(0, _index.isExpression)(node)) { throw new Error(`cannot turn ${node.type} to an expression`); } return node; @@ -146057,7 +88039,7 @@ function toExpression(node) { /***/ }), -/***/ 20994: +/***/ 81576: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -146067,8 +88049,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = toIdentifier; -var _isValidIdentifier = __nccwpck_require__(183); -var _helperValidatorIdentifier = __nccwpck_require__(21974); +var _isValidIdentifier = __nccwpck_require__(93551); +var _helperValidatorIdentifier = __nccwpck_require__(63442); function toIdentifier(input) { input = input + ""; let name = ""; @@ -146090,7 +88072,7 @@ function toIdentifier(input) { /***/ }), -/***/ 28032: +/***/ 91360: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -146100,16 +88082,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = toKeyAlias; -var _generated = __nccwpck_require__(24625); -var _cloneNode = __nccwpck_require__(94886); -var _removePropertiesDeep = __nccwpck_require__(95406); +var _index = __nccwpck_require__(27834); +var _cloneNode = __nccwpck_require__(93181); +var _removePropertiesDeep = __nccwpck_require__(64534); function toKeyAlias(node, key = node.key) { let alias; if (node.kind === "method") { return toKeyAlias.increment() + ""; - } else if ((0, _generated.isIdentifier)(key)) { + } else if ((0, _index.isIdentifier)(key)) { alias = key.name; - } else if ((0, _generated.isStringLiteral)(key)) { + } else if ((0, _index.isStringLiteral)(key)) { alias = JSON.stringify(key.value); } else { alias = JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key))); @@ -146136,17 +88118,19 @@ toKeyAlias.increment = function () { /***/ }), -/***/ 66568: +/***/ 52093: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; +var __webpack_unused_export__; -Object.defineProperty(exports, "__esModule", ({ +__webpack_unused_export__ = ({ value: true -})); +}); exports["default"] = toSequenceExpression; -var _gatherSequenceExpressions = __nccwpck_require__(40823); +var _gatherSequenceExpressions = __nccwpck_require__(90895); +; function toSequenceExpression(nodes, scope) { if (!(nodes != null && nodes.length)) return; const declars = []; @@ -146163,7 +88147,7 @@ function toSequenceExpression(nodes, scope) { /***/ }), -/***/ 56718: +/***/ 78153: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -146173,24 +88157,23 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _generated = __nccwpck_require__(24625); -var _generated2 = __nccwpck_require__(52849); -var _default = toStatement; -exports["default"] = _default; +var _index = __nccwpck_require__(27834); +var _index2 = __nccwpck_require__(61007); +var _default = exports["default"] = toStatement; function toStatement(node, ignore) { - if ((0, _generated.isStatement)(node)) { + if ((0, _index.isStatement)(node)) { return node; } let mustHaveId = false; let newType; - if ((0, _generated.isClass)(node)) { + if ((0, _index.isClass)(node)) { mustHaveId = true; newType = "ClassDeclaration"; - } else if ((0, _generated.isFunction)(node)) { + } else if ((0, _index.isFunction)(node)) { mustHaveId = true; newType = "FunctionDeclaration"; - } else if ((0, _generated.isAssignmentExpression)(node)) { - return (0, _generated2.expressionStatement)(node); + } else if ((0, _index.isAssignmentExpression)(node)) { + return (0, _index2.expressionStatement)(node); } if (mustHaveId && !node.id) { newType = false; @@ -146211,7 +88194,7 @@ function toStatement(node, ignore) { /***/ }), -/***/ 85077: +/***/ 78013: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -146221,10 +88204,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _isValidIdentifier = __nccwpck_require__(183); -var _generated = __nccwpck_require__(52849); -var _default = valueToNode; -exports["default"] = _default; +var _isValidIdentifier = __nccwpck_require__(93551); +var _index = __nccwpck_require__(61007); +var _default = exports["default"] = valueToNode; const objectToString = Function.call.bind(Object.prototype.toString); function isRegExp(value) { return objectToString(value) === "[object RegExp]"; @@ -146238,55 +88220,55 @@ function isPlainObject(value) { } function valueToNode(value) { if (value === undefined) { - return (0, _generated.identifier)("undefined"); + return (0, _index.identifier)("undefined"); } if (value === true || value === false) { - return (0, _generated.booleanLiteral)(value); + return (0, _index.booleanLiteral)(value); } if (value === null) { - return (0, _generated.nullLiteral)(); + return (0, _index.nullLiteral)(); } if (typeof value === "string") { - return (0, _generated.stringLiteral)(value); + return (0, _index.stringLiteral)(value); } if (typeof value === "number") { let result; if (Number.isFinite(value)) { - result = (0, _generated.numericLiteral)(Math.abs(value)); + result = (0, _index.numericLiteral)(Math.abs(value)); } else { let numerator; if (Number.isNaN(value)) { - numerator = (0, _generated.numericLiteral)(0); + numerator = (0, _index.numericLiteral)(0); } else { - numerator = (0, _generated.numericLiteral)(1); + numerator = (0, _index.numericLiteral)(1); } - result = (0, _generated.binaryExpression)("/", numerator, (0, _generated.numericLiteral)(0)); + result = (0, _index.binaryExpression)("/", numerator, (0, _index.numericLiteral)(0)); } if (value < 0 || Object.is(value, -0)) { - result = (0, _generated.unaryExpression)("-", result); + result = (0, _index.unaryExpression)("-", result); } return result; } if (isRegExp(value)) { const pattern = value.source; const flags = value.toString().match(/\/([a-z]+|)$/)[1]; - return (0, _generated.regExpLiteral)(pattern, flags); + return (0, _index.regExpLiteral)(pattern, flags); } if (Array.isArray(value)) { - return (0, _generated.arrayExpression)(value.map(valueToNode)); + return (0, _index.arrayExpression)(value.map(valueToNode)); } if (isPlainObject(value)) { const props = []; for (const key of Object.keys(value)) { let nodeKey; if ((0, _isValidIdentifier.default)(key)) { - nodeKey = (0, _generated.identifier)(key); + nodeKey = (0, _index.identifier)(key); } else { - nodeKey = (0, _generated.stringLiteral)(key); + nodeKey = (0, _index.stringLiteral)(key); } - props.push((0, _generated.objectProperty)(nodeKey, valueToNode(value[key]))); + props.push((0, _index.objectProperty)(nodeKey, valueToNode(value[key]))); } - return (0, _generated.objectExpression)(props); + return (0, _index.objectExpression)(props); } throw new Error("don't know how to turn this value into a node"); } @@ -146296,7 +88278,7 @@ function valueToNode(value) { /***/ }), -/***/ 54996: +/***/ 78241: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -146306,12 +88288,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.patternLikeCommon = exports.functionTypeAnnotationCommon = exports.functionDeclarationCommon = exports.functionCommon = exports.classMethodOrPropertyCommon = exports.classMethodOrDeclareMethodCommon = void 0; -var _is = __nccwpck_require__(1285); -var _isValidIdentifier = __nccwpck_require__(183); -var _helperValidatorIdentifier = __nccwpck_require__(21974); -var _helperStringParser = __nccwpck_require__(92776); -var _constants = __nccwpck_require__(23768); -var _utils = __nccwpck_require__(38993); +var _is = __nccwpck_require__(60212); +var _isValidIdentifier = __nccwpck_require__(93551); +var _helperValidatorIdentifier = __nccwpck_require__(63442); +var _helperStringParser = __nccwpck_require__(5995); +var _index = __nccwpck_require__(38133); +var _utils = __nccwpck_require__(91021); const defineType = (0, _utils.defineAliasedType)("Standardized"); defineType("ArrayExpression", { fields: { @@ -146330,7 +88312,7 @@ defineType("AssignmentExpression", { if (!process.env.BABEL_TYPES_8_BREAKING) { return (0, _utils.assertValueType)("string"); } - const identifier = (0, _utils.assertOneOf)(..._constants.ASSIGNMENT_OPERATORS); + const identifier = (0, _utils.assertOneOf)(..._index.ASSIGNMENT_OPERATORS); const pattern = (0, _utils.assertOneOf)("="); return function (node, key, val) { const validator = (0, _is.default)("Pattern", node.left) ? pattern : identifier; @@ -146339,7 +88321,7 @@ defineType("AssignmentExpression", { }() }, left: { - validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") + validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "OptionalMemberExpression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") }, right: { validate: (0, _utils.assertNodeType)("Expression") @@ -146353,7 +88335,7 @@ defineType("BinaryExpression", { builder: ["operator", "left", "right"], fields: { operator: { - validate: (0, _utils.assertOneOf)(..._constants.BINARY_OPERATORS) + validate: (0, _utils.assertOneOf)(..._index.BINARY_OPERATORS) }, left: { validate: function () { @@ -146751,7 +88733,14 @@ defineType("NumericLiteral", { deprecatedAlias: "NumberLiteral", fields: { value: { - validate: (0, _utils.assertValueType)("number") + validate: (0, _utils.chain)((0, _utils.assertValueType)("number"), Object.assign(function (node, key, val) { + if (1 / val < 0 || !Number.isFinite(val)) { + const error = new Error("NumericLiterals must be non-negative finite numbers. " + `You can use t.valueToNode(${val}) instead.`); + {} + } + }, { + type: "number" + })) } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] @@ -146796,7 +88785,7 @@ defineType("LogicalExpression", { aliases: ["Binary", "Expression"], fields: { operator: { - validate: (0, _utils.assertOneOf)(..._constants.LOGICAL_OPERATORS) + validate: (0, _utils.assertOneOf)(..._index.LOGICAL_OPERATORS) }, left: { validate: (0, _utils.assertNodeType)("Expression") @@ -147081,7 +89070,7 @@ defineType("UnaryExpression", { validate: (0, _utils.assertNodeType)("Expression") }, operator: { - validate: (0, _utils.assertOneOf)(..._constants.UNARY_OPERATORS) + validate: (0, _utils.assertOneOf)(..._index.UNARY_OPERATORS) } }, visitor: ["argument"], @@ -147097,7 +89086,7 @@ defineType("UpdateExpression", { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Expression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression") }, operator: { - validate: (0, _utils.assertOneOf)(..._constants.UPDATE_OPERATORS) + validate: (0, _utils.assertOneOf)(..._index.UPDATE_OPERATORS) } }, visitor: ["argument"], @@ -147274,7 +89263,8 @@ defineType("ClassDeclaration", { aliases: ["Scopable", "Class", "Statement", "Declaration"], fields: { id: { - validate: (0, _utils.assertNodeType)("Identifier") + validate: (0, _utils.assertNodeType)("Identifier"), + optional: true }, typeParameters: { validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), @@ -147464,6 +89454,10 @@ defineType("ImportDeclaration", { optional: true, validate: (0, _utils.assertValueType)("boolean") }, + phase: { + default: null, + validate: (0, _utils.assertOneOf)("source", "defer") + }, specifiers: { validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"))) }, @@ -147510,6 +89504,23 @@ defineType("ImportSpecifier", { } } }); +defineType("ImportExpression", { + visitor: ["source", "options"], + aliases: ["Expression"], + fields: { + phase: { + default: null, + validate: (0, _utils.assertOneOf)("source", "defer") + }, + source: { + validate: (0, _utils.assertNodeType)("Expression") + }, + options: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + } + } +}); defineType("MetaProperty", { visitor: ["meta", "property"], aliases: ["Expression"], @@ -147567,7 +89578,7 @@ const classMethodOrPropertyCommon = () => ({ }, key: { validate: (0, _utils.chain)(function () { - const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral"); + const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"); const computed = (0, _utils.assertNodeType)("Expression"); return function (node, key, val) { const validator = node.computed ? computed : normal; @@ -147967,7 +89978,7 @@ defineType("StaticBlock", { /***/ }), -/***/ 71862: +/***/ 67353: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -147977,23 +89988,22 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DEPRECATED_ALIASES = void 0; -const DEPRECATED_ALIASES = { +const DEPRECATED_ALIASES = exports.DEPRECATED_ALIASES = { ModuleDeclaration: "ImportOrExportDeclaration" }; -exports.DEPRECATED_ALIASES = DEPRECATED_ALIASES; //# sourceMappingURL=deprecated-aliases.js.map /***/ }), -/***/ 22798: +/***/ 39115: /***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -var _utils = __nccwpck_require__(38993); +var _utils = __nccwpck_require__(91021); (0, _utils.default)("ArgumentPlaceholder", {}); (0, _utils.default)("BindExpression", { visitor: ["object", "callee"], @@ -148129,13 +90139,13 @@ var _utils = __nccwpck_require__(38993); /***/ }), -/***/ 32725: +/***/ 70245: /***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -var _utils = __nccwpck_require__(38993); +var _utils = __nccwpck_require__(91021); const defineType = (0, _utils.defineAliasedType)("Flow"); const defineInterfaceishType = name => { const isDeclareClass = name === "DeclareClass"; @@ -148625,7 +90635,7 @@ defineType("OptionalIndexedAccessType", { /***/ }), -/***/ 25441: +/***/ 26010: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -148702,15 +90712,15 @@ Object.defineProperty(exports, "VISITOR_KEYS", ({ } })); var _toFastProperties = __nccwpck_require__(36802); -__nccwpck_require__(54996); -__nccwpck_require__(32725); -__nccwpck_require__(7981); -__nccwpck_require__(63925); -__nccwpck_require__(22798); -__nccwpck_require__(14390); -var _utils = __nccwpck_require__(38993); -var _placeholders = __nccwpck_require__(63082); -var _deprecatedAliases = __nccwpck_require__(71862); +__nccwpck_require__(78241); +__nccwpck_require__(70245); +__nccwpck_require__(80393); +__nccwpck_require__(3425); +__nccwpck_require__(39115); +__nccwpck_require__(27987); +var _utils = __nccwpck_require__(91021); +var _placeholders = __nccwpck_require__(12016); +var _deprecatedAliases = __nccwpck_require__(67353); Object.keys(_deprecatedAliases.DEPRECATED_ALIASES).forEach(deprecatedAlias => { _utils.FLIPPED_ALIAS_KEYS[deprecatedAlias] = _utils.FLIPPED_ALIAS_KEYS[_deprecatedAliases.DEPRECATED_ALIASES[deprecatedAlias]]; }); @@ -148722,21 +90732,20 @@ _toFastProperties(_utils.BUILDER_KEYS); _toFastProperties(_utils.DEPRECATED_KEYS); _toFastProperties(_placeholders.PLACEHOLDERS_ALIAS); _toFastProperties(_placeholders.PLACEHOLDERS_FLIPPED_ALIAS); -const TYPES = [].concat(Object.keys(_utils.VISITOR_KEYS), Object.keys(_utils.FLIPPED_ALIAS_KEYS), Object.keys(_utils.DEPRECATED_KEYS)); -exports.TYPES = TYPES; +const TYPES = exports.TYPES = [].concat(Object.keys(_utils.VISITOR_KEYS), Object.keys(_utils.FLIPPED_ALIAS_KEYS), Object.keys(_utils.DEPRECATED_KEYS)); //# sourceMappingURL=index.js.map /***/ }), -/***/ 7981: +/***/ 80393: /***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -var _utils = __nccwpck_require__(38993); +var _utils = __nccwpck_require__(91021); const defineType = (0, _utils.defineAliasedType)("JSX"); defineType("JSXAttribute", { visitor: ["name", "value"], @@ -148896,14 +90905,14 @@ defineType("JSXClosingFragment", { /***/ }), -/***/ 63925: +/***/ 3425: /***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -var _utils = __nccwpck_require__(38993); -var _placeholders = __nccwpck_require__(63082); +var _utils = __nccwpck_require__(91021); +var _placeholders = __nccwpck_require__(12016); const defineType = (0, _utils.defineAliasedType)("Miscellaneous"); { defineType("Noop", { @@ -148936,7 +90945,7 @@ defineType("V8IntrinsicIdentifier", { /***/ }), -/***/ 63082: +/***/ 12016: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -148946,20 +90955,17 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PLACEHOLDERS_FLIPPED_ALIAS = exports.PLACEHOLDERS_ALIAS = exports.PLACEHOLDERS = void 0; -var _utils = __nccwpck_require__(38993); -const PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"]; -exports.PLACEHOLDERS = PLACEHOLDERS; -const PLACEHOLDERS_ALIAS = { +var _utils = __nccwpck_require__(91021); +const PLACEHOLDERS = exports.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"]; +const PLACEHOLDERS_ALIAS = exports.PLACEHOLDERS_ALIAS = { Declaration: ["Statement"], Pattern: ["PatternLike", "LVal"] }; -exports.PLACEHOLDERS_ALIAS = PLACEHOLDERS_ALIAS; for (const type of PLACEHOLDERS) { const alias = _utils.ALIAS_KEYS[type]; if (alias != null && alias.length) PLACEHOLDERS_ALIAS[type] = alias; } -const PLACEHOLDERS_FLIPPED_ALIAS = {}; -exports.PLACEHOLDERS_FLIPPED_ALIAS = PLACEHOLDERS_FLIPPED_ALIAS; +const PLACEHOLDERS_FLIPPED_ALIAS = exports.PLACEHOLDERS_FLIPPED_ALIAS = {}; Object.keys(PLACEHOLDERS_ALIAS).forEach(type => { PLACEHOLDERS_ALIAS[type].forEach(alias => { if (!Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS, alias)) { @@ -148974,15 +90980,15 @@ Object.keys(PLACEHOLDERS_ALIAS).forEach(type => { /***/ }), -/***/ 14390: +/***/ 27987: /***/ (function(__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) { "use strict"; -var _utils = __nccwpck_require__(38993); -var _core = __nccwpck_require__(54996); -var _is = __nccwpck_require__(1285); +var _utils = __nccwpck_require__(91021); +var _core = __nccwpck_require__(78241); +var _is = __nccwpck_require__(60212); const defineType = (0, _utils.defineAliasedType)("TypeScript"); const bool = (0, _utils.assertValueType)("boolean"); const tSFunctionTypeAnnotationCommon = () => ({ @@ -149039,7 +91045,7 @@ defineType("TSQualifiedName", { }); const signatureDeclarationCommon = () => ({ typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"), - ["parameters"]: (0, _utils.validateArrayOfType)(["Identifier", "RestElement"]), + ["parameters"]: (0, _utils.validateArrayOfType)(["ArrayPattern", "Identifier", "ObjectPattern", "RestElement"]), ["typeAnnotation"]: (0, _utils.validateOptionalType)("TSTypeAnnotation") }); const callConstructSignatureDeclaration = { @@ -149058,11 +91064,10 @@ const namedTypeElementCommon = () => ({ }); defineType("TSPropertySignature", { aliases: ["TSTypeElement"], - visitor: ["key", "typeAnnotation", "initializer"], + visitor: ["key", "typeAnnotation"], fields: Object.assign({}, namedTypeElementCommon(), { readonly: (0, _utils.validateOptional)(bool), typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), - initializer: (0, _utils.validateOptionalType)("Expression"), kind: { validate: (0, _utils.assertOneOf)("get", "set") } @@ -149472,7 +91477,7 @@ defineType("TSTypeParameter", { /***/ }), -/***/ 38993: +/***/ 91021: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -149500,22 +91505,15 @@ exports.validateArrayOfType = validateArrayOfType; exports.validateOptional = validateOptional; exports.validateOptionalType = validateOptionalType; exports.validateType = validateType; -var _is = __nccwpck_require__(1285); -var _validate = __nccwpck_require__(43588); -const VISITOR_KEYS = {}; -exports.VISITOR_KEYS = VISITOR_KEYS; -const ALIAS_KEYS = {}; -exports.ALIAS_KEYS = ALIAS_KEYS; -const FLIPPED_ALIAS_KEYS = {}; -exports.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS; -const NODE_FIELDS = {}; -exports.NODE_FIELDS = NODE_FIELDS; -const BUILDER_KEYS = {}; -exports.BUILDER_KEYS = BUILDER_KEYS; -const DEPRECATED_KEYS = {}; -exports.DEPRECATED_KEYS = DEPRECATED_KEYS; -const NODE_PARENT_VALIDATIONS = {}; -exports.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS; +var _is = __nccwpck_require__(60212); +var _validate = __nccwpck_require__(99850); +const VISITOR_KEYS = exports.VISITOR_KEYS = {}; +const ALIAS_KEYS = exports.ALIAS_KEYS = {}; +const FLIPPED_ALIAS_KEYS = exports.FLIPPED_ALIAS_KEYS = {}; +const NODE_FIELDS = exports.NODE_FIELDS = {}; +const BUILDER_KEYS = exports.BUILDER_KEYS = {}; +const DEPRECATED_KEYS = exports.DEPRECATED_KEYS = {}; +const NODE_PARENT_VALIDATIONS = exports.NODE_PARENT_VALIDATIONS = {}; function getType(val) { if (Array.isArray(val)) { return "array"; @@ -149760,7 +91758,7 @@ function defineType(type, opts = {}) { /***/ }), -/***/ 53501: +/***/ 68948: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -149795,7 +91793,6 @@ var _exportNames = { toExpression: true, toIdentifier: true, toKeyAlias: true, - toSequenceExpression: true, toStatement: true, valueToNode: true, appendToMemberExpression: true, @@ -150136,12 +92133,6 @@ Object.defineProperty(exports, "toKeyAlias", ({ return _toKeyAlias.default; } })); -Object.defineProperty(exports, "toSequenceExpression", ({ - enumerable: true, - get: function () { - return _toSequenceExpression.default; - } -})); Object.defineProperty(exports, "toStatement", ({ enumerable: true, get: function () { @@ -150172,38 +92163,38 @@ Object.defineProperty(exports, "valueToNode", ({ return _valueToNode.default; } })); -var _isReactComponent = __nccwpck_require__(76981); -var _isCompatTag = __nccwpck_require__(8678); -var _buildChildren = __nccwpck_require__(91131); -var _assertNode = __nccwpck_require__(3286); -var _generated = __nccwpck_require__(67624); -Object.keys(_generated).forEach(function (key) { +var _isReactComponent = __nccwpck_require__(78737); +var _isCompatTag = __nccwpck_require__(32948); +var _buildChildren = __nccwpck_require__(69446); +var _assertNode = __nccwpck_require__(50957); +var _index = __nccwpck_require__(1105); +Object.keys(_index).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated[key]) return; + if (key in exports && exports[key] === _index[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { - return _generated[key]; + return _index[key]; } }); }); -var _createTypeAnnotationBasedOnTypeof = __nccwpck_require__(74259); -var _createFlowUnionType = __nccwpck_require__(68811); -var _createTSUnionType = __nccwpck_require__(19654); -var _generated2 = __nccwpck_require__(52849); -Object.keys(_generated2).forEach(function (key) { +var _createTypeAnnotationBasedOnTypeof = __nccwpck_require__(6402); +var _createFlowUnionType = __nccwpck_require__(59195); +var _createTSUnionType = __nccwpck_require__(61707); +var _index2 = __nccwpck_require__(61007); +Object.keys(_index2).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated2[key]) return; + if (key in exports && exports[key] === _index2[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { - return _generated2[key]; + return _index2[key]; } }); }); -var _uppercase = __nccwpck_require__(8506); +var _uppercase = __nccwpck_require__(49112); Object.keys(_uppercase).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; @@ -150215,73 +92206,84 @@ Object.keys(_uppercase).forEach(function (key) { } }); }); -var _cloneNode = __nccwpck_require__(94886); -var _clone = __nccwpck_require__(66588); -var _cloneDeep = __nccwpck_require__(31869); -var _cloneDeepWithoutLoc = __nccwpck_require__(1560); -var _cloneWithoutLoc = __nccwpck_require__(20886); -var _addComment = __nccwpck_require__(24491); -var _addComments = __nccwpck_require__(75355); -var _inheritInnerComments = __nccwpck_require__(44427); -var _inheritLeadingComments = __nccwpck_require__(30748); -var _inheritsComments = __nccwpck_require__(3770); -var _inheritTrailingComments = __nccwpck_require__(47825); -var _removeComments = __nccwpck_require__(56058); -var _generated3 = __nccwpck_require__(35208); -Object.keys(_generated3).forEach(function (key) { +var _productions = __nccwpck_require__(62883); +Object.keys(_productions).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _productions[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _productions[key]; + } + }); +}); +var _cloneNode = __nccwpck_require__(93181); +var _clone = __nccwpck_require__(69784); +var _cloneDeep = __nccwpck_require__(46650); +var _cloneDeepWithoutLoc = __nccwpck_require__(12065); +var _cloneWithoutLoc = __nccwpck_require__(87258); +var _addComment = __nccwpck_require__(38046); +var _addComments = __nccwpck_require__(29577); +var _inheritInnerComments = __nccwpck_require__(47649); +var _inheritLeadingComments = __nccwpck_require__(65278); +var _inheritsComments = __nccwpck_require__(69664); +var _inheritTrailingComments = __nccwpck_require__(86591); +var _removeComments = __nccwpck_require__(35106); +var _index3 = __nccwpck_require__(51751); +Object.keys(_index3).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated3[key]) return; + if (key in exports && exports[key] === _index3[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { - return _generated3[key]; + return _index3[key]; } }); }); -var _constants = __nccwpck_require__(23768); -Object.keys(_constants).forEach(function (key) { +var _index4 = __nccwpck_require__(38133); +Object.keys(_index4).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _constants[key]) return; + if (key in exports && exports[key] === _index4[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { - return _constants[key]; + return _index4[key]; } }); }); -var _ensureBlock = __nccwpck_require__(56657); -var _toBindingIdentifierName = __nccwpck_require__(63261); -var _toBlock = __nccwpck_require__(66695); -var _toComputedKey = __nccwpck_require__(26189); -var _toExpression = __nccwpck_require__(73689); -var _toIdentifier = __nccwpck_require__(20994); -var _toKeyAlias = __nccwpck_require__(28032); -var _toSequenceExpression = __nccwpck_require__(66568); -var _toStatement = __nccwpck_require__(56718); -var _valueToNode = __nccwpck_require__(85077); -var _definitions = __nccwpck_require__(25441); -Object.keys(_definitions).forEach(function (key) { +var _ensureBlock = __nccwpck_require__(16791); +var _toBindingIdentifierName = __nccwpck_require__(27672); +var _toBlock = __nccwpck_require__(76429); +var _toComputedKey = __nccwpck_require__(85215); +var _toExpression = __nccwpck_require__(48461); +var _toIdentifier = __nccwpck_require__(81576); +var _toKeyAlias = __nccwpck_require__(91360); +var _toStatement = __nccwpck_require__(78153); +var _valueToNode = __nccwpck_require__(78013); +var _index5 = __nccwpck_require__(26010); +Object.keys(_index5).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _definitions[key]) return; + if (key in exports && exports[key] === _index5[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { - return _definitions[key]; + return _index5[key]; } }); }); -var _appendToMemberExpression = __nccwpck_require__(85690); -var _inherits = __nccwpck_require__(98052); -var _prependToMemberExpression = __nccwpck_require__(11250); -var _removeProperties = __nccwpck_require__(35522); -var _removePropertiesDeep = __nccwpck_require__(95406); -var _removeTypeDuplicates = __nccwpck_require__(11331); -var _getBindingIdentifiers = __nccwpck_require__(44738); -var _getOuterBindingIdentifiers = __nccwpck_require__(61946); -var _traverse = __nccwpck_require__(49484); +var _appendToMemberExpression = __nccwpck_require__(55896); +var _inherits = __nccwpck_require__(50494); +var _prependToMemberExpression = __nccwpck_require__(18076); +var _removeProperties = __nccwpck_require__(94870); +var _removePropertiesDeep = __nccwpck_require__(64534); +var _removeTypeDuplicates = __nccwpck_require__(29710); +var _getBindingIdentifiers = __nccwpck_require__(20506); +var _getOuterBindingIdentifiers = __nccwpck_require__(34244); +var _traverse = __nccwpck_require__(61971); Object.keys(_traverse).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; @@ -150293,52 +92295,54 @@ Object.keys(_traverse).forEach(function (key) { } }); }); -var _traverseFast = __nccwpck_require__(22518); -var _shallowEqual = __nccwpck_require__(46136); -var _is = __nccwpck_require__(1285); -var _isBinding = __nccwpck_require__(6702); -var _isBlockScoped = __nccwpck_require__(5927); -var _isImmutable = __nccwpck_require__(11386); -var _isLet = __nccwpck_require__(2900); -var _isNode = __nccwpck_require__(38163); -var _isNodesEquivalent = __nccwpck_require__(72903); -var _isPlaceholderType = __nccwpck_require__(63038); -var _isReferenced = __nccwpck_require__(20892); -var _isScope = __nccwpck_require__(46307); -var _isSpecifierDefault = __nccwpck_require__(88535); -var _isType = __nccwpck_require__(86349); -var _isValidES3Identifier = __nccwpck_require__(33877); -var _isValidIdentifier = __nccwpck_require__(183); -var _isVar = __nccwpck_require__(5490); -var _matchesPattern = __nccwpck_require__(58086); -var _validate = __nccwpck_require__(43588); -var _buildMatchMemberExpression = __nccwpck_require__(20196); -var _generated4 = __nccwpck_require__(24625); -Object.keys(_generated4).forEach(function (key) { +var _traverseFast = __nccwpck_require__(72002); +var _shallowEqual = __nccwpck_require__(99664); +var _is = __nccwpck_require__(60212); +var _isBinding = __nccwpck_require__(37230); +var _isBlockScoped = __nccwpck_require__(43861); +var _isImmutable = __nccwpck_require__(66708); +var _isLet = __nccwpck_require__(74103); +var _isNode = __nccwpck_require__(93972); +var _isNodesEquivalent = __nccwpck_require__(80427); +var _isPlaceholderType = __nccwpck_require__(898); +var _isReferenced = __nccwpck_require__(85090); +var _isScope = __nccwpck_require__(98821); +var _isSpecifierDefault = __nccwpck_require__(75412); +var _isType = __nccwpck_require__(82215); +var _isValidES3Identifier = __nccwpck_require__(34457); +var _isValidIdentifier = __nccwpck_require__(93551); +var _isVar = __nccwpck_require__(67750); +var _matchesPattern = __nccwpck_require__(97567); +var _validate = __nccwpck_require__(99850); +var _buildMatchMemberExpression = __nccwpck_require__(52668); +var _index6 = __nccwpck_require__(27834); +Object.keys(_index6).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _generated4[key]) return; + if (key in exports && exports[key] === _index6[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { - return _generated4[key]; + return _index6[key]; } }); }); -var _deprecationWarning = __nccwpck_require__(20008); -const react = { +var _deprecationWarning = __nccwpck_require__(29236); +const react = exports.react = { isReactComponent: _isReactComponent.default, isCompatTag: _isCompatTag.default, buildChildren: _buildChildren.default }; -exports.react = react; +{ + exports.toSequenceExpression = __nccwpck_require__(52093)["default"]; +} //# sourceMappingURL=index.js.map /***/ }), -/***/ 85690: +/***/ 55896: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150348,9 +92352,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = appendToMemberExpression; -var _generated = __nccwpck_require__(52849); +var _index = __nccwpck_require__(61007); function appendToMemberExpression(member, append, computed = false) { - member.object = (0, _generated.memberExpression)(member.object, member.property, member.computed); + member.object = (0, _index.memberExpression)(member.object, member.property, member.computed); member.property = append; member.computed = !!computed; return member; @@ -150361,7 +92365,7 @@ function appendToMemberExpression(member, append, computed = false) { /***/ }), -/***/ 11331: +/***/ 29710: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150371,9 +92375,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = removeTypeDuplicates; -var _generated = __nccwpck_require__(24625); +var _index = __nccwpck_require__(27834); function getQualifiedName(node) { - return (0, _generated.isIdentifier)(node) ? node.name : `${node.id.name}.${getQualifiedName(node.qualification)}`; + return (0, _index.isIdentifier)(node) ? node.name : `${node.id.name}.${getQualifiedName(node.qualification)}`; } function removeTypeDuplicates(nodesIn) { const nodes = Array.from(nodesIn); @@ -150387,21 +92391,21 @@ function removeTypeDuplicates(nodesIn) { if (types.indexOf(node) >= 0) { continue; } - if ((0, _generated.isAnyTypeAnnotation)(node)) { + if ((0, _index.isAnyTypeAnnotation)(node)) { return [node]; } - if ((0, _generated.isFlowBaseAnnotation)(node)) { + if ((0, _index.isFlowBaseAnnotation)(node)) { bases.set(node.type, node); continue; } - if ((0, _generated.isUnionTypeAnnotation)(node)) { + if ((0, _index.isUnionTypeAnnotation)(node)) { if (!typeGroups.has(node.types)) { nodes.push(...node.types); typeGroups.add(node.types); } continue; } - if ((0, _generated.isGenericTypeAnnotation)(node)) { + if ((0, _index.isGenericTypeAnnotation)(node)) { const name = getQualifiedName(node.id); if (generics.has(name)) { let existing = generics.get(name); @@ -150434,7 +92438,7 @@ function removeTypeDuplicates(nodesIn) { /***/ }), -/***/ 98052: +/***/ 50494: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150444,11 +92448,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = inherits; -var _constants = __nccwpck_require__(23768); -var _inheritsComments = __nccwpck_require__(3770); +var _index = __nccwpck_require__(38133); +var _inheritsComments = __nccwpck_require__(69664); function inherits(child, parent) { if (!child || !parent) return child; - for (const key of _constants.INHERIT_KEYS.optional) { + for (const key of _index.INHERIT_KEYS.optional) { if (child[key] == null) { child[key] = parent[key]; } @@ -150458,7 +92462,7 @@ function inherits(child, parent) { child[key] = parent[key]; } } - for (const key of _constants.INHERIT_KEYS.force) { + for (const key of _index.INHERIT_KEYS.force) { child[key] = parent[key]; } (0, _inheritsComments.default)(child, parent); @@ -150470,7 +92474,7 @@ function inherits(child, parent) { /***/ }), -/***/ 11250: +/***/ 18076: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150480,13 +92484,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = prependToMemberExpression; -var _generated = __nccwpck_require__(52849); -var _ = __nccwpck_require__(53501); +var _index = __nccwpck_require__(61007); +var _index2 = __nccwpck_require__(68948); function prependToMemberExpression(member, prepend) { - if ((0, _.isSuper)(member.object)) { + if ((0, _index2.isSuper)(member.object)) { throw new Error("Cannot prepend node to super property access (`super.foo`)."); } - member.object = (0, _generated.memberExpression)(prepend, member.object); + member.object = (0, _index.memberExpression)(prepend, member.object); return member; } @@ -150495,7 +92499,7 @@ function prependToMemberExpression(member, prepend) { /***/ }), -/***/ 35522: +/***/ 94870: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150505,9 +92509,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = removeProperties; -var _constants = __nccwpck_require__(23768); +var _index = __nccwpck_require__(38133); const CLEAR_KEYS = ["tokens", "start", "end", "loc", "raw", "rawValue"]; -const CLEAR_KEYS_PLUS_COMMENTS = [..._constants.COMMENT_KEYS, "comments", ...CLEAR_KEYS]; +const CLEAR_KEYS_PLUS_COMMENTS = [..._index.COMMENT_KEYS, "comments", ...CLEAR_KEYS]; function removeProperties(node, opts = {}) { const map = opts.preserveComments ? CLEAR_KEYS : CLEAR_KEYS_PLUS_COMMENTS; for (const key of map) { @@ -150527,7 +92531,7 @@ function removeProperties(node, opts = {}) { /***/ }), -/***/ 95406: +/***/ 64534: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150537,8 +92541,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = removePropertiesDeep; -var _traverseFast = __nccwpck_require__(22518); -var _removeProperties = __nccwpck_require__(35522); +var _traverseFast = __nccwpck_require__(72002); +var _removeProperties = __nccwpck_require__(94870); function removePropertiesDeep(tree, opts) { (0, _traverseFast.default)(tree, _removeProperties.default, opts); return tree; @@ -150549,7 +92553,7 @@ function removePropertiesDeep(tree, opts) { /***/ }), -/***/ 53232: +/***/ 9489: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150559,9 +92563,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = removeTypeDuplicates; -var _generated = __nccwpck_require__(24625); +var _index = __nccwpck_require__(27834); function getQualifiedName(node) { - return (0, _generated.isIdentifier)(node) ? node.name : `${node.right.name}.${getQualifiedName(node.left)}`; + return (0, _index.isIdentifier)(node) ? node.name : `${node.right.name}.${getQualifiedName(node.left)}`; } function removeTypeDuplicates(nodesIn) { const nodes = Array.from(nodesIn); @@ -150575,21 +92579,21 @@ function removeTypeDuplicates(nodesIn) { if (types.indexOf(node) >= 0) { continue; } - if ((0, _generated.isTSAnyKeyword)(node)) { + if ((0, _index.isTSAnyKeyword)(node)) { return [node]; } - if ((0, _generated.isTSBaseType)(node)) { + if ((0, _index.isTSBaseType)(node)) { bases.set(node.type, node); continue; } - if ((0, _generated.isTSUnionType)(node)) { + if ((0, _index.isTSUnionType)(node)) { if (!typeGroups.has(node.types)) { nodes.push(...node.types); typeGroups.add(node.types); } continue; } - if ((0, _generated.isTSTypeReference)(node) && node.typeParameters) { + if ((0, _index.isTSTypeReference)(node) && node.typeParameters) { const name = getQualifiedName(node.typeName); if (generics.has(name)) { let existing = generics.get(name); @@ -150622,7 +92626,7 @@ function removeTypeDuplicates(nodesIn) { /***/ }), -/***/ 44738: +/***/ 20506: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150632,15 +92636,18 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = getBindingIdentifiers; -var _generated = __nccwpck_require__(24625); -function getBindingIdentifiers(node, duplicates, outerOnly) { +var _index = __nccwpck_require__(27834); +function getBindingIdentifiers(node, duplicates, outerOnly, newBindingsOnly) { const search = [].concat(node); const ids = Object.create(null); while (search.length) { const id = search.shift(); if (!id) continue; + if (newBindingsOnly && ((0, _index.isAssignmentExpression)(id) || (0, _index.isUnaryExpression)(id))) { + continue; + } const keys = getBindingIdentifiers.keys[id.type]; - if ((0, _generated.isIdentifier)(id)) { + if ((0, _index.isIdentifier)(id)) { if (duplicates) { const _ids = ids[id.name] = ids[id.name] || []; _ids.push(id); @@ -150649,18 +92656,18 @@ function getBindingIdentifiers(node, duplicates, outerOnly) { } continue; } - if ((0, _generated.isExportDeclaration)(id) && !(0, _generated.isExportAllDeclaration)(id)) { - if ((0, _generated.isDeclaration)(id.declaration)) { + if ((0, _index.isExportDeclaration)(id) && !(0, _index.isExportAllDeclaration)(id)) { + if ((0, _index.isDeclaration)(id.declaration)) { search.push(id.declaration); } continue; } if (outerOnly) { - if ((0, _generated.isFunctionDeclaration)(id)) { + if ((0, _index.isFunctionDeclaration)(id)) { search.push(id.id); continue; } - if ((0, _generated.isFunctionExpression)(id)) { + if ((0, _index.isFunctionExpression)(id)) { continue; } } @@ -150723,7 +92730,7 @@ getBindingIdentifiers.keys = { /***/ }), -/***/ 61946: +/***/ 34244: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150733,9 +92740,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _getBindingIdentifiers = __nccwpck_require__(44738); -var _default = getOuterBindingIdentifiers; -exports["default"] = _default; +var _getBindingIdentifiers = __nccwpck_require__(20506); +var _default = exports["default"] = getOuterBindingIdentifiers; function getOuterBindingIdentifiers(node, duplicates) { return (0, _getBindingIdentifiers.default)(node, duplicates, true); } @@ -150745,7 +92751,7 @@ function getOuterBindingIdentifiers(node, duplicates) { /***/ }), -/***/ 49484: +/***/ 61971: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150755,7 +92761,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = traverse; -var _definitions = __nccwpck_require__(25441); +var _index = __nccwpck_require__(26010); function traverse(node, handlers, state) { if (typeof handlers === "function") { handlers = { @@ -150769,7 +92775,7 @@ function traverse(node, handlers, state) { traverseSimpleImpl(node, enter, exit, state, []); } function traverseSimpleImpl(node, enter, exit, state, ancestors) { - const keys = _definitions.VISITOR_KEYS[node.type]; + const keys = _index.VISITOR_KEYS[node.type]; if (!keys) return; if (enter) enter(node, ancestors, state); for (const key of keys) { @@ -150803,7 +92809,7 @@ function traverseSimpleImpl(node, enter, exit, state, ancestors) { /***/ }), -/***/ 22518: +/***/ 72002: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150813,10 +92819,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = traverseFast; -var _definitions = __nccwpck_require__(25441); +var _index = __nccwpck_require__(26010); function traverseFast(node, enter, opts) { if (!node) return; - const keys = _definitions.VISITOR_KEYS[node.type]; + const keys = _index.VISITOR_KEYS[node.type]; if (!keys) return; opts = opts || {}; enter(node, opts); @@ -150837,7 +92843,7 @@ function traverseFast(node, enter, opts) { /***/ }), -/***/ 20008: +/***/ 29236: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -150889,7 +92895,7 @@ function captureShortStackTrace(skip, length) { /***/ }), -/***/ 1822: +/***/ 56666: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -150910,7 +92916,7 @@ function inherit(key, child, parent) { /***/ }), -/***/ 95340: +/***/ 52529: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150920,8 +92926,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = cleanJSXElementLiteralChild; -var _generated = __nccwpck_require__(52849); -var _ = __nccwpck_require__(53501); +var _index = __nccwpck_require__(61007); +var _index2 = __nccwpck_require__(68948); function cleanJSXElementLiteralChild(child, args) { const lines = child.value.split(/\r\n|\n|\r/); let lastNonEmptyLine = 0; @@ -150950,7 +92956,7 @@ function cleanJSXElementLiteralChild(child, args) { str += trimmedLine; } } - if (str) args.push((0, _.inherits)((0, _generated.stringLiteral)(str), child)); + if (str) args.push((0, _index2.inherits)((0, _index.stringLiteral)(str), child)); } //# sourceMappingURL=cleanJSXElementLiteralChild.js.map @@ -150958,7 +92964,7 @@ function cleanJSXElementLiteralChild(child, args) { /***/ }), -/***/ 46136: +/***/ 99664: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -150983,7 +92989,7 @@ function shallowEqual(actual, expected) { /***/ }), -/***/ 20196: +/***/ 52668: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -150993,7 +92999,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = buildMatchMemberExpression; -var _matchesPattern = __nccwpck_require__(58086); +var _matchesPattern = __nccwpck_require__(97567); function buildMatchMemberExpression(match, allowPartial) { const parts = match.split("."); return member => (0, _matchesPattern.default)(member, parts, allowPartial); @@ -151004,7 +93010,7 @@ function buildMatchMemberExpression(match, allowPartial) { /***/ }), -/***/ 24625: +/***/ 27834: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -151118,6 +93124,7 @@ exports.isImport = isImport; exports.isImportAttribute = isImportAttribute; exports.isImportDeclaration = isImportDeclaration; exports.isImportDefaultSpecifier = isImportDefaultSpecifier; +exports.isImportExpression = isImportExpression; exports.isImportNamespaceSpecifier = isImportNamespaceSpecifier; exports.isImportOrExportDeclaration = isImportOrExportDeclaration; exports.isImportSpecifier = isImportSpecifier; @@ -151316,8 +93323,8 @@ exports.isWhile = isWhile; exports.isWhileStatement = isWhileStatement; exports.isWithStatement = isWithStatement; exports.isYieldExpression = isYieldExpression; -var _shallowEqual = __nccwpck_require__(46136); -var _deprecationWarning = __nccwpck_require__(20008); +var _shallowEqual = __nccwpck_require__(99664); +var _deprecationWarning = __nccwpck_require__(29236); function isArrayExpression(node, opts) { if (!node) return false; if (node.type !== "ArrayExpression") return false; @@ -151648,6 +93655,11 @@ function isImportSpecifier(node, opts) { if (node.type !== "ImportSpecifier") return false; return opts == null || (0, _shallowEqual.default)(node, opts); } +function isImportExpression(node, opts) { + if (!node) return false; + if (node.type !== "ImportExpression") return false; + return opts == null || (0, _shallowEqual.default)(node, opts); +} function isMetaProperty(node, opts) { if (!node) return false; if (node.type !== "MetaProperty") return false; @@ -152632,6 +94644,7 @@ function isStandardized(node, opts) { case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": + case "ImportExpression": case "MetaProperty": case "ClassMethod": case "ObjectPattern": @@ -152696,6 +94709,7 @@ function isExpression(node, opts) { case "UpdateExpression": case "ArrowFunctionExpression": case "ClassExpression": + case "ImportExpression": case "MetaProperty": case "Super": case "TaggedTemplateExpression": @@ -153756,7 +95770,7 @@ function isModuleDeclaration(node, opts) { /***/ }), -/***/ 1285: +/***/ 60212: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153766,15 +95780,15 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = is; -var _shallowEqual = __nccwpck_require__(46136); -var _isType = __nccwpck_require__(86349); -var _isPlaceholderType = __nccwpck_require__(63038); -var _definitions = __nccwpck_require__(25441); +var _shallowEqual = __nccwpck_require__(99664); +var _isType = __nccwpck_require__(82215); +var _isPlaceholderType = __nccwpck_require__(898); +var _index = __nccwpck_require__(26010); function is(type, node, opts) { if (!node) return false; const matches = (0, _isType.default)(node.type, type); if (!matches) { - if (!opts && node.type === "Placeholder" && type in _definitions.FLIPPED_ALIAS_KEYS) { + if (!opts && node.type === "Placeholder" && type in _index.FLIPPED_ALIAS_KEYS) { return (0, _isPlaceholderType.default)(node.expectedNode, type); } return false; @@ -153791,7 +95805,7 @@ function is(type, node, opts) { /***/ }), -/***/ 6702: +/***/ 37230: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153801,7 +95815,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isBinding; -var _getBindingIdentifiers = __nccwpck_require__(44738); +var _getBindingIdentifiers = __nccwpck_require__(20506); function isBinding(node, parent, grandparent) { if (grandparent && node.type === "Identifier" && parent.type === "ObjectProperty" && grandparent.type === "ObjectExpression") { return false; @@ -153826,7 +95840,7 @@ function isBinding(node, parent, grandparent) { /***/ }), -/***/ 5927: +/***/ 43861: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153836,10 +95850,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isBlockScoped; -var _generated = __nccwpck_require__(24625); -var _isLet = __nccwpck_require__(2900); +var _index = __nccwpck_require__(27834); +var _isLet = __nccwpck_require__(74103); function isBlockScoped(node) { - return (0, _generated.isFunctionDeclaration)(node) || (0, _generated.isClassDeclaration)(node) || (0, _isLet.default)(node); + return (0, _index.isFunctionDeclaration)(node) || (0, _index.isClassDeclaration)(node) || (0, _isLet.default)(node); } //# sourceMappingURL=isBlockScoped.js.map @@ -153847,7 +95861,7 @@ function isBlockScoped(node) { /***/ }), -/***/ 11386: +/***/ 66708: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153857,11 +95871,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isImmutable; -var _isType = __nccwpck_require__(86349); -var _generated = __nccwpck_require__(24625); +var _isType = __nccwpck_require__(82215); +var _index = __nccwpck_require__(27834); function isImmutable(node) { if ((0, _isType.default)(node.type, "Immutable")) return true; - if ((0, _generated.isIdentifier)(node)) { + if ((0, _index.isIdentifier)(node)) { if (node.name === "undefined") { return true; } else { @@ -153876,7 +95890,7 @@ function isImmutable(node) { /***/ }), -/***/ 2900: +/***/ 74103: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153886,10 +95900,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isLet; -var _generated = __nccwpck_require__(24625); -var _constants = __nccwpck_require__(23768); +var _index = __nccwpck_require__(27834); +var _index2 = __nccwpck_require__(38133); function isLet(node) { - return (0, _generated.isVariableDeclaration)(node) && (node.kind !== "var" || node[_constants.BLOCK_SCOPED_SYMBOL]); + return (0, _index.isVariableDeclaration)(node) && (node.kind !== "var" || node[_index2.BLOCK_SCOPED_SYMBOL]); } //# sourceMappingURL=isLet.js.map @@ -153897,7 +95911,7 @@ function isLet(node) { /***/ }), -/***/ 38163: +/***/ 93972: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153907,9 +95921,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isNode; -var _definitions = __nccwpck_require__(25441); +var _index = __nccwpck_require__(26010); function isNode(node) { - return !!(node && _definitions.VISITOR_KEYS[node.type]); + return !!(node && _index.VISITOR_KEYS[node.type]); } //# sourceMappingURL=isNode.js.map @@ -153917,7 +95931,7 @@ function isNode(node) { /***/ }), -/***/ 72903: +/***/ 80427: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153927,7 +95941,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isNodesEquivalent; -var _definitions = __nccwpck_require__(25441); +var _index = __nccwpck_require__(26010); function isNodesEquivalent(a, b) { if (typeof a !== "object" || typeof b !== "object" || a == null || b == null) { return a === b; @@ -153935,8 +95949,8 @@ function isNodesEquivalent(a, b) { if (a.type !== b.type) { return false; } - const fields = Object.keys(_definitions.NODE_FIELDS[a.type] || a.type); - const visitorKeys = _definitions.VISITOR_KEYS[a.type]; + const fields = Object.keys(_index.NODE_FIELDS[a.type] || a.type); + const visitorKeys = _index.VISITOR_KEYS[a.type]; for (const field of fields) { const val_a = a[field]; const val_b = b[field]; @@ -153982,7 +95996,7 @@ function isNodesEquivalent(a, b) { /***/ }), -/***/ 63038: +/***/ 898: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -153992,10 +96006,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isPlaceholderType; -var _definitions = __nccwpck_require__(25441); +var _index = __nccwpck_require__(26010); function isPlaceholderType(placeholderType, targetType) { if (placeholderType === targetType) return true; - const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType]; + const aliases = _index.PLACEHOLDERS_ALIAS[placeholderType]; if (aliases) { for (const alias of aliases) { if (targetType === alias) return true; @@ -154009,7 +96023,7 @@ function isPlaceholderType(placeholderType, targetType) { /***/ }), -/***/ 20892: +/***/ 85090: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -154113,7 +96127,7 @@ function isReferenced(node, parent, grandparent) { /***/ }), -/***/ 46307: +/***/ 98821: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154123,15 +96137,15 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isScope; -var _generated = __nccwpck_require__(24625); +var _index = __nccwpck_require__(27834); function isScope(node, parent) { - if ((0, _generated.isBlockStatement)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { + if ((0, _index.isBlockStatement)(node) && ((0, _index.isFunction)(parent) || (0, _index.isCatchClause)(parent))) { return false; } - if ((0, _generated.isPattern)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { + if ((0, _index.isPattern)(node) && ((0, _index.isFunction)(parent) || (0, _index.isCatchClause)(parent))) { return true; } - return (0, _generated.isScopable)(node); + return (0, _index.isScopable)(node); } //# sourceMappingURL=isScope.js.map @@ -154139,7 +96153,7 @@ function isScope(node, parent) { /***/ }), -/***/ 88535: +/***/ 75412: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154149,9 +96163,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isSpecifierDefault; -var _generated = __nccwpck_require__(24625); +var _index = __nccwpck_require__(27834); function isSpecifierDefault(specifier) { - return (0, _generated.isImportDefaultSpecifier)(specifier) || (0, _generated.isIdentifier)(specifier.imported || specifier.exported, { + return (0, _index.isImportDefaultSpecifier)(specifier) || (0, _index.isIdentifier)(specifier.imported || specifier.exported, { name: "default" }); } @@ -154161,7 +96175,7 @@ function isSpecifierDefault(specifier) { /***/ }), -/***/ 86349: +/***/ 82215: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154171,11 +96185,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isType; -var _definitions = __nccwpck_require__(25441); +var _index = __nccwpck_require__(26010); function isType(nodeType, targetType) { if (nodeType === targetType) return true; - if (_definitions.ALIAS_KEYS[targetType]) return false; - const aliases = _definitions.FLIPPED_ALIAS_KEYS[targetType]; + if (nodeType == null) return false; + if (_index.ALIAS_KEYS[targetType]) return false; + const aliases = _index.FLIPPED_ALIAS_KEYS[targetType]; if (aliases) { if (aliases[0] === nodeType) return true; for (const alias of aliases) { @@ -154190,7 +96205,7 @@ function isType(nodeType, targetType) { /***/ }), -/***/ 33877: +/***/ 34457: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154200,7 +96215,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isValidES3Identifier; -var _isValidIdentifier = __nccwpck_require__(183); +var _isValidIdentifier = __nccwpck_require__(93551); const RESERVED_WORDS_ES3_ONLY = new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implements", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transient", "volatile"]); function isValidES3Identifier(name) { return (0, _isValidIdentifier.default)(name) && !RESERVED_WORDS_ES3_ONLY.has(name); @@ -154211,7 +96226,7 @@ function isValidES3Identifier(name) { /***/ }), -/***/ 183: +/***/ 93551: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154221,7 +96236,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isValidIdentifier; -var _helperValidatorIdentifier = __nccwpck_require__(21974); +var _helperValidatorIdentifier = __nccwpck_require__(63442); function isValidIdentifier(name, reserved = true) { if (typeof name !== "string") return false; if (reserved) { @@ -154237,7 +96252,7 @@ function isValidIdentifier(name, reserved = true) { /***/ }), -/***/ 5490: +/***/ 67750: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154247,12 +96262,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isVar; -var _generated = __nccwpck_require__(24625); -var _constants = __nccwpck_require__(23768); +var _index = __nccwpck_require__(27834); +var _index2 = __nccwpck_require__(38133); function isVar(node) { - return (0, _generated.isVariableDeclaration)(node, { + return (0, _index.isVariableDeclaration)(node, { kind: "var" - }) && !node[_constants.BLOCK_SCOPED_SYMBOL]; + }) && !node[_index2.BLOCK_SCOPED_SYMBOL]; } //# sourceMappingURL=isVar.js.map @@ -154260,7 +96275,7 @@ function isVar(node) { /***/ }), -/***/ 58086: +/***/ 97567: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154270,13 +96285,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = matchesPattern; -var _generated = __nccwpck_require__(24625); +var _index = __nccwpck_require__(27834); function matchesPattern(member, match, allowPartial) { - if (!(0, _generated.isMemberExpression)(member)) return false; + if (!(0, _index.isMemberExpression)(member)) return false; const parts = Array.isArray(match) ? match : match.split("."); const nodes = []; let node; - for (node = member; (0, _generated.isMemberExpression)(node); node = node.object) { + for (node = member; (0, _index.isMemberExpression)(node); node = node.object) { nodes.push(node.property); } nodes.push(node); @@ -154285,11 +96300,11 @@ function matchesPattern(member, match, allowPartial) { for (let i = 0, j = nodes.length - 1; i < parts.length; i++, j--) { const node = nodes[j]; let value; - if ((0, _generated.isIdentifier)(node)) { + if ((0, _index.isIdentifier)(node)) { value = node.name; - } else if ((0, _generated.isStringLiteral)(node)) { + } else if ((0, _index.isStringLiteral)(node)) { value = node.value; - } else if ((0, _generated.isThisExpression)(node)) { + } else if ((0, _index.isThisExpression)(node)) { value = "this"; } else { return false; @@ -154304,7 +96319,7 @@ function matchesPattern(member, match, allowPartial) { /***/ }), -/***/ 8678: +/***/ 32948: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -154323,7 +96338,7 @@ function isCompatTag(tagName) { /***/ }), -/***/ 76981: +/***/ 78737: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154333,17 +96348,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _buildMatchMemberExpression = __nccwpck_require__(20196); +var _buildMatchMemberExpression = __nccwpck_require__(52668); const isReactComponent = (0, _buildMatchMemberExpression.default)("React.Component"); -var _default = isReactComponent; -exports["default"] = _default; +var _default = exports["default"] = isReactComponent; //# sourceMappingURL=isReactComponent.js.map /***/ }), -/***/ 43588: +/***/ 99850: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -154355,10 +96369,10 @@ Object.defineProperty(exports, "__esModule", ({ exports["default"] = validate; exports.validateChild = validateChild; exports.validateField = validateField; -var _definitions = __nccwpck_require__(25441); +var _index = __nccwpck_require__(26010); function validate(node, key, val) { if (!node) return; - const fields = _definitions.NODE_FIELDS[node.type]; + const fields = _index.NODE_FIELDS[node.type]; if (!fields) return; const field = fields[key]; validateField(node, key, val, field); @@ -154371,7 +96385,7 @@ function validateField(node, key, val, field) { } function validateChild(node, key, val) { if (val == null) return; - const validate = _definitions.NODE_PARENT_VALIDATIONS[val.type]; + const validate = _index.NODE_PARENT_VALIDATIONS[val.type]; if (!validate) return; validate(node, key, val); } @@ -154381,24 +96395,106 @@ function validateChild(node, key, val) { /***/ }), -/***/ 15950: +/***/ 57695: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { -module.exports = function import_(filepath) { - return __nccwpck_require__(78941)(filepath); +"use strict"; + +const { compare, intersection, semver } = __nccwpck_require__(16093); +const modulesByVersions = __nccwpck_require__(87734); +const modules = __nccwpck_require__(68806); + +module.exports = function (raw) { + const corejs = semver(raw); + if (corejs.major !== 3) { + throw new RangeError('This version of `core-js-compat` works only with `core-js@3`.'); + } + const result = []; + for (const version of Object.keys(modulesByVersions)) { + if (compare(version, '<=', corejs)) { + result.push(...modulesByVersions[version]); + } + } + return intersection(result, modules); }; -0 && 0; -//# sourceMappingURL=import.cjs.map + +/***/ }), + +/***/ 16093: +/***/ (function(module) { + +"use strict"; + +// eslint-disable-next-line es/no-object-hasown -- safe +const has = Object.hasOwn || Function.call.bind({}.hasOwnProperty); + +function semver(input) { + if (input instanceof semver) return input; + // eslint-disable-next-line new-cap -- ok + if (!(this instanceof semver)) return new semver(input); + const match = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/.exec(input); + if (!match) throw new TypeError(`Invalid version: ${ input }`); + const [, $major, $minor, $patch] = match; + this.major = +$major; + this.minor = $minor ? +$minor : 0; + this.patch = $patch ? +$patch : 0; +} + +semver.prototype.toString = function () { + return `${ this.major }.${ this.minor }.${ this.patch }`; +}; + +function compare($a, operator, $b) { + const a = semver($a); + const b = semver($b); + for (const component of ['major', 'minor', 'patch']) { + if (a[component] < b[component]) return operator === '<' || operator === '<=' || operator === '!='; + if (a[component] > b[component]) return operator === '>' || operator === '>=' || operator === '!='; + } return operator === '==' || operator === '<=' || operator === '>='; +} + +function filterOutStabilizedProposals(modules) { + const modulesSet = new Set(modules); + + for (const $module of modulesSet) { + if ($module.startsWith('esnext.') && modulesSet.has($module.replace(/^esnext\./, 'es.'))) { + modulesSet.delete($module); + } + } + + return [...modulesSet]; +} + +function intersection(list, order) { + const set = list instanceof Set ? list : new Set(list); + return order.filter(name => set.has(name)); +} + +function sortObjectByKey(object, fn) { + return Object.keys(object).sort(fn).reduce((memo, key) => { + memo[key] = object[key]; + return memo; + }, {}); +} + +module.exports = { + compare, + filterOutStabilizedProposals, + has, + intersection, + semver, + sortObjectByKey, +}; /***/ }), -/***/ 59534: +/***/ 87286: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { module.exports = function import_(filepath) { - return __nccwpck_require__(85179)(filepath); + return __nccwpck_require__(40854)(filepath); }; 0 && 0; @@ -154407,83 +96503,333 @@ module.exports = function import_(filepath) { /***/ }), -/***/ 5585: +/***/ 84062: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +Object.defineProperty(exports, "createPolyfillPlugins", ({ + get: () => __nccwpck_require__(2820) +})); + +//# sourceMappingURL=index.cjs.map + + +/***/ }), + +/***/ 2820: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +; +const pluginCorejs2 = (__nccwpck_require__(63886)/* ["default"] */ .Z); +const pluginRegenerator = (__nccwpck_require__(10864)/* ["default"] */ .Z); +const pluginsCompat = "#__secret_key__@babel/runtime__compatibility"; +function createCorejs2Plugin(options) { + return (api, _, filename) => pluginCorejs2(api, options, filename); +} +function createRegeneratorPlugin(options, useRuntimeRegenerator, corejsPlugin) { + if (!useRuntimeRegenerator) return corejsPlugin != null ? corejsPlugin : undefined; + return (api, _, filename) => { + return Object.assign({}, pluginRegenerator(api, options, filename), { + inherits: corejsPlugin != null ? corejsPlugin : undefined + }); + }; +} +module.exports = function createBasePolyfillsPlugin({ + corejs, + regenerator = true +}, runtimeVersion, absoluteImports, corejs3Plugin) { + let proposals = false; + let rawVersion; + if (typeof corejs === "object" && corejs !== null) { + rawVersion = corejs.version; + proposals = Boolean(corejs.proposals); + } else { + rawVersion = corejs; + } + const corejsVersion = rawVersion ? Number(rawVersion) : false; + if (![false, 2, 3].includes(corejsVersion)) { + throw new Error(`The \`core-js\` version must be false, 2 or 3, but got ${JSON.stringify(rawVersion)}.`); + } + if (proposals && (!corejsVersion || corejsVersion < 3)) { + throw new Error("The 'proposals' option is only supported when using 'corejs: 3'"); + } + if (typeof regenerator !== "boolean") { + throw new Error("The 'regenerator' option must be undefined, or a boolean."); + } + const polyfillOpts = { + method: "usage-pure", + absoluteImports, + [pluginsCompat]: { + useBabelRuntime: true, + runtimeVersion, + ext: "" + } + }; + return createRegeneratorPlugin(polyfillOpts, regenerator, corejsVersion === 2 ? createCorejs2Plugin(polyfillOpts) : corejsVersion === 3 ? corejs3Plugin : null); +}; + +//# sourceMappingURL=polyfills.cjs.map + + +/***/ }), + +/***/ 5646: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +{ + Object.defineProperties(exports, { + pluginCoreJS2: { + get: () => (__nccwpck_require__(63886)/* ["default"] */ .Z) + }, + pluginRegenerator: { + get: () => (__nccwpck_require__(10864)/* ["default"] */ .Z) + }, + legacyBabelPolyfillPlugin: { + get: () => __nccwpck_require__(60557) + }, + removeRegeneratorEntryPlugin: { + get: () => __nccwpck_require__(77377) + } + }); +} + +//# sourceMappingURL=babel-7-plugins.cjs.map + + +/***/ }), + +/***/ 60557: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +; +const { + getImportSource, + getRequireSource, + isPolyfillSource +} = __nccwpck_require__(77768); +const BABEL_POLYFILL_DEPRECATION = ` + \`@babel/polyfill\` is deprecated. Please, use required parts of \`core-js\` + and \`regenerator-runtime/runtime\` separately`; +const NO_DIRECT_POLYFILL_IMPORT = ` + When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed. + Please remove the direct import of \`SPECIFIER\` or use \`useBuiltIns: 'entry'\` instead.`; +module.exports = function ({ + template +}, { + regenerator, + deprecated, + usage +}) { + return { + name: "preset-env/replace-babel-polyfill", + visitor: { + ImportDeclaration(path) { + const src = getImportSource(path); + if (usage && isPolyfillSource(src)) { + console.warn(NO_DIRECT_POLYFILL_IMPORT.replace("SPECIFIER", src)); + if (!deprecated) path.remove(); + } else if (src === "@babel/polyfill") { + if (deprecated) { + console.warn(BABEL_POLYFILL_DEPRECATION); + } else if (regenerator) { + path.replaceWithMultiple(template.ast` + import "core-js"; + import "regenerator-runtime/runtime.js"; + `); + } else { + path.replaceWith(template.ast` + import "core-js"; + `); + } + } + }, + Program(path) { + path.get("body").forEach(bodyPath => { + const src = getRequireSource(bodyPath); + if (usage && isPolyfillSource(src)) { + console.warn(NO_DIRECT_POLYFILL_IMPORT.replace("SPECIFIER", src)); + if (!deprecated) bodyPath.remove(); + } else if (src === "@babel/polyfill") { + if (deprecated) { + console.warn(BABEL_POLYFILL_DEPRECATION); + } else if (regenerator) { + bodyPath.replaceWithMultiple(template.ast` + require("core-js"); + require("regenerator-runtime/runtime.js"); + `); + } else { + bodyPath.replaceWith(template.ast` + require("core-js"); + `); + } + } + }); + } + } + }; +}; + +//# sourceMappingURL=babel-polyfill.cjs.map + + +/***/ }), + +/***/ 77377: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +; +const { + getImportSource, + getRequireSource +} = __nccwpck_require__(77768); +function isRegeneratorSource(source) { + return source === "regenerator-runtime/runtime" || source === "regenerator-runtime/runtime.js"; +} +module.exports = function () { + const visitor = { + ImportDeclaration(path) { + if (isRegeneratorSource(getImportSource(path))) { + this.regeneratorImportExcluded = true; + path.remove(); + } + }, + Program(path) { + path.get("body").forEach(bodyPath => { + if (isRegeneratorSource(getRequireSource(bodyPath))) { + this.regeneratorImportExcluded = true; + bodyPath.remove(); + } + }); + } + }; + return { + name: "preset-env/remove-regenerator", + visitor, + pre() { + this.regeneratorImportExcluded = false; + }, + post() { + if (this.opts.debug && this.regeneratorImportExcluded) { + let filename = this.file.opts.filename; + if (process.env.BABEL_ENV === "test") { + filename = filename.replace(/\\/g, "/"); + } + console.log(`\n[${filename}] Based on your targets, regenerator-runtime import excluded.`); + } + } + }; +}; + +//# sourceMappingURL=regenerator.cjs.map + + +/***/ }), + +/***/ 77768: +/***/ (function(__unused_webpack_module, exports) { + +; +exports.getImportSource = function ({ + node +}) { + if (node.specifiers.length === 0) return node.source.value; +}; +exports.getRequireSource = function ({ + node +}) { + if (node.type !== "ExpressionStatement") return; + const { + expression + } = node; + if (expression.type === "CallExpression" && expression.callee.type === "Identifier" && expression.callee.name === "require" && expression.arguments.length === 1 && expression.arguments[0].type === "StringLiteral") { + return expression.arguments[0].value; + } +}; +exports.isPolyfillSource = function (source) { + return source === "@babel/polyfill" || source === "core-js"; +}; + +//# sourceMappingURL=utils.cjs.map + + +/***/ }), + +/***/ 31203: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"es6.array.copy-within":{"chrome":"45","opera":"32","edge":"12","firefox":"32","safari":"9","node":"4","deno":"1","ios":"9","samsung":"5","rhino":"1.7.13","electron":"0.31"},"es6.array.every":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.fill":{"chrome":"45","opera":"32","edge":"12","firefox":"31","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"5","rhino":"1.7.13","electron":"0.31"},"es6.array.filter":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.array.find":{"chrome":"45","opera":"32","edge":"12","firefox":"25","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"5","rhino":"1.7.13","electron":"0.31"},"es6.array.find-index":{"chrome":"45","opera":"32","edge":"12","firefox":"25","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"5","rhino":"1.7.13","electron":"0.31"},"es7.array.flat-map":{"chrome":"69","opera":"56","edge":"79","firefox":"62","safari":"12","node":"11","deno":"1","ios":"12","samsung":"10","electron":"4.0"},"es6.array.for-each":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.from":{"chrome":"51","opera":"38","edge":"15","firefox":"36","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es7.array.includes":{"chrome":"47","opera":"34","edge":"14","firefox":"102","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.36"},"es6.array.index-of":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.is-array":{"chrome":"5","opera":"10.50","edge":"12","firefox":"4","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.iterator":{"chrome":"66","opera":"53","edge":"12","firefox":"60","safari":"9","node":"10","deno":"1","ios":"9","samsung":"9","rhino":"1.7.13","electron":"3.0"},"es6.array.last-index-of":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.map":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.array.of":{"chrome":"45","opera":"32","edge":"12","firefox":"25","safari":"9","node":"4","deno":"1","ios":"9","samsung":"5","rhino":"1.7.13","electron":"0.31"},"es6.array.reduce":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.reduce-right":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.slice":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.array.some":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.array.sort":{"chrome":"63","opera":"50","edge":"12","firefox":"5","safari":"12","node":"10","deno":"1","ie":"9","ios":"12","samsung":"8","rhino":"1.7.13","electron":"3.0"},"es6.array.species":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.date.now":{"chrome":"5","opera":"10.50","edge":"12","firefox":"2","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.date.to-iso-string":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3.5","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.date.to-json":{"chrome":"5","opera":"12.10","edge":"12","firefox":"4","safari":"10","node":"0.4","deno":"1","ie":"9","android":"4","ios":"10","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.date.to-primitive":{"chrome":"47","opera":"34","edge":"15","firefox":"44","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.36"},"es6.date.to-string":{"chrome":"5","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"10","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.function.bind":{"chrome":"7","opera":"12","edge":"12","firefox":"4","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.function.has-instance":{"chrome":"51","opera":"38","edge":"15","firefox":"50","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.function.name":{"chrome":"5","opera":"10.50","edge":"14","firefox":"2","safari":"4","node":"0.4","deno":"1","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.map":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.math.acosh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.asinh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.atanh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.cbrt":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.clz32":{"chrome":"38","opera":"25","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.cosh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.expm1":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.fround":{"chrome":"38","opera":"25","edge":"12","firefox":"26","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.hypot":{"chrome":"38","opera":"25","edge":"12","firefox":"27","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.imul":{"chrome":"30","opera":"17","edge":"12","firefox":"23","safari":"7","node":"0.12","deno":"1","android":"4.4","ios":"7","samsung":"2","rhino":"1.7.13","electron":"0.20"},"es6.math.log1p":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.log10":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.log2":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.sign":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.sinh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.tanh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.math.trunc":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.number.constructor":{"chrome":"41","opera":"28","edge":"12","firefox":"36","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.number.epsilon":{"chrome":"34","opera":"21","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.14","electron":"0.20"},"es6.number.is-finite":{"chrome":"19","opera":"15","edge":"12","firefox":"16","safari":"9","node":"0.8","deno":"1","android":"4.1","ios":"9","samsung":"1.5","rhino":"1.7.13","electron":"0.20"},"es6.number.is-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"16","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","electron":"0.20"},"es6.number.is-nan":{"chrome":"19","opera":"15","edge":"12","firefox":"15","safari":"9","node":"0.8","deno":"1","android":"4.1","ios":"9","samsung":"1.5","rhino":"1.7.13","electron":"0.20"},"es6.number.is-safe-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"32","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","electron":"0.20"},"es6.number.max-safe-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","electron":"0.20"},"es6.number.min-safe-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","electron":"0.20"},"es6.number.parse-float":{"chrome":"34","opera":"21","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.14","electron":"0.20"},"es6.number.parse-int":{"chrome":"34","opera":"21","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.14","electron":"0.20"},"es6.object.assign":{"chrome":"49","opera":"36","edge":"13","firefox":"36","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.object.create":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es7.object.define-getter":{"chrome":"62","opera":"49","edge":"16","firefox":"48","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","electron":"3.0"},"es7.object.define-setter":{"chrome":"62","opera":"49","edge":"16","firefox":"48","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","electron":"3.0"},"es6.object.define-property":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.object.define-properties":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es7.object.entries":{"chrome":"54","opera":"41","edge":"14","firefox":"47","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","electron":"1.4"},"es6.object.freeze":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es6.object.get-own-property-descriptor":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es7.object.get-own-property-descriptors":{"chrome":"54","opera":"41","edge":"15","firefox":"50","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","electron":"1.4"},"es6.object.get-own-property-names":{"chrome":"40","opera":"27","edge":"12","firefox":"33","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.object.get-prototype-of":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es7.object.lookup-getter":{"chrome":"62","opera":"49","edge":"79","firefox":"36","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","electron":"3.0"},"es7.object.lookup-setter":{"chrome":"62","opera":"49","edge":"79","firefox":"36","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","electron":"3.0"},"es6.object.prevent-extensions":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es6.object.to-string":{"chrome":"57","opera":"44","edge":"15","firefox":"51","safari":"10","node":"8","deno":"1","ios":"10","samsung":"7","electron":"1.7"},"es6.object.is":{"chrome":"19","opera":"15","edge":"12","firefox":"22","safari":"9","node":"0.8","deno":"1","android":"4.1","ios":"9","samsung":"1.5","rhino":"1.7.13","electron":"0.20"},"es6.object.is-frozen":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es6.object.is-sealed":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es6.object.is-extensible":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es6.object.keys":{"chrome":"40","opera":"27","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.object.seal":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","electron":"0.30"},"es6.object.set-prototype-of":{"chrome":"34","opera":"21","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ie":"11","ios":"9","samsung":"2","rhino":"1.7.13","electron":"0.20"},"es7.object.values":{"chrome":"54","opera":"41","edge":"14","firefox":"47","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","electron":"1.4"},"es6.promise":{"chrome":"51","opera":"38","edge":"14","firefox":"45","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es7.promise.finally":{"chrome":"63","opera":"50","edge":"18","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"8","electron":"3.0"},"es6.reflect.apply":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.construct":{"chrome":"49","opera":"36","edge":"13","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.define-property":{"chrome":"49","opera":"36","edge":"13","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.delete-property":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.get":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.get-own-property-descriptor":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.get-prototype-of":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.has":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.is-extensible":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.own-keys":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.prevent-extensions":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.set":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.reflect.set-prototype-of":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"es6.regexp.constructor":{"chrome":"50","opera":"37","edge":"79","firefox":"40","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"1.1"},"es6.regexp.flags":{"chrome":"49","opera":"36","edge":"79","firefox":"37","safari":"9","node":"6","deno":"1","ios":"9","samsung":"5","electron":"0.37"},"es6.regexp.match":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","electron":"1.1"},"es6.regexp.replace":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"1.1"},"es6.regexp.split":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"1.1"},"es6.regexp.search":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","electron":"1.1"},"es6.regexp.to-string":{"chrome":"50","opera":"37","edge":"79","firefox":"39","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"1.1"},"es6.set":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.symbol":{"chrome":"51","opera":"38","edge":"79","firefox":"51","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es7.symbol.async-iterator":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","electron":"3.0"},"es6.string.anchor":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.big":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.blink":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.bold":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.code-point-at":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.string.ends-with":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.string.fixed":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.fontcolor":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.fontsize":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.from-code-point":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.string.includes":{"chrome":"41","opera":"28","edge":"12","firefox":"40","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.string.italics":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.iterator":{"chrome":"38","opera":"25","edge":"12","firefox":"36","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","electron":"0.20"},"es6.string.link":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es7.string.pad-start":{"chrome":"57","opera":"44","edge":"15","firefox":"48","safari":"10","node":"8","deno":"1","ios":"10","samsung":"7","rhino":"1.7.13","electron":"1.7"},"es7.string.pad-end":{"chrome":"57","opera":"44","edge":"15","firefox":"48","safari":"10","node":"8","deno":"1","ios":"10","samsung":"7","rhino":"1.7.13","electron":"1.7"},"es6.string.raw":{"chrome":"41","opera":"28","edge":"12","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.14","electron":"0.21"},"es6.string.repeat":{"chrome":"41","opera":"28","edge":"12","firefox":"24","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.string.small":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.starts-with":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","electron":"0.21"},"es6.string.strike":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.sub":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.sup":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","electron":"0.20"},"es6.string.trim":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3.5","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es7.string.trim-left":{"chrome":"66","opera":"53","edge":"79","firefox":"61","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.13","electron":"3.0"},"es7.string.trim-right":{"chrome":"66","opera":"53","edge":"79","firefox":"61","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.13","electron":"3.0"},"es6.typed.array-buffer":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.data-view":{"chrome":"5","opera":"12","edge":"12","firefox":"15","safari":"5.1","node":"0.4","deno":"1","ie":"10","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"es6.typed.int8-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.uint8-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.uint8-clamped-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.int16-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.uint16-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.int32-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.uint32-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.float32-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.typed.float64-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"es6.weak-map":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"9","node":"6.5","deno":"1","ios":"9","samsung":"5","electron":"1.2"},"es6.weak-set":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"9","node":"6.5","deno":"1","ios":"9","samsung":"5","electron":"1.2"}}'); +module.exports = JSON.parse('{"es6.array.copy-within":{"chrome":"45","opera":"32","edge":"12","firefox":"32","safari":"9","node":"4","deno":"1","ios":"9","samsung":"5","rhino":"1.7.13","opera_mobile":"32","electron":"0.31"},"es6.array.every":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.fill":{"chrome":"45","opera":"32","edge":"12","firefox":"31","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"5","rhino":"1.7.13","opera_mobile":"32","electron":"0.31"},"es6.array.filter":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.array.find":{"chrome":"45","opera":"32","edge":"12","firefox":"25","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"5","rhino":"1.7.13","opera_mobile":"32","electron":"0.31"},"es6.array.find-index":{"chrome":"45","opera":"32","edge":"12","firefox":"25","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"5","rhino":"1.7.13","opera_mobile":"32","electron":"0.31"},"es7.array.flat-map":{"chrome":"69","opera":"56","edge":"79","firefox":"62","safari":"12","node":"11","deno":"1","ios":"12","samsung":"10","opera_mobile":"48","electron":"4.0"},"es6.array.for-each":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.from":{"chrome":"51","opera":"38","edge":"15","firefox":"36","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es7.array.includes":{"chrome":"47","opera":"34","edge":"14","firefox":"102","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"34","electron":"0.36"},"es6.array.index-of":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.is-array":{"chrome":"5","opera":"10.50","edge":"12","firefox":"4","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.iterator":{"chrome":"66","opera":"53","edge":"12","firefox":"60","safari":"9","node":"10","deno":"1","ios":"9","samsung":"9","rhino":"1.7.13","opera_mobile":"47","electron":"3.0"},"es6.array.last-index-of":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.map":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.array.of":{"chrome":"45","opera":"32","edge":"12","firefox":"25","safari":"9","node":"4","deno":"1","ios":"9","samsung":"5","rhino":"1.7.13","opera_mobile":"32","electron":"0.31"},"es6.array.reduce":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.reduce-right":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.slice":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.array.some":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.array.sort":{"chrome":"63","opera":"50","edge":"12","firefox":"5","safari":"12","node":"10","deno":"1","ie":"9","ios":"12","samsung":"8","rhino":"1.7.13","opera_mobile":"46","electron":"3.0"},"es6.array.species":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.date.now":{"chrome":"5","opera":"10.50","edge":"12","firefox":"2","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.date.to-iso-string":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3.5","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.date.to-json":{"chrome":"5","opera":"12.10","edge":"12","firefox":"4","safari":"10","node":"0.4","deno":"1","ie":"9","android":"4","ios":"10","samsung":"1","rhino":"1.7.13","opera_mobile":"12.1","electron":"0.20"},"es6.date.to-primitive":{"chrome":"47","opera":"34","edge":"15","firefox":"44","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"34","electron":"0.36"},"es6.date.to-string":{"chrome":"5","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.4","deno":"1","ie":"10","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.function.bind":{"chrome":"7","opera":"12","edge":"12","firefox":"4","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"es6.function.has-instance":{"chrome":"51","opera":"38","edge":"15","firefox":"50","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.function.name":{"chrome":"5","opera":"10.50","edge":"14","firefox":"2","safari":"4","node":"0.4","deno":"1","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es6.map":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.math.acosh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.asinh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.atanh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.cbrt":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.clz32":{"chrome":"38","opera":"25","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.cosh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.expm1":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.fround":{"chrome":"38","opera":"25","edge":"12","firefox":"26","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.hypot":{"chrome":"38","opera":"25","edge":"12","firefox":"27","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.imul":{"chrome":"30","opera":"17","edge":"12","firefox":"23","safari":"7","node":"0.12","deno":"1","android":"4.4","ios":"7","samsung":"2","rhino":"1.7.13","opera_mobile":"18","electron":"0.20"},"es6.math.log1p":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.log10":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.log2":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.sign":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.sinh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.tanh":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.math.trunc":{"chrome":"38","opera":"25","edge":"12","firefox":"25","safari":"7.1","node":"0.12","deno":"1","ios":"8","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.number.constructor":{"chrome":"41","opera":"28","edge":"12","firefox":"36","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"28","electron":"0.21"},"es6.number.epsilon":{"chrome":"34","opera":"21","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.14","opera_mobile":"21","electron":"0.20"},"es6.number.is-finite":{"chrome":"19","opera":"15","edge":"12","firefox":"16","safari":"9","node":"0.8","deno":"1","android":"4.1","ios":"9","samsung":"1.5","rhino":"1.7.13","opera_mobile":"14","electron":"0.20"},"es6.number.is-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"16","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","opera_mobile":"21","electron":"0.20"},"es6.number.is-nan":{"chrome":"19","opera":"15","edge":"12","firefox":"15","safari":"9","node":"0.8","deno":"1","android":"4.1","ios":"9","samsung":"1.5","rhino":"1.7.13","opera_mobile":"14","electron":"0.20"},"es6.number.is-safe-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"32","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","opera_mobile":"21","electron":"0.20"},"es6.number.max-safe-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","opera_mobile":"21","electron":"0.20"},"es6.number.min-safe-integer":{"chrome":"34","opera":"21","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.13","opera_mobile":"21","electron":"0.20"},"es6.number.parse-float":{"chrome":"34","opera":"21","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.14","opera_mobile":"21","electron":"0.20"},"es6.number.parse-int":{"chrome":"34","opera":"21","edge":"12","firefox":"25","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"2","rhino":"1.7.14","opera_mobile":"21","electron":"0.20"},"es6.object.assign":{"chrome":"49","opera":"36","edge":"13","firefox":"36","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.object.create":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"es7.object.define-getter":{"chrome":"62","opera":"49","edge":"16","firefox":"48","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","opera_mobile":"46","electron":"3.0"},"es7.object.define-setter":{"chrome":"62","opera":"49","edge":"16","firefox":"48","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","opera_mobile":"46","electron":"3.0"},"es6.object.define-property":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"es6.object.define-properties":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"es7.object.entries":{"chrome":"54","opera":"41","edge":"14","firefox":"47","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","opera_mobile":"41","electron":"1.4"},"es6.object.freeze":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es6.object.get-own-property-descriptor":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es7.object.get-own-property-descriptors":{"chrome":"54","opera":"41","edge":"15","firefox":"50","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","opera_mobile":"41","electron":"1.4"},"es6.object.get-own-property-names":{"chrome":"40","opera":"27","edge":"12","firefox":"33","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"27","electron":"0.21"},"es6.object.get-prototype-of":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es7.object.lookup-getter":{"chrome":"62","opera":"49","edge":"79","firefox":"36","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","opera_mobile":"46","electron":"3.0"},"es7.object.lookup-setter":{"chrome":"62","opera":"49","edge":"79","firefox":"36","safari":"9","node":"8.10","deno":"1","ios":"9","samsung":"8","opera_mobile":"46","electron":"3.0"},"es6.object.prevent-extensions":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es6.object.to-string":{"chrome":"57","opera":"44","edge":"15","firefox":"51","safari":"10","node":"8","deno":"1","ios":"10","samsung":"7","opera_mobile":"43","electron":"1.7"},"es6.object.is":{"chrome":"19","opera":"15","edge":"12","firefox":"22","safari":"9","node":"0.8","deno":"1","android":"4.1","ios":"9","samsung":"1.5","rhino":"1.7.13","opera_mobile":"14","electron":"0.20"},"es6.object.is-frozen":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es6.object.is-sealed":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es6.object.is-extensible":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es6.object.keys":{"chrome":"40","opera":"27","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"27","electron":"0.21"},"es6.object.seal":{"chrome":"44","opera":"31","edge":"12","firefox":"35","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.13","opera_mobile":"32","electron":"0.30"},"es6.object.set-prototype-of":{"chrome":"34","opera":"21","edge":"12","firefox":"31","safari":"9","node":"0.12","deno":"1","ie":"11","ios":"9","samsung":"2","rhino":"1.7.13","opera_mobile":"21","electron":"0.20"},"es7.object.values":{"chrome":"54","opera":"41","edge":"14","firefox":"47","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","opera_mobile":"41","electron":"1.4"},"es6.promise":{"chrome":"51","opera":"38","edge":"14","firefox":"45","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es7.promise.finally":{"chrome":"63","opera":"50","edge":"18","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"46","electron":"3.0"},"es6.reflect.apply":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.construct":{"chrome":"49","opera":"36","edge":"13","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.define-property":{"chrome":"49","opera":"36","edge":"13","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.delete-property":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.get":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.get-own-property-descriptor":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.get-prototype-of":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.has":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.is-extensible":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.own-keys":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.prevent-extensions":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.set":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.reflect.set-prototype-of":{"chrome":"49","opera":"36","edge":"12","firefox":"42","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.regexp.constructor":{"chrome":"50","opera":"37","edge":"79","firefox":"40","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"},"es6.regexp.flags":{"chrome":"49","opera":"36","edge":"79","firefox":"37","safari":"9","node":"6","deno":"1","ios":"9","samsung":"5","opera_mobile":"36","electron":"0.37"},"es6.regexp.match":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","opera_mobile":"37","electron":"1.1"},"es6.regexp.replace":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"},"es6.regexp.split":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"},"es6.regexp.search":{"chrome":"50","opera":"37","edge":"79","firefox":"49","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","opera_mobile":"37","electron":"1.1"},"es6.regexp.to-string":{"chrome":"50","opera":"37","edge":"79","firefox":"39","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"},"es6.set":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.symbol":{"chrome":"51","opera":"38","edge":"79","firefox":"51","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es7.symbol.async-iterator":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","opera_mobile":"46","electron":"3.0"},"es6.string.anchor":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.big":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.blink":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.bold":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.code-point-at":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"28","electron":"0.21"},"es6.string.ends-with":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"28","electron":"0.21"},"es6.string.fixed":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.fontcolor":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.fontsize":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.from-code-point":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"28","electron":"0.21"},"es6.string.includes":{"chrome":"41","opera":"28","edge":"12","firefox":"40","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"28","electron":"0.21"},"es6.string.italics":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.iterator":{"chrome":"38","opera":"25","edge":"12","firefox":"36","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"es6.string.link":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es7.string.pad-start":{"chrome":"57","opera":"44","edge":"15","firefox":"48","safari":"10","node":"8","deno":"1","ios":"10","samsung":"7","rhino":"1.7.13","opera_mobile":"43","electron":"1.7"},"es7.string.pad-end":{"chrome":"57","opera":"44","edge":"15","firefox":"48","safari":"10","node":"8","deno":"1","ios":"10","samsung":"7","rhino":"1.7.13","opera_mobile":"43","electron":"1.7"},"es6.string.raw":{"chrome":"41","opera":"28","edge":"12","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.14","opera_mobile":"28","electron":"0.21"},"es6.string.repeat":{"chrome":"41","opera":"28","edge":"12","firefox":"24","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"28","electron":"0.21"},"es6.string.small":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.starts-with":{"chrome":"41","opera":"28","edge":"12","firefox":"29","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","rhino":"1.7.13","opera_mobile":"28","electron":"0.21"},"es6.string.strike":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.sub":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.sup":{"chrome":"5","opera":"15","edge":"12","firefox":"17","safari":"6","node":"0.4","deno":"1","android":"4","ios":"7","phantom":"1.9","samsung":"1","rhino":"1.7.14","opera_mobile":"14","electron":"0.20"},"es6.string.trim":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3.5","safari":"4","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"es7.string.trim-left":{"chrome":"66","opera":"53","edge":"79","firefox":"61","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.13","opera_mobile":"47","electron":"3.0"},"es7.string.trim-right":{"chrome":"66","opera":"53","edge":"79","firefox":"61","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.13","opera_mobile":"47","electron":"3.0"},"es6.typed.array-buffer":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.data-view":{"chrome":"5","opera":"12","edge":"12","firefox":"15","safari":"5.1","node":"0.4","deno":"1","ie":"10","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"es6.typed.int8-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.uint8-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.uint8-clamped-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.int16-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.uint16-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.int32-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.uint32-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.float32-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.typed.float64-array":{"chrome":"51","opera":"38","edge":"13","firefox":"48","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.weak-map":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"9","node":"6.5","deno":"1","ios":"9","samsung":"5","opera_mobile":"41","electron":"1.2"},"es6.weak-set":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"9","node":"6.5","deno":"1","ios":"9","samsung":"5","opera_mobile":"41","electron":"1.2"}}'); /***/ }), -/***/ 14584: +/***/ 58621: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"es6.module":{"chrome":"61","and_chr":"61","edge":"16","firefox":"60","and_ff":"60","node":"13.2.0","opera":"48","op_mob":"48","safari":"10.1","ios":"10.3","samsung":"8.2","android":"61","electron":"2.0","ios_saf":"10.3"}}'); +module.exports = JSON.parse('{"es6.module":{"chrome":"61","and_chr":"61","edge":"16","firefox":"60","and_ff":"60","node":"13.2.0","opera":"48","op_mob":"45","safari":"10.1","ios":"10.3","samsung":"8.2","android":"61","electron":"2.0","ios_saf":"10.3"}}'); /***/ }), -/***/ 98673: +/***/ 75204: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"transform-async-to-generator":["bugfix/transform-async-arrows-in-class"],"transform-parameters":["bugfix/transform-edge-default-parameters","bugfix/transform-safari-id-destructuring-collision-in-function-expression"],"transform-function-name":["bugfix/transform-edge-function-name"],"transform-block-scoping":["bugfix/transform-safari-block-shadowing","bugfix/transform-safari-for-shadowing"],"transform-template-literals":["bugfix/transform-tagged-template-caching"],"transform-optional-chaining":["bugfix/transform-v8-spread-parameters-in-optional-chaining"],"proposal-optional-chaining":["bugfix/transform-v8-spread-parameters-in-optional-chaining"]}'); +module.exports = JSON.parse('{"transform-async-to-generator":["bugfix/transform-async-arrows-in-class"],"transform-parameters":["bugfix/transform-edge-default-parameters","bugfix/transform-safari-id-destructuring-collision-in-function-expression"],"transform-function-name":["bugfix/transform-edge-function-name"],"transform-block-scoping":["bugfix/transform-safari-block-shadowing","bugfix/transform-safari-for-shadowing"],"transform-template-literals":["bugfix/transform-tagged-template-caching"],"transform-optional-chaining":["bugfix/transform-v8-spread-parameters-in-optional-chaining"],"proposal-optional-chaining":["bugfix/transform-v8-spread-parameters-in-optional-chaining"],"transform-class-properties":["bugfix/transform-v8-static-class-fields-redefine-readonly"],"proposal-class-properties":["bugfix/transform-v8-static-class-fields-redefine-readonly"]}'); /***/ }), -/***/ 46720: +/***/ 57780: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"bugfix/transform-async-arrows-in-class":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"11","node":"7.6","deno":"1","ios":"11","samsung":"6","electron":"1.6"},"bugfix/transform-edge-default-parameters":{"chrome":"49","opera":"36","edge":"18","firefox":"52","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"bugfix/transform-edge-function-name":{"chrome":"51","opera":"38","edge":"79","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"bugfix/transform-safari-block-shadowing":{"chrome":"49","opera":"36","edge":"12","firefox":"44","safari":"11","node":"6","deno":"1","ie":"11","ios":"11","samsung":"5","electron":"0.37"},"bugfix/transform-safari-for-shadowing":{"chrome":"49","opera":"36","edge":"12","firefox":"4","safari":"11","node":"6","deno":"1","ie":"11","ios":"11","samsung":"5","rhino":"1.7.13","electron":"0.37"},"bugfix/transform-safari-id-destructuring-collision-in-function-expression":{"chrome":"49","opera":"36","edge":"14","firefox":"2","node":"6","deno":"1","samsung":"5","electron":"0.37"},"bugfix/transform-tagged-template-caching":{"chrome":"41","opera":"28","edge":"12","firefox":"34","safari":"13","node":"4","deno":"1","ios":"13","samsung":"3.4","rhino":"1.7.14","electron":"0.21"},"bugfix/transform-v8-spread-parameters-in-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","electron":"13.0"},"transform-optional-chaining":{"chrome":"80","opera":"67","edge":"80","firefox":"74","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","electron":"8.0"},"proposal-optional-chaining":{"chrome":"80","opera":"67","edge":"80","firefox":"74","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","electron":"8.0"},"transform-parameters":{"chrome":"49","opera":"36","edge":"15","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"transform-async-to-generator":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"10.1","node":"7.6","deno":"1","ios":"10.3","samsung":"6","electron":"1.6"},"transform-template-literals":{"chrome":"41","opera":"28","edge":"13","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","electron":"0.21"},"transform-function-name":{"chrome":"51","opera":"38","edge":"14","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"transform-block-scoping":{"chrome":"50","opera":"37","edge":"14","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"1.1"}}'); +module.exports = JSON.parse('{"bugfix/transform-async-arrows-in-class":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"11","node":"7.6","deno":"1","ios":"11","samsung":"6","opera_mobile":"42","electron":"1.6"},"bugfix/transform-edge-default-parameters":{"chrome":"49","opera":"36","edge":"18","firefox":"52","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"bugfix/transform-edge-function-name":{"chrome":"51","opera":"38","edge":"79","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"bugfix/transform-safari-block-shadowing":{"chrome":"49","opera":"36","edge":"12","firefox":"44","safari":"11","node":"6","deno":"1","ie":"11","ios":"11","samsung":"5","opera_mobile":"36","electron":"0.37"},"bugfix/transform-safari-for-shadowing":{"chrome":"49","opera":"36","edge":"12","firefox":"4","safari":"11","node":"6","deno":"1","ie":"11","ios":"11","samsung":"5","rhino":"1.7.13","opera_mobile":"36","electron":"0.37"},"bugfix/transform-safari-id-destructuring-collision-in-function-expression":{"chrome":"49","opera":"36","edge":"14","firefox":"2","safari":"16.3","node":"6","deno":"1","ios":"16.3","samsung":"5","opera_mobile":"36","electron":"0.37"},"bugfix/transform-tagged-template-caching":{"chrome":"41","opera":"28","edge":"12","firefox":"34","safari":"13","node":"4","deno":"1","ios":"13","samsung":"3.4","rhino":"1.7.14","opera_mobile":"28","electron":"0.21"},"bugfix/transform-v8-spread-parameters-in-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","opera_mobile":"64","electron":"13.0"},"transform-optional-chaining":{"chrome":"80","opera":"67","edge":"80","firefox":"74","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"proposal-optional-chaining":{"chrome":"80","opera":"67","edge":"80","firefox":"74","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"transform-parameters":{"chrome":"49","opera":"36","edge":"15","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"transform-async-to-generator":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"10.1","node":"7.6","deno":"1","ios":"10.3","samsung":"6","opera_mobile":"42","electron":"1.6"},"transform-template-literals":{"chrome":"41","opera":"28","edge":"13","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","opera_mobile":"28","electron":"0.21"},"transform-function-name":{"chrome":"51","opera":"38","edge":"14","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-block-scoping":{"chrome":"50","opera":"37","edge":"14","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"}}'); /***/ }), -/***/ 78831: +/***/ 21346: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"transform-unicode-sets-regex":{"chrome":"112","opera":"98","edge":"112"},"transform-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","node":"16.11","deno":"1.14","samsung":"17","electron":"15.0"},"proposal-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","node":"16.11","deno":"1.14","samsung":"17","electron":"15.0"},"transform-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","electron":"13.0"},"proposal-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","electron":"13.0"},"transform-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"15","samsung":"11","electron":"6.0"},"proposal-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"15","samsung":"11","electron":"6.0"},"transform-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","electron":"10.0"},"proposal-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","electron":"10.0"},"transform-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","electron":"6.0"},"proposal-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","electron":"6.0"},"transform-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","electron":"10.0"},"proposal-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","electron":"10.0"},"transform-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","electron":"8.0"},"proposal-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","electron":"8.0"},"transform-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","electron":"13.0"},"proposal-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","electron":"13.0"},"transform-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","electron":"3.0"},"proposal-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","electron":"3.0"},"transform-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","electron":"3.0"},"proposal-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","electron":"3.0"},"transform-parameters":{"chrome":"49","opera":"36","edge":"18","firefox":"53","node":"6","deno":"1","samsung":"5","electron":"0.37"},"transform-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","electron":"3.0"},"proposal-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","electron":"3.0"},"transform-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","electron":"2.0"},"proposal-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","electron":"2.0"},"transform-dotall-regex":{"chrome":"62","opera":"49","edge":"79","firefox":"78","safari":"11.1","node":"8.10","deno":"1","ios":"11.3","samsung":"8","electron":"3.0"},"transform-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","electron":"3.0"},"proposal-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","electron":"3.0"},"transform-named-capturing-groups-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","electron":"3.0"},"transform-async-to-generator":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"11","node":"7.6","deno":"1","ios":"11","samsung":"6","electron":"1.6"},"transform-exponentiation-operator":{"chrome":"52","opera":"39","edge":"14","firefox":"52","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","electron":"1.3"},"transform-template-literals":{"chrome":"41","opera":"28","edge":"13","firefox":"34","safari":"13","node":"4","deno":"1","ios":"13","samsung":"3.4","electron":"0.21"},"transform-literals":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","electron":"0.30"},"transform-function-name":{"chrome":"51","opera":"38","edge":"79","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"transform-arrow-functions":{"chrome":"47","opera":"34","edge":"13","firefox":"43","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","electron":"0.36"},"transform-block-scoped-functions":{"chrome":"41","opera":"28","edge":"12","firefox":"46","safari":"10","node":"4","deno":"1","ie":"11","ios":"10","samsung":"3.4","electron":"0.21"},"transform-classes":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","electron":"0.36"},"transform-object-super":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","electron":"0.36"},"transform-shorthand-properties":{"chrome":"43","opera":"30","edge":"12","firefox":"33","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.14","electron":"0.27"},"transform-duplicate-keys":{"chrome":"42","opera":"29","edge":"12","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","electron":"0.25"},"transform-computed-properties":{"chrome":"44","opera":"31","edge":"12","firefox":"34","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"4","electron":"0.30"},"transform-for-of":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"transform-sticky-regex":{"chrome":"49","opera":"36","edge":"13","firefox":"3","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"0.37"},"transform-unicode-escapes":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","electron":"0.30"},"transform-unicode-regex":{"chrome":"50","opera":"37","edge":"13","firefox":"46","safari":"12","node":"6","deno":"1","ios":"12","samsung":"5","electron":"1.1"},"transform-spread":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","electron":"0.36"},"transform-destructuring":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","electron":"1.2"},"transform-block-scoping":{"chrome":"50","opera":"37","edge":"14","firefox":"53","safari":"11","node":"6","deno":"1","ios":"11","samsung":"5","electron":"1.1"},"transform-typeof-symbol":{"chrome":"38","opera":"25","edge":"12","firefox":"36","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","electron":"0.20"},"transform-new-target":{"chrome":"46","opera":"33","edge":"14","firefox":"41","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","electron":"0.36"},"transform-regenerator":{"chrome":"50","opera":"37","edge":"13","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","electron":"1.1"},"transform-member-expression-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"transform-property-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"transform-reserved-words":{"chrome":"13","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.6","deno":"1","ie":"9","android":"4.4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","electron":"0.20"},"transform-export-namespace-from":{"chrome":"72","and_chr":"72","edge":"79","firefox":"80","and_ff":"80","node":"13.2","opera":"60","op_mob":"51","samsung":"11.0","android":"72","electron":"5.0"},"proposal-export-namespace-from":{"chrome":"72","and_chr":"72","edge":"79","firefox":"80","and_ff":"80","node":"13.2","opera":"60","op_mob":"51","samsung":"11.0","android":"72","electron":"5.0"}}'); +module.exports = JSON.parse('{"transform-unicode-sets-regex":{"chrome":"112","opera":"98","edge":"112","firefox":"116","safari":"tp","node":"20","deno":"1.32","opera_mobile":"75","electron":"24.0"},"bugfix/transform-v8-static-class-fields-redefine-readonly":{"chrome":"98","opera":"84","edge":"98","firefox":"95","safari":"15","node":"12","deno":"1.18","ios":"15","samsung":"11","opera_mobile":"52","electron":"17.0"},"transform-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","safari":"16.4","node":"16.11","deno":"1.14","ios":"16.4","samsung":"17","opera_mobile":"66","electron":"15.0"},"proposal-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","safari":"16.4","node":"16.11","deno":"1.14","ios":"16.4","samsung":"17","opera_mobile":"66","electron":"15.0"},"transform-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","opera_mobile":"64","electron":"13.0"},"proposal-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","opera_mobile":"64","electron":"13.0"},"transform-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"14.5","samsung":"11","opera_mobile":"53","electron":"6.0"},"proposal-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"14.5","samsung":"11","opera_mobile":"53","electron":"6.0"},"transform-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","opera_mobile":"60","electron":"10.0"},"proposal-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","opera_mobile":"60","electron":"10.0"},"transform-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","opera_mobile":"54","electron":"6.0"},"proposal-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","opera_mobile":"54","electron":"6.0"},"transform-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","opera_mobile":"60","electron":"10.0"},"proposal-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","opera_mobile":"60","electron":"10.0"},"transform-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"proposal-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"transform-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","opera_mobile":"64","electron":"13.0"},"proposal-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","opera_mobile":"64","electron":"13.0"},"transform-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","opera_mobile":"47","electron":"3.0"},"proposal-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","opera_mobile":"47","electron":"3.0"},"transform-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"proposal-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-parameters":{"chrome":"49","opera":"36","edge":"18","firefox":"53","safari":"16.3","node":"6","deno":"1","ios":"16.3","samsung":"5","opera_mobile":"36","electron":"0.37"},"transform-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","opera_mobile":"46","electron":"3.0"},"proposal-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","opera_mobile":"46","electron":"3.0"},"transform-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"44","electron":"2.0"},"proposal-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"44","electron":"2.0"},"transform-dotall-regex":{"chrome":"62","opera":"49","edge":"79","firefox":"78","safari":"11.1","node":"8.10","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"46","electron":"3.0"},"transform-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"proposal-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-named-capturing-groups-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-async-to-generator":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"11","node":"7.6","deno":"1","ios":"11","samsung":"6","opera_mobile":"42","electron":"1.6"},"transform-exponentiation-operator":{"chrome":"52","opera":"39","edge":"14","firefox":"52","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","opera_mobile":"41","electron":"1.3"},"transform-template-literals":{"chrome":"41","opera":"28","edge":"13","firefox":"34","safari":"13","node":"4","deno":"1","ios":"13","samsung":"3.4","opera_mobile":"28","electron":"0.21"},"transform-literals":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","opera_mobile":"32","electron":"0.30"},"transform-function-name":{"chrome":"51","opera":"38","edge":"79","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-arrow-functions":{"chrome":"47","opera":"34","edge":"13","firefox":"43","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","opera_mobile":"34","electron":"0.36"},"transform-block-scoped-functions":{"chrome":"41","opera":"28","edge":"12","firefox":"46","safari":"10","node":"4","deno":"1","ie":"11","ios":"10","samsung":"3.4","opera_mobile":"28","electron":"0.21"},"transform-classes":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-object-super":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-shorthand-properties":{"chrome":"43","opera":"30","edge":"12","firefox":"33","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.14","opera_mobile":"30","electron":"0.27"},"transform-duplicate-keys":{"chrome":"42","opera":"29","edge":"12","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","opera_mobile":"29","electron":"0.25"},"transform-computed-properties":{"chrome":"44","opera":"31","edge":"12","firefox":"34","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"4","opera_mobile":"32","electron":"0.30"},"transform-for-of":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-sticky-regex":{"chrome":"49","opera":"36","edge":"13","firefox":"3","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"transform-unicode-escapes":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","opera_mobile":"32","electron":"0.30"},"transform-unicode-regex":{"chrome":"50","opera":"37","edge":"13","firefox":"46","safari":"12","node":"6","deno":"1","ios":"12","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-spread":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-destructuring":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-block-scoping":{"chrome":"50","opera":"37","edge":"14","firefox":"53","safari":"11","node":"6","deno":"1","ios":"11","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-typeof-symbol":{"chrome":"38","opera":"25","edge":"12","firefox":"36","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"transform-new-target":{"chrome":"46","opera":"33","edge":"14","firefox":"41","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-regenerator":{"chrome":"50","opera":"37","edge":"13","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-member-expression-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"transform-property-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"transform-reserved-words":{"chrome":"13","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.6","deno":"1","ie":"9","android":"4.4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"transform-export-namespace-from":{"chrome":"72","deno":"1.0","edge":"79","firefox":"80","node":"13.2","opera":"60","opera_mobile":"51","safari":"14.1","ios":"14.5","samsung":"11.0","android":"72","electron":"5.0"},"proposal-export-namespace-from":{"chrome":"72","deno":"1.0","edge":"79","firefox":"80","node":"13.2","opera":"60","opera_mobile":"51","safari":"14.1","ios":"14.5","samsung":"11.0","android":"72","electron":"5.0"}}'); /***/ }), -/***/ 64566: +/***/ 69568: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"name":"@babel/preset-typescript","version":"7.21.0","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.20.2","@babel/helper-validator-option":"^7.21.0","@babel/plugin-transform-typescript":"^7.21.0"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.21.0","@babel/helper-plugin-test-runner":"^7.18.6"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs"}'); +module.exports = JSON.parse('{"name":"@babel/preset-typescript","version":"7.23.3","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.22.5","@babel/helper-validator-option":"^7.22.15","@babel/plugin-syntax-jsx":"^7.23.3","@babel/plugin-transform-modules-commonjs":"^7.23.3","@babel/plugin-transform-typescript":"^7.23.3"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.23.3","@babel/helper-plugin-test-runner":"^7.22.5"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs"}'); /***/ }), -/***/ 52260: +/***/ 33408: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"es.symbol":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.symbol.description":{"android":"70","bun":"0.1.1","chrome":"70","chrome-android":"70","deno":"1.0","edge":"79","electron":"5.0","firefox":"63","firefox-android":"63","ios":"12.2","node":"11.0","oculus":"6.0","opera":"57","opera-android":"49","opera_mobile":"49","quest":"6.0","safari":"12.1","samsung":"10.0"},"es.symbol.async-iterator":{"android":"63","bun":"0.1.1","chrome":"63","chrome-android":"63","deno":"1.0","edge":"79","electron":"3.0","firefox":"55","firefox-android":"55","ios":"12.0","node":"10.0","oculus":"5.0","opera":"50","opera-android":"46","opera_mobile":"46","quest":"5.0","safari":"12.0","samsung":"8.0"},"es.symbol.has-instance":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"15","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.is-concat-spreadable":{"android":"48","bun":"0.1.1","chrome":"48","chrome-android":"48","deno":"1.0","edge":"15","electron":"0.37","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"35","opera-android":"35","opera_mobile":"35","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.iterator":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"36","firefox-android":"36","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.symbol.match":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.match-all":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"67","firefox-android":"67","hermes":"0.6","ios":"13.0","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","react-native":"0.69","safari":"13","samsung":"11.0"},"es.symbol.replace":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.search":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.species":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"41","firefox-android":"41","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.split":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.to-primitive":{"android":"47","bun":"0.1.1","chrome":"47","chrome-android":"47","deno":"1.0","edge":"15","electron":"0.36","firefox":"44","firefox-android":"44","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"34","opera-android":"34","opera_mobile":"34","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.to-string-tag":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.unscopables":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"48","firefox-android":"48","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.error.cause":{"android":"94","bun":"0.1.1","chrome":"94","chrome-android":"94","deno":"1.14","edge":"94","electron":"15.0","firefox":"91","firefox-android":"91","hermes":"0.8","ios":"15.0","node":"16.11","oculus":"18.0","opera":"80","opera-android":"66","opera_mobile":"66","quest":"18.0","react-native":"0.69","safari":"15.0","samsung":"17.0"},"es.error.to-string":{"android":"4.4.3","bun":"0.1.1","chrome":"33","chrome-android":"33","deno":"1.0","edge":"12","electron":"0.20","firefox":"11","firefox-android":"11","hermes":"0.1","ie":"9","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"20","opera-android":"20","opera_mobile":"20","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"8.0","samsung":"2.0"},"es.aggregate-error":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","safari":"14.0","samsung":"14.0"},"es.aggregate-error.cause":{"android":"94","bun":"0.1.1","chrome":"94","chrome-android":"94","deno":"1.14","edge":"94","electron":"15.0","firefox":"91","firefox-android":"91","ios":"15.0","node":"16.11","oculus":"18.0","opera":"80","opera-android":"66","opera_mobile":"66","quest":"18.0","safari":"15.0","samsung":"17.0"},"es.array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"es.array.concat":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.copy-within":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"12","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.every":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.fill":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"12","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.filter":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.find":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.find-index":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.array.flat":{"android":"69","bun":"0.1.1","chrome":"69","chrome-android":"69","deno":"1.0","edge":"79","electron":"4.0","firefox":"62","firefox-android":"62","hermes":"0.4","ios":"12.0","node":"11.0","oculus":"6.0","opera":"56","opera-android":"48","opera_mobile":"48","quest":"6.0","react-native":"0.69","safari":"12.0","samsung":"10.0"},"es.array.flat-map":{"android":"69","bun":"0.1.1","chrome":"69","chrome-android":"69","deno":"1.0","edge":"79","electron":"4.0","firefox":"62","firefox-android":"62","hermes":"0.4","ios":"12.0","node":"11.0","oculus":"6.0","opera":"56","opera-android":"48","opera_mobile":"48","quest":"6.0","react-native":"0.69","safari":"12.0","samsung":"10.0"},"es.array.for-each":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.from":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"9.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","rhino":"1.7.13","safari":"9.0","samsung":"5.0"},"es.array.includes":{"android":"53","bun":"0.1.1","chrome":"53","chrome-android":"53","deno":"1.0","edge":"14","electron":"1.4","firefox":"102","firefox-android":"102","ios":"10.0","node":"7.0","oculus":"3.0","opera":"40","opera-android":"40","opera_mobile":"40","quest":"3.0","safari":"10.0","samsung":"6.0"},"es.array.index-of":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"12","electron":"1.2","firefox":"47","firefox-android":"47","hermes":"0.1","ie":"9","ios":"8.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"5.0"},"es.array.is-array":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.array.iterator":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"15","electron":"3.0","firefox":"60","firefox-android":"60","ios":"10.0","node":"10.0","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","safari":"10.0","samsung":"9.0"},"es.array.join":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"13","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.last-index-of":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"12","electron":"1.2","firefox":"47","firefox-android":"47","hermes":"0.1","ie":"9","ios":"8.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"5.0"},"es.array.map":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"50","firefox-android":"50","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.of":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"5.0"},"es.array.push":{"bun":"0.1.1","firefox":"55","firefox-android":"55","hermes":"0.2","ios":"16.0","react-native":"0.69","safari":"16.0"},"es.array.reduce":{"android":"83","bun":"0.1.1","chrome":"83","chrome-android":"83","deno":"1.0","edge":"12","electron":"9.0","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"6.0","oculus":"10.0","opera":"69","opera-android":"59","opera_mobile":"59","quest":"10.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"13.0"},"es.array.reduce-right":{"android":"83","bun":"0.1.1","chrome":"83","chrome-android":"83","deno":"1.0","edge":"12","electron":"9.0","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"6.0","oculus":"10.0","opera":"69","opera-android":"59","opera_mobile":"59","quest":"10.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"13.0"},"es.array.reverse":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"5.5","ios":"12.2","node":"0.0.3","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"12.0.2","samsung":"1.0"},"es.array.slice":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.some":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.sort":{"android":"70","bun":"0.1.1","chrome":"70","chrome-android":"70","deno":"1.0","edge":"79","electron":"5.0","firefox":"4","firefox-android":"4","hermes":"0.10","ios":"12.0","node":"11.0","oculus":"6.0","opera":"57","opera-android":"49","opera_mobile":"49","quest":"6.0","react-native":"0.69","safari":"12.0","samsung":"10.0"},"es.array.species":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.splice":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"49","firefox-android":"49","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array.to-spliced":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array.unscopables.flat":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"67","firefox-android":"67","ios":"13.0","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","safari":"13","samsung":"11.0"},"es.array.unscopables.flat-map":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"67","firefox-android":"67","ios":"13.0","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","safari":"13","samsung":"11.0"},"es.array.unshift":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"12","electron":"5.0","firefox":"23","firefox-android":"23","hermes":"0.1","ie":"9","ios":"16.0","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","react-native":"0.69","safari":"16.0","samsung":"10.0"},"es.array.with":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array-buffer.constructor":{"android":"4.4","bun":"0.1.1","chrome":"28","chrome-android":"28","deno":"1.0","edge":"14","electron":"0.20","firefox":"44","firefox-android":"44","hermes":"0.1","ios":"12.0","node":"0.11.1","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","safari":"12.0","samsung":"1.5"},"es.array-buffer.is-view":{"android":"4.4.3","bun":"0.1.1","chrome":"32","chrome-android":"32","deno":"1.0","edge":"12","electron":"0.20","firefox":"29","firefox-android":"29","hermes":"0.1","ie":"11","ios":"8.0","node":"0.11.9","oculus":"3.0","opera":"19","opera-android":"19","opera_mobile":"19","quest":"3.0","react-native":"0.69","safari":"7.1","samsung":"2.0"},"es.array-buffer.slice":{"android":"4.4.3","bun":"0.1.1","chrome":"31","chrome-android":"31","deno":"1.0","edge":"12","electron":"0.20","firefox":"46","firefox-android":"46","hermes":"0.1","ie":"11","ios":"12.2","node":"0.11.8","oculus":"3.0","opera":"18","opera-android":"18","opera_mobile":"18","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"12.1","samsung":"2.0"},"es.data-view":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"15","firefox-android":"15","hermes":"0.1","ie":"10","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.date.get-year":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"9","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.date.now":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ie":"9","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.date.set-year":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.date.to-gmt-string":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.date.to-iso-string":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"7","firefox-android":"7","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.date.to-json":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"10.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"1.5"},"es.date.to-primitive":{"android":"47","bun":"0.1.1","chrome":"47","chrome-android":"47","deno":"1.0","edge":"15","electron":"0.36","firefox":"44","firefox-android":"44","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"34","opera-android":"34","opera_mobile":"34","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.date.to-string":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ie":"9","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.escape":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.function.bind":{"android":"3.0","bun":"0.1.1","chrome":"7","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"5.0","node":"0.1.101","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"2.0","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"5.1","samsung":"1.0"},"es.function.has-instance":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"50","firefox-android":"50","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.function.name":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.global-this":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"65","firefox-android":"65","hermes":"0.2","ios":"12.2","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","react-native":"0.69","rhino":"1.7.14","safari":"12.1","samsung":"10.0"},"es.json.stringify":{"android":"72","bun":"0.1.1","chrome":"72","chrome-android":"72","deno":"1.0","edge":"79","electron":"5.0","firefox":"64","firefox-android":"64","ios":"12.2","node":"12.0","oculus":"6.0","opera":"59","opera-android":"51","opera_mobile":"51","quest":"6.0","safari":"12.1","samsung":"11.0"},"es.json.to-string-tag":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"15","electron":"1.1","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.map":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.math.acosh":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"13","electron":"1.4","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","safari":"7.1","samsung":"6.0"},"es.math.asinh":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.atanh":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.cbrt":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.clz32":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ios":"9.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.0"},"es.math.cosh":{"android":"39","bun":"0.1.1","chrome":"39","chrome-android":"39","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"1.0","oculus":"3.0","opera":"26","opera-android":"26","opera_mobile":"26","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.4"},"es.math.expm1":{"android":"39","bun":"0.1.1","chrome":"39","chrome-android":"39","deno":"1.0","edge":"13","electron":"0.20","firefox":"46","firefox-android":"46","hermes":"0.1","ios":"8.0","node":"1.0","oculus":"3.0","opera":"26","opera-android":"26","opera_mobile":"26","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.4"},"es.math.fround":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"26","firefox-android":"26","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.hypot":{"android":"78","bun":"0.1.1","chrome":"78","chrome-android":"78","deno":"1.0","edge":"12","electron":"7.0","firefox":"27","firefox-android":"27","hermes":"0.1","ios":"8.0","node":"13.0","oculus":"8.0","opera":"65","opera-android":"56","opera_mobile":"56","quest":"8.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"12.0"},"es.math.imul":{"android":"4.4","bun":"0.1.1","chrome":"28","chrome-android":"28","deno":"1.0","edge":"13","electron":"0.20","firefox":"20","firefox-android":"20","hermes":"0.1","ios":"9.0","node":"0.11.1","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.math.log10":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.log1p":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.log2":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.sign":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"9.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.0"},"es.math.sinh":{"android":"39","bun":"0.1.1","chrome":"39","chrome-android":"39","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"1.0","oculus":"3.0","opera":"26","opera-android":"26","opera_mobile":"26","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.4"},"es.math.tanh":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.to-string-tag":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"15","electron":"1.1","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.math.trunc":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.number.constructor":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"46","firefox-android":"46","hermes":"0.5","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.number.epsilon":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"9.0","samsung":"2.0"},"es.number.is-finite":{"android":"4.1","bun":"0.1.1","chrome":"19","chrome-android":"25","deno":"1.0","edge":"12","electron":"0.20","firefox":"16","firefox-android":"16","hermes":"0.1","ios":"9.0","node":"0.7.3","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.number.is-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"16","firefox-android":"16","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.is-nan":{"android":"4.1","bun":"0.1.1","chrome":"19","chrome-android":"25","deno":"1.0","edge":"12","electron":"0.20","firefox":"15","firefox-android":"15","hermes":"0.1","ios":"9.0","node":"0.7.3","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.number.is-safe-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"32","firefox-android":"32","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.max-safe-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.min-safe-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.parse-float":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"79","electron":"0.20","firefox":"39","firefox-android":"39","hermes":"0.1","ios":"11.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"11.0","samsung":"3.0"},"es.number.parse-int":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"79","electron":"0.20","firefox":"39","firefox-android":"39","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"9.0","samsung":"3.0"},"es.number.to-exponential":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"18","electron":"1.2","firefox":"87","firefox-android":"87","hermes":"0.1","ios":"11.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"11","samsung":"5.0"},"es.number.to-fixed":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"79","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.number.to-precision":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"8","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.object.assign":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"79","electron":"0.37","firefox":"36","firefox-android":"36","hermes":"0.4","ios":"9.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"9.0","samsung":"5.0"},"es.object.create":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.object.define-getter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.define-properties":{"android":"37","bun":"0.1.1","chrome":"37","chrome-android":"37","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"5.0","node":"0.11.15","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"2.0","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"5.1","samsung":"3.0"},"es.object.define-property":{"android":"37","bun":"0.1.1","chrome":"37","chrome-android":"37","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"5.0","node":"0.11.15","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"2.0","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"5.1","samsung":"3.0"},"es.object.define-setter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.entries":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"14","electron":"1.4","firefox":"47","firefox-android":"47","hermes":"0.1","ios":"10.3","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"10.1","samsung":"6.0"},"es.object.freeze":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.from-entries":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"63","firefox-android":"63","hermes":"0.4","ios":"12.2","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","react-native":"0.69","rhino":"1.7.14","safari":"12.1","samsung":"11.0"},"es.object.get-own-property-descriptor":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.get-own-property-descriptors":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"50","firefox-android":"50","hermes":"0.6","ios":"10.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"6.0"},"es.object.get-own-property-names":{"android":"40","bun":"0.1.1","chrome":"40","chrome-android":"40","deno":"1.0","edge":"13","electron":"0.21","firefox":"34","firefox-android":"34","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"27","opera-android":"27","opera_mobile":"27","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.object.get-prototype-of":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.has-own":{"android":"93","bun":"0.1.1","chrome":"93","chrome-android":"93","deno":"1.13","edge":"93","electron":"14.0","firefox":"92","firefox-android":"92","hermes":"0.10","ios":"15.4","node":"16.9","oculus":"17.0","opera":"79","opera-android":"66","opera_mobile":"66","quest":"17.0","react-native":"0.69","safari":"15.4","samsung":"17.0"},"es.object.is":{"android":"4.1","bun":"0.1.1","chrome":"19","chrome-android":"25","deno":"1.0","edge":"12","electron":"0.20","firefox":"22","firefox-android":"22","hermes":"0.1","ios":"9.0","node":"0.7.3","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.object.is-extensible":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.is-frozen":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.is-sealed":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.keys":{"android":"40","bun":"0.1.1","chrome":"40","chrome-android":"40","deno":"1.0","edge":"13","electron":"0.21","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"27","opera-android":"27","opera_mobile":"27","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.object.lookup-getter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.lookup-setter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.prevent-extensions":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.proto":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ie":"11","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","safari":"3.1","samsung":"1.0"},"es.object.seal":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.set-prototype-of":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ie":"11","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.object.to-string":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.object.values":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"14","electron":"1.4","firefox":"47","firefox-android":"47","hermes":"0.1","ios":"10.3","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"10.1","samsung":"6.0"},"es.parse-float":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"74","electron":"0.20","firefox":"8","firefox-android":"8","hermes":"0.1","ie":"8","ios":"8.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.parse-int":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"74","electron":"0.20","firefox":"21","firefox-android":"21","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.promise":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.24","edge":"79","electron":"4.0","firefox":"69","firefox-android":"69","ios":"11.0","node":"10.4","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","rhino":"1.7.14","safari":"11.0","samsung":"9.0"},"es.promise.all-settled":{"android":"76","bun":"0.1.1","chrome":"76","chrome-android":"76","deno":"1.24","edge":"79","electron":"6.0","firefox":"71","firefox-android":"71","ios":"13.0","node":"12.9","oculus":"7.0","opera":"63","opera-android":"54","opera_mobile":"54","quest":"7.0","safari":"13","samsung":"12.0"},"es.promise.any":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.24","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","safari":"14.0","samsung":"14.0"},"es.promise.finally":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.24","edge":"79","electron":"4.0","firefox":"69","firefox-android":"69","ios":"13.2.3","node":"10.4","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","rhino":"1.7.14","safari":"13.0.3","samsung":"9.0"},"es.reflect.apply":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.construct":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"44","firefox-android":"44","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.define-property":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"13","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.delete-property":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.get":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.get-own-property-descriptor":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.get-prototype-of":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.has":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.is-extensible":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.own-keys":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.prevent-extensions":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.set":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"79","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.set-prototype-of":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.to-string-tag":{"android":"86","bun":"0.1.1","chrome":"86","chrome-android":"86","deno":"1.3","edge":"86","electron":"11.0","firefox":"82","firefox-android":"82","hermes":"0.7","ios":"14.0","node":"15.0","oculus":"12.0","opera":"72","opera-android":"61","opera_mobile":"61","quest":"12.0","react-native":"0.69","safari":"14.0","samsung":"14.0"},"es.regexp.constructor":{"android":"64","bun":"0.1.1","chrome":"64","chrome-android":"64","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","ios":"11.3","node":"10.0","oculus":"5.0","opera":"51","opera-android":"47","opera_mobile":"47","quest":"5.0","safari":"11.1","samsung":"9.0"},"es.regexp.dot-all":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","hermes":"0.4","ios":"11.3","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","safari":"11.1","samsung":"8.0"},"es.regexp.exec":{"android":"64","bun":"0.1.1","chrome":"64","chrome-android":"64","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","ios":"11.3","node":"10.0","oculus":"5.0","opera":"51","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.71","safari":"11.1","samsung":"9.0"},"es.regexp.flags":{"android":"111","bun":"0.1.1","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","firefox":"78","firefox-android":"78","hermes":"0.4","ios":"11.3","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","react-native":"0.69","safari":"11.1","samsung":"22.0"},"es.regexp.sticky":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"13","electron":"0.37","firefox":"3","firefox-android":"4","hermes":"0.3","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.regexp.test":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"46","firefox-android":"46","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.regexp.to-string":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"46","firefox-android":"46","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.set":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.string.at-alternative":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"es.string.code-point-at":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"29","firefox-android":"29","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.ends-with":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.from-code-point":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"29","firefox-android":"29","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.includes":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.is-well-formed":{"android":"111","bun":"0.4.0","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"es.string.iterator":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"36","firefox-android":"36","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.match":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.match-all":{"android":"80","bun":"0.1.1","chrome":"80","chrome-android":"80","deno":"1.0","edge":"80","electron":"8.0","firefox":"73","firefox-android":"73","hermes":"0.6","ios":"13.4","node":"14.0","oculus":"9.0","opera":"67","opera-android":"57","opera_mobile":"57","quest":"9.0","react-native":"0.69","safari":"13.1","samsung":"13.0"},"es.string.pad-end":{"android":"57","bun":"0.1.1","chrome":"57","chrome-android":"57","deno":"1.0","edge":"15","electron":"1.7","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"11.0","node":"8.0","oculus":"3.0","opera":"44","opera-android":"43","opera_mobile":"43","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"11.0","samsung":"7.0"},"es.string.pad-start":{"android":"57","bun":"0.1.1","chrome":"57","chrome-android":"57","deno":"1.0","edge":"15","electron":"1.7","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"11.0","node":"8.0","oculus":"3.0","opera":"44","opera-android":"43","opera_mobile":"43","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"11.0","samsung":"7.0"},"es.string.raw":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"34","firefox-android":"34","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"9.0","samsung":"3.4"},"es.string.repeat":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"24","firefox-android":"24","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.replace":{"android":"64","bun":"0.1.1","chrome":"64","chrome-android":"64","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","ios":"14.0","node":"10.0","oculus":"5.0","opera":"51","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.71","safari":"14.0","samsung":"9.0"},"es.string.replace-all":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"77","firefox-android":"77","hermes":"0.7","ios":"13.4","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","react-native":"0.69","safari":"13.1","samsung":"14.0"},"es.string.search":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.split":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"79","electron":"1.4","firefox":"49","firefox-android":"49","ios":"10.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"10.0","samsung":"6.0"},"es.string.starts-with":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.substr":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"9","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"4","opera-android":"4","opera_mobile":"4","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.string.to-well-formed":{"android":"111","bun":"0.5.7","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"es.string.trim":{"android":"59","bun":"0.1.1","chrome":"59","chrome-android":"59","deno":"1.0","edge":"15","electron":"1.8","firefox":"52","firefox-android":"52","hermes":"0.1","ios":"12.2","node":"8.3","oculus":"4.0","opera":"46","opera-android":"43","opera_mobile":"43","quest":"4.0","react-native":"0.69","safari":"12.1","samsung":"7.0"},"es.string.trim-end":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"79","electron":"3.0","firefox":"61","firefox-android":"61","hermes":"0.3","ios":"12.2","node":"10.0","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.69","safari":"12.1","samsung":"9.0"},"es.string.trim-start":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"79","electron":"3.0","firefox":"61","firefox-android":"61","hermes":"0.3","ios":"12.0","node":"10.0","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.69","safari":"12.0","samsung":"9.0"},"es.string.anchor":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.big":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.blink":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.bold":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.fixed":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.fontcolor":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.fontsize":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.italics":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.link":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.small":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.strike":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.sub":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.sup":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.typed-array.float32-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.float64-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.int8-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.int16-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.int32-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint8-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint8-clamped-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint16-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint32-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"es.typed-array.copy-within":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"34","firefox-android":"34","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.every":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.fill":{"android":"58","bun":"0.1.1","chrome":"58","chrome-android":"58","deno":"1.0","edge":"79","electron":"1.7","firefox":"55","firefox-android":"55","hermes":"0.1","ios":"14.5","node":"8.0","oculus":"4.0","opera":"45","opera-android":"43","opera_mobile":"43","quest":"4.0","react-native":"0.69","safari":"14.1","samsung":"7.0"},"es.typed-array.filter":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.find":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.find-index":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.typed-array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.typed-array.for-each":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.from":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.includes":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"14","electron":"0.37","firefox":"43","firefox-android":"43","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.index-of":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.iterator":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.join":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.last-index-of":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.map":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.of":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.reduce":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.reduce-right":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.reverse":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.set":{"android":"95","bun":"0.1.1","chrome":"95","chrome-android":"95","deno":"1.15","edge":"95","electron":"16.0","firefox":"54","firefox-android":"54","hermes":"0.1","ios":"14.5","node":"17.0","oculus":"18.0","opera":"81","opera-android":"67","opera_mobile":"67","quest":"18.0","react-native":"0.69","safari":"14.1","samsung":"17.0"},"es.typed-array.slice":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.some":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.sort":{"android":"74","bun":"0.1.1","chrome":"74","chrome-android":"74","deno":"1.0","edge":"79","electron":"6.0","firefox":"67","firefox-android":"67","hermes":"0.10","ios":"14.5","node":"12.0","oculus":"6.0","opera":"61","opera-android":"53","opera_mobile":"53","quest":"6.0","react-native":"0.69","safari":"14.1","samsung":"11.0"},"es.typed-array.subarray":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"13","electron":"0.20","firefox":"15","firefox-android":"15","hermes":"0.1","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","safari":"7.1","samsung":"1.5"},"es.typed-array.to-locale-string":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"79","electron":"0.31","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.typed-array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.typed-array.to-string":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.with":{"android":"110","bun":"0.1.9","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.4","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.4","samsung":"21.0"},"es.unescape":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.weak-map":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.weak-set":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"esnext.aggregate-error":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","safari":"14.0","samsung":"14.0"},"esnext.suppressed-error.constructor":{},"esnext.array.from-async":{"bun":"0.3.0","firefox":"115","firefox-android":"115","ios":"16.4","safari":"16.4"},"esnext.array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"esnext.array.filter-out":{},"esnext.array.filter-reject":{},"esnext.array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.array.group":{},"esnext.array.group-by":{},"esnext.array.group-by-to-map":{},"esnext.array.group-to-map":{},"esnext.array.is-template-object":{},"esnext.array.last-index":{},"esnext.array.last-item":{},"esnext.array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array.to-spliced":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array.unique-by":{},"esnext.array.with":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array-buffer.detached":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","opera":"100"},"esnext.array-buffer.transfer":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","opera":"100"},"esnext.array-buffer.transfer-to-fixed-length":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","opera":"100"},"esnext.async-disposable-stack.constructor":{},"esnext.async-iterator.constructor":{},"esnext.async-iterator.as-indexed-pairs":{},"esnext.async-iterator.async-dispose":{},"esnext.async-iterator.drop":{},"esnext.async-iterator.every":{},"esnext.async-iterator.filter":{},"esnext.async-iterator.find":{},"esnext.async-iterator.flat-map":{},"esnext.async-iterator.for-each":{},"esnext.async-iterator.from":{},"esnext.async-iterator.indexed":{},"esnext.async-iterator.map":{},"esnext.async-iterator.reduce":{},"esnext.async-iterator.some":{},"esnext.async-iterator.take":{},"esnext.async-iterator.to-array":{},"esnext.bigint.range":{},"esnext.composite-key":{},"esnext.composite-symbol":{},"esnext.disposable-stack.constructor":{},"esnext.function.demethodize":{},"esnext.function.is-callable":{},"esnext.function.is-constructor":{},"esnext.function.metadata":{},"esnext.function.un-this":{},"esnext.global-this":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"65","firefox-android":"65","hermes":"0.2","ios":"12.2","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","react-native":"0.69","rhino":"1.7.14","safari":"12.1","samsung":"10.0"},"esnext.iterator.constructor":{},"esnext.iterator.as-indexed-pairs":{},"esnext.iterator.dispose":{},"esnext.iterator.drop":{},"esnext.iterator.every":{},"esnext.iterator.filter":{},"esnext.iterator.find":{},"esnext.iterator.flat-map":{},"esnext.iterator.for-each":{},"esnext.iterator.from":{},"esnext.iterator.indexed":{},"esnext.iterator.map":{},"esnext.iterator.range":{},"esnext.iterator.reduce":{},"esnext.iterator.some":{},"esnext.iterator.take":{},"esnext.iterator.to-array":{},"esnext.iterator.to-async":{},"esnext.json.is-raw-json":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","opera":"100"},"esnext.json.parse":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","opera":"100"},"esnext.json.raw-json":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","opera":"100"},"esnext.map.delete-all":{},"esnext.map.emplace":{},"esnext.map.every":{},"esnext.map.filter":{},"esnext.map.find":{},"esnext.map.find-key":{},"esnext.map.from":{},"esnext.map.group-by":{},"esnext.map.includes":{},"esnext.map.key-by":{},"esnext.map.key-of":{},"esnext.map.map-keys":{},"esnext.map.map-values":{},"esnext.map.merge":{},"esnext.map.of":{},"esnext.map.reduce":{},"esnext.map.some":{},"esnext.map.update":{},"esnext.map.update-or-insert":{},"esnext.map.upsert":{},"esnext.math.clamp":{},"esnext.math.deg-per-rad":{},"esnext.math.degrees":{},"esnext.math.fscale":{},"esnext.math.iaddh":{},"esnext.math.imulh":{},"esnext.math.isubh":{},"esnext.math.rad-per-deg":{},"esnext.math.radians":{},"esnext.math.scale":{},"esnext.math.seeded-prng":{},"esnext.math.signbit":{},"esnext.math.umulh":{},"esnext.number.from-string":{},"esnext.number.range":{},"esnext.object.has-own":{"android":"93","bun":"0.1.1","chrome":"93","chrome-android":"93","deno":"1.13","edge":"93","electron":"14.0","firefox":"92","firefox-android":"92","hermes":"0.10","ios":"15.4","node":"16.9","oculus":"17.0","opera":"79","opera-android":"66","opera_mobile":"66","quest":"17.0","react-native":"0.69","safari":"15.4","samsung":"17.0"},"esnext.object.iterate-entries":{},"esnext.object.iterate-keys":{},"esnext.object.iterate-values":{},"esnext.object.group-by":{},"esnext.observable":{},"esnext.promise.all-settled":{"android":"76","bun":"0.1.1","chrome":"76","chrome-android":"76","deno":"1.24","edge":"79","electron":"6.0","firefox":"71","firefox-android":"71","ios":"13.0","node":"12.9","oculus":"7.0","opera":"63","opera-android":"54","opera_mobile":"54","quest":"7.0","safari":"13","samsung":"12.0"},"esnext.promise.any":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.24","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","safari":"14.0","samsung":"14.0"},"esnext.promise.try":{},"esnext.promise.with-resolvers":{},"esnext.reflect.define-metadata":{},"esnext.reflect.delete-metadata":{},"esnext.reflect.get-metadata":{},"esnext.reflect.get-metadata-keys":{},"esnext.reflect.get-own-metadata":{},"esnext.reflect.get-own-metadata-keys":{},"esnext.reflect.has-metadata":{},"esnext.reflect.has-own-metadata":{},"esnext.reflect.metadata":{},"esnext.set.add-all":{},"esnext.set.delete-all":{},"esnext.set.difference.v2":{"bun":"0.6.0"},"esnext.set.difference":{},"esnext.set.every":{},"esnext.set.filter":{},"esnext.set.find":{},"esnext.set.from":{},"esnext.set.intersection.v2":{"bun":"0.5.7"},"esnext.set.intersection":{},"esnext.set.is-disjoint-from.v2":{"bun":"0.5.7"},"esnext.set.is-disjoint-from":{},"esnext.set.is-subset-of.v2":{"bun":"0.5.7"},"esnext.set.is-subset-of":{},"esnext.set.is-superset-of.v2":{"bun":"0.5.7"},"esnext.set.is-superset-of":{},"esnext.set.join":{},"esnext.set.map":{},"esnext.set.of":{},"esnext.set.reduce":{},"esnext.set.some":{},"esnext.set.symmetric-difference.v2":{"bun":"0.5.7"},"esnext.set.symmetric-difference":{},"esnext.set.union.v2":{"bun":"0.5.7"},"esnext.set.union":{},"esnext.string.at":{},"esnext.string.cooked":{},"esnext.string.code-points":{},"esnext.string.dedent":{},"esnext.string.is-well-formed":{"android":"111","bun":"0.4.0","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"esnext.string.match-all":{"android":"80","bun":"0.1.1","chrome":"80","chrome-android":"80","deno":"1.0","edge":"80","electron":"8.0","firefox":"73","firefox-android":"73","hermes":"0.6","ios":"13.4","node":"14.0","oculus":"9.0","opera":"67","opera-android":"57","opera_mobile":"57","quest":"9.0","react-native":"0.69","safari":"13.1","samsung":"13.0"},"esnext.string.replace-all":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"77","firefox-android":"77","hermes":"0.7","ios":"13.4","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","react-native":"0.69","safari":"13.1","samsung":"14.0"},"esnext.string.to-well-formed":{"android":"111","bun":"0.5.7","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"esnext.symbol.async-dispose":{},"esnext.symbol.dispose":{},"esnext.symbol.is-registered-symbol":{},"esnext.symbol.is-registered":{},"esnext.symbol.is-well-known-symbol":{},"esnext.symbol.is-well-known":{},"esnext.symbol.matcher":{},"esnext.symbol.metadata":{},"esnext.symbol.metadata-key":{},"esnext.symbol.observable":{},"esnext.symbol.pattern-match":{},"esnext.symbol.replace-all":{},"esnext.typed-array.from-async":{},"esnext.typed-array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"esnext.typed-array.filter-out":{},"esnext.typed-array.filter-reject":{},"esnext.typed-array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.typed-array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.typed-array.group-by":{},"esnext.typed-array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.typed-array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.typed-array.to-spliced":{},"esnext.typed-array.unique-by":{},"esnext.typed-array.with":{"android":"110","bun":"0.1.9","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.4","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.4","samsung":"21.0"},"esnext.weak-map.delete-all":{},"esnext.weak-map.from":{},"esnext.weak-map.of":{},"esnext.weak-map.emplace":{},"esnext.weak-map.upsert":{},"esnext.weak-set.add-all":{},"esnext.weak-set.delete-all":{},"esnext.weak-set.from":{},"esnext.weak-set.of":{},"web.atob":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"16","electron":"0.20","firefox":"27","firefox-android":"27","ios":"10.3","node":"18.0","oculus":"3.0","opera":"10.5","opera-android":"10.5","opera_mobile":"10.5","quest":"3.0","safari":"10.1","samsung":"2.0"},"web.btoa":{"android":"3.0","bun":"0.1.1","chrome":"4","chrome-android":"18","deno":"1.0","edge":"16","electron":"0.20","firefox":"27","firefox-android":"27","ios":"1.0","node":"17.5","oculus":"3.0","opera":"10.5","opera-android":"10.5","opera_mobile":"10.5","phantom":"1.9","quest":"3.0","safari":"3.0","samsung":"1.0"},"web.dom-collections.for-each":{"android":"58","bun":"0.1.1","chrome":"58","chrome-android":"58","deno":"1.0","edge":"16","electron":"1.7","firefox":"50","firefox-android":"50","hermes":"0.1","ios":"10.0","node":"0.0.1","oculus":"4.0","opera":"45","opera-android":"43","opera_mobile":"43","quest":"4.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"7.0"},"web.dom-collections.iterator":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"79","electron":"3.0","firefox":"60","firefox-android":"60","hermes":"0.1","ios":"13.4","node":"0.0.1","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"13.1","samsung":"9.0"},"web.dom-exception.constructor":{"android":"46","bun":"0.1.1","chrome":"46","chrome-android":"46","deno":"1.7","edge":"79","electron":"0.36","firefox":"37","firefox-android":"37","ios":"11.3","node":"17.0","oculus":"3.0","opera":"33","opera-android":"33","opera_mobile":"33","quest":"3.0","safari":"11.1","samsung":"5.0"},"web.dom-exception.stack":{"deno":"1.15","firefox":"37","firefox-android":"37","node":"17.0"},"web.dom-exception.to-string-tag":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.7","edge":"79","electron":"0.37","firefox":"51","firefox-android":"51","ios":"11.3","node":"17.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","safari":"11.1","samsung":"5.0"},"web.immediate":{"bun":"0.4.0","ie":"10","node":"0.9.1"},"web.queue-microtask":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"69","firefox-android":"69","ios":"12.2","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","safari":"12.1","samsung":"10.0"},"web.self":{"android":"86","chrome":"86","chrome-android":"86","deno":"1.29.3","edge":"86","electron":"11.0","firefox":"31","firefox-android":"31","ios":"10.0","oculus":"12.0","opera":"72","opera-android":"61","opera_mobile":"61","quest":"12.0","safari":"10","samsung":"14.0"},"web.structured-clone":{},"web.timers":{"android":"1.5","bun":"0.4.0","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"10","ios":"1.0","node":"0.0.1","oculus":"3.0","opera":"7","opera-android":"7","opera_mobile":"7","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1.0","samsung":"1.0"},"web.url":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.0","edge":"79","electron":"4.0","firefox":"57","firefox-android":"57","ios":"14.0","node":"10.0","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","safari":"14.0","samsung":"9.0"},"web.url.can-parse":{"deno":"1.33.2","firefox":"115","firefox-android":"115","node":"20.1.0"},"web.url.to-json":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"57","firefox-android":"57","ios":"14.0","node":"10.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","safari":"14.0","samsung":"10.0"},"web.url-search-params":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.0","edge":"79","electron":"4.0","firefox":"57","firefox-android":"57","ios":"14.0","node":"10.0","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","safari":"14.0","samsung":"9.0"},"web.url-search-params.delete":{"firefox":"115","firefox-android":"115","node":"20.2.0"},"web.url-search-params.has":{"firefox":"115","firefox-android":"115","node":"20.2.0"},"web.url-search-params.size":{"android":"113","chrome":"113","chrome-android":"113","deno":"1.32","edge":"113","electron":"25.0","firefox":"112","firefox-android":"112","node":"19.8.0","opera":"99","opera-android":"76","opera_mobile":"76"}}'); +module.exports = JSON.parse('{"es.symbol":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.symbol.description":{"android":"70","bun":"0.1.1","chrome":"70","chrome-android":"70","deno":"1.0","edge":"79","electron":"5.0","firefox":"63","firefox-android":"63","ios":"12.2","node":"11.0","oculus":"6.0","opera":"57","opera-android":"49","opera_mobile":"49","quest":"6.0","safari":"12.1","samsung":"10.0"},"es.symbol.async-iterator":{"android":"63","bun":"0.1.1","chrome":"63","chrome-android":"63","deno":"1.0","edge":"79","electron":"3.0","firefox":"55","firefox-android":"55","ios":"12.0","node":"10.0","oculus":"5.0","opera":"50","opera-android":"46","opera_mobile":"46","quest":"5.0","safari":"12.0","samsung":"8.0"},"es.symbol.has-instance":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"15","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.is-concat-spreadable":{"android":"48","bun":"0.1.1","chrome":"48","chrome-android":"48","deno":"1.0","edge":"15","electron":"0.37","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"35","opera-android":"35","opera_mobile":"35","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.iterator":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"36","firefox-android":"36","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.symbol.match":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.match-all":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"67","firefox-android":"67","hermes":"0.6","ios":"13.0","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","react-native":"0.69","safari":"13","samsung":"11.0"},"es.symbol.replace":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.search":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.species":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"41","firefox-android":"41","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.split":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.to-primitive":{"android":"47","bun":"0.1.1","chrome":"47","chrome-android":"47","deno":"1.0","edge":"15","electron":"0.36","firefox":"44","firefox-android":"44","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"34","opera-android":"34","opera_mobile":"34","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.to-string-tag":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.symbol.unscopables":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"48","firefox-android":"48","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.error.cause":{"android":"94","bun":"0.1.1","chrome":"94","chrome-android":"94","deno":"1.14","edge":"94","electron":"15.0","firefox":"91","firefox-android":"91","hermes":"0.8","ios":"15.0","node":"16.11","oculus":"18.0","opera":"80","opera-android":"66","opera_mobile":"66","quest":"18.0","react-native":"0.69","safari":"15.0","samsung":"17.0"},"es.error.to-string":{"android":"4.4.3","bun":"0.1.1","chrome":"33","chrome-android":"33","deno":"1.0","edge":"12","electron":"0.20","firefox":"11","firefox-android":"11","hermes":"0.1","ie":"9","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"20","opera-android":"20","opera_mobile":"20","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"8.0","samsung":"2.0"},"es.aggregate-error":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","react-native":"0.72","safari":"14.0","samsung":"14.0"},"es.aggregate-error.cause":{"android":"94","bun":"0.1.1","chrome":"94","chrome-android":"94","deno":"1.14","edge":"94","electron":"15.0","firefox":"91","firefox-android":"91","ios":"15.0","node":"16.11","oculus":"18.0","opera":"80","opera-android":"66","opera_mobile":"66","quest":"18.0","react-native":"0.72","safari":"15.0","samsung":"17.0"},"es.array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"es.array.concat":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.copy-within":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"12","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.every":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.fill":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"12","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.filter":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.find":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.find-index":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"48","firefox-android":"48","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","safari":"9.0","samsung":"5.0"},"es.array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.array.flat":{"android":"69","bun":"0.1.1","chrome":"69","chrome-android":"69","deno":"1.0","edge":"79","electron":"4.0","firefox":"62","firefox-android":"62","hermes":"0.4","ios":"12.0","node":"11.0","oculus":"6.0","opera":"56","opera-android":"48","opera_mobile":"48","quest":"6.0","react-native":"0.69","safari":"12.0","samsung":"10.0"},"es.array.flat-map":{"android":"69","bun":"0.1.1","chrome":"69","chrome-android":"69","deno":"1.0","edge":"79","electron":"4.0","firefox":"62","firefox-android":"62","hermes":"0.4","ios":"12.0","node":"11.0","oculus":"6.0","opera":"56","opera-android":"48","opera_mobile":"48","quest":"6.0","react-native":"0.69","safari":"12.0","samsung":"10.0"},"es.array.for-each":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.from":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"9.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.73","rhino":"1.7.13","safari":"9.0","samsung":"5.0"},"es.array.includes":{"android":"53","bun":"0.1.1","chrome":"53","chrome-android":"53","deno":"1.0","edge":"14","electron":"1.4","firefox":"102","firefox-android":"102","ios":"10.0","node":"7.0","oculus":"3.0","opera":"40","opera-android":"40","opera_mobile":"40","quest":"3.0","safari":"10.0","samsung":"6.0"},"es.array.index-of":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"12","electron":"1.2","firefox":"47","firefox-android":"47","hermes":"0.1","ie":"9","ios":"8.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"5.0"},"es.array.is-array":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.array.iterator":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"15","electron":"3.0","firefox":"60","firefox-android":"60","ios":"10.0","node":"10.0","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","safari":"10.0","samsung":"9.0"},"es.array.join":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"13","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.last-index-of":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"12","electron":"1.2","firefox":"47","firefox-android":"47","hermes":"0.1","ie":"9","ios":"8.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"5.0"},"es.array.map":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"50","firefox-android":"50","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.of":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"9.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"5.0"},"es.array.push":{"bun":"0.1.1","firefox":"55","firefox-android":"55","hermes":"0.2","ios":"16.0","react-native":"0.69","safari":"16.0"},"es.array.reduce":{"android":"83","bun":"0.1.1","chrome":"83","chrome-android":"83","deno":"1.0","edge":"12","electron":"9.0","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"6.0","oculus":"10.0","opera":"69","opera-android":"59","opera_mobile":"59","quest":"10.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"13.0"},"es.array.reduce-right":{"android":"83","bun":"0.1.1","chrome":"83","chrome-android":"83","deno":"1.0","edge":"12","electron":"9.0","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"6.0","oculus":"10.0","opera":"69","opera-android":"59","opera_mobile":"59","quest":"10.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"13.0"},"es.array.reverse":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"5.5","ios":"12.2","node":"0.0.3","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"12.0.2","samsung":"1.0"},"es.array.slice":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.some":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.array.sort":{"android":"70","bun":"0.1.1","chrome":"70","chrome-android":"70","deno":"1.0","edge":"79","electron":"5.0","firefox":"4","firefox-android":"4","hermes":"0.10","ios":"12.0","node":"11.0","oculus":"6.0","opera":"57","opera-android":"49","opera_mobile":"49","quest":"6.0","react-native":"0.69","safari":"12.0","samsung":"10.0"},"es.array.species":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"48","firefox-android":"48","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.splice":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"49","firefox-android":"49","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array.to-spliced":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array.unscopables.flat":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"67","firefox-android":"67","ios":"13.0","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","safari":"13","samsung":"11.0"},"es.array.unscopables.flat-map":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"67","firefox-android":"67","ios":"13.0","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","safari":"13","samsung":"11.0"},"es.array.unshift":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"12","electron":"5.0","firefox":"23","firefox-android":"23","hermes":"0.1","ie":"9","ios":"16.0","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","react-native":"0.69","safari":"16.0","samsung":"10.0"},"es.array.with":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.array-buffer.constructor":{"android":"4.4","bun":"0.1.1","chrome":"28","chrome-android":"28","deno":"1.0","edge":"14","electron":"0.20","firefox":"44","firefox-android":"44","hermes":"0.1","ios":"12.0","node":"0.11.1","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","safari":"12.0","samsung":"1.5"},"es.array-buffer.is-view":{"android":"4.4.3","bun":"0.1.1","chrome":"32","chrome-android":"32","deno":"1.0","edge":"12","electron":"0.20","firefox":"29","firefox-android":"29","hermes":"0.1","ie":"11","ios":"8.0","node":"0.11.9","oculus":"3.0","opera":"19","opera-android":"19","opera_mobile":"19","quest":"3.0","react-native":"0.69","safari":"7.1","samsung":"2.0"},"es.array-buffer.slice":{"android":"4.4.3","bun":"0.1.1","chrome":"31","chrome-android":"31","deno":"1.0","edge":"12","electron":"0.20","firefox":"46","firefox-android":"46","hermes":"0.1","ie":"11","ios":"12.2","node":"0.11.8","oculus":"3.0","opera":"18","opera-android":"18","opera_mobile":"18","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"12.1","samsung":"2.0"},"es.data-view":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"15","firefox-android":"15","hermes":"0.1","ie":"10","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.date.get-year":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"9","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.date.now":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ie":"9","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.date.set-year":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.date.to-gmt-string":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.date.to-iso-string":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"7","firefox-android":"7","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.date.to-json":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"10.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"1.5"},"es.date.to-primitive":{"android":"47","bun":"0.1.1","chrome":"47","chrome-android":"47","deno":"1.0","edge":"15","electron":"0.36","firefox":"44","firefox-android":"44","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"34","opera-android":"34","opera_mobile":"34","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.date.to-string":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ie":"9","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.escape":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.function.bind":{"android":"3.0","bun":"0.1.1","chrome":"7","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"5.0","node":"0.1.101","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"2.0","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"5.1","samsung":"1.0"},"es.function.has-instance":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"50","firefox-android":"50","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.function.name":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.global-this":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"65","firefox-android":"65","hermes":"0.2","ios":"12.2","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","react-native":"0.69","rhino":"1.7.14","safari":"12.1","samsung":"10.0"},"es.json.stringify":{"android":"72","bun":"0.1.1","chrome":"72","chrome-android":"72","deno":"1.0","edge":"79","electron":"5.0","firefox":"64","firefox-android":"64","ios":"12.2","node":"12.0","oculus":"6.0","opera":"59","opera-android":"51","opera_mobile":"51","quest":"6.0","react-native":"0.72","safari":"12.1","samsung":"11.0"},"es.json.to-string-tag":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"15","electron":"1.1","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.map":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.73","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.map.group-by":{"android":"117","chrome":"117","chrome-android":"117","deno":"1.37","edge":"117","electron":"27.0","firefox":"119","firefox-android":"119","node":"21.0","oculus":"30.0","opera":"103","opera-android":"78","opera_mobile":"78","quest":"30.0"},"es.math.acosh":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"13","electron":"1.4","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","safari":"7.1","samsung":"6.0"},"es.math.asinh":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.atanh":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.cbrt":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.clz32":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ios":"9.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.0"},"es.math.cosh":{"android":"39","bun":"0.1.1","chrome":"39","chrome-android":"39","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"1.0","oculus":"3.0","opera":"26","opera-android":"26","opera_mobile":"26","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.4"},"es.math.expm1":{"android":"39","bun":"0.1.1","chrome":"39","chrome-android":"39","deno":"1.0","edge":"13","electron":"0.20","firefox":"46","firefox-android":"46","hermes":"0.1","ios":"8.0","node":"1.0","oculus":"3.0","opera":"26","opera-android":"26","opera_mobile":"26","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.4"},"es.math.fround":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"26","firefox-android":"26","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.hypot":{"android":"78","bun":"0.1.1","chrome":"78","chrome-android":"78","deno":"1.0","edge":"12","electron":"7.0","firefox":"27","firefox-android":"27","hermes":"0.1","ios":"8.0","node":"12.16","oculus":"8.0","opera":"65","opera-android":"56","opera_mobile":"56","quest":"8.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"12.0"},"es.math.imul":{"android":"4.4","bun":"0.1.1","chrome":"28","chrome-android":"28","deno":"1.0","edge":"13","electron":"0.20","firefox":"20","firefox-android":"20","hermes":"0.1","ios":"9.0","node":"0.11.1","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.math.log10":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.log1p":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.log2":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.sign":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"9.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.0"},"es.math.sinh":{"android":"39","bun":"0.1.1","chrome":"39","chrome-android":"39","deno":"1.0","edge":"13","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"1.0","oculus":"3.0","opera":"26","opera-android":"26","opera_mobile":"26","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.4"},"es.math.tanh":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.math.to-string-tag":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"15","electron":"1.1","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.math.trunc":{"android":"38","bun":"0.1.1","chrome":"38","chrome-android":"38","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"8.0","node":"0.11.15","oculus":"3.0","opera":"25","opera-android":"25","opera_mobile":"25","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.number.constructor":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"46","firefox-android":"46","hermes":"0.5","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.number.epsilon":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"25","firefox-android":"25","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"9.0","samsung":"2.0"},"es.number.is-finite":{"android":"4.1","bun":"0.1.1","chrome":"19","chrome-android":"25","deno":"1.0","edge":"12","electron":"0.20","firefox":"16","firefox-android":"16","hermes":"0.1","ios":"9.0","node":"0.7.3","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.number.is-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"16","firefox-android":"16","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.is-nan":{"android":"4.1","bun":"0.1.1","chrome":"19","chrome-android":"25","deno":"1.0","edge":"12","electron":"0.20","firefox":"15","firefox-android":"15","hermes":"0.1","ios":"9.0","node":"0.7.3","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.number.is-safe-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"32","firefox-android":"32","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.max-safe-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.min-safe-integer":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.number.parse-float":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"79","electron":"0.20","firefox":"39","firefox-android":"39","hermes":"0.1","ios":"11.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"11.0","samsung":"3.0"},"es.number.parse-int":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"79","electron":"0.20","firefox":"39","firefox-android":"39","hermes":"0.1","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"9.0","samsung":"3.0"},"es.number.to-exponential":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"18","electron":"1.2","firefox":"87","firefox-android":"87","hermes":"0.1","ios":"11.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"11","samsung":"5.0"},"es.number.to-fixed":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"79","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.number.to-precision":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"8","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"1.5"},"es.object.assign":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"79","electron":"0.37","firefox":"36","firefox-android":"36","hermes":"0.4","ios":"9.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"9.0","samsung":"5.0"},"es.object.create":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"3.0","node":"0.1.27","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"4.0","samsung":"1.0"},"es.object.define-getter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.define-properties":{"android":"37","bun":"0.1.1","chrome":"37","chrome-android":"37","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"5.0","node":"0.11.15","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"2.0","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"5.1","samsung":"3.0"},"es.object.define-property":{"android":"37","bun":"0.1.1","chrome":"37","chrome-android":"37","deno":"1.0","edge":"12","electron":"0.20","firefox":"4","firefox-android":"4","hermes":"0.1","ie":"9","ios":"5.0","node":"0.11.15","oculus":"3.0","opera":"12","opera-android":"12","opera_mobile":"12","phantom":"2.0","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"5.1","samsung":"3.0"},"es.object.define-setter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.entries":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"14","electron":"1.4","firefox":"47","firefox-android":"47","hermes":"0.1","ios":"10.3","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"10.1","samsung":"6.0"},"es.object.freeze":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.from-entries":{"android":"73","bun":"0.1.1","chrome":"73","chrome-android":"73","deno":"1.0","edge":"79","electron":"5.0","firefox":"63","firefox-android":"63","hermes":"0.4","ios":"12.2","node":"12.0","oculus":"6.0","opera":"60","opera-android":"52","opera_mobile":"52","quest":"6.0","react-native":"0.69","rhino":"1.7.14","safari":"12.1","samsung":"11.0"},"es.object.get-own-property-descriptor":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.get-own-property-descriptors":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"50","firefox-android":"50","hermes":"0.6","ios":"10.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"6.0"},"es.object.get-own-property-names":{"android":"40","bun":"0.1.1","chrome":"40","chrome-android":"40","deno":"1.0","edge":"13","electron":"0.21","firefox":"34","firefox-android":"34","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"27","opera-android":"27","opera_mobile":"27","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.object.get-prototype-of":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.group-by":{"android":"117","chrome":"117","chrome-android":"117","deno":"1.37","edge":"117","electron":"27.0","firefox":"119","firefox-android":"119","node":"21.0","oculus":"30.0","opera":"103","opera-android":"78","opera_mobile":"78","quest":"30.0"},"es.object.has-own":{"android":"93","bun":"0.1.1","chrome":"93","chrome-android":"93","deno":"1.13","edge":"93","electron":"14.0","firefox":"92","firefox-android":"92","hermes":"0.10","ios":"15.4","node":"16.9","oculus":"17.0","opera":"79","opera-android":"66","opera_mobile":"66","quest":"17.0","react-native":"0.69","safari":"15.4","samsung":"17.0"},"es.object.is":{"android":"4.1","bun":"0.1.1","chrome":"19","chrome-android":"25","deno":"1.0","edge":"12","electron":"0.20","firefox":"22","firefox-android":"22","hermes":"0.1","ios":"9.0","node":"0.7.3","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"1.5"},"es.object.is-extensible":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.is-frozen":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.is-sealed":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.keys":{"android":"40","bun":"0.1.1","chrome":"40","chrome-android":"40","deno":"1.0","edge":"13","electron":"0.21","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"27","opera-android":"27","opera_mobile":"27","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.object.lookup-getter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.lookup-setter":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"16","electron":"3.0","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"8.0","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"8.0"},"es.object.prevent-extensions":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.proto":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","hermes":"0.1","ie":"11","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","react-native":"0.69","safari":"3.1","samsung":"1.0"},"es.object.seal":{"android":"44","bun":"0.1.1","chrome":"44","chrome-android":"44","deno":"1.0","edge":"13","electron":"0.30","firefox":"35","firefox-android":"35","hermes":"0.1","ios":"9.0","node":"3.0","oculus":"3.0","opera":"31","opera-android":"31","opera_mobile":"31","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"4.0"},"es.object.set-prototype-of":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"12","electron":"0.20","firefox":"31","firefox-android":"31","hermes":"0.1","ie":"11","ios":"9.0","node":"0.11.13","oculus":"3.0","opera":"21","opera-android":"21","opera_mobile":"21","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"2.0"},"es.object.to-string":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.object.values":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"14","electron":"1.4","firefox":"47","firefox-android":"47","hermes":"0.1","ios":"10.3","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"10.1","samsung":"6.0"},"es.parse-float":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"74","electron":"0.20","firefox":"8","firefox-android":"8","hermes":"0.1","ie":"8","ios":"8.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.parse-int":{"android":"37","bun":"0.1.1","chrome":"35","chrome-android":"35","deno":"1.0","edge":"74","electron":"0.20","firefox":"21","firefox-android":"21","hermes":"0.1","ie":"9","ios":"8.0","node":"0.11.13","oculus":"3.0","opera":"22","opera-android":"22","opera_mobile":"22","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"7.1","samsung":"3.0"},"es.promise":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.24","edge":"79","electron":"4.0","firefox":"69","firefox-android":"69","ios":"11.0","node":"10.4","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","rhino":"1.7.14","safari":"11.0","samsung":"9.0"},"es.promise.all-settled":{"android":"76","bun":"0.1.1","chrome":"76","chrome-android":"76","deno":"1.24","edge":"79","electron":"6.0","firefox":"71","firefox-android":"71","ios":"13.0","node":"12.9","oculus":"7.0","opera":"63","opera-android":"54","opera_mobile":"54","quest":"7.0","safari":"13","samsung":"12.0"},"es.promise.any":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.24","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","safari":"14.0","samsung":"14.0"},"es.promise.finally":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.24","edge":"79","electron":"4.0","firefox":"69","firefox-android":"69","ios":"13.2.3","node":"10.4","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","rhino":"1.7.14","safari":"13.0.3","samsung":"9.0"},"es.promise.with-resolvers":{"android":"119","bun":"0.7.1","chrome":"119","chrome-android":"119","deno":"1.38","edge":"119","electron":"28.0","firefox":"121","firefox-android":"121","opera":"105"},"es.reflect.apply":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.construct":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"15","electron":"0.37","firefox":"44","firefox-android":"44","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.define-property":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"13","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.delete-property":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.get":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.get-own-property-descriptor":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.get-prototype-of":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.has":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.is-extensible":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.own-keys":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.prevent-extensions":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.set":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"79","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.set-prototype-of":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"12","electron":"0.37","firefox":"42","firefox-android":"42","hermes":"0.7","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.reflect.to-string-tag":{"android":"86","bun":"0.1.1","chrome":"86","chrome-android":"86","deno":"1.3","edge":"86","electron":"11.0","firefox":"82","firefox-android":"82","hermes":"0.7","ios":"14.0","node":"15.0","oculus":"12.0","opera":"72","opera-android":"61","opera_mobile":"61","quest":"12.0","react-native":"0.69","safari":"14.0","samsung":"14.0"},"es.regexp.constructor":{"android":"64","bun":"0.1.1","chrome":"64","chrome-android":"64","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","ios":"11.3","node":"10.0","oculus":"5.0","opera":"51","opera-android":"47","opera_mobile":"47","quest":"5.0","safari":"11.1","samsung":"9.0"},"es.regexp.dot-all":{"android":"62","bun":"0.1.1","chrome":"62","chrome-android":"62","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","hermes":"0.4","ios":"11.3","node":"8.10","oculus":"5.0","opera":"49","opera-android":"46","opera_mobile":"46","quest":"5.0","react-native":"0.69","safari":"11.1","samsung":"8.0"},"es.regexp.exec":{"android":"64","bun":"0.1.1","chrome":"64","chrome-android":"64","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","ios":"11.3","node":"10.0","oculus":"5.0","opera":"51","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.71","safari":"11.1","samsung":"9.0"},"es.regexp.flags":{"android":"111","bun":"0.1.1","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","firefox":"78","firefox-android":"78","hermes":"0.4","ios":"11.3","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","react-native":"0.69","safari":"11.1","samsung":"22.0"},"es.regexp.sticky":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"13","electron":"0.37","firefox":"3","firefox-android":"4","hermes":"0.3","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.regexp.test":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"46","firefox-android":"46","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","safari":"10.0","samsung":"5.0"},"es.regexp.to-string":{"android":"50","bun":"0.1.1","chrome":"50","chrome-android":"50","deno":"1.0","edge":"79","electron":"1.1","firefox":"46","firefox-android":"46","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"37","opera-android":"37","opera_mobile":"37","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.set":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.73","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.string.at-alternative":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"es.string.code-point-at":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"29","firefox-android":"29","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.ends-with":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.from-code-point":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"29","firefox-android":"29","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.includes":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.is-well-formed":{"android":"111","bun":"0.4.0","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","firefox":"119","firefox-android":"119","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"es.string.iterator":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"36","firefox-android":"36","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.match":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.match-all":{"android":"80","bun":"0.1.1","chrome":"80","chrome-android":"80","deno":"1.0","edge":"80","electron":"8.0","firefox":"73","firefox-android":"73","hermes":"0.6","ios":"13.4","node":"14.0","oculus":"9.0","opera":"67","opera-android":"57","opera_mobile":"57","quest":"9.0","react-native":"0.69","safari":"13.1","samsung":"13.0"},"es.string.pad-end":{"android":"57","bun":"0.1.1","chrome":"57","chrome-android":"57","deno":"1.0","edge":"15","electron":"1.7","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"11.0","node":"8.0","oculus":"3.0","opera":"44","opera-android":"43","opera_mobile":"43","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"11.0","samsung":"7.0"},"es.string.pad-start":{"android":"57","bun":"0.1.1","chrome":"57","chrome-android":"57","deno":"1.0","edge":"15","electron":"1.7","firefox":"48","firefox-android":"48","hermes":"0.1","ios":"11.0","node":"8.0","oculus":"3.0","opera":"44","opera-android":"43","opera_mobile":"43","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"11.0","samsung":"7.0"},"es.string.raw":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"34","firefox-android":"34","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.14","safari":"9.0","samsung":"3.4"},"es.string.repeat":{"android":"41","bun":"0.1.1","chrome":"41","chrome-android":"41","deno":"1.0","edge":"13","electron":"0.21","firefox":"24","firefox-android":"24","hermes":"0.1","ios":"9.0","node":"1.0","oculus":"3.0","opera":"28","opera-android":"28","opera_mobile":"28","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"9.0","samsung":"3.4"},"es.string.replace":{"android":"64","bun":"0.1.1","chrome":"64","chrome-android":"64","deno":"1.0","edge":"79","electron":"3.0","firefox":"78","firefox-android":"78","ios":"14.0","node":"10.0","oculus":"5.0","opera":"51","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.71","safari":"14.0","samsung":"9.0"},"es.string.replace-all":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"77","firefox-android":"77","hermes":"0.7","ios":"13.4","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","react-native":"0.69","safari":"13.1","samsung":"14.0"},"es.string.search":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"49","firefox-android":"49","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.split":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"79","electron":"1.4","firefox":"49","firefox-android":"49","ios":"10.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"10.0","samsung":"6.0"},"es.string.starts-with":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"40","firefox-android":"40","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.string.substr":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"9","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"4","opera-android":"4","opera_mobile":"4","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.string.to-well-formed":{"android":"111","bun":"0.5.7","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","firefox":"119","firefox-android":"119","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"es.string.trim":{"android":"59","bun":"0.1.1","chrome":"59","chrome-android":"59","deno":"1.0","edge":"15","electron":"1.8","firefox":"52","firefox-android":"52","hermes":"0.1","ios":"12.2","node":"8.3","oculus":"4.0","opera":"46","opera-android":"43","opera_mobile":"43","quest":"4.0","react-native":"0.69","safari":"12.1","samsung":"7.0"},"es.string.trim-end":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"79","electron":"3.0","firefox":"61","firefox-android":"61","hermes":"0.3","ios":"12.2","node":"10.0","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.69","safari":"12.1","samsung":"9.0"},"es.string.trim-start":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"79","electron":"3.0","firefox":"61","firefox-android":"61","hermes":"0.3","ios":"12.0","node":"10.0","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.69","safari":"12.0","samsung":"9.0"},"es.string.anchor":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.big":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.blink":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.bold":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.fixed":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.fontcolor":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.fontsize":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.italics":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.link":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"17","firefox-android":"17","ios":"6.0","node":"0.1.27","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","phantom":"2.0","quest":"3.0","rhino":"1.7.14","safari":"6.0","samsung":"1.0"},"es.string.small":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.strike":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.sub":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.string.sup":{"android":"3.0","bun":"0.1.1","chrome":"5","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"2","firefox-android":"4","ios":"2.0","node":"0.1.27","oculus":"3.0","opera":"10.50","opera-android":"10.50","opera_mobile":"10.50","phantom":"1.9","quest":"3.0","rhino":"1.7.13","safari":"3.1","samsung":"1.0"},"es.typed-array.float32-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.float64-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.int8-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.int16-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.int32-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint8-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint8-clamped-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint16-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.uint32-array":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"es.typed-array.copy-within":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"34","firefox-android":"34","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.every":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.fill":{"android":"58","bun":"0.1.1","chrome":"58","chrome-android":"58","deno":"1.0","edge":"79","electron":"1.7","firefox":"55","firefox-android":"55","hermes":"0.1","ios":"14.5","node":"8.0","oculus":"4.0","opera":"45","opera-android":"43","opera_mobile":"43","quest":"4.0","react-native":"0.69","safari":"14.1","samsung":"7.0"},"es.typed-array.filter":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.find":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.find-index":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.typed-array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"es.typed-array.for-each":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.from":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.includes":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.0","edge":"14","electron":"0.37","firefox":"43","firefox-android":"43","hermes":"0.1","ios":"10.0","node":"6.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.index-of":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.iterator":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.join":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.last-index-of":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.map":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.of":{"android":"54","bun":"0.1.1","chrome":"54","chrome-android":"54","deno":"1.0","edge":"15","electron":"1.4","firefox":"55","firefox-android":"55","ios":"14.0","node":"7.0","oculus":"3.0","opera":"41","opera-android":"41","opera_mobile":"41","quest":"3.0","safari":"14.0","samsung":"6.0"},"es.typed-array.reduce":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.reduce-right":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.reverse":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.set":{"android":"95","bun":"0.1.1","chrome":"95","chrome-android":"95","deno":"1.15","edge":"95","electron":"16.0","firefox":"54","firefox-android":"54","hermes":"0.1","ios":"14.5","node":"17.0","oculus":"18.0","opera":"81","opera-android":"67","opera_mobile":"67","quest":"18.0","react-native":"0.69","safari":"14.1","samsung":"17.0"},"es.typed-array.slice":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"38","firefox-android":"38","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.some":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"13","electron":"0.31","firefox":"37","firefox-android":"37","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.sort":{"android":"74","bun":"0.1.1","chrome":"74","chrome-android":"74","deno":"1.0","edge":"79","electron":"6.0","firefox":"67","firefox-android":"67","hermes":"0.10","ios":"14.5","node":"12.0","oculus":"6.0","opera":"61","opera-android":"53","opera_mobile":"53","quest":"6.0","react-native":"0.69","safari":"14.1","samsung":"11.0"},"es.typed-array.subarray":{"android":"4.4","bun":"0.1.1","chrome":"26","chrome-android":"26","deno":"1.0","edge":"13","electron":"0.20","firefox":"15","firefox-android":"15","hermes":"0.1","ios":"8.0","node":"0.11.0","oculus":"3.0","opera":"15","opera-android":"15","opera_mobile":"15","quest":"3.0","react-native":"0.69","safari":"7.1","samsung":"1.5"},"es.typed-array.to-locale-string":{"android":"45","bun":"0.1.1","chrome":"45","chrome-android":"45","deno":"1.0","edge":"79","electron":"0.31","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"4.0","oculus":"3.0","opera":"32","opera-android":"32","opera_mobile":"32","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.typed-array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"es.typed-array.to-string":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"13","electron":"1.2","firefox":"51","firefox-android":"51","hermes":"0.1","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.69","safari":"10.0","samsung":"5.0"},"es.typed-array.with":{"android":"110","bun":"0.1.9","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.4","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.4","samsung":"21.0"},"es.unescape":{"android":"3.0","bun":"0.1.1","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"3","ios":"1.0","node":"0.0.3","oculus":"3.0","opera":"3","opera-android":"3","opera_mobile":"3","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1","samsung":"1.0"},"es.weak-map":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"79","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.73","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"es.weak-set":{"android":"51","bun":"0.1.1","chrome":"51","chrome-android":"51","deno":"1.0","edge":"15","electron":"1.2","firefox":"53","firefox-android":"53","ios":"10.0","node":"6.5","oculus":"3.0","opera":"38","opera-android":"38","opera_mobile":"38","quest":"3.0","react-native":"0.73","rhino":"1.7.13","safari":"10.0","samsung":"5.0"},"esnext.aggregate-error":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","react-native":"0.72","safari":"14.0","samsung":"14.0"},"esnext.suppressed-error.constructor":{},"esnext.array.from-async":{"bun":"0.3.0","deno":"1.38","firefox":"115","firefox-android":"115","ios":"16.4","safari":"16.4"},"esnext.array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"esnext.array.filter-out":{},"esnext.array.filter-reject":{},"esnext.array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.array.group":{},"esnext.array.group-by":{},"esnext.array.group-by-to-map":{},"esnext.array.group-to-map":{},"esnext.array.is-template-object":{},"esnext.array.last-index":{},"esnext.array.last-item":{},"esnext.array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array.to-spliced":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array.unique-by":{},"esnext.array.with":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.array-buffer.detached":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","node":"21.0","oculus":"28.0","opera":"100","opera-android":"76","opera_mobile":"76","quest":"28.0","samsung":"23.0"},"esnext.array-buffer.transfer":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","node":"21.0","oculus":"28.0","opera":"100","opera-android":"76","opera_mobile":"76","quest":"28.0","samsung":"23.0"},"esnext.array-buffer.transfer-to-fixed-length":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","node":"21.0","oculus":"28.0","opera":"100","opera-android":"76","opera_mobile":"76","quest":"28.0","samsung":"23.0"},"esnext.async-disposable-stack.constructor":{},"esnext.async-iterator.constructor":{},"esnext.async-iterator.as-indexed-pairs":{},"esnext.async-iterator.async-dispose":{},"esnext.async-iterator.drop":{},"esnext.async-iterator.every":{},"esnext.async-iterator.filter":{},"esnext.async-iterator.find":{},"esnext.async-iterator.flat-map":{},"esnext.async-iterator.for-each":{},"esnext.async-iterator.from":{},"esnext.async-iterator.indexed":{},"esnext.async-iterator.map":{},"esnext.async-iterator.reduce":{},"esnext.async-iterator.some":{},"esnext.async-iterator.take":{},"esnext.async-iterator.to-array":{},"esnext.bigint.range":{},"esnext.composite-key":{},"esnext.composite-symbol":{},"esnext.data-view.get-float16":{},"esnext.data-view.get-uint8-clamped":{},"esnext.data-view.set-float16":{},"esnext.data-view.set-uint8-clamped":{},"esnext.disposable-stack.constructor":{},"esnext.function.demethodize":{},"esnext.function.is-callable":{},"esnext.function.is-constructor":{},"esnext.function.metadata":{},"esnext.function.un-this":{},"esnext.global-this":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"65","firefox-android":"65","hermes":"0.2","ios":"12.2","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","react-native":"0.69","rhino":"1.7.14","safari":"12.1","samsung":"10.0"},"esnext.iterator.constructor":{},"esnext.iterator.as-indexed-pairs":{},"esnext.iterator.dispose":{},"esnext.iterator.drop":{},"esnext.iterator.every":{},"esnext.iterator.filter":{},"esnext.iterator.find":{},"esnext.iterator.flat-map":{},"esnext.iterator.for-each":{},"esnext.iterator.from":{},"esnext.iterator.indexed":{},"esnext.iterator.map":{},"esnext.iterator.range":{},"esnext.iterator.reduce":{},"esnext.iterator.some":{},"esnext.iterator.take":{},"esnext.iterator.to-array":{},"esnext.iterator.to-async":{},"esnext.json.is-raw-json":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","node":"21.0","oculus":"28.0","opera":"100","opera-android":"76","opera_mobile":"76","quest":"28.0","samsung":"23.0"},"esnext.json.parse":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","node":"21.0","oculus":"28.0","opera":"100","opera-android":"76","opera_mobile":"76","quest":"28.0","samsung":"23.0"},"esnext.json.raw-json":{"android":"114","chrome":"114","chrome-android":"114","deno":"1.33","edge":"114","electron":"25.0","node":"21.0","oculus":"28.0","opera":"100","opera-android":"76","opera_mobile":"76","quest":"28.0","samsung":"23.0"},"esnext.map.delete-all":{},"esnext.map.emplace":{},"esnext.map.every":{},"esnext.map.filter":{},"esnext.map.find":{},"esnext.map.find-key":{},"esnext.map.from":{},"esnext.map.group-by":{"android":"117","chrome":"117","chrome-android":"117","deno":"1.37","edge":"117","electron":"27.0","firefox":"119","firefox-android":"119","node":"21.0","oculus":"30.0","opera":"103","opera-android":"78","opera_mobile":"78","quest":"30.0"},"esnext.map.includes":{},"esnext.map.key-by":{},"esnext.map.key-of":{},"esnext.map.map-keys":{},"esnext.map.map-values":{},"esnext.map.merge":{},"esnext.map.of":{},"esnext.map.reduce":{},"esnext.map.some":{},"esnext.map.update":{},"esnext.map.update-or-insert":{},"esnext.map.upsert":{},"esnext.math.clamp":{},"esnext.math.deg-per-rad":{},"esnext.math.degrees":{},"esnext.math.fscale":{},"esnext.math.f16round":{},"esnext.math.iaddh":{},"esnext.math.imulh":{},"esnext.math.isubh":{},"esnext.math.rad-per-deg":{},"esnext.math.radians":{},"esnext.math.scale":{},"esnext.math.seeded-prng":{},"esnext.math.signbit":{},"esnext.math.umulh":{},"esnext.number.from-string":{},"esnext.number.range":{},"esnext.object.has-own":{"android":"93","bun":"0.1.1","chrome":"93","chrome-android":"93","deno":"1.13","edge":"93","electron":"14.0","firefox":"92","firefox-android":"92","hermes":"0.10","ios":"15.4","node":"16.9","oculus":"17.0","opera":"79","opera-android":"66","opera_mobile":"66","quest":"17.0","react-native":"0.69","safari":"15.4","samsung":"17.0"},"esnext.object.iterate-entries":{},"esnext.object.iterate-keys":{},"esnext.object.iterate-values":{},"esnext.object.group-by":{"android":"117","chrome":"117","chrome-android":"117","deno":"1.37","edge":"117","electron":"27.0","firefox":"119","firefox-android":"119","node":"21.0","oculus":"30.0","opera":"103","opera-android":"78","opera_mobile":"78","quest":"30.0"},"esnext.observable":{},"esnext.promise.all-settled":{"android":"76","bun":"0.1.1","chrome":"76","chrome-android":"76","deno":"1.24","edge":"79","electron":"6.0","firefox":"71","firefox-android":"71","ios":"13.0","node":"12.9","oculus":"7.0","opera":"63","opera-android":"54","opera_mobile":"54","quest":"7.0","safari":"13","samsung":"12.0"},"esnext.promise.any":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.24","edge":"85","electron":"10.0","firefox":"79","firefox-android":"79","ios":"14.0","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","safari":"14.0","samsung":"14.0"},"esnext.promise.try":{},"esnext.promise.with-resolvers":{"android":"119","bun":"0.7.1","chrome":"119","chrome-android":"119","deno":"1.38","edge":"119","electron":"28.0","firefox":"121","firefox-android":"121","opera":"105"},"esnext.reflect.define-metadata":{},"esnext.reflect.delete-metadata":{},"esnext.reflect.get-metadata":{},"esnext.reflect.get-metadata-keys":{},"esnext.reflect.get-own-metadata":{},"esnext.reflect.get-own-metadata-keys":{},"esnext.reflect.has-metadata":{},"esnext.reflect.has-own-metadata":{},"esnext.reflect.metadata":{},"esnext.regexp.escape":{},"esnext.set.add-all":{},"esnext.set.delete-all":{},"esnext.set.difference.v2":{},"esnext.set.difference":{},"esnext.set.every":{},"esnext.set.filter":{},"esnext.set.find":{},"esnext.set.from":{},"esnext.set.intersection.v2":{},"esnext.set.intersection":{},"esnext.set.is-disjoint-from.v2":{},"esnext.set.is-disjoint-from":{},"esnext.set.is-subset-of.v2":{},"esnext.set.is-subset-of":{},"esnext.set.is-superset-of.v2":{},"esnext.set.is-superset-of":{},"esnext.set.join":{},"esnext.set.map":{},"esnext.set.of":{},"esnext.set.reduce":{},"esnext.set.some":{},"esnext.set.symmetric-difference.v2":{},"esnext.set.symmetric-difference":{},"esnext.set.union.v2":{},"esnext.set.union":{},"esnext.string.at":{},"esnext.string.cooked":{},"esnext.string.code-points":{},"esnext.string.dedent":{},"esnext.string.is-well-formed":{"android":"111","bun":"0.4.0","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","firefox":"119","firefox-android":"119","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"esnext.string.match-all":{"android":"80","bun":"0.1.1","chrome":"80","chrome-android":"80","deno":"1.0","edge":"80","electron":"8.0","firefox":"73","firefox-android":"73","hermes":"0.6","ios":"13.4","node":"14.0","oculus":"9.0","opera":"67","opera-android":"57","opera_mobile":"57","quest":"9.0","react-native":"0.69","safari":"13.1","samsung":"13.0"},"esnext.string.replace-all":{"android":"85","bun":"0.1.1","chrome":"85","chrome-android":"85","deno":"1.2","edge":"85","electron":"10.0","firefox":"77","firefox-android":"77","hermes":"0.7","ios":"13.4","node":"15.0","oculus":"12.0","opera":"71","opera-android":"60","opera_mobile":"60","quest":"12.0","react-native":"0.69","safari":"13.1","samsung":"14.0"},"esnext.string.to-well-formed":{"android":"111","bun":"0.5.7","chrome":"111","chrome-android":"111","deno":"1.32","edge":"111","electron":"24.0","firefox":"119","firefox-android":"119","ios":"16.4","node":"20.0","oculus":"27.0","opera":"97","opera-android":"75","opera_mobile":"75","quest":"27.0","safari":"16.4","samsung":"22.0"},"esnext.symbol.async-dispose":{"deno":"1.38","node":"20.5.0"},"esnext.symbol.dispose":{"deno":"1.38","node":"20.5.0"},"esnext.symbol.is-registered-symbol":{},"esnext.symbol.is-registered":{},"esnext.symbol.is-well-known-symbol":{},"esnext.symbol.is-well-known":{},"esnext.symbol.matcher":{},"esnext.symbol.metadata":{},"esnext.symbol.metadata-key":{},"esnext.symbol.observable":{},"esnext.symbol.pattern-match":{},"esnext.symbol.replace-all":{},"esnext.typed-array.from-async":{},"esnext.typed-array.at":{"android":"92","bun":"0.1.1","chrome":"92","chrome-android":"92","deno":"1.12","edge":"92","electron":"14.0","firefox":"90","firefox-android":"90","ios":"15.4","node":"16.6","oculus":"17.0","opera":"78","opera-android":"65","opera_mobile":"65","quest":"17.0","react-native":"0.71","safari":"15.4","samsung":"16.0"},"esnext.typed-array.filter-out":{},"esnext.typed-array.filter-reject":{},"esnext.typed-array.find-last":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.typed-array.find-last-index":{"android":"97","bun":"0.1.1","chrome":"97","chrome-android":"97","deno":"1.16","edge":"97","electron":"17.0","firefox":"104","firefox-android":"104","hermes":"0.11","ios":"15.4","node":"18.0","oculus":"20.0","opera":"83","opera-android":"68","opera_mobile":"68","quest":"20.0","react-native":"0.69","safari":"15.4","samsung":"18.0"},"esnext.typed-array.group-by":{},"esnext.typed-array.to-reversed":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.typed-array.to-sorted":{"android":"110","bun":"0.1.1","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.0","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.0","samsung":"21.0"},"esnext.typed-array.to-spliced":{},"esnext.typed-array.unique-by":{},"esnext.typed-array.with":{"android":"110","bun":"0.1.9","chrome":"110","chrome-android":"110","deno":"1.27","edge":"110","electron":"23.0","firefox":"115","firefox-android":"115","ios":"16.4","node":"20.0","oculus":"26.0","opera":"96","opera-android":"74","opera_mobile":"74","quest":"26.0","safari":"16.4","samsung":"21.0"},"esnext.uint8-array.from-base64":{},"esnext.uint8-array.from-hex":{},"esnext.uint8-array.to-base64":{},"esnext.uint8-array.to-hex":{},"esnext.weak-map.delete-all":{},"esnext.weak-map.from":{},"esnext.weak-map.of":{},"esnext.weak-map.emplace":{},"esnext.weak-map.upsert":{},"esnext.weak-set.add-all":{},"esnext.weak-set.delete-all":{},"esnext.weak-set.from":{},"esnext.weak-set.of":{},"web.atob":{"android":"37","bun":"0.1.1","chrome":"34","chrome-android":"34","deno":"1.0","edge":"16","electron":"0.20","firefox":"27","firefox-android":"27","ios":"10.3","node":"18.0","oculus":"3.0","opera":"10.5","opera-android":"10.5","opera_mobile":"10.5","quest":"3.0","safari":"10.1","samsung":"2.0"},"web.btoa":{"android":"3.0","bun":"0.1.1","chrome":"4","chrome-android":"18","deno":"1.0","edge":"16","electron":"0.20","firefox":"27","firefox-android":"27","ios":"1.0","node":"17.5","oculus":"3.0","opera":"10.5","opera-android":"10.5","opera_mobile":"10.5","phantom":"1.9","quest":"3.0","safari":"3.0","samsung":"1.0"},"web.dom-collections.for-each":{"android":"58","bun":"0.1.1","chrome":"58","chrome-android":"58","deno":"1.0","edge":"16","electron":"1.7","firefox":"50","firefox-android":"50","hermes":"0.1","ios":"10.0","node":"0.0.1","oculus":"4.0","opera":"45","opera-android":"43","opera_mobile":"43","quest":"4.0","react-native":"0.69","rhino":"1.7.13","safari":"10.0","samsung":"7.0"},"web.dom-collections.iterator":{"android":"66","bun":"0.1.1","chrome":"66","chrome-android":"66","deno":"1.0","edge":"79","electron":"3.0","firefox":"60","firefox-android":"60","hermes":"0.1","ios":"13.4","node":"0.0.1","oculus":"5.0","opera":"53","opera-android":"47","opera_mobile":"47","quest":"5.0","react-native":"0.69","rhino":"1.7.13","safari":"13.1","samsung":"9.0"},"web.dom-exception.constructor":{"android":"46","bun":"0.1.1","chrome":"46","chrome-android":"46","deno":"1.7","edge":"79","electron":"0.36","firefox":"37","firefox-android":"37","ios":"11.3","node":"17.0","oculus":"3.0","opera":"33","opera-android":"33","opera_mobile":"33","quest":"3.0","safari":"11.1","samsung":"5.0"},"web.dom-exception.stack":{"deno":"1.15","firefox":"37","firefox-android":"37","node":"17.0"},"web.dom-exception.to-string-tag":{"android":"49","bun":"0.1.1","chrome":"49","chrome-android":"49","deno":"1.7","edge":"79","electron":"0.37","firefox":"51","firefox-android":"51","ios":"11.3","node":"17.0","oculus":"3.0","opera":"36","opera-android":"36","opera_mobile":"36","quest":"3.0","safari":"11.1","samsung":"5.0"},"web.immediate":{"bun":"0.4.0","ie":"10","node":"0.9.1"},"web.queue-microtask":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"69","firefox-android":"69","ios":"12.2","node":"12.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","safari":"12.1","samsung":"10.0"},"web.self":{"android":"86","chrome":"86","chrome-android":"86","deno":"1.29.3","edge":"86","electron":"11.0","firefox":"31","firefox-android":"31","ios":"10.0","oculus":"12.0","opera":"72","opera-android":"61","opera_mobile":"61","quest":"12.0","safari":"10","samsung":"14.0"},"web.structured-clone":{},"web.timers":{"android":"1.5","bun":"0.4.0","chrome":"1","chrome-android":"18","deno":"1.0","edge":"12","electron":"0.20","firefox":"1","firefox-android":"4","hermes":"0.1","ie":"10","ios":"1.0","node":"0.0.1","oculus":"3.0","opera":"7","opera-android":"7","opera_mobile":"7","phantom":"1.9","quest":"3.0","react-native":"0.69","rhino":"1.7.13","safari":"1.0","samsung":"1.0"},"web.url":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.0","edge":"79","electron":"4.0","firefox":"57","firefox-android":"57","ios":"14.0","node":"10.0","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","safari":"14.0","samsung":"9.0"},"web.url.can-parse":{"android":"120","bun":"1.0.2","chrome":"120","chrome-android":"120","deno":"1.33.2","edge":"120","electron":"28.0","firefox":"115","firefox-android":"115","ios":"17.0","node":"20.1.0","opera":"106","safari":"17.0"},"web.url.to-json":{"android":"71","bun":"0.1.1","chrome":"71","chrome-android":"71","deno":"1.0","edge":"79","electron":"5.0","firefox":"57","firefox-android":"57","ios":"14.0","node":"10.0","oculus":"6.0","opera":"58","opera-android":"50","opera_mobile":"50","quest":"6.0","safari":"14.0","samsung":"10.0"},"web.url-search-params":{"android":"67","bun":"0.1.1","chrome":"67","chrome-android":"67","deno":"1.0","edge":"79","electron":"4.0","firefox":"57","firefox-android":"57","ios":"14.0","node":"10.0","oculus":"6.0","opera":"54","opera-android":"48","opera_mobile":"48","quest":"6.0","safari":"14.0","samsung":"9.0"},"web.url-search-params.delete":{"android":"118","chrome":"118","chrome-android":"118","deno":"1.35","edge":"118","electron":"27.0","firefox":"115","firefox-android":"115","ios":"17.0","node":"20.2.0","oculus":"30.0","opera":"104","opera-android":"79","opera_mobile":"79","quest":"30.0","safari":"17.0"},"web.url-search-params.has":{"android":"118","chrome":"118","chrome-android":"118","deno":"1.35","edge":"118","electron":"27.0","firefox":"115","firefox-android":"115","ios":"17.0","node":"20.2.0","oculus":"30.0","opera":"104","opera-android":"79","opera_mobile":"79","quest":"30.0","safari":"17.0"},"web.url-search-params.size":{"android":"113","bun":"1.0.2","chrome":"113","chrome-android":"113","deno":"1.32","edge":"113","electron":"25.0","firefox":"112","firefox-android":"112","ios":"17.0","node":"19.8.0","oculus":"28.0","opera":"99","opera-android":"76","opera_mobile":"76","quest":"28.0","safari":"17.0","samsung":"23.0"}}'); /***/ }), -/***/ 61274: +/***/ 22604: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"core-js":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.object.has-own","esnext.promise.all-settled","esnext.promise.any","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.dispose","esnext.symbol.metadata","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual/aggregate-error":["es.error.cause","es.aggregate-error","es.aggregate-error.cause","es.array.iterator","es.string.iterator","esnext.aggregate-error","web.dom-collections.iterator"],"core-js/actual/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with"],"core-js/actual/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/actual/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/actual/array-buffer/detached":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached"],"core-js/actual/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/actual/array-buffer/slice":["es.array-buffer.slice"],"core-js/actual/array-buffer/transfer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer"],"core-js/actual/array-buffer/transfer-to-fixed-length":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer-to-fixed-length"],"core-js/actual/array/at":["es.array.at"],"core-js/actual/array/concat":["es.array.concat"],"core-js/actual/array/copy-within":["es.array.copy-within"],"core-js/actual/array/entries":["es.array.iterator","es.object.to-string"],"core-js/actual/array/every":["es.array.every"],"core-js/actual/array/fill":["es.array.fill"],"core-js/actual/array/filter":["es.array.filter"],"core-js/actual/array/find":["es.array.find"],"core-js/actual/array/find-index":["es.array.find-index"],"core-js/actual/array/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/actual/array/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/actual/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/actual/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/actual/array/for-each":["es.array.for-each"],"core-js/actual/array/from":["es.array.from","es.string.iterator"],"core-js/actual/array/from-async":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async"],"core-js/actual/array/group":["esnext.array.group"],"core-js/actual/array/group-by":["esnext.array.group-by"],"core-js/actual/array/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/actual/array/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/actual/array/includes":["es.array.includes"],"core-js/actual/array/index-of":["es.array.index-of"],"core-js/actual/array/is-array":["es.array.is-array"],"core-js/actual/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/actual/array/join":["es.array.join"],"core-js/actual/array/keys":["es.array.iterator","es.object.to-string"],"core-js/actual/array/last-index-of":["es.array.last-index-of"],"core-js/actual/array/map":["es.array.map"],"core-js/actual/array/of":["es.array.of"],"core-js/actual/array/push":["es.array.push"],"core-js/actual/array/reduce":["es.array.reduce"],"core-js/actual/array/reduce-right":["es.array.reduce-right"],"core-js/actual/array/reverse":["es.array.reverse"],"core-js/actual/array/slice":["es.array.slice"],"core-js/actual/array/some":["es.array.some"],"core-js/actual/array/sort":["es.array.sort"],"core-js/actual/array/splice":["es.array.splice"],"core-js/actual/array/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/actual/array/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/actual/array/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/actual/array/unshift":["es.array.unshift"],"core-js/actual/array/values":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with"],"core-js/actual/array/virtual/at":["es.array.at"],"core-js/actual/array/virtual/concat":["es.array.concat"],"core-js/actual/array/virtual/copy-within":["es.array.copy-within"],"core-js/actual/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/every":["es.array.every"],"core-js/actual/array/virtual/fill":["es.array.fill"],"core-js/actual/array/virtual/filter":["es.array.filter"],"core-js/actual/array/virtual/find":["es.array.find"],"core-js/actual/array/virtual/find-index":["es.array.find-index"],"core-js/actual/array/virtual/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/actual/array/virtual/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/actual/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/actual/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/actual/array/virtual/for-each":["es.array.for-each"],"core-js/actual/array/virtual/group":["esnext.array.group"],"core-js/actual/array/virtual/group-by":["esnext.array.group-by"],"core-js/actual/array/virtual/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/actual/array/virtual/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/actual/array/virtual/includes":["es.array.includes"],"core-js/actual/array/virtual/index-of":["es.array.index-of"],"core-js/actual/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/join":["es.array.join"],"core-js/actual/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/actual/array/virtual/map":["es.array.map"],"core-js/actual/array/virtual/push":["es.array.push"],"core-js/actual/array/virtual/reduce":["es.array.reduce"],"core-js/actual/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/actual/array/virtual/reverse":["es.array.reverse"],"core-js/actual/array/virtual/slice":["es.array.slice"],"core-js/actual/array/virtual/some":["es.array.some"],"core-js/actual/array/virtual/sort":["es.array.sort"],"core-js/actual/array/virtual/splice":["es.array.splice"],"core-js/actual/array/virtual/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/actual/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/actual/array/virtual/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/actual/array/virtual/unshift":["es.array.unshift"],"core-js/actual/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/with":["es.array.with","esnext.array.with"],"core-js/actual/array/with":["es.array.with","esnext.array.with"],"core-js/actual/async-iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/actual/async-iterator/drop":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.drop"],"core-js/actual/async-iterator/every":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.every"],"core-js/actual/async-iterator/filter":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.filter"],"core-js/actual/async-iterator/find":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.find"],"core-js/actual/async-iterator/flat-map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.flat-map"],"core-js/actual/async-iterator/for-each":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.for-each"],"core-js/actual/async-iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/actual/async-iterator/map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.map"],"core-js/actual/async-iterator/reduce":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.reduce"],"core-js/actual/async-iterator/some":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.some"],"core-js/actual/async-iterator/take":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.take"],"core-js/actual/async-iterator/to-array":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.to-array"],"core-js/actual/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/actual/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/actual/clear-immediate":["web.immediate"],"core-js/actual/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string"],"core-js/actual/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/actual/date/get-year":["es.date.get-year"],"core-js/actual/date/now":["es.date.now"],"core-js/actual/date/set-year":["es.date.set-year"],"core-js/actual/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/actual/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/actual/date/to-json":["es.date.to-json"],"core-js/actual/date/to-primitive":["es.date.to-primitive"],"core-js/actual/date/to-string":["es.date.to-string"],"core-js/actual/disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/actual/disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/actual/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/actual/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/actual/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/actual/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/actual/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/actual/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/actual/error":["es.error.cause","es.error.to-string"],"core-js/actual/error/constructor":["es.error.cause"],"core-js/actual/error/to-string":["es.error.to-string"],"core-js/actual/escape":["es.escape"],"core-js/actual/function":["es.function.bind","es.function.has-instance","es.function.name","esnext.function.metadata"],"core-js/actual/function/bind":["es.function.bind"],"core-js/actual/function/has-instance":["es.function.has-instance"],"core-js/actual/function/metadata":["esnext.function.metadata"],"core-js/actual/function/name":["es.function.name"],"core-js/actual/function/virtual":["es.function.bind"],"core-js/actual/function/virtual/bind":["es.function.bind"],"core-js/actual/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/global-this":["es.global-this"],"core-js/actual/instance/at":["es.array.at","es.string.at-alternative"],"core-js/actual/instance/bind":["es.function.bind"],"core-js/actual/instance/code-point-at":["es.string.code-point-at"],"core-js/actual/instance/concat":["es.array.concat"],"core-js/actual/instance/copy-within":["es.array.copy-within"],"core-js/actual/instance/ends-with":["es.string.ends-with"],"core-js/actual/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/actual/instance/every":["es.array.every"],"core-js/actual/instance/fill":["es.array.fill"],"core-js/actual/instance/filter":["es.array.filter"],"core-js/actual/instance/find":["es.array.find"],"core-js/actual/instance/find-index":["es.array.find-index"],"core-js/actual/instance/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/actual/instance/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/actual/instance/flags":["es.regexp.flags"],"core-js/actual/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/actual/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/actual/instance/for-each":["es.array.for-each","web.dom-collections.iterator"],"core-js/actual/instance/group":["esnext.array.group"],"core-js/actual/instance/group-by":["esnext.array.group-by"],"core-js/actual/instance/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/actual/instance/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/actual/instance/includes":["es.array.includes","es.string.includes"],"core-js/actual/instance/index-of":["es.array.index-of"],"core-js/actual/instance/is-well-formed":["es.string.is-well-formed"],"core-js/actual/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/actual/instance/last-index-of":["es.array.last-index-of"],"core-js/actual/instance/map":["es.array.map"],"core-js/actual/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/instance/pad-end":["es.string.pad-end"],"core-js/actual/instance/pad-start":["es.string.pad-start"],"core-js/actual/instance/push":["es.array.push"],"core-js/actual/instance/reduce":["es.array.reduce"],"core-js/actual/instance/reduce-right":["es.array.reduce-right"],"core-js/actual/instance/repeat":["es.string.repeat"],"core-js/actual/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/actual/instance/reverse":["es.array.reverse"],"core-js/actual/instance/slice":["es.array.slice"],"core-js/actual/instance/some":["es.array.some"],"core-js/actual/instance/sort":["es.array.sort"],"core-js/actual/instance/splice":["es.array.splice"],"core-js/actual/instance/starts-with":["es.string.starts-with"],"core-js/actual/instance/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/actual/instance/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/actual/instance/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/actual/instance/to-well-formed":["es.string.to-well-formed"],"core-js/actual/instance/trim":["es.string.trim"],"core-js/actual/instance/trim-end":["es.string.trim-end"],"core-js/actual/instance/trim-left":["es.string.trim-start"],"core-js/actual/instance/trim-right":["es.string.trim-end"],"core-js/actual/instance/trim-start":["es.string.trim-start"],"core-js/actual/instance/unshift":["es.array.unshift"],"core-js/actual/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/actual/instance/with":["es.array.with","esnext.array.with"],"core-js/actual/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/actual/iterator/dispose":["esnext.iterator.dispose"],"core-js/actual/iterator/drop":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.drop"],"core-js/actual/iterator/every":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.every"],"core-js/actual/iterator/filter":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.filter"],"core-js/actual/iterator/find":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.find"],"core-js/actual/iterator/flat-map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.flat-map"],"core-js/actual/iterator/for-each":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.for-each"],"core-js/actual/iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/actual/iterator/map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.map"],"core-js/actual/iterator/reduce":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.reduce"],"core-js/actual/iterator/some":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.some"],"core-js/actual/iterator/take":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.take"],"core-js/actual/iterator/to-array":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.to-array"],"core-js/actual/iterator/to-async":["es.object.to-string","es.promise","esnext.iterator.constructor","esnext.iterator.to-async"],"core-js/actual/json":["es.json.stringify","es.json.to-string-tag","es.object.create","es.object.freeze","es.object.keys","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/actual/json/is-raw-json":["esnext.json.is-raw-json"],"core-js/actual/json/parse":["es.object.keys","esnext.json.parse"],"core-js/actual/json/raw-json":["es.object.create","es.object.freeze","esnext.json.raw-json"],"core-js/actual/json/stringify":["es.json.stringify"],"core-js/actual/json/to-string-tag":["es.json.to-string-tag"],"core-js/actual/map":["es.array.iterator","es.map","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc"],"core-js/actual/math/acosh":["es.math.acosh"],"core-js/actual/math/asinh":["es.math.asinh"],"core-js/actual/math/atanh":["es.math.atanh"],"core-js/actual/math/cbrt":["es.math.cbrt"],"core-js/actual/math/clz32":["es.math.clz32"],"core-js/actual/math/cosh":["es.math.cosh"],"core-js/actual/math/expm1":["es.math.expm1"],"core-js/actual/math/fround":["es.math.fround"],"core-js/actual/math/hypot":["es.math.hypot"],"core-js/actual/math/imul":["es.math.imul"],"core-js/actual/math/log10":["es.math.log10"],"core-js/actual/math/log1p":["es.math.log1p"],"core-js/actual/math/log2":["es.math.log2"],"core-js/actual/math/sign":["es.math.sign"],"core-js/actual/math/sinh":["es.math.sinh"],"core-js/actual/math/tanh":["es.math.tanh"],"core-js/actual/math/to-string-tag":["es.math.to-string-tag"],"core-js/actual/math/trunc":["es.math.trunc"],"core-js/actual/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/actual/number/constructor":["es.number.constructor"],"core-js/actual/number/epsilon":["es.number.epsilon"],"core-js/actual/number/is-finite":["es.number.is-finite"],"core-js/actual/number/is-integer":["es.number.is-integer"],"core-js/actual/number/is-nan":["es.number.is-nan"],"core-js/actual/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/actual/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/actual/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/actual/number/parse-float":["es.number.parse-float"],"core-js/actual/number/parse-int":["es.number.parse-int"],"core-js/actual/number/to-exponential":["es.number.to-exponential"],"core-js/actual/number/to-fixed":["es.number.to-fixed"],"core-js/actual/number/to-precision":["es.number.to-precision"],"core-js/actual/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/actual/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/actual/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/actual/number/virtual/to-precision":["es.number.to-precision"],"core-js/actual/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","web.dom-collections.iterator"],"core-js/actual/object/assign":["es.object.assign"],"core-js/actual/object/create":["es.object.create"],"core-js/actual/object/define-getter":["es.object.define-getter"],"core-js/actual/object/define-properties":["es.object.define-properties"],"core-js/actual/object/define-property":["es.object.define-property"],"core-js/actual/object/define-setter":["es.object.define-setter"],"core-js/actual/object/entries":["es.object.entries"],"core-js/actual/object/freeze":["es.object.freeze"],"core-js/actual/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/actual/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/actual/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/actual/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/actual/object/get-own-property-symbols":["es.symbol"],"core-js/actual/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/actual/object/has-own":["es.object.has-own"],"core-js/actual/object/is":["es.object.is"],"core-js/actual/object/is-extensible":["es.object.is-extensible"],"core-js/actual/object/is-frozen":["es.object.is-frozen"],"core-js/actual/object/is-sealed":["es.object.is-sealed"],"core-js/actual/object/keys":["es.object.keys"],"core-js/actual/object/lookup-getter":["es.object.lookup-getter"],"core-js/actual/object/lookup-setter":["es.object.lookup-setter"],"core-js/actual/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/actual/object/proto":["es.object.proto"],"core-js/actual/object/seal":["es.object.seal"],"core-js/actual/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/actual/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/actual/object/values":["es.object.values"],"core-js/actual/parse-float":["es.parse-float"],"core-js/actual/parse-int":["es.parse-int"],"core-js/actual/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/actual/queue-microtask":["web.queue-microtask"],"core-js/actual/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/actual/reflect/apply":["es.reflect.apply"],"core-js/actual/reflect/construct":["es.reflect.construct"],"core-js/actual/reflect/define-property":["es.reflect.define-property"],"core-js/actual/reflect/delete-property":["es.reflect.delete-property"],"core-js/actual/reflect/get":["es.reflect.get"],"core-js/actual/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/actual/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/actual/reflect/has":["es.reflect.has"],"core-js/actual/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/actual/reflect/own-keys":["es.reflect.own-keys"],"core-js/actual/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/actual/reflect/set":["es.reflect.set"],"core-js/actual/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/actual/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/actual/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/actual/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/actual/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/actual/regexp/flags":["es.regexp.flags"],"core-js/actual/regexp/match":["es.regexp.exec","es.string.match"],"core-js/actual/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/actual/regexp/search":["es.regexp.exec","es.string.search"],"core-js/actual/regexp/split":["es.regexp.exec","es.string.split"],"core-js/actual/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/actual/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/actual/regexp/to-string":["es.regexp.to-string"],"core-js/actual/self":["web.self"],"core-js/actual/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","web.dom-collections.iterator"],"core-js/actual/set-immediate":["web.immediate"],"core-js/actual/set-interval":["web.timers"],"core-js/actual/set-timeout":["web.timers"],"core-js/actual/set/difference":["es.set","esnext.set.difference.v2"],"core-js/actual/set/intersection":["es.set","esnext.set.intersection.v2"],"core-js/actual/set/is-disjoint-from":["es.set","esnext.set.is-disjoint-from.v2"],"core-js/actual/set/is-subset-of":["es.set","esnext.set.is-subset-of.v2"],"core-js/actual/set/is-superset-of":["es.set","esnext.set.is-superset-of.v2"],"core-js/actual/set/symmetric-difference":["es.set","esnext.set.symmetric-difference.v2"],"core-js/actual/set/union":["es.set","esnext.set.union.v2"],"core-js/actual/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.is-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/anchor":["es.string.anchor"],"core-js/actual/string/at":["es.string.at-alternative"],"core-js/actual/string/big":["es.string.big"],"core-js/actual/string/blink":["es.string.blink"],"core-js/actual/string/bold":["es.string.bold"],"core-js/actual/string/code-point-at":["es.string.code-point-at"],"core-js/actual/string/ends-with":["es.string.ends-with"],"core-js/actual/string/fixed":["es.string.fixed"],"core-js/actual/string/fontcolor":["es.string.fontcolor"],"core-js/actual/string/fontsize":["es.string.fontsize"],"core-js/actual/string/from-code-point":["es.string.from-code-point"],"core-js/actual/string/includes":["es.string.includes"],"core-js/actual/string/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/actual/string/italics":["es.string.italics"],"core-js/actual/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/actual/string/link":["es.string.link"],"core-js/actual/string/match":["es.regexp.exec","es.string.match"],"core-js/actual/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/string/pad-end":["es.string.pad-end"],"core-js/actual/string/pad-start":["es.string.pad-start"],"core-js/actual/string/raw":["es.string.raw"],"core-js/actual/string/repeat":["es.string.repeat"],"core-js/actual/string/replace":["es.regexp.exec","es.string.replace"],"core-js/actual/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/actual/string/search":["es.regexp.exec","es.string.search"],"core-js/actual/string/small":["es.string.small"],"core-js/actual/string/split":["es.regexp.exec","es.string.split"],"core-js/actual/string/starts-with":["es.string.starts-with"],"core-js/actual/string/strike":["es.string.strike"],"core-js/actual/string/sub":["es.string.sub"],"core-js/actual/string/substr":["es.string.substr"],"core-js/actual/string/sup":["es.string.sup"],"core-js/actual/string/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/trim":["es.string.trim"],"core-js/actual/string/trim-end":["es.string.trim-end"],"core-js/actual/string/trim-left":["es.string.trim-start"],"core-js/actual/string/trim-right":["es.string.trim-end"],"core-js/actual/string/trim-start":["es.string.trim-start"],"core-js/actual/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.is-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/virtual/anchor":["es.string.anchor"],"core-js/actual/string/virtual/at":["es.string.at-alternative"],"core-js/actual/string/virtual/big":["es.string.big"],"core-js/actual/string/virtual/blink":["es.string.blink"],"core-js/actual/string/virtual/bold":["es.string.bold"],"core-js/actual/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/actual/string/virtual/ends-with":["es.string.ends-with"],"core-js/actual/string/virtual/fixed":["es.string.fixed"],"core-js/actual/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/actual/string/virtual/fontsize":["es.string.fontsize"],"core-js/actual/string/virtual/includes":["es.string.includes"],"core-js/actual/string/virtual/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/actual/string/virtual/italics":["es.string.italics"],"core-js/actual/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/actual/string/virtual/link":["es.string.link"],"core-js/actual/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/string/virtual/pad-end":["es.string.pad-end"],"core-js/actual/string/virtual/pad-start":["es.string.pad-start"],"core-js/actual/string/virtual/repeat":["es.string.repeat"],"core-js/actual/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/actual/string/virtual/small":["es.string.small"],"core-js/actual/string/virtual/starts-with":["es.string.starts-with"],"core-js/actual/string/virtual/strike":["es.string.strike"],"core-js/actual/string/virtual/sub":["es.string.sub"],"core-js/actual/string/virtual/substr":["es.string.substr"],"core-js/actual/string/virtual/sup":["es.string.sup"],"core-js/actual/string/virtual/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/virtual/trim":["es.string.trim"],"core-js/actual/string/virtual/trim-end":["es.string.trim-end"],"core-js/actual/string/virtual/trim-left":["es.string.trim-start"],"core-js/actual/string/virtual/trim-right":["es.string.trim-end"],"core-js/actual/string/virtual/trim-start":["es.string.trim-start"],"core-js/actual/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/actual/suppressed-error":["es.error.cause","es.error.to-string","esnext.suppressed-error.constructor"],"core-js/actual/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","esnext.function.metadata","esnext.symbol.dispose","esnext.symbol.metadata","web.dom-collections.iterator"],"core-js/actual/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/actual/symbol/description":["es.symbol.description"],"core-js/actual/symbol/dispose":["esnext.symbol.dispose"],"core-js/actual/symbol/for":["es.symbol"],"core-js/actual/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/actual/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/actual/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/symbol/key-for":["es.symbol"],"core-js/actual/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/actual/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/symbol/metadata":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/actual/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/actual/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/actual/symbol/species":["es.symbol.species"],"core-js/actual/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/actual/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/actual/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/actual/symbol/unscopables":["es.symbol.unscopables"],"core-js/actual/typed-array":["es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/at":["es.typed-array.at"],"core-js/actual/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/actual/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/every":["es.typed-array.every"],"core-js/actual/typed-array/fill":["es.typed-array.fill"],"core-js/actual/typed-array/filter":["es.typed-array.filter"],"core-js/actual/typed-array/find":["es.typed-array.find"],"core-js/actual/typed-array/find-index":["es.typed-array.find-index"],"core-js/actual/typed-array/find-last":["es.typed-array.find-last","esnext.typed-array.find-last"],"core-js/actual/typed-array/find-last-index":["es.typed-array.find-last-index","esnext.typed-array.find-last-index"],"core-js/actual/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/for-each":["es.typed-array.for-each"],"core-js/actual/typed-array/from":["es.typed-array.from"],"core-js/actual/typed-array/includes":["es.typed-array.includes"],"core-js/actual/typed-array/index-of":["es.typed-array.index-of"],"core-js/actual/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/join":["es.typed-array.join"],"core-js/actual/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/actual/typed-array/map":["es.typed-array.map"],"core-js/actual/typed-array/methods":["es.object.to-string","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/of":["es.typed-array.of"],"core-js/actual/typed-array/reduce":["es.typed-array.reduce"],"core-js/actual/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/actual/typed-array/reverse":["es.typed-array.reverse"],"core-js/actual/typed-array/set":["es.typed-array.set"],"core-js/actual/typed-array/slice":["es.typed-array.slice"],"core-js/actual/typed-array/some":["es.typed-array.some"],"core-js/actual/typed-array/sort":["es.typed-array.sort"],"core-js/actual/typed-array/subarray":["es.typed-array.subarray"],"core-js/actual/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/actual/typed-array/to-reversed":["es.typed-array.to-reversed","esnext.typed-array.to-reversed"],"core-js/actual/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted","esnext.typed-array.to-sorted"],"core-js/actual/typed-array/to-spliced":["esnext.typed-array.to-spliced"],"core-js/actual/typed-array/to-string":["es.typed-array.to-string"],"core-js/actual/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/with":["es.typed-array.with","esnext.typed-array.with"],"core-js/actual/unescape":["es.unescape"],"core-js/actual/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual/url/can-parse":["web.url","web.url.can-parse"],"core-js/actual/url/to-json":["web.url.to-json"],"core-js/actual/weak-map":["es.array.iterator","es.object.to-string","es.weak-map","web.dom-collections.iterator"],"core-js/actual/weak-set":["es.array.iterator","es.object.to-string","es.weak-set","web.dom-collections.iterator"],"core-js/es":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set"],"core-js/es/aggregate-error":["es.error.cause","es.aggregate-error","es.aggregate-error.cause","es.array.iterator","es.string.iterator"],"core-js/es/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string","es.string.iterator"],"core-js/es/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string"],"core-js/es/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string"],"core-js/es/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/es/array-buffer/slice":["es.array-buffer.slice"],"core-js/es/array/at":["es.array.at"],"core-js/es/array/concat":["es.array.concat"],"core-js/es/array/copy-within":["es.array.copy-within"],"core-js/es/array/entries":["es.array.iterator","es.object.to-string"],"core-js/es/array/every":["es.array.every"],"core-js/es/array/fill":["es.array.fill"],"core-js/es/array/filter":["es.array.filter"],"core-js/es/array/find":["es.array.find"],"core-js/es/array/find-index":["es.array.find-index"],"core-js/es/array/find-last":["es.array.find-last"],"core-js/es/array/find-last-index":["es.array.find-last-index"],"core-js/es/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/array/for-each":["es.array.for-each"],"core-js/es/array/from":["es.array.from","es.string.iterator"],"core-js/es/array/includes":["es.array.includes"],"core-js/es/array/index-of":["es.array.index-of"],"core-js/es/array/is-array":["es.array.is-array"],"core-js/es/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/es/array/join":["es.array.join"],"core-js/es/array/keys":["es.array.iterator","es.object.to-string"],"core-js/es/array/last-index-of":["es.array.last-index-of"],"core-js/es/array/map":["es.array.map"],"core-js/es/array/of":["es.array.of"],"core-js/es/array/push":["es.array.push"],"core-js/es/array/reduce":["es.array.reduce"],"core-js/es/array/reduce-right":["es.array.reduce-right"],"core-js/es/array/reverse":["es.array.reverse"],"core-js/es/array/slice":["es.array.slice"],"core-js/es/array/some":["es.array.some"],"core-js/es/array/sort":["es.array.sort"],"core-js/es/array/splice":["es.array.splice"],"core-js/es/array/to-reversed":["es.array.to-reversed"],"core-js/es/array/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/es/array/to-spliced":["es.array.to-spliced"],"core-js/es/array/unshift":["es.array.unshift"],"core-js/es/array/values":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string"],"core-js/es/array/virtual/at":["es.array.at"],"core-js/es/array/virtual/concat":["es.array.concat"],"core-js/es/array/virtual/copy-within":["es.array.copy-within"],"core-js/es/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/every":["es.array.every"],"core-js/es/array/virtual/fill":["es.array.fill"],"core-js/es/array/virtual/filter":["es.array.filter"],"core-js/es/array/virtual/find":["es.array.find"],"core-js/es/array/virtual/find-index":["es.array.find-index"],"core-js/es/array/virtual/find-last":["es.array.find-last"],"core-js/es/array/virtual/find-last-index":["es.array.find-last-index"],"core-js/es/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/array/virtual/for-each":["es.array.for-each"],"core-js/es/array/virtual/includes":["es.array.includes"],"core-js/es/array/virtual/index-of":["es.array.index-of"],"core-js/es/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/join":["es.array.join"],"core-js/es/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/es/array/virtual/map":["es.array.map"],"core-js/es/array/virtual/push":["es.array.push"],"core-js/es/array/virtual/reduce":["es.array.reduce"],"core-js/es/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/es/array/virtual/reverse":["es.array.reverse"],"core-js/es/array/virtual/slice":["es.array.slice"],"core-js/es/array/virtual/some":["es.array.some"],"core-js/es/array/virtual/sort":["es.array.sort"],"core-js/es/array/virtual/splice":["es.array.splice"],"core-js/es/array/virtual/to-reversed":["es.array.to-reversed"],"core-js/es/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/es/array/virtual/to-spliced":["es.array.to-spliced"],"core-js/es/array/virtual/unshift":["es.array.unshift"],"core-js/es/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/with":["es.array.with"],"core-js/es/array/with":["es.array.with"],"core-js/es/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string"],"core-js/es/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/es/date/get-year":["es.date.get-year"],"core-js/es/date/now":["es.date.now"],"core-js/es/date/set-year":["es.date.set-year"],"core-js/es/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/es/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/es/date/to-json":["es.date.to-json"],"core-js/es/date/to-primitive":["es.date.to-primitive"],"core-js/es/date/to-string":["es.date.to-string"],"core-js/es/error":["es.error.cause","es.error.to-string"],"core-js/es/error/constructor":["es.error.cause"],"core-js/es/error/to-string":["es.error.to-string"],"core-js/es/escape":["es.escape"],"core-js/es/function":["es.function.bind","es.function.has-instance","es.function.name"],"core-js/es/function/bind":["es.function.bind"],"core-js/es/function/has-instance":["es.function.has-instance"],"core-js/es/function/name":["es.function.name"],"core-js/es/function/virtual":["es.function.bind"],"core-js/es/function/virtual/bind":["es.function.bind"],"core-js/es/get-iterator":["es.array.iterator","es.string.iterator"],"core-js/es/get-iterator-method":["es.array.iterator","es.string.iterator"],"core-js/es/global-this":["es.global-this"],"core-js/es/instance/at":["es.array.at","es.string.at-alternative"],"core-js/es/instance/bind":["es.function.bind"],"core-js/es/instance/code-point-at":["es.string.code-point-at"],"core-js/es/instance/concat":["es.array.concat"],"core-js/es/instance/copy-within":["es.array.copy-within"],"core-js/es/instance/ends-with":["es.string.ends-with"],"core-js/es/instance/entries":["es.array.iterator","es.object.to-string"],"core-js/es/instance/every":["es.array.every"],"core-js/es/instance/fill":["es.array.fill"],"core-js/es/instance/filter":["es.array.filter"],"core-js/es/instance/find":["es.array.find"],"core-js/es/instance/find-index":["es.array.find-index"],"core-js/es/instance/find-last":["es.array.find-last"],"core-js/es/instance/find-last-index":["es.array.find-last-index"],"core-js/es/instance/flags":["es.regexp.flags"],"core-js/es/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/instance/for-each":["es.array.for-each"],"core-js/es/instance/includes":["es.array.includes","es.string.includes"],"core-js/es/instance/index-of":["es.array.index-of"],"core-js/es/instance/is-well-formed":["es.string.is-well-formed"],"core-js/es/instance/keys":["es.array.iterator","es.object.to-string"],"core-js/es/instance/last-index-of":["es.array.last-index-of"],"core-js/es/instance/map":["es.array.map"],"core-js/es/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/instance/pad-end":["es.string.pad-end"],"core-js/es/instance/pad-start":["es.string.pad-start"],"core-js/es/instance/push":["es.array.push"],"core-js/es/instance/reduce":["es.array.reduce"],"core-js/es/instance/reduce-right":["es.array.reduce-right"],"core-js/es/instance/repeat":["es.string.repeat"],"core-js/es/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/es/instance/reverse":["es.array.reverse"],"core-js/es/instance/slice":["es.array.slice"],"core-js/es/instance/some":["es.array.some"],"core-js/es/instance/sort":["es.array.sort"],"core-js/es/instance/splice":["es.array.splice"],"core-js/es/instance/starts-with":["es.string.starts-with"],"core-js/es/instance/to-reversed":["es.array.to-reversed"],"core-js/es/instance/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/es/instance/to-spliced":["es.array.to-spliced"],"core-js/es/instance/to-well-formed":["es.string.to-well-formed"],"core-js/es/instance/trim":["es.string.trim"],"core-js/es/instance/trim-end":["es.string.trim-end"],"core-js/es/instance/trim-left":["es.string.trim-start"],"core-js/es/instance/trim-right":["es.string.trim-end"],"core-js/es/instance/trim-start":["es.string.trim-start"],"core-js/es/instance/unshift":["es.array.unshift"],"core-js/es/instance/values":["es.array.iterator","es.object.to-string"],"core-js/es/instance/with":["es.array.with"],"core-js/es/is-iterable":["es.array.iterator","es.string.iterator"],"core-js/es/json":["es.json.stringify","es.json.to-string-tag"],"core-js/es/json/stringify":["es.json.stringify"],"core-js/es/json/to-string-tag":["es.json.to-string-tag"],"core-js/es/map":["es.array.iterator","es.map","es.object.to-string","es.string.iterator"],"core-js/es/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc"],"core-js/es/math/acosh":["es.math.acosh"],"core-js/es/math/asinh":["es.math.asinh"],"core-js/es/math/atanh":["es.math.atanh"],"core-js/es/math/cbrt":["es.math.cbrt"],"core-js/es/math/clz32":["es.math.clz32"],"core-js/es/math/cosh":["es.math.cosh"],"core-js/es/math/expm1":["es.math.expm1"],"core-js/es/math/fround":["es.math.fround"],"core-js/es/math/hypot":["es.math.hypot"],"core-js/es/math/imul":["es.math.imul"],"core-js/es/math/log10":["es.math.log10"],"core-js/es/math/log1p":["es.math.log1p"],"core-js/es/math/log2":["es.math.log2"],"core-js/es/math/sign":["es.math.sign"],"core-js/es/math/sinh":["es.math.sinh"],"core-js/es/math/tanh":["es.math.tanh"],"core-js/es/math/to-string-tag":["es.math.to-string-tag"],"core-js/es/math/trunc":["es.math.trunc"],"core-js/es/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/es/number/constructor":["es.number.constructor"],"core-js/es/number/epsilon":["es.number.epsilon"],"core-js/es/number/is-finite":["es.number.is-finite"],"core-js/es/number/is-integer":["es.number.is-integer"],"core-js/es/number/is-nan":["es.number.is-nan"],"core-js/es/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/es/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/es/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/es/number/parse-float":["es.number.parse-float"],"core-js/es/number/parse-int":["es.number.parse-int"],"core-js/es/number/to-exponential":["es.number.to-exponential"],"core-js/es/number/to-fixed":["es.number.to-fixed"],"core-js/es/number/to-precision":["es.number.to-precision"],"core-js/es/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/es/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/es/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/es/number/virtual/to-precision":["es.number.to-precision"],"core-js/es/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag"],"core-js/es/object/assign":["es.object.assign"],"core-js/es/object/create":["es.object.create"],"core-js/es/object/define-getter":["es.object.define-getter"],"core-js/es/object/define-properties":["es.object.define-properties"],"core-js/es/object/define-property":["es.object.define-property"],"core-js/es/object/define-setter":["es.object.define-setter"],"core-js/es/object/entries":["es.object.entries"],"core-js/es/object/freeze":["es.object.freeze"],"core-js/es/object/from-entries":["es.array.iterator","es.object.from-entries"],"core-js/es/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/es/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/es/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/es/object/get-own-property-symbols":["es.symbol"],"core-js/es/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/es/object/has-own":["es.object.has-own"],"core-js/es/object/is":["es.object.is"],"core-js/es/object/is-extensible":["es.object.is-extensible"],"core-js/es/object/is-frozen":["es.object.is-frozen"],"core-js/es/object/is-sealed":["es.object.is-sealed"],"core-js/es/object/keys":["es.object.keys"],"core-js/es/object/lookup-getter":["es.object.lookup-getter"],"core-js/es/object/lookup-setter":["es.object.lookup-setter"],"core-js/es/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/es/object/proto":["es.object.proto"],"core-js/es/object/seal":["es.object.seal"],"core-js/es/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/es/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/object/values":["es.object.values"],"core-js/es/parse-float":["es.parse-float"],"core-js/es/parse-int":["es.parse-int"],"core-js/es/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator"],"core-js/es/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator"],"core-js/es/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator"],"core-js/es/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/es/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/es/reflect/apply":["es.reflect.apply"],"core-js/es/reflect/construct":["es.reflect.construct"],"core-js/es/reflect/define-property":["es.reflect.define-property"],"core-js/es/reflect/delete-property":["es.reflect.delete-property"],"core-js/es/reflect/get":["es.reflect.get"],"core-js/es/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/es/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/es/reflect/has":["es.reflect.has"],"core-js/es/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/es/reflect/own-keys":["es.reflect.own-keys"],"core-js/es/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/es/reflect/set":["es.reflect.set"],"core-js/es/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/es/reflect/to-string-tag":["es.object.to-string","es.reflect.to-string-tag"],"core-js/es/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/es/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/es/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/es/regexp/flags":["es.regexp.flags"],"core-js/es/regexp/match":["es.regexp.exec","es.string.match"],"core-js/es/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/es/regexp/search":["es.regexp.exec","es.string.search"],"core-js/es/regexp/split":["es.regexp.exec","es.string.split"],"core-js/es/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/es/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/es/regexp/to-string":["es.regexp.to-string"],"core-js/es/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator"],"core-js/es/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/es/string/anchor":["es.string.anchor"],"core-js/es/string/at":["es.string.at-alternative"],"core-js/es/string/big":["es.string.big"],"core-js/es/string/blink":["es.string.blink"],"core-js/es/string/bold":["es.string.bold"],"core-js/es/string/code-point-at":["es.string.code-point-at"],"core-js/es/string/ends-with":["es.string.ends-with"],"core-js/es/string/fixed":["es.string.fixed"],"core-js/es/string/fontcolor":["es.string.fontcolor"],"core-js/es/string/fontsize":["es.string.fontsize"],"core-js/es/string/from-code-point":["es.string.from-code-point"],"core-js/es/string/includes":["es.string.includes"],"core-js/es/string/is-well-formed":["es.string.is-well-formed"],"core-js/es/string/italics":["es.string.italics"],"core-js/es/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/es/string/link":["es.string.link"],"core-js/es/string/match":["es.regexp.exec","es.string.match"],"core-js/es/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/string/pad-end":["es.string.pad-end"],"core-js/es/string/pad-start":["es.string.pad-start"],"core-js/es/string/raw":["es.string.raw"],"core-js/es/string/repeat":["es.string.repeat"],"core-js/es/string/replace":["es.regexp.exec","es.string.replace"],"core-js/es/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/es/string/search":["es.regexp.exec","es.string.search"],"core-js/es/string/small":["es.string.small"],"core-js/es/string/split":["es.regexp.exec","es.string.split"],"core-js/es/string/starts-with":["es.string.starts-with"],"core-js/es/string/strike":["es.string.strike"],"core-js/es/string/sub":["es.string.sub"],"core-js/es/string/substr":["es.string.substr"],"core-js/es/string/sup":["es.string.sup"],"core-js/es/string/to-well-formed":["es.string.to-well-formed"],"core-js/es/string/trim":["es.string.trim"],"core-js/es/string/trim-end":["es.string.trim-end"],"core-js/es/string/trim-left":["es.string.trim-start"],"core-js/es/string/trim-right":["es.string.trim-end"],"core-js/es/string/trim-start":["es.string.trim-start"],"core-js/es/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/es/string/virtual/anchor":["es.string.anchor"],"core-js/es/string/virtual/at":["es.string.at-alternative"],"core-js/es/string/virtual/big":["es.string.big"],"core-js/es/string/virtual/blink":["es.string.blink"],"core-js/es/string/virtual/bold":["es.string.bold"],"core-js/es/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/es/string/virtual/ends-with":["es.string.ends-with"],"core-js/es/string/virtual/fixed":["es.string.fixed"],"core-js/es/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/es/string/virtual/fontsize":["es.string.fontsize"],"core-js/es/string/virtual/includes":["es.string.includes"],"core-js/es/string/virtual/is-well-formed":["es.string.is-well-formed"],"core-js/es/string/virtual/italics":["es.string.italics"],"core-js/es/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/es/string/virtual/link":["es.string.link"],"core-js/es/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/string/virtual/pad-end":["es.string.pad-end"],"core-js/es/string/virtual/pad-start":["es.string.pad-start"],"core-js/es/string/virtual/repeat":["es.string.repeat"],"core-js/es/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/es/string/virtual/small":["es.string.small"],"core-js/es/string/virtual/starts-with":["es.string.starts-with"],"core-js/es/string/virtual/strike":["es.string.strike"],"core-js/es/string/virtual/sub":["es.string.sub"],"core-js/es/string/virtual/substr":["es.string.substr"],"core-js/es/string/virtual/sup":["es.string.sup"],"core-js/es/string/virtual/to-well-formed":["es.string.to-well-formed"],"core-js/es/string/virtual/trim":["es.string.trim"],"core-js/es/string/virtual/trim-end":["es.string.trim-end"],"core-js/es/string/virtual/trim-left":["es.string.trim-start"],"core-js/es/string/virtual/trim-right":["es.string.trim-end"],"core-js/es/string/virtual/trim-start":["es.string.trim-start"],"core-js/es/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/es/symbol/description":["es.symbol.description"],"core-js/es/symbol/for":["es.symbol"],"core-js/es/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/es/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/es/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator"],"core-js/es/symbol/key-for":["es.symbol"],"core-js/es/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/es/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/es/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/es/symbol/species":["es.symbol.species"],"core-js/es/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/es/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/es/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/symbol/unscopables":["es.symbol.unscopables"],"core-js/es/typed-array":["es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/at":["es.typed-array.at"],"core-js/es/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/es/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/every":["es.typed-array.every"],"core-js/es/typed-array/fill":["es.typed-array.fill"],"core-js/es/typed-array/filter":["es.typed-array.filter"],"core-js/es/typed-array/find":["es.typed-array.find"],"core-js/es/typed-array/find-index":["es.typed-array.find-index"],"core-js/es/typed-array/find-last":["es.typed-array.find-last"],"core-js/es/typed-array/find-last-index":["es.typed-array.find-last-index"],"core-js/es/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/for-each":["es.typed-array.for-each"],"core-js/es/typed-array/from":["es.typed-array.from"],"core-js/es/typed-array/includes":["es.typed-array.includes"],"core-js/es/typed-array/index-of":["es.typed-array.index-of"],"core-js/es/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/join":["es.typed-array.join"],"core-js/es/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/es/typed-array/map":["es.typed-array.map"],"core-js/es/typed-array/methods":["es.object.to-string","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/of":["es.typed-array.of"],"core-js/es/typed-array/reduce":["es.typed-array.reduce"],"core-js/es/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/es/typed-array/reverse":["es.typed-array.reverse"],"core-js/es/typed-array/set":["es.typed-array.set"],"core-js/es/typed-array/slice":["es.typed-array.slice"],"core-js/es/typed-array/some":["es.typed-array.some"],"core-js/es/typed-array/sort":["es.typed-array.sort"],"core-js/es/typed-array/subarray":["es.typed-array.subarray"],"core-js/es/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/es/typed-array/to-reversed":["es.typed-array.to-reversed"],"core-js/es/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted"],"core-js/es/typed-array/to-string":["es.typed-array.to-string"],"core-js/es/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/with":["es.typed-array.with"],"core-js/es/unescape":["es.unescape"],"core-js/es/weak-map":["es.array.iterator","es.object.to-string","es.weak-map"],"core-js/es/weak-set":["es.array.iterator","es.object.to-string","es.weak-set"],"core-js/features":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/features/aggregate-error":["es.error.cause","es.aggregate-error","es.aggregate-error.cause","es.array.iterator","es.string.iterator","esnext.aggregate-error","web.dom-collections.iterator"],"core-js/features/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/features/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/features/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/features/array-buffer/detached":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached"],"core-js/features/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/features/array-buffer/slice":["es.array-buffer.slice"],"core-js/features/array-buffer/transfer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer"],"core-js/features/array-buffer/transfer-to-fixed-length":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer-to-fixed-length"],"core-js/features/array/at":["es.array.at","esnext.array.at"],"core-js/features/array/concat":["es.array.concat"],"core-js/features/array/copy-within":["es.array.copy-within"],"core-js/features/array/entries":["es.array.iterator","es.object.to-string"],"core-js/features/array/every":["es.array.every"],"core-js/features/array/fill":["es.array.fill"],"core-js/features/array/filter":["es.array.filter"],"core-js/features/array/filter-out":["esnext.array.filter-out"],"core-js/features/array/filter-reject":["esnext.array.filter-reject"],"core-js/features/array/find":["es.array.find"],"core-js/features/array/find-index":["es.array.find-index"],"core-js/features/array/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/features/array/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/features/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/array/for-each":["es.array.for-each"],"core-js/features/array/from":["es.array.from","es.string.iterator"],"core-js/features/array/from-async":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async"],"core-js/features/array/group":["esnext.array.group"],"core-js/features/array/group-by":["esnext.array.group-by"],"core-js/features/array/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/features/array/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/features/array/includes":["es.array.includes"],"core-js/features/array/index-of":["es.array.index-of"],"core-js/features/array/is-array":["es.array.is-array"],"core-js/features/array/is-template-object":["esnext.array.is-template-object"],"core-js/features/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/features/array/join":["es.array.join"],"core-js/features/array/keys":["es.array.iterator","es.object.to-string"],"core-js/features/array/last-index":["esnext.array.last-index"],"core-js/features/array/last-index-of":["es.array.last-index-of"],"core-js/features/array/last-item":["esnext.array.last-item"],"core-js/features/array/map":["es.array.map"],"core-js/features/array/of":["es.array.of"],"core-js/features/array/push":["es.array.push"],"core-js/features/array/reduce":["es.array.reduce"],"core-js/features/array/reduce-right":["es.array.reduce-right"],"core-js/features/array/reverse":["es.array.reverse"],"core-js/features/array/slice":["es.array.slice"],"core-js/features/array/some":["es.array.some"],"core-js/features/array/sort":["es.array.sort"],"core-js/features/array/splice":["es.array.splice"],"core-js/features/array/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/features/array/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/features/array/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/features/array/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/array/unshift":["es.array.unshift"],"core-js/features/array/values":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/features/array/virtual/at":["es.array.at","esnext.array.at"],"core-js/features/array/virtual/concat":["es.array.concat"],"core-js/features/array/virtual/copy-within":["es.array.copy-within"],"core-js/features/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/every":["es.array.every"],"core-js/features/array/virtual/fill":["es.array.fill"],"core-js/features/array/virtual/filter":["es.array.filter"],"core-js/features/array/virtual/filter-out":["esnext.array.filter-out"],"core-js/features/array/virtual/filter-reject":["esnext.array.filter-reject"],"core-js/features/array/virtual/find":["es.array.find"],"core-js/features/array/virtual/find-index":["es.array.find-index"],"core-js/features/array/virtual/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/features/array/virtual/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/features/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/array/virtual/for-each":["es.array.for-each"],"core-js/features/array/virtual/group":["esnext.array.group"],"core-js/features/array/virtual/group-by":["esnext.array.group-by"],"core-js/features/array/virtual/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/features/array/virtual/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/features/array/virtual/includes":["es.array.includes"],"core-js/features/array/virtual/index-of":["es.array.index-of"],"core-js/features/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/join":["es.array.join"],"core-js/features/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/features/array/virtual/map":["es.array.map"],"core-js/features/array/virtual/push":["es.array.push"],"core-js/features/array/virtual/reduce":["es.array.reduce"],"core-js/features/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/features/array/virtual/reverse":["es.array.reverse"],"core-js/features/array/virtual/slice":["es.array.slice"],"core-js/features/array/virtual/some":["es.array.some"],"core-js/features/array/virtual/sort":["es.array.sort"],"core-js/features/array/virtual/splice":["es.array.splice"],"core-js/features/array/virtual/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/features/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/features/array/virtual/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/features/array/virtual/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/array/virtual/unshift":["es.array.unshift"],"core-js/features/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/with":["es.array.with","esnext.array.with"],"core-js/features/array/with":["es.array.with","esnext.array.with"],"core-js/features/async-disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/features/async-disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/features/async-iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/features/async-iterator/as-indexed-pairs":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs"],"core-js/features/async-iterator/async-dispose":["es.object.to-string","es.promise","esnext.async-iterator.async-dispose"],"core-js/features/async-iterator/drop":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.drop"],"core-js/features/async-iterator/every":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.every"],"core-js/features/async-iterator/filter":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.filter"],"core-js/features/async-iterator/find":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.find"],"core-js/features/async-iterator/flat-map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.flat-map"],"core-js/features/async-iterator/for-each":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.for-each"],"core-js/features/async-iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/features/async-iterator/indexed":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.indexed"],"core-js/features/async-iterator/map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.map"],"core-js/features/async-iterator/reduce":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.reduce"],"core-js/features/async-iterator/some":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.some"],"core-js/features/async-iterator/take":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.take"],"core-js/features/async-iterator/to-array":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.to-array"],"core-js/features/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/features/bigint":["es.object.to-string","esnext.bigint.range"],"core-js/features/bigint/range":["es.object.to-string","esnext.bigint.range"],"core-js/features/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/features/clear-immediate":["web.immediate"],"core-js/features/composite-key":["esnext.composite-key"],"core-js/features/composite-symbol":["es.symbol","esnext.composite-symbol"],"core-js/features/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string"],"core-js/features/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/features/date/get-year":["es.date.get-year"],"core-js/features/date/now":["es.date.now"],"core-js/features/date/set-year":["es.date.set-year"],"core-js/features/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/features/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/features/date/to-json":["es.date.to-json"],"core-js/features/date/to-primitive":["es.date.to-primitive"],"core-js/features/date/to-string":["es.date.to-string"],"core-js/features/disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/features/disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/features/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/features/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/features/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/features/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/features/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/features/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/features/error":["es.error.cause","es.error.to-string"],"core-js/features/error/constructor":["es.error.cause"],"core-js/features/error/to-string":["es.error.to-string"],"core-js/features/escape":["es.escape"],"core-js/features/function":["es.function.bind","es.function.has-instance","es.function.name","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this"],"core-js/features/function/bind":["es.function.bind"],"core-js/features/function/demethodize":["esnext.function.demethodize"],"core-js/features/function/has-instance":["es.function.has-instance"],"core-js/features/function/is-callable":["esnext.function.is-callable"],"core-js/features/function/is-constructor":["esnext.function.is-constructor"],"core-js/features/function/metadata":["esnext.function.metadata"],"core-js/features/function/name":["es.function.name"],"core-js/features/function/un-this":["esnext.function.un-this"],"core-js/features/function/virtual":["es.function.bind","esnext.function.demethodize","esnext.function.un-this"],"core-js/features/function/virtual/bind":["es.function.bind"],"core-js/features/function/virtual/demethodize":["esnext.function.demethodize"],"core-js/features/function/virtual/un-this":["esnext.function.un-this"],"core-js/features/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/features/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/features/global-this":["es.global-this","esnext.global-this"],"core-js/features/instance/at":["es.array.at","es.string.at-alternative","esnext.array.at","esnext.string.at"],"core-js/features/instance/bind":["es.function.bind"],"core-js/features/instance/code-point-at":["es.string.code-point-at"],"core-js/features/instance/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/features/instance/concat":["es.array.concat"],"core-js/features/instance/copy-within":["es.array.copy-within"],"core-js/features/instance/demethodize":["esnext.function.demethodize"],"core-js/features/instance/ends-with":["es.string.ends-with"],"core-js/features/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/features/instance/every":["es.array.every"],"core-js/features/instance/fill":["es.array.fill"],"core-js/features/instance/filter":["es.array.filter"],"core-js/features/instance/filter-out":["esnext.array.filter-out"],"core-js/features/instance/filter-reject":["esnext.array.filter-reject"],"core-js/features/instance/find":["es.array.find"],"core-js/features/instance/find-index":["es.array.find-index"],"core-js/features/instance/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/features/instance/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/features/instance/flags":["es.regexp.flags"],"core-js/features/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/instance/for-each":["es.array.for-each","web.dom-collections.iterator"],"core-js/features/instance/group":["esnext.array.group"],"core-js/features/instance/group-by":["esnext.array.group-by"],"core-js/features/instance/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/features/instance/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/features/instance/includes":["es.array.includes","es.string.includes"],"core-js/features/instance/index-of":["es.array.index-of"],"core-js/features/instance/is-well-formed":["es.string.is-well-formed"],"core-js/features/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/features/instance/last-index-of":["es.array.last-index-of"],"core-js/features/instance/map":["es.array.map"],"core-js/features/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/features/instance/pad-end":["es.string.pad-end"],"core-js/features/instance/pad-start":["es.string.pad-start"],"core-js/features/instance/push":["es.array.push"],"core-js/features/instance/reduce":["es.array.reduce"],"core-js/features/instance/reduce-right":["es.array.reduce-right"],"core-js/features/instance/repeat":["es.string.repeat"],"core-js/features/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/features/instance/reverse":["es.array.reverse"],"core-js/features/instance/slice":["es.array.slice"],"core-js/features/instance/some":["es.array.some"],"core-js/features/instance/sort":["es.array.sort"],"core-js/features/instance/splice":["es.array.splice"],"core-js/features/instance/starts-with":["es.string.starts-with"],"core-js/features/instance/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/features/instance/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/features/instance/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/features/instance/to-well-formed":["es.string.to-well-formed"],"core-js/features/instance/trim":["es.string.trim"],"core-js/features/instance/trim-end":["es.string.trim-end"],"core-js/features/instance/trim-left":["es.string.trim-start"],"core-js/features/instance/trim-right":["es.string.trim-end"],"core-js/features/instance/trim-start":["es.string.trim-start"],"core-js/features/instance/un-this":["esnext.function.un-this"],"core-js/features/instance/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/instance/unshift":["es.array.unshift"],"core-js/features/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/features/instance/with":["es.array.with","esnext.array.with"],"core-js/features/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/features/iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/features/iterator/as-indexed-pairs":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs"],"core-js/features/iterator/dispose":["esnext.iterator.dispose"],"core-js/features/iterator/drop":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.drop"],"core-js/features/iterator/every":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.every"],"core-js/features/iterator/filter":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.filter"],"core-js/features/iterator/find":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.find"],"core-js/features/iterator/flat-map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.flat-map"],"core-js/features/iterator/for-each":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.for-each"],"core-js/features/iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/features/iterator/indexed":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.indexed"],"core-js/features/iterator/map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.map"],"core-js/features/iterator/range":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.range"],"core-js/features/iterator/reduce":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.reduce"],"core-js/features/iterator/some":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.some"],"core-js/features/iterator/take":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.take"],"core-js/features/iterator/to-array":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.to-array"],"core-js/features/iterator/to-async":["es.object.to-string","es.promise","esnext.iterator.constructor","esnext.iterator.to-async"],"core-js/features/json":["es.json.stringify","es.json.to-string-tag","es.object.create","es.object.freeze","es.object.keys","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/features/json/is-raw-json":["esnext.json.is-raw-json"],"core-js/features/json/parse":["es.object.keys","esnext.json.parse"],"core-js/features/json/raw-json":["es.object.create","es.object.freeze","esnext.json.raw-json"],"core-js/features/json/stringify":["es.json.stringify"],"core-js/features/json/to-string-tag":["es.json.to-string-tag"],"core-js/features/map":["es.array.iterator","es.map","es.object.to-string","es.string.iterator","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","web.dom-collections.iterator"],"core-js/features/map/delete-all":["es.map","esnext.map.delete-all"],"core-js/features/map/emplace":["es.map","esnext.map.emplace"],"core-js/features/map/every":["es.map","esnext.map.every"],"core-js/features/map/filter":["es.map","esnext.map.filter"],"core-js/features/map/find":["es.map","esnext.map.find"],"core-js/features/map/find-key":["es.map","esnext.map.find-key"],"core-js/features/map/from":["es.array.iterator","es.map","es.string.iterator","esnext.map.from","web.dom-collections.iterator"],"core-js/features/map/group-by":["es.map","esnext.map.group-by"],"core-js/features/map/includes":["es.map","esnext.map.includes"],"core-js/features/map/key-by":["es.map","esnext.map.key-by"],"core-js/features/map/key-of":["es.map","esnext.map.key-of"],"core-js/features/map/map-keys":["es.map","esnext.map.map-keys"],"core-js/features/map/map-values":["es.map","esnext.map.map-values"],"core-js/features/map/merge":["es.map","esnext.map.merge"],"core-js/features/map/of":["es.array.iterator","es.map","esnext.map.of"],"core-js/features/map/reduce":["es.map","esnext.map.reduce"],"core-js/features/map/some":["es.map","esnext.map.some"],"core-js/features/map/update":["es.map","esnext.map.update"],"core-js/features/map/update-or-insert":["es.map","esnext.map.update-or-insert"],"core-js/features/map/upsert":["es.map","esnext.map.upsert"],"core-js/features/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh"],"core-js/features/math/acosh":["es.math.acosh"],"core-js/features/math/asinh":["es.math.asinh"],"core-js/features/math/atanh":["es.math.atanh"],"core-js/features/math/cbrt":["es.math.cbrt"],"core-js/features/math/clamp":["esnext.math.clamp"],"core-js/features/math/clz32":["es.math.clz32"],"core-js/features/math/cosh":["es.math.cosh"],"core-js/features/math/deg-per-rad":["esnext.math.deg-per-rad"],"core-js/features/math/degrees":["esnext.math.degrees"],"core-js/features/math/expm1":["es.math.expm1"],"core-js/features/math/fround":["es.math.fround"],"core-js/features/math/fscale":["esnext.math.fscale"],"core-js/features/math/hypot":["es.math.hypot"],"core-js/features/math/iaddh":["esnext.math.iaddh"],"core-js/features/math/imul":["es.math.imul"],"core-js/features/math/imulh":["esnext.math.imulh"],"core-js/features/math/isubh":["esnext.math.isubh"],"core-js/features/math/log10":["es.math.log10"],"core-js/features/math/log1p":["es.math.log1p"],"core-js/features/math/log2":["es.math.log2"],"core-js/features/math/rad-per-deg":["esnext.math.rad-per-deg"],"core-js/features/math/radians":["esnext.math.radians"],"core-js/features/math/scale":["esnext.math.scale"],"core-js/features/math/seeded-prng":["esnext.math.seeded-prng"],"core-js/features/math/sign":["es.math.sign"],"core-js/features/math/signbit":["esnext.math.signbit"],"core-js/features/math/sinh":["es.math.sinh"],"core-js/features/math/tanh":["es.math.tanh"],"core-js/features/math/to-string-tag":["es.math.to-string-tag"],"core-js/features/math/trunc":["es.math.trunc"],"core-js/features/math/umulh":["esnext.math.umulh"],"core-js/features/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.to-string","esnext.number.from-string","esnext.number.range"],"core-js/features/number/constructor":["es.number.constructor"],"core-js/features/number/epsilon":["es.number.epsilon"],"core-js/features/number/from-string":["esnext.number.from-string"],"core-js/features/number/is-finite":["es.number.is-finite"],"core-js/features/number/is-integer":["es.number.is-integer"],"core-js/features/number/is-nan":["es.number.is-nan"],"core-js/features/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/features/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/features/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/features/number/parse-float":["es.number.parse-float"],"core-js/features/number/parse-int":["es.number.parse-int"],"core-js/features/number/range":["es.object.to-string","esnext.number.range"],"core-js/features/number/to-exponential":["es.number.to-exponential"],"core-js/features/number/to-fixed":["es.number.to-fixed"],"core-js/features/number/to-precision":["es.number.to-precision"],"core-js/features/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/features/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/features/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/features/number/virtual/to-precision":["es.number.to-precision"],"core-js/features/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","web.dom-collections.iterator"],"core-js/features/object/assign":["es.object.assign"],"core-js/features/object/create":["es.object.create"],"core-js/features/object/define-getter":["es.object.define-getter"],"core-js/features/object/define-properties":["es.object.define-properties"],"core-js/features/object/define-property":["es.object.define-property"],"core-js/features/object/define-setter":["es.object.define-setter"],"core-js/features/object/entries":["es.object.entries"],"core-js/features/object/freeze":["es.object.freeze"],"core-js/features/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/features/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/features/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/features/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/features/object/get-own-property-symbols":["es.symbol"],"core-js/features/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/features/object/group-by":["es.object.create","esnext.object.group-by"],"core-js/features/object/has-own":["es.object.has-own","esnext.object.has-own"],"core-js/features/object/is":["es.object.is"],"core-js/features/object/is-extensible":["es.object.is-extensible"],"core-js/features/object/is-frozen":["es.object.is-frozen"],"core-js/features/object/is-sealed":["es.object.is-sealed"],"core-js/features/object/iterate-entries":["esnext.object.iterate-entries"],"core-js/features/object/iterate-keys":["esnext.object.iterate-keys"],"core-js/features/object/iterate-values":["esnext.object.iterate-values"],"core-js/features/object/keys":["es.object.keys"],"core-js/features/object/lookup-getter":["es.object.lookup-getter"],"core-js/features/object/lookup-setter":["es.object.lookup-setter"],"core-js/features/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/features/object/proto":["es.object.proto"],"core-js/features/object/seal":["es.object.seal"],"core-js/features/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/features/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/features/object/values":["es.object.values"],"core-js/features/observable":["es.object.to-string","es.string.iterator","esnext.observable","esnext.symbol.observable","web.dom-collections.iterator"],"core-js/features/parse-float":["es.parse-float"],"core-js/features/parse-int":["es.parse-int"],"core-js/features/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator","esnext.aggregate-error","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","web.dom-collections.iterator"],"core-js/features/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","esnext.promise.all-settled","web.dom-collections.iterator"],"core-js/features/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","esnext.aggregate-error","esnext.promise.any","web.dom-collections.iterator"],"core-js/features/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/features/promise/try":["es.promise","esnext.promise.try"],"core-js/features/promise/with-resolvers":["es.promise","esnext.promise.with-resolvers"],"core-js/features/queue-microtask":["web.queue-microtask"],"core-js/features/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/features/reflect/apply":["es.reflect.apply"],"core-js/features/reflect/construct":["es.reflect.construct"],"core-js/features/reflect/define-metadata":["esnext.reflect.define-metadata"],"core-js/features/reflect/define-property":["es.reflect.define-property"],"core-js/features/reflect/delete-metadata":["esnext.reflect.delete-metadata"],"core-js/features/reflect/delete-property":["es.reflect.delete-property"],"core-js/features/reflect/get":["es.reflect.get"],"core-js/features/reflect/get-metadata":["esnext.reflect.get-metadata"],"core-js/features/reflect/get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/features/reflect/get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/features/reflect/get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/features/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/features/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/features/reflect/has":["es.reflect.has"],"core-js/features/reflect/has-metadata":["esnext.reflect.has-metadata"],"core-js/features/reflect/has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/features/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/features/reflect/metadata":["esnext.reflect.metadata"],"core-js/features/reflect/own-keys":["es.reflect.own-keys"],"core-js/features/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/features/reflect/set":["es.reflect.set"],"core-js/features/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/features/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/features/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/features/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/features/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/features/regexp/flags":["es.regexp.flags"],"core-js/features/regexp/match":["es.regexp.exec","es.string.match"],"core-js/features/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/features/regexp/search":["es.regexp.exec","es.string.search"],"core-js/features/regexp/split":["es.regexp.exec","es.string.split"],"core-js/features/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/features/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/features/regexp/to-string":["es.regexp.to-string"],"core-js/features/self":["web.self"],"core-js/features/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/features/set-immediate":["web.immediate"],"core-js/features/set-interval":["web.timers"],"core-js/features/set-timeout":["web.timers"],"core-js/features/set/add-all":["es.set","esnext.set.add-all"],"core-js/features/set/delete-all":["es.set","esnext.set.delete-all"],"core-js/features/set/difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.difference.v2","esnext.set.difference","web.dom-collections.iterator"],"core-js/features/set/every":["es.set","esnext.set.every"],"core-js/features/set/filter":["es.set","esnext.set.filter"],"core-js/features/set/find":["es.set","esnext.set.find"],"core-js/features/set/from":["es.array.iterator","es.set","es.string.iterator","esnext.set.from","web.dom-collections.iterator"],"core-js/features/set/intersection":["es.array.iterator","es.set","es.string.iterator","esnext.set.intersection.v2","esnext.set.intersection","web.dom-collections.iterator"],"core-js/features/set/is-disjoint-from":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","web.dom-collections.iterator"],"core-js/features/set/is-subset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","web.dom-collections.iterator"],"core-js/features/set/is-superset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","web.dom-collections.iterator"],"core-js/features/set/join":["es.set","esnext.set.join"],"core-js/features/set/map":["es.set","esnext.set.map"],"core-js/features/set/of":["es.array.iterator","es.set","esnext.set.of"],"core-js/features/set/reduce":["es.set","esnext.set.reduce"],"core-js/features/set/some":["es.set","esnext.set.some"],"core-js/features/set/symmetric-difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","web.dom-collections.iterator"],"core-js/features/set/union":["es.array.iterator","es.set","es.string.iterator","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/features/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.weak-map","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/features/string/anchor":["es.string.anchor"],"core-js/features/string/at":["es.string.at-alternative","esnext.string.at"],"core-js/features/string/big":["es.string.big"],"core-js/features/string/blink":["es.string.blink"],"core-js/features/string/bold":["es.string.bold"],"core-js/features/string/code-point-at":["es.string.code-point-at"],"core-js/features/string/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/features/string/cooked":["esnext.string.cooked"],"core-js/features/string/dedent":["es.string.from-code-point","es.weak-map","esnext.string.dedent"],"core-js/features/string/ends-with":["es.string.ends-with"],"core-js/features/string/fixed":["es.string.fixed"],"core-js/features/string/fontcolor":["es.string.fontcolor"],"core-js/features/string/fontsize":["es.string.fontsize"],"core-js/features/string/from-code-point":["es.string.from-code-point"],"core-js/features/string/includes":["es.string.includes"],"core-js/features/string/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/features/string/italics":["es.string.italics"],"core-js/features/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/features/string/link":["es.string.link"],"core-js/features/string/match":["es.regexp.exec","es.string.match"],"core-js/features/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/features/string/pad-end":["es.string.pad-end"],"core-js/features/string/pad-start":["es.string.pad-start"],"core-js/features/string/raw":["es.string.raw"],"core-js/features/string/repeat":["es.string.repeat"],"core-js/features/string/replace":["es.regexp.exec","es.string.replace"],"core-js/features/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/features/string/search":["es.regexp.exec","es.string.search"],"core-js/features/string/small":["es.string.small"],"core-js/features/string/split":["es.regexp.exec","es.string.split"],"core-js/features/string/starts-with":["es.string.starts-with"],"core-js/features/string/strike":["es.string.strike"],"core-js/features/string/sub":["es.string.sub"],"core-js/features/string/substr":["es.string.substr"],"core-js/features/string/sup":["es.string.sup"],"core-js/features/string/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/features/string/trim":["es.string.trim"],"core-js/features/string/trim-end":["es.string.trim-end"],"core-js/features/string/trim-left":["es.string.trim-start"],"core-js/features/string/trim-right":["es.string.trim-end"],"core-js/features/string/trim-start":["es.string.trim-start"],"core-js/features/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.at","esnext.string.code-points","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/features/string/virtual/anchor":["es.string.anchor"],"core-js/features/string/virtual/at":["es.string.at-alternative","esnext.string.at"],"core-js/features/string/virtual/big":["es.string.big"],"core-js/features/string/virtual/blink":["es.string.blink"],"core-js/features/string/virtual/bold":["es.string.bold"],"core-js/features/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/features/string/virtual/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/features/string/virtual/ends-with":["es.string.ends-with"],"core-js/features/string/virtual/fixed":["es.string.fixed"],"core-js/features/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/features/string/virtual/fontsize":["es.string.fontsize"],"core-js/features/string/virtual/includes":["es.string.includes"],"core-js/features/string/virtual/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/features/string/virtual/italics":["es.string.italics"],"core-js/features/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/features/string/virtual/link":["es.string.link"],"core-js/features/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/features/string/virtual/pad-end":["es.string.pad-end"],"core-js/features/string/virtual/pad-start":["es.string.pad-start"],"core-js/features/string/virtual/repeat":["es.string.repeat"],"core-js/features/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/features/string/virtual/small":["es.string.small"],"core-js/features/string/virtual/starts-with":["es.string.starts-with"],"core-js/features/string/virtual/strike":["es.string.strike"],"core-js/features/string/virtual/sub":["es.string.sub"],"core-js/features/string/virtual/substr":["es.string.substr"],"core-js/features/string/virtual/sup":["es.string.sup"],"core-js/features/string/virtual/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/features/string/virtual/trim":["es.string.trim"],"core-js/features/string/virtual/trim-end":["es.string.trim-end"],"core-js/features/string/virtual/trim-left":["es.string.trim-start"],"core-js/features/string/virtual/trim-right":["es.string.trim-end"],"core-js/features/string/virtual/trim-start":["es.string.trim-start"],"core-js/features/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/features/suppressed-error":["es.error.cause","es.error.to-string","esnext.suppressed-error.constructor"],"core-js/features/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","esnext.function.metadata","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","web.dom-collections.iterator"],"core-js/features/symbol/async-dispose":["esnext.symbol.async-dispose"],"core-js/features/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/features/symbol/description":["es.symbol.description"],"core-js/features/symbol/dispose":["esnext.symbol.dispose"],"core-js/features/symbol/for":["es.symbol"],"core-js/features/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/features/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/features/symbol/is-registered":["es.symbol","esnext.symbol.is-registered"],"core-js/features/symbol/is-registered-symbol":["es.symbol","esnext.symbol.is-registered-symbol"],"core-js/features/symbol/is-well-known":["es.symbol","esnext.symbol.is-well-known"],"core-js/features/symbol/is-well-known-symbol":["es.symbol","esnext.symbol.is-well-known-symbol"],"core-js/features/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/features/symbol/key-for":["es.symbol"],"core-js/features/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/features/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/features/symbol/matcher":["esnext.symbol.matcher"],"core-js/features/symbol/metadata":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/features/symbol/metadata-key":["esnext.symbol.metadata-key"],"core-js/features/symbol/observable":["esnext.symbol.observable"],"core-js/features/symbol/pattern-match":["esnext.symbol.pattern-match"],"core-js/features/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/features/symbol/replace-all":["esnext.symbol.replace-all"],"core-js/features/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/features/symbol/species":["es.symbol.species"],"core-js/features/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/features/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/features/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/features/symbol/unscopables":["es.symbol.unscopables"],"core-js/features/typed-array":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/at":["es.typed-array.at","esnext.typed-array.at"],"core-js/features/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/features/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/every":["es.typed-array.every"],"core-js/features/typed-array/fill":["es.typed-array.fill"],"core-js/features/typed-array/filter":["es.typed-array.filter"],"core-js/features/typed-array/filter-out":["esnext.typed-array.filter-out"],"core-js/features/typed-array/filter-reject":["esnext.typed-array.filter-reject"],"core-js/features/typed-array/find":["es.typed-array.find"],"core-js/features/typed-array/find-index":["es.typed-array.find-index"],"core-js/features/typed-array/find-last":["es.typed-array.find-last","esnext.typed-array.find-last"],"core-js/features/typed-array/find-last-index":["es.typed-array.find-last-index","esnext.typed-array.find-last-index"],"core-js/features/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/for-each":["es.typed-array.for-each"],"core-js/features/typed-array/from":["es.typed-array.from"],"core-js/features/typed-array/from-async":["esnext.typed-array.from-async"],"core-js/features/typed-array/group-by":["esnext.typed-array.group-by"],"core-js/features/typed-array/includes":["es.typed-array.includes"],"core-js/features/typed-array/index-of":["es.typed-array.index-of"],"core-js/features/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/join":["es.typed-array.join"],"core-js/features/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/features/typed-array/map":["es.typed-array.map"],"core-js/features/typed-array/methods":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/of":["es.typed-array.of"],"core-js/features/typed-array/reduce":["es.typed-array.reduce"],"core-js/features/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/features/typed-array/reverse":["es.typed-array.reverse"],"core-js/features/typed-array/set":["es.typed-array.set"],"core-js/features/typed-array/slice":["es.typed-array.slice"],"core-js/features/typed-array/some":["es.typed-array.some"],"core-js/features/typed-array/sort":["es.typed-array.sort"],"core-js/features/typed-array/subarray":["es.typed-array.subarray"],"core-js/features/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/features/typed-array/to-reversed":["es.typed-array.to-reversed","esnext.typed-array.to-reversed"],"core-js/features/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted","esnext.typed-array.to-sorted"],"core-js/features/typed-array/to-spliced":["esnext.typed-array.to-spliced"],"core-js/features/typed-array/to-string":["es.typed-array.to-string"],"core-js/features/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/features/typed-array/unique-by":["es.map","esnext.typed-array.unique-by"],"core-js/features/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/with":["es.typed-array.with","esnext.typed-array.with"],"core-js/features/unescape":["es.unescape"],"core-js/features/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/features/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/features/url/can-parse":["web.url","web.url.can-parse"],"core-js/features/url/to-json":["web.url.to-json"],"core-js/features/weak-map":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-map","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","web.dom-collections.iterator"],"core-js/features/weak-map/delete-all":["es.weak-map","esnext.weak-map.delete-all"],"core-js/features/weak-map/emplace":["es.weak-map","esnext.weak-map.emplace"],"core-js/features/weak-map/from":["es.array.iterator","es.string.iterator","es.weak-map","esnext.weak-map.from","web.dom-collections.iterator"],"core-js/features/weak-map/of":["es.array.iterator","es.weak-map","esnext.weak-map.of"],"core-js/features/weak-map/upsert":["es.weak-map","esnext.weak-map.upsert"],"core-js/features/weak-set":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-set","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.iterator"],"core-js/features/weak-set/add-all":["es.weak-set","esnext.weak-set.add-all"],"core-js/features/weak-set/delete-all":["es.weak-set","esnext.weak-set.delete-all"],"core-js/features/weak-set/from":["es.array.iterator","es.string.iterator","es.weak-set","esnext.weak-set.from","web.dom-collections.iterator"],"core-js/features/weak-set/of":["es.array.iterator","es.weak-set","esnext.weak-set.of"],"core-js/full":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/full/aggregate-error":["es.error.cause","es.aggregate-error","es.aggregate-error.cause","es.array.iterator","es.string.iterator","esnext.aggregate-error","web.dom-collections.iterator"],"core-js/full/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/full/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/full/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/full/array-buffer/detached":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached"],"core-js/full/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/full/array-buffer/slice":["es.array-buffer.slice"],"core-js/full/array-buffer/transfer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer"],"core-js/full/array-buffer/transfer-to-fixed-length":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer-to-fixed-length"],"core-js/full/array/at":["es.array.at","esnext.array.at"],"core-js/full/array/concat":["es.array.concat"],"core-js/full/array/copy-within":["es.array.copy-within"],"core-js/full/array/entries":["es.array.iterator","es.object.to-string"],"core-js/full/array/every":["es.array.every"],"core-js/full/array/fill":["es.array.fill"],"core-js/full/array/filter":["es.array.filter"],"core-js/full/array/filter-out":["esnext.array.filter-out"],"core-js/full/array/filter-reject":["esnext.array.filter-reject"],"core-js/full/array/find":["es.array.find"],"core-js/full/array/find-index":["es.array.find-index"],"core-js/full/array/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/full/array/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/full/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/full/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/full/array/for-each":["es.array.for-each"],"core-js/full/array/from":["es.array.from","es.string.iterator"],"core-js/full/array/from-async":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async"],"core-js/full/array/group":["esnext.array.group"],"core-js/full/array/group-by":["esnext.array.group-by"],"core-js/full/array/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/full/array/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/full/array/includes":["es.array.includes"],"core-js/full/array/index-of":["es.array.index-of"],"core-js/full/array/is-array":["es.array.is-array"],"core-js/full/array/is-template-object":["esnext.array.is-template-object"],"core-js/full/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/full/array/join":["es.array.join"],"core-js/full/array/keys":["es.array.iterator","es.object.to-string"],"core-js/full/array/last-index":["esnext.array.last-index"],"core-js/full/array/last-index-of":["es.array.last-index-of"],"core-js/full/array/last-item":["esnext.array.last-item"],"core-js/full/array/map":["es.array.map"],"core-js/full/array/of":["es.array.of"],"core-js/full/array/push":["es.array.push"],"core-js/full/array/reduce":["es.array.reduce"],"core-js/full/array/reduce-right":["es.array.reduce-right"],"core-js/full/array/reverse":["es.array.reverse"],"core-js/full/array/slice":["es.array.slice"],"core-js/full/array/some":["es.array.some"],"core-js/full/array/sort":["es.array.sort"],"core-js/full/array/splice":["es.array.splice"],"core-js/full/array/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/full/array/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/full/array/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/full/array/unique-by":["es.map","esnext.array.unique-by"],"core-js/full/array/unshift":["es.array.unshift"],"core-js/full/array/values":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/full/array/virtual/at":["es.array.at","esnext.array.at"],"core-js/full/array/virtual/concat":["es.array.concat"],"core-js/full/array/virtual/copy-within":["es.array.copy-within"],"core-js/full/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/every":["es.array.every"],"core-js/full/array/virtual/fill":["es.array.fill"],"core-js/full/array/virtual/filter":["es.array.filter"],"core-js/full/array/virtual/filter-out":["esnext.array.filter-out"],"core-js/full/array/virtual/filter-reject":["esnext.array.filter-reject"],"core-js/full/array/virtual/find":["es.array.find"],"core-js/full/array/virtual/find-index":["es.array.find-index"],"core-js/full/array/virtual/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/full/array/virtual/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/full/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/full/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/full/array/virtual/for-each":["es.array.for-each"],"core-js/full/array/virtual/group":["esnext.array.group"],"core-js/full/array/virtual/group-by":["esnext.array.group-by"],"core-js/full/array/virtual/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/full/array/virtual/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/full/array/virtual/includes":["es.array.includes"],"core-js/full/array/virtual/index-of":["es.array.index-of"],"core-js/full/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/join":["es.array.join"],"core-js/full/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/full/array/virtual/map":["es.array.map"],"core-js/full/array/virtual/push":["es.array.push"],"core-js/full/array/virtual/reduce":["es.array.reduce"],"core-js/full/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/full/array/virtual/reverse":["es.array.reverse"],"core-js/full/array/virtual/slice":["es.array.slice"],"core-js/full/array/virtual/some":["es.array.some"],"core-js/full/array/virtual/sort":["es.array.sort"],"core-js/full/array/virtual/splice":["es.array.splice"],"core-js/full/array/virtual/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/full/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/full/array/virtual/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/full/array/virtual/unique-by":["es.map","esnext.array.unique-by"],"core-js/full/array/virtual/unshift":["es.array.unshift"],"core-js/full/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/with":["es.array.with","esnext.array.with"],"core-js/full/array/with":["es.array.with","esnext.array.with"],"core-js/full/async-disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/full/async-disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/full/async-iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/full/async-iterator/as-indexed-pairs":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs"],"core-js/full/async-iterator/async-dispose":["es.object.to-string","es.promise","esnext.async-iterator.async-dispose"],"core-js/full/async-iterator/drop":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.drop"],"core-js/full/async-iterator/every":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.every"],"core-js/full/async-iterator/filter":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.filter"],"core-js/full/async-iterator/find":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.find"],"core-js/full/async-iterator/flat-map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.flat-map"],"core-js/full/async-iterator/for-each":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.for-each"],"core-js/full/async-iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/full/async-iterator/indexed":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.indexed"],"core-js/full/async-iterator/map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.map"],"core-js/full/async-iterator/reduce":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.reduce"],"core-js/full/async-iterator/some":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.some"],"core-js/full/async-iterator/take":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.take"],"core-js/full/async-iterator/to-array":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.to-array"],"core-js/full/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/full/bigint":["es.object.to-string","esnext.bigint.range"],"core-js/full/bigint/range":["es.object.to-string","esnext.bigint.range"],"core-js/full/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/full/clear-immediate":["web.immediate"],"core-js/full/composite-key":["esnext.composite-key"],"core-js/full/composite-symbol":["es.symbol","esnext.composite-symbol"],"core-js/full/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string"],"core-js/full/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/full/date/get-year":["es.date.get-year"],"core-js/full/date/now":["es.date.now"],"core-js/full/date/set-year":["es.date.set-year"],"core-js/full/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/full/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/full/date/to-json":["es.date.to-json"],"core-js/full/date/to-primitive":["es.date.to-primitive"],"core-js/full/date/to-string":["es.date.to-string"],"core-js/full/disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/full/disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/full/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/full/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/full/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/full/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/full/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/full/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/full/error":["es.error.cause","es.error.to-string"],"core-js/full/error/constructor":["es.error.cause"],"core-js/full/error/to-string":["es.error.to-string"],"core-js/full/escape":["es.escape"],"core-js/full/function":["es.function.bind","es.function.has-instance","es.function.name","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this"],"core-js/full/function/bind":["es.function.bind"],"core-js/full/function/demethodize":["esnext.function.demethodize"],"core-js/full/function/has-instance":["es.function.has-instance"],"core-js/full/function/is-callable":["esnext.function.is-callable"],"core-js/full/function/is-constructor":["esnext.function.is-constructor"],"core-js/full/function/metadata":["esnext.function.metadata"],"core-js/full/function/name":["es.function.name"],"core-js/full/function/un-this":["esnext.function.un-this"],"core-js/full/function/virtual":["es.function.bind","esnext.function.demethodize","esnext.function.un-this"],"core-js/full/function/virtual/bind":["es.function.bind"],"core-js/full/function/virtual/demethodize":["esnext.function.demethodize"],"core-js/full/function/virtual/un-this":["esnext.function.un-this"],"core-js/full/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/full/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/full/global-this":["es.global-this","esnext.global-this"],"core-js/full/instance/at":["es.array.at","es.string.at-alternative","esnext.array.at","esnext.string.at"],"core-js/full/instance/bind":["es.function.bind"],"core-js/full/instance/code-point-at":["es.string.code-point-at"],"core-js/full/instance/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/full/instance/concat":["es.array.concat"],"core-js/full/instance/copy-within":["es.array.copy-within"],"core-js/full/instance/demethodize":["esnext.function.demethodize"],"core-js/full/instance/ends-with":["es.string.ends-with"],"core-js/full/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/full/instance/every":["es.array.every"],"core-js/full/instance/fill":["es.array.fill"],"core-js/full/instance/filter":["es.array.filter"],"core-js/full/instance/filter-out":["esnext.array.filter-out"],"core-js/full/instance/filter-reject":["esnext.array.filter-reject"],"core-js/full/instance/find":["es.array.find"],"core-js/full/instance/find-index":["es.array.find-index"],"core-js/full/instance/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/full/instance/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/full/instance/flags":["es.regexp.flags"],"core-js/full/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/full/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/full/instance/for-each":["es.array.for-each","web.dom-collections.iterator"],"core-js/full/instance/group":["esnext.array.group"],"core-js/full/instance/group-by":["esnext.array.group-by"],"core-js/full/instance/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/full/instance/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/full/instance/includes":["es.array.includes","es.string.includes"],"core-js/full/instance/index-of":["es.array.index-of"],"core-js/full/instance/is-well-formed":["es.string.is-well-formed"],"core-js/full/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/full/instance/last-index-of":["es.array.last-index-of"],"core-js/full/instance/map":["es.array.map"],"core-js/full/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/full/instance/pad-end":["es.string.pad-end"],"core-js/full/instance/pad-start":["es.string.pad-start"],"core-js/full/instance/push":["es.array.push"],"core-js/full/instance/reduce":["es.array.reduce"],"core-js/full/instance/reduce-right":["es.array.reduce-right"],"core-js/full/instance/repeat":["es.string.repeat"],"core-js/full/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/full/instance/reverse":["es.array.reverse"],"core-js/full/instance/slice":["es.array.slice"],"core-js/full/instance/some":["es.array.some"],"core-js/full/instance/sort":["es.array.sort"],"core-js/full/instance/splice":["es.array.splice"],"core-js/full/instance/starts-with":["es.string.starts-with"],"core-js/full/instance/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/full/instance/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/full/instance/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/full/instance/to-well-formed":["es.string.to-well-formed"],"core-js/full/instance/trim":["es.string.trim"],"core-js/full/instance/trim-end":["es.string.trim-end"],"core-js/full/instance/trim-left":["es.string.trim-start"],"core-js/full/instance/trim-right":["es.string.trim-end"],"core-js/full/instance/trim-start":["es.string.trim-start"],"core-js/full/instance/un-this":["esnext.function.un-this"],"core-js/full/instance/unique-by":["es.map","esnext.array.unique-by"],"core-js/full/instance/unshift":["es.array.unshift"],"core-js/full/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/full/instance/with":["es.array.with","esnext.array.with"],"core-js/full/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/full/iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/full/iterator/as-indexed-pairs":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs"],"core-js/full/iterator/dispose":["esnext.iterator.dispose"],"core-js/full/iterator/drop":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.drop"],"core-js/full/iterator/every":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.every"],"core-js/full/iterator/filter":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.filter"],"core-js/full/iterator/find":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.find"],"core-js/full/iterator/flat-map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.flat-map"],"core-js/full/iterator/for-each":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.for-each"],"core-js/full/iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/full/iterator/indexed":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.indexed"],"core-js/full/iterator/map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.map"],"core-js/full/iterator/range":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.range"],"core-js/full/iterator/reduce":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.reduce"],"core-js/full/iterator/some":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.some"],"core-js/full/iterator/take":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.take"],"core-js/full/iterator/to-array":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.to-array"],"core-js/full/iterator/to-async":["es.object.to-string","es.promise","esnext.iterator.constructor","esnext.iterator.to-async"],"core-js/full/json":["es.json.stringify","es.json.to-string-tag","es.object.create","es.object.freeze","es.object.keys","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/full/json/is-raw-json":["esnext.json.is-raw-json"],"core-js/full/json/parse":["es.object.keys","esnext.json.parse"],"core-js/full/json/raw-json":["es.object.create","es.object.freeze","esnext.json.raw-json"],"core-js/full/json/stringify":["es.json.stringify"],"core-js/full/json/to-string-tag":["es.json.to-string-tag"],"core-js/full/map":["es.array.iterator","es.map","es.object.to-string","es.string.iterator","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","web.dom-collections.iterator"],"core-js/full/map/delete-all":["es.map","esnext.map.delete-all"],"core-js/full/map/emplace":["es.map","esnext.map.emplace"],"core-js/full/map/every":["es.map","esnext.map.every"],"core-js/full/map/filter":["es.map","esnext.map.filter"],"core-js/full/map/find":["es.map","esnext.map.find"],"core-js/full/map/find-key":["es.map","esnext.map.find-key"],"core-js/full/map/from":["es.array.iterator","es.map","es.string.iterator","esnext.map.from","web.dom-collections.iterator"],"core-js/full/map/group-by":["es.map","esnext.map.group-by"],"core-js/full/map/includes":["es.map","esnext.map.includes"],"core-js/full/map/key-by":["es.map","esnext.map.key-by"],"core-js/full/map/key-of":["es.map","esnext.map.key-of"],"core-js/full/map/map-keys":["es.map","esnext.map.map-keys"],"core-js/full/map/map-values":["es.map","esnext.map.map-values"],"core-js/full/map/merge":["es.map","esnext.map.merge"],"core-js/full/map/of":["es.array.iterator","es.map","esnext.map.of"],"core-js/full/map/reduce":["es.map","esnext.map.reduce"],"core-js/full/map/some":["es.map","esnext.map.some"],"core-js/full/map/update":["es.map","esnext.map.update"],"core-js/full/map/update-or-insert":["es.map","esnext.map.update-or-insert"],"core-js/full/map/upsert":["es.map","esnext.map.upsert"],"core-js/full/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh"],"core-js/full/math/acosh":["es.math.acosh"],"core-js/full/math/asinh":["es.math.asinh"],"core-js/full/math/atanh":["es.math.atanh"],"core-js/full/math/cbrt":["es.math.cbrt"],"core-js/full/math/clamp":["esnext.math.clamp"],"core-js/full/math/clz32":["es.math.clz32"],"core-js/full/math/cosh":["es.math.cosh"],"core-js/full/math/deg-per-rad":["esnext.math.deg-per-rad"],"core-js/full/math/degrees":["esnext.math.degrees"],"core-js/full/math/expm1":["es.math.expm1"],"core-js/full/math/fround":["es.math.fround"],"core-js/full/math/fscale":["esnext.math.fscale"],"core-js/full/math/hypot":["es.math.hypot"],"core-js/full/math/iaddh":["esnext.math.iaddh"],"core-js/full/math/imul":["es.math.imul"],"core-js/full/math/imulh":["esnext.math.imulh"],"core-js/full/math/isubh":["esnext.math.isubh"],"core-js/full/math/log10":["es.math.log10"],"core-js/full/math/log1p":["es.math.log1p"],"core-js/full/math/log2":["es.math.log2"],"core-js/full/math/rad-per-deg":["esnext.math.rad-per-deg"],"core-js/full/math/radians":["esnext.math.radians"],"core-js/full/math/scale":["esnext.math.scale"],"core-js/full/math/seeded-prng":["esnext.math.seeded-prng"],"core-js/full/math/sign":["es.math.sign"],"core-js/full/math/signbit":["esnext.math.signbit"],"core-js/full/math/sinh":["es.math.sinh"],"core-js/full/math/tanh":["es.math.tanh"],"core-js/full/math/to-string-tag":["es.math.to-string-tag"],"core-js/full/math/trunc":["es.math.trunc"],"core-js/full/math/umulh":["esnext.math.umulh"],"core-js/full/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.to-string","esnext.number.from-string","esnext.number.range"],"core-js/full/number/constructor":["es.number.constructor"],"core-js/full/number/epsilon":["es.number.epsilon"],"core-js/full/number/from-string":["esnext.number.from-string"],"core-js/full/number/is-finite":["es.number.is-finite"],"core-js/full/number/is-integer":["es.number.is-integer"],"core-js/full/number/is-nan":["es.number.is-nan"],"core-js/full/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/full/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/full/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/full/number/parse-float":["es.number.parse-float"],"core-js/full/number/parse-int":["es.number.parse-int"],"core-js/full/number/range":["es.object.to-string","esnext.number.range"],"core-js/full/number/to-exponential":["es.number.to-exponential"],"core-js/full/number/to-fixed":["es.number.to-fixed"],"core-js/full/number/to-precision":["es.number.to-precision"],"core-js/full/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/full/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/full/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/full/number/virtual/to-precision":["es.number.to-precision"],"core-js/full/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","web.dom-collections.iterator"],"core-js/full/object/assign":["es.object.assign"],"core-js/full/object/create":["es.object.create"],"core-js/full/object/define-getter":["es.object.define-getter"],"core-js/full/object/define-properties":["es.object.define-properties"],"core-js/full/object/define-property":["es.object.define-property"],"core-js/full/object/define-setter":["es.object.define-setter"],"core-js/full/object/entries":["es.object.entries"],"core-js/full/object/freeze":["es.object.freeze"],"core-js/full/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/full/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/full/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/full/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/full/object/get-own-property-symbols":["es.symbol"],"core-js/full/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/full/object/group-by":["es.object.create","esnext.object.group-by"],"core-js/full/object/has-own":["es.object.has-own","esnext.object.has-own"],"core-js/full/object/is":["es.object.is"],"core-js/full/object/is-extensible":["es.object.is-extensible"],"core-js/full/object/is-frozen":["es.object.is-frozen"],"core-js/full/object/is-sealed":["es.object.is-sealed"],"core-js/full/object/iterate-entries":["esnext.object.iterate-entries"],"core-js/full/object/iterate-keys":["esnext.object.iterate-keys"],"core-js/full/object/iterate-values":["esnext.object.iterate-values"],"core-js/full/object/keys":["es.object.keys"],"core-js/full/object/lookup-getter":["es.object.lookup-getter"],"core-js/full/object/lookup-setter":["es.object.lookup-setter"],"core-js/full/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/full/object/proto":["es.object.proto"],"core-js/full/object/seal":["es.object.seal"],"core-js/full/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/full/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/full/object/values":["es.object.values"],"core-js/full/observable":["es.object.to-string","es.string.iterator","esnext.observable","esnext.symbol.observable","web.dom-collections.iterator"],"core-js/full/parse-float":["es.parse-float"],"core-js/full/parse-int":["es.parse-int"],"core-js/full/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator","esnext.aggregate-error","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","web.dom-collections.iterator"],"core-js/full/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","esnext.promise.all-settled","web.dom-collections.iterator"],"core-js/full/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","esnext.aggregate-error","esnext.promise.any","web.dom-collections.iterator"],"core-js/full/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/full/promise/try":["es.promise","esnext.promise.try"],"core-js/full/promise/with-resolvers":["es.promise","esnext.promise.with-resolvers"],"core-js/full/queue-microtask":["web.queue-microtask"],"core-js/full/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/full/reflect/apply":["es.reflect.apply"],"core-js/full/reflect/construct":["es.reflect.construct"],"core-js/full/reflect/define-metadata":["esnext.reflect.define-metadata"],"core-js/full/reflect/define-property":["es.reflect.define-property"],"core-js/full/reflect/delete-metadata":["esnext.reflect.delete-metadata"],"core-js/full/reflect/delete-property":["es.reflect.delete-property"],"core-js/full/reflect/get":["es.reflect.get"],"core-js/full/reflect/get-metadata":["esnext.reflect.get-metadata"],"core-js/full/reflect/get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/full/reflect/get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/full/reflect/get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/full/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/full/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/full/reflect/has":["es.reflect.has"],"core-js/full/reflect/has-metadata":["esnext.reflect.has-metadata"],"core-js/full/reflect/has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/full/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/full/reflect/metadata":["esnext.reflect.metadata"],"core-js/full/reflect/own-keys":["es.reflect.own-keys"],"core-js/full/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/full/reflect/set":["es.reflect.set"],"core-js/full/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/full/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/full/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/full/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/full/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/full/regexp/flags":["es.regexp.flags"],"core-js/full/regexp/match":["es.regexp.exec","es.string.match"],"core-js/full/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/full/regexp/search":["es.regexp.exec","es.string.search"],"core-js/full/regexp/split":["es.regexp.exec","es.string.split"],"core-js/full/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/full/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/full/regexp/to-string":["es.regexp.to-string"],"core-js/full/self":["web.self"],"core-js/full/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/full/set-immediate":["web.immediate"],"core-js/full/set-interval":["web.timers"],"core-js/full/set-timeout":["web.timers"],"core-js/full/set/add-all":["es.set","esnext.set.add-all"],"core-js/full/set/delete-all":["es.set","esnext.set.delete-all"],"core-js/full/set/difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.difference.v2","esnext.set.difference","web.dom-collections.iterator"],"core-js/full/set/every":["es.set","esnext.set.every"],"core-js/full/set/filter":["es.set","esnext.set.filter"],"core-js/full/set/find":["es.set","esnext.set.find"],"core-js/full/set/from":["es.array.iterator","es.set","es.string.iterator","esnext.set.from","web.dom-collections.iterator"],"core-js/full/set/intersection":["es.array.iterator","es.set","es.string.iterator","esnext.set.intersection.v2","esnext.set.intersection","web.dom-collections.iterator"],"core-js/full/set/is-disjoint-from":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","web.dom-collections.iterator"],"core-js/full/set/is-subset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","web.dom-collections.iterator"],"core-js/full/set/is-superset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","web.dom-collections.iterator"],"core-js/full/set/join":["es.set","esnext.set.join"],"core-js/full/set/map":["es.set","esnext.set.map"],"core-js/full/set/of":["es.array.iterator","es.set","esnext.set.of"],"core-js/full/set/reduce":["es.set","esnext.set.reduce"],"core-js/full/set/some":["es.set","esnext.set.some"],"core-js/full/set/symmetric-difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","web.dom-collections.iterator"],"core-js/full/set/union":["es.array.iterator","es.set","es.string.iterator","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/full/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.weak-map","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/full/string/anchor":["es.string.anchor"],"core-js/full/string/at":["es.string.at-alternative","esnext.string.at"],"core-js/full/string/big":["es.string.big"],"core-js/full/string/blink":["es.string.blink"],"core-js/full/string/bold":["es.string.bold"],"core-js/full/string/code-point-at":["es.string.code-point-at"],"core-js/full/string/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/full/string/cooked":["esnext.string.cooked"],"core-js/full/string/dedent":["es.string.from-code-point","es.weak-map","esnext.string.dedent"],"core-js/full/string/ends-with":["es.string.ends-with"],"core-js/full/string/fixed":["es.string.fixed"],"core-js/full/string/fontcolor":["es.string.fontcolor"],"core-js/full/string/fontsize":["es.string.fontsize"],"core-js/full/string/from-code-point":["es.string.from-code-point"],"core-js/full/string/includes":["es.string.includes"],"core-js/full/string/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/full/string/italics":["es.string.italics"],"core-js/full/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/full/string/link":["es.string.link"],"core-js/full/string/match":["es.regexp.exec","es.string.match"],"core-js/full/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/full/string/pad-end":["es.string.pad-end"],"core-js/full/string/pad-start":["es.string.pad-start"],"core-js/full/string/raw":["es.string.raw"],"core-js/full/string/repeat":["es.string.repeat"],"core-js/full/string/replace":["es.regexp.exec","es.string.replace"],"core-js/full/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/full/string/search":["es.regexp.exec","es.string.search"],"core-js/full/string/small":["es.string.small"],"core-js/full/string/split":["es.regexp.exec","es.string.split"],"core-js/full/string/starts-with":["es.string.starts-with"],"core-js/full/string/strike":["es.string.strike"],"core-js/full/string/sub":["es.string.sub"],"core-js/full/string/substr":["es.string.substr"],"core-js/full/string/sup":["es.string.sup"],"core-js/full/string/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/full/string/trim":["es.string.trim"],"core-js/full/string/trim-end":["es.string.trim-end"],"core-js/full/string/trim-left":["es.string.trim-start"],"core-js/full/string/trim-right":["es.string.trim-end"],"core-js/full/string/trim-start":["es.string.trim-start"],"core-js/full/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.at","esnext.string.code-points","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/full/string/virtual/anchor":["es.string.anchor"],"core-js/full/string/virtual/at":["es.string.at-alternative","esnext.string.at"],"core-js/full/string/virtual/big":["es.string.big"],"core-js/full/string/virtual/blink":["es.string.blink"],"core-js/full/string/virtual/bold":["es.string.bold"],"core-js/full/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/full/string/virtual/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/full/string/virtual/ends-with":["es.string.ends-with"],"core-js/full/string/virtual/fixed":["es.string.fixed"],"core-js/full/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/full/string/virtual/fontsize":["es.string.fontsize"],"core-js/full/string/virtual/includes":["es.string.includes"],"core-js/full/string/virtual/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/full/string/virtual/italics":["es.string.italics"],"core-js/full/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/full/string/virtual/link":["es.string.link"],"core-js/full/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/full/string/virtual/pad-end":["es.string.pad-end"],"core-js/full/string/virtual/pad-start":["es.string.pad-start"],"core-js/full/string/virtual/repeat":["es.string.repeat"],"core-js/full/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/full/string/virtual/small":["es.string.small"],"core-js/full/string/virtual/starts-with":["es.string.starts-with"],"core-js/full/string/virtual/strike":["es.string.strike"],"core-js/full/string/virtual/sub":["es.string.sub"],"core-js/full/string/virtual/substr":["es.string.substr"],"core-js/full/string/virtual/sup":["es.string.sup"],"core-js/full/string/virtual/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/full/string/virtual/trim":["es.string.trim"],"core-js/full/string/virtual/trim-end":["es.string.trim-end"],"core-js/full/string/virtual/trim-left":["es.string.trim-start"],"core-js/full/string/virtual/trim-right":["es.string.trim-end"],"core-js/full/string/virtual/trim-start":["es.string.trim-start"],"core-js/full/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/full/suppressed-error":["es.error.cause","es.error.to-string","esnext.suppressed-error.constructor"],"core-js/full/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","esnext.function.metadata","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","web.dom-collections.iterator"],"core-js/full/symbol/async-dispose":["esnext.symbol.async-dispose"],"core-js/full/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/full/symbol/description":["es.symbol.description"],"core-js/full/symbol/dispose":["esnext.symbol.dispose"],"core-js/full/symbol/for":["es.symbol"],"core-js/full/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/full/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/full/symbol/is-registered":["es.symbol","esnext.symbol.is-registered"],"core-js/full/symbol/is-registered-symbol":["es.symbol","esnext.symbol.is-registered-symbol"],"core-js/full/symbol/is-well-known":["es.symbol","esnext.symbol.is-well-known"],"core-js/full/symbol/is-well-known-symbol":["es.symbol","esnext.symbol.is-well-known-symbol"],"core-js/full/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/full/symbol/key-for":["es.symbol"],"core-js/full/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/full/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/full/symbol/matcher":["esnext.symbol.matcher"],"core-js/full/symbol/metadata":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/full/symbol/metadata-key":["esnext.symbol.metadata-key"],"core-js/full/symbol/observable":["esnext.symbol.observable"],"core-js/full/symbol/pattern-match":["esnext.symbol.pattern-match"],"core-js/full/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/full/symbol/replace-all":["esnext.symbol.replace-all"],"core-js/full/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/full/symbol/species":["es.symbol.species"],"core-js/full/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/full/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/full/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/full/symbol/unscopables":["es.symbol.unscopables"],"core-js/full/typed-array":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/at":["es.typed-array.at","esnext.typed-array.at"],"core-js/full/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/full/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/every":["es.typed-array.every"],"core-js/full/typed-array/fill":["es.typed-array.fill"],"core-js/full/typed-array/filter":["es.typed-array.filter"],"core-js/full/typed-array/filter-out":["esnext.typed-array.filter-out"],"core-js/full/typed-array/filter-reject":["esnext.typed-array.filter-reject"],"core-js/full/typed-array/find":["es.typed-array.find"],"core-js/full/typed-array/find-index":["es.typed-array.find-index"],"core-js/full/typed-array/find-last":["es.typed-array.find-last","esnext.typed-array.find-last"],"core-js/full/typed-array/find-last-index":["es.typed-array.find-last-index","esnext.typed-array.find-last-index"],"core-js/full/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/for-each":["es.typed-array.for-each"],"core-js/full/typed-array/from":["es.typed-array.from"],"core-js/full/typed-array/from-async":["esnext.typed-array.from-async"],"core-js/full/typed-array/group-by":["esnext.typed-array.group-by"],"core-js/full/typed-array/includes":["es.typed-array.includes"],"core-js/full/typed-array/index-of":["es.typed-array.index-of"],"core-js/full/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/join":["es.typed-array.join"],"core-js/full/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/full/typed-array/map":["es.typed-array.map"],"core-js/full/typed-array/methods":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/of":["es.typed-array.of"],"core-js/full/typed-array/reduce":["es.typed-array.reduce"],"core-js/full/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/full/typed-array/reverse":["es.typed-array.reverse"],"core-js/full/typed-array/set":["es.typed-array.set"],"core-js/full/typed-array/slice":["es.typed-array.slice"],"core-js/full/typed-array/some":["es.typed-array.some"],"core-js/full/typed-array/sort":["es.typed-array.sort"],"core-js/full/typed-array/subarray":["es.typed-array.subarray"],"core-js/full/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/full/typed-array/to-reversed":["es.typed-array.to-reversed","esnext.typed-array.to-reversed"],"core-js/full/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted","esnext.typed-array.to-sorted"],"core-js/full/typed-array/to-spliced":["esnext.typed-array.to-spliced"],"core-js/full/typed-array/to-string":["es.typed-array.to-string"],"core-js/full/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with"],"core-js/full/typed-array/unique-by":["es.map","esnext.typed-array.unique-by"],"core-js/full/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/with":["es.typed-array.with","esnext.typed-array.with"],"core-js/full/unescape":["es.unescape"],"core-js/full/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/full/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/full/url/can-parse":["web.url","web.url.can-parse"],"core-js/full/url/to-json":["web.url.to-json"],"core-js/full/weak-map":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-map","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","web.dom-collections.iterator"],"core-js/full/weak-map/delete-all":["es.weak-map","esnext.weak-map.delete-all"],"core-js/full/weak-map/emplace":["es.weak-map","esnext.weak-map.emplace"],"core-js/full/weak-map/from":["es.array.iterator","es.string.iterator","es.weak-map","esnext.weak-map.from","web.dom-collections.iterator"],"core-js/full/weak-map/of":["es.array.iterator","es.weak-map","esnext.weak-map.of"],"core-js/full/weak-map/upsert":["es.weak-map","esnext.weak-map.upsert"],"core-js/full/weak-set":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-set","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.iterator"],"core-js/full/weak-set/add-all":["es.weak-set","esnext.weak-set.add-all"],"core-js/full/weak-set/delete-all":["es.weak-set","esnext.weak-set.delete-all"],"core-js/full/weak-set/from":["es.array.iterator","es.string.iterator","es.weak-set","esnext.weak-set.from","web.dom-collections.iterator"],"core-js/full/weak-set/of":["es.array.iterator","es.weak-set","esnext.weak-set.of"],"core-js/modules/es.aggregate-error":["es.aggregate-error"],"core-js/modules/es.aggregate-error.cause":["es.aggregate-error.cause"],"core-js/modules/es.aggregate-error.constructor":["es.aggregate-error.constructor"],"core-js/modules/es.array-buffer.constructor":["es.array-buffer.constructor"],"core-js/modules/es.array-buffer.is-view":["es.array-buffer.is-view"],"core-js/modules/es.array-buffer.slice":["es.array-buffer.slice"],"core-js/modules/es.array.at":["es.array.at"],"core-js/modules/es.array.concat":["es.array.concat"],"core-js/modules/es.array.copy-within":["es.array.copy-within"],"core-js/modules/es.array.every":["es.array.every"],"core-js/modules/es.array.fill":["es.array.fill"],"core-js/modules/es.array.filter":["es.array.filter"],"core-js/modules/es.array.find":["es.array.find"],"core-js/modules/es.array.find-index":["es.array.find-index"],"core-js/modules/es.array.find-last":["es.array.find-last"],"core-js/modules/es.array.find-last-index":["es.array.find-last-index"],"core-js/modules/es.array.flat":["es.array.flat"],"core-js/modules/es.array.flat-map":["es.array.flat-map"],"core-js/modules/es.array.for-each":["es.array.for-each"],"core-js/modules/es.array.from":["es.array.from"],"core-js/modules/es.array.includes":["es.array.includes"],"core-js/modules/es.array.index-of":["es.array.index-of"],"core-js/modules/es.array.is-array":["es.array.is-array"],"core-js/modules/es.array.iterator":["es.array.iterator"],"core-js/modules/es.array.join":["es.array.join"],"core-js/modules/es.array.last-index-of":["es.array.last-index-of"],"core-js/modules/es.array.map":["es.array.map"],"core-js/modules/es.array.of":["es.array.of"],"core-js/modules/es.array.push":["es.array.push"],"core-js/modules/es.array.reduce":["es.array.reduce"],"core-js/modules/es.array.reduce-right":["es.array.reduce-right"],"core-js/modules/es.array.reverse":["es.array.reverse"],"core-js/modules/es.array.slice":["es.array.slice"],"core-js/modules/es.array.some":["es.array.some"],"core-js/modules/es.array.sort":["es.array.sort"],"core-js/modules/es.array.species":["es.array.species"],"core-js/modules/es.array.splice":["es.array.splice"],"core-js/modules/es.array.to-reversed":["es.array.to-reversed"],"core-js/modules/es.array.to-sorted":["es.array.to-sorted"],"core-js/modules/es.array.to-spliced":["es.array.to-spliced"],"core-js/modules/es.array.unscopables.flat":["es.array.unscopables.flat"],"core-js/modules/es.array.unscopables.flat-map":["es.array.unscopables.flat-map"],"core-js/modules/es.array.unshift":["es.array.unshift"],"core-js/modules/es.array.with":["es.array.with"],"core-js/modules/es.data-view":["es.data-view"],"core-js/modules/es.data-view.constructor":["es.data-view.constructor"],"core-js/modules/es.date.get-year":["es.date.get-year"],"core-js/modules/es.date.now":["es.date.now"],"core-js/modules/es.date.set-year":["es.date.set-year"],"core-js/modules/es.date.to-gmt-string":["es.date.to-gmt-string"],"core-js/modules/es.date.to-iso-string":["es.date.to-iso-string"],"core-js/modules/es.date.to-json":["es.date.to-json"],"core-js/modules/es.date.to-primitive":["es.date.to-primitive"],"core-js/modules/es.date.to-string":["es.date.to-string"],"core-js/modules/es.error.cause":["es.error.cause"],"core-js/modules/es.error.to-string":["es.error.to-string"],"core-js/modules/es.escape":["es.escape"],"core-js/modules/es.function.bind":["es.function.bind"],"core-js/modules/es.function.has-instance":["es.function.has-instance"],"core-js/modules/es.function.name":["es.function.name"],"core-js/modules/es.global-this":["es.global-this"],"core-js/modules/es.json.stringify":["es.json.stringify"],"core-js/modules/es.json.to-string-tag":["es.json.to-string-tag"],"core-js/modules/es.map":["es.map"],"core-js/modules/es.map.constructor":["es.map.constructor"],"core-js/modules/es.math.acosh":["es.math.acosh"],"core-js/modules/es.math.asinh":["es.math.asinh"],"core-js/modules/es.math.atanh":["es.math.atanh"],"core-js/modules/es.math.cbrt":["es.math.cbrt"],"core-js/modules/es.math.clz32":["es.math.clz32"],"core-js/modules/es.math.cosh":["es.math.cosh"],"core-js/modules/es.math.expm1":["es.math.expm1"],"core-js/modules/es.math.fround":["es.math.fround"],"core-js/modules/es.math.hypot":["es.math.hypot"],"core-js/modules/es.math.imul":["es.math.imul"],"core-js/modules/es.math.log10":["es.math.log10"],"core-js/modules/es.math.log1p":["es.math.log1p"],"core-js/modules/es.math.log2":["es.math.log2"],"core-js/modules/es.math.sign":["es.math.sign"],"core-js/modules/es.math.sinh":["es.math.sinh"],"core-js/modules/es.math.tanh":["es.math.tanh"],"core-js/modules/es.math.to-string-tag":["es.math.to-string-tag"],"core-js/modules/es.math.trunc":["es.math.trunc"],"core-js/modules/es.number.constructor":["es.number.constructor"],"core-js/modules/es.number.epsilon":["es.number.epsilon"],"core-js/modules/es.number.is-finite":["es.number.is-finite"],"core-js/modules/es.number.is-integer":["es.number.is-integer"],"core-js/modules/es.number.is-nan":["es.number.is-nan"],"core-js/modules/es.number.is-safe-integer":["es.number.is-safe-integer"],"core-js/modules/es.number.max-safe-integer":["es.number.max-safe-integer"],"core-js/modules/es.number.min-safe-integer":["es.number.min-safe-integer"],"core-js/modules/es.number.parse-float":["es.number.parse-float"],"core-js/modules/es.number.parse-int":["es.number.parse-int"],"core-js/modules/es.number.to-exponential":["es.number.to-exponential"],"core-js/modules/es.number.to-fixed":["es.number.to-fixed"],"core-js/modules/es.number.to-precision":["es.number.to-precision"],"core-js/modules/es.object.assign":["es.object.assign"],"core-js/modules/es.object.create":["es.object.create"],"core-js/modules/es.object.define-getter":["es.object.define-getter"],"core-js/modules/es.object.define-properties":["es.object.define-properties"],"core-js/modules/es.object.define-property":["es.object.define-property"],"core-js/modules/es.object.define-setter":["es.object.define-setter"],"core-js/modules/es.object.entries":["es.object.entries"],"core-js/modules/es.object.freeze":["es.object.freeze"],"core-js/modules/es.object.from-entries":["es.object.from-entries"],"core-js/modules/es.object.get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/modules/es.object.get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/modules/es.object.get-own-property-names":["es.object.get-own-property-names"],"core-js/modules/es.object.get-own-property-symbols":["es.object.get-own-property-symbols"],"core-js/modules/es.object.get-prototype-of":["es.object.get-prototype-of"],"core-js/modules/es.object.has-own":["es.object.has-own"],"core-js/modules/es.object.is":["es.object.is"],"core-js/modules/es.object.is-extensible":["es.object.is-extensible"],"core-js/modules/es.object.is-frozen":["es.object.is-frozen"],"core-js/modules/es.object.is-sealed":["es.object.is-sealed"],"core-js/modules/es.object.keys":["es.object.keys"],"core-js/modules/es.object.lookup-getter":["es.object.lookup-getter"],"core-js/modules/es.object.lookup-setter":["es.object.lookup-setter"],"core-js/modules/es.object.prevent-extensions":["es.object.prevent-extensions"],"core-js/modules/es.object.proto":["es.object.proto"],"core-js/modules/es.object.seal":["es.object.seal"],"core-js/modules/es.object.set-prototype-of":["es.object.set-prototype-of"],"core-js/modules/es.object.to-string":["es.object.to-string"],"core-js/modules/es.object.values":["es.object.values"],"core-js/modules/es.parse-float":["es.parse-float"],"core-js/modules/es.parse-int":["es.parse-int"],"core-js/modules/es.promise":["es.promise"],"core-js/modules/es.promise.all":["es.promise.all"],"core-js/modules/es.promise.all-settled":["es.promise.all-settled"],"core-js/modules/es.promise.any":["es.promise.any"],"core-js/modules/es.promise.catch":["es.promise.catch"],"core-js/modules/es.promise.constructor":["es.promise.constructor"],"core-js/modules/es.promise.finally":["es.promise.finally"],"core-js/modules/es.promise.race":["es.promise.race"],"core-js/modules/es.promise.reject":["es.promise.reject"],"core-js/modules/es.promise.resolve":["es.promise.resolve"],"core-js/modules/es.reflect.apply":["es.reflect.apply"],"core-js/modules/es.reflect.construct":["es.reflect.construct"],"core-js/modules/es.reflect.define-property":["es.reflect.define-property"],"core-js/modules/es.reflect.delete-property":["es.reflect.delete-property"],"core-js/modules/es.reflect.get":["es.reflect.get"],"core-js/modules/es.reflect.get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/modules/es.reflect.get-prototype-of":["es.reflect.get-prototype-of"],"core-js/modules/es.reflect.has":["es.reflect.has"],"core-js/modules/es.reflect.is-extensible":["es.reflect.is-extensible"],"core-js/modules/es.reflect.own-keys":["es.reflect.own-keys"],"core-js/modules/es.reflect.prevent-extensions":["es.reflect.prevent-extensions"],"core-js/modules/es.reflect.set":["es.reflect.set"],"core-js/modules/es.reflect.set-prototype-of":["es.reflect.set-prototype-of"],"core-js/modules/es.reflect.to-string-tag":["es.reflect.to-string-tag"],"core-js/modules/es.regexp.constructor":["es.regexp.constructor"],"core-js/modules/es.regexp.dot-all":["es.regexp.dot-all"],"core-js/modules/es.regexp.exec":["es.regexp.exec"],"core-js/modules/es.regexp.flags":["es.regexp.flags"],"core-js/modules/es.regexp.sticky":["es.regexp.sticky"],"core-js/modules/es.regexp.test":["es.regexp.test"],"core-js/modules/es.regexp.to-string":["es.regexp.to-string"],"core-js/modules/es.set":["es.set"],"core-js/modules/es.set.constructor":["es.set.constructor"],"core-js/modules/es.string.anchor":["es.string.anchor"],"core-js/modules/es.string.at-alternative":["es.string.at-alternative"],"core-js/modules/es.string.big":["es.string.big"],"core-js/modules/es.string.blink":["es.string.blink"],"core-js/modules/es.string.bold":["es.string.bold"],"core-js/modules/es.string.code-point-at":["es.string.code-point-at"],"core-js/modules/es.string.ends-with":["es.string.ends-with"],"core-js/modules/es.string.fixed":["es.string.fixed"],"core-js/modules/es.string.fontcolor":["es.string.fontcolor"],"core-js/modules/es.string.fontsize":["es.string.fontsize"],"core-js/modules/es.string.from-code-point":["es.string.from-code-point"],"core-js/modules/es.string.includes":["es.string.includes"],"core-js/modules/es.string.is-well-formed":["es.string.is-well-formed"],"core-js/modules/es.string.italics":["es.string.italics"],"core-js/modules/es.string.iterator":["es.string.iterator"],"core-js/modules/es.string.link":["es.string.link"],"core-js/modules/es.string.match":["es.string.match"],"core-js/modules/es.string.match-all":["es.string.match-all"],"core-js/modules/es.string.pad-end":["es.string.pad-end"],"core-js/modules/es.string.pad-start":["es.string.pad-start"],"core-js/modules/es.string.raw":["es.string.raw"],"core-js/modules/es.string.repeat":["es.string.repeat"],"core-js/modules/es.string.replace":["es.string.replace"],"core-js/modules/es.string.replace-all":["es.string.replace-all"],"core-js/modules/es.string.search":["es.string.search"],"core-js/modules/es.string.small":["es.string.small"],"core-js/modules/es.string.split":["es.string.split"],"core-js/modules/es.string.starts-with":["es.string.starts-with"],"core-js/modules/es.string.strike":["es.string.strike"],"core-js/modules/es.string.sub":["es.string.sub"],"core-js/modules/es.string.substr":["es.string.substr"],"core-js/modules/es.string.sup":["es.string.sup"],"core-js/modules/es.string.to-well-formed":["es.string.to-well-formed"],"core-js/modules/es.string.trim":["es.string.trim"],"core-js/modules/es.string.trim-end":["es.string.trim-end"],"core-js/modules/es.string.trim-left":["es.string.trim-left"],"core-js/modules/es.string.trim-right":["es.string.trim-right"],"core-js/modules/es.string.trim-start":["es.string.trim-start"],"core-js/modules/es.symbol":["es.symbol"],"core-js/modules/es.symbol.async-iterator":["es.symbol.async-iterator"],"core-js/modules/es.symbol.constructor":["es.symbol.constructor"],"core-js/modules/es.symbol.description":["es.symbol.description"],"core-js/modules/es.symbol.for":["es.symbol.for"],"core-js/modules/es.symbol.has-instance":["es.symbol.has-instance"],"core-js/modules/es.symbol.is-concat-spreadable":["es.symbol.is-concat-spreadable"],"core-js/modules/es.symbol.iterator":["es.symbol.iterator"],"core-js/modules/es.symbol.key-for":["es.symbol.key-for"],"core-js/modules/es.symbol.match":["es.symbol.match"],"core-js/modules/es.symbol.match-all":["es.symbol.match-all"],"core-js/modules/es.symbol.replace":["es.symbol.replace"],"core-js/modules/es.symbol.search":["es.symbol.search"],"core-js/modules/es.symbol.species":["es.symbol.species"],"core-js/modules/es.symbol.split":["es.symbol.split"],"core-js/modules/es.symbol.to-primitive":["es.symbol.to-primitive"],"core-js/modules/es.symbol.to-string-tag":["es.symbol.to-string-tag"],"core-js/modules/es.symbol.unscopables":["es.symbol.unscopables"],"core-js/modules/es.typed-array.at":["es.typed-array.at"],"core-js/modules/es.typed-array.copy-within":["es.typed-array.copy-within"],"core-js/modules/es.typed-array.every":["es.typed-array.every"],"core-js/modules/es.typed-array.fill":["es.typed-array.fill"],"core-js/modules/es.typed-array.filter":["es.typed-array.filter"],"core-js/modules/es.typed-array.find":["es.typed-array.find"],"core-js/modules/es.typed-array.find-index":["es.typed-array.find-index"],"core-js/modules/es.typed-array.find-last":["es.typed-array.find-last"],"core-js/modules/es.typed-array.find-last-index":["es.typed-array.find-last-index"],"core-js/modules/es.typed-array.float32-array":["es.typed-array.float32-array"],"core-js/modules/es.typed-array.float64-array":["es.typed-array.float64-array"],"core-js/modules/es.typed-array.for-each":["es.typed-array.for-each"],"core-js/modules/es.typed-array.from":["es.typed-array.from"],"core-js/modules/es.typed-array.includes":["es.typed-array.includes"],"core-js/modules/es.typed-array.index-of":["es.typed-array.index-of"],"core-js/modules/es.typed-array.int16-array":["es.typed-array.int16-array"],"core-js/modules/es.typed-array.int32-array":["es.typed-array.int32-array"],"core-js/modules/es.typed-array.int8-array":["es.typed-array.int8-array"],"core-js/modules/es.typed-array.iterator":["es.typed-array.iterator"],"core-js/modules/es.typed-array.join":["es.typed-array.join"],"core-js/modules/es.typed-array.last-index-of":["es.typed-array.last-index-of"],"core-js/modules/es.typed-array.map":["es.typed-array.map"],"core-js/modules/es.typed-array.of":["es.typed-array.of"],"core-js/modules/es.typed-array.reduce":["es.typed-array.reduce"],"core-js/modules/es.typed-array.reduce-right":["es.typed-array.reduce-right"],"core-js/modules/es.typed-array.reverse":["es.typed-array.reverse"],"core-js/modules/es.typed-array.set":["es.typed-array.set"],"core-js/modules/es.typed-array.slice":["es.typed-array.slice"],"core-js/modules/es.typed-array.some":["es.typed-array.some"],"core-js/modules/es.typed-array.sort":["es.typed-array.sort"],"core-js/modules/es.typed-array.subarray":["es.typed-array.subarray"],"core-js/modules/es.typed-array.to-locale-string":["es.typed-array.to-locale-string"],"core-js/modules/es.typed-array.to-reversed":["es.typed-array.to-reversed"],"core-js/modules/es.typed-array.to-sorted":["es.typed-array.to-sorted"],"core-js/modules/es.typed-array.to-string":["es.typed-array.to-string"],"core-js/modules/es.typed-array.uint16-array":["es.typed-array.uint16-array"],"core-js/modules/es.typed-array.uint32-array":["es.typed-array.uint32-array"],"core-js/modules/es.typed-array.uint8-array":["es.typed-array.uint8-array"],"core-js/modules/es.typed-array.uint8-clamped-array":["es.typed-array.uint8-clamped-array"],"core-js/modules/es.typed-array.with":["es.typed-array.with"],"core-js/modules/es.unescape":["es.unescape"],"core-js/modules/es.weak-map":["es.weak-map"],"core-js/modules/es.weak-map.constructor":["es.weak-map.constructor"],"core-js/modules/es.weak-set":["es.weak-set"],"core-js/modules/es.weak-set.constructor":["es.weak-set.constructor"],"core-js/modules/esnext.aggregate-error":["esnext.aggregate-error"],"core-js/modules/esnext.array-buffer.detached":["esnext.array-buffer.detached"],"core-js/modules/esnext.array-buffer.transfer":["esnext.array-buffer.transfer"],"core-js/modules/esnext.array-buffer.transfer-to-fixed-length":["esnext.array-buffer.transfer-to-fixed-length"],"core-js/modules/esnext.array.at":["esnext.array.at"],"core-js/modules/esnext.array.filter-out":["esnext.array.filter-out"],"core-js/modules/esnext.array.filter-reject":["esnext.array.filter-reject"],"core-js/modules/esnext.array.find-last":["esnext.array.find-last"],"core-js/modules/esnext.array.find-last-index":["esnext.array.find-last-index"],"core-js/modules/esnext.array.from-async":["esnext.array.from-async"],"core-js/modules/esnext.array.group":["esnext.array.group"],"core-js/modules/esnext.array.group-by":["esnext.array.group-by"],"core-js/modules/esnext.array.group-by-to-map":["esnext.array.group-by-to-map"],"core-js/modules/esnext.array.group-to-map":["esnext.array.group-to-map"],"core-js/modules/esnext.array.is-template-object":["esnext.array.is-template-object"],"core-js/modules/esnext.array.last-index":["esnext.array.last-index"],"core-js/modules/esnext.array.last-item":["esnext.array.last-item"],"core-js/modules/esnext.array.to-reversed":["esnext.array.to-reversed"],"core-js/modules/esnext.array.to-sorted":["esnext.array.to-sorted"],"core-js/modules/esnext.array.to-spliced":["esnext.array.to-spliced"],"core-js/modules/esnext.array.unique-by":["esnext.array.unique-by"],"core-js/modules/esnext.array.with":["esnext.array.with"],"core-js/modules/esnext.async-disposable-stack.constructor":["esnext.async-disposable-stack.constructor"],"core-js/modules/esnext.async-iterator.as-indexed-pairs":["esnext.async-iterator.as-indexed-pairs"],"core-js/modules/esnext.async-iterator.async-dispose":["esnext.async-iterator.async-dispose"],"core-js/modules/esnext.async-iterator.constructor":["esnext.async-iterator.constructor"],"core-js/modules/esnext.async-iterator.drop":["esnext.async-iterator.drop"],"core-js/modules/esnext.async-iterator.every":["esnext.async-iterator.every"],"core-js/modules/esnext.async-iterator.filter":["esnext.async-iterator.filter"],"core-js/modules/esnext.async-iterator.find":["esnext.async-iterator.find"],"core-js/modules/esnext.async-iterator.flat-map":["esnext.async-iterator.flat-map"],"core-js/modules/esnext.async-iterator.for-each":["esnext.async-iterator.for-each"],"core-js/modules/esnext.async-iterator.from":["esnext.async-iterator.from"],"core-js/modules/esnext.async-iterator.indexed":["esnext.async-iterator.indexed"],"core-js/modules/esnext.async-iterator.map":["esnext.async-iterator.map"],"core-js/modules/esnext.async-iterator.reduce":["esnext.async-iterator.reduce"],"core-js/modules/esnext.async-iterator.some":["esnext.async-iterator.some"],"core-js/modules/esnext.async-iterator.take":["esnext.async-iterator.take"],"core-js/modules/esnext.async-iterator.to-array":["esnext.async-iterator.to-array"],"core-js/modules/esnext.bigint.range":["esnext.bigint.range"],"core-js/modules/esnext.composite-key":["esnext.composite-key"],"core-js/modules/esnext.composite-symbol":["esnext.composite-symbol"],"core-js/modules/esnext.disposable-stack.constructor":["esnext.disposable-stack.constructor"],"core-js/modules/esnext.function.demethodize":["esnext.function.demethodize"],"core-js/modules/esnext.function.is-callable":["esnext.function.is-callable"],"core-js/modules/esnext.function.is-constructor":["esnext.function.is-constructor"],"core-js/modules/esnext.function.metadata":["esnext.function.metadata"],"core-js/modules/esnext.function.un-this":["esnext.function.un-this"],"core-js/modules/esnext.global-this":["esnext.global-this"],"core-js/modules/esnext.iterator.as-indexed-pairs":["esnext.iterator.as-indexed-pairs"],"core-js/modules/esnext.iterator.constructor":["esnext.iterator.constructor"],"core-js/modules/esnext.iterator.dispose":["esnext.iterator.dispose"],"core-js/modules/esnext.iterator.drop":["esnext.iterator.drop"],"core-js/modules/esnext.iterator.every":["esnext.iterator.every"],"core-js/modules/esnext.iterator.filter":["esnext.iterator.filter"],"core-js/modules/esnext.iterator.find":["esnext.iterator.find"],"core-js/modules/esnext.iterator.flat-map":["esnext.iterator.flat-map"],"core-js/modules/esnext.iterator.for-each":["esnext.iterator.for-each"],"core-js/modules/esnext.iterator.from":["esnext.iterator.from"],"core-js/modules/esnext.iterator.indexed":["esnext.iterator.indexed"],"core-js/modules/esnext.iterator.map":["esnext.iterator.map"],"core-js/modules/esnext.iterator.range":["esnext.iterator.range"],"core-js/modules/esnext.iterator.reduce":["esnext.iterator.reduce"],"core-js/modules/esnext.iterator.some":["esnext.iterator.some"],"core-js/modules/esnext.iterator.take":["esnext.iterator.take"],"core-js/modules/esnext.iterator.to-array":["esnext.iterator.to-array"],"core-js/modules/esnext.iterator.to-async":["esnext.iterator.to-async"],"core-js/modules/esnext.json.is-raw-json":["esnext.json.is-raw-json"],"core-js/modules/esnext.json.parse":["esnext.json.parse"],"core-js/modules/esnext.json.raw-json":["esnext.json.raw-json"],"core-js/modules/esnext.map.delete-all":["esnext.map.delete-all"],"core-js/modules/esnext.map.emplace":["esnext.map.emplace"],"core-js/modules/esnext.map.every":["esnext.map.every"],"core-js/modules/esnext.map.filter":["esnext.map.filter"],"core-js/modules/esnext.map.find":["esnext.map.find"],"core-js/modules/esnext.map.find-key":["esnext.map.find-key"],"core-js/modules/esnext.map.from":["esnext.map.from"],"core-js/modules/esnext.map.group-by":["esnext.map.group-by"],"core-js/modules/esnext.map.includes":["esnext.map.includes"],"core-js/modules/esnext.map.key-by":["esnext.map.key-by"],"core-js/modules/esnext.map.key-of":["esnext.map.key-of"],"core-js/modules/esnext.map.map-keys":["esnext.map.map-keys"],"core-js/modules/esnext.map.map-values":["esnext.map.map-values"],"core-js/modules/esnext.map.merge":["esnext.map.merge"],"core-js/modules/esnext.map.of":["esnext.map.of"],"core-js/modules/esnext.map.reduce":["esnext.map.reduce"],"core-js/modules/esnext.map.some":["esnext.map.some"],"core-js/modules/esnext.map.update":["esnext.map.update"],"core-js/modules/esnext.map.update-or-insert":["esnext.map.update-or-insert"],"core-js/modules/esnext.map.upsert":["esnext.map.upsert"],"core-js/modules/esnext.math.clamp":["esnext.math.clamp"],"core-js/modules/esnext.math.deg-per-rad":["esnext.math.deg-per-rad"],"core-js/modules/esnext.math.degrees":["esnext.math.degrees"],"core-js/modules/esnext.math.fscale":["esnext.math.fscale"],"core-js/modules/esnext.math.iaddh":["esnext.math.iaddh"],"core-js/modules/esnext.math.imulh":["esnext.math.imulh"],"core-js/modules/esnext.math.isubh":["esnext.math.isubh"],"core-js/modules/esnext.math.rad-per-deg":["esnext.math.rad-per-deg"],"core-js/modules/esnext.math.radians":["esnext.math.radians"],"core-js/modules/esnext.math.scale":["esnext.math.scale"],"core-js/modules/esnext.math.seeded-prng":["esnext.math.seeded-prng"],"core-js/modules/esnext.math.signbit":["esnext.math.signbit"],"core-js/modules/esnext.math.umulh":["esnext.math.umulh"],"core-js/modules/esnext.number.from-string":["esnext.number.from-string"],"core-js/modules/esnext.number.range":["esnext.number.range"],"core-js/modules/esnext.object.group-by":["esnext.object.group-by"],"core-js/modules/esnext.object.has-own":["esnext.object.has-own"],"core-js/modules/esnext.object.iterate-entries":["esnext.object.iterate-entries"],"core-js/modules/esnext.object.iterate-keys":["esnext.object.iterate-keys"],"core-js/modules/esnext.object.iterate-values":["esnext.object.iterate-values"],"core-js/modules/esnext.observable":["esnext.observable"],"core-js/modules/esnext.observable.constructor":["esnext.observable.constructor"],"core-js/modules/esnext.observable.from":["esnext.observable.from"],"core-js/modules/esnext.observable.of":["esnext.observable.of"],"core-js/modules/esnext.promise.all-settled":["esnext.promise.all-settled"],"core-js/modules/esnext.promise.any":["esnext.promise.any"],"core-js/modules/esnext.promise.try":["esnext.promise.try"],"core-js/modules/esnext.promise.with-resolvers":["esnext.promise.with-resolvers"],"core-js/modules/esnext.reflect.define-metadata":["esnext.reflect.define-metadata"],"core-js/modules/esnext.reflect.delete-metadata":["esnext.reflect.delete-metadata"],"core-js/modules/esnext.reflect.get-metadata":["esnext.reflect.get-metadata"],"core-js/modules/esnext.reflect.get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/modules/esnext.reflect.get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/modules/esnext.reflect.get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/modules/esnext.reflect.has-metadata":["esnext.reflect.has-metadata"],"core-js/modules/esnext.reflect.has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/modules/esnext.reflect.metadata":["esnext.reflect.metadata"],"core-js/modules/esnext.set.add-all":["esnext.set.add-all"],"core-js/modules/esnext.set.delete-all":["esnext.set.delete-all"],"core-js/modules/esnext.set.difference":["esnext.set.difference"],"core-js/modules/esnext.set.difference.v2":["esnext.set.difference.v2"],"core-js/modules/esnext.set.every":["esnext.set.every"],"core-js/modules/esnext.set.filter":["esnext.set.filter"],"core-js/modules/esnext.set.find":["esnext.set.find"],"core-js/modules/esnext.set.from":["esnext.set.from"],"core-js/modules/esnext.set.intersection":["esnext.set.intersection"],"core-js/modules/esnext.set.intersection.v2":["esnext.set.intersection.v2"],"core-js/modules/esnext.set.is-disjoint-from":["esnext.set.is-disjoint-from"],"core-js/modules/esnext.set.is-disjoint-from.v2":["esnext.set.is-disjoint-from.v2"],"core-js/modules/esnext.set.is-subset-of":["esnext.set.is-subset-of"],"core-js/modules/esnext.set.is-subset-of.v2":["esnext.set.is-subset-of.v2"],"core-js/modules/esnext.set.is-superset-of":["esnext.set.is-superset-of"],"core-js/modules/esnext.set.is-superset-of.v2":["esnext.set.is-superset-of.v2"],"core-js/modules/esnext.set.join":["esnext.set.join"],"core-js/modules/esnext.set.map":["esnext.set.map"],"core-js/modules/esnext.set.of":["esnext.set.of"],"core-js/modules/esnext.set.reduce":["esnext.set.reduce"],"core-js/modules/esnext.set.some":["esnext.set.some"],"core-js/modules/esnext.set.symmetric-difference":["esnext.set.symmetric-difference"],"core-js/modules/esnext.set.symmetric-difference.v2":["esnext.set.symmetric-difference.v2"],"core-js/modules/esnext.set.union":["esnext.set.union"],"core-js/modules/esnext.set.union.v2":["esnext.set.union.v2"],"core-js/modules/esnext.string.at":["esnext.string.at"],"core-js/modules/esnext.string.at-alternative":["esnext.string.at-alternative"],"core-js/modules/esnext.string.code-points":["esnext.string.code-points"],"core-js/modules/esnext.string.cooked":["esnext.string.cooked"],"core-js/modules/esnext.string.dedent":["esnext.string.dedent"],"core-js/modules/esnext.string.is-well-formed":["esnext.string.is-well-formed"],"core-js/modules/esnext.string.match-all":["esnext.string.match-all"],"core-js/modules/esnext.string.replace-all":["esnext.string.replace-all"],"core-js/modules/esnext.string.to-well-formed":["esnext.string.to-well-formed"],"core-js/modules/esnext.suppressed-error.constructor":["esnext.suppressed-error.constructor"],"core-js/modules/esnext.symbol.async-dispose":["esnext.symbol.async-dispose"],"core-js/modules/esnext.symbol.dispose":["esnext.symbol.dispose"],"core-js/modules/esnext.symbol.is-registered":["esnext.symbol.is-registered"],"core-js/modules/esnext.symbol.is-registered-symbol":["esnext.symbol.is-registered-symbol"],"core-js/modules/esnext.symbol.is-well-known":["esnext.symbol.is-well-known"],"core-js/modules/esnext.symbol.is-well-known-symbol":["esnext.symbol.is-well-known-symbol"],"core-js/modules/esnext.symbol.matcher":["esnext.symbol.matcher"],"core-js/modules/esnext.symbol.metadata":["esnext.symbol.metadata"],"core-js/modules/esnext.symbol.metadata-key":["esnext.symbol.metadata-key"],"core-js/modules/esnext.symbol.observable":["esnext.symbol.observable"],"core-js/modules/esnext.symbol.pattern-match":["esnext.symbol.pattern-match"],"core-js/modules/esnext.symbol.replace-all":["esnext.symbol.replace-all"],"core-js/modules/esnext.typed-array.at":["esnext.typed-array.at"],"core-js/modules/esnext.typed-array.filter-out":["esnext.typed-array.filter-out"],"core-js/modules/esnext.typed-array.filter-reject":["esnext.typed-array.filter-reject"],"core-js/modules/esnext.typed-array.find-last":["esnext.typed-array.find-last"],"core-js/modules/esnext.typed-array.find-last-index":["esnext.typed-array.find-last-index"],"core-js/modules/esnext.typed-array.from-async":["esnext.typed-array.from-async"],"core-js/modules/esnext.typed-array.group-by":["esnext.typed-array.group-by"],"core-js/modules/esnext.typed-array.to-reversed":["esnext.typed-array.to-reversed"],"core-js/modules/esnext.typed-array.to-sorted":["esnext.typed-array.to-sorted"],"core-js/modules/esnext.typed-array.to-spliced":["esnext.typed-array.to-spliced"],"core-js/modules/esnext.typed-array.unique-by":["esnext.typed-array.unique-by"],"core-js/modules/esnext.typed-array.with":["esnext.typed-array.with"],"core-js/modules/esnext.weak-map.delete-all":["esnext.weak-map.delete-all"],"core-js/modules/esnext.weak-map.emplace":["esnext.weak-map.emplace"],"core-js/modules/esnext.weak-map.from":["esnext.weak-map.from"],"core-js/modules/esnext.weak-map.of":["esnext.weak-map.of"],"core-js/modules/esnext.weak-map.upsert":["esnext.weak-map.upsert"],"core-js/modules/esnext.weak-set.add-all":["esnext.weak-set.add-all"],"core-js/modules/esnext.weak-set.delete-all":["esnext.weak-set.delete-all"],"core-js/modules/esnext.weak-set.from":["esnext.weak-set.from"],"core-js/modules/esnext.weak-set.of":["esnext.weak-set.of"],"core-js/modules/web.atob":["web.atob"],"core-js/modules/web.btoa":["web.btoa"],"core-js/modules/web.clear-immediate":["web.clear-immediate"],"core-js/modules/web.dom-collections.for-each":["web.dom-collections.for-each"],"core-js/modules/web.dom-collections.iterator":["web.dom-collections.iterator"],"core-js/modules/web.dom-exception.constructor":["web.dom-exception.constructor"],"core-js/modules/web.dom-exception.stack":["web.dom-exception.stack"],"core-js/modules/web.dom-exception.to-string-tag":["web.dom-exception.to-string-tag"],"core-js/modules/web.immediate":["web.immediate"],"core-js/modules/web.queue-microtask":["web.queue-microtask"],"core-js/modules/web.self":["web.self"],"core-js/modules/web.set-immediate":["web.set-immediate"],"core-js/modules/web.set-interval":["web.set-interval"],"core-js/modules/web.set-timeout":["web.set-timeout"],"core-js/modules/web.structured-clone":["web.structured-clone"],"core-js/modules/web.timers":["web.timers"],"core-js/modules/web.url":["web.url"],"core-js/modules/web.url-search-params":["web.url-search-params"],"core-js/modules/web.url-search-params.constructor":["web.url-search-params.constructor"],"core-js/modules/web.url-search-params.delete":["web.url-search-params.delete"],"core-js/modules/web.url-search-params.has":["web.url-search-params.has"],"core-js/modules/web.url-search-params.size":["web.url-search-params.size"],"core-js/modules/web.url.can-parse":["web.url.can-parse"],"core-js/modules/web.url.constructor":["web.url.constructor"],"core-js/modules/web.url.to-json":["web.url.to-json"],"core-js/proposals":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/proposals/accessible-object-hasownproperty":["esnext.object.has-own"],"core-js/proposals/array-buffer-transfer":["esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/proposals/array-filtering":["esnext.array.filter-out","esnext.array.filter-reject","esnext.typed-array.filter-out","esnext.typed-array.filter-reject"],"core-js/proposals/array-filtering-stage-1":["esnext.array.filter-reject","esnext.typed-array.filter-reject"],"core-js/proposals/array-find-from-last":["esnext.array.find-last","esnext.array.find-last-index","esnext.typed-array.find-last","esnext.typed-array.find-last-index"],"core-js/proposals/array-flat-map":["es.array.flat","es.array.flat-map","es.array.unscopables.flat","es.array.unscopables.flat-map"],"core-js/proposals/array-from-async":["esnext.array.from-async","esnext.typed-array.from-async"],"core-js/proposals/array-from-async-stage-2":["esnext.array.from-async"],"core-js/proposals/array-grouping":["esnext.array.group-by","esnext.array.group-by-to-map","esnext.typed-array.group-by"],"core-js/proposals/array-grouping-stage-3":["esnext.array.group-by","esnext.array.group-by-to-map"],"core-js/proposals/array-grouping-stage-3-2":["esnext.array.group","esnext.array.group-to-map"],"core-js/proposals/array-grouping-v2":["esnext.map.group-by","esnext.object.group-by"],"core-js/proposals/array-includes":["es.array.includes","es.typed-array.includes"],"core-js/proposals/array-is-template-object":["esnext.array.is-template-object"],"core-js/proposals/array-last":["esnext.array.last-index","esnext.array.last-item"],"core-js/proposals/array-unique":["es.map","esnext.array.unique-by","esnext.typed-array.unique-by"],"core-js/proposals/async-explicit-resource-management":["esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.symbol.async-dispose"],"core-js/proposals/async-iteration":["es.symbol.async-iterator"],"core-js/proposals/async-iterator-helpers":["esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.to-async"],"core-js/proposals/change-array-by-copy":["esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/proposals/change-array-by-copy-stage-4":["esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.with"],"core-js/proposals/collection-methods":["esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.set.add-all","esnext.set.delete-all","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.join","esnext.set.map","esnext.set.reduce","esnext.set.some","esnext.weak-map.delete-all","esnext.weak-set.add-all","esnext.weak-set.delete-all"],"core-js/proposals/collection-of-from":["esnext.map.from","esnext.map.of","esnext.set.from","esnext.set.of","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-set.from","esnext.weak-set.of"],"core-js/proposals/decorator-metadata":["esnext.symbol.metadata-key"],"core-js/proposals/decorator-metadata-v2":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/proposals/decorators":["esnext.symbol.metadata"],"core-js/proposals/efficient-64-bit-arithmetic":["esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.umulh"],"core-js/proposals/error-cause":["es.error.cause","es.aggregate-error.cause"],"core-js/proposals/explicit-resource-management":["esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose","esnext.symbol.dispose"],"core-js/proposals/function-demethodize":["esnext.function.demethodize"],"core-js/proposals/function-is-callable-is-constructor":["esnext.function.is-callable","esnext.function.is-constructor"],"core-js/proposals/function-un-this":["esnext.function.un-this"],"core-js/proposals/global-this":["esnext.global-this"],"core-js/proposals/iterator-helpers":["esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async"],"core-js/proposals/iterator-helpers-stage-3":["esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async"],"core-js/proposals/iterator-helpers-stage-3-2":["esnext.iterator.constructor","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array"],"core-js/proposals/iterator-range":["esnext.iterator.constructor","esnext.iterator.range"],"core-js/proposals/json-parse-with-source":["esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/proposals/keys-composition":["esnext.composite-key","esnext.composite-symbol"],"core-js/proposals/map-update-or-insert":["esnext.map.emplace","esnext.map.update-or-insert","esnext.map.upsert","esnext.weak-map.emplace","esnext.weak-map.upsert"],"core-js/proposals/map-upsert":["esnext.map.emplace","esnext.map.update-or-insert","esnext.map.upsert","esnext.weak-map.emplace","esnext.weak-map.upsert"],"core-js/proposals/map-upsert-stage-2":["esnext.map.emplace","esnext.weak-map.emplace"],"core-js/proposals/math-extensions":["esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale"],"core-js/proposals/math-signbit":["esnext.math.signbit"],"core-js/proposals/number-from-string":["esnext.number.from-string"],"core-js/proposals/number-range":["esnext.bigint.range","esnext.number.range"],"core-js/proposals/object-from-entries":["es.object.from-entries"],"core-js/proposals/object-getownpropertydescriptors":["es.object.get-own-property-descriptors"],"core-js/proposals/object-iteration":["esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values"],"core-js/proposals/object-values-entries":["es.object.entries","es.object.values"],"core-js/proposals/observable":["esnext.observable","esnext.symbol.observable"],"core-js/proposals/pattern-matching":["esnext.symbol.matcher","esnext.symbol.pattern-match"],"core-js/proposals/promise-all-settled":["esnext.promise.all-settled"],"core-js/proposals/promise-any":["esnext.aggregate-error","esnext.promise.any"],"core-js/proposals/promise-finally":["es.promise.finally"],"core-js/proposals/promise-try":["esnext.promise.try"],"core-js/proposals/promise-with-resolvers":["esnext.promise.with-resolvers"],"core-js/proposals/reflect-metadata":["esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/proposals/regexp-dotall-flag":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags"],"core-js/proposals/regexp-named-groups":["es.regexp.constructor","es.regexp.exec","es.string.replace"],"core-js/proposals/relative-indexing-method":["es.string.at-alternative","esnext.array.at","esnext.typed-array.at"],"core-js/proposals/seeded-random":["esnext.math.seeded-prng"],"core-js/proposals/set-methods":["esnext.set.difference.v2","esnext.set.difference","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union"],"core-js/proposals/set-methods-v2":["esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2"],"core-js/proposals/string-at":["esnext.string.at"],"core-js/proposals/string-code-points":["esnext.string.code-points"],"core-js/proposals/string-cooked":["esnext.string.cooked"],"core-js/proposals/string-dedent":["esnext.string.dedent"],"core-js/proposals/string-left-right-trim":["es.string.trim-end","es.string.trim-start"],"core-js/proposals/string-match-all":["esnext.string.match-all"],"core-js/proposals/string-padding":["es.string.pad-end","es.string.pad-start"],"core-js/proposals/string-replace-all":["esnext.string.replace-all","esnext.symbol.replace-all"],"core-js/proposals/string-replace-all-stage-4":["esnext.string.replace-all"],"core-js/proposals/symbol-description":["es.symbol.description"],"core-js/proposals/symbol-predicates":["esnext.symbol.is-registered","esnext.symbol.is-well-known"],"core-js/proposals/symbol-predicates-v2":["esnext.symbol.is-registered-symbol","esnext.symbol.is-well-known-symbol"],"core-js/proposals/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/proposals/using-statement":["esnext.symbol.async-dispose","esnext.symbol.dispose"],"core-js/proposals/well-formed-stringify":["es.json.stringify"],"core-js/proposals/well-formed-unicode-strings":["esnext.string.is-well-formed","esnext.string.to-well-formed"],"core-js/stable":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stable/aggregate-error":["es.error.cause","es.aggregate-error","es.aggregate-error.cause","es.array.iterator","es.string.iterator","esnext.aggregate-error","web.dom-collections.iterator"],"core-js/stable/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string","es.string.iterator"],"core-js/stable/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string"],"core-js/stable/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string"],"core-js/stable/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/stable/array-buffer/slice":["es.array-buffer.slice"],"core-js/stable/array/at":["es.array.at"],"core-js/stable/array/concat":["es.array.concat"],"core-js/stable/array/copy-within":["es.array.copy-within"],"core-js/stable/array/entries":["es.array.iterator","es.object.to-string"],"core-js/stable/array/every":["es.array.every"],"core-js/stable/array/fill":["es.array.fill"],"core-js/stable/array/filter":["es.array.filter"],"core-js/stable/array/find":["es.array.find"],"core-js/stable/array/find-index":["es.array.find-index"],"core-js/stable/array/find-last":["es.array.find-last"],"core-js/stable/array/find-last-index":["es.array.find-last-index"],"core-js/stable/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/array/for-each":["es.array.for-each"],"core-js/stable/array/from":["es.array.from","es.string.iterator"],"core-js/stable/array/includes":["es.array.includes"],"core-js/stable/array/index-of":["es.array.index-of"],"core-js/stable/array/is-array":["es.array.is-array"],"core-js/stable/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/stable/array/join":["es.array.join"],"core-js/stable/array/keys":["es.array.iterator","es.object.to-string"],"core-js/stable/array/last-index-of":["es.array.last-index-of"],"core-js/stable/array/map":["es.array.map"],"core-js/stable/array/of":["es.array.of"],"core-js/stable/array/push":["es.array.push"],"core-js/stable/array/reduce":["es.array.reduce"],"core-js/stable/array/reduce-right":["es.array.reduce-right"],"core-js/stable/array/reverse":["es.array.reverse"],"core-js/stable/array/slice":["es.array.slice"],"core-js/stable/array/some":["es.array.some"],"core-js/stable/array/sort":["es.array.sort"],"core-js/stable/array/splice":["es.array.splice"],"core-js/stable/array/to-reversed":["es.array.to-reversed"],"core-js/stable/array/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/stable/array/to-spliced":["es.array.to-spliced"],"core-js/stable/array/unshift":["es.array.unshift"],"core-js/stable/array/values":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string"],"core-js/stable/array/virtual/at":["es.array.at"],"core-js/stable/array/virtual/concat":["es.array.concat"],"core-js/stable/array/virtual/copy-within":["es.array.copy-within"],"core-js/stable/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/every":["es.array.every"],"core-js/stable/array/virtual/fill":["es.array.fill"],"core-js/stable/array/virtual/filter":["es.array.filter"],"core-js/stable/array/virtual/find":["es.array.find"],"core-js/stable/array/virtual/find-index":["es.array.find-index"],"core-js/stable/array/virtual/find-last":["es.array.find-last"],"core-js/stable/array/virtual/find-last-index":["es.array.find-last-index"],"core-js/stable/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/array/virtual/for-each":["es.array.for-each"],"core-js/stable/array/virtual/includes":["es.array.includes"],"core-js/stable/array/virtual/index-of":["es.array.index-of"],"core-js/stable/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/join":["es.array.join"],"core-js/stable/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/stable/array/virtual/map":["es.array.map"],"core-js/stable/array/virtual/push":["es.array.push"],"core-js/stable/array/virtual/reduce":["es.array.reduce"],"core-js/stable/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/stable/array/virtual/reverse":["es.array.reverse"],"core-js/stable/array/virtual/slice":["es.array.slice"],"core-js/stable/array/virtual/some":["es.array.some"],"core-js/stable/array/virtual/sort":["es.array.sort"],"core-js/stable/array/virtual/splice":["es.array.splice"],"core-js/stable/array/virtual/to-reversed":["es.array.to-reversed"],"core-js/stable/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/stable/array/virtual/to-spliced":["es.array.to-spliced"],"core-js/stable/array/virtual/unshift":["es.array.unshift"],"core-js/stable/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/with":["es.array.with"],"core-js/stable/array/with":["es.array.with"],"core-js/stable/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/stable/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/stable/clear-immediate":["web.immediate"],"core-js/stable/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string"],"core-js/stable/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/stable/date/get-year":["es.date.get-year"],"core-js/stable/date/now":["es.date.now"],"core-js/stable/date/set-year":["es.date.set-year"],"core-js/stable/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/stable/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/stable/date/to-json":["es.date.to-json"],"core-js/stable/date/to-primitive":["es.date.to-primitive"],"core-js/stable/date/to-string":["es.date.to-string"],"core-js/stable/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/stable/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/stable/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/stable/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/stable/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/stable/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/stable/error":["es.error.cause","es.error.to-string"],"core-js/stable/error/constructor":["es.error.cause"],"core-js/stable/error/to-string":["es.error.to-string"],"core-js/stable/escape":["es.escape"],"core-js/stable/function":["es.function.bind","es.function.has-instance","es.function.name"],"core-js/stable/function/bind":["es.function.bind"],"core-js/stable/function/has-instance":["es.function.has-instance"],"core-js/stable/function/name":["es.function.name"],"core-js/stable/function/virtual":["es.function.bind"],"core-js/stable/function/virtual/bind":["es.function.bind"],"core-js/stable/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/global-this":["es.global-this"],"core-js/stable/instance/at":["es.array.at","es.string.at-alternative"],"core-js/stable/instance/bind":["es.function.bind"],"core-js/stable/instance/code-point-at":["es.string.code-point-at"],"core-js/stable/instance/concat":["es.array.concat"],"core-js/stable/instance/copy-within":["es.array.copy-within"],"core-js/stable/instance/ends-with":["es.string.ends-with"],"core-js/stable/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/stable/instance/every":["es.array.every"],"core-js/stable/instance/fill":["es.array.fill"],"core-js/stable/instance/filter":["es.array.filter"],"core-js/stable/instance/find":["es.array.find"],"core-js/stable/instance/find-index":["es.array.find-index"],"core-js/stable/instance/find-last":["es.array.find-last"],"core-js/stable/instance/find-last-index":["es.array.find-last-index"],"core-js/stable/instance/flags":["es.regexp.flags"],"core-js/stable/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/instance/for-each":["es.array.for-each","web.dom-collections.iterator"],"core-js/stable/instance/includes":["es.array.includes","es.string.includes"],"core-js/stable/instance/index-of":["es.array.index-of"],"core-js/stable/instance/is-well-formed":["es.string.is-well-formed"],"core-js/stable/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/stable/instance/last-index-of":["es.array.last-index-of"],"core-js/stable/instance/map":["es.array.map"],"core-js/stable/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/instance/pad-end":["es.string.pad-end"],"core-js/stable/instance/pad-start":["es.string.pad-start"],"core-js/stable/instance/push":["es.array.push"],"core-js/stable/instance/reduce":["es.array.reduce"],"core-js/stable/instance/reduce-right":["es.array.reduce-right"],"core-js/stable/instance/repeat":["es.string.repeat"],"core-js/stable/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/stable/instance/reverse":["es.array.reverse"],"core-js/stable/instance/slice":["es.array.slice"],"core-js/stable/instance/some":["es.array.some"],"core-js/stable/instance/sort":["es.array.sort"],"core-js/stable/instance/splice":["es.array.splice"],"core-js/stable/instance/starts-with":["es.string.starts-with"],"core-js/stable/instance/to-reversed":["es.array.to-reversed"],"core-js/stable/instance/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/stable/instance/to-spliced":["es.array.to-spliced"],"core-js/stable/instance/to-well-formed":["es.string.to-well-formed"],"core-js/stable/instance/trim":["es.string.trim"],"core-js/stable/instance/trim-end":["es.string.trim-end"],"core-js/stable/instance/trim-left":["es.string.trim-start"],"core-js/stable/instance/trim-right":["es.string.trim-end"],"core-js/stable/instance/trim-start":["es.string.trim-start"],"core-js/stable/instance/unshift":["es.array.unshift"],"core-js/stable/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/stable/instance/with":["es.array.with"],"core-js/stable/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/json":["es.json.stringify","es.json.to-string-tag"],"core-js/stable/json/stringify":["es.json.stringify"],"core-js/stable/json/to-string-tag":["es.json.to-string-tag"],"core-js/stable/map":["es.array.iterator","es.map","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc"],"core-js/stable/math/acosh":["es.math.acosh"],"core-js/stable/math/asinh":["es.math.asinh"],"core-js/stable/math/atanh":["es.math.atanh"],"core-js/stable/math/cbrt":["es.math.cbrt"],"core-js/stable/math/clz32":["es.math.clz32"],"core-js/stable/math/cosh":["es.math.cosh"],"core-js/stable/math/expm1":["es.math.expm1"],"core-js/stable/math/fround":["es.math.fround"],"core-js/stable/math/hypot":["es.math.hypot"],"core-js/stable/math/imul":["es.math.imul"],"core-js/stable/math/log10":["es.math.log10"],"core-js/stable/math/log1p":["es.math.log1p"],"core-js/stable/math/log2":["es.math.log2"],"core-js/stable/math/sign":["es.math.sign"],"core-js/stable/math/sinh":["es.math.sinh"],"core-js/stable/math/tanh":["es.math.tanh"],"core-js/stable/math/to-string-tag":["es.math.to-string-tag"],"core-js/stable/math/trunc":["es.math.trunc"],"core-js/stable/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/stable/number/constructor":["es.number.constructor"],"core-js/stable/number/epsilon":["es.number.epsilon"],"core-js/stable/number/is-finite":["es.number.is-finite"],"core-js/stable/number/is-integer":["es.number.is-integer"],"core-js/stable/number/is-nan":["es.number.is-nan"],"core-js/stable/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/stable/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/stable/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/stable/number/parse-float":["es.number.parse-float"],"core-js/stable/number/parse-int":["es.number.parse-int"],"core-js/stable/number/to-exponential":["es.number.to-exponential"],"core-js/stable/number/to-fixed":["es.number.to-fixed"],"core-js/stable/number/to-precision":["es.number.to-precision"],"core-js/stable/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/stable/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/stable/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/stable/number/virtual/to-precision":["es.number.to-precision"],"core-js/stable/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","web.dom-collections.iterator"],"core-js/stable/object/assign":["es.object.assign"],"core-js/stable/object/create":["es.object.create"],"core-js/stable/object/define-getter":["es.object.define-getter"],"core-js/stable/object/define-properties":["es.object.define-properties"],"core-js/stable/object/define-property":["es.object.define-property"],"core-js/stable/object/define-setter":["es.object.define-setter"],"core-js/stable/object/entries":["es.object.entries"],"core-js/stable/object/freeze":["es.object.freeze"],"core-js/stable/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/stable/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/stable/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/stable/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/stable/object/get-own-property-symbols":["es.symbol"],"core-js/stable/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/stable/object/has-own":["es.object.has-own"],"core-js/stable/object/is":["es.object.is"],"core-js/stable/object/is-extensible":["es.object.is-extensible"],"core-js/stable/object/is-frozen":["es.object.is-frozen"],"core-js/stable/object/is-sealed":["es.object.is-sealed"],"core-js/stable/object/keys":["es.object.keys"],"core-js/stable/object/lookup-getter":["es.object.lookup-getter"],"core-js/stable/object/lookup-setter":["es.object.lookup-setter"],"core-js/stable/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/stable/object/proto":["es.object.proto"],"core-js/stable/object/seal":["es.object.seal"],"core-js/stable/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/stable/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/stable/object/values":["es.object.values"],"core-js/stable/parse-float":["es.parse-float"],"core-js/stable/parse-int":["es.parse-int"],"core-js/stable/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/stable/queue-microtask":["web.queue-microtask"],"core-js/stable/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/stable/reflect/apply":["es.reflect.apply"],"core-js/stable/reflect/construct":["es.reflect.construct"],"core-js/stable/reflect/define-property":["es.reflect.define-property"],"core-js/stable/reflect/delete-property":["es.reflect.delete-property"],"core-js/stable/reflect/get":["es.reflect.get"],"core-js/stable/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/stable/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/stable/reflect/has":["es.reflect.has"],"core-js/stable/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/stable/reflect/own-keys":["es.reflect.own-keys"],"core-js/stable/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/stable/reflect/set":["es.reflect.set"],"core-js/stable/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/stable/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/stable/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/stable/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/stable/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/stable/regexp/flags":["es.regexp.flags"],"core-js/stable/regexp/match":["es.regexp.exec","es.string.match"],"core-js/stable/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/stable/regexp/search":["es.regexp.exec","es.string.search"],"core-js/stable/regexp/split":["es.regexp.exec","es.string.split"],"core-js/stable/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/stable/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/stable/regexp/to-string":["es.regexp.to-string"],"core-js/stable/self":["web.self"],"core-js/stable/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/set-immediate":["web.immediate"],"core-js/stable/set-interval":["web.timers"],"core-js/stable/set-timeout":["web.timers"],"core-js/stable/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/stable/string/anchor":["es.string.anchor"],"core-js/stable/string/at":["es.string.at-alternative"],"core-js/stable/string/big":["es.string.big"],"core-js/stable/string/blink":["es.string.blink"],"core-js/stable/string/bold":["es.string.bold"],"core-js/stable/string/code-point-at":["es.string.code-point-at"],"core-js/stable/string/ends-with":["es.string.ends-with"],"core-js/stable/string/fixed":["es.string.fixed"],"core-js/stable/string/fontcolor":["es.string.fontcolor"],"core-js/stable/string/fontsize":["es.string.fontsize"],"core-js/stable/string/from-code-point":["es.string.from-code-point"],"core-js/stable/string/includes":["es.string.includes"],"core-js/stable/string/is-well-formed":["es.string.is-well-formed"],"core-js/stable/string/italics":["es.string.italics"],"core-js/stable/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/stable/string/link":["es.string.link"],"core-js/stable/string/match":["es.regexp.exec","es.string.match"],"core-js/stable/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/string/pad-end":["es.string.pad-end"],"core-js/stable/string/pad-start":["es.string.pad-start"],"core-js/stable/string/raw":["es.string.raw"],"core-js/stable/string/repeat":["es.string.repeat"],"core-js/stable/string/replace":["es.regexp.exec","es.string.replace"],"core-js/stable/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/stable/string/search":["es.regexp.exec","es.string.search"],"core-js/stable/string/small":["es.string.small"],"core-js/stable/string/split":["es.regexp.exec","es.string.split"],"core-js/stable/string/starts-with":["es.string.starts-with"],"core-js/stable/string/strike":["es.string.strike"],"core-js/stable/string/sub":["es.string.sub"],"core-js/stable/string/substr":["es.string.substr"],"core-js/stable/string/sup":["es.string.sup"],"core-js/stable/string/to-well-formed":["es.string.to-well-formed"],"core-js/stable/string/trim":["es.string.trim"],"core-js/stable/string/trim-end":["es.string.trim-end"],"core-js/stable/string/trim-left":["es.string.trim-start"],"core-js/stable/string/trim-right":["es.string.trim-end"],"core-js/stable/string/trim-start":["es.string.trim-start"],"core-js/stable/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/stable/string/virtual/anchor":["es.string.anchor"],"core-js/stable/string/virtual/at":["es.string.at-alternative"],"core-js/stable/string/virtual/big":["es.string.big"],"core-js/stable/string/virtual/blink":["es.string.blink"],"core-js/stable/string/virtual/bold":["es.string.bold"],"core-js/stable/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/stable/string/virtual/ends-with":["es.string.ends-with"],"core-js/stable/string/virtual/fixed":["es.string.fixed"],"core-js/stable/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/stable/string/virtual/fontsize":["es.string.fontsize"],"core-js/stable/string/virtual/includes":["es.string.includes"],"core-js/stable/string/virtual/is-well-formed":["es.string.is-well-formed"],"core-js/stable/string/virtual/italics":["es.string.italics"],"core-js/stable/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/stable/string/virtual/link":["es.string.link"],"core-js/stable/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/string/virtual/pad-end":["es.string.pad-end"],"core-js/stable/string/virtual/pad-start":["es.string.pad-start"],"core-js/stable/string/virtual/repeat":["es.string.repeat"],"core-js/stable/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/stable/string/virtual/small":["es.string.small"],"core-js/stable/string/virtual/starts-with":["es.string.starts-with"],"core-js/stable/string/virtual/strike":["es.string.strike"],"core-js/stable/string/virtual/sub":["es.string.sub"],"core-js/stable/string/virtual/substr":["es.string.substr"],"core-js/stable/string/virtual/sup":["es.string.sup"],"core-js/stable/string/virtual/to-well-formed":["es.string.to-well-formed"],"core-js/stable/string/virtual/trim":["es.string.trim"],"core-js/stable/string/virtual/trim-end":["es.string.trim-end"],"core-js/stable/string/virtual/trim-left":["es.string.trim-start"],"core-js/stable/string/virtual/trim-right":["es.string.trim-end"],"core-js/stable/string/virtual/trim-start":["es.string.trim-start"],"core-js/stable/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/stable/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","web.dom-collections.iterator"],"core-js/stable/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/stable/symbol/description":["es.symbol.description"],"core-js/stable/symbol/for":["es.symbol"],"core-js/stable/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/stable/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/stable/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/symbol/key-for":["es.symbol"],"core-js/stable/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/stable/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/stable/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/stable/symbol/species":["es.symbol.species"],"core-js/stable/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/stable/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/stable/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/stable/symbol/unscopables":["es.symbol.unscopables"],"core-js/stable/typed-array":["es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/at":["es.typed-array.at"],"core-js/stable/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/stable/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/every":["es.typed-array.every"],"core-js/stable/typed-array/fill":["es.typed-array.fill"],"core-js/stable/typed-array/filter":["es.typed-array.filter"],"core-js/stable/typed-array/find":["es.typed-array.find"],"core-js/stable/typed-array/find-index":["es.typed-array.find-index"],"core-js/stable/typed-array/find-last":["es.typed-array.find-last"],"core-js/stable/typed-array/find-last-index":["es.typed-array.find-last-index"],"core-js/stable/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/for-each":["es.typed-array.for-each"],"core-js/stable/typed-array/from":["es.typed-array.from"],"core-js/stable/typed-array/includes":["es.typed-array.includes"],"core-js/stable/typed-array/index-of":["es.typed-array.index-of"],"core-js/stable/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/join":["es.typed-array.join"],"core-js/stable/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/stable/typed-array/map":["es.typed-array.map"],"core-js/stable/typed-array/methods":["es.object.to-string","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/of":["es.typed-array.of"],"core-js/stable/typed-array/reduce":["es.typed-array.reduce"],"core-js/stable/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/stable/typed-array/reverse":["es.typed-array.reverse"],"core-js/stable/typed-array/set":["es.typed-array.set"],"core-js/stable/typed-array/slice":["es.typed-array.slice"],"core-js/stable/typed-array/some":["es.typed-array.some"],"core-js/stable/typed-array/sort":["es.typed-array.sort"],"core-js/stable/typed-array/subarray":["es.typed-array.subarray"],"core-js/stable/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/stable/typed-array/to-reversed":["es.typed-array.to-reversed"],"core-js/stable/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted"],"core-js/stable/typed-array/to-string":["es.typed-array.to-string"],"core-js/stable/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/with":["es.typed-array.with"],"core-js/stable/unescape":["es.unescape"],"core-js/stable/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stable/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stable/url/can-parse":["web.url","web.url.can-parse"],"core-js/stable/url/to-json":["web.url.to-json"],"core-js/stable/weak-map":["es.array.iterator","es.object.to-string","es.weak-map","web.dom-collections.iterator"],"core-js/stable/weak-set":["es.array.iterator","es.object.to-string","es.weak-set","web.dom-collections.iterator"],"core-js/stage":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stage/0":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stage/1":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of"],"core-js/stage/2":["es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.emplace","esnext.map.group-by","esnext.object.has-own","esnext.object.group-by","esnext.promise.all-settled","esnext.promise.any","esnext.promise.with-resolvers","esnext.set.difference.v2","esnext.set.difference","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with","esnext.weak-map.emplace"],"core-js/stage/3":["es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.object.has-own","esnext.promise.all-settled","esnext.promise.any","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.dispose","esnext.symbol.metadata","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/stage/4":["es.string.at-alternative","esnext.aggregate-error","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.global-this","esnext.object.has-own","esnext.promise.all-settled","esnext.promise.any","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.with"],"core-js/stage/pre":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/web":["web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/web/dom-collections":["web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/web/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/web/immediate":["web.immediate"],"core-js/web/queue-microtask":["web.queue-microtask"],"core-js/web/structured-clone":["es.array.iterator","es.map","es.object.to-string","es.set","web.structured-clone"],"core-js/web/timers":["web.timers"],"core-js/web/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/web/url-search-params":["web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"]}'); +module.exports = JSON.parse('{"core-js":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.map.group-by","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.map.group-by","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.data-view.get-float16","esnext.data-view.set-float16","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.group-by","esnext.math.f16round","esnext.object.has-own","esnext.object.group-by","esnext.promise.all-settled","esnext.promise.any","esnext.promise.with-resolvers","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.metadata","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual/aggregate-error":[],"core-js/actual/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with"],"core-js/actual/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/actual/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/actual/array-buffer/detached":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached"],"core-js/actual/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/actual/array-buffer/slice":["es.array-buffer.slice"],"core-js/actual/array-buffer/transfer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer"],"core-js/actual/array-buffer/transfer-to-fixed-length":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer-to-fixed-length"],"core-js/actual/array/at":["es.array.at"],"core-js/actual/array/concat":["es.array.concat"],"core-js/actual/array/copy-within":["es.array.copy-within"],"core-js/actual/array/entries":["es.array.iterator","es.object.to-string"],"core-js/actual/array/every":["es.array.every"],"core-js/actual/array/fill":["es.array.fill"],"core-js/actual/array/filter":["es.array.filter"],"core-js/actual/array/find":["es.array.find"],"core-js/actual/array/find-index":["es.array.find-index"],"core-js/actual/array/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/actual/array/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/actual/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/actual/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/actual/array/for-each":["es.array.for-each"],"core-js/actual/array/from":["es.array.from","es.string.iterator"],"core-js/actual/array/from-async":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async"],"core-js/actual/array/group":["esnext.array.group"],"core-js/actual/array/group-by":["esnext.array.group-by"],"core-js/actual/array/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/actual/array/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/actual/array/includes":["es.array.includes"],"core-js/actual/array/index-of":["es.array.index-of"],"core-js/actual/array/is-array":["es.array.is-array"],"core-js/actual/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/actual/array/join":["es.array.join"],"core-js/actual/array/keys":["es.array.iterator","es.object.to-string"],"core-js/actual/array/last-index-of":["es.array.last-index-of"],"core-js/actual/array/map":["es.array.map"],"core-js/actual/array/of":["es.array.of"],"core-js/actual/array/push":["es.array.push"],"core-js/actual/array/reduce":["es.array.reduce"],"core-js/actual/array/reduce-right":["es.array.reduce-right"],"core-js/actual/array/reverse":["es.array.reverse"],"core-js/actual/array/slice":["es.array.slice"],"core-js/actual/array/some":["es.array.some"],"core-js/actual/array/sort":["es.array.sort"],"core-js/actual/array/splice":["es.array.splice"],"core-js/actual/array/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/actual/array/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/actual/array/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/actual/array/unshift":["es.array.unshift"],"core-js/actual/array/values":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with"],"core-js/actual/array/virtual/at":["es.array.at"],"core-js/actual/array/virtual/concat":["es.array.concat"],"core-js/actual/array/virtual/copy-within":["es.array.copy-within"],"core-js/actual/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/every":["es.array.every"],"core-js/actual/array/virtual/fill":["es.array.fill"],"core-js/actual/array/virtual/filter":["es.array.filter"],"core-js/actual/array/virtual/find":["es.array.find"],"core-js/actual/array/virtual/find-index":["es.array.find-index"],"core-js/actual/array/virtual/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/actual/array/virtual/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/actual/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/actual/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/actual/array/virtual/for-each":["es.array.for-each"],"core-js/actual/array/virtual/group":["esnext.array.group"],"core-js/actual/array/virtual/group-by":["esnext.array.group-by"],"core-js/actual/array/virtual/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/actual/array/virtual/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/actual/array/virtual/includes":["es.array.includes"],"core-js/actual/array/virtual/index-of":["es.array.index-of"],"core-js/actual/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/join":["es.array.join"],"core-js/actual/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/actual/array/virtual/map":["es.array.map"],"core-js/actual/array/virtual/push":["es.array.push"],"core-js/actual/array/virtual/reduce":["es.array.reduce"],"core-js/actual/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/actual/array/virtual/reverse":["es.array.reverse"],"core-js/actual/array/virtual/slice":["es.array.slice"],"core-js/actual/array/virtual/some":["es.array.some"],"core-js/actual/array/virtual/sort":["es.array.sort"],"core-js/actual/array/virtual/splice":["es.array.splice"],"core-js/actual/array/virtual/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/actual/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/actual/array/virtual/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/actual/array/virtual/unshift":["es.array.unshift"],"core-js/actual/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/actual/array/virtual/with":["es.array.with","esnext.array.with"],"core-js/actual/array/with":["es.array.with","esnext.array.with"],"core-js/actual/async-disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/actual/async-disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/actual/async-iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/actual/async-iterator/async-dispose":["es.object.to-string","es.promise","esnext.async-iterator.async-dispose"],"core-js/actual/async-iterator/drop":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.drop"],"core-js/actual/async-iterator/every":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.every"],"core-js/actual/async-iterator/filter":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.filter"],"core-js/actual/async-iterator/find":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.find"],"core-js/actual/async-iterator/flat-map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.flat-map"],"core-js/actual/async-iterator/for-each":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.for-each"],"core-js/actual/async-iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/actual/async-iterator/map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.map"],"core-js/actual/async-iterator/reduce":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.reduce"],"core-js/actual/async-iterator/some":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.some"],"core-js/actual/async-iterator/take":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.take"],"core-js/actual/async-iterator/to-array":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.to-array"],"core-js/actual/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/actual/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/actual/clear-immediate":["web.immediate"],"core-js/actual/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string","esnext.data-view.get-float16","esnext.data-view.set-float16"],"core-js/actual/data-view/get-float16":["esnext.data-view.get-float16"],"core-js/actual/data-view/set-float16":["esnext.data-view.set-float16"],"core-js/actual/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/actual/date/get-year":["es.date.get-year"],"core-js/actual/date/now":["es.date.now"],"core-js/actual/date/set-year":["es.date.set-year"],"core-js/actual/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/actual/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/actual/date/to-json":["es.date.to-json"],"core-js/actual/date/to-primitive":["es.date.to-primitive"],"core-js/actual/date/to-string":["es.date.to-string"],"core-js/actual/disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/actual/disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/actual/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/actual/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/actual/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/actual/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/actual/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/actual/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/actual/error":["es.error.cause","es.error.to-string"],"core-js/actual/error/constructor":["es.error.cause"],"core-js/actual/error/to-string":["es.error.to-string"],"core-js/actual/escape":["es.escape"],"core-js/actual/function":["es.function.bind","es.function.has-instance","es.function.name","esnext.function.metadata"],"core-js/actual/function/bind":["es.function.bind"],"core-js/actual/function/has-instance":["es.function.has-instance"],"core-js/actual/function/metadata":["esnext.function.metadata"],"core-js/actual/function/name":["es.function.name"],"core-js/actual/function/virtual":["es.function.bind"],"core-js/actual/function/virtual/bind":["es.function.bind"],"core-js/actual/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/global-this":["es.global-this"],"core-js/actual/instance/at":["es.array.at","es.string.at-alternative"],"core-js/actual/instance/bind":["es.function.bind"],"core-js/actual/instance/code-point-at":["es.string.code-point-at"],"core-js/actual/instance/concat":["es.array.concat"],"core-js/actual/instance/copy-within":["es.array.copy-within"],"core-js/actual/instance/ends-with":["es.string.ends-with"],"core-js/actual/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/actual/instance/every":["es.array.every"],"core-js/actual/instance/fill":["es.array.fill"],"core-js/actual/instance/filter":["es.array.filter"],"core-js/actual/instance/find":["es.array.find"],"core-js/actual/instance/find-index":["es.array.find-index"],"core-js/actual/instance/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/actual/instance/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/actual/instance/flags":["es.regexp.flags"],"core-js/actual/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/actual/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/actual/instance/for-each":["es.array.for-each","web.dom-collections.for-each"],"core-js/actual/instance/group":["esnext.array.group"],"core-js/actual/instance/group-by":["esnext.array.group-by"],"core-js/actual/instance/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/actual/instance/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/actual/instance/includes":["es.array.includes","es.string.includes"],"core-js/actual/instance/index-of":["es.array.index-of"],"core-js/actual/instance/is-well-formed":["es.string.is-well-formed"],"core-js/actual/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/actual/instance/last-index-of":["es.array.last-index-of"],"core-js/actual/instance/map":["es.array.map"],"core-js/actual/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/instance/pad-end":["es.string.pad-end"],"core-js/actual/instance/pad-start":["es.string.pad-start"],"core-js/actual/instance/push":["es.array.push"],"core-js/actual/instance/reduce":["es.array.reduce"],"core-js/actual/instance/reduce-right":["es.array.reduce-right"],"core-js/actual/instance/repeat":["es.string.repeat"],"core-js/actual/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/actual/instance/reverse":["es.array.reverse"],"core-js/actual/instance/slice":["es.array.slice"],"core-js/actual/instance/some":["es.array.some"],"core-js/actual/instance/sort":["es.array.sort"],"core-js/actual/instance/splice":["es.array.splice"],"core-js/actual/instance/starts-with":["es.string.starts-with"],"core-js/actual/instance/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/actual/instance/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/actual/instance/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/actual/instance/to-well-formed":["es.string.to-well-formed"],"core-js/actual/instance/trim":["es.string.trim"],"core-js/actual/instance/trim-end":["es.string.trim-end"],"core-js/actual/instance/trim-left":["es.string.trim-start"],"core-js/actual/instance/trim-right":["es.string.trim-end"],"core-js/actual/instance/trim-start":["es.string.trim-start"],"core-js/actual/instance/unshift":["es.array.unshift"],"core-js/actual/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/actual/instance/with":["es.array.with","esnext.array.with"],"core-js/actual/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/actual/iterator/dispose":["esnext.iterator.dispose"],"core-js/actual/iterator/drop":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.drop"],"core-js/actual/iterator/every":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.every"],"core-js/actual/iterator/filter":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.filter"],"core-js/actual/iterator/find":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.find"],"core-js/actual/iterator/flat-map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.flat-map"],"core-js/actual/iterator/for-each":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.for-each"],"core-js/actual/iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/actual/iterator/map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.map"],"core-js/actual/iterator/reduce":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.reduce"],"core-js/actual/iterator/some":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.some"],"core-js/actual/iterator/take":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.take"],"core-js/actual/iterator/to-array":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.to-array"],"core-js/actual/iterator/to-async":["es.object.to-string","es.promise","esnext.iterator.constructor","esnext.iterator.to-async"],"core-js/actual/json":["es.json.stringify","es.json.to-string-tag","es.object.create","es.object.freeze","es.object.keys","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/actual/json/is-raw-json":["esnext.json.is-raw-json"],"core-js/actual/json/parse":["es.object.keys","esnext.json.parse"],"core-js/actual/json/raw-json":["es.object.create","es.object.freeze","esnext.json.raw-json"],"core-js/actual/json/stringify":["es.json.stringify"],"core-js/actual/json/to-string-tag":["es.json.to-string-tag"],"core-js/actual/map":["es.array.iterator","es.map","es.map.group-by","es.object.to-string","es.string.iterator","esnext.map.group-by","web.dom-collections.iterator"],"core-js/actual/map/group-by":["es.map","es.map.group-by","esnext.map.group-by"],"core-js/actual/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","esnext.math.f16round"],"core-js/actual/math/acosh":["es.math.acosh"],"core-js/actual/math/asinh":["es.math.asinh"],"core-js/actual/math/atanh":["es.math.atanh"],"core-js/actual/math/cbrt":["es.math.cbrt"],"core-js/actual/math/clz32":["es.math.clz32"],"core-js/actual/math/cosh":["es.math.cosh"],"core-js/actual/math/expm1":["es.math.expm1"],"core-js/actual/math/f16round":["esnext.math.f16round"],"core-js/actual/math/fround":["es.math.fround"],"core-js/actual/math/hypot":["es.math.hypot"],"core-js/actual/math/imul":["es.math.imul"],"core-js/actual/math/log10":["es.math.log10"],"core-js/actual/math/log1p":["es.math.log1p"],"core-js/actual/math/log2":["es.math.log2"],"core-js/actual/math/sign":["es.math.sign"],"core-js/actual/math/sinh":["es.math.sinh"],"core-js/actual/math/tanh":["es.math.tanh"],"core-js/actual/math/to-string-tag":["es.math.to-string-tag"],"core-js/actual/math/trunc":["es.math.trunc"],"core-js/actual/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/actual/number/constructor":["es.number.constructor"],"core-js/actual/number/epsilon":["es.number.epsilon"],"core-js/actual/number/is-finite":["es.number.is-finite"],"core-js/actual/number/is-integer":["es.number.is-integer"],"core-js/actual/number/is-nan":["es.number.is-nan"],"core-js/actual/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/actual/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/actual/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/actual/number/parse-float":["es.number.parse-float"],"core-js/actual/number/parse-int":["es.number.parse-int"],"core-js/actual/number/to-exponential":["es.number.to-exponential"],"core-js/actual/number/to-fixed":["es.number.to-fixed"],"core-js/actual/number/to-precision":["es.number.to-precision"],"core-js/actual/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/actual/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/actual/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/actual/number/virtual/to-precision":["es.number.to-precision"],"core-js/actual/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","esnext.object.group-by","web.dom-collections.iterator"],"core-js/actual/object/assign":["es.object.assign"],"core-js/actual/object/create":["es.object.create"],"core-js/actual/object/define-getter":["es.object.define-getter"],"core-js/actual/object/define-properties":["es.object.define-properties"],"core-js/actual/object/define-property":["es.object.define-property"],"core-js/actual/object/define-setter":["es.object.define-setter"],"core-js/actual/object/entries":["es.object.entries"],"core-js/actual/object/freeze":["es.object.freeze"],"core-js/actual/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/actual/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/actual/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/actual/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/actual/object/get-own-property-symbols":["es.symbol"],"core-js/actual/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/actual/object/group-by":["es.object.create","es.object.group-by","esnext.object.group-by"],"core-js/actual/object/has-own":["es.object.has-own"],"core-js/actual/object/is":["es.object.is"],"core-js/actual/object/is-extensible":["es.object.is-extensible"],"core-js/actual/object/is-frozen":["es.object.is-frozen"],"core-js/actual/object/is-sealed":["es.object.is-sealed"],"core-js/actual/object/keys":["es.object.keys"],"core-js/actual/object/lookup-getter":["es.object.lookup-getter"],"core-js/actual/object/lookup-setter":["es.object.lookup-setter"],"core-js/actual/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/actual/object/proto":["es.object.proto"],"core-js/actual/object/seal":["es.object.seal"],"core-js/actual/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/actual/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/actual/object/values":["es.object.values"],"core-js/actual/parse-float":["es.parse-float"],"core-js/actual/parse-int":["es.parse-int"],"core-js/actual/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.string.iterator","esnext.promise.with-resolvers","web.dom-collections.iterator"],"core-js/actual/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/actual/promise/with-resolvers":["es.promise","es.promise.with-resolvers","esnext.promise.with-resolvers"],"core-js/actual/queue-microtask":["web.queue-microtask"],"core-js/actual/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/actual/reflect/apply":["es.reflect.apply"],"core-js/actual/reflect/construct":["es.reflect.construct"],"core-js/actual/reflect/define-property":["es.reflect.define-property"],"core-js/actual/reflect/delete-property":["es.reflect.delete-property"],"core-js/actual/reflect/get":["es.reflect.get"],"core-js/actual/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/actual/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/actual/reflect/has":["es.reflect.has"],"core-js/actual/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/actual/reflect/own-keys":["es.reflect.own-keys"],"core-js/actual/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/actual/reflect/set":["es.reflect.set"],"core-js/actual/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/actual/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/actual/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/actual/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/actual/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/actual/regexp/flags":["es.regexp.flags"],"core-js/actual/regexp/match":["es.regexp.exec","es.string.match"],"core-js/actual/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/actual/regexp/search":["es.regexp.exec","es.string.search"],"core-js/actual/regexp/split":["es.regexp.exec","es.string.split"],"core-js/actual/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/actual/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/actual/regexp/to-string":["es.regexp.to-string"],"core-js/actual/self":["web.self"],"core-js/actual/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","web.dom-collections.iterator"],"core-js/actual/set-immediate":["web.immediate"],"core-js/actual/set-interval":["web.timers"],"core-js/actual/set-timeout":["web.timers"],"core-js/actual/set/difference":["es.set","esnext.set.difference.v2"],"core-js/actual/set/intersection":["es.set","esnext.set.intersection.v2"],"core-js/actual/set/is-disjoint-from":["es.set","esnext.set.is-disjoint-from.v2"],"core-js/actual/set/is-subset-of":["es.set","esnext.set.is-subset-of.v2"],"core-js/actual/set/is-superset-of":["es.set","esnext.set.is-superset-of.v2"],"core-js/actual/set/symmetric-difference":["es.set","esnext.set.symmetric-difference.v2"],"core-js/actual/set/union":["es.set","esnext.set.union.v2"],"core-js/actual/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.is-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/anchor":["es.string.anchor"],"core-js/actual/string/at":["es.string.at-alternative"],"core-js/actual/string/big":["es.string.big"],"core-js/actual/string/blink":["es.string.blink"],"core-js/actual/string/bold":["es.string.bold"],"core-js/actual/string/code-point-at":["es.string.code-point-at"],"core-js/actual/string/ends-with":["es.string.ends-with"],"core-js/actual/string/fixed":["es.string.fixed"],"core-js/actual/string/fontcolor":["es.string.fontcolor"],"core-js/actual/string/fontsize":["es.string.fontsize"],"core-js/actual/string/from-code-point":["es.string.from-code-point"],"core-js/actual/string/includes":["es.string.includes"],"core-js/actual/string/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/actual/string/italics":["es.string.italics"],"core-js/actual/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/actual/string/link":["es.string.link"],"core-js/actual/string/match":["es.regexp.exec","es.string.match"],"core-js/actual/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/string/pad-end":["es.string.pad-end"],"core-js/actual/string/pad-start":["es.string.pad-start"],"core-js/actual/string/raw":["es.string.raw"],"core-js/actual/string/repeat":["es.string.repeat"],"core-js/actual/string/replace":["es.regexp.exec","es.string.replace"],"core-js/actual/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/actual/string/search":["es.regexp.exec","es.string.search"],"core-js/actual/string/small":["es.string.small"],"core-js/actual/string/split":["es.regexp.exec","es.string.split"],"core-js/actual/string/starts-with":["es.string.starts-with"],"core-js/actual/string/strike":["es.string.strike"],"core-js/actual/string/sub":["es.string.sub"],"core-js/actual/string/substr":["es.string.substr"],"core-js/actual/string/sup":["es.string.sup"],"core-js/actual/string/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/trim":["es.string.trim"],"core-js/actual/string/trim-end":["es.string.trim-end"],"core-js/actual/string/trim-left":["es.string.trim-start"],"core-js/actual/string/trim-right":["es.string.trim-end"],"core-js/actual/string/trim-start":["es.string.trim-start"],"core-js/actual/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.is-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/virtual/anchor":["es.string.anchor"],"core-js/actual/string/virtual/at":["es.string.at-alternative"],"core-js/actual/string/virtual/big":["es.string.big"],"core-js/actual/string/virtual/blink":["es.string.blink"],"core-js/actual/string/virtual/bold":["es.string.bold"],"core-js/actual/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/actual/string/virtual/ends-with":["es.string.ends-with"],"core-js/actual/string/virtual/fixed":["es.string.fixed"],"core-js/actual/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/actual/string/virtual/fontsize":["es.string.fontsize"],"core-js/actual/string/virtual/includes":["es.string.includes"],"core-js/actual/string/virtual/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/actual/string/virtual/italics":["es.string.italics"],"core-js/actual/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/actual/string/virtual/link":["es.string.link"],"core-js/actual/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/string/virtual/pad-end":["es.string.pad-end"],"core-js/actual/string/virtual/pad-start":["es.string.pad-start"],"core-js/actual/string/virtual/repeat":["es.string.repeat"],"core-js/actual/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/actual/string/virtual/small":["es.string.small"],"core-js/actual/string/virtual/starts-with":["es.string.starts-with"],"core-js/actual/string/virtual/strike":["es.string.strike"],"core-js/actual/string/virtual/sub":["es.string.sub"],"core-js/actual/string/virtual/substr":["es.string.substr"],"core-js/actual/string/virtual/sup":["es.string.sup"],"core-js/actual/string/virtual/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/actual/string/virtual/trim":["es.string.trim"],"core-js/actual/string/virtual/trim-end":["es.string.trim-end"],"core-js/actual/string/virtual/trim-left":["es.string.trim-start"],"core-js/actual/string/virtual/trim-right":["es.string.trim-end"],"core-js/actual/string/virtual/trim-start":["es.string.trim-start"],"core-js/actual/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/actual/suppressed-error":[],"core-js/actual/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","esnext.function.metadata","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.metadata","web.dom-collections.iterator"],"core-js/actual/symbol/async-dispose":["esnext.symbol.async-dispose"],"core-js/actual/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/actual/symbol/description":["es.symbol.description"],"core-js/actual/symbol/dispose":["esnext.symbol.dispose"],"core-js/actual/symbol/for":["es.symbol"],"core-js/actual/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/actual/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/actual/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/actual/symbol/key-for":["es.symbol"],"core-js/actual/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/actual/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/actual/symbol/metadata":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/actual/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/actual/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/actual/symbol/species":["es.symbol.species"],"core-js/actual/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/actual/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/actual/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/actual/symbol/unscopables":["es.symbol.unscopables"],"core-js/actual/typed-array":["es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/at":["es.typed-array.at"],"core-js/actual/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/actual/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/every":["es.typed-array.every"],"core-js/actual/typed-array/fill":["es.typed-array.fill"],"core-js/actual/typed-array/filter":["es.typed-array.filter"],"core-js/actual/typed-array/find":["es.typed-array.find"],"core-js/actual/typed-array/find-index":["es.typed-array.find-index"],"core-js/actual/typed-array/find-last":["es.typed-array.find-last","esnext.typed-array.find-last"],"core-js/actual/typed-array/find-last-index":["es.typed-array.find-last-index","esnext.typed-array.find-last-index"],"core-js/actual/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/for-each":["es.typed-array.for-each"],"core-js/actual/typed-array/from":["es.typed-array.from"],"core-js/actual/typed-array/includes":["es.typed-array.includes"],"core-js/actual/typed-array/index-of":["es.typed-array.index-of"],"core-js/actual/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/join":["es.typed-array.join"],"core-js/actual/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/actual/typed-array/map":["es.typed-array.map"],"core-js/actual/typed-array/methods":["es.object.to-string","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/of":["es.typed-array.of"],"core-js/actual/typed-array/reduce":["es.typed-array.reduce"],"core-js/actual/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/actual/typed-array/reverse":["es.typed-array.reverse"],"core-js/actual/typed-array/set":["es.typed-array.set"],"core-js/actual/typed-array/slice":["es.typed-array.slice"],"core-js/actual/typed-array/some":["es.typed-array.some"],"core-js/actual/typed-array/sort":["es.typed-array.sort"],"core-js/actual/typed-array/subarray":["es.typed-array.subarray"],"core-js/actual/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/actual/typed-array/to-reversed":["es.typed-array.to-reversed","esnext.typed-array.to-reversed"],"core-js/actual/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted","esnext.typed-array.to-sorted"],"core-js/actual/typed-array/to-spliced":["esnext.typed-array.to-spliced"],"core-js/actual/typed-array/to-string":["es.typed-array.to-string"],"core-js/actual/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/actual/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/actual/typed-array/with":["es.typed-array.with","esnext.typed-array.with"],"core-js/actual/unescape":["es.unescape"],"core-js/actual/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/actual/url/can-parse":["web.url","web.url.can-parse"],"core-js/actual/url/to-json":["web.url.to-json"],"core-js/actual/weak-map":["es.array.iterator","es.object.to-string","es.weak-map","web.dom-collections.iterator"],"core-js/actual/weak-set":["es.array.iterator","es.object.to-string","es.weak-set","web.dom-collections.iterator"],"core-js/es":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.map.group-by","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set"],"core-js/es/aggregate-error":[],"core-js/es/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string","es.string.iterator"],"core-js/es/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string"],"core-js/es/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string"],"core-js/es/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/es/array-buffer/slice":["es.array-buffer.slice"],"core-js/es/array/at":["es.array.at"],"core-js/es/array/concat":["es.array.concat"],"core-js/es/array/copy-within":["es.array.copy-within"],"core-js/es/array/entries":["es.array.iterator","es.object.to-string"],"core-js/es/array/every":["es.array.every"],"core-js/es/array/fill":["es.array.fill"],"core-js/es/array/filter":["es.array.filter"],"core-js/es/array/find":["es.array.find"],"core-js/es/array/find-index":["es.array.find-index"],"core-js/es/array/find-last":["es.array.find-last"],"core-js/es/array/find-last-index":["es.array.find-last-index"],"core-js/es/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/array/for-each":["es.array.for-each"],"core-js/es/array/from":["es.array.from","es.string.iterator"],"core-js/es/array/includes":["es.array.includes"],"core-js/es/array/index-of":["es.array.index-of"],"core-js/es/array/is-array":["es.array.is-array"],"core-js/es/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/es/array/join":["es.array.join"],"core-js/es/array/keys":["es.array.iterator","es.object.to-string"],"core-js/es/array/last-index-of":["es.array.last-index-of"],"core-js/es/array/map":["es.array.map"],"core-js/es/array/of":["es.array.of"],"core-js/es/array/push":["es.array.push"],"core-js/es/array/reduce":["es.array.reduce"],"core-js/es/array/reduce-right":["es.array.reduce-right"],"core-js/es/array/reverse":["es.array.reverse"],"core-js/es/array/slice":["es.array.slice"],"core-js/es/array/some":["es.array.some"],"core-js/es/array/sort":["es.array.sort"],"core-js/es/array/splice":["es.array.splice"],"core-js/es/array/to-reversed":["es.array.to-reversed"],"core-js/es/array/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/es/array/to-spliced":["es.array.to-spliced"],"core-js/es/array/unshift":["es.array.unshift"],"core-js/es/array/values":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string"],"core-js/es/array/virtual/at":["es.array.at"],"core-js/es/array/virtual/concat":["es.array.concat"],"core-js/es/array/virtual/copy-within":["es.array.copy-within"],"core-js/es/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/every":["es.array.every"],"core-js/es/array/virtual/fill":["es.array.fill"],"core-js/es/array/virtual/filter":["es.array.filter"],"core-js/es/array/virtual/find":["es.array.find"],"core-js/es/array/virtual/find-index":["es.array.find-index"],"core-js/es/array/virtual/find-last":["es.array.find-last"],"core-js/es/array/virtual/find-last-index":["es.array.find-last-index"],"core-js/es/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/array/virtual/for-each":["es.array.for-each"],"core-js/es/array/virtual/includes":["es.array.includes"],"core-js/es/array/virtual/index-of":["es.array.index-of"],"core-js/es/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/join":["es.array.join"],"core-js/es/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/es/array/virtual/map":["es.array.map"],"core-js/es/array/virtual/push":["es.array.push"],"core-js/es/array/virtual/reduce":["es.array.reduce"],"core-js/es/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/es/array/virtual/reverse":["es.array.reverse"],"core-js/es/array/virtual/slice":["es.array.slice"],"core-js/es/array/virtual/some":["es.array.some"],"core-js/es/array/virtual/sort":["es.array.sort"],"core-js/es/array/virtual/splice":["es.array.splice"],"core-js/es/array/virtual/to-reversed":["es.array.to-reversed"],"core-js/es/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/es/array/virtual/to-spliced":["es.array.to-spliced"],"core-js/es/array/virtual/unshift":["es.array.unshift"],"core-js/es/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/es/array/virtual/with":["es.array.with"],"core-js/es/array/with":["es.array.with"],"core-js/es/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string"],"core-js/es/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/es/date/get-year":["es.date.get-year"],"core-js/es/date/now":["es.date.now"],"core-js/es/date/set-year":["es.date.set-year"],"core-js/es/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/es/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/es/date/to-json":["es.date.to-json"],"core-js/es/date/to-primitive":["es.date.to-primitive"],"core-js/es/date/to-string":["es.date.to-string"],"core-js/es/error":["es.error.cause","es.error.to-string"],"core-js/es/error/constructor":["es.error.cause"],"core-js/es/error/to-string":["es.error.to-string"],"core-js/es/escape":["es.escape"],"core-js/es/function":["es.function.bind","es.function.has-instance","es.function.name"],"core-js/es/function/bind":["es.function.bind"],"core-js/es/function/has-instance":["es.function.has-instance"],"core-js/es/function/name":["es.function.name"],"core-js/es/function/virtual":["es.function.bind"],"core-js/es/function/virtual/bind":["es.function.bind"],"core-js/es/get-iterator":["es.array.iterator","es.string.iterator"],"core-js/es/get-iterator-method":["es.array.iterator","es.string.iterator"],"core-js/es/global-this":["es.global-this"],"core-js/es/instance/at":["es.array.at","es.string.at-alternative"],"core-js/es/instance/bind":["es.function.bind"],"core-js/es/instance/code-point-at":["es.string.code-point-at"],"core-js/es/instance/concat":["es.array.concat"],"core-js/es/instance/copy-within":["es.array.copy-within"],"core-js/es/instance/ends-with":["es.string.ends-with"],"core-js/es/instance/entries":["es.array.iterator","es.object.to-string"],"core-js/es/instance/every":["es.array.every"],"core-js/es/instance/fill":["es.array.fill"],"core-js/es/instance/filter":["es.array.filter"],"core-js/es/instance/find":["es.array.find"],"core-js/es/instance/find-index":["es.array.find-index"],"core-js/es/instance/find-last":["es.array.find-last"],"core-js/es/instance/find-last-index":["es.array.find-last-index"],"core-js/es/instance/flags":["es.regexp.flags"],"core-js/es/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/es/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/es/instance/for-each":["es.array.for-each"],"core-js/es/instance/includes":["es.array.includes","es.string.includes"],"core-js/es/instance/index-of":["es.array.index-of"],"core-js/es/instance/is-well-formed":["es.string.is-well-formed"],"core-js/es/instance/keys":["es.array.iterator","es.object.to-string"],"core-js/es/instance/last-index-of":["es.array.last-index-of"],"core-js/es/instance/map":["es.array.map"],"core-js/es/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/instance/pad-end":["es.string.pad-end"],"core-js/es/instance/pad-start":["es.string.pad-start"],"core-js/es/instance/push":["es.array.push"],"core-js/es/instance/reduce":["es.array.reduce"],"core-js/es/instance/reduce-right":["es.array.reduce-right"],"core-js/es/instance/repeat":["es.string.repeat"],"core-js/es/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/es/instance/reverse":["es.array.reverse"],"core-js/es/instance/slice":["es.array.slice"],"core-js/es/instance/some":["es.array.some"],"core-js/es/instance/sort":["es.array.sort"],"core-js/es/instance/splice":["es.array.splice"],"core-js/es/instance/starts-with":["es.string.starts-with"],"core-js/es/instance/to-reversed":["es.array.to-reversed"],"core-js/es/instance/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/es/instance/to-spliced":["es.array.to-spliced"],"core-js/es/instance/to-well-formed":["es.string.to-well-formed"],"core-js/es/instance/trim":["es.string.trim"],"core-js/es/instance/trim-end":["es.string.trim-end"],"core-js/es/instance/trim-left":["es.string.trim-start"],"core-js/es/instance/trim-right":["es.string.trim-end"],"core-js/es/instance/trim-start":["es.string.trim-start"],"core-js/es/instance/unshift":["es.array.unshift"],"core-js/es/instance/values":["es.array.iterator","es.object.to-string"],"core-js/es/instance/with":["es.array.with"],"core-js/es/is-iterable":["es.array.iterator","es.string.iterator"],"core-js/es/json":["es.json.stringify","es.json.to-string-tag"],"core-js/es/json/stringify":["es.json.stringify"],"core-js/es/json/to-string-tag":["es.json.to-string-tag"],"core-js/es/map":["es.array.iterator","es.map","es.map.group-by","es.object.to-string","es.string.iterator"],"core-js/es/map/group-by":["es.map","es.map.group-by"],"core-js/es/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc"],"core-js/es/math/acosh":["es.math.acosh"],"core-js/es/math/asinh":["es.math.asinh"],"core-js/es/math/atanh":["es.math.atanh"],"core-js/es/math/cbrt":["es.math.cbrt"],"core-js/es/math/clz32":["es.math.clz32"],"core-js/es/math/cosh":["es.math.cosh"],"core-js/es/math/expm1":["es.math.expm1"],"core-js/es/math/fround":["es.math.fround"],"core-js/es/math/hypot":["es.math.hypot"],"core-js/es/math/imul":["es.math.imul"],"core-js/es/math/log10":["es.math.log10"],"core-js/es/math/log1p":["es.math.log1p"],"core-js/es/math/log2":["es.math.log2"],"core-js/es/math/sign":["es.math.sign"],"core-js/es/math/sinh":["es.math.sinh"],"core-js/es/math/tanh":["es.math.tanh"],"core-js/es/math/to-string-tag":["es.math.to-string-tag"],"core-js/es/math/trunc":["es.math.trunc"],"core-js/es/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/es/number/constructor":["es.number.constructor"],"core-js/es/number/epsilon":["es.number.epsilon"],"core-js/es/number/is-finite":["es.number.is-finite"],"core-js/es/number/is-integer":["es.number.is-integer"],"core-js/es/number/is-nan":["es.number.is-nan"],"core-js/es/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/es/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/es/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/es/number/parse-float":["es.number.parse-float"],"core-js/es/number/parse-int":["es.number.parse-int"],"core-js/es/number/to-exponential":["es.number.to-exponential"],"core-js/es/number/to-fixed":["es.number.to-fixed"],"core-js/es/number/to-precision":["es.number.to-precision"],"core-js/es/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/es/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/es/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/es/number/virtual/to-precision":["es.number.to-precision"],"core-js/es/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag"],"core-js/es/object/assign":["es.object.assign"],"core-js/es/object/create":["es.object.create"],"core-js/es/object/define-getter":["es.object.define-getter"],"core-js/es/object/define-properties":["es.object.define-properties"],"core-js/es/object/define-property":["es.object.define-property"],"core-js/es/object/define-setter":["es.object.define-setter"],"core-js/es/object/entries":["es.object.entries"],"core-js/es/object/freeze":["es.object.freeze"],"core-js/es/object/from-entries":["es.array.iterator","es.object.from-entries"],"core-js/es/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/es/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/es/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/es/object/get-own-property-symbols":["es.symbol"],"core-js/es/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/es/object/group-by":["es.object.create","es.object.group-by"],"core-js/es/object/has-own":["es.object.has-own"],"core-js/es/object/is":["es.object.is"],"core-js/es/object/is-extensible":["es.object.is-extensible"],"core-js/es/object/is-frozen":["es.object.is-frozen"],"core-js/es/object/is-sealed":["es.object.is-sealed"],"core-js/es/object/keys":["es.object.keys"],"core-js/es/object/lookup-getter":["es.object.lookup-getter"],"core-js/es/object/lookup-setter":["es.object.lookup-setter"],"core-js/es/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/es/object/proto":["es.object.proto"],"core-js/es/object/seal":["es.object.seal"],"core-js/es/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/es/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/object/values":["es.object.values"],"core-js/es/parse-float":["es.parse-float"],"core-js/es/parse-int":["es.parse-int"],"core-js/es/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.string.iterator"],"core-js/es/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator"],"core-js/es/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator"],"core-js/es/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/es/promise/with-resolvers":["es.promise","es.promise.with-resolvers"],"core-js/es/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/es/reflect/apply":["es.reflect.apply"],"core-js/es/reflect/construct":["es.reflect.construct"],"core-js/es/reflect/define-property":["es.reflect.define-property"],"core-js/es/reflect/delete-property":["es.reflect.delete-property"],"core-js/es/reflect/get":["es.reflect.get"],"core-js/es/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/es/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/es/reflect/has":["es.reflect.has"],"core-js/es/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/es/reflect/own-keys":["es.reflect.own-keys"],"core-js/es/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/es/reflect/set":["es.reflect.set"],"core-js/es/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/es/reflect/to-string-tag":["es.object.to-string","es.reflect.to-string-tag"],"core-js/es/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/es/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/es/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/es/regexp/flags":["es.regexp.flags"],"core-js/es/regexp/match":["es.regexp.exec","es.string.match"],"core-js/es/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/es/regexp/search":["es.regexp.exec","es.string.search"],"core-js/es/regexp/split":["es.regexp.exec","es.string.split"],"core-js/es/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/es/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/es/regexp/to-string":["es.regexp.to-string"],"core-js/es/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator"],"core-js/es/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/es/string/anchor":["es.string.anchor"],"core-js/es/string/at":["es.string.at-alternative"],"core-js/es/string/big":["es.string.big"],"core-js/es/string/blink":["es.string.blink"],"core-js/es/string/bold":["es.string.bold"],"core-js/es/string/code-point-at":["es.string.code-point-at"],"core-js/es/string/ends-with":["es.string.ends-with"],"core-js/es/string/fixed":["es.string.fixed"],"core-js/es/string/fontcolor":["es.string.fontcolor"],"core-js/es/string/fontsize":["es.string.fontsize"],"core-js/es/string/from-code-point":["es.string.from-code-point"],"core-js/es/string/includes":["es.string.includes"],"core-js/es/string/is-well-formed":["es.string.is-well-formed"],"core-js/es/string/italics":["es.string.italics"],"core-js/es/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/es/string/link":["es.string.link"],"core-js/es/string/match":["es.regexp.exec","es.string.match"],"core-js/es/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/string/pad-end":["es.string.pad-end"],"core-js/es/string/pad-start":["es.string.pad-start"],"core-js/es/string/raw":["es.string.raw"],"core-js/es/string/repeat":["es.string.repeat"],"core-js/es/string/replace":["es.regexp.exec","es.string.replace"],"core-js/es/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/es/string/search":["es.regexp.exec","es.string.search"],"core-js/es/string/small":["es.string.small"],"core-js/es/string/split":["es.regexp.exec","es.string.split"],"core-js/es/string/starts-with":["es.string.starts-with"],"core-js/es/string/strike":["es.string.strike"],"core-js/es/string/sub":["es.string.sub"],"core-js/es/string/substr":["es.string.substr"],"core-js/es/string/sup":["es.string.sup"],"core-js/es/string/to-well-formed":["es.string.to-well-formed"],"core-js/es/string/trim":["es.string.trim"],"core-js/es/string/trim-end":["es.string.trim-end"],"core-js/es/string/trim-left":["es.string.trim-start"],"core-js/es/string/trim-right":["es.string.trim-end"],"core-js/es/string/trim-start":["es.string.trim-start"],"core-js/es/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/es/string/virtual/anchor":["es.string.anchor"],"core-js/es/string/virtual/at":["es.string.at-alternative"],"core-js/es/string/virtual/big":["es.string.big"],"core-js/es/string/virtual/blink":["es.string.blink"],"core-js/es/string/virtual/bold":["es.string.bold"],"core-js/es/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/es/string/virtual/ends-with":["es.string.ends-with"],"core-js/es/string/virtual/fixed":["es.string.fixed"],"core-js/es/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/es/string/virtual/fontsize":["es.string.fontsize"],"core-js/es/string/virtual/includes":["es.string.includes"],"core-js/es/string/virtual/is-well-formed":["es.string.is-well-formed"],"core-js/es/string/virtual/italics":["es.string.italics"],"core-js/es/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/es/string/virtual/link":["es.string.link"],"core-js/es/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/string/virtual/pad-end":["es.string.pad-end"],"core-js/es/string/virtual/pad-start":["es.string.pad-start"],"core-js/es/string/virtual/repeat":["es.string.repeat"],"core-js/es/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/es/string/virtual/small":["es.string.small"],"core-js/es/string/virtual/starts-with":["es.string.starts-with"],"core-js/es/string/virtual/strike":["es.string.strike"],"core-js/es/string/virtual/sub":["es.string.sub"],"core-js/es/string/virtual/substr":["es.string.substr"],"core-js/es/string/virtual/sup":["es.string.sup"],"core-js/es/string/virtual/to-well-formed":["es.string.to-well-formed"],"core-js/es/string/virtual/trim":["es.string.trim"],"core-js/es/string/virtual/trim-end":["es.string.trim-end"],"core-js/es/string/virtual/trim-left":["es.string.trim-start"],"core-js/es/string/virtual/trim-right":["es.string.trim-end"],"core-js/es/string/virtual/trim-start":["es.string.trim-start"],"core-js/es/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/es/symbol/description":["es.symbol.description"],"core-js/es/symbol/for":["es.symbol"],"core-js/es/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/es/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/es/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator"],"core-js/es/symbol/key-for":["es.symbol"],"core-js/es/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/es/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/es/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/es/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/es/symbol/species":["es.symbol.species"],"core-js/es/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/es/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/es/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/es/symbol/unscopables":["es.symbol.unscopables"],"core-js/es/typed-array":["es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/at":["es.typed-array.at"],"core-js/es/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/es/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/every":["es.typed-array.every"],"core-js/es/typed-array/fill":["es.typed-array.fill"],"core-js/es/typed-array/filter":["es.typed-array.filter"],"core-js/es/typed-array/find":["es.typed-array.find"],"core-js/es/typed-array/find-index":["es.typed-array.find-index"],"core-js/es/typed-array/find-last":["es.typed-array.find-last"],"core-js/es/typed-array/find-last-index":["es.typed-array.find-last-index"],"core-js/es/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/for-each":["es.typed-array.for-each"],"core-js/es/typed-array/from":["es.typed-array.from"],"core-js/es/typed-array/includes":["es.typed-array.includes"],"core-js/es/typed-array/index-of":["es.typed-array.index-of"],"core-js/es/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/join":["es.typed-array.join"],"core-js/es/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/es/typed-array/map":["es.typed-array.map"],"core-js/es/typed-array/methods":["es.object.to-string","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/of":["es.typed-array.of"],"core-js/es/typed-array/reduce":["es.typed-array.reduce"],"core-js/es/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/es/typed-array/reverse":["es.typed-array.reverse"],"core-js/es/typed-array/set":["es.typed-array.set"],"core-js/es/typed-array/slice":["es.typed-array.slice"],"core-js/es/typed-array/some":["es.typed-array.some"],"core-js/es/typed-array/sort":["es.typed-array.sort"],"core-js/es/typed-array/subarray":["es.typed-array.subarray"],"core-js/es/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/es/typed-array/to-reversed":["es.typed-array.to-reversed"],"core-js/es/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted"],"core-js/es/typed-array/to-string":["es.typed-array.to-string"],"core-js/es/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/es/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/es/typed-array/with":["es.typed-array.with"],"core-js/es/unescape":["es.unescape"],"core-js/es/weak-map":["es.array.iterator","es.object.to-string","es.weak-map"],"core-js/es/weak-set":["es.array.iterator","es.object.to-string","es.weak-set"],"core-js/features":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.map.group-by","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/features/aggregate-error":[],"core-js/features/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/features/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/features/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/features/array-buffer/detached":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached"],"core-js/features/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/features/array-buffer/slice":["es.array-buffer.slice"],"core-js/features/array-buffer/transfer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer"],"core-js/features/array-buffer/transfer-to-fixed-length":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer-to-fixed-length"],"core-js/features/array/at":["es.array.at","esnext.array.at"],"core-js/features/array/concat":["es.array.concat"],"core-js/features/array/copy-within":["es.array.copy-within"],"core-js/features/array/entries":["es.array.iterator","es.object.to-string"],"core-js/features/array/every":["es.array.every"],"core-js/features/array/fill":["es.array.fill"],"core-js/features/array/filter":["es.array.filter"],"core-js/features/array/filter-out":["esnext.array.filter-out"],"core-js/features/array/filter-reject":["esnext.array.filter-reject"],"core-js/features/array/find":["es.array.find"],"core-js/features/array/find-index":["es.array.find-index"],"core-js/features/array/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/features/array/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/features/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/array/for-each":["es.array.for-each"],"core-js/features/array/from":["es.array.from","es.string.iterator"],"core-js/features/array/from-async":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async"],"core-js/features/array/group":["esnext.array.group"],"core-js/features/array/group-by":["esnext.array.group-by"],"core-js/features/array/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/features/array/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/features/array/includes":["es.array.includes"],"core-js/features/array/index-of":["es.array.index-of"],"core-js/features/array/is-array":["es.array.is-array"],"core-js/features/array/is-template-object":["esnext.array.is-template-object"],"core-js/features/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/features/array/join":["es.array.join"],"core-js/features/array/keys":["es.array.iterator","es.object.to-string"],"core-js/features/array/last-index":["esnext.array.last-index"],"core-js/features/array/last-index-of":["es.array.last-index-of"],"core-js/features/array/last-item":["esnext.array.last-item"],"core-js/features/array/map":["es.array.map"],"core-js/features/array/of":["es.array.of"],"core-js/features/array/push":["es.array.push"],"core-js/features/array/reduce":["es.array.reduce"],"core-js/features/array/reduce-right":["es.array.reduce-right"],"core-js/features/array/reverse":["es.array.reverse"],"core-js/features/array/slice":["es.array.slice"],"core-js/features/array/some":["es.array.some"],"core-js/features/array/sort":["es.array.sort"],"core-js/features/array/splice":["es.array.splice"],"core-js/features/array/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/features/array/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/features/array/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/features/array/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/array/unshift":["es.array.unshift"],"core-js/features/array/values":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/features/array/virtual/at":["es.array.at","esnext.array.at"],"core-js/features/array/virtual/concat":["es.array.concat"],"core-js/features/array/virtual/copy-within":["es.array.copy-within"],"core-js/features/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/every":["es.array.every"],"core-js/features/array/virtual/fill":["es.array.fill"],"core-js/features/array/virtual/filter":["es.array.filter"],"core-js/features/array/virtual/filter-out":["esnext.array.filter-out"],"core-js/features/array/virtual/filter-reject":["esnext.array.filter-reject"],"core-js/features/array/virtual/find":["es.array.find"],"core-js/features/array/virtual/find-index":["es.array.find-index"],"core-js/features/array/virtual/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/features/array/virtual/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/features/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/array/virtual/for-each":["es.array.for-each"],"core-js/features/array/virtual/group":["esnext.array.group"],"core-js/features/array/virtual/group-by":["esnext.array.group-by"],"core-js/features/array/virtual/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/features/array/virtual/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/features/array/virtual/includes":["es.array.includes"],"core-js/features/array/virtual/index-of":["es.array.index-of"],"core-js/features/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/join":["es.array.join"],"core-js/features/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/features/array/virtual/map":["es.array.map"],"core-js/features/array/virtual/push":["es.array.push"],"core-js/features/array/virtual/reduce":["es.array.reduce"],"core-js/features/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/features/array/virtual/reverse":["es.array.reverse"],"core-js/features/array/virtual/slice":["es.array.slice"],"core-js/features/array/virtual/some":["es.array.some"],"core-js/features/array/virtual/sort":["es.array.sort"],"core-js/features/array/virtual/splice":["es.array.splice"],"core-js/features/array/virtual/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/features/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/features/array/virtual/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/features/array/virtual/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/array/virtual/unshift":["es.array.unshift"],"core-js/features/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/features/array/virtual/with":["es.array.with","esnext.array.with"],"core-js/features/array/with":["es.array.with","esnext.array.with"],"core-js/features/async-disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/features/async-disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/features/async-iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/features/async-iterator/as-indexed-pairs":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs"],"core-js/features/async-iterator/async-dispose":["es.object.to-string","es.promise","esnext.async-iterator.async-dispose"],"core-js/features/async-iterator/drop":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.drop"],"core-js/features/async-iterator/every":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.every"],"core-js/features/async-iterator/filter":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.filter"],"core-js/features/async-iterator/find":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.find"],"core-js/features/async-iterator/flat-map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.flat-map"],"core-js/features/async-iterator/for-each":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.for-each"],"core-js/features/async-iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/features/async-iterator/indexed":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.indexed"],"core-js/features/async-iterator/map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.map"],"core-js/features/async-iterator/reduce":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.reduce"],"core-js/features/async-iterator/some":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.some"],"core-js/features/async-iterator/take":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.take"],"core-js/features/async-iterator/to-array":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.to-array"],"core-js/features/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/features/bigint":["es.object.to-string","esnext.bigint.range"],"core-js/features/bigint/range":["es.object.to-string","esnext.bigint.range"],"core-js/features/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/features/clear-immediate":["web.immediate"],"core-js/features/composite-key":["esnext.composite-key"],"core-js/features/composite-symbol":["es.symbol","esnext.composite-symbol"],"core-js/features/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped"],"core-js/features/data-view/get-float16":["esnext.data-view.get-float16"],"core-js/features/data-view/get-uint8-clamped":["esnext.data-view.get-uint8-clamped"],"core-js/features/data-view/set-float16":["esnext.data-view.set-float16"],"core-js/features/data-view/set-uint8-clamped":["esnext.data-view.set-uint8-clamped"],"core-js/features/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/features/date/get-year":["es.date.get-year"],"core-js/features/date/now":["es.date.now"],"core-js/features/date/set-year":["es.date.set-year"],"core-js/features/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/features/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/features/date/to-json":["es.date.to-json"],"core-js/features/date/to-primitive":["es.date.to-primitive"],"core-js/features/date/to-string":["es.date.to-string"],"core-js/features/disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/features/disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/features/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/features/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/features/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/features/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/features/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/features/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/features/error":["es.error.cause","es.error.to-string"],"core-js/features/error/constructor":["es.error.cause"],"core-js/features/error/to-string":["es.error.to-string"],"core-js/features/escape":["es.escape"],"core-js/features/function":["es.function.bind","es.function.has-instance","es.function.name","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this"],"core-js/features/function/bind":["es.function.bind"],"core-js/features/function/demethodize":["esnext.function.demethodize"],"core-js/features/function/has-instance":["es.function.has-instance"],"core-js/features/function/is-callable":["esnext.function.is-callable"],"core-js/features/function/is-constructor":["esnext.function.is-constructor"],"core-js/features/function/metadata":["esnext.function.metadata"],"core-js/features/function/name":["es.function.name"],"core-js/features/function/un-this":["esnext.function.un-this"],"core-js/features/function/virtual":["es.function.bind","esnext.function.demethodize","esnext.function.un-this"],"core-js/features/function/virtual/bind":["es.function.bind"],"core-js/features/function/virtual/demethodize":["esnext.function.demethodize"],"core-js/features/function/virtual/un-this":["esnext.function.un-this"],"core-js/features/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/features/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/features/global-this":["es.global-this","esnext.global-this"],"core-js/features/instance/at":["es.array.at","es.string.at-alternative","esnext.array.at","esnext.string.at"],"core-js/features/instance/bind":["es.function.bind"],"core-js/features/instance/code-point-at":["es.string.code-point-at"],"core-js/features/instance/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/features/instance/concat":["es.array.concat"],"core-js/features/instance/copy-within":["es.array.copy-within"],"core-js/features/instance/demethodize":["esnext.function.demethodize"],"core-js/features/instance/ends-with":["es.string.ends-with"],"core-js/features/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/features/instance/every":["es.array.every"],"core-js/features/instance/fill":["es.array.fill"],"core-js/features/instance/filter":["es.array.filter"],"core-js/features/instance/filter-out":["esnext.array.filter-out"],"core-js/features/instance/filter-reject":["esnext.array.filter-reject"],"core-js/features/instance/find":["es.array.find"],"core-js/features/instance/find-index":["es.array.find-index"],"core-js/features/instance/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/features/instance/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/features/instance/flags":["es.regexp.flags"],"core-js/features/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/features/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/features/instance/for-each":["es.array.for-each","web.dom-collections.for-each"],"core-js/features/instance/group":["esnext.array.group"],"core-js/features/instance/group-by":["esnext.array.group-by"],"core-js/features/instance/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/features/instance/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/features/instance/includes":["es.array.includes","es.string.includes"],"core-js/features/instance/index-of":["es.array.index-of"],"core-js/features/instance/is-well-formed":["es.string.is-well-formed"],"core-js/features/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/features/instance/last-index-of":["es.array.last-index-of"],"core-js/features/instance/map":["es.array.map"],"core-js/features/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/features/instance/pad-end":["es.string.pad-end"],"core-js/features/instance/pad-start":["es.string.pad-start"],"core-js/features/instance/push":["es.array.push"],"core-js/features/instance/reduce":["es.array.reduce"],"core-js/features/instance/reduce-right":["es.array.reduce-right"],"core-js/features/instance/repeat":["es.string.repeat"],"core-js/features/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/features/instance/reverse":["es.array.reverse"],"core-js/features/instance/slice":["es.array.slice"],"core-js/features/instance/some":["es.array.some"],"core-js/features/instance/sort":["es.array.sort"],"core-js/features/instance/splice":["es.array.splice"],"core-js/features/instance/starts-with":["es.string.starts-with"],"core-js/features/instance/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/features/instance/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/features/instance/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/features/instance/to-well-formed":["es.string.to-well-formed"],"core-js/features/instance/trim":["es.string.trim"],"core-js/features/instance/trim-end":["es.string.trim-end"],"core-js/features/instance/trim-left":["es.string.trim-start"],"core-js/features/instance/trim-right":["es.string.trim-end"],"core-js/features/instance/trim-start":["es.string.trim-start"],"core-js/features/instance/un-this":["esnext.function.un-this"],"core-js/features/instance/unique-by":["es.map","esnext.array.unique-by"],"core-js/features/instance/unshift":["es.array.unshift"],"core-js/features/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/features/instance/with":["es.array.with","esnext.array.with"],"core-js/features/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/features/iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/features/iterator/as-indexed-pairs":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs"],"core-js/features/iterator/dispose":["esnext.iterator.dispose"],"core-js/features/iterator/drop":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.drop"],"core-js/features/iterator/every":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.every"],"core-js/features/iterator/filter":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.filter"],"core-js/features/iterator/find":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.find"],"core-js/features/iterator/flat-map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.flat-map"],"core-js/features/iterator/for-each":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.for-each"],"core-js/features/iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/features/iterator/indexed":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.indexed"],"core-js/features/iterator/map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.map"],"core-js/features/iterator/range":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.range"],"core-js/features/iterator/reduce":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.reduce"],"core-js/features/iterator/some":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.some"],"core-js/features/iterator/take":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.take"],"core-js/features/iterator/to-array":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.to-array"],"core-js/features/iterator/to-async":["es.object.to-string","es.promise","esnext.iterator.constructor","esnext.iterator.to-async"],"core-js/features/json":["es.json.stringify","es.json.to-string-tag","es.object.create","es.object.freeze","es.object.keys","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/features/json/is-raw-json":["esnext.json.is-raw-json"],"core-js/features/json/parse":["es.object.keys","esnext.json.parse"],"core-js/features/json/raw-json":["es.object.create","es.object.freeze","esnext.json.raw-json"],"core-js/features/json/stringify":["es.json.stringify"],"core-js/features/json/to-string-tag":["es.json.to-string-tag"],"core-js/features/map":["es.array.iterator","es.map","es.map.group-by","es.object.to-string","es.string.iterator","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","web.dom-collections.iterator"],"core-js/features/map/delete-all":["es.map","esnext.map.delete-all"],"core-js/features/map/emplace":["es.map","esnext.map.emplace"],"core-js/features/map/every":["es.map","esnext.map.every"],"core-js/features/map/filter":["es.map","esnext.map.filter"],"core-js/features/map/find":["es.map","esnext.map.find"],"core-js/features/map/find-key":["es.map","esnext.map.find-key"],"core-js/features/map/from":["es.array.iterator","es.map","es.string.iterator","esnext.map.from","web.dom-collections.iterator"],"core-js/features/map/group-by":["es.map","es.map.group-by","esnext.map.group-by"],"core-js/features/map/includes":["es.map","esnext.map.includes"],"core-js/features/map/key-by":["es.map","esnext.map.key-by"],"core-js/features/map/key-of":["es.map","esnext.map.key-of"],"core-js/features/map/map-keys":["es.map","esnext.map.map-keys"],"core-js/features/map/map-values":["es.map","esnext.map.map-values"],"core-js/features/map/merge":["es.map","esnext.map.merge"],"core-js/features/map/of":["es.array.iterator","es.map","esnext.map.of"],"core-js/features/map/reduce":["es.map","esnext.map.reduce"],"core-js/features/map/some":["es.map","esnext.map.some"],"core-js/features/map/update":["es.map","esnext.map.update"],"core-js/features/map/update-or-insert":["es.map","esnext.map.update-or-insert"],"core-js/features/map/upsert":["es.map","esnext.map.upsert"],"core-js/features/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh"],"core-js/features/math/acosh":["es.math.acosh"],"core-js/features/math/asinh":["es.math.asinh"],"core-js/features/math/atanh":["es.math.atanh"],"core-js/features/math/cbrt":["es.math.cbrt"],"core-js/features/math/clamp":["esnext.math.clamp"],"core-js/features/math/clz32":["es.math.clz32"],"core-js/features/math/cosh":["es.math.cosh"],"core-js/features/math/deg-per-rad":["esnext.math.deg-per-rad"],"core-js/features/math/degrees":["esnext.math.degrees"],"core-js/features/math/expm1":["es.math.expm1"],"core-js/features/math/f16round":["esnext.math.f16round"],"core-js/features/math/fround":["es.math.fround"],"core-js/features/math/fscale":["esnext.math.fscale"],"core-js/features/math/hypot":["es.math.hypot"],"core-js/features/math/iaddh":["esnext.math.iaddh"],"core-js/features/math/imul":["es.math.imul"],"core-js/features/math/imulh":["esnext.math.imulh"],"core-js/features/math/isubh":["esnext.math.isubh"],"core-js/features/math/log10":["es.math.log10"],"core-js/features/math/log1p":["es.math.log1p"],"core-js/features/math/log2":["es.math.log2"],"core-js/features/math/rad-per-deg":["esnext.math.rad-per-deg"],"core-js/features/math/radians":["esnext.math.radians"],"core-js/features/math/scale":["esnext.math.scale"],"core-js/features/math/seeded-prng":["esnext.math.seeded-prng"],"core-js/features/math/sign":["es.math.sign"],"core-js/features/math/signbit":["esnext.math.signbit"],"core-js/features/math/sinh":["es.math.sinh"],"core-js/features/math/tanh":["es.math.tanh"],"core-js/features/math/to-string-tag":["es.math.to-string-tag"],"core-js/features/math/trunc":["es.math.trunc"],"core-js/features/math/umulh":["esnext.math.umulh"],"core-js/features/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.to-string","esnext.number.from-string","esnext.number.range"],"core-js/features/number/constructor":["es.number.constructor"],"core-js/features/number/epsilon":["es.number.epsilon"],"core-js/features/number/from-string":["esnext.number.from-string"],"core-js/features/number/is-finite":["es.number.is-finite"],"core-js/features/number/is-integer":["es.number.is-integer"],"core-js/features/number/is-nan":["es.number.is-nan"],"core-js/features/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/features/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/features/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/features/number/parse-float":["es.number.parse-float"],"core-js/features/number/parse-int":["es.number.parse-int"],"core-js/features/number/range":["es.object.to-string","esnext.number.range"],"core-js/features/number/to-exponential":["es.number.to-exponential"],"core-js/features/number/to-fixed":["es.number.to-fixed"],"core-js/features/number/to-precision":["es.number.to-precision"],"core-js/features/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/features/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/features/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/features/number/virtual/to-precision":["es.number.to-precision"],"core-js/features/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","web.dom-collections.iterator"],"core-js/features/object/assign":["es.object.assign"],"core-js/features/object/create":["es.object.create"],"core-js/features/object/define-getter":["es.object.define-getter"],"core-js/features/object/define-properties":["es.object.define-properties"],"core-js/features/object/define-property":["es.object.define-property"],"core-js/features/object/define-setter":["es.object.define-setter"],"core-js/features/object/entries":["es.object.entries"],"core-js/features/object/freeze":["es.object.freeze"],"core-js/features/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/features/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/features/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/features/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/features/object/get-own-property-symbols":["es.symbol"],"core-js/features/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/features/object/group-by":["es.object.create","es.object.group-by","esnext.object.group-by"],"core-js/features/object/has-own":["es.object.has-own","esnext.object.has-own"],"core-js/features/object/is":["es.object.is"],"core-js/features/object/is-extensible":["es.object.is-extensible"],"core-js/features/object/is-frozen":["es.object.is-frozen"],"core-js/features/object/is-sealed":["es.object.is-sealed"],"core-js/features/object/iterate-entries":["esnext.object.iterate-entries"],"core-js/features/object/iterate-keys":["esnext.object.iterate-keys"],"core-js/features/object/iterate-values":["esnext.object.iterate-values"],"core-js/features/object/keys":["es.object.keys"],"core-js/features/object/lookup-getter":["es.object.lookup-getter"],"core-js/features/object/lookup-setter":["es.object.lookup-setter"],"core-js/features/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/features/object/proto":["es.object.proto"],"core-js/features/object/seal":["es.object.seal"],"core-js/features/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/features/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/features/object/values":["es.object.values"],"core-js/features/observable":["es.object.to-string","es.string.iterator","esnext.observable","esnext.symbol.observable","web.dom-collections.iterator"],"core-js/features/parse-float":["es.parse-float"],"core-js/features/parse-int":["es.parse-int"],"core-js/features/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.string.iterator","esnext.aggregate-error","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","web.dom-collections.iterator"],"core-js/features/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","esnext.promise.all-settled","web.dom-collections.iterator"],"core-js/features/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","esnext.aggregate-error","esnext.promise.any","web.dom-collections.iterator"],"core-js/features/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/features/promise/try":["es.promise","esnext.promise.try"],"core-js/features/promise/with-resolvers":["es.promise","es.promise.with-resolvers","esnext.promise.with-resolvers"],"core-js/features/queue-microtask":["web.queue-microtask"],"core-js/features/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/features/reflect/apply":["es.reflect.apply"],"core-js/features/reflect/construct":["es.reflect.construct"],"core-js/features/reflect/define-metadata":["esnext.reflect.define-metadata"],"core-js/features/reflect/define-property":["es.reflect.define-property"],"core-js/features/reflect/delete-metadata":["esnext.reflect.delete-metadata"],"core-js/features/reflect/delete-property":["es.reflect.delete-property"],"core-js/features/reflect/get":["es.reflect.get"],"core-js/features/reflect/get-metadata":["esnext.reflect.get-metadata"],"core-js/features/reflect/get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/features/reflect/get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/features/reflect/get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/features/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/features/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/features/reflect/has":["es.reflect.has"],"core-js/features/reflect/has-metadata":["esnext.reflect.has-metadata"],"core-js/features/reflect/has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/features/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/features/reflect/metadata":["esnext.reflect.metadata"],"core-js/features/reflect/own-keys":["es.reflect.own-keys"],"core-js/features/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/features/reflect/set":["es.reflect.set"],"core-js/features/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/features/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/features/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split","esnext.regexp.escape"],"core-js/features/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/features/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/features/regexp/escape":["esnext.regexp.escape"],"core-js/features/regexp/flags":["es.regexp.flags"],"core-js/features/regexp/match":["es.regexp.exec","es.string.match"],"core-js/features/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/features/regexp/search":["es.regexp.exec","es.string.search"],"core-js/features/regexp/split":["es.regexp.exec","es.string.split"],"core-js/features/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/features/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/features/regexp/to-string":["es.regexp.to-string"],"core-js/features/self":["web.self"],"core-js/features/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/features/set-immediate":["web.immediate"],"core-js/features/set-interval":["web.timers"],"core-js/features/set-timeout":["web.timers"],"core-js/features/set/add-all":["es.set","esnext.set.add-all"],"core-js/features/set/delete-all":["es.set","esnext.set.delete-all"],"core-js/features/set/difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.difference.v2","esnext.set.difference","web.dom-collections.iterator"],"core-js/features/set/every":["es.set","esnext.set.every"],"core-js/features/set/filter":["es.set","esnext.set.filter"],"core-js/features/set/find":["es.set","esnext.set.find"],"core-js/features/set/from":["es.array.iterator","es.set","es.string.iterator","esnext.set.from","web.dom-collections.iterator"],"core-js/features/set/intersection":["es.array.iterator","es.set","es.string.iterator","esnext.set.intersection.v2","esnext.set.intersection","web.dom-collections.iterator"],"core-js/features/set/is-disjoint-from":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","web.dom-collections.iterator"],"core-js/features/set/is-subset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","web.dom-collections.iterator"],"core-js/features/set/is-superset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","web.dom-collections.iterator"],"core-js/features/set/join":["es.set","esnext.set.join"],"core-js/features/set/map":["es.set","esnext.set.map"],"core-js/features/set/of":["es.array.iterator","es.set","esnext.set.of"],"core-js/features/set/reduce":["es.set","esnext.set.reduce"],"core-js/features/set/some":["es.set","esnext.set.some"],"core-js/features/set/symmetric-difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","web.dom-collections.iterator"],"core-js/features/set/union":["es.array.iterator","es.set","es.string.iterator","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/features/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.weak-map","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/features/string/anchor":["es.string.anchor"],"core-js/features/string/at":["es.string.at-alternative","esnext.string.at"],"core-js/features/string/big":["es.string.big"],"core-js/features/string/blink":["es.string.blink"],"core-js/features/string/bold":["es.string.bold"],"core-js/features/string/code-point-at":["es.string.code-point-at"],"core-js/features/string/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/features/string/cooked":["esnext.string.cooked"],"core-js/features/string/dedent":["es.string.from-code-point","es.weak-map","esnext.string.dedent"],"core-js/features/string/ends-with":["es.string.ends-with"],"core-js/features/string/fixed":["es.string.fixed"],"core-js/features/string/fontcolor":["es.string.fontcolor"],"core-js/features/string/fontsize":["es.string.fontsize"],"core-js/features/string/from-code-point":["es.string.from-code-point"],"core-js/features/string/includes":["es.string.includes"],"core-js/features/string/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/features/string/italics":["es.string.italics"],"core-js/features/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/features/string/link":["es.string.link"],"core-js/features/string/match":["es.regexp.exec","es.string.match"],"core-js/features/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/features/string/pad-end":["es.string.pad-end"],"core-js/features/string/pad-start":["es.string.pad-start"],"core-js/features/string/raw":["es.string.raw"],"core-js/features/string/repeat":["es.string.repeat"],"core-js/features/string/replace":["es.regexp.exec","es.string.replace"],"core-js/features/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/features/string/search":["es.regexp.exec","es.string.search"],"core-js/features/string/small":["es.string.small"],"core-js/features/string/split":["es.regexp.exec","es.string.split"],"core-js/features/string/starts-with":["es.string.starts-with"],"core-js/features/string/strike":["es.string.strike"],"core-js/features/string/sub":["es.string.sub"],"core-js/features/string/substr":["es.string.substr"],"core-js/features/string/sup":["es.string.sup"],"core-js/features/string/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/features/string/trim":["es.string.trim"],"core-js/features/string/trim-end":["es.string.trim-end"],"core-js/features/string/trim-left":["es.string.trim-start"],"core-js/features/string/trim-right":["es.string.trim-end"],"core-js/features/string/trim-start":["es.string.trim-start"],"core-js/features/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.at","esnext.string.code-points","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/features/string/virtual/anchor":["es.string.anchor"],"core-js/features/string/virtual/at":["es.string.at-alternative","esnext.string.at"],"core-js/features/string/virtual/big":["es.string.big"],"core-js/features/string/virtual/blink":["es.string.blink"],"core-js/features/string/virtual/bold":["es.string.bold"],"core-js/features/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/features/string/virtual/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/features/string/virtual/ends-with":["es.string.ends-with"],"core-js/features/string/virtual/fixed":["es.string.fixed"],"core-js/features/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/features/string/virtual/fontsize":["es.string.fontsize"],"core-js/features/string/virtual/includes":["es.string.includes"],"core-js/features/string/virtual/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/features/string/virtual/italics":["es.string.italics"],"core-js/features/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/features/string/virtual/link":["es.string.link"],"core-js/features/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/features/string/virtual/pad-end":["es.string.pad-end"],"core-js/features/string/virtual/pad-start":["es.string.pad-start"],"core-js/features/string/virtual/repeat":["es.string.repeat"],"core-js/features/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/features/string/virtual/small":["es.string.small"],"core-js/features/string/virtual/starts-with":["es.string.starts-with"],"core-js/features/string/virtual/strike":["es.string.strike"],"core-js/features/string/virtual/sub":["es.string.sub"],"core-js/features/string/virtual/substr":["es.string.substr"],"core-js/features/string/virtual/sup":["es.string.sup"],"core-js/features/string/virtual/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/features/string/virtual/trim":["es.string.trim"],"core-js/features/string/virtual/trim-end":["es.string.trim-end"],"core-js/features/string/virtual/trim-left":["es.string.trim-start"],"core-js/features/string/virtual/trim-right":["es.string.trim-end"],"core-js/features/string/virtual/trim-start":["es.string.trim-start"],"core-js/features/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/features/suppressed-error":[],"core-js/features/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","esnext.function.metadata","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","web.dom-collections.iterator"],"core-js/features/symbol/async-dispose":["esnext.symbol.async-dispose"],"core-js/features/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/features/symbol/description":["es.symbol.description"],"core-js/features/symbol/dispose":["esnext.symbol.dispose"],"core-js/features/symbol/for":["es.symbol"],"core-js/features/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/features/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/features/symbol/is-registered":["es.symbol","esnext.symbol.is-registered"],"core-js/features/symbol/is-registered-symbol":["es.symbol","esnext.symbol.is-registered-symbol"],"core-js/features/symbol/is-well-known":["es.symbol","esnext.symbol.is-well-known"],"core-js/features/symbol/is-well-known-symbol":["es.symbol","esnext.symbol.is-well-known-symbol"],"core-js/features/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/features/symbol/key-for":["es.symbol"],"core-js/features/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/features/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/features/symbol/matcher":["esnext.symbol.matcher"],"core-js/features/symbol/metadata":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/features/symbol/metadata-key":["esnext.symbol.metadata-key"],"core-js/features/symbol/observable":["esnext.symbol.observable"],"core-js/features/symbol/pattern-match":["esnext.symbol.pattern-match"],"core-js/features/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/features/symbol/replace-all":["esnext.symbol.replace-all"],"core-js/features/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/features/symbol/species":["es.symbol.species"],"core-js/features/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/features/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/features/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/features/symbol/unscopables":["es.symbol.unscopables"],"core-js/features/typed-array":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/at":["es.typed-array.at","esnext.typed-array.at"],"core-js/features/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/features/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/every":["es.typed-array.every"],"core-js/features/typed-array/fill":["es.typed-array.fill"],"core-js/features/typed-array/filter":["es.typed-array.filter"],"core-js/features/typed-array/filter-out":["esnext.typed-array.filter-out"],"core-js/features/typed-array/filter-reject":["esnext.typed-array.filter-reject"],"core-js/features/typed-array/find":["es.typed-array.find"],"core-js/features/typed-array/find-index":["es.typed-array.find-index"],"core-js/features/typed-array/find-last":["es.typed-array.find-last","esnext.typed-array.find-last"],"core-js/features/typed-array/find-last-index":["es.typed-array.find-last-index","esnext.typed-array.find-last-index"],"core-js/features/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/for-each":["es.typed-array.for-each"],"core-js/features/typed-array/from":["es.typed-array.from"],"core-js/features/typed-array/from-async":["esnext.typed-array.from-async"],"core-js/features/typed-array/from-base64":["esnext.uint8-array.from-base64"],"core-js/features/typed-array/from-hex":["esnext.uint8-array.from-hex"],"core-js/features/typed-array/group-by":["esnext.typed-array.group-by"],"core-js/features/typed-array/includes":["es.typed-array.includes"],"core-js/features/typed-array/index-of":["es.typed-array.index-of"],"core-js/features/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/join":["es.typed-array.join"],"core-js/features/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/features/typed-array/map":["es.typed-array.map"],"core-js/features/typed-array/methods":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/of":["es.typed-array.of"],"core-js/features/typed-array/reduce":["es.typed-array.reduce"],"core-js/features/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/features/typed-array/reverse":["es.typed-array.reverse"],"core-js/features/typed-array/set":["es.typed-array.set"],"core-js/features/typed-array/slice":["es.typed-array.slice"],"core-js/features/typed-array/some":["es.typed-array.some"],"core-js/features/typed-array/sort":["es.typed-array.sort"],"core-js/features/typed-array/subarray":["es.typed-array.subarray"],"core-js/features/typed-array/to-base64":["esnext.uint8-array.to-base64"],"core-js/features/typed-array/to-hex":["esnext.uint8-array.to-hex"],"core-js/features/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/features/typed-array/to-reversed":["es.typed-array.to-reversed","esnext.typed-array.to-reversed"],"core-js/features/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted","esnext.typed-array.to-sorted"],"core-js/features/typed-array/to-spliced":["esnext.typed-array.to-spliced"],"core-js/features/typed-array/to-string":["es.typed-array.to-string"],"core-js/features/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/features/typed-array/unique-by":["es.map","esnext.typed-array.unique-by"],"core-js/features/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/features/typed-array/with":["es.typed-array.with","esnext.typed-array.with"],"core-js/features/unescape":["es.unescape"],"core-js/features/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/features/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/features/url/can-parse":["web.url","web.url.can-parse"],"core-js/features/url/to-json":["web.url.to-json"],"core-js/features/weak-map":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-map","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","web.dom-collections.iterator"],"core-js/features/weak-map/delete-all":["es.weak-map","esnext.weak-map.delete-all"],"core-js/features/weak-map/emplace":["es.weak-map","esnext.weak-map.emplace"],"core-js/features/weak-map/from":["es.array.iterator","es.string.iterator","es.weak-map","esnext.weak-map.from","web.dom-collections.iterator"],"core-js/features/weak-map/of":["es.array.iterator","es.weak-map","esnext.weak-map.of"],"core-js/features/weak-map/upsert":["es.weak-map","esnext.weak-map.upsert"],"core-js/features/weak-set":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-set","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.iterator"],"core-js/features/weak-set/add-all":["es.weak-set","esnext.weak-set.add-all"],"core-js/features/weak-set/delete-all":["es.weak-set","esnext.weak-set.delete-all"],"core-js/features/weak-set/from":["es.array.iterator","es.string.iterator","es.weak-set","esnext.weak-set.from","web.dom-collections.iterator"],"core-js/features/weak-set/of":["es.array.iterator","es.weak-set","esnext.weak-set.of"],"core-js/full":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.map.group-by","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/full/aggregate-error":[],"core-js/full/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/full/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/full/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/full/array-buffer/detached":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.detached"],"core-js/full/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/full/array-buffer/slice":["es.array-buffer.slice"],"core-js/full/array-buffer/transfer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer"],"core-js/full/array-buffer/transfer-to-fixed-length":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string","esnext.array-buffer.transfer-to-fixed-length"],"core-js/full/array/at":["es.array.at","esnext.array.at"],"core-js/full/array/concat":["es.array.concat"],"core-js/full/array/copy-within":["es.array.copy-within"],"core-js/full/array/entries":["es.array.iterator","es.object.to-string"],"core-js/full/array/every":["es.array.every"],"core-js/full/array/fill":["es.array.fill"],"core-js/full/array/filter":["es.array.filter"],"core-js/full/array/filter-out":["esnext.array.filter-out"],"core-js/full/array/filter-reject":["esnext.array.filter-reject"],"core-js/full/array/find":["es.array.find"],"core-js/full/array/find-index":["es.array.find-index"],"core-js/full/array/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/full/array/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/full/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/full/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/full/array/for-each":["es.array.for-each"],"core-js/full/array/from":["es.array.from","es.string.iterator"],"core-js/full/array/from-async":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.array.from-async"],"core-js/full/array/group":["esnext.array.group"],"core-js/full/array/group-by":["esnext.array.group-by"],"core-js/full/array/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/full/array/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/full/array/includes":["es.array.includes"],"core-js/full/array/index-of":["es.array.index-of"],"core-js/full/array/is-array":["es.array.is-array"],"core-js/full/array/is-template-object":["esnext.array.is-template-object"],"core-js/full/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/full/array/join":["es.array.join"],"core-js/full/array/keys":["es.array.iterator","es.object.to-string"],"core-js/full/array/last-index":["esnext.array.last-index"],"core-js/full/array/last-index-of":["es.array.last-index-of"],"core-js/full/array/last-item":["esnext.array.last-item"],"core-js/full/array/map":["es.array.map"],"core-js/full/array/of":["es.array.of"],"core-js/full/array/push":["es.array.push"],"core-js/full/array/reduce":["es.array.reduce"],"core-js/full/array/reduce-right":["es.array.reduce-right"],"core-js/full/array/reverse":["es.array.reverse"],"core-js/full/array/slice":["es.array.slice"],"core-js/full/array/some":["es.array.some"],"core-js/full/array/sort":["es.array.sort"],"core-js/full/array/splice":["es.array.splice"],"core-js/full/array/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/full/array/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/full/array/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/full/array/unique-by":["es.map","esnext.array.unique-by"],"core-js/full/array/unshift":["es.array.unshift"],"core-js/full/array/values":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.map","es.object.to-string","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with"],"core-js/full/array/virtual/at":["es.array.at","esnext.array.at"],"core-js/full/array/virtual/concat":["es.array.concat"],"core-js/full/array/virtual/copy-within":["es.array.copy-within"],"core-js/full/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/every":["es.array.every"],"core-js/full/array/virtual/fill":["es.array.fill"],"core-js/full/array/virtual/filter":["es.array.filter"],"core-js/full/array/virtual/filter-out":["esnext.array.filter-out"],"core-js/full/array/virtual/filter-reject":["esnext.array.filter-reject"],"core-js/full/array/virtual/find":["es.array.find"],"core-js/full/array/virtual/find-index":["es.array.find-index"],"core-js/full/array/virtual/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/full/array/virtual/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/full/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/full/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/full/array/virtual/for-each":["es.array.for-each"],"core-js/full/array/virtual/group":["esnext.array.group"],"core-js/full/array/virtual/group-by":["esnext.array.group-by"],"core-js/full/array/virtual/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/full/array/virtual/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/full/array/virtual/includes":["es.array.includes"],"core-js/full/array/virtual/index-of":["es.array.index-of"],"core-js/full/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/join":["es.array.join"],"core-js/full/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/full/array/virtual/map":["es.array.map"],"core-js/full/array/virtual/push":["es.array.push"],"core-js/full/array/virtual/reduce":["es.array.reduce"],"core-js/full/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/full/array/virtual/reverse":["es.array.reverse"],"core-js/full/array/virtual/slice":["es.array.slice"],"core-js/full/array/virtual/some":["es.array.some"],"core-js/full/array/virtual/sort":["es.array.sort"],"core-js/full/array/virtual/splice":["es.array.splice"],"core-js/full/array/virtual/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/full/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/full/array/virtual/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/full/array/virtual/unique-by":["es.map","esnext.array.unique-by"],"core-js/full/array/virtual/unshift":["es.array.unshift"],"core-js/full/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/full/array/virtual/with":["es.array.with","esnext.array.with"],"core-js/full/array/with":["es.array.with","esnext.array.with"],"core-js/full/async-disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/full/async-disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","es.promise","esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.iterator.dispose"],"core-js/full/async-iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/full/async-iterator/as-indexed-pairs":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs"],"core-js/full/async-iterator/async-dispose":["es.object.to-string","es.promise","esnext.async-iterator.async-dispose"],"core-js/full/async-iterator/drop":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.drop"],"core-js/full/async-iterator/every":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.every"],"core-js/full/async-iterator/filter":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.filter"],"core-js/full/async-iterator/find":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.find"],"core-js/full/async-iterator/flat-map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.flat-map"],"core-js/full/async-iterator/for-each":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.for-each"],"core-js/full/async-iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","web.dom-collections.iterator"],"core-js/full/async-iterator/indexed":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.indexed"],"core-js/full/async-iterator/map":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.map"],"core-js/full/async-iterator/reduce":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.reduce"],"core-js/full/async-iterator/some":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.some"],"core-js/full/async-iterator/take":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.take"],"core-js/full/async-iterator/to-array":["es.object.to-string","es.promise","esnext.async-iterator.constructor","esnext.async-iterator.to-array"],"core-js/full/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/full/bigint":["es.object.to-string","esnext.bigint.range"],"core-js/full/bigint/range":["es.object.to-string","esnext.bigint.range"],"core-js/full/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/full/clear-immediate":["web.immediate"],"core-js/full/composite-key":["esnext.composite-key"],"core-js/full/composite-symbol":["es.symbol","esnext.composite-symbol"],"core-js/full/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped"],"core-js/full/data-view/get-float16":["esnext.data-view.get-float16"],"core-js/full/data-view/get-uint8-clamped":["esnext.data-view.get-uint8-clamped"],"core-js/full/data-view/set-float16":["esnext.data-view.set-float16"],"core-js/full/data-view/set-uint8-clamped":["esnext.data-view.set-uint8-clamped"],"core-js/full/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/full/date/get-year":["es.date.get-year"],"core-js/full/date/now":["es.date.now"],"core-js/full/date/set-year":["es.date.set-year"],"core-js/full/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/full/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/full/date/to-json":["es.date.to-json"],"core-js/full/date/to-primitive":["es.date.to-primitive"],"core-js/full/date/to-string":["es.date.to-string"],"core-js/full/disposable-stack":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/full/disposable-stack/constructor":["es.error.cause","es.error.to-string","es.object.to-string","esnext.suppressed-error.constructor","esnext.disposable-stack.constructor","esnext.iterator.dispose"],"core-js/full/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/full/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/full/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/full/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/full/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/full/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/full/error":["es.error.cause","es.error.to-string"],"core-js/full/error/constructor":["es.error.cause"],"core-js/full/error/to-string":["es.error.to-string"],"core-js/full/escape":["es.escape"],"core-js/full/function":["es.function.bind","es.function.has-instance","es.function.name","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this"],"core-js/full/function/bind":["es.function.bind"],"core-js/full/function/demethodize":["esnext.function.demethodize"],"core-js/full/function/has-instance":["es.function.has-instance"],"core-js/full/function/is-callable":["esnext.function.is-callable"],"core-js/full/function/is-constructor":["esnext.function.is-constructor"],"core-js/full/function/metadata":["esnext.function.metadata"],"core-js/full/function/name":["es.function.name"],"core-js/full/function/un-this":["esnext.function.un-this"],"core-js/full/function/virtual":["es.function.bind","esnext.function.demethodize","esnext.function.un-this"],"core-js/full/function/virtual/bind":["es.function.bind"],"core-js/full/function/virtual/demethodize":["esnext.function.demethodize"],"core-js/full/function/virtual/un-this":["esnext.function.un-this"],"core-js/full/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/full/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/full/global-this":["es.global-this","esnext.global-this"],"core-js/full/instance/at":["es.array.at","es.string.at-alternative","esnext.array.at","esnext.string.at"],"core-js/full/instance/bind":["es.function.bind"],"core-js/full/instance/code-point-at":["es.string.code-point-at"],"core-js/full/instance/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/full/instance/concat":["es.array.concat"],"core-js/full/instance/copy-within":["es.array.copy-within"],"core-js/full/instance/demethodize":["esnext.function.demethodize"],"core-js/full/instance/ends-with":["es.string.ends-with"],"core-js/full/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/full/instance/every":["es.array.every"],"core-js/full/instance/fill":["es.array.fill"],"core-js/full/instance/filter":["es.array.filter"],"core-js/full/instance/filter-out":["esnext.array.filter-out"],"core-js/full/instance/filter-reject":["esnext.array.filter-reject"],"core-js/full/instance/find":["es.array.find"],"core-js/full/instance/find-index":["es.array.find-index"],"core-js/full/instance/find-last":["es.array.find-last","esnext.array.find-last"],"core-js/full/instance/find-last-index":["es.array.find-last-index","esnext.array.find-last-index"],"core-js/full/instance/flags":["es.regexp.flags"],"core-js/full/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/full/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/full/instance/for-each":["es.array.for-each","web.dom-collections.for-each"],"core-js/full/instance/group":["esnext.array.group"],"core-js/full/instance/group-by":["esnext.array.group-by"],"core-js/full/instance/group-by-to-map":["es.map","es.object.to-string","esnext.array.group-by-to-map"],"core-js/full/instance/group-to-map":["es.map","es.object.to-string","esnext.array.group-to-map"],"core-js/full/instance/includes":["es.array.includes","es.string.includes"],"core-js/full/instance/index-of":["es.array.index-of"],"core-js/full/instance/is-well-formed":["es.string.is-well-formed"],"core-js/full/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/full/instance/last-index-of":["es.array.last-index-of"],"core-js/full/instance/map":["es.array.map"],"core-js/full/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/full/instance/pad-end":["es.string.pad-end"],"core-js/full/instance/pad-start":["es.string.pad-start"],"core-js/full/instance/push":["es.array.push"],"core-js/full/instance/reduce":["es.array.reduce"],"core-js/full/instance/reduce-right":["es.array.reduce-right"],"core-js/full/instance/repeat":["es.string.repeat"],"core-js/full/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/full/instance/reverse":["es.array.reverse"],"core-js/full/instance/slice":["es.array.slice"],"core-js/full/instance/some":["es.array.some"],"core-js/full/instance/sort":["es.array.sort"],"core-js/full/instance/splice":["es.array.splice"],"core-js/full/instance/starts-with":["es.string.starts-with"],"core-js/full/instance/to-reversed":["es.array.to-reversed","esnext.array.to-reversed"],"core-js/full/instance/to-sorted":["es.array.sort","es.array.to-sorted","esnext.array.to-sorted"],"core-js/full/instance/to-spliced":["es.array.to-spliced","esnext.array.to-spliced"],"core-js/full/instance/to-well-formed":["es.string.to-well-formed"],"core-js/full/instance/trim":["es.string.trim"],"core-js/full/instance/trim-end":["es.string.trim-end"],"core-js/full/instance/trim-left":["es.string.trim-start"],"core-js/full/instance/trim-right":["es.string.trim-end"],"core-js/full/instance/trim-start":["es.string.trim-start"],"core-js/full/instance/un-this":["esnext.function.un-this"],"core-js/full/instance/unique-by":["es.map","esnext.array.unique-by"],"core-js/full/instance/unshift":["es.array.unshift"],"core-js/full/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/full/instance/with":["es.array.with","esnext.array.with"],"core-js/full/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/full/iterator":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/full/iterator/as-indexed-pairs":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs"],"core-js/full/iterator/dispose":["esnext.iterator.dispose"],"core-js/full/iterator/drop":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.drop"],"core-js/full/iterator/every":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.every"],"core-js/full/iterator/filter":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.filter"],"core-js/full/iterator/find":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.find"],"core-js/full/iterator/flat-map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.flat-map"],"core-js/full/iterator/for-each":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.for-each"],"core-js/full/iterator/from":["es.array.iterator","es.object.to-string","es.promise","es.string.iterator","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","web.dom-collections.iterator"],"core-js/full/iterator/indexed":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.indexed"],"core-js/full/iterator/map":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.map"],"core-js/full/iterator/range":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.range"],"core-js/full/iterator/reduce":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.reduce"],"core-js/full/iterator/some":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.some"],"core-js/full/iterator/take":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.take"],"core-js/full/iterator/to-array":["es.object.to-string","esnext.iterator.constructor","esnext.iterator.to-array"],"core-js/full/iterator/to-async":["es.object.to-string","es.promise","esnext.iterator.constructor","esnext.iterator.to-async"],"core-js/full/json":["es.json.stringify","es.json.to-string-tag","es.object.create","es.object.freeze","es.object.keys","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/full/json/is-raw-json":["esnext.json.is-raw-json"],"core-js/full/json/parse":["es.object.keys","esnext.json.parse"],"core-js/full/json/raw-json":["es.object.create","es.object.freeze","esnext.json.raw-json"],"core-js/full/json/stringify":["es.json.stringify"],"core-js/full/json/to-string-tag":["es.json.to-string-tag"],"core-js/full/map":["es.array.iterator","es.map","es.map.group-by","es.object.to-string","es.string.iterator","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","web.dom-collections.iterator"],"core-js/full/map/delete-all":["es.map","esnext.map.delete-all"],"core-js/full/map/emplace":["es.map","esnext.map.emplace"],"core-js/full/map/every":["es.map","esnext.map.every"],"core-js/full/map/filter":["es.map","esnext.map.filter"],"core-js/full/map/find":["es.map","esnext.map.find"],"core-js/full/map/find-key":["es.map","esnext.map.find-key"],"core-js/full/map/from":["es.array.iterator","es.map","es.string.iterator","esnext.map.from","web.dom-collections.iterator"],"core-js/full/map/group-by":["es.map","es.map.group-by","esnext.map.group-by"],"core-js/full/map/includes":["es.map","esnext.map.includes"],"core-js/full/map/key-by":["es.map","esnext.map.key-by"],"core-js/full/map/key-of":["es.map","esnext.map.key-of"],"core-js/full/map/map-keys":["es.map","esnext.map.map-keys"],"core-js/full/map/map-values":["es.map","esnext.map.map-values"],"core-js/full/map/merge":["es.map","esnext.map.merge"],"core-js/full/map/of":["es.array.iterator","es.map","esnext.map.of"],"core-js/full/map/reduce":["es.map","esnext.map.reduce"],"core-js/full/map/some":["es.map","esnext.map.some"],"core-js/full/map/update":["es.map","esnext.map.update"],"core-js/full/map/update-or-insert":["es.map","esnext.map.update-or-insert"],"core-js/full/map/upsert":["es.map","esnext.map.upsert"],"core-js/full/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh"],"core-js/full/math/acosh":["es.math.acosh"],"core-js/full/math/asinh":["es.math.asinh"],"core-js/full/math/atanh":["es.math.atanh"],"core-js/full/math/cbrt":["es.math.cbrt"],"core-js/full/math/clamp":["esnext.math.clamp"],"core-js/full/math/clz32":["es.math.clz32"],"core-js/full/math/cosh":["es.math.cosh"],"core-js/full/math/deg-per-rad":["esnext.math.deg-per-rad"],"core-js/full/math/degrees":["esnext.math.degrees"],"core-js/full/math/expm1":["es.math.expm1"],"core-js/full/math/f16round":["esnext.math.f16round"],"core-js/full/math/fround":["es.math.fround"],"core-js/full/math/fscale":["esnext.math.fscale"],"core-js/full/math/hypot":["es.math.hypot"],"core-js/full/math/iaddh":["esnext.math.iaddh"],"core-js/full/math/imul":["es.math.imul"],"core-js/full/math/imulh":["esnext.math.imulh"],"core-js/full/math/isubh":["esnext.math.isubh"],"core-js/full/math/log10":["es.math.log10"],"core-js/full/math/log1p":["es.math.log1p"],"core-js/full/math/log2":["es.math.log2"],"core-js/full/math/rad-per-deg":["esnext.math.rad-per-deg"],"core-js/full/math/radians":["esnext.math.radians"],"core-js/full/math/scale":["esnext.math.scale"],"core-js/full/math/seeded-prng":["esnext.math.seeded-prng"],"core-js/full/math/sign":["es.math.sign"],"core-js/full/math/signbit":["esnext.math.signbit"],"core-js/full/math/sinh":["es.math.sinh"],"core-js/full/math/tanh":["es.math.tanh"],"core-js/full/math/to-string-tag":["es.math.to-string-tag"],"core-js/full/math/trunc":["es.math.trunc"],"core-js/full/math/umulh":["esnext.math.umulh"],"core-js/full/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.to-string","esnext.number.from-string","esnext.number.range"],"core-js/full/number/constructor":["es.number.constructor"],"core-js/full/number/epsilon":["es.number.epsilon"],"core-js/full/number/from-string":["esnext.number.from-string"],"core-js/full/number/is-finite":["es.number.is-finite"],"core-js/full/number/is-integer":["es.number.is-integer"],"core-js/full/number/is-nan":["es.number.is-nan"],"core-js/full/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/full/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/full/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/full/number/parse-float":["es.number.parse-float"],"core-js/full/number/parse-int":["es.number.parse-int"],"core-js/full/number/range":["es.object.to-string","esnext.number.range"],"core-js/full/number/to-exponential":["es.number.to-exponential"],"core-js/full/number/to-fixed":["es.number.to-fixed"],"core-js/full/number/to-precision":["es.number.to-precision"],"core-js/full/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/full/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/full/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/full/number/virtual/to-precision":["es.number.to-precision"],"core-js/full/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","web.dom-collections.iterator"],"core-js/full/object/assign":["es.object.assign"],"core-js/full/object/create":["es.object.create"],"core-js/full/object/define-getter":["es.object.define-getter"],"core-js/full/object/define-properties":["es.object.define-properties"],"core-js/full/object/define-property":["es.object.define-property"],"core-js/full/object/define-setter":["es.object.define-setter"],"core-js/full/object/entries":["es.object.entries"],"core-js/full/object/freeze":["es.object.freeze"],"core-js/full/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/full/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/full/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/full/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/full/object/get-own-property-symbols":["es.symbol"],"core-js/full/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/full/object/group-by":["es.object.create","es.object.group-by","esnext.object.group-by"],"core-js/full/object/has-own":["es.object.has-own","esnext.object.has-own"],"core-js/full/object/is":["es.object.is"],"core-js/full/object/is-extensible":["es.object.is-extensible"],"core-js/full/object/is-frozen":["es.object.is-frozen"],"core-js/full/object/is-sealed":["es.object.is-sealed"],"core-js/full/object/iterate-entries":["esnext.object.iterate-entries"],"core-js/full/object/iterate-keys":["esnext.object.iterate-keys"],"core-js/full/object/iterate-values":["esnext.object.iterate-values"],"core-js/full/object/keys":["es.object.keys"],"core-js/full/object/lookup-getter":["es.object.lookup-getter"],"core-js/full/object/lookup-setter":["es.object.lookup-setter"],"core-js/full/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/full/object/proto":["es.object.proto"],"core-js/full/object/seal":["es.object.seal"],"core-js/full/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/full/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/full/object/values":["es.object.values"],"core-js/full/observable":["es.object.to-string","es.string.iterator","esnext.observable","esnext.symbol.observable","web.dom-collections.iterator"],"core-js/full/parse-float":["es.parse-float"],"core-js/full/parse-int":["es.parse-int"],"core-js/full/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.string.iterator","esnext.aggregate-error","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","web.dom-collections.iterator"],"core-js/full/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","esnext.promise.all-settled","web.dom-collections.iterator"],"core-js/full/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","esnext.aggregate-error","esnext.promise.any","web.dom-collections.iterator"],"core-js/full/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/full/promise/try":["es.promise","esnext.promise.try"],"core-js/full/promise/with-resolvers":["es.promise","es.promise.with-resolvers","esnext.promise.with-resolvers"],"core-js/full/queue-microtask":["web.queue-microtask"],"core-js/full/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/full/reflect/apply":["es.reflect.apply"],"core-js/full/reflect/construct":["es.reflect.construct"],"core-js/full/reflect/define-metadata":["esnext.reflect.define-metadata"],"core-js/full/reflect/define-property":["es.reflect.define-property"],"core-js/full/reflect/delete-metadata":["esnext.reflect.delete-metadata"],"core-js/full/reflect/delete-property":["es.reflect.delete-property"],"core-js/full/reflect/get":["es.reflect.get"],"core-js/full/reflect/get-metadata":["esnext.reflect.get-metadata"],"core-js/full/reflect/get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/full/reflect/get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/full/reflect/get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/full/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/full/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/full/reflect/has":["es.reflect.has"],"core-js/full/reflect/has-metadata":["esnext.reflect.has-metadata"],"core-js/full/reflect/has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/full/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/full/reflect/metadata":["esnext.reflect.metadata"],"core-js/full/reflect/own-keys":["es.reflect.own-keys"],"core-js/full/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/full/reflect/set":["es.reflect.set"],"core-js/full/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/full/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/full/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split","esnext.regexp.escape"],"core-js/full/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/full/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/full/regexp/escape":["esnext.regexp.escape"],"core-js/full/regexp/flags":["es.regexp.flags"],"core-js/full/regexp/match":["es.regexp.exec","es.string.match"],"core-js/full/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/full/regexp/search":["es.regexp.exec","es.string.search"],"core-js/full/regexp/split":["es.regexp.exec","es.string.split"],"core-js/full/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/full/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/full/regexp/to-string":["es.regexp.to-string"],"core-js/full/self":["web.self"],"core-js/full/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/full/set-immediate":["web.immediate"],"core-js/full/set-interval":["web.timers"],"core-js/full/set-timeout":["web.timers"],"core-js/full/set/add-all":["es.set","esnext.set.add-all"],"core-js/full/set/delete-all":["es.set","esnext.set.delete-all"],"core-js/full/set/difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.difference.v2","esnext.set.difference","web.dom-collections.iterator"],"core-js/full/set/every":["es.set","esnext.set.every"],"core-js/full/set/filter":["es.set","esnext.set.filter"],"core-js/full/set/find":["es.set","esnext.set.find"],"core-js/full/set/from":["es.array.iterator","es.set","es.string.iterator","esnext.set.from","web.dom-collections.iterator"],"core-js/full/set/intersection":["es.array.iterator","es.set","es.string.iterator","esnext.set.intersection.v2","esnext.set.intersection","web.dom-collections.iterator"],"core-js/full/set/is-disjoint-from":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","web.dom-collections.iterator"],"core-js/full/set/is-subset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","web.dom-collections.iterator"],"core-js/full/set/is-superset-of":["es.array.iterator","es.set","es.string.iterator","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","web.dom-collections.iterator"],"core-js/full/set/join":["es.set","esnext.set.join"],"core-js/full/set/map":["es.set","esnext.set.map"],"core-js/full/set/of":["es.array.iterator","es.set","esnext.set.of"],"core-js/full/set/reduce":["es.set","esnext.set.reduce"],"core-js/full/set/some":["es.set","esnext.set.some"],"core-js/full/set/symmetric-difference":["es.array.iterator","es.set","es.string.iterator","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","web.dom-collections.iterator"],"core-js/full/set/union":["es.array.iterator","es.set","es.string.iterator","esnext.set.union.v2","esnext.set.union","web.dom-collections.iterator"],"core-js/full/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.weak-map","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/full/string/anchor":["es.string.anchor"],"core-js/full/string/at":["es.string.at-alternative","esnext.string.at"],"core-js/full/string/big":["es.string.big"],"core-js/full/string/blink":["es.string.blink"],"core-js/full/string/bold":["es.string.bold"],"core-js/full/string/code-point-at":["es.string.code-point-at"],"core-js/full/string/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/full/string/cooked":["esnext.string.cooked"],"core-js/full/string/dedent":["es.string.from-code-point","es.weak-map","esnext.string.dedent"],"core-js/full/string/ends-with":["es.string.ends-with"],"core-js/full/string/fixed":["es.string.fixed"],"core-js/full/string/fontcolor":["es.string.fontcolor"],"core-js/full/string/fontsize":["es.string.fontsize"],"core-js/full/string/from-code-point":["es.string.from-code-point"],"core-js/full/string/includes":["es.string.includes"],"core-js/full/string/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/full/string/italics":["es.string.italics"],"core-js/full/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/full/string/link":["es.string.link"],"core-js/full/string/match":["es.regexp.exec","es.string.match"],"core-js/full/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/full/string/pad-end":["es.string.pad-end"],"core-js/full/string/pad-start":["es.string.pad-start"],"core-js/full/string/raw":["es.string.raw"],"core-js/full/string/repeat":["es.string.repeat"],"core-js/full/string/replace":["es.regexp.exec","es.string.replace"],"core-js/full/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/full/string/search":["es.regexp.exec","es.string.search"],"core-js/full/string/small":["es.string.small"],"core-js/full/string/split":["es.regexp.exec","es.string.split"],"core-js/full/string/starts-with":["es.string.starts-with"],"core-js/full/string/strike":["es.string.strike"],"core-js/full/string/sub":["es.string.sub"],"core-js/full/string/substr":["es.string.substr"],"core-js/full/string/sup":["es.string.sup"],"core-js/full/string/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/full/string/trim":["es.string.trim"],"core-js/full/string/trim-end":["es.string.trim-end"],"core-js/full/string/trim-left":["es.string.trim-start"],"core-js/full/string/trim-right":["es.string.trim-end"],"core-js/full/string/trim-start":["es.string.trim-start"],"core-js/full/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","esnext.string.at","esnext.string.code-points","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed"],"core-js/full/string/virtual/anchor":["es.string.anchor"],"core-js/full/string/virtual/at":["es.string.at-alternative","esnext.string.at"],"core-js/full/string/virtual/big":["es.string.big"],"core-js/full/string/virtual/blink":["es.string.blink"],"core-js/full/string/virtual/bold":["es.string.bold"],"core-js/full/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/full/string/virtual/code-points":["es.object.to-string","esnext.string.code-points"],"core-js/full/string/virtual/ends-with":["es.string.ends-with"],"core-js/full/string/virtual/fixed":["es.string.fixed"],"core-js/full/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/full/string/virtual/fontsize":["es.string.fontsize"],"core-js/full/string/virtual/includes":["es.string.includes"],"core-js/full/string/virtual/is-well-formed":["es.string.is-well-formed","esnext.string.is-well-formed"],"core-js/full/string/virtual/italics":["es.string.italics"],"core-js/full/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/full/string/virtual/link":["es.string.link"],"core-js/full/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all","esnext.string.match-all"],"core-js/full/string/virtual/pad-end":["es.string.pad-end"],"core-js/full/string/virtual/pad-start":["es.string.pad-start"],"core-js/full/string/virtual/repeat":["es.string.repeat"],"core-js/full/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all","esnext.string.replace-all"],"core-js/full/string/virtual/small":["es.string.small"],"core-js/full/string/virtual/starts-with":["es.string.starts-with"],"core-js/full/string/virtual/strike":["es.string.strike"],"core-js/full/string/virtual/sub":["es.string.sub"],"core-js/full/string/virtual/substr":["es.string.substr"],"core-js/full/string/virtual/sup":["es.string.sup"],"core-js/full/string/virtual/to-well-formed":["es.string.to-well-formed","esnext.string.to-well-formed"],"core-js/full/string/virtual/trim":["es.string.trim"],"core-js/full/string/virtual/trim-end":["es.string.trim-end"],"core-js/full/string/virtual/trim-left":["es.string.trim-start"],"core-js/full/string/virtual/trim-right":["es.string.trim-end"],"core-js/full/string/virtual/trim-start":["es.string.trim-start"],"core-js/full/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/full/suppressed-error":[],"core-js/full/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","esnext.function.metadata","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","web.dom-collections.iterator"],"core-js/full/symbol/async-dispose":["esnext.symbol.async-dispose"],"core-js/full/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/full/symbol/description":["es.symbol.description"],"core-js/full/symbol/dispose":["esnext.symbol.dispose"],"core-js/full/symbol/for":["es.symbol"],"core-js/full/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/full/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/full/symbol/is-registered":["es.symbol","esnext.symbol.is-registered"],"core-js/full/symbol/is-registered-symbol":["es.symbol","esnext.symbol.is-registered-symbol"],"core-js/full/symbol/is-well-known":["es.symbol","esnext.symbol.is-well-known"],"core-js/full/symbol/is-well-known-symbol":["es.symbol","esnext.symbol.is-well-known-symbol"],"core-js/full/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/full/symbol/key-for":["es.symbol"],"core-js/full/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/full/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/full/symbol/matcher":["esnext.symbol.matcher"],"core-js/full/symbol/metadata":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/full/symbol/metadata-key":["esnext.symbol.metadata-key"],"core-js/full/symbol/observable":["esnext.symbol.observable"],"core-js/full/symbol/pattern-match":["esnext.symbol.pattern-match"],"core-js/full/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/full/symbol/replace-all":["esnext.symbol.replace-all"],"core-js/full/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/full/symbol/species":["es.symbol.species"],"core-js/full/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/full/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/full/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/full/symbol/unscopables":["es.symbol.unscopables"],"core-js/full/typed-array":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/at":["es.typed-array.at","esnext.typed-array.at"],"core-js/full/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/full/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/every":["es.typed-array.every"],"core-js/full/typed-array/fill":["es.typed-array.fill"],"core-js/full/typed-array/filter":["es.typed-array.filter"],"core-js/full/typed-array/filter-out":["esnext.typed-array.filter-out"],"core-js/full/typed-array/filter-reject":["esnext.typed-array.filter-reject"],"core-js/full/typed-array/find":["es.typed-array.find"],"core-js/full/typed-array/find-index":["es.typed-array.find-index"],"core-js/full/typed-array/find-last":["es.typed-array.find-last","esnext.typed-array.find-last"],"core-js/full/typed-array/find-last-index":["es.typed-array.find-last-index","esnext.typed-array.find-last-index"],"core-js/full/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/for-each":["es.typed-array.for-each"],"core-js/full/typed-array/from":["es.typed-array.from"],"core-js/full/typed-array/from-async":["esnext.typed-array.from-async"],"core-js/full/typed-array/from-base64":["esnext.uint8-array.from-base64"],"core-js/full/typed-array/from-hex":["esnext.uint8-array.from-hex"],"core-js/full/typed-array/group-by":["esnext.typed-array.group-by"],"core-js/full/typed-array/includes":["es.typed-array.includes"],"core-js/full/typed-array/index-of":["es.typed-array.index-of"],"core-js/full/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/join":["es.typed-array.join"],"core-js/full/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/full/typed-array/map":["es.typed-array.map"],"core-js/full/typed-array/methods":["es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/of":["es.typed-array.of"],"core-js/full/typed-array/reduce":["es.typed-array.reduce"],"core-js/full/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/full/typed-array/reverse":["es.typed-array.reverse"],"core-js/full/typed-array/set":["es.typed-array.set"],"core-js/full/typed-array/slice":["es.typed-array.slice"],"core-js/full/typed-array/some":["es.typed-array.some"],"core-js/full/typed-array/sort":["es.typed-array.sort"],"core-js/full/typed-array/subarray":["es.typed-array.subarray"],"core-js/full/typed-array/to-base64":["esnext.uint8-array.to-base64"],"core-js/full/typed-array/to-hex":["esnext.uint8-array.to-hex"],"core-js/full/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/full/typed-array/to-reversed":["es.typed-array.to-reversed","esnext.typed-array.to-reversed"],"core-js/full/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted","esnext.typed-array.to-sorted"],"core-js/full/typed-array/to-spliced":["esnext.typed-array.to-spliced"],"core-js/full/typed-array/to-string":["es.typed-array.to-string"],"core-js/full/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.map","es.object.to-string","es.promise","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/full/typed-array/unique-by":["es.map","esnext.typed-array.unique-by"],"core-js/full/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/full/typed-array/with":["es.typed-array.with","esnext.typed-array.with"],"core-js/full/unescape":["es.unescape"],"core-js/full/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/full/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/full/url/can-parse":["web.url","web.url.can-parse"],"core-js/full/url/to-json":["web.url.to-json"],"core-js/full/weak-map":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-map","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","web.dom-collections.iterator"],"core-js/full/weak-map/delete-all":["es.weak-map","esnext.weak-map.delete-all"],"core-js/full/weak-map/emplace":["es.weak-map","esnext.weak-map.emplace"],"core-js/full/weak-map/from":["es.array.iterator","es.string.iterator","es.weak-map","esnext.weak-map.from","web.dom-collections.iterator"],"core-js/full/weak-map/of":["es.array.iterator","es.weak-map","esnext.weak-map.of"],"core-js/full/weak-map/upsert":["es.weak-map","esnext.weak-map.upsert"],"core-js/full/weak-set":["es.array.iterator","es.object.to-string","es.string.iterator","es.weak-set","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.iterator"],"core-js/full/weak-set/add-all":["es.weak-set","esnext.weak-set.add-all"],"core-js/full/weak-set/delete-all":["es.weak-set","esnext.weak-set.delete-all"],"core-js/full/weak-set/from":["es.array.iterator","es.string.iterator","es.weak-set","esnext.weak-set.from","web.dom-collections.iterator"],"core-js/full/weak-set/of":["es.array.iterator","es.weak-set","esnext.weak-set.of"],"core-js/modules/es.aggregate-error":["es.aggregate-error"],"core-js/modules/es.aggregate-error.cause":["es.aggregate-error.cause"],"core-js/modules/es.aggregate-error.constructor":["es.aggregate-error.constructor"],"core-js/modules/es.array-buffer.constructor":["es.array-buffer.constructor"],"core-js/modules/es.array-buffer.is-view":["es.array-buffer.is-view"],"core-js/modules/es.array-buffer.slice":["es.array-buffer.slice"],"core-js/modules/es.array.at":["es.array.at"],"core-js/modules/es.array.concat":["es.array.concat"],"core-js/modules/es.array.copy-within":["es.array.copy-within"],"core-js/modules/es.array.every":["es.array.every"],"core-js/modules/es.array.fill":["es.array.fill"],"core-js/modules/es.array.filter":["es.array.filter"],"core-js/modules/es.array.find":["es.array.find"],"core-js/modules/es.array.find-index":["es.array.find-index"],"core-js/modules/es.array.find-last":["es.array.find-last"],"core-js/modules/es.array.find-last-index":["es.array.find-last-index"],"core-js/modules/es.array.flat":["es.array.flat"],"core-js/modules/es.array.flat-map":["es.array.flat-map"],"core-js/modules/es.array.for-each":["es.array.for-each"],"core-js/modules/es.array.from":["es.array.from"],"core-js/modules/es.array.includes":["es.array.includes"],"core-js/modules/es.array.index-of":["es.array.index-of"],"core-js/modules/es.array.is-array":["es.array.is-array"],"core-js/modules/es.array.iterator":["es.array.iterator"],"core-js/modules/es.array.join":["es.array.join"],"core-js/modules/es.array.last-index-of":["es.array.last-index-of"],"core-js/modules/es.array.map":["es.array.map"],"core-js/modules/es.array.of":["es.array.of"],"core-js/modules/es.array.push":["es.array.push"],"core-js/modules/es.array.reduce":["es.array.reduce"],"core-js/modules/es.array.reduce-right":["es.array.reduce-right"],"core-js/modules/es.array.reverse":["es.array.reverse"],"core-js/modules/es.array.slice":["es.array.slice"],"core-js/modules/es.array.some":["es.array.some"],"core-js/modules/es.array.sort":["es.array.sort"],"core-js/modules/es.array.species":["es.array.species"],"core-js/modules/es.array.splice":["es.array.splice"],"core-js/modules/es.array.to-reversed":["es.array.to-reversed"],"core-js/modules/es.array.to-sorted":["es.array.to-sorted"],"core-js/modules/es.array.to-spliced":["es.array.to-spliced"],"core-js/modules/es.array.unscopables.flat":["es.array.unscopables.flat"],"core-js/modules/es.array.unscopables.flat-map":["es.array.unscopables.flat-map"],"core-js/modules/es.array.unshift":["es.array.unshift"],"core-js/modules/es.array.with":["es.array.with"],"core-js/modules/es.data-view":["es.data-view"],"core-js/modules/es.data-view.constructor":["es.data-view.constructor"],"core-js/modules/es.date.get-year":["es.date.get-year"],"core-js/modules/es.date.now":["es.date.now"],"core-js/modules/es.date.set-year":["es.date.set-year"],"core-js/modules/es.date.to-gmt-string":["es.date.to-gmt-string"],"core-js/modules/es.date.to-iso-string":["es.date.to-iso-string"],"core-js/modules/es.date.to-json":["es.date.to-json"],"core-js/modules/es.date.to-primitive":["es.date.to-primitive"],"core-js/modules/es.date.to-string":["es.date.to-string"],"core-js/modules/es.error.cause":["es.error.cause"],"core-js/modules/es.error.to-string":["es.error.to-string"],"core-js/modules/es.escape":["es.escape"],"core-js/modules/es.function.bind":["es.function.bind"],"core-js/modules/es.function.has-instance":["es.function.has-instance"],"core-js/modules/es.function.name":["es.function.name"],"core-js/modules/es.global-this":["es.global-this"],"core-js/modules/es.json.stringify":["es.json.stringify"],"core-js/modules/es.json.to-string-tag":["es.json.to-string-tag"],"core-js/modules/es.map":["es.map"],"core-js/modules/es.map.constructor":["es.map.constructor"],"core-js/modules/es.map.group-by":["es.map.group-by"],"core-js/modules/es.math.acosh":["es.math.acosh"],"core-js/modules/es.math.asinh":["es.math.asinh"],"core-js/modules/es.math.atanh":["es.math.atanh"],"core-js/modules/es.math.cbrt":["es.math.cbrt"],"core-js/modules/es.math.clz32":["es.math.clz32"],"core-js/modules/es.math.cosh":["es.math.cosh"],"core-js/modules/es.math.expm1":["es.math.expm1"],"core-js/modules/es.math.fround":["es.math.fround"],"core-js/modules/es.math.hypot":["es.math.hypot"],"core-js/modules/es.math.imul":["es.math.imul"],"core-js/modules/es.math.log10":["es.math.log10"],"core-js/modules/es.math.log1p":["es.math.log1p"],"core-js/modules/es.math.log2":["es.math.log2"],"core-js/modules/es.math.sign":["es.math.sign"],"core-js/modules/es.math.sinh":["es.math.sinh"],"core-js/modules/es.math.tanh":["es.math.tanh"],"core-js/modules/es.math.to-string-tag":["es.math.to-string-tag"],"core-js/modules/es.math.trunc":["es.math.trunc"],"core-js/modules/es.number.constructor":["es.number.constructor"],"core-js/modules/es.number.epsilon":["es.number.epsilon"],"core-js/modules/es.number.is-finite":["es.number.is-finite"],"core-js/modules/es.number.is-integer":["es.number.is-integer"],"core-js/modules/es.number.is-nan":["es.number.is-nan"],"core-js/modules/es.number.is-safe-integer":["es.number.is-safe-integer"],"core-js/modules/es.number.max-safe-integer":["es.number.max-safe-integer"],"core-js/modules/es.number.min-safe-integer":["es.number.min-safe-integer"],"core-js/modules/es.number.parse-float":["es.number.parse-float"],"core-js/modules/es.number.parse-int":["es.number.parse-int"],"core-js/modules/es.number.to-exponential":["es.number.to-exponential"],"core-js/modules/es.number.to-fixed":["es.number.to-fixed"],"core-js/modules/es.number.to-precision":["es.number.to-precision"],"core-js/modules/es.object.assign":["es.object.assign"],"core-js/modules/es.object.create":["es.object.create"],"core-js/modules/es.object.define-getter":["es.object.define-getter"],"core-js/modules/es.object.define-properties":["es.object.define-properties"],"core-js/modules/es.object.define-property":["es.object.define-property"],"core-js/modules/es.object.define-setter":["es.object.define-setter"],"core-js/modules/es.object.entries":["es.object.entries"],"core-js/modules/es.object.freeze":["es.object.freeze"],"core-js/modules/es.object.from-entries":["es.object.from-entries"],"core-js/modules/es.object.get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/modules/es.object.get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/modules/es.object.get-own-property-names":["es.object.get-own-property-names"],"core-js/modules/es.object.get-own-property-symbols":["es.object.get-own-property-symbols"],"core-js/modules/es.object.get-prototype-of":["es.object.get-prototype-of"],"core-js/modules/es.object.group-by":["es.object.group-by"],"core-js/modules/es.object.has-own":["es.object.has-own"],"core-js/modules/es.object.is":["es.object.is"],"core-js/modules/es.object.is-extensible":["es.object.is-extensible"],"core-js/modules/es.object.is-frozen":["es.object.is-frozen"],"core-js/modules/es.object.is-sealed":["es.object.is-sealed"],"core-js/modules/es.object.keys":["es.object.keys"],"core-js/modules/es.object.lookup-getter":["es.object.lookup-getter"],"core-js/modules/es.object.lookup-setter":["es.object.lookup-setter"],"core-js/modules/es.object.prevent-extensions":["es.object.prevent-extensions"],"core-js/modules/es.object.proto":["es.object.proto"],"core-js/modules/es.object.seal":["es.object.seal"],"core-js/modules/es.object.set-prototype-of":["es.object.set-prototype-of"],"core-js/modules/es.object.to-string":["es.object.to-string"],"core-js/modules/es.object.values":["es.object.values"],"core-js/modules/es.parse-float":["es.parse-float"],"core-js/modules/es.parse-int":["es.parse-int"],"core-js/modules/es.promise":["es.promise"],"core-js/modules/es.promise.all":["es.promise.all"],"core-js/modules/es.promise.all-settled":["es.promise.all-settled"],"core-js/modules/es.promise.any":["es.promise.any"],"core-js/modules/es.promise.catch":["es.promise.catch"],"core-js/modules/es.promise.constructor":["es.promise.constructor"],"core-js/modules/es.promise.finally":["es.promise.finally"],"core-js/modules/es.promise.race":["es.promise.race"],"core-js/modules/es.promise.reject":["es.promise.reject"],"core-js/modules/es.promise.resolve":["es.promise.resolve"],"core-js/modules/es.promise.with-resolvers":["es.promise.with-resolvers"],"core-js/modules/es.reflect.apply":["es.reflect.apply"],"core-js/modules/es.reflect.construct":["es.reflect.construct"],"core-js/modules/es.reflect.define-property":["es.reflect.define-property"],"core-js/modules/es.reflect.delete-property":["es.reflect.delete-property"],"core-js/modules/es.reflect.get":["es.reflect.get"],"core-js/modules/es.reflect.get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/modules/es.reflect.get-prototype-of":["es.reflect.get-prototype-of"],"core-js/modules/es.reflect.has":["es.reflect.has"],"core-js/modules/es.reflect.is-extensible":["es.reflect.is-extensible"],"core-js/modules/es.reflect.own-keys":["es.reflect.own-keys"],"core-js/modules/es.reflect.prevent-extensions":["es.reflect.prevent-extensions"],"core-js/modules/es.reflect.set":["es.reflect.set"],"core-js/modules/es.reflect.set-prototype-of":["es.reflect.set-prototype-of"],"core-js/modules/es.reflect.to-string-tag":["es.reflect.to-string-tag"],"core-js/modules/es.regexp.constructor":["es.regexp.constructor"],"core-js/modules/es.regexp.dot-all":["es.regexp.dot-all"],"core-js/modules/es.regexp.exec":["es.regexp.exec"],"core-js/modules/es.regexp.flags":["es.regexp.flags"],"core-js/modules/es.regexp.sticky":["es.regexp.sticky"],"core-js/modules/es.regexp.test":["es.regexp.test"],"core-js/modules/es.regexp.to-string":["es.regexp.to-string"],"core-js/modules/es.set":["es.set"],"core-js/modules/es.set.constructor":["es.set.constructor"],"core-js/modules/es.string.anchor":["es.string.anchor"],"core-js/modules/es.string.at-alternative":["es.string.at-alternative"],"core-js/modules/es.string.big":["es.string.big"],"core-js/modules/es.string.blink":["es.string.blink"],"core-js/modules/es.string.bold":["es.string.bold"],"core-js/modules/es.string.code-point-at":["es.string.code-point-at"],"core-js/modules/es.string.ends-with":["es.string.ends-with"],"core-js/modules/es.string.fixed":["es.string.fixed"],"core-js/modules/es.string.fontcolor":["es.string.fontcolor"],"core-js/modules/es.string.fontsize":["es.string.fontsize"],"core-js/modules/es.string.from-code-point":["es.string.from-code-point"],"core-js/modules/es.string.includes":["es.string.includes"],"core-js/modules/es.string.is-well-formed":["es.string.is-well-formed"],"core-js/modules/es.string.italics":["es.string.italics"],"core-js/modules/es.string.iterator":["es.string.iterator"],"core-js/modules/es.string.link":["es.string.link"],"core-js/modules/es.string.match":["es.string.match"],"core-js/modules/es.string.match-all":["es.string.match-all"],"core-js/modules/es.string.pad-end":["es.string.pad-end"],"core-js/modules/es.string.pad-start":["es.string.pad-start"],"core-js/modules/es.string.raw":["es.string.raw"],"core-js/modules/es.string.repeat":["es.string.repeat"],"core-js/modules/es.string.replace":["es.string.replace"],"core-js/modules/es.string.replace-all":["es.string.replace-all"],"core-js/modules/es.string.search":["es.string.search"],"core-js/modules/es.string.small":["es.string.small"],"core-js/modules/es.string.split":["es.string.split"],"core-js/modules/es.string.starts-with":["es.string.starts-with"],"core-js/modules/es.string.strike":["es.string.strike"],"core-js/modules/es.string.sub":["es.string.sub"],"core-js/modules/es.string.substr":["es.string.substr"],"core-js/modules/es.string.sup":["es.string.sup"],"core-js/modules/es.string.to-well-formed":["es.string.to-well-formed"],"core-js/modules/es.string.trim":["es.string.trim"],"core-js/modules/es.string.trim-end":["es.string.trim-end"],"core-js/modules/es.string.trim-left":["es.string.trim-left"],"core-js/modules/es.string.trim-right":["es.string.trim-right"],"core-js/modules/es.string.trim-start":["es.string.trim-start"],"core-js/modules/es.symbol":["es.symbol"],"core-js/modules/es.symbol.async-iterator":["es.symbol.async-iterator"],"core-js/modules/es.symbol.constructor":["es.symbol.constructor"],"core-js/modules/es.symbol.description":["es.symbol.description"],"core-js/modules/es.symbol.for":["es.symbol.for"],"core-js/modules/es.symbol.has-instance":["es.symbol.has-instance"],"core-js/modules/es.symbol.is-concat-spreadable":["es.symbol.is-concat-spreadable"],"core-js/modules/es.symbol.iterator":["es.symbol.iterator"],"core-js/modules/es.symbol.key-for":["es.symbol.key-for"],"core-js/modules/es.symbol.match":["es.symbol.match"],"core-js/modules/es.symbol.match-all":["es.symbol.match-all"],"core-js/modules/es.symbol.replace":["es.symbol.replace"],"core-js/modules/es.symbol.search":["es.symbol.search"],"core-js/modules/es.symbol.species":["es.symbol.species"],"core-js/modules/es.symbol.split":["es.symbol.split"],"core-js/modules/es.symbol.to-primitive":["es.symbol.to-primitive"],"core-js/modules/es.symbol.to-string-tag":["es.symbol.to-string-tag"],"core-js/modules/es.symbol.unscopables":["es.symbol.unscopables"],"core-js/modules/es.typed-array.at":["es.typed-array.at"],"core-js/modules/es.typed-array.copy-within":["es.typed-array.copy-within"],"core-js/modules/es.typed-array.every":["es.typed-array.every"],"core-js/modules/es.typed-array.fill":["es.typed-array.fill"],"core-js/modules/es.typed-array.filter":["es.typed-array.filter"],"core-js/modules/es.typed-array.find":["es.typed-array.find"],"core-js/modules/es.typed-array.find-index":["es.typed-array.find-index"],"core-js/modules/es.typed-array.find-last":["es.typed-array.find-last"],"core-js/modules/es.typed-array.find-last-index":["es.typed-array.find-last-index"],"core-js/modules/es.typed-array.float32-array":["es.typed-array.float32-array"],"core-js/modules/es.typed-array.float64-array":["es.typed-array.float64-array"],"core-js/modules/es.typed-array.for-each":["es.typed-array.for-each"],"core-js/modules/es.typed-array.from":["es.typed-array.from"],"core-js/modules/es.typed-array.includes":["es.typed-array.includes"],"core-js/modules/es.typed-array.index-of":["es.typed-array.index-of"],"core-js/modules/es.typed-array.int16-array":["es.typed-array.int16-array"],"core-js/modules/es.typed-array.int32-array":["es.typed-array.int32-array"],"core-js/modules/es.typed-array.int8-array":["es.typed-array.int8-array"],"core-js/modules/es.typed-array.iterator":["es.typed-array.iterator"],"core-js/modules/es.typed-array.join":["es.typed-array.join"],"core-js/modules/es.typed-array.last-index-of":["es.typed-array.last-index-of"],"core-js/modules/es.typed-array.map":["es.typed-array.map"],"core-js/modules/es.typed-array.of":["es.typed-array.of"],"core-js/modules/es.typed-array.reduce":["es.typed-array.reduce"],"core-js/modules/es.typed-array.reduce-right":["es.typed-array.reduce-right"],"core-js/modules/es.typed-array.reverse":["es.typed-array.reverse"],"core-js/modules/es.typed-array.set":["es.typed-array.set"],"core-js/modules/es.typed-array.slice":["es.typed-array.slice"],"core-js/modules/es.typed-array.some":["es.typed-array.some"],"core-js/modules/es.typed-array.sort":["es.typed-array.sort"],"core-js/modules/es.typed-array.subarray":["es.typed-array.subarray"],"core-js/modules/es.typed-array.to-locale-string":["es.typed-array.to-locale-string"],"core-js/modules/es.typed-array.to-reversed":["es.typed-array.to-reversed"],"core-js/modules/es.typed-array.to-sorted":["es.typed-array.to-sorted"],"core-js/modules/es.typed-array.to-string":["es.typed-array.to-string"],"core-js/modules/es.typed-array.uint16-array":["es.typed-array.uint16-array"],"core-js/modules/es.typed-array.uint32-array":["es.typed-array.uint32-array"],"core-js/modules/es.typed-array.uint8-array":["es.typed-array.uint8-array"],"core-js/modules/es.typed-array.uint8-clamped-array":["es.typed-array.uint8-clamped-array"],"core-js/modules/es.typed-array.with":["es.typed-array.with"],"core-js/modules/es.unescape":["es.unescape"],"core-js/modules/es.weak-map":["es.weak-map"],"core-js/modules/es.weak-map.constructor":["es.weak-map.constructor"],"core-js/modules/es.weak-set":["es.weak-set"],"core-js/modules/es.weak-set.constructor":["es.weak-set.constructor"],"core-js/modules/esnext.aggregate-error":["esnext.aggregate-error"],"core-js/modules/esnext.array-buffer.detached":["esnext.array-buffer.detached"],"core-js/modules/esnext.array-buffer.transfer":["esnext.array-buffer.transfer"],"core-js/modules/esnext.array-buffer.transfer-to-fixed-length":["esnext.array-buffer.transfer-to-fixed-length"],"core-js/modules/esnext.array.at":["esnext.array.at"],"core-js/modules/esnext.array.filter-out":["esnext.array.filter-out"],"core-js/modules/esnext.array.filter-reject":["esnext.array.filter-reject"],"core-js/modules/esnext.array.find-last":["esnext.array.find-last"],"core-js/modules/esnext.array.find-last-index":["esnext.array.find-last-index"],"core-js/modules/esnext.array.from-async":["esnext.array.from-async"],"core-js/modules/esnext.array.group":["esnext.array.group"],"core-js/modules/esnext.array.group-by":["esnext.array.group-by"],"core-js/modules/esnext.array.group-by-to-map":["esnext.array.group-by-to-map"],"core-js/modules/esnext.array.group-to-map":["esnext.array.group-to-map"],"core-js/modules/esnext.array.is-template-object":["esnext.array.is-template-object"],"core-js/modules/esnext.array.last-index":["esnext.array.last-index"],"core-js/modules/esnext.array.last-item":["esnext.array.last-item"],"core-js/modules/esnext.array.to-reversed":["esnext.array.to-reversed"],"core-js/modules/esnext.array.to-sorted":["esnext.array.to-sorted"],"core-js/modules/esnext.array.to-spliced":["esnext.array.to-spliced"],"core-js/modules/esnext.array.unique-by":["esnext.array.unique-by"],"core-js/modules/esnext.array.with":["esnext.array.with"],"core-js/modules/esnext.async-disposable-stack.constructor":["esnext.async-disposable-stack.constructor"],"core-js/modules/esnext.async-iterator.as-indexed-pairs":["esnext.async-iterator.as-indexed-pairs"],"core-js/modules/esnext.async-iterator.async-dispose":["esnext.async-iterator.async-dispose"],"core-js/modules/esnext.async-iterator.constructor":["esnext.async-iterator.constructor"],"core-js/modules/esnext.async-iterator.drop":["esnext.async-iterator.drop"],"core-js/modules/esnext.async-iterator.every":["esnext.async-iterator.every"],"core-js/modules/esnext.async-iterator.filter":["esnext.async-iterator.filter"],"core-js/modules/esnext.async-iterator.find":["esnext.async-iterator.find"],"core-js/modules/esnext.async-iterator.flat-map":["esnext.async-iterator.flat-map"],"core-js/modules/esnext.async-iterator.for-each":["esnext.async-iterator.for-each"],"core-js/modules/esnext.async-iterator.from":["esnext.async-iterator.from"],"core-js/modules/esnext.async-iterator.indexed":["esnext.async-iterator.indexed"],"core-js/modules/esnext.async-iterator.map":["esnext.async-iterator.map"],"core-js/modules/esnext.async-iterator.reduce":["esnext.async-iterator.reduce"],"core-js/modules/esnext.async-iterator.some":["esnext.async-iterator.some"],"core-js/modules/esnext.async-iterator.take":["esnext.async-iterator.take"],"core-js/modules/esnext.async-iterator.to-array":["esnext.async-iterator.to-array"],"core-js/modules/esnext.bigint.range":["esnext.bigint.range"],"core-js/modules/esnext.composite-key":["esnext.composite-key"],"core-js/modules/esnext.composite-symbol":["esnext.composite-symbol"],"core-js/modules/esnext.data-view.get-float16":["esnext.data-view.get-float16"],"core-js/modules/esnext.data-view.get-uint8-clamped":["esnext.data-view.get-uint8-clamped"],"core-js/modules/esnext.data-view.set-float16":["esnext.data-view.set-float16"],"core-js/modules/esnext.data-view.set-uint8-clamped":["esnext.data-view.set-uint8-clamped"],"core-js/modules/esnext.disposable-stack.constructor":["esnext.disposable-stack.constructor"],"core-js/modules/esnext.function.demethodize":["esnext.function.demethodize"],"core-js/modules/esnext.function.is-callable":["esnext.function.is-callable"],"core-js/modules/esnext.function.is-constructor":["esnext.function.is-constructor"],"core-js/modules/esnext.function.metadata":["esnext.function.metadata"],"core-js/modules/esnext.function.un-this":["esnext.function.un-this"],"core-js/modules/esnext.global-this":["esnext.global-this"],"core-js/modules/esnext.iterator.as-indexed-pairs":["esnext.iterator.as-indexed-pairs"],"core-js/modules/esnext.iterator.constructor":["esnext.iterator.constructor"],"core-js/modules/esnext.iterator.dispose":["esnext.iterator.dispose"],"core-js/modules/esnext.iterator.drop":["esnext.iterator.drop"],"core-js/modules/esnext.iterator.every":["esnext.iterator.every"],"core-js/modules/esnext.iterator.filter":["esnext.iterator.filter"],"core-js/modules/esnext.iterator.find":["esnext.iterator.find"],"core-js/modules/esnext.iterator.flat-map":["esnext.iterator.flat-map"],"core-js/modules/esnext.iterator.for-each":["esnext.iterator.for-each"],"core-js/modules/esnext.iterator.from":["esnext.iterator.from"],"core-js/modules/esnext.iterator.indexed":["esnext.iterator.indexed"],"core-js/modules/esnext.iterator.map":["esnext.iterator.map"],"core-js/modules/esnext.iterator.range":["esnext.iterator.range"],"core-js/modules/esnext.iterator.reduce":["esnext.iterator.reduce"],"core-js/modules/esnext.iterator.some":["esnext.iterator.some"],"core-js/modules/esnext.iterator.take":["esnext.iterator.take"],"core-js/modules/esnext.iterator.to-array":["esnext.iterator.to-array"],"core-js/modules/esnext.iterator.to-async":["esnext.iterator.to-async"],"core-js/modules/esnext.json.is-raw-json":["esnext.json.is-raw-json"],"core-js/modules/esnext.json.parse":["esnext.json.parse"],"core-js/modules/esnext.json.raw-json":["esnext.json.raw-json"],"core-js/modules/esnext.map.delete-all":["esnext.map.delete-all"],"core-js/modules/esnext.map.emplace":["esnext.map.emplace"],"core-js/modules/esnext.map.every":["esnext.map.every"],"core-js/modules/esnext.map.filter":["esnext.map.filter"],"core-js/modules/esnext.map.find":["esnext.map.find"],"core-js/modules/esnext.map.find-key":["esnext.map.find-key"],"core-js/modules/esnext.map.from":["esnext.map.from"],"core-js/modules/esnext.map.group-by":["esnext.map.group-by"],"core-js/modules/esnext.map.includes":["esnext.map.includes"],"core-js/modules/esnext.map.key-by":["esnext.map.key-by"],"core-js/modules/esnext.map.key-of":["esnext.map.key-of"],"core-js/modules/esnext.map.map-keys":["esnext.map.map-keys"],"core-js/modules/esnext.map.map-values":["esnext.map.map-values"],"core-js/modules/esnext.map.merge":["esnext.map.merge"],"core-js/modules/esnext.map.of":["esnext.map.of"],"core-js/modules/esnext.map.reduce":["esnext.map.reduce"],"core-js/modules/esnext.map.some":["esnext.map.some"],"core-js/modules/esnext.map.update":["esnext.map.update"],"core-js/modules/esnext.map.update-or-insert":["esnext.map.update-or-insert"],"core-js/modules/esnext.map.upsert":["esnext.map.upsert"],"core-js/modules/esnext.math.clamp":["esnext.math.clamp"],"core-js/modules/esnext.math.deg-per-rad":["esnext.math.deg-per-rad"],"core-js/modules/esnext.math.degrees":["esnext.math.degrees"],"core-js/modules/esnext.math.f16round":["esnext.math.f16round"],"core-js/modules/esnext.math.fscale":["esnext.math.fscale"],"core-js/modules/esnext.math.iaddh":["esnext.math.iaddh"],"core-js/modules/esnext.math.imulh":["esnext.math.imulh"],"core-js/modules/esnext.math.isubh":["esnext.math.isubh"],"core-js/modules/esnext.math.rad-per-deg":["esnext.math.rad-per-deg"],"core-js/modules/esnext.math.radians":["esnext.math.radians"],"core-js/modules/esnext.math.scale":["esnext.math.scale"],"core-js/modules/esnext.math.seeded-prng":["esnext.math.seeded-prng"],"core-js/modules/esnext.math.signbit":["esnext.math.signbit"],"core-js/modules/esnext.math.umulh":["esnext.math.umulh"],"core-js/modules/esnext.number.from-string":["esnext.number.from-string"],"core-js/modules/esnext.number.range":["esnext.number.range"],"core-js/modules/esnext.object.group-by":["esnext.object.group-by"],"core-js/modules/esnext.object.has-own":["esnext.object.has-own"],"core-js/modules/esnext.object.iterate-entries":["esnext.object.iterate-entries"],"core-js/modules/esnext.object.iterate-keys":["esnext.object.iterate-keys"],"core-js/modules/esnext.object.iterate-values":["esnext.object.iterate-values"],"core-js/modules/esnext.observable":["esnext.observable"],"core-js/modules/esnext.observable.constructor":["esnext.observable.constructor"],"core-js/modules/esnext.observable.from":["esnext.observable.from"],"core-js/modules/esnext.observable.of":["esnext.observable.of"],"core-js/modules/esnext.promise.all-settled":["esnext.promise.all-settled"],"core-js/modules/esnext.promise.any":["esnext.promise.any"],"core-js/modules/esnext.promise.try":["esnext.promise.try"],"core-js/modules/esnext.promise.with-resolvers":["esnext.promise.with-resolvers"],"core-js/modules/esnext.reflect.define-metadata":["esnext.reflect.define-metadata"],"core-js/modules/esnext.reflect.delete-metadata":["esnext.reflect.delete-metadata"],"core-js/modules/esnext.reflect.get-metadata":["esnext.reflect.get-metadata"],"core-js/modules/esnext.reflect.get-metadata-keys":["esnext.reflect.get-metadata-keys"],"core-js/modules/esnext.reflect.get-own-metadata":["esnext.reflect.get-own-metadata"],"core-js/modules/esnext.reflect.get-own-metadata-keys":["esnext.reflect.get-own-metadata-keys"],"core-js/modules/esnext.reflect.has-metadata":["esnext.reflect.has-metadata"],"core-js/modules/esnext.reflect.has-own-metadata":["esnext.reflect.has-own-metadata"],"core-js/modules/esnext.reflect.metadata":["esnext.reflect.metadata"],"core-js/modules/esnext.regexp.escape":["esnext.regexp.escape"],"core-js/modules/esnext.set.add-all":["esnext.set.add-all"],"core-js/modules/esnext.set.delete-all":["esnext.set.delete-all"],"core-js/modules/esnext.set.difference":["esnext.set.difference"],"core-js/modules/esnext.set.difference.v2":["esnext.set.difference.v2"],"core-js/modules/esnext.set.every":["esnext.set.every"],"core-js/modules/esnext.set.filter":["esnext.set.filter"],"core-js/modules/esnext.set.find":["esnext.set.find"],"core-js/modules/esnext.set.from":["esnext.set.from"],"core-js/modules/esnext.set.intersection":["esnext.set.intersection"],"core-js/modules/esnext.set.intersection.v2":["esnext.set.intersection.v2"],"core-js/modules/esnext.set.is-disjoint-from":["esnext.set.is-disjoint-from"],"core-js/modules/esnext.set.is-disjoint-from.v2":["esnext.set.is-disjoint-from.v2"],"core-js/modules/esnext.set.is-subset-of":["esnext.set.is-subset-of"],"core-js/modules/esnext.set.is-subset-of.v2":["esnext.set.is-subset-of.v2"],"core-js/modules/esnext.set.is-superset-of":["esnext.set.is-superset-of"],"core-js/modules/esnext.set.is-superset-of.v2":["esnext.set.is-superset-of.v2"],"core-js/modules/esnext.set.join":["esnext.set.join"],"core-js/modules/esnext.set.map":["esnext.set.map"],"core-js/modules/esnext.set.of":["esnext.set.of"],"core-js/modules/esnext.set.reduce":["esnext.set.reduce"],"core-js/modules/esnext.set.some":["esnext.set.some"],"core-js/modules/esnext.set.symmetric-difference":["esnext.set.symmetric-difference"],"core-js/modules/esnext.set.symmetric-difference.v2":["esnext.set.symmetric-difference.v2"],"core-js/modules/esnext.set.union":["esnext.set.union"],"core-js/modules/esnext.set.union.v2":["esnext.set.union.v2"],"core-js/modules/esnext.string.at":["esnext.string.at"],"core-js/modules/esnext.string.at-alternative":["esnext.string.at-alternative"],"core-js/modules/esnext.string.code-points":["esnext.string.code-points"],"core-js/modules/esnext.string.cooked":["esnext.string.cooked"],"core-js/modules/esnext.string.dedent":["esnext.string.dedent"],"core-js/modules/esnext.string.is-well-formed":["esnext.string.is-well-formed"],"core-js/modules/esnext.string.match-all":["esnext.string.match-all"],"core-js/modules/esnext.string.replace-all":["esnext.string.replace-all"],"core-js/modules/esnext.string.to-well-formed":["esnext.string.to-well-formed"],"core-js/modules/esnext.suppressed-error.constructor":["esnext.suppressed-error.constructor"],"core-js/modules/esnext.symbol.async-dispose":["esnext.symbol.async-dispose"],"core-js/modules/esnext.symbol.dispose":["esnext.symbol.dispose"],"core-js/modules/esnext.symbol.is-registered":["esnext.symbol.is-registered"],"core-js/modules/esnext.symbol.is-registered-symbol":["esnext.symbol.is-registered-symbol"],"core-js/modules/esnext.symbol.is-well-known":["esnext.symbol.is-well-known"],"core-js/modules/esnext.symbol.is-well-known-symbol":["esnext.symbol.is-well-known-symbol"],"core-js/modules/esnext.symbol.matcher":["esnext.symbol.matcher"],"core-js/modules/esnext.symbol.metadata":["esnext.symbol.metadata"],"core-js/modules/esnext.symbol.metadata-key":["esnext.symbol.metadata-key"],"core-js/modules/esnext.symbol.observable":["esnext.symbol.observable"],"core-js/modules/esnext.symbol.pattern-match":["esnext.symbol.pattern-match"],"core-js/modules/esnext.symbol.replace-all":["esnext.symbol.replace-all"],"core-js/modules/esnext.typed-array.at":["esnext.typed-array.at"],"core-js/modules/esnext.typed-array.filter-out":["esnext.typed-array.filter-out"],"core-js/modules/esnext.typed-array.filter-reject":["esnext.typed-array.filter-reject"],"core-js/modules/esnext.typed-array.find-last":["esnext.typed-array.find-last"],"core-js/modules/esnext.typed-array.find-last-index":["esnext.typed-array.find-last-index"],"core-js/modules/esnext.typed-array.from-async":["esnext.typed-array.from-async"],"core-js/modules/esnext.typed-array.group-by":["esnext.typed-array.group-by"],"core-js/modules/esnext.typed-array.to-reversed":["esnext.typed-array.to-reversed"],"core-js/modules/esnext.typed-array.to-sorted":["esnext.typed-array.to-sorted"],"core-js/modules/esnext.typed-array.to-spliced":["esnext.typed-array.to-spliced"],"core-js/modules/esnext.typed-array.unique-by":["esnext.typed-array.unique-by"],"core-js/modules/esnext.typed-array.with":["esnext.typed-array.with"],"core-js/modules/esnext.uint8-array.from-base64":["esnext.uint8-array.from-base64"],"core-js/modules/esnext.uint8-array.from-hex":["esnext.uint8-array.from-hex"],"core-js/modules/esnext.uint8-array.to-base64":["esnext.uint8-array.to-base64"],"core-js/modules/esnext.uint8-array.to-hex":["esnext.uint8-array.to-hex"],"core-js/modules/esnext.weak-map.delete-all":["esnext.weak-map.delete-all"],"core-js/modules/esnext.weak-map.emplace":["esnext.weak-map.emplace"],"core-js/modules/esnext.weak-map.from":["esnext.weak-map.from"],"core-js/modules/esnext.weak-map.of":["esnext.weak-map.of"],"core-js/modules/esnext.weak-map.upsert":["esnext.weak-map.upsert"],"core-js/modules/esnext.weak-set.add-all":["esnext.weak-set.add-all"],"core-js/modules/esnext.weak-set.delete-all":["esnext.weak-set.delete-all"],"core-js/modules/esnext.weak-set.from":["esnext.weak-set.from"],"core-js/modules/esnext.weak-set.of":["esnext.weak-set.of"],"core-js/modules/web.atob":["web.atob"],"core-js/modules/web.btoa":["web.btoa"],"core-js/modules/web.clear-immediate":["web.clear-immediate"],"core-js/modules/web.dom-collections.for-each":["web.dom-collections.for-each"],"core-js/modules/web.dom-collections.iterator":["web.dom-collections.iterator"],"core-js/modules/web.dom-exception.constructor":["web.dom-exception.constructor"],"core-js/modules/web.dom-exception.stack":["web.dom-exception.stack"],"core-js/modules/web.dom-exception.to-string-tag":["web.dom-exception.to-string-tag"],"core-js/modules/web.immediate":["web.immediate"],"core-js/modules/web.queue-microtask":["web.queue-microtask"],"core-js/modules/web.self":["web.self"],"core-js/modules/web.set-immediate":["web.set-immediate"],"core-js/modules/web.set-interval":["web.set-interval"],"core-js/modules/web.set-timeout":["web.set-timeout"],"core-js/modules/web.structured-clone":["web.structured-clone"],"core-js/modules/web.timers":["web.timers"],"core-js/modules/web.url":["web.url"],"core-js/modules/web.url-search-params":["web.url-search-params"],"core-js/modules/web.url-search-params.constructor":["web.url-search-params.constructor"],"core-js/modules/web.url-search-params.delete":["web.url-search-params.delete"],"core-js/modules/web.url-search-params.has":["web.url-search-params.has"],"core-js/modules/web.url-search-params.size":["web.url-search-params.size"],"core-js/modules/web.url.can-parse":["web.url.can-parse"],"core-js/modules/web.url.constructor":["web.url.constructor"],"core-js/modules/web.url.to-json":["web.url.to-json"],"core-js/proposals":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/proposals/accessible-object-hasownproperty":["esnext.object.has-own"],"core-js/proposals/array-buffer-base64":["esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"],"core-js/proposals/array-buffer-transfer":["esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length"],"core-js/proposals/array-filtering":["esnext.array.filter-out","esnext.array.filter-reject","esnext.typed-array.filter-out","esnext.typed-array.filter-reject"],"core-js/proposals/array-filtering-stage-1":["esnext.array.filter-reject","esnext.typed-array.filter-reject"],"core-js/proposals/array-find-from-last":["esnext.array.find-last","esnext.array.find-last-index","esnext.typed-array.find-last","esnext.typed-array.find-last-index"],"core-js/proposals/array-flat-map":["es.array.flat","es.array.flat-map","es.array.unscopables.flat","es.array.unscopables.flat-map"],"core-js/proposals/array-from-async":["esnext.array.from-async","esnext.typed-array.from-async"],"core-js/proposals/array-from-async-stage-2":["esnext.array.from-async"],"core-js/proposals/array-grouping":["esnext.array.group-by","esnext.array.group-by-to-map","esnext.typed-array.group-by"],"core-js/proposals/array-grouping-stage-3":["esnext.array.group-by","esnext.array.group-by-to-map"],"core-js/proposals/array-grouping-stage-3-2":["esnext.array.group","esnext.array.group-to-map"],"core-js/proposals/array-grouping-v2":["esnext.map.group-by","esnext.object.group-by"],"core-js/proposals/array-includes":["es.array.includes","es.typed-array.includes"],"core-js/proposals/array-is-template-object":["esnext.array.is-template-object"],"core-js/proposals/array-last":["esnext.array.last-index","esnext.array.last-item"],"core-js/proposals/array-unique":["es.map","esnext.array.unique-by","esnext.typed-array.unique-by"],"core-js/proposals/async-explicit-resource-management":["esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.symbol.async-dispose"],"core-js/proposals/async-iteration":["es.symbol.async-iterator"],"core-js/proposals/async-iterator-helpers":["esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.to-async"],"core-js/proposals/change-array-by-copy":["esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/proposals/change-array-by-copy-stage-4":["esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.with"],"core-js/proposals/collection-methods":["esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.set.add-all","esnext.set.delete-all","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.join","esnext.set.map","esnext.set.reduce","esnext.set.some","esnext.weak-map.delete-all","esnext.weak-set.add-all","esnext.weak-set.delete-all"],"core-js/proposals/collection-of-from":["esnext.map.from","esnext.map.of","esnext.set.from","esnext.set.of","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-set.from","esnext.weak-set.of"],"core-js/proposals/data-view-get-set-uint8-clamped":["esnext.data-view.get-uint8-clamped","esnext.data-view.set-uint8-clamped"],"core-js/proposals/decorator-metadata":["esnext.symbol.metadata-key"],"core-js/proposals/decorator-metadata-v2":["esnext.function.metadata","esnext.symbol.metadata"],"core-js/proposals/decorators":["esnext.symbol.metadata"],"core-js/proposals/efficient-64-bit-arithmetic":["esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.umulh"],"core-js/proposals/error-cause":["es.error.cause","es.aggregate-error.cause"],"core-js/proposals/explicit-resource-management":["esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.disposable-stack.constructor","esnext.iterator.dispose","esnext.symbol.async-dispose","esnext.symbol.dispose"],"core-js/proposals/float16":["esnext.data-view.get-float16","esnext.data-view.set-float16","esnext.math.f16round"],"core-js/proposals/function-demethodize":["esnext.function.demethodize"],"core-js/proposals/function-is-callable-is-constructor":["esnext.function.is-callable","esnext.function.is-constructor"],"core-js/proposals/function-un-this":["esnext.function.un-this"],"core-js/proposals/global-this":["esnext.global-this"],"core-js/proposals/iterator-helpers":["esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async"],"core-js/proposals/iterator-helpers-stage-3":["esnext.async-iterator.constructor","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async"],"core-js/proposals/iterator-helpers-stage-3-2":["esnext.iterator.constructor","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array"],"core-js/proposals/iterator-range":["esnext.iterator.constructor","esnext.iterator.range"],"core-js/proposals/json-parse-with-source":["esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json"],"core-js/proposals/keys-composition":["esnext.composite-key","esnext.composite-symbol"],"core-js/proposals/map-update-or-insert":["esnext.map.emplace","esnext.map.update-or-insert","esnext.map.upsert","esnext.weak-map.emplace","esnext.weak-map.upsert"],"core-js/proposals/map-upsert":["esnext.map.emplace","esnext.map.update-or-insert","esnext.map.upsert","esnext.weak-map.emplace","esnext.weak-map.upsert"],"core-js/proposals/map-upsert-stage-2":["esnext.map.emplace","esnext.weak-map.emplace"],"core-js/proposals/math-extensions":["esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale"],"core-js/proposals/math-signbit":["esnext.math.signbit"],"core-js/proposals/number-from-string":["esnext.number.from-string"],"core-js/proposals/number-range":["esnext.bigint.range","esnext.number.range"],"core-js/proposals/object-from-entries":["es.object.from-entries"],"core-js/proposals/object-getownpropertydescriptors":["es.object.get-own-property-descriptors"],"core-js/proposals/object-iteration":["esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values"],"core-js/proposals/object-values-entries":["es.object.entries","es.object.values"],"core-js/proposals/observable":["esnext.observable","esnext.symbol.observable"],"core-js/proposals/pattern-matching":["esnext.symbol.matcher","esnext.symbol.pattern-match"],"core-js/proposals/promise-all-settled":["esnext.promise.all-settled"],"core-js/proposals/promise-any":["esnext.aggregate-error","esnext.promise.any"],"core-js/proposals/promise-finally":["es.promise.finally"],"core-js/proposals/promise-try":["esnext.promise.try"],"core-js/proposals/promise-with-resolvers":["esnext.promise.with-resolvers"],"core-js/proposals/reflect-metadata":["esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata"],"core-js/proposals/regexp-dotall-flag":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags"],"core-js/proposals/regexp-escaping":["esnext.regexp.escape"],"core-js/proposals/regexp-named-groups":["es.regexp.constructor","es.regexp.exec","es.string.replace"],"core-js/proposals/relative-indexing-method":["es.string.at-alternative","esnext.array.at","esnext.typed-array.at"],"core-js/proposals/seeded-random":["esnext.math.seeded-prng"],"core-js/proposals/set-methods":["esnext.set.difference.v2","esnext.set.difference","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union"],"core-js/proposals/set-methods-v2":["esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2"],"core-js/proposals/string-at":["esnext.string.at"],"core-js/proposals/string-code-points":["esnext.string.code-points"],"core-js/proposals/string-cooked":["esnext.string.cooked"],"core-js/proposals/string-dedent":["esnext.string.dedent"],"core-js/proposals/string-left-right-trim":["es.string.trim-end","es.string.trim-start"],"core-js/proposals/string-match-all":["esnext.string.match-all"],"core-js/proposals/string-padding":["es.string.pad-end","es.string.pad-start"],"core-js/proposals/string-replace-all":["esnext.string.replace-all","esnext.symbol.replace-all"],"core-js/proposals/string-replace-all-stage-4":["esnext.string.replace-all"],"core-js/proposals/symbol-description":["es.symbol.description"],"core-js/proposals/symbol-predicates":["esnext.symbol.is-registered","esnext.symbol.is-well-known"],"core-js/proposals/symbol-predicates-v2":["esnext.symbol.is-registered-symbol","esnext.symbol.is-well-known-symbol"],"core-js/proposals/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/proposals/using-statement":["esnext.symbol.async-dispose","esnext.symbol.dispose"],"core-js/proposals/well-formed-stringify":["es.json.stringify"],"core-js/proposals/well-formed-unicode-strings":["esnext.string.is-well-formed","esnext.string.to-well-formed"],"core-js/stable":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.map.group-by","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stable/aggregate-error":[],"core-js/stable/array":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string","es.string.iterator"],"core-js/stable/array-buffer":["es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.object.to-string"],"core-js/stable/array-buffer/constructor":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string"],"core-js/stable/array-buffer/is-view":["es.array-buffer.is-view"],"core-js/stable/array-buffer/slice":["es.array-buffer.slice"],"core-js/stable/array/at":["es.array.at"],"core-js/stable/array/concat":["es.array.concat"],"core-js/stable/array/copy-within":["es.array.copy-within"],"core-js/stable/array/entries":["es.array.iterator","es.object.to-string"],"core-js/stable/array/every":["es.array.every"],"core-js/stable/array/fill":["es.array.fill"],"core-js/stable/array/filter":["es.array.filter"],"core-js/stable/array/find":["es.array.find"],"core-js/stable/array/find-index":["es.array.find-index"],"core-js/stable/array/find-last":["es.array.find-last"],"core-js/stable/array/find-last-index":["es.array.find-last-index"],"core-js/stable/array/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/array/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/array/for-each":["es.array.for-each"],"core-js/stable/array/from":["es.array.from","es.string.iterator"],"core-js/stable/array/includes":["es.array.includes"],"core-js/stable/array/index-of":["es.array.index-of"],"core-js/stable/array/is-array":["es.array.is-array"],"core-js/stable/array/iterator":["es.array.iterator","es.object.to-string"],"core-js/stable/array/join":["es.array.join"],"core-js/stable/array/keys":["es.array.iterator","es.object.to-string"],"core-js/stable/array/last-index-of":["es.array.last-index-of"],"core-js/stable/array/map":["es.array.map"],"core-js/stable/array/of":["es.array.of"],"core-js/stable/array/push":["es.array.push"],"core-js/stable/array/reduce":["es.array.reduce"],"core-js/stable/array/reduce-right":["es.array.reduce-right"],"core-js/stable/array/reverse":["es.array.reverse"],"core-js/stable/array/slice":["es.array.slice"],"core-js/stable/array/some":["es.array.some"],"core-js/stable/array/sort":["es.array.sort"],"core-js/stable/array/splice":["es.array.splice"],"core-js/stable/array/to-reversed":["es.array.to-reversed"],"core-js/stable/array/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/stable/array/to-spliced":["es.array.to-spliced"],"core-js/stable/array/unshift":["es.array.unshift"],"core-js/stable/array/values":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual":["es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.includes","es.array.index-of","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.object.to-string"],"core-js/stable/array/virtual/at":["es.array.at"],"core-js/stable/array/virtual/concat":["es.array.concat"],"core-js/stable/array/virtual/copy-within":["es.array.copy-within"],"core-js/stable/array/virtual/entries":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/every":["es.array.every"],"core-js/stable/array/virtual/fill":["es.array.fill"],"core-js/stable/array/virtual/filter":["es.array.filter"],"core-js/stable/array/virtual/find":["es.array.find"],"core-js/stable/array/virtual/find-index":["es.array.find-index"],"core-js/stable/array/virtual/find-last":["es.array.find-last"],"core-js/stable/array/virtual/find-last-index":["es.array.find-last-index"],"core-js/stable/array/virtual/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/array/virtual/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/array/virtual/for-each":["es.array.for-each"],"core-js/stable/array/virtual/includes":["es.array.includes"],"core-js/stable/array/virtual/index-of":["es.array.index-of"],"core-js/stable/array/virtual/iterator":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/join":["es.array.join"],"core-js/stable/array/virtual/keys":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/last-index-of":["es.array.last-index-of"],"core-js/stable/array/virtual/map":["es.array.map"],"core-js/stable/array/virtual/push":["es.array.push"],"core-js/stable/array/virtual/reduce":["es.array.reduce"],"core-js/stable/array/virtual/reduce-right":["es.array.reduce-right"],"core-js/stable/array/virtual/reverse":["es.array.reverse"],"core-js/stable/array/virtual/slice":["es.array.slice"],"core-js/stable/array/virtual/some":["es.array.some"],"core-js/stable/array/virtual/sort":["es.array.sort"],"core-js/stable/array/virtual/splice":["es.array.splice"],"core-js/stable/array/virtual/to-reversed":["es.array.to-reversed"],"core-js/stable/array/virtual/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/stable/array/virtual/to-spliced":["es.array.to-spliced"],"core-js/stable/array/virtual/unshift":["es.array.unshift"],"core-js/stable/array/virtual/values":["es.array.iterator","es.object.to-string"],"core-js/stable/array/virtual/with":["es.array.with"],"core-js/stable/array/with":["es.array.with"],"core-js/stable/atob":["es.error.to-string","es.object.to-string","web.atob","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/stable/btoa":["es.error.to-string","es.object.to-string","web.btoa","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/stable/clear-immediate":["web.immediate"],"core-js/stable/data-view":["es.array-buffer.constructor","es.array-buffer.slice","es.data-view","es.object.to-string"],"core-js/stable/date":["es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string"],"core-js/stable/date/get-year":["es.date.get-year"],"core-js/stable/date/now":["es.date.now"],"core-js/stable/date/set-year":["es.date.set-year"],"core-js/stable/date/to-gmt-string":["es.date.to-gmt-string"],"core-js/stable/date/to-iso-string":["es.date.to-iso-string","es.date.to-json"],"core-js/stable/date/to-json":["es.date.to-json"],"core-js/stable/date/to-primitive":["es.date.to-primitive"],"core-js/stable/date/to-string":["es.date.to-string"],"core-js/stable/dom-collections":["es.array.iterator","es.object.to-string","web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/stable/dom-collections/for-each":["web.dom-collections.for-each"],"core-js/stable/dom-collections/iterator":["es.object.to-string","web.dom-collections.iterator"],"core-js/stable/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/stable/dom-exception/constructor":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack"],"core-js/stable/dom-exception/to-string-tag":["web.dom-exception.to-string-tag"],"core-js/stable/error":["es.error.cause","es.error.to-string"],"core-js/stable/error/constructor":["es.error.cause"],"core-js/stable/error/to-string":["es.error.to-string"],"core-js/stable/escape":["es.escape"],"core-js/stable/function":["es.function.bind","es.function.has-instance","es.function.name"],"core-js/stable/function/bind":["es.function.bind"],"core-js/stable/function/has-instance":["es.function.has-instance"],"core-js/stable/function/name":["es.function.name"],"core-js/stable/function/virtual":["es.function.bind"],"core-js/stable/function/virtual/bind":["es.function.bind"],"core-js/stable/get-iterator":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/get-iterator-method":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/global-this":["es.global-this"],"core-js/stable/instance/at":["es.array.at","es.string.at-alternative"],"core-js/stable/instance/bind":["es.function.bind"],"core-js/stable/instance/code-point-at":["es.string.code-point-at"],"core-js/stable/instance/concat":["es.array.concat"],"core-js/stable/instance/copy-within":["es.array.copy-within"],"core-js/stable/instance/ends-with":["es.string.ends-with"],"core-js/stable/instance/entries":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/stable/instance/every":["es.array.every"],"core-js/stable/instance/fill":["es.array.fill"],"core-js/stable/instance/filter":["es.array.filter"],"core-js/stable/instance/find":["es.array.find"],"core-js/stable/instance/find-index":["es.array.find-index"],"core-js/stable/instance/find-last":["es.array.find-last"],"core-js/stable/instance/find-last-index":["es.array.find-last-index"],"core-js/stable/instance/flags":["es.regexp.flags"],"core-js/stable/instance/flat":["es.array.flat","es.array.unscopables.flat"],"core-js/stable/instance/flat-map":["es.array.flat-map","es.array.unscopables.flat-map"],"core-js/stable/instance/for-each":["es.array.for-each","web.dom-collections.for-each"],"core-js/stable/instance/includes":["es.array.includes","es.string.includes"],"core-js/stable/instance/index-of":["es.array.index-of"],"core-js/stable/instance/is-well-formed":["es.string.is-well-formed"],"core-js/stable/instance/keys":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/stable/instance/last-index-of":["es.array.last-index-of"],"core-js/stable/instance/map":["es.array.map"],"core-js/stable/instance/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/instance/pad-end":["es.string.pad-end"],"core-js/stable/instance/pad-start":["es.string.pad-start"],"core-js/stable/instance/push":["es.array.push"],"core-js/stable/instance/reduce":["es.array.reduce"],"core-js/stable/instance/reduce-right":["es.array.reduce-right"],"core-js/stable/instance/repeat":["es.string.repeat"],"core-js/stable/instance/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/stable/instance/reverse":["es.array.reverse"],"core-js/stable/instance/slice":["es.array.slice"],"core-js/stable/instance/some":["es.array.some"],"core-js/stable/instance/sort":["es.array.sort"],"core-js/stable/instance/splice":["es.array.splice"],"core-js/stable/instance/starts-with":["es.string.starts-with"],"core-js/stable/instance/to-reversed":["es.array.to-reversed"],"core-js/stable/instance/to-sorted":["es.array.sort","es.array.to-sorted"],"core-js/stable/instance/to-spliced":["es.array.to-spliced"],"core-js/stable/instance/to-well-formed":["es.string.to-well-formed"],"core-js/stable/instance/trim":["es.string.trim"],"core-js/stable/instance/trim-end":["es.string.trim-end"],"core-js/stable/instance/trim-left":["es.string.trim-start"],"core-js/stable/instance/trim-right":["es.string.trim-end"],"core-js/stable/instance/trim-start":["es.string.trim-start"],"core-js/stable/instance/unshift":["es.array.unshift"],"core-js/stable/instance/values":["es.array.iterator","es.object.to-string","web.dom-collections.iterator"],"core-js/stable/instance/with":["es.array.with"],"core-js/stable/is-iterable":["es.array.iterator","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/json":["es.json.stringify","es.json.to-string-tag"],"core-js/stable/json/stringify":["es.json.stringify"],"core-js/stable/json/to-string-tag":["es.json.to-string-tag"],"core-js/stable/map":["es.array.iterator","es.map","es.map.group-by","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/map/group-by":["es.map","es.map.group-by"],"core-js/stable/math":["es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc"],"core-js/stable/math/acosh":["es.math.acosh"],"core-js/stable/math/asinh":["es.math.asinh"],"core-js/stable/math/atanh":["es.math.atanh"],"core-js/stable/math/cbrt":["es.math.cbrt"],"core-js/stable/math/clz32":["es.math.clz32"],"core-js/stable/math/cosh":["es.math.cosh"],"core-js/stable/math/expm1":["es.math.expm1"],"core-js/stable/math/fround":["es.math.fround"],"core-js/stable/math/hypot":["es.math.hypot"],"core-js/stable/math/imul":["es.math.imul"],"core-js/stable/math/log10":["es.math.log10"],"core-js/stable/math/log1p":["es.math.log1p"],"core-js/stable/math/log2":["es.math.log2"],"core-js/stable/math/sign":["es.math.sign"],"core-js/stable/math/sinh":["es.math.sinh"],"core-js/stable/math/tanh":["es.math.tanh"],"core-js/stable/math/to-string-tag":["es.math.to-string-tag"],"core-js/stable/math/trunc":["es.math.trunc"],"core-js/stable/number":["es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/stable/number/constructor":["es.number.constructor"],"core-js/stable/number/epsilon":["es.number.epsilon"],"core-js/stable/number/is-finite":["es.number.is-finite"],"core-js/stable/number/is-integer":["es.number.is-integer"],"core-js/stable/number/is-nan":["es.number.is-nan"],"core-js/stable/number/is-safe-integer":["es.number.is-safe-integer"],"core-js/stable/number/max-safe-integer":["es.number.max-safe-integer"],"core-js/stable/number/min-safe-integer":["es.number.min-safe-integer"],"core-js/stable/number/parse-float":["es.number.parse-float"],"core-js/stable/number/parse-int":["es.number.parse-int"],"core-js/stable/number/to-exponential":["es.number.to-exponential"],"core-js/stable/number/to-fixed":["es.number.to-fixed"],"core-js/stable/number/to-precision":["es.number.to-precision"],"core-js/stable/number/virtual":["es.number.to-exponential","es.number.to-fixed","es.number.to-precision"],"core-js/stable/number/virtual/to-exponential":["es.number.to-exponential"],"core-js/stable/number/virtual/to-fixed":["es.number.to-fixed"],"core-js/stable/number/virtual/to-precision":["es.number.to-precision"],"core-js/stable/object":["es.symbol","es.json.to-string-tag","es.math.to-string-tag","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.reflect.to-string-tag","web.dom-collections.iterator"],"core-js/stable/object/assign":["es.object.assign"],"core-js/stable/object/create":["es.object.create"],"core-js/stable/object/define-getter":["es.object.define-getter"],"core-js/stable/object/define-properties":["es.object.define-properties"],"core-js/stable/object/define-property":["es.object.define-property"],"core-js/stable/object/define-setter":["es.object.define-setter"],"core-js/stable/object/entries":["es.object.entries"],"core-js/stable/object/freeze":["es.object.freeze"],"core-js/stable/object/from-entries":["es.array.iterator","es.object.from-entries","web.dom-collections.iterator"],"core-js/stable/object/get-own-property-descriptor":["es.object.get-own-property-descriptor"],"core-js/stable/object/get-own-property-descriptors":["es.object.get-own-property-descriptors"],"core-js/stable/object/get-own-property-names":["es.object.get-own-property-names"],"core-js/stable/object/get-own-property-symbols":["es.symbol"],"core-js/stable/object/get-prototype-of":["es.object.get-prototype-of"],"core-js/stable/object/group-by":["es.object.create","es.object.group-by"],"core-js/stable/object/has-own":["es.object.has-own"],"core-js/stable/object/is":["es.object.is"],"core-js/stable/object/is-extensible":["es.object.is-extensible"],"core-js/stable/object/is-frozen":["es.object.is-frozen"],"core-js/stable/object/is-sealed":["es.object.is-sealed"],"core-js/stable/object/keys":["es.object.keys"],"core-js/stable/object/lookup-getter":["es.object.lookup-getter"],"core-js/stable/object/lookup-setter":["es.object.lookup-setter"],"core-js/stable/object/prevent-extensions":["es.object.prevent-extensions"],"core-js/stable/object/proto":["es.object.proto"],"core-js/stable/object/seal":["es.object.seal"],"core-js/stable/object/set-prototype-of":["es.object.set-prototype-of"],"core-js/stable/object/to-string":["es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/stable/object/values":["es.object.values"],"core-js/stable/parse-float":["es.parse-float"],"core-js/stable/parse-int":["es.parse-int"],"core-js/stable/promise":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/all-settled":["es.array.iterator","es.object.to-string","es.promise","es.promise.all-settled","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/any":["es.aggregate-error","es.array.iterator","es.object.to-string","es.promise","es.promise.any","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/promise/finally":["es.object.to-string","es.promise","es.promise.finally"],"core-js/stable/promise/with-resolvers":["es.promise","es.promise.with-resolvers"],"core-js/stable/queue-microtask":["web.queue-microtask"],"core-js/stable/reflect":["es.object.to-string","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag"],"core-js/stable/reflect/apply":["es.reflect.apply"],"core-js/stable/reflect/construct":["es.reflect.construct"],"core-js/stable/reflect/define-property":["es.reflect.define-property"],"core-js/stable/reflect/delete-property":["es.reflect.delete-property"],"core-js/stable/reflect/get":["es.reflect.get"],"core-js/stable/reflect/get-own-property-descriptor":["es.reflect.get-own-property-descriptor"],"core-js/stable/reflect/get-prototype-of":["es.reflect.get-prototype-of"],"core-js/stable/reflect/has":["es.reflect.has"],"core-js/stable/reflect/is-extensible":["es.reflect.is-extensible"],"core-js/stable/reflect/own-keys":["es.reflect.own-keys"],"core-js/stable/reflect/prevent-extensions":["es.reflect.prevent-extensions"],"core-js/stable/reflect/set":["es.reflect.set"],"core-js/stable/reflect/set-prototype-of":["es.reflect.set-prototype-of"],"core-js/stable/reflect/to-string-tag":["es.reflect.to-string-tag"],"core-js/stable/regexp":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.string.match","es.string.replace","es.string.search","es.string.split"],"core-js/stable/regexp/constructor":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.sticky"],"core-js/stable/regexp/dot-all":["es.regexp.constructor","es.regexp.dot-all","es.regexp.exec"],"core-js/stable/regexp/flags":["es.regexp.flags"],"core-js/stable/regexp/match":["es.regexp.exec","es.string.match"],"core-js/stable/regexp/replace":["es.regexp.exec","es.string.replace"],"core-js/stable/regexp/search":["es.regexp.exec","es.string.search"],"core-js/stable/regexp/split":["es.regexp.exec","es.string.split"],"core-js/stable/regexp/sticky":["es.regexp.constructor","es.regexp.exec","es.regexp.sticky"],"core-js/stable/regexp/test":["es.regexp.exec","es.regexp.test"],"core-js/stable/regexp/to-string":["es.regexp.to-string"],"core-js/stable/self":["web.self"],"core-js/stable/set":["es.array.iterator","es.object.to-string","es.set","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/set-immediate":["web.immediate"],"core-js/stable/set-interval":["web.timers"],"core-js/stable/set-timeout":["web.timers"],"core-js/stable/string":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/stable/string/anchor":["es.string.anchor"],"core-js/stable/string/at":["es.string.at-alternative"],"core-js/stable/string/big":["es.string.big"],"core-js/stable/string/blink":["es.string.blink"],"core-js/stable/string/bold":["es.string.bold"],"core-js/stable/string/code-point-at":["es.string.code-point-at"],"core-js/stable/string/ends-with":["es.string.ends-with"],"core-js/stable/string/fixed":["es.string.fixed"],"core-js/stable/string/fontcolor":["es.string.fontcolor"],"core-js/stable/string/fontsize":["es.string.fontsize"],"core-js/stable/string/from-code-point":["es.string.from-code-point"],"core-js/stable/string/includes":["es.string.includes"],"core-js/stable/string/is-well-formed":["es.string.is-well-formed"],"core-js/stable/string/italics":["es.string.italics"],"core-js/stable/string/iterator":["es.object.to-string","es.string.iterator"],"core-js/stable/string/link":["es.string.link"],"core-js/stable/string/match":["es.regexp.exec","es.string.match"],"core-js/stable/string/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/string/pad-end":["es.string.pad-end"],"core-js/stable/string/pad-start":["es.string.pad-start"],"core-js/stable/string/raw":["es.string.raw"],"core-js/stable/string/repeat":["es.string.repeat"],"core-js/stable/string/replace":["es.regexp.exec","es.string.replace"],"core-js/stable/string/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/stable/string/search":["es.regexp.exec","es.string.search"],"core-js/stable/string/small":["es.string.small"],"core-js/stable/string/split":["es.regexp.exec","es.string.split"],"core-js/stable/string/starts-with":["es.string.starts-with"],"core-js/stable/string/strike":["es.string.strike"],"core-js/stable/string/sub":["es.string.sub"],"core-js/stable/string/substr":["es.string.substr"],"core-js/stable/string/sup":["es.string.sup"],"core-js/stable/string/to-well-formed":["es.string.to-well-formed"],"core-js/stable/string/trim":["es.string.trim"],"core-js/stable/string/trim-end":["es.string.trim-end"],"core-js/stable/string/trim-left":["es.string.trim-start"],"core-js/stable/string/trim-right":["es.string.trim-end"],"core-js/stable/string/trim-start":["es.string.trim-start"],"core-js/stable/string/virtual":["es.object.to-string","es.regexp.exec","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.includes","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup"],"core-js/stable/string/virtual/anchor":["es.string.anchor"],"core-js/stable/string/virtual/at":["es.string.at-alternative"],"core-js/stable/string/virtual/big":["es.string.big"],"core-js/stable/string/virtual/blink":["es.string.blink"],"core-js/stable/string/virtual/bold":["es.string.bold"],"core-js/stable/string/virtual/code-point-at":["es.string.code-point-at"],"core-js/stable/string/virtual/ends-with":["es.string.ends-with"],"core-js/stable/string/virtual/fixed":["es.string.fixed"],"core-js/stable/string/virtual/fontcolor":["es.string.fontcolor"],"core-js/stable/string/virtual/fontsize":["es.string.fontsize"],"core-js/stable/string/virtual/includes":["es.string.includes"],"core-js/stable/string/virtual/is-well-formed":["es.string.is-well-formed"],"core-js/stable/string/virtual/italics":["es.string.italics"],"core-js/stable/string/virtual/iterator":["es.object.to-string","es.string.iterator"],"core-js/stable/string/virtual/link":["es.string.link"],"core-js/stable/string/virtual/match-all":["es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/string/virtual/pad-end":["es.string.pad-end"],"core-js/stable/string/virtual/pad-start":["es.string.pad-start"],"core-js/stable/string/virtual/repeat":["es.string.repeat"],"core-js/stable/string/virtual/replace-all":["es.regexp.exec","es.string.replace","es.string.replace-all"],"core-js/stable/string/virtual/small":["es.string.small"],"core-js/stable/string/virtual/starts-with":["es.string.starts-with"],"core-js/stable/string/virtual/strike":["es.string.strike"],"core-js/stable/string/virtual/sub":["es.string.sub"],"core-js/stable/string/virtual/substr":["es.string.substr"],"core-js/stable/string/virtual/sup":["es.string.sup"],"core-js/stable/string/virtual/to-well-formed":["es.string.to-well-formed"],"core-js/stable/string/virtual/trim":["es.string.trim"],"core-js/stable/string/virtual/trim-end":["es.string.trim-end"],"core-js/stable/string/virtual/trim-left":["es.string.trim-start"],"core-js/stable/string/virtual/trim-right":["es.string.trim-end"],"core-js/stable/string/virtual/trim-start":["es.string.trim-start"],"core-js/stable/structured-clone":["es.error.to-string","es.array.iterator","es.map","es.object.keys","es.object.to-string","es.set","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"core-js/stable/symbol":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag","web.dom-collections.iterator"],"core-js/stable/symbol/async-iterator":["es.symbol.async-iterator"],"core-js/stable/symbol/description":["es.symbol.description"],"core-js/stable/symbol/for":["es.symbol"],"core-js/stable/symbol/has-instance":["es.symbol.has-instance","es.function.has-instance"],"core-js/stable/symbol/is-concat-spreadable":["es.symbol.is-concat-spreadable","es.array.concat"],"core-js/stable/symbol/iterator":["es.symbol.iterator","es.array.iterator","es.object.to-string","es.string.iterator","web.dom-collections.iterator"],"core-js/stable/symbol/key-for":["es.symbol"],"core-js/stable/symbol/match":["es.symbol.match","es.regexp.exec","es.string.match"],"core-js/stable/symbol/match-all":["es.symbol.match-all","es.object.to-string","es.regexp.exec","es.string.match-all"],"core-js/stable/symbol/replace":["es.symbol.replace","es.regexp.exec","es.string.replace"],"core-js/stable/symbol/search":["es.symbol.search","es.regexp.exec","es.string.search"],"core-js/stable/symbol/species":["es.symbol.species"],"core-js/stable/symbol/split":["es.symbol.split","es.regexp.exec","es.string.split"],"core-js/stable/symbol/to-primitive":["es.symbol.to-primitive","es.date.to-primitive"],"core-js/stable/symbol/to-string-tag":["es.symbol.to-string-tag","es.json.to-string-tag","es.math.to-string-tag","es.object.to-string","es.reflect.to-string-tag"],"core-js/stable/symbol/unscopables":["es.symbol.unscopables"],"core-js/stable/typed-array":["es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/at":["es.typed-array.at"],"core-js/stable/typed-array/copy-within":["es.typed-array.copy-within"],"core-js/stable/typed-array/entries":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/every":["es.typed-array.every"],"core-js/stable/typed-array/fill":["es.typed-array.fill"],"core-js/stable/typed-array/filter":["es.typed-array.filter"],"core-js/stable/typed-array/find":["es.typed-array.find"],"core-js/stable/typed-array/find-index":["es.typed-array.find-index"],"core-js/stable/typed-array/find-last":["es.typed-array.find-last"],"core-js/stable/typed-array/find-last-index":["es.typed-array.find-last-index"],"core-js/stable/typed-array/float32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/float64-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.float64-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/for-each":["es.typed-array.for-each"],"core-js/stable/typed-array/from":["es.typed-array.from"],"core-js/stable/typed-array/includes":["es.typed-array.includes"],"core-js/stable/typed-array/index-of":["es.typed-array.index-of"],"core-js/stable/typed-array/int16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/int32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/int8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.int8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/iterator":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/join":["es.typed-array.join"],"core-js/stable/typed-array/keys":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/last-index-of":["es.typed-array.last-index-of"],"core-js/stable/typed-array/map":["es.typed-array.map"],"core-js/stable/typed-array/methods":["es.object.to-string","es.string.iterator","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/of":["es.typed-array.of"],"core-js/stable/typed-array/reduce":["es.typed-array.reduce"],"core-js/stable/typed-array/reduce-right":["es.typed-array.reduce-right"],"core-js/stable/typed-array/reverse":["es.typed-array.reverse"],"core-js/stable/typed-array/set":["es.typed-array.set"],"core-js/stable/typed-array/slice":["es.typed-array.slice"],"core-js/stable/typed-array/some":["es.typed-array.some"],"core-js/stable/typed-array/sort":["es.typed-array.sort"],"core-js/stable/typed-array/subarray":["es.typed-array.subarray"],"core-js/stable/typed-array/to-locale-string":["es.typed-array.to-locale-string"],"core-js/stable/typed-array/to-reversed":["es.typed-array.to-reversed"],"core-js/stable/typed-array/to-sorted":["es.typed-array.sort","es.typed-array.to-sorted"],"core-js/stable/typed-array/to-string":["es.typed-array.to-string"],"core-js/stable/typed-array/uint16-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint16-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/uint32-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/uint8-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/uint8-clamped-array":["es.array-buffer.constructor","es.array-buffer.slice","es.object.to-string","es.string.iterator","es.typed-array.uint8-clamped-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with"],"core-js/stable/typed-array/values":["es.object.to-string","es.typed-array.iterator"],"core-js/stable/typed-array/with":["es.typed-array.with"],"core-js/stable/unescape":["es.unescape"],"core-js/stable/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stable/url-search-params":["web.dom-collections.iterator","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stable/url/can-parse":["web.url","web.url.can-parse"],"core-js/stable/url/to-json":["web.url.to-json"],"core-js/stable/weak-map":["es.array.iterator","es.object.to-string","es.weak-map","web.dom-collections.iterator"],"core-js/stable/weak-set":["es.array.iterator","es.object.to-string","es.weak-set","web.dom-collections.iterator"],"core-js/stage":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stage/0":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/stage/1":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of"],"core-js/stage/2":["es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.data-view.get-float16","esnext.data-view.set-float16","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.emplace","esnext.map.group-by","esnext.math.f16round","esnext.object.has-own","esnext.object.group-by","esnext.promise.all-settled","esnext.promise.any","esnext.promise.with-resolvers","esnext.regexp.escape","esnext.set.difference.v2","esnext.set.difference","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.emplace"],"core-js/stage/3":["es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.data-view.get-float16","esnext.data-view.set-float16","esnext.disposable-stack.constructor","esnext.function.metadata","esnext.global-this","esnext.iterator.constructor","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.group-by","esnext.math.f16round","esnext.object.has-own","esnext.object.group-by","esnext.promise.all-settled","esnext.promise.any","esnext.promise.with-resolvers","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.metadata","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with"],"core-js/stage/4":["es.string.at-alternative","esnext.aggregate-error","esnext.array.at","esnext.array.find-last","esnext.array.find-last-index","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.global-this","esnext.map.group-by","esnext.object.has-own","esnext.object.group-by","esnext.promise.all-settled","esnext.promise.any","esnext.promise.with-resolvers","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.typed-array.at","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.with"],"core-js/stage/pre":["es.map","es.string.at-alternative","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/web":["web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/web/dom-collections":["web.dom-collections.for-each","web.dom-collections.iterator"],"core-js/web/dom-exception":["es.error.to-string","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag"],"core-js/web/immediate":["web.immediate"],"core-js/web/queue-microtask":["web.queue-microtask"],"core-js/web/structured-clone":["es.array.iterator","es.map","es.object.to-string","es.set","web.structured-clone"],"core-js/web/timers":["web.timers"],"core-js/web/url":["web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"],"core-js/web/url-search-params":["web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"]}'); /***/ }), -/***/ 375: +/***/ 87734: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"3.0":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.array.last-index","esnext.array.last-item","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.dispose","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],"3.1":["es.string.match-all","es.symbol.match-all","esnext.symbol.replace-all"],"3.2":["es.promise.all-settled","esnext.array.is-template-object","esnext.map.update-or-insert","esnext.symbol.async-dispose"],"3.3":["es.global-this","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.upsert","esnext.weak-map.upsert"],"3.4":["es.json.stringify"],"3.5":["esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values"],"3.6":["es.regexp.sticky","es.regexp.test"],"3.7":["es.aggregate-error","es.promise.any","es.reflect.to-string-tag","es.string.replace-all","esnext.map.emplace","esnext.weak-map.emplace"],"3.8":["esnext.array.at","esnext.array.filter-out","esnext.array.unique-by","esnext.bigint.range","esnext.number.range","esnext.typed-array.at","esnext.typed-array.filter-out"],"3.9":["esnext.array.find-last","esnext.array.find-last-index","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by"],"3.11":["esnext.object.has-own"],"3.12":["esnext.symbol.matcher","esnext.symbol.metadata"],"3.15":["es.date.get-year","es.date.set-year","es.date.to-gmt-string","es.escape","es.regexp.dot-all","es.string.substr","es.unescape"],"3.16":["esnext.array.filter-reject","esnext.array.group-by","esnext.typed-array.filter-reject","esnext.typed-array.group-by"],"3.17":["es.array.at","es.object.has-own","es.string.at-alternative","es.typed-array.at"],"3.18":["esnext.array.from-async","esnext.typed-array.from-async"],"3.20":["es.error.cause","es.error.to-string","es.aggregate-error.cause","es.number.to-exponential","esnext.array.group-by-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.un-this","esnext.iterator.to-async","esnext.string.cooked","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"3.21":["web.atob","web.btoa"],"3.23":["es.array.find-last","es.array.find-last-index","es.array.push","es.array.unshift","es.typed-array.find-last","es.typed-array.find-last-index","esnext.array.group","esnext.array.group-to-map","esnext.symbol.metadata-key"],"3.24":["esnext.async-iterator.indexed","esnext.iterator.indexed"],"3.25":["es.object.proto"],"3.26":["esnext.string.is-well-formed","esnext.string.to-well-formed","web.self"],"3.27":["esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.disposable-stack.constructor","esnext.iterator.dispose","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","esnext.string.dedent"],"3.28":["es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.with","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.function.demethodize","esnext.iterator.range","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.symbol.is-registered","esnext.symbol.is-well-known"],"3.29":["web.url-search-params.size"],"3.30":["web.url.can-parse"],"3.31":["es.string.is-well-formed","es.string.to-well-formed","esnext.function.metadata","esnext.object.group-by","esnext.promise.with-resolvers","esnext.symbol.is-registered-symbol","esnext.symbol.is-well-known-symbol","web.url-search-params.delete","web.url-search-params.has"]}'); +module.exports = JSON.parse('{"3.0":["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.now","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.function.bind","es.function.has-instance","es.function.name","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.regexp.constructor","es.regexp.exec","es.regexp.flags","es.regexp.to-string","es.set","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.iterator","es.string.match","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.search","es.string.split","es.string.starts-with","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-string","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.array.last-index","esnext.array.last-item","esnext.composite-key","esnext.composite-symbol","esnext.global-this","esnext.map.delete-all","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection","esnext.set.is-disjoint-from","esnext.set.is-subset-of","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference","esnext.set.union","esnext.string.at","esnext.string.code-points","esnext.string.match-all","esnext.string.replace-all","esnext.symbol.dispose","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.dom-collections.for-each","web.dom-collections.iterator","web.immediate","web.queue-microtask","web.timers","web.url","web.url.to-json","web.url-search-params"],"3.1":["es.string.match-all","es.symbol.match-all","esnext.symbol.replace-all"],"3.2":["es.promise.all-settled","esnext.array.is-template-object","esnext.map.update-or-insert","esnext.symbol.async-dispose"],"3.3":["es.global-this","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.map","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.map.upsert","esnext.weak-map.upsert"],"3.4":["es.json.stringify"],"3.5":["esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values"],"3.6":["es.regexp.sticky","es.regexp.test"],"3.7":["es.aggregate-error","es.promise.any","es.reflect.to-string-tag","es.string.replace-all","esnext.map.emplace","esnext.weak-map.emplace"],"3.8":["esnext.array.at","esnext.array.filter-out","esnext.array.unique-by","esnext.bigint.range","esnext.number.range","esnext.typed-array.at","esnext.typed-array.filter-out"],"3.9":["esnext.array.find-last","esnext.array.find-last-index","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.unique-by"],"3.11":["esnext.object.has-own"],"3.12":["esnext.symbol.matcher","esnext.symbol.metadata"],"3.15":["es.date.get-year","es.date.set-year","es.date.to-gmt-string","es.escape","es.regexp.dot-all","es.string.substr","es.unescape"],"3.16":["esnext.array.filter-reject","esnext.array.group-by","esnext.typed-array.filter-reject","esnext.typed-array.group-by"],"3.17":["es.array.at","es.object.has-own","es.string.at-alternative","es.typed-array.at"],"3.18":["esnext.array.from-async","esnext.typed-array.from-async"],"3.20":["es.error.cause","es.error.to-string","es.aggregate-error.cause","es.number.to-exponential","esnext.array.group-by-to-map","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.with","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.un-this","esnext.iterator.to-async","esnext.string.cooked","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.with","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.structured-clone"],"3.21":["web.atob","web.btoa"],"3.23":["es.array.find-last","es.array.find-last-index","es.array.push","es.array.unshift","es.typed-array.find-last","es.typed-array.find-last-index","esnext.array.group","esnext.array.group-to-map","esnext.symbol.metadata-key"],"3.24":["esnext.async-iterator.indexed","esnext.iterator.indexed"],"3.25":["es.object.proto"],"3.26":["esnext.string.is-well-formed","esnext.string.to-well-formed","web.self"],"3.27":["esnext.suppressed-error.constructor","esnext.async-disposable-stack.constructor","esnext.async-iterator.async-dispose","esnext.disposable-stack.constructor","esnext.iterator.dispose","esnext.set.difference.v2","esnext.set.intersection.v2","esnext.set.is-disjoint-from.v2","esnext.set.is-subset-of.v2","esnext.set.is-superset-of.v2","esnext.set.symmetric-difference.v2","esnext.set.union.v2","esnext.string.dedent"],"3.28":["es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.with","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.function.demethodize","esnext.iterator.range","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.symbol.is-registered","esnext.symbol.is-well-known"],"3.29":["web.url-search-params.size"],"3.30":["web.url.can-parse"],"3.31":["es.string.is-well-formed","es.string.to-well-formed","esnext.function.metadata","esnext.object.group-by","esnext.promise.with-resolvers","esnext.symbol.is-registered-symbol","esnext.symbol.is-well-known-symbol","web.url-search-params.delete","web.url-search-params.has"],"3.32":["esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.math.f16round"],"3.33":["esnext.regexp.escape"],"3.34":["es.map.group-by","es.object.group-by","es.promise.with-resolvers","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex"]}'); /***/ }), -/***/ 46038: +/***/ 68806: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"]'); +module.exports = JSON.parse('["es.symbol","es.symbol.description","es.symbol.async-iterator","es.symbol.has-instance","es.symbol.is-concat-spreadable","es.symbol.iterator","es.symbol.match","es.symbol.match-all","es.symbol.replace","es.symbol.search","es.symbol.species","es.symbol.split","es.symbol.to-primitive","es.symbol.to-string-tag","es.symbol.unscopables","es.error.cause","es.error.to-string","es.aggregate-error","es.aggregate-error.cause","es.array.at","es.array.concat","es.array.copy-within","es.array.every","es.array.fill","es.array.filter","es.array.find","es.array.find-index","es.array.find-last","es.array.find-last-index","es.array.flat","es.array.flat-map","es.array.for-each","es.array.from","es.array.includes","es.array.index-of","es.array.is-array","es.array.iterator","es.array.join","es.array.last-index-of","es.array.map","es.array.of","es.array.push","es.array.reduce","es.array.reduce-right","es.array.reverse","es.array.slice","es.array.some","es.array.sort","es.array.species","es.array.splice","es.array.to-reversed","es.array.to-sorted","es.array.to-spliced","es.array.unscopables.flat","es.array.unscopables.flat-map","es.array.unshift","es.array.with","es.array-buffer.constructor","es.array-buffer.is-view","es.array-buffer.slice","es.data-view","es.date.get-year","es.date.now","es.date.set-year","es.date.to-gmt-string","es.date.to-iso-string","es.date.to-json","es.date.to-primitive","es.date.to-string","es.escape","es.function.bind","es.function.has-instance","es.function.name","es.global-this","es.json.stringify","es.json.to-string-tag","es.map","es.map.group-by","es.math.acosh","es.math.asinh","es.math.atanh","es.math.cbrt","es.math.clz32","es.math.cosh","es.math.expm1","es.math.fround","es.math.hypot","es.math.imul","es.math.log10","es.math.log1p","es.math.log2","es.math.sign","es.math.sinh","es.math.tanh","es.math.to-string-tag","es.math.trunc","es.number.constructor","es.number.epsilon","es.number.is-finite","es.number.is-integer","es.number.is-nan","es.number.is-safe-integer","es.number.max-safe-integer","es.number.min-safe-integer","es.number.parse-float","es.number.parse-int","es.number.to-exponential","es.number.to-fixed","es.number.to-precision","es.object.assign","es.object.create","es.object.define-getter","es.object.define-properties","es.object.define-property","es.object.define-setter","es.object.entries","es.object.freeze","es.object.from-entries","es.object.get-own-property-descriptor","es.object.get-own-property-descriptors","es.object.get-own-property-names","es.object.get-prototype-of","es.object.group-by","es.object.has-own","es.object.is","es.object.is-extensible","es.object.is-frozen","es.object.is-sealed","es.object.keys","es.object.lookup-getter","es.object.lookup-setter","es.object.prevent-extensions","es.object.proto","es.object.seal","es.object.set-prototype-of","es.object.to-string","es.object.values","es.parse-float","es.parse-int","es.promise","es.promise.all-settled","es.promise.any","es.promise.finally","es.promise.with-resolvers","es.reflect.apply","es.reflect.construct","es.reflect.define-property","es.reflect.delete-property","es.reflect.get","es.reflect.get-own-property-descriptor","es.reflect.get-prototype-of","es.reflect.has","es.reflect.is-extensible","es.reflect.own-keys","es.reflect.prevent-extensions","es.reflect.set","es.reflect.set-prototype-of","es.reflect.to-string-tag","es.regexp.constructor","es.regexp.dot-all","es.regexp.exec","es.regexp.flags","es.regexp.sticky","es.regexp.test","es.regexp.to-string","es.set","es.string.at-alternative","es.string.code-point-at","es.string.ends-with","es.string.from-code-point","es.string.includes","es.string.is-well-formed","es.string.iterator","es.string.match","es.string.match-all","es.string.pad-end","es.string.pad-start","es.string.raw","es.string.repeat","es.string.replace","es.string.replace-all","es.string.search","es.string.split","es.string.starts-with","es.string.substr","es.string.to-well-formed","es.string.trim","es.string.trim-end","es.string.trim-start","es.string.anchor","es.string.big","es.string.blink","es.string.bold","es.string.fixed","es.string.fontcolor","es.string.fontsize","es.string.italics","es.string.link","es.string.small","es.string.strike","es.string.sub","es.string.sup","es.typed-array.float32-array","es.typed-array.float64-array","es.typed-array.int8-array","es.typed-array.int16-array","es.typed-array.int32-array","es.typed-array.uint8-array","es.typed-array.uint8-clamped-array","es.typed-array.uint16-array","es.typed-array.uint32-array","es.typed-array.at","es.typed-array.copy-within","es.typed-array.every","es.typed-array.fill","es.typed-array.filter","es.typed-array.find","es.typed-array.find-index","es.typed-array.find-last","es.typed-array.find-last-index","es.typed-array.for-each","es.typed-array.from","es.typed-array.includes","es.typed-array.index-of","es.typed-array.iterator","es.typed-array.join","es.typed-array.last-index-of","es.typed-array.map","es.typed-array.of","es.typed-array.reduce","es.typed-array.reduce-right","es.typed-array.reverse","es.typed-array.set","es.typed-array.slice","es.typed-array.some","es.typed-array.sort","es.typed-array.subarray","es.typed-array.to-locale-string","es.typed-array.to-reversed","es.typed-array.to-sorted","es.typed-array.to-string","es.typed-array.with","es.unescape","es.weak-map","es.weak-set","esnext.aggregate-error","esnext.suppressed-error.constructor","esnext.array.from-async","esnext.array.at","esnext.array.filter-out","esnext.array.filter-reject","esnext.array.find-last","esnext.array.find-last-index","esnext.array.group","esnext.array.group-by","esnext.array.group-by-to-map","esnext.array.group-to-map","esnext.array.is-template-object","esnext.array.last-index","esnext.array.last-item","esnext.array.to-reversed","esnext.array.to-sorted","esnext.array.to-spliced","esnext.array.unique-by","esnext.array.with","esnext.array-buffer.detached","esnext.array-buffer.transfer","esnext.array-buffer.transfer-to-fixed-length","esnext.async-disposable-stack.constructor","esnext.async-iterator.constructor","esnext.async-iterator.as-indexed-pairs","esnext.async-iterator.async-dispose","esnext.async-iterator.drop","esnext.async-iterator.every","esnext.async-iterator.filter","esnext.async-iterator.find","esnext.async-iterator.flat-map","esnext.async-iterator.for-each","esnext.async-iterator.from","esnext.async-iterator.indexed","esnext.async-iterator.map","esnext.async-iterator.reduce","esnext.async-iterator.some","esnext.async-iterator.take","esnext.async-iterator.to-array","esnext.bigint.range","esnext.composite-key","esnext.composite-symbol","esnext.data-view.get-float16","esnext.data-view.get-uint8-clamped","esnext.data-view.set-float16","esnext.data-view.set-uint8-clamped","esnext.disposable-stack.constructor","esnext.function.demethodize","esnext.function.is-callable","esnext.function.is-constructor","esnext.function.metadata","esnext.function.un-this","esnext.global-this","esnext.iterator.constructor","esnext.iterator.as-indexed-pairs","esnext.iterator.dispose","esnext.iterator.drop","esnext.iterator.every","esnext.iterator.filter","esnext.iterator.find","esnext.iterator.flat-map","esnext.iterator.for-each","esnext.iterator.from","esnext.iterator.indexed","esnext.iterator.map","esnext.iterator.range","esnext.iterator.reduce","esnext.iterator.some","esnext.iterator.take","esnext.iterator.to-array","esnext.iterator.to-async","esnext.json.is-raw-json","esnext.json.parse","esnext.json.raw-json","esnext.map.delete-all","esnext.map.emplace","esnext.map.every","esnext.map.filter","esnext.map.find","esnext.map.find-key","esnext.map.from","esnext.map.group-by","esnext.map.includes","esnext.map.key-by","esnext.map.key-of","esnext.map.map-keys","esnext.map.map-values","esnext.map.merge","esnext.map.of","esnext.map.reduce","esnext.map.some","esnext.map.update","esnext.map.update-or-insert","esnext.map.upsert","esnext.math.clamp","esnext.math.deg-per-rad","esnext.math.degrees","esnext.math.fscale","esnext.math.f16round","esnext.math.iaddh","esnext.math.imulh","esnext.math.isubh","esnext.math.rad-per-deg","esnext.math.radians","esnext.math.scale","esnext.math.seeded-prng","esnext.math.signbit","esnext.math.umulh","esnext.number.from-string","esnext.number.range","esnext.object.has-own","esnext.object.iterate-entries","esnext.object.iterate-keys","esnext.object.iterate-values","esnext.object.group-by","esnext.observable","esnext.promise.all-settled","esnext.promise.any","esnext.promise.try","esnext.promise.with-resolvers","esnext.reflect.define-metadata","esnext.reflect.delete-metadata","esnext.reflect.get-metadata","esnext.reflect.get-metadata-keys","esnext.reflect.get-own-metadata","esnext.reflect.get-own-metadata-keys","esnext.reflect.has-metadata","esnext.reflect.has-own-metadata","esnext.reflect.metadata","esnext.regexp.escape","esnext.set.add-all","esnext.set.delete-all","esnext.set.difference.v2","esnext.set.difference","esnext.set.every","esnext.set.filter","esnext.set.find","esnext.set.from","esnext.set.intersection.v2","esnext.set.intersection","esnext.set.is-disjoint-from.v2","esnext.set.is-disjoint-from","esnext.set.is-subset-of.v2","esnext.set.is-subset-of","esnext.set.is-superset-of.v2","esnext.set.is-superset-of","esnext.set.join","esnext.set.map","esnext.set.of","esnext.set.reduce","esnext.set.some","esnext.set.symmetric-difference.v2","esnext.set.symmetric-difference","esnext.set.union.v2","esnext.set.union","esnext.string.at","esnext.string.cooked","esnext.string.code-points","esnext.string.dedent","esnext.string.is-well-formed","esnext.string.match-all","esnext.string.replace-all","esnext.string.to-well-formed","esnext.symbol.async-dispose","esnext.symbol.dispose","esnext.symbol.is-registered-symbol","esnext.symbol.is-registered","esnext.symbol.is-well-known-symbol","esnext.symbol.is-well-known","esnext.symbol.matcher","esnext.symbol.metadata","esnext.symbol.metadata-key","esnext.symbol.observable","esnext.symbol.pattern-match","esnext.symbol.replace-all","esnext.typed-array.from-async","esnext.typed-array.at","esnext.typed-array.filter-out","esnext.typed-array.filter-reject","esnext.typed-array.find-last","esnext.typed-array.find-last-index","esnext.typed-array.group-by","esnext.typed-array.to-reversed","esnext.typed-array.to-sorted","esnext.typed-array.to-spliced","esnext.typed-array.unique-by","esnext.typed-array.with","esnext.uint8-array.from-base64","esnext.uint8-array.from-hex","esnext.uint8-array.to-base64","esnext.uint8-array.to-hex","esnext.weak-map.delete-all","esnext.weak-map.from","esnext.weak-map.of","esnext.weak-map.emplace","esnext.weak-map.upsert","esnext.weak-set.add-all","esnext.weak-set.delete-all","esnext.weak-set.from","esnext.weak-set.of","web.atob","web.btoa","web.dom-collections.for-each","web.dom-collections.iterator","web.dom-exception.constructor","web.dom-exception.stack","web.dom-exception.to-string-tag","web.immediate","web.queue-microtask","web.self","web.structured-clone","web.timers","web.url","web.url.can-parse","web.url.to-json","web.url-search-params","web.url-search-params.delete","web.url-search-params.has","web.url-search-params.size"]'); /***/ }), @@ -154503,19 +96849,19 @@ module.exports = JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15","> /***/ }), -/***/ 68074: +/***/ 29750: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"14.20.0","date":"2022-07-07","lts":"Fermium","security":true},{"name":"nodejs","version":"14.21.0","date":"2022-11-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.16.0","date":"2022-07-07","lts":"Gallium","security":true},{"name":"nodejs","version":"16.17.0","date":"2022-08-16","lts":"Gallium","security":false},{"name":"nodejs","version":"16.18.0","date":"2022-10-12","lts":"Gallium","security":false},{"name":"nodejs","version":"16.19.0","date":"2022-12-13","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false},{"name":"nodejs","version":"18.3.0","date":"2022-06-02","lts":false,"security":false},{"name":"nodejs","version":"18.4.0","date":"2022-06-16","lts":false,"security":false},{"name":"nodejs","version":"18.5.0","date":"2022-07-06","lts":false,"security":true},{"name":"nodejs","version":"18.6.0","date":"2022-07-13","lts":false,"security":false},{"name":"nodejs","version":"18.7.0","date":"2022-07-26","lts":false,"security":false},{"name":"nodejs","version":"18.8.0","date":"2022-08-24","lts":false,"security":false},{"name":"nodejs","version":"18.9.0","date":"2022-09-07","lts":false,"security":false},{"name":"nodejs","version":"18.10.0","date":"2022-09-28","lts":false,"security":false},{"name":"nodejs","version":"18.11.0","date":"2022-10-13","lts":false,"security":false},{"name":"nodejs","version":"18.12.0","date":"2022-10-25","lts":"Hydrogen","security":false},{"name":"nodejs","version":"18.13.0","date":"2023-01-05","lts":"Hydrogen","security":false},{"name":"nodejs","version":"19.0.0","date":"2022-10-17","lts":false,"security":false},{"name":"nodejs","version":"19.1.0","date":"2022-11-14","lts":false,"security":false},{"name":"nodejs","version":"19.2.0","date":"2022-11-29","lts":false,"security":false},{"name":"nodejs","version":"19.3.0","date":"2022-12-14","lts":false,"security":false},{"name":"nodejs","version":"19.4.0","date":"2023-01-05","lts":false,"security":false},{"name":"nodejs","version":"19.5.0","date":"2023-01-24","lts":false,"security":false}]'); +module.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false,"v8":"2.3.8.0"},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false,"v8":"2.5.1.0"},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false,"v8":"3.1.2.0"},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false,"v8":"3.1.8.25"},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false,"v8":"3.6.6.6"},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false,"v8":"3.8.6.0"},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false,"v8":"3.11.10.10"},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false,"v8":"3.11.10.15"},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false,"v8":"3.14.5.8"},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false,"v8":"3.17.13.0"},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false,"v8":"3.28.73.0"},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false,"v8":"4.5.103.30"},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false,"v8":"4.5.103.33"},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false,"v8":"4.5.103.35"},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false,"v8":"4.5.103.35"},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false,"v8":"4.5.103.35"},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false,"v8":"4.5.103.37"},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true,"v8":"4.5.103.37"},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false,"v8":"4.5.103.43"},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false,"v8":"4.5.103.45"},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true,"v8":"4.5.103.53"},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false,"v8":"4.6.85.28"},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false,"v8":"4.6.85.31"},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false,"v8":"4.6.85.32"},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false,"v8":"5.0.71.35"},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false,"v8":"5.0.71.35"},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false,"v8":"5.0.71.47"},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false,"v8":"5.0.71.52"},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false,"v8":"5.0.71.60"},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false,"v8":"5.1.281.81"},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false,"v8":"5.1.281.83"},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true,"v8":"5.1.281.83"},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false,"v8":"5.1.281.84"},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false,"v8":"5.1.281.84"},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false,"v8":"5.1.281.93"},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false,"v8":"5.1.281.102"},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false,"v8":"5.1.281.108"},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false,"v8":"5.1.281.111"},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true,"v8":"5.1.281.111"},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true,"v8":"5.1.281.111"},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false,"v8":"5.1.281.111"},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true,"v8":"5.1.281.111"},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false,"v8":"5.4.500.36"},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false,"v8":"5.4.500.36"},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false,"v8":"5.4.500.43"},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false,"v8":"5.4.500.45"},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false,"v8":"5.4.500.45"},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false,"v8":"5.4.500.48"},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false,"v8":"5.5.372.40"},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false,"v8":"5.5.372.41"},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false,"v8":"5.5.372.43"},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false,"v8":"5.5.372.43"},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false,"v8":"5.5.372.43"},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false,"v8":"5.8.283.41"},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false,"v8":"5.8.283.41"},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false,"v8":"5.8.283.41"},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false,"v8":"6.0.286.52"},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false,"v8":"6.0.286.52"},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false,"v8":"6.0.287.53"},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false,"v8":"6.0.287.53"},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false,"v8":"6.1.534.42"},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false,"v8":"6.1.534.42"},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false,"v8":"6.1.534.46"},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false,"v8":"6.2.414.50"},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true,"v8":"6.2.414.50"},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false,"v8":"6.2.414.66"},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false,"v8":"6.2.414.72"},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true,"v8":"6.2.414.72"},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false,"v8":"6.2.414.75"},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false,"v8":"6.2.414.77"},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true,"v8":"6.2.414.78"},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false,"v8":"6.2.414.32"},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false,"v8":"6.2.414.32"},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false,"v8":"6.2.414.44"},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true,"v8":"6.2.414.46"},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false,"v8":"6.2.414.46"},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false,"v8":"6.6.346.24"},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false,"v8":"6.6.346.27"},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false,"v8":"6.6.346.32"},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false,"v8":"6.6.346.32"},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false,"v8":"6.7.288.43"},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false,"v8":"6.7.288.46"},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false,"v8":"6.7.288.46"},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false,"v8":"6.7.288.49"},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false,"v8":"6.7.288.49"},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false,"v8":"6.8.275.24"},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false,"v8":"6.8.275.30"},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false,"v8":"6.8.275.32"},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true,"v8":"6.8.275.32"},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false,"v8":"7.0.276.28"},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false,"v8":"7.0.276.32"},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false,"v8":"7.0.276.38"},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false,"v8":"7.4.288.21"},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false,"v8":"7.4.288.21"},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false,"v8":"7.4.288.21"},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false,"v8":"7.4.288.27"},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false,"v8":"7.4.288.27"},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false,"v8":"7.5.288.22"},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false,"v8":"7.5.288.22"},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false,"v8":"7.5.288.22"},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false,"v8":"7.5.288.22"},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false,"v8":"7.6.303.29"},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false,"v8":"7.6.303.29"},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false,"v8":"7.7.299.11"},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false,"v8":"7.7.299.13"},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false,"v8":"7.7.299.13"},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true,"v8":"7.7.299.13"},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true,"v8":"7.7.299.13"},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false,"v8":"7.8.279.23"},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false,"v8":"7.8.279.23"},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true,"v8":"7.8.279.23"},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false,"v8":"7.8.279.23"},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false,"v8":"7.8.279.23"},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true,"v8":"7.8.279.23"},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false,"v8":"7.8.279.23"},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false,"v8":"7.8.279.17"},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false,"v8":"7.8.279.17"},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false,"v8":"7.9.317.23"},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false,"v8":"7.9.317.25"},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false,"v8":"8.1.307.30"},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false,"v8":"8.1.307.31"},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false,"v8":"8.1.307.31"},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false,"v8":"8.1.307.31"},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true,"v8":"8.1.307.31"},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false,"v8":"8.3.110.9"},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true,"v8":"8.4.371.19"},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false,"v8":"8.4.371.23"},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false,"v8":"8.4.371.23"},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false,"v8":"8.4.371.23"},{"name":"nodejs","version":"14.20.0","date":"2022-07-07","lts":"Fermium","security":true,"v8":"8.4.371.23"},{"name":"nodejs","version":"14.21.0","date":"2022-11-01","lts":"Fermium","security":false,"v8":"8.4.371.23"},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false,"v8":"8.6.395.16"},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false,"v8":"8.6.395.17"},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false,"v8":"9.0.257.17"},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false,"v8":"9.0.257.24"},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false,"v8":"9.0.257.25"},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false,"v8":"9.0.257.25"},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false,"v8":"9.1.269.36"},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false,"v8":"9.1.269.38"},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true,"v8":"9.2.230.21"},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false,"v8":"9.2.230.21"},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false,"v8":"9.2.230.21"},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false,"v8":"9.3.345.16"},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false,"v8":"9.3.345.19"},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false,"v8":"9.4.146.19"},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false,"v8":"9.4.146.19"},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false,"v8":"9.4.146.19"},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false,"v8":"9.4.146.24"},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false,"v8":"9.4.146.24"},{"name":"nodejs","version":"16.16.0","date":"2022-07-07","lts":"Gallium","security":true,"v8":"9.4.146.24"},{"name":"nodejs","version":"16.17.0","date":"2022-08-16","lts":"Gallium","security":false,"v8":"9.4.146.26"},{"name":"nodejs","version":"16.18.0","date":"2022-10-12","lts":"Gallium","security":false,"v8":"9.4.146.26"},{"name":"nodejs","version":"16.19.0","date":"2022-12-13","lts":"Gallium","security":false,"v8":"9.4.146.26"},{"name":"nodejs","version":"16.20.0","date":"2023-03-28","lts":"Gallium","security":false,"v8":"9.4.146.26"},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false,"v8":"9.5.172.21"},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false,"v8":"9.5.172.25"},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false,"v8":"9.6.180.14"},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false,"v8":"9.6.180.15"},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false,"v8":"9.6.180.15"},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false,"v8":"9.6.180.15"},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false,"v8":"9.6.180.15"},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false,"v8":"9.6.180.15"},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false,"v8":"9.6.180.15"},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false,"v8":"9.6.180.15"},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false,"v8":"10.1.124.8"},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false,"v8":"10.1.124.8"},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false,"v8":"10.1.124.8"},{"name":"nodejs","version":"18.3.0","date":"2022-06-02","lts":false,"security":false,"v8":"10.2.154.4"},{"name":"nodejs","version":"18.4.0","date":"2022-06-16","lts":false,"security":false,"v8":"10.2.154.4"},{"name":"nodejs","version":"18.5.0","date":"2022-07-06","lts":false,"security":true,"v8":"10.2.154.4"},{"name":"nodejs","version":"18.6.0","date":"2022-07-13","lts":false,"security":false,"v8":"10.2.154.13"},{"name":"nodejs","version":"18.7.0","date":"2022-07-26","lts":false,"security":false,"v8":"10.2.154.13"},{"name":"nodejs","version":"18.8.0","date":"2022-08-24","lts":false,"security":false,"v8":"10.2.154.13"},{"name":"nodejs","version":"18.9.0","date":"2022-09-07","lts":false,"security":false,"v8":"10.2.154.15"},{"name":"nodejs","version":"18.10.0","date":"2022-09-28","lts":false,"security":false,"v8":"10.2.154.15"},{"name":"nodejs","version":"18.11.0","date":"2022-10-13","lts":false,"security":false,"v8":"10.2.154.15"},{"name":"nodejs","version":"18.12.0","date":"2022-10-25","lts":"Hydrogen","security":false,"v8":"10.2.154.15"},{"name":"nodejs","version":"18.13.0","date":"2023-01-05","lts":"Hydrogen","security":false,"v8":"10.2.154.23"},{"name":"nodejs","version":"18.14.0","date":"2023-02-01","lts":"Hydrogen","security":false,"v8":"10.2.154.23"},{"name":"nodejs","version":"18.15.0","date":"2023-03-05","lts":"Hydrogen","security":false,"v8":"10.2.154.26"},{"name":"nodejs","version":"18.16.0","date":"2023-04-12","lts":"Hydrogen","security":false,"v8":"10.2.154.26"},{"name":"nodejs","version":"18.17.0","date":"2023-07-18","lts":"Hydrogen","security":false,"v8":"10.2.154.26"},{"name":"nodejs","version":"18.18.0","date":"2023-09-18","lts":"Hydrogen","security":false,"v8":"10.2.154.26"},{"name":"nodejs","version":"18.19.0","date":"2023-11-29","lts":"Hydrogen","security":false,"v8":"10.2.154.26"},{"name":"nodejs","version":"19.0.0","date":"2022-10-17","lts":false,"security":false,"v8":"10.7.193.13"},{"name":"nodejs","version":"19.1.0","date":"2022-11-14","lts":false,"security":false,"v8":"10.7.193.20"},{"name":"nodejs","version":"19.2.0","date":"2022-11-29","lts":false,"security":false,"v8":"10.8.168.20"},{"name":"nodejs","version":"19.3.0","date":"2022-12-14","lts":false,"security":false,"v8":"10.8.168.21"},{"name":"nodejs","version":"19.4.0","date":"2023-01-05","lts":false,"security":false,"v8":"10.8.168.25"},{"name":"nodejs","version":"19.5.0","date":"2023-01-24","lts":false,"security":false,"v8":"10.8.168.25"},{"name":"nodejs","version":"19.6.0","date":"2023-02-01","lts":false,"security":false,"v8":"10.8.168.25"},{"name":"nodejs","version":"19.7.0","date":"2023-02-21","lts":false,"security":false,"v8":"10.8.168.25"},{"name":"nodejs","version":"19.8.0","date":"2023-03-14","lts":false,"security":false,"v8":"10.8.168.25"},{"name":"nodejs","version":"19.9.0","date":"2023-04-10","lts":false,"security":false,"v8":"10.8.168.25"},{"name":"nodejs","version":"20.0.0","date":"2023-04-17","lts":false,"security":false,"v8":"11.3.244.4"},{"name":"nodejs","version":"20.1.0","date":"2023-05-03","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.2.0","date":"2023-05-16","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.3.0","date":"2023-06-08","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.4.0","date":"2023-07-04","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.5.0","date":"2023-07-19","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.6.0","date":"2023-08-23","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.7.0","date":"2023-09-18","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.8.0","date":"2023-09-28","lts":false,"security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.9.0","date":"2023-10-24","lts":"Iron","security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"20.10.0","date":"2023-11-22","lts":"Iron","security":false,"v8":"11.3.244.8"},{"name":"nodejs","version":"21.0.0","date":"2023-10-17","lts":false,"security":false,"v8":"11.8.172.13"},{"name":"nodejs","version":"21.1.0","date":"2023-10-24","lts":false,"security":false,"v8":"11.8.172.15"},{"name":"nodejs","version":"21.2.0","date":"2023-11-14","lts":false,"security":false,"v8":"11.8.172.17"},{"name":"nodejs","version":"21.3.0","date":"2023-11-30","lts":false,"security":false,"v8":"11.8.172.17"}]'); /***/ }), -/***/ 31660: +/***/ 37629: /***/ (function(module) { "use strict"; -module.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2023-09-11","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":"Hydrogen"},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":""}}'); +module.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2023-09-11","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":"Hydrogen"},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":"Iron"},"v21":{"start":"2023-10-17","maintenance":"2024-04-01","end":"2024-06-01"},"v22":{"start":"2024-04-23","lts":"2024-10-29","maintenance":"2025-10-21","end":"2027-04-30","codename":""},"v23":{"start":"2024-10-15","maintenance":"2025-04-01","end":"2025-06-01"},"v24":{"start":"2025-04-22","lts":"2025-10-28","maintenance":"2026-10-20","end":"2028-04-30","codename":""}}'); /***/ }), diff --git a/packages/bundler-utils/compiled/babel/index1.js b/packages/bundler-utils/compiled/babel/index1.js index abb259a8d571..5ed0159f1058 100644 --- a/packages/bundler-utils/compiled/babel/index1.js +++ b/packages/bundler-utils/compiled/babel/index1.js @@ -1,7 +1,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -const babel = require("./babel-core"); -const handleMessage = require("./handle-message"); +const babel = require("./babel-core.js"); +const handleMessage = require("./handle-message.js"); const { parentPort } = require("worker_threads"); diff --git a/packages/bundler-utils/package.json b/packages/bundler-utils/package.json index c5e8367b2415..9e6529d11e6b 100644 --- a/packages/bundler-utils/package.json +++ b/packages/bundler-utils/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/bundler-utils", - "version": "4.0.76", + "version": "4.3.34", "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-utils#readme", "bugs": "https://github.com/umijs/umi/issues", "repository": { @@ -21,42 +21,42 @@ }, "dependencies": { "@umijs/utils": "workspace:*", - "esbuild": "0.17.19", + "esbuild": "0.21.4", "regenerate": "^1.4.2", - "regenerate-unicode-properties": "10.1.0", + "regenerate-unicode-properties": "10.1.1", "spdy": "^4.0.2" }, "devDependencies": { - "@babel/code-frame": "7.22.5", - "@babel/core": "7.22.5", - "@babel/generator": "7.22.5", - "@babel/helper-module-imports": "7.22.5", - "@babel/parser": "7.22.5", - "@babel/plugin-proposal-decorators": "7.22.5", - "@babel/plugin-proposal-do-expressions": "7.22.5", - "@babel/plugin-proposal-export-default-from": "7.22.5", - "@babel/plugin-proposal-function-bind": "7.22.5", - "@babel/plugin-proposal-partial-application": "7.22.5", - "@babel/plugin-proposal-pipeline-operator": "7.22.5", - "@babel/plugin-proposal-record-and-tuple": "7.22.5", - "@babel/plugin-transform-class-properties": "7.22.5", - "@babel/plugin-transform-export-namespace-from": "7.22.5", - "@babel/plugin-transform-private-methods": "7.22.5", - "@babel/plugin-transform-private-property-in-object": "7.22.5", - "@babel/plugin-transform-runtime": "7.22.5", - "@babel/preset-env": "7.22.5", - "@babel/preset-react": "7.22.5", - "@babel/preset-typescript": "7.22.5", - "@babel/register": "7.22.5", - "@babel/template": "7.22.5", - "@babel/traverse": "7.22.5", - "@babel/types": "7.22.5", - "@types/babel__code-frame": "7.0.3", - "@types/babel__core": "7.20.1", - "@types/babel__generator": "7.6.4", + "@babel/code-frame": "7.23.5", + "@babel/core": "7.23.6", + "@babel/generator": "7.23.6", + "@babel/helper-module-imports": "7.22.15", + "@babel/parser": "7.23.6", + "@babel/plugin-proposal-decorators": "7.23.6", + "@babel/plugin-proposal-do-expressions": "7.23.3", + "@babel/plugin-proposal-export-default-from": "7.23.3", + "@babel/plugin-proposal-function-bind": "7.23.3", + "@babel/plugin-proposal-partial-application": "7.23.3", + "@babel/plugin-proposal-pipeline-operator": "7.23.3", + "@babel/plugin-proposal-record-and-tuple": "7.23.3", + "@babel/plugin-transform-class-properties": "7.23.3", + "@babel/plugin-transform-export-namespace-from": "7.23.4", + "@babel/plugin-transform-private-methods": "7.23.3", + "@babel/plugin-transform-private-property-in-object": "7.23.4", + "@babel/plugin-transform-runtime": "7.23.6", + "@babel/preset-env": "7.23.6", + "@babel/preset-react": "7.23.3", + "@babel/preset-typescript": "7.23.3", + "@babel/register": "7.22.15", + "@babel/template": "7.22.15", + "@babel/traverse": "7.23.6", + "@babel/types": "7.23.6", + "@types/babel__code-frame": "7.0.6", + "@types/babel__core": "7.20.5", + "@types/babel__generator": "7.6.8", "@types/babel__parser": "7.1.1", - "@types/babel__template": "7.4.1", - "@types/babel__traverse": "7.20.1", + "@types/babel__template": "7.4.4", + "@types/babel__traverse": "7.20.4", "@types/express": "4.17.17", "@types/less": "3.0.3", "@types/spdy": "^3.4.5", diff --git a/packages/bundler-utils/src/index.ts b/packages/bundler-utils/src/index.ts index 9315de0d015a..6dfd9667c9fe 100644 --- a/packages/bundler-utils/src/index.ts +++ b/packages/bundler-utils/src/index.ts @@ -1,7 +1,6 @@ import { importLazy, logger, winPath } from '@umijs/utils'; -import { extname } from 'path'; import { init, parse } from '../compiled/es-module-lexer'; -import { Loader, transformSync } from '../compiled/esbuild'; +import { transformSync } from '../compiled/esbuild'; const babelCodeFrame: typeof import('../compiled/babel/code-frame') = importLazy(require.resolve('../compiled/babel/code-frame')); @@ -17,7 +16,7 @@ export function parseModuleSync(opts: { content: string; path: string }) { if (opts.path.endsWith('.tsx') || opts.path.endsWith('.jsx')) { try { content = transformSync(content, { - loader: extname(opts.path).slice(1) as Loader, + loader: 'tsx', format: 'esm', }).code; } catch (e) { diff --git a/packages/bundler-utils/src/proxy.ts b/packages/bundler-utils/src/proxy.ts index cc6aa612845b..20fe9bb453d9 100644 --- a/packages/bundler-utils/src/proxy.ts +++ b/packages/bundler-utils/src/proxy.ts @@ -1,7 +1,7 @@ -import type { ProxyOptions } from './types'; +import assert from 'assert'; import type { Express } from '../compiled/express'; import { createProxyMiddleware } from '../compiled/http-proxy-middleware'; -import assert from 'assert'; +import type { ProxyOptions } from './types'; export function createProxy( proxy: { [key: string]: ProxyOptions } | ProxyOptions[], @@ -32,8 +32,8 @@ export function createProxy( ...proxy, onProxyReq(proxyReq, req: any, res) { // add origin in request header - if (proxyReq.getHeader('origin')) { - proxyReq.setHeader('origin', new URL(proxy.target!)?.href || ''); + if (proxy.changeOrigin && proxyReq.getHeader('origin')) { + proxyReq.setHeader('origin', new URL(proxy.target!)?.origin || ''); } proxy.onProxyReq?.(proxyReq, req, res, proxy); }, diff --git a/packages/bundler-vite/compiled/@vitejs/plugin-legacy/dist/index.d.ts b/packages/bundler-vite/compiled/@vitejs/plugin-legacy/dist/index.d.ts index edb3ea42d778..9a022d2e7cff 100644 --- a/packages/bundler-vite/compiled/@vitejs/plugin-legacy/dist/index.d.ts +++ b/packages/bundler-vite/compiled/@vitejs/plugin-legacy/dist/index.d.ts @@ -28,6 +28,10 @@ interface Options { * default: false */ externalSystemJS?: boolean; + /** + * default: true + */ + renderModernChunks?: boolean; } declare function viteLegacyPlugin(options?: Options): Plugin[]; diff --git a/packages/bundler-vite/compiled/@vitejs/plugin-legacy/index.js b/packages/bundler-vite/compiled/@vitejs/plugin-legacy/index.js index 35965a8c310a..62e6fbd14e74 100644 --- a/packages/bundler-vite/compiled/@vitejs/plugin-legacy/index.js +++ b/packages/bundler-vite/compiled/@vitejs/plugin-legacy/index.js @@ -1 +1 @@ -(function(){var e={1961:function(e,t){(function(e,s){true?s(t):0})(this,(function(e){"use strict";const t=",".charCodeAt(0);const s=";".charCodeAt(0);const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const n=new Uint8Array(64);const i=new Uint8Array(128);for(let e=0;e>>=1;if(l){n=-2147483648|-n}s[r]+=n;return t}function hasMoreVlq(e,s,r){if(s>=r)return false;return e.charCodeAt(s)!==t}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const r=new Int32Array(5);const n=1024*16;const i=n-36;const a=new Uint8Array(n);const l=a.subarray(0,i);let u=0;let c="";for(let f=0;f0){if(u===n){c+=o.decode(a);u=0}a[u++]=s}if(d.length===0)continue;r[0]=0;for(let e=0;ei){c+=o.decode(l);a.copyWithin(0,i,u);u-=i}if(e>0)a[u++]=t;u=encodeInteger(a,u,r,s,0);if(s.length===1)continue;u=encodeInteger(a,u,r,s,1);u=encodeInteger(a,u,r,s,2);u=encodeInteger(a,u,r,s,3);if(s.length===4)continue;u=encodeInteger(a,u,r,s,4)}}return c+o.decode(a.subarray(0,u))}function encodeInteger(e,t,s,r,i){const o=r[i];let a=o-s[i];s[i]=o;a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5;if(a>0)s|=32;e[t++]=n[s]}while(a>0);return t}e.decode=decode;e.encode=encode;Object.defineProperty(e,"__esModule",{value:true})}))},8769:function(e){function BrowserslistError(e){this.name="BrowserslistError";this.message=e;this.browserslist=true;if(Error.captureStackTrace){Error.captureStackTrace(this,BrowserslistError)}}BrowserslistError.prototype=Error.prototype;e.exports=BrowserslistError},2333:function(e,t,s){var r=s(8074);var n=s(4562).D;var i=s(1660);var o=s(1017);var a=s(9476);var l=s(8769);var u=s(6621);var c=s(8477);var f=365.259641*24*60*60*1e3;var d=37;function isVersionsMatch(e,t){return(e+".").indexOf(t+".")===0}function isEolReleased(e){var t=e.slice(1);return browserslist.nodeVersions.some((function(e){return isVersionsMatch(e,t)}))}function normalize(e){return e.filter((function(e){return typeof e==="string"}))}function normalizeElectron(e){var t=e;if(e.split(".").length===3){t=e.split(".").slice(0,-1).join(".")}return t}function nameMapper(e){return function mapName(t){return e+" "+t}}function getMajor(e){return parseInt(e.split(".")[0])}function getMajorVersions(e,t){if(e.length===0)return[];var s=uniq(e.map(getMajor));var r=s[s.length-t];if(!r){return e}var n=[];for(var i=e.length-1;i>=0;i--){if(r>getMajor(e[i]))break;n.unshift(e[i])}return n}function uniq(e){var t=[];for(var s=0;s"){return function(e){return parseFloat(e)>t}}else if(e===">="){return function(e){return parseFloat(e)>=t}}else if(e==="<"){return function(e){return parseFloat(e)"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,t)>0}}else if(e===">="){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,t)>=0}}else if(e==="<"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(t,e)>0}}else{return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(t,e)>=0}}}function parseSimpleInt(e){return parseInt(e)}function compare(e,t){if(et)return+1;return 0}function compareSemver(e,t){return compare(parseInt(e[0]),parseInt(t[0]))||compare(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||compare(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function semverFilterLoose(e,t){t=t.split(".").map(parseSimpleInt);if(typeof t[1]==="undefined"){t[1]="x"}switch(e){case"<=":return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,t)<=0};case">=":default:return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,t)>=0}}}function compareSemverLoose(e,t){if(e[0]!==t[0]){return e[0]=e}));return s.concat(i.map(nameMapper(n.name)))}),[])}function cloneData(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function mapVersions(e,t){e.versions=e.versions.map((function(e){return t[e]||e}));e.released=e.released.map((function(e){return t[e]||e}));var s={};for(var r in e.releaseDate){s[t[r]||r]=e.releaseDate[r]}e.releaseDate=s;return e}function byName(e,t){e=e.toLowerCase();e=browserslist.aliases[e]||e;if(t.mobileToDesktop&&browserslist.desktopNames[e]){var s=browserslist.data[browserslist.desktopNames[e]];if(e==="android"){return normalizeAndroidData(cloneData(browserslist.data[e]),s)}else{var r=cloneData(s);r.name=e;if(e==="op_mob"){r=mapVersions(r,{"10.0-10.1":"10"})}return r}}return browserslist.data[e]}function normalizeAndroidVersions(e,t){var s=d;var r=t[t.length-1];return e.filter((function(e){return/^(?:[2-4]\.|[34]$)/.test(e)})).concat(t.slice(s-r-1))}function normalizeAndroidData(e,t){e.released=normalizeAndroidVersions(e.released,t.released);e.versions=normalizeAndroidVersions(e.versions,t.versions);return e}function checkName(e,t){var s=byName(e,t);if(!s)throw new l("Unknown browser "+e);return s}function unknownQuery(e){return new l("Unknown browser query `"+e+"`. "+"Maybe you are using old Browserslist or made typo in query.")}function filterAndroid(e,t,s){if(s.mobileToDesktop)return e;var r=browserslist.data.android.released;var n=r[r.length-1];var i=n-d-t;if(i>0){return e.slice(-1)}else{return e.slice(i-1)}}function resolve(e,t){return u(p,e).reduce((function(e,s,r){if(s.not&&r===0){throw new l("Write any browsers query (for instance, `defaults`) "+"before `"+s.query+"`")}var n=p[s.type];var i=n.select.call(browserslist,t,s).map((function(e){var s=e.split(" ");if(s[1]==="0"){return s[0]+" "+byName(s[0],t).versions[0]}else{return e}}));if(s.compose==="and"){if(s.not){return e.filter((function(e){return i.indexOf(e)===-1}))}else{return e.filter((function(e){return i.indexOf(e)!==-1}))}}else{if(s.not){var o={};i.forEach((function(e){o[e]=true}));return e.filter((function(e){return!o[e]}))}return e.concat(i)}}),[])}function prepareOpts(e){if(typeof e==="undefined")e={};if(typeof e.path==="undefined"){e.path=o.resolve?o.resolve("."):"."}return e}function prepareQueries(e,t){if(typeof e==="undefined"||e===null){var s=browserslist.loadConfig(t);if(s){e=s}else{e=browserslist.defaults}}return e}function checkQueries(e){if(!(typeof e==="string"||Array.isArray(e))){throw new l("Browser queries must be an array or string. Got "+typeof e+".")}}var m={};function browserslist(e,t){t=prepareOpts(t);e=prepareQueries(e,t);checkQueries(e);var s={ignoreUnknownVersions:t.ignoreUnknownVersions,dangerousExtend:t.dangerousExtend,mobileToDesktop:t.mobileToDesktop,path:t.path,env:t.env};c.oldDataWarning(browserslist.data);var r=c.getStat(t,browserslist.data);if(r){s.customUsage={};for(var n in r){fillUsage(s.customUsage,n,r[n])}}var i=JSON.stringify([e,s]);if(m[i])return m[i];var o=uniq(resolve(e,s)).sort((function(e,t){e=e.split(" ");t=t.split(" ");if(e[0]===t[0]){var s=e[1].split("-")[0];var r=t[1].split("-")[0];return compareSemver(r.split("."),s.split("."))}else{return compare(e[0],t[0])}}));if(!c.env.BROWSERSLIST_DISABLE_CACHE){m[i]=o}return o}browserslist.parse=function(e,t){t=prepareOpts(t);e=prepareQueries(e,t);checkQueries(e);return u(p,e)};browserslist.cache={};browserslist.data={};browserslist.usage={global:{},custom:null};browserslist.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];browserslist.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};browserslist.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",op_mob:"opera",android:"chrome"};browserslist.versionAliases={};browserslist.clearCaches=c.clearCaches;browserslist.parseConfig=c.parseConfig;browserslist.readConfig=c.readConfig;browserslist.findConfig=c.findConfig;browserslist.loadConfig=c.loadConfig;browserslist.coverage=function(e,t){var s;if(typeof t==="undefined"){s=browserslist.usage.global}else if(t==="my stats"){var r={};r.path=o.resolve?o.resolve("."):".";var n=c.getStat(r);if(!n){throw new l("Custom usage statistics was not provided")}s={};for(var i in n){fillUsage(s,i,n[i])}}else if(typeof t==="string"){if(t.length>2){t=t.toLowerCase()}else{t=t.toUpperCase()}c.loadCountry(browserslist.usage,t,browserslist.data);s=browserslist.usage[t]}else{if("dataByBrowser"in t){t=t.dataByBrowser}s={};for(var a in t){for(var u in t[a]){s[a+" "+u]=t[a][u]}}}return e.reduce((function(e,t){var r=s[t];if(r===undefined){r=s[t.replace(/ \S+$/," 0")]}return e+(r||0)}),0)};function nodeQuery(e,t){var s=browserslist.nodeVersions.filter((function(e){return isVersionsMatch(e,t.version)}));if(s.length===0){if(e.ignoreUnknownVersions){return[]}else{throw new l("Unknown version "+t.version+" of Node.js")}}return["node "+s[s.length-1]]}function sinceQuery(e,t){var s=parseInt(t.year);var r=parseInt(t.month||"01")-1;var n=parseInt(t.day||"01");return filterByYear(Date.UTC(s,r,n,0,0,0),e)}function coverQuery(e,t){var s=parseFloat(t.coverage);var r=browserslist.usage.global;if(t.place){if(t.place.match(/^my\s+stats$/i)){if(!e.customUsage){throw new l("Custom usage statistics was not provided")}r=e.customUsage}else{var n;if(t.place.length===2){n=t.place.toUpperCase()}else{n=t.place.toLowerCase()}c.loadCountry(browserslist.usage,n,browserslist.data);r=browserslist.usage[n]}}var i=Object.keys(r).sort((function(e,t){return r[t]-r[e]}));var o=0;var a=[];var u;for(var f=0;f=s)break}return a}var p={last_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(e,t){return Object.keys(n).reduce((function(s,r){var n=byName(r,e);if(!n)return s;var i=getMajorVersions(n.released,t.versions);i=i.map(nameMapper(n.name));if(n.name==="android"){i=filterAndroid(i,t.versions,e)}return s.concat(i)}),[])}},last_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+versions?$/i,select:function(e,t){return Object.keys(n).reduce((function(s,r){var n=byName(r,e);if(!n)return s;var i=n.released.slice(-t.versions);i=i.map(nameMapper(n.name));if(n.name==="android"){i=filterAndroid(i,t.versions,e)}return s.concat(i)}),[])}},last_electron_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(e,t){var s=getMajorVersions(Object.keys(a),t.versions);return s.map((function(e){return"chrome "+a[e]}))}},last_node_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+major\s+versions?$/i,select:function(e,t){return getMajorVersions(browserslist.nodeVersions,t.versions).map((function(e){return"node "+e}))}},last_browser_major_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(e,t){var s=checkName(t.browser,e);var r=getMajorVersions(s.released,t.versions);var n=r.map(nameMapper(s.name));if(s.name==="android"){n=filterAndroid(n,t.versions,e)}return n}},last_electron_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(e,t){return Object.keys(a).slice(-t.versions).map((function(e){return"chrome "+a[e]}))}},last_node_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+versions?$/i,select:function(e,t){return browserslist.nodeVersions.slice(-t.versions).map((function(e){return"node "+e}))}},last_browser_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(e,t){var s=checkName(t.browser,e);var r=s.released.slice(-t.versions).map(nameMapper(s.name));if(s.name==="android"){r=filterAndroid(r,t.versions,e)}return r}},unreleased_versions:{matches:[],regexp:/^unreleased\s+versions$/i,select:function(e){return Object.keys(n).reduce((function(t,s){var r=byName(s,e);if(!r)return t;var n=r.versions.filter((function(e){return r.released.indexOf(e)===-1}));n=n.map(nameMapper(r.name));return t.concat(n)}),[])}},unreleased_electron_versions:{matches:[],regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},unreleased_browser_versions:{matches:["browser"],regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(e,t){var s=checkName(t.browser,e);return s.versions.filter((function(e){return s.released.indexOf(e)===-1})).map(nameMapper(s.name))}},last_years:{matches:["years"],regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(e,t){return filterByYear(Date.now()-f*t.years,e)}},since_y:{matches:["year"],regexp:/^since (\d+)$/i,select:sinceQuery},since_y_m:{matches:["year","month"],regexp:/^since (\d+)-(\d+)$/i,select:sinceQuery},since_y_m_d:{matches:["year","month","day"],regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:sinceQuery},popularity:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(e,t){var s=parseFloat(t.popularity);var r=browserslist.usage.global;return Object.keys(r).reduce((function(e,n){if(t.sign===">"){if(r[n]>s){e.push(n)}}else if(t.sign==="<"){if(r[n]=s){e.push(n)}return e}),[])}},popularity_in_my_stats:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(e,t){var s=parseFloat(t.popularity);if(!e.customUsage){throw new l("Custom usage statistics was not provided")}var r=e.customUsage;return Object.keys(r).reduce((function(e,n){var i=r[n];if(i==null){return e}if(t.sign===">"){if(i>s){e.push(n)}}else if(t.sign==="<"){if(i=s){e.push(n)}return e}),[])}},popularity_in_config_stats:{matches:["sign","popularity","config"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(e,t){var s=parseFloat(t.popularity);var r=c.loadStat(e,t.config,browserslist.data);if(r){e.customUsage={};for(var n in r){fillUsage(e.customUsage,n,r[n])}}if(!e.customUsage){throw new l("Custom usage statistics was not provided")}var i=e.customUsage;return Object.keys(i).reduce((function(e,r){var n=i[r];if(n==null){return e}if(t.sign===">"){if(n>s){e.push(r)}}else if(t.sign==="<"){if(n=s){e.push(r)}return e}),[])}},popularity_in_place:{matches:["sign","popularity","place"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(e,t){var s=parseFloat(t.popularity);var r=t.place;if(r.length===2){r=r.toUpperCase()}else{r=r.toLowerCase()}c.loadCountry(browserslist.usage,r,browserslist.data);var n=browserslist.usage[r];return Object.keys(n).reduce((function(e,r){var i=n[r];if(i==null){return e}if(t.sign===">"){if(i>s){e.push(r)}}else if(t.sign==="<"){if(i=s){e.push(r)}return e}),[])}},cover:{matches:["coverage"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i,select:coverQuery},cover_in:{matches:["coverage","place"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i,select:coverQuery},supports:{matches:["feature"],regexp:/^supports\s+([\w-]+)$/,select:function(e,t){c.loadFeature(browserslist.cache,t.feature);var s=browserslist.cache[t.feature];return Object.keys(s).reduce((function(e,t){var r=s[t];if(r.indexOf("y")>=0||r.indexOf("a")>=0){e.push(t)}return e}),[])}},electron_range:{matches:["from","to"],regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var s=normalizeElectron(t.from);var r=normalizeElectron(t.to);var n=parseFloat(t.from);var i=parseFloat(t.to);if(!a[s]){throw new l("Unknown version "+n+" of electron")}if(!a[r]){throw new l("Unknown version "+i+" of electron")}return Object.keys(a).filter((function(e){var t=parseFloat(e);return t>=n&&t<=i})).map((function(e){return"chrome "+a[e]}))}},node_range:{matches:["from","to"],regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){return browserslist.nodeVersions.filter(semverFilterLoose(">=",t.from)).filter(semverFilterLoose("<=",t.to)).map((function(e){return"node "+e}))}},browser_range:{matches:["browser","from","to"],regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var s=checkName(t.browser,e);var r=parseFloat(normalizeVersion(s,t.from)||t.from);var n=parseFloat(normalizeVersion(s,t.to)||t.to);function filter(e){var t=parseFloat(e);return t>=r&&t<=n}return s.released.filter(filter).map(nameMapper(s.name))}},electron_ray:{matches:["sign","version"],regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){var s=normalizeElectron(t.version);return Object.keys(a).filter(generateFilter(t.sign,s)).map((function(e){return"chrome "+a[e]}))}},node_ray:{matches:["sign","version"],regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){return browserslist.nodeVersions.filter(generateSemverFilter(t.sign,t.version)).map((function(e){return"node "+e}))}},browser_ray:{matches:["browser","sign","version"],regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(e,t){var s=t.version;var r=checkName(t.browser,e);var n=browserslist.versionAliases[r.name][s];if(n)s=n;return r.released.filter(generateFilter(t.sign,s)).map((function(e){return r.name+" "+e}))}},firefox_esr:{matches:[],regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 102"]}},opera_mini_all:{matches:[],regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},electron_version:{matches:["version"],regexp:/^electron\s+([\d.]+)$/i,select:function(e,t){var s=normalizeElectron(t.version);var r=a[s];if(!r){throw new l("Unknown version "+t.version+" of electron")}return["chrome "+r]}},node_major_version:{matches:["version"],regexp:/^node\s+(\d+)$/i,select:nodeQuery},node_minor_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+)$/i,select:nodeQuery},node_patch_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:nodeQuery},current_node:{matches:[],regexp:/^current\s+node$/i,select:function(e){return[c.currentNode(resolve,e)]}},maintained_node:{matches:[],regexp:/^maintained\s+node\s+versions$/i,select:function(e){var t=Date.now();var s=Object.keys(i).filter((function(e){return tDate.parse(i[e].start)&&isEolReleased(e)})).map((function(e){return"node "+e.slice(1)}));return resolve(s,e)}},phantomjs_1_9:{matches:[],regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},phantomjs_2_1:{matches:[],regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},browser_version:{matches:["browser","version"],regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(e,t){var s=t.version;if(/^tp$/i.test(s))s="TP";var r=checkName(t.browser,e);var n=normalizeVersion(r,s);if(n){s=n}else{if(s.indexOf(".")===-1){n=s+".0"}else{n=s.replace(/\.0$/,"")}n=normalizeVersion(r,n);if(n){s=n}else if(e.ignoreUnknownVersions){return[]}else{throw new l("Unknown version "+s+" of "+t.browser)}}return[r.name+" "+s]}},browserslist_config:{matches:[],regexp:/^browserslist config$/i,select:function(e){return browserslist(undefined,e)}},extends:{matches:["config"],regexp:/^extends (.+)$/i,select:function(e,t){return resolve(c.loadQueries(e,t.config),e)}},defaults:{matches:[],regexp:/^defaults$/i,select:function(e){return resolve(browserslist.defaults,e)}},dead:{matches:[],regexp:/^dead$/i,select:function(e){var t=["Baidu >= 0","ie <= 11","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return resolve(t,e)}},unknown:{matches:[],regexp:/^(\w+)$/i,select:function(e,t){if(byName(t.query,e)){throw new l("Specify versions in Browserslist query for browser "+t.query)}else{throw unknownQuery(t.query)}}}};(function(){for(var e in n){var t=n[e];browserslist.data[e]={name:e,versions:normalize(n[e].versions),released:normalize(n[e].versions.slice(0,-3)),releaseDate:n[e].release_date};fillUsage(browserslist.usage.global,e,t.usage_global);browserslist.versionAliases[e]={};for(var s=0;s{t[n[s]]=e[s];return t}),{})}e.exports.D=Object.keys(i).reduce(((e,t)=>{let s=i[t];e[r[t]]=Object.keys(s).reduce(((e,t)=>{if(t==="A"){e.usage_global=unpackBrowserVersions(s[t])}else if(t==="C"){e.versions=s[t].reduce(((e,t)=>{if(t===""){e.push(null)}else{e.push(n[t])}return e}),[])}else if(t==="D"){e.prefix_exceptions=unpackBrowserVersions(s[t])}else if(t==="E"){e.browser=s[t]}else if(t==="F"){e.release_date=Object.keys(s[t]).reduce(((e,r)=>{e[n[r]]=s[t][r];return e}),{})}else{e.prefix=s[t]}return e}),{});return e}),{})},9964:function(e,t,s){e.exports.browserVersions=s(7534)},9219:function(e,t,s){e.exports.browsers=s(483)},3501:function(e,t,s){"use strict";const r=s(6359);const n=s(3391);const i=s(9219).browsers;const o=s(9964).browserVersions;const a=Math.log(2);function unpackSupport(e){let t=Object.keys(n).reduce(((t,s)=>{if(e&n[s])t.push(s);return t}),[]);let s=e>>7;let r=[];while(s){let e=Math.floor(Math.log(s)/a)+1;r.unshift(`#${e}`);s-=Math.pow(2,e-1)}return t.concat(r).join(" ")}function unpackFeature(e){let t={status:r[e.B],title:e.C};t.stats=Object.keys(e.A).reduce(((t,s)=>{let r=e.A[s];t[i[s]]=Object.keys(r).reduce(((e,t)=>{let s=r[t].split(" ");let n=unpackSupport(t);s.forEach((t=>e[o[t]]=n));return e}),{});return t}),{});return t}e.exports=unpackFeature;e.exports["default"]=unpackFeature},6777:function(e,t,s){"use strict";const r=s(9219).browsers;function unpackRegion(e){return Object.keys(e).reduce(((t,s)=>{let n=e[s];t[r[s]]=Object.keys(n).reduce(((e,t)=>{let s=n[t];if(t==="_"){s.split(" ").forEach((t=>e[t]=null))}else{e[t]=s}return e}),{});return t}),{})}e.exports=unpackRegion;e.exports["default"]=unpackRegion},9476:function(e){e.exports={"0.20":"39",.21:"41",.22:"41",.23:"41",.24:"41",.25:"42",.26:"42",.27:"43",.28:"43",.29:"43","0.30":"44",.31:"45",.32:"45",.33:"45",.34:"45",.35:"45",.36:"47",.37:"49","1.0":"49",1.1:"50",1.2:"51",1.3:"52",1.4:"53",1.5:"54",1.6:"56",1.7:"58",1.8:"59","2.0":"61",2.1:"61","3.0":"66",3.1:"66","4.0":"69",4.1:"69",4.2:"69","5.0":"73","6.0":"76",6.1:"76","7.0":"78",7.1:"78",7.2:"78",7.3:"78","8.0":"80",8.1:"80",8.2:"80",8.3:"80",8.4:"80",8.5:"80","9.0":"83",9.1:"83",9.2:"83",9.3:"83",9.4:"83","10.0":"85",10.1:"85",10.2:"85",10.3:"85",10.4:"85","11.0":"87",11.1:"87",11.2:"87",11.3:"87",11.4:"87",11.5:"87","12.0":"89",12.1:"89",12.2:"89","13.0":"91",13.1:"91",13.2:"91",13.3:"91",13.4:"91",13.5:"91",13.6:"91","14.0":"93",14.1:"93",14.2:"93","15.0":"94",15.1:"94",15.2:"94",15.3:"94",15.4:"94",15.5:"94","16.0":"96",16.1:"96",16.2:"96","17.0":"98",17.1:"98",17.2:"98",17.3:"98",17.4:"98","18.0":"100",18.1:"100",18.2:"100",18.3:"100","19.0":"102",19.1:"102","20.0":"104",20.1:"104",20.2:"104",20.3:"104","21.0":"106",21.1:"106","22.0":"108"}},9712:function(e,t,s){"use strict";var r=s(1961);class BitSet{constructor(e){this.bits=e instanceof BitSet?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class Chunk{constructor(e,t,s){this.start=e;this.end=t;this.original=s;this.intro="";this.outro="";this.content=s;this.storeName=false;this.edited=false;{this.previous=null;this.next=null}}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new Chunk(this.start,this.end,this.original);e.intro=this.intro;e.outro=this.outro;e.content=this.content;e.storeName=this.storeName;e.edited=this.edited;return e}contains(e){return this.startwindow.btoa(unescape(encodeURIComponent(e)))}else if(typeof Buffer==="function"){return e=>Buffer.from(e,"utf-8").toString("base64")}else{return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}}const n=getBtoa();class SourceMap{constructor(e){this.version=3;this.file=e.file;this.sources=e.sources;this.sourcesContent=e.sourcesContent;this.names=e.names;this.mappings=r.encode(e.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+n(this.toString())}}function guessIndent(e){const t=e.split("\n");const s=t.filter((e=>/^\t+/.test(e)));const r=t.filter((e=>/^ {2,}/.test(e)));if(s.length===0&&r.length===0){return null}if(s.length>=r.length){return"\t"}const n=r.reduce(((e,t)=>{const s=/^ +/.exec(t)[0].length;return Math.min(s,e)}),Infinity);return new Array(n+1).join(" ")}function getRelativePath(e,t){const s=e.split(/[/\\]/);const r=t.split(/[/\\]/);s.pop();while(s[0]===r[0]){s.shift();r.shift()}if(s.length){let e=s.length;while(e--)s[e]=".."}return s.concat(r).join("/")}const i=Object.prototype.toString;function isObject(e){return i.call(e)==="[object Object]"}function getLocator(e){const t=e.split("\n");const s=[];for(let e=0,r=0;e>1;if(e=0){t.push(r)}this.rawSegments.push(t)}else if(this.pending){this.rawSegments.push(this.pending)}this.advance(t);this.pending=null}addUneditedChunk(e,t,s,r,n){let i=t.start;let o=true;while(i1){for(let e=0;e{const i=n(e.start);if(e.intro.length)r.advance(e.intro);if(e.edited){r.addEdit(t,e.content,i,e.storeName?s.indexOf(e.original):-1)}else{r.addUneditedChunk(t,e,this.original,i,this.sourcemapLocations)}if(e.outro.length)r.advance(e.outro)}));return{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?getRelativePath(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:s,mappings:r.raw}}generateMap(e){return new SourceMap(this.generateDecodedMap(e))}_ensureindentStr(){if(this.indentStr===undefined){this.indentStr=guessIndent(this.original)}}_getRawIndentString(){this._ensureindentStr();return this.indentStr}getIndentString(){this._ensureindentStr();return this.indentStr===null?"\t":this.indentStr}indent(e,t){const s=/^[^\r\n]/gm;if(isObject(e)){t=e;e=undefined}if(e===undefined){this._ensureindentStr();e=this.indentStr||"\t"}if(e==="")return this;t=t||{};const r={};if(t.exclude){const e=typeof t.exclude[0]==="number"?[t.exclude]:t.exclude;e.forEach((e=>{for(let t=e[0];t{if(n)return`${e}${t}`;n=true;return t};this.intro=this.intro.replace(s,replacer);let i=0;let o=this.firstChunk;while(o){const t=o.end;if(o.edited){if(!r[i]){o.content=o.content.replace(s,replacer);if(o.content.length){n=o.content[o.content.length-1]==="\n"}}}else{i=o.start;while(i=e&&s<=t)throw new Error("Cannot move a selection inside itself");this._split(e);this._split(t);this._split(s);const r=this.byStart[e];const n=this.byEnd[t];const i=r.previous;const o=n.next;const a=this.byStart[s];if(!a&&n===this.lastChunk)return this;const l=a?a.previous:this.lastChunk;if(i)i.next=o;if(o)o.previous=i;if(l)l.next=r;if(a)a.previous=n;if(!r.previous)this.firstChunk=n.next;if(!n.next){this.lastChunk=r.previous;this.lastChunk.next=null}r.previous=l;n.next=a||null;if(!l)this.firstChunk=r;if(!a)this.lastChunk=n;return this}overwrite(e,t,s,r){r=r||{};return this.update(e,t,s,{...r,overwrite:!r.contentOnly})}update(e,t,s,r){if(typeof s!=="string")throw new TypeError("replacement content must be a string");while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e);this._split(t);if(r===true){if(!a.storeName){console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string");a.storeName=true}r={storeName:true}}const n=r!==undefined?r.storeName:false;const i=r!==undefined?r.overwrite:false;if(n){const s=this.original.slice(e,t);Object.defineProperty(this.storedNames,s,{writable:true,value:true,enumerable:true})}const o=this.byStart[e];const l=this.byEnd[t];if(o){let e=o;while(e!==l){if(e.next!==this.byStart[e.end]){throw new Error("Cannot overwrite across a split point")}e=e.next;e.edit("",false)}o.edit(s,n,!i)}else{const r=new Chunk(e,t,"").edit(s,n);l.next=r;r.previous=l}return this}prepend(e){if(typeof e!=="string")throw new TypeError("outro content must be a string");this.intro=e+this.intro;return this}prependLeft(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byEnd[e];if(s){s.prependLeft(t)}else{this.intro=t+this.intro}return this}prependRight(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byStart[e];if(s){s.prependRight(t)}else{this.outro=t+this.outro}return this}remove(e,t){while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e);this._split(t);let s=this.byStart[e];while(s){s.intro="";s.outro="";s.edit("");s=t>s.end?this.byStart[s.end]:null}return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);if(this.intro.length)return this.intro[this.intro.length-1];return""}lastLine(){let e=this.outro.lastIndexOf(o);if(e!==-1)return this.outro.substr(e+1);let t=this.outro;let s=this.lastChunk;do{if(s.outro.length>0){e=s.outro.lastIndexOf(o);if(e!==-1)return s.outro.substr(e+1)+t;t=s.outro+t}if(s.content.length>0){e=s.content.lastIndexOf(o);if(e!==-1)return s.content.substr(e+1)+t;t=s.content+t}if(s.intro.length>0){e=s.intro.lastIndexOf(o);if(e!==-1)return s.intro.substr(e+1)+t;t=s.intro+t}}while(s=s.previous);e=this.intro.lastIndexOf(o);if(e!==-1)return this.intro.substr(e+1)+t;return this.intro+t}slice(e=0,t=this.original.length){while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;let s="";let r=this.firstChunk;while(r&&(r.start>e||r.end<=e)){if(r.start=t){return s}r=r.next}if(r&&r.edited&&r.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const n=r;while(r){if(r.intro&&(n!==r||r.start===e)){s+=r.intro}const i=r.start=t;if(i&&r.edited&&r.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const o=n===r?e-r.start:0;const a=i?r.content.length+t-r.end:r.content.length;s+=r.content.slice(o,a);if(r.outro&&(!i||r.end===t)){s+=r.outro}if(i){break}r=r.next}return s}snip(e,t){const s=this.clone();s.remove(0,e);s.remove(t,s.original.length);return s}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const s=e>t.end;while(t){if(t.contains(e))return this._splitChunk(t,e);t=s?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const s=getLocator(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} – "${e.original}")`)}const s=e.split(t);this.byEnd[t]=e;this.byStart[t]=s;this.byEnd[s.end]=s;if(e===this.lastChunk)this.lastChunk=s;this.lastSearchedChunk=e;return true}toString(){let e=this.intro;let t=this.firstChunk;while(t){e+=t.toString();t=t.next}return e+this.outro}isEmpty(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return false}while(e=e.next);return true}length(){let e=this.firstChunk;let t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp((e||"\\s")+"+$");this.outro=this.outro.replace(t,"");if(this.outro.length)return true;let s=this.lastChunk;do{const e=s.end;const r=s.trimEnd(t);if(s.end!==e){if(this.lastChunk===s){this.lastChunk=s.next}this.byEnd[s.end]=s;this.byStart[s.next.start]=s.next;this.byEnd[s.next.end]=s.next}if(r)return true;s=s.previous}while(s);return false}trimEnd(e){this.trimEndAborted(e);return this}trimStartAborted(e){const t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(this.intro.length)return true;let s=this.firstChunk;do{const e=s.end;const r=s.trimStart(t);if(s.end!==e){if(s===this.lastChunk)this.lastChunk=s.next;this.byEnd[s.end]=s;this.byStart[s.next.start]=s.next;this.byEnd[s.next.end]=s.next}if(r)return true;s=s.next}while(s);return false}trimStart(e){this.trimStartAborted(e);return this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function getReplacement(e,s){if(typeof t==="string"){return t.replace(/\$(\$|&|\d+)/g,((t,s)=>{if(s==="$")return"$";if(s==="&")return e[0];const r=+s;if(r{if(e.index!=null)this.overwrite(e.index,e.index+e[0].length,getReplacement(e,this.original))}))}else{const t=this.original.match(e);if(t&&t.index!=null)this.overwrite(t.index,t.index+t[0].length,getReplacement(t,this.original))}return this}_replaceString(e,t){const{original:s}=this;const r=s.indexOf(e);if(r!==-1){this.overwrite(r,r+e.length,t)}return this}replace(e,t){if(typeof e==="string"){return this._replaceString(e,t)}return this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:s}=this;const r=e.length;for(let n=s.indexOf(e);n!==-1;n=s.indexOf(e,n+r)){this.overwrite(n,n+r,t)}return this}replaceAll(e,t){if(typeof e==="string"){return this._replaceAllString(e,t)}if(!e.global){throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument")}return this._replaceRegexp(e,t)}}const l=Object.prototype.hasOwnProperty;class Bundle{constructor(e={}){this.intro=e.intro||"";this.separator=e.separator!==undefined?e.separator:"\n";this.sources=[];this.uniqueSources=[];this.uniqueSourceIndexByFilename={}}addSource(e){if(e instanceof MagicString){return this.addSource({content:e,filename:e.filename,separator:this.separator})}if(!isObject(e)||!e.content){throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`")}["filename","indentExclusionRanges","separator"].forEach((t=>{if(!l.call(e,t))e[t]=e.content[t]}));if(e.separator===undefined){e.separator=this.separator}if(e.filename){if(!l.call(this.uniqueSourceIndexByFilename,e.filename)){this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length;this.uniqueSources.push({filename:e.filename,content:e.content.original})}else{const t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content){throw new Error(`Illegal source: same filename (${e.filename}), different contents`)}}}this.sources.push(e);return this}append(e,t){this.addSource({content:new MagicString(e),separator:t&&t.separator||""});return this}clone(){const e=new Bundle({intro:this.intro,separator:this.separator});this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}));return e}generateDecodedMap(e={}){const t=[];this.sources.forEach((e=>{Object.keys(e.content.storedNames).forEach((e=>{if(!~t.indexOf(e))t.push(e)}))}));const s=new Mappings(e.hires);if(this.intro){s.advance(this.intro)}this.sources.forEach(((e,r)=>{if(r>0){s.advance(this.separator)}const n=e.filename?this.uniqueSourceIndexByFilename[e.filename]:-1;const i=e.content;const o=getLocator(i.original);if(i.intro){s.advance(i.intro)}i.firstChunk.eachNext((r=>{const a=o(r.start);if(r.intro.length)s.advance(r.intro);if(e.filename){if(r.edited){s.addEdit(n,r.content,a,r.storeName?t.indexOf(r.original):-1)}else{s.addUneditedChunk(n,r,i.original,a,i.sourcemapLocations)}}else{s.advance(r.content)}if(r.outro.length)s.advance(r.outro)}));if(i.outro){s.advance(i.outro)}}));return{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((t=>e.file?getRelativePath(e.file,t.filename):t.filename)),sourcesContent:this.uniqueSources.map((t=>e.includeContent?t.content:null)),names:t,mappings:s.raw}}generateMap(e){return new SourceMap(this.generateDecodedMap(e))}getIndentString(){const e={};this.sources.forEach((t=>{const s=t.content._getRawIndentString();if(s===null)return;if(!e[s])e[s]=0;e[s]+=1}));return Object.keys(e).sort(((t,s)=>e[t]-e[s]))[0]||"\t"}indent(e){if(!arguments.length){e=this.getIndentString()}if(e==="")return this;let t=!this.intro||this.intro.slice(-1)==="\n";this.sources.forEach(((s,r)=>{const n=s.separator!==undefined?s.separator:this.separator;const i=t||r>0&&/\r?\n$/.test(n);s.content.indent(e,{exclude:s.indentExclusionRanges,indentStart:i});t=s.content.lastChar()==="\n"}));if(this.intro){this.intro=e+this.intro.replace(/^[^\n]/gm,((t,s)=>s>0?e+t:t))}return this}prepend(e){this.intro=e+this.intro;return this}toString(){const e=this.sources.map(((e,t)=>{const s=e.separator!==undefined?e.separator:this.separator;const r=(t>0?s:"")+e.content.toString();return r})).join("");return this.intro+e}isEmpty(){if(this.intro.length&&this.intro.trim())return false;if(this.sources.some((e=>!e.content.isEmpty())))return false;return true}length(){return this.sources.reduce(((e,t)=>e+t.content.length()),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){const t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(!this.intro){let t;let s=0;do{t=this.sources[s++];if(!t){break}}while(!t.content.trimStartAborted(e))}return this}trimEnd(e){const t=new RegExp((e||"\\s")+"+$");let s;let r=this.sources.length-1;do{s=this.sources[r--];if(!s){this.intro=this.intro.replace(t,"");break}}while(!s.content.trimEndAborted(e));return this}}MagicString.Bundle=Bundle;MagicString.SourceMap=SourceMap;MagicString.default=MagicString;e.exports=MagicString},4634:function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=4634;e.exports=webpackEmptyContext},9491:function(e){"use strict";e.exports=require("assert")},4300:function(e){"use strict";e.exports=require("buffer")},7147:function(e){"use strict";e.exports=require("fs")},8188:function(e){"use strict";e.exports=require("module")},6005:function(e){"use strict";e.exports=require("crypto")},2033:function(e){"use strict";e.exports=require("module")},9411:function(e){"use strict";e.exports=require("path")},1041:function(e){"use strict";e.exports=require("url")},2037:function(e){"use strict";e.exports=require("os")},1017:function(e){"use strict";e.exports=require("path")},6224:function(e){"use strict";e.exports=require("tty")},7310:function(e){"use strict";e.exports=require("url")},3837:function(e){"use strict";e.exports=require("util")},9203:function(e){"use strict";e.exports=require("vite")},2310:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(9411);const n=s(6005);const i=s(2033);const o=s(1041);const a=s(9203);const l=s(9712);const u=s(6224);const c=s(2333);var f={};var d={get exports(){return f},set exports(e){f=e}};let m=u;let p=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||m.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env);let formatter=(e,t,s=e)=>r=>{let n=""+r;let i=n.indexOf(t,e.length);return~i?e+replaceClose(n,t,s,i)+t:e+n+t};let replaceClose=(e,t,s,r)=>{let n=e.substring(0,r)+s;let i=e.substring(r+t.length);let o=i.indexOf(t);return~o?n+replaceClose(i,t,s,o):n+i};let createColors=(e=p)=>({isColorSupported:e,reset:e?e=>`${e}`:String,bold:e?formatter("","",""):String,dim:e?formatter("","",""):String,italic:e?formatter("",""):String,underline:e?formatter("",""):String,inverse:e?formatter("",""):String,hidden:e?formatter("",""):String,strikethrough:e?formatter("",""):String,black:e?formatter("",""):String,red:e?formatter("",""):String,green:e?formatter("",""):String,yellow:e?formatter("",""):String,blue:e?formatter("",""):String,magenta:e?formatter("",""):String,cyan:e?formatter("",""):String,white:e?formatter("",""):String,gray:e?formatter("",""):String,bgBlack:e?formatter("",""):String,bgRed:e?formatter("",""):String,bgGreen:e?formatter("",""):String,bgYellow:e?formatter("",""):String,bgBlue:e?formatter("",""):String,bgMagenta:e?formatter("",""):String,bgCyan:e?formatter("",""):String,bgWhite:e?formatter("",""):String});d.exports=createColors();f.createColors=createColors;const h=`!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();`;const v="vite-legacy-polyfill";const g="vite-legacy-entry";const B=`System.import(document.getElementById('${g}').getAttribute('data-src'))`;const y="__vite_is_modern_browser";const b='import.meta.url;import("_").catch(()=>1);async function* g(){};';const w=`${b}window.${y}=true;`;const C=`!function(){if(window.${y})return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("${v}"),n=document.createElement("script");n.src=e.src,n.onload=function(){${B}},document.body.appendChild(n)}();`;const j=`export function __vite_legacy_guard(){${b}};`;let _;async function loadBabel(){if(!_){_=await Promise.all([s.e(866),s.e(569)]).then(s.t.bind(s,6246,23))}return _}const{loadConfig:S}=c;function toOutputFilePathInHtml(e,t,s,r,n,i){const{renderBuiltUrl:o}=n.experimental;let a=n.base===""||n.base==="./";if(o){const i=o(e,{hostId:s,hostType:r,type:t,ssr:!!n.build.ssr});if(typeof i==="object"){if(i.runtime){throw new Error(`{ runtime: "${i.runtime}" } is not supported for assets in ${r} files: ${e}`)}if(typeof i.relative==="boolean"){a=i.relative}}else if(i){return i}}if(a&&!n.build.ssr){return i(e,s)}else{return n.base+e}}function getBaseInHTML(e,t){return t.base==="./"||t.base===""?r.posix.join(r.posix.relative(e,"").slice(0,-2),"./"):t.base}function toAssetPathFromHtml(e,t,s){const n=a.normalizePath(r.relative(s.root,t));const toRelative=(e,t)=>getBaseInHTML(n,s)+e;return toOutputFilePathInHtml(e,"asset",t,"html",s,toRelative)}const x=`__VITE_IS_LEGACY__`;const E=i.createRequire(typeof document==="undefined"?new(s(7310).URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("index.cjs",document.baseURI).href);function viteLegacyPlugin(e={}){let t;let s;const n=e.renderLegacyChunks!==false;const i=(process.env.DEBUG||"").split(",");const o=i.includes("vite:*")||i.includes("vite:legacy");const a=new Map;const u=new Map;const c=new Map;const d=new Set;const m=new Set;if(Array.isArray(e.modernPolyfills)){e.modernPolyfills.forEach((e=>{d.add(e.includes("/")?`core-js/${e}`:`core-js/modules/${e}.js`)}))}if(Array.isArray(e.polyfills)){e.polyfills.forEach((e=>{if(e.startsWith(`regenerator`)){m.add(`regenerator-runtime/runtime.js`)}else{m.add(e.includes("/")?`core-js/${e}`:`core-js/modules/${e}.js`)}}))}if(Array.isArray(e.additionalLegacyPolyfills)){e.additionalLegacyPolyfills.forEach((e=>{m.add(e)}))}let p=false;const y={name:"vite:legacy-config",config(e,t){if(t.command==="build"){if(!e.build){e.build={}}if(!e.build.cssTarget){e.build.cssTarget="chrome61"}if(n){p=e.build.target!==void 0;e.build.target=["es2020","edge79","firefox67","chrome64","safari12"]}}return{define:{"import.meta.env.LEGACY":t.command==="serve"||e.build?.ssr?false:x}}},configResolved(e){if(p){e.logger.warn(f.yellow(`plugin-legacy overrode 'build.target'. You should pass 'targets' as an option to this plugin with the list of legacy browsers to support instead.`))}}};const b={name:"vite:legacy-generate-polyfill-chunk",apply:"build",async generateBundle(r,i){if(t.build.ssr){return}if(!isLegacyBundle(i,r)){if(!d.size){return}o&&console.log(`[@vitejs/plugin-legacy] modern polyfills:`,d);await buildPolyfillChunk(t.mode,d,i,c,t.build,"es",r,true);return}if(!n){return}if(m.size){await (()=>{})(`Promise.resolve(); Promise.all();`,s,m);o&&console.log(`[@vitejs/plugin-legacy] legacy polyfills:`,m);await buildPolyfillChunk(t.mode,m,i,u,t.build,"iife",r,e.externalSystemJS)}}};const _={name:"vite:legacy-post-process",enforce:"post",apply:"build",configResolved(i){if(i.build.lib){throw new Error("@vitejs/plugin-legacy does not support library mode.")}t=i;if(!n||t.build.ssr){return}s=e.targets||S({path:t.root})||"last 2 versions and not dead, > 0.3%, Firefox ESR";o&&console.log(`[@vitejs/plugin-legacy] targets:`,s);const getLegacyOutputFileName=(e,s="[name]-legacy-[hash].js")=>{if(!e){return r.posix.join(t.build.assetsDir,s)}return t=>{let s=typeof e==="function"?e(t):e;if(s.includes("[name]")){s=s.replace("[name]","[name]-legacy")}else{s=s.replace(/(.+)\.(.+)/,"$1-legacy.$2")}return s}};const createLegacyOutput=(e={})=>({...e,format:"system",entryFileNames:getLegacyOutputFileName(e.entryFileNames),chunkFileNames:getLegacyOutputFileName(e.chunkFileNames)});const{rollupOptions:a}=t.build;const{output:l}=a;if(Array.isArray(l)){a.output=[...l.map(createLegacyOutput),...l]}else{a.output=[createLegacyOutput(l),l||{}]}},async renderChunk(r,i,o){if(t.build.ssr){return null}if(!isLegacyChunk(i,o)){if(e.modernPolyfills&&!Array.isArray(e.modernPolyfills)){await detectPolyfills(r,{esmodules:true},d)}const s=new l(r);if(n&&i.isEntry){s.prepend(j)}if(r.includes(x)){const e=new RegExp(x,"g");let t;while(t=e.exec(r)){s.overwrite(t.index,t.index+x.length,`false`)}}if(t.build.sourcemap){return{code:s.toString(),map:s.generateMap({hires:true})}}return{code:s.toString()}}if(!n){return null}o.__vite_skip_esbuild__=true;o.__vite_force_terser__=true;o.__vite_skip_asset_emit__=true;const a=e.polyfills!==false&&!Array.isArray(e.polyfills);const u=!!t.build.sourcemap;const c=await loadBabel();const f=c.transform(r,{babelrc:false,configFile:false,compact:!!t.build.minify,sourceMaps:u,inputSourceMap:void 0,presets:[[()=>({plugins:[recordAndRemovePolyfillBabelPlugin(m),replaceLegacyEnvBabelPlugin(),wrapIIFEBabelPlugin()]})],["@babel/preset-env",createBabelPresetEnvOptions(s,{needPolyfills:a,ignoreBrowserslistConfig:e.ignoreBrowserslistConfig})]]});if(f)return{code:f.code,map:f.map};return null},transformIndexHtml(e,{chunk:s}){if(t.build.ssr)return;if(!s)return;if(s.fileName.includes("-legacy")){a.set(s.facadeModuleId,s.fileName);return}const r=[];const i=s.facadeModuleId?.replace(/\?.*$/,"");const o=c.get(s.facadeModuleId);if(o){r.push({tag:"script",attrs:{type:"module",crossorigin:true,src:toAssetPathFromHtml(o,s.facadeModuleId,t)}})}else if(d.size){throw new Error(`No corresponding modern polyfill chunk found for ${i}`)}if(!n){return{html:e,tags:r}}r.push({tag:"script",attrs:{nomodule:true},children:h,injectTo:"body"});const l=u.get(s.facadeModuleId);if(l){r.push({tag:"script",attrs:{nomodule:true,crossorigin:true,id:v,src:toAssetPathFromHtml(l,s.facadeModuleId,t)},injectTo:"body"})}else if(m.size){throw new Error(`No corresponding legacy polyfill chunk found for ${i}`)}const f=a.get(s.facadeModuleId);if(f){r.push({tag:"script",attrs:{nomodule:true,crossorigin:true,id:g,"data-src":toAssetPathFromHtml(f,s.facadeModuleId,t)},children:B,injectTo:"body"})}else{throw new Error(`No corresponding legacy entry chunk found for ${i}`)}if(n&&l&&f){r.push({tag:"script",attrs:{type:"module"},children:w,injectTo:"head"});r.push({tag:"script",attrs:{type:"module"},children:C,injectTo:"head"})}return{html:e,tags:r}},generateBundle(e,s){if(t.build.ssr){return}if(isLegacyBundle(s,e)){for(const e in s){if(s[e].type==="asset"&&!/.+\.map$/.test(e)){delete s[e]}}}}};return[y,b,_]}async function detectPolyfills(e,t,s){const r=await loadBabel();const n=r.transform(e,{ast:true,babelrc:false,configFile:false,presets:[["@babel/preset-env",createBabelPresetEnvOptions(t,{ignoreBrowserslistConfig:true})]]});for(const e of n.ast.program.body){if(e.type==="ImportDeclaration"){const t=e.source.value;if(t.startsWith("core-js/")||t.startsWith("regenerator-runtime/")){s.add(t)}}}}function createBabelPresetEnvOptions(e,{needPolyfills:t=true,ignoreBrowserslistConfig:s}){return{targets:e,bugfixes:true,loose:false,modules:false,useBuiltIns:t?"usage":false,corejs:t?{version:E("core-js/package.json").version,proposals:false}:void 0,shippedProposals:true,ignoreBrowserslistConfig:s}}async function buildPolyfillChunk(e,t,n,i,l,u,c,f){let{minify:d,assetsDir:m}=l;d=d?"terser":false;const p=await a.build({mode:e,root:r.dirname(o.fileURLToPath(typeof document==="undefined"?new(s(7310).URL)("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("index.cjs",document.baseURI).href)),configFile:false,logLevel:"error",plugins:[polyfillsPlugin(t,f)],build:{write:false,minify:d,assetsDir:m,rollupOptions:{input:{polyfills:k},output:{format:u,entryFileNames:c.entryFileNames}}},esbuild:false,optimizeDeps:{esbuildOptions:{target:"es5"}}});const h=Array.isArray(p)?p[0]:p;if(!("output"in h))return;const v=h.output[0];for(const e in n){const t=n[e];if(t.type==="chunk"&&t.facadeModuleId){i.set(t.facadeModuleId,v.fileName)}}n[v.fileName]=v}const k="\0vite/legacy-polyfills";function polyfillsPlugin(e,t){return{name:"vite:legacy-polyfills",resolveId(e){if(e===k){return e}},load(s){if(s===k){return[...e].map((e=>`import ${JSON.stringify(e)};`)).join("")+(t?"":`import "systemjs/dist/s.min.js";`)}}}}function isLegacyChunk(e,t){return t.format==="system"&&e.fileName.includes("-legacy")}function isLegacyBundle(e,t){if(t.format==="system"){const t=Object.values(e).find((e=>e.type==="chunk"&&e.isEntry));return!!t&&t.fileName.includes("-legacy")}return false}function recordAndRemovePolyfillBabelPlugin(e){return({types:t})=>({name:"vite-remove-polyfill-import",post({path:s}){s.get("body").forEach((s=>{if(t.isImportDeclaration(s.node)){e.add(s.node.source.value);s.remove()}}))}})}function replaceLegacyEnvBabelPlugin(){return({types:e})=>({name:"vite-replace-env-legacy",visitor:{Identifier(t){if(t.node.name===x){t.replaceWith(e.booleanLiteral(true))}}}})}function wrapIIFEBabelPlugin(){return({types:e,template:t})=>{const s=t(";(function(){%%body%%})();");return{name:"vite-wrap-iife",post({path:t}){if(!this.isWrapped){this.isWrapped=true;t.replaceWith(e.program(s({body:t.node.body})))}}}}}const O=[h,B,w,C].map((e=>n.createHash("sha256").update(e).digest("base64")));e.exports=viteLegacyPlugin;e.exports.cspHashes=O;e.exports["default"]=viteLegacyPlugin;e.exports.detectPolyfills=detectPolyfills},8074:function(e){"use strict";e.exports=JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"14.20.0","date":"2022-07-07","lts":"Fermium","security":true},{"name":"nodejs","version":"14.21.0","date":"2022-11-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.16.0","date":"2022-07-07","lts":"Gallium","security":true},{"name":"nodejs","version":"16.17.0","date":"2022-08-16","lts":"Gallium","security":false},{"name":"nodejs","version":"16.18.0","date":"2022-10-12","lts":"Gallium","security":false},{"name":"nodejs","version":"16.19.0","date":"2022-12-13","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false},{"name":"nodejs","version":"18.3.0","date":"2022-06-02","lts":false,"security":false},{"name":"nodejs","version":"18.4.0","date":"2022-06-16","lts":false,"security":false},{"name":"nodejs","version":"18.5.0","date":"2022-07-06","lts":false,"security":true},{"name":"nodejs","version":"18.6.0","date":"2022-07-13","lts":false,"security":false},{"name":"nodejs","version":"18.7.0","date":"2022-07-26","lts":false,"security":false},{"name":"nodejs","version":"18.8.0","date":"2022-08-24","lts":false,"security":false},{"name":"nodejs","version":"18.9.0","date":"2022-09-07","lts":false,"security":false},{"name":"nodejs","version":"18.10.0","date":"2022-09-28","lts":false,"security":false},{"name":"nodejs","version":"18.11.0","date":"2022-10-13","lts":false,"security":false},{"name":"nodejs","version":"18.12.0","date":"2022-10-25","lts":"Hydrogen","security":false},{"name":"nodejs","version":"18.13.0","date":"2023-01-05","lts":"Hydrogen","security":false},{"name":"nodejs","version":"19.0.0","date":"2022-10-17","lts":false,"security":false},{"name":"nodejs","version":"19.1.0","date":"2022-11-14","lts":false,"security":false},{"name":"nodejs","version":"19.2.0","date":"2022-11-29","lts":false,"security":false},{"name":"nodejs","version":"19.3.0","date":"2022-12-14","lts":false,"security":false},{"name":"nodejs","version":"19.4.0","date":"2023-01-05","lts":false,"security":false},{"name":"nodejs","version":"19.5.0","date":"2023-01-24","lts":false,"security":false}]')},1660:function(e){"use strict";e.exports=JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2023-09-11","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":"Hydrogen"},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":""}}')}};var t={};function __nccwpck_require__(s){var r=t[s];if(r!==undefined){return r.exports}var n=t[s]={id:s,loaded:false,exports:{}};var i=true;try{e[s].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete t[s]}n.loaded=true;return n.exports}__nccwpck_require__.m=e;!function(){var e=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};var t;__nccwpck_require__.t=function(s,r){if(r&1)s=this(s);if(r&8)return s;if(typeof s==="object"&&s){if(r&4&&s.__esModule)return s;if(r&16&&typeof s.then==="function")return s}var n=Object.create(null);__nccwpck_require__.r(n);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=r&2&&s;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((function(e){i[e]=function(){return s[e]}}))}i["default"]=function(){return s};__nccwpck_require__.d(n,i);return n}}();!function(){__nccwpck_require__.d=function(e,t){for(var s in t){if(__nccwpck_require__.o(t,s)&&!__nccwpck_require__.o(e,s)){Object.defineProperty(e,s,{enumerable:true,get:t[s]})}}}}();!function(){__nccwpck_require__.f={};__nccwpck_require__.e=function(e){return Promise.all(Object.keys(__nccwpck_require__.f).reduce((function(t,s){__nccwpck_require__.f[s](e,t);return t}),[]))}}();!function(){__nccwpck_require__.u=function(e){return""+e+".index.cjs.js"}}();!function(){__nccwpck_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){__nccwpck_require__.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";!function(){var e={179:1};var installChunk=function(t){var s=t.modules,r=t.ids,n=t.runtime;for(var i in s){if(__nccwpck_require__.o(s,i)){__nccwpck_require__.m[i]=s[i]}}if(n)n(__nccwpck_require__);for(var o=0;o>>=1;if(l){n=-2147483648|-n}s[r]+=n;return t}function hasMoreVlq(e,s,r){if(s>=r)return false;return e.charCodeAt(s)!==t}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const r=new Int32Array(5);const n=1024*16;const i=n-36;const a=new Uint8Array(n);const l=a.subarray(0,i);let u=0;let c="";for(let f=0;f0){if(u===n){c+=o.decode(a);u=0}a[u++]=s}if(d.length===0)continue;r[0]=0;for(let e=0;ei){c+=o.decode(l);a.copyWithin(0,i,u);u-=i}if(e>0)a[u++]=t;u=encodeInteger(a,u,r,s,0);if(s.length===1)continue;u=encodeInteger(a,u,r,s,1);u=encodeInteger(a,u,r,s,2);u=encodeInteger(a,u,r,s,3);if(s.length===4)continue;u=encodeInteger(a,u,r,s,4)}}return c+o.decode(a.subarray(0,u))}function encodeInteger(e,t,s,r,i){const o=r[i];let a=o-s[i];s[i]=o;a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5;if(a>0)s|=32;e[t++]=n[s]}while(a>0);return t}e.decode=decode;e.encode=encode;Object.defineProperty(e,"__esModule",{value:true})}))},769:function(e){function BrowserslistError(e){this.name="BrowserslistError";this.message=e;this.browserslist=true;if(Error.captureStackTrace){Error.captureStackTrace(this,BrowserslistError)}}BrowserslistError.prototype=Error.prototype;e.exports=BrowserslistError},333:function(e,t,s){var r=s(917);var n=s(11).D;var i=s(426);var o=s(17);var a=s(875);var l=s(769);var u=s(621);var c=s(477);var f=365.259641*24*60*60*1e3;var d=37;function isVersionsMatch(e,t){return(e+".").indexOf(t+".")===0}function isEolReleased(e){var t=e.slice(1);return browserslist.nodeVersions.some((function(e){return isVersionsMatch(e,t)}))}function normalize(e){return e.filter((function(e){return typeof e==="string"}))}function normalizeElectron(e){var t=e;if(e.split(".").length===3){t=e.split(".").slice(0,-1).join(".")}return t}function nameMapper(e){return function mapName(t){return e+" "+t}}function getMajor(e){return parseInt(e.split(".")[0])}function getMajorVersions(e,t){if(e.length===0)return[];var s=uniq(e.map(getMajor));var r=s[s.length-t];if(!r){return e}var n=[];for(var i=e.length-1;i>=0;i--){if(r>getMajor(e[i]))break;n.unshift(e[i])}return n}function uniq(e){var t=[];for(var s=0;s"){return function(e){return parseFloat(e)>t}}else if(e===">="){return function(e){return parseFloat(e)>=t}}else if(e==="<"){return function(e){return parseFloat(e)"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,t)>0}}else if(e===">="){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,t)>=0}}else if(e==="<"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(t,e)>0}}else{return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(t,e)>=0}}}function parseSimpleInt(e){return parseInt(e)}function compare(e,t){if(et)return+1;return 0}function compareSemver(e,t){return compare(parseInt(e[0]),parseInt(t[0]))||compare(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||compare(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function semverFilterLoose(e,t){t=t.split(".").map(parseSimpleInt);if(typeof t[1]==="undefined"){t[1]="x"}switch(e){case"<=":return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,t)<=0};case">=":default:return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,t)>=0}}}function compareSemverLoose(e,t){if(e[0]!==t[0]){return e[0]=e}));return s.concat(i.map(nameMapper(n.name)))}),[])}function cloneData(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function mapVersions(e,t){e.versions=e.versions.map((function(e){return t[e]||e}));e.released=e.released.map((function(e){return t[e]||e}));var s={};for(var r in e.releaseDate){s[t[r]||r]=e.releaseDate[r]}e.releaseDate=s;return e}function byName(e,t){e=e.toLowerCase();e=browserslist.aliases[e]||e;if(t.mobileToDesktop&&browserslist.desktopNames[e]){var s=browserslist.data[browserslist.desktopNames[e]];if(e==="android"){return normalizeAndroidData(cloneData(browserslist.data[e]),s)}else{var r=cloneData(s);r.name=e;if(e==="op_mob"){r=mapVersions(r,{"10.0-10.1":"10"})}return r}}return browserslist.data[e]}function normalizeAndroidVersions(e,t){var s=d;var r=t[t.length-1];return e.filter((function(e){return/^(?:[2-4]\.|[34]$)/.test(e)})).concat(t.slice(s-r-1))}function normalizeAndroidData(e,t){e.released=normalizeAndroidVersions(e.released,t.released);e.versions=normalizeAndroidVersions(e.versions,t.versions);return e}function checkName(e,t){var s=byName(e,t);if(!s)throw new l("Unknown browser "+e);return s}function unknownQuery(e){return new l("Unknown browser query `"+e+"`. "+"Maybe you are using old Browserslist or made typo in query.")}function filterAndroid(e,t,s){if(s.mobileToDesktop)return e;var r=browserslist.data.android.released;var n=r[r.length-1];var i=n-d-t;if(i>0){return e.slice(-1)}else{return e.slice(i-1)}}function resolve(e,t){return u(h,e).reduce((function(e,s,r){if(s.not&&r===0){throw new l("Write any browsers query (for instance, `defaults`) "+"before `"+s.query+"`")}var n=h[s.type];var i=n.select.call(browserslist,t,s).map((function(e){var s=e.split(" ");if(s[1]==="0"){return s[0]+" "+byName(s[0],t).versions[0]}else{return e}}));if(s.compose==="and"){if(s.not){return e.filter((function(e){return i.indexOf(e)===-1}))}else{return e.filter((function(e){return i.indexOf(e)!==-1}))}}else{if(s.not){var o={};i.forEach((function(e){o[e]=true}));return e.filter((function(e){return!o[e]}))}return e.concat(i)}}),[])}function prepareOpts(e){if(typeof e==="undefined")e={};if(typeof e.path==="undefined"){e.path=o.resolve?o.resolve("."):"."}return e}function prepareQueries(e,t){if(typeof e==="undefined"||e===null){var s=browserslist.loadConfig(t);if(s){e=s}else{e=browserslist.defaults}}return e}function checkQueries(e){if(!(typeof e==="string"||Array.isArray(e))){throw new l("Browser queries must be an array or string. Got "+typeof e+".")}}var m={};function browserslist(e,t){t=prepareOpts(t);e=prepareQueries(e,t);checkQueries(e);var s={ignoreUnknownVersions:t.ignoreUnknownVersions,dangerousExtend:t.dangerousExtend,mobileToDesktop:t.mobileToDesktop,path:t.path,env:t.env};c.oldDataWarning(browserslist.data);var r=c.getStat(t,browserslist.data);if(r){s.customUsage={};for(var n in r){fillUsage(s.customUsage,n,r[n])}}var i=JSON.stringify([e,s]);if(m[i])return m[i];var o=uniq(resolve(e,s)).sort((function(e,t){e=e.split(" ");t=t.split(" ");if(e[0]===t[0]){var s=e[1].split("-")[0];var r=t[1].split("-")[0];return compareSemver(r.split("."),s.split("."))}else{return compare(e[0],t[0])}}));if(!c.env.BROWSERSLIST_DISABLE_CACHE){m[i]=o}return o}browserslist.parse=function(e,t){t=prepareOpts(t);e=prepareQueries(e,t);checkQueries(e);return u(h,e)};browserslist.cache={};browserslist.data={};browserslist.usage={global:{},custom:null};browserslist.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];browserslist.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};browserslist.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",op_mob:"opera",android:"chrome"};browserslist.versionAliases={};browserslist.clearCaches=c.clearCaches;browserslist.parseConfig=c.parseConfig;browserslist.readConfig=c.readConfig;browserslist.findConfig=c.findConfig;browserslist.loadConfig=c.loadConfig;browserslist.coverage=function(e,t){var s;if(typeof t==="undefined"){s=browserslist.usage.global}else if(t==="my stats"){var r={};r.path=o.resolve?o.resolve("."):".";var n=c.getStat(r);if(!n){throw new l("Custom usage statistics was not provided")}s={};for(var i in n){fillUsage(s,i,n[i])}}else if(typeof t==="string"){if(t.length>2){t=t.toLowerCase()}else{t=t.toUpperCase()}c.loadCountry(browserslist.usage,t,browserslist.data);s=browserslist.usage[t]}else{if("dataByBrowser"in t){t=t.dataByBrowser}s={};for(var a in t){for(var u in t[a]){s[a+" "+u]=t[a][u]}}}return e.reduce((function(e,t){var r=s[t];if(r===undefined){r=s[t.replace(/ \S+$/," 0")]}return e+(r||0)}),0)};function nodeQuery(e,t){var s=browserslist.nodeVersions.filter((function(e){return isVersionsMatch(e,t.version)}));if(s.length===0){if(e.ignoreUnknownVersions){return[]}else{throw new l("Unknown version "+t.version+" of Node.js")}}return["node "+s[s.length-1]]}function sinceQuery(e,t){var s=parseInt(t.year);var r=parseInt(t.month||"01")-1;var n=parseInt(t.day||"01");return filterByYear(Date.UTC(s,r,n,0,0,0),e)}function coverQuery(e,t){var s=parseFloat(t.coverage);var r=browserslist.usage.global;if(t.place){if(t.place.match(/^my\s+stats$/i)){if(!e.customUsage){throw new l("Custom usage statistics was not provided")}r=e.customUsage}else{var n;if(t.place.length===2){n=t.place.toUpperCase()}else{n=t.place.toLowerCase()}c.loadCountry(browserslist.usage,n,browserslist.data);r=browserslist.usage[n]}}var i=Object.keys(r).sort((function(e,t){return r[t]-r[e]}));var o=0;var a=[];var u;for(var f=0;f=s)break}return a}var h={last_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(e,t){return Object.keys(n).reduce((function(s,r){var n=byName(r,e);if(!n)return s;var i=getMajorVersions(n.released,t.versions);i=i.map(nameMapper(n.name));if(n.name==="android"){i=filterAndroid(i,t.versions,e)}return s.concat(i)}),[])}},last_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+versions?$/i,select:function(e,t){return Object.keys(n).reduce((function(s,r){var n=byName(r,e);if(!n)return s;var i=n.released.slice(-t.versions);i=i.map(nameMapper(n.name));if(n.name==="android"){i=filterAndroid(i,t.versions,e)}return s.concat(i)}),[])}},last_electron_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(e,t){var s=getMajorVersions(Object.keys(a),t.versions);return s.map((function(e){return"chrome "+a[e]}))}},last_node_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+major\s+versions?$/i,select:function(e,t){return getMajorVersions(browserslist.nodeVersions,t.versions).map((function(e){return"node "+e}))}},last_browser_major_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(e,t){var s=checkName(t.browser,e);var r=getMajorVersions(s.released,t.versions);var n=r.map(nameMapper(s.name));if(s.name==="android"){n=filterAndroid(n,t.versions,e)}return n}},last_electron_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(e,t){return Object.keys(a).slice(-t.versions).map((function(e){return"chrome "+a[e]}))}},last_node_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+versions?$/i,select:function(e,t){return browserslist.nodeVersions.slice(-t.versions).map((function(e){return"node "+e}))}},last_browser_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(e,t){var s=checkName(t.browser,e);var r=s.released.slice(-t.versions).map(nameMapper(s.name));if(s.name==="android"){r=filterAndroid(r,t.versions,e)}return r}},unreleased_versions:{matches:[],regexp:/^unreleased\s+versions$/i,select:function(e){return Object.keys(n).reduce((function(t,s){var r=byName(s,e);if(!r)return t;var n=r.versions.filter((function(e){return r.released.indexOf(e)===-1}));n=n.map(nameMapper(r.name));return t.concat(n)}),[])}},unreleased_electron_versions:{matches:[],regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},unreleased_browser_versions:{matches:["browser"],regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(e,t){var s=checkName(t.browser,e);return s.versions.filter((function(e){return s.released.indexOf(e)===-1})).map(nameMapper(s.name))}},last_years:{matches:["years"],regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(e,t){return filterByYear(Date.now()-f*t.years,e)}},since_y:{matches:["year"],regexp:/^since (\d+)$/i,select:sinceQuery},since_y_m:{matches:["year","month"],regexp:/^since (\d+)-(\d+)$/i,select:sinceQuery},since_y_m_d:{matches:["year","month","day"],regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:sinceQuery},popularity:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(e,t){var s=parseFloat(t.popularity);var r=browserslist.usage.global;return Object.keys(r).reduce((function(e,n){if(t.sign===">"){if(r[n]>s){e.push(n)}}else if(t.sign==="<"){if(r[n]=s){e.push(n)}return e}),[])}},popularity_in_my_stats:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(e,t){var s=parseFloat(t.popularity);if(!e.customUsage){throw new l("Custom usage statistics was not provided")}var r=e.customUsage;return Object.keys(r).reduce((function(e,n){var i=r[n];if(i==null){return e}if(t.sign===">"){if(i>s){e.push(n)}}else if(t.sign==="<"){if(i=s){e.push(n)}return e}),[])}},popularity_in_config_stats:{matches:["sign","popularity","config"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(e,t){var s=parseFloat(t.popularity);var r=c.loadStat(e,t.config,browserslist.data);if(r){e.customUsage={};for(var n in r){fillUsage(e.customUsage,n,r[n])}}if(!e.customUsage){throw new l("Custom usage statistics was not provided")}var i=e.customUsage;return Object.keys(i).reduce((function(e,r){var n=i[r];if(n==null){return e}if(t.sign===">"){if(n>s){e.push(r)}}else if(t.sign==="<"){if(n=s){e.push(r)}return e}),[])}},popularity_in_place:{matches:["sign","popularity","place"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(e,t){var s=parseFloat(t.popularity);var r=t.place;if(r.length===2){r=r.toUpperCase()}else{r=r.toLowerCase()}c.loadCountry(browserslist.usage,r,browserslist.data);var n=browserslist.usage[r];return Object.keys(n).reduce((function(e,r){var i=n[r];if(i==null){return e}if(t.sign===">"){if(i>s){e.push(r)}}else if(t.sign==="<"){if(i=s){e.push(r)}return e}),[])}},cover:{matches:["coverage"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i,select:coverQuery},cover_in:{matches:["coverage","place"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i,select:coverQuery},supports:{matches:["feature"],regexp:/^supports\s+([\w-]+)$/,select:function(e,t){c.loadFeature(browserslist.cache,t.feature);var s=browserslist.cache[t.feature];return Object.keys(s).reduce((function(e,t){var r=s[t];if(r.indexOf("y")>=0||r.indexOf("a")>=0){e.push(t)}return e}),[])}},electron_range:{matches:["from","to"],regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var s=normalizeElectron(t.from);var r=normalizeElectron(t.to);var n=parseFloat(t.from);var i=parseFloat(t.to);if(!a[s]){throw new l("Unknown version "+n+" of electron")}if(!a[r]){throw new l("Unknown version "+i+" of electron")}return Object.keys(a).filter((function(e){var t=parseFloat(e);return t>=n&&t<=i})).map((function(e){return"chrome "+a[e]}))}},node_range:{matches:["from","to"],regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){return browserslist.nodeVersions.filter(semverFilterLoose(">=",t.from)).filter(semverFilterLoose("<=",t.to)).map((function(e){return"node "+e}))}},browser_range:{matches:["browser","from","to"],regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var s=checkName(t.browser,e);var r=parseFloat(normalizeVersion(s,t.from)||t.from);var n=parseFloat(normalizeVersion(s,t.to)||t.to);function filter(e){var t=parseFloat(e);return t>=r&&t<=n}return s.released.filter(filter).map(nameMapper(s.name))}},electron_ray:{matches:["sign","version"],regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){var s=normalizeElectron(t.version);return Object.keys(a).filter(generateFilter(t.sign,s)).map((function(e){return"chrome "+a[e]}))}},node_ray:{matches:["sign","version"],regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){return browserslist.nodeVersions.filter(generateSemverFilter(t.sign,t.version)).map((function(e){return"node "+e}))}},browser_ray:{matches:["browser","sign","version"],regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(e,t){var s=t.version;var r=checkName(t.browser,e);var n=browserslist.versionAliases[r.name][s];if(n)s=n;return r.released.filter(generateFilter(t.sign,s)).map((function(e){return r.name+" "+e}))}},firefox_esr:{matches:[],regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 102"]}},opera_mini_all:{matches:[],regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},electron_version:{matches:["version"],regexp:/^electron\s+([\d.]+)$/i,select:function(e,t){var s=normalizeElectron(t.version);var r=a[s];if(!r){throw new l("Unknown version "+t.version+" of electron")}return["chrome "+r]}},node_major_version:{matches:["version"],regexp:/^node\s+(\d+)$/i,select:nodeQuery},node_minor_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+)$/i,select:nodeQuery},node_patch_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:nodeQuery},current_node:{matches:[],regexp:/^current\s+node$/i,select:function(e){return[c.currentNode(resolve,e)]}},maintained_node:{matches:[],regexp:/^maintained\s+node\s+versions$/i,select:function(e){var t=Date.now();var s=Object.keys(i).filter((function(e){return tDate.parse(i[e].start)&&isEolReleased(e)})).map((function(e){return"node "+e.slice(1)}));return resolve(s,e)}},phantomjs_1_9:{matches:[],regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},phantomjs_2_1:{matches:[],regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},browser_version:{matches:["browser","version"],regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(e,t){var s=t.version;if(/^tp$/i.test(s))s="TP";var r=checkName(t.browser,e);var n=normalizeVersion(r,s);if(n){s=n}else{if(s.indexOf(".")===-1){n=s+".0"}else{n=s.replace(/\.0$/,"")}n=normalizeVersion(r,n);if(n){s=n}else if(e.ignoreUnknownVersions){return[]}else{throw new l("Unknown version "+s+" of "+t.browser)}}return[r.name+" "+s]}},browserslist_config:{matches:[],regexp:/^browserslist config$/i,select:function(e){return browserslist(undefined,e)}},extends:{matches:["config"],regexp:/^extends (.+)$/i,select:function(e,t){return resolve(c.loadQueries(e,t.config),e)}},defaults:{matches:[],regexp:/^defaults$/i,select:function(e){return resolve(browserslist.defaults,e)}},dead:{matches:[],regexp:/^dead$/i,select:function(e){var t=["Baidu >= 0","ie <= 11","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return resolve(t,e)}},unknown:{matches:[],regexp:/^(\w+)$/i,select:function(e,t){if(byName(t.query,e)){throw new l("Specify versions in Browserslist query for browser "+t.query)}else{throw unknownQuery(t.query)}}}};(function(){for(var e in n){var t=n[e];browserslist.data[e]={name:e,versions:normalize(n[e].versions),released:normalize(n[e].versions.slice(0,-3)),releaseDate:n[e].release_date};fillUsage(browserslist.usage.global,e,t.usage_global);browserslist.versionAliases[e]={};for(var s=0;s{t[n[s]]=e[s];return t}),{})}e.exports.D=Object.keys(i).reduce(((e,t)=>{let s=i[t];e[r[t]]=Object.keys(s).reduce(((e,t)=>{if(t==="A"){e.usage_global=unpackBrowserVersions(s[t])}else if(t==="C"){e.versions=s[t].reduce(((e,t)=>{if(t===""){e.push(null)}else{e.push(n[t])}return e}),[])}else if(t==="D"){e.prefix_exceptions=unpackBrowserVersions(s[t])}else if(t==="E"){e.browser=s[t]}else if(t==="F"){e.release_date=Object.keys(s[t]).reduce(((e,r)=>{e[n[r]]=s[t][r];return e}),{})}else{e.prefix=s[t]}return e}),{});return e}),{})},148:function(e,t,s){e.exports.browserVersions=s(607)},666:function(e,t,s){e.exports.browsers=s(587)},427:function(e,t,s){"use strict";const r=s(720);const n=s(133);const i=s(666).browsers;const o=s(148).browserVersions;const a=Math.log(2);function unpackSupport(e){let t=Object.keys(n).reduce(((t,s)=>{if(e&n[s])t.push(s);return t}),[]);let s=e>>7;let r=[];while(s){let e=Math.floor(Math.log(s)/a)+1;r.unshift(`#${e}`);s-=Math.pow(2,e-1)}return t.concat(r).join(" ")}function unpackFeature(e){let t={status:r[e.B],title:e.C};t.stats=Object.keys(e.A).reduce(((t,s)=>{let r=e.A[s];t[i[s]]=Object.keys(r).reduce(((e,t)=>{let s=r[t].split(" ");let n=unpackSupport(t);s.forEach((t=>e[o[t]]=n));return e}),{});return t}),{});return t}e.exports=unpackFeature;e.exports["default"]=unpackFeature},54:function(e,t,s){"use strict";const r=s(666).browsers;function unpackRegion(e){return Object.keys(e).reduce(((t,s)=>{let n=e[s];t[r[s]]=Object.keys(n).reduce(((e,t)=>{let s=n[t];if(t==="_"){s.split(" ").forEach((t=>e[t]=null))}else{e[t]=s}return e}),{});return t}),{})}e.exports=unpackRegion;e.exports["default"]=unpackRegion},875:function(e){e.exports={"0.20":"39",.21:"41",.22:"41",.23:"41",.24:"41",.25:"42",.26:"42",.27:"43",.28:"43",.29:"43","0.30":"44",.31:"45",.32:"45",.33:"45",.34:"45",.35:"45",.36:"47",.37:"49","1.0":"49",1.1:"50",1.2:"51",1.3:"52",1.4:"53",1.5:"54",1.6:"56",1.7:"58",1.8:"59","2.0":"61",2.1:"61","3.0":"66",3.1:"66","4.0":"69",4.1:"69",4.2:"69","5.0":"73","6.0":"76",6.1:"76","7.0":"78",7.1:"78",7.2:"78",7.3:"78","8.0":"80",8.1:"80",8.2:"80",8.3:"80",8.4:"80",8.5:"80","9.0":"83",9.1:"83",9.2:"83",9.3:"83",9.4:"83","10.0":"85",10.1:"85",10.2:"85",10.3:"85",10.4:"85","11.0":"87",11.1:"87",11.2:"87",11.3:"87",11.4:"87",11.5:"87","12.0":"89",12.1:"89",12.2:"89","13.0":"91",13.1:"91",13.2:"91",13.3:"91",13.4:"91",13.5:"91",13.6:"91","14.0":"93",14.1:"93",14.2:"93","15.0":"94",15.1:"94",15.2:"94",15.3:"94",15.4:"94",15.5:"94","16.0":"96",16.1:"96",16.2:"96","17.0":"98",17.1:"98",17.2:"98",17.3:"98",17.4:"98","18.0":"100",18.1:"100",18.2:"100",18.3:"100","19.0":"102",19.1:"102","20.0":"104",20.1:"104",20.2:"104",20.3:"104","21.0":"106",21.1:"106",21.2:"106",21.3:"106",21.4:"106","22.0":"108",22.1:"108",22.2:"108",22.3:"108","23.0":"110",23.1:"110",23.2:"110",23.3:"110","24.0":"112",24.1:"112",24.2:"112",24.3:"112","25.0":"114"}},829:function(e,t,s){"use strict";var r=s(112);class BitSet{constructor(e){this.bits=e instanceof BitSet?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class Chunk{constructor(e,t,s){this.start=e;this.end=t;this.original=s;this.intro="";this.outro="";this.content=s;this.storeName=false;this.edited=false;{this.previous=null;this.next=null}}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new Chunk(this.start,this.end,this.original);e.intro=this.intro;e.outro=this.outro;e.content=this.content;e.storeName=this.storeName;e.edited=this.edited;return e}contains(e){return this.startwindow.btoa(unescape(encodeURIComponent(e)))}else if(typeof Buffer==="function"){return e=>Buffer.from(e,"utf-8").toString("base64")}else{return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}}const n=getBtoa();class SourceMap{constructor(e){this.version=3;this.file=e.file;this.sources=e.sources;this.sourcesContent=e.sourcesContent;this.names=e.names;this.mappings=r.encode(e.mappings);if(typeof e.x_google_ignoreList!=="undefined"){this.x_google_ignoreList=e.x_google_ignoreList}}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+n(this.toString())}}function guessIndent(e){const t=e.split("\n");const s=t.filter((e=>/^\t+/.test(e)));const r=t.filter((e=>/^ {2,}/.test(e)));if(s.length===0&&r.length===0){return null}if(s.length>=r.length){return"\t"}const n=r.reduce(((e,t)=>{const s=/^ +/.exec(t)[0].length;return Math.min(s,e)}),Infinity);return new Array(n+1).join(" ")}function getRelativePath(e,t){const s=e.split(/[/\\]/);const r=t.split(/[/\\]/);s.pop();while(s[0]===r[0]){s.shift();r.shift()}if(s.length){let e=s.length;while(e--)s[e]=".."}return s.concat(r).join("/")}const i=Object.prototype.toString;function isObject(e){return i.call(e)==="[object Object]"}function getLocator(e){const t=e.split("\n");const s=[];for(let e=0,r=0;e>1;if(e=0){const o=[this.generatedCodeColumn,e,s.line,s.column];if(r>=0){o.push(r)}this.rawSegments.push(o);this.generatedCodeLine+=1;this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;i=n;n=t.indexOf("\n",n+1)}const o=[this.generatedCodeColumn,e,s.line,s.column];if(r>=0){o.push(r)}this.rawSegments.push(o);this.advance(t.slice(i+1))}else if(this.pending){this.rawSegments.push(this.pending);this.advance(t)}this.pending=null}addUneditedChunk(e,t,s,r,n){let i=t.start;let a=true;let l=false;while(i1){for(let e=0;e{const i=n(e.start);if(e.intro.length)r.advance(e.intro);if(e.edited){r.addEdit(t,e.content,i,e.storeName?s.indexOf(e.original):-1)}else{r.addUneditedChunk(t,e,this.original,i,this.sourcemapLocations)}if(e.outro.length)r.advance(e.outro)}));return{file:e.file?e.file.split(/[/\\]/).pop():undefined,sources:[e.source?getRelativePath(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:undefined,names:s,mappings:r.raw,x_google_ignoreList:this.ignoreList?[t]:undefined}}generateMap(e){return new SourceMap(this.generateDecodedMap(e))}_ensureindentStr(){if(this.indentStr===undefined){this.indentStr=guessIndent(this.original)}}_getRawIndentString(){this._ensureindentStr();return this.indentStr}getIndentString(){this._ensureindentStr();return this.indentStr===null?"\t":this.indentStr}indent(e,t){const s=/^[^\r\n]/gm;if(isObject(e)){t=e;e=undefined}if(e===undefined){this._ensureindentStr();e=this.indentStr||"\t"}if(e==="")return this;t=t||{};const r={};if(t.exclude){const e=typeof t.exclude[0]==="number"?[t.exclude]:t.exclude;e.forEach((e=>{for(let t=e[0];t{if(n)return`${e}${t}`;n=true;return t};this.intro=this.intro.replace(s,replacer);let i=0;let o=this.firstChunk;while(o){const t=o.end;if(o.edited){if(!r[i]){o.content=o.content.replace(s,replacer);if(o.content.length){n=o.content[o.content.length-1]==="\n"}}}else{i=o.start;while(i=e&&s<=t)throw new Error("Cannot move a selection inside itself");this._split(e);this._split(t);this._split(s);const r=this.byStart[e];const n=this.byEnd[t];const i=r.previous;const o=n.next;const a=this.byStart[s];if(!a&&n===this.lastChunk)return this;const l=a?a.previous:this.lastChunk;if(i)i.next=o;if(o)o.previous=i;if(l)l.next=r;if(a)a.previous=n;if(!r.previous)this.firstChunk=n.next;if(!n.next){this.lastChunk=r.previous;this.lastChunk.next=null}r.previous=l;n.next=a||null;if(!l)this.firstChunk=r;if(!a)this.lastChunk=n;return this}overwrite(e,t,s,r){r=r||{};return this.update(e,t,s,{...r,overwrite:!r.contentOnly})}update(e,t,s,r){if(typeof s!=="string")throw new TypeError("replacement content must be a string");while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e);this._split(t);if(r===true){if(!l.storeName){console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string");l.storeName=true}r={storeName:true}}const n=r!==undefined?r.storeName:false;const i=r!==undefined?r.overwrite:false;if(n){const s=this.original.slice(e,t);Object.defineProperty(this.storedNames,s,{writable:true,value:true,enumerable:true})}const o=this.byStart[e];const a=this.byEnd[t];if(o){let e=o;while(e!==a){if(e.next!==this.byStart[e.end]){throw new Error("Cannot overwrite across a split point")}e=e.next;e.edit("",false)}o.edit(s,n,!i)}else{const r=new Chunk(e,t,"").edit(s,n);a.next=r;r.previous=a}return this}prepend(e){if(typeof e!=="string")throw new TypeError("outro content must be a string");this.intro=e+this.intro;return this}prependLeft(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byEnd[e];if(s){s.prependLeft(t)}else{this.intro=t+this.intro}return this}prependRight(e,t){if(typeof t!=="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byStart[e];if(s){s.prependRight(t)}else{this.outro=t+this.outro}return this}remove(e,t){while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e);this._split(t);let s=this.byStart[e];while(s){s.intro="";s.outro="";s.edit("");s=t>s.end?this.byStart[s.end]:null}return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);if(this.intro.length)return this.intro[this.intro.length-1];return""}lastLine(){let e=this.outro.lastIndexOf(a);if(e!==-1)return this.outro.substr(e+1);let t=this.outro;let s=this.lastChunk;do{if(s.outro.length>0){e=s.outro.lastIndexOf(a);if(e!==-1)return s.outro.substr(e+1)+t;t=s.outro+t}if(s.content.length>0){e=s.content.lastIndexOf(a);if(e!==-1)return s.content.substr(e+1)+t;t=s.content+t}if(s.intro.length>0){e=s.intro.lastIndexOf(a);if(e!==-1)return s.intro.substr(e+1)+t;t=s.intro+t}}while(s=s.previous);e=this.intro.lastIndexOf(a);if(e!==-1)return this.intro.substr(e+1)+t;return this.intro+t}slice(e=0,t=this.original.length){while(e<0)e+=this.original.length;while(t<0)t+=this.original.length;let s="";let r=this.firstChunk;while(r&&(r.start>e||r.end<=e)){if(r.start=t){return s}r=r.next}if(r&&r.edited&&r.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const n=r;while(r){if(r.intro&&(n!==r||r.start===e)){s+=r.intro}const i=r.start=t;if(i&&r.edited&&r.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const o=n===r?e-r.start:0;const a=i?r.content.length+t-r.end:r.content.length;s+=r.content.slice(o,a);if(r.outro&&(!i||r.end===t)){s+=r.outro}if(i){break}r=r.next}return s}snip(e,t){const s=this.clone();s.remove(0,e);s.remove(t,s.original.length);return s}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const s=e>t.end;while(t){if(t.contains(e))return this._splitChunk(t,e);t=s?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const s=getLocator(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} – "${e.original}")`)}const s=e.split(t);this.byEnd[t]=e;this.byStart[t]=s;this.byEnd[s.end]=s;if(e===this.lastChunk)this.lastChunk=s;this.lastSearchedChunk=e;return true}toString(){let e=this.intro;let t=this.firstChunk;while(t){e+=t.toString();t=t.next}return e+this.outro}isEmpty(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return false}while(e=e.next);return true}length(){let e=this.firstChunk;let t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp((e||"\\s")+"+$");this.outro=this.outro.replace(t,"");if(this.outro.length)return true;let s=this.lastChunk;do{const e=s.end;const r=s.trimEnd(t);if(s.end!==e){if(this.lastChunk===s){this.lastChunk=s.next}this.byEnd[s.end]=s;this.byStart[s.next.start]=s.next;this.byEnd[s.next.end]=s.next}if(r)return true;s=s.previous}while(s);return false}trimEnd(e){this.trimEndAborted(e);return this}trimStartAborted(e){const t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(this.intro.length)return true;let s=this.firstChunk;do{const e=s.end;const r=s.trimStart(t);if(s.end!==e){if(s===this.lastChunk)this.lastChunk=s.next;this.byEnd[s.end]=s;this.byStart[s.next.start]=s.next;this.byEnd[s.next.end]=s.next}if(r)return true;s=s.next}while(s);return false}trimStart(e){this.trimStartAborted(e);return this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function getReplacement(e,s){if(typeof t==="string"){return t.replace(/\$(\$|&|\d+)/g,((t,s)=>{if(s==="$")return"$";if(s==="&")return e[0];const r=+s;if(r{if(e.index!=null)this.overwrite(e.index,e.index+e[0].length,getReplacement(e,this.original))}))}else{const t=this.original.match(e);if(t&&t.index!=null)this.overwrite(t.index,t.index+t[0].length,getReplacement(t,this.original))}return this}_replaceString(e,t){const{original:s}=this;const r=s.indexOf(e);if(r!==-1){this.overwrite(r,r+e.length,t)}return this}replace(e,t){if(typeof e==="string"){return this._replaceString(e,t)}return this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:s}=this;const r=e.length;for(let n=s.indexOf(e);n!==-1;n=s.indexOf(e,n+r)){this.overwrite(n,n+r,t)}return this}replaceAll(e,t){if(typeof e==="string"){return this._replaceAllString(e,t)}if(!e.global){throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument")}return this._replaceRegexp(e,t)}}const u=Object.prototype.hasOwnProperty;class Bundle{constructor(e={}){this.intro=e.intro||"";this.separator=e.separator!==undefined?e.separator:"\n";this.sources=[];this.uniqueSources=[];this.uniqueSourceIndexByFilename={}}addSource(e){if(e instanceof MagicString){return this.addSource({content:e,filename:e.filename,separator:this.separator})}if(!isObject(e)||!e.content){throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`")}["filename","ignoreList","indentExclusionRanges","separator"].forEach((t=>{if(!u.call(e,t))e[t]=e.content[t]}));if(e.separator===undefined){e.separator=this.separator}if(e.filename){if(!u.call(this.uniqueSourceIndexByFilename,e.filename)){this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length;this.uniqueSources.push({filename:e.filename,content:e.content.original})}else{const t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content){throw new Error(`Illegal source: same filename (${e.filename}), different contents`)}}}this.sources.push(e);return this}append(e,t){this.addSource({content:new MagicString(e),separator:t&&t.separator||""});return this}clone(){const e=new Bundle({intro:this.intro,separator:this.separator});this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}));return e}generateDecodedMap(e={}){const t=[];let s=undefined;this.sources.forEach((e=>{Object.keys(e.content.storedNames).forEach((e=>{if(!~t.indexOf(e))t.push(e)}))}));const r=new Mappings(e.hires);if(this.intro){r.advance(this.intro)}this.sources.forEach(((e,n)=>{if(n>0){r.advance(this.separator)}const i=e.filename?this.uniqueSourceIndexByFilename[e.filename]:-1;const o=e.content;const a=getLocator(o.original);if(o.intro){r.advance(o.intro)}o.firstChunk.eachNext((s=>{const n=a(s.start);if(s.intro.length)r.advance(s.intro);if(e.filename){if(s.edited){r.addEdit(i,s.content,n,s.storeName?t.indexOf(s.original):-1)}else{r.addUneditedChunk(i,s,o.original,n,o.sourcemapLocations)}}else{r.advance(s.content)}if(s.outro.length)r.advance(s.outro)}));if(o.outro){r.advance(o.outro)}if(e.ignoreList&&i!==-1){if(s===undefined){s=[]}s.push(i)}}));return{file:e.file?e.file.split(/[/\\]/).pop():undefined,sources:this.uniqueSources.map((t=>e.file?getRelativePath(e.file,t.filename):t.filename)),sourcesContent:this.uniqueSources.map((t=>e.includeContent?t.content:null)),names:t,mappings:r.raw,x_google_ignoreList:s}}generateMap(e){return new SourceMap(this.generateDecodedMap(e))}getIndentString(){const e={};this.sources.forEach((t=>{const s=t.content._getRawIndentString();if(s===null)return;if(!e[s])e[s]=0;e[s]+=1}));return Object.keys(e).sort(((t,s)=>e[t]-e[s]))[0]||"\t"}indent(e){if(!arguments.length){e=this.getIndentString()}if(e==="")return this;let t=!this.intro||this.intro.slice(-1)==="\n";this.sources.forEach(((s,r)=>{const n=s.separator!==undefined?s.separator:this.separator;const i=t||r>0&&/\r?\n$/.test(n);s.content.indent(e,{exclude:s.indentExclusionRanges,indentStart:i});t=s.content.lastChar()==="\n"}));if(this.intro){this.intro=e+this.intro.replace(/^[^\n]/gm,((t,s)=>s>0?e+t:t))}return this}prepend(e){this.intro=e+this.intro;return this}toString(){const e=this.sources.map(((e,t)=>{const s=e.separator!==undefined?e.separator:this.separator;const r=(t>0?s:"")+e.content.toString();return r})).join("");return this.intro+e}isEmpty(){if(this.intro.length&&this.intro.trim())return false;if(this.sources.some((e=>!e.content.isEmpty())))return false;return true}length(){return this.sources.reduce(((e,t)=>e+t.content.length()),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){const t=new RegExp("^"+(e||"\\s")+"+");this.intro=this.intro.replace(t,"");if(!this.intro){let t;let s=0;do{t=this.sources[s++];if(!t){break}}while(!t.content.trimStartAborted(e))}return this}trimEnd(e){const t=new RegExp((e||"\\s")+"+$");let s;let r=this.sources.length-1;do{s=this.sources[r--];if(!s){this.intro=this.intro.replace(t,"");break}}while(!s.content.trimEndAborted(e));return this}}MagicString.Bundle=Bundle;MagicString.SourceMap=SourceMap;MagicString.default=MagicString;e.exports=MagicString},634:function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=634;e.exports=webpackEmptyContext},117:function(e){"use strict";e.exports=require("@umijs/bundler-utils/compiled/babel/core")},82:function(e){"use strict";e.exports=require("@umijs/bundler-utils/compiled/babel/preset-env")},147:function(e){"use strict";e.exports=require("fs")},5:function(e){"use strict";e.exports=require("crypto")},33:function(e){"use strict";e.exports=require("module")},411:function(e){"use strict";e.exports=require("path")},41:function(e){"use strict";e.exports=require("url")},17:function(e){"use strict";e.exports=require("path")},224:function(e){"use strict";e.exports=require("tty")},310:function(e){"use strict";e.exports=require("url")},203:function(e){"use strict";e.exports=require("vite")},421:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(411);const n=s(5);const i=s(33);const o=s(41);const a=s(203);const l=s(829);const u=s(224);const c=s(333);function _interopDefaultCompat(e){return e&&typeof e==="object"&&"default"in e?e.default:e}const f=_interopDefaultCompat(r);const d=_interopDefaultCompat(l);const m=_interopDefaultCompat(u);const h=_interopDefaultCompat(c);function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var p={exports:{}};let v=m;let g=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||v.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env);let formatter=(e,t,s=e)=>r=>{let n=""+r;let i=n.indexOf(t,e.length);return~i?e+replaceClose(n,t,s,i)+t:e+n+t};let replaceClose=(e,t,s,r)=>{let n=e.substring(0,r)+s;let i=e.substring(r+t.length);let o=i.indexOf(t);return~o?n+replaceClose(i,t,s,o):n+i};let createColors=(e=g)=>({isColorSupported:e,reset:e?e=>`${e}`:String,bold:e?formatter("","",""):String,dim:e?formatter("","",""):String,italic:e?formatter("",""):String,underline:e?formatter("",""):String,inverse:e?formatter("",""):String,hidden:e?formatter("",""):String,strikethrough:e?formatter("",""):String,black:e?formatter("",""):String,red:e?formatter("",""):String,green:e?formatter("",""):String,yellow:e?formatter("",""):String,blue:e?formatter("",""):String,magenta:e?formatter("",""):String,cyan:e?formatter("",""):String,white:e?formatter("",""):String,gray:e?formatter("",""):String,bgBlack:e?formatter("",""):String,bgRed:e?formatter("",""):String,bgGreen:e?formatter("",""):String,bgYellow:e?formatter("",""):String,bgBlue:e?formatter("",""):String,bgMagenta:e?formatter("",""):String,bgCyan:e?formatter("",""):String,bgWhite:e?formatter("",""):String});p.exports=createColors();p.exports.createColors=createColors;var B=p.exports;const y=getDefaultExportFromCjs(B);const C=`!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();`;const w="vite-legacy-polyfill";const b="vite-legacy-entry";const j=`System.import(document.getElementById('${b}').getAttribute('data-src'))`;const S="__vite_is_modern_browser";const x='import.meta.url;import("_").catch(()=>1);async function* g(){};';const _=`${x}if(location.protocol!="file:"){window.${S}=true}`;const E=`!function(){if(window.${S})return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("${w}"),n=document.createElement("script");n.src=e.src,n.onload=function(){${j}},document.body.appendChild(n)}();`;const k=`export function __vite_legacy_guard(){${x}};`;let O;async function loadBabel(){if(!O){O=await Promise.resolve().then(s.t.bind(s,117,23))}return O}const{loadConfig:A}=h;function toOutputFilePathInHtml(e,t,s,r,n,i){const{renderBuiltUrl:o}=n.experimental;let a=n.base===""||n.base==="./";if(o){const i=o(e,{hostId:s,hostType:r,type:t,ssr:!!n.build.ssr});if(typeof i==="object"){if(i.runtime){throw new Error(`{ runtime: "${i.runtime}" } is not supported for assets in ${r} files: ${e}`)}if(typeof i.relative==="boolean"){a=i.relative}}else if(i){return i}}if(a&&!n.build.ssr){return i(e,s)}else{return n.base+e}}function getBaseInHTML(e,t){return t.base==="./"||t.base===""?f.posix.join(f.posix.relative(e,"").slice(0,-2),"./"):t.base}function toAssetPathFromHtml(e,t,s){const r=a.normalizePath(f.relative(s.root,t));const toRelative=(e,t)=>getBaseInHTML(r,s)+e;return toOutputFilePathInHtml(e,"asset",t,"html",s,toRelative)}const D=`__VITE_IS_LEGACY__`;const F=i.createRequire(typeof document==="undefined"?s(310).pathToFileURL(__filename).href:document.currentScript&&document.currentScript.src||new URL("index.cjs",document.baseURI).href);function viteLegacyPlugin(e={}){let t;let r;const n=e.renderLegacyChunks!==false;const i=e.renderModernChunks!==false;if(!n&&!i){throw new Error("`renderLegacyChunks` and `renderModernChunks` cannot be both false")}const o=(process.env.DEBUG||"").split(",");const a=o.includes("vite:*")||o.includes("vite:legacy");const l=new Map;const u=new Map;const c=new Map;const m=new Set;const h=new Set;if(Array.isArray(e.modernPolyfills)&&i){e.modernPolyfills.forEach((e=>{m.add(e.includes("/")?`core-js/${e}`:`core-js/modules/${e}.js`)}))}if(Array.isArray(e.polyfills)){e.polyfills.forEach((e=>{if(e.startsWith(`regenerator`)){h.add(`regenerator-runtime/runtime.js`)}else{h.add(e.includes("/")?`core-js/${e}`:`core-js/modules/${e}.js`)}}))}if(Array.isArray(e.additionalLegacyPolyfills)){e.additionalLegacyPolyfills.forEach((e=>{h.add(e)}))}let p=false;const v={name:"vite:legacy-config",config(e,t){if(t.command==="build"&&!e.build?.ssr){if(!e.build){e.build={}}if(!e.build.cssTarget){e.build.cssTarget="chrome61"}if(n){p=e.build.target!==void 0;e.build.target=["es2020","edge79","firefox67","chrome64","safari12"]}}return{define:{"import.meta.env.LEGACY":t.command==="serve"||e.build?.ssr?false:D}}},configResolved(e){if(p){e.logger.warn(y.yellow(`plugin-legacy overrode 'build.target'. You should pass 'targets' as an option to this plugin with the list of legacy browsers to support instead.`))}}};const g={name:"vite:legacy-generate-polyfill-chunk",apply:"build",async generateBundle(s,i){if(t.build.ssr){return}if(!isLegacyBundle(i,s)){if(!m.size){return}a&&console.log(`[@vitejs/plugin-legacy] modern polyfills:`,m);await buildPolyfillChunk(t.mode,m,i,c,t.build,"es",s,true);return}if(!n){return}if(h.size){await (()=>{})(`Promise.resolve(); Promise.all();`,r,h);a&&console.log(`[@vitejs/plugin-legacy] legacy polyfills:`,h);await buildPolyfillChunk(t.mode,h,i,u,t.build,"iife",s,e.externalSystemJS)}}};const B={name:"vite:legacy-post-process",enforce:"post",apply:"build",configResolved(s){if(s.build.lib){throw new Error("@vitejs/plugin-legacy does not support library mode.")}t=s;if(!n||t.build.ssr){return}r=e.targets||A({path:t.root})||"last 2 versions and not dead, > 0.3%, Firefox ESR";a&&console.log(`[@vitejs/plugin-legacy] targets:`,r);const getLegacyOutputFileName=(e,s="[name]-legacy-[hash].js")=>{if(!e){return f.posix.join(t.build.assetsDir,s)}return t=>{let s=typeof e==="function"?e(t):e;if(s.includes("[name]")){s=s.replace("[name]","[name]-legacy")}else{s=s.replace(/(.+)\.(.+)/,"$1-legacy.$2")}return s}};const createLegacyOutput=(e={})=>({...e,format:"system",entryFileNames:getLegacyOutputFileName(e.entryFileNames),chunkFileNames:getLegacyOutputFileName(e.chunkFileNames)});const{rollupOptions:o}=t.build;const{output:l}=o;if(Array.isArray(l)){o.output=[...l.map(createLegacyOutput),...i?l:[]]}else{o.output=[createLegacyOutput(l),...i?[l||{}]:[]]}},async renderChunk(o,a,l){if(t.build.ssr){return null}if(!isLegacyChunk(a,l)){if(e.modernPolyfills&&!Array.isArray(e.modernPolyfills)&&i){await detectPolyfills(o,{esmodules:true},m)}const s=new d(o);if(n&&a.isEntry){s.prepend(k)}if(o.includes(D)){const e=new RegExp(D,"g");let t;while(t=e.exec(o)){s.overwrite(t.index,t.index+D.length,`false`)}}if(t.build.sourcemap){return{code:s.toString(),map:s.generateMap({hires:true})}}return{code:s.toString()}}if(!n){return null}l.__vite_skip_esbuild__=true;l.__vite_force_terser__=true;l.__vite_skip_asset_emit__=true;const u=e.polyfills!==false&&!Array.isArray(e.polyfills);const c=!!t.build.sourcemap;const f=await loadBabel();const p=f.transform(o,{babelrc:false,configFile:false,compact:!!t.build.minify,sourceMaps:c,inputSourceMap:void 0,presets:[[()=>({plugins:[recordAndRemovePolyfillBabelPlugin(h),replaceLegacyEnvBabelPlugin(),wrapIIFEBabelPlugin()]})],[(await Promise.resolve().then(s.t.bind(s,82,23))).default,createBabelPresetEnvOptions(r,{needPolyfills:u,ignoreBrowserslistConfig:e.ignoreBrowserslistConfig})]]});if(p)return{code:p.code,map:p.map};return null},transformIndexHtml(e,{chunk:s}){if(t.build.ssr)return;if(!s)return;if(s.fileName.includes("-legacy")){l.set(s.facadeModuleId,s.fileName);if(i){return}}if(!i){e=e.replace(/`; + + if (process.env.SSR_BUILD_TARGET === 'worker') { + // worker mode + const [ev, workerOpts] = args as IWorkerRequestHandlerArgs; + let asyncRespondWith: ( + v: Parameters[0], + ) => void; + + // respondWith must be called synchronously + // ref: https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/respondWith + ev.respondWith(new Promise((r) => (asyncRespondWith = r))); + + ret = { + req: request, + async sendServerLoader(data) { + let res = new Response(JSON.stringify(data), { + headers: { + 'content-type': 'application/json; charset=utf-8', + }, + status: 200, + }); - return async function (req: any, res: any, next: any) { - // 切换路由场景下,会通过此 API 执行 server loader - if (req.url.startsWith('/__serverLoader') && req.query.route) { - const data = await executeLoader( - req.query.route, - opts.routesWithServerLoader, - ); - res.status(200).json(data); - return; + // allow modify response + if (workerOpts?.modifyResponse) { + res = await workerOpts.modifyResponse(res); + } + + asyncRespondWith(res); + }, + async sendPage(jsx) { + const [JSXProvider, serverInsertedHTMLCallbacks] = createJSXProvider( + opts.ServerInsertedHTMLContext.Provider, + ); + // handle route path request + + const stream = await ReactDomServer.renderToReadableStream( + React.createElement(JSXProvider, undefined, jsx.element), + { + // why not bootstrap umi.js + // ER will auto inject + // bootstrapScripts: [jsx.manifest.assets['umi.js'] || '/umi.js'], + onError(x: any) { + console.error(x); + }, + }, + ); + const transformStream = new TransformStream({ + flush(controller) { + if (serverInsertedHTMLCallbacks.size) { + const serverHTML = getGenerateStaticHTML( + serverInsertedHTMLCallbacks, + { wrapper: true }, + ); + controller.enqueue(serverHTML); + controller.enqueue(replaceServerHTMLScript); + } + }, + }); + + let res = new Response(stream.pipeThrough(transformStream), { + headers: { + 'content-type': 'text/html; charset=utf-8', + }, + status: 200, + }); + + // allow modify response + if (workerOpts?.modifyResponse) { + res = await workerOpts.modifyResponse(res); + } + + asyncRespondWith(res); + }, + otherwise() { + throw new Error('no page resource'); + }, + }; + } else { + // express mode + const [_, res, next] = args as IExpressRequestHandlerArgs; + + ret = { + req: request, + sendServerLoader(data) { + res.status(200).json(data); + }, + async sendPage(jsx) { + const [JSXProvider, serverInsertedHTMLCallbacks] = createJSXProvider( + opts.ServerInsertedHTMLContext.Provider, + ); + const writable = new Writable(); + + res.type('html'); + + writable._write = (chunk, _encoding, cb) => { + res.write(chunk); + cb(); + }; + + writable.on('finish', async () => { + if (serverInsertedHTMLCallbacks.size) { + res.write( + getGenerateStaticHTML(serverInsertedHTMLCallbacks, { + wrapper: true, + }), + ); + res.write(replaceServerHTMLScript); + } + res.end(); + }); + + const canUseCrossOriginInBootstrap = semver.gte( + opts.reactVersion, + '19.0.0-rc', + ); + const umiPath = jsx.manifest.assets['umi.js'] || '/umi.js'; + const stream = ReactDomServer.renderToPipeableStream( + React.createElement(JSXProvider, undefined, jsx.element), + { + // @ts-ignore + bootstrapScripts: canUseCrossOriginInBootstrap + ? [ + { + src: umiPath, + crossOrigin: 'anonymous', + }, + ] + : [umiPath], + onShellReady() { + stream.pipe(writable); + }, + onError(x: any) { + console.error(x); + }, + }, + ); + }, + otherwise: next, + }; } - const jsx = await jsxGeneratorDeferrer(req.url); + return ret; + }; - if (!jsx) return next(); + return async function unifiedRequestHandler( + ...args: IExpressRequestHandlerArgs | IWorkerRequestHandlerArgs + ) { + const { req, sendServerLoader, sendPage, otherwise } = normalizeHandlerArgs( + ...args, + ); - const writable = new Writable(); + if ( + req.pathname.startsWith('/__serverLoader') && + req.query.route && + req.query.url + ) { + // handle server loader request when route change or csr fallback + // provide the same request as real SSR, so that the server loader can get the same data + const { serverLoaderArgs } = normalizeRequest(...args); + const data = await executeLoader({ + routeKey: req.query.route, + routesWithServerLoader: opts.routesWithServerLoader, + serverLoaderArgs, + }); - writable._write = (chunk, _encoding, next) => { - res.write(chunk); - next(); - }; + await sendServerLoader(data); + } else { + const render = opts.pluginManager.applyPlugins({ + key: 'render', + type: 'compose', + initialValue: () => + jsxGeneratorDeferrer(req.pathname, { + request: new Request(req.url, { + headers: req.headers, + }), + }), + }); + const jsx = await render(); + if (jsx) { + // response route page + await sendPage(jsx); + } else { + await otherwise(); + } + } + }; +} + +// 新增的给CDN worker用的SSR请求handle +export function createUmiHandler(opts: CreateRequestHandlerOptions) { + let isWarned = false; + + return async function ( + req: UmiRequest, + params?: CreateRequestHandlerOptions, + ) { + if (!isWarned) { + console.warn( + '[umi] `renderRoot` is deprecated, please use `requestHandler` instead', + ); + isWarned = true; + } - writable.on('finish', async () => { - res.write(await getGenerateStaticHTML()); - res.end(); + const jsxGeneratorDeferrer = createJSXGenerator({ + ...opts, + ...params, }); + const loaderArgs: IServerLoaderArgs = { + request: req, + }; + const jsx = await jsxGeneratorDeferrer( + new URL(req.url).pathname, + loaderArgs, + ); - const stream = await ReactDomServer.renderToPipeableStream(jsx.element, { - bootstrapScripts: [jsx.manifest.assets['umi.js'] || '/umi.js'], - onShellReady() { - stream.pipe(writable); - }, - onError(x: any) { - console.error(x); - }, + if (!jsx) { + throw new Error('no page resource'); + } + + return ReactDomServer.renderToNodeStream(jsx.element); + }; +} + +export function createUmiServerLoader(opts: CreateRequestHandlerOptions) { + let isWarned = false; + + return async function (req: UmiRequest) { + if (!isWarned) { + console.warn( + '[umi] `serverLoader` is deprecated, please use `requestHandler` instead', + ); + isWarned = true; + } + + const query = Object.fromEntries(new URL(req.url).searchParams); + // 切换路由场景下,会通过此 API 执行 server loader + const serverLoaderRequest = new Request(query.url, { + headers: req.headers, + }); + return await executeLoader({ + routeKey: query.route, + routesWithServerLoader: opts.routesWithServerLoader, + serverLoaderArgs: { request: serverLoaderRequest }, }); }; } -function matchRoutesForSSR(reqUrl: string, routesById: IRoutesById) { +export function createAppRootElement(opts: CreateRequestHandlerOptions) { + return async ( + ...args: IExpressRequestHandlerArgs | IWorkerRequestHandlerArgs + ) => { + const jsxGeneratorDeferrer = createJSXGenerator(opts); + const { request, serverLoaderArgs } = normalizeRequest(...args); + const jsx = await jsxGeneratorDeferrer(request.pathname, serverLoaderArgs); + return () => jsx?.element; + }; +} + +function matchRoutesForSSR( + reqUrl: string, + routesById: IRoutesById, + basename?: string, +) { + // react-router-dom 在 v6.4.0 版本上增加了对 basename 结尾为斜杠的支持 + // 目前 @umijs/server 依赖的 react-router-dom 版本为 v6.3.0 + // 如果传入的 basename 结尾带斜杠, 比如 '/base/', 则会匹配不到. + // 日后如果依赖的版本升级, 此段代码可以删除. + const _basename = basename?.endsWith('/') ? basename.slice(0, -1) : basename; + return ( - matchRoutes(createClientRoutes({ routesById }), reqUrl)?.map( + matchRoutes(createClientRoutes({ routesById }), reqUrl, _basename)?.map( (route: any) => route.route.id, ) || [] ); @@ -270,14 +654,29 @@ function createClientRoute(route: any) { }; } -async function executeLoader( - routeKey: string, - routesWithServerLoader: RouteLoaders, -) { +async function executeLoader(params: IExecLoaderOpts) { + const { routeKey, routesWithServerLoader, serverLoaderArgs } = params; const mod = await routesWithServerLoader[routeKey](); if (!mod.serverLoader || typeof mod.serverLoader !== 'function') { return; } // TODO: 处理错误场景 - return await mod.serverLoader(); + return (mod.serverLoader satisfies ServerLoader)(serverLoaderArgs); +} + +async function executeMetadataLoader(params: IExecMetaLoaderOpts) { + const { routesWithServerLoader, routeKey, serverLoaderData } = params; + const mod = await routesWithServerLoader[routeKey](); + if (!mod.serverLoader || typeof mod.serverLoader !== 'function') { + return; + } + const loaderDatas = (mod.metadataLoader satisfies MetadataLoader)( + serverLoaderData, + ); + + const result: IMetadata = {}; + Object.values(MetaLoaderResultKeys).forEach((key) => { + if (loaderDatas?.[key]) result[key] = loaderDatas[key]; + }); + return result; } diff --git a/packages/server/src/types.ts b/packages/server/src/types.ts index f8b498ab6226..96b2e2e3e17b 100644 --- a/packages/server/src/types.ts +++ b/packages/server/src/types.ts @@ -1,3 +1,29 @@ +export interface IOpts { + base: string; + routes: Record< + string, + { + path: string; + file: string; + id: string; + parentId?: string; + } + >; + links?: Record[]; + metas?: Record[]; + styles?: (Record | string)[]; + favicons?: string[]; + title?: string; + headScripts?: (Record | string)[]; + scripts?: (Record | string)[]; + mountElementId?: string; + esmScript?: boolean; + modifyHTML?: (html: string, args: { path?: string }) => Promise; + historyType?: 'hash' | 'browser'; +} + +export type IUserExtraRoute = string | { path: string; prerender: boolean }; + export interface IRoute { id: string; path?: string; @@ -12,3 +38,42 @@ export interface IRoutesById { export interface IRouteCustom extends IRoute { [key: string]: any; } + +type LoaderReturn = T | Promise; + +export type UmiRequest = Partial & Pick; +export interface IServerLoaderArgs { + request: UmiRequest; +} +export type ServerLoader = ( + req?: IServerLoaderArgs, +) => LoaderReturn; + +export interface IMetaTag { + name: string; + content: string; +} +export interface IMetadata { + title?: string; + description?: string; + keywords?: string[]; + /** + * @default 'en' + */ + lang?: string; + metas?: IMetaTag[]; +} + +export interface IhtmlPageOpts extends IMetadata { + headScripts?: (Record | string)[]; + links?: Record[]; + styles?: string[]; + favicons?: string[]; + scripts?: (Record | string)[]; + [key: string]: any; +} + +export type MetadataLoader = ( + serverLoaderData: T, + req?: IServerLoaderArgs, +) => LoaderReturn; diff --git a/packages/testing/package.json b/packages/testing/package.json index eab29a28072c..71ba105d0939 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/test", - "version": "4.0.76", + "version": "4.3.34", "description": "@umijs/test", "homepage": "https://github.com/umijs/umi/tree/master/packages/testing#readme", "bugs": "https://github.com/umijs/umi/issues", @@ -21,17 +21,17 @@ "dev": "umi-scripts father dev" }, "dependencies": { - "@babel/plugin-transform-modules-commonjs": "7.21.2", + "@babel/plugin-transform-modules-commonjs": "7.23.3", "@jest/types": "27.5.1", "@umijs/bundler-utils": "workspace:*", "@umijs/utils": "workspace:*", - "babel-jest": "^29.4.3", - "esbuild": "0.17.19", + "babel-jest": "^29.7.0", + "esbuild": "0.21.4", "identity-obj-proxy": "3.0.0", "isomorphic-unfetch": "4.0.2" }, "devDependencies": { - "@babel/core": "^7.21.0", + "@babel/core": "^7.23.6", "@jest/transform": "^28.1.3", "jest": "^29.4.3" }, diff --git a/packages/testing/src/index.ts b/packages/testing/src/index.ts index 34d989b0dad5..aab459daa631 100644 --- a/packages/testing/src/index.ts +++ b/packages/testing/src/index.ts @@ -73,6 +73,10 @@ export function createConfig(opts?: { opts?.jsTransformer || 'esbuild', opts?.jsTransformerOpts, ), + '^.+\\.mjs$': getJSTransformer( + opts?.jsTransformer || 'esbuild', + opts?.jsTransformerOpts, + ), }, moduleNameMapper: { '^.+\\.(css|less|sass|scss|stylus)$': @@ -85,6 +89,7 @@ export function createConfig(opts?: { '/packages/.+/fixtures', ], setupFiles: [require.resolve('../setupFiles/shim')], + resolver: require.resolve('./resolver.js'), }; if (opts?.target === 'browser') { config.testEnvironment = 'jsdom'; diff --git a/packages/testing/src/resolver.js b/packages/testing/src/resolver.js new file mode 100644 index 000000000000..acd42dabba02 --- /dev/null +++ b/packages/testing/src/resolver.js @@ -0,0 +1,17 @@ +/* +* reference: https://jestjs.io/docs/configuration#resolver-string +* +* */ +module.exports = (path, options) => { + // Call the defaultResolver, so we leverage its cache, error handling, etc. + return options.defaultResolver(path, { + ...options, + // Use packageFilter to process parsed `package.json` before the resolution (see https://www.npmjs.com/package/resolve#resolveid-opts-cb) + packageFilter: pkg => { + return { + ...pkg, + main: pkg.main || pkg.module, + }; + }, + }); +}; diff --git a/packages/testing/src/transformers/esbuild/index.ts b/packages/testing/src/transformers/esbuild/index.ts index dfd22f7743e6..daed4d76694a 100644 --- a/packages/testing/src/transformers/esbuild/index.ts +++ b/packages/testing/src/transformers/esbuild/index.ts @@ -11,7 +11,9 @@ const TS_TSX_REGEX = /\.tsx?$/; const JS_JSX_REGEX = /\.jsx?$/; function isTarget(path: string) { - return JS_JSX_REGEX.test(path) || TS_TSX_REGEX.test(path); + return ( + JS_JSX_REGEX.test(path) || TS_TSX_REGEX.test(path) || path.endsWith('.mjs') + ); } const createTransformer = ( @@ -70,7 +72,7 @@ const createTransformer = ( const result = transformSync(rawCode, { ...options, ...(config.globals['jest-esbuild'] as UserOptions), - loader: userOptions.loader || (extname(path).slice(1) as Loader), + loader: userOptions.loader || ext2Loader(extname(path)), sourcefile: path, sourcesContent: false, }); @@ -100,6 +102,18 @@ const createTransformer = ( }; }; +const EXT_MAP: Record = { + '.js': 'js', + '.jsx': 'jsx', + '.ts': 'ts', + '.tsx': 'tsx', + '.mjs': 'js', +}; + +function ext2Loader(ext: string): Loader { + return EXT_MAP[ext] || 'js'; +} + export default { createTransformer, }; diff --git a/packages/umi/client/client/plugin.js b/packages/umi/client/client/plugin.js index 8fa92fa7f465..561141bb3096 100644 --- a/packages/umi/client/client/plugin.js +++ b/packages/umi/client/client/plugin.js @@ -8,12 +8,12 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runtime/helpers/esm/createClass"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import { assert, compose, isPromiseLike } from "./utils"; -export var ApplyPluginsType; -(function (ApplyPluginsType) { +export var ApplyPluginsType = /*#__PURE__*/function (ApplyPluginsType) { ApplyPluginsType["compose"] = "compose"; ApplyPluginsType["modify"] = "modify"; ApplyPluginsType["event"] = "event"; -})(ApplyPluginsType || (ApplyPluginsType = {})); + return ApplyPluginsType; +}({}); export var PluginManager = /*#__PURE__*/function () { function PluginManager(opts) { _classCallCheck(this, PluginManager); diff --git a/packages/umi/package.json b/packages/umi/package.json index 3940611cbf73..99c88c6d834b 100644 --- a/packages/umi/package.json +++ b/packages/umi/package.json @@ -1,6 +1,6 @@ { "name": "umi", - "version": "4.0.76", + "version": "4.3.34", "description": "umi", "homepage": "https://github.com/umijs/umi/tree/master/packages/umi#readme", "bugs": "https://github.com/umijs/umi/issues", @@ -37,7 +37,7 @@ "test": "umi-scripts jest-turbo" }, "dependencies": { - "@babel/runtime": "7.21.0", + "@babel/runtime": "7.23.6", "@umijs/bundler-utils": "workspace:*", "@umijs/bundler-webpack": "workspace:*", "@umijs/core": "workspace:*", diff --git a/packages/umi/src/cli/cli.ts b/packages/umi/src/cli/cli.ts index 20a8e1f6e3b8..a9f5c66c4d97 100644 --- a/packages/umi/src/cli/cli.ts +++ b/packages/umi/src/cli/cli.ts @@ -1,13 +1,16 @@ -import { logger, printHelp, setNoDeprecation, yParser } from '@umijs/utils'; -import { DEV_COMMAND, FRAMEWORK_NAME } from '../constants'; -import { Service } from '../service/service'; -import { dev } from './dev'; import { catchUnhandledRejection, checkLocal, checkVersion as checkNodeVersion, + logger, + printHelp, + setNoDeprecation, setNodeTitle, -} from './node'; + yParser, +} from '@umijs/utils'; +import { DEV_COMMAND, FRAMEWORK_NAME, MIN_NODE_VERSION } from '../constants'; +import { Service } from '../service/service'; +import { dev } from './dev'; interface IOpts { presets?: string[]; @@ -16,9 +19,9 @@ interface IOpts { catchUnhandledRejection(); export async function run(opts?: IOpts) { - checkNodeVersion(); + checkNodeVersion(MIN_NODE_VERSION); checkLocal(); - setNodeTitle(); + setNodeTitle(FRAMEWORK_NAME); setNoDeprecation(); const args = yParser(process.argv.slice(2), { diff --git a/packages/umi/src/cli/forkedDev.ts b/packages/umi/src/cli/forkedDev.ts index 06d436884ebe..2fb1d83135ce 100644 --- a/packages/umi/src/cli/forkedDev.ts +++ b/packages/umi/src/cli/forkedDev.ts @@ -1,7 +1,12 @@ -import { logger, printHelp, yParser, setNoDeprecation } from '@umijs/utils'; +import { + logger, + printHelp, + setNoDeprecation, + setNodeTitle, + yParser, +} from '@umijs/utils'; import { DEV_COMMAND, FRAMEWORK_NAME } from '../constants'; import { Service } from '../service/service'; -import { setNodeTitle } from './node'; setNodeTitle(`${FRAMEWORK_NAME}-dev`); setNoDeprecation(); diff --git a/packages/utils/package.json b/packages/utils/package.json index 4c8e4e01bca1..e9e30dcda4fa 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/utils", - "version": "4.0.76", + "version": "4.3.34", "homepage": "https://github.com/umijs/umi/tree/master/packages/utils#readme", "bugs": "https://github.com/umijs/umi/issues", "repository": { diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index ae534ca529df..574ac11cebe9 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -45,6 +45,7 @@ export * from './isJavaScriptFile'; export * from './isLocalDev'; export * from './isMonorepo'; export * from './isStyleFile'; +export * from './node'; export * from './npmClient'; export * from './randomColor/randomColor'; export * from './readDirFiles'; diff --git a/packages/umi/src/cli/node.ts b/packages/utils/src/node.ts similarity index 57% rename from packages/umi/src/cli/node.ts rename to packages/utils/src/node.ts index b19942b890ab..56f1b5bae269 100644 --- a/packages/umi/src/cli/node.ts +++ b/packages/utils/src/node.ts @@ -1,12 +1,12 @@ -import { isLocalDev, logger } from '@umijs/utils'; -import { FRAMEWORK_NAME, MIN_NODE_VERSION } from '../constants'; +import { isLocalDev, logger } from './'; const ver = parseInt(process.version.slice(1)); -export function checkVersion() { - if (ver < MIN_NODE_VERSION || ver === 15 || ver === 17) { +export function checkVersion(minVersion: number, message?: string) { + if (ver < minVersion || ver === 15 || ver === 17 || ver === 19) { logger.error( - `Your node version ${ver} is not supported, please upgrade to ${MIN_NODE_VERSION} or above except 15 or 17.`, + message || + `Your node version ${ver} is not supported, please upgrade to ${minVersion} or above except 15 or 17.`, ); process.exit(1); } @@ -18,9 +18,9 @@ export function checkLocal() { } } -export function setNodeTitle(name?: string) { +export function setNodeTitle(name: string) { if (process.title === 'node') { - process.title = name || FRAMEWORK_NAME; + process.title = name; } } diff --git a/packages/utils/src/npmClient.ts b/packages/utils/src/npmClient.ts index f2c2a4cdd008..925763209304 100644 --- a/packages/utils/src/npmClient.ts +++ b/packages/utils/src/npmClient.ts @@ -1,4 +1,4 @@ -import { existsSync } from 'fs'; +import { existsSync, readFileSync } from 'fs'; import { join } from 'path'; export type NpmClient = 'npm' | 'cnpm' | 'tnpm' | 'yarn' | 'pnpm'; @@ -11,12 +11,29 @@ export enum NpmClientEnum { npm = 'npm', } export const getNpmClient = (opts: { cwd: string }): NpmClient => { + const tnpmRegistries = ['.alibaba-inc.', '.antgroup-inc.']; + const tcnpmLockPath = join(opts.cwd, 'node_modules', '.package-lock.json'); const chokidarPkg = require('chokidar/package.json'); - if (chokidarPkg.__npminstall_done) { - return chokidarPkg._resolved.includes('registry.npm.alibaba-inc.com') + + // detect tnpm/cnpm client + // all situations: + // - npminstall mode + native fs => generate _resolved field in package.json + // - npminstall mode + rapid fs => generate .package-lock.json in node_modules + // - npm mode + native fs => generate .package-lock.json in node_modules + // - npm mode + rapid fs => generate .package-lock.json in node_modules + // all conditions: + // - has _resolved field or .package-lock.json means tnpm/cnpm + // - _resolved field or .package-lock.json contains tnpm registry means tnpm + if (chokidarPkg._resolved) { + return tnpmRegistries.some((r) => chokidarPkg._resolved.includes(r)) ? 'tnpm' : 'cnpm'; + } else if (existsSync(tcnpmLockPath)) { + const tcnpmLock = readFileSync(tcnpmLockPath, 'utf-8'); + + return tnpmRegistries.some((r) => tcnpmLock.includes(r)) ? 'tnpm' : 'cnpm'; } + const chokidarPath = require.resolve('chokidar'); if ( chokidarPath.includes('.pnpm') || diff --git a/packages/zod2ts/package.json b/packages/zod2ts/package.json index 1a2492d842f2..c080bf07fc96 100644 --- a/packages/zod2ts/package.json +++ b/packages/zod2ts/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/zod2ts", - "version": "4.0.76", + "version": "4.3.34", "description": "@umijs/zod2ts", "homepage": "https://github.com/umijs/umi/tree/master/packages/zod2ts#readme", "bugs": "https://github.com/umijs/umi/issues", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 57d0c32b86e8..7cbac4cbae67 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,8 @@ settings: excludeLinksFromLockfile: false overrides: - browserslist: 4.21.5 + browserslist: 4.22.2 + '@parcel/watcher': 2.1.0 importers: @@ -13,37 +14,37 @@ importers: devDependencies: '@iconify-json/ant-design': specifier: '1' - version: 1.1.4 + version: 1.1.16 '@iconify-json/fa': specifier: '1' - version: 1.1.3 + version: 1.1.8 '@pnpm/lockfile-file': specifier: ^8.1.1 - version: 8.1.1(@pnpm/logger@5.0.0) + version: 8.1.8(@pnpm/logger@5.0.0) '@pnpm/logger': specifier: ^5.0.0 version: 5.0.0 '@types/fs-extra': specifier: ^11.0.1 - version: 11.0.1 + version: 11.0.4 '@types/jest': specifier: ^29.2.5 - version: 29.2.5 + version: 29.5.12 '@types/node': specifier: ^18.11.18 - version: 18.11.18 + version: 18.19.39 '@types/qs': specifier: ^6.9.7 - version: 6.9.7 + version: 6.9.15 '@types/react': - specifier: ^18.0.26 - version: 18.0.26 + specifier: ^18.3.3 + version: 18.3.3 '@types/react-dom': - specifier: ^18.0.10 - version: 18.0.10 + specifier: ^18.3.0 + version: 18.3.0 '@types/resolve': specifier: ^1.20.2 - version: 1.20.2 + version: 1.20.6 '@types/rimraf': specifier: 3.0.2 version: 3.0.2 @@ -81,8 +82,8 @@ importers: specifier: 0.33.3 version: 0.33.3 browserslist: - specifier: 4.21.5 - version: 4.21.5 + specifier: 4.22.2 + version: 4.22.2 dts-packer: specifier: ^0.0.3 version: 0.0.3 @@ -90,8 +91,8 @@ importers: specifier: ^0.8.0 version: 0.8.0 father: - specifier: ^4.1.5 - version: 4.1.5(@types/node@18.11.18) + specifier: 4.1.5 + version: 4.1.5(@types/node@18.19.39) git-repo-info: specifier: ^2.1.1 version: 2.1.1 @@ -100,70 +101,70 @@ importers: version: 8.0.3 jest: specifier: ^29.4.3 - version: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + version: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) jest-playwright-preset: specifier: ^3.0.1 - version: 3.0.1(jest@29.4.3) + version: 3.0.1(jest@29.7.0) lerna: specifier: ^6.5.1 - version: 6.5.1 + version: 6.6.2 lint-staged: specifier: ^13.1.2 - version: 13.1.2 + version: 13.3.0 matcher: specifier: ^5.0.0 version: 5.0.0 octokit: specifier: ^2.0.11 - version: 2.0.11 + version: 2.1.0 only-allow: specifier: ^1.1.0 - version: 1.1.1 + version: 1.2.1 open: specifier: ^8.4.0 - version: 8.4.0 + version: 8.4.2 openai: specifier: ^3.2.1 - version: 3.2.1 + version: 3.3.0 playwright-chromium: specifier: ^1.29.2 - version: 1.29.2 + version: 1.45.0 prettier: specifier: ^2.8.4 version: 2.8.4 prettier-plugin-organize-imports: specifier: ^3.2.2 - version: 3.2.2(prettier@2.8.4)(typescript@4.9.4) + version: 3.2.4(prettier@2.8.4)(typescript@4.9.5) prettier-plugin-packagejson: specifier: ^2.4.3 version: 2.4.3(prettier@2.8.4) qs: specifier: ^6.11.0 - version: 6.11.0 + version: 6.12.1 react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) react-text-loop-next: specifier: 0.0.3 - version: 0.0.3(react-dom@18.1.0)(react@18.1.0) + version: 0.0.3(react-dom@18.3.1)(react@18.3.1) regenerator-runtime: specifier: ^0.13.11 version: 0.13.11 resolve: specifier: ^1.22.0 - version: 1.22.1 + version: 1.22.0 rimraf: specifier: ^3.0.2 version: 3.0.2 selenium-webdriver: specifier: ^4.8.1 - version: 4.8.1 + version: 4.22.0 ts-node: specifier: ^10.7.0 - version: 10.9.1(@types/node@18.11.18)(typescript@4.9.4) + version: 10.9.2(@types/node@18.19.39)(typescript@4.9.5) tsx: specifier: ^3.12.2 version: 3.12.2 @@ -171,11 +172,11 @@ importers: specifier: ^0.0.6 version: 0.0.6 turbo: - specifier: ^1.9.3 + specifier: 1.9.3 version: 1.9.3 typescript: specifier: ^4.9.4 - version: 4.9.4 + version: 4.9.5 uglify-js: specifier: ^3.17.4 version: 3.17.4 @@ -187,7 +188,7 @@ importers: version: link:scripts zx: specifier: ^7.1.1 - version: 7.1.1 + version: 7.2.3 codemod: dependencies: @@ -239,50 +240,47 @@ importers: version: 4.2.1 react-countup: specifier: ^6.4.2 - version: 6.4.2(react@18.1.0) - styled-components: - specifier: 6.0.0-rc.0 - version: 6.0.0-rc.0(react-dom@18.1.0)(react@18.1.0) + version: 6.4.2(react@18.3.1) devDependencies: dumi: - specifier: ^2.2.5 - version: 2.2.5(@types/node@18.11.18)(@types/react@18.0.26)(jest@29.4.3)(prettier@2.8.4)(react-dom@18.1.0)(react@18.1.0)(styled-components@6.0.0-rc.0)(typescript@4.9.4) + specifier: ^2.2.16 + version: 2.2.16(@types/node@18.19.39)(@types/react@18.3.3)(jest@29.7.0)(prettier@2.8.4)(react-dom@18.3.1)(react@18.3.1)(typescript@4.9.5) examples/ant-design-pro: dependencies: '@ant-design/charts': specifier: ^1.4.2 - version: 1.4.2(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0) + version: 1.4.2(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1) '@ant-design/icons': specifier: 4.7.0 - version: 4.7.0(react-dom@18.1.0)(react@18.1.0) + version: 4.7.0(react-dom@18.3.1)(react@18.3.1) '@ant-design/pro-components': specifier: ^2.0.1 - version: 2.3.4(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + version: 2.3.4(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@antv/data-set': specifier: ^0.11.8 version: 0.11.8 '@antv/l7-react': specifier: ^2.3.9 - version: 2.3.9(react-dom@18.1.0)(react@18.1.0) + version: 2.3.9(react-dom@18.3.1)(react@18.3.1) '@testing-library/react': specifier: ^14.0.0 - version: 14.0.0(react-dom@18.1.0)(react@18.1.0) + version: 14.0.0(react-dom@18.3.1)(react@18.3.1) '@umijs/max': specifier: workspace:* version: link:../../packages/max ahooks: specifier: ^3.7.4 - version: 3.7.4(react@18.1.0) + version: 3.7.4(react@18.3.1) antd: specifier: ^4.24.7 - version: 4.24.7(react-dom@18.1.0)(react@18.1.0) + version: 4.24.7(react-dom@18.3.1)(react@18.3.1) bizcharts: specifier: ^4.1.22 - version: 4.1.22(react@18.1.0) + version: 4.1.22(react@18.3.1) bizcharts-plugin-slider: specifier: ^3.0.1 - version: 3.0.1(bizcharts@4.1.22)(react-dom@18.1.0)(react@18.1.0) + version: 3.0.1(bizcharts@4.1.22)(react-dom@18.3.1)(react@18.3.1) classnames: specifier: ^2.3.1 version: 2.3.1 @@ -291,10 +289,10 @@ importers: version: 1.11.7 gg-editor: specifier: 3.1.3 - version: 3.1.3(react-dom@18.1.0)(react@18.1.0) + version: 3.1.3(react-dom@18.3.1)(react@18.3.1) jest: specifier: ^29.4.3 - version: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + version: 29.4.3(@types/node@18.19.39)(ts-node@10.9.2) jest-environment-jsdom: specifier: ^29.4.3 version: 29.4.3 @@ -324,10 +322,10 @@ importers: version: 0.2.1 rc-util: specifier: ^5.28.0 - version: 5.28.0(react-dom@18.1.0)(react@18.1.0) + version: 5.28.0(react-dom@18.3.1)(react@18.3.1) react-fittext: specifier: ^1.0.0 - version: 1.0.0(react-dom@18.1.0)(react@18.1.0) + version: 1.0.0(react-dom@18.3.1)(react@18.3.1) examples/antd-pro-create: dependencies: @@ -369,7 +367,7 @@ importers: version: 17.0.2 react-dev-inspector: specifier: ^1.8.4 - version: 1.8.4(eslint@8.35.0)(react@17.0.2)(typescript@4.9.4) + version: 1.8.4(eslint@8.35.0)(react@17.0.2)(typescript@4.9.5) react-dom: specifier: ^17.0.0 version: 17.0.2(react@17.0.2) @@ -449,12 +447,9 @@ importers: swagger-ui-dist: specifier: ^4.14.2 version: 4.15.0 - typescript: - specifier: ^4.9.4 - version: 4.9.4 umi-presets-pro: - specifier: ^1.0.5 - version: 1.0.7(@types/node@18.11.18)(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4) + specifier: ^2.0.3 + version: 2.0.3(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2)(umi@packages+umi) umi-serve: specifier: ^1.9.11 version: 1.9.11 @@ -581,7 +576,7 @@ importers: version: link:../../packages/plugins antd: specifier: ^5.3.0 - version: 5.4.5(react-dom@18.1.0)(react@18.1.0) + version: 5.4.5(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -596,16 +591,16 @@ importers: dependencies: '@ant-design/icons': specifier: ^4.7.0 - version: 4.7.0(react-dom@18.1.0)(react@18.1.0) + version: 4.7.0(react-dom@18.3.1)(react@18.3.1) '@ant-design/pro-components': specifier: ^2.0.1 - version: 2.3.4(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + version: 2.3.4(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@umijs/max': specifier: workspace:* version: link:../../packages/max antd: specifier: ^4.24.7 - version: 4.24.7(react-dom@18.1.0)(react@18.1.0) + version: 4.24.7(react-dom@18.3.1)(react@18.3.1) devDependencies: '@types/react': specifier: ^18.0.26 @@ -627,16 +622,13 @@ importers: version: 2.8.4 prettier-plugin-organize-imports: specifier: ^3.2.2 - version: 3.2.2(prettier@2.8.4)(typescript@4.9.4) + version: 3.2.2(prettier@2.8.4)(typescript@4.9.5) prettier-plugin-packagejson: specifier: ^2.4.3 version: 2.4.3(prettier@2.8.4) start-server-and-test: specifier: ^1.15.2 version: 1.15.2 - typescript: - specifier: ^4.9.4 - version: 4.9.4 examples/create-umi-simple: dependencies: @@ -659,9 +651,6 @@ importers: start-server-and-test: specifier: ^1.15.2 version: 1.15.2 - typescript: - specifier: ^4.9.4 - version: 4.9.4 examples/diff-client-loader: dependencies: @@ -683,10 +672,10 @@ importers: dependencies: '@codesandbox/sandpack-react': specifier: 1.0.1 - version: 1.0.1(react-dom@18.1.0)(react@18.1.0) + version: 1.0.1(react-dom@18.3.1)(react@18.3.1) antd: specifier: 4.20.6 - version: 4.20.6(react-dom@18.1.0)(react@18.1.0) + version: 4.20.6(react-dom@18.3.1)(react@18.3.1) axios: specifier: ^0.27.2 version: 0.27.2(debug@4.3.4) @@ -698,10 +687,10 @@ importers: version: 3.1.3 framer-motion: specifier: 10.0.0 - version: 10.0.0(react-dom@18.1.0)(react@18.1.0) + version: 10.0.0(react-dom@18.3.1)(react@18.3.1) react-redux: specifier: ^8.0.5 - version: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0)(redux@4.2.1) + version: 8.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(redux@4.2.1) redux: specifier: ^4.2.1 version: 4.2.1 @@ -709,8 +698,8 @@ importers: specifier: ^8.4.5 version: 8.4.5 swr: - specifier: 2.0.4 - version: 2.0.4(react@18.1.0) + specifier: ^2.2.5 + version: 2.2.5(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -731,20 +720,29 @@ importers: dependencies: '@ant-design/icons': specifier: ^4.7.0 - version: 4.7.0(react-dom@18.1.0)(react@18.1.0) + version: 4.7.0(react-dom@18.3.1)(react@18.3.1) '@umijs/max': specifier: workspace:* version: link:../../packages/max antd: specifier: ^4.23.2 - version: 4.23.2(react-dom@18.1.0)(react@18.1.0) + version: 4.23.2(react-dom@18.3.1)(react@18.3.1) + dayjs: + specifier: ^1.11.7 + version: 1.11.7 react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) devDependencies: + '@iconify-json/ic': + specifier: 1.1.17 + version: 1.1.17 + '@iconify-json/solar': + specifier: 1.1.9 + version: 1.1.9 cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -756,7 +754,7 @@ importers: version: 1.15.2 tailwindcss: specifier: ^3.2.4 - version: 3.2.4(ts-node@10.9.1) + version: 3.2.4(ts-node@10.9.2) examples/mf-host: dependencies: @@ -764,11 +762,11 @@ importers: specifier: workspace:* version: link:../../packages/max react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) devDependencies: cross-env: specifier: ^7.0.3 @@ -786,11 +784,11 @@ importers: specifier: workspace:* version: link:../../packages/max react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) devDependencies: cross-env: specifier: ^7.0.3 @@ -847,9 +845,6 @@ importers: start-server-and-test: specifier: ^1.15.2 version: 1.15.2 - typescript: - specifier: ^4.9.4 - version: 4.9.4 wait-on: specifier: ^6.0.1 version: 6.0.1(debug@4.3.4) @@ -861,7 +856,7 @@ importers: version: link:../x-design antd: specifier: 4.20.2 - version: 4.20.2(react-dom@18.1.0)(react@18.1.0) + version: 4.20.2(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -882,17 +877,17 @@ importers: version: 18.1.0(react@18.1.0) devDependencies: '@babel/core': - specifier: ^7.21.0 - version: 7.21.0 + specifier: ^7.23.6 + version: 7.23.6 '@babel/preset-env': - specifier: ^7.20.2 - version: 7.20.2(@babel/core@7.21.0) + specifier: ^7.23.6 + version: 7.23.6(@babel/core@7.23.6) '@babel/preset-react': - specifier: ^7.18.6 - version: 7.18.6(@babel/core@7.21.0) + specifier: ^7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/preset-typescript': - specifier: ^7.21.0 - version: 7.21.0(@babel/core@7.21.0) + specifier: ^7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@types/react': specifier: ^18.0.26 version: 18.0.26 @@ -903,8 +898,8 @@ importers: specifier: workspace:* version: link:../../packages/mfsu babel-loader: - specifier: ^9.1.2 - version: 9.1.2(@babel/core@7.21.0)(webpack@5.75.0) + specifier: ^9.1.3 + version: 9.1.3(@babel/core@7.23.6)(webpack@5.75.0) esbuild: specifier: 0.17.19 version: 0.17.19 @@ -937,17 +932,17 @@ importers: version: 18.1.0(react@18.1.0) devDependencies: '@babel/core': - specifier: ^7.21.0 - version: 7.21.0 + specifier: ^7.23.6 + version: 7.23.6 '@babel/preset-env': - specifier: ^7.20.2 - version: 7.20.2(@babel/core@7.21.0) + specifier: ^7.23.6 + version: 7.23.6(@babel/core@7.23.6) '@babel/preset-react': - specifier: ^7.18.6 - version: 7.18.6(@babel/core@7.21.0) + specifier: ^7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/preset-typescript': - specifier: ^7.21.0 - version: 7.21.0(@babel/core@7.21.0) + specifier: ^7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@types/react': specifier: ^18.0.26 version: 18.0.26 @@ -958,8 +953,8 @@ importers: specifier: workspace:* version: link:../../packages/mfsu babel-loader: - specifier: ^9.1.2 - version: 9.1.2(@babel/core@7.21.0)(webpack@5.75.0) + specifier: ^9.1.3 + version: 9.1.3(@babel/core@7.23.6)(webpack@5.75.0) cross-env: specifier: ^7.0.3 version: 7.0.3 @@ -1007,7 +1002,7 @@ importers: version: 1.4.2 tailwindcss: specifier: ^3.2.4 - version: 3.2.4(ts-node@10.9.1) + version: 3.2.4(ts-node@10.9.2) umi: specifier: workspace:* version: link:../../packages/umi @@ -1034,7 +1029,7 @@ importers: dependencies: antd: specifier: ^5.6.0-alpha.0 - version: 5.6.0(moment@2.29.4)(react-dom@18.1.0)(react@18.1.0) + version: 5.6.0(moment@2.29.4)(react-dom@18.3.1)(react@18.3.1) lodash.uppercase: specifier: ^4.3.0 version: 4.3.0 @@ -1063,9 +1058,6 @@ importers: start-server-and-test: specifier: ^1.15.2 version: 1.15.2 - typescript: - specifier: ^4.9.4 - version: 4.9.4 wait-on: specifier: ^6.0.1 version: 6.0.1(debug@4.3.4) @@ -1079,11 +1071,11 @@ importers: specifier: ^2.10.1 version: 2.10.1 react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) devDependencies: cross-env: specifier: ^7.0.3 @@ -1095,11 +1087,11 @@ importers: specifier: workspace:* version: link:../../packages/max react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) devDependencies: cross-env: specifier: ^7.0.3 @@ -1117,11 +1109,11 @@ importers: specifier: workspace:* version: link:../../packages/max react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) examples/remix: dependencies: @@ -1135,8 +1127,26 @@ importers: specifier: workspace:* version: link:../../packages/umi + examples/ssg-basename: + dependencies: + umi: + specifier: workspace:* + version: link:../../packages/umi + + examples/ssr-basename: + dependencies: + umi: + specifier: workspace:* + version: link:../../packages/umi + examples/ssr-demo: dependencies: + '@ant-design/cssinjs': + specifier: ^1.18.5 + version: 1.21.0(react-dom@18.3.1)(react@18.3.1) + antd: + specifier: ^5 + version: 5.8.4(react-dom@18.3.1)(react@18.3.1) express: specifier: 4.18.2 version: 4.18.2 @@ -1155,15 +1165,22 @@ importers: examples/ssr-todos: dependencies: - express: - specifier: 4.18.2 - version: 4.18.2 - isomorphic-unfetch: - specifier: ^4.0.2 - version: 4.0.2 + axios: + specifier: ^1.6.2 + version: 1.6.3 umi: specifier: workspace:* version: link:../../packages/umi + devDependencies: + '@types/express': + specifier: ^4.17.21 + version: 4.17.21 + cors: + specifier: ^2.8.5 + version: 2.8.5 + express: + specifier: 4.18.2 + version: 4.18.2 examples/ssr-webpack: dependencies: @@ -1194,7 +1211,7 @@ importers: version: 5.16.5 '@testing-library/react': specifier: ^14.0.0 - version: 14.0.0(react-dom@18.1.0)(react@18.1.0) + version: 14.0.0(react-dom@18.3.1)(react@18.3.1) '@types/jest': specifier: ^29.2.5 version: 29.2.5 @@ -1203,13 +1220,10 @@ importers: version: 5.14.5 jest: specifier: ^29.4.3 - version: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + version: 29.4.3(@types/node@18.19.39)(ts-node@10.9.1) ts-node: specifier: ^10 - version: 10.9.1(@types/node@18.11.18)(typescript@4.9.4) - typescript: - specifier: ^4.9.4 - version: 4.9.4 + version: 10.9.1(@types/node@18.19.39)(typescript@4.9.5) examples/test-vitest: dependencies: @@ -1225,10 +1239,7 @@ importers: version: 3.0.1 react-test-renderer: specifier: ^18.2.0 - version: 18.2.0(react@18.1.0) - typescript: - specifier: ^4.9.4 - version: 4.9.4 + version: 18.2.0(react@18.3.1) vitest: specifier: ^0.16.0 version: 0.16.0 @@ -1243,7 +1254,7 @@ importers: dependencies: '@umijs/plugin-umi-request-compat': specifier: 1.0.0 - version: 1.0.0(react@18.1.0)(umi@packages+umi) + version: 1.0.0(react@18.3.1)(umi@packages+umi) umi: specifier: workspace:* version: link:../../packages/umi @@ -1258,7 +1269,7 @@ importers: dependencies: antd: specifier: ^4.20.6 - version: 4.24.1(react-dom@18.1.0)(react@18.1.0) + version: 4.24.1(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1302,19 +1313,22 @@ importers: version: link:../../packages/plugins antd: specifier: ^4.20.6 - version: 4.21.3(react-dom@18.1.0)(react@18.1.0) + version: 4.21.3(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi examples/with-antd-5: dependencies: + '@ant-design/cssinjs': + specifier: ^1.16.0 + version: 1.16.0(react-dom@18.3.1)(react@18.3.1) '@umijs/plugins': specifier: workspace:* version: link:../../packages/plugins antd: - specifier: ^5.3.0 - version: 5.3.0(react-dom@18.1.0)(react@18.1.0) + specifier: ^5.8.4 + version: 5.8.4(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1335,10 +1349,10 @@ importers: version: 11.9.3 '@emotion/react': specifier: ^11.9.0 - version: 11.10.4(@types/react@18.0.26)(react@18.1.0) + version: 11.10.4(@types/react@18.3.3)(react@18.3.1) '@emotion/styled': specifier: ^11.8.1 - version: 11.10.4(@emotion/react@11.10.4)(@types/react@18.0.26)(react@18.1.0) + version: 11.10.4(@emotion/react@11.10.4)(@types/react@18.3.3)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1350,7 +1364,7 @@ importers: version: 6.8.0 mobx-react: specifier: ^7.6.0 - version: 7.6.0(mobx@6.8.0)(react-dom@18.1.0)(react@18.1.0) + version: 7.6.0(mobx@6.8.0)(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1376,15 +1390,12 @@ importers: '@types/react-dom': specifier: ^18.0.10 version: 18.0.10 - typescript: - specifier: ^4.9.4 - version: 4.9.4 examples/with-monaco-editor-react: dependencies: '@monaco-editor/react': specifier: ^4.4.6 - version: 4.4.6(react-dom@18.1.0)(react@18.1.0) + version: 4.4.6(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1395,9 +1406,28 @@ importers: '@types/react-dom': specifier: ^18.0.10 version: 18.0.10 - typescript: - specifier: ^4.9.4 - version: 4.9.4 + + examples/with-no-compress-for-sse: + dependencies: + umi: + specifier: workspace:* + version: link:../../packages/umi + devDependencies: + cross-env: + specifier: ^7.0.3 + version: 7.0.3 + + examples/with-react-16: + dependencies: + react: + specifier: ^16.14.0 + version: 16.14.0 + react-dom: + specifier: ^16.14.0 + version: 16.14.0(react@16.14.0) + umi: + specifier: workspace:* + version: link:../../packages/umi examples/with-react-17: dependencies: @@ -1417,14 +1447,26 @@ importers: specifier: workspace:* version: link:../../packages/umi + examples/with-react-query-v5: + dependencies: + '@tanstack/react-query': + specifier: ^5.28.6 + version: 5.28.6(react@18.3.1) + '@tanstack/react-query-devtools': + specifier: ^5.28.6 + version: 5.28.6(@tanstack/react-query@5.28.6)(react@18.3.1) + umi: + specifier: workspace:* + version: link:../../packages/umi + examples/with-react-three-fiber: dependencies: '@react-three/drei': specifier: ^9.56.27 - version: 9.56.27(@react-three/fiber@8.11.5)(@types/three@0.148.0)(react-dom@18.1.0)(react@18.1.0)(three@0.148.0) + version: 9.56.27(@react-three/fiber@8.11.5)(@types/three@0.148.0)(react-dom@18.3.1)(react@18.3.1)(three@0.148.0) '@react-three/fiber': specifier: ^8.11.5 - version: 8.11.5(react-dom@18.1.0)(react@18.1.0)(three@0.148.0) + version: 8.11.5(react-dom@18.3.1)(react@18.3.1)(three@0.148.0) '@types/three': specifier: ^0.148.0 version: 0.148.0 @@ -1442,7 +1484,7 @@ importers: dependencies: recoil: specifier: ^0.7.6 - version: 0.7.6(react-dom@18.1.0)(react@18.1.0) + version: 0.7.6(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1451,7 +1493,7 @@ importers: dependencies: react-redux: specifier: ^8.0.5 - version: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0)(redux@4.2.1) + version: 8.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(redux@4.2.1) redux: specifier: ^4.2.1 version: 4.2.1 @@ -1463,10 +1505,10 @@ importers: dependencies: '@reduxjs/toolkit': specifier: ^1.9.3 - version: 1.9.3(react-redux@8.0.5)(react@18.1.0) + version: 1.9.3(react-redux@8.0.5)(react@18.3.1) react-redux: specifier: ^8.0.5 - version: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0)(redux@4.2.1) + version: 8.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(redux@4.2.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1478,7 +1520,7 @@ importers: version: 2.2.0 react-redux: specifier: ^8.0.5 - version: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0)(redux@4.2.1) + version: 8.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(redux@4.2.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1498,9 +1540,6 @@ importers: '@types/react-dom': specifier: ^18.0.10 version: 18.0.10 - typescript: - specifier: ^4.9.4 - version: 4.9.4 examples/with-sass: dependencies: @@ -1517,18 +1556,34 @@ importers: sass: specifier: ^1.57.1 version: 1.57.1 - typescript: - specifier: ^4.9.4 - version: 4.9.4 examples/with-styled-components: dependencies: '@umijs/plugins': specifier: workspace:* version: link:../../packages/plugins + styled-components: + specifier: 6.1.1 + version: 6.1.1(react-dom@18.3.1)(react@18.3.1) + umi: + specifier: workspace:* + version: link:../../packages/umi + + examples/with-stylus: + dependencies: umi: specifier: workspace:* version: link:../../packages/umi + devDependencies: + '@types/react': + specifier: ^18.0.26 + version: 18.2.6 + '@types/react-dom': + specifier: ^18.0.10 + version: 18.0.10 + stylus: + specifier: ^0.60.0 + version: 0.60.0 examples/with-tailwindcss: dependencies: @@ -1537,7 +1592,7 @@ importers: version: link:../../packages/plugins tailwindcss: specifier: ^3.2.4 - version: 3.2.4(ts-node@10.9.1) + version: 3.2.4(ts-node@10.9.2) umi: specifier: workspace:* version: link:../../packages/umi @@ -1621,7 +1676,7 @@ importers: version: link:../../packages/preset-vue pinia: specifier: ^2.0.28 - version: 2.0.28(typescript@4.9.4)(vue@3.2.45) + version: 2.0.28(typescript@4.9.5)(vue@3.2.45) umi: specifier: workspace:* version: link:../../packages/umi @@ -1636,7 +1691,7 @@ importers: version: link:../../packages/plugins antd: specifier: ^4.20.6 - version: 4.24.7(react-dom@18.1.0)(react@18.1.0) + version: 4.24.7(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../../packages/umi @@ -1657,17 +1712,14 @@ importers: '@types/react-dom': specifier: ^18.0.10 version: 18.0.10 - typescript: - specifier: ^4.9.4 - version: 4.9.4 examples/x-design: {} libs/valtio: dependencies: valtio: - specifier: 1.10.5 - version: 1.10.5(react@18.1.0) + specifier: 1.11.2 + version: 1.11.2(@types/react@18.3.3)(react@18.3.1) packages/ast: dependencies: @@ -1678,8 +1730,8 @@ importers: packages/babel-preset-umi: dependencies: '@babel/runtime': - specifier: 7.21.0 - version: 7.21.0 + specifier: 7.23.6 + version: 7.23.6 '@bloomberg/record-tuple-polyfill': specifier: 0.0.4 version: 0.0.4 @@ -1689,12 +1741,9 @@ importers: '@umijs/utils': specifier: workspace:* version: link:../utils - babel-plugin-styled-components: - specifier: 2.1.1 - version: 2.1.1(styled-components@6.0.0-rc.0) core-js: - specifier: 3.28.0 - version: 3.28.0 + specifier: 3.34.0 + version: 3.34.0 packages/bundler-esbuild: dependencies: @@ -1727,108 +1776,108 @@ importers: specifier: workspace:* version: link:../utils esbuild: - specifier: 0.17.19 - version: 0.17.19 + specifier: 0.21.4 + version: 0.21.4 regenerate: specifier: ^1.4.2 version: 1.4.2 regenerate-unicode-properties: - specifier: 10.1.0 - version: 10.1.0 + specifier: 10.1.1 + version: 10.1.1 spdy: specifier: ^4.0.2 version: 4.0.2 devDependencies: '@babel/code-frame': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.23.5 + version: 7.23.5 '@babel/core': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.23.6 + version: 7.23.6 '@babel/generator': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.23.6 + version: 7.23.6 '@babel/helper-module-imports': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.22.15 + version: 7.22.15 '@babel/parser': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.23.6 + version: 7.23.6 '@babel/plugin-proposal-decorators': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.6 + version: 7.23.6(@babel/core@7.23.6) '@babel/plugin-proposal-do-expressions': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-proposal-export-default-from': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-proposal-function-bind': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-proposal-partial-application': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-proposal-pipeline-operator': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-proposal-record-and-tuple': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-transform-class-properties': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-transform-export-namespace-from': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.4 + version: 7.23.4(@babel/core@7.23.6) '@babel/plugin-transform-private-methods': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/plugin-transform-private-property-in-object': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.4 + version: 7.23.4(@babel/core@7.23.6) '@babel/plugin-transform-runtime': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.6 + version: 7.23.6(@babel/core@7.23.6) '@babel/preset-env': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.6 + version: 7.23.6(@babel/core@7.23.6) '@babel/preset-react': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/preset-typescript': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@babel/register': - specifier: 7.22.5 - version: 7.22.5(@babel/core@7.22.5) + specifier: 7.22.15 + version: 7.22.15(@babel/core@7.23.6) '@babel/template': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.22.15 + version: 7.22.15 '@babel/traverse': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.23.6 + version: 7.23.6 '@babel/types': - specifier: 7.22.5 - version: 7.22.5 + specifier: 7.23.6 + version: 7.23.6 '@types/babel__code-frame': - specifier: 7.0.3 - version: 7.0.3 + specifier: 7.0.6 + version: 7.0.6 '@types/babel__core': - specifier: 7.20.1 - version: 7.20.1 + specifier: 7.20.5 + version: 7.20.5 '@types/babel__generator': - specifier: 7.6.4 - version: 7.6.4 + specifier: 7.6.8 + version: 7.6.8 '@types/babel__parser': specifier: 7.1.1 version: 7.1.1 '@types/babel__template': - specifier: 7.4.1 - version: 7.4.1 + specifier: 7.4.4 + version: 7.4.4 '@types/babel__traverse': - specifier: 7.20.1 - version: 7.20.1 + specifier: 7.20.4 + version: 7.20.4 '@types/express': specifier: 4.17.17 version: 4.17.17 @@ -1870,7 +1919,10 @@ importers: version: link:../utils '@vitejs/plugin-react': specifier: 4.0.0 - version: 4.0.0(vite@4.3.1) + version: 4.0.0(vite@4.5.2) + core-js: + specifier: 3.34.0 + version: 3.34.0 less: specifier: 4.1.3 version: 4.1.3 @@ -1880,22 +1932,22 @@ importers: rollup-plugin-visualizer: specifier: 5.9.0 version: 5.9.0(rollup@3.7.0) + systemjs: + specifier: ^6.14.1 + version: 6.14.2 vite: - specifier: 4.3.1 - version: 4.3.1(@types/node@18.11.18)(less@4.1.3)(sass@1.65.1) + specifier: 4.5.2 + version: 4.5.2(@types/node@18.19.39)(less@4.1.3) devDependencies: '@types/caniuse-lite': - specifier: 1.0.1 - version: 1.0.1 - '@types/svgo': - specifier: 3.0.0 - version: 3.0.0 + specifier: 1.0.5 + version: 1.0.5 '@vitejs/plugin-legacy': - specifier: 4.0.1 - version: 4.0.1(vite@4.3.1) + specifier: 4.1.1 + version: 4.1.1(vite@4.5.2) caniuse-lite: - specifier: 1.0.30001441 - version: 1.0.30001441 + specifier: 1.0.30001571 + version: 1.0.30001571 rollup: specifier: 3.7.0 version: 3.7.0 @@ -1905,9 +1957,6 @@ importers: packages/bundler-webpack: dependencies: - '@pmmmwh/react-refresh-webpack-plugin': - specifier: 0.5.10 - version: 0.5.10(react-refresh@0.14.0)(webpack@5.76.1) '@svgr/core': specifier: 6.5.1 version: 6.5.1 @@ -1932,6 +1981,9 @@ importers: '@umijs/mfsu': specifier: workspace:* version: link:../mfsu + '@umijs/react-refresh-webpack-plugin': + specifier: 0.5.11 + version: 0.5.11(react-refresh@0.14.0)(webpack@5.88.2) '@umijs/utils': specifier: workspace:* version: link:../utils @@ -1940,19 +1992,19 @@ importers: version: 2.8.5 css-loader: specifier: 6.7.1 - version: 6.7.1(webpack@5.76.1) + version: 6.7.1(webpack@5.88.2) es5-imcompatible-versions: specifier: ^0.1.78 version: 0.1.78 fork-ts-checker-webpack-plugin: specifier: 8.0.0 - version: 8.0.0(typescript@4.9.4)(webpack@5.76.1) + version: 8.0.0(typescript@4.9.5)(webpack@5.88.2) jest-worker: specifier: 29.4.3 version: 29.4.3 lightningcss: - specifier: 1.19.0 - version: 1.19.0 + specifier: 1.22.1 + version: 1.22.1 node-libs-browser: specifier: 2.2.1 version: 2.2.1 @@ -1988,8 +2040,8 @@ importers: specifier: 10.4.13 version: 10.4.13(postcss@8.4.21) babel-loader: - specifier: 9.1.2 - version: 9.1.2(webpack@5.76.1) + specifier: 9.1.3 + version: 9.1.3(webpack@5.88.2) compression: specifier: 1.7.4 version: 1.7.4 @@ -1998,43 +2050,46 @@ importers: version: 1.6.0 copy-webpack-plugin: specifier: 10.2.4 - version: 10.2.4(webpack@5.76.1) + version: 10.2.4(webpack@5.88.2) css-minimizer-webpack-plugin: - specifier: 4.0.0 - version: 4.0.0(webpack@5.76.1) + specifier: 5.0.1 + version: 5.0.1(lightningcss@1.22.1)(webpack@5.88.2) cssnano: specifier: 5.1.7 version: 5.1.7(postcss@8.4.21) file-loader: specifier: 6.2.0 - version: 6.2.0(webpack@5.76.1) + version: 6.2.0(webpack@5.88.2) less-loader: specifier: 11.1.0 - version: 11.1.0(webpack@5.76.1) + version: 11.1.0(webpack@5.88.2) mini-css-extract-plugin: specifier: 2.7.2 - version: 2.7.2(webpack@5.76.1) + version: 2.7.2(webpack@5.88.2) postcss-flexbugs-fixes: specifier: 5.0.2 version: 5.0.2(postcss@8.4.21) postcss-loader: specifier: 7.0.2 - version: 7.0.2(postcss@8.4.21)(webpack@5.76.1) + version: 7.0.2(postcss@8.4.21)(webpack@5.88.2) purgecss-webpack-plugin: specifier: 4.1.3 - version: 4.1.3(webpack@5.76.1) + version: 4.1.3(webpack@5.88.2) sass-loader: specifier: 13.2.0 - version: 13.2.0(webpack@5.76.1) + version: 13.2.0(webpack@5.88.2) schema-utils: specifier: 4.0.0 version: 4.0.0 speed-measure-webpack-plugin: specifier: 1.5.0 - version: 1.5.0(webpack@5.76.1) + version: 1.5.0(webpack@5.88.2) style-loader: specifier: 3.3.1 - version: 3.3.1(webpack@5.76.1) + version: 3.3.1(webpack@5.88.2) + stylus-loader: + specifier: 7.1.3 + version: 7.1.3(webpack@5.88.2) svgo-loader: specifier: 3.0.0 version: 3.0.0 @@ -2046,31 +2101,31 @@ importers: version: 5.16.1 terser-webpack-plugin: specifier: 5.3.6 - version: 5.3.6(@swc/core@1.3.67)(uglify-js@3.17.4)(webpack@5.76.1) + version: 5.3.6(@swc/core@1.3.67)(uglify-js@3.17.4)(webpack@5.88.2) url-loader: specifier: 4.1.1 - version: 4.1.1(file-loader@6.2.0)(webpack@5.76.1) + version: 4.1.1(file-loader@6.2.0)(webpack@5.88.2) webpack: - specifier: 5.76.1 - version: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + specifier: 5.88.2 + version: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) webpack-5-chain: - specifier: 8.0.1 - version: 8.0.1 + specifier: 8.0.2 + version: 8.0.2 webpack-bundle-analyzer: specifier: 4.7.0 version: 4.7.0 webpack-dev-middleware: specifier: 6.0.1 - version: 6.0.1(webpack@5.76.1) + version: 6.0.1(webpack@5.88.2) webpack-manifest-plugin: specifier: 5.0.0 - version: 5.0.0(webpack@5.76.1) + version: 5.0.0(webpack@5.88.2) webpack-sources: specifier: 3.2.3 version: 3.2.3 webpackbar: specifier: 5.0.2 - version: 5.0.2(webpack@5.76.1) + version: 5.0.2(webpack@5.88.2) ws: specifier: 8.12.0 version: 8.12.0 @@ -2103,32 +2158,32 @@ importers: packages/lint: dependencies: '@babel/core': - specifier: 7.21.0 - version: 7.21.0 + specifier: 7.23.6 + version: 7.23.6 '@babel/eslint-parser': - specifier: 7.19.1 - version: 7.19.1(@babel/core@7.21.0)(eslint@8.35.0) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6)(eslint@7.32.0) '@stylelint/postcss-css-in-js': specifier: ^0.38.0 version: 0.38.0(postcss-syntax@0.36.2)(postcss@8.4.21) '@typescript-eslint/eslint-plugin': - specifier: 5.48.1 - version: 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@4.9.4) + specifier: ^5.62.0 + version: 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@7.32.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: 5.48.1 - version: 5.48.1(eslint@8.35.0)(typescript@4.9.4) + specifier: ^5.62.0 + version: 5.62.0(eslint@7.32.0)(typescript@4.9.5) '@umijs/babel-preset-umi': specifier: workspace:* version: link:../babel-preset-umi eslint-plugin-jest: - specifier: 27.2.1 - version: 27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(jest@29.4.3)(typescript@4.9.4) + specifier: 27.2.3 + version: 27.2.3(@typescript-eslint/eslint-plugin@5.62.0)(jest@29.7.0)(typescript@4.9.5) eslint-plugin-react: - specifier: 7.32.2 - version: 7.32.2(eslint@8.35.0) + specifier: 7.33.2 + version: 7.33.2(eslint@7.32.0) eslint-plugin-react-hooks: specifier: 4.6.0 - version: 4.6.0(eslint@8.35.0) + version: 4.6.0(eslint@7.32.0) postcss: specifier: ^8.4.21 version: 8.4.21 @@ -2165,7 +2220,7 @@ importers: version: link:../plugins antd: specifier: ^4.20.6 - version: 4.21.3(react-dom@18.1.0)(react@18.1.0) + version: 4.21.3(react-dom@18.3.1)(react@18.3.1) eslint: specifier: 8.35.0 version: 8.35.0 @@ -2220,7 +2275,7 @@ importers: version: 1.6.2 react-helmet: specifier: ^6.1.0 - version: 6.1.0(react@18.1.0) + version: 6.1.0(react@18.3.1) rehype-pretty-code: specifier: ^0.3.1 version: 0.3.2(shiki@0.10.1) @@ -2251,7 +2306,7 @@ importers: version: 3.0.1 tailwindcss: specifier: ^3.2.4 - version: 3.2.4(ts-node@10.9.1) + version: 3.2.4(ts-node@10.9.2) umi: specifier: workspace:* version: link:../umi @@ -2259,35 +2314,35 @@ importers: packages/plugin-run: dependencies: tsx: - specifier: ^3.12.2 + specifier: 3.12.2 version: 3.12.2 packages/plugins: dependencies: '@ahooksjs/use-request': specifier: ^2.0.0 - version: 2.8.15(react@18.1.0) + version: 2.8.15(react@18.3.1) '@ant-design/antd-theme-variable': specifier: ^1.0.0 version: 1.0.0 '@ant-design/cssinjs': specifier: ^1.9.1 - version: 1.9.1(react-dom@18.1.0)(react@18.1.0) + version: 1.9.1(react-dom@18.3.1)(react@18.3.1) '@ant-design/icons': specifier: ^4.7.0 - version: 4.7.0(react-dom@18.1.0)(react@18.1.0) + version: 4.7.0(react-dom@18.3.1)(react@18.3.1) '@ant-design/moment-webpack-plugin': specifier: ^0.0.3 version: 0.0.3 '@ant-design/pro-components': specifier: ^2.0.1 - version: 2.3.4(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + version: 2.3.4(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@tanstack/react-query': specifier: ^4.24.10 - version: 4.24.10(react-dom@18.1.0)(react@18.1.0) + version: 4.24.10(react-dom@18.3.1)(react@18.3.1) '@tanstack/react-query-devtools': specifier: ^4.24.10 - version: 4.24.10(@tanstack/react-query@4.24.10)(react-dom@18.1.0)(react@18.1.0) + version: 4.24.10(@tanstack/react-query@4.24.10)(react-dom@18.3.1)(react@18.3.1) '@umijs/bundler-utils': specifier: workspace:* version: link:../bundler-utils @@ -2301,8 +2356,11 @@ importers: specifier: ^0.27.2 version: 0.27.2(debug@4.3.4) babel-plugin-import: - specifier: ^1.13.6 - version: 1.13.6 + specifier: ^1.13.8 + version: 1.13.8 + babel-plugin-styled-components: + specifier: 2.1.4 + version: 2.1.4(styled-components@6.1.1) dayjs: specifier: ^1.11.7 version: 1.11.7 @@ -2335,16 +2393,16 @@ importers: version: 2.10.1 react-intl: specifier: 3.12.1 - version: 3.12.1(react@18.1.0) + version: 3.12.1(react@18.3.1) react-redux: specifier: ^8.0.5 - version: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0)(redux@4.2.1) + version: 8.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(redux@4.2.1) redux: specifier: ^4.2.1 version: 4.2.1 styled-components: - specifier: 6.0.0-rc.0 - version: 6.0.0-rc.0(react-dom@18.1.0)(react@18.1.0) + specifier: 6.1.1 + version: 6.1.1(react-dom@18.3.1)(react@18.3.1) tslib: specifier: ^2 version: 2.4.1 @@ -2354,7 +2412,7 @@ importers: devDependencies: antd: specifier: ^4.24.1 - version: 4.24.1(react-dom@18.1.0)(react@18.1.0) + version: 4.24.1(react-dom@18.3.1)(react@18.3.1) umi: specifier: workspace:* version: link:../umi @@ -2376,6 +2434,9 @@ importers: '@umijs/bundler-esbuild': specifier: workspace:* version: link:../bundler-esbuild + '@umijs/bundler-mako': + specifier: 0.9.6 + version: 0.9.6 '@umijs/bundler-utils': specifier: workspace:* version: link:../bundler-utils @@ -2421,12 +2482,15 @@ importers: babel-plugin-dynamic-import-node: specifier: 2.3.3 version: 2.3.3 + babel-plugin-react-compiler: + specifier: 0.0.0-experimental-c23de8d-20240515 + version: 0.0.0-experimental-c23de8d-20240515 click-to-react-component: - specifier: ^1.0.8 - version: 1.0.8(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0) + specifier: 1.1.0 + version: 1.1.0(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1) core-js: - specifier: 3.28.0 - version: 3.28.0 + specifier: 3.34.0 + version: 3.34.0 current-script-polyfill: specifier: 1.0.0 version: 1.0.0 @@ -2439,24 +2503,30 @@ importers: html-webpack-plugin: specifier: 5.5.0 version: 5.5.0(webpack@5.75.0) + less-plugin-resolve: + specifier: 1.0.2 + version: 1.0.2 path-to-regexp: specifier: 1.7.0 version: 1.7.0 + postcss: + specifier: ^8.4.21 + version: 8.4.21 postcss-prefix-selector: specifier: 1.16.0 - version: 1.16.0 + version: 1.16.0(postcss@8.4.21) react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) react-router: specifier: 6.3.0 - version: 6.3.0(react@18.1.0) + version: 6.3.0(react@18.3.1) react-router-dom: specifier: 6.3.0 - version: 6.3.0(react-dom@18.1.0)(react@18.1.0) + version: 6.3.0(react-dom@18.3.1)(react@18.3.1) regenerator-runtime: specifier: 0.13.11 version: 0.13.11 @@ -2495,8 +2565,8 @@ importers: specifier: 2.0.2 version: 2.0.2 vite: - specifier: 4.3.1 - version: 4.3.1(@types/node@18.11.18)(less@4.1.3)(sass@1.65.1) + specifier: 4.5.2 + version: 4.5.2(@types/node@18.19.39)(less@4.1.3) packages/preset-vue: dependencies: @@ -2529,33 +2599,33 @@ importers: packages/renderer-react: dependencies: '@babel/runtime': - specifier: 7.21.0 - version: 7.21.0 + specifier: 7.23.6 + version: 7.23.6 '@loadable/component': specifier: 5.15.2 - version: 5.15.2(react@18.1.0) + version: 5.15.2(react@18.3.1) history: specifier: 5.3.0 version: 5.3.0 react-helmet-async: specifier: 1.3.0 - version: 1.3.0(react-dom@18.1.0)(react@18.1.0) + version: 1.3.0(react-dom@18.3.1)(react@18.3.1) react-router-dom: specifier: 6.3.0 - version: 6.3.0(react-dom@18.1.0)(react@18.1.0) + version: 6.3.0(react-dom@18.3.1)(react@18.3.1) devDependencies: react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) packages/renderer-vue: dependencies: '@babel/runtime': - specifier: 7.21.0 - version: 7.21.0 + specifier: 7.23.6 + version: 7.23.6 packages/server: dependencies: @@ -2566,20 +2636,20 @@ importers: specifier: 5.3.0 version: 5.3.0 react: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.3.1 + version: 18.3.1 react-dom: - specifier: 18.1.0 - version: 18.1.0(react@18.1.0) + specifier: 18.3.1 + version: 18.3.1(react@18.3.1) react-router-dom: specifier: 6.3.0 - version: 6.3.0(react-dom@18.1.0)(react@18.1.0) + version: 6.3.0(react-dom@18.3.1)(react@18.3.1) packages/testing: dependencies: '@babel/plugin-transform-modules-commonjs': - specifier: 7.21.2 - version: 7.21.2(@babel/core@7.21.0) + specifier: 7.23.3 + version: 7.23.3(@babel/core@7.23.6) '@jest/types': specifier: 27.5.1 version: 27.5.1 @@ -2590,11 +2660,11 @@ importers: specifier: workspace:* version: link:../utils babel-jest: - specifier: ^29.4.3 - version: 29.4.3(@babel/core@7.21.0) + specifier: ^29.7.0 + version: 29.7.0(@babel/core@7.23.6) esbuild: - specifier: 0.17.19 - version: 0.17.19 + specifier: 0.21.4 + version: 0.21.4 identity-obj-proxy: specifier: 3.0.0 version: 3.0.0 @@ -2603,20 +2673,20 @@ importers: version: 4.0.2 devDependencies: '@babel/core': - specifier: ^7.21.0 - version: 7.21.0 + specifier: ^7.23.6 + version: 7.23.6 '@jest/transform': specifier: ^28.1.3 version: 28.1.3 jest: specifier: ^29.4.3 - version: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + version: 29.4.3(@types/node@18.19.39)(ts-node@10.9.2) packages/umi: dependencies: '@babel/runtime': - specifier: 7.21.0 - version: 7.21.0 + specifier: 7.23.6 + version: 7.23.6 '@umijs/bundler-utils': specifier: workspace:* version: link:../bundler-utils @@ -2646,7 +2716,7 @@ importers: version: link:../utils prettier-plugin-organize-imports: specifier: ^3.2.2 - version: 3.2.2(prettier@2.8.4)(typescript@4.9.4) + version: 3.2.2(prettier@2.8.4)(typescript@4.9.5) prettier-plugin-packagejson: specifier: 2.4.3 version: 2.4.3(prettier@2.8.4) @@ -2816,16 +2886,13 @@ importers: version: 18.0.10 antd: specifier: ^5.2.3 - version: 5.3.0(react-dom@18.1.0)(react@18.1.0) + version: 5.3.0(react-dom@18.3.1)(react@18.3.1) rc-virtual-list: specifier: ^3.4.13 - version: 3.4.13(react-dom@18.1.0)(react@18.1.0) + version: 3.4.13(react-dom@18.3.1)(react@18.3.1) react-json-view: specifier: ^1.21.3 - version: 1.21.3(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0) - typescript: - specifier: ^4 - version: 4.9.4 + version: 1.21.3(@types/react@18.0.26)(react-dom@18.3.1)(react@18.3.1) packages: @@ -2833,6 +2900,10 @@ packages: resolution: {integrity: sha512-+u76oB43nOHrF4DDWRLWDCtci7f3QJoEBigemIdIeTi1ODqjx6Tad9NCVnPRwewWlKkVab5PlK8DCtPTyX7S8g==} dev: true + /@adobe/css-tools@4.2.0: + resolution: {integrity: sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==} + dev: true + /@ahooksjs/use-request@2.8.15(react@17.0.2): resolution: {integrity: sha512-xhVaM4fyIiAMdVFuuU5i3CFUdFa/IblF+fvITVMFaUEO3w/V5tVCAF6WIA3T03n1/RPuzRkA7Ao1PFtSGtGelw==} peerDependencies: @@ -2846,7 +2917,7 @@ packages: react: 17.0.2 dev: true - /@ahooksjs/use-request@2.8.15(react@18.1.0): + /@ahooksjs/use-request@2.8.15(react@18.3.1): resolution: {integrity: sha512-xhVaM4fyIiAMdVFuuU5i3CFUdFa/IblF+fvITVMFaUEO3w/V5tVCAF6WIA3T03n1/RPuzRkA7Ao1PFtSGtGelw==} peerDependencies: react: ^16.8.0 || ^17.0.0 @@ -2856,7 +2927,7 @@ packages: dependencies: lodash.debounce: 4.0.8 lodash.throttle: 4.1.1 - react: 18.1.0 + react: 18.3.1 dev: false /@alita/babel-transform-jsx-class@0.0.2: @@ -2876,50 +2947,53 @@ packages: react: 17.0.2 dev: true - /@alita/plugins@3.1.0(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-/PAZ3DPbXvdlh/l7LB6W0+OajzpHyOVoh9arTRRkFomlb3t1et9d+ptjjvkj2euRaeajv/LrM/02QrBss20i1w==} + /@alita/plugins@3.3.10(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-+rOo2qMiEYxyeA+1MMlOtaEAUWMvIvuqjT04feG7joOQTzfFASn8ZRpGMqmx3ti6hRETzibxbRawbjY4FL5PiQ==} dependencies: '@alita/babel-transform-jsx-class': 0.0.2 '@alita/inspx': 0.0.2(react@17.0.2) - '@alita/request': 3.1.0 - '@alita/types': 3.1.0 - '@umijs/bundler-utils': 4.0.17 - '@umijs/plugins': 4.0.17(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) - '@umijs/utils': 4.0.17 + '@alita/request': 3.1.2 + '@alita/types': 3.1.2 + '@umijs/bundler-utils': 4.1.2 + '@umijs/plugins': 4.1.2(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) + '@umijs/utils': 4.1.2 ahooks: 3.7.4(react@17.0.2) + antd-mobile-alita: 2.3.4(react-dom@17.0.2)(react@17.0.2) antd-mobile-icons: 0.2.2 - babel-plugin-import: 1.13.6 + babel-plugin-import: 1.13.8 babel-runtime-jsx-plus: 0.1.5 classnames: 2.3.2 dva-core: 2.0.4(redux@4.2.1) dva-immer: 1.0.0 dva-loading: 3.0.22(dva-core@2.0.4) history: 5.3.0 - react-helmet-async: 1.3.0(react-dom@17.0.2)(react@17.0.2) react-redux: 7.2.9(react-dom@17.0.2)(react@17.0.2) react-router-dom: 6.3.0(react-dom@17.0.2)(react@17.0.2) redux: 4.2.1 - semver: 7.3.5 + semver: 7.5.2 transitivePeerDependencies: + - '@babel/core' + - '@types/lodash.merge' - '@types/react' - '@types/react-dom' - antd - debug - dva + - rc-field-form - react - react-dom - react-native - supports-color dev: true - /@alita/request@3.1.0: - resolution: {integrity: sha512-KPJyf3UanGSI3UQzBNXNXBUdNKBOG2V3In4GwdhGQb7eSuOGTsIMPochbGEQSA3aGUDvxqaNVbcxKVBl4aGdhw==} + /@alita/request@3.1.2: + resolution: {integrity: sha512-dfe85weKdsH1Ya93CoWIauLaFE+5aQ7jCr+iR255rpsgq5LVSVgWUCF1byBlN7qWoupJdL7sS6mB0Hi2++xL2g==} dependencies: umi-request: 1.4.0 dev: true - /@alita/types@3.1.0: - resolution: {integrity: sha512-E9sUHMhFSlZsmj6ZQiDw6LxqtEdH0umWjOThiWY9ApH5YGA+yhR0jejRXCcc2j6nIPl+WfF5lHuFC9QIFMjZRg==} + /@alita/types@3.1.2: + resolution: {integrity: sha512-lCHzKcsi3LOqPyRcyijUOmC69kWf2wH4kCNWjx6fh3zI15Ssg38BjsVvrwnoTLVVk0gMZP43rUcBqA8b/jRzvA==} dev: true /@alitajs/postcss-plugin-px2rem@0.0.1: @@ -2944,12 +3018,12 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.20 /@ant-design/antd-theme-variable@1.0.0: resolution: {integrity: sha512-0vr5GCwM7xlAl6NxG1lPbABO+SYioNJL3HVy2FA8wTlsIMoZvQwcwsxTw6eLQCiN9V2UQ8kBtfz8DW8utVVE5w==} - /@ant-design/charts@1.4.2(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/charts@1.4.2(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-BcVx6AAnwxSdzAVUZReSuvUVtnT5AkJivq3wmcYj17scll26HHficg35yimGskAj3Gu1upYjBQBz6Tk7GEMJsQ==} peerDependencies: '@ant-design/icons': ^4.6.0 @@ -2965,15 +3039,15 @@ packages: react-dom: optional: true dependencies: - '@ant-design/flowchart': 1.2.1(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/graphs': 1.2.7(react-dom@18.1.0)(react@18.1.0) - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/maps': 1.0.4(react-dom@18.1.0)(react@18.1.0) - '@ant-design/plots': 1.2.1(react-dom@18.1.0)(react@18.1.0) - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + '@ant-design/flowchart': 1.2.1(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/graphs': 1.2.7(react-dom@18.3.1)(react@18.3.1) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/maps': 1.0.4(react-dom@18.3.1)(react@18.3.1) + '@ant-design/plots': 1.2.1(react-dom@18.3.1)(react@18.3.1) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) lodash: 4.17.21 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: - classnames dev: false @@ -3004,17 +3078,17 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@emotion/hash': 0.8.0 '@emotion/unitless': 0.7.5 classnames: 2.3.2 - csstype: 3.1.0 - rc-util: 5.34.0(react-dom@17.0.2)(react@17.0.2) + csstype: 3.1.3 + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) - stylis: 4.1.4 + stylis: 4.3.0 - /@ant-design/cssinjs@0.0.0-alpha.41(react-dom@18.1.0)(react@18.1.0): + /@ant-design/cssinjs@0.0.0-alpha.41(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-3NU7yKCU6daBEHtkqExgS7Vqo7BBFkuePfWV8rHunBQjTJxKzOKEBXXpu90Fl4Vdzv+wqiUGJRqecstliqEcgg==} peerDependencies: react: '>=16.0.0' @@ -3025,19 +3099,41 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@emotion/hash': 0.8.0 '@emotion/unitless': 0.7.5 classnames: 2.3.2 - csstype: 3.1.0 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - stylis: 4.1.4 + csstype: 3.1.3 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + stylis: 4.3.0 dev: false - /@ant-design/cssinjs@1.10.1(react-dom@18.1.0)(react@18.1.0): + /@ant-design/cssinjs@1.10.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-PSoJS8RMzn95ZRg007dJGr6AU0Zim/O+tTN0xmXmh9CkIl4y3wuOr2Zhehaj7s130wPSYDVvahf3DKT50w/Zhw==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@emotion/hash': 0.8.0 + '@emotion/unitless': 0.7.5 + classnames: 2.3.2 + csstype: 3.1.3 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + stylis: 4.3.0 + dev: false + + /@ant-design/cssinjs@1.16.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-T+6btUa3VoiAM1TORZmY4KxsG/L6foUNN22GmSKTt4Jcy/ydxSCTE91Kkz8bWPDBTBZ0sIvJQ+F9EkFM6TInQw==} peerDependencies: react: '>=16.0.0' react-dom: '>=16.0.0' @@ -3052,14 +3148,14 @@ packages: '@emotion/unitless': 0.7.5 classnames: 2.3.2 csstype: 3.1.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.36.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) stylis: 4.1.4 dev: false - /@ant-design/cssinjs@1.6.1(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-35+1e5h1HzPt7d7NjXTG5yg/OQY85YcOIpb3peB3/eKri7+0mW9c+WZB3In7yMscBzvxQREOR5pxNDbqMcI42w==} + /@ant-design/cssinjs@1.21.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-gIilraPl+9EoKdYxnupxjHB/Q6IHNRjEXszKbDxZdsgv4sAZ9pjkCq8yanDWNvyfjp4leir2OVAJm0vxwKK8YA==} peerDependencies: react: '>=16.0.0' react-dom: '>=16.0.0' @@ -3069,15 +3165,37 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@emotion/hash': 0.8.0 '@emotion/unitless': 0.7.5 classnames: 2.3.2 - csstype: 3.1.0 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - stylis: 4.1.4 + csstype: 3.1.3 + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + stylis: 4.3.0 + dev: true + + /@ant-design/cssinjs@1.21.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-gIilraPl+9EoKdYxnupxjHB/Q6IHNRjEXszKbDxZdsgv4sAZ9pjkCq8yanDWNvyfjp4leir2OVAJm0vxwKK8YA==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@emotion/hash': 0.8.0 + '@emotion/unitless': 0.7.5 + classnames: 2.3.2 + csstype: 3.1.3 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + stylis: 4.3.0 /@ant-design/cssinjs@1.9.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-CZt1vCMs/sY7RoacYuIkZwQmb8Bhp99ReNNE9Y8lnUzik8fmCdKAQA7ecvVOFwmNFdcBHga7ye/XIRrsbkiqWw==} @@ -3101,7 +3219,29 @@ packages: stylis: 4.1.4 dev: false - /@ant-design/flowchart@1.2.1(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/cssinjs@1.9.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-CZt1vCMs/sY7RoacYuIkZwQmb8Bhp99ReNNE9Y8lnUzik8fmCdKAQA7ecvVOFwmNFdcBHga7ye/XIRrsbkiqWw==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.21.0 + '@emotion/hash': 0.8.0 + '@emotion/unitless': 0.7.5 + classnames: 2.3.2 + csstype: 3.1.2 + rc-util: 5.30.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + stylis: 4.1.4 + dev: false + + /@ant-design/flowchart@1.2.1(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Fo0gfhSLfa3fvw8rV1pBcK2IcIeVUCYx+OwnAu10FqRGZouCSS4NfKcFTTAM5eVB1BlK6RRbFPpqZKjSskQkXA==} peerDependencies: '@ant-design/icons': ^4.6.0 @@ -3117,23 +3257,23 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) '@antv/layout': 0.1.31 '@antv/x6': 1.33.1 - '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.1.0)(react@18.1.0) - '@antv/xflow': 1.0.51(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0) - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.3.1)(react@18.3.1) + '@antv/xflow': 1.0.51(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) lodash: 4.17.21 - react: 18.1.0 - react-color: 2.17.3(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) - react-use: 17.3.1(react-dom@18.1.0)(react@18.1.0) + react: 18.3.1 + react-color: 2.17.3(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) + react-use: 17.3.1(react-dom@18.3.1)(react@18.3.1) transitivePeerDependencies: - classnames dev: false - /@ant-design/graphs@1.2.7(react-dom@18.1.0)(react@18.1.0): + /@ant-design/graphs@1.2.7(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-SOF6DxRogcwuC/qQeJEZiKJelH/ZPC8zmm7PIc4bvDJ1J19QKbgN/vUR2Ia27O0lJ2z9DdBOFFoQ3Eum6u1t/Q==} peerDependencies: react: '>=16.8.4' @@ -3146,14 +3286,17 @@ packages: dependencies: '@antv/g6': 4.8.7 '@antv/util': 2.0.17 - react: 18.1.0 - react-content-loader: 5.1.4(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-content-loader: 5.1.4(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) dev: false /@ant-design/icons-svg@4.2.1: resolution: {integrity: sha512-EB0iwlKDGpG93hW8f85CTJTs4SvMX7tt5ceupvhALp1IF44SeUFOMhKUOYqpsoYWQKAOuTRDMqn75rEaKDp0Xw==} + /@ant-design/icons-svg@4.3.1: + resolution: {integrity: sha512-4QBZg8ccyC6LPIRii7A0bZUk3+lEDCLnhB+FVsflGdcWPPmV+j3fire4AwwoqHV/BibgvBmR9ZIo4s867smv+g==} + /@ant-design/icons@4.7.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-aoB4Z7JA431rt6d4u+8xcNPPCrdufSRMUOpxa1ab6mz1JCQZOEVolj2WVs/tDFmN62zzK30mNelEsprLYsSF3g==} engines: {node: '>=8'} @@ -3168,7 +3311,7 @@ packages: dependencies: '@ant-design/colors': 6.0.0 '@ant-design/icons-svg': 4.2.1 - '@babel/runtime': 7.20.7 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -3188,11 +3331,32 @@ packages: dependencies: '@ant-design/colors': 6.0.0 '@ant-design/icons-svg': 4.2.1 - '@babel/runtime': 7.20.7 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /@ant-design/icons@4.7.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-aoB4Z7JA431rt6d4u+8xcNPPCrdufSRMUOpxa1ab6mz1JCQZOEVolj2WVs/tDFmN62zzK30mNelEsprLYsSF3g==} + engines: {node: '>=8'} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@ant-design/colors': 6.0.0 + '@ant-design/icons-svg': 4.2.1 + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /@ant-design/icons@5.0.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-ZyF4ksXCcdtwA/1PLlnFLcF/q8/MhwxXhKHh4oCHDA4Ip+ZzAHoICtyp4wZWfiCVDP0yuz3HsjyvuldHFb3wjA==} @@ -3213,9 +3377,10 @@ packages: rc-util: 5.30.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /@ant-design/icons@5.1.4(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-YHKL7Jx3bM12OxvtiYDon04BsBT/6LGitYEqar3GljzWaAyMOAD8i/uF1Rsi5Us/YNdWWXBGSvZV2OZWMpJlcA==} + /@ant-design/icons@5.0.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-ZyF4ksXCcdtwA/1PLlnFLcF/q8/MhwxXhKHh4oCHDA4Ip+ZzAHoICtyp4wZWfiCVDP0yuz3HsjyvuldHFb3wjA==} engines: {node: '>=8'} peerDependencies: react: '>=16.0.0' @@ -3230,12 +3395,54 @@ packages: '@ant-design/icons-svg': 4.2.1 '@babel/runtime': 7.21.0 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.30.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /@ant-design/icons@5.1.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-YHKL7Jx3bM12OxvtiYDon04BsBT/6LGitYEqar3GljzWaAyMOAD8i/uF1Rsi5Us/YNdWWXBGSvZV2OZWMpJlcA==} + engines: {node: '>=8'} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@ant-design/colors': 7.0.0 + '@ant-design/icons-svg': 4.3.1 + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /@ant-design/icons@5.2.5(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-9Jc59v5fl5dzmxqLWtRev3dJwU7Ya9ZheoI6XmZjZiQ7PRtk77rC+Rbt7GJzAPPg43RQ4YO53RE1u8n+Et97vQ==} + engines: {node: '>=8'} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@ant-design/colors': 7.0.0 + '@ant-design/icons-svg': 4.3.1 + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + lodash.camelcase: 4.3.0 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /@ant-design/maps@1.0.4(react-dom@18.1.0)(react@18.1.0): + /@ant-design/maps@1.0.4(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-wYvdnVZuKzbFmpoxVEuwR1xz5hKxZPnwcxsjbbp7IJZ78gwgtN0rOsLR4wNB0M63E7mpiHlDVR94LqqQoeMfsA==} peerDependencies: react: '>=16.8.4' @@ -3248,16 +3455,15 @@ packages: dependencies: '@antv/l7plot': 0.0.13 '@antv/util': 2.0.17 - react: 18.1.0 - react-content-loader: 5.1.4(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-content-loader: 5.1.4(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) dev: false /@ant-design/moment-webpack-plugin@0.0.3: resolution: {integrity: sha512-MLm1FUpg02fP615ShQnCUN9la2E4RylDxKyolkGqAWTIHO4HyGM0A5x71AMALEyP/bC+UEEWBGSQ+D4/8hQ+ww==} - dev: false - /@ant-design/plots@1.2.1(react-dom@18.1.0)(react@18.1.0): + /@ant-design/plots@1.2.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-wbcmhHRkVi7IFyqzVNUozcJtIpgWHOFHbny5T+DLQoE2lzh+A1nTOfhlPJXc6aq56uIg6w+4iN/umsJKUmcLPw==} peerDependencies: react: '>=16.8.4' @@ -3269,9 +3475,9 @@ packages: optional: true dependencies: '@antv/g2plot': 2.4.20 - react: 18.1.0 - react-content-loader: 5.1.4(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-content-loader: 5.1.4(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) dev: false /@ant-design/pro-card@2.0.15(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): @@ -3291,12 +3497,12 @@ packages: antd: 4.23.6(react-dom@17.0.2)(react@17.0.2) classnames: 2.3.2 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 transitivePeerDependencies: - react-dom - /@ant-design/pro-card@2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-card@2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-nuaua3yZ3B+Gcp+gfRJOKIe3FE3EqxSrlRtemxOq20Jcrw/Qi6jVDr/DyTk0q/dcF/TlZmH1qKkQK10ekHKCFw==} peerDependencies: antd: '>=4.20.0' @@ -3307,19 +3513,19 @@ packages: react: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 transitivePeerDependencies: - react-dom dev: false - /@ant-design/pro-card@2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-card@2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-nuaua3yZ3B+Gcp+gfRJOKIe3FE3EqxSrlRtemxOq20Jcrw/Qi6jVDr/DyTk0q/dcF/TlZmH1qKkQK10ekHKCFw==} peerDependencies: antd: '>=4.20.0' @@ -3330,14 +3536,14 @@ packages: react: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 transitivePeerDependencies: - react-dom dev: false @@ -3370,7 +3576,7 @@ packages: prettier: 2.8.8 rimraf: 3.0.2 semver: 7.3.7 - typescript: 4.9.4 + typescript: 4.9.5 umi-utils: 1.7.3 yargs-parser: 20.2.9 transitivePeerDependencies: @@ -3414,7 +3620,7 @@ packages: - '@types/lodash.merge' - rc-field-form - /@ant-design/pro-components@2.3.4(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-components@2.3.4(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-mGuDNCtpJVMhIH0JVAL5Mgm+OQSZUZG4nsT/YmkLteZqvtT0hbbdm0JA+KgHDvFtgMuc+Ug4XHh5X+23p9/y0w==} peerDependencies: antd: '>=4.20.0' @@ -3428,26 +3634,26 @@ packages: react-dom: optional: true dependencies: - '@ant-design/pro-card': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-descriptions': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-form': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-layout': 7.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-list': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-skeleton': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-table': 3.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/pro-card': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-descriptions': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-form': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-layout': 7.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-list': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-skeleton': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-table': 3.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.18.9 - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' - rc-field-form dev: false - /@ant-design/pro-components@2.3.4(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-components@2.3.4(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-mGuDNCtpJVMhIH0JVAL5Mgm+OQSZUZG4nsT/YmkLteZqvtT0hbbdm0JA+KgHDvFtgMuc+Ug4XHh5X+23p9/y0w==} peerDependencies: antd: '>=4.20.0' @@ -3461,20 +3667,20 @@ packages: react-dom: optional: true dependencies: - '@ant-design/pro-card': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-descriptions': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-form': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-layout': 7.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-list': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-skeleton': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-table': 3.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/pro-card': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-descriptions': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-form': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-layout': 7.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-list': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-skeleton': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-table': 3.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.18.9 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' - rc-field-form @@ -3493,7 +3699,7 @@ packages: '@ant-design/pro-skeleton': 2.0.4(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) '@ant-design/pro-utils': 2.2.7(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) '@babel/runtime': 7.21.0 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 use-json-comparison: 1.0.6(react@17.0.2) transitivePeerDependencies: @@ -3502,7 +3708,7 @@ packages: - rc-field-form - react-dom - /@ant-design/pro-descriptions@2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-descriptions@2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-15TRYKku5OgzflPolAYs/HOnw+YLsWF0e7TiHo0vUsmQbYwlzbAJAWYAHLP6hC2QtE25fZkM86LuaZ4Jo21/8Q==} peerDependencies: react: '>=16.9.0' @@ -3510,14 +3716,14 @@ packages: react: optional: true dependencies: - '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-form': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-skeleton': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-form': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-skeleton': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - use-json-comparison: 1.0.6(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + use-json-comparison: 1.0.6(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' - antd @@ -3525,7 +3731,7 @@ packages: - react-dom dev: false - /@ant-design/pro-descriptions@2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-descriptions@2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-15TRYKku5OgzflPolAYs/HOnw+YLsWF0e7TiHo0vUsmQbYwlzbAJAWYAHLP6hC2QtE25fZkM86LuaZ4Jo21/8Q==} peerDependencies: react: '>=16.9.0' @@ -3533,14 +3739,14 @@ packages: react: optional: true dependencies: - '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-form': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-skeleton': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-form': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-skeleton': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - use-json-comparison: 1.0.6(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + use-json-comparison: 1.0.6(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' - antd @@ -3548,7 +3754,7 @@ packages: - react-dom dev: false - /@ant-design/pro-field@2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-field@2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-zNWfN+wSQ7qZnMz56w6PPMn+zLbNwHEOnbFovYubborivp5gP83I40n/FuM1Q1zm8N5fp0VSsmR26vPjay8oJw==} peerDependencies: react: '>=16.9.0' @@ -3556,25 +3762,25 @@ packages: react: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - '@chenshuai2144/sketch-color': 1.0.8(react@18.1.0) + '@chenshuai2144/sketch-color': 1.0.8(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 lodash.omit: 4.5.0 lodash.tonumber: 4.0.3 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - swr: 1.3.0(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + swr: 1.3.0(react@18.3.1) transitivePeerDependencies: - antd - react-dom dev: false - /@ant-design/pro-field@2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-field@2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-zNWfN+wSQ7qZnMz56w6PPMn+zLbNwHEOnbFovYubborivp5gP83I40n/FuM1Q1zm8N5fp0VSsmR26vPjay8oJw==} peerDependencies: react: '>=16.9.0' @@ -3582,19 +3788,19 @@ packages: react: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - '@chenshuai2144/sketch-color': 1.0.8(react@18.1.0) + '@chenshuai2144/sketch-color': 1.0.8(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 lodash.omit: 4.5.0 lodash.tonumber: 4.0.3 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - swr: 1.3.0(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + swr: 1.3.0(react@18.3.1) transitivePeerDependencies: - antd - react-dom @@ -3618,14 +3824,14 @@ packages: lodash.omit: 4.5.0 lodash.tonumber: 4.0.3 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 swr: 1.3.0(react@17.0.2) transitivePeerDependencies: - antd - react-dom - /@ant-design/pro-form@2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-form@2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-5IjZmaAZuuAPeMJlXNCDgdCZ3U6QtgvhHwFEKIGkfg6UFw2ncF/FaC+g54wTHmbEyLp4DQ/WRFCNqRlo3d/zhA==} peerDependencies: '@types/lodash.merge': ^4.6.7 @@ -3641,25 +3847,25 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - '@umijs/use-params': 1.0.9(react@18.1.0) - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) + '@umijs/use-params': 1.0.9(react@18.3.1) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 lodash.merge: 4.6.2 omit.js: 2.0.2 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - use-json-comparison: 1.0.6(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + use-json-comparison: 1.0.6(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) dev: false - /@ant-design/pro-form@2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-form@2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-5IjZmaAZuuAPeMJlXNCDgdCZ3U6QtgvhHwFEKIGkfg6UFw2ncF/FaC+g54wTHmbEyLp4DQ/WRFCNqRlo3d/zhA==} peerDependencies: '@types/lodash.merge': ^4.6.7 @@ -3675,22 +3881,22 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - '@umijs/use-params': 1.0.9(react@18.1.0) - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + '@umijs/use-params': 1.0.9(react@18.3.1) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 lodash.merge: 4.6.2 omit.js: 2.0.2 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - use-json-comparison: 1.0.6(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + use-json-comparison: 1.0.6(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) dev: false /@ant-design/pro-form@2.2.8(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): @@ -3719,14 +3925,14 @@ packages: classnames: 2.3.2 lodash.merge: 4.6.2 omit.js: 2.0.2 - rc-resize-observer: 1.2.0(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-resize-observer: 1.3.1(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) use-json-comparison: 1.0.6(react@17.0.2) use-media-antd-query: 1.1.0(react@17.0.2) - /@ant-design/pro-layout@7.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-layout@7.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-ZAgOJjRLAH49ekmeyWPd7myj9f46zzPEdPkM+KqE+e4uvounuuSXgAkXEOJR154QsSKr9CUqx+/VG6rHDoz37Q==} peerDependencies: antd: '>=4.20.0' @@ -3740,30 +3946,30 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 '@umijs/route-utils': 2.1.1 '@umijs/ssr-darkreader': 4.9.45 - '@umijs/use-params': 1.0.9(react@18.1.0) - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) + '@umijs/use-params': 1.0.9(react@18.3.1) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 lodash.merge: 4.6.2 omit.js: 2.0.2 path-to-regexp: 2.4.0 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - swr: 1.3.0(react@18.1.0) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + swr: 1.3.0(react@18.3.1) unstated-next: 1.1.0 - use-json-comparison: 1.0.6(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + use-json-comparison: 1.0.6(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) warning: 4.0.3 dev: false - /@ant-design/pro-layout@7.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-layout@7.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-ZAgOJjRLAH49ekmeyWPd7myj9f46zzPEdPkM+KqE+e4uvounuuSXgAkXEOJR154QsSKr9CUqx+/VG6rHDoz37Q==} peerDependencies: antd: '>=4.20.0' @@ -3777,26 +3983,26 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 '@umijs/route-utils': 2.1.1 '@umijs/ssr-darkreader': 4.9.45 - '@umijs/use-params': 1.0.9(react@18.1.0) - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + '@umijs/use-params': 1.0.9(react@18.3.1) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 lodash.merge: 4.6.2 omit.js: 2.0.2 path-to-regexp: 2.4.0 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - swr: 1.3.0(react@18.1.0) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + swr: 1.3.0(react@18.3.1) unstated-next: 1.1.0 - use-json-comparison: 1.0.6(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + use-json-comparison: 1.0.6(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) warning: 4.0.3 dev: false @@ -3826,8 +4032,8 @@ packages: lodash.merge: 4.6.2 omit.js: 2.0.2 path-to-regexp: 2.4.0 - rc-resize-observer: 1.2.0(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-resize-observer: 1.3.1(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) swr: 1.3.0(react@17.0.2) @@ -3858,7 +4064,7 @@ packages: antd: 4.23.6(react-dom@17.0.2)(react@17.0.2) classnames: 2.3.2 dayjs: 1.11.7 - rc-resize-observer: 1.2.0(react-dom@17.0.2)(react@17.0.2) + rc-resize-observer: 1.3.1(react-dom@17.0.2)(react@17.0.2) rc-util: 4.21.1 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -3868,7 +4074,7 @@ packages: - '@types/lodash.merge' - rc-field-form - /@ant-design/pro-list@2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-list@2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-trtzhVvnQYLjbEyAn+PSUqpW6onpBs7hxoBQ6iFrnuNh0dOtWxDVF70EF0OeDruLMRfN5/+V0iIgDYxqLLK4Uw==} peerDependencies: antd: '>=4.20.0' @@ -3882,26 +4088,26 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-card': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-table': 3.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-card': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-table': 3.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) rc-util: 4.21.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) unstated-next: 1.1.0 - use-media-antd-query: 1.1.0(react@18.1.0) + use-media-antd-query: 1.1.0(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' - rc-field-form dev: false - /@ant-design/pro-list@2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-list@2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-trtzhVvnQYLjbEyAn+PSUqpW6onpBs7hxoBQ6iFrnuNh0dOtWxDVF70EF0OeDruLMRfN5/+V0iIgDYxqLLK4Uw==} peerDependencies: antd: '>=4.20.0' @@ -3915,26 +4121,26 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-card': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-table': 3.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-card': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-table': 3.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) rc-util: 4.21.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) unstated-next: 1.1.0 - use-media-antd-query: 1.1.0(react@18.1.0) + use-media-antd-query: 1.1.0(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' - rc-field-form dev: false - /@ant-design/pro-provider@2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-provider@2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-8n3YX2UJxpBrVDo05zsbVowXJ0ilG4MYXiNb+fACB5IZK/1Ppkgxpe7UKsAmUjnBWPrQr++06rOrrBosx1Crjw==} peerDependencies: antd: '>=4.20.0' @@ -3949,14 +4155,14 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - swr: 1.3.0(react@18.1.0) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + swr: 1.3.0(react@18.3.1) dev: false - /@ant-design/pro-provider@2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-provider@2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-8n3YX2UJxpBrVDo05zsbVowXJ0ilG4MYXiNb+fACB5IZK/1Ppkgxpe7UKsAmUjnBWPrQr++06rOrrBosx1Crjw==} peerDependencies: antd: '>=4.20.0' @@ -3971,11 +4177,11 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - swr: 1.3.0(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + swr: 1.3.0(react@18.3.1) dev: false /@ant-design/pro-provider@2.0.7(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): @@ -3994,12 +4200,12 @@ packages: dependencies: '@babel/runtime': 7.21.0 antd: 4.23.6(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) swr: 1.3.0(react@17.0.2) - /@ant-design/pro-skeleton@2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-skeleton@2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-pjUqW4JOfrYrA2eei+sL3T5u+EmHBhYansgTzy7MLMwBQs/tQG4cdayXW0gI3Ue7eRrEwn9ko1I5DRHZ1vu9oA==} peerDependencies: antd: '>=4.20.0' @@ -4014,13 +4220,13 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) dev: false - /@ant-design/pro-skeleton@2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-skeleton@2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-pjUqW4JOfrYrA2eei+sL3T5u+EmHBhYansgTzy7MLMwBQs/tQG4cdayXW0gI3Ue7eRrEwn9ko1I5DRHZ1vu9oA==} peerDependencies: antd: '>=4.20.0' @@ -4035,10 +4241,10 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) dev: false /@ant-design/pro-skeleton@2.0.4(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): @@ -4087,7 +4293,7 @@ packages: classnames: 2.3.2 dayjs: 1.11.7 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) react-sortable-hoc: 2.0.0(react-dom@17.0.2)(react@17.0.2) @@ -4097,7 +4303,7 @@ packages: transitivePeerDependencies: - '@types/lodash.merge' - /@ant-design/pro-table@3.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-table@3.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-QzUp8lUvx1zFD9xAwiZvf4yP35jtmHPU7KCdNgNJViBhztk8pQyyL9wpd2n/uUZL16JIa3Bv3kUYPgir/4S5KQ==} peerDependencies: antd: '>=4.20.0' @@ -4112,29 +4318,29 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-card': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-form': 2.0.3(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-card': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-form': 2.0.3(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-sortable-hoc: 2.0.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-sortable-hoc: 2.0.0(react-dom@18.3.1)(react@18.3.1) unstated-next: 1.1.0 - use-json-comparison: 1.0.6(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + use-json-comparison: 1.0.6(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' dev: false - /@ant-design/pro-table@3.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-table@3.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-QzUp8lUvx1zFD9xAwiZvf4yP35jtmHPU7KCdNgNJViBhztk8pQyyL9wpd2n/uUZL16JIa3Bv3kUYPgir/4S5KQ==} peerDependencies: antd: '>=4.20.0' @@ -4149,29 +4355,29 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-card': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-form': 2.0.3(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-card': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-field': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-form': 2.0.3(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-utils': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 omit.js: 2.0.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-sortable-hoc: 2.0.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-sortable-hoc: 2.0.0(react-dom@18.3.1)(react@18.3.1) unstated-next: 1.1.0 - use-json-comparison: 1.0.6(react@18.1.0) - use-media-antd-query: 1.1.0(react@18.1.0) + use-json-comparison: 1.0.6(react@18.3.1) + use-media-antd-query: 1.1.0(react@18.3.1) transitivePeerDependencies: - '@types/lodash.merge' dev: false - /@ant-design/pro-utils@2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-utils@2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-tmAWLRAKMfMCYKOzpi7u+iIJUpOP6bSubJQ3Ec02j4kw+P4afV5XZWM7/Lr709oSPxN2idCq8XGr4bYF2N8yOQ==} peerDependencies: antd: '>=4.20.0' @@ -4185,22 +4391,22 @@ packages: react-dom: optional: true dependencies: - '@ant-design/cssinjs': 0.0.0-alpha.41(react-dom@18.1.0)(react@18.1.0) - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/cssinjs': 0.0.0-alpha.41(react-dom@18.3.1)(react@18.3.1) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.1)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 '@ctrl/tinycolor': 3.4.1 - antd: 4.24.1(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-sortable-hoc: 2.0.0(react-dom@18.1.0)(react@18.1.0) - swr: 1.3.0(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-sortable-hoc: 2.0.0(react-dom@18.3.1)(react@18.3.1) + swr: 1.3.0(react@18.3.1) dev: false - /@ant-design/pro-utils@2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@ant-design/pro-utils@2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-tmAWLRAKMfMCYKOzpi7u+iIJUpOP6bSubJQ3Ec02j4kw+P4afV5XZWM7/Lr709oSPxN2idCq8XGr4bYF2N8yOQ==} peerDependencies: antd: '>=4.20.0' @@ -4214,19 +4420,19 @@ packages: react-dom: optional: true dependencies: - '@ant-design/cssinjs': 0.0.0-alpha.41(react-dom@18.1.0)(react@18.1.0) - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) + '@ant-design/cssinjs': 0.0.0-alpha.41(react-dom@18.3.1)(react@18.3.1) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/pro-provider': 2.0.2(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) '@babel/runtime': 7.21.0 '@ctrl/tinycolor': 3.4.1 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 dayjs: 1.11.7 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-sortable-hoc: 2.0.0(react-dom@18.1.0)(react@18.1.0) - swr: 1.3.0(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-sortable-hoc: 2.0.0(react-dom@18.3.1)(react@18.3.1) + swr: 1.3.0(react@18.3.1) dev: false /@ant-design/pro-utils@2.2.7(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): @@ -4247,17 +4453,17 @@ packages: '@ant-design/icons': 4.7.0(react-dom@17.0.2)(react@17.0.2) '@ant-design/pro-provider': 2.0.7(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) '@babel/runtime': 7.21.0 - '@ctrl/tinycolor': 3.4.1 + '@ctrl/tinycolor': 3.6.0 antd: 4.23.6(react-dom@17.0.2)(react@17.0.2) classnames: 2.3.2 dayjs: 1.11.7 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.36.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) react-sortable-hoc: 2.0.0(react-dom@17.0.2)(react@17.0.2) swr: 1.3.0(react@17.0.2) - /@ant-design/react-slick@0.28.4(react@18.1.0): + /@ant-design/react-slick@0.28.4(react@18.3.1): resolution: {integrity: sha512-j9eAHTn7GxbXUFNknJoHS2ceAsqrQi2j8XykjZE1IXCD8kJF+t28EvhBLniDpbOsBk/3kjalnhriTfZcjBHNqg==} peerDependencies: react: '>=16.9.0' @@ -4265,11 +4471,11 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 json2mq: 0.2.0 lodash: 4.17.21 - react: 18.1.0 + react: 18.3.1 resize-observer-polyfill: 1.5.1 dev: false @@ -4281,7 +4487,7 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 json2mq: 0.2.0 lodash: 4.17.21 @@ -4296,12 +4502,28 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 json2mq: 0.2.0 lodash: 4.17.21 react: 18.1.0 resize-observer-polyfill: 1.5.1 + dev: false + + /@ant-design/react-slick@0.29.2(react@18.3.1): + resolution: {integrity: sha512-kgjtKmkGHa19FW21lHnAfyyH9AAoh35pBdcJ53rHmQ3O+cfFHGHnUbj/HFrRNJ5vIts09FKJVAD8RpaC+RaWfA==} + peerDependencies: + react: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + json2mq: 0.2.0 + lodash: 4.17.21 + react: 18.3.1 + resize-observer-polyfill: 1.5.1 /@ant-design/react-slick@1.0.0(react@18.1.0): resolution: {integrity: sha512-OKxZsn8TAf8fYxP79rDXgLs9zvKMTslK6dJ4iLhDXOujUqC5zJPBRszyrcEHXcMPOm1Sgk40JgyF3yiL/Swd7w==} @@ -4311,12 +4533,28 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 json2mq: 0.2.0 react: 18.1.0 resize-observer-polyfill: 1.5.1 throttle-debounce: 5.0.0 + dev: false + + /@ant-design/react-slick@1.0.0(react@18.3.1): + resolution: {integrity: sha512-OKxZsn8TAf8fYxP79rDXgLs9zvKMTslK6dJ4iLhDXOujUqC5zJPBRszyrcEHXcMPOm1Sgk40JgyF3yiL/Swd7w==} + peerDependencies: + react: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + json2mq: 0.2.0 + react: 18.3.1 + resize-observer-polyfill: 1.5.1 + throttle-debounce: 5.0.0 /@antfu/install-pkg@0.1.1: resolution: {integrity: sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==} @@ -4328,8 +4566,8 @@ packages: resolution: {integrity: sha512-CQkeV+oJxUazwjlHD0/3ZD08QWKuGQkhnrKo3e6ly5pd48VUpXbb77q0xMU4+vc2CkJnDS02Eq/M9ugyX20XZA==} dev: false - /@antfu/utils@0.7.2: - resolution: {integrity: sha512-vy9fM3pIxZmX07dL+VX1aZe7ynZ+YyB0jY+jE6r3hOK6GNY2t6W8rzpFC4tgpbXUYABkFQwgJq2XYXlxbXAI0g==} + /@antfu/utils@0.7.7: + resolution: {integrity: sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==} /@antv/adjust@0.2.5: resolution: {integrity: sha512-MfWZOkD9CqXRES6MBGRNe27Q577a72EIwyMnE29wIlPliFvJfWwsrONddpGU7lilMpVKecS3WAzOoip3RfPTRQ==} @@ -4342,7 +4580,7 @@ packages: resolution: {integrity: sha512-zAv/YNDKYrHHKJKCn6RBKoNo9/298/qY6J5SSGglIIUfwJXN6wyRyTmNPfmkE/9t6/7XK9PYvK/6esQnwFawwQ==} dependencies: '@antv/util': 2.0.17 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/async-hook@2.1.0: resolution: {integrity: sha512-q7Rup5jTDAiWh77Xb2vgkCURJGczmU2iWTCkBDq28PuK5KUoenyeGGrFKAVkgqaL663wdpw0Vzn+sYriTfT9hA==} @@ -4362,7 +4600,7 @@ packages: resolution: {integrity: sha512-KnPEaAH+XNJMjax9U35W67nzPI+QQ2x27pYlzmSIWrbj4/k8PGrARXfzDTjwoozHJY8qG62Z+Ww6Alhu2FctXQ==} dependencies: '@antv/util': 2.0.17 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@antv/component@0.8.28: @@ -4376,7 +4614,7 @@ packages: '@antv/scale': 0.3.18 '@antv/util': 2.0.17 fecha: 4.2.3 - tslib: 2.4.1 + tslib: 2.6.2 dev: false /@antv/coord@0.3.1: @@ -4384,7 +4622,7 @@ packages: dependencies: '@antv/matrix-util': 3.1.0-beta.3 '@antv/util': 2.0.17 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@antv/data-set@0.11.8: @@ -4411,7 +4649,7 @@ packages: /@antv/dom-util@2.0.4: resolution: {integrity: sha512-2shXUl504fKwt82T3GkuT4Uoc6p9qjCKnJ8gXGLSW4T1W37dqf9AV28aCfoVPHp2BUXpSsB+PAJX2rG/jLHsLQ==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 /@antv/event-emitter@0.1.3: resolution: {integrity: sha512-4ddpsiHN9Pd4UIlWuKVK1C4IiZIdbwQvy9i7DUSI3xNJ89FPUFt8lxDYj8GzzfdllV0NkJTRxnG+FvLk0llidg==} @@ -4444,7 +4682,7 @@ packages: d3-interpolate: 1.4.0 d3-timer: 1.0.10 detect-browser: 5.3.0 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/g-canvas@0.4.15: resolution: {integrity: sha512-+Du37T7dhU1F8GiaWu+EMtBDHoYOg8UzCoVBFD+cUEs/joLaOVkup3drvGC/6MSyLiI32y/ZHuuc08pZIP7PzA==} @@ -4465,7 +4703,7 @@ packages: '@antv/path-util': 2.0.15 '@antv/util': 2.0.17 gl-matrix: 3.4.3 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/g-math@0.1.7: resolution: {integrity: sha512-xGyXaloD1ynfp7gS4VuV+MjSptZIwHvLHr8ekXJSFAeWPYLu84yOW2wOZHDdp1bzDAIuRv6xDBW58YGHrWsFcA==} @@ -4489,7 +4727,7 @@ packages: '@antv/g-math': 0.1.7 '@antv/util': 2.0.17 detect-browser: 5.3.0 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/g-webgpu-core@0.5.6: resolution: {integrity: sha512-DPiH3GkAUiT0Q+LAKeImpI+IOQ/gP2w6HstYKivpFIpBPIvZ/9equM3icVrn1iDfDkZANVXQ1PppcO3xBv1ZTw==} @@ -4554,7 +4792,7 @@ packages: '@antv/path-util': 2.0.15 '@antv/scale': 0.3.18 '@antv/util': 2.0.17 - tslib: 2.4.1 + tslib: 2.6.2 dev: false /@antv/g2@4.2.7: @@ -4574,7 +4812,7 @@ packages: '@antv/path-util': 2.0.15 '@antv/scale': 0.3.18 '@antv/util': 2.0.17 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@antv/g2plot@2.3.39: @@ -4587,7 +4825,7 @@ packages: fmin: 0.0.2 pdfast: 0.2.0 size-sensor: 1.0.1 - tslib: 2.4.1 + tslib: 2.6.2 dev: false /@antv/g2plot@2.4.20: @@ -4601,7 +4839,7 @@ packages: fmin: 0.0.2 pdfast: 0.2.0 size-sensor: 1.0.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: false /@antv/g6-core@0.8.7: @@ -4616,7 +4854,7 @@ packages: '@antv/path-util': 2.0.15 '@antv/util': 2.0.17 ml-matrix: 6.10.2 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/g6-element@0.8.7: resolution: {integrity: sha512-39QDIbRxXqJGhEoltMEj9/jQf7xTIDNM8xsSBhaqNTXFF8l0G0XrQ3kcOqi0/147tjxDVGhcgOPANi9p4Yj3WA==} @@ -4713,7 +4951,7 @@ packages: dependencies: '@antv/l7-core': 2.9.26 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 eventemitter3: 4.0.7 inversify: 5.1.1 lodash: 4.17.21 @@ -4726,7 +4964,7 @@ packages: dependencies: '@antv/async-hook': 2.1.0 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@turf/helpers': 6.5.0 ajv: 6.12.6 element-resize-event: 3.0.6 @@ -4749,7 +4987,7 @@ packages: '@antv/l7-maps': 2.9.26 '@antv/l7-source': 2.9.26 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@mapbox/martini': 0.2.0 '@turf/helpers': 6.5.0 '@turf/meta': 6.5.0 @@ -4774,7 +5012,7 @@ packages: resolution: {integrity: sha512-GwlqEV2gS2wKS5Y0iXbzXJFsEc4q9R/Psd0BxVepNkzqS4q9kniseZIsLB9rMZh9Pe8QIFO2loVInUaF0Bs+Hw==} dependencies: '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@mapbox/point-geometry': 0.1.0 '@mapbox/unitbezier': 0.0.0 eventemitter3: 4.0.7 @@ -4789,7 +5027,7 @@ packages: '@antv/l7-core': 2.9.26 '@antv/l7-map': 2.9.26 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@types/amap-js-api': 1.4.10 '@types/mapbox-gl': 1.13.4 gl-matrix: 3.4.3 @@ -4799,7 +5037,7 @@ packages: viewport-mercator-project: 6.2.3 dev: false - /@antv/l7-react@2.3.9(react-dom@18.1.0)(react@18.1.0): + /@antv/l7-react@2.3.9(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-WiToooBVE5gAibWqJ12d+4bCoNsENmVRHOS7WlIcmYtqkdrzpOVIvnIKJ6xvULK1SNPQFPEkv1ziW8QMGEvJRA==} peerDependencies: '@antv/l7': ^2.2.37 @@ -4813,11 +5051,11 @@ packages: dependencies: '@babel/runtime': 7.18.9 '@types/mapbox-gl': 1.13.4 - ahooks: 2.10.14(react@18.1.0) + ahooks: 2.10.14(react@18.3.1) load-styles: 2.0.0 lodash: 4.17.21 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /@antv/l7-renderer@2.9.26: @@ -4825,7 +5063,7 @@ packages: dependencies: '@antv/l7-core': 2.9.26 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 inversify: 5.1.1 l7regl: 0.0.20 lodash: 4.17.21 @@ -4841,7 +5079,7 @@ packages: '@antv/l7-maps': 2.9.26 '@antv/l7-renderer': 2.9.26 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 inversify: 5.1.1 mapbox-gl: 1.13.2 reflect-metadata: 0.1.13 @@ -4853,7 +5091,7 @@ packages: '@antv/async-hook': 2.1.0 '@antv/l7-core': 2.9.26 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@mapbox/geojson-rewind': 0.5.2 '@mapbox/vector-tile': 1.3.1 '@turf/helpers': 6.5.0 @@ -4873,7 +5111,7 @@ packages: /@antv/l7-utils@2.9.26: resolution: {integrity: sha512-rcF7Jm0APhcmoKqlgcfoMVZT2rVJK5LFB+J/Tun2QlTcmNDa1UY36W+G2EGWOoXlVW10BBeDtMLFqt2bo78O2w==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@turf/bbox-polygon': 6.5.0 '@turf/helpers': 6.5.0 d3-color: 1.4.1 @@ -4893,7 +5131,7 @@ packages: '@antv/l7-scene': 2.9.26 '@antv/l7-source': 2.9.26 '@antv/l7-utils': 2.9.26 - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 dev: false /@antv/l7plot-component@0.0.7: @@ -4948,36 +5186,36 @@ packages: dependencies: '@antv/util': 2.0.17 gl-matrix: 3.4.3 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/matrix-util@3.1.0-beta.3: resolution: {integrity: sha512-W2R6Za3A6CmG51Y/4jZUM/tFgYSq7vTqJL1VD9dKrvwxS4sE0ZcXINtkp55CdyBwJ6Cwm8pfoRpnD4FnHahN0A==} dependencies: '@antv/util': 2.0.17 gl-matrix: 3.4.3 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/path-util@2.0.15: resolution: {integrity: sha512-R2VLZ5C8PLPtr3VciNyxtjKqJ0XlANzpFb5sE9GE61UQqSRuSVSzIakMxjEPrpqbgc+s+y8i+fmc89Snu7qbNw==} dependencies: '@antv/matrix-util': 3.0.4 '@antv/util': 2.0.17 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/scale@0.3.18: resolution: {integrity: sha512-GHwE6Lo7S/Q5fgaLPaCsW+CH+3zl4aXpnN1skOiEY0Ue9/u+s2EySv6aDXYkAqs//i0uilMDD/0/4n8caX9U9w==} dependencies: '@antv/util': 2.0.17 fecha: 4.2.3 - tslib: 2.5.0 + tslib: 2.6.2 /@antv/util@2.0.17: resolution: {integrity: sha512-o6I9hi5CIUvLGDhth0RxNSFDRwXeywmt6ExR4+RmVAzIi48ps6HUy+svxOCayvrPBN37uE6TAc2KDofRo0nK9Q==} dependencies: - csstype: 3.1.0 - tslib: 2.4.1 + csstype: 3.1.3 + tslib: 2.6.2 - /@antv/x6-react-components@1.1.15(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0): + /@antv/x6-react-components@1.1.15(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-tXUak5CPuZLIA0fVBSM2vZ+TxxoEGBcokr0J69e7H0G3WIutDf6J6RkNeRGuKvcW8O1Lef1jiBGSLLjlrRXf0g==} peerDependencies: antd: '>=4.4.2' @@ -4991,19 +5229,19 @@ packages: react-dom: optional: true dependencies: - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) clamp: 1.0.1 classnames: 2.3.2 - rc-dropdown: 3.5.2(react-dom@18.1.0)(react@18.1.0) + rc-dropdown: 3.5.2(react-dom@18.3.1)(react@18.3.1) rc-util: 4.21.1 - react: 18.1.0 - react-color: 2.17.3(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) - react-resize-detector: 6.7.8(react-dom@18.1.0)(react@18.1.0) + react: 18.3.1 + react-color: 2.17.3(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) + react-resize-detector: 6.7.8(react-dom@18.3.1)(react@18.3.1) ua-parser-js: 0.7.31 dev: false - /@antv/x6-react-shape@1.6.1(@antv/x6@1.33.1)(react-dom@18.1.0)(react@18.1.0): + /@antv/x6-react-shape@1.6.1(@antv/x6@1.33.1)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-EkcDoIlfbQC69DGgwznFRsi78fW+apTO0OW5J6tnKpMW3r6zB5zr5QM06hzq5UEUgGheMUxNh3wrTd0jnCwR3A==} peerDependencies: '@antv/x6': '>=1.0.0' @@ -5016,14 +5254,14 @@ packages: optional: true dependencies: '@antv/x6': 1.33.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /@antv/x6@1.33.1: resolution: {integrity: sha512-NW3mUDW+Od9hqas0URoaeih0we4gLipqdNEC7ozM7wRFEzpi9CDzfPZerHmhdKasUMwjIyyrN56uJEHGVnrp4Q==} dependencies: - csstype: 3.1.0 + csstype: 3.1.3 jquery: 3.6.1 jquery-mousewheel: 3.1.13 lodash-es: 4.17.21 @@ -5031,7 +5269,7 @@ packages: utility-types: 3.10.0 dev: false - /@antv/xflow-core@1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0): + /@antv/xflow-core@1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-HsT+0xTr5GshHz927djHo/XwwqjYtD+Y2KlfHHQGsHZiWzVpfVQcAqwgHUAnLO8o5M7bAAfBNo91Zab4JMBelA==} peerDependencies: '@ant-design/icons': ^4.6.0 @@ -5050,24 +5288,24 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) '@antv/x6': 1.33.1 - '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.1.0)(react@18.1.0) + '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.3.1)(react@18.3.1) '@antv/xflow-hook': 1.0.51 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 immer: 9.0.19 lodash: 4.17.21 mana-common: 0.3.1 mana-syringe: 0.2.2 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) reflect-metadata: 0.1.13 rxjs: 6.6.7 dev: false - /@antv/xflow-extension@1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0): + /@antv/xflow-extension@1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-GQ0dik+v+45cUdaeL+fuUJKut5swKMgdUTdDItWofMXCY2/vkY7gLR0CcwRr9wOySF4l6CKADOVInjoQ5Zzgog==} peerDependencies: '@ant-design/icons': ^4.6.0 @@ -5086,20 +5324,20 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) '@antv/x6': 1.33.1 - '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.1.0)(react@18.1.0) - '@antv/xflow-core': 1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0) + '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.3.1)(react@18.3.1) + '@antv/xflow-core': 1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1) '@antv/xflow-hook': 1.0.51 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.1 mana-syringe: 0.2.2 moment: 2.29.4 - rc-field-form: 1.27.1(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-color: 2.17.1(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) + rc-field-form: 1.32.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-color: 2.17.1(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) reflect-metadata: 0.1.13 transitivePeerDependencies: - lodash @@ -5111,7 +5349,7 @@ packages: toposort: 2.0.2 dev: false - /@antv/xflow@1.0.51(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0): + /@antv/xflow@1.0.51(@ant-design/icons@4.7.0)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Jm9OLxId/i8ua+pgV/qzmZXbv5Gw5L6LrHcKTpcMQNRv6rnLVZGZZVvY8nWAhKASvw74mumb86d8lXxf6endYg==} peerDependencies: '@ant-design/icons': ^4.6.0 @@ -5127,18 +5365,18 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) '@antv/layout': 0.1.31 '@antv/x6': 1.33.1 - '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.1.0)(react@18.1.0) - '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.1.0)(react@18.1.0) - '@antv/xflow-core': 1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0) - '@antv/xflow-extension': 1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.1.0)(react@18.1.0) + '@antv/x6-react-components': 1.1.15(antd@4.24.7)(react-dom@18.3.1)(react@18.3.1) + '@antv/x6-react-shape': 1.6.1(@antv/x6@1.33.1)(react-dom@18.3.1)(react@18.3.1) + '@antv/xflow-core': 1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1) + '@antv/xflow-extension': 1.0.51(@ant-design/icons@4.7.0)(@antv/x6-react-components@1.1.15)(@antv/x6-react-shape@1.6.1)(@antv/x6@1.33.1)(antd@4.24.7)(classnames@2.3.1)(lodash@4.17.21)(react-dom@18.3.1)(react@18.3.1) '@antv/xflow-hook': 1.0.51 - antd: 4.24.7(react-dom@18.1.0)(react@18.1.0) + antd: 4.24.7(react-dom@18.3.1)(react@18.3.1) lodash: 4.17.21 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: - classnames dev: false @@ -5147,30 +5385,11 @@ packages: resolution: {integrity: sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w==} dependencies: '@jsdevtools/ono': 7.1.3 - '@types/json-schema': 7.0.11 + '@types/json-schema': 7.0.12 call-me-maybe: 1.0.1 js-yaml: 4.1.0 dev: true - /@babel/cli@7.21.5(@babel/core@7.21.0): - resolution: {integrity: sha512-TOKytQ9uQW9c4np8F+P7ZfPINy5Kv+pizDIUwSVH8X5zHgYHV4AA8HE5LA450xXeu4jEfmUckTYvv1I4S26M/g==} - engines: {node: '>=6.9.0'} - hasBin: true - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@jridgewell/trace-mapping': 0.3.17 - commander: 4.1.1 - convert-source-map: 1.8.0 - fs-readdir-recursive: 1.1.0 - glob: 7.2.3 - make-dir: 2.1.0 - slash: 2.0.0 - optionalDependencies: - '@nicolo-ribaudo/chokidar-2': 2.1.8-no-fsevents.3 - chokidar: 3.5.3 - /@babel/cli@7.21.5(@babel/core@7.22.5): resolution: {integrity: sha512-TOKytQ9uQW9c4np8F+P7ZfPINy5Kv+pizDIUwSVH8X5zHgYHV4AA8HE5LA450xXeu4jEfmUckTYvv1I4S26M/g==} engines: {node: '>=6.9.0'} @@ -5179,9 +5398,9 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@jridgewell/trace-mapping': 0.3.17 + '@jridgewell/trace-mapping': 0.3.18 commander: 4.1.1 - convert-source-map: 1.8.0 + convert-source-map: 1.9.0 fs-readdir-recursive: 1.1.0 glob: 7.2.3 make-dir: 2.1.0 @@ -5189,13 +5408,19 @@ packages: optionalDependencies: '@nicolo-ribaudo/chokidar-2': 2.1.8-no-fsevents.3 chokidar: 3.5.3 - dev: true + dev: false /@babel/code-frame@7.12.11: resolution: {integrity: sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==} dependencies: - '@babel/highlight': 7.22.5 - dev: true + '@babel/highlight': 7.22.20 + + /@babel/code-frame@7.22.13: + resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': 7.22.20 + chalk: 2.4.2 /@babel/code-frame@7.22.5: resolution: {integrity: sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==} @@ -5203,40 +5428,44 @@ packages: dependencies: '@babel/highlight': 7.22.5 + /@babel/code-frame@7.23.5: + resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': 7.23.4 + chalk: 2.4.2 + + /@babel/code-frame@7.24.7: + resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': 7.24.7 + picocolors: 1.0.0 + /@babel/compat-data@7.20.5: resolution: {integrity: sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==} engines: {node: '>=6.9.0'} + dev: true - /@babel/compat-data@7.21.7: - resolution: {integrity: sha512-KYMqFYTaenzMK4yUtf4EW9wc4N9ef80FsbMtkwool5zpwl4YrT1SdWYSTRcT94KO4hannogdS+LxY7L+arP3gA==} + /@babel/compat-data@7.22.20: + resolution: {integrity: sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==} engines: {node: '>=6.9.0'} /@babel/compat-data@7.22.5: resolution: {integrity: sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==} engines: {node: '>=6.9.0'} - /@babel/core@7.17.9: - resolution: {integrity: sha512-5ug+SfZCpDAkVp9SFIZAzlW18rlzsOcJGaetCjkySnrXXDUw9AR8cDUm1iByTmdWM6yxX6/zycaV76w3YTF2gw==} + /@babel/compat-data@7.23.2: + resolution: {integrity: sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==} + engines: {node: '>=6.9.0'} + + /@babel/compat-data@7.23.5: + resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==} + engines: {node: '>=6.9.0'} + + /@babel/compat-data@7.24.7: + resolution: {integrity: sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==} engines: {node: '>=6.9.0'} - dependencies: - '@ampproject/remapping': 2.2.0 - '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.17.9) - '@babel/helper-module-transforms': 7.22.5 - '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 - convert-source-map: 1.8.0 - debug: 4.3.4(supports-color@8.1.1) - gensync: 1.0.0-beta.2 - json5: 2.2.3 - semver: 6.3.0 - transitivePeerDependencies: - - supports-color - dev: true /@babel/core@7.19.0: resolution: {integrity: sha512-reM4+U7B9ss148rh2n1Qs9ASS+w94irYXga7c2jaQv9RVzpS7Mv1a9rnYYwuDa45G+DkORt9g6An2k/V4d9LbQ==} @@ -5245,18 +5474,18 @@ packages: '@ampproject/remapping': 2.2.0 '@babel/code-frame': 7.22.5 '@babel/generator': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.19.0) - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-compilation-targets': 7.22.15 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.19.0) '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.0 '@babel/template': 7.22.5 '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 convert-source-map: 1.8.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -5268,18 +5497,18 @@ packages: '@ampproject/remapping': 2.2.0 '@babel/code-frame': 7.22.5 '@babel/generator': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.20.12) - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-compilation-targets': 7.22.15 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.20.12) '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.0 '@babel/template': 7.22.5 '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 convert-source-map: 1.8.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -5291,17 +5520,17 @@ packages: '@babel/code-frame': 7.22.5 '@babel/generator': 7.22.5 '@babel/helper-compilation-targets': 7.21.5(@babel/core@7.21.0) - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.21.0) '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.6 '@babel/template': 7.20.7 '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 convert-source-map: 1.9.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -5315,15 +5544,81 @@ packages: '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) '@babel/helper-module-transforms': 7.22.5 '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.0 '@babel/template': 7.22.5 '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 convert-source-map: 1.8.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.0 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + /@babel/core@7.23.0: + resolution: {integrity: sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.2.0 + '@babel/code-frame': 7.22.13 + '@babel/generator': 7.23.6 + '@babel/helper-compilation-targets': 7.22.15 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.0) + '@babel/helpers': 7.23.1 + '@babel/parser': 7.23.6 + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.0 + '@babel/types': 7.23.6 + convert-source-map: 2.0.0 + debug: 4.3.4(supports-color@8.1.1) + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + /@babel/core@7.23.6: + resolution: {integrity: sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.2.1 + '@babel/code-frame': 7.23.5 + '@babel/generator': 7.23.6 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.6) + '@babel/helpers': 7.23.6 + '@babel/parser': 7.23.6 + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 + convert-source-map: 2.0.0 + debug: 4.3.4(supports-color@8.1.1) + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + /@babel/core@7.24.7: + resolution: {integrity: sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.2.0 + '@babel/code-frame': 7.24.7 + '@babel/generator': 7.24.7 + '@babel/helper-compilation-targets': 7.24.7 + '@babel/helper-module-transforms': 7.24.7(@babel/core@7.24.7) + '@babel/helpers': 7.24.7 + '@babel/parser': 7.24.7 + '@babel/template': 7.24.7 + '@babel/traverse': 7.24.7 + '@babel/types': 7.24.7 + convert-source-map: 2.0.0 + debug: 4.3.4(supports-color@8.1.1) + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -5331,40 +5626,23 @@ packages: resolution: {integrity: sha512-OvjIh6aqXtlsA8ujtGKfC7LYWksYSX8yQcM8Ay3LuvVeQ63lcOKgoZWVqcpFwkd29aYU9rVx7jxhfhiEDV9MZA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 - convert-source-map: 1.8.0 + '@babel/code-frame': 7.23.5 + '@babel/generator': 7.23.6 + '@babel/helpers': 7.23.6 + '@babel/parser': 7.23.6 + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 + convert-source-map: 1.9.0 debug: 4.3.4(supports-color@8.1.1) json5: 2.2.3 lodash: 4.17.21 resolve: 1.22.0 - semver: 5.7.1 + semver: 5.7.2 source-map: 0.5.7 transitivePeerDependencies: - supports-color - /@babel/eslint-parser@7.17.0(@babel/core@7.17.9)(eslint@8.35.0): - resolution: {integrity: sha512-PUEJ7ZBXbRkbq3qqM/jZ2nIuakUBqCYc7Qf52Lj7dlZ6zERnqisdHioL0l4wwQZnmskMeasqUNzLBFKs3nylXA==} - engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} - peerDependencies: - '@babel/core': '>=7.11.0' - eslint: ^7.5.0 || ^8.0.0 - peerDependenciesMeta: - eslint: - optional: true - dependencies: - '@babel/core': 7.17.9 - eslint: 8.35.0 - eslint-scope: 5.1.1 - eslint-visitor-keys: 2.1.0 - semver: 6.3.0 - dev: true - /@babel/eslint-parser@7.19.1(@babel/core@7.20.12)(eslint@7.32.0): resolution: {integrity: sha512-AqNf2QWt1rtu2/1rLswy6CDP7H9Oh3mMhk177Y67Rg8d7RD9WfOLLv8CGn6tisFvS2htm86yIe1yLF6I1UDaGQ==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} @@ -5379,56 +5657,66 @@ packages: '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1 eslint: 7.32.0 eslint-visitor-keys: 2.1.0 - semver: 6.3.0 + semver: 6.3.1 dev: true - /@babel/eslint-parser@7.19.1(@babel/core@7.21.0)(eslint@8.35.0): - resolution: {integrity: sha512-AqNf2QWt1rtu2/1rLswy6CDP7H9Oh3mMhk177Y67Rg8d7RD9WfOLLv8CGn6tisFvS2htm86yIe1yLF6I1UDaGQ==} + /@babel/eslint-parser@7.23.3(@babel/core@7.22.5)(eslint@7.32.0): + resolution: {integrity: sha512-9bTuNlyx7oSstodm1cR1bECj4fkiknsDa1YniISkJemMY3DGhJNYBECbe6QD/q54mp2J8VO66jW3/7uP//iFCw==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: - '@babel/core': '>=7.11.0' + '@babel/core': ^7.11.0 eslint: ^7.5.0 || ^8.0.0 peerDependenciesMeta: eslint: optional: true dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1 - eslint: 8.35.0 + eslint: 7.32.0 eslint-visitor-keys: 2.1.0 - semver: 6.3.0 + semver: 6.3.1 + dev: true - /@babel/eslint-parser@7.19.1(@babel/core@7.22.5)(eslint@7.32.0): - resolution: {integrity: sha512-AqNf2QWt1rtu2/1rLswy6CDP7H9Oh3mMhk177Y67Rg8d7RD9WfOLLv8CGn6tisFvS2htm86yIe1yLF6I1UDaGQ==} + /@babel/eslint-parser@7.23.3(@babel/core@7.23.6)(eslint@7.32.0): + resolution: {integrity: sha512-9bTuNlyx7oSstodm1cR1bECj4fkiknsDa1YniISkJemMY3DGhJNYBECbe6QD/q54mp2J8VO66jW3/7uP//iFCw==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: - '@babel/core': '>=7.11.0' + '@babel/core': ^7.11.0 eslint: ^7.5.0 || ^8.0.0 peerDependenciesMeta: eslint: optional: true dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1 eslint: 7.32.0 eslint-visitor-keys: 2.1.0 - semver: 6.3.0 - dev: true + semver: 6.3.1 /@babel/generator@7.19.0: resolution: {integrity: sha512-S1ahxf1gZ2dpoiFgA+ohK9DIpz50bJ0CWs7Zlzb54Z4sG8qmdIrGrVqmy1sAtTVRb+9CU6U8VqT9L0Zj7hxHVg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 '@jridgewell/gen-mapping': 0.3.2 jsesc: 2.5.2 dev: true + /@babel/generator@7.2.0: + resolution: {integrity: sha512-BA75MVfRlFQG2EZgFYIwyT1r6xSkwfP2bdkY/kLZusEYWiJs4xCowab/alaEaT0wSvmVuXGqiefeBlP+7V1yKg==} + dependencies: + '@babel/types': 7.23.6 + jsesc: 2.5.2 + lodash: 4.17.21 + source-map: 0.5.7 + trim-right: 1.0.1 + dev: false + /@babel/generator@7.20.7: resolution: {integrity: sha512-7wqMOJq8doJMZmP4ApXTzLxSr7+oO2jroJURrVEp6XShrQUObV8Tq/D0NCcoYg2uHqUrjzO0zwBjoYzelxK+sw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 '@jridgewell/gen-mapping': 0.3.2 jsesc: 2.5.2 dev: false @@ -5437,22 +5725,47 @@ packages: resolution: {integrity: sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 '@jridgewell/gen-mapping': 0.3.2 - '@jridgewell/trace-mapping': 0.3.17 + '@jridgewell/trace-mapping': 0.3.20 + jsesc: 2.5.2 + + /@babel/generator@7.23.6: + resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.6 + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.20 + jsesc: 2.5.2 + + /@babel/generator@7.24.7: + resolution: {integrity: sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.24.7 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 /@babel/helper-annotate-as-pure@7.22.5: resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + + /@babel/helper-builder-binary-assignment-operator-visitor@7.22.15: + resolution: {integrity: sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.6 /@babel/helper-builder-binary-assignment-operator-visitor@7.22.5: resolution: {integrity: sha512-m1EP3lVOPptR+2DwD125gziZNcmoNSHGmJROKoy87loWUQyJaVXDgpmruWqDARZSmtYQ+Dl25okU8+qhVzuykw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + dev: true /@babel/helper-compilation-targets@7.20.7(@babel/core@7.20.12): resolution: {integrity: sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==} @@ -5460,231 +5773,268 @@ packages: peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.20.12 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 + '@babel/helper-validator-option': 7.22.15 + browserslist: 4.22.2 lru-cache: 5.1.1 - semver: 6.3.0 + semver: 6.3.1 dev: true - /@babel/helper-compilation-targets@7.20.7(@babel/core@7.21.0): - resolution: {integrity: sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==} + /@babel/helper-compilation-targets@7.21.5(@babel/core@7.21.0): + resolution: {integrity: sha512-1RkbFGUKex4lvsB9yhIfWltJM5cZKUftB2eNajaDv3dCMEp49iBG0K14uH8NnX9IPux2+mK7JGEOB0jn48/J6w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.21.0 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 + '@babel/helper-validator-option': 7.22.15 + browserslist: 4.22.2 lru-cache: 5.1.1 - semver: 6.3.0 + semver: 6.3.1 - /@babel/helper-compilation-targets@7.21.5(@babel/core@7.21.0): - resolution: {integrity: sha512-1RkbFGUKex4lvsB9yhIfWltJM5cZKUftB2eNajaDv3dCMEp49iBG0K14uH8NnX9IPux2+mK7JGEOB0jn48/J6w==} + /@babel/helper-compilation-targets@7.22.15: + resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==} engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.21.7 - '@babel/core': 7.21.0 - '@babel/helper-validator-option': 7.21.0 - browserslist: 4.21.5 + '@babel/compat-data': 7.23.2 + '@babel/helper-validator-option': 7.22.15 + browserslist: 4.22.2 lru-cache: 5.1.1 - semver: 6.3.0 + semver: 6.3.1 - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.17.9): + /@babel/helper-compilation-targets@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.17.9 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 + '@babel/compat-data': 7.22.20 + '@babel/core': 7.22.5 + '@babel/helper-validator-option': 7.22.15 + browserslist: 4.22.2 lru-cache: 5.1.1 - semver: 6.3.0 - dev: true + semver: 6.3.1 - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.19.0): - resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} + /@babel/helper-compilation-targets@7.23.6: + resolution: {integrity: sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==} engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.19.0 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 + '@babel/compat-data': 7.23.5 + '@babel/helper-validator-option': 7.23.5 + browserslist: 4.22.2 lru-cache: 5.1.1 - semver: 6.3.0 - dev: true + semver: 6.3.1 - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.20.12): - resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} + /@babel/helper-compilation-targets@7.24.7: + resolution: {integrity: sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==} engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.20.12 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 + '@babel/compat-data': 7.24.7 + '@babel/helper-validator-option': 7.24.7 + browserslist: 4.22.2 lru-cache: 5.1.1 - semver: 6.3.0 + semver: 6.3.1 - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.21.0): - resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} + /@babel/helper-create-class-features-plugin@7.22.15(@babel/core@7.20.12): + resolution: {integrity: sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.21.0 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 - lru-cache: 5.1.1 - semver: 6.3.0 + '@babel/core': 7.20.12 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.20.12) + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 + dev: true - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} + /@babel/helper-create-class-features-plugin@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 '@babel/core': 7.22.5 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 - lru-cache: 5.1.1 - semver: 6.3.0 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.22.5) + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.4.5): - resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} + /@babel/helper-create-class-features-plugin@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.4.5 - '@babel/helper-validator-option': 7.22.5 - browserslist: 4.21.5 - lru-cache: 5.1.1 - semver: 6.3.0 + '@babel/core': 7.23.0 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.0) + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 + dev: true - /@babel/helper-create-class-features-plugin@7.22.5(@babel/core@7.20.12): - resolution: {integrity: sha512-xkb58MyOYIslxu3gKmVXmjTtUPvBU4odYzbiIQbWwLKIHCsx6UGZGX6F1IznMFVnDdirseUZopzN+ZRt8Xb33Q==} + /@babel/helper-create-class-features-plugin@7.22.15(@babel/core@7.4.5): + resolution: {integrity: sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.4.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 - '@babel/helper-member-expression-to-functions': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.4.5) '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - semver: 6.3.0 - transitivePeerDependencies: - - supports-color + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 dev: true - /@babel/helper-create-class-features-plugin@7.22.5(@babel/core@7.21.0): + /@babel/helper-create-class-features-plugin@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-xkb58MyOYIslxu3gKmVXmjTtUPvBU4odYzbiIQbWwLKIHCsx6UGZGX6F1IznMFVnDdirseUZopzN+ZRt8Xb33Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.22.5 '@babel/helper-member-expression-to-functions': 7.22.5 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-replace-supers': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - semver: 6.3.0 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 transitivePeerDependencies: - supports-color - /@babel/helper-create-class-features-plugin@7.22.5(@babel/core@7.22.5): + /@babel/helper-create-class-features-plugin@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-xkb58MyOYIslxu3gKmVXmjTtUPvBU4odYzbiIQbWwLKIHCsx6UGZGX6F1IznMFVnDdirseUZopzN+ZRt8Xb33Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.22.5 '@babel/helper-member-expression-to-functions': 7.22.5 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-replace-supers': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - semver: 6.3.0 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 transitivePeerDependencies: - supports-color + dev: true - /@babel/helper-create-class-features-plugin@7.22.5(@babel/core@7.4.5): - resolution: {integrity: sha512-xkb58MyOYIslxu3gKmVXmjTtUPvBU4odYzbiIQbWwLKIHCsx6UGZGX6F1IznMFVnDdirseUZopzN+ZRt8Xb33Q==} + /@babel/helper-create-class-features-plugin@7.23.6(@babel/core@7.23.6): + resolution: {integrity: sha512-cBXU1vZni/CpGF29iTu4YRbOZt3Wat6zCoMDxRF1MayiEc4URxOj31tT65HUM0CRpMowA3HCJaAOVOUnMf96cw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.6 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 - '@babel/helper-member-expression-to-functions': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.6) '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - semver: 6.3.0 - transitivePeerDependencies: - - supports-color + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 + dev: true + + /@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.20.12): + resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.20.12 + '@babel/helper-annotate-as-pure': 7.22.5 + regexpu-core: 5.3.2 + semver: 6.3.1 dev: true - /@babel/helper-create-regexp-features-plugin@7.20.5(@babel/core@7.22.5): - resolution: {integrity: sha512-m68B1lkg3XDGX5yCvGO0kPx3v9WIYLnzjKfPcQiwntEQa5ZeRkPmo2X/ISJc8qxWGfwUr+kvZAeEzAwLec2r2w==} + /@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - regexpu-core: 5.2.2 + regexpu-core: 5.3.2 + semver: 6.3.1 + + /@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-annotate-as-pure': 7.22.5 + regexpu-core: 5.3.2 + semver: 6.3.1 dev: true - /@babel/helper-create-regexp-features-plugin@7.22.5(@babel/core@7.20.12): - resolution: {integrity: sha512-1VpEFOIbMRaXyDeUwUfmTIxExLwQ+zkW+Bh5zXpApA3oQedBx9v/updixWxnx/bZpKw7u8VxWjb/qWpIcmPq8A==} + /@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.23.6): + resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 + '@babel/helper-annotate-as-pure': 7.22.5 + regexpu-core: 5.3.2 + semver: 6.3.1 + dev: true + + /@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.4.5): + resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.4.5 '@babel/helper-annotate-as-pure': 7.22.5 regexpu-core: 5.3.2 - semver: 6.3.0 + semver: 6.3.1 dev: true - /@babel/helper-create-regexp-features-plugin@7.22.5(@babel/core@7.21.0): + /@babel/helper-create-regexp-features-plugin@7.22.5(@babel/core@7.20.12): resolution: {integrity: sha512-1VpEFOIbMRaXyDeUwUfmTIxExLwQ+zkW+Bh5zXpApA3oQedBx9v/updixWxnx/bZpKw7u8VxWjb/qWpIcmPq8A==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-annotate-as-pure': 7.22.5 regexpu-core: 5.3.2 - semver: 6.3.0 + semver: 6.3.1 + dev: true /@babel/helper-create-regexp-features-plugin@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-1VpEFOIbMRaXyDeUwUfmTIxExLwQ+zkW+Bh5zXpApA3oQedBx9v/updixWxnx/bZpKw7u8VxWjb/qWpIcmPq8A==} @@ -5695,8 +6045,7 @@ packages: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 regexpu-core: 5.3.2 - semver: 6.3.0 - dev: true + semver: 6.3.1 /@babel/helper-create-regexp-features-plugin@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-1VpEFOIbMRaXyDeUwUfmTIxExLwQ+zkW+Bh5zXpApA3oQedBx9v/updixWxnx/bZpKw7u8VxWjb/qWpIcmPq8A==} @@ -5707,67 +6056,65 @@ packages: '@babel/core': 7.4.5 '@babel/helper-annotate-as-pure': 7.22.5 regexpu-core: 5.3.2 - semver: 6.3.0 + semver: 6.3.1 dev: true - /@babel/helper-define-polyfill-provider@0.3.3: + /@babel/helper-define-polyfill-provider@0.3.3(@babel/core@7.20.12): resolution: {integrity: sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==} peerDependencies: '@babel/core': ^7.4.0-0 dependencies: - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.4.5) + '@babel/core': 7.20.12 + '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4(supports-color@8.1.1) lodash.debounce: 4.0.8 - resolve: 1.22.1 - semver: 6.3.0 + resolve: 1.22.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color - dev: false - /@babel/helper-define-polyfill-provider@0.3.3(@babel/core@7.20.12): - resolution: {integrity: sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==} + /@babel/helper-define-polyfill-provider@0.4.0(@babel/core@7.22.5): + resolution: {integrity: sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==} peerDependencies: '@babel/core': ^7.4.0-0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.20.12) + '@babel/core': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4(supports-color@8.1.1) lodash.debounce: 4.0.8 - resolve: 1.22.1 - semver: 6.3.0 + resolve: 1.22.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color - dev: true - /@babel/helper-define-polyfill-provider@0.3.3(@babel/core@7.21.0): - resolution: {integrity: sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==} + /@babel/helper-define-polyfill-provider@0.4.2(@babel/core@7.23.0): + resolution: {integrity: sha512-k0qnnOqHn5dK9pZpfD5XXZ9SojAITdCKRn2Lp6rnDGzIbaP0rHyMPk/4wsSxVBVz4RfN0q6VpXWP2pDGIoQ7hw==} peerDependencies: - '@babel/core': ^7.4.0-0 + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.21.0) + '@babel/core': 7.23.0 + '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4(supports-color@8.1.1) lodash.debounce: 4.0.8 - resolve: 1.22.1 - semver: 6.3.0 + resolve: 1.22.0 transitivePeerDependencies: - supports-color + dev: true - /@babel/helper-define-polyfill-provider@0.4.0(@babel/core@7.22.5): - resolution: {integrity: sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==} + /@babel/helper-define-polyfill-provider@0.4.4(@babel/core@7.23.6): + resolution: {integrity: sha512-QcJMILQCu2jm5TFPGA3lCpJJTeEP+mqeXooG/NZbg/h5FTFi6V0+99ahlRsW8/kRLyb24LZVCCiclDedhLKcBA==} peerDependencies: - '@babel/core': ^7.4.0-0 + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) + '@babel/core': 7.23.6 + '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 debug: 4.3.4(supports-color@8.1.1) lodash.debounce: 4.0.8 resolve: 1.22.0 - semver: 6.3.0 transitivePeerDependencies: - supports-color dev: true @@ -5777,68 +6124,106 @@ packages: engines: {node: '>=6.9.0'} dev: true + /@babel/helper-environment-visitor@7.22.20: + resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} + engines: {node: '>=6.9.0'} + /@babel/helper-environment-visitor@7.22.5: resolution: {integrity: sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==} engines: {node: '>=6.9.0'} + /@babel/helper-environment-visitor@7.24.7: + resolution: {integrity: sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.24.7 + /@babel/helper-function-name@7.21.0: resolution: {integrity: sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.22.5 - '@babel/types': 7.22.5 + '@babel/template': 7.22.15 + '@babel/types': 7.23.6 dev: true /@babel/helper-function-name@7.22.5: resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.22.5 - '@babel/types': 7.22.5 + '@babel/template': 7.22.15 + '@babel/types': 7.23.6 + + /@babel/helper-function-name@7.23.0: + resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.22.15 + '@babel/types': 7.23.6 + + /@babel/helper-function-name@7.24.7: + resolution: {integrity: sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.24.7 + '@babel/types': 7.24.7 /@babel/helper-hoist-variables@7.18.6: resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 dev: true /@babel/helper-hoist-variables@7.22.5: resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + + /@babel/helper-hoist-variables@7.24.7: + resolution: {integrity: sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.24.7 /@babel/helper-member-expression-to-functions@7.22.5: resolution: {integrity: sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + + /@babel/helper-member-expression-to-functions@7.23.0: + resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.6 /@babel/helper-module-imports@7.18.6: resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + dev: true + + /@babel/helper-module-imports@7.22.15: + resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.6 /@babel/helper-module-imports@7.22.5: resolution: {integrity: sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 + dev: false - /@babel/helper-module-transforms@7.21.2: - resolution: {integrity: sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ==} + /@babel/helper-module-imports@7.24.7: + resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-module-imports': 7.22.5 - '@babel/helper-simple-access': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/traverse': 7.24.7 + '@babel/types': 7.24.7 transitivePeerDependencies: - supports-color @@ -5846,63 +6231,196 @@ packages: resolution: {integrity: sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color - /@babel/helper-optimise-call-expression@7.22.5: - resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==} + /@babel/helper-module-transforms@7.23.3(@babel/core@7.19.0): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 dependencies: - '@babel/types': 7.22.5 - - /@babel/helper-plugin-utils@7.18.9: - resolution: {integrity: sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==} + '@babel/core': 7.19.0 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + dev: true + + /@babel/helper-module-transforms@7.23.3(@babel/core@7.20.12): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.20.12 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + + /@babel/helper-module-transforms@7.23.3(@babel/core@7.21.0): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.21.0 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + + /@babel/helper-module-transforms@7.23.3(@babel/core@7.22.5): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + + /@babel/helper-module-transforms@7.23.3(@babel/core@7.23.0): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + + /@babel/helper-module-transforms@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + + /@babel/helper-module-transforms@7.23.3(@babel/core@7.4.5): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.4.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + dev: true + + /@babel/helper-module-transforms@7.24.7(@babel/core@7.24.7): + resolution: {integrity: sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==} engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.24.7 + '@babel/helper-environment-visitor': 7.24.7 + '@babel/helper-module-imports': 7.24.7 + '@babel/helper-simple-access': 7.24.7 + '@babel/helper-split-export-declaration': 7.24.7 + '@babel/helper-validator-identifier': 7.24.7 + transitivePeerDependencies: + - supports-color - /@babel/helper-plugin-utils@7.20.2: - resolution: {integrity: sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==} + /@babel/helper-optimise-call-expression@7.22.5: + resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==} engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.6 /@babel/helper-plugin-utils@7.22.5: resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} engines: {node: '>=6.9.0'} - /@babel/helper-remap-async-to-generator@7.22.5(@babel/core@7.20.12): - resolution: {integrity: sha512-cU0Sq1Rf4Z55fgz7haOakIyM7+x/uCFwXpLPaeRzfoUtAEAuUZjZvFPjL/rk5rW693dIgn2hng1W7xbT7lWT4g==} + /@babel/helper-remap-async-to-generator@7.22.20(@babel/core@7.22.5): + resolution: {integrity: sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-wrap-function': 7.22.5 - '@babel/types': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-wrap-function': 7.22.20 + + /@babel/helper-remap-async-to-generator@7.22.20(@babel/core@7.23.0): + resolution: {integrity: sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-wrap-function': 7.22.20 + dev: true + + /@babel/helper-remap-async-to-generator@7.22.20(@babel/core@7.23.6): + resolution: {integrity: sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-wrap-function': 7.22.20 + dev: true + + /@babel/helper-remap-async-to-generator@7.22.20(@babel/core@7.4.5): + resolution: {integrity: sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.4.5 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-wrap-function': 7.22.20 dev: true - /@babel/helper-remap-async-to-generator@7.22.5(@babel/core@7.21.0): + /@babel/helper-remap-async-to-generator@7.22.5(@babel/core@7.20.12): resolution: {integrity: sha512-cU0Sq1Rf4Z55fgz7haOakIyM7+x/uCFwXpLPaeRzfoUtAEAuUZjZvFPjL/rk5rW693dIgn2hng1W7xbT7lWT4g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-wrap-function': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color + dev: true /@babel/helper-remap-async-to-generator@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-cU0Sq1Rf4Z55fgz7haOakIyM7+x/uCFwXpLPaeRzfoUtAEAuUZjZvFPjL/rk5rW693dIgn2hng1W7xbT7lWT4g==} @@ -5912,12 +6430,11 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-wrap-function': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color - dev: true /@babel/helper-remap-async-to-generator@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-cU0Sq1Rf4Z55fgz7haOakIyM7+x/uCFwXpLPaeRzfoUtAEAuUZjZvFPjL/rk5rW693dIgn2hng1W7xbT7lWT4g==} @@ -5927,49 +6444,123 @@ packages: dependencies: '@babel/core': 7.4.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-wrap-function': 7.22.5 - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color dev: true + /@babel/helper-replace-supers@7.22.20(@babel/core@7.20.12): + resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.20.12 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + dev: true + + /@babel/helper-replace-supers@7.22.20(@babel/core@7.22.5): + resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + + /@babel/helper-replace-supers@7.22.20(@babel/core@7.23.0): + resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + dev: true + + /@babel/helper-replace-supers@7.22.20(@babel/core@7.23.6): + resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + dev: true + + /@babel/helper-replace-supers@7.22.20(@babel/core@7.4.5): + resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.4.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + dev: true + /@babel/helper-replace-supers@7.22.5: resolution: {integrity: sha512-aLdNM5I3kdI/V9xGNyKSF3X/gTyMUBohTZ+/3QdQKAA9vxIiy12E+8E2HoOP1/DjeqU+g6as35QHJNMDDYpuCg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-member-expression-to-functions': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color - /@babel/helper-simple-access@7.20.2: - resolution: {integrity: sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==} + /@babel/helper-simple-access@7.22.5: + resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 - /@babel/helper-simple-access@7.22.5: - resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} + /@babel/helper-simple-access@7.24.7: + resolution: {integrity: sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/traverse': 7.24.7 + '@babel/types': 7.24.7 + transitivePeerDependencies: + - supports-color /@babel/helper-skip-transparent-expression-wrappers@7.22.5: resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 /@babel/helper-split-export-declaration@7.22.5: resolution: {integrity: sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + + /@babel/helper-split-export-declaration@7.22.6: + resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.6 + + /@babel/helper-split-export-declaration@7.24.7: + resolution: {integrity: sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.24.7 /@babel/helper-string-parser@7.19.4: resolution: {integrity: sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==} @@ -5980,35 +6571,64 @@ packages: resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} engines: {node: '>=6.9.0'} + /@babel/helper-string-parser@7.23.4: + resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} + engines: {node: '>=6.9.0'} + + /@babel/helper-string-parser@7.24.7: + resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==} + engines: {node: '>=6.9.0'} + /@babel/helper-validator-identifier@7.19.1: resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.22.5: - resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} + /@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + engines: {node: '>=6.9.0'} + + /@babel/helper-validator-identifier@7.24.7: + resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} engines: {node: '>=6.9.0'} /@babel/helper-validator-option@7.18.6: resolution: {integrity: sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==} engines: {node: '>=6.9.0'} + dev: true - /@babel/helper-validator-option@7.21.0: - resolution: {integrity: sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==} + /@babel/helper-validator-option@7.22.15: + resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==} engines: {node: '>=6.9.0'} /@babel/helper-validator-option@7.22.5: resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==} engines: {node: '>=6.9.0'} + /@babel/helper-validator-option@7.23.5: + resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==} + engines: {node: '>=6.9.0'} + + /@babel/helper-validator-option@7.24.7: + resolution: {integrity: sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==} + engines: {node: '>=6.9.0'} + + /@babel/helper-wrap-function@7.22.20: + resolution: {integrity: sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-function-name': 7.23.0 + '@babel/template': 7.22.15 + '@babel/types': 7.23.6 + /@babel/helper-wrap-function@7.22.5: resolution: {integrity: sha512-bYqLIBSEshYcYQyfks8ewYA8S30yaGSeRslcvKMvoUk6HHPySbxHq9YRi6ghhzEU+yhQv9bP/jXnygkStOcqZw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-function-name': 7.22.5 - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/helper-function-name': 7.23.0 + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color @@ -6016,40 +6636,106 @@ packages: resolution: {integrity: sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 + transitivePeerDependencies: + - supports-color + + /@babel/helpers@7.23.1: + resolution: {integrity: sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 + transitivePeerDependencies: + - supports-color + + /@babel/helpers@7.23.6: + resolution: {integrity: sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color + /@babel/helpers@7.24.7: + resolution: {integrity: sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.24.7 + '@babel/types': 7.24.7 + + /@babel/highlight@7.22.20: + resolution: {integrity: sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.22.20 + chalk: 2.4.2 + js-tokens: 4.0.0 + /@babel/highlight@7.22.5: resolution: {integrity: sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.22.5 + '@babel/helper-validator-identifier': 7.22.20 chalk: 2.4.2 js-tokens: 4.0.0 + /@babel/highlight@7.23.4: + resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.22.20 + chalk: 2.4.2 + js-tokens: 4.0.0 + + /@babel/highlight@7.24.7: + resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.24.7 + chalk: 2.4.2 + js-tokens: 4.0.0 + picocolors: 1.0.0 + /@babel/parser@7.19.0: resolution: {integrity: sha512-74bEXKX2h+8rrfQUfsBfuZZHzsEs6Eql4pqy/T4Nn6Y9wNPggQOqD6z6pn5Bl8ZfysKouFZT/UXEH94ummEeQw==} engines: {node: '>=6.0.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 dev: true /@babel/parser@7.20.7: resolution: {integrity: sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg==} engines: {node: '>=6.0.0'} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 dev: false - /@babel/parser@7.22.5: - resolution: {integrity: sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==} + /@babel/parser@7.23.0: + resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + + /@babel/parser@7.23.6: + resolution: {integrity: sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.23.6 + + /@babel/parser@7.24.7: + resolution: {integrity: sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.23.6 /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==} @@ -6061,14 +6747,15 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==} + /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-NP1M5Rf+u2Gw9qfSO4ihjcTGW5zXTi36ITLd4/EoAcEhIZ0yjMqmftDNl3QC19CX7olhrjpyU454g/2W7X0jvQ==} @@ -6078,6 +6765,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.18.9(@babel/core@7.20.12): @@ -6092,16 +6788,17 @@ packages: '@babel/plugin-proposal-optional-chaining': 7.18.9(@babel/core@7.20.12) dev: true - /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.18.9(@babel/core@7.21.0): - resolution: {integrity: sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==} + /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.13.0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/plugin-proposal-optional-chaining': 7.18.9(@babel/core@7.21.0) + '@babel/plugin-transform-optional-chaining': 7.23.0(@babel/core@7.23.0) + dev: true /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-31Bb65aZaUwqCbWMnZPduIZxCBngHFlzyN6Dq6KAJjtx+lx6ohKHubc61OomYi7XwVD4Ol0XCVz4h+pYFR048g==} @@ -6113,16 +6810,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/plugin-transform-optional-chaining': 7.22.5(@babel/core@7.22.5) + + /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.13.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/core@7.23.6) dev: true - /@babel/plugin-external-helpers@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-wNqc87qjLvsD1PIMQBzLn1bMuTlGzqLzM/1VGQ22Wm51cbCWS9k71ydp5iZS4hjwQNuTWSn/xbZkkusNENwtZg==} + /@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==} engines: {node: '>=6.9.0'} peerDependencies: - '@babel/core': ^7.0.0-0 + '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-external-helpers@7.18.6(@babel/core@7.22.5): resolution: {integrity: sha512-wNqc87qjLvsD1PIMQBzLn1bMuTlGzqLzM/1VGQ22Wm51cbCWS9k71ydp5iZS4hjwQNuTWSn/xbZkkusNENwtZg==} @@ -6132,7 +6842,7 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - dev: true + dev: false /@babel/plugin-proposal-async-generator-functions@7.2.0(@babel/core@7.4.5): resolution: {integrity: sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ==} @@ -6154,7 +6864,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.20.12 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.20.12) '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.20.12) @@ -6162,20 +6872,6 @@ packages: - supports-color dev: true - /@babel/plugin-proposal-async-generator-functions@7.20.7(@babel/core@7.21.0): - resolution: {integrity: sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.21.0) - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.21.0) - transitivePeerDependencies: - - supports-color - /@babel/plugin-proposal-async-generator-functions@7.20.7(@babel/core@7.4.5): resolution: {integrity: sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==} engines: {node: '>=6.9.0'} @@ -6183,7 +6879,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.4.5) '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.4.5) @@ -6194,51 +6890,35 @@ packages: /@babel/plugin-proposal-class-properties@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==} engines: {node: '>=6.9.0'} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.20.12 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.20.12) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-proposal-class-properties@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.21.0) - '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color - /@babel/plugin-proposal-class-properties@7.18.6(@babel/core@7.22.5): resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==} engines: {node: '>=6.9.0'} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color - dev: true /@babel/plugin-proposal-class-properties@7.4.4(@babel/core@7.4.5): resolution: {integrity: sha512-WjKTI8g8d5w1Bc9zgwSz2nfrsNQsXcCf9J9cdCvrJV6RF56yztwm4TmJC0MgJ9tvwO9gUA/mcYe89bLdGfiXFg==} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.4.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.4.5) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-proposal-class-static-block@7.18.6(@babel/core@7.20.12): @@ -6248,26 +6928,11 @@ packages: '@babel/core': ^7.12.0 dependencies: '@babel/core': 7.20.12 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.20.12) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.20.12) - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-proposal-class-static-block@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.12.0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.21.0) - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.21.0) - transitivePeerDependencies: - - supports-color - /@babel/plugin-proposal-decorators@7.20.7(@babel/core@7.20.12): resolution: {integrity: sha512-JB45hbUweYpwAGjkiM7uCyXMENH2lG+9r3G2E+ttc2PRXAoEkpfd/KW5jDg4j8RS6tLtTG1jZi9LbHZVSfs1/A==} engines: {node: '>=6.9.0'} @@ -6275,13 +6940,11 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.20.12 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.20.12) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.20.12) + '@babel/helper-split-export-declaration': 7.22.6 '@babel/plugin-syntax-decorators': 7.22.5(@babel/core@7.20.12) - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-proposal-decorators@7.22.5(@babel/core@7.22.5): @@ -6294,23 +6957,36 @@ packages: '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-replace-supers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 '@babel/plugin-syntax-decorators': 7.22.5(@babel/core@7.22.5) transitivePeerDependencies: - supports-color dev: true + /@babel/plugin-proposal-decorators@7.23.6(@babel/core@7.23.6): + resolution: {integrity: sha512-D7Ccq9LfkBFnow3azZGJvZYgcfeqAw3I1e5LoTpj6UKIFQilh8yqXsIGcRIqbBdsPWIz+Ze7ZZfggSj62Qp+Fg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-class-features-plugin': 7.23.6(@babel/core@7.23.6) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.6) + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/plugin-syntax-decorators': 7.23.3(@babel/core@7.23.6) + dev: true + /@babel/plugin-proposal-decorators@7.4.4(@babel/core@7.4.5): resolution: {integrity: sha512-z7MpQz3XC/iQJWXH9y+MaWcLPNSMY9RQSthrLzak8R8hCj0fuyNk+Dzi9kfNe/JxxlWQ2g7wkABbgWjW36MTcw==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.4.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.4.5) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-decorators': 7.22.5(@babel/core@7.4.5) - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-proposal-do-expressions@7.2.0(@babel/core@7.4.5): @@ -6323,15 +6999,15 @@ packages: '@babel/plugin-syntax-do-expressions': 7.22.5(@babel/core@7.4.5) dev: true - /@babel/plugin-proposal-do-expressions@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-Qh6Sbkt6xCRbHykDc709db/EQB4RJlmaW3ENuvzzi7G6GKeDNQHx81P0OdI9oEXhhHEJvLRzIr08m8HNCJWS8g==} + /@babel/plugin-proposal-do-expressions@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-j0vN+mg0UvdtkH+rPK9jrCS8qsJ5EXjAyVa6TfHzqertV4INpNykn9hatI/2xpJ6FzQlX5dM9gprslbSEDjPWQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-do-expressions': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-syntax-do-expressions': 7.23.3(@babel/core@7.23.6) dev: true /@babel/plugin-proposal-dynamic-import@7.18.6(@babel/core@7.20.12): @@ -6345,16 +7021,6 @@ packages: '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-dynamic-import@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.21.0) - /@babel/plugin-proposal-export-default-from@7.2.0(@babel/core@7.4.5): resolution: {integrity: sha512-NVfNe7F6nsasG1FnvcFxh2FN0l04ZNe75qTOAVOILWPam0tw9a63RtT/Dab8dPjedZa4fTQaQ83yMMywF9OSug==} peerDependencies: @@ -6365,15 +7031,15 @@ packages: '@babel/plugin-syntax-export-default-from': 7.22.5(@babel/core@7.4.5) dev: true - /@babel/plugin-proposal-export-default-from@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-UCe1X/hplyv6A5g2WnQ90tnHRvYL29dabCWww92lO7VdfMVTVReBTRrhiMrKQejHD9oVkdnRdwYuzUZkBVQisg==} + /@babel/plugin-proposal-export-default-from@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-Q23MpLZfSGZL1kU7fWqV262q65svLSCIP5kZ/JCW/rKTCm/FrLjpvEd2kfUYMVeHh4QhV/xzyoRAHWrAZJrE3Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-export-default-from': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-syntax-export-default-from': 7.23.3(@babel/core@7.23.6) dev: true /@babel/plugin-proposal-export-namespace-from@7.18.9(@babel/core@7.20.12): @@ -6387,16 +7053,6 @@ packages: '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-export-namespace-from@7.18.9(@babel/core@7.21.0): - resolution: {integrity: sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.21.0) - /@babel/plugin-proposal-export-namespace-from@7.2.0(@babel/core@7.4.5): resolution: {integrity: sha512-DZUxbHYxQ5fUFIkMEnh75ogEdBLPfL+mQUqrO2hNY2LGm+tqFnxE924+mhAcCOh/8za8AaZsWHbq6bBoS3TAzA==} peerDependencies: @@ -6417,15 +7073,15 @@ packages: '@babel/plugin-syntax-function-bind': 7.22.5(@babel/core@7.4.5) dev: true - /@babel/plugin-proposal-function-bind@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-ckAugfDtdcrXKP49z7K7JI7QkA8SRidmsKxLizH8mg0UWOvcmvEd9/VDLzFcWlZqchvLDPUYpwuXNGAYjsscrw==} + /@babel/plugin-proposal-function-bind@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-LlDuU9NIXn1JJugzvqWeEY4m/K/vJpIp93L2fA9tHqDVsIxezsit/sHrqJWbswWkzSIrKuuI8nF65Ewtka3k2g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-function-bind': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-syntax-function-bind': 7.23.3(@babel/core@7.23.6) dev: true /@babel/plugin-proposal-json-strings@7.18.6(@babel/core@7.20.12): @@ -6439,16 +7095,6 @@ packages: '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-json-strings@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.21.0) - /@babel/plugin-proposal-json-strings@7.18.6(@babel/core@7.4.5): resolution: {integrity: sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==} engines: {node: '>=6.9.0'} @@ -6471,16 +7117,6 @@ packages: '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-logical-assignment-operators@7.18.9(@babel/core@7.21.0): - resolution: {integrity: sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.21.0) - /@babel/plugin-proposal-nullish-coalescing-operator@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==} engines: {node: '>=6.9.0'} @@ -6492,16 +7128,6 @@ packages: '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-nullish-coalescing-operator@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.21.0) - /@babel/plugin-proposal-nullish-coalescing-operator@7.4.4(@babel/core@7.4.5): resolution: {integrity: sha512-Amph7Epui1Dh/xxUxS2+K22/MUi6+6JVTvy3P58tja3B6yKTSjwwx0/d83rF7551D6PVSSoplQb8GCwqec7HRw==} peerDependencies: @@ -6523,73 +7149,54 @@ packages: '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-numeric-separator@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.21.0) - /@babel/plugin-proposal-object-rest-spread@7.20.7(@babel/core@7.20.12): resolution: {integrity: sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==} engines: {node: '>=6.9.0'} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.20.12 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.20.12) + '@babel/helper-compilation-targets': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.20.12) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.20.12) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-object-rest-spread@7.20.7(@babel/core@7.21.0): - resolution: {integrity: sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.21.0 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.21.0) - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.21.0) - /@babel/plugin-proposal-object-rest-spread@7.20.7(@babel/core@7.22.5): resolution: {integrity: sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==} engines: {node: '>=6.9.0'} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) + '@babel/helper-compilation-targets': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.22.5) - dev: true + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.22.5) + dev: false /@babel/plugin-proposal-object-rest-spread@7.20.7(@babel/core@7.4.5): resolution: {integrity: sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==} engines: {node: '>=6.9.0'} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.4.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.4.5) + '@babel/helper-compilation-targets': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.4.5) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.4.5) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.4.5) dev: true /@babel/plugin-proposal-object-rest-spread@7.4.4(@babel/core@7.4.5): resolution: {integrity: sha512-dMBG6cSPBbHeEBdFXeQ2QLc5gUpg4Vkaz8octD4aoW/ISO+jBOcsuxYL7bsb5WSu8RLP6boxrBIALEHgoHtO9g==} + deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. peerDependencies: '@babel/core': ^7.0.0-0 dependencies: @@ -6609,16 +7216,6 @@ packages: '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-optional-catch-binding@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.21.0) - /@babel/plugin-proposal-optional-catch-binding@7.18.6(@babel/core@7.4.5): resolution: {integrity: sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==} engines: {node: '>=6.9.0'} @@ -6652,17 +7249,6 @@ packages: '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.20.12) dev: true - /@babel/plugin-proposal-optional-chaining@7.18.9(@babel/core@7.21.0): - resolution: {integrity: sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.21.0) - /@babel/plugin-proposal-optional-chaining@7.2.0(@babel/core@7.4.5): resolution: {integrity: sha512-ea3Q6edZC/55wEBVZAEz42v528VulyO0eir+7uky/sT4XRcdkWJcFi1aPtitTlwUzGnECWJNExWww1SStt+yWw==} peerDependencies: @@ -6673,26 +7259,26 @@ packages: '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.4.5) dev: true - /@babel/plugin-proposal-partial-application@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-3FKlTrBXzQ9MGfZijsGns7CZUh6ur/NA94Aw9mYKKhL3BoHaY+nF2fWeOaGfQis+VKfLy3pw5DQjjXXFGh11Rw==} + /@babel/plugin-proposal-partial-application@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-+MdvZnaDNsMZ3pl8rxlr1az5XndJwaS4jXQGCg82qq2SzLlTS29gp21Uw8JobXAe4h9lTx9PJX6GpOsFuMn0mw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-partial-application': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-syntax-partial-application': 7.23.3(@babel/core@7.23.6) dev: true - /@babel/plugin-proposal-pipeline-operator@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-nSgHJB3uP+DORxBVhQgjub0qtU/LGj/mBDz2kQEGy1EUDy3f92VWDeB3J3/41ZjVLWmkNWOd6yjdNb4a5wDfZQ==} + /@babel/plugin-proposal-pipeline-operator@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-8TDc1vEx+YRaGiF8J8w/XcADaBuqc0RnokaMRrHdX7Vx74WhmxPU8wtM/OHSXvgw45P9tlHS/l0YDpNXwLghmQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-pipeline-operator': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-syntax-pipeline-operator': 7.23.3(@babel/core@7.23.6) dev: true /@babel/plugin-proposal-pipeline-operator@7.3.2(@babel/core@7.4.5): @@ -6712,24 +7298,10 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.20.12 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.20.12) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-proposal-private-methods@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.21.0) - '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color - /@babel/plugin-proposal-private-property-in-object@7.20.5(@babel/core@7.20.12): resolution: {integrity: sha512-Vq7b9dUA12ByzB4EjQTPo25sFhY+08pQDBSZRtUAkj7lb7jahaHR5igera16QZ+3my1nYR4dKsNdYj5IjPHilQ==} engines: {node: '>=6.9.0'} @@ -6738,47 +7310,48 @@ packages: dependencies: '@babel/core': 7.20.12 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.20.12) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.20.12) - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-proposal-private-property-in-object@7.20.5(@babel/core@7.21.0): - resolution: {integrity: sha512-Vq7b9dUA12ByzB4EjQTPo25sFhY+08pQDBSZRtUAkj7lb7jahaHR5igera16QZ+3my1nYR4dKsNdYj5IjPHilQ==} + /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.22.5): + resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.21.0) - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.21.0) - transitivePeerDependencies: - - supports-color + '@babel/core': 7.22.5 - /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.22.5): + /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.23.0): resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + dev: true + + /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.23.6): + resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 dev: true - /@babel/plugin-proposal-record-and-tuple@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-t58MxQC7oyaYA8FjROcc1re39eYolitHJwgz5tYyRWUf2OLZtsebOdjssyin97shqXfhNxVxzk5NT9ujfX3vBA==} + /@babel/plugin-proposal-record-and-tuple@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-mF8VWODumQRqmcIy3Zq8u2FSoYuYwmEoGa31FtMQEEg42/AivwYEqD4CMaxIZBjY+e7SR25Z8R0Nm66cMADmFg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.12.0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/core': 7.23.6 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-option': 7.22.5 - '@babel/plugin-syntax-record-and-tuple': 7.22.5(@babel/core@7.22.5) + '@babel/helper-validator-option': 7.23.5 + '@babel/plugin-syntax-record-and-tuple': 7.23.3(@babel/core@7.23.6) dev: true /@babel/plugin-proposal-unicode-property-regex@7.18.6(@babel/core@7.20.12): @@ -6792,16 +7365,6 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-proposal-unicode-property-regex@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==} - engines: {node: '>=4'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.21.0) - '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-proposal-unicode-property-regex@7.18.6(@babel/core@7.22.5): resolution: {integrity: sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==} engines: {node: '>=4'} @@ -6811,7 +7374,6 @@ packages: '@babel/core': 7.22.5 '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 - dev: true /@babel/plugin-proposal-unicode-property-regex@7.18.6(@babel/core@7.4.5): resolution: {integrity: sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==} @@ -6833,45 +7395,46 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.21.0): + /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.22.5): resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.22.5): + /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.23.0): resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + dev: true - /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.4.5): + /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.23.6): resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - dev: true - /@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.21.0): - resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} + /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.4.5): + resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 + dev: true - /@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.23.6): resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.20.12): @@ -6883,20 +7446,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.21.0): + /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.22.5): resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.22.5): + /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.23.0): resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.23.6): + resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.20.12): @@ -6909,22 +7481,32 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.21.0): + /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.22.5): resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.22.5): + /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.23.0): resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.23.6): + resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -6958,13 +7540,13 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-do-expressions@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-60pOTgQGY00/Kiozrtu286Aqg50IxDy/jIHhlMzXjYTs1Q8lbeOgqC9NLidtqfBNwdX6bZCT6FJ2i5xzt+JKzw==} + /@babel/plugin-syntax-decorators@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-cf7Niq4/+/juY67E0PbgH0TDhLQ5J7zS8C/Q5FFx+DWyrRa9sUQdTXkjqKu8zGvuqr7vw1muKiukseihU+PJDA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -6978,6 +7560,16 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-syntax-do-expressions@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-GBmwXqthSDjlXzwF19qZjFBeHtigX9/0g670FSv8gKEjbD4k+BuRBPlpDQdr/+ts0UlimhJUd/oPilMFqyHq+w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-syntax-dynamic-import@7.2.0(@babel/core@7.4.5): resolution: {integrity: sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==} peerDependencies: @@ -6996,30 +7588,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.21.0): + /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.23.0): resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-export-default-from@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-ODAqWWXB/yReh/jVQDag/3/tl6lgBueQkk/TcfW/59Oykm4c8a55XloX0CTk2k2VJiFWMgHby9xNX29IbCv9dQ==} - engines: {node: '>=6.9.0'} + /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.23.6): + resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7033,6 +7624,16 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-syntax-export-default-from@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-KeENO5ck1IeZ/l2lFZNy+mpobV3D2Zy5C1YFnWm+YuY5mQiAWc4yAp13dqgguwsBsFVLh4LPCEqCa5qW13N+hw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.20.12): resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==} peerDependencies: @@ -7042,20 +7643,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.21.0): + /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.23.0): resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.23.6): + resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7068,23 +7678,23 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-function-bind@7.22.5(@babel/core@7.22.5): + /@babel/plugin-syntax-function-bind@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-Sjy7XIhHF9L++0Mk/3Y4H4439cjI//wc/jE8Ly3+qGPkTUYYEhe4rzMv/JnyZpekfOBL22X6DAq42I7GM/3KzA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-function-bind@7.22.5(@babel/core@7.4.5): - resolution: {integrity: sha512-Sjy7XIhHF9L++0Mk/3Y4H4439cjI//wc/jE8Ly3+qGPkTUYYEhe4rzMv/JnyZpekfOBL22X6DAq42I7GM/3KzA==} + /@babel/plugin-syntax-function-bind@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-BVBglNxpv45awQYCln57SX2EJge4YK0liwH1Clzk/Nnx/bdLmZRhP0vt1koJqDLAEG8MngIPbIMNNNOXPcnXYQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7098,22 +7708,32 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-import-assertions@7.20.0(@babel/core@7.21.0): - resolution: {integrity: sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==} + /@babel/plugin-syntax-import-assertions@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-import-assertions@7.22.5(@babel/core@7.22.5): + /@babel/plugin-syntax-import-assertions@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-import-assertions@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7125,15 +7745,26 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-syntax-import-attributes@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.21.0): - resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + /@babel/plugin-syntax-import-attributes@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.22.5): resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} @@ -7143,6 +7774,23 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.23.0): + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.23.6): + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.20.12): resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} peerDependencies: @@ -7152,20 +7800,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.21.0): + /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.23.0): resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.23.6): + resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.4.5): @@ -7195,19 +7852,28 @@ packages: dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 - dev: true - /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.21.0): + /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==} + /@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.20.12): + resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.20.12 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.22.5): + resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -7215,8 +7881,17 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.4.5): - resolution: {integrity: sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==} + /@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-syntax-jsx@7.23.3(@babel/core@7.4.5): + resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -7233,20 +7908,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.21.0): + /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.22.5): resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.22.5): + /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.23.0): resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.23.6): + resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.20.12): @@ -7258,20 +7942,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.21.0): + /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.23.0): resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.23.6): + resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.4.5): @@ -7292,20 +7985,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.21.0): + /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.22.5): + resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.5 + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.23.0): resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + dev: true - /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.22.5): + /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.23.6): resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.20.12): @@ -7317,20 +8019,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.21.0): + /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.23.0): resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.23.6): + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.4.5): @@ -7351,20 +8062,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.21.0): + /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.23.0): resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.23.6): + resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.4.5): @@ -7385,20 +8105,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.21.0): + /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.22.5): resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.22.5): + /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.23.0): resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.23.6): + resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.4.5): @@ -7410,33 +8139,33 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-partial-application@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-Nqljda6NhbZDP42ET/WzoxFHcv5wpfLPrdImbc3GR30x2FVS2dSVYIGCtgJKUi5beaQLPIzeu9uuDiap6svjMw==} + /@babel/plugin-syntax-partial-application@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-KVHN7dEaQIXkIoHUQtMUIVtlaavL+fygQWxB6i10YuboMdCpEAlcufiXUgjQ1JRSniVD49AiaxqHnKMcq53JEQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-pipeline-operator@7.22.5(@babel/core@7.22.5): + /@babel/plugin-syntax-pipeline-operator@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-7yuGXd+h8gpR14FnPDTTCd5TfC/1B9njNZJT29GJ7UFF/WVbzkZy7728DynrENqgImqj5xyPTQAo8si9n3QVJQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-pipeline-operator@7.22.5(@babel/core@7.4.5): - resolution: {integrity: sha512-7yuGXd+h8gpR14FnPDTTCd5TfC/1B9njNZJT29GJ7UFF/WVbzkZy7728DynrENqgImqj5xyPTQAo8si9n3QVJQ==} + /@babel/plugin-syntax-pipeline-operator@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-xypNE8ptJ5buVtgAAOZzN3gIV6McZfMA27GMhy70a8auQIxbLW9g/uKsaoWqUHdPJgpsXYjVD+5oDyS6pRvraA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7450,32 +8179,42 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.21.0): + /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.22.5): resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.22.5): + /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.23.0): resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.23.6): + resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-record-and-tuple@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-jKO0ud5P957jh1s4OuBUJCrzGoJEFJ8r+K9Mq7pJoGo/sdxyNY9AbXxa2v3QL05NGv7D+wGOu7PozaYCUlazAA==} + /@babel/plugin-syntax-record-and-tuple@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-tTqm/5ufOfL7ZJ5zV369A3GpRe5FVTaX2Vv1Idl5k7SV545qRVRUgUqF1jbuY7OFRUIrLZJJoYjeU+aFlM1ikg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7489,22 +8228,32 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.21.0): + /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.22.5): resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.22.5): + /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.23.0): resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.23.6): + resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.20.12): @@ -7517,22 +8266,31 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.21.0): + /@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.22.5): + /@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.23.6): resolution: {integrity: sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-syntax-typescript@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.22.5): @@ -7542,7 +8300,28 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-regexp-features-plugin': 7.20.5(@babel/core@7.22.5) + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.23.0): + resolution: {integrity: sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.23.6): + resolution: {integrity: sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7556,22 +8335,22 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-arrow-functions@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==} + /@babel/plugin-transform-arrow-functions@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-arrow-functions@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-arrow-functions@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7585,6 +8364,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-arrow-functions@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-async-generator-functions@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-jBm1Es25Y+tVoTi5rfd5t1KLmL8ogLKpXszboWOTTtGFGz2RKnQe2yn7HbZ+kb/B8N0FVSGQo874NSlOU1T4+w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.23.0) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.0) + dev: true + /@babel/plugin-transform-async-generator-functions@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-gGOEvFzm3fWoyD5uZq7vVTD57pPJ3PczPUD/xCFGjzBpUosnklmXyKnGQbbbGs1NPNPskFex0j93yKbHt0cHyg==} engines: {node: '>=6.9.0'} @@ -7592,12 +8394,24 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.22.5) '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.22.5) transitivePeerDependencies: - supports-color + + /@babel/plugin-transform-async-generator-functions@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.23.6) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.6) dev: true /@babel/plugin-transform-async-to-generator@7.18.6(@babel/core@7.20.12): @@ -7607,38 +8421,34 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.20.12 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.20.12) transitivePeerDependencies: - supports-color dev: true - /@babel/plugin-transform-async-to-generator@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==} + /@babel/plugin-transform-async-to-generator@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-module-imports': 7.22.5 + '@babel/core': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.21.0) - transitivePeerDependencies: - - supports-color + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.22.5) - /@babel/plugin-transform-async-to-generator@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-async-to-generator@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.22.5) - transitivePeerDependencies: - - supports-color + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.23.0) dev: true /@babel/plugin-transform-async-to-generator@7.22.5(@babel/core@7.4.5): @@ -7648,31 +8458,32 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-remap-async-to-generator': 7.22.5(@babel/core@7.4.5) - transitivePeerDependencies: - - supports-color + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.4.5) dev: true - /@babel/plugin-transform-block-scoped-functions@7.18.6(@babel/core@7.20.12): - resolution: {integrity: sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==} + /@babel/plugin-transform-async-to-generator@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.23.6) dev: true - /@babel/plugin-transform-block-scoped-functions@7.18.6(@babel/core@7.21.0): + /@babel/plugin-transform-block-scoped-functions@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-block-scoped-functions@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==} @@ -7682,6 +8493,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-block-scoped-functions@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-block-scoped-functions@7.22.5(@babel/core@7.4.5): @@ -7694,24 +8514,25 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-block-scoping@7.20.11(@babel/core@7.20.12): - resolution: {integrity: sha512-tA4N427a7fjf1P0/2I4ScsHGc5jcHPbb30xMbaTke2gxDuWpUfXDuX1FEymJwKk4tuGUvGcejAR6HdZVqmmPyw==} + /@babel/plugin-transform-block-scoped-functions@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-block-scoping@7.20.11(@babel/core@7.21.0): + /@babel/plugin-transform-block-scoping@7.20.11(@babel/core@7.20.12): resolution: {integrity: sha512-tA4N427a7fjf1P0/2I4ScsHGc5jcHPbb30xMbaTke2gxDuWpUfXDuX1FEymJwKk4tuGUvGcejAR6HdZVqmmPyw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-block-scoping@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-EcACl1i5fSQ6bt+YGuU/XGCeZKStLmyVGytWkpyhCLeQVA0eu6Wtiw92V+I1T/hnezUv7j74dA/Ro69gWcU+hg==} @@ -7721,7 +8542,6 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - dev: true /@babel/plugin-transform-block-scoping@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-EcACl1i5fSQ6bt+YGuU/XGCeZKStLmyVGytWkpyhCLeQVA0eu6Wtiw92V+I1T/hnezUv7j74dA/Ro69gWcU+hg==} @@ -7733,6 +8553,26 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-block-scoping@7.23.0(@babel/core@7.23.0): + resolution: {integrity: sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-block-scoping@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-transform-class-properties@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==} engines: {node: '>=6.9.0'} @@ -7744,6 +8584,41 @@ packages: '@babel/helper-plugin-utils': 7.22.5 transitivePeerDependencies: - supports-color + + /@babel/plugin-transform-class-properties@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-class-properties@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-class-features-plugin': 7.23.6(@babel/core@7.23.6) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-class-static-block@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.12.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.23.0) dev: true /@babel/plugin-transform-class-static-block@7.22.5(@babel/core@7.22.5): @@ -7753,11 +8628,20 @@ packages: '@babel/core': ^7.12.0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.22.5) - transitivePeerDependencies: - - supports-color + + /@babel/plugin-transform-class-static-block@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.12.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-class-features-plugin': 7.23.6(@babel/core@7.23.6) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.23.6) dev: true /@babel/plugin-transform-classes@7.20.7(@babel/core@7.20.12): @@ -7768,36 +8652,33 @@ packages: dependencies: '@babel/core': 7.20.12 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.20.12) - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.20.12) + '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-transform-classes@7.20.7(@babel/core@7.21.0): - resolution: {integrity: sha512-LWYbsiXTPKl+oBlXUGlwNlJZetXD5Am+CyBdqhPsDVjM9Jc8jwBJFrKhHf900Kfk2eZG1y9MAG3UNajol7A4VQ==} + /@babel/plugin-transform-classes@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.0 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.21.0) - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.0) + '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 - transitivePeerDependencies: - - supports-color + dev: true /@babel/plugin-transform-classes@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-2edQhLfibpWpsVBx2n/GKOz6JdGQvLruZQfGr9l1qes2KQaWswjBzhQF7UDUZMNaMMQeYnQzxwOMPsbYF7wqPQ==} @@ -7807,17 +8688,14 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.22.5) + '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: true /@babel/plugin-transform-classes@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-2edQhLfibpWpsVBx2n/GKOz6JdGQvLruZQfGr9l1qes2KQaWswjBzhQF7UDUZMNaMMQeYnQzxwOMPsbYF7wqPQ==} @@ -7827,36 +8705,43 @@ packages: dependencies: '@babel/core': 7.4.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.4.5) - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.4.5) + '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-transform-computed-properties@7.18.9(@babel/core@7.20.12): - resolution: {integrity: sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==} + /@babel/plugin-transform-classes@7.23.5(@babel/core@7.23.6): + resolution: {integrity: sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.6) + '@babel/helper-split-export-declaration': 7.22.6 + globals: 11.12.0 dev: true - /@babel/plugin-transform-computed-properties@7.18.9(@babel/core@7.21.0): + /@babel/plugin-transform-computed-properties@7.18.9(@babel/core@7.20.12): resolution: {integrity: sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-computed-properties@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==} @@ -7866,7 +8751,17 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/template': 7.22.5 + '@babel/template': 7.22.15 + + /@babel/plugin-transform-computed-properties@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/template': 7.22.15 dev: true /@babel/plugin-transform-computed-properties@7.22.5(@babel/core@7.4.5): @@ -7877,27 +8772,29 @@ packages: dependencies: '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/template': 7.22.5 + '@babel/template': 7.22.15 dev: true - /@babel/plugin-transform-destructuring@7.20.7(@babel/core@7.20.12): - resolution: {integrity: sha512-Xwg403sRrZb81IVB79ZPqNQME23yhugYVqgTxAhT99h485F4f+GMELFhhOsscDUB7HCswepKeCKLn/GZvUKoBA==} + /@babel/plugin-transform-computed-properties@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 + '@babel/template': 7.22.15 dev: true - /@babel/plugin-transform-destructuring@7.20.7(@babel/core@7.21.0): + /@babel/plugin-transform-destructuring@7.20.7(@babel/core@7.20.12): resolution: {integrity: sha512-Xwg403sRrZb81IVB79ZPqNQME23yhugYVqgTxAhT99h485F4f+GMELFhhOsscDUB7HCswepKeCKLn/GZvUKoBA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-destructuring@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-GfqcFuGW8vnEqTUBM7UtPd5A4q797LTvvwKxXTgRsFjoqaJiEg9deBG6kWeQYkVEL569NpnmpC0Pkr/8BLKGnQ==} @@ -7907,7 +8804,6 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - dev: true /@babel/plugin-transform-destructuring@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-GfqcFuGW8vnEqTUBM7UtPd5A4q797LTvvwKxXTgRsFjoqaJiEg9deBG6kWeQYkVEL569NpnmpC0Pkr/8BLKGnQ==} @@ -7919,38 +8815,37 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-destructuring@7.4.4(@babel/core@7.4.5): - resolution: {integrity: sha512-/aOx+nW0w8eHiEHm+BTERB2oJn5D127iye/SUQl7NjHy0lf+j7h4MKMMSOwdazGq9OxgiNADncE+SRJkCxjZpQ==} + /@babel/plugin-transform-destructuring@7.23.0(@babel/core@7.23.0): + resolution: {integrity: sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-dotall-regex@7.18.6(@babel/core@7.20.12): - resolution: {integrity: sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==} + /@babel/plugin-transform-destructuring@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.20.12) + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-dotall-regex@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==} - engines: {node: '>=6.9.0'} + /@babel/plugin-transform-destructuring@7.4.4(@babel/core@7.4.5): + resolution: {integrity: sha512-/aOx+nW0w8eHiEHm+BTERB2oJn5D127iye/SUQl7NjHy0lf+j7h4MKMMSOwdazGq9OxgiNADncE+SRJkCxjZpQ==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.21.0) + '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 + dev: true - /@babel/plugin-transform-dotall-regex@7.22.5(@babel/core@7.20.12): - resolution: {integrity: sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==} + /@babel/plugin-transform-dotall-regex@7.18.6(@babel/core@7.20.12): + resolution: {integrity: sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -7960,15 +8855,16 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-dotall-regex@7.22.5(@babel/core@7.21.0): + /@babel/plugin-transform-dotall-regex@7.22.5(@babel/core@7.20.12): resolution: {integrity: sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.21.0) + '@babel/core': 7.20.12 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-dotall-regex@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==} @@ -7977,7 +8873,17 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-dotall-regex@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.0) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -7988,28 +8894,30 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.4.5) + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.4.5) '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-duplicate-keys@7.18.9(@babel/core@7.20.12): - resolution: {integrity: sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==} + /@babel/plugin-transform-dotall-regex@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-duplicate-keys@7.18.9(@babel/core@7.21.0): + /@babel/plugin-transform-duplicate-keys@7.18.9(@babel/core@7.20.12): resolution: {integrity: sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-duplicate-keys@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==} @@ -8019,6 +8927,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-duplicate-keys@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-duplicate-keys@7.22.5(@babel/core@7.4.5): @@ -8031,6 +8948,27 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-duplicate-keys@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-dynamic-import@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.23.0) + dev: true + /@babel/plugin-transform-dynamic-import@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-0MC3ppTB1AMxd8fXjSrbPa7LT9hrImt+/fcj+Pg5YMD7UQyWp/02+JWpdnCymmsXwIx5Z+sYn1bwCn4ZJNvhqQ==} engines: {node: '>=6.9.0'} @@ -8040,6 +8978,16 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.22.5) + + /@babel/plugin-transform-dynamic-import@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.23.6) dev: true /@babel/plugin-transform-exponentiation-operator@7.18.6(@babel/core@7.20.12): @@ -8053,24 +9001,24 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-exponentiation-operator@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==} + /@babel/plugin-transform-exponentiation-operator@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.5 + '@babel/core': 7.22.5 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-exponentiation-operator@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-exponentiation-operator@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8081,8 +9029,30 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.5 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-exponentiation-operator@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-export-namespace-from@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.23.0) dev: true /@babel/plugin-transform-export-namespace-from@7.22.5(@babel/core@7.22.5): @@ -8094,6 +9064,16 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.22.5) + + /@babel/plugin-transform-export-namespace-from@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.23.6) dev: true /@babel/plugin-transform-for-of@7.18.8(@babel/core@7.20.12): @@ -8106,14 +9086,15 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-for-of@7.18.8(@babel/core@7.21.0): - resolution: {integrity: sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==} + /@babel/plugin-transform-for-of@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-for-of@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-3kxQjX1dU9uudwSshyLeEipvrLjBCVthCgeTp6CzE/9JYrlAIaeekVxRpCWsDDfYTfRZRoCeZatCQvwo+wvK8A==} @@ -8123,7 +9104,6 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - dev: true /@babel/plugin-transform-for-of@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-3kxQjX1dU9uudwSshyLeEipvrLjBCVthCgeTp6CzE/9JYrlAIaeekVxRpCWsDDfYTfRZRoCeZatCQvwo+wvK8A==} @@ -8135,28 +9115,28 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-function-name@7.18.9(@babel/core@7.20.12): - resolution: {integrity: sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==} + /@babel/plugin-transform-for-of@7.23.6(@babel/core@7.23.6): + resolution: {integrity: sha512-aYH4ytZ0qSuBbpfhuofbg/e96oQ7U2w1Aw/UQmKT+1l39uEhUPoFS3fHevDc1G0OvewyDudfMKY1OulczHzWIw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.20.12) - '@babel/helper-function-name': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 dev: true - /@babel/plugin-transform-function-name@7.18.9(@babel/core@7.21.0): + /@babel/plugin-transform-function-name@7.18.9(@babel/core@7.20.12): resolution: {integrity: sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.21.0) - '@babel/helper-function-name': 7.22.5 + '@babel/core': 7.20.12 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-function-name': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-function-name@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==} @@ -8165,8 +9145,19 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) - '@babel/helper-function-name': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-function-name@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-function-name': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8177,9 +9168,32 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.4.5) - '@babel/helper-function-name': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-function-name@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-json-strings@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.0) dev: true /@babel/plugin-transform-json-strings@7.22.5(@babel/core@7.22.5): @@ -8191,6 +9205,16 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.22.5) + + /@babel/plugin-transform-json-strings@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.6) dev: true /@babel/plugin-transform-literals@7.18.9(@babel/core@7.20.12): @@ -8203,22 +9227,22 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-literals@7.18.9(@babel/core@7.21.0): - resolution: {integrity: sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==} + /@babel/plugin-transform-literals@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-literals@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-literals@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8232,6 +9256,27 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-literals@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-logical-assignment-operators@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.0) + dev: true + /@babel/plugin-transform-logical-assignment-operators@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-MQQOUW1KL8X0cDWfbwYP+TbVbZm16QmQXJQ+vndPtH/BoO0lOKpVoEDMI7+PskYxH+IiE0tS8xZye0qr1lGzSA==} engines: {node: '>=6.9.0'} @@ -8241,6 +9286,16 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.22.5) + + /@babel/plugin-transform-logical-assignment-operators@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.6) dev: true /@babel/plugin-transform-member-expression-literals@7.18.6(@babel/core@7.20.12): @@ -8253,22 +9308,22 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-member-expression-literals@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==} + /@babel/plugin-transform-member-expression-literals@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-member-expression-literals@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-member-expression-literals@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8282,30 +9337,26 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-modules-amd@7.20.11(@babel/core@7.20.12): - resolution: {integrity: sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==} + /@babel/plugin-transform-member-expression-literals@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-module-transforms': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-transform-modules-amd@7.20.11(@babel/core@7.21.0): + /@babel/plugin-transform-modules-amd@7.20.11(@babel/core@7.20.12): resolution: {integrity: sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-module-transforms': 7.22.5 + '@babel/core': 7.20.12 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color + dev: true /@babel/plugin-transform-modules-amd@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ==} @@ -8314,10 +9365,18 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-modules-amd@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.0) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-transform-modules-amd@7.22.5(@babel/core@7.4.5): @@ -8327,122 +9386,102 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.4.5) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-transform-modules-commonjs@7.20.11(@babel/core@7.20.12): - resolution: {integrity: sha512-S8e1f7WQ7cimJQ51JkAaDrEtohVEitXjgCGAS2N8S31Y42E+kWwfSz83LYz57QdBm7q9diARVqanIaH2oVgQnw==} + /@babel/plugin-transform-modules-amd@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-module-transforms': 7.22.5 + '@babel/core': 7.23.6 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-simple-access': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true - /@babel/plugin-transform-modules-commonjs@7.20.11(@babel/core@7.21.0): - resolution: {integrity: sha512-S8e1f7WQ7cimJQ51JkAaDrEtohVEitXjgCGAS2N8S31Y42E+kWwfSz83LYz57QdBm7q9diARVqanIaH2oVgQnw==} + /@babel/plugin-transform-modules-commonjs@7.21.2: + resolution: {integrity: sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.0) '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-simple-access': 7.22.5 - transitivePeerDependencies: - - supports-color + dev: false - /@babel/plugin-transform-modules-commonjs@7.21.2(@babel/core@7.21.0): - resolution: {integrity: sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==} + /@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.20.12): + resolution: {integrity: sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-module-transforms': 7.21.2 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/helper-simple-access': 7.20.2 - transitivePeerDependencies: - - supports-color + '@babel/core': 7.20.12 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.20.12) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-simple-access': 7.22.5 + dev: true - /@babel/plugin-transform-modules-commonjs@7.21.2(@babel/core@7.22.5): - resolution: {integrity: sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==} + /@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.22.5): + resolution: {integrity: sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-module-transforms': 7.21.2 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/helper-simple-access': 7.20.2 - transitivePeerDependencies: - - supports-color - dev: true + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-simple-access': 7.22.5 - /@babel/plugin-transform-modules-commonjs@7.21.2(@babel/core@7.4.5): - resolution: {integrity: sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==} + /@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.23.0): + resolution: {integrity: sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 - '@babel/helper-module-transforms': 7.21.2 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/helper-simple-access': 7.20.2 - transitivePeerDependencies: - - supports-color + '@babel/core': 7.23.0 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-simple-access': 7.22.5 dev: true - /@babel/plugin-transform-modules-commonjs@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-B4pzOXj+ONRmuaQTg05b3y/4DuFz3WcCNAXPLb2Q0GT0TrGKGxNKV4jwsXts+StaM0LQczZbOpj8o1DLPDJIiA==} + /@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/core': 7.23.6 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-simple-access': 7.22.5 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/plugin-transform-modules-systemjs@7.20.11(@babel/core@7.20.12): - resolution: {integrity: sha512-vVu5g9BPQKSFEmvt2TA4Da5N+QVS66EX21d8uoOihC+OCpUoGvzVsXeqFdtAEfVa5BILAeFt+U7yVmLbQnAJmw==} + /@babel/plugin-transform-modules-commonjs@7.23.3(@babel/core@7.4.5): + resolution: {integrity: sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/core': 7.4.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.4.5) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-simple-access': 7.22.5 dev: true - /@babel/plugin-transform-modules-systemjs@7.20.11(@babel/core@7.21.0): + /@babel/plugin-transform-modules-systemjs@7.20.11(@babel/core@7.20.12): resolution: {integrity: sha512-vVu5g9BPQKSFEmvt2TA4Da5N+QVS66EX21d8uoOihC+OCpUoGvzVsXeqFdtAEfVa5BILAeFt+U7yVmLbQnAJmw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-validator-identifier': 7.22.20 + dev: true /@babel/plugin-transform-modules-systemjs@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-emtEpoaTMsOs6Tzz+nbmcePl6AKVtS1yC4YNAeMun9U8YCsgadPNxnOPQ8GhHFB2qdx+LZu9LgoC0Lthuu05DQ==} @@ -8452,12 +9491,9 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 - transitivePeerDependencies: - - supports-color - dev: true + '@babel/helper-validator-identifier': 7.22.20 /@babel/plugin-transform-modules-systemjs@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-emtEpoaTMsOs6Tzz+nbmcePl6AKVtS1yC4YNAeMun9U8YCsgadPNxnOPQ8GhHFB2qdx+LZu9LgoC0Lthuu05DQ==} @@ -8467,37 +9503,47 @@ packages: dependencies: '@babel/core': 7.4.5 '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.4.5) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-validator-identifier': 7.22.20 dev: true - /@babel/plugin-transform-modules-umd@7.18.6(@babel/core@7.20.12): - resolution: {integrity: sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==} + /@babel/plugin-transform-modules-systemjs@7.23.0(@babel/core@7.23.0): + resolution: {integrity: sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-module-transforms': 7.22.5 + '@babel/core': 7.23.0 + '@babel/helper-hoist-variables': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.0) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-validator-identifier': 7.22.20 dev: true - /@babel/plugin-transform-modules-umd@7.18.6(@babel/core@7.21.0): + /@babel/plugin-transform-modules-systemjs@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-hoist-variables': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.6) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-identifier': 7.22.20 + dev: true + + /@babel/plugin-transform-modules-umd@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-module-transforms': 7.22.5 + '@babel/core': 7.20.12 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color + dev: true /@babel/plugin-transform-modules-umd@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==} @@ -8506,10 +9552,18 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-modules-umd@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.0) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-transform-modules-umd@7.22.5(@babel/core@7.4.5): @@ -8519,10 +9573,19 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-module-transforms': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.4.5) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-modules-umd@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-transform-named-capturing-groups-regex@7.20.5(@babel/core@7.20.12): @@ -8536,24 +9599,35 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-named-capturing-groups-regex@7.20.5(@babel/core@7.21.0): - resolution: {integrity: sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==} + /@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.21.0) + '@babel/core': 7.22.5 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/core': 7.23.0 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.23.6): + resolution: {integrity: sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8564,7 +9638,7 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.4.5) + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.4.5) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8578,22 +9652,22 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-new-target@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==} + /@babel/plugin-transform-new-target@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-new-target@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-new-target@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8607,6 +9681,27 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-new-target@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-nullish-coalescing-operator@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.0) + dev: true + /@babel/plugin-transform-nullish-coalescing-operator@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-6CF8g6z1dNYZ/VXok5uYkkBBICHZPiGEl7oDnAx2Mt1hlHVHOSIKWJaXHjQJA5VB43KZnXZDIexMchY4y2PGdA==} engines: {node: '>=6.9.0'} @@ -8616,6 +9711,27 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.22.5) + + /@babel/plugin-transform-nullish-coalescing-operator@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.6) + dev: true + + /@babel/plugin-transform-numeric-separator@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.0) dev: true /@babel/plugin-transform-numeric-separator@7.22.5(@babel/core@7.22.5): @@ -8627,6 +9743,30 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.22.5) + + /@babel/plugin-transform-numeric-separator@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.6) + dev: true + + /@babel/plugin-transform-object-rest-spread@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.23.2 + '@babel/core': 7.23.0 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.23.0) dev: true /@babel/plugin-transform-object-rest-spread@7.22.5(@babel/core@7.22.5): @@ -8635,12 +9775,25 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) + '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.22.5) + + /@babel/plugin-transform-object-rest-spread@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.23.5 + '@babel/core': 7.23.6 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-transform-parameters': 7.23.3(@babel/core@7.23.6) dev: true /@babel/plugin-transform-object-super@7.18.6(@babel/core@7.20.12): @@ -8651,34 +9804,28 @@ packages: dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.20.12) dev: true - /@babel/plugin-transform-object-super@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==} + /@babel/plugin-transform-object-super@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.22.5) - /@babel/plugin-transform-object-super@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-object-super@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.0) dev: true /@babel/plugin-transform-object-super@7.22.5(@babel/core@7.4.5): @@ -8689,9 +9836,29 @@ packages: dependencies: '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-replace-supers': 7.22.5 - transitivePeerDependencies: - - supports-color + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.4.5) + dev: true + + /@babel/plugin-transform-object-super@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.6) + dev: true + + /@babel/plugin-transform-optional-catch-binding@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.0) dev: true /@babel/plugin-transform-optional-catch-binding@7.22.5(@babel/core@7.22.5): @@ -8703,6 +9870,16 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.22.5) + + /@babel/plugin-transform-optional-catch-binding@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.6) dev: true /@babel/plugin-transform-optional-chaining@7.22.5(@babel/core@7.22.5): @@ -8715,6 +9892,29 @@ packages: '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.22.5) + + /@babel/plugin-transform-optional-chaining@7.23.0(@babel/core@7.23.0): + resolution: {integrity: sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.0) + dev: true + + /@babel/plugin-transform-optional-chaining@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.6) dev: true /@babel/plugin-transform-parameters@7.20.7(@babel/core@7.20.12): @@ -8727,33 +9927,44 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-parameters@7.20.7(@babel/core@7.21.0): - resolution: {integrity: sha512-WiWBIkeHKVOSYPO0pWkxGPfKeWrCJyD3NJ53+Lrp/QMSZbsVPovrVl2aWZ19D/LTVnaDv5Ap7GJ/B2CTOZdrfA==} + /@babel/plugin-transform-parameters@7.22.15(@babel/core@7.20.12): + resolution: {integrity: sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true - /@babel/plugin-transform-parameters@7.22.5(@babel/core@7.20.12): - resolution: {integrity: sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg==} + /@babel/plugin-transform-parameters@7.22.15(@babel/core@7.22.5): + resolution: {integrity: sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.22.5 + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-parameters@7.22.15(@babel/core@7.23.0): + resolution: {integrity: sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-parameters@7.22.5(@babel/core@7.21.0): - resolution: {integrity: sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg==} + /@babel/plugin-transform-parameters@7.22.15(@babel/core@7.4.5): + resolution: {integrity: sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-parameters@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg==} @@ -8763,15 +9974,14 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - dev: true - /@babel/plugin-transform-parameters@7.22.5(@babel/core@7.4.5): - resolution: {integrity: sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg==} + /@babel/plugin-transform-parameters@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8786,6 +9996,42 @@ packages: '@babel/helper-plugin-utils': 7.22.5 transitivePeerDependencies: - supports-color + + /@babel/plugin-transform-private-methods@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-private-methods@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-class-features-plugin': 7.23.6(@babel/core@7.23.6) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-private-property-in-object@7.22.11(@babel/core@7.23.0): + resolution: {integrity: sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.23.0) dev: true /@babel/plugin-transform-private-property-in-object@7.22.5(@babel/core@7.22.5): @@ -8801,6 +10047,18 @@ packages: '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.22.5) transitivePeerDependencies: - supports-color + + /@babel/plugin-transform-private-property-in-object@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-create-class-features-plugin': 7.23.6(@babel/core@7.23.6) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.23.6) dev: true /@babel/plugin-transform-property-literals@7.18.6(@babel/core@7.20.12): @@ -8813,22 +10071,22 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-property-literals@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==} + /@babel/plugin-transform-property-literals@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-property-literals@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-property-literals@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -8842,24 +10100,25 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-react-display-name@7.18.6(@babel/core@7.20.12): - resolution: {integrity: sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==} + /@babel/plugin-transform-property-literals@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-react-display-name@7.18.6(@babel/core@7.21.0): + /@babel/plugin-transform-react-display-name@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-react-display-name@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==} @@ -8869,7 +10128,6 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - dev: true /@babel/plugin-transform-react-display-name@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==} @@ -8881,6 +10139,16 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-react-display-name@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-GnvhtVfA2OAtzdX58FJxU19rhoGeQzyVndw3GgtdECQvQFXPEZIOVULHVZGAYmOgmqjXpVpfocAbSjh99V/Fqw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-transform-react-jsx-development@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==} engines: {node: '>=6.9.0'} @@ -8891,23 +10159,23 @@ packages: '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.20.12) dev: true - /@babel/plugin-transform-react-jsx-development@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==} + /@babel/plugin-transform-react-jsx-development@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.21.0) + '@babel/core': 7.22.5 + '@babel/plugin-transform-react-jsx': 7.23.4(@babel/core@7.22.5) - /@babel/plugin-transform-react-jsx-development@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-react-jsx-development@7.22.5(@babel/core@7.23.6): resolution: {integrity: sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.5) + '@babel/core': 7.23.6 + '@babel/plugin-transform-react-jsx': 7.23.4(@babel/core@7.23.6) dev: true /@babel/plugin-transform-react-jsx-self@7.18.6(@babel/core@7.21.0): @@ -8930,13 +10198,13 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-react-jsx-self@7.21.0(@babel/core@7.22.5): - resolution: {integrity: sha512-f/Eq+79JEu+KUANFks9UZCcvydOOGMgF7jBrcwjHa5jTZD8JivnhCJYvmlhR/WTXBWonDExPoW0eO/CR4QJirA==} + /@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 /@babel/plugin-transform-react-jsx-source@7.19.6(@babel/core@7.21.0): @@ -8949,24 +10217,24 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-react-jsx-source@7.19.6(@babel/core@7.22.5): + /@babel/plugin-transform-react-jsx-source@7.19.6(@babel/core@7.4.5): resolution: {integrity: sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.4.5 '@babel/helper-plugin-utils': 7.22.5 + dev: true - /@babel/plugin-transform-react-jsx-source@7.19.6(@babel/core@7.4.5): - resolution: {integrity: sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ==} + /@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - dev: true /@babel/plugin-transform-react-jsx@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==} @@ -8976,78 +10244,78 @@ packages: dependencies: '@babel/core': 7.20.12 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.20.12) - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 dev: true - /@babel/plugin-transform-react-jsx@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==} - engines: {node: '>=6.9.0'} + /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.20.12): + resolution: {integrity: sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.21.0) - '@babel/types': 7.22.5 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.20.12) + '@babel/types': 7.23.6 + dev: true - /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.20.12): + /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.20.12) - '@babel/types': 7.22.5 - dev: true + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.22.5) + '@babel/types': 7.23.6 - /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.21.0): + /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.4.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.21.0) - '@babel/types': 7.22.5 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.4.5) + '@babel/types': 7.23.6 + dev: true - /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==} + /@babel/plugin-transform-react-jsx@7.23.4(@babel/core@7.22.5): + resolution: {integrity: sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.5) - '@babel/types': 7.22.5 - dev: true + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.22.5) + '@babel/types': 7.23.6 - /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.4.5): - resolution: {integrity: sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==} + /@babel/plugin-transform-react-jsx@7.23.4(@babel/core@7.23.6): + resolution: {integrity: sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.4.5 + '@babel/core': 7.23.6 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.4.5) - '@babel/types': 7.22.5 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.6) + '@babel/types': 7.23.6 dev: true /@babel/plugin-transform-react-pure-annotations@7.18.6(@babel/core@7.20.12): @@ -9061,23 +10329,23 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-react-pure-annotations@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==} + /@babel/plugin-transform-react-pure-annotations@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-gP4k85wx09q+brArVinTXhWiyzLl9UpmGva0+mWyKxk6JZequ05x3eUcIUE+FyttPKJFRRVtAvQaJ6YF9h1ZpA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-react-pure-annotations@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-gP4k85wx09q+brArVinTXhWiyzLl9UpmGva0+mWyKxk6JZequ05x3eUcIUE+FyttPKJFRRVtAvQaJ6YF9h1ZpA==} + /@babel/plugin-transform-react-pure-annotations@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-qMFdSS+TUhB7Q/3HVPnEdYJDQIk57jkntAwSuz9xfSE4n+3I+vHYCli3HoHawN1Z3RfCz/y1zXA/JXjG6cVImQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -9093,15 +10361,16 @@ packages: regenerator-transform: 0.15.1 dev: true - /@babel/plugin-transform-regenerator@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==} + /@babel/plugin-transform-regenerator@7.22.10(@babel/core@7.23.0): + resolution: {integrity: sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 - regenerator-transform: 0.15.1 + regenerator-transform: 0.15.2 + dev: true /@babel/plugin-transform-regenerator@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-rR7KePOE7gfEtNTh9Qw+iO3Q/e4DEsoQ+hdvM6QUDH7JRJ5qxq5AA52ZzBWbI5i9lfNuvySgOGP8ZN7LAmaiPw==} @@ -9112,7 +10381,6 @@ packages: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 regenerator-transform: 0.15.1 - dev: true /@babel/plugin-transform-regenerator@7.22.5(@babel/core@7.4.5): resolution: {integrity: sha512-rR7KePOE7gfEtNTh9Qw+iO3Q/e4DEsoQ+hdvM6QUDH7JRJ5qxq5AA52ZzBWbI5i9lfNuvySgOGP8ZN7LAmaiPw==} @@ -9125,24 +10393,26 @@ packages: regenerator-transform: 0.15.1 dev: true - /@babel/plugin-transform-reserved-words@7.18.6(@babel/core@7.20.12): - resolution: {integrity: sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==} + /@babel/plugin-transform-regenerator@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 + regenerator-transform: 0.15.2 dev: true - /@babel/plugin-transform-reserved-words@7.18.6(@babel/core@7.21.0): + /@babel/plugin-transform-reserved-words@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-reserved-words@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==} @@ -9152,6 +10422,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-reserved-words@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-reserved-words@7.22.5(@babel/core@7.4.5): @@ -9164,35 +10443,45 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-reserved-words@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-transform-runtime@7.21.0: resolution: {integrity: sha512-ReY6pxwSzEU0b3r2/T/VhqMKg/AkceBT19X0UptA3/tYi5Pe2eXgEUH+NNMC5nok6c6XQz5tyVTUpuezRfSMSg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - babel-plugin-polyfill-corejs2: 0.3.3 - babel-plugin-polyfill-corejs3: 0.6.0 - babel-plugin-polyfill-regenerator: 0.4.1 - semver: 6.3.0 + babel-plugin-polyfill-corejs2: 0.3.3(@babel/core@7.20.12) + babel-plugin-polyfill-corejs3: 0.6.0(@babel/core@7.20.12) + babel-plugin-polyfill-regenerator: 0.4.1(@babel/core@7.20.12) + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: false - /@babel/plugin-transform-runtime@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-bg4Wxd1FWeFx3daHFTWk1pkSWK/AyQuiyAoeZAOkAOUBjnZPH6KT7eMxouV47tQ6hl6ax2zyAWBdWZXbrvXlaw==} + /@babel/plugin-transform-runtime@7.23.6(@babel/core@7.23.6): + resolution: {integrity: sha512-kF1Zg62aPseQ11orDhFRw+aPG/eynNQtI+TyY+m33qJa2cJ5EEvza2P2BNTIA9E5MyqFABHEyY6CPHwgdy9aNg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/core': 7.23.6 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 - babel-plugin-polyfill-corejs2: 0.4.3(@babel/core@7.22.5) - babel-plugin-polyfill-corejs3: 0.8.1(@babel/core@7.22.5) - babel-plugin-polyfill-regenerator: 0.5.0(@babel/core@7.22.5) - semver: 6.3.0 + babel-plugin-polyfill-corejs2: 0.4.7(@babel/core@7.23.6) + babel-plugin-polyfill-corejs3: 0.8.7(@babel/core@7.23.6) + babel-plugin-polyfill-regenerator: 0.5.4(@babel/core@7.23.6) + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -9203,10 +10492,10 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 resolve: 1.22.0 - semver: 5.7.1 + semver: 5.7.2 dev: true /@babel/plugin-transform-shorthand-properties@7.18.6(@babel/core@7.20.12): @@ -9219,22 +10508,22 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-shorthand-properties@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==} + /@babel/plugin-transform-shorthand-properties@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-shorthand-properties@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-shorthand-properties@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -9248,6 +10537,16 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-transform-shorthand-properties@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-transform-spread@7.20.7(@babel/core@7.20.12): resolution: {integrity: sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==} engines: {node: '>=6.9.0'} @@ -9259,23 +10558,23 @@ packages: '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 dev: true - /@babel/plugin-transform-spread@7.20.7(@babel/core@7.21.0): - resolution: {integrity: sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==} + /@babel/plugin-transform-spread@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - /@babel/plugin-transform-spread@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-spread@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 dev: true @@ -9291,24 +10590,26 @@ packages: '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 dev: true - /@babel/plugin-transform-sticky-regex@7.18.6(@babel/core@7.20.12): - resolution: {integrity: sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==} + /@babel/plugin-transform-spread@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 dev: true - /@babel/plugin-transform-sticky-regex@7.18.6(@babel/core@7.21.0): + /@babel/plugin-transform-sticky-regex@7.18.6(@babel/core@7.20.12): resolution: {integrity: sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-sticky-regex@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==} @@ -9318,6 +10619,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-sticky-regex@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-sticky-regex@7.22.5(@babel/core@7.4.5): @@ -9330,24 +10640,25 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-template-literals@7.18.9(@babel/core@7.20.12): - resolution: {integrity: sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==} + /@babel/plugin-transform-sticky-regex@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-template-literals@7.18.9(@babel/core@7.21.0): + /@babel/plugin-transform-template-literals@7.18.9(@babel/core@7.20.12): resolution: {integrity: sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-template-literals@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==} @@ -9357,6 +10668,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-template-literals@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-template-literals@7.22.5(@babel/core@7.4.5): @@ -9369,24 +10689,25 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-typeof-symbol@7.18.9(@babel/core@7.20.12): - resolution: {integrity: sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==} + /@babel/plugin-transform-template-literals@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-typeof-symbol@7.18.9(@babel/core@7.21.0): + /@babel/plugin-transform-typeof-symbol@7.18.9(@babel/core@7.20.12): resolution: {integrity: sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-typeof-symbol@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==} @@ -9396,6 +10717,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-typeof-symbol@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-typeof-symbol@7.22.5(@babel/core@7.4.5): @@ -9408,18 +10738,15 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-typescript@7.21.0(@babel/core@7.21.0): - resolution: {integrity: sha512-xo///XTPp3mDzTtrqXoBlK9eiAYW3wv9JXglcn/u1bi60RW11dEUxIgA8cbnDhutS1zacjMRmAwxE0gMklLnZg==} + /@babel/plugin-transform-typeof-symbol@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.21.0) + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.21.0) - transitivePeerDependencies: - - supports-color + dev: true /@babel/plugin-transform-typescript@7.21.0(@babel/core@7.22.5): resolution: {integrity: sha512-xo///XTPp3mDzTtrqXoBlK9eiAYW3wv9JXglcn/u1bi60RW11dEUxIgA8cbnDhutS1zacjMRmAwxE0gMklLnZg==} @@ -9428,11 +10755,9 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.22.5) - transitivePeerDependencies: - - supports-color dev: false /@babel/plugin-transform-typescript@7.22.5: @@ -9442,11 +10767,9 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.4.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.23.0) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.20.12) - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-transform-typescript@7.22.5(@babel/core@7.20.12): @@ -9457,11 +10780,9 @@ packages: dependencies: '@babel/core': 7.20.12 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.20.12) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.20.12) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.20.12) - transitivePeerDependencies: - - supports-color dev: true /@babel/plugin-transform-typescript@7.22.5(@babel/core@7.22.5): @@ -9472,11 +10793,21 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.22.5) - transitivePeerDependencies: - - supports-color + + /@babel/plugin-transform-typescript@7.23.6(@babel/core@7.23.6): + resolution: {integrity: sha512-6cBG5mBvUu4VUD04OHKnYzbuHNP8huDsD3EDqqpIpsswTDoqHCjLoHb6+QgsV1WsT2nipRqCPgxD3LXnEO7XfA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-create-class-features-plugin': 7.23.6(@babel/core@7.23.6) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-typescript': 7.23.3(@babel/core@7.23.6) dev: true /@babel/plugin-transform-unicode-escapes@7.18.10(@babel/core@7.20.12): @@ -9489,14 +10820,15 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-unicode-escapes@7.18.10(@babel/core@7.21.0): - resolution: {integrity: sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==} + /@babel/plugin-transform-unicode-escapes@7.22.10(@babel/core@7.23.0): + resolution: {integrity: sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-transform-unicode-escapes@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-biEmVg1IYB/raUO5wT1tgfacCef15Fbzhkx493D3urBI++6hpJ+RFG4SrWMn0NEZLfvilqKf3QDrRVZHo08FYg==} @@ -9506,6 +10838,15 @@ packages: dependencies: '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-unicode-escapes@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 dev: true /@babel/plugin-transform-unicode-property-regex@7.22.5(@babel/core@7.22.5): @@ -9515,7 +10856,28 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-unicode-property-regex@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-unicode-property-regex@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -9530,24 +10892,24 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-unicode-regex@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==} + /@babel/plugin-transform-unicode-regex@7.22.5(@babel/core@7.22.5): + resolution: {integrity: sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.21.0) + '@babel/core': 7.22.5 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 - /@babel/plugin-transform-unicode-regex@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-unicode-regex@7.22.5(@babel/core@7.23.0): resolution: {integrity: sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/core': 7.23.0 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.0) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -9558,7 +10920,18 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.4.5) + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.4.5) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-unicode-regex@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -9569,7 +10942,28 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-regexp-features-plugin': 7.22.5(@babel/core@7.22.5) + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.22.5) + '@babel/helper-plugin-utils': 7.22.5 + + /@babel/plugin-transform-unicode-sets-regex@7.22.5(@babel/core@7.23.0): + resolution: {integrity: sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-unicode-sets-regex@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.6) '@babel/helper-plugin-utils': 7.22.5 dev: true @@ -9582,7 +10976,7 @@ packages: '@babel/compat-data': 7.20.5 '@babel/core': 7.20.12 '@babel/helper-compilation-targets': 7.20.7(@babel/core@7.20.12) - '@babel/helper-plugin-utils': 7.20.2 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-validator-option': 7.18.6 '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.18.6(@babel/core@7.20.12) '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.18.9(@babel/core@7.20.12) @@ -9631,7 +11025,7 @@ packages: '@babel/plugin-transform-literals': 7.18.9(@babel/core@7.20.12) '@babel/plugin-transform-member-expression-literals': 7.18.6(@babel/core@7.20.12) '@babel/plugin-transform-modules-amd': 7.20.11(@babel/core@7.20.12) - '@babel/plugin-transform-modules-commonjs': 7.20.11(@babel/core@7.20.12) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.20.12) '@babel/plugin-transform-modules-systemjs': 7.20.11(@babel/core@7.20.12) '@babel/plugin-transform-modules-umd': 7.18.6(@babel/core@7.20.12) '@babel/plugin-transform-named-capturing-groups-regex': 7.20.5(@babel/core@7.20.12) @@ -9654,96 +11048,102 @@ packages: babel-plugin-polyfill-corejs3: 0.6.0(@babel/core@7.20.12) babel-plugin-polyfill-regenerator: 0.4.1(@babel/core@7.20.12) core-js-compat: 3.27.1 - semver: 6.3.0 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/preset-env@7.22.20(@babel/core@7.23.0): + resolution: {integrity: sha512-11MY04gGC4kSzlPHRfvVkNAZhUxOvm7DCJ37hPDnUENwe06npjIRAfInEMTGSb4LZK5ZgDFkv5hw0lGebHeTyg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.22.20 + '@babel/core': 7.23.0 + '@babel/helper-compilation-targets': 7.22.15 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-option': 7.22.15 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.23.0) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.0) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.23.0) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.23.0) + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-import-assertions': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-syntax-import-attributes': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.0) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.0) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.0) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.23.0) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.23.0) + '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.23.0) + '@babel/plugin-transform-arrow-functions': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-async-generator-functions': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-transform-async-to-generator': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-block-scoped-functions': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-block-scoping': 7.23.0(@babel/core@7.23.0) + '@babel/plugin-transform-class-properties': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-class-static-block': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-classes': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-transform-computed-properties': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-destructuring': 7.23.0(@babel/core@7.23.0) + '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-duplicate-keys': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-dynamic-import': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-exponentiation-operator': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-export-namespace-from': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-for-of': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-transform-function-name': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-json-strings': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-literals': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-logical-assignment-operators': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-member-expression-literals': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-modules-amd': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.23.0) + '@babel/plugin-transform-modules-systemjs': 7.23.0(@babel/core@7.23.0) + '@babel/plugin-transform-modules-umd': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-new-target': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-nullish-coalescing-operator': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-numeric-separator': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-object-rest-spread': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-transform-object-super': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-optional-catch-binding': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-optional-chaining': 7.23.0(@babel/core@7.23.0) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-transform-private-methods': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-private-property-in-object': 7.22.11(@babel/core@7.23.0) + '@babel/plugin-transform-property-literals': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-regenerator': 7.22.10(@babel/core@7.23.0) + '@babel/plugin-transform-reserved-words': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-shorthand-properties': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-spread': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-sticky-regex': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-template-literals': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-typeof-symbol': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-unicode-escapes': 7.22.10(@babel/core@7.23.0) + '@babel/plugin-transform-unicode-property-regex': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-unicode-regex': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-unicode-sets-regex': 7.22.5(@babel/core@7.23.0) + '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.23.0) + '@babel/types': 7.23.6 + babel-plugin-polyfill-corejs2: 0.4.5(@babel/core@7.23.0) + babel-plugin-polyfill-corejs3: 0.8.4(@babel/core@7.23.0) + babel-plugin-polyfill-regenerator: 0.5.2(@babel/core@7.23.0) + core-js-compat: 3.31.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true - /@babel/preset-env@7.20.2(@babel/core@7.21.0): - resolution: {integrity: sha512-1G0efQEWR1EHkKvKHqbG+IN/QdgwfByUpM5V5QroDzGV2t3S/WXNQd693cHiHTlCFMpr9B6FkPFXDA2lQcKoDg==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/compat-data': 7.20.5 - '@babel/core': 7.21.0 - '@babel/helper-compilation-targets': 7.20.7(@babel/core@7.21.0) - '@babel/helper-plugin-utils': 7.20.2 - '@babel/helper-validator-option': 7.18.6 - '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-proposal-async-generator-functions': 7.20.7(@babel/core@7.21.0) - '@babel/plugin-proposal-class-properties': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-class-static-block': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-dynamic-import': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-export-namespace-from': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-proposal-json-strings': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-logical-assignment-operators': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-numeric-separator': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-object-rest-spread': 7.20.7(@babel/core@7.21.0) - '@babel/plugin-proposal-optional-catch-binding': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-optional-chaining': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-proposal-private-methods': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-private-property-in-object': 7.20.5(@babel/core@7.21.0) - '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.21.0) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.21.0) - '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.21.0) - '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-import-assertions': 7.20.0(@babel/core@7.21.0) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.21.0) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.21.0) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.21.0) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.21.0) - '@babel/plugin-transform-arrow-functions': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-async-to-generator': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-block-scoped-functions': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-block-scoping': 7.20.11(@babel/core@7.21.0) - '@babel/plugin-transform-classes': 7.20.7(@babel/core@7.21.0) - '@babel/plugin-transform-computed-properties': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-transform-destructuring': 7.20.7(@babel/core@7.21.0) - '@babel/plugin-transform-dotall-regex': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-duplicate-keys': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-transform-exponentiation-operator': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-for-of': 7.18.8(@babel/core@7.21.0) - '@babel/plugin-transform-function-name': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-transform-literals': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-transform-member-expression-literals': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-modules-amd': 7.20.11(@babel/core@7.21.0) - '@babel/plugin-transform-modules-commonjs': 7.20.11(@babel/core@7.21.0) - '@babel/plugin-transform-modules-systemjs': 7.20.11(@babel/core@7.21.0) - '@babel/plugin-transform-modules-umd': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-named-capturing-groups-regex': 7.20.5(@babel/core@7.21.0) - '@babel/plugin-transform-new-target': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-object-super': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-parameters': 7.20.7(@babel/core@7.21.0) - '@babel/plugin-transform-property-literals': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-regenerator': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-reserved-words': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-shorthand-properties': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-spread': 7.20.7(@babel/core@7.21.0) - '@babel/plugin-transform-sticky-regex': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-template-literals': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-transform-typeof-symbol': 7.18.9(@babel/core@7.21.0) - '@babel/plugin-transform-unicode-escapes': 7.18.10(@babel/core@7.21.0) - '@babel/plugin-transform-unicode-regex': 7.18.6(@babel/core@7.21.0) - '@babel/preset-modules': 0.1.5(@babel/core@7.21.0) - '@babel/types': 7.20.7 - babel-plugin-polyfill-corejs2: 0.3.3(@babel/core@7.21.0) - babel-plugin-polyfill-corejs3: 0.6.0(@babel/core@7.21.0) - babel-plugin-polyfill-regenerator: 0.4.1(@babel/core@7.21.0) - core-js-compat: 3.27.1 - semver: 6.3.0 - transitivePeerDependencies: - - supports-color - /@babel/preset-env@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-fj06hw89dpiZzGZtxn+QybifF07nNiZjZ7sazs2aVDcysAZVGjW7+7iFYxg6GLNM47R/thYfLdrXc+2f11Vi9A==} engines: {node: '>=6.9.0'} @@ -9798,7 +11198,7 @@ packages: '@babel/plugin-transform-logical-assignment-operators': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-member-expression-literals': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-modules-amd': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-modules-commonjs': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.22.5) '@babel/plugin-transform-modules-systemjs': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-modules-umd': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/core@7.22.5) @@ -9825,12 +11225,102 @@ packages: '@babel/plugin-transform-unicode-regex': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-unicode-sets-regex': 7.22.5(@babel/core@7.22.5) '@babel/preset-modules': 0.1.5(@babel/core@7.22.5) - '@babel/types': 7.22.5 + '@babel/types': 7.23.0 babel-plugin-polyfill-corejs2: 0.4.3(@babel/core@7.22.5) babel-plugin-polyfill-corejs3: 0.8.1(@babel/core@7.22.5) babel-plugin-polyfill-regenerator: 0.5.0(@babel/core@7.22.5) core-js-compat: 3.31.0 - semver: 6.3.0 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + /@babel/preset-env@7.23.6(@babel/core@7.23.6): + resolution: {integrity: sha512-2XPn/BqKkZCpzYhUUNZ1ssXw7DcXfKQEjv/uXZUXgaebCMYmkEsfZ2yY+vv+xtXv50WmL5SGhyB6/xsWxIvvOQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.23.5 + '@babel/core': 7.23.6 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-option': 7.23.5 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.23.6) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.6) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.23.6) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.23.6) + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-syntax-import-attributes': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.6) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.6) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.6) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.23.6) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.23.6) + '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.23.6) + '@babel/plugin-transform-arrow-functions': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-async-generator-functions': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-block-scoped-functions': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-block-scoping': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-class-properties': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-class-static-block': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-classes': 7.23.5(@babel/core@7.23.6) + '@babel/plugin-transform-computed-properties': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-destructuring': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-dotall-regex': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-duplicate-keys': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-dynamic-import': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-exponentiation-operator': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-export-namespace-from': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-for-of': 7.23.6(@babel/core@7.23.6) + '@babel/plugin-transform-function-name': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-json-strings': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-literals': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-logical-assignment-operators': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-member-expression-literals': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-modules-amd': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-modules-systemjs': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-modules-umd': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/core@7.23.6) + '@babel/plugin-transform-new-target': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-nullish-coalescing-operator': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-numeric-separator': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-object-rest-spread': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-object-super': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-optional-catch-binding': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-parameters': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-private-methods': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-property-literals': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-regenerator': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-reserved-words': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-shorthand-properties': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-spread': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-sticky-regex': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-template-literals': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-typeof-symbol': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-unicode-escapes': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-unicode-property-regex': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-unicode-regex': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-unicode-sets-regex': 7.23.3(@babel/core@7.23.6) + '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.23.6) + babel-plugin-polyfill-corejs2: 0.4.7(@babel/core@7.23.6) + babel-plugin-polyfill-corejs3: 0.8.7(@babel/core@7.23.6) + babel-plugin-polyfill-regenerator: 0.5.4(@babel/core@7.23.6) + core-js-compat: 3.34.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true @@ -9841,7 +11331,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.5 - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-proposal-async-generator-functions': 7.20.7(@babel/core@7.4.5) '@babel/plugin-proposal-json-strings': 7.18.6(@babel/core@7.4.5) @@ -9867,13 +11357,13 @@ packages: '@babel/plugin-transform-literals': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-member-expression-literals': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-modules-amd': 7.22.5(@babel/core@7.4.5) - '@babel/plugin-transform-modules-commonjs': 7.21.2(@babel/core@7.4.5) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.4.5) '@babel/plugin-transform-modules-systemjs': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-modules-umd': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-new-target': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-object-super': 7.22.5(@babel/core@7.4.5) - '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.4.5) + '@babel/plugin-transform-parameters': 7.22.15(@babel/core@7.4.5) '@babel/plugin-transform-property-literals': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-regenerator': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-reserved-words': 7.22.5(@babel/core@7.4.5) @@ -9883,12 +11373,12 @@ packages: '@babel/plugin-transform-template-literals': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-typeof-symbol': 7.22.5(@babel/core@7.4.5) '@babel/plugin-transform-unicode-regex': 7.22.5(@babel/core@7.4.5) - '@babel/types': 7.22.5 - browserslist: 4.21.5 + '@babel/types': 7.23.6 + browserslist: 4.22.2 core-js-compat: 3.31.0 invariant: 2.2.4 js-levenshtein: 1.1.6 - semver: 5.7.1 + semver: 5.7.2 transitivePeerDependencies: - supports-color dev: true @@ -9902,32 +11392,41 @@ packages: '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.20.12) '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.20.12) - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 esutils: 2.0.3 dev: true - /@babel/preset-modules@0.1.5(@babel/core@7.21.0): + /@babel/preset-modules@0.1.5(@babel/core@7.22.5): resolution: {integrity: sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 + '@babel/core': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.21.0) - '@babel/types': 7.22.5 + '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.22.5) + '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.22.5) + '@babel/types': 7.23.6 esutils: 2.0.3 - /@babel/preset-modules@0.1.5(@babel/core@7.22.5): - resolution: {integrity: sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==} + /@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.23.0): + resolution: {integrity: sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==} peerDependencies: - '@babel/core': ^7.0.0-0 + '@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.0 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.22.5) - '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.22.5) - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 + esutils: 2.0.3 + dev: true + + /@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.23.6): + resolution: {integrity: sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==} + peerDependencies: + '@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/types': 7.23.6 esutils: 2.0.3 dev: true @@ -9951,7 +11450,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.20.12 - '@babel/helper-plugin-utils': 7.18.9 + '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-validator-option': 7.18.6 '@babel/plugin-transform-react-display-name': 7.18.6(@babel/core@7.20.12) '@babel/plugin-transform-react-jsx': 7.18.6(@babel/core@7.20.12) @@ -9959,20 +11458,6 @@ packages: '@babel/plugin-transform-react-pure-annotations': 7.18.6(@babel/core@7.20.12) dev: true - /@babel/preset-react@7.18.6(@babel/core@7.21.0): - resolution: {integrity: sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.18.9 - '@babel/helper-validator-option': 7.18.6 - '@babel/plugin-transform-react-display-name': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-react-jsx': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-react-jsx-development': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-transform-react-pure-annotations': 7.18.6(@babel/core@7.21.0) - /@babel/preset-react@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-M+Is3WikOpEJHgR385HbuCITPTaPRaNkibTEa9oiofmJvIsrceb4yp9RL9Kb+TE8LznmeyZqpP+Lopwcx59xPQ==} engines: {node: '>=6.9.0'} @@ -9986,34 +11471,33 @@ packages: '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-react-jsx-development': 7.22.5(@babel/core@7.22.5) '@babel/plugin-transform-react-pure-annotations': 7.22.5(@babel/core@7.22.5) - dev: true - /@babel/preset-typescript@7.18.6(@babel/core@7.20.12): - resolution: {integrity: sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ==} + /@babel/preset-react@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-tbkHOS9axH6Ysf2OUEqoSZ6T3Fa2SrNH6WTWSPBboxKzdxNc9qOICeLXkNG0ZEwbQ1HY8liwOce4aN/Ceyuq6w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.20.12 + '@babel/core': 7.23.6 '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-option': 7.22.5 - '@babel/plugin-transform-typescript': 7.22.5(@babel/core@7.20.12) - transitivePeerDependencies: - - supports-color + '@babel/helper-validator-option': 7.23.5 + '@babel/plugin-transform-react-display-name': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-react-jsx': 7.23.4(@babel/core@7.23.6) + '@babel/plugin-transform-react-jsx-development': 7.22.5(@babel/core@7.23.6) + '@babel/plugin-transform-react-pure-annotations': 7.23.3(@babel/core@7.23.6) dev: true - /@babel/preset-typescript@7.21.0(@babel/core@7.21.0): - resolution: {integrity: sha512-myc9mpoVA5m1rF8K8DgLEatOYFDpwC+RkMkjZ0Du6uI62YvDe8uxIEYVs/VCdSJ097nlALiU/yBC7//3nI+hNg==} + /@babel/preset-typescript@7.18.6(@babel/core@7.20.12): + resolution: {integrity: sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/helper-validator-option': 7.21.0 - '@babel/plugin-transform-typescript': 7.21.0(@babel/core@7.21.0) - transitivePeerDependencies: - - supports-color + '@babel/core': 7.20.12 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-option': 7.22.15 + '@babel/plugin-transform-typescript': 7.22.5(@babel/core@7.20.12) + dev: true /@babel/preset-typescript@7.22.5(@babel/core@7.22.5): resolution: {integrity: sha512-YbPaal9LxztSGhmndR46FmAbkJ/1fAsw293tSU+I5E5h+cnJ3d4GTwyUgGYmOXJYdGA+uNePle4qbaRzj2NISQ==} @@ -10025,10 +11509,21 @@ packages: '@babel/helper-plugin-utils': 7.22.5 '@babel/helper-validator-option': 7.22.5 '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-modules-commonjs': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.22.5) '@babel/plugin-transform-typescript': 7.22.5(@babel/core@7.22.5) - transitivePeerDependencies: - - supports-color + + /@babel/preset-typescript@7.23.3(@babel/core@7.23.6): + resolution: {integrity: sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-option': 7.23.5 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-typescript': 7.23.6(@babel/core@7.23.6) dev: true /@babel/preset-typescript@7.3.3: @@ -10038,21 +11533,19 @@ packages: dependencies: '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-transform-typescript': 7.22.5 - transitivePeerDependencies: - - supports-color dev: true - /@babel/register@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-vV6pm/4CijSQ8Y47RH5SopXzursN35RQINfGJkmOlcpAtGuf94miFvIPhCKGQN7WGIcsgG1BHEX2KVdTYwTwUQ==} + /@babel/register@7.22.15(@babel/core@7.23.6): + resolution: {integrity: sha512-V3Q3EqoQdn65RCgTLwauZaTfd1ShhwPmbBv+1dkZV/HpCGMKVyn6oFcRlI7RaKqiDQjX2Qd3AuoEguBgdjIKlg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 clone-deep: 4.0.1 find-cache-dir: 2.1.0 make-dir: 2.1.0 - pirates: 4.0.5 + pirates: 4.0.6 source-map-support: 0.5.21 dev: true @@ -10072,19 +11565,11 @@ packages: /@babel/regjsgen@0.8.0: resolution: {integrity: sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==} - /@babel/runtime@7.17.9: - resolution: {integrity: sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==} - engines: {node: '>=6.9.0'} - dependencies: - regenerator-runtime: 0.13.11 - dev: true - /@babel/runtime@7.18.3: resolution: {integrity: sha512-38Y8f7YUhce/K7RMwTp7m0uCumpv9hZkitCbBClqQIow1qSbCvGkcegKOXpEWCQLfWmevgRiWokZ1GkpfhbZug==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.13.11 - dev: false /@babel/runtime@7.18.9: resolution: {integrity: sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==} @@ -10104,6 +11589,18 @@ packages: dependencies: regenerator-runtime: 0.13.11 + /@babel/runtime@7.23.2: + resolution: {integrity: sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.14.1 + + /@babel/runtime@7.23.6: + resolution: {integrity: sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.14.1 + /@babel/runtime@7.4.5: resolution: {integrity: sha512-TuI4qpWZP6lGOGIuGWtp9sPluqYICmbk8T/1vpSysqJxRPkudh/ofFWyqdcMsDf2s7KvDL4/YHgKyvcS3g9CJQ==} dependencies: @@ -10115,16 +11612,32 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 + + /@babel/template@7.22.15: + resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.23.5 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 /@babel/template@7.22.5: resolution: {integrity: sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 + '@babel/code-frame': 7.23.5 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 + + /@babel/template@7.24.7: + resolution: {integrity: sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.24.7 + '@babel/parser': 7.24.7 + '@babel/types': 7.24.7 /@babel/traverse@7.19.0: resolution: {integrity: sha512-4pKpFRDh+utd2mbRC8JLnlsMUii3PMHjpL6a0SZ4NMZy7YFP9aXORxEhdMVOc9CpWtDF09IkciQLEhK7Ml7gRA==} @@ -10136,8 +11649,8 @@ packages: '@babel/helper-function-name': 7.21.0 '@babel/helper-hoist-variables': 7.18.6 '@babel/helper-split-export-declaration': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 + '@babel/parser': 7.23.0 + '@babel/types': 7.23.0 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: @@ -10150,20 +11663,20 @@ packages: dependencies: '@babel/code-frame': 7.22.5 '@babel/generator': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/parser': 7.23.0 + '@babel/types': 7.23.0 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color dev: false - /@babel/traverse@7.21.2: - resolution: {integrity: sha512-ts5FFU/dSUPS13tv8XiEObDu9K+iagEKME9kAbaP7r0Y9KtZJZ+NGndDvWoRAYNpeWafbpFeki3q9QoMD6gxyw==} + /@babel/traverse@7.22.5: + resolution: {integrity: sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==} engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.22.5 @@ -10172,25 +11685,59 @@ packages: '@babel/helper-function-name': 7.22.5 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 + '@babel/parser': 7.23.0 + '@babel/types': 7.23.0 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color - /@babel/traverse@7.22.5: - resolution: {integrity: sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==} + /@babel/traverse@7.23.0: + resolution: {integrity: sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 + '@babel/code-frame': 7.23.5 + '@babel/generator': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 + debug: 4.3.4(supports-color@8.1.1) + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + + /@babel/traverse@7.23.6: + resolution: {integrity: sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.23.5 + '@babel/generator': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-hoist-variables': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 + debug: 4.3.4(supports-color@8.1.1) + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + + /@babel/traverse@7.24.7: + resolution: {integrity: sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.24.7 + '@babel/generator': 7.24.7 + '@babel/helper-environment-visitor': 7.24.7 + '@babel/helper-function-name': 7.24.7 + '@babel/helper-hoist-variables': 7.24.7 + '@babel/helper-split-export-declaration': 7.24.7 + '@babel/parser': 7.24.7 + '@babel/types': 7.24.7 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: @@ -10210,7 +11757,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/helper-string-parser': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 + '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 /@babel/types@7.22.5: @@ -10218,7 +11765,32 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/helper-string-parser': 7.22.5 - '@babel/helper-validator-identifier': 7.22.5 + '@babel/helper-validator-identifier': 7.22.20 + to-fast-properties: 2.0.0 + dev: false + + /@babel/types@7.23.0: + resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.22.5 + '@babel/helper-validator-identifier': 7.22.20 + to-fast-properties: 2.0.0 + + /@babel/types@7.23.6: + resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.23.4 + '@babel/helper-validator-identifier': 7.22.20 + to-fast-properties: 2.0.0 + + /@babel/types@7.24.7: + resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.24.7 + '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 /@bcoe/v8-coverage@0.2.3: @@ -10243,7 +11815,7 @@ packages: reactcss: 1.2.3(react@17.0.2) tinycolor2: 1.4.2 - /@chenshuai2144/sketch-color@1.0.8(react@18.1.0): + /@chenshuai2144/sketch-color@1.0.8(react@18.3.1): resolution: {integrity: sha512-dPAzzWc+w7zyTAi71WXYZpiTYyIS80MxYyy2E/7jufhnJI1Z29wCPL35VvuJ/gs5zYpF2+w/B7BizWa2zKXpGw==} peerDependencies: react: '>=16.12.0' @@ -10251,8 +11823,8 @@ packages: react: optional: true dependencies: - react: 18.1.0 - reactcss: 1.2.3(react@18.1.0) + react: 18.3.1 + reactcss: 1.2.3(react@18.3.1) tinycolor2: 1.4.2 dev: false @@ -10294,15 +11866,7 @@ packages: sisteransi: 1.0.5 dev: true - /@cnakazawa/watch@1.0.4: - resolution: {integrity: sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==} - engines: {node: '>=0.1.95'} - dependencies: - exec-sh: 0.3.6 - minimist: 1.2.8 - dev: true - - /@code-hike/classer@0.0.0-e48fa74(react@18.1.0): + /@code-hike/classer@0.0.0-e48fa74(react@18.3.1): resolution: {integrity: sha512-CyPYvfl4K5Hp9uyhLhUemul56eiGOF0FNXh5ALzzK9VNhRmRmj1O0mKtLDpoccI8W90r9kQES/nW2FC8jVVieg==} peerDependencies: react: '>=16.8' @@ -10310,7 +11874,7 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false /@codemirror/autocomplete@0.19.15: @@ -10492,7 +12056,7 @@ packages: lodash.isequal: 4.5.0 dev: false - /@codesandbox/sandpack-react@1.0.1(react-dom@18.1.0)(react@18.1.0): + /@codesandbox/sandpack-react@1.0.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-660tgjI8nRoNm4PHSQfxACqhI+mCbUWxlnFWetAsyYKopWUeYqsZOoQDcq0U0pCx2nAfbTmC2wiQM6+1QsW8pw==} peerDependencies: react: ^16.8.0 || ^17 @@ -10503,7 +12067,7 @@ packages: react-dom: optional: true dependencies: - '@code-hike/classer': 0.0.0-e48fa74(react@18.1.0) + '@code-hike/classer': 0.0.0-e48fa74(react@18.3.1) '@codemirror/closebrackets': 0.19.2 '@codemirror/commands': 0.19.8 '@codemirror/comment': 0.19.1 @@ -10518,20 +12082,21 @@ packages: '@codemirror/state': 0.19.9 '@codemirror/view': 0.19.48 '@codesandbox/sandpack-client': 1.5.4 - '@react-hook/intersection-observer': 3.1.1(react@18.1.0) + '@react-hook/intersection-observer': 3.1.1(react@18.3.1) '@stitches/core': 1.2.8 codesandbox-import-util-types: 2.2.3 lodash.isequal: 4.5.0 lz-string: 1.4.4 - react: 18.1.0 + react: 18.3.1 react-devtools-inline: 4.4.0 - react-dom: 18.1.0(react@18.1.0) + react-dom: 18.3.1(react@18.3.1) react-is: 17.0.2 dev: false /@colors/colors@1.5.0: resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} engines: {node: '>=0.1.90'} + requiresBuild: true dev: true /@cspotcode/source-map-support@0.8.1: @@ -10552,6 +12117,21 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.21) postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-color-function@1.1.0(postcss@8.4.35): + resolution: {integrity: sha512-5D5ND/mZWcQoSfYnSPsXtuiFxhzmhxt6pcjrFLJyldj+p0ZN2vvRpYNX+lahFTtMhAYOa2WmkdGINr0yP0CvGA==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.35) + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-font-format-keywords@1.0.0(postcss@8.4.21): resolution: {integrity: sha512-oO0cZt8do8FdVBX8INftvIA4lUrKUSCcWUf9IwH9IPWOgKT22oAZFXeHLoDK7nhB2SmkNycp5brxfNMRLIhd6Q==} @@ -10564,6 +12144,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-font-format-keywords@1.0.0(postcss@8.4.35): + resolution: {integrity: sha512-oO0cZt8do8FdVBX8INftvIA4lUrKUSCcWUf9IwH9IPWOgKT22oAZFXeHLoDK7nhB2SmkNycp5brxfNMRLIhd6Q==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-hwb-function@1.0.1(postcss@8.4.21): resolution: {integrity: sha512-AMZwWyHbbNLBsDADWmoXT9A5yl5dsGEBeJSJRUJt8Y9n8Ziu7Wstt4MC8jtPW7xjcLecyfJwtnUTNSmOzcnWeg==} @@ -10576,6 +12170,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-hwb-function@1.0.1(postcss@8.4.35): + resolution: {integrity: sha512-AMZwWyHbbNLBsDADWmoXT9A5yl5dsGEBeJSJRUJt8Y9n8Ziu7Wstt4MC8jtPW7xjcLecyfJwtnUTNSmOzcnWeg==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-ic-unit@1.0.0(postcss@8.4.21): resolution: {integrity: sha512-i4yps1mBp2ijrx7E96RXrQXQQHm6F4ym1TOD0D69/sjDjZvQ22tqiEvaNw7pFZTUO5b9vWRHzbHzP9+UKuw+bA==} @@ -10589,6 +12197,21 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.21) postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-ic-unit@1.0.0(postcss@8.4.35): + resolution: {integrity: sha512-i4yps1mBp2ijrx7E96RXrQXQQHm6F4ym1TOD0D69/sjDjZvQ22tqiEvaNw7pFZTUO5b9vWRHzbHzP9+UKuw+bA==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.35) + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-is-pseudo-class@2.0.5(postcss@8.4.21): resolution: {integrity: sha512-Ek+UFI4UP2hB9u0N1cJd6KgSF1rL0J3PT4is0oSStuus8+WzbGGPyJNMOKQ0w/tyPjxiCnOI4RdSMZt3nks64g==} @@ -10602,6 +12225,21 @@ packages: '@csstools/selector-specificity': 2.0.1(postcss-selector-parser@6.0.10)(postcss@8.4.21) postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /@csstools/postcss-is-pseudo-class@2.0.5(postcss@8.4.35): + resolution: {integrity: sha512-Ek+UFI4UP2hB9u0N1cJd6KgSF1rL0J3PT4is0oSStuus8+WzbGGPyJNMOKQ0w/tyPjxiCnOI4RdSMZt3nks64g==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/selector-specificity': 2.0.1(postcss-selector-parser@6.0.10)(postcss@8.4.35) + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /@csstools/postcss-normalize-display-values@1.0.0(postcss@8.4.21): resolution: {integrity: sha512-bX+nx5V8XTJEmGtpWTO6kywdS725t71YSLlxWt78XoHUbELWgoCXeOFymRJmL3SU1TLlKSIi7v52EWqe60vJTQ==} @@ -10614,6 +12252,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-normalize-display-values@1.0.0(postcss@8.4.35): + resolution: {integrity: sha512-bX+nx5V8XTJEmGtpWTO6kywdS725t71YSLlxWt78XoHUbELWgoCXeOFymRJmL3SU1TLlKSIi7v52EWqe60vJTQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-oklab-function@1.1.0(postcss@8.4.21): resolution: {integrity: sha512-e/Q5HopQzmnQgqimG9v3w2IG4VRABsBq3itOcn4bnm+j4enTgQZ0nWsaH/m9GV2otWGQ0nwccYL5vmLKyvP1ww==} @@ -10627,6 +12279,21 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.21) postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-oklab-function@1.1.0(postcss@8.4.35): + resolution: {integrity: sha512-e/Q5HopQzmnQgqimG9v3w2IG4VRABsBq3itOcn4bnm+j4enTgQZ0nWsaH/m9GV2otWGQ0nwccYL5vmLKyvP1ww==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.35) + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-progressive-custom-properties@1.3.0(postcss@8.4.21): resolution: {integrity: sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==} @@ -10639,6 +12306,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-progressive-custom-properties@1.3.0(postcss@8.4.35): + resolution: {integrity: sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-stepped-value-functions@1.0.0(postcss@8.4.21): resolution: {integrity: sha512-q8c4bs1GumAiRenmFjASBcWSLKrbzHzWl6C2HcaAxAXIiL2rUlUWbqQZUjwVG5tied0rld19j/Mm90K3qI26vw==} @@ -10651,6 +12332,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /@csstools/postcss-stepped-value-functions@1.0.0(postcss@8.4.35): + resolution: {integrity: sha512-q8c4bs1GumAiRenmFjASBcWSLKrbzHzWl6C2HcaAxAXIiL2rUlUWbqQZUjwVG5tied0rld19j/Mm90K3qI26vw==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /@csstools/postcss-unset-value@1.0.1(postcss@8.4.21): resolution: {integrity: sha512-f1G1WGDXEU/RN1TWAxBPQgQudtLnLQPyiWdtypkPC+mVYNKFKH/HYXSxH4MVNqwF8M0eDsoiU7HumJHCg/L/jg==} @@ -10662,6 +12357,19 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /@csstools/postcss-unset-value@1.0.1(postcss@8.4.35): + resolution: {integrity: sha512-f1G1WGDXEU/RN1TWAxBPQgQudtLnLQPyiWdtypkPC+mVYNKFKH/HYXSxH4MVNqwF8M0eDsoiU7HumJHCg/L/jg==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /@csstools/selector-specificity@2.0.1(postcss-selector-parser@6.0.10)(postcss@8.4.21): resolution: {integrity: sha512-aG20vknL4/YjQF9BSV7ts4EWm/yrjagAN7OWBNmlbEOUiu0llj4OGrFoOKK3g2vey4/p2omKCoHrWtPxSwV3HA==} @@ -10675,6 +12383,21 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /@csstools/selector-specificity@2.0.1(postcss-selector-parser@6.0.10)(postcss@8.4.35): + resolution: {integrity: sha512-aG20vknL4/YjQF9BSV7ts4EWm/yrjagAN7OWBNmlbEOUiu0llj4OGrFoOKK3g2vey4/p2omKCoHrWtPxSwV3HA==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + postcss-selector-parser: ^6.0.10 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /@ctrl/tinycolor@3.4.1: resolution: {integrity: sha512-ej5oVy6lykXsvieQtqZxCOaLT+xD4+QNarq78cIYISHmZXshCvROLudpQN3lfL8G0NL7plMSSK+zlyvCaIJ4Iw==} @@ -10748,14 +12471,14 @@ packages: peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/helper-module-imports': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.4.5) - '@babel/runtime': 7.21.0 + '@babel/helper-module-imports': 7.22.15 + '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.20.12) + '@babel/runtime': 7.23.6 '@emotion/hash': 0.9.0 - '@emotion/memoize': 0.8.0 + '@emotion/memoize': 0.8.1 '@emotion/serialize': 1.1.0 babel-plugin-macros: 3.1.0 - convert-source-map: 1.8.0 + convert-source-map: 1.9.0 escape-string-regexp: 4.0.0 find-root: 1.1.0 source-map: 0.5.7 @@ -10765,7 +12488,7 @@ packages: /@emotion/cache@11.10.3: resolution: {integrity: sha512-Psmp/7ovAa8appWh3g51goxu/z3iVms7JXOreq136D8Bbn6dYraPnmL6mdM8GThEx9vwSn92Fz+mGSjBzN8UPQ==} dependencies: - '@emotion/memoize': 0.8.0 + '@emotion/memoize': 0.8.1 '@emotion/sheet': 1.2.0 '@emotion/utils': 1.2.0 '@emotion/weak-memoize': 0.3.0 @@ -10800,9 +12523,14 @@ packages: /@emotion/is-prop-valid@1.2.0: resolution: {integrity: sha512-3aDpDprjM0AwaxGE09bOPkNxHpBd+kA6jty3RnaEXdweX1DF1U3VQpPYb0g1IStAuK7SVQ1cy+bNBBKp4W3Fjg==} dependencies: - '@emotion/memoize': 0.8.0 + '@emotion/memoize': 0.8.1 dev: false + /@emotion/is-prop-valid@1.2.1: + resolution: {integrity: sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==} + dependencies: + '@emotion/memoize': 0.8.1 + /@emotion/memoize@0.7.4: resolution: {integrity: sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==} requiresBuild: true @@ -10813,11 +12541,10 @@ packages: resolution: {integrity: sha512-igX9a37DR2ZPGYtV6suZ6whr8pTFtyHL3K/oLUotxpSVO2ASaprmAe2Dkq7tBo7CRY7MMDrAa9nuQP9/YG8FxQ==} dev: false - /@emotion/memoize@0.8.0: - resolution: {integrity: sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==} - dev: false + /@emotion/memoize@0.8.1: + resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==} - /@emotion/react@11.10.4(@types/react@18.0.26)(react@18.1.0): + /@emotion/react@11.10.4(@types/react@18.3.3)(react@18.3.1): resolution: {integrity: sha512-j0AkMpr6BL8gldJZ6XQsQ8DnS9TxEQu1R+OGmDZiWjBAJtCcbt0tS3I/YffoqHXxH6MjgI7KdMbYKw3MEiU9eA==} peerDependencies: '@babel/core': ^7.0.0 @@ -10835,22 +12562,22 @@ packages: '@emotion/babel-plugin': 11.10.2 '@emotion/cache': 11.10.3 '@emotion/serialize': 1.1.0 - '@emotion/use-insertion-effect-with-fallbacks': 1.0.0(react@18.1.0) + '@emotion/use-insertion-effect-with-fallbacks': 1.0.0(react@18.3.1) '@emotion/utils': 1.2.0 '@emotion/weak-memoize': 0.3.0 - '@types/react': 18.0.26 + '@types/react': 18.3.3 hoist-non-react-statics: 3.3.2 - react: 18.1.0 + react: 18.3.1 dev: false /@emotion/serialize@1.1.0: resolution: {integrity: sha512-F1ZZZW51T/fx+wKbVlwsfchr5q97iW8brAnXmsskz4d0hVB4O3M/SiA3SaeH06x02lSNzkkQv+n3AX3kCXKSFA==} dependencies: '@emotion/hash': 0.9.0 - '@emotion/memoize': 0.8.0 + '@emotion/memoize': 0.8.1 '@emotion/unitless': 0.8.0 '@emotion/utils': 1.2.0 - csstype: 3.1.0 + csstype: 3.1.3 dev: false /@emotion/sheet@1.1.1: @@ -10861,7 +12588,7 @@ packages: resolution: {integrity: sha512-OiTkRgpxescko+M51tZsMq7Puu/KP55wMT8BgpcXVG2hqXc0Vo0mfymJ/Uj24Hp0i083ji/o0aLddh08UEjq8w==} dev: false - /@emotion/styled@11.10.4(@emotion/react@11.10.4)(@types/react@18.0.26)(react@18.1.0): + /@emotion/styled@11.10.4(@emotion/react@11.10.4)(@types/react@18.3.3)(react@18.3.1): resolution: {integrity: sha512-pRl4R8Ez3UXvOPfc2bzIoV8u9P97UedgHS4FPX594ntwEuAMA114wlaHvOK24HB48uqfXiGlYIZYCxVJ1R1ttQ==} peerDependencies: '@babel/core': ^7.0.0 @@ -10879,12 +12606,12 @@ packages: '@babel/runtime': 7.18.9 '@emotion/babel-plugin': 11.10.2 '@emotion/is-prop-valid': 1.2.0 - '@emotion/react': 11.10.4(@types/react@18.0.26)(react@18.1.0) + '@emotion/react': 11.10.4(@types/react@18.3.3)(react@18.3.1) '@emotion/serialize': 1.1.0 - '@emotion/use-insertion-effect-with-fallbacks': 1.0.0(react@18.1.0) + '@emotion/use-insertion-effect-with-fallbacks': 1.0.0(react@18.3.1) '@emotion/utils': 1.2.0 - '@types/react': 18.0.26 - react: 18.1.0 + '@types/react': 18.3.3 + react: 18.3.1 dev: false /@emotion/unitless@0.7.5: @@ -10893,7 +12620,7 @@ packages: /@emotion/unitless@0.8.0: resolution: {integrity: sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==} - /@emotion/use-insertion-effect-with-fallbacks@1.0.0(react@18.1.0): + /@emotion/use-insertion-effect-with-fallbacks@1.0.0(react@18.3.1): resolution: {integrity: sha512-1eEgUGmkaljiBnRMTdksDV1W4kUnmwgp7X9G8B++9GYwl1lUdqSndSriIrTJ0N7LQaoauY9JJ2yhiOYK5+NI4A==} peerDependencies: react: '>=16.8.0' @@ -10901,7 +12628,7 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false /@emotion/utils@1.1.0: @@ -10924,7 +12651,7 @@ packages: resolution: {integrity: sha512-lhc/XLith28QdW0HpHZvZKkorWgmCNT7sVelMHDj3HFdTfdqkwEKvT+aXVQtNAmCC39VJhunDkWhONWB7335mg==} dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: 4.2.0 + get-tsconfig: 4.7.5 /@esbuild-kit/core-utils@3.0.0: resolution: {integrity: sha512-TXmwH9EFS3DC2sI2YJWJBgHGhlteK0Xyu1VabwetMULfm3oYhbrsWV5yaSr2NTWZIgDGVLHbRf0inxbjXqAcmQ==} @@ -10936,7 +12663,16 @@ packages: resolution: {integrity: sha512-afmtLf6uqxD5IgwCzomtqCYIgz/sjHzCWZFvfS5+FzeYxOURPUo4QcHtqJxbxWOMOogKriZanN/1bJQE/ZL93A==} dependencies: '@esbuild-kit/core-utils': 3.0.0 - get-tsconfig: 4.2.0 + get-tsconfig: 4.7.5 + + /@esbuild/aix-ppc64@0.21.4: + resolution: {integrity: sha512-Zrm+B33R4LWPLjDEVnEqt2+SLTATlru1q/xYKVn8oVTbiRBGmK2VIMoIYGJDGyftnGaC788IuzGFAlb7IQ0Y8A==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: false + optional: true /@esbuild/android-arm64@0.16.17: resolution: {integrity: sha512-MIGl6p5sc3RDTLLkYL1MyL8BMRN4tLMRCn+yRJJmEDvYZ2M7tmAf80hx1kbNEUX2KJ50RRtxZ4JHLvCfuB6kBg==} @@ -10944,6 +12680,7 @@ packages: cpu: [arm64] os: [android] requiresBuild: true + dev: false optional: true /@esbuild/android-arm64@0.17.19: @@ -10954,6 +12691,23 @@ packages: requiresBuild: true optional: true + /@esbuild/android-arm64@0.18.20: + resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-arm64@0.21.4: + resolution: {integrity: sha512-fYFnz+ObClJ3dNiITySBUx+oNalYUT18/AryMxfovLkYWbutXsct3Wz2ZWAcGGppp+RVVX5FiXeLYGi97umisA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: false + optional: true + /@esbuild/android-arm@0.15.18: resolution: {integrity: sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==} engines: {node: '>=12'} @@ -10968,6 +12722,7 @@ packages: cpu: [arm] os: [android] requiresBuild: true + dev: false optional: true /@esbuild/android-arm@0.17.19: @@ -10978,12 +12733,30 @@ packages: requiresBuild: true optional: true + /@esbuild/android-arm@0.18.20: + resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-arm@0.21.4: + resolution: {integrity: sha512-E7H/yTd8kGQfY4z9t3nRPk/hrhaCajfA3YSQSBrst8B+3uTcgsi8N+ZWYCaeIDsiVs6m65JPCaQN/DxBRclF3A==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: false + optional: true + /@esbuild/android-x64@0.16.17: resolution: {integrity: sha512-a3kTv3m0Ghh4z1DaFEuEDfz3OLONKuFvI4Xqczqx4BqLyuFaFkuaG4j2MtA6fuWEFeC5x9IvqnX7drmRq/fyAQ==} engines: {node: '>=12'} cpu: [x64] os: [android] requiresBuild: true + dev: false optional: true /@esbuild/android-x64@0.17.19: @@ -10994,12 +12767,30 @@ packages: requiresBuild: true optional: true + /@esbuild/android-x64@0.18.20: + resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-x64@0.21.4: + resolution: {integrity: sha512-mDqmlge3hFbEPbCWxp4fM6hqq7aZfLEHZAKGP9viq9wMUBVQx202aDIfc3l+d2cKhUJM741VrCXEzRFhPDKH3Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: false + optional: true + /@esbuild/darwin-arm64@0.16.17: resolution: {integrity: sha512-/2agbUEfmxWHi9ARTX6OQ/KgXnOWfsNlTeLcoV7HSuSTv63E4DqtAc+2XqGw1KHxKMHGZgbVCZge7HXWX9Vn+w==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] requiresBuild: true + dev: false optional: true /@esbuild/darwin-arm64@0.17.19: @@ -11010,12 +12801,30 @@ packages: requiresBuild: true optional: true + /@esbuild/darwin-arm64@0.18.20: + resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/darwin-arm64@0.21.4: + resolution: {integrity: sha512-72eaIrDZDSiWqpmCzVaBD58c8ea8cw/U0fq/PPOTqE3c53D0xVMRt2ooIABZ6/wj99Y+h4ksT/+I+srCDLU9TA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + /@esbuild/darwin-x64@0.16.17: resolution: {integrity: sha512-2By45OBHulkd9Svy5IOCZt376Aa2oOkiE9QWUK9fe6Tb+WDr8hXL3dpqi+DeLiMed8tVXspzsTAvd0jUl96wmg==} engines: {node: '>=12'} cpu: [x64] os: [darwin] requiresBuild: true + dev: false optional: true /@esbuild/darwin-x64@0.17.19: @@ -11026,12 +12835,30 @@ packages: requiresBuild: true optional: true + /@esbuild/darwin-x64@0.18.20: + resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/darwin-x64@0.21.4: + resolution: {integrity: sha512-uBsuwRMehGmw1JC7Vecu/upOjTsMhgahmDkWhGLWxIgUn2x/Y4tIwUZngsmVb6XyPSTXJYS4YiASKPcm9Zitag==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + /@esbuild/freebsd-arm64@0.16.17: resolution: {integrity: sha512-mt+cxZe1tVx489VTb4mBAOo2aKSnJ33L9fr25JXpqQqzbUIw/yzIzi+NHwAXK2qYV1lEFp4OoVeThGjUbmWmdw==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] requiresBuild: true + dev: false optional: true /@esbuild/freebsd-arm64@0.17.19: @@ -11042,12 +12869,30 @@ packages: requiresBuild: true optional: true + /@esbuild/freebsd-arm64@0.18.20: + resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/freebsd-arm64@0.21.4: + resolution: {integrity: sha512-8JfuSC6YMSAEIZIWNL3GtdUT5NhUA/CMUCpZdDRolUXNAXEE/Vbpe6qlGLpfThtY5NwXq8Hi4nJy4YfPh+TwAg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/freebsd-x64@0.16.17: resolution: {integrity: sha512-8ScTdNJl5idAKjH8zGAsN7RuWcyHG3BAvMNpKOBaqqR7EbUhhVHOqXRdL7oZvz8WNHL2pr5+eIT5c65kA6NHug==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] requiresBuild: true + dev: false optional: true /@esbuild/freebsd-x64@0.17.19: @@ -11058,12 +12903,30 @@ packages: requiresBuild: true optional: true + /@esbuild/freebsd-x64@0.18.20: + resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/freebsd-x64@0.21.4: + resolution: {integrity: sha512-8d9y9eQhxv4ef7JmXny7591P/PYsDFc4+STaxC1GBv0tMyCdyWfXu2jBuqRsyhY8uL2HU8uPyscgE2KxCY9imQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-arm64@0.16.17: resolution: {integrity: sha512-7S8gJnSlqKGVJunnMCrXHU9Q8Q/tQIxk/xL8BqAP64wchPCTzuM6W3Ra8cIa1HIflAvDnNOt2jaL17vaW+1V0g==} engines: {node: '>=12'} cpu: [arm64] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-arm64@0.17.19: @@ -11074,12 +12937,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-arm64@0.18.20: + resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-arm64@0.21.4: + resolution: {integrity: sha512-/GLD2orjNU50v9PcxNpYZi+y8dJ7e7/LhQukN3S4jNDXCKkyyiyAz9zDw3siZ7Eh1tRcnCHAo/WcqKMzmi4eMQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-arm@0.16.17: resolution: {integrity: sha512-iihzrWbD4gIT7j3caMzKb/RsFFHCwqqbrbH9SqUSRrdXkXaygSZCZg1FybsZz57Ju7N/SHEgPyaR0LZ8Zbe9gQ==} engines: {node: '>=12'} cpu: [arm] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-arm@0.17.19: @@ -11090,12 +12971,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-arm@0.18.20: + resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-arm@0.21.4: + resolution: {integrity: sha512-2rqFFefpYmpMs+FWjkzSgXg5vViocqpq5a1PSRgT0AvSgxoXmGF17qfGAzKedg6wAwyM7UltrKVo9kxaJLMF/g==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-ia32@0.16.17: resolution: {integrity: sha512-kiX69+wcPAdgl3Lonh1VI7MBr16nktEvOfViszBSxygRQqSpzv7BffMKRPMFwzeJGPxcio0pdD3kYQGpqQ2SSg==} engines: {node: '>=12'} cpu: [ia32] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-ia32@0.17.19: @@ -11106,6 +13005,23 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-ia32@0.18.20: + resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ia32@0.21.4: + resolution: {integrity: sha512-pNftBl7m/tFG3t2m/tSjuYeWIffzwAZT9m08+9DPLizxVOsUl8DdFzn9HvJrTQwe3wvJnwTdl92AonY36w/25g==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-loong64@0.15.18: resolution: {integrity: sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==} engines: {node: '>=12'} @@ -11120,6 +13036,7 @@ packages: cpu: [loong64] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-loong64@0.17.19: @@ -11130,12 +13047,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-loong64@0.18.20: + resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-loong64@0.21.4: + resolution: {integrity: sha512-cSD2gzCK5LuVX+hszzXQzlWya6c7hilO71L9h4KHwqI4qeqZ57bAtkgcC2YioXjsbfAv4lPn3qe3b00Zt+jIfQ==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-mips64el@0.16.17: resolution: {integrity: sha512-ezbDkp2nDl0PfIUn0CsQ30kxfcLTlcx4Foz2kYv8qdC6ia2oX5Q3E/8m6lq84Dj/6b0FrkgD582fJMIfHhJfSw==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-mips64el@0.17.19: @@ -11146,12 +13081,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-mips64el@0.18.20: + resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-mips64el@0.21.4: + resolution: {integrity: sha512-qtzAd3BJh7UdbiXCrg6npWLYU0YpufsV9XlufKhMhYMJGJCdfX/G6+PNd0+v877X1JG5VmjBLUiFB0o8EUSicA==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-ppc64@0.16.17: resolution: {integrity: sha512-dzS678gYD1lJsW73zrFhDApLVdM3cUF2MvAa1D8K8KtcSKdLBPP4zZSLy6LFZ0jYqQdQ29bjAHJDgz0rVbLB3g==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-ppc64@0.17.19: @@ -11162,12 +13115,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-ppc64@0.18.20: + resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ppc64@0.21.4: + resolution: {integrity: sha512-yB8AYzOTaL0D5+2a4xEy7OVvbcypvDR05MsB/VVPVA7nL4hc5w5Dyd/ddnayStDgJE59fAgNEOdLhBxjfx5+dg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-riscv64@0.16.17: resolution: {integrity: sha512-ylNlVsxuFjZK8DQtNUwiMskh6nT0vI7kYl/4fZgV1llP5d6+HIeL/vmmm3jpuoo8+NuXjQVZxmKuhDApK0/cKw==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-riscv64@0.17.19: @@ -11178,12 +13149,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-riscv64@0.18.20: + resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-riscv64@0.21.4: + resolution: {integrity: sha512-Y5AgOuVzPjQdgU59ramLoqSSiXddu7F3F+LI5hYy/d1UHN7K5oLzYBDZe23QmQJ9PIVUXwOdKJ/jZahPdxzm9w==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-s390x@0.16.17: resolution: {integrity: sha512-gzy7nUTO4UA4oZ2wAMXPNBGTzZFP7mss3aKR2hH+/4UUkCOyqmjXiKpzGrY2TlEUhbbejzXVKKGazYcQTZWA/w==} engines: {node: '>=12'} cpu: [s390x] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-s390x@0.17.19: @@ -11194,12 +13183,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-s390x@0.18.20: + resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-s390x@0.21.4: + resolution: {integrity: sha512-Iqc/l/FFwtt8FoTK9riYv9zQNms7B8u+vAI/rxKuN10HgQIXaPzKZc479lZ0x6+vKVQbu55GdpYpeNWzjOhgbA==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-x64@0.16.17: resolution: {integrity: sha512-mdPjPxfnmoqhgpiEArqi4egmBAMYvaObgn4poorpUaqmvzzbvqbowRllQ+ZgzGVMGKaPkqUmPDOOFQRUFDmeUw==} engines: {node: '>=12'} cpu: [x64] os: [linux] requiresBuild: true + dev: false optional: true /@esbuild/linux-x64@0.17.19: @@ -11210,12 +13217,30 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-x64@0.18.20: + resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-x64@0.21.4: + resolution: {integrity: sha512-Td9jv782UMAFsuLZINfUpoF5mZIbAj+jv1YVtE58rFtfvoKRiKSkRGQfHTgKamLVT/fO7203bHa3wU122V/Bdg==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/netbsd-x64@0.16.17: resolution: {integrity: sha512-/PzmzD/zyAeTUsduZa32bn0ORug+Jd1EGGAUJvqfeixoEISYpGnAezN6lnJoskauoai0Jrs+XSyvDhppCPoKOA==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] requiresBuild: true + dev: false optional: true /@esbuild/netbsd-x64@0.17.19: @@ -11226,12 +13251,30 @@ packages: requiresBuild: true optional: true + /@esbuild/netbsd-x64@0.18.20: + resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + /@esbuild/netbsd-x64@0.21.4: + resolution: {integrity: sha512-Awn38oSXxsPMQxaV0Ipb7W/gxZtk5Tx3+W+rAPdZkyEhQ6968r9NvtkjhnhbEgWXYbgV+JEONJ6PcdBS+nlcpA==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/openbsd-x64@0.16.17: resolution: {integrity: sha512-2yaWJhvxGEz2RiftSk0UObqJa/b+rIAjnODJgv2GbGGpRwAfpgzyrg1WLK8rqA24mfZa9GvpjLcBBg8JHkoodg==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] requiresBuild: true + dev: false optional: true /@esbuild/openbsd-x64@0.17.19: @@ -11242,12 +13285,30 @@ packages: requiresBuild: true optional: true + /@esbuild/openbsd-x64@0.18.20: + resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + /@esbuild/openbsd-x64@0.21.4: + resolution: {integrity: sha512-IsUmQeCY0aU374R82fxIPu6vkOybWIMc3hVGZ3ChRwL9hA1TwY+tS0lgFWV5+F1+1ssuvvXt3HFqe8roCip8Hg==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/sunos-x64@0.16.17: resolution: {integrity: sha512-xtVUiev38tN0R3g8VhRfN7Zl42YCJvyBhRKw1RJjwE1d2emWTVToPLNEQj/5Qxc6lVFATDiy6LjVHYhIPrLxzw==} engines: {node: '>=12'} cpu: [x64] os: [sunos] requiresBuild: true + dev: false optional: true /@esbuild/sunos-x64@0.17.19: @@ -11258,12 +13319,30 @@ packages: requiresBuild: true optional: true + /@esbuild/sunos-x64@0.18.20: + resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + /@esbuild/sunos-x64@0.21.4: + resolution: {integrity: sha512-hsKhgZ4teLUaDA6FG/QIu2q0rI6I36tZVfM4DBZv3BG0mkMIdEnMbhc4xwLvLJSS22uWmaVkFkqWgIS0gPIm+A==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: false + optional: true + /@esbuild/win32-arm64@0.16.17: resolution: {integrity: sha512-ga8+JqBDHY4b6fQAmOgtJJue36scANy4l/rL97W+0wYmijhxKetzZdKOJI7olaBaMhWt8Pac2McJdZLxXWUEQw==} engines: {node: '>=12'} cpu: [arm64] os: [win32] requiresBuild: true + dev: false optional: true /@esbuild/win32-arm64@0.17.19: @@ -11274,12 +13353,30 @@ packages: requiresBuild: true optional: true + /@esbuild/win32-arm64@0.18.20: + resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-arm64@0.21.4: + resolution: {integrity: sha512-UUfMgMoXPoA/bvGUNfUBFLCh0gt9dxZYIx9W4rfJr7+hKe5jxxHmfOK8YSH4qsHLLN4Ck8JZ+v7Q5fIm1huErg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@esbuild/win32-ia32@0.16.17: resolution: {integrity: sha512-WnsKaf46uSSF/sZhwnqE4L/F89AYNMiD4YtEcYekBt9Q7nj0DiId2XH2Ng2PHM54qi5oPrQ8luuzGszqi/veig==} engines: {node: '>=12'} cpu: [ia32] os: [win32] requiresBuild: true + dev: false optional: true /@esbuild/win32-ia32@0.17.19: @@ -11290,12 +13387,30 @@ packages: requiresBuild: true optional: true + /@esbuild/win32-ia32@0.18.20: + resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-ia32@0.21.4: + resolution: {integrity: sha512-yIxbspZb5kGCAHWm8dexALQ9en1IYDfErzjSEq1KzXFniHv019VT3mNtTK7t8qdy4TwT6QYHI9sEZabONHg+aw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@esbuild/win32-x64@0.16.17: resolution: {integrity: sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==} engines: {node: '>=12'} cpu: [x64] os: [win32] requiresBuild: true + dev: false optional: true /@esbuild/win32-x64@0.17.19: @@ -11306,6 +13421,39 @@ packages: requiresBuild: true optional: true + /@esbuild/win32-x64@0.18.20: + resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-x64@0.21.4: + resolution: {integrity: sha512-sywLRD3UK/qRJt0oBwdpYLBibk7KiRfbswmWRDabuncQYSlf8aLEEUor/oP6KRz8KEG+HoiVLBhPRD5JWjS8Sg==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@eslint-community/eslint-utils@4.4.0(eslint@7.32.0): + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + peerDependenciesMeta: + eslint: + optional: true + dependencies: + eslint: 7.32.0 + eslint-visitor-keys: 3.4.3 + + /@eslint-community/regexpp@4.8.0: + resolution: {integrity: sha512-JylOEEzDiOryeUnFbQz+oViCXS0KsvR1mvHkoMiu5+UiBvy+RYX7tzlIIIEstF/gVa2tj9AQXk3dgnxv6KxhFg==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + /@eslint/eslintrc@0.4.3: resolution: {integrity: sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==} engines: {node: ^10.12.0 || >=12.0.0} @@ -11321,7 +13469,6 @@ packages: strip-json-comments: 3.1.1 transitivePeerDependencies: - supports-color - dev: true /@eslint/eslintrc@2.0.0: resolution: {integrity: sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A==} @@ -11331,7 +13478,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) espree: 9.4.1 globals: 13.19.0 - ignore: 5.2.0 + ignore: 5.2.4 import-fresh: 3.3.0 js-yaml: 4.1.0 minimatch: 3.1.2 @@ -11365,19 +13512,35 @@ packages: '@floating-ui/core': 0.7.3 dev: false - /@floating-ui/react-dom-interactions@0.3.1(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0): + /@floating-ui/react-dom-interactions@0.3.1(@types/react@18.3.3)(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-tP2KEh7EHJr5hokSBHcPGojb+AorDNUf0NYfZGg/M+FsMvCOOsSEeEF0O1NDfETIzDnpbHnCs0DuvCFhSMSStg==} + deprecated: Package renamed to @floating-ui/react dependencies: - '@floating-ui/react-dom': 0.6.3(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0) - aria-hidden: 1.1.3 + '@floating-ui/react-dom': 0.6.3(@types/react@18.3.3)(react-dom@18.1.0)(react@18.1.0) + aria-hidden: 1.2.3 point-in-polygon: 1.1.0 - use-isomorphic-layout-effect: 1.1.2(@types/react@18.0.26)(react@18.1.0) + use-isomorphic-layout-effect: 1.1.2(@types/react@18.3.3)(react@18.1.0) transitivePeerDependencies: - '@types/react' - react - react-dom + dev: true - /@floating-ui/react-dom@0.6.3(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0): + /@floating-ui/react-dom-interactions@0.3.1(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-tP2KEh7EHJr5hokSBHcPGojb+AorDNUf0NYfZGg/M+FsMvCOOsSEeEF0O1NDfETIzDnpbHnCs0DuvCFhSMSStg==} + deprecated: Package renamed to @floating-ui/react + dependencies: + '@floating-ui/react-dom': 0.6.3(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1) + aria-hidden: 1.2.3 + point-in-polygon: 1.1.0 + use-isomorphic-layout-effect: 1.1.2(@types/react@18.3.3)(react@18.3.1) + transitivePeerDependencies: + - '@types/react' + - react + - react-dom + dev: false + + /@floating-ui/react-dom@0.6.3(@types/react@18.3.3)(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-hC+pS5D6AgS2wWjbmSQ6UR6Kpy+drvWGJIri6e1EDGADTPsCaa4KzCgmCczHrQeInx9tqs81EyDmbKJYY2swKg==} peerDependencies: react: '>=16.8.0' @@ -11391,34 +13554,54 @@ packages: '@floating-ui/dom': 0.4.5 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) - use-isomorphic-layout-effect: 1.1.2(@types/react@18.0.26)(react@18.1.0) + use-isomorphic-layout-effect: 1.1.2(@types/react@18.3.3)(react@18.1.0) transitivePeerDependencies: - '@types/react' + dev: true + + /@floating-ui/react-dom@0.6.3(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-hC+pS5D6AgS2wWjbmSQ6UR6Kpy+drvWGJIri6e1EDGADTPsCaa4KzCgmCczHrQeInx9tqs81EyDmbKJYY2swKg==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@floating-ui/dom': 0.4.5 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + use-isomorphic-layout-effect: 1.1.2(@types/react@18.3.3)(react@18.3.1) + transitivePeerDependencies: + - '@types/react' + dev: false /@formatjs/ecma402-abstract@1.11.4: resolution: {integrity: sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==} dependencies: '@formatjs/intl-localematcher': 0.2.25 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/ecma402-abstract@1.17.0: resolution: {integrity: sha512-6ueQTeJZtwKjmh23bdkq/DMqH4l4bmfvtQH98blOSbiXv/OUiyijSW6jU22IT8BNM1ujCaEvJfTtyCYVH38EMQ==} dependencies: '@formatjs/intl-localematcher': 0.4.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/fast-memoize@1.2.1: resolution: {integrity: sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/fast-memoize@2.2.0: resolution: {integrity: sha512-hnk/nY8FyrL5YxwP9e4r9dqeM6cAbo8PeU9UjyXojZMNvVad2Z06FAVHyR3Ecw6fza+0GH7vdJgiKIVXTMbSBA==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/icu-messageformat-parser@2.1.0: @@ -11426,7 +13609,7 @@ packages: dependencies: '@formatjs/ecma402-abstract': 1.11.4 '@formatjs/icu-skeleton-parser': 1.3.6 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/icu-messageformat-parser@2.6.0: @@ -11434,21 +13617,21 @@ packages: dependencies: '@formatjs/ecma402-abstract': 1.17.0 '@formatjs/icu-skeleton-parser': 1.6.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/icu-skeleton-parser@1.3.6: resolution: {integrity: sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==} dependencies: '@formatjs/ecma402-abstract': 1.11.4 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/icu-skeleton-parser@1.6.0: resolution: {integrity: sha512-eMmxNpoX/J1IPUjPGSZwo0Wh+7CEvdEMddP2Jxg1gQJXfGfht/FdW2D5XDFj3VMbOTUQlDIdZJY7uC6O6gjPoA==} dependencies: '@formatjs/ecma402-abstract': 1.17.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/intl-displaynames@1.2.10: @@ -11461,7 +13644,7 @@ packages: dependencies: '@formatjs/ecma402-abstract': 1.17.0 '@formatjs/intl-localematcher': 0.4.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/intl-listformat@1.4.8: @@ -11474,19 +13657,19 @@ packages: dependencies: '@formatjs/ecma402-abstract': 1.17.0 '@formatjs/intl-localematcher': 0.4.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/intl-localematcher@0.2.25: resolution: {integrity: sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/intl-localematcher@0.4.0: resolution: {integrity: sha512-bRTd+rKomvfdS4QDlVJ6TA/Jx1F2h/TBVO5LjvhQ7QPPHp19oPNMIum7W2CMEReq/zPxpmCeB31F9+5gl/qtvw==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@formatjs/intl-relativetimeformat@4.5.16: @@ -11502,7 +13685,7 @@ packages: /@formatjs/intl-utils@2.3.0: resolution: {integrity: sha512-KWk80UPIzPmUg+P0rKh6TqspRw0G6eux1PuJr+zz47ftMaZ9QDwbGzHZbtzWkl5hgayM/qrKRutllRC7D/vVXQ==} - /@formatjs/intl@2.9.0(typescript@4.9.4): + /@formatjs/intl@2.9.0(typescript@4.9.5): resolution: {integrity: sha512-Ym0trUoC/VO6wQu4YHa0H1VR2tEixFRmwZgADkDLm7nD+vv1Ob+/88mUAoT0pwvirFqYKgUKEwp1tFepqyqvVA==} peerDependencies: typescript: ^4.7 || 5 @@ -11516,8 +13699,8 @@ packages: '@formatjs/intl-displaynames': 6.5.0 '@formatjs/intl-listformat': 7.4.0 intl-messageformat: 10.5.0 - tslib: 2.5.0 - typescript: 4.9.4 + tslib: 2.6.2 + typescript: 4.9.5 dev: true /@gar/promisify@1.1.3: @@ -11577,7 +13760,6 @@ packages: minimatch: 3.1.2 transitivePeerDependencies: - supports-color - dev: true /@humanwhocodes/module-importer@1.0.1: resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} @@ -11591,14 +13773,26 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@iconify-json/ant-design@1.1.4: - resolution: {integrity: sha512-bx8sSFrrJloQUdStRbBn3TMmeKWfbx51aVDF1fEOH/LGKXGiBmtybURjlTdQPwE7S0zhlXcve+agYHuGb2Q9hQ==} + /@iconify-json/ant-design@1.1.16: + resolution: {integrity: sha512-DJ2BDf/XNuYu0p0zDQh3RM8FkPsp9GwZ7WytkVwU7cn73AgpNfOGc2P5zvZzgejx5YK0otG9MYi/cHI4qvfnVQ==} + dependencies: + '@iconify/types': 2.0.0 + dev: true + + /@iconify-json/fa@1.1.8: + resolution: {integrity: sha512-he23ZsuDxA6Hx7rnrEpSJnmu7t7RtG/SbrENZhMSPiZ4bNRGHjyPZimtOy10k2/nfwNsW57ECDsO5eK0BkcoMg==} + dependencies: + '@iconify/types': 2.0.0 + dev: true + + /@iconify-json/ic@1.1.17: + resolution: {integrity: sha512-EvAjZzVESmN36zlyefylePUNaU2BQ3eRKVZ6KQSQ2bG01ppoZaiFZRri74VTyvp5Mlv2yn68ux1fgCoT+etGmA==} dependencies: '@iconify/types': 2.0.0 dev: true - /@iconify-json/fa@1.1.3: - resolution: {integrity: sha512-Cmzx42MZ2kTOLNGFlplEEvFXPsHkofoIX7iO+XZggyUpLjJjf/3AJS01NzNDoDhol9OZEUz7I0syGtuAjfOv4w==} + /@iconify-json/solar@1.1.9: + resolution: {integrity: sha512-BcWzZqA02BiQduYizqU/J4v4RNs0MkjZUGpMbejpozH8YQSt3+S/LfV6zfVRonx/2DhXTVSqiLa1abDRAZtojQ==} dependencies: '@iconify/types': 2.0.0 dev: true @@ -11627,7 +13821,7 @@ packages: resolution: {integrity: sha512-H8xz74JDzDw8f0qLxwIaxFMnFkbXTZNWEufOk3WxaLFHV4h0A2FjIDgNk5LzC0am4jssnjdeJJdRs3UFu3582Q==} dependencies: '@antfu/install-pkg': 0.1.1 - '@antfu/utils': 0.7.2 + '@antfu/utils': 0.7.7 '@iconify/types': 2.0.0 debug: 4.3.4(supports-color@8.1.1) kolorist: 1.8.0 @@ -11635,7 +13829,7 @@ packages: transitivePeerDependencies: - supports-color - /@icons/material@0.2.4(react@18.1.0): + /@icons/material@0.2.4(react@18.3.1): resolution: {integrity: sha512-QPcGmICAPbGLGb6F/yNf/KzKqvFx8z5qx3D1yFqVAjoFmXK35EgyW+cJ57Te3CNsmzblwtzakLGFqHPqrfb4Tw==} peerDependencies: react: '*' @@ -11643,9 +13837,20 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false + /@isaacs/cliui@8.0.2: + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + dependencies: + string-width: 5.1.2 + string-width-cjs: /string-width@4.2.3 + strip-ansi: 7.0.1 + strip-ansi-cjs: /strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: /wrap-ansi@7.0.0 + /@isaacs/string-locale-compare@1.1.0: resolution: {integrity: sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==} dev: true @@ -11668,14 +13873,67 @@ packages: resolution: {integrity: sha512-W/o/34+wQuXlgqlPYTansOSiBnuxrTv61dEVkA6HNmpcgHLUjfaUbdqt6oVvOzaawwo9IdW9QOtMgQ1ScSZC4A==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + chalk: 4.1.2 + jest-message-util: 29.4.3 + jest-util: 29.5.0 + slash: 3.0.0 + + /@jest/console@29.7.0: + resolution: {integrity: sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + chalk: 4.1.2 + jest-message-util: 29.7.0 + jest-util: 29.7.0 + slash: 3.0.0 + + /@jest/core@29.4.3(ts-node@10.9.1): + resolution: {integrity: sha512-56QvBq60fS4SPZCuM7T+7scNrkGIe7Mr6PVIXUpu48ouvRaWOFqRPV91eifvFM0ay2HmfswXiGf97NGUN5KofQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/console': 29.4.3 + '@jest/reporters': 29.4.3 + '@jest/test-result': 29.4.3 + '@jest/transform': 29.4.3 '@jest/types': 29.4.3 - '@types/node': 18.15.5 + '@types/node': 18.19.39 + ansi-escapes: 4.3.2 chalk: 4.1.2 + ci-info: 3.3.2 + exit: 0.1.2 + graceful-fs: 4.2.10 + jest-changed-files: 29.4.3 + jest-config: 29.4.3(@types/node@18.19.39)(ts-node@10.9.1) + jest-haste-map: 29.4.3 jest-message-util: 29.4.3 + jest-regex-util: 29.4.3 + jest-resolve: 29.4.3 + jest-resolve-dependencies: 29.4.3 + jest-runner: 29.4.3 + jest-runtime: 29.4.3 + jest-snapshot: 29.4.3 jest-util: 29.4.3 + jest-validate: 29.4.3 + jest-watcher: 29.4.3 + micromatch: 4.0.5 + pretty-format: 29.4.3 slash: 3.0.0 + strip-ansi: 6.0.1 + transitivePeerDependencies: + - supports-color + - ts-node + dev: true - /@jest/core@29.4.3(ts-node@10.9.1): + /@jest/core@29.4.3(ts-node@10.9.2): resolution: {integrity: sha512-56QvBq60fS4SPZCuM7T+7scNrkGIe7Mr6PVIXUpu48ouvRaWOFqRPV91eifvFM0ay2HmfswXiGf97NGUN5KofQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -11689,14 +13947,14 @@ packages: '@jest/test-result': 29.4.3 '@jest/transform': 29.4.3 '@jest/types': 29.4.3 - '@types/node': 18.11.18 + '@types/node': 18.19.39 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.3.2 exit: 0.1.2 graceful-fs: 4.2.10 jest-changed-files: 29.4.3 - jest-config: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + jest-config: 29.4.3(@types/node@18.19.39)(ts-node@10.9.2) jest-haste-map: 29.4.3 jest-message-util: 29.4.3 jest-regex-util: 29.4.3 @@ -11716,15 +13974,66 @@ packages: - supports-color - ts-node + /@jest/core@29.7.0(ts-node@10.9.2): + resolution: {integrity: sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/console': 29.7.0 + '@jest/reporters': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + ci-info: 3.9.0 + exit: 0.1.2 + graceful-fs: 4.2.11 + jest-changed-files: 29.7.0 + jest-config: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) + jest-haste-map: 29.7.0 + jest-message-util: 29.7.0 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-resolve-dependencies: 29.7.0 + jest-runner: 29.7.0 + jest-runtime: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 + jest-watcher: 29.7.0 + micromatch: 4.0.5 + pretty-format: 29.7.0 + slash: 3.0.0 + strip-ansi: 6.0.1 + transitivePeerDependencies: + - babel-plugin-macros + - supports-color + - ts-node + /@jest/environment@29.4.3: resolution: {integrity: sha512-dq5S6408IxIa+lr54zeqce+QgI+CJT4nmmA+1yzFgtcsGK8c/EyiUb9XQOgz3BMKrRDfKseeOaxj2eO8LlD3lA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/fake-timers': 29.4.3 '@jest/types': 29.4.3 - '@types/node': 18.11.18 + '@types/node': 18.19.39 jest-mock: 29.4.3 + /@jest/environment@29.7.0: + resolution: {integrity: sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/fake-timers': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + jest-mock: 29.7.0 + /@jest/expect-utils@29.3.1: resolution: {integrity: sha512-wlrznINZI5sMjwvUoLVk617ll/UYfGIZNxmbU+Pa7wmkL4vYzhV9R2pwVqUh4NWWuLQWkI8+8mOkxs//prKQ3g==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -11736,14 +14045,29 @@ packages: resolution: {integrity: sha512-/6JWbkxHOP8EoS8jeeTd9dTfc9Uawi+43oLKHfp6zzux3U2hqOOVnV3ai4RpDYHOccL6g+5nrxpoc8DmJxtXVQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - jest-get-type: 29.4.3 + jest-get-type: 29.6.3 + + /@jest/expect-utils@29.7.0: + resolution: {integrity: sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + jest-get-type: 29.6.3 /@jest/expect@29.4.3: resolution: {integrity: sha512-iktRU/YsxEtumI9zsPctYUk7ptpC+AVLLk1Ax3AsA4g1C+8OOnKDkIQBDHtD5hA/+VtgMd5AWI5gNlcAlt2vxQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - expect: 29.4.3 - jest-snapshot: 29.4.3 + expect: 29.7.0 + jest-snapshot: 29.7.0 + transitivePeerDependencies: + - supports-color + + /@jest/expect@29.7.0: + resolution: {integrity: sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + expect: 29.7.0 + jest-snapshot: 29.7.0 transitivePeerDependencies: - supports-color @@ -11753,10 +14077,21 @@ packages: dependencies: '@jest/types': 29.4.3 '@sinonjs/fake-timers': 10.0.2 - '@types/node': 18.11.18 + '@types/node': 18.19.39 jest-message-util: 29.4.3 jest-mock: 29.4.3 - jest-util: 29.4.3 + jest-util: 29.5.0 + + /@jest/fake-timers@29.7.0: + resolution: {integrity: sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.6.3 + '@sinonjs/fake-timers': 10.0.2 + '@types/node': 18.19.39 + jest-message-util: 29.7.0 + jest-mock: 29.7.0 + jest-util: 29.7.0 /@jest/globals@29.4.3: resolution: {integrity: sha512-8BQ/5EzfOLG7AaMcDh7yFCbfRLtsc+09E1RQmRBI4D6QQk4m6NSK/MXo+3bJrBN0yU8A2/VIcqhvsOLFmziioA==} @@ -11764,11 +14099,22 @@ packages: dependencies: '@jest/environment': 29.4.3 '@jest/expect': 29.4.3 - '@jest/types': 29.4.3 + '@jest/types': 29.6.3 jest-mock: 29.4.3 transitivePeerDependencies: - supports-color + /@jest/globals@29.7.0: + resolution: {integrity: sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/environment': 29.7.0 + '@jest/expect': 29.7.0 + '@jest/types': 29.6.3 + jest-mock: 29.7.0 + transitivePeerDependencies: + - supports-color + /@jest/reporters@29.4.3: resolution: {integrity: sha512-sr2I7BmOjJhyqj9ANC6CTLsL4emMoka7HkQpcoMRlhCbQJjz2zsRzw0BDPiPyEFDXAbxKgGFYuQZiSJ1Y6YoTg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -11782,21 +14128,21 @@ packages: '@jest/console': 29.4.3 '@jest/test-result': 29.4.3 '@jest/transform': 29.4.3 - '@jest/types': 29.4.3 - '@jridgewell/trace-mapping': 0.3.17 - '@types/node': 18.15.5 + '@jest/types': 29.6.3 + '@jridgewell/trace-mapping': 0.3.20 + '@types/node': 18.19.39 chalk: 4.1.2 collect-v8-coverage: 1.0.1 exit: 0.1.2 glob: 7.2.3 graceful-fs: 4.2.11 istanbul-lib-coverage: 3.2.0 - istanbul-lib-instrument: 5.2.0 + istanbul-lib-instrument: 5.2.1 istanbul-lib-report: 3.0.0 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.5 jest-message-util: 29.4.3 - jest-util: 29.4.3 + jest-util: 29.5.0 jest-worker: 29.4.3 slash: 3.0.0 string-length: 4.0.2 @@ -11805,6 +14151,42 @@ packages: transitivePeerDependencies: - supports-color + /@jest/reporters@29.7.0: + resolution: {integrity: sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@bcoe/v8-coverage': 0.2.3 + '@jest/console': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + '@jridgewell/trace-mapping': 0.3.25 + '@types/node': 18.19.39 + chalk: 4.1.2 + collect-v8-coverage: 1.0.1 + exit: 0.1.2 + glob: 7.2.3 + graceful-fs: 4.2.11 + istanbul-lib-coverage: 3.2.0 + istanbul-lib-instrument: 6.0.2 + istanbul-lib-report: 3.0.0 + istanbul-lib-source-maps: 4.0.1 + istanbul-reports: 3.1.5 + jest-message-util: 29.7.0 + jest-util: 29.7.0 + jest-worker: 29.7.0 + slash: 3.0.0 + string-length: 4.0.2 + strip-ansi: 6.0.1 + v8-to-istanbul: 9.0.1 + transitivePeerDependencies: + - supports-color + /@jest/schemas@28.1.3: resolution: {integrity: sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} @@ -11825,11 +14207,25 @@ packages: dependencies: '@sinclair/typebox': 0.25.24 + /@jest/schemas@29.6.3: + resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@sinclair/typebox': 0.27.8 + /@jest/source-map@29.4.3: resolution: {integrity: sha512-qyt/mb6rLyd9j1jUts4EQncvS6Yy3PM9HghnNv86QBlV+zdL2inCdK1tuVlL+J+lpiw2BI67qXOrX3UurBqQ1w==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jridgewell/trace-mapping': 0.3.17 + '@jridgewell/trace-mapping': 0.3.20 + callsites: 3.1.0 + graceful-fs: 4.2.11 + + /@jest/source-map@29.6.3: + resolution: {integrity: sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jridgewell/trace-mapping': 0.3.25 callsites: 3.1.0 graceful-fs: 4.2.11 @@ -11838,47 +14234,42 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/console': 29.4.3 - '@jest/types': 29.4.3 - '@types/istanbul-lib-coverage': 2.0.4 + '@jest/types': 29.6.3 + '@types/istanbul-lib-coverage': 2.0.6 + collect-v8-coverage: 1.0.1 + + /@jest/test-result@29.7.0: + resolution: {integrity: sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/console': 29.7.0 + '@jest/types': 29.6.3 + '@types/istanbul-lib-coverage': 2.0.6 collect-v8-coverage: 1.0.1 /@jest/test-sequencer@29.4.3: resolution: {integrity: sha512-yi/t2nES4GB4G0mjLc0RInCq/cNr9dNwJxcGg8sslajua5Kb4kmozAc+qPLzplhBgfw1vLItbjyHzUN92UXicw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/test-result': 29.4.3 + '@jest/test-result': 29.7.0 graceful-fs: 4.2.11 - jest-haste-map: 29.4.3 + jest-haste-map: 29.7.0 slash: 3.0.0 - /@jest/transform@26.6.2: - resolution: {integrity: sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==} - engines: {node: '>= 10.14.2'} + /@jest/test-sequencer@29.7.0: + resolution: {integrity: sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/core': 7.22.5 - '@jest/types': 26.6.2 - babel-plugin-istanbul: 6.1.1 - chalk: 4.1.2 - convert-source-map: 1.8.0 - fast-json-stable-stringify: 2.1.0 + '@jest/test-result': 29.7.0 graceful-fs: 4.2.11 - jest-haste-map: 26.6.2 - jest-regex-util: 26.0.0 - jest-util: 26.6.2 - micromatch: 4.0.5 - pirates: 4.0.5 + jest-haste-map: 29.7.0 slash: 3.0.0 - source-map: 0.6.1 - write-file-atomic: 3.0.3 - transitivePeerDependencies: - - supports-color - dev: true /@jest/transform@28.1.3: resolution: {integrity: sha512-u5dT5di+oFI6hfcLOHGTAfmUxFRrjK+vnaP0kkVow9Md/M7V/MxqQMOz/VV25UZO8pzeA9PjfTpOu6BDuwSPQA==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@jest/types': 28.1.3 '@jridgewell/trace-mapping': 0.3.13 babel-plugin-istanbul: 6.1.1 @@ -11901,9 +14292,9 @@ packages: resolution: {integrity: sha512-8u0+fBGWolDshsFgPQJESkDa72da/EVwvL+II0trN2DR66wMwiQ9/CihaGfHdlLGFzbBZwMykFtxuwFdZqlKwg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/core': 7.22.5 - '@jest/types': 29.4.3 - '@jridgewell/trace-mapping': 0.3.17 + '@babel/core': 7.23.6 + '@jest/types': 29.6.3 + '@jridgewell/trace-mapping': 0.3.20 babel-plugin-istanbul: 6.1.1 chalk: 4.1.2 convert-source-map: 2.0.0 @@ -11919,25 +14310,45 @@ packages: transitivePeerDependencies: - supports-color - /@jest/types@26.6.2: - resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==} - engines: {node: '>= 10.14.2'} + /@jest/transform@29.7.0: + resolution: {integrity: sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/istanbul-lib-coverage': 2.0.4 - '@types/istanbul-reports': 3.0.1 - '@types/node': 18.15.5 - '@types/yargs': 15.0.14 + '@babel/core': 7.23.6 + '@jest/types': 29.6.3 + '@jridgewell/trace-mapping': 0.3.20 + babel-plugin-istanbul: 6.1.1 chalk: 4.1.2 - dev: true + convert-source-map: 2.0.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.11 + jest-haste-map: 29.7.0 + jest-regex-util: 29.6.3 + jest-util: 29.7.0 + micromatch: 4.0.5 + pirates: 4.0.6 + slash: 3.0.0 + write-file-atomic: 4.0.2 + transitivePeerDependencies: + - supports-color + + /@jest/types@24.9.0: + resolution: {integrity: sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==} + engines: {node: '>= 6'} + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 1.1.2 + '@types/yargs': 13.0.12 + dev: false /@jest/types@27.5.1: resolution: {integrity: sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: - '@types/istanbul-lib-coverage': 2.0.4 - '@types/istanbul-reports': 3.0.1 - '@types/node': 20.1.7 - '@types/yargs': 16.0.5 + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 3.0.4 + '@types/node': 20.10.5 + '@types/yargs': 16.0.9 chalk: 4.1.2 /@jest/types@28.1.3: @@ -11947,8 +14358,8 @@ packages: '@jest/schemas': 28.1.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 18.15.5 - '@types/yargs': 17.0.11 + '@types/node': 18.19.39 + '@types/yargs': 17.0.24 chalk: 4.1.2 dev: true @@ -11959,19 +14370,19 @@ packages: '@jest/schemas': 29.4.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 18.11.18 + '@types/node': 18.19.39 '@types/yargs': 17.0.11 chalk: 4.1.2 - /@jest/types@29.5.0: - resolution: {integrity: sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==} + /@jest/types@29.6.3: + resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/schemas': 29.4.3 - '@types/istanbul-lib-coverage': 2.0.4 - '@types/istanbul-reports': 3.0.1 - '@types/node': 20.1.7 - '@types/yargs': 17.0.24 + '@jest/schemas': 29.6.3 + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 3.0.4 + '@types/node': 18.19.39 + '@types/yargs': 17.0.32 chalk: 4.1.2 /@jridgewell/gen-mapping@0.1.1: @@ -11979,15 +14390,15 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.1 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/sourcemap-codec': 1.4.15 /@jridgewell/gen-mapping@0.3.2: resolution: {integrity: sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==} engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.1 - '@jridgewell/sourcemap-codec': 1.4.14 - '@jridgewell/trace-mapping': 0.3.17 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.20 /@jridgewell/gen-mapping@0.3.3: resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} @@ -11995,7 +14406,15 @@ packages: dependencies: '@jridgewell/set-array': 1.1.2 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.20 + + /@jridgewell/gen-mapping@0.3.5: + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.25 /@jridgewell/resolve-uri@3.1.0: resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} @@ -12013,17 +14432,27 @@ packages: resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} engines: {node: '>=6.0.0'} + /@jridgewell/set-array@1.2.1: + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + /@jridgewell/source-map@0.3.2: resolution: {integrity: sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==} dependencies: - '@jridgewell/gen-mapping': 0.3.2 - '@jridgewell/trace-mapping': 0.3.17 + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.20 /@jridgewell/source-map@0.3.3: resolution: {integrity: sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==} dependencies: '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.18 + '@jridgewell/trace-mapping': 0.3.20 + + /@jridgewell/source-map@0.3.5: + resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.20 /@jridgewell/sourcemap-codec@1.4.13: resolution: {integrity: sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w==} @@ -12038,15 +14467,15 @@ packages: /@jridgewell/trace-mapping@0.3.13: resolution: {integrity: sha512-o1xbKhp9qnIAoHJSWd6KlCZfqslL4valSF81H8ImioOAxluWYWOpWkpyktY2vnt4tbrX9XYaxovq6cgowaJp2w==} dependencies: - '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 dev: true /@jridgewell/trace-mapping@0.3.15: resolution: {integrity: sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==} dependencies: - '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 /@jridgewell/trace-mapping@0.3.17: resolution: {integrity: sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==} @@ -12059,6 +14488,26 @@ packages: dependencies: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 + dev: false + + /@jridgewell/trace-mapping@0.3.19: + resolution: {integrity: sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==} + dependencies: + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /@jridgewell/trace-mapping@0.3.20: + resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} + dependencies: + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 + + /@jridgewell/trace-mapping@0.3.25: + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + dependencies: + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 /@jridgewell/trace-mapping@0.3.9: resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} @@ -12077,26 +14526,26 @@ packages: /@leichtgewicht/ip-codec@2.0.4: resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==} - /@lerna/child-process@6.5.1: - resolution: {integrity: sha512-QfyleXSD9slh4qM54wDaqKVPvtUH1NJMgsFc9BabqSHO1Ttpandv1EAvTCN9Lu73RbCX3LJpn+BfJmnjHbjCyw==} - engines: {node: ^14.15.0 || >=16.0.0} + /@lerna/child-process@6.6.2: + resolution: {integrity: sha512-QyKIWEnKQFnYu2ey+SAAm1A5xjzJLJJj3bhIZd3QKyXKKjaJ0hlxam/OsWSltxTNbcyH1jRJjC6Cxv31usv0Ag==} + engines: {node: ^14.17.0 || >=16.0.0} dependencies: chalk: 4.1.2 - execa: 5.0.0 + execa: 5.1.1 strong-log-transformer: 2.1.0 dev: true - /@lerna/create@6.5.1: - resolution: {integrity: sha512-ejERJnfA36jEuKrfM+94feLiyf2/hF2NoG923N0rE4rsmvRFPr1XLVPvAKleXW+Gdi/t1p410lJ7NKaLRMYCYw==} - engines: {node: ^14.15.0 || >=16.0.0} + /@lerna/create@6.6.2: + resolution: {integrity: sha512-xQ+1Y7D+9etvUlE+unhG/TwmM6XBzGIdFBaNoW8D8kyOa9M2Jf3vdEtAxVa7mhRz66CENfhL/+I/QkVaa7pwbQ==} + engines: {node: ^14.17.0 || >=16.0.0} dependencies: - '@lerna/child-process': 6.5.1 + '@lerna/child-process': 6.6.2 dedent: 0.7.0 fs-extra: 9.1.0 init-package-json: 3.0.2 npm-package-arg: 8.1.1 p-reduce: 2.1.0 - pacote: 13.6.2 + pacote: 15.1.1 pify: 5.0.0 semver: 7.3.8 slash: 3.0.0 @@ -12108,6 +14557,80 @@ packages: - supports-color dev: true + /@lerna/legacy-package-management@6.6.2(nx@15.7.2)(typescript@4.9.5): + resolution: {integrity: sha512-0hZxUPKnHwehUO2xC4ldtdX9bW0W1UosxebDIQlZL2STnZnA2IFmIk2lJVUyFW+cmTPQzV93jfS0i69T9Z+teg==} + engines: {node: ^14.17.0 || >=16.0.0} + dependencies: + '@npmcli/arborist': 6.2.3 + '@npmcli/run-script': 4.1.7 + '@nrwl/devkit': 15.7.2(nx@15.7.2)(typescript@4.9.5) + '@octokit/rest': 19.0.3 + byte-size: 7.0.0 + chalk: 4.1.0 + clone-deep: 4.0.1 + cmd-shim: 5.0.0 + columnify: 1.6.0 + config-chain: 1.1.12 + conventional-changelog-core: 4.2.4 + conventional-recommended-bump: 6.1.0 + cosmiconfig: 7.0.0 + dedent: 0.7.0 + dot-prop: 6.0.1 + execa: 5.0.0 + file-url: 3.0.0 + find-up: 5.0.0 + fs-extra: 9.1.0 + get-port: 5.1.1 + get-stream: 6.0.0 + git-url-parse: 13.1.0 + glob-parent: 5.1.2 + globby: 11.1.0 + graceful-fs: 4.2.10 + has-unicode: 2.0.1 + inquirer: 8.2.4 + is-ci: 2.0.0 + is-stream: 2.0.0 + libnpmpublish: 7.1.4 + load-json-file: 6.2.0 + make-dir: 3.1.0 + minimatch: 3.0.5 + multimatch: 5.0.0 + node-fetch: 2.6.7 + npm-package-arg: 8.1.1 + npm-packlist: 5.1.1 + npm-registry-fetch: 14.0.3 + npmlog: 6.0.2 + p-map: 4.0.0 + p-map-series: 2.1.0 + p-queue: 6.6.2 + p-waterfall: 2.1.1 + pacote: 15.1.1 + pify: 5.0.0 + pretty-format: 29.4.3 + read-cmd-shim: 3.0.0 + read-package-json: 5.0.1 + resolve-from: 5.0.0 + semver: 7.3.8 + signal-exit: 3.0.7 + slash: 3.0.0 + ssri: 9.0.1 + strong-log-transformer: 2.1.0 + tar: 6.1.11 + temp-dir: 1.0.0 + tempy: 1.0.0 + upath: 2.0.1 + uuid: 8.3.2 + write-file-atomic: 4.0.1 + write-pkg: 4.0.0 + yargs: 16.2.0 + transitivePeerDependencies: + - bluebird + - encoding + - nx + - supports-color + - typescript + dev: true + /@lezer/common@0.15.12: resolution: {integrity: sha512-edfwCxNLnzq5pBA/yaIhwJ3U3Kz8VAUOTRg0hhxaizaI1N+qxV7EXDv/kLCkLeq2RzSFvxexlaj5Mzfn2kY0Ig==} dev: false @@ -12136,7 +14659,7 @@ packages: '@lezer/common': 0.15.12 dev: false - /@loadable/component@5.15.2(react@17.0.2): + /@loadable/component@5.15.2(react@18.1.0): resolution: {integrity: sha512-ryFAZOX5P2vFkUdzaAtTG88IGnr9qxSdvLRvJySXcUA4B4xVWurUNADu3AnKPksxOZajljqTrDEDcYjeL4lvLw==} engines: {node: '>=8'} peerDependencies: @@ -12145,13 +14668,13 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.2 hoist-non-react-statics: 3.3.2 - react: 17.0.2 + react: 18.1.0 react-is: 16.13.1 dev: true - /@loadable/component@5.15.2(react@18.1.0): + /@loadable/component@5.15.2(react@18.3.1): resolution: {integrity: sha512-ryFAZOX5P2vFkUdzaAtTG88IGnr9qxSdvLRvJySXcUA4B4xVWurUNADu3AnKPksxOZajljqTrDEDcYjeL4lvLw==} engines: {node: '>=8'} peerDependencies: @@ -12160,12 +14683,12 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.2 hoist-non-react-statics: 3.3.2 - react: 18.1.0 + react: 18.3.1 react-is: 16.13.1 - /@makotot/ghostui@2.0.0(react@18.1.0): + /@makotot/ghostui@2.0.0(react@18.3.1): resolution: {integrity: sha512-LD6OeMv+yGjpYZNjh34yDTCIE1NegqOtJq5gm4wX6op3QL7K5psTVzMjkWzseBoYj0XOD4g+UJVIZTprfoOPGg==} engines: {node: '>=10'} peerDependencies: @@ -12174,13 +14697,13 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: true /@manypkg/find-root@1.1.0: resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@types/node': 12.20.55 find-up: 4.1.0 fs-extra: 8.1.0 @@ -12273,28 +14796,29 @@ packages: - supports-color dev: true - /@microsoft/api-extractor-model@7.26.3(@types/node@18.11.18): + /@microsoft/api-extractor-model@7.26.3(@types/node@18.19.39): resolution: {integrity: sha512-1Y/JOkaCF5zE6P56saA0yPzEb7ZJwoF2d8fUYdzZY4I0p1gmqGbNk1h9WguvrN5hANg+2CaqcOX0eh+l4SAhJw==} dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.55.1(@types/node@18.11.18) + '@rushstack/node-core-library': 3.55.1(@types/node@18.19.39) transitivePeerDependencies: - '@types/node' dev: true - /@microsoft/api-extractor@7.34.3(@types/node@18.11.18): + /@microsoft/api-extractor@7.34.3(@types/node@18.19.39): resolution: {integrity: sha512-vXpU+i/MMinVzDxbLo3of1Sx/IS5bwOZl4XrX8YyqNBXFvovEer5ex0wckWumkBErDZtLOMp3zhZfYL3W7h3cg==} + hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.26.3(@types/node@18.11.18) + '@microsoft/api-extractor-model': 7.26.3(@types/node@18.19.39) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.55.1(@types/node@18.11.18) + '@rushstack/node-core-library': 3.55.1(@types/node@18.19.39) '@rushstack/rig-package': 0.3.17 '@rushstack/ts-command-line': 4.13.1 colors: 1.2.5 lodash: 4.17.21 - resolve: 1.22.1 + resolve: 1.22.8 semver: 7.3.8 source-map: 0.6.1 typescript: 4.8.4 @@ -12323,7 +14847,7 @@ packages: state-local: 1.0.7 dev: false - /@monaco-editor/react@4.4.6(react-dom@18.1.0)(react@18.1.0): + /@monaco-editor/react@4.4.6(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Gr3uz3LYf33wlFE3eRnta4RxP5FSNxiIV9ENn2D2/rN8KgGAD8ecvcITRtsbbyuOuNkwbuHYxfeaz2Vr+CtyFA==} peerDependencies: monaco-editor: '>= 0.25.0 < 1' @@ -12337,13 +14861,14 @@ packages: dependencies: '@monaco-editor/loader': 1.3.2 prop-types: 15.8.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3: resolution: {integrity: sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==} requiresBuild: true + dev: false optional: true /@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1: @@ -12369,43 +14894,43 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@npmcli/arborist@5.3.0: - resolution: {integrity: sha512-+rZ9zgL1lnbl8Xbb1NQdMjveOMwj4lIYfcDtyJHHi5x4X8jtR6m8SXooJMZy5vmFVZ8w7A2Bnd/oX9eTuU8w5A==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /@npmcli/arborist@6.2.3: + resolution: {integrity: sha512-lpGOC2ilSJXcc2zfW9QtukcCTcMbl3fVI0z4wvFB2AFIl0C+Q6Wv7ccrpdrQa8rvJ1ZVuc6qkX7HVTyKlzGqKA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + hasBin: true dependencies: '@isaacs/string-locale-compare': 1.1.0 - '@npmcli/installed-package-contents': 1.0.7 - '@npmcli/map-workspaces': 2.0.4 - '@npmcli/metavuln-calculator': 3.1.1 - '@npmcli/move-file': 2.0.1 - '@npmcli/name-from-folder': 1.0.1 - '@npmcli/node-gyp': 2.0.0 - '@npmcli/package-json': 2.0.0 - '@npmcli/run-script': 4.2.1 - bin-links: 3.0.3 - cacache: 16.1.3 + '@npmcli/fs': 3.1.1 + '@npmcli/installed-package-contents': 2.1.0 + '@npmcli/map-workspaces': 3.0.6 + '@npmcli/metavuln-calculator': 5.0.1 + '@npmcli/name-from-folder': 2.0.0 + '@npmcli/node-gyp': 3.0.0 + '@npmcli/package-json': 3.1.1 + '@npmcli/query': 3.1.0 + '@npmcli/run-script': 6.0.2 + bin-links: 4.0.4 + cacache: 17.1.4 common-ancestor-path: 1.0.1 - json-parse-even-better-errors: 2.3.1 + hosted-git-info: 6.1.1 + json-parse-even-better-errors: 3.0.2 json-stringify-nice: 1.1.4 - mkdirp: 1.0.4 - mkdirp-infer-owner: 2.0.0 - nopt: 5.0.0 - npm-install-checks: 5.0.0 - npm-package-arg: 9.1.2 - npm-pick-manifest: 7.0.2 - npm-registry-fetch: 13.3.1 - npmlog: 6.0.2 - pacote: 13.6.2 - parse-conflict-json: 2.0.2 - proc-log: 2.0.1 + minimatch: 6.2.0 + nopt: 7.2.1 + npm-install-checks: 6.3.0 + npm-package-arg: 10.1.0 + npm-pick-manifest: 8.0.2 + npm-registry-fetch: 14.0.5 + npmlog: 7.0.1 + pacote: 15.1.1 + parse-conflict-json: 3.0.1 + proc-log: 3.0.0 promise-all-reject-late: 1.0.1 promise-call-limit: 1.0.1 - read-package-json-fast: 2.0.3 - readdir-scoped-modules: 1.1.0 - rimraf: 3.0.2 + read-package-json-fast: 3.0.2 semver: 7.3.8 - ssri: 9.0.1 - treeverse: 2.0.0 + ssri: 10.0.6 + treeverse: 3.0.0 walk-up-path: 1.0.0 transitivePeerDependencies: - bluebird @@ -12420,48 +14945,55 @@ packages: semver: 7.3.8 dev: true - /@npmcli/git@3.0.2: - resolution: {integrity: sha512-CAcd08y3DWBJqJDpfuVL0uijlq5oaXaOJEKHKc4wqrjd00gkvTZB+nFuLn+doOOKddaQS9JfqtNoFCO2LCvA3w==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /@npmcli/fs@3.1.1: + resolution: {integrity: sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - '@npmcli/promise-spawn': 3.0.0 + semver: 7.3.8 + dev: true + + /@npmcli/git@4.1.0: + resolution: {integrity: sha512-9hwoB3gStVfa0N31ymBmrX+GuDGdVA/QWShZVqE0HK2Af+7QGGrCTbZia/SW0ImUTjTne7SP91qxDmtXvDHRPQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + '@npmcli/promise-spawn': 6.0.2 lru-cache: 7.14.0 - mkdirp: 1.0.4 - npm-pick-manifest: 7.0.2 - proc-log: 2.0.1 + npm-pick-manifest: 8.0.2 + proc-log: 3.0.0 promise-inflight: 1.0.1(bluebird@3.7.2) promise-retry: 2.0.1 semver: 7.3.8 - which: 2.0.2 + which: 3.0.0 transitivePeerDependencies: - bluebird dev: true - /@npmcli/installed-package-contents@1.0.7: - resolution: {integrity: sha512-9rufe0wnJusCQoLpV9ZPKIVP55itrM5BxOXs10DmdbRfgWtHy1LDyskbwRnBghuB0PrF7pNPOqREVtpz4HqzKw==} - engines: {node: '>= 10'} + /@npmcli/installed-package-contents@2.1.0: + resolution: {integrity: sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + hasBin: true dependencies: - npm-bundled: 1.1.2 - npm-normalize-package-bin: 1.0.1 + npm-bundled: 3.0.1 + npm-normalize-package-bin: 3.0.1 dev: true - /@npmcli/map-workspaces@2.0.4: - resolution: {integrity: sha512-bMo0aAfwhVwqoVM5UzX1DJnlvVvzDCHae821jv48L1EsrYwfOZChlqWYXEtto/+BkBXetPbEWgau++/brh4oVg==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /@npmcli/map-workspaces@3.0.6: + resolution: {integrity: sha512-tkYs0OYnzQm6iIRdfy+LcLBjcKuQCeE5YLb8KnrIlutJfheNaPvPpgoFEyEFgbjzl5PLZ3IA/BWAwRU0eHuQDA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - '@npmcli/name-from-folder': 1.0.1 - glob: 8.0.3 - minimatch: 5.1.0 - read-package-json-fast: 2.0.3 + '@npmcli/name-from-folder': 2.0.0 + glob: 10.3.12 + minimatch: 9.0.4 + read-package-json-fast: 3.0.2 dev: true - /@npmcli/metavuln-calculator@3.1.1: - resolution: {integrity: sha512-n69ygIaqAedecLeVH3KnO39M6ZHiJ2dEv5A7DGvcqCB8q17BGUgW8QaanIkbWUo2aYGZqJaOORTLAlIvKjNDKA==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /@npmcli/metavuln-calculator@5.0.1: + resolution: {integrity: sha512-qb8Q9wIIlEPj3WeA1Lba91R4ZboPL0uspzV0F9uwP+9AYMVB2zOoa7Pbk12g6D2NHAinSbHh6QYmGuRyHZ874Q==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - cacache: 16.1.3 - json-parse-even-better-errors: 2.3.1 - pacote: 13.6.2 + cacache: 17.1.4 + json-parse-even-better-errors: 3.0.2 + pacote: 15.1.1 semver: 7.3.8 transitivePeerDependencies: - bluebird @@ -12471,13 +15003,15 @@ packages: /@npmcli/move-file@2.0.1: resolution: {integrity: sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + deprecated: This functionality has been moved to @npmcli/fs dependencies: mkdirp: 1.0.4 rimraf: 3.0.2 dev: true - /@npmcli/name-from-folder@1.0.1: - resolution: {integrity: sha512-qq3oEfcLFwNfEYOQ8HLimRGKlD8WSeGEdtUa7hmzpR8Sa7haL1KVQrvgO6wqMjhWFFVjgtrh1gIxDz+P8sjUaA==} + /@npmcli/name-from-folder@2.0.0: + resolution: {integrity: sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dev: true /@npmcli/node-gyp@2.0.0: @@ -12485,11 +15019,23 @@ packages: engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dev: true - /@npmcli/package-json@2.0.0: - resolution: {integrity: sha512-42jnZ6yl16GzjWSH7vtrmWyJDGVa/LXPdpN2rcUWolFjc9ON2N3uz0qdBbQACfmhuJZ2lbKYtmK5qx68ZPLHMA==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /@npmcli/node-gyp@3.0.0: + resolution: {integrity: sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + + /@npmcli/package-json@3.1.1: + resolution: {integrity: sha512-+UW0UWOYFKCkvszLoTwrYGrjNrT8tI5Ckeb/h+Z1y1fsNJEctl7HmerA5j2FgmoqFaLI2gsA1X9KgMFqx/bRmA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - json-parse-even-better-errors: 2.3.1 + '@npmcli/git': 4.1.0 + glob: 10.3.12 + json-parse-even-better-errors: 3.0.2 + normalize-package-data: 5.0.0 + npm-normalize-package-bin: 3.0.1 + proc-log: 3.0.0 + transitivePeerDependencies: + - bluebird dev: true /@npmcli/promise-spawn@3.0.0: @@ -12499,6 +15045,20 @@ packages: infer-owner: 1.0.4 dev: true + /@npmcli/promise-spawn@6.0.2: + resolution: {integrity: sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + which: 3.0.0 + dev: true + + /@npmcli/query@3.1.0: + resolution: {integrity: sha512-C/iR0tk7KSKGldibYIB9x8GtO/0Bd0I2mhOaDb8ucQL/bQVTmGoeREaFj64Z5+iCBRf3dQfed0CjJL7I8iTkiQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + postcss-selector-parser: 6.0.13 + dev: true + /@npmcli/run-script@4.1.7: resolution: {integrity: sha512-WXr/MyM4tpKA4BotB81NccGAv8B48lNH0gRoILucbcAhTQXLCoi6HflMV3KdXubIqvP9SuLsFn68Z7r4jl+ppw==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} @@ -12513,15 +15073,15 @@ packages: - supports-color dev: true - /@npmcli/run-script@4.2.1: - resolution: {integrity: sha512-7dqywvVudPSrRCW5nTHpHgeWnbBtz8cFkOuKrecm6ih+oO9ciydhWt6OF7HlqupRRmB8Q/gECVdB9LMfToJbRg==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /@npmcli/run-script@6.0.2: + resolution: {integrity: sha512-NCcr1uQo1k5U+SYlnIrbAh3cxy+OQT1VtqiAbxdymSlptbzBb62AjH2xXgjNCoP073hoa1CfCAcwoZ8k96C4nA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - '@npmcli/node-gyp': 2.0.0 - '@npmcli/promise-spawn': 3.0.0 + '@npmcli/node-gyp': 3.0.0 + '@npmcli/promise-spawn': 6.0.2 node-gyp: 9.3.1 - read-package-json-fast: 2.0.3 - which: 2.0.2 + read-package-json-fast: 3.0.2 + which: 3.0.0 transitivePeerDependencies: - bluebird - supports-color @@ -12537,17 +15097,17 @@ packages: - debug dev: true - /@nrwl/devkit@15.7.2(nx@15.7.2)(typescript@4.9.4): + /@nrwl/devkit@15.7.2(nx@15.7.2)(typescript@4.9.5): resolution: {integrity: sha512-HMGi7L6w2g4IrYwhb04snD8Zr24Z/gzau5i9WUNkwzrjeR1xAm0Cc9WRre221zaeohtK11gyBt7BerT1tgkNwA==} peerDependencies: nx: '>= 14.1 <= 16' dependencies: - '@phenomnomnominal/tsquery': 4.1.1(typescript@4.9.4) + '@phenomnomnominal/tsquery': 4.1.1(typescript@4.9.5) ejs: 3.1.8 - ignore: 5.2.0 + ignore: 5.2.4 nx: 15.7.2 semver: 7.3.4 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - typescript dev: true @@ -12635,6 +15195,7 @@ packages: /@nrwl/tao@15.7.2: resolution: {integrity: sha512-srx9heMIt/QIyuqfewiVYbRpFcD/2pHkTkrEEUKspPd25kzAL2adcAITQKVCHI7/VS2sPdDR67pVsGQPZFBMRQ==} + hasBin: true dependencies: nx: 15.7.2 transitivePeerDependencies: @@ -12643,33 +15204,32 @@ packages: - debug dev: true - /@octokit/app@13.1.1: - resolution: {integrity: sha512-83TPUMWPAWaACe8AJVBlg6gptbDJk/33C/0V9e0yWfBqXINqF2ZutctQIcrRcyWBPlfYmFElPbElMqlspe8UWg==} + /@octokit/app@13.1.8: + resolution: {integrity: sha512-bCncePMguVyFpdBbnceFKfmPOuUD94T189GuQ0l00ZcQ+mX4hyPqnaWJlsXE2HSdA71eV7p8GPDZ+ErplTkzow==} engines: {node: '>= 14'} dependencies: - '@octokit/auth-app': 4.0.8 + '@octokit/auth-app': 4.0.13 '@octokit/auth-unauthenticated': 3.0.3 - '@octokit/core': 4.1.0 - '@octokit/oauth-app': 4.2.0 - '@octokit/plugin-paginate-rest': 5.0.1(@octokit/core@4.1.0) - '@octokit/types': 8.0.0 + '@octokit/core': 4.2.4 + '@octokit/oauth-app': 4.2.4 + '@octokit/plugin-paginate-rest': 6.1.2(@octokit/core@4.2.4) + '@octokit/types': 9.3.2 '@octokit/webhooks': 10.5.0 transitivePeerDependencies: - encoding dev: true - /@octokit/auth-app@4.0.8: - resolution: {integrity: sha512-miI7y9FfS/fL1bSPsDaAfCGSxQ04iGLyisI2GA8N7P6eB6AkCOt+F1XXapJKRnAubQubvYF0dqxoTZYyKk93NQ==} + /@octokit/auth-app@4.0.13: + resolution: {integrity: sha512-NBQkmR/Zsc+8fWcVIFrwDgNXS7f4XDrkd9LHdi9DPQw1NdGHLviLzRO2ZBwTtepnwHXW5VTrVU9eFGijMUqllg==} engines: {node: '>= 14'} dependencies: '@octokit/auth-oauth-app': 5.0.4 '@octokit/auth-oauth-user': 2.0.4 '@octokit/request': 6.2.2 - '@octokit/request-error': 3.0.2 - '@octokit/types': 8.0.0 - '@types/lru-cache': 5.1.1 + '@octokit/request-error': 3.0.3 + '@octokit/types': 9.3.2 deprecation: 2.3.1 - lru-cache: 6.0.0 + lru-cache: 9.1.2 universal-github-app-jwt: 1.1.1 universal-user-agent: 6.0.0 transitivePeerDependencies: @@ -12734,7 +15294,7 @@ packages: resolution: {integrity: sha512-IyfLo1T5GmIC9+07hHGlD3gHtZI1Bona8PLhHXUnwcYDuZt0BhjlNJDYMoPG21C4r7v7+ZSxQHBKrGgkxpYb7A==} engines: {node: '>= 14'} dependencies: - '@octokit/request-error': 3.0.2 + '@octokit/request-error': 3.0.3 '@octokit/types': 8.0.0 dev: true @@ -12752,15 +15312,15 @@ packages: - encoding dev: false - /@octokit/core@4.1.0: - resolution: {integrity: sha512-Czz/59VefU+kKDy+ZfDwtOIYIkFjExOKf+HA92aiTZJ6EfWpFzYQWw0l54ji8bVmyhc+mGaLUbSUmXazG7z5OQ==} + /@octokit/core@4.2.4: + resolution: {integrity: sha512-rYKilwgzQ7/imScn3M9/pFfUf4I1AZEH3KhyJmtPdE2zfaXAn2mFfUy4FbKewzc2We5y/LlKLj36fWJLKC2SIQ==} engines: {node: '>= 14'} dependencies: '@octokit/auth-token': 3.0.2 '@octokit/graphql': 5.0.4 '@octokit/request': 6.2.2 - '@octokit/request-error': 3.0.2 - '@octokit/types': 8.0.0 + '@octokit/request-error': 3.0.3 + '@octokit/types': 9.3.2 before-after-hook: 2.2.2 universal-user-agent: 6.0.0 transitivePeerDependencies: @@ -12805,14 +15365,14 @@ packages: - encoding dev: true - /@octokit/oauth-app@4.2.0: - resolution: {integrity: sha512-gyGclT77RQMkVUEW3YBeAKY+LBSc5u3eC9Wn/Uwt3WhuKuu9mrV18EnNpDqmeNll+mdV02yyBROU29Tlili6gg==} + /@octokit/oauth-app@4.2.4: + resolution: {integrity: sha512-iuOVFrmm5ZKNavRtYu5bZTtmlKLc5uVgpqTfMEqYYf2OkieV6VdxKZAb5qLVdEPL8LU2lMWcGpavPBV835cgoA==} engines: {node: '>= 14'} dependencies: '@octokit/auth-oauth-app': 5.0.4 '@octokit/auth-oauth-user': 2.0.4 '@octokit/auth-unauthenticated': 3.0.3 - '@octokit/core': 4.1.0 + '@octokit/core': 4.2.4 '@octokit/oauth-authorization-url': 5.0.0 '@octokit/oauth-methods': 2.0.4 '@types/aws-lambda': 8.10.109 @@ -12833,7 +15393,7 @@ packages: dependencies: '@octokit/oauth-authorization-url': 5.0.0 '@octokit/request': 6.2.2 - '@octokit/request-error': 3.0.2 + '@octokit/request-error': 3.0.3 '@octokit/types': 8.0.0 btoa-lite: 1.0.0 transitivePeerDependencies: @@ -12847,6 +15407,10 @@ packages: resolution: {integrity: sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw==} dev: true + /@octokit/openapi-types@18.1.1: + resolution: {integrity: sha512-VRaeH8nCDtF5aXWnjPuEMIYf1itK/s3JYyJcWFJT8X9pSNnBtriDf7wlEWsGuhPLl4QIH4xM8fqTXDwJ3Mu6sw==} + dev: true + /@octokit/plugin-enterprise-rest@6.0.1: resolution: {integrity: sha512-93uGjlhUD+iNg1iWhUENAtJata6w5nE+V4urXOAlIXdco6xNZtUSfYY8dzp3Udy74aqO/B5UZL80x/YMa5PKRw==} dev: true @@ -12860,24 +15424,25 @@ packages: '@octokit/types': 6.41.0 dev: false - /@octokit/plugin-paginate-rest@3.1.0(@octokit/core@4.1.0): + /@octokit/plugin-paginate-rest@3.1.0(@octokit/core@4.2.4): resolution: {integrity: sha512-+cfc40pMzWcLkoDcLb1KXqjX0jTGYXjKuQdFQDc6UAknISJHnZTiBqld6HDwRJvD4DsouDKrWXNbNV0lE/3AXA==} engines: {node: '>= 14'} peerDependencies: '@octokit/core': '>=4' dependencies: - '@octokit/core': 4.1.0 + '@octokit/core': 4.2.4 '@octokit/types': 6.41.0 dev: true - /@octokit/plugin-paginate-rest@5.0.1(@octokit/core@4.1.0): - resolution: {integrity: sha512-7A+rEkS70pH36Z6JivSlR7Zqepz3KVucEFVDnSrgHXzG7WLAzYwcHZbKdfTXHwuTHbkT1vKvz7dHl1+HNf6Qyw==} + /@octokit/plugin-paginate-rest@6.1.2(@octokit/core@4.2.4): + resolution: {integrity: sha512-qhrmtQeHU/IivxucOV1bbI/xZyC/iOBhclokv7Sut5vnejAIAEXVcGQeRpQlU39E0WwK9lNvJHphHri/DB6lbQ==} engines: {node: '>= 14'} peerDependencies: '@octokit/core': '>=4' dependencies: - '@octokit/core': 4.1.0 - '@octokit/types': 8.0.0 + '@octokit/core': 4.2.4 + '@octokit/tsconfig': 1.0.2 + '@octokit/types': 9.3.2 dev: true /@octokit/plugin-request-log@1.0.4(@octokit/core@3.6.0): @@ -12888,12 +15453,12 @@ packages: '@octokit/core': 3.6.0 dev: false - /@octokit/plugin-request-log@1.0.4(@octokit/core@4.1.0): + /@octokit/plugin-request-log@1.0.4(@octokit/core@4.2.4): resolution: {integrity: sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==} peerDependencies: '@octokit/core': '>=3' dependencies: - '@octokit/core': 4.1.0 + '@octokit/core': 4.2.4 dev: true /@octokit/plugin-rest-endpoint-methods@5.16.2(@octokit/core@3.6.0): @@ -12906,36 +15471,46 @@ packages: deprecation: 2.3.1 dev: false - /@octokit/plugin-rest-endpoint-methods@6.7.0(@octokit/core@4.1.0): + /@octokit/plugin-rest-endpoint-methods@6.7.0(@octokit/core@4.2.4): resolution: {integrity: sha512-orxQ0fAHA7IpYhG2flD2AygztPlGYNAdlzYz8yrD8NDgelPfOYoRPROfEyIe035PlxvbYrgkfUZIhSBKju/Cvw==} engines: {node: '>= 14'} peerDependencies: '@octokit/core': '>=3' dependencies: - '@octokit/core': 4.1.0 + '@octokit/core': 4.2.4 '@octokit/types': 8.0.0 deprecation: 2.3.1 dev: true - /@octokit/plugin-retry@4.0.3(@octokit/core@4.1.0): - resolution: {integrity: sha512-tDR+4Cs9GPPNJ7/RjTEq5ty2wqjKe1hRUV7/hch+nORow5LshlHXTT1qfYNsFPw3S9szvFFAfDEFq/xwrEpL7g==} + /@octokit/plugin-rest-endpoint-methods@7.2.3(@octokit/core@4.2.4): + resolution: {integrity: sha512-I5Gml6kTAkzVlN7KCtjOM+Ruwe/rQppp0QU372K1GP7kNOYEKe8Xn5BW4sE62JAHdwpq95OQK/qGNyKQMUzVgA==} engines: {node: '>= 14'} peerDependencies: '@octokit/core': '>=3' dependencies: - '@octokit/core': 4.1.0 - '@octokit/types': 8.0.0 + '@octokit/core': 4.2.4 + '@octokit/types': 10.0.0 + dev: true + + /@octokit/plugin-retry@4.1.6(@octokit/core@4.2.4): + resolution: {integrity: sha512-obkYzIgEC75r8+9Pnfiiqy3y/x1bc3QLE5B7qvv9wi9Kj0R5tGQFC6QMBg1154WQ9lAVypuQDGyp3hNpp15gQQ==} + engines: {node: '>= 14'} + peerDependencies: + '@octokit/core': '>=3' + dependencies: + '@octokit/core': 4.2.4 + '@octokit/types': 9.3.2 bottleneck: 2.19.5 dev: true - /@octokit/plugin-throttling@4.3.2(@octokit/core@4.1.0): - resolution: {integrity: sha512-ZaCK599h3tzcoy0Jtdab95jgmD7X9iAk59E2E7hYKCAmnURaI4WpzwL9vckImilybUGrjY1JOWJapDs2N2D3vw==} + /@octokit/plugin-throttling@5.2.3(@octokit/core@4.2.4): + resolution: {integrity: sha512-C9CFg9mrf6cugneKiaI841iG8DOv6P5XXkjmiNNut+swePxQ7RWEdAZRp5rJoE1hjsIqiYcKa/ZkOQ+ujPI39Q==} engines: {node: '>= 14'} peerDependencies: '@octokit/core': ^4.0.0 dependencies: - '@octokit/core': 4.1.0 - '@octokit/types': 8.0.0 + '@octokit/core': 4.2.4 + '@octokit/types': 9.3.2 bottleneck: 2.19.5 dev: true @@ -12947,11 +15522,11 @@ packages: once: 1.4.0 dev: false - /@octokit/request-error@3.0.2: - resolution: {integrity: sha512-WMNOFYrSaX8zXWoJg9u/pKgWPo94JXilMLb2VManNOby9EZxrQaBe/QSC4a1TzpAlpxofg2X/jMnCyZgL6y7eg==} + /@octokit/request-error@3.0.3: + resolution: {integrity: sha512-crqw3V5Iy2uOU5Np+8M/YexTlT8zxCfI+qu+LxUB7SZpje4Qmx3mub5DfEKSO8Ylyk0aogi6TYdf6kxzh2BguQ==} engines: {node: '>= 14'} dependencies: - '@octokit/types': 8.0.0 + '@octokit/types': 9.3.2 deprecation: 2.3.1 once: 1.4.0 dev: true @@ -12963,7 +15538,7 @@ packages: '@octokit/request-error': 2.1.0 '@octokit/types': 6.41.0 is-plain-object: 5.0.0 - node-fetch: 2.6.7 + node-fetch: 2.7.0 universal-user-agent: 6.0.0 transitivePeerDependencies: - encoding @@ -12974,10 +15549,10 @@ packages: engines: {node: '>= 14'} dependencies: '@octokit/endpoint': 7.0.3 - '@octokit/request-error': 3.0.2 + '@octokit/request-error': 3.0.3 '@octokit/types': 8.0.0 is-plain-object: 5.0.0 - node-fetch: 2.6.7 + node-fetch: 2.7.0 universal-user-agent: 6.0.0 transitivePeerDependencies: - encoding @@ -12998,14 +15573,24 @@ packages: resolution: {integrity: sha512-5arkTsnnRT7/sbI4fqgSJ35KiFaN7zQm0uQiQtivNQLI8RQx8EHwJCajcTUwmaCMNDg7tdCvqAnc7uvHHPxrtQ==} engines: {node: '>= 14'} dependencies: - '@octokit/core': 4.1.0 - '@octokit/plugin-paginate-rest': 3.1.0(@octokit/core@4.1.0) - '@octokit/plugin-request-log': 1.0.4(@octokit/core@4.1.0) - '@octokit/plugin-rest-endpoint-methods': 6.7.0(@octokit/core@4.1.0) + '@octokit/core': 4.2.4 + '@octokit/plugin-paginate-rest': 3.1.0(@octokit/core@4.2.4) + '@octokit/plugin-request-log': 1.0.4(@octokit/core@4.2.4) + '@octokit/plugin-rest-endpoint-methods': 6.7.0(@octokit/core@4.2.4) transitivePeerDependencies: - encoding dev: true + /@octokit/tsconfig@1.0.2: + resolution: {integrity: sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==} + dev: true + + /@octokit/types@10.0.0: + resolution: {integrity: sha512-Vm8IddVmhCgU1fxC1eyinpwqzXPEYu0NrYzD3YZjlGjyftdLBTeqNblRC0jmJmgxbJIsQlyogVeGnrNaaMVzIg==} + dependencies: + '@octokit/openapi-types': 18.1.1 + dev: true + /@octokit/types@6.41.0: resolution: {integrity: sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==} dependencies: @@ -13017,6 +15602,12 @@ packages: '@octokit/openapi-types': 14.0.0 dev: true + /@octokit/types@9.3.2: + resolution: {integrity: sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==} + dependencies: + '@octokit/openapi-types': 18.1.1 + dev: true + /@octokit/webhooks-methods@3.0.2: resolution: {integrity: sha512-Vlnv5WBscf07tyAvfDbp7pTkMZUwk7z7VwEF32x6HqI+55QRwBTcT+D7DDjZXtad/1dU9E32x0HmtDlF9VIRaQ==} engines: {node: '>= 14'} @@ -13030,118 +15621,38 @@ packages: resolution: {integrity: sha512-IQkogbujbLKXrpfsuH7PV33tMiivMeUhggOfimetwdaX4M7WB+mRdxwFsc8dJCOt9wCSrXfZtpd8eK3VOf4GCQ==} engines: {node: '>= 14'} dependencies: - '@octokit/request-error': 3.0.2 + '@octokit/request-error': 3.0.3 '@octokit/webhooks-methods': 3.0.2 '@octokit/webhooks-types': 6.7.0 aggregate-error: 3.1.0 dev: true - /@parcel/css-darwin-arm64@1.9.0: - resolution: {integrity: sha512-f/guZseS2tNKtKw94LgpNTItZqdVA0mnznqPsmQaR5lSB+cM3IPrSV8cgOOpAS7Vwo9ggxuJartToxBBN+dWSw==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@parcel/css-darwin-x64@1.9.0: - resolution: {integrity: sha512-4SpuwiM/4ayOgKflqSLd87XT7YwyC3wd2QuzOOkasjbe38UU+tot/87l2lQYEB538YinLdfwFQuFLDY0x9MxgA==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@parcel/css-linux-arm-gnueabihf@1.9.0: - resolution: {integrity: sha512-KxCyX5fFvX5636Y8LSXwCxXMtIncgP7Lkw8nLsqd24C5YqMokmuOtAcHb/vQ9zQG6YiUWTv0MybqDuL7dBDfVw==} - engines: {node: '>= 12.0.0'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/css-linux-arm64-gnu@1.9.0: - resolution: {integrity: sha512-wZ6Gsn6l+lSuvRdfWoyr7TdY24l29eGCD8QhXcqA1ALnFI7+KOTMBJ6aV3tjWUjMw3sg5qkosMHVqlWZzvrgXw==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/css-linux-arm64-musl@1.9.0: - resolution: {integrity: sha512-N6n5HhMzcNR5oXWr0Md91gKYtuDhqDlp+aGDb3VT21uSCNLOvijOUz248v/VaPoRno1BPFYlMxn0fYYTTReB3A==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/css-linux-x64-gnu@1.9.0: - resolution: {integrity: sha512-QufawDkaiOjsh6jcZk/dgDBPMqBtIs+LGTOgcJDM6XL4mcbDNxO6VkDANssRUgPnbG66YYy419CUWFta9aeVOg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/css-linux-x64-musl@1.9.0: - resolution: {integrity: sha512-s528buicSd83/5M5DN31JqwefZ8tqx4Jm97srkLDVBCZg+XEe9P0bO7q1Ngz5ZVFqfwvv8OYLPOtAtBmEppG3g==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/css-win32-x64-msvc@1.9.0: - resolution: {integrity: sha512-L4s84iK4PXnO/SzZyTsazAuzadtEYLGHgi1dyKYxMMGCjToCDjuwsn5K8bykeewZxjoL7RaunQGqCBRt5dfB5Q==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@parcel/css@1.9.0: - resolution: {integrity: sha512-egCetUQ1H6pgYxOIxVQ8X/YT5e8G0R8eq6aVaUHrqnZ7A8cc6FYgknl9XRmoy2Xxo9h1htrbzdaEShQ5gROwvw==} - engines: {node: '>= 12.0.0'} - dependencies: - detect-libc: 1.0.3 - optionalDependencies: - '@parcel/css-darwin-arm64': 1.9.0 - '@parcel/css-darwin-x64': 1.9.0 - '@parcel/css-linux-arm-gnueabihf': 1.9.0 - '@parcel/css-linux-arm64-gnu': 1.9.0 - '@parcel/css-linux-arm64-musl': 1.9.0 - '@parcel/css-linux-x64-gnu': 1.9.0 - '@parcel/css-linux-x64-musl': 1.9.0 - '@parcel/css-win32-x64-msvc': 1.9.0 - dev: true - - /@parcel/watcher@2.0.4: - resolution: {integrity: sha512-cTDi+FUDBIUOBKEtj+nhiJ71AZVlkAsQFuGQTun5tV9mwQBQgZvhCzG+URPQc8myeN32yRVZEfVAPCs1RW+Jvg==} + /@parcel/watcher@2.1.0: + resolution: {integrity: sha512-8s8yYjd19pDSsBpbkOHnT6Z2+UJSuLQx61pCFM0s5wSRvKCEMDjd/cHY3/GI1szHIWbpXpsJdg3V6ISGGx9xDw==} engines: {node: '>= 10.0.0'} requiresBuild: true dependencies: + is-glob: 4.0.3 + micromatch: 4.0.5 node-addon-api: 3.2.1 node-gyp-build: 4.6.0 dev: true - /@phenomnomnominal/tsquery@4.1.1(typescript@4.9.4): + /@phenomnomnominal/tsquery@4.1.1(typescript@4.9.5): resolution: {integrity: sha512-jjMmK1tnZbm1Jq5a7fBliM4gQwjxMU7TFoRNwIyzwlO+eHPRCFv/Nv+H/Gi1jc3WR7QURG8D5d0Tn12YGrUqBQ==} peerDependencies: typescript: ^3 || ^4 dependencies: esquery: 1.4.2 - typescript: 4.9.4 + typescript: 4.9.5 dev: true + /@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + requiresBuild: true + optional: true + /@pkgr/utils@2.4.0: resolution: {integrity: sha512-2OCURAmRtdlL8iUDTypMrrxfwe8frXTeXaxGsVOaYtc/wrUyk8Z/0OBetM7cdlsy7ZFWlMX72VogKeh+A4Xcjw==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} @@ -13151,7 +15662,7 @@ packages: is-glob: 4.0.3 open: 9.1.0 picocolors: 1.0.0 - tslib: 2.5.0 + tslib: 2.6.2 /@playwright/test@1.27.1: resolution: {integrity: sha512-mrL2q0an/7tVqniQQF6RBL2saskjljXzqNcCOVMUjRIgE6Y38nCNaP+Dc2FBW06bcpD3tqIws/HT9qiMHbNU0A==} @@ -13161,85 +15672,6 @@ packages: playwright-core: 1.27.1 dev: true - /@pmmmwh/react-refresh-webpack-plugin@0.5.10(react-refresh@0.14.0)(webpack@5.76.1): - resolution: {integrity: sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==} - engines: {node: '>= 10.13'} - peerDependencies: - '@types/webpack': 4.x || 5.x - react-refresh: '>=0.10.0 <1.0.0' - sockjs-client: ^1.4.0 - type-fest: '>=0.17.0 <4.0.0' - webpack: '>=4.43.0 <6.0.0' - webpack-dev-server: 3.x || 4.x - webpack-hot-middleware: 2.x - webpack-plugin-serve: 0.x || 1.x - peerDependenciesMeta: - '@types/webpack': - optional: true - sockjs-client: - optional: true - type-fest: - optional: true - webpack: - optional: true - webpack-dev-server: - optional: true - webpack-hot-middleware: - optional: true - webpack-plugin-serve: - optional: true - dependencies: - ansi-html-community: 0.0.8 - common-path-prefix: 3.0.0 - core-js-pure: 3.29.0 - error-stack-parser: 2.1.4 - find-up: 5.0.0 - html-entities: 2.3.3 - loader-utils: 2.0.4 - react-refresh: 0.14.0 - schema-utils: 3.1.1 - source-map: 0.7.4 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) - - /@pmmmwh/react-refresh-webpack-plugin@0.5.7: - resolution: {integrity: sha512-bcKCAzF0DV2IIROp9ZHkRJa6O4jy7NlnHdWL3GmcUxYWNjLXkK5kfELELwEfSP5hXPfVL/qOGMAROuMQb9GG8Q==} - engines: {node: '>= 10.13'} - peerDependencies: - '@types/webpack': 4.x || 5.x - react-refresh: '>=0.10.0 <1.0.0' - sockjs-client: ^1.4.0 - type-fest: '>=0.17.0 <3.0.0' - webpack: '>=4.43.0 <6.0.0' - webpack-dev-server: 3.x || 4.x - webpack-hot-middleware: 2.x - webpack-plugin-serve: 0.x || 1.x - peerDependenciesMeta: - '@types/webpack': - optional: true - sockjs-client: - optional: true - type-fest: - optional: true - webpack: - optional: true - webpack-dev-server: - optional: true - webpack-hot-middleware: - optional: true - webpack-plugin-serve: - optional: true - dependencies: - ansi-html-community: 0.0.8 - common-path-prefix: 3.0.0 - core-js-pure: 3.29.0 - error-stack-parser: 2.1.4 - find-up: 5.0.0 - html-entities: 2.3.3 - loader-utils: 2.0.4 - schema-utils: 3.1.1 - source-map: 0.7.4 - dev: true - /@pnpm/constants@7.1.1: resolution: {integrity: sha512-31pZqMtjwV+Vaq7MaPrT1EoDFSYwye3dp6BiHIGRJmVThCQwySRKM7hCvqqI94epNkqFAAYoWrNynWoRYosGdw==} engines: {node: '>=16.14'} @@ -13252,18 +15684,18 @@ packages: rfc4648: 1.5.2 dev: true - /@pnpm/dependency-path@2.1.2: - resolution: {integrity: sha512-BXEMdGHZG2y8z7hZAVn+r0z+IdszFZbVPpAp3xyDH3gDN30A4HCVhhCUUf0mthqQZsT131jK4HW82EUwEiW01A==} + /@pnpm/dependency-path@2.1.8: + resolution: {integrity: sha512-ywBaTjy0iSEF7lH3DlF8UXrdL2bw4AQFV2tTOeNeY7wc1W5CE+RHSJhf9MXBYcZPesqGRrPiU7Pimj3l05L9VA==} engines: {node: '>=16.14'} dependencies: '@pnpm/crypto.base32-hash': 2.0.0 - '@pnpm/types': 9.1.0 - encode-registry: 3.0.0 - semver: 7.5.3 + '@pnpm/types': 9.4.2 + encode-registry: 3.0.1 + semver: 7.6.2 dev: true - /@pnpm/error@5.0.2: - resolution: {integrity: sha512-0TEm+tWNYm+9uh6DSKyRbv8pv/6b4NL0PastLvMxIoqZbBZ5Zj1cYi332R9xsSUi31ZOsu2wpgn/bC7DA9hrjg==} + /@pnpm/error@5.0.3: + resolution: {integrity: sha512-ONJU5cUeoeJSy50qOYsMZQHTA/9QKmGgh1ATfEpCLgtbdwqUiwD9MxHNeXUYYI/pocBCz6r1ZCFqiQvO+8SUKA==} engines: {node: '>=16.14'} dependencies: '@pnpm/constants': 7.1.1 @@ -13276,37 +15708,37 @@ packages: execa: /safe-execa@0.1.2 dev: true - /@pnpm/lockfile-file@8.1.1(@pnpm/logger@5.0.0): - resolution: {integrity: sha512-voot73D3aQ9Mcegco+m+yvr3WqM3IHhUMQWCO2ggm6JNfwnQ6rSXzCytomM4W29Nh/Y1A6HemxtS/K7nImu/TA==} + /@pnpm/lockfile-file@8.1.8(@pnpm/logger@5.0.0): + resolution: {integrity: sha512-bRadYzGFyFtwiynwp4Mkn7NDNHkgKvJ9xtjsCT5XiE6S8wpzS3W8yx2WzHGk9Mm1J/2wM0F52+NzCWhlz5eIqA==} engines: {node: '>=16.14'} peerDependencies: '@pnpm/logger': ^5.0.0 dependencies: '@pnpm/constants': 7.1.1 - '@pnpm/dependency-path': 2.1.2 - '@pnpm/error': 5.0.2 + '@pnpm/dependency-path': 2.1.8 + '@pnpm/error': 5.0.3 '@pnpm/git-utils': 1.0.0 - '@pnpm/lockfile-types': 5.1.0 + '@pnpm/lockfile-types': 5.1.5 '@pnpm/logger': 5.0.0 - '@pnpm/merge-lockfile-changes': 5.0.2 - '@pnpm/types': 9.1.0 + '@pnpm/merge-lockfile-changes': 5.0.7 + '@pnpm/types': 9.4.2 '@pnpm/util.lex-comparator': 1.0.0 - '@zkochan/rimraf': 2.1.2 + '@zkochan/rimraf': 2.1.3 comver-to-semver: 1.0.0 js-yaml: /@zkochan/js-yaml@0.0.6 normalize-path: 3.0.0 ramda: /@pnpm/ramda@0.28.1 - semver: 7.5.3 + semver: 7.6.2 sort-keys: 4.2.0 strip-bom: 4.0.0 write-file-atomic: 5.0.1 dev: true - /@pnpm/lockfile-types@5.1.0: - resolution: {integrity: sha512-14eYp9iOdJ7SyOIVXomXhbVnc14DEhzMLS3eKqxYxi9LkANUfxx1/pwRiRY/lTiP9RFS+OkIcTm2QiLsmNEctw==} + /@pnpm/lockfile-types@5.1.5: + resolution: {integrity: sha512-02FP0HynzX+2DcuPtuMy7PH+kLIC0pevAydAOK+zug2bwdlSLErlvSkc+4+3dw60eRWgUXUqyfO2eR/Ansdbng==} engines: {node: '>=16.14'} dependencies: - '@pnpm/types': 9.1.0 + '@pnpm/types': 9.4.2 dev: true /@pnpm/logger@5.0.0: @@ -13317,22 +15749,22 @@ packages: ndjson: 2.0.0 dev: true - /@pnpm/merge-lockfile-changes@5.0.2: - resolution: {integrity: sha512-cswnzLUxumc1MzZp7ZxEiyV9LvEne4h2AtvSwtjdx8BU/+vbj/kjvBueqPw1t+QJl/lual9Kmem0hQaL8v57wQ==} + /@pnpm/merge-lockfile-changes@5.0.7: + resolution: {integrity: sha512-fYmX1+EHv3wg7l4A9FCEkjgEBIHaY6JosknkLk3pL8dbB9k6unjIrF9f2onNtpj3XUlWxZ3aBw9THk/Bf6hKow==} engines: {node: '>=16.14'} dependencies: - '@pnpm/lockfile-types': 5.1.0 + '@pnpm/lockfile-types': 5.1.5 comver-to-semver: 1.0.0 ramda: /@pnpm/ramda@0.28.1 - semver: 7.5.3 + semver: 7.6.2 dev: true /@pnpm/ramda@0.28.1: resolution: {integrity: sha512-zcAG+lvU0fMziNeGXpPyCyCJYp5ZVrPElEE4t14jAmViaihohocZ+dDkcRIyAomox8pQsuZnv1EyHR+pOhmUWw==} dev: true - /@pnpm/types@9.1.0: - resolution: {integrity: sha512-MMPDMLOY17bfNhLhR9Qmq6/2keoocnR5DWXZfZDC4dKXugrMsE1jB6RnuU8swJIo4zyCsMT/iVSAtl/XK+9Z+A==} + /@pnpm/types@9.4.2: + resolution: {integrity: sha512-g1hcF8Nv4gd76POilz9gD4LITAPXOe5nX4ijgr8ixCbLQZfcpYiMfJ+C1RlMNRUDo8vhlNB4O3bUlxmT6EAQXA==} engines: {node: '>=16.14'} dev: true @@ -13351,18 +15783,18 @@ packages: /@probe.gl/env@3.5.2: resolution: {integrity: sha512-JlNvJ2p6+ObWX7es6n3TycGPTv5CfVrCS8vblI1eHhrFCcZ6RxIo727ffRVwldpp0YTzdgjx3/4fB/1dnVYElw==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 /@probe.gl/log@3.5.2: resolution: {integrity: sha512-5yo8Dg8LrSltuPBdGlLh/WOvt4LdU7DDHu75GMeiS0fKM+J4IACRpGV8SOrktCj1MWZ6JVHcNQkJnoyZ6G7p/w==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@probe.gl/env': 3.5.2 /@probe.gl/stats@3.5.2: resolution: {integrity: sha512-YKaYXiHF//fgy1OkX38JD70Lc8qxg2Viw8Q2CTNMwGPDJe12wda7kEmMKPJNw2oYLyFUfTzv00KJMA5h18z02w==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 /@qixian.cs/path-to-regexp@6.1.0: resolution: {integrity: sha512-2jIiLiVZB1jnY7IIRQKtoV8Gnr7XIhk4mC88ONGunZE3hYt5IHUG4BE/6+JiTBjjEWQLBeWnZB8hGpppkufiVw==} @@ -13370,11 +15802,11 @@ packages: /@radix-ui/popper@0.0.10: resolution: {integrity: sha512-YFKuPqQPKscreQid7NuB4it3PMzSwGg03vgrud6sVliHkI43QNAOHyrHyMNo015jg6QK5GVDn+7J2W5uygqSGA==} dependencies: - '@babel/runtime': 7.21.0 - csstype: 3.1.2 + '@babel/runtime': 7.23.6 + csstype: 3.1.3 dev: true - /@rc-component/color-picker@1.2.0(react-dom@18.1.0)(react@18.1.0): + /@rc-component/color-picker@1.2.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-IitJ6RWGHs7btI1AqzGPrehr5bueWLGDUyMKwDwvFunfSDo/o8g/95kUG55vC5EYLM0ZJ3SDfw45OrW5KAx3oA==} peerDependencies: react: '>=16.9.0' @@ -13385,12 +15817,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@ctrl/tinycolor': 3.6.0 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /@rc-component/color-picker@1.4.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-vh5EWqnsayZa/JwUznqDaPJz39jznx/YDbyBuVJntv735tKXKwEUZZb2jYEldOg+NKWZwtALjGMrNeGBmqFoEw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@ctrl/tinycolor': 3.6.0 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /@rc-component/context@1.3.0(react-dom@18.1.0)(react@18.1.0): @@ -13404,16 +15855,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /@rc-component/context@1.3.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-6QdaCJ7Wn5UZLJs15IEfqy4Ru3OaL5ctqpQYWd5rlfV9wwzrzdt6+kgAQZV/qdB0MUPN4nhyBfRembQCIvBf+w==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /@rc-component/mini-decimal@1.0.1: resolution: {integrity: sha512-9N8nRk0oKj1qJzANKl+n9eNSMUGsZtjwNuDCiZ/KA+dt1fE3zq5x2XxclRcAbOIXnZcJ53ozP2Pa60gyELXagA==} engines: {node: '>=8.x'} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 /@rc-component/mutate-observer@1.0.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-okqRJSfNisXdI6CUeOLZC5ukBW/8kir2Ii4PJiKpUt+3+uS7dxwJUMxsUZquxA1rQuL8YcEmKVp/TCnR+yUdZA==} @@ -13427,11 +15895,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /@rc-component/mutate-observer@1.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-okqRJSfNisXdI6CUeOLZC5ukBW/8kir2Ii4PJiKpUt+3+uS7dxwJUMxsUZquxA1rQuL8YcEmKVp/TCnR+yUdZA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /@rc-component/portal@1.0.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-fEfbp5PcE+63zukZFLxqtPz7JSX4G5s6IUIqodLeoVeZ9I0mN1OGjOFDDX/BOpGxdoviH7xchIHxYxXJn2ReRg==} @@ -13445,11 +15932,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /@rc-component/portal@1.0.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-fEfbp5PcE+63zukZFLxqtPz7JSX4G5s6IUIqodLeoVeZ9I0mN1OGjOFDDX/BOpGxdoviH7xchIHxYxXJn2ReRg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /@rc-component/portal@1.1.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-tbXM9SB1r5FOuZjRCljERFByFiEUcMmCWMXLog/NmgCzlAzreXyf23Vei3ZpSMxSMavzPnhCovfZjZdmxS3d1w==} @@ -13463,11 +15969,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /@rc-component/portal@1.1.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-tbXM9SB1r5FOuZjRCljERFByFiEUcMmCWMXLog/NmgCzlAzreXyf23Vei3ZpSMxSMavzPnhCovfZjZdmxS3d1w==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false /@rc-component/portal@1.1.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-m8w3dFXX0H6UkJ4wtfrSwhe2/6M08uz24HHrF8pWfAXPwA9hwCuTE5per/C86KwNLouRpwFGcr7LfpHaa1F38g==} @@ -13481,13 +16007,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /@rc-component/portal@1.1.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-m8w3dFXX0H6UkJ4wtfrSwhe2/6M08uz24HHrF8pWfAXPwA9hwCuTE5per/C86KwNLouRpwFGcr7LfpHaa1F38g==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + /@rc-component/tour@1.8.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-rrRGioHTLQlGca27G2+lw7QpRb3uuMYCUIJjj31/B44VCJS0P2tqYhOgtzvWQmaLMlWH3ZlpzotkKX13NT4XEA==} engines: {node: '>=8.x'} @@ -13500,13 +16044,55 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/portal': 1.0.2(react-dom@18.1.0)(react@18.1.0) - '@rc-component/trigger': 1.5.1(react-dom@18.1.0)(react@18.1.0) + '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /@rc-component/tour@1.8.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-rrRGioHTLQlGca27G2+lw7QpRb3uuMYCUIJjj31/B44VCJS0P2tqYhOgtzvWQmaLMlWH3ZlpzotkKX13NT4XEA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.0.2(react-dom@18.3.1)(react@18.3.1) + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /@rc-component/tour@1.8.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-CsrQnfKgNArxx2j1RNHVLZgVA+rLrEj06lIsl4KSynMqADsqz8eKvVkr0F3p9PA10948M6WEEZt5a/FGAbGR2A==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false /@rc-component/trigger@1.10.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-kDnsBBUIX+oCk1nhZ8vwCFiq15sIXqvYlRLTnSWXDTgec8SRjHxIA2T47FbWVlZ9PtlT1NIVWH8q3GbiSRKWUA==} @@ -13520,17 +16106,40 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/portal': 1.1.0(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-align: 4.0.12(react-dom@18.1.0)(react@18.1.0) rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /@rc-component/trigger@1.10.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-kDnsBBUIX+oCk1nhZ8vwCFiq15sIXqvYlRLTnSWXDTgec8SRjHxIA2T47FbWVlZ9PtlT1NIVWH8q3GbiSRKWUA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.0(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-align: 4.0.12(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /@rc-component/trigger@1.13.6(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-13aF9SrR5XAd+tyV/zja0A2pbrA/zdTCXRBNIsoLp8OmhVOnqiwjP7XZYPulLsH0ioEfvtXR1yI0anJD0/J7PQ==} engines: {node: '>=8.x'} @@ -13543,18 +16152,19 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.1.0(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-align: 4.0.12(react-dom@18.1.0)(react@18.1.0) rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /@rc-component/trigger@1.5.1(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-W9+9w5B3hKCMZLiGnDa/samrmIpQTQkwhXKOLSBFsEWfcwu7E3XwDBurlDjuqpoJtioDSrC2BptLXA0pAvQoAw==} + /@rc-component/trigger@1.13.6(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-13aF9SrR5XAd+tyV/zja0A2pbrA/zdTCXRBNIsoLp8OmhVOnqiwjP7XZYPulLsH0ioEfvtXR1yI0anJD0/J7PQ==} engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' @@ -13565,17 +16175,85 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.1.0(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-align: 4.0.12(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /@rc-component/trigger@1.15.6(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-Tl19KaGsShf4yzqxumsXVT4c7j0l20Dxe5hgP5S0HmxyhCg3oKen28ntGavRCIPW7cl7wgsGotntqcIokgDHzg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-align: 4.0.12(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /@rc-component/trigger@1.15.6(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-Tl19KaGsShf4yzqxumsXVT4c7j0l20Dxe5hgP5S0HmxyhCg3oKen28ntGavRCIPW7cl7wgsGotntqcIokgDHzg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-align: 4.0.12(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /@rc-component/trigger@1.5.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-W9+9w5B3hKCMZLiGnDa/samrmIpQTQkwhXKOLSBFsEWfcwu7E3XwDBurlDjuqpoJtioDSrC2BptLXA0pAvQoAw==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-align: 4.0.12(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true - /@react-hook/intersection-observer@3.1.1(react@18.1.0): + /@react-hook/intersection-observer@3.1.1(react@18.3.1): resolution: {integrity: sha512-OTDx8/wFaRvzFtKl1dEUEXSOqK2zVJHporiTTdC2xO++0e9FEx9wIrPis5q3lqtXeZH9zYGLbk+aB75qNFbbuw==} peerDependencies: react: '>=16.8' @@ -13583,12 +16261,12 @@ packages: react: optional: true dependencies: - '@react-hook/passive-layout-effect': 1.2.1(react@18.1.0) + '@react-hook/passive-layout-effect': 1.2.1(react@18.3.1) intersection-observer: 0.10.0 - react: 18.1.0 + react: 18.3.1 dev: false - /@react-hook/passive-layout-effect@1.2.1(react@18.1.0): + /@react-hook/passive-layout-effect@1.2.1(react@18.3.1): resolution: {integrity: sha512-IwEphTD75liO8g+6taS+4oqz+nnroocNfWVHWz7j+N+ZO2vYrc6PV1q7GQhuahL0IOR7JccFTsFKQ/mb6iZWAg==} peerDependencies: react: '>=16.8' @@ -13596,10 +16274,10 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false - /@react-spring/animated@9.6.1(react@18.1.0): + /@react-spring/animated@9.6.1(react@18.3.1): resolution: {integrity: sha512-ls/rJBrAqiAYozjLo5EPPLLOb1LM0lNVQcXODTC1SMtS6DbuBCPaKco5svFUQFMP2dso3O+qcC4k9FsKc0KxMQ==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -13607,12 +16285,12 @@ packages: react: optional: true dependencies: - '@react-spring/shared': 9.6.1(react@18.1.0) + '@react-spring/shared': 9.6.1(react@18.3.1) '@react-spring/types': 9.6.1 - react: 18.1.0 + react: 18.3.1 dev: false - /@react-spring/core@9.6.1(react@18.1.0): + /@react-spring/core@9.6.1(react@18.3.1): resolution: {integrity: sha512-3HAAinAyCPessyQNNXe5W0OHzRfa8Yo5P748paPcmMowZ/4sMfaZ2ZB6e5x5khQI8NusOHj8nquoutd6FRY5WQ==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -13620,18 +16298,18 @@ packages: react: optional: true dependencies: - '@react-spring/animated': 9.6.1(react@18.1.0) + '@react-spring/animated': 9.6.1(react@18.3.1) '@react-spring/rafz': 9.6.1 - '@react-spring/shared': 9.6.1(react@18.1.0) + '@react-spring/shared': 9.6.1(react@18.3.1) '@react-spring/types': 9.6.1 - react: 18.1.0 + react: 18.3.1 dev: false /@react-spring/rafz@9.6.1: resolution: {integrity: sha512-v6qbgNRpztJFFfSE3e2W1Uz+g8KnIBs6SmzCzcVVF61GdGfGOuBrbjIcp+nUz301awVmREKi4eMQb2Ab2gGgyQ==} dev: false - /@react-spring/shared@9.6.1(react@18.1.0): + /@react-spring/shared@9.6.1(react@18.3.1): resolution: {integrity: sha512-PBFBXabxFEuF8enNLkVqMC9h5uLRBo6GQhRMQT/nRTnemVENimgRd+0ZT4yFnAQ0AxWNiJfX3qux+bW2LbG6Bw==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -13641,10 +16319,10 @@ packages: dependencies: '@react-spring/rafz': 9.6.1 '@react-spring/types': 9.6.1 - react: 18.1.0 + react: 18.3.1 dev: false - /@react-spring/three@9.6.1(@react-three/fiber@8.11.5)(react@18.1.0)(three@0.148.0): + /@react-spring/three@9.6.1(@react-three/fiber@8.11.5)(react@18.3.1)(three@0.148.0): resolution: {integrity: sha512-Tyw2YhZPKJAX3t2FcqvpLRb71CyTe1GvT3V+i+xJzfALgpk10uPGdGaQQ5Xrzmok1340DAeg2pR/MCfaW7b8AA==} peerDependencies: '@react-three/fiber': '>=6.0' @@ -13654,12 +16332,12 @@ packages: react: optional: true dependencies: - '@react-spring/animated': 9.6.1(react@18.1.0) - '@react-spring/core': 9.6.1(react@18.1.0) - '@react-spring/shared': 9.6.1(react@18.1.0) + '@react-spring/animated': 9.6.1(react@18.3.1) + '@react-spring/core': 9.6.1(react@18.3.1) + '@react-spring/shared': 9.6.1(react@18.3.1) '@react-spring/types': 9.6.1 - '@react-three/fiber': 8.11.5(react-dom@18.1.0)(react@18.1.0)(three@0.148.0) - react: 18.1.0 + '@react-three/fiber': 8.11.5(react-dom@18.3.1)(react@18.3.1)(three@0.148.0) + react: 18.3.1 three: 0.148.0 dev: false @@ -13667,7 +16345,7 @@ packages: resolution: {integrity: sha512-POu8Mk0hIU3lRXB3bGIGe4VHIwwDsQyoD1F394OK7STTiX9w4dG3cTLljjYswkQN+hDSHRrj4O36kuVa7KPU8Q==} dev: false - /@react-three/drei@9.56.27(@react-three/fiber@8.11.5)(@types/three@0.148.0)(react-dom@18.1.0)(react@18.1.0)(three@0.148.0): + /@react-three/drei@9.56.27(@react-three/fiber@8.11.5)(@types/three@0.148.0)(react-dom@18.3.1)(react@18.3.1)(three@0.148.0): resolution: {integrity: sha512-NnhzBOagyd/PDWTo/BGu315e9ubUjvbeIKjJwkDBtjOnv4SpUsvAm0H9yxLSHBOXQ24Mik3Y3zETBd0+dHD5Ew==} peerDependencies: '@react-three/fiber': '>=8.0' @@ -13681,9 +16359,9 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - '@react-spring/three': 9.6.1(@react-three/fiber@8.11.5)(react@18.1.0)(three@0.148.0) - '@react-three/fiber': 8.11.5(react-dom@18.1.0)(react@18.1.0)(three@0.148.0) - '@use-gesture/react': 10.2.24(react@18.1.0) + '@react-spring/three': 9.6.1(@react-three/fiber@8.11.5)(react@18.3.1)(three@0.148.0) + '@react-three/fiber': 8.11.5(react-dom@18.3.1)(react@18.3.1)(three@0.148.0) + '@use-gesture/react': 10.2.24(react@18.3.1) camera-controls: 2.3.1(three@0.148.0) detect-gpu: 5.0.13 glsl-noise: 0.0.0 @@ -13692,23 +16370,23 @@ packages: lodash.pick: 4.4.0 maath: 0.5.2(@types/three@0.148.0)(three@0.148.0) meshline: 3.1.6(three@0.148.0) - react: 18.1.0 - react-composer: 5.0.3(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-composer: 5.0.3(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) react-merge-refs: 1.1.0 stats.js: 0.17.0 - suspend-react: 0.0.8(react@18.1.0) + suspend-react: 0.0.8(react@18.3.1) three: 0.148.0 three-mesh-bvh: 0.5.23(three@0.148.0) three-stdlib: 2.21.8(three@0.148.0) troika-three-text: 0.47.1(three@0.148.0) utility-types: 3.10.0 - zustand: 3.7.2(react@18.1.0) + zustand: 3.7.2(react@18.3.1) transitivePeerDependencies: - '@types/three' dev: false - /@react-three/fiber@8.11.5(react-dom@18.1.0)(react@18.1.0)(three@0.148.0): + /@react-three/fiber@8.11.5(react-dom@18.3.1)(react@18.3.1)(three@0.148.0): resolution: {integrity: sha512-Z+/hNPDy71q7xiGQQwngpLhoyjqPsuObs/Wbk2nYDZ0SC6rg3nCQBcIR6cf1+ONx1EP53L5lbuxcr+chkdGGmQ==} peerDependencies: expo: '>=43.0' @@ -13734,18 +16412,18 @@ packages: dependencies: '@babel/runtime': 7.21.0 '@types/react-reconciler': 0.26.7 - its-fine: 1.0.9(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-reconciler: 0.27.0(react@18.1.0) - react-use-measure: 2.1.1(react-dom@18.1.0)(react@18.1.0) + its-fine: 1.0.9(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-reconciler: 0.27.0(react@18.3.1) + react-use-measure: 2.1.1(react-dom@18.3.1)(react@18.3.1) scheduler: 0.21.0 - suspend-react: 0.0.8(react@18.1.0) + suspend-react: 0.0.8(react@18.3.1) three: 0.148.0 - zustand: 3.7.2(react@18.1.0) + zustand: 3.7.2(react@18.3.1) dev: false - /@reduxjs/toolkit@1.9.3(react-redux@8.0.5)(react@18.1.0): + /@reduxjs/toolkit@1.9.3(react-redux@8.0.5)(react@18.3.1): resolution: {integrity: sha512-GU2TNBQVofL09VGmuSioNPQIu6Ml0YLf4EJhgj0AvBadRlCGzUWet8372LjvO4fqKZF2vH1xU0htAa7BrK9pZg==} peerDependencies: react: ^16.9.0 || ^17.0.0 || ^18 @@ -13757,8 +16435,8 @@ packages: optional: true dependencies: immer: 9.0.19 - react: 18.1.0 - react-redux: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0)(redux@4.2.1) + react: 18.3.1 + react-redux: 8.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(redux@4.2.1) redux: 4.2.1 redux-thunk: 2.4.2(redux@4.2.1) reselect: 4.1.7 @@ -13787,7 +16465,7 @@ packages: rollup: optional: true dependencies: - '@babel/helper-module-imports': 7.18.6 + '@babel/helper-module-imports': 7.22.5 '@rollup/pluginutils': 5.0.2 dev: false @@ -13816,7 +16494,7 @@ packages: resolution: {integrity: sha512-oe5WJEDaVsW8fBlGT7udrSCgOwWfoYHQOmSpnh8X+0GXpqqcRCP8k4y+Dxb0taWJDPpB+rdDUtumIiBwkY9qGA==} dev: true - /@rushstack/node-core-library@3.55.1(@types/node@18.11.18): + /@rushstack/node-core-library@3.55.1(@types/node@18.19.39): resolution: {integrity: sha512-t/nZHq4/4S3ltpYVyIsbbIqmcZx3qEe3Aaw8tI9B6XRNqCFzPxtoTopqTPTuRn8XqCtoDaSe6uMlnn7YCTu8lQ==} peerDependencies: '@types/node': '*' @@ -13824,12 +16502,12 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 18.11.18 + '@types/node': 18.19.39 colors: 1.2.5 fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 - resolve: 1.22.1 + resolve: 1.22.8 semver: 7.3.8 z-schema: 5.0.4 dev: true @@ -13847,7 +16525,7 @@ packages: '@types/argparse': 1.0.38 argparse: 1.0.10 colors: 1.2.5 - string-argv: 0.3.1 + string-argv: 0.3.2 dev: true /@selderee/plugin-htmlparser2@0.11.0: @@ -13871,6 +16549,39 @@ packages: resolution: {integrity: sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==} dev: true + /@sigstore/bundle@1.1.0: + resolution: {integrity: sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + '@sigstore/protobuf-specs': 0.2.1 + dev: true + + /@sigstore/protobuf-specs@0.2.1: + resolution: {integrity: sha512-XTWVxnWJu+c1oCshMLwnKvz8ZQJJDVOlciMfgpJBQbThVjKTCG8dwyhgLngBD2KN0ap9F/gOV8rFDEx8uh7R2A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + + /@sigstore/sign@1.0.0: + resolution: {integrity: sha512-INxFVNQteLtcfGmcoldzV6Je0sbbfh9I16DM4yJPw3j5+TFP8X6uIiA18mvpEa9yyeycAKgPmOA3X9hVdVTPUA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + '@sigstore/bundle': 1.1.0 + '@sigstore/protobuf-specs': 0.2.1 + make-fetch-happen: 11.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@sigstore/tuf@1.0.3: + resolution: {integrity: sha512-2bRovzs0nJZFlCN3rXirE4gwxCn97JNjMmwpecqlbgV9WcxX7WRuIrgzx/X7Ib7MYRbyUTpBYE0s2x6AmZXnlg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + '@sigstore/protobuf-specs': 0.2.1 + tuf-js: 1.1.7 + transitivePeerDependencies: + - supports-color + dev: true + /@sinclair/typebox@0.24.28: resolution: {integrity: sha512-dgJd3HLOkLmz4Bw50eZx/zJwtBq65nms3N9VBYu5LTjJ883oBFkTyXRlCB/ZGGwqYpJJHA5zW2Ibhl5ngITfow==} dev: true @@ -13878,6 +16589,9 @@ packages: /@sinclair/typebox@0.25.24: resolution: {integrity: sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==} + /@sinclair/typebox@0.27.8: + resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} + /@sindresorhus/is@0.14.0: resolution: {integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==} engines: {node: '>=6'} @@ -13919,7 +16633,7 @@ packages: postcss: optional: true dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 postcss: 7.0.39 postcss-syntax: 0.36.2(postcss-html@0.36.0)(postcss-less@3.1.4)(postcss-scss@2.1.1)(postcss@7.0.39) transitivePeerDependencies: @@ -13936,11 +16650,29 @@ packages: postcss: optional: true dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 postcss: 8.4.21 postcss-syntax: 0.36.2(postcss-less@6.0.0)(postcss@8.4.21) transitivePeerDependencies: - supports-color + dev: false + + /@stylelint/postcss-css-in-js@0.38.0(postcss-syntax@0.36.2)(postcss@8.4.35): + resolution: {integrity: sha512-XOz5CAe49kS95p5yRd+DAIWDojTjfmyAQ4bbDlXMdbZTQ5t0ThjSLvWI6JI2uiS7MFurVBkZ6zUqcimzcLTBoQ==} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. + peerDependencies: + postcss: '>=7.0.0' + postcss-syntax: '>=0.36.2' + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@babel/core': 7.23.6 + postcss: 8.4.35 + postcss-syntax: 0.36.2(postcss@8.4.35) + transitivePeerDependencies: + - supports-color + dev: true /@stylelint/postcss-markdown@0.36.2(postcss-syntax@0.36.2)(postcss@7.0.39): resolution: {integrity: sha512-2kGbqUVJUGE8dM+bMzXG/PYUWKkjLIkRLWNh39OaADkiabDRdw8ATFCgbMz5xdIcvwspPAluSL7uY+ZiTWdWmQ==} @@ -13959,103 +16691,92 @@ packages: - supports-color dev: true - /@svgr/babel-plugin-add-jsx-attribute@6.5.1(@babel/core@7.22.5): + /@svgr/babel-plugin-add-jsx-attribute@6.5.1(@babel/core@7.23.6): resolution: {integrity: sha512-9PYGcXrAxitycIjRmZB+Q0JaN07GZIWaTBIGQzfaZv+qr1n8X1XUEJ5rZ/vx6OVD9RRYlrNnXWExQXcmZeD/BQ==} engines: {node: '>=10'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-plugin-remove-jsx-attribute@6.3.1(@babel/core@7.22.5): - resolution: {integrity: sha512-dQzyJ4prwjcFd929T43Z8vSYiTlTu8eafV40Z2gO7zy/SV5GT+ogxRJRBIKWomPBOiaVXFg3jY4S5hyEN3IBjQ==} - engines: {node: '>=10'} + /@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.23.6): + resolution: {integrity: sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==} + engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-plugin-remove-jsx-empty-expression@6.3.1(@babel/core@7.22.5): - resolution: {integrity: sha512-HBOUc1XwSU67fU26V5Sfb8MQsT0HvUyxru7d0oBJ4rA2s4HW3PhyAPC7fV/mdsSGpAvOdd8Wpvkjsr0fWPUO7A==} - engines: {node: '>=10'} + /@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.23.6): + resolution: {integrity: sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==} + engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-plugin-replace-jsx-attribute-value@6.5.1(@babel/core@7.22.5): + /@svgr/babel-plugin-replace-jsx-attribute-value@6.5.1(@babel/core@7.23.6): resolution: {integrity: sha512-8DPaVVE3fd5JKuIC29dqyMB54sA6mfgki2H2+swh+zNJoynC8pMPzOkidqHOSc6Wj032fhl8Z0TVn1GiPpAiJg==} engines: {node: '>=10'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-plugin-svg-dynamic-title@6.5.1(@babel/core@7.22.5): + /@svgr/babel-plugin-svg-dynamic-title@6.5.1(@babel/core@7.23.6): resolution: {integrity: sha512-FwOEi0Il72iAzlkaHrlemVurgSQRDFbk0OC8dSvD5fSBPHltNh7JtLsxmZUhjYBZo2PpcU/RJvvi6Q0l7O7ogw==} engines: {node: '>=10'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-plugin-svg-em-dimensions@6.5.1(@babel/core@7.22.5): + /@svgr/babel-plugin-svg-em-dimensions@6.5.1(@babel/core@7.23.6): resolution: {integrity: sha512-gWGsiwjb4tw+ITOJ86ndY/DZZ6cuXMNE/SjcDRg+HLuCmwpcjOktwRF9WgAiycTqJD/QXqL2f8IzE2Rzh7aVXA==} engines: {node: '>=10'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-plugin-transform-react-native-svg@6.5.1(@babel/core@7.22.5): + /@svgr/babel-plugin-transform-react-native-svg@6.5.1(@babel/core@7.23.6): resolution: {integrity: sha512-2jT3nTayyYP7kI6aGutkyfJ7UMGtuguD72OjeGLwVNyfPRBD8zQthlvL+fAbAKk5n9ZNcvFkp/b1lZ7VsYqVJg==} engines: {node: '>=10'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-plugin-transform-svg-component@6.5.1(@babel/core@7.22.5): + /@svgr/babel-plugin-transform-svg-component@6.5.1(@babel/core@7.23.6): resolution: {integrity: sha512-a1p6LF5Jt33O3rZoVRBqdxL350oge54iZWHNI6LJB5tQ7EelvD/Mb1mfBiZNAan0dt4i3VArkFRjA4iObuNykQ==} engines: {node: '>=12'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 - /@svgr/babel-preset@6.5.1(@babel/core@7.22.5): + /@svgr/babel-preset@6.5.1(@babel/core@7.23.6): resolution: {integrity: sha512-6127fvO/FF2oi5EzSQOAjo1LE3OtNVh11R+/8FXa+mHx1ptAaS4cknIjnUA7e6j6fwGGJ17NzaTJFUwOV2zwCw==} engines: {node: '>=10'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 - '@svgr/babel-plugin-add-jsx-attribute': 6.5.1(@babel/core@7.22.5) - '@svgr/babel-plugin-remove-jsx-attribute': 6.3.1(@babel/core@7.22.5) - '@svgr/babel-plugin-remove-jsx-empty-expression': 6.3.1(@babel/core@7.22.5) - '@svgr/babel-plugin-replace-jsx-attribute-value': 6.5.1(@babel/core@7.22.5) - '@svgr/babel-plugin-svg-dynamic-title': 6.5.1(@babel/core@7.22.5) - '@svgr/babel-plugin-svg-em-dimensions': 6.5.1(@babel/core@7.22.5) - '@svgr/babel-plugin-transform-react-native-svg': 6.5.1(@babel/core@7.22.5) - '@svgr/babel-plugin-transform-svg-component': 6.5.1(@babel/core@7.22.5) - - /@svgr/core@6.2.1: - resolution: {integrity: sha512-NWufjGI2WUyrg46mKuySfviEJ6IxHUOm/8a3Ph38VCWSp+83HBraCQrpEM3F3dB6LBs5x8OElS8h3C0oOJaJAA==} - engines: {node: '>=10'} - dependencies: - '@svgr/plugin-jsx': 6.5.1(@svgr/core@6.2.1) - camelcase: 6.3.0 - cosmiconfig: 7.0.1 - transitivePeerDependencies: - - supports-color - dev: true + '@babel/core': 7.23.6 + '@svgr/babel-plugin-add-jsx-attribute': 6.5.1(@babel/core@7.23.6) + '@svgr/babel-plugin-remove-jsx-attribute': 8.0.0(@babel/core@7.23.6) + '@svgr/babel-plugin-remove-jsx-empty-expression': 8.0.0(@babel/core@7.23.6) + '@svgr/babel-plugin-replace-jsx-attribute-value': 6.5.1(@babel/core@7.23.6) + '@svgr/babel-plugin-svg-dynamic-title': 6.5.1(@babel/core@7.23.6) + '@svgr/babel-plugin-svg-em-dimensions': 6.5.1(@babel/core@7.23.6) + '@svgr/babel-plugin-transform-react-native-svg': 6.5.1(@babel/core@7.23.6) + '@svgr/babel-plugin-transform-svg-component': 6.5.1(@babel/core@7.23.6) /@svgr/core@6.5.1: resolution: {integrity: sha512-/xdLSWxK5QkqG524ONSjvg3V/FkNyCv538OIBdQqPNaAta3AsXj/Bd2FbvR87yMbXO2hFSWiAe/Q6IkVPDw+mw==} engines: {node: '>=10'} dependencies: - '@babel/core': 7.22.5 - '@svgr/babel-preset': 6.5.1(@babel/core@7.22.5) + '@babel/core': 7.23.6 + '@svgr/babel-preset': 6.5.1(@babel/core@7.23.6) '@svgr/plugin-jsx': 6.5.1(@svgr/core@6.5.1) camelcase: 6.3.0 cosmiconfig: 7.1.0 @@ -14066,23 +16787,8 @@ packages: resolution: {integrity: sha512-1hnUxxjd83EAxbL4a0JDJoD3Dao3hmjvyvyEV8PzWmLK3B9m9NPlW7GKjFyoWE8nM7HnXzPcmmSyOW8yOddSXw==} engines: {node: '>=10'} dependencies: - '@babel/types': 7.22.5 - entities: 4.4.0 - - /@svgr/plugin-jsx@6.5.1(@svgr/core@6.2.1): - resolution: {integrity: sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==} - engines: {node: '>=10'} - peerDependencies: - '@svgr/core': ^6.0.0 - dependencies: - '@babel/core': 7.22.5 - '@svgr/babel-preset': 6.5.1(@babel/core@7.22.5) - '@svgr/core': 6.2.1 - '@svgr/hast-util-to-babel-ast': 6.5.1 - svg-parser: 2.0.4 - transitivePeerDependencies: - - supports-color - dev: true + '@babel/types': 7.23.6 + entities: 4.5.0 /@svgr/plugin-jsx@6.5.1(@svgr/core@6.5.1): resolution: {integrity: sha512-+UdQxI3jgtSjCykNSlEMuy1jSRQlGC7pqBCPvkG/2dATdWo082zHTTK3uhnAju2/6XpE6B5mZ3z4Z8Ns01S8Gw==} @@ -14090,26 +16796,14 @@ packages: peerDependencies: '@svgr/core': ^6.0.0 dependencies: - '@babel/core': 7.22.5 - '@svgr/babel-preset': 6.5.1(@babel/core@7.22.5) + '@babel/core': 7.23.6 + '@svgr/babel-preset': 6.5.1(@babel/core@7.23.6) '@svgr/core': 6.5.1 '@svgr/hast-util-to-babel-ast': 6.5.1 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - /@svgr/plugin-svgo@6.5.1(@svgr/core@6.2.1): - resolution: {integrity: sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==} - engines: {node: '>=10'} - peerDependencies: - '@svgr/core': '*' - dependencies: - '@svgr/core': 6.2.1 - cosmiconfig: 7.1.0 - deepmerge: 4.3.1 - svgo: 2.8.0 - dev: true - /@svgr/plugin-svgo@6.5.1(@svgr/core@6.5.1): resolution: {integrity: sha512-omvZKf8ixP9z6GWgwbtmP9qQMPX4ODXi+wzbVZgomNFsUIlHA1sf4fThdwTWSsZGgvGAG6yE+b/F5gWUkcZ/iQ==} engines: {node: '>=10'} @@ -14334,6 +17028,12 @@ packages: '@swc/core-win32-x64-msvc': 1.3.72 dev: true + /@swc/helpers@0.5.1: + resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==} + dependencies: + tslib: 2.6.2 + dev: false + /@sxzz/popperjs-es@2.11.7: resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==} dev: false @@ -14361,6 +17061,14 @@ packages: /@tanstack/query-core@4.24.10: resolution: {integrity: sha512-2QywqXEAGBIUoTdgn1lAB4/C8QEqwXHj2jrCLeYTk2xVGtLiPEUD8jcMoeB2noclbiW2mMt4+Fq7fZStuz3wAQ==} + /@tanstack/query-core@5.28.6: + resolution: {integrity: sha512-hnhotV+DnQtvtR3jPvbQMPNMW4KEK0J4k7c609zJ8muiNknm+yoDyMHmxTWM5ZnlZpsz0zOxYFr+mzRJNHWJsA==} + dev: false + + /@tanstack/query-devtools@5.28.6: + resolution: {integrity: sha512-DXJGqbrsteWU9XehDf6s3k3QxwQqGUlNXpitsF1xbwkYBcDaAakiC6hjJSMfPBHOrbZCnWfAGCVf4vh2D75/xw==} + dev: false + /@tanstack/react-query-devtools@4.24.10(@tanstack/react-query@4.24.10)(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-1uzJNLdLjRsNt4O5ldv1SYPevWvSdHtKIyVJeUv4hSERPEhrKKfa8WC3dBOX24CdLEYH2ndLZW4ZiC9nzSKCtg==} peerDependencies: @@ -14381,7 +17089,7 @@ packages: use-sync-external-store: 1.2.0(react@17.0.2) dev: true - /@tanstack/react-query-devtools@4.24.10(@tanstack/react-query@4.24.10)(react-dom@18.1.0)(react@18.1.0): + /@tanstack/react-query-devtools@4.24.10(@tanstack/react-query@4.24.10)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-1uzJNLdLjRsNt4O5ldv1SYPevWvSdHtKIyVJeUv4hSERPEhrKKfa8WC3dBOX24CdLEYH2ndLZW4ZiC9nzSKCtg==} peerDependencies: '@tanstack/react-query': 4.24.10 @@ -14394,11 +17102,25 @@ packages: optional: true dependencies: '@tanstack/match-sorter-utils': 8.7.6 - '@tanstack/react-query': 4.24.10(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + '@tanstack/react-query': 4.24.10(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) superjson: 1.12.1 - use-sync-external-store: 1.2.0(react@18.1.0) + use-sync-external-store: 1.2.0(react@18.3.1) + dev: false + + /@tanstack/react-query-devtools@5.28.6(@tanstack/react-query@5.28.6)(react@18.3.1): + resolution: {integrity: sha512-xSfskHlM2JkP7WpN89UqhJV2RbFxg8YnOMzQz+EEzWSsgxMI5Crce8HO9pcUAcJce8gSmw93RQwuKNdG3FbT6w==} + peerDependencies: + '@tanstack/react-query': ^5.28.6 + react: ^18.0.0 + peerDependenciesMeta: + react: + optional: true + dependencies: + '@tanstack/query-devtools': 5.28.6 + '@tanstack/react-query': 5.28.6(react@18.3.1) + react: 18.3.1 dev: false /@tanstack/react-query@4.24.10(react-dom@17.0.2)(react@17.0.2): @@ -14421,7 +17143,7 @@ packages: use-sync-external-store: 1.2.0(react@17.0.2) dev: true - /@tanstack/react-query@4.24.10(react-dom@18.1.0)(react@18.1.0): + /@tanstack/react-query@4.24.10(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-FY1DixytOcNNCydPQXLxuKEV7VSST32CAuJ55BjhDNqASnMLZn+6c30yQBMrODjmWMNwzfjMZnq0Vw7C62Fwow==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -14436,9 +17158,21 @@ packages: optional: true dependencies: '@tanstack/query-core': 4.24.10 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - use-sync-external-store: 1.2.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + use-sync-external-store: 1.2.0(react@18.3.1) + dev: false + + /@tanstack/react-query@5.28.6(react@18.3.1): + resolution: {integrity: sha512-/DdYuDBSsA21Qbcder1R8Cr/3Nx0ZnA2lgtqKsLMvov8wL4+g0HBz/gWYZPlIsof7iyfQafyhg4wUVUsS3vWZw==} + peerDependencies: + react: ^18.0.0 + peerDependenciesMeta: + react: + optional: true + dependencies: + '@tanstack/query-core': 5.28.6 + react: 18.3.1 dev: false /@testing-library/dom@9.0.0: @@ -14469,7 +17203,7 @@ packages: redent: 3.0.0 dev: true - /@testing-library/react@14.0.0(react-dom@18.1.0)(react@18.1.0): + /@testing-library/react@14.0.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-S04gSNJbYE30TlIMLTzv6QCTzt9AqIF5y6s6SzVFILNcNvbV/jU96GeiTPillGQo+Ny64M/5PV7klNYYgv5Dfg==} engines: {node: '>=14'} peerDependencies: @@ -14484,8 +17218,8 @@ packages: '@babel/runtime': 7.20.7 '@testing-library/dom': 9.0.0 '@types/react-dom': 18.0.10 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /@tootallnate/once@2.0.0: resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} @@ -14507,6 +17241,19 @@ packages: /@tsconfig/node16@1.0.3: resolution: {integrity: sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==} + /@tufjs/canonical-json@1.0.0: + resolution: {integrity: sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + + /@tufjs/models@1.0.4: + resolution: {integrity: sha512-qaGV9ltJP0EO25YfFUPhxRVK0evXFIAGicsVXuRim4Ed9cjPxYhNnNJ49SFmbeLgtxpslIkX317IgpfcHPVj/A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + '@tufjs/canonical-json': 1.0.0 + minimatch: 9.0.4 + dev: true + /@turf/bbox-polygon@6.5.0: resolution: {integrity: sha512-+/r0NyL1lOG3zKZmmf6L8ommU07HliP4dgYToMoTxqzsWzyLjaj/OzgQ8rBmv703WJX+aS6yCmLuIhYqyufyuw==} dependencies: @@ -14564,40 +17311,41 @@ packages: resolution: {integrity: sha512-/ME92FneNyXQzrAfcnQQlW1XkCZGPDlpi2ao1MJwecN+6SbeonKeggU8eybv1DfKli90FAVT1MlIZVXfwVuCyg==} dev: true - /@types/babel__code-frame@7.0.3: - resolution: {integrity: sha512-2TN6oiwtNjOezilFVl77zwdNPwQWaDBBCCWWxyo1ctiO3vAtd7H/aB/CBJdw9+kqq3+latD0SXoedIuHySSZWw==} + /@types/babel__code-frame@7.0.6: + resolution: {integrity: sha512-Anitqkl3+KrzcW2k77lRlg/GfLZLWXBuNgbEcIOU6M92yw42vsd3xV/Z/yAHEj8m+KUjL6bWOVOFqX8PFPJ4LA==} dev: true - /@types/babel__core@7.20.1: - resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} + /@types/babel__core@7.20.5: + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} dependencies: - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 - '@types/babel__generator': 7.6.4 - '@types/babel__template': 7.4.1 - '@types/babel__traverse': 7.20.1 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 + '@types/babel__generator': 7.6.8 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.20.4 - /@types/babel__generator@7.6.4: - resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==} + /@types/babel__generator@7.6.8: + resolution: {integrity: sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 /@types/babel__parser@7.1.1: resolution: {integrity: sha512-baSzIb0QQOUQSglfR9gwXVSbHH91YvY00C9Zjq6E7sPdnp8oyPyUsonIj3SF4wUl0s96vR/kyWeVv30gmM/xZw==} + deprecated: Deprecated dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.6 dev: true - /@types/babel__template@7.4.1: - resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} + /@types/babel__template@7.4.4: + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} dependencies: - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 - /@types/babel__traverse@7.20.1: - resolution: {integrity: sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==} + /@types/babel__traverse@7.20.4: + resolution: {integrity: sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==} dependencies: - '@babel/types': 7.22.5 + '@babel/types': 7.23.6 /@types/body-parser@1.19.2: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} @@ -14608,7 +17356,7 @@ packages: /@types/bonjour@3.5.10: resolution: {integrity: sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==} dependencies: - '@types/node': 18.11.18 + '@types/node': 18.19.39 /@types/btoa-lite@1.0.0: resolution: {integrity: sha512-wJsiX1tosQ+J5+bY5LrSahHxr2wT+uME5UDwdN1kg4frt40euqA+wzECkmq4t5QbveHiJepfdThgQrPw6KiSlg==} @@ -14619,12 +17367,12 @@ packages: dependencies: '@types/http-cache-semantics': 4.0.1 '@types/keyv': 3.1.4 - '@types/node': 18.15.5 + '@types/node': 18.19.39 '@types/responselike': 1.0.0 dev: true - /@types/caniuse-lite@1.0.1: - resolution: {integrity: sha512-enW8d/vdojHAhr1C/0BqsNkhz/0ik2WCuAJIp9EClP+mHkR8xXBJ2OGeXHZ6cPqDjVKvWBRe9tY/Nr9r4yQSuA==} + /@types/caniuse-lite@1.0.5: + resolution: {integrity: sha512-ff4yGviVi4PrDKkCZJixHjYrgQG3kv/peiSCBabyZR+fXezFTYuS4uVOiRRzRqVxCEZT3ityfuAPuYa0usobKw==} dev: true /@types/chai-subset@1.3.3: @@ -14663,12 +17411,12 @@ packages: resolution: {integrity: sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==} dependencies: '@types/express-serve-static-core': 4.17.33 - '@types/node': 18.11.18 + '@types/node': 18.19.39 /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 /@types/cors@2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} @@ -14699,25 +17447,25 @@ packages: resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==} dependencies: '@types/eslint': 8.4.6 - '@types/estree': 1.0.0 + '@types/estree': 1.0.1 /@types/eslint@7.29.0: resolution: {integrity: sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==} dependencies: - '@types/estree': 1.0.0 - '@types/json-schema': 7.0.11 + '@types/estree': 1.0.1 + '@types/json-schema': 7.0.12 dev: true /@types/eslint@8.4.6: resolution: {integrity: sha512-/fqTbjxyFUaYNO7VcW5g+4npmqVACz1bB7RTHYuLj+PRjw9hrCwrUXVQFpChUS0JsyEFvMZ7U/PfmvWgxJhI9g==} dependencies: - '@types/estree': 1.0.0 - '@types/json-schema': 7.0.11 + '@types/estree': 1.0.1 + '@types/json-schema': 7.0.12 /@types/estree-jsx@0.0.1: resolution: {integrity: sha512-gcLAYiMfQklDCPjQegGn0TBAn9it05ISEsEhlKQUddIk7o2XDokOcTN7HBO8tznM0D9dGezvHEfRZBfZf6me0A==} dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.1 dev: true /@types/estree-jsx@1.0.0: @@ -14733,17 +17481,14 @@ packages: /@types/estree@0.0.51: resolution: {integrity: sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==} - /@types/estree@1.0.0: - resolution: {integrity: sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==} - /@types/estree@1.0.1: resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} /@types/express-serve-static-core@4.17.33: resolution: {integrity: sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==} dependencies: - '@types/node': 18.11.18 - '@types/qs': 6.9.7 + '@types/node': 18.19.39 + '@types/qs': 6.9.15 '@types/range-parser': 1.2.4 /@types/express@4.17.17: @@ -14754,22 +17499,32 @@ packages: '@types/qs': 6.9.7 '@types/serve-static': 1.13.10 + /@types/express@4.17.21: + resolution: {integrity: sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==} + dependencies: + '@types/body-parser': 1.19.2 + '@types/express-serve-static-core': 4.17.33 + '@types/qs': 6.9.7 + '@types/serve-static': 1.13.10 + dev: true + /@types/fs-extra@11.0.1: resolution: {integrity: sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==} dependencies: '@types/jsonfile': 6.1.1 - '@types/node': 18.11.18 + '@types/node': 18.19.39 - /@types/fs-extra@8.1.2: - resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} + /@types/fs-extra@11.0.4: + resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: - '@types/node': 18.15.5 + '@types/jsonfile': 6.1.1 + '@types/node': 18.19.39 dev: true - /@types/fs-extra@9.0.13: - resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} + /@types/fs-extra@8.1.2: + resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 dev: true /@types/geojson@7946.0.10: @@ -14784,7 +17539,7 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 3.0.5 - '@types/node': 18.15.5 + '@types/node': 18.19.39 dev: true /@types/glob@8.0.0: @@ -14796,11 +17551,12 @@ packages: /@types/graceful-fs@4.1.5: resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==} dependencies: - '@types/node': 20.1.7 + '@types/node': 18.19.39 - /@types/hapi__joi@17.1.8: - resolution: {integrity: sha512-omVytnOAiAfzGUOQArujJr3heWxPrDHW7MF1ieqix1ngoGdhtJmSSDFVM+ZAOa7UmhlGJtltdgUAT03mfDu6kg==} - dev: true + /@types/graceful-fs@4.1.9: + resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==} + dependencies: + '@types/node': 18.19.39 /@types/hapi__joi@17.1.9: resolution: {integrity: sha512-oOMFT8vmCTFncsF1engrs04jatz8/Anwx3De9uxnOK4chgSEgWBvFtpSoJo8u3784JNO+ql5tzRR6phHoRnscQ==} @@ -14826,7 +17582,7 @@ packages: /@types/hoist-non-react-statics@3.3.1: resolution: {integrity: sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==} dependencies: - '@types/react': 18.2.6 + '@types/react': 18.3.3 hoist-non-react-statics: 3.3.2 /@types/html-minifier-terser@6.1.0: @@ -14839,7 +17595,7 @@ packages: /@types/http-proxy@1.17.9: resolution: {integrity: sha512-QsbSjA/fSk7xB+UXlCT3wHBy5ai9wOcNDWwZAtud+jXhwOM3l+EYZh8Lng4+/6n8uar0J7xILzqftJdJ/Wdfkw==} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 /@types/ini@1.3.31: resolution: {integrity: sha512-8ecxxaG4AlVEM1k9+BsziMw8UsX0qy3jYI1ad/71RrDZ+rdL6aZB0wLfAuflQiDhkD5o4yJ0uPK3OSUic3fG0w==} @@ -14851,16 +17607,36 @@ packages: /@types/istanbul-lib-coverage@2.0.4: resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} + /@types/istanbul-lib-coverage@2.0.6: + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} + /@types/istanbul-lib-report@3.0.0: resolution: {integrity: sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==} dependencies: - '@types/istanbul-lib-coverage': 2.0.4 + '@types/istanbul-lib-coverage': 2.0.6 + + /@types/istanbul-lib-report@3.0.3: + resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + + /@types/istanbul-reports@1.1.2: + resolution: {integrity: sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==} + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-lib-report': 3.0.3 + dev: false /@types/istanbul-reports@3.0.1: resolution: {integrity: sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==} dependencies: '@types/istanbul-lib-report': 3.0.0 + /@types/istanbul-reports@3.0.4: + resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} + dependencies: + '@types/istanbul-lib-report': 3.0.3 + /@types/jest@29.2.5: resolution: {integrity: sha512-H2cSxkKgVmqNHXP7TC2L/WUorrZu8ZigyRywfVzv6EyBlxj39n4C00hjXYQWsbwqgElaj/CiAeSRmk5GoaKTgw==} dependencies: @@ -14868,13 +17644,20 @@ packages: pretty-format: 29.3.1 dev: true + /@types/jest@29.5.12: + resolution: {integrity: sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==} + dependencies: + expect: 29.7.0 + pretty-format: 29.7.0 + dev: true + /@types/js-cookie@2.2.7: resolution: {integrity: sha512-aLkWa0C0vO5b4Sr798E26QgOkss68Un0bLjs7u9qxzPT5CG+8DuNTffWES58YzJs3hrVAOs1wonycqEBqNJubA==} /@types/jsdom@20.0.1: resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==} dependencies: - '@types/node': 18.11.18 + '@types/node': 18.19.39 '@types/tough-cookie': 4.0.2 parse5: 7.1.2 dev: false @@ -14886,15 +17669,21 @@ packages: /@types/json-schema@7.0.11: resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} + /@types/json-schema@7.0.12: + resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} + + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + /@types/jsonfile@6.1.1: resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 /@types/jsonwebtoken@9.0.0: resolution: {integrity: sha512-mM4TkDpA9oixqg1Fv2vVpOFyIVLJjm5x4k0V+K/rEsizfjD7Tk7LKk3GTtbB7KCfP0FEHQtsZqFxYA0+sijNVg==} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 dev: true /@types/keymaster@1.6.30: @@ -14904,7 +17693,7 @@ packages: /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 20.1.7 + '@types/node': 18.19.39 dev: true /@types/less@3.0.3: @@ -14920,10 +17709,6 @@ packages: /@types/lodash@4.14.191: resolution: {integrity: sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==} - /@types/lru-cache@5.1.1: - resolution: {integrity: sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==} - dev: true - /@types/madge@5.0.0: resolution: {integrity: sha512-Son5Z121knxCXlQM3Q0ivh0OP8Fix4ztGl0VfA9JybQMPQprc2K4jtTaRc3IhGyBy6ku5cWKJxEuj8zePiZbBQ==} dependencies: @@ -14936,12 +17721,6 @@ packages: '@types/geojson': 7946.0.10 dev: false - /@types/mdast@3.0.10: - resolution: {integrity: sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==} - dependencies: - '@types/unist': 2.0.6 - dev: true - /@types/mdast@3.0.11: resolution: {integrity: sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==} dependencies: @@ -14998,13 +17777,21 @@ packages: /@types/node@18.15.5: resolution: {integrity: sha512-Ark2WDjjZO7GmvsyFFf81MXuGTA/d6oP38anyxWOL6EREyBKAxKoFHwBhaZxCfLRLpO8JgVXwqOwSwa7jRcjew==} + dev: false + + /@types/node@18.19.39: + resolution: {integrity: sha512-nPwTRDKUctxw3di5b4TfT3I0sWDiWoPQCZjXhvdkINntwr8lcoVCKsTgnXeRubKIlfnV+eN/HYk6Jb40tbcEAQ==} + dependencies: + undici-types: 5.26.5 /@types/node@18.7.4: resolution: {integrity: sha512-RzRcw8c0B8LzryWOR4Wj7YOTFXvdYKwvrb6xQQyuDfnlTxwYXGCV5RZ/TEbq5L5kn+w3rliHAUyRcG1RtbmTFg==} dev: true - /@types/node@20.1.7: - resolution: {integrity: sha512-WCuw/o4GSwDGMoonES8rcvwsig77dGCMbZDrZr2x4ZZiNW4P/gcoZXe/0twgtobcTkmg9TuKflxYL/DuwDyJzg==} + /@types/node@20.10.5: + resolution: {integrity: sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==} + dependencies: + undici-types: 5.26.5 /@types/normalize-package-data@2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -15016,6 +17803,9 @@ packages: /@types/parse-json@4.0.0: resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} + /@types/parse-json@4.0.2: + resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} + /@types/parse5@6.0.3: resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} dev: true @@ -15040,6 +17830,9 @@ packages: resolution: {integrity: sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==} dev: true + /@types/qs@6.9.15: + resolution: {integrity: sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==} + /@types/qs@6.9.7: resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==} @@ -15055,31 +17848,36 @@ packages: /@types/react-dom@18.0.10: resolution: {integrity: sha512-E42GW/JA4Qv15wQdqJq8DL4JhNpB3prJgjgapN3qJT9K2zO5IIAQh4VXvCEDupoqAwnz0cY4RlXeC/ajX5SFHg==} dependencies: - '@types/react': 18.0.26 + '@types/react': 18.2.6 + + /@types/react-dom@18.3.0: + resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} + dependencies: + '@types/react': 18.3.3 /@types/react-helmet@6.1.6: resolution: {integrity: sha512-ZKcoOdW/Tg+kiUbkFCBtvDw0k3nD4HJ/h/B9yWxN4uDO8OkRksWTO+EL+z/Qu3aHTeTll3Ro0Cc/8UhwBCMG5A==} dependencies: - '@types/react': 18.0.26 + '@types/react': 18.2.6 dev: true /@types/react-reconciler@0.26.7: resolution: {integrity: sha512-mBDYl8x+oyPX/VBb3E638N0B7xG+SPk/EAMcVPeexqus/5aTpTphQi0curhhshOqRrc9t6OPoJfEUkbymse/lQ==} dependencies: - '@types/react': 18.0.26 + '@types/react': 18.3.3 dev: false /@types/react-reconciler@0.28.2: resolution: {integrity: sha512-8tu6lHzEgYPlfDf/J6GOQdIc+gs+S2yAqlby3zTsB3SP2svlqTYe5fwZNtZyfactP74ShooP2vvi1BOp9ZemWw==} dependencies: - '@types/react': 18.0.26 + '@types/react': 18.3.3 dev: false /@types/react-redux@7.1.24: resolution: {integrity: sha512-7FkurKcS1k0FHZEtdbbgN8Oc6b+stGSfZYjQGicofJ0j4U0qIn/jaSvnP2pLwZKiai3/17xqqxkkrxTgN8UNbQ==} dependencies: '@types/hoist-non-react-statics': 3.3.1 - '@types/react': 18.0.26 + '@types/react': 18.3.3 hoist-non-react-statics: 3.3.2 redux: 4.2.1 dev: true @@ -15087,7 +17885,7 @@ packages: /@types/react-test-renderer@18.0.0: resolution: {integrity: sha512-C7/5FBJ3g3sqUahguGi03O79b8afNeSD6T8/GU50oQrJCU0bVCCGQHaGKUbg2Ce8VQEEqTw8/HiS6lXHHdgkdQ==} dependencies: - '@types/react': 18.0.26 + '@types/react': 18.2.6 dev: true /@types/react@18.0.26: @@ -15104,18 +17902,23 @@ packages: '@types/scheduler': 0.16.3 csstype: 3.1.2 + /@types/react@18.3.3: + resolution: {integrity: sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==} + dependencies: + '@types/prop-types': 15.7.5 + csstype: 3.1.3 + /@types/resize-observer-browser@0.1.7: resolution: {integrity: sha512-G9eN0Sn0ii9PWQ3Vl72jDPgeJwRWhv2Qk/nQkJuWmRmOB4HX3/BhD5SE1dZs/hzPZL/WKnvF0RHdTSG54QJFyg==} dev: false - /@types/resolve@1.20.2: - resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - dev: true + /@types/resolve@1.20.6: + resolution: {integrity: sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ==} /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: - '@types/node': 20.1.7 + '@types/node': 18.19.39 dev: true /@types/retry@0.12.0: @@ -15131,7 +17934,7 @@ packages: /@types/sax@1.2.4: resolution: {integrity: sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 dev: true /@types/scheduler@0.16.2: @@ -15152,13 +17955,13 @@ packages: resolution: {integrity: sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==} dependencies: '@types/mime': 1.3.2 - '@types/node': 18.11.18 + '@types/node': 18.19.39 /@types/shelljs@0.8.11: resolution: {integrity: sha512-x9yaMvEh5BEaZKeVQC4vp3l+QoFj3BXcd4aYfuKSzIIyihjdVARAadYy3SMNIz0WCCdS2vB9JL/U6GQk5PaxQw==} dependencies: '@types/glob': 8.0.0 - '@types/node': 18.11.18 + '@types/node': 18.19.39 dev: false /@types/sinonjs__fake-timers@8.1.1: @@ -15172,7 +17975,7 @@ packages: /@types/sockjs@0.3.33: resolution: {integrity: sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==} dependencies: - '@types/node': 18.11.18 + '@types/node': 18.19.39 /@types/source-list-map@0.1.2: resolution: {integrity: sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==} @@ -15187,11 +17990,8 @@ packages: /@types/stack-utils@2.0.1: resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} - /@types/svgo@3.0.0: - resolution: {integrity: sha512-G5qLWNq/rMvSM1EyY4E2iEd+s9km/PxLkzPkA2lghrgWJ2jrVMuB1ZsGOzL4YAWCy5sAoUw7SEQseHE2qypF2w==} - dependencies: - svgo: 2.8.0 - dev: true + /@types/stylis@4.2.1: + resolution: {integrity: sha512-OSaMrXUKxVigGlKRrET39V2xdhzlztQ9Aqumn1WbCBKHOi9ry7jKSd7rkyj0GzmWaU960Rd+LpOFpLfx5bMQAg==} /@types/tar@6.1.4: resolution: {integrity: sha512-Cp4oxpfIzWt7mr2pbhHT2OTXGMAL0szYCzuf8lRWyIMCgsx6/Hfc3ubztuhvzXHXgraTQxyOCmmg7TDGIMIJJQ==} @@ -15223,7 +18023,7 @@ packages: /@types/tunnel@0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 18.11.18 + '@types/node': 18.19.39 dev: true /@types/unist@2.0.6: @@ -15236,7 +18036,7 @@ packages: /@types/wait-on@5.3.1: resolution: {integrity: sha512-2FFOKCF/YydrMUaqg+fkk49qf0e5rDgwt6aQsMzFQzbS419h2gNOXyiwp/o2yYy27bi/C1z+HgfncryjGzlvgQ==} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 dev: true /@types/web-bluetooth@0.0.15: @@ -15248,7 +18048,7 @@ packages: dependencies: '@types/node': 18.11.18 tapable: 2.2.1 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) transitivePeerDependencies: - '@swc/core' - esbuild @@ -15268,14 +18068,14 @@ packages: resolution: {integrity: sha512-IUMDPSXnYIbEO2IereEFcgcqfDREOgmbGqtrMpVPpACTU6pltYLwHgVkrnYv0XhWEcjio9sYEfIEzgn3c7nDqA==} dev: false - /@types/which@2.0.1: - resolution: {integrity: sha512-Jjakcv8Roqtio6w1gr0D7y6twbhx6gGgFGF5BLwajPpnOIOxFkakFhCq+LmyyeAz7BX6ULrjBOxdKaCDy+4+dQ==} - dev: true - /@types/which@2.0.2: resolution: {integrity: sha512-113D3mDkZDjo+EeUEHCFy0qniNc1ZpecGiAU7WSo7YDoSzolZIQKpYFHrPpjkB2nuyahcKfrmLXeQlh7gqJYdw==} dev: false + /@types/which@3.0.4: + resolution: {integrity: sha512-liyfuo/106JdlgSchJzXEQCVArk0CvevqPote8F8HgWgJ3dRCcTHgJIsLDuee0kxk/mhbInzIZk3QWSZJ8R+2w==} + dev: true + /@types/ws@8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: @@ -15284,16 +18084,19 @@ packages: /@types/yargs-parser@21.0.0: resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} - /@types/yargs@15.0.14: - resolution: {integrity: sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==} + /@types/yargs-parser@21.0.3: + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} + + /@types/yargs@13.0.12: + resolution: {integrity: sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==} dependencies: '@types/yargs-parser': 21.0.0 - dev: true + dev: false - /@types/yargs@16.0.5: - resolution: {integrity: sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==} + /@types/yargs@16.0.9: + resolution: {integrity: sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA==} dependencies: - '@types/yargs-parser': 21.0.0 + '@types/yargs-parser': 21.0.3 /@types/yargs@17.0.11: resolution: {integrity: sha512-aB4y9UDUXTSMxmM4MH+YnuR0g5Cph3FLQBoWoMB21DSvFVAxRVEHEMx3TLh+zUZYMCQtKiqazz0Q4Rre31f/OA==} @@ -15304,45 +18107,22 @@ packages: resolution: {integrity: sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==} dependencies: '@types/yargs-parser': 21.0.0 + dev: true - /@types/yauzl@2.10.0: - resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} - requiresBuild: true + /@types/yargs@17.0.32: + resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} dependencies: - '@types/node': 18.15.5 - dev: true - optional: true + '@types/yargs-parser': 21.0.0 - /@typescript-eslint/eslint-plugin@5.27.1(@typescript-eslint/parser@5.27.1)(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-6dM5NKT57ZduNnJfpY81Phe9nc9wolnMCnknb1im6brWi1RYv84nbMS3olJa27B6+irUVV1X/Wb+Am0FjJdGFw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - '@typescript-eslint/parser': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - eslint: - optional: true - typescript: - optional: true + /@types/yauzl@2.10.3: + resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} + requiresBuild: true dependencies: - '@typescript-eslint/parser': 5.27.1(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/scope-manager': 5.27.1 - '@typescript-eslint/type-utils': 5.27.1(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/utils': 5.27.1(eslint@8.35.0)(typescript@4.9.4) - debug: 4.3.4(supports-color@8.1.1) - eslint: 8.35.0 - functional-red-black-tree: 1.0.1 - ignore: 5.2.0 - regexpp: 3.2.0 - semver: 7.3.8 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 - transitivePeerDependencies: - - supports-color + '@types/node': 18.19.39 dev: true + optional: true - /@typescript-eslint/eslint-plugin@5.48.1(@typescript-eslint/parser@5.48.1)(eslint@7.32.0)(typescript@4.9.4): + /@typescript-eslint/eslint-plugin@5.48.1(@typescript-eslint/parser@5.48.1)(eslint@7.32.0)(typescript@4.9.5): resolution: {integrity: sha512-9nY5K1Rp2ppmpb9s9S2aBiF3xo5uExCehMDmYmmFqqyxgenbHJ3qbarcLt4ITgaD6r/2ypdlcFRdcuVPnks+fQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -15355,24 +18135,24 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.48.1(eslint@7.32.0)(typescript@4.9.4) + '@typescript-eslint/parser': 5.48.1(eslint@7.32.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 5.48.1 - '@typescript-eslint/type-utils': 5.48.1(eslint@7.32.0)(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@7.32.0)(typescript@4.9.4) + '@typescript-eslint/type-utils': 5.48.1(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.48.1(eslint@7.32.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 7.32.0 - ignore: 5.2.0 + ignore: 5.2.4 natural-compare-lite: 1.4.0 regexpp: 3.2.0 semver: 7.3.8 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/eslint-plugin@5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-9nY5K1Rp2ppmpb9s9S2aBiF3xo5uExCehMDmYmmFqqyxgenbHJ3qbarcLt4ITgaD6r/2ypdlcFRdcuVPnks+fQ==} + /@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@7.32.0)(typescript@4.9.5): + resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -15384,49 +18164,23 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/scope-manager': 5.48.1 - '@typescript-eslint/type-utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) + '@eslint-community/regexpp': 4.8.0 + '@typescript-eslint/parser': 5.62.0(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 5.62.0 + '@typescript-eslint/type-utils': 5.62.0(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.62.0(eslint@7.32.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.35.0 - ignore: 5.2.0 - natural-compare-lite: 1.4.0 - regexpp: 3.2.0 - semver: 7.3.8 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 - transitivePeerDependencies: - - supports-color - - /@typescript-eslint/eslint-plugin@5.48.1(@typescript-eslint/parser@5.48.1)(typescript@4.9.4): - resolution: {integrity: sha512-9nY5K1Rp2ppmpb9s9S2aBiF3xo5uExCehMDmYmmFqqyxgenbHJ3qbarcLt4ITgaD6r/2ypdlcFRdcuVPnks+fQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - '@typescript-eslint/parser': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - eslint: - optional: true - typescript: - optional: true - dependencies: - '@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/scope-manager': 5.48.1 - '@typescript-eslint/type-utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - debug: 4.3.4(supports-color@8.1.1) - ignore: 5.2.0 + eslint: 7.32.0 + graphemer: 1.4.0 + ignore: 5.2.4 natural-compare-lite: 1.4.0 - regexpp: 3.2.0 semver: 7.3.8 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color - /@typescript-eslint/experimental-utils@4.33.0(eslint@7.32.0)(typescript@4.9.4): + /@typescript-eslint/experimental-utils@4.33.0(eslint@7.32.0)(typescript@4.9.5): resolution: {integrity: sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q==} engines: {node: ^10.12.0 || >=12.0.0} peerDependencies: @@ -15435,10 +18189,10 @@ packages: eslint: optional: true dependencies: - '@types/json-schema': 7.0.11 + '@types/json-schema': 7.0.12 '@typescript-eslint/scope-manager': 4.33.0 '@typescript-eslint/types': 4.33.0 - '@typescript-eslint/typescript-estree': 4.33.0(typescript@4.9.4) + '@typescript-eslint/typescript-estree': 4.33.0(typescript@4.9.5) eslint: 7.32.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0(eslint@7.32.0) @@ -15447,29 +18201,7 @@ packages: - typescript dev: true - /@typescript-eslint/parser@5.27.1(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-7Va2ZOkHi5NP+AZwb5ReLgNF6nWLGTeUJfxdkVUAPPSaAdbWNnFZzLZ4EGGmmiCTg+AwlbE1KyUYTBglosSLHQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - eslint: - optional: true - typescript: - optional: true - dependencies: - '@typescript-eslint/scope-manager': 5.27.1 - '@typescript-eslint/types': 5.27.1 - '@typescript-eslint/typescript-estree': 5.27.1(typescript@4.9.4) - debug: 4.3.4(supports-color@8.1.1) - eslint: 8.35.0 - typescript: 4.9.4 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/parser@5.48.1(eslint@7.32.0)(typescript@4.9.4): + /@typescript-eslint/parser@5.48.1(eslint@7.32.0)(typescript@4.9.5): resolution: {integrity: sha512-4yg+FJR/V1M9Xoq56SF9Iygqm+r5LMXvheo6DQ7/yUWynQ4YfCRnsKuRgqH4EQ5Ya76rVwlEpw4Xu+TgWQUcdA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -15483,16 +18215,16 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.48.1 '@typescript-eslint/types': 5.48.1 - '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.4) + '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 7.32.0 - typescript: 4.9.4 + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@5.48.1(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-4yg+FJR/V1M9Xoq56SF9Iygqm+r5LMXvheo6DQ7/yUWynQ4YfCRnsKuRgqH4EQ5Ya76rVwlEpw4Xu+TgWQUcdA==} + /@typescript-eslint/parser@5.62.0(eslint@7.32.0)(typescript@4.9.5): + resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -15503,12 +18235,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.48.1 - '@typescript-eslint/types': 5.48.1 - '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.4) + '@typescript-eslint/scope-manager': 5.62.0 + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.35.0 - typescript: 4.9.4 + eslint: 7.32.0 + typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -15520,43 +18252,22 @@ packages: '@typescript-eslint/visitor-keys': 4.33.0 dev: true - /@typescript-eslint/scope-manager@5.27.1: - resolution: {integrity: sha512-fQEOSa/QroWE6fAEg+bJxtRZJTH8NTskggybogHt4H9Da8zd4cJji76gA5SBlR0MgtwF7rebxTbDKB49YUCpAg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.27.1 - '@typescript-eslint/visitor-keys': 5.27.1 - dev: true - /@typescript-eslint/scope-manager@5.48.1: resolution: {integrity: sha512-S035ueRrbxRMKvSTv9vJKIWgr86BD8s3RqoRZmsSh/s8HhIs90g6UlK8ZabUSjUZQkhVxt7nmZ63VJ9dcZhtDQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: '@typescript-eslint/types': 5.48.1 '@typescript-eslint/visitor-keys': 5.48.1 + dev: true - /@typescript-eslint/type-utils@5.27.1(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-+UC1vVUWaDHRnC2cQrCJ4QtVjpjjCgjNFpg8b03nERmkHv9JV9X5M19D7UFMd+/G7T/sgFwX2pGmWK38rqyvXw==} + /@typescript-eslint/scope-manager@5.62.0: + resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: '*' - typescript: '*' - peerDependenciesMeta: - eslint: - optional: true - typescript: - optional: true dependencies: - '@typescript-eslint/utils': 5.27.1(eslint@8.35.0)(typescript@4.9.4) - debug: 4.3.4(supports-color@8.1.1) - eslint: 8.35.0 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 - transitivePeerDependencies: - - supports-color - dev: true + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/visitor-keys': 5.62.0 - /@typescript-eslint/type-utils@5.48.1(eslint@7.32.0)(typescript@4.9.4): + /@typescript-eslint/type-utils@5.48.1(eslint@7.32.0)(typescript@4.9.5): resolution: {integrity: sha512-Hyr8HU8Alcuva1ppmqSYtM/Gp0q4JOp1F+/JH5D1IZm/bUBrV0edoewQZiEc1r6I8L4JL21broddxK8HAcZiqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -15568,18 +18279,18 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@7.32.0)(typescript@4.9.4) + '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.5) + '@typescript-eslint/utils': 5.48.1(eslint@7.32.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 7.32.0 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/type-utils@5.48.1(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-Hyr8HU8Alcuva1ppmqSYtM/Gp0q4JOp1F+/JH5D1IZm/bUBrV0edoewQZiEc1r6I8L4JL21broddxK8HAcZiqQ==} + /@typescript-eslint/type-utils@5.62.0(eslint@7.32.0)(typescript@4.9.5): + resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -15590,12 +18301,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) + '@typescript-eslint/utils': 5.62.0(eslint@7.32.0)(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.35.0 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 + eslint: 7.32.0 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -15604,16 +18315,16 @@ packages: engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1} dev: true - /@typescript-eslint/types@5.27.1: - resolution: {integrity: sha512-LgogNVkBhCTZU/m8XgEYIWICD6m4dmEDbKXESCbqOXfKZxRKeqpiJXQIErv66sdopRKZPo5l32ymNqibYEH/xg==} + /@typescript-eslint/types@5.48.1: + resolution: {integrity: sha512-xHyDLU6MSuEEdIlzrrAerCGS3T7AA/L8Hggd0RCYBi0w3JMvGYxlLlXHeg50JI9Tfg5MrtsfuNxbS/3zF1/ATg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@5.48.1: - resolution: {integrity: sha512-xHyDLU6MSuEEdIlzrrAerCGS3T7AA/L8Hggd0RCYBi0w3JMvGYxlLlXHeg50JI9Tfg5MrtsfuNxbS/3zF1/ATg==} + /@typescript-eslint/types@5.62.0: + resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - /@typescript-eslint/typescript-estree@4.33.0(typescript@4.9.4): + /@typescript-eslint/typescript-estree@4.33.0(typescript@4.9.5): resolution: {integrity: sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA==} engines: {node: ^10.12.0 || >=12.0.0} peerDependencies: @@ -15628,14 +18339,14 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.3.8 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/typescript-estree@5.27.1(typescript@4.9.4): - resolution: {integrity: sha512-DnZvvq3TAJ5ke+hk0LklvxwYsnXpRdqUY5gaVS0D4raKtbznPz71UJGnPTHEFo0GDxqLOLdMkkmVZjSpET1hFw==} + /@typescript-eslint/typescript-estree@5.48.1(typescript@4.9.5): + resolution: {integrity: sha512-Hut+Osk5FYr+sgFh8J/FHjqX6HFcDzTlWLrFqGoK5kVUN3VBHF/QzZmAsIXCQ8T/W9nQNBTqalxi1P3LSqWnRA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -15643,20 +18354,20 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.27.1 - '@typescript-eslint/visitor-keys': 5.27.1 + '@typescript-eslint/types': 5.48.1 + '@typescript-eslint/visitor-keys': 5.48.1 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 semver: 7.3.8 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/typescript-estree@5.48.1(typescript@4.9.4): - resolution: {integrity: sha512-Hut+Osk5FYr+sgFh8J/FHjqX6HFcDzTlWLrFqGoK5kVUN3VBHF/QzZmAsIXCQ8T/W9nQNBTqalxi1P3LSqWnRA==} + /@typescript-eslint/typescript-estree@5.62.0(typescript@4.9.5): + resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -15664,39 +18375,18 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.48.1 - '@typescript-eslint/visitor-keys': 5.48.1 + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/visitor-keys': 5.62.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 semver: 7.3.8 - tsutils: 3.21.0(typescript@4.9.4) - typescript: 4.9.4 - transitivePeerDependencies: - - supports-color - - /@typescript-eslint/utils@5.27.1(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-mZ9WEn1ZLDaVrhRaYgzbkXBkTPghPFsup8zDbbsYTxC5OmqrFE7skkKS/sraVsLP3TcT3Ki5CSyEFBRkLH/H/w==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - eslint: - optional: true - dependencies: - '@types/json-schema': 7.0.11 - '@typescript-eslint/scope-manager': 5.27.1 - '@typescript-eslint/types': 5.27.1 - '@typescript-eslint/typescript-estree': 5.27.1(typescript@4.9.4) - eslint: 8.35.0 - eslint-scope: 5.1.1 - eslint-utils: 3.0.0(eslint@8.35.0) + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color - - typescript - dev: true - /@typescript-eslint/utils@5.48.1(eslint@7.32.0)(typescript@4.9.4): + /@typescript-eslint/utils@5.48.1(eslint@7.32.0)(typescript@4.9.5): resolution: {integrity: sha512-SmQuSrCGUOdmGMwivW14Z0Lj8dxG1mOFZ7soeJ0TQZEJcs3n5Ndgkg0A4bcMFzBELqLJ6GTHnEU+iIoaD6hFGA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -15705,11 +18395,11 @@ packages: eslint: optional: true dependencies: - '@types/json-schema': 7.0.11 + '@types/json-schema': 7.0.12 '@types/semver': 7.3.13 '@typescript-eslint/scope-manager': 5.48.1 '@typescript-eslint/types': 5.48.1 - '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.4) + '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.5) eslint: 7.32.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0(eslint@7.32.0) @@ -15719,8 +18409,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@5.48.1(eslint@8.35.0)(typescript@4.9.4): - resolution: {integrity: sha512-SmQuSrCGUOdmGMwivW14Z0Lj8dxG1mOFZ7soeJ0TQZEJcs3n5Ndgkg0A4bcMFzBELqLJ6GTHnEU+iIoaD6hFGA==} + /@typescript-eslint/utils@5.62.0(eslint@7.32.0)(typescript@4.9.5): + resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -15728,14 +18418,14 @@ packages: eslint: optional: true dependencies: - '@types/json-schema': 7.0.11 + '@eslint-community/eslint-utils': 4.4.0(eslint@7.32.0) + '@types/json-schema': 7.0.12 '@types/semver': 7.3.13 - '@typescript-eslint/scope-manager': 5.48.1 - '@typescript-eslint/types': 5.48.1 - '@typescript-eslint/typescript-estree': 5.48.1(typescript@4.9.4) - eslint: 8.35.0 + '@typescript-eslint/scope-manager': 5.62.0 + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) + eslint: 7.32.0 eslint-scope: 5.1.1 - eslint-utils: 3.0.0(eslint@8.35.0) semver: 7.3.8 transitivePeerDependencies: - supports-color @@ -15749,236 +18439,99 @@ packages: eslint-visitor-keys: 2.1.0 dev: true - /@typescript-eslint/visitor-keys@5.27.1: - resolution: {integrity: sha512-xYs6ffo01nhdJgPieyk7HAOpjhTsx7r/oB9LWEhwAXgwn33tkr+W8DI2ChboqhZlC4q3TC6geDYPoiX8ROqyOQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.27.1 - eslint-visitor-keys: 3.3.0 - dev: true - /@typescript-eslint/visitor-keys@5.48.1: resolution: {integrity: sha512-Ns0XBwmfuX7ZknznfXozgnydyR8F6ev/KEGePP4i74uL3ArsKbEhJ7raeKr1JSa997DBDwol/4a0Y+At82c9dA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: '@typescript-eslint/types': 5.48.1 - eslint-visitor-keys: 3.4.1 - - /@umijs/ast@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-9ZqpFB4UnhBb9jPsgk8zbDZzKx3clYDc7kShDy1LcTQ2/domiO5iJgYz1ap57ykdNixleE2b2662SdXZ2SaQ6A==} - dependencies: - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/ast@4.0.71: - resolution: {integrity: sha512-hotW1XgzacAQYC6HEJVBBBuPkOklnWu2WIJs0jJRoQNHetgS+P6kK0a0CYKcA+aK6qssX4yOK10Apxpxc0h9Tg==} - dependencies: - '@umijs/bundler-utils': 4.0.71 - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/ast@4.0.75: - resolution: {integrity: sha512-L2PEzzYuvOoti1isOxfwsxZPXvK6sIdD4WewXXN5ziq2cpJOJw1nBF00KIvTXBtaQQdgQnzyh1N3S8rCCxsuCg==} - dependencies: - '@umijs/bundler-utils': 4.0.75 - transitivePeerDependencies: - - supports-color + eslint-visitor-keys: 3.4.3 dev: true - /@umijs/babel-preset-umi@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-eBQeiIUU11M1oGAWqvBpoPAbVPkapUZsZqtBd9TDpKbGoqtKPQ49F5TVXeZByE07VW3ByrJz7Y4n1dh6LaTVvQ==} + /@typescript-eslint/visitor-keys@5.62.0: + resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@babel/runtime': 7.17.9 - '@bloomberg/record-tuple-polyfill': 0.0.4 - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - core-js: 3.22.4 - transitivePeerDependencies: - - supports-color - dev: true + '@typescript-eslint/types': 5.62.0 + eslint-visitor-keys: 3.4.3 - /@umijs/babel-preset-umi@4.0.71: - resolution: {integrity: sha512-8xpDpuSxHDvA2/Z5xow5D+5ny6ZesFvmUUaOeOULATlGdo8DO2BV7V3rZvSm7jvk6r/V6hf/OZePjXu0ZNrymQ==} + /@umijs/ast@4.1.2: + resolution: {integrity: sha512-ejgp07sn4IEMf8Urxt+su9KrUWIWp0rhtnljB3XVR2A4mcVdz1jtSQbqYwQFtgn6Mp6tCMG+H1fkweRWj7+vfQ==} dependencies: - '@babel/runtime': 7.21.0 - '@bloomberg/record-tuple-polyfill': 0.0.4 - '@umijs/bundler-utils': 4.0.71 - '@umijs/utils': 4.0.71 - babel-plugin-styled-components: 2.1.1(styled-components@6.0.0-rc.0) - core-js: 3.28.0 + '@umijs/bundler-utils': 4.1.2 transitivePeerDependencies: - - styled-components - supports-color dev: true - /@umijs/babel-preset-umi@4.0.75(styled-components@6.0.0-rc.0): - resolution: {integrity: sha512-RRjOJtvOrLR0PtTb7/9xP01uzhjFsiimSnjNG2My1PXAwh1eXd2TomWzT/DYBm5WWJodp8nXgQKxt4xw0zux1A==} + /@umijs/babel-preset-umi@4.1.2: + resolution: {integrity: sha512-SdizYktVzp5ODwOQEeHzAwt+/WGUaIO/py9z1lGQdzxGfiTkEMU5hB70bh0fFKn3jOKCKTdBLw8BfIi2E/GwDQ==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@bloomberg/record-tuple-polyfill': 0.0.4 - '@umijs/bundler-utils': 4.0.75 - '@umijs/utils': 4.0.75 - babel-plugin-styled-components: 2.1.1(styled-components@6.0.0-rc.0) - core-js: 3.28.0 - transitivePeerDependencies: - - styled-components - - supports-color - dev: true - - /@umijs/bundler-esbuild@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-Zhb/yTIZ1EjFF4uqufAyLHIAmdnFXaiTa2gHOuH84OALoT0AQM1jVvPGHn9lLIiLwTihuAnCyds4Tt1/P8Wo7Q==} - dependencies: - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - enhanced-resolve: 5.9.3 - postcss: 8.4.21 - postcss-flexbugs-fixes: 5.0.2(postcss@8.4.21) - postcss-preset-env: 7.5.0(postcss@8.4.21) + '@umijs/bundler-utils': 4.1.2 + '@umijs/utils': 4.1.2 + core-js: 3.34.0 transitivePeerDependencies: - supports-color dev: true - /@umijs/bundler-esbuild@4.0.71: - resolution: {integrity: sha512-L16Pvy3r1xqpqzLQtbO6ubPkD0xTUpQlluo718SCjw6Y21DtuLB2lNN0/CpvcrO85ELU2vY8ACHB97pidPzWAw==} + /@umijs/bundler-esbuild@4.1.2: + resolution: {integrity: sha512-LcAlqoQKDUeEYmkLw2mB2T9FBOjZQsFSzCw6ZYItTV2zIdFNlH4U5slfhRqlwQbzxDgBrbPLEGl0M85CqEFE4w==} hasBin: true dependencies: - '@umijs/bundler-utils': 4.0.71 - '@umijs/utils': 4.0.71 + '@umijs/bundler-utils': 4.1.2 + '@umijs/utils': 4.1.2 enhanced-resolve: 5.9.3 - postcss: 8.4.21 - postcss-flexbugs-fixes: 5.0.2(postcss@8.4.21) - postcss-preset-env: 7.5.0(postcss@8.4.21) - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/bundler-esbuild@4.0.75: - resolution: {integrity: sha512-j+dUwFlwh0Z182Qqho3rOBKsS8oWc44UUvSeDCnpuOIxhKKurSeh6PPb+oFpqtSs62BtvYxaNaev+xmzLYzyjQ==} - hasBin: true - dependencies: - '@umijs/bundler-utils': 4.0.75 - '@umijs/utils': 4.0.75 - enhanced-resolve: 5.9.3 - postcss: 8.4.21 - postcss-flexbugs-fixes: 5.0.2(postcss@8.4.21) - postcss-preset-env: 7.5.0(postcss@8.4.21) - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/bundler-utils@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-3SQYT1O9vkMo8qqkoNfQjq9lY0upLYXQzgQqh9QmZUnN5PfJQj52REPG6TnhmdgxsEDvDfzKAhQICoAOruycMQ==} - dependencies: - '@umijs/utils': 4.0.0-canary.20220628.2 - esbuild: 0.14.36 - regenerate-unicode-properties: 10.0.1 - spdy: 4.0.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/bundler-utils@4.0.17: - resolution: {integrity: sha512-rQcn/Fp3ZO+YZbGF/89K0FGIJo5/aiYPRNDyi3mgim2RVAwv4L/qaNXbwGxUM4uKs6gH8Wodw/SZDNadDvngZA==} - dependencies: - '@umijs/utils': 4.0.17 - esbuild: 0.14.49 - regenerate: 1.4.2 - regenerate-unicode-properties: 10.0.1 - spdy: 4.0.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/bundler-utils@4.0.57: - resolution: {integrity: sha512-fIP2UeiHOZG4me7PLvFivJU2+PaG0EGKXkty6aevBLupiHv+4QKTZ95CPfRWuEQLHthqPXNn3EQDPxAeLblZ/w==} - dependencies: - '@umijs/utils': 4.0.57 - esbuild: 0.16.17 - regenerate: 1.4.2 - regenerate-unicode-properties: 10.1.0 - spdy: 4.0.2 + postcss: 8.4.35 + postcss-flexbugs-fixes: 5.0.2(postcss@8.4.35) + postcss-preset-env: 7.5.0(postcss@8.4.35) transitivePeerDependencies: - supports-color dev: true - /@umijs/bundler-utils@4.0.71: - resolution: {integrity: sha512-GMCnznsEUO+uqpjUR/xrZxahJUeM5UblLUsjoRFujcLpB9Yfgx+BVc1XTfQjtZLMfEu0CYPUeqmNsygnR/MMlg==} + /@umijs/bundler-mako@0.9.6: + resolution: {integrity: sha512-7XFs2++Oxi9f7CJ86Uj06FP2lSD7La2H11HF210eikIb6wVAebOgCKNOoZ8bPW3UPAzKWQJqc2X5NnqvuM2X6w==} dependencies: - '@umijs/utils': 4.0.71 - esbuild: 0.17.19 - regenerate: 1.4.2 - regenerate-unicode-properties: 10.1.0 - spdy: 4.0.2 + '@umijs/bundler-utils': 4.1.2 + '@umijs/mako': 0.9.6 + chalk: 4.1.2 + compression: 1.7.4 + connect-history-api-fallback: 2.0.0 + cors: 2.8.5 + express: 4.18.2 + express-http-proxy: 2.1.1 + get-tsconfig: 4.7.5 + lodash: 4.17.21 + rimraf: 5.0.1 + webpack-5-chain: 8.0.1 transitivePeerDependencies: - supports-color - dev: true + dev: false - /@umijs/bundler-utils@4.0.75: - resolution: {integrity: sha512-dYeRJ/OibTCg5gJWu+sEeDOtOgZ9uhCb0cbvtp4Wv6bz0/oyUx1rKKI6uOQU5GNH2gapwgZmI9jUE1J2rxlWJg==} + /@umijs/bundler-utils@4.1.2: + resolution: {integrity: sha512-bcN3VSgCPZjyLmQrRWPfPkuhVP0GCFyBLTxzr4vPHQTYx7FjHJcvpEbOsXoVNiBHowRA8J6PGCB/jxqRSO1yxw==} dependencies: - '@umijs/utils': 4.0.75 + '@umijs/utils': 4.1.2 esbuild: 0.17.19 regenerate: 1.4.2 - regenerate-unicode-properties: 10.1.0 + regenerate-unicode-properties: 10.1.1 spdy: 4.0.2 transitivePeerDependencies: - supports-color - dev: true - - /@umijs/bundler-vite@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-RLFUj3JaRxmws98iSQpWug/zDTKueBc694dUPd27cJMTXvgO7Mtgd3GLhqZShKw0kgPNwbvOCrpBLy0stKdx6A==} - requiresBuild: true - dependencies: - '@svgr/core': 6.2.1 - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - '@vitejs/plugin-react': 1.2.0 - postcss-preset-env: 7.5.0(postcss@8.4.21) - rollup-plugin-visualizer: 5.6.0 - transitivePeerDependencies: - - postcss - - rollup - - supports-color - dev: true - - /@umijs/bundler-vite@4.0.71(@types/node@18.11.18): - resolution: {integrity: sha512-XraQOul7GrkUalSw3lppSuN7TJOAPQitE6iAam2lVdDNiJLWrY5jBd1fE3uwCIIacXwPDBQSyEV7oZey8xaGfg==} - hasBin: true - dependencies: - '@svgr/core': 6.5.1 - '@umijs/bundler-utils': 4.0.71 - '@umijs/utils': 4.0.71 - '@vitejs/plugin-react': 4.0.0(vite@4.3.1) - less: 4.1.3 - postcss-preset-env: 7.5.0(postcss@8.4.21) - rollup-plugin-visualizer: 5.9.0(rollup@3.7.0) - vite: 4.3.1(@types/node@18.11.18)(less@4.1.3)(sass@1.65.1) - transitivePeerDependencies: - - '@types/node' - - postcss - - rollup - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - /@umijs/bundler-vite@4.0.75(@types/node@18.11.18)(sass@1.65.1): - resolution: {integrity: sha512-XyAb55tZf+wpEwcRl5tCZS8H433zaP4GCzXqdX27S38X2tSyyaVXXlFKstTv5WTmqt/2sWUSDi4+bywvbtC7yQ==} + /@umijs/bundler-vite@4.1.2(@types/node@18.19.39)(postcss@8.4.35)(sass@1.65.1): + resolution: {integrity: sha512-znqi0rb8zsh90jT8duCkGj/gcli8xEkjQDi1y6BA/dshIO9Ra4KT9riijJsaumiD+OJrABpV2DWjX7JrszzByg==} hasBin: true dependencies: '@svgr/core': 6.5.1 - '@umijs/bundler-utils': 4.0.75 - '@umijs/utils': 4.0.75 + '@umijs/bundler-utils': 4.1.2 + '@umijs/utils': 4.1.2 '@vitejs/plugin-react': 4.0.0(vite@4.3.1) + core-js: 3.34.0 less: 4.1.3 - postcss-preset-env: 7.5.0(postcss@8.4.21) + postcss-preset-env: 7.5.0(postcss@8.4.35) rollup-plugin-visualizer: 5.9.0(rollup@3.7.0) - vite: 4.3.1(@types/node@18.11.18)(less@4.1.3)(sass@1.65.1) + systemjs: 6.14.3 + vite: 4.3.1(@types/node@18.19.39)(less@4.1.3)(sass@1.65.1) transitivePeerDependencies: - '@types/node' - postcss @@ -15990,69 +18543,34 @@ packages: - terser dev: true - /@umijs/bundler-webpack@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-tuV7dZgpju6FrWOPI4PPg8Lk5GKU0gMB3TQh4wDMfPYJgLrPu587ztFXVqtOwCip2D2Y6OH5EAO+2oKuWBt5Lg==} - hasBin: true - dependencies: - '@parcel/css': 1.9.0 - '@pmmmwh/react-refresh-webpack-plugin': 0.5.7 - '@svgr/core': 6.2.1 - '@svgr/plugin-jsx': 6.5.1(@svgr/core@6.2.1) - '@svgr/plugin-svgo': 6.5.1(@svgr/core@6.2.1) - '@types/hapi__joi': 17.1.8 - '@umijs/babel-preset-umi': 4.0.0-canary.20220628.2 - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/mfsu': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - cors: 2.8.5 - css-loader: 6.7.1(webpack@5.76.1) - es5-imcompatible-versions: 0.1.78 - jest-worker: 27.5.1 - node-libs-browser: 2.2.1 - postcss: 8.4.21 - postcss-preset-env: 7.5.0(postcss@8.4.21) - react-error-overlay: 6.0.9 - transitivePeerDependencies: - - '@types/webpack' - - react-refresh - - sockjs-client - - supports-color - - type-fest - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: true - - /@umijs/bundler-webpack@4.0.71(typescript@4.8.4): - resolution: {integrity: sha512-VeiApfpi2SUC63mhAjOqQhFjORZ8xG7kUNeDnCNxCSRao2MJ5h7vcD9rMcNln69OlN6Urtc1gIS7znKHbm9THA==} + /@umijs/bundler-webpack@4.1.2(typescript@4.8.4): + resolution: {integrity: sha512-rCf+H/k1Ru/twlCvAlqjjRIZRZJNZmaXpROaQ6VviPDj1F5YLDWMCunvdGf8KOeBVTLy4syhdxn95ZIyKcPpPA==} hasBin: true dependencies: - '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.14.0)(webpack@5.76.1) '@svgr/core': 6.5.1 '@svgr/plugin-jsx': 6.5.1(@svgr/core@6.5.1) '@svgr/plugin-svgo': 6.5.1(@svgr/core@6.5.1) '@types/hapi__joi': 17.1.9 - '@umijs/babel-preset-umi': 4.0.71 - '@umijs/bundler-utils': 4.0.71 + '@umijs/babel-preset-umi': 4.1.2 + '@umijs/bundler-utils': 4.1.2 '@umijs/case-sensitive-paths-webpack-plugin': 1.0.1 - '@umijs/mfsu': 4.0.71 - '@umijs/utils': 4.0.71 + '@umijs/mfsu': 4.1.2 + '@umijs/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0)(webpack@5.88.2) + '@umijs/utils': 4.1.2 cors: 2.8.5 - css-loader: 6.7.1(webpack@5.76.1) - es5-imcompatible-versions: 0.1.78 + css-loader: 6.7.1(webpack@5.88.2) + es5-imcompatible-versions: 0.1.89 fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.8.4) jest-worker: 29.4.3 - lightningcss: 1.19.0 + lightningcss: 1.22.1 node-libs-browser: 2.2.1 - postcss: 8.4.21 - postcss-preset-env: 7.5.0(postcss@8.4.21) + postcss: 8.4.35 + postcss-preset-env: 7.5.0(postcss@8.4.35) react-error-overlay: 6.0.9 react-refresh: 0.14.0 transitivePeerDependencies: - '@types/webpack' - sockjs-client - - styled-components - supports-color - type-fest - typescript @@ -16062,73 +18580,34 @@ packages: - webpack-plugin-serve dev: true - /@umijs/bundler-webpack@4.0.71(typescript@4.9.4): - resolution: {integrity: sha512-VeiApfpi2SUC63mhAjOqQhFjORZ8xG7kUNeDnCNxCSRao2MJ5h7vcD9rMcNln69OlN6Urtc1gIS7znKHbm9THA==} + /@umijs/bundler-webpack@4.1.2(typescript@4.9.5): + resolution: {integrity: sha512-rCf+H/k1Ru/twlCvAlqjjRIZRZJNZmaXpROaQ6VviPDj1F5YLDWMCunvdGf8KOeBVTLy4syhdxn95ZIyKcPpPA==} hasBin: true dependencies: - '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.14.0)(webpack@5.76.1) '@svgr/core': 6.5.1 '@svgr/plugin-jsx': 6.5.1(@svgr/core@6.5.1) '@svgr/plugin-svgo': 6.5.1(@svgr/core@6.5.1) '@types/hapi__joi': 17.1.9 - '@umijs/babel-preset-umi': 4.0.71 - '@umijs/bundler-utils': 4.0.71 + '@umijs/babel-preset-umi': 4.1.2 + '@umijs/bundler-utils': 4.1.2 '@umijs/case-sensitive-paths-webpack-plugin': 1.0.1 - '@umijs/mfsu': 4.0.71 - '@umijs/utils': 4.0.71 + '@umijs/mfsu': 4.1.2 + '@umijs/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0)(webpack@5.88.2) + '@umijs/utils': 4.1.2 cors: 2.8.5 - css-loader: 6.7.1(webpack@5.76.1) - es5-imcompatible-versions: 0.1.78 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.9.4)(webpack@5.76.1) + css-loader: 6.7.1(webpack@5.88.2) + es5-imcompatible-versions: 0.1.89 + fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.9.5)(webpack@5.88.2) jest-worker: 29.4.3 - lightningcss: 1.19.0 + lightningcss: 1.22.1 node-libs-browser: 2.2.1 - postcss: 8.4.21 - postcss-preset-env: 7.5.0(postcss@8.4.21) - react-error-overlay: 6.0.9 - react-refresh: 0.14.0 - transitivePeerDependencies: - - '@types/webpack' - - sockjs-client - - styled-components - - supports-color - - type-fest - - typescript - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: true - - /@umijs/bundler-webpack@4.0.75(styled-components@6.0.0-rc.0)(typescript@4.9.4): - resolution: {integrity: sha512-T+Kuxg5ujvQeLMZe9wNVjFU0kjQa5WzuJmi5pAvw840W+k2Z3NyyzbMFC2mS8UYxVoHdVrtmfLuR3Epe0TSOPg==} - hasBin: true - dependencies: - '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.14.0)(webpack@5.76.1) - '@svgr/core': 6.5.1 - '@svgr/plugin-jsx': 6.5.1(@svgr/core@6.5.1) - '@svgr/plugin-svgo': 6.5.1(@svgr/core@6.5.1) - '@types/hapi__joi': 17.1.9 - '@umijs/babel-preset-umi': 4.0.75(styled-components@6.0.0-rc.0) - '@umijs/bundler-utils': 4.0.75 - '@umijs/case-sensitive-paths-webpack-plugin': 1.0.1 - '@umijs/mfsu': 4.0.75 - '@umijs/utils': 4.0.75 - cors: 2.8.5 - css-loader: 6.7.1(webpack@5.76.1) - es5-imcompatible-versions: 0.1.78 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.9.4)(webpack@5.76.1) - jest-worker: 29.4.3 - lightningcss: 1.19.0 - node-libs-browser: 2.2.1 - postcss: 8.4.21 - postcss-preset-env: 7.5.0(postcss@8.4.21) + postcss: 8.4.35 + postcss-preset-env: 7.5.0(postcss@8.4.35) react-error-overlay: 6.0.9 react-refresh: 0.14.0 transitivePeerDependencies: - '@types/webpack' - sockjs-client - - styled-components - supports-color - type-fest - typescript @@ -16141,29 +18620,11 @@ packages: /@umijs/case-sensitive-paths-webpack-plugin@1.0.1: resolution: {integrity: sha512-kDKJ8yTarxwxGJDInG33hOpaQRZ//XpNuuznQ/1Mscypw6kappzFmrBr2dOYave++K7JHouoANF354UpbEQw0Q==} - /@umijs/core@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-BLor3jAdNpXX8pi8e5S/MIXR2v5cBNZA3cPepiCEc3JiKXqnu4WEB9XE8a5s7TxHHtMS6j8ZF0VZ6jLnQSgLXw==} + /@umijs/core@4.1.2: + resolution: {integrity: sha512-OZlZKG+26coItwPJBtPmqB2zGSnVJqi/BVFm4MYB3fDtY5+/KmPCSXur/FJvpmRInoVAJkahbsycmMh+dUT0wQ==} dependencies: - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/core@4.0.71: - resolution: {integrity: sha512-nXtRicU2ymtpPFQT9UYL2wqXbXGFoe3/zfQE0/8LCgfAClx5zuqaqbCubS8yZmJlXbK0XRiyHntVfDq2MgK89Q==} - dependencies: - '@umijs/bundler-utils': 4.0.71 - '@umijs/utils': 4.0.71 - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/core@4.0.75: - resolution: {integrity: sha512-yTG22CXxpq4VmAIOv8IlaL11lDKTfLvASSfKQTYIkb0tGWlCJDt1DzKk+ENhpmTYPOZLaYjAdGgJZCFrWfrESw==} - dependencies: - '@umijs/bundler-utils': 4.0.75 - '@umijs/utils': 4.0.75 + '@umijs/bundler-utils': 4.1.2 + '@umijs/utils': 4.1.2 transitivePeerDependencies: - supports-color dev: true @@ -16266,35 +18727,35 @@ packages: resolution: {integrity: sha512-tiqKWYFwK9dgrdC8U1IjdIqeIv6W3NhROJHb07u1D72KWpGoN2U7/gVRtyMq7psBSK4EwHyXL6sFtIGUibs2ng==} dependencies: '@babel/core': 7.22.5 - '@babel/eslint-parser': 7.19.1(@babel/core@7.22.5)(eslint@7.32.0) + '@babel/eslint-parser': 7.23.3(@babel/core@7.22.5)(eslint@7.32.0) '@babel/plugin-proposal-class-properties': 7.18.6(@babel/core@7.22.5) '@babel/plugin-proposal-decorators': 7.22.5(@babel/core@7.22.5) '@babel/preset-env': 7.22.5(@babel/core@7.22.5) '@babel/preset-react': 7.22.5(@babel/core@7.22.5) '@babel/preset-typescript': 7.22.5(@babel/core@7.22.5) - '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@7.32.0)(typescript@4.9.4) - '@typescript-eslint/parser': 5.48.1(eslint@7.32.0)(typescript@4.9.4) + '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.62.0(eslint@7.32.0)(typescript@4.9.5) chalk: 4.1.2 eslint: 7.32.0 eslint-config-prettier: 8.5.0(eslint@7.32.0) eslint-formatter-pretty: 4.1.0 eslint-plugin-babel: 5.3.1(eslint@7.32.0) - eslint-plugin-jest: 24.7.0(@typescript-eslint/eslint-plugin@5.48.1)(eslint@7.32.0)(typescript@4.9.4) + eslint-plugin-jest: 24.7.0(@typescript-eslint/eslint-plugin@5.62.0)(eslint@7.32.0)(typescript@4.9.5) eslint-plugin-promise: 6.1.1(eslint@7.32.0) - eslint-plugin-react: 7.32.2(eslint@7.32.0) + eslint-plugin-react: 7.33.2(eslint@7.32.0) eslint-plugin-react-hooks: 4.6.0(eslint@7.32.0) eslint-plugin-unicorn: 20.1.0(eslint@7.32.0) fast-glob: 3.2.12 os-locale: 5.0.0 - prettier: 2.8.8 - prettier-plugin-packagejson: 2.4.3(prettier@2.8.8) - prettier-plugin-two-style-order: 1.0.1(prettier@2.8.8) + prettier: 2.8.4 + prettier-plugin-packagejson: 2.4.3(prettier@2.8.4) + prettier-plugin-two-style-order: 1.0.1(prettier@2.8.4) stylelint: 13.13.1 stylelint-config-css-modules: 2.3.0(stylelint@13.13.1) stylelint-config-prettier: 8.0.2(stylelint@13.13.1) stylelint-config-standard: 20.0.0(stylelint@13.13.1) stylelint-declaration-block-no-ignored-properties: 2.5.0(stylelint@13.13.1) - typescript: 4.9.4 + typescript: 4.9.5 transitivePeerDependencies: - postcss-jsx - postcss-markdown @@ -16311,14 +18772,14 @@ packages: '@babel/preset-env': 7.20.2(@babel/core@7.20.12) '@babel/preset-react': 7.18.6(@babel/core@7.20.12) '@babel/preset-typescript': 7.18.6(@babel/core@7.20.12) - '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@7.32.0)(typescript@4.9.4) - '@typescript-eslint/parser': 5.48.1(eslint@7.32.0)(typescript@4.9.4) + '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.48.1(eslint@7.32.0)(typescript@4.9.5) chalk: 4.1.2 eslint: 7.32.0 eslint-config-prettier: 8.5.0(eslint@7.32.0) eslint-formatter-pretty: 4.1.0 eslint-plugin-babel: 5.3.1(eslint@7.32.0) - eslint-plugin-jest: 24.7.0(@typescript-eslint/eslint-plugin@5.48.1)(eslint@7.32.0)(typescript@4.9.4) + eslint-plugin-jest: 24.7.0(@typescript-eslint/eslint-plugin@5.48.1)(eslint@7.32.0)(typescript@4.9.5) eslint-plugin-promise: 6.1.1(eslint@7.32.0) eslint-plugin-react: 7.29.4(eslint@7.32.0) eslint-plugin-react-hooks: 4.5.0(eslint@7.32.0) @@ -16326,7 +18787,7 @@ packages: fast-glob: 3.2.12 os-locale: 5.0.0 prettier: 2.8.8 - prettier-plugin-organize-imports: 3.2.1(prettier@2.8.8)(typescript@4.9.4) + prettier-plugin-organize-imports: 3.2.1(prettier@2.8.8)(typescript@4.9.5) prettier-plugin-packagejson: 2.3.0(prettier@2.8.8) prettier-plugin-two-style-order: 1.0.1(prettier@2.8.8) stylelint: 13.13.1 @@ -16334,7 +18795,7 @@ packages: stylelint-config-prettier: 8.0.2(stylelint@13.13.1) stylelint-config-standard: 20.0.0(stylelint@13.13.1) stylelint-declaration-block-no-ignored-properties: 2.5.0(stylelint@13.13.1) - typescript: 4.9.4 + typescript: 4.9.5 transitivePeerDependencies: - '@volar/vue-language-plugin-pug' - '@volar/vue-typescript' @@ -16346,23 +18807,23 @@ packages: /@umijs/history@5.3.1: resolution: {integrity: sha512-/e0cEGrR2bIWQD7pRl3dl9dcyRGeC9hoW0OCvUTT/hjY0EfUrkd6G8ZanVghPMpDuY5usxq9GVcvrT8KNXLWvA==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.2 query-string: 6.14.1 - /@umijs/lint@4.0.0-canary.20220628.2(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4): - resolution: {integrity: sha512-mgysJc3vwrGCJ4WtzcaY3F8K3bBtihVMJkOoS5dZyqRsRcZCIEKQamuvyrqQudQCuuLfwPre9+OXjdlcjdNXLg==} - dependencies: - '@babel/core': 7.17.9 - '@babel/eslint-parser': 7.17.0(@babel/core@7.17.9)(eslint@8.35.0) - '@stylelint/postcss-css-in-js': 0.38.0(postcss-syntax@0.36.2)(postcss@8.4.21) - '@typescript-eslint/eslint-plugin': 5.27.1(@typescript-eslint/parser@5.27.1)(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/parser': 5.27.1(eslint@8.35.0)(typescript@4.9.4) - '@umijs/babel-preset-umi': 4.0.0-canary.20220628.2 - eslint-plugin-jest: 26.1.5(@typescript-eslint/eslint-plugin@5.27.1)(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4) - eslint-plugin-react: 7.29.4(eslint@8.35.0) - eslint-plugin-react-hooks: 4.5.0(eslint@8.35.0) - postcss: 8.4.21 - postcss-syntax: 0.36.2(postcss-less@6.0.0)(postcss@8.4.21) + /@umijs/lint@4.1.2(jest@29.7.0)(typescript@4.9.5): + resolution: {integrity: sha512-sdau5ICWOtyEsQrRHuS5wx4iPZhu56DGrxZkASAXGtQxntoJeWzx/e+qAhdsiFiWZrNXbbOOdlafpGyLy6BoKA==} + dependencies: + '@babel/core': 7.23.6 + '@babel/eslint-parser': 7.23.3(@babel/core@7.23.6)(eslint@7.32.0) + '@stylelint/postcss-css-in-js': 0.38.0(postcss-syntax@0.36.2)(postcss@8.4.35) + '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.62.0(eslint@7.32.0)(typescript@4.9.5) + '@umijs/babel-preset-umi': 4.1.2 + eslint-plugin-jest: 27.2.3(@typescript-eslint/eslint-plugin@5.62.0)(jest@29.7.0)(typescript@4.9.5) + eslint-plugin-react: 7.33.2(eslint@7.32.0) + eslint-plugin-react-hooks: 4.6.0(eslint@7.32.0) + postcss: 8.4.35 + postcss-syntax: 0.36.2(postcss@8.4.35) stylelint-config-standard: 25.0.0 transitivePeerDependencies: - eslint @@ -16377,135 +18838,158 @@ packages: - typescript dev: true - /@umijs/lint@4.0.71(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4): - resolution: {integrity: sha512-HdelctsQPBvqHGfb/K5wOQHVoVTK+2b3PsmUIWm5RfaUhpfRhVpWE3j9UvKJlqj1CbL4e7Go4bGWUbOZwEpi8g==} - dependencies: - '@babel/core': 7.21.0 - '@babel/eslint-parser': 7.19.1(@babel/core@7.21.0)(eslint@8.35.0) - '@stylelint/postcss-css-in-js': 0.38.0(postcss-syntax@0.36.2)(postcss@8.4.21) - '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - '@umijs/babel-preset-umi': 4.0.71 - eslint-plugin-jest: 27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4) - eslint-plugin-react: 7.32.2(eslint@8.35.0) - eslint-plugin-react-hooks: 4.6.0(eslint@8.35.0) - postcss: 8.4.21 - postcss-syntax: 0.36.2(postcss-less@6.0.0)(postcss@8.4.21) - stylelint-config-standard: 25.0.0 - transitivePeerDependencies: - - eslint - - jest - - postcss-html - - postcss-jsx - - postcss-less - - postcss-markdown - - postcss-scss - - styled-components - - stylelint - - supports-color - - typescript - dev: true + /@umijs/mako-darwin-arm64@0.9.6: + resolution: {integrity: sha512-AvYzWOornkq4LUio4RSMWmWwjceyH1CTNzyia85RYYLnjT+JaJZsJVF2R9CyFSDaaM80uoQLihCB2u/Tl87BQg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@umijs/mako-darwin-x64@0.9.6: + resolution: {integrity: sha512-t/PHtUFdt8sUcoTQ5VxUV6RnA/aOsvYXe250CnmZQwM7EqNStuQQ1FyhoGQj1XV94WRGSmKb36ISjO4svaLP1Q==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@umijs/mako-linux-arm64-gnu@0.9.6: + resolution: {integrity: sha512-9eL3o3uVSEhUbkdsesv1rBjqtP3XfKrwsfgLsaPvJqgbORBeWOsppmWjNotmJsbxKaQIZBJeb3ZxxrD9iYpW/g==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@umijs/mako-linux-arm64-musl@0.9.6: + resolution: {integrity: sha512-7ozS0sK5wyWqge0I8vSNF1oO2OssXMMoHgj9u5i+7dHY/ayyBx+xB/PbnVYofMJOmZUKjEnFezK62llUaeF/4w==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@umijs/mako-linux-x64-gnu@0.9.6: + resolution: {integrity: sha512-sMfgQcurFOOXGtV/+4vJQu+iAmJ4RDb6J+3m464cKvnBDNM9I+Ye7UGhO+krJZbPN2EheliEN5AWcvKILQeEeA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@umijs/mako-linux-x64-musl@0.9.6: + resolution: {integrity: sha512-uDfMGIbH2mq1HoQOeUmQqqBf4emcG3y0s9dKQu3P9sW93EWK35qUHBfuhYeRP7d6/ljfNhB35Bqe6SHU/KV4cw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@umijs/mako-win32-ia32-msvc@0.9.6: + resolution: {integrity: sha512-h7nRPSD77sQAFFd5IyGa8+qctrbU4/QHsfPXZeikYDM9TvqkK7Z61Aixcm5YgAFmyKgtftHJZc7BEOHMoYu7QQ==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false + optional: true - /@umijs/lint@4.0.75(jest@29.4.3)(styled-components@6.0.0-rc.0)(typescript@4.9.4): - resolution: {integrity: sha512-KcGwV2ebnUtd5uAoanQLlzetqSHaNwK7pu6tenYyRPPRwGiN0Tr2qKF+78fyNMKBQfxuLxZjTr8bKgTW9XZMog==} + /@umijs/mako-win32-x64-msvc@0.9.6: + resolution: {integrity: sha512-xtJmfj8pdABLoosHNyzgCILhgrXn/VE8YsBUiKa88w4OpnZ0KHwMM8AhYZO06Fy88u+lOk7vVUB7/GuyAxY8JA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@umijs/mako@0.9.6: + resolution: {integrity: sha512-IZIyPXB4QgJvD93XHXkKE/F4qao2Ie1m5DTZzzpLytGvNm1NUmygMtaYj8t39N4AtKEx5lPrBxApzBIwF2sUew==} + engines: {node: '>= 16'} + hasBin: true dependencies: - '@babel/core': 7.21.0 - '@babel/eslint-parser': 7.19.1(@babel/core@7.21.0)(eslint@8.35.0) - '@stylelint/postcss-css-in-js': 0.38.0(postcss-syntax@0.36.2)(postcss@8.4.21) - '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(typescript@4.9.4) - '@typescript-eslint/parser': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - '@umijs/babel-preset-umi': 4.0.75(styled-components@6.0.0-rc.0) - eslint-plugin-jest: 27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(jest@29.4.3)(typescript@4.9.4) - eslint-plugin-react: 7.32.2(eslint@8.35.0) - eslint-plugin-react-hooks: 4.6.0(eslint@8.35.0) - postcss: 8.4.21 - postcss-syntax: 0.36.2(postcss-less@6.0.0)(postcss@8.4.21) - stylelint-config-standard: 25.0.0 - transitivePeerDependencies: - - eslint - - jest - - postcss-html - - postcss-jsx - - postcss-less - - postcss-markdown - - postcss-scss - - styled-components - - stylelint - - supports-color - - typescript - dev: true + '@swc/helpers': 0.5.1 + '@types/resolve': 1.20.6 + chalk: 4.1.2 + less: 4.2.0 + less-plugin-resolve: 1.0.2 + lodash: 4.17.21 + node-libs-browser-okam: 2.2.5 + piscina: 4.6.0 + react-error-overlay: 6.0.9 + react-refresh: 0.14.0 + resolve: 1.22.8 + semver: 7.6.2 + yargs-parser: 21.1.1 + optionalDependencies: + '@umijs/mako-darwin-arm64': 0.9.6 + '@umijs/mako-darwin-x64': 0.9.6 + '@umijs/mako-linux-arm64-gnu': 0.9.6 + '@umijs/mako-linux-arm64-musl': 0.9.6 + '@umijs/mako-linux-x64-gnu': 0.9.6 + '@umijs/mako-linux-x64-musl': 0.9.6 + '@umijs/mako-win32-ia32-msvc': 0.9.6 + '@umijs/mako-win32-x64-msvc': 0.9.6 + dev: false - /@umijs/max-plugin-openapi@1.0.7(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4): - resolution: {integrity: sha512-n+TgrEvDuhHB3FoYVEh/taBLjE84j9wczEBgMpRNz84N+k0uvHdnnSthxEmlWlEDauDnVO6dAnAyWfS8LlP5LQ==} + /@umijs/max-plugin-openapi@2.0.3: + resolution: {integrity: sha512-pV2GLscYHdOYNbQ1jgC+s99CGYFHegT/B+uRWVomL6+2mCdm9mP/KDSzGjkLZpL7PeXDlfPMsx/vSqAvDBGE2A==} dependencies: - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/openapi': 1.8.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - rimraf: 3.0.2 + '@umijs/openapi': 1.11.1 + rimraf: 4.4.1 serve-static: 1.15.0 - swagger-ui-dist: 4.15.0 - umi: 4.0.0-canary.20220628.2(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4) + swagger-ui-dist: 4.19.1 transitivePeerDependencies: - - '@types/webpack' - chokidar - encoding - - eslint - - jest - - postcss - - postcss-html - postcss-jsx - - postcss-less - postcss-markdown - - postcss-scss - - prettier - - react - - react-dom - - react-refresh - - rollup - - sockjs-client - - stylelint - - supports-color - - type-fest - - typescript - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: true - - /@umijs/mfsu@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-9Amd+/zj2A9PttvZvuC22K2AQwWFoX+FrXNvxQgUcYex6ygFxJQVGa9gzM26Q+cnW3Sv391E3Qw3az48prAfhA==} - dependencies: - '@umijs/bundler-esbuild': 4.0.0-canary.20220628.2 - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - enhanced-resolve: 5.9.3 - is-equal: 1.6.4 - transitivePeerDependencies: - supports-color dev: true - /@umijs/mfsu@4.0.71: - resolution: {integrity: sha512-T8M4oTBbli+RyHKLDR/sZdDZYmF4qHbQ6TTPTB85xKFX/Ww5jfdc4+6LuODuvH0w+tbKIVm5W//gKAx67dQCkg==} + /@umijs/mfsu@4.1.2: + resolution: {integrity: sha512-PxkSdQWR0323B1PKLjn2F3ZLfxByg3MmwgRipUbwX3dC8ae9kqIR5wEB2bfL1uXSg9x63o2JMsv5/ObfhrsmYw==} dependencies: - '@umijs/bundler-esbuild': 4.0.71 - '@umijs/bundler-utils': 4.0.71 - '@umijs/utils': 4.0.71 + '@umijs/bundler-esbuild': 4.1.2 + '@umijs/bundler-utils': 4.1.2 + '@umijs/utils': 4.1.2 enhanced-resolve: 5.9.3 - is-equal: 1.6.4 + is-equal: 1.7.0 transitivePeerDependencies: - supports-color dev: true - /@umijs/mfsu@4.0.75: - resolution: {integrity: sha512-cIXuXtf9HYbHBpXjdlGiVjlSiWFuH5/00zn4QzXOGnwc2sS+Br23839dfeNMx6+1VvUYrjhDYe/T5fKNlzBv0Q==} + /@umijs/openapi@1.11.1: + resolution: {integrity: sha512-s5eUvV/j7SPzyWBR4qqKxVTbHofC51aTuGSF2TmqCJwkto9ve9P8Prynuz35JJ6jboPMas0HdYZ1ZskM+WIMAQ==} dependencies: - '@umijs/bundler-esbuild': 4.0.75 - '@umijs/bundler-utils': 4.0.75 - '@umijs/utils': 4.0.75 - enhanced-resolve: 5.9.3 - is-equal: 1.6.4 + '@umijs/fabric': 2.14.0 + chalk: 4.1.2 + dayjs: 1.11.7 + glob: 7.2.3 + lodash: 4.17.21 + memoizee: 0.4.15 + mock.js: 0.2.0 + mockjs: 1.1.0 + node-fetch: 2.7.0 + nunjucks: 3.2.3 + openapi3-ts: 2.0.2 + prettier: 2.8.4 + reserved-words: 0.1.2 + rimraf: 3.0.2 + swagger2openapi: 7.0.8 + tiny-pinyin: 1.3.2 transitivePeerDependencies: + - chokidar + - encoding + - postcss-jsx + - postcss-markdown - supports-color dev: true @@ -16536,80 +19020,41 @@ packages: - supports-color dev: true - /@umijs/plugin-run@4.0.71: - resolution: {integrity: sha512-6tbfUFV9JvOu0lWleMB12VfyA5g/PtrkdX79dwo/AjkWW6r9YTmDRCYdnl/UE+sWDqp+sP0eOxWBIUdAOgoEhg==} - dependencies: - tsx: 3.12.2 - dev: true - - /@umijs/plugin-run@4.0.75: - resolution: {integrity: sha512-kBI3YGT5mWhd5A/0OUVqBBe0vdmZfxS/mAFtzgTWu4vcDXaS75g+jBp/xCajQLF4bP9LAq4uI5T2ssy8bFPs9Q==} + /@umijs/plugin-run@4.1.2: + resolution: {integrity: sha512-SkCOd1ZMe5zJp0avxC0UWr4/MK4QU3iqMzNOk6kBYPMIZgsNSn+6+iol+Sb3aqn3RzU3TQWHeKtO2ckZyrD+vw==} dependencies: tsx: 3.12.2 dev: true - /@umijs/plugin-umi-request-compat@1.0.0(react@18.1.0)(umi@packages+umi): + /@umijs/plugin-umi-request-compat@1.0.0(react@18.3.1)(umi@packages+umi): resolution: {integrity: sha512-pKriKDwfTMlZykDnAPM+az+KK13R2eCHmsTGYJVjINgFvwY0200um9z2LdPp0xux0Xu1sDcj9Dm8L4j/kzTSbw==} peerDependencies: umi: '4' dependencies: - '@ahooksjs/use-request': 2.8.15(react@18.1.0) + '@ahooksjs/use-request': 2.8.15(react@18.3.1) umi: link:packages/umi umi-request: 1.4.0 transitivePeerDependencies: - react dev: false - /@umijs/plugins@4.0.17(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-eFTJj/V9M4Pv0kp7VaPVpKcSPpXpostw0eU14W1oFiEXnCNz7fXt7qvfVbJXFFEj3Juu+FLj5pPK310Ns6UnZA==} - dependencies: - '@ahooksjs/use-request': 2.8.15(react@17.0.2) - '@ant-design/antd-theme-variable': 1.0.0 - '@ant-design/icons': 4.7.0(react-dom@17.0.2)(react@17.0.2) - '@ant-design/pro-layout': 7.1.9(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) - '@umijs/bundler-utils': 4.0.17 - antd-dayjs-webpack-plugin: 1.0.6(dayjs@1.11.7) - axios: 0.27.2(debug@4.3.4) - babel-plugin-import: 1.13.6 - dayjs: 1.11.7 - dva-core: 2.0.4(redux@4.2.1) - dva-immer: 1.0.0 - dva-loading: 3.0.22(dva-core@2.0.4) - event-emitter: 0.3.5 - fast-deep-equal: 3.1.3 - lodash: 4.17.21 - moment: 2.29.4 - qiankun: 2.10.1 - react-intl: 3.12.1(react@17.0.2) - react-redux: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@17.0.2)(react@17.0.2)(redux@4.2.1) - redux: 4.2.1 - warning: 4.0.3 - transitivePeerDependencies: - - '@types/react' - - '@types/react-dom' - - antd - - debug - - dva - - react - - react-dom - - react-native - - supports-color - dev: true - - /@umijs/plugins@4.0.57(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-DeaZaTvpI7MvMWVHsDHoP0yEf1bkA89eRTULXJaQ97LKy9Xg0FL/xLH0cr7VtmFQGET+cC+8CWR83scJcXDm8w==} + /@umijs/plugins@4.1.2(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-BcM+8WW8L8qByiVYHzzxzbXGUpbrCg2F1R1yjsD+uev8YQ0epI6X+Kzn0Np7/e7aPEJA737272Gvv088GCaBqQ==} dependencies: '@ahooksjs/use-request': 2.8.15(react@17.0.2) '@ant-design/antd-theme-variable': 1.0.0 + '@ant-design/cssinjs': 1.21.0(react-dom@17.0.2)(react@17.0.2) '@ant-design/icons': 4.7.0(react-dom@17.0.2)(react@17.0.2) + '@ant-design/moment-webpack-plugin': 0.0.3 '@ant-design/pro-components': 2.3.20(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) '@tanstack/react-query': 4.24.10(react-dom@17.0.2)(react@17.0.2) '@tanstack/react-query-devtools': 4.24.10(@tanstack/react-query@4.24.10)(react-dom@17.0.2)(react@17.0.2) - '@umijs/bundler-utils': 4.0.57 - '@umijs/valtio': 1.0.3(react@17.0.2) + '@umijs/bundler-utils': 4.1.2 + '@umijs/valtio': 1.0.4(@types/react@18.0.26)(react@17.0.2) antd-dayjs-webpack-plugin: 1.0.6(dayjs@1.11.7) axios: 0.27.2(debug@4.3.4) - babel-plugin-import: 1.13.6 + babel-plugin-import: 1.13.8 + babel-plugin-styled-components: 2.1.4(styled-components@6.1.1) dayjs: 1.11.7 dva-core: 2.0.4(redux@4.2.1) dva-immer: 1.0.0 @@ -16623,15 +19068,15 @@ packages: react-intl: 3.12.1(react@17.0.2) react-redux: 8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@17.0.2)(react@17.0.2)(redux@4.2.1) redux: 4.2.1 - styled-components: 6.0.0-beta.9(react-dom@17.0.2)(react@17.0.2) - tslib: 2.5.0 + styled-components: 6.1.1(react-dom@17.0.2)(react@17.0.2) + tslib: 2.6.2 warning: 4.0.3 transitivePeerDependencies: + - '@babel/core' - '@types/lodash.merge' - '@types/react' - '@types/react-dom' - antd - - babel-plugin-styled-components - debug - dva - rc-field-form @@ -16641,131 +19086,39 @@ packages: - supports-color dev: true - /@umijs/preset-umi@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-ZDYZ4FmM5dOkl0kgfDx24hfobMSxl91bVvDKyvpfaDpvjnB3zF772G8yJMU5s7NwsoChfWYh7ygr5XEIOZHzgA==} - dependencies: - '@types/multer': 1.4.7 - '@umijs/ast': 4.0.0-canary.20220628.2 - '@umijs/babel-preset-umi': 4.0.0-canary.20220628.2 - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/bundler-vite': 4.0.0-canary.20220628.2 - '@umijs/bundler-webpack': 4.0.0-canary.20220628.2 - '@umijs/core': 4.0.0-canary.20220628.2 - '@umijs/renderer-react': 4.0.0-canary.20220628.2(react-dom@18.1.0)(react@18.1.0) - '@umijs/server': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - core-js: 3.22.4 - current-script-polyfill: 1.0.0 - enhanced-resolve: 5.9.3 - magic-string: 0.26.2 - path-to-regexp: 1.7.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-router: 6.3.0(react@18.1.0) - react-router-dom: 6.3.0(react-dom@18.1.0)(react@18.1.0) - regenerator-runtime: 0.13.9 - transitivePeerDependencies: - - '@types/webpack' - - postcss - - react-refresh - - rollup - - sockjs-client - - supports-color - - type-fest - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: true - - /@umijs/preset-umi@4.0.71(@types/node@18.11.18)(@types/react@18.0.26)(typescript@4.9.4): - resolution: {integrity: sha512-+cEluoWaHLpbb1ywEgELJ3O2cMlh7a8I9gf595J2jyqNcuiQ/JzFpWQZZVHCNkENdtqcfWsUJ5u5l1a+yF1bRg==} - dependencies: - '@iconify/utils': 2.1.1 - '@svgr/core': 6.5.1 - '@umijs/ast': 4.0.71 - '@umijs/babel-preset-umi': 4.0.71 - '@umijs/bundler-esbuild': 4.0.71 - '@umijs/bundler-utils': 4.0.71 - '@umijs/bundler-vite': 4.0.71(@types/node@18.11.18) - '@umijs/bundler-webpack': 4.0.71(typescript@4.9.4) - '@umijs/core': 4.0.71 - '@umijs/did-you-know': 1.0.3 - '@umijs/es-module-parser': 0.0.7 - '@umijs/history': 5.3.1 - '@umijs/mfsu': 4.0.71 - '@umijs/plugin-run': 4.0.71 - '@umijs/renderer-react': 4.0.71(react-dom@18.1.0)(react@18.1.0) - '@umijs/server': 4.0.71 - '@umijs/ui': 3.0.1 - '@umijs/utils': 4.0.71 - '@umijs/zod2ts': 4.0.71 - babel-plugin-dynamic-import-node: 2.3.3 - click-to-react-component: 1.0.8(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0) - core-js: 3.28.0 - current-script-polyfill: 1.0.0 - enhanced-resolve: 5.9.3 - fast-glob: 3.2.12 - html-webpack-plugin: 5.5.0(webpack@5.75.0) - path-to-regexp: 1.7.0 - postcss-prefix-selector: 1.16.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-router: 6.3.0(react@18.1.0) - react-router-dom: 6.3.0(react-dom@18.1.0)(react@18.1.0) - regenerator-runtime: 0.13.11 - transitivePeerDependencies: - - '@types/node' - - '@types/react' - - '@types/webpack' - - postcss - - rollup - - sass - - sockjs-client - - styled-components - - stylus - - sugarss - - supports-color - - terser - - type-fest - - typescript - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: true - - /@umijs/preset-umi@4.0.75(@types/node@18.11.18)(@types/react@18.0.26)(sass@1.65.1)(styled-components@6.0.0-rc.0)(typescript@4.9.4): - resolution: {integrity: sha512-RRvQLupb7hDAGiKrTNSPmJtAMJwSl5TtiNsnknGxx7/duxIgXpZklKIj5pGU4plb2Xoy6tiWduQrQARzquGBUg==} + /@umijs/preset-umi@4.1.2(@types/node@18.19.39)(@types/react@18.3.3)(sass@1.65.1)(typescript@4.9.5): + resolution: {integrity: sha512-tZe7mWS2vCoULXcY5Zx10nVWxMHPXl1+Pj3X0hiPE2oPYJYw5eYtE0+IivNAOUH2M2d5c8j257MgG+XND8Gpbw==} dependencies: '@iconify/utils': 2.1.1 '@svgr/core': 6.5.1 - '@umijs/ast': 4.0.75 - '@umijs/babel-preset-umi': 4.0.75(styled-components@6.0.0-rc.0) - '@umijs/bundler-esbuild': 4.0.75 - '@umijs/bundler-utils': 4.0.75 - '@umijs/bundler-vite': 4.0.75(@types/node@18.11.18)(sass@1.65.1) - '@umijs/bundler-webpack': 4.0.75(styled-components@6.0.0-rc.0)(typescript@4.9.4) - '@umijs/core': 4.0.75 + '@umijs/ast': 4.1.2 + '@umijs/babel-preset-umi': 4.1.2 + '@umijs/bundler-esbuild': 4.1.2 + '@umijs/bundler-utils': 4.1.2 + '@umijs/bundler-vite': 4.1.2(@types/node@18.19.39)(postcss@8.4.35)(sass@1.65.1) + '@umijs/bundler-webpack': 4.1.2(typescript@4.9.5) + '@umijs/core': 4.1.2 '@umijs/did-you-know': 1.0.3 '@umijs/es-module-parser': 0.0.7 '@umijs/history': 5.3.1 - '@umijs/mfsu': 4.0.75 - '@umijs/plugin-run': 4.0.75 - '@umijs/renderer-react': 4.0.75(react-dom@18.1.0)(react@18.1.0) - '@umijs/server': 4.0.75 + '@umijs/mfsu': 4.1.2 + '@umijs/plugin-run': 4.1.2 + '@umijs/renderer-react': 4.1.2(react-dom@18.1.0)(react@18.1.0) + '@umijs/server': 4.1.2 '@umijs/ui': 3.0.1 - '@umijs/utils': 4.0.75 - '@umijs/zod2ts': 4.0.75 + '@umijs/utils': 4.1.2 + '@umijs/zod2ts': 4.1.2 babel-plugin-dynamic-import-node: 2.3.3 - click-to-react-component: 1.0.8(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0) - core-js: 3.28.0 + click-to-react-component: 1.1.0(@types/react@18.3.3)(react-dom@18.1.0)(react@18.1.0) + core-js: 3.34.0 current-script-polyfill: 1.0.0 enhanced-resolve: 5.9.3 fast-glob: 3.2.12 html-webpack-plugin: 5.5.0(webpack@5.75.0) + less-plugin-resolve: 1.0.2 path-to-regexp: 1.7.0 - postcss-prefix-selector: 1.16.0 + postcss: 8.4.35 + postcss-prefix-selector: 1.16.0(postcss@8.4.35) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) react-router: 6.3.0(react@18.1.0) @@ -16775,11 +19128,9 @@ packages: - '@types/node' - '@types/react' - '@types/webpack' - - postcss - rollup - sass - sockjs-client - - styled-components - stylus - sugarss - supports-color @@ -16792,64 +19143,48 @@ packages: - webpack-plugin-serve dev: true - /@umijs/renderer-react@4.0.0-canary.20220628.2(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-tBZhIPo9s87KlX1FUuVPk4/XYKHe7uqAvtDlK3HVncvkMPoLmt0A730vF8xTN0AMscNT7x+YYETxtNG8muCmMQ==} + /@umijs/react-refresh-webpack-plugin@0.5.11(react-refresh@0.14.0)(webpack@5.88.2): + resolution: {integrity: sha512-RtFvB+/GmjRhpHcqNgnw8iWZpTlxOnmNxi8eDcecxMmxmSgeDj25LV0jr4Q6rOhv3GTIfVGBhkwz+khGT5tfmg==} + engines: {node: '>= 10.13'} peerDependencies: - react: '>=16.8' - react-dom: '>=16.8' + '@types/webpack': 4.x || 5.x + react-refresh: '>=0.10.0 <1.0.0' + sockjs-client: ^1.4.0 + type-fest: '>=0.17.0 <5.0.0' + webpack: '>=4.43.0 <6.0.0' + webpack-dev-server: 3.x || 4.x + webpack-hot-middleware: 2.x + webpack-plugin-serve: 0.x || 1.x peerDependenciesMeta: - react: + '@types/webpack': optional: true - react-dom: + sockjs-client: optional: true - dependencies: - '@loadable/component': 5.15.2(react@17.0.2) - history: 5.3.0 - react: 17.0.2 - react-dom: 17.0.2(react@17.0.2) - react-router-dom: 6.3.0(react-dom@17.0.2)(react@17.0.2) - dev: true - - /@umijs/renderer-react@4.0.0-canary.20220628.2(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-tBZhIPo9s87KlX1FUuVPk4/XYKHe7uqAvtDlK3HVncvkMPoLmt0A730vF8xTN0AMscNT7x+YYETxtNG8muCmMQ==} - peerDependencies: - react: '>=16.8' - react-dom: '>=16.8' - peerDependenciesMeta: - react: + type-fest: optional: true - react-dom: + webpack: optional: true - dependencies: - '@loadable/component': 5.15.2(react@18.1.0) - history: 5.3.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-router-dom: 6.3.0(react-dom@18.1.0)(react@18.1.0) - dev: true - - /@umijs/renderer-react@4.0.71(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-Frq7U4hE/GoMwIPzlrX2l0buESZP58j54/WyUw+dJy1LgJL+Xy7Xjo4Du/O4IEE0PEOC3owR+vJkSCM2D5nEyg==} - peerDependencies: - react: '>=16.8' - react-dom: '>=16.8' - peerDependenciesMeta: - react: + webpack-dev-server: optional: true - react-dom: + webpack-hot-middleware: + optional: true + webpack-plugin-serve: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@loadable/component': 5.15.2(react@17.0.2) - history: 5.3.0 - react: 17.0.2 - react-dom: 17.0.2(react@17.0.2) - react-helmet-async: 1.3.0(react-dom@17.0.2)(react@17.0.2) - react-router-dom: 6.3.0(react-dom@17.0.2)(react@17.0.2) - dev: true + ansi-html-community: 0.0.8 + common-path-prefix: 3.0.0 + core-js-pure: 3.29.0 + error-stack-parser: 2.1.4 + find-up: 5.0.0 + html-entities: 2.3.3 + loader-utils: 2.0.4 + react-refresh: 0.14.0 + schema-utils: 3.1.1 + source-map: 0.7.4 + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) - /@umijs/renderer-react@4.0.71(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-Frq7U4hE/GoMwIPzlrX2l0buESZP58j54/WyUw+dJy1LgJL+Xy7Xjo4Du/O4IEE0PEOC3owR+vJkSCM2D5nEyg==} + /@umijs/renderer-react@4.1.2(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-zAZ1yU/PTkit/Nl0JsArS8ZwWyhmFpMEMRKpFZqw1rYieXTlNGvZTm2twJj+rNzsxwoNmW7E24glJGjpm1CunA==} peerDependencies: react: '>=16.8' react-dom: '>=16.8' @@ -16859,7 +19194,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@loadable/component': 5.15.2(react@18.1.0) history: 5.3.0 react: 18.1.0 @@ -16868,8 +19203,8 @@ packages: react-router-dom: 6.3.0(react-dom@18.1.0)(react@18.1.0) dev: true - /@umijs/renderer-react@4.0.75(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-mved7hYq0VPJSBm5YXGOYN03a3mx+1DjfS5HSyqNY1AZxWVqWu+Yly1Fi0Z3fZ9Nr9WiI1ZN2B9t0Z0+mHFKzg==} + /@umijs/renderer-react@4.1.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-zAZ1yU/PTkit/Nl0JsArS8ZwWyhmFpMEMRKpFZqw1rYieXTlNGvZTm2twJj+rNzsxwoNmW7E24glJGjpm1CunA==} peerDependencies: react: '>=16.8' react-dom: '>=16.8' @@ -16879,13 +19214,27 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@loadable/component': 5.15.2(react@18.1.0) + '@babel/runtime': 7.23.6 + '@loadable/component': 5.15.2(react@18.3.1) history: 5.3.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-helmet-async: 1.3.0(react-dom@18.1.0)(react@18.1.0) - react-router-dom: 6.3.0(react-dom@18.1.0)(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-helmet-async: 1.3.0(react-dom@18.3.1)(react@18.3.1) + react-router-dom: 6.3.0(react-dom@18.3.1)(react@18.3.1) + dev: true + + /@umijs/request-record@1.1.4(umi@packages+umi): + resolution: {integrity: sha512-GFfAxgqbOMlhFpqGLNxizA4ywmPK+mxfJ53IdBw1IDd2Vzp5qLzlelbx0X1X+2v4dh9KE57YtjT9H7us66uw7Q==} + peerDependencies: + umi: '>=3' + dependencies: + chokidar: 3.5.3 + express: 4.18.2 + lodash: 4.17.21 + prettier: 2.8.4 + umi: link:packages/umi + transitivePeerDependencies: + - supports-color dev: true /@umijs/route-utils@2.1.1: @@ -16905,34 +19254,10 @@ packages: lodash.isequal: 4.5.0 memoize-one: 5.2.1 - /@umijs/server@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-+zvPXYsv7Xna6MPLzVn9AfZQ5fDl4DgLy6fFAb4d/z58ibwX/uTKSM+sW45eATLZorn6cg8JvX1hYdtSwLEpyA==} - dependencies: - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - history: 5.3.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-router-dom: 6.3.0(react-dom@18.1.0)(react@18.1.0) - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/server@4.0.71: - resolution: {integrity: sha512-yhaQMD5yHYDZ9FE11rKJCD7cugtdH9t8qtpNnsSxbPWiJU731Rx0aXu3c81wDS+aCWDafQKrod1T4fKsJbGpYQ==} - dependencies: - '@umijs/bundler-utils': 4.0.71 - history: 5.3.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-router-dom: 6.3.0(react-dom@18.1.0)(react@18.1.0) - transitivePeerDependencies: - - supports-color - dev: true - - /@umijs/server@4.0.75: - resolution: {integrity: sha512-fRA+MCun7yUD0jltp82cgTfk/negkqqmD50bAlTADqoujex+7NU81dpWQdjjfPOAvQcNh8XgPlt0iddhtPf6Pw==} + /@umijs/server@4.1.2: + resolution: {integrity: sha512-1oUWhF4qW2T4BqYKRTtZm+REJpDzPdQ3oeXubAIpFqek5Z0ABKcp7/mkH68AVRztsag0t9cXuBN/AL5GkvjXww==} dependencies: - '@umijs/bundler-utils': 4.0.75 + '@umijs/bundler-utils': 4.1.2 history: 5.3.0 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) @@ -16944,43 +19269,14 @@ packages: /@umijs/ssr-darkreader@4.9.45: resolution: {integrity: sha512-XlcwzSYQ/SRZpHdwIyMDS4FOGX5kP4U/2g2mykyn/iPQTK4xTiQAyBu6UnnDnn7d5P8s7Atzh1C7H0ETNOypJg==} - /@umijs/test@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-PW9682NUQOkbJvob71lTPC7xA+/e3D3BxsUwJM3mewVbV6+jEjV90gUfJLGT9YFcQvk9RkYrFuduIR6QoJLGXQ==} - dependencies: - '@jest/types': 27.5.1 - esbuild: 0.14.36 - esbuild-jest: 0.5.0(esbuild@0.14.36) - identity-obj-proxy: 3.0.0 - isomorphic-unfetch: 3.1.0 - transitivePeerDependencies: - - encoding - - supports-color - dev: true - - /@umijs/test@4.0.71: - resolution: {integrity: sha512-QakGNRFoxuFQ4zkoI5iogHUdEJK8ybZt4xb949klEPlBfCiqUXNYUx8r7e0vlkOgmv44voEIm3B/y6msYt3rqQ==} + /@umijs/test@4.1.2: + resolution: {integrity: sha512-mmP0bmvYx/gHIgq8mxbMJSgLxBKh5Tp2ZiuK68aoqlBWSBXU2xB9LM4KGno3Or9vihSFAUzK1wWEcVj7CQCY4w==} dependencies: - '@babel/plugin-transform-modules-commonjs': 7.21.2(@babel/core@7.21.0) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.23.0) '@jest/types': 27.5.1 - '@umijs/bundler-utils': 4.0.71 - '@umijs/utils': 4.0.71 - babel-jest: 29.4.3 - esbuild: 0.17.19 - identity-obj-proxy: 3.0.0 - isomorphic-unfetch: 4.0.2 - transitivePeerDependencies: - - '@babel/core' - - supports-color - dev: true - - /@umijs/test@4.0.75: - resolution: {integrity: sha512-ac2kkwuXIuQrdE7uJYUWnFIkcTH259mwJ87BkeyY8EwxOmMHExm2XKwur9ZoiDBePc6fo75+3zoPnVGgoMns3g==} - dependencies: - '@babel/plugin-transform-modules-commonjs': 7.21.2(@babel/core@7.21.0) - '@jest/types': 27.5.1 - '@umijs/bundler-utils': 4.0.75 - '@umijs/utils': 4.0.75 - babel-jest: 29.4.3 + '@umijs/bundler-utils': 4.1.2 + '@umijs/utils': 4.1.2 + babel-jest: 29.7.0 esbuild: 0.17.19 identity-obj-proxy: 3.0.0 isomorphic-unfetch: 4.0.2 @@ -17003,7 +19299,7 @@ packages: dependencies: react: 17.0.2 - /@umijs/use-params@1.0.9(react@18.1.0): + /@umijs/use-params@1.0.9(react@18.3.1): resolution: {integrity: sha512-QlN0RJSBVQBwLRNxbxjQ5qzqYIGn+K7USppMoIOVlf7fxXHsnQZ2bEsa6Pm74bt6DVQxpUE8HqvdStn6Y9FV1w==} peerDependencies: react: '*' @@ -17011,59 +19307,26 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false - /@umijs/utils@4.0.0-canary.20220628.2: - resolution: {integrity: sha512-/HasXl19SVtZcoEaZL1HVIlg6J3Ulr8XfAxGhhtBB1Hd3rhVEncGpmB3csbeaRli3t7QJWCRifiiDvaEJNK8Rg==} - dependencies: - chokidar: 3.5.3 - fast-glob: 3.2.12 - pino: 7.11.0 - dev: true - - /@umijs/utils@4.0.17: - resolution: {integrity: sha512-QlaBRHMc8H9BeG8/i2Gwg+xbsq4NhGDMp5Hqu3G2/X6XsQ9l3bEciaOlhTZl4kcbSYdAcPa7vWElNuzmnS9H0Q==} - dependencies: - chokidar: 3.5.3 - pino: 7.11.0 - dev: true - - /@umijs/utils@4.0.57: - resolution: {integrity: sha512-3nsoWOY5KwjuAhw2yEQ3A91x/KyLiX2cFpxnem0AYHTFwFPY06XdtBqvF6Skg7z4Dv2G5n3qUz0EjkmYHCpEvw==} + /@umijs/utils@4.1.2: + resolution: {integrity: sha512-YBzN7Zn3595W93t8XPh8IbKMInr6NecXPtHVD+L7fJFv5oCrzHxCkvSZBTmTXuFMyW+9rHT0TlsXM4gqQ1n18Q==} dependencies: chokidar: 3.5.3 pino: 7.11.0 - dev: true - /@umijs/utils@4.0.71: - resolution: {integrity: sha512-vIxcHmwTpy6tLEHtmxmSdEU141q017PzabCuY2O/sFqZqkPz+5uEWJOqBDEOreAnpljkSFBlGTPuKpyr2QEvag==} + /@umijs/valtio@1.0.4(@types/react@18.0.26)(react@17.0.2): + resolution: {integrity: sha512-2PmAU4rNQbBqrWpJ86Si9UGC23JapkYw8k7Hna6V8DHLaEYJENdp2e/IKLPHSPghzrdQtbUHSoOAUsBd4i4OzQ==} dependencies: - chokidar: 3.5.3 - pino: 7.11.0 - dev: true - - /@umijs/utils@4.0.75: - resolution: {integrity: sha512-EkzoisFwprr9rhERMq1KH+6uEAMkZ+QRBS+fmHB5YYA0AMjMubtsfEqAc75fInXaUqDypJiXKoUyUBzsbijVPw==} - dependencies: - chokidar: 3.5.3 - pino: 7.11.0 - dev: true - - /@umijs/valtio@1.0.3(react@17.0.2): - resolution: {integrity: sha512-fjr1UMZLFOO+uy5YtLVcmvr+m2ZlU9rp04yXlCaPrKkdBg/UNPBVo6YS9TBx2v0a62gYaztLL3Put3dcNGH5tQ==} - dependencies: - valtio: 1.9.0(react@17.0.2) + valtio: 1.11.2(@types/react@18.0.26)(react@17.0.2) transitivePeerDependencies: + - '@types/react' - react dev: true - /@umijs/zod2ts@4.0.71: - resolution: {integrity: sha512-+0K4AI20Qmk7nMKU1iwSOv+sdIzjx31NA3ViMKt8T7GcMT0h9pTpCnPUeWeulxvRjOdm/421a9ioKFk6vheIOA==} - dev: true - - /@umijs/zod2ts@4.0.75: - resolution: {integrity: sha512-j3Wl1nn/fgulc5seWrU14470eQoKPpy/ZrpdkSNVCC0AWuVQ5CtHrSd76Pj/Go2t3p4XnbTluQLPtKIVKpYL9g==} + /@umijs/zod2ts@4.1.2: + resolution: {integrity: sha512-h5P45gXxTVWdDeIuB/EQ9lDqJgPrm747Ox77WvK1ooG+jN4xBB6uoH5slCLenl3ig+M1nRLIadVsD/8kjrWWHw==} dev: true /@unocss/cli@0.33.5: @@ -17245,7 +19508,7 @@ packages: resolution: {integrity: sha512-ZL7F9mgOn3Qlnp6QLI9jaOfcvqrx6JPE/BkdVSd8imveaFTm/a3udoO6f5Us/1XtqnL4347PsIiK6AtCvMHk2Q==} dev: false - /@use-gesture/react@10.2.24(react@18.1.0): + /@use-gesture/react@10.2.24(react@18.3.1): resolution: {integrity: sha512-rAZ8Nnpu1g4eFzqCPlaq+TppJpMy0dTpYOQx5KpfoBF4P3aWnCqwj7eKxcmdIb1NJKpIJj50DPugUH4mq5cpBg==} peerDependencies: react: '>= 16.8.0' @@ -17254,13 +19517,13 @@ packages: optional: true dependencies: '@use-gesture/core': 10.2.24 - react: 18.1.0 + react: 18.3.1 dev: false /@vanilla-extract/babel-plugin-debug-ids@1.0.1: resolution: {integrity: sha512-ynyKqsJiMzM1/yiIJ6QdqpWKlK4IMJJWREpPtaemZrE1xG1B4E/Nfa6YazuDWjDkCJC1tRIpEGnVs+pMIjUxyw==} dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 transitivePeerDependencies: - supports-color dev: false @@ -17306,8 +19569,8 @@ packages: /@vanilla-extract/integration@6.1.0: resolution: {integrity: sha512-7gDkOibk/DraG35ZpiAYqWd33wLA6YRnieC5vw7ItoFEzCv9bUaS9c+ZyktyWW3nRnL+e7Pc6FS6l7MKgEsX1w==} dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.22.5) + '@babel/core': 7.23.6 + '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.23.6) '@vanilla-extract/babel-plugin-debug-ids': 1.0.1 '@vanilla-extract/css': 1.9.5 esbuild: 0.16.17 @@ -17367,37 +19630,21 @@ packages: resolution: {integrity: sha512-JGZ11QV+/ZcfudW2Cz2JVp54/pJNXbsuWRgSh2ZmmZdQBKXqBtIGrwI1Wyx8nlbzAiEFe7FHi4K1zX4//jxTnQ==} dev: true - /@vitejs/plugin-legacy@4.0.1(vite@4.3.1): - resolution: {integrity: sha512-/ZV63NagI1c9TB5E4ijGmycY//fNm/2L02nsnXXxACwYaF9W+/OyVlgIW24jYUIS+g0yQRtn+N5hzBc8RLNhGA==} + /@vitejs/plugin-legacy@4.1.1(vite@4.5.2): + resolution: {integrity: sha512-um3gbVouD2Q/g19C0qpDfHwveXDCAHzs8OC3e9g6aXpKoD1H14himgs7wkMnhAynBJy7QqUoZNAXDuqN8zLR2g==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: terser: ^5.4.0 vite: ^4.0.0 dependencies: - '@babel/core': 7.22.5 - '@babel/preset-env': 7.22.5(@babel/core@7.22.5) - browserslist: 4.21.5 - core-js: 3.28.0 - magic-string: 0.27.0 + '@babel/core': 7.23.0 + '@babel/preset-env': 7.22.20(@babel/core@7.23.0) + browserslist: 4.22.2 + core-js: 3.34.0 + magic-string: 0.30.4 regenerator-runtime: 0.13.11 - systemjs: 6.13.0 - vite: 4.3.1(@types/node@18.11.18)(less@4.1.3)(sass@1.65.1) - transitivePeerDependencies: - - supports-color - dev: true - - /@vitejs/plugin-react@1.2.0: - resolution: {integrity: sha512-Rywwt0IXXg6yQ0hv3cMT3mtdDcGIw31mGaa+MMMAT651LhoXLF2yFy4LrakiTs7UKs7RPBo9eNgaS8pgl2A6Qw==} - engines: {node: '>=12.0.0'} - dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-react-jsx-development': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-transform-react-jsx-self': 7.21.0(@babel/core@7.22.5) - '@babel/plugin-transform-react-jsx-source': 7.19.6(@babel/core@7.22.5) - '@rollup/pluginutils': 4.2.1 - react-refresh: 0.11.0 - resolve: 1.22.0 + systemjs: 6.14.2 + vite: 4.5.2(@types/node@18.19.39)(less@4.1.3) transitivePeerDependencies: - supports-color dev: true @@ -17423,13 +19670,29 @@ packages: peerDependencies: vite: ^4.2.0 dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-transform-react-jsx-self': 7.21.0(@babel/core@7.22.5) - '@babel/plugin-transform-react-jsx-source': 7.19.6(@babel/core@7.22.5) + '@babel/core': 7.23.6 + '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.6) react-refresh: 0.14.0 - vite: 4.3.1(@types/node@18.11.18)(less@4.1.3)(sass@1.65.1) + vite: 4.3.1(@types/node@18.19.39)(less@4.1.3)(sass@1.65.1) transitivePeerDependencies: - supports-color + dev: true + + /@vitejs/plugin-react@4.0.0(vite@4.5.2): + resolution: {integrity: sha512-HX0XzMjL3hhOYm+0s95pb0Z7F8O81G7joUHgfDd/9J/ZZf5k4xX6QAMFkKsHFxaHlf6X7GD7+XuaZ66ULiJuhQ==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + vite: ^4.2.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.6) + react-refresh: 0.14.0 + vite: 4.5.2(@types/node@18.19.39)(less@4.1.3) + transitivePeerDependencies: + - supports-color + dev: false /@vitejs/plugin-vue-jsx@3.0.1(vue@3.2.45): resolution: {integrity: sha512-+Jb7ggL48FSPS1uhPnJbJwWa9Sr90vQ+d0InW+AhBM22n+cfuYqJZDckBc+W3QSHe1WDvewMZfa4wZOtk5pRgw==} @@ -17480,7 +19743,7 @@ packages: /@vue/compiler-core@3.2.45: resolution: {integrity: sha512-rcMj7H+PYe5wBV3iYeUgbCglC+pbpN8hBLTJvRiK2eKQiWqu+fG9F+8sW99JdL4LQi7Re178UOxn09puSXvn4A==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.6 '@vue/shared': 3.2.45 estree-walker: 2.0.2 source-map: 0.6.1 @@ -17494,7 +19757,7 @@ packages: /@vue/compiler-sfc@3.2.45: resolution: {integrity: sha512-1jXDuWah1ggsnSAOGsec8cFjT/K6TMZ0sPL3o3d84Ft2AYZi2jWJgRMjw4iaK0rBfA89L5gw427H4n1RZQBu6Q==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.0 '@vue/compiler-core': 3.2.45 '@vue/compiler-dom': 3.2.45 '@vue/compiler-ssr': 3.2.45 @@ -17502,7 +19765,7 @@ packages: '@vue/shared': 3.2.45 estree-walker: 2.0.2 magic-string: 0.25.9 - postcss: 8.4.21 + postcss: 8.4.32 source-map: 0.6.1 /@vue/compiler-ssr@3.2.45: @@ -17518,7 +19781,7 @@ packages: /@vue/reactivity-transform@3.2.45: resolution: {integrity: sha512-BHVmzYAvM7vcU5WmuYqXpwaBHjsS8T63jlKGWVtHxAHIoMIlmaMyurUSEs1Zcg46M4AYT5MtB1U274/2aNzjJQ==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.23.6 '@vue/compiler-core': 3.2.45 '@vue/shared': 3.2.45 estree-walker: 2.0.2 @@ -17585,15 +19848,30 @@ packages: '@webassemblyjs/helper-numbers': 1.11.1 '@webassemblyjs/helper-wasm-bytecode': 1.11.1 + /@webassemblyjs/ast@1.11.6: + resolution: {integrity: sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==} + dependencies: + '@webassemblyjs/helper-numbers': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + /@webassemblyjs/floating-point-hex-parser@1.11.1: resolution: {integrity: sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==} + /@webassemblyjs/floating-point-hex-parser@1.11.6: + resolution: {integrity: sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==} + /@webassemblyjs/helper-api-error@1.11.1: resolution: {integrity: sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==} + /@webassemblyjs/helper-api-error@1.11.6: + resolution: {integrity: sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==} + /@webassemblyjs/helper-buffer@1.11.1: resolution: {integrity: sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==} + /@webassemblyjs/helper-buffer@1.11.6: + resolution: {integrity: sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==} + /@webassemblyjs/helper-numbers@1.11.1: resolution: {integrity: sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==} dependencies: @@ -17601,9 +19879,19 @@ packages: '@webassemblyjs/helper-api-error': 1.11.1 '@xtuc/long': 4.2.2 + /@webassemblyjs/helper-numbers@1.11.6: + resolution: {integrity: sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==} + dependencies: + '@webassemblyjs/floating-point-hex-parser': 1.11.6 + '@webassemblyjs/helper-api-error': 1.11.6 + '@xtuc/long': 4.2.2 + /@webassemblyjs/helper-wasm-bytecode@1.11.1: resolution: {integrity: sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==} + /@webassemblyjs/helper-wasm-bytecode@1.11.6: + resolution: {integrity: sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==} + /@webassemblyjs/helper-wasm-section@1.11.1: resolution: {integrity: sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==} dependencies: @@ -17612,19 +19900,40 @@ packages: '@webassemblyjs/helper-wasm-bytecode': 1.11.1 '@webassemblyjs/wasm-gen': 1.11.1 + /@webassemblyjs/helper-wasm-section@1.11.6: + resolution: {integrity: sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-buffer': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/wasm-gen': 1.11.6 + /@webassemblyjs/ieee754@1.11.1: resolution: {integrity: sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==} dependencies: '@xtuc/ieee754': 1.2.0 + /@webassemblyjs/ieee754@1.11.6: + resolution: {integrity: sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==} + dependencies: + '@xtuc/ieee754': 1.2.0 + /@webassemblyjs/leb128@1.11.1: resolution: {integrity: sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==} dependencies: '@xtuc/long': 4.2.2 + /@webassemblyjs/leb128@1.11.6: + resolution: {integrity: sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==} + dependencies: + '@xtuc/long': 4.2.2 + /@webassemblyjs/utf8@1.11.1: resolution: {integrity: sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==} + /@webassemblyjs/utf8@1.11.6: + resolution: {integrity: sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==} + /@webassemblyjs/wasm-edit@1.11.1: resolution: {integrity: sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==} dependencies: @@ -17637,6 +19946,18 @@ packages: '@webassemblyjs/wasm-parser': 1.11.1 '@webassemblyjs/wast-printer': 1.11.1 + /@webassemblyjs/wasm-edit@1.11.6: + resolution: {integrity: sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-buffer': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/helper-wasm-section': 1.11.6 + '@webassemblyjs/wasm-gen': 1.11.6 + '@webassemblyjs/wasm-opt': 1.11.6 + '@webassemblyjs/wasm-parser': 1.11.6 + '@webassemblyjs/wast-printer': 1.11.6 + /@webassemblyjs/wasm-gen@1.11.1: resolution: {integrity: sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==} dependencies: @@ -17646,6 +19967,15 @@ packages: '@webassemblyjs/leb128': 1.11.1 '@webassemblyjs/utf8': 1.11.1 + /@webassemblyjs/wasm-gen@1.11.6: + resolution: {integrity: sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/ieee754': 1.11.6 + '@webassemblyjs/leb128': 1.11.6 + '@webassemblyjs/utf8': 1.11.6 + /@webassemblyjs/wasm-opt@1.11.1: resolution: {integrity: sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==} dependencies: @@ -17654,6 +19984,14 @@ packages: '@webassemblyjs/wasm-gen': 1.11.1 '@webassemblyjs/wasm-parser': 1.11.1 + /@webassemblyjs/wasm-opt@1.11.6: + resolution: {integrity: sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-buffer': 1.11.6 + '@webassemblyjs/wasm-gen': 1.11.6 + '@webassemblyjs/wasm-parser': 1.11.6 + /@webassemblyjs/wasm-parser@1.11.1: resolution: {integrity: sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==} dependencies: @@ -17664,12 +20002,28 @@ packages: '@webassemblyjs/leb128': 1.11.1 '@webassemblyjs/utf8': 1.11.1 + /@webassemblyjs/wasm-parser@1.11.6: + resolution: {integrity: sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/helper-api-error': 1.11.6 + '@webassemblyjs/helper-wasm-bytecode': 1.11.6 + '@webassemblyjs/ieee754': 1.11.6 + '@webassemblyjs/leb128': 1.11.6 + '@webassemblyjs/utf8': 1.11.6 + /@webassemblyjs/wast-printer@1.11.1: resolution: {integrity: sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==} dependencies: '@webassemblyjs/ast': 1.11.1 '@xtuc/long': 4.2.2 + /@webassemblyjs/wast-printer@1.11.6: + resolution: {integrity: sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==} + dependencies: + '@webassemblyjs/ast': 1.11.6 + '@xtuc/long': 4.2.2 + /@webgpu/glslang@0.0.15: resolution: {integrity: sha512-niT+Prh3Aff8Uf1MVBVUsaNjFj9rJAKDXuoHIKiQbB+6IUP/3J3JIhBNyZ7lDhytvXxw6ppgnwKZdDJ08UMj4Q==} @@ -17738,7 +20092,7 @@ packages: engines: {node: '>=14.15.0'} dependencies: js-yaml: 3.14.1 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /@zkochan/js-yaml@0.0.6: @@ -17748,8 +20102,8 @@ packages: argparse: 2.0.1 dev: true - /@zkochan/rimraf@2.1.2: - resolution: {integrity: sha512-Lc2oK51J6aQWcLWTloobJun5ZF41BbTDdLvE+aMcexoVWFoFqvZmnZoyXR2IZk6NJEVoZW8tjgtvQLfTsmRs2Q==} + /@zkochan/rimraf@2.1.3: + resolution: {integrity: sha512-mCfR3gylCzPC+iqdxEA6z5SxJeOgzgbwmyxanKriIne5qZLswDe/M43aD3p5MNzwzXRhbZg/OX+MpES6Zk1a6A==} engines: {node: '>=12.10'} dependencies: rimraf: 3.0.2 @@ -17783,6 +20137,11 @@ packages: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} dev: true + /abbrev@2.0.0: + resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + /abs-svg-path@0.1.1: resolution: {integrity: sha512-d8XPSGjfyzlXC3Xx891DJRyZfqk5JU0BJrDQcsWomFIV1/BIzPW5HDH5iDdWpqWaav0YVIEzT1RHTwWr0FFshA==} dev: false @@ -17797,7 +20156,7 @@ packages: /acorn-globals@7.0.1: resolution: {integrity: sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==} dependencies: - acorn: 8.8.2 + acorn: 8.11.2 acorn-walk: 8.2.0 dev: false @@ -17814,6 +20173,14 @@ packages: acorn: ^8 dependencies: acorn: 8.8.2 + dev: true + + /acorn-import-assertions@1.9.0(acorn@8.8.2): + resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==} + peerDependencies: + acorn: ^8 + dependencies: + acorn: 8.8.2 /acorn-jsx@5.3.2(acorn@7.4.1): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -17821,6 +20188,13 @@ packages: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: acorn: 7.4.1 + + /acorn-jsx@5.3.2(acorn@8.11.2): + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 8.11.2 dev: true /acorn-jsx@5.3.2(acorn@8.8.2): @@ -17850,6 +20224,11 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + /acorn@8.11.2: + resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} + engines: {node: '>=0.4.0'} + hasBin: true + /acorn@8.7.1: resolution: {integrity: sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==} engines: {node: '>=0.4.0'} @@ -17920,7 +20299,7 @@ packages: /ahooks-v3-count@1.0.0: resolution: {integrity: sha512-V7uUvAwnimu6eh/PED4mCDjE7tokeZQLKlxg9lCTMPhN+NjsSbtdacByVlR1oluXQzD3MOw55wylDmQo4+S9ZQ==} - /ahooks@2.10.14(react@18.1.0): + /ahooks@2.10.14(react@18.3.1): resolution: {integrity: sha512-axWa7VoAgu7bxA56dDl0CXW4rvaQmDBiov/d3tAy0x1YNYywYMKokL8TdLgJ5zO/oXGiWmG7BxlGOQGkqE/zkQ==} engines: {node: '>=8.0.0'} peerDependencies: @@ -17929,7 +20308,7 @@ packages: react: optional: true dependencies: - '@ahooksjs/use-request': 2.8.15(react@18.1.0) + '@ahooksjs/use-request': 2.8.15(react@18.3.1) '@types/js-cookie': 2.2.7 dayjs: 1.11.7 intersection-observer: 0.7.0 @@ -17937,7 +20316,7 @@ packages: lodash.debounce: 4.0.8 lodash.isequal: 4.5.0 lodash.throttle: 4.1.1 - react: 18.1.0 + react: 18.3.1 resize-observer-polyfill: 1.5.1 screenfull: 5.2.0 dev: false @@ -17963,7 +20342,7 @@ packages: tslib: 2.4.1 dev: true - /ahooks@3.7.4(react@18.1.0): + /ahooks@3.7.4(react@18.3.1): resolution: {integrity: sha512-hvgdqzPUKXn95mK3cGlDCi/ZZqv+FRibCUCFT8zW3hCwLGvixVfnHrIW2/2lgzPdLo8mLjp/XOdIJvcPvE2lgQ==} engines: {node: '>=8.0.0'} peerDependencies: @@ -17978,7 +20357,7 @@ packages: intersection-observer: 0.12.2 js-cookie: 2.2.1 lodash: 4.17.21 - react: 18.1.0 + react: 18.3.1 resize-observer-polyfill: 1.5.1 screenfull: 5.2.0 tslib: 2.4.1 @@ -18056,7 +20435,6 @@ packages: /ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} - dev: true /ansi-escapes@3.2.0: resolution: {integrity: sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==} @@ -18093,7 +20471,6 @@ packages: /ansi-regex@4.1.1: resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==} engines: {node: '>=6'} - dev: true /ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} @@ -18102,7 +20479,6 @@ packages: /ansi-regex@6.0.1: resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} engines: {node: '>=12'} - dev: true /ansi-styles@2.2.1: resolution: {integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==} @@ -18127,7 +20503,6 @@ packages: /ansi-styles@6.2.1: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} - dev: true /ansicolors@0.3.2: resolution: {integrity: sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg==} @@ -18140,11 +20515,42 @@ packages: dependencies: dayjs: 1.11.7 + /antd-mobile-alita@2.3.4(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-MlCFwuXQRAzifBEuhari4Jf9nbvsiyrm7HJvoGVMkjXKXk8PaaTJL6hTo7UwI3uD/CFeTxhW9X27Z8sd65J4fw==} + dependencies: + array-tree-filter: 2.1.0 + babel-runtime: 6.26.0 + classnames: 2.3.2 + normalize.css: 7.0.0 + rc-checkbox: 2.0.3 + rc-collapse: 1.9.3(react-dom@17.0.2)(react@17.0.2) + rc-slider: 8.2.0(react-dom@17.0.2)(react@17.0.2) + rc-swipeout: 2.0.11 + rmc-calendar: 1.1.4(react-dom@17.0.2)(react@17.0.2) + rmc-cascader: 5.0.3(react-dom@17.0.2)(react@17.0.2) + rmc-date-picker: 6.0.10(react-dom@17.0.2)(react@17.0.2) + rmc-dialog: 1.1.1(react-dom@17.0.2)(react@17.0.2) + rmc-drawer: 0.4.11 + rmc-feedback: 2.0.0 + rmc-input-number: 1.0.5 + rmc-list-view: 0.11.5 + rmc-notification: 1.0.0(react-dom@17.0.2)(react@17.0.2) + rmc-nuka-carousel: 3.0.1 + rmc-picker: 5.0.10(react-dom@17.0.2)(react@17.0.2) + rmc-pull-to-refresh: 1.0.13 + rmc-steps: 1.0.1 + rmc-tabs: 1.2.29 + rmc-tooltip: 1.0.1(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + /antd-mobile-icons@0.2.2: resolution: {integrity: sha512-iquIc7EsQTndk5nMv9pQQv+/OY5YnjVIPhtCFo7W7JL+Gjqzq/YJ/HO2WxUxyCgYha2NsTTNAb2vPa/M4zAi2g==} dev: true - /antd@4.20.2(react-dom@18.1.0)(react@18.1.0): + /antd@4.20.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-b+Gq1EY8LmcS/ARei/dGI0bWQlJ/j3f3oJ6XjM+ryyT5YWxvf7X3mGc++bTGuLmjn6+/icRL1zItIgcvplcomg==} peerDependencies: react: '>=16.9.0' @@ -18156,8 +20562,8 @@ packages: optional: true dependencies: '@ant-design/colors': 6.0.0 - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/react-slick': 0.28.4(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 0.28.4(react@18.3.1) '@babel/runtime': 7.18.9 '@ctrl/tinycolor': 3.4.1 classnames: 2.3.1 @@ -18165,45 +20571,45 @@ packages: lodash: 4.17.21 memoize-one: 6.0.0 moment: 2.29.4 - rc-cascader: 3.5.0(react-dom@18.1.0)(react@18.1.0) - rc-checkbox: 2.3.2(react-dom@18.1.0)(react@18.1.0) - rc-collapse: 3.1.4(react-dom@18.1.0)(react@18.1.0) - rc-dialog: 8.8.2(react-dom@18.1.0)(react@18.1.0) - rc-drawer: 4.4.3(react-dom@18.1.0)(react@18.1.0) - rc-dropdown: 3.5.2(react-dom@18.1.0)(react@18.1.0) - rc-field-form: 1.26.7(react-dom@18.1.0)(react@18.1.0) - rc-image: 5.6.4(react-dom@18.1.0)(react@18.1.0) - rc-input: 0.0.1-alpha.7(react-dom@18.1.0)(react@18.1.0) - rc-input-number: 7.3.4(react-dom@18.1.0)(react@18.1.0) - rc-mentions: 1.7.1(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.5.5(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.0(react-dom@18.1.0)(react@18.1.0) - rc-notification: 4.6.0(react-dom@18.1.0)(react@18.1.0) - rc-pagination: 3.1.16(react-dom@18.1.0)(react@18.1.0) - rc-picker: 2.6.10(react-dom@18.1.0)(react@18.1.0) - rc-progress: 3.2.4(react-dom@18.1.0)(react@18.1.0) - rc-rate: 2.9.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-segmented: 2.1.0(react-dom@18.1.0)(react@18.1.0) - rc-select: 14.1.7(react-dom@18.1.0)(react@18.1.0) - rc-slider: 10.0.0(react-dom@18.1.0)(react@18.1.0) - rc-steps: 4.1.4(react-dom@18.1.0)(react@18.1.0) - rc-switch: 3.2.2(react-dom@18.1.0)(react@18.1.0) - rc-table: 7.24.2(react-dom@18.1.0)(react@18.1.0) - rc-tabs: 11.13.0(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 0.3.7(react-dom@18.1.0)(react@18.1.0) - rc-tooltip: 5.1.1(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.5.0(react-dom@18.1.0)(react@18.1.0) - rc-tree-select: 5.3.0(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-upload: 4.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-cascader: 3.5.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 2.3.2(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.1.4(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 8.8.2(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 4.4.3(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 3.5.2(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.26.7(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.6.4(react-dom@18.3.1)(react@18.3.1) + rc-input: 0.0.1-alpha.7(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.3.4(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 1.7.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.5.5(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.0(react-dom@18.3.1)(react@18.3.1) + rc-notification: 4.6.0(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.1.16(react-dom@18.3.1)(react@18.3.1) + rc-picker: 2.6.10(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.2.4(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.9.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.0(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.1.7(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.0.0(react-dom@18.3.1)(react@18.3.1) + rc-steps: 4.1.4(react-dom@18.3.1)(react@18.3.1) + rc-switch: 3.2.2(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.24.2(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 11.13.0(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.3.7(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 5.1.1(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.5.0(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.3.0(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) scroll-into-view-if-needed: 2.2.29 dev: false - /antd@4.20.6(react-dom@18.1.0)(react@18.1.0): + /antd@4.20.6(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-JHEwCDjWTAJ1yxlC5QPb7LhRMvdhccN5lzMYDs72sp6VOiaXVGAlwols+F8nQQRaF9h/eA6yQyZ622y8b9vaoQ==} peerDependencies: react: '>=16.9.0' @@ -18215,8 +20621,8 @@ packages: optional: true dependencies: '@ant-design/colors': 6.0.0 - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/react-slick': 0.28.4(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 0.28.4(react@18.3.1) '@babel/runtime': 7.18.9 '@ctrl/tinycolor': 3.4.1 '@types/qs': 6.9.7 @@ -18225,41 +20631,41 @@ packages: lodash: 4.17.21 memoize-one: 6.0.0 moment: 2.29.4 - rc-cascader: 3.5.0(react-dom@18.1.0)(react@18.1.0) - rc-checkbox: 2.3.2(react-dom@18.1.0)(react@18.1.0) - rc-collapse: 3.1.4(react-dom@18.1.0)(react@18.1.0) - rc-dialog: 8.8.2(react-dom@18.1.0)(react@18.1.0) - rc-drawer: 4.4.3(react-dom@18.1.0)(react@18.1.0) - rc-dropdown: 3.5.2(react-dom@18.1.0)(react@18.1.0) - rc-field-form: 1.26.7(react-dom@18.1.0)(react@18.1.0) - rc-image: 5.6.4(react-dom@18.1.0)(react@18.1.0) - rc-input: 0.0.1-alpha.7(react-dom@18.1.0)(react@18.1.0) - rc-input-number: 7.3.4(react-dom@18.1.0)(react@18.1.0) - rc-mentions: 1.7.1(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.5.5(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.0(react-dom@18.1.0)(react@18.1.0) - rc-notification: 4.6.0(react-dom@18.1.0)(react@18.1.0) - rc-pagination: 3.1.16(react-dom@18.1.0)(react@18.1.0) - rc-picker: 2.6.10(react-dom@18.1.0)(react@18.1.0) - rc-progress: 3.2.4(react-dom@18.1.0)(react@18.1.0) - rc-rate: 2.9.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-segmented: 2.1.0(react-dom@18.1.0)(react@18.1.0) - rc-select: 14.1.7(react-dom@18.1.0)(react@18.1.0) - rc-slider: 10.0.0(react-dom@18.1.0)(react@18.1.0) - rc-steps: 4.1.4(react-dom@18.1.0)(react@18.1.0) - rc-switch: 3.2.2(react-dom@18.1.0)(react@18.1.0) - rc-table: 7.24.2(react-dom@18.1.0)(react@18.1.0) - rc-tabs: 11.13.0(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 0.3.7(react-dom@18.1.0)(react@18.1.0) - rc-tooltip: 5.1.1(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.5.0(react-dom@18.1.0)(react@18.1.0) - rc-tree-select: 5.3.0(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-upload: 4.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-cascader: 3.5.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 2.3.2(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.1.4(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 8.8.2(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 4.4.3(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 3.5.2(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.26.7(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.6.4(react-dom@18.3.1)(react@18.3.1) + rc-input: 0.0.1-alpha.7(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.3.4(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 1.7.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.5.5(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.0(react-dom@18.3.1)(react@18.3.1) + rc-notification: 4.6.0(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.1.16(react-dom@18.3.1)(react@18.3.1) + rc-picker: 2.6.10(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.2.4(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.9.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.0(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.1.7(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.0.0(react-dom@18.3.1)(react@18.3.1) + rc-steps: 4.1.4(react-dom@18.3.1)(react@18.3.1) + rc-switch: 3.2.2(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.24.2(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 11.13.0(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.3.7(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 5.1.1(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.5.0(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.3.0(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) scroll-into-view-if-needed: 2.2.29 dev: false @@ -18322,7 +20728,66 @@ packages: scroll-into-view-if-needed: 2.2.29 dev: false - /antd@4.23.2(react-dom@18.1.0)(react@18.1.0): + /antd@4.21.3(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-TETxAqqkgzpmQl/74kG2JiY6cd6E7LmrXjU7PN3Kxs8oPfQk7CGxez4smCMdpbTI2NU2qvOw0ugnvqzES82VJQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@ant-design/colors': 6.0.0 + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 0.29.2(react@18.3.1) + '@babel/runtime': 7.18.3 + '@ctrl/tinycolor': 3.4.1 + classnames: 2.3.1 + copy-to-clipboard: 3.3.1 + lodash: 4.17.21 + memoize-one: 6.0.0 + moment: 2.29.4 + rc-cascader: 3.6.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 2.3.2(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.3.0(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 8.9.0(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 4.4.3(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.26.7(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-input: 0.0.1-alpha.7(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.3.4(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 1.8.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.0(react-dom@18.3.1)(react@18.3.1) + rc-notification: 4.6.0(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.1.16(react-dom@18.3.1)(react@18.3.1) + rc-picker: 2.6.10(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.3.3(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.9.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.0(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.1.7(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.0.0(react-dom@18.3.1)(react@18.3.1) + rc-steps: 4.1.4(react-dom@18.3.1)(react@18.3.1) + rc-switch: 3.2.2(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.24.2(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 11.16.0(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.3.7(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 5.1.1(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.6.5(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.4.0(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + scroll-into-view-if-needed: 2.2.29 + dev: false + + /antd@4.23.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-GGOaIUxPg8wl8lGcCJ2U/1Eg5mt0hNb554a0y4mTJa1ijPRCNM8XjUcio4lTMM7M9/fLm9ttKtyxHg4n+JX26A==} peerDependencies: react: '>=16.9.0' @@ -18334,8 +20799,8 @@ packages: optional: true dependencies: '@ant-design/colors': 6.0.0 - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/react-slick': 0.29.2(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 0.29.2(react@18.3.1) '@babel/runtime': 7.18.9 '@ctrl/tinycolor': 3.4.1 classnames: 2.3.1 @@ -18343,41 +20808,41 @@ packages: lodash: 4.17.21 memoize-one: 6.0.0 moment: 2.29.4 - rc-cascader: 3.7.0(react-dom@18.1.0)(react@18.1.0) - rc-checkbox: 2.3.2(react-dom@18.1.0)(react@18.1.0) - rc-collapse: 3.3.0(react-dom@18.1.0)(react@18.1.0) - rc-dialog: 8.9.0(react-dom@18.1.0)(react@18.1.0) - rc-drawer: 5.1.0(react-dom@18.1.0)(react@18.1.0) - rc-dropdown: 4.0.1(react-dom@18.1.0)(react@18.1.0) - rc-field-form: 1.27.1(react-dom@18.1.0)(react@18.1.0) - rc-image: 5.7.0(react-dom@18.1.0)(react@18.1.0) - rc-input: 0.1.2(react-dom@18.1.0)(react@18.1.0) - rc-input-number: 7.3.9(react-dom@18.1.0)(react@18.1.0) - rc-mentions: 1.9.2(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.6.4(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-notification: 4.6.0(react-dom@18.1.0)(react@18.1.0) - rc-pagination: 3.1.17(react-dom@18.1.0)(react@18.1.0) - rc-picker: 2.6.10(react-dom@18.1.0)(react@18.1.0) - rc-progress: 3.3.3(react-dom@18.1.0)(react@18.1.0) - rc-rate: 2.9.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-segmented: 2.1.0(react-dom@18.1.0)(react@18.1.0) - rc-select: 14.1.13(react-dom@18.1.0)(react@18.1.0) - rc-slider: 10.0.0(react-dom@18.1.0)(react@18.1.0) - rc-steps: 4.1.4(react-dom@18.1.0)(react@18.1.0) - rc-switch: 3.2.2(react-dom@18.1.0)(react@18.1.0) - rc-table: 7.26.0(react-dom@18.1.0)(react@18.1.0) - rc-tabs: 12.1.0-alpha.1(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 0.3.7(react-dom@18.1.0)(react@18.1.0) - rc-tooltip: 5.2.2(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.0(react-dom@18.1.0)(react@18.1.0) - rc-tree-select: 5.5.0(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-upload: 4.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-cascader: 3.7.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 2.3.2(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.3.0(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 8.9.0(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 5.1.0(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.27.1(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-input: 0.1.2(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.3.9(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 1.9.2(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-notification: 4.6.0(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.1.17(react-dom@18.3.1)(react@18.3.1) + rc-picker: 2.6.10(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.3.3(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.9.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.0(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.0.0(react-dom@18.3.1)(react@18.3.1) + rc-steps: 4.1.4(react-dom@18.3.1)(react@18.3.1) + rc-switch: 3.2.2(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.26.0(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.1.0-alpha.1(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.3.7(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 5.2.2(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.5.0(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) scroll-into-view-if-needed: 2.2.29 dev: false @@ -18495,8 +20960,66 @@ packages: react: 18.1.0 react-dom: 18.1.0(react@18.1.0) scroll-into-view-if-needed: 2.2.29 + dev: false - /antd@4.24.7(react-dom@18.1.0)(react@18.1.0): + /antd@4.24.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-YzHOODx3kbgUKQ7FouuukkkWzLGnbAjIxN6VShOnzOiRWe8EHo7wXyM8De0cASjw/8+SmrqyyK0np+ohQ7WntQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@ant-design/colors': 6.0.0 + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 0.29.2(react@18.3.1) + '@babel/runtime': 7.18.9 + '@ctrl/tinycolor': 3.4.1 + classnames: 2.3.2 + copy-to-clipboard: 3.3.1 + lodash: 4.17.21 + moment: 2.29.4 + rc-cascader: 3.7.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 2.3.2(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.4.2(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 9.0.2(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 6.0.0(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.27.1(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.9.0(react-dom@18.3.1)(react@18.3.1) + rc-input: 0.1.4(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.3.9(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 1.10.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-notification: 4.6.0(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.1.17(react-dom@18.3.1)(react@18.3.1) + rc-picker: 2.6.11(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.4.1(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.9.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.0(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.0.0(react-dom@18.3.1)(react@18.3.1) + rc-steps: 5.0.0(react-dom@18.3.1)(react@18.3.1) + rc-switch: 3.2.2(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.26.0(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.2.1(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.4.5(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 5.2.2(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.5.0(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + scroll-into-view-if-needed: 2.2.29 + + /antd@4.24.7(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Qr3AYkeqpd3i/c6M7pjca7Y6XlaIv/p6gD3aqe7/0o8Ueg50G7Aeh+TOaiUfXLGDhnVoNEdaVdDiv8aIaoWB5A==} peerDependencies: react: '>=16.9.0' @@ -18508,53 +21031,53 @@ packages: optional: true dependencies: '@ant-design/colors': 6.0.0 - '@ant-design/icons': 4.7.0(react-dom@18.1.0)(react@18.1.0) - '@ant-design/react-slick': 0.29.2(react@18.1.0) + '@ant-design/icons': 4.7.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 0.29.2(react@18.3.1) '@babel/runtime': 7.20.7 '@ctrl/tinycolor': 3.4.1 classnames: 2.3.2 copy-to-clipboard: 3.3.1 lodash: 4.17.21 moment: 2.29.4 - rc-cascader: 3.7.0(react-dom@18.1.0)(react@18.1.0) - rc-checkbox: 2.3.2(react-dom@18.1.0)(react@18.1.0) - rc-collapse: 3.4.2(react-dom@18.1.0)(react@18.1.0) - rc-dialog: 9.0.2(react-dom@18.1.0)(react@18.1.0) - rc-drawer: 6.1.2(react-dom@18.1.0)(react@18.1.0) - rc-dropdown: 4.0.1(react-dom@18.1.0)(react@18.1.0) - rc-field-form: 1.27.1(react-dom@18.1.0)(react@18.1.0) - rc-image: 5.13.0(react-dom@18.1.0)(react@18.1.0) - rc-input: 0.1.4(react-dom@18.1.0)(react@18.1.0) - rc-input-number: 7.3.9(react-dom@18.1.0)(react@18.1.0) - rc-mentions: 1.13.1(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.8.1(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-notification: 4.6.0(react-dom@18.1.0)(react@18.1.0) - rc-pagination: 3.2.0(react-dom@18.1.0)(react@18.1.0) - rc-picker: 2.7.0(react-dom@18.1.0)(react@18.1.0) - rc-progress: 3.4.1(react-dom@18.1.0)(react@18.1.0) - rc-rate: 2.9.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-segmented: 2.1.0(react-dom@18.1.0)(react@18.1.0) - rc-select: 14.1.13(react-dom@18.1.0)(react@18.1.0) - rc-slider: 10.0.0(react-dom@18.1.0)(react@18.1.0) - rc-steps: 5.0.0(react-dom@18.1.0)(react@18.1.0) - rc-switch: 3.2.2(react-dom@18.1.0)(react@18.1.0) - rc-table: 7.26.0(react-dom@18.1.0)(react@18.1.0) - rc-tabs: 12.5.6(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 0.4.5(react-dom@18.1.0)(react@18.1.0) - rc-tooltip: 5.2.2(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.0(react-dom@18.1.0)(react@18.1.0) - rc-tree-select: 5.5.0(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-upload: 4.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-cascader: 3.7.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 2.3.2(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.4.2(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 9.0.2(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 6.1.2(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.27.1(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.13.0(react-dom@18.3.1)(react@18.3.1) + rc-input: 0.1.4(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.3.9(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 1.13.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.8.1(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-notification: 4.6.0(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.2.0(react-dom@18.3.1)(react@18.3.1) + rc-picker: 2.7.0(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.4.1(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.9.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.0(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.0.0(react-dom@18.3.1)(react@18.3.1) + rc-steps: 5.0.0(react-dom@18.3.1)(react@18.3.1) + rc-switch: 3.2.2(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.26.0(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.5.6(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.4.5(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 5.2.2(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.5.0(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) scroll-into-view-if-needed: 2.2.29 dev: false - /antd@5.3.0(react-dom@18.1.0)(react@18.1.0): + /antd@5.3.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-+l8K2AQ+yvIOq9hzWtha3nG3ydFfwN6+fUmSGCqyThFrLPI2Y3IUPXdAXP4aQcYAnu1Q0sLwsTgHRvE2AXfZUw==} peerDependencies: react: '>=16.9.0' @@ -18566,58 +21089,59 @@ packages: optional: true dependencies: '@ant-design/colors': 7.0.0 - '@ant-design/cssinjs': 1.6.1(react-dom@18.1.0)(react@18.1.0) - '@ant-design/icons': 5.0.1(react-dom@18.1.0)(react@18.1.0) - '@ant-design/react-slick': 1.0.0(react@18.1.0) + '@ant-design/cssinjs': 1.21.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/icons': 5.0.1(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 1.0.0(react@18.3.1) '@babel/runtime': 7.21.0 '@ctrl/tinycolor': 3.6.0 - '@rc-component/mutate-observer': 1.0.0(react-dom@18.1.0)(react@18.1.0) - '@rc-component/tour': 1.8.0(react-dom@18.1.0)(react@18.1.0) - '@rc-component/trigger': 1.5.1(react-dom@18.1.0)(react@18.1.0) + '@rc-component/mutate-observer': 1.0.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/tour': 1.8.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/trigger': 1.5.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 copy-to-clipboard: 3.3.1 dayjs: 1.11.7 - qrcode.react: 3.1.0(react@18.1.0) - rc-cascader: 3.9.0(react-dom@18.1.0)(react@18.1.0) - rc-checkbox: 2.3.2(react-dom@18.1.0)(react@18.1.0) - rc-collapse: 3.5.2(react-dom@18.1.0)(react@18.1.0) - rc-dialog: 9.0.2(react-dom@18.1.0)(react@18.1.0) - rc-drawer: 6.1.2(react-dom@18.1.0)(react@18.1.0) - rc-dropdown: 4.0.1(react-dom@18.1.0)(react@18.1.0) - rc-field-form: 1.27.1(react-dom@18.1.0)(react@18.1.0) - rc-image: 5.15.2(react-dom@18.1.0)(react@18.1.0) - rc-input: 0.2.2(react-dom@18.1.0)(react@18.1.0) - rc-input-number: 7.4.2(react-dom@18.1.0)(react@18.1.0) - rc-mentions: 2.0.0(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.8.2(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-notification: 5.0.2(react-dom@18.1.0)(react@18.1.0) - rc-pagination: 3.2.0(react-dom@18.1.0)(react@18.1.0) - rc-picker: 3.2.4(dayjs@1.11.7)(react-dom@18.1.0)(react@18.1.0) - rc-progress: 3.4.1(react-dom@18.1.0)(react@18.1.0) - rc-rate: 2.9.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-segmented: 2.1.2(react-dom@18.1.0)(react@18.1.0) - rc-select: 14.3.0(react-dom@18.1.0)(react@18.1.0) - rc-slider: 10.1.1(react-dom@18.1.0)(react@18.1.0) - rc-steps: 6.0.0(react-dom@18.1.0)(react@18.1.0) - rc-switch: 4.0.0(react-dom@18.1.0)(react@18.1.0) - rc-table: 7.31.0(react-dom@18.1.0)(react@18.1.0) - rc-tabs: 12.5.6(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 1.0.1(react-dom@18.1.0)(react@18.1.0) - rc-tooltip: 6.0.1(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.0(react-dom@18.1.0)(react@18.1.0) - rc-tree-select: 5.7.0(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.4(react-dom@18.1.0)(react@18.1.0) - rc-upload: 4.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + qrcode.react: 3.1.0(react@18.3.1) + rc-cascader: 3.9.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 2.3.2(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.5.2(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 9.0.2(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 6.1.2(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.27.1(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.15.2(react-dom@18.3.1)(react@18.3.1) + rc-input: 0.2.2(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.4.2(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 2.0.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.8.2(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-notification: 5.0.2(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.2.0(react-dom@18.3.1)(react@18.3.1) + rc-picker: 3.2.4(dayjs@1.11.7)(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.4.1(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.9.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.2(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.3.0(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.1.1(react-dom@18.3.1)(react@18.3.1) + rc-steps: 6.0.0(react-dom@18.3.1)(react@18.3.1) + rc-switch: 4.0.0(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.31.0(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.5.6(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.0.1(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 6.0.1(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.4(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) scroll-into-view-if-needed: 3.0.6 throttle-debounce: 5.0.0 transitivePeerDependencies: - date-fns - moment + dev: true /antd@5.4.5(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-rQOrtVJvDKzlRNRlGL9xbd+tB83mkItvkqMU6+7SpGMLovV7GUJaGq9ZFTmn8Dd+eJb2LCNidkpV9pdDMm4cqg==} @@ -18685,8 +21209,8 @@ packages: - moment dev: false - /antd@5.6.0(moment@2.29.4)(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-VW8c3pOsSxjIdpn/fyicaXHNjG0lYKb2xzi4pLwmYuChUl6P92S5MfrhB00XQY4TWgsfBucdgX8XSoiLCTRTCg==} + /antd@5.4.5(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-rQOrtVJvDKzlRNRlGL9xbd+tB83mkItvkqMU6+7SpGMLovV7GUJaGq9ZFTmn8Dd+eJb2LCNidkpV9pdDMm4cqg==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -18697,53 +21221,52 @@ packages: optional: true dependencies: '@ant-design/colors': 7.0.0 - '@ant-design/cssinjs': 1.10.1(react-dom@18.1.0)(react@18.1.0) - '@ant-design/icons': 5.1.4(react-dom@18.1.0)(react@18.1.0) - '@ant-design/react-slick': 1.0.0(react@18.1.0) + '@ant-design/cssinjs': 1.9.1(react-dom@18.3.1)(react@18.3.1) + '@ant-design/icons': 5.0.1(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 1.0.0(react@18.3.1) '@babel/runtime': 7.21.0 '@ctrl/tinycolor': 3.6.0 - '@rc-component/color-picker': 1.2.0(react-dom@18.1.0)(react@18.1.0) - '@rc-component/mutate-observer': 1.0.0(react-dom@18.1.0)(react@18.1.0) - '@rc-component/tour': 1.8.0(react-dom@18.1.0)(react@18.1.0) - '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) + '@rc-component/mutate-observer': 1.0.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/tour': 1.8.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/trigger': 1.10.0(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 copy-to-clipboard: 3.3.3 dayjs: 1.11.7 - qrcode.react: 3.1.0(react@18.1.0) - rc-cascader: 3.12.0(react-dom@18.1.0)(react@18.1.0) - rc-checkbox: 3.0.0(react-dom@18.1.0)(react@18.1.0) - rc-collapse: 3.7.0(react-dom@18.1.0)(react@18.1.0) - rc-dialog: 9.1.0(react-dom@18.1.0)(react@18.1.0) - rc-drawer: 6.2.0(react-dom@18.1.0)(react@18.1.0) - rc-dropdown: 4.1.0(react-dom@18.1.0)(react@18.1.0) - rc-field-form: 1.32.2(react-dom@18.1.0)(react@18.1.0) - rc-image: 5.17.1(react-dom@18.1.0)(react@18.1.0) - rc-input: 1.0.4(react-dom@18.1.0)(react@18.1.0) - rc-input-number: 7.4.2(react-dom@18.1.0)(react@18.1.0) - rc-mentions: 2.3.0(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.9.2(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-notification: 5.0.4(react-dom@18.1.0)(react@18.1.0) - rc-pagination: 3.5.0(react-dom@18.1.0)(react@18.1.0) - rc-picker: 3.8.2(dayjs@1.11.7)(moment@2.29.4)(react-dom@18.1.0)(react@18.1.0) - rc-progress: 3.4.1(react-dom@18.1.0)(react@18.1.0) - rc-rate: 2.12.0(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-segmented: 2.2.2(react-dom@18.1.0)(react@18.1.0) - rc-select: 14.5.2(react-dom@18.1.0)(react@18.1.0) - rc-slider: 10.1.1(react-dom@18.1.0)(react@18.1.0) - rc-steps: 6.0.0(react-dom@18.1.0)(react@18.1.0) - rc-switch: 4.1.0(react-dom@18.1.0)(react@18.1.0) - rc-table: 7.32.1(react-dom@18.1.0)(react@18.1.0) - rc-tabs: 12.7.1(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 1.2.2(react-dom@18.1.0)(react@18.1.0) - rc-tooltip: 6.0.1(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.6(react-dom@18.1.0)(react@18.1.0) - rc-tree-select: 5.9.0(react-dom@18.1.0)(react@18.1.0) - rc-upload: 4.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + qrcode.react: 3.1.0(react@18.3.1) + rc-cascader: 3.10.3(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 3.0.0(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.5.2(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 9.1.0(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 6.1.2(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.29.2(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.16.0(react-dom@18.3.1)(react@18.3.1) + rc-input: 1.0.4(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.4.2(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 2.2.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.8.4(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-notification: 5.0.2(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.3.1(react-dom@18.3.1)(react@18.3.1) + rc-picker: 3.6.2(dayjs@1.11.7)(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.4.1(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.10.0(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.1.2(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.4.3(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.1.1(react-dom@18.3.1)(react@18.3.1) + rc-steps: 6.0.0(react-dom@18.3.1)(react@18.3.1) + rc-switch: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.31.0(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.5.6(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.2.2(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 6.0.1(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.6(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.8.0(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.30.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) scroll-into-view-if-needed: 3.0.6 throttle-debounce: 5.0.0 transitivePeerDependencies: @@ -18752,25 +21275,142 @@ packages: - moment dev: false - /any-promise@1.3.0: - resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - dev: true - - /anymatch@2.0.0: - resolution: {integrity: sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==} + /antd@5.6.0(moment@2.29.4)(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-VW8c3pOsSxjIdpn/fyicaXHNjG0lYKb2xzi4pLwmYuChUl6P92S5MfrhB00XQY4TWgsfBucdgX8XSoiLCTRTCg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true dependencies: - micromatch: 3.1.10 - normalize-path: 2.1.1 + '@ant-design/colors': 7.0.0 + '@ant-design/cssinjs': 1.10.1(react-dom@18.3.1)(react@18.3.1) + '@ant-design/icons': 5.1.4(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 1.0.0(react@18.3.1) + '@babel/runtime': 7.21.0 + '@ctrl/tinycolor': 3.6.0 + '@rc-component/color-picker': 1.2.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/mutate-observer': 1.0.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/tour': 1.8.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + copy-to-clipboard: 3.3.3 + dayjs: 1.11.7 + qrcode.react: 3.1.0(react@18.3.1) + rc-cascader: 3.12.0(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 3.0.0(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.7.0(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 9.1.0(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 6.2.0(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.32.2(react-dom@18.3.1)(react@18.3.1) + rc-image: 5.17.1(react-dom@18.3.1)(react@18.3.1) + rc-input: 1.0.4(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 7.4.2(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 2.3.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.9.2(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-notification: 5.0.4(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.5.0(react-dom@18.3.1)(react@18.3.1) + rc-picker: 3.8.2(dayjs@1.11.7)(moment@2.29.4)(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.4.1(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.12.0(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.2.2(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.5.2(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.1.1(react-dom@18.3.1)(react@18.3.1) + rc-steps: 6.0.0(react-dom@18.3.1)(react@18.3.1) + rc-switch: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.32.1(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.7.1(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.2.2(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 6.0.1(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.6(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.9.0(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.34.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + scroll-into-view-if-needed: 3.0.6 + throttle-debounce: 5.0.0 transitivePeerDependencies: - - supports-color - dev: true + - date-fns + - luxon + - moment + dev: false - /anymatch@3.1.2: - resolution: {integrity: sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==} - engines: {node: '>= 8'} + /antd@5.8.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-DbQUmRWf9GAllZsc9NxL9gnrup75F7iZ0OlFY+mXh31JdSYQLLP07CAOK7z/sdQLQdYnAHWyuWvkb2mrRKxnYA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 + '@ant-design/colors': 7.0.0 + '@ant-design/cssinjs': 1.21.0(react-dom@18.3.1)(react@18.3.1) + '@ant-design/icons': 5.2.5(react-dom@18.3.1)(react@18.3.1) + '@ant-design/react-slick': 1.0.0(react@18.3.1) + '@babel/runtime': 7.21.0 + '@ctrl/tinycolor': 3.6.0 + '@rc-component/color-picker': 1.4.1(react-dom@18.3.1)(react@18.3.1) + '@rc-component/mutate-observer': 1.0.0(react-dom@18.3.1)(react@18.3.1) + '@rc-component/tour': 1.8.1(react-dom@18.3.1)(react@18.3.1) + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + copy-to-clipboard: 3.3.3 + dayjs: 1.11.7 + qrcode.react: 3.1.0(react@18.3.1) + rc-cascader: 3.14.1(react-dom@18.3.1)(react@18.3.1) + rc-checkbox: 3.1.0(react-dom@18.3.1)(react@18.3.1) + rc-collapse: 3.7.0(react-dom@18.3.1)(react@18.3.1) + rc-dialog: 9.1.0(react-dom@18.3.1)(react@18.3.1) + rc-drawer: 6.2.0(react-dom@18.3.1)(react@18.3.1) + rc-dropdown: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-field-form: 1.36.2(react-dom@18.3.1)(react@18.3.1) + rc-image: 7.1.3(react-dom@18.3.1)(react@18.3.1) + rc-input: 1.1.1(react-dom@18.3.1)(react@18.3.1) + rc-input-number: 8.0.4(react-dom@18.3.1)(react@18.3.1) + rc-mentions: 2.5.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.10.0(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-notification: 5.0.4(react-dom@18.3.1)(react@18.3.1) + rc-pagination: 3.6.1(react-dom@18.3.1)(react@18.3.1) + rc-picker: 3.13.1(dayjs@1.11.7)(react-dom@18.3.1)(react@18.3.1) + rc-progress: 3.4.1(react-dom@18.3.1)(react@18.3.1) + rc-rate: 2.12.0(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-segmented: 2.2.2(react-dom@18.3.1)(react@18.3.1) + rc-select: 14.7.4(react-dom@18.3.1)(react@18.3.1) + rc-slider: 10.1.1(react-dom@18.3.1)(react@18.3.1) + rc-steps: 6.0.1(react-dom@18.3.1)(react@18.3.1) + rc-switch: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-table: 7.32.1(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.9.0(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.3.4(react-dom@18.3.1)(react@18.3.1) + rc-tooltip: 6.0.1(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-tree-select: 5.11.2(react-dom@18.3.1)(react@18.3.1) + rc-upload: 4.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.36.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + scroll-into-view-if-needed: 3.0.6 + throttle-debounce: 5.0.0 + transitivePeerDependencies: + - date-fns + - luxon + - moment + dev: false + + /any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} dev: true /anymatch@3.1.3: @@ -18810,9 +21450,16 @@ packages: /are-we-there-yet@3.0.1: resolution: {integrity: sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + deprecated: This package is no longer supported. dependencies: delegates: 1.0.0 - readable-stream: 3.6.0 + readable-stream: 3.6.2 + dev: true + + /are-we-there-yet@4.0.2: + resolution: {integrity: sha512-ncSWAawFhKMJDTdoAeOV+jyW1VCMj5QIAwULIBV0SSR7B/RLPPEQiknKcg/RIIZlUQrxELpsxMiTUoAQ4sIUyg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + deprecated: This package is no longer supported. dev: true /arg@4.1.3: @@ -18829,35 +21476,20 @@ packages: /argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - /aria-hidden@1.1.3: - resolution: {integrity: sha512-RhVWFtKH5BiGMycI72q2RAFMLQi8JP9bLuQXgR5a8Znp7P5KOIADSJeyfI8PCVxLEp067B2HbP5JIiI/PXIZeA==} - engines: {node: '>=8.5.0'} + /aria-hidden@1.2.3: + resolution: {integrity: sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==} + engines: {node: '>=10'} dependencies: - tslib: 1.14.1 + tslib: 2.6.2 /aria-query@5.0.2: resolution: {integrity: sha512-eigU3vhqSO+Z8BKDnVLN/ompjhf3pYzecKXz8+whRy+9gZu8n1TCGfwzQUUPnqdHl9ax1Hr9031orZ+UOEYr7Q==} engines: {node: '>=6.0'} - /arr-diff@4.0.0: - resolution: {integrity: sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==} - engines: {node: '>=0.10.0'} - dev: true - - /arr-flatten@1.1.0: - resolution: {integrity: sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==} - engines: {node: '>=0.10.0'} - dev: true - - /arr-union@3.1.0: - resolution: {integrity: sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==} - engines: {node: '>=0.10.0'} - dev: true - /array-buffer-byte-length@1.0.0: resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 is-array-buffer: 3.0.2 /array-differ@3.0.0: @@ -18879,10 +21511,21 @@ packages: resolution: {integrity: sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 + is-string: 1.0.7 + dev: true + + /array-includes@3.1.7: + resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 is-string: 1.0.7 /array-tree-filter@2.1.0: @@ -18909,39 +21552,65 @@ packages: engines: {node: '>=0.10.0'} dev: true - /array-unique@0.3.2: - resolution: {integrity: sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==} - engines: {node: '>=0.10.0'} - dev: true + /array.prototype.flat@1.3.2: + resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.2 /array.prototype.flatmap@1.3.1: resolution: {integrity: sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 es-shim-unscopables: 1.0.0 + dev: true + + /array.prototype.flatmap@1.3.2: + resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.2 /array.prototype.reduce@1.0.5: resolution: {integrity: sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.3 es-array-method-boxes-properly: 1.0.0 is-string: 1.0.7 dev: true - /array.prototype.tosorted@1.1.1: - resolution: {integrity: sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==} + /array.prototype.tosorted@1.1.2: + resolution: {integrity: sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 - es-shim-unscopables: 1.0.0 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.2 + get-intrinsic: 1.2.2 + + /arraybuffer.prototype.slice@1.0.2: + resolution: {integrity: sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.0 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 + is-array-buffer: 3.0.2 + is-shared-array-buffer: 1.0.2 /arrify@1.0.1: resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} @@ -18978,26 +21647,28 @@ packages: safer-buffer: 2.1.2 dev: true + /assert-okam@1.5.0: + resolution: {integrity: sha512-pchhPo40i8GsTj/7h6P8LSSzwRErnh2nCEiwXNTxy4VYw6lSesSac4rTKqwsA+fOZdj6FT81Mb9U1vIZEua1EQ==} + dependencies: + object-assign: 4.1.1 + util: 0.10.3 + dev: false + /assert-plus@1.0.0: resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} engines: {node: '>=0.8'} dev: true - /assert@1.5.0: - resolution: {integrity: sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==} + /assert@1.5.1: + resolution: {integrity: sha512-zzw1uCAgLbsKwBfFc8CX78DDg+xZeBksSO3vwVIDDN5i94eOrPsSSyiVhmsSABFDM/OcpE2aagCat9dnWQLG1A==} dependencies: - object-assign: 4.1.1 - util: 0.10.3 + object.assign: 4.1.5 + util: 0.10.4 /assertion-error@1.1.0: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true - /assign-symbols@1.0.0: - resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==} - engines: {node: '>=0.10.0'} - dev: true - /astral-regex@2.0.0: resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} engines: {node: '>=8'} @@ -19023,6 +21694,11 @@ packages: /async@3.2.4: resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} + /asynciterator.prototype@1.0.0: + resolution: {integrity: sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==} + dependencies: + has-symbols: 1.0.3 + /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} @@ -19050,19 +21726,38 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 - caniuse-lite: 1.0.30001487 + browserslist: 4.22.2 + caniuse-lite: 1.0.30001571 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 postcss: 8.4.21 postcss-value-parser: 4.2.0 + /autoprefixer@10.4.13(postcss@8.4.35): + resolution: {integrity: sha512-49vKpMqcZYsJjwotvt4+h/BCjJVnhGwcLpDt5xkcaOG3eLrG/HUYLagrihYsQ+qrIBgIzX1Rw7a6L8I/ZA1Atg==} + engines: {node: ^10 || ^12 || >=14} + hasBin: true + peerDependencies: + postcss: ^8.1.0 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + caniuse-lite: 1.0.30001571 + fraction.js: 4.2.0 + normalize-range: 0.1.2 + picocolors: 1.0.0 + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true + /autoprefixer@9.8.8: resolution: {integrity: sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==} dependencies: - browserslist: 4.21.5 - caniuse-lite: 1.0.30001450 + browserslist: 4.22.2 + caniuse-lite: 1.0.30001571 normalize-range: 0.1.2 num2fraction: 1.2.2 picocolors: 0.2.1 @@ -19124,45 +21819,25 @@ packages: transitivePeerDependencies: - debug - /axios@1.2.2: - resolution: {integrity: sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==} + /axios@1.6.3: + resolution: {integrity: sha512-fWyNdeawGam70jXSVlKl+SUNVcL6j6W79CuSIPfi6HnDUmSCH6gyUys/HrqHeA/wU0Az41rRgean494d0Jb+ww==} dependencies: follow-redirects: 1.15.1(debug@4.3.4) form-data: 4.0.0 proxy-from-env: 1.1.0 transitivePeerDependencies: - debug - dev: true - - /babel-jest@26.6.3(@babel/core@7.22.5): - resolution: {integrity: sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==} - engines: {node: '>= 10.14.2'} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.22.5 - '@jest/transform': 26.6.2 - '@jest/types': 26.6.2 - '@types/babel__core': 7.20.1 - babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 26.6.2(@babel/core@7.22.5) - chalk: 4.1.2 - graceful-fs: 4.2.11 - slash: 3.0.0 - transitivePeerDependencies: - - supports-color - dev: true - /babel-jest@29.4.3: - resolution: {integrity: sha512-o45Wyn32svZE+LnMVWv/Z4x0SwtLbh4FyGcYtR20kIWd+rdrDZ9Fzq8Ml3MYLD+mZvEdzCjZsCnYZ2jpJyQ+Nw==} + /babel-jest@29.7.0: + resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.8.0 dependencies: - '@jest/transform': 29.4.3 - '@types/babel__core': 7.20.1 + '@jest/transform': 29.7.0 + '@types/babel__core': 7.20.5 babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.4.3 + babel-preset-jest: 29.6.3 chalk: 4.1.2 graceful-fs: 4.2.11 slash: 3.0.0 @@ -19170,43 +21845,25 @@ packages: - supports-color dev: true - /babel-jest@29.4.3(@babel/core@7.21.0): - resolution: {integrity: sha512-o45Wyn32svZE+LnMVWv/Z4x0SwtLbh4FyGcYtR20kIWd+rdrDZ9Fzq8Ml3MYLD+mZvEdzCjZsCnYZ2jpJyQ+Nw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - peerDependencies: - '@babel/core': ^7.8.0 - dependencies: - '@babel/core': 7.21.0 - '@jest/transform': 29.4.3 - '@types/babel__core': 7.20.1 - babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.4.3(@babel/core@7.21.0) - chalk: 4.1.2 - graceful-fs: 4.2.11 - slash: 3.0.0 - transitivePeerDependencies: - - supports-color - dev: false - - /babel-jest@29.4.3(@babel/core@7.22.5): - resolution: {integrity: sha512-o45Wyn32svZE+LnMVWv/Z4x0SwtLbh4FyGcYtR20kIWd+rdrDZ9Fzq8Ml3MYLD+mZvEdzCjZsCnYZ2jpJyQ+Nw==} + /babel-jest@29.7.0(@babel/core@7.23.6): + resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.8.0 dependencies: - '@babel/core': 7.22.5 - '@jest/transform': 29.4.3 - '@types/babel__core': 7.20.1 + '@babel/core': 7.23.6 + '@jest/transform': 29.7.0 + '@types/babel__core': 7.20.5 babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.4.3(@babel/core@7.22.5) + babel-preset-jest: 29.6.3(@babel/core@7.23.6) chalk: 4.1.2 graceful-fs: 4.2.11 slash: 3.0.0 transitivePeerDependencies: - supports-color - /babel-loader@9.1.2(@babel/core@7.21.0)(webpack@5.75.0): - resolution: {integrity: sha512-mN14niXW43tddohGl8HPu5yfQq70iUThvFL/4QzESA7GcZoC0eVOhvWdQ8+3UlSjaDE9MVtsW9mxDY07W7VpVA==} + /babel-loader@9.1.3(@babel/core@7.23.6)(webpack@5.75.0): + resolution: {integrity: sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw==} engines: {node: '>= 14.15.0'} peerDependencies: '@babel/core': ^7.12.0 @@ -19215,14 +21872,14 @@ packages: webpack: optional: true dependencies: - '@babel/core': 7.21.0 - find-cache-dir: 3.3.2 - schema-utils: 4.0.0 + '@babel/core': 7.23.6 + find-cache-dir: 4.0.0 + schema-utils: 4.2.0 webpack: 5.75.0(esbuild@0.17.19)(uglify-js@3.17.4)(webpack-cli@5.0.1) dev: true - /babel-loader@9.1.2(webpack@5.76.1): - resolution: {integrity: sha512-mN14niXW43tddohGl8HPu5yfQq70iUThvFL/4QzESA7GcZoC0eVOhvWdQ8+3UlSjaDE9MVtsW9mxDY07W7VpVA==} + /babel-loader@9.1.3(webpack@5.88.2): + resolution: {integrity: sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw==} engines: {node: '>= 14.15.0'} peerDependencies: '@babel/core': ^7.12.0 @@ -19231,9 +21888,9 @@ packages: webpack: optional: true dependencies: - find-cache-dir: 3.3.2 - schema-utils: 4.0.0 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + find-cache-dir: 4.0.0 + schema-utils: 4.2.0 + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /babel-plugin-dynamic-import-node@2.3.3: @@ -19245,6 +21902,12 @@ packages: resolution: {integrity: sha512-N7FYnGh0DFsvDRkAPsvFq/metVfVD7P2h1rokOPpEH4cZbdRHCW+2jbXt0nnuqowkm/xhh2ww1anIdEpfYa7ZA==} dependencies: '@babel/helper-module-imports': 7.18.6 + dev: true + + /babel-plugin-import@1.13.8: + resolution: {integrity: sha512-36babpjra5m3gca44V6tSTomeBlPA7cHUynrE2WiQIm3rEGD9xy28MKsx5IdO45EbnpJY7Jrgd00C6Dwt/l/2Q==} + dependencies: + '@babel/helper-module-imports': 7.22.15 /babel-plugin-istanbul@6.1.1: resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} @@ -19258,29 +21921,19 @@ packages: transitivePeerDependencies: - supports-color - /babel-plugin-jest-hoist@26.6.2: - resolution: {integrity: sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==} - engines: {node: '>= 10.14.2'} - dependencies: - '@babel/template': 7.22.5 - '@babel/types': 7.22.5 - '@types/babel__core': 7.20.1 - '@types/babel__traverse': 7.20.1 - dev: true - - /babel-plugin-jest-hoist@29.4.3: - resolution: {integrity: sha512-mB6q2q3oahKphy5V7CpnNqZOCkxxZ9aokf1eh82Dy3jQmg4xvM1tGrh5y6BQUJh4a3Pj9+eLfwvAZ7VNKg7H8Q==} + /babel-plugin-jest-hoist@29.6.3: + resolution: {integrity: sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/template': 7.22.5 - '@babel/types': 7.22.5 - '@types/babel__core': 7.20.1 - '@types/babel__traverse': 7.20.1 + '@babel/template': 7.22.15 + '@babel/types': 7.23.6 + '@types/babel__core': 7.20.5 + '@types/babel__traverse': 7.20.4 /babel-plugin-macros@2.6.1: resolution: {integrity: sha512-6W2nwiXme6j1n2erPOnmRiWfObUhWH7Qw1LMi9XZy8cj+KtESu3T6asZvtk5bMQQjX8te35o7CFueiSdL/2NmQ==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 cosmiconfig: 5.2.1 resolve: 1.22.0 dev: true @@ -19289,8 +21942,8 @@ packages: resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} engines: {node: '>=10', npm: '>=6'} dependencies: - '@babel/runtime': 7.21.0 - cosmiconfig: 7.0.1 + '@babel/runtime': 7.23.6 + cosmiconfig: 7.1.0 resolve: 1.22.0 dev: false @@ -19302,7 +21955,7 @@ packages: glob: 7.2.3 pkg-up: 2.0.0 reselect: 3.0.1 - resolve: 1.22.1 + resolve: 1.22.0 dev: true /babel-plugin-module-resolver@4.1.0: @@ -19316,40 +21969,15 @@ packages: resolve: 1.22.0 dev: true - /babel-plugin-polyfill-corejs2@0.3.3: - resolution: {integrity: sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/compat-data': 7.22.5 - '@babel/helper-define-polyfill-provider': 0.3.3 - semver: 6.3.0 - transitivePeerDependencies: - - supports-color - dev: false - /babel-plugin-polyfill-corejs2@0.3.3(@babel/core@7.20.12): resolution: {integrity: sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.20.12 '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.20.12) - semver: 6.3.0 - transitivePeerDependencies: - - supports-color - dev: true - - /babel-plugin-polyfill-corejs2@0.3.3(@babel/core@7.21.0): - resolution: {integrity: sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.21.0 - '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.21.0) - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -19358,44 +21986,46 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.22.5 + '@babel/compat-data': 7.22.20 '@babel/core': 7.22.5 '@babel/helper-define-polyfill-provider': 0.4.0(@babel/core@7.22.5) - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color - dev: true - /babel-plugin-polyfill-corejs3@0.6.0: - resolution: {integrity: sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==} + /babel-plugin-polyfill-corejs2@0.4.5(@babel/core@7.23.0): + resolution: {integrity: sha512-19hwUH5FKl49JEsvyTcoHakh6BE0wgXLLptIyKZ3PijHc/Ci521wygORCUCCred+E/twuqRyAkE02BAWPmsHOg==} peerDependencies: - '@babel/core': ^7.0.0-0 + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 dependencies: - '@babel/helper-define-polyfill-provider': 0.3.3 - core-js-compat: 3.31.0 + '@babel/compat-data': 7.22.20 + '@babel/core': 7.23.0 + '@babel/helper-define-polyfill-provider': 0.4.2(@babel/core@7.23.0) + semver: 6.3.1 transitivePeerDependencies: - supports-color - dev: false + dev: true - /babel-plugin-polyfill-corejs3@0.6.0(@babel/core@7.20.12): - resolution: {integrity: sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==} + /babel-plugin-polyfill-corejs2@0.4.7(@babel/core@7.23.6): + resolution: {integrity: sha512-LidDk/tEGDfuHW2DWh/Hgo4rmnw3cduK6ZkOI1NPFceSK3n/yAGeOsNT7FLnSGHkXj3RHGSEVkN3FsCTY6w2CQ==} peerDependencies: - '@babel/core': ^7.0.0-0 + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.20.12) - core-js-compat: 3.31.0 + '@babel/compat-data': 7.23.5 + '@babel/core': 7.23.6 + '@babel/helper-define-polyfill-provider': 0.4.4(@babel/core@7.23.6) + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true - /babel-plugin-polyfill-corejs3@0.6.0(@babel/core@7.21.0): + /babel-plugin-polyfill-corejs3@0.6.0(@babel/core@7.20.12): resolution: {integrity: sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.21.0) + '@babel/core': 7.20.12 + '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.20.12) core-js-compat: 3.31.0 transitivePeerDependencies: - supports-color @@ -19410,36 +22040,38 @@ packages: core-js-compat: 3.31.0 transitivePeerDependencies: - supports-color - dev: true - /babel-plugin-polyfill-regenerator@0.4.1: - resolution: {integrity: sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==} + /babel-plugin-polyfill-corejs3@0.8.4(@babel/core@7.23.0): + resolution: {integrity: sha512-9l//BZZsPR+5XjyJMPtZSK4jv0BsTO1zDac2GC6ygx9WLGlcsnRd1Co0B2zT5fF5Ic6BZy+9m3HNZ3QcOeDKfg==} peerDependencies: - '@babel/core': ^7.0.0-0 + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 dependencies: - '@babel/helper-define-polyfill-provider': 0.3.3 + '@babel/core': 7.23.0 + '@babel/helper-define-polyfill-provider': 0.4.2(@babel/core@7.23.0) + core-js-compat: 3.33.0 transitivePeerDependencies: - supports-color - dev: false + dev: true - /babel-plugin-polyfill-regenerator@0.4.1(@babel/core@7.20.12): - resolution: {integrity: sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==} + /babel-plugin-polyfill-corejs3@0.8.7(@babel/core@7.23.6): + resolution: {integrity: sha512-KyDvZYxAzkC0Aj2dAPyDzi2Ym15e5JKZSK+maI7NAwSqofvuFglbSsxE7wUOvTg9oFVnHMzVzBKcqEb4PJgtOA==} peerDependencies: - '@babel/core': ^7.0.0-0 + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 dependencies: - '@babel/core': 7.20.12 - '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.20.12) + '@babel/core': 7.23.6 + '@babel/helper-define-polyfill-provider': 0.4.4(@babel/core@7.23.6) + core-js-compat: 3.34.0 transitivePeerDependencies: - supports-color dev: true - /babel-plugin-polyfill-regenerator@0.4.1(@babel/core@7.21.0): + /babel-plugin-polyfill-regenerator@0.4.1(@babel/core@7.20.12): resolution: {integrity: sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.21.0 - '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.21.0) + '@babel/core': 7.20.12 + '@babel/helper-define-polyfill-provider': 0.3.3(@babel/core@7.20.12) transitivePeerDependencies: - supports-color @@ -19452,8 +22084,41 @@ packages: '@babel/helper-define-polyfill-provider': 0.4.0(@babel/core@7.22.5) transitivePeerDependencies: - supports-color + + /babel-plugin-polyfill-regenerator@0.5.2(@babel/core@7.23.0): + resolution: {integrity: sha512-tAlOptU0Xj34V1Y2PNTL4Y0FOJMDB6bZmoW39FeCQIhigGLkqu3Fj6uiXpxIf6Ij274ENdYx64y6Au+ZKlb1IA==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-define-polyfill-provider': 0.4.2(@babel/core@7.23.0) + transitivePeerDependencies: + - supports-color dev: true + /babel-plugin-polyfill-regenerator@0.5.4(@babel/core@7.23.6): + resolution: {integrity: sha512-S/x2iOCvDaCASLYsOOgWOq4bCfKYVqvO/uxjkaYyZ3rVsVE3CeAI/c84NpyuBBymEgNvHgjEot3a9/Z/kXvqsg==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.23.6 + '@babel/helper-define-polyfill-provider': 0.4.4(@babel/core@7.23.6) + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-react-compiler@0.0.0-experimental-c23de8d-20240515: + resolution: {integrity: sha512-0XN2gmpT55QtAz5n7d5g91y1AuO9tRhWBaLgCRyc4ExHrlr7+LfxW+YTb3mOwxngkkiggwM8HyYsaEK9MqhnlQ==} + dependencies: + '@babel/generator': 7.2.0 + '@babel/types': 7.23.6 + chalk: 4.1.2 + invariant: 2.2.4 + pretty-format: 24.9.0 + zod: 3.23.8 + zod-validation-error: 2.1.0(zod@3.23.8) + dev: false + /babel-plugin-react-require@3.0.0: resolution: {integrity: sha512-mZV3ycvtB4mfVhmScbU4CjMfBgoQAlsGu/vQw292juPSgvezTmBAke+V85ODAVNCM68r2Qa6dwu72Zcl4cTIbw==} dev: true @@ -19462,20 +22127,19 @@ packages: resolution: {integrity: sha512-kDXhW2iPTL81x4Ye2aUMdEXQ56JP0sBJmRQRXJPH5FsNB7fOc/YCsHTqHv8IovPyw9Rk07gdd7MVUz8tUmRBCA==} dev: true - /babel-plugin-styled-components@2.1.1(styled-components@6.0.0-rc.0): - resolution: {integrity: sha512-c8lJlszObVQPguHkI+akXv8+Jgb9Ccujx0EetL7oIvwU100LxO6XAGe45qry37wUL40a5U9f23SYrivro2XKhA==} + /babel-plugin-styled-components@2.1.4(styled-components@6.1.1): + resolution: {integrity: sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g==} peerDependencies: styled-components: '>= 2' dependencies: '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.5 - babel-plugin-syntax-jsx: 6.18.0 + '@babel/helper-module-imports': 7.22.15 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.4.5) lodash: 4.17.21 picomatch: 2.3.1 - styled-components: 6.0.0-rc.0(react-dom@18.1.0)(react@18.1.0) - - /babel-plugin-syntax-jsx@6.18.0: - resolution: {integrity: sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw==} + styled-components: 6.1.1(react-dom@18.3.1)(react@18.3.1) + transitivePeerDependencies: + - '@babel/core' /babel-plugin-transform-define@2.0.1: resolution: {integrity: sha512-7lDR1nFGSJHmhq/ScQtp9LTDmNE2yKPoLtwfiu+WQZnj84XL/J/5AZWZXwYcOwbDtUPhtg+y0yxTiP/oGDU6Kw==} @@ -19494,7 +22158,7 @@ packages: peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/helper-module-imports': 7.22.5 + '@babel/helper-module-imports': 7.22.15 dev: false /babel-preset-current-node-syntax@1.0.1: @@ -19502,100 +22166,58 @@ packages: peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.4.5) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.20.12) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.21.0) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.4.5) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.20.12) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.4.5) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.20.12) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.4.5) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.4.5) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.4.5) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.20.12) - dev: true - - /babel-preset-current-node-syntax@1.0.1(@babel/core@7.21.0): + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.0) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.23.0) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.0) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.0) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.0) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.0) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.23.0) + dev: true + + /babel-preset-current-node-syntax@1.0.1(@babel/core@7.23.6): resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.21.0) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.21.0) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.21.0) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.21.0) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.21.0) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.21.0) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.21.0) - dev: false - - /babel-preset-current-node-syntax@1.0.1(@babel/core@7.22.5): - resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.22.5) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.22.5) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.22.5) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.22.5) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.22.5) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.22.5) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.22.5) - - /babel-preset-jest@26.6.2(@babel/core@7.22.5): - resolution: {integrity: sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==} - engines: {node: '>= 10.14.2'} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.22.5 - babel-plugin-jest-hoist: 26.6.2 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.22.5) - dev: true - - /babel-preset-jest@29.4.3: - resolution: {integrity: sha512-gWx6COtSuma6n9bw+8/F+2PCXrIgxV/D1TJFnp6OyBK2cxPWg0K9p/sriNYeifKjpUkMViWQ09DSWtzJQRETsw==} + '@babel/core': 7.23.6 + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.6) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.23.6) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.6) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.6) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.6) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.6) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.23.6) + + /babel-preset-jest@29.6.3: + resolution: {integrity: sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.0.0 dependencies: - babel-plugin-jest-hoist: 29.4.3 + babel-plugin-jest-hoist: 29.6.3 babel-preset-current-node-syntax: 1.0.1 dev: true - /babel-preset-jest@29.4.3(@babel/core@7.21.0): - resolution: {integrity: sha512-gWx6COtSuma6n9bw+8/F+2PCXrIgxV/D1TJFnp6OyBK2cxPWg0K9p/sriNYeifKjpUkMViWQ09DSWtzJQRETsw==} + /babel-preset-jest@29.6.3(@babel/core@7.23.6): + resolution: {integrity: sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.21.0 - babel-plugin-jest-hoist: 29.4.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.21.0) - dev: false - - /babel-preset-jest@29.4.3(@babel/core@7.22.5): - resolution: {integrity: sha512-gWx6COtSuma6n9bw+8/F+2PCXrIgxV/D1TJFnp6OyBK2cxPWg0K9p/sriNYeifKjpUkMViWQ09DSWtzJQRETsw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.22.5 - babel-plugin-jest-hoist: 29.4.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.22.5) + '@babel/core': 7.23.6 + babel-plugin-jest-hoist: 29.6.3 + babel-preset-current-node-syntax: 1.0.1(@babel/core@7.23.6) /babel-preset-umi@1.8.4: resolution: {integrity: sha512-4IU0WuLZTiw7MstZJMwtjyYIGyOhWNUKcpSz1v5T9X8/ka2WXZ3qlkUe8dEb2kBNGrbOdXRw7u8FBEMtexqbow==} @@ -19667,19 +22289,6 @@ packages: /base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - /base@0.11.2: - resolution: {integrity: sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==} - engines: {node: '>=0.10.0'} - dependencies: - cache-base: 1.0.1 - class-utils: 0.3.6 - component-emitter: 1.3.0 - define-property: 1.0.0 - isobject: 3.0.1 - mixin-deep: 1.3.2 - pascalcase: 0.1.1 - dev: true - /batch@0.6.1: resolution: {integrity: sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==} @@ -19705,16 +22314,14 @@ packages: /big.js@5.2.2: resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} - /bin-links@3.0.3: - resolution: {integrity: sha512-zKdnMPWEdh4F5INR07/eBrodC7QrF5JKvqskjz/ZZRXg5YSAZIbn8zGhbhUrElzHBZ2fvEQdOU59RHcTG3GiwA==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /bin-links@4.0.4: + resolution: {integrity: sha512-cMtq4W5ZsEwcutJrVId+a/tjt8GSbS+h0oNkdl6+6rBuEv8Ot33Bevj5KPm40t309zuhVic8NjpuL42QCiJWWA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - cmd-shim: 5.0.0 - mkdirp-infer-owner: 2.0.0 - npm-normalize-package-bin: 2.0.0 - read-cmd-shim: 3.0.1 - rimraf: 3.0.2 - write-file-atomic: 4.0.2 + cmd-shim: 6.0.3 + npm-normalize-package-bin: 3.0.1 + read-cmd-shim: 4.0.0 + write-file-atomic: 5.0.1 dev: true /binary-extensions@2.2.0: @@ -19725,7 +22332,7 @@ packages: resolution: {integrity: sha512-nAihlQsYGyc5Bwq6+EsubvANYGExeJKHDO3RjnvwU042fawQTQfM3Kxn7IHUXQOz4bzfwsGYYHGSvXyW4zOGLg==} engines: {node: '>=0.8'} - /bizcharts-plugin-slider@3.0.1(bizcharts@4.1.22)(react-dom@18.1.0)(react@18.1.0): + /bizcharts-plugin-slider@3.0.1(bizcharts@4.1.22)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-8I53vTf99j7J21wNy0tVIQHyY9RO1xNwhKq5NDFEO5sHC06cjNGBF3/usm6JQ4u/JBjcIBwCtg8cYCpO9IqYRA==} peerDependencies: bizcharts: '>=3.2.3' @@ -19738,27 +22345,27 @@ packages: optional: true dependencies: '@antv/g2-plugin-slider': 2.1.0 - bizcharts: 4.1.22(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + bizcharts: 4.1.22(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) transitivePeerDependencies: - '@antv/g2' dev: false - /bizcharts@4.1.22(react@18.1.0): + /bizcharts@4.1.22(react@18.3.1): resolution: {integrity: sha512-mTHUr6svp35z8474rfJZULGvS3mkhhpESZFuHyERvoSiziq9cmYukNyH4ziV+wrUwcGt4HoqVVsvosYxurvgNQ==} dependencies: '@antv/component': 0.8.28 '@antv/g2': 4.1.32 '@antv/g2plot': 2.3.39 '@antv/util': 2.0.17 - '@babel/plugin-transform-modules-commonjs': 7.21.2(@babel/core@7.21.0) + '@babel/plugin-transform-modules-commonjs': 7.21.2 '@babel/plugin-transform-runtime': 7.21.0 '@juggle/resize-observer': 3.4.0 babel-plugin-transform-replace-object-assign: 2.0.0 d3-color: 3.1.0 - react-error-boundary: 3.0.2(react@18.1.0) - react-reconciler: 0.25.1(react@18.1.0) + react-error-boundary: 3.0.2(react@18.3.1) + react-reconciler: 0.25.1(react@18.3.1) warning: 4.0.3 transitivePeerDependencies: - '@babel/core' @@ -19924,20 +22531,6 @@ packages: widest-line: 2.0.1 dev: true - /boxen@4.2.0: - resolution: {integrity: sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==} - engines: {node: '>=8'} - dependencies: - ansi-align: 3.0.1 - camelcase: 5.3.1 - chalk: 3.0.0 - cli-boxes: 2.2.1 - string-width: 4.2.3 - term-size: 2.2.1 - type-fest: 0.8.1 - widest-line: 3.1.0 - dev: true - /bplist-parser@0.2.0: resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==} engines: {node: '>= 5.10.0'} @@ -19954,25 +22547,6 @@ packages: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} dependencies: balanced-match: 1.0.2 - dev: true - - /braces@2.3.2: - resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==} - engines: {node: '>=0.10.0'} - dependencies: - arr-flatten: 1.1.0 - array-unique: 0.3.2 - extend-shallow: 2.0.1 - fill-range: 4.0.0 - isobject: 3.0.1 - repeat-element: 1.1.4 - snapdragon: 0.8.2 - snapdragon-node: 2.1.1 - split-string: 3.1.0 - to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color - dev: true /braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} @@ -20004,7 +22578,7 @@ packages: resolution: {integrity: sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==} dependencies: cipher-base: 1.0.4 - des.js: 1.0.1 + des.js: 1.1.0 inherits: 2.0.4 safe-buffer: 5.2.1 @@ -20014,8 +22588,9 @@ packages: bn.js: 5.2.1 randombytes: 2.1.0 - /browserify-sign@4.2.1: - resolution: {integrity: sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==} + /browserify-sign@4.2.2: + resolution: {integrity: sha512-1rudGyeYY42Dk6texmv7c4VcQ0EsvVbLwZkA+AQB7SxvXxmcD93jcHie8bzecJ+ChDlmAm2Qyu0+Ccg5uhZXCg==} + engines: {node: '>= 4'} dependencies: bn.js: 5.2.1 browserify-rsa: 4.1.0 @@ -20032,15 +22607,15 @@ packages: dependencies: pako: 1.0.11 - /browserslist@4.21.5: - resolution: {integrity: sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==} + /browserslist@4.22.2: + resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001487 - electron-to-chromium: 1.4.397 - node-releases: 2.0.10 - update-browserslist-db: 1.0.11(browserslist@4.21.5) + caniuse-lite: 1.0.30001571 + electron-to-chromium: 1.4.616 + node-releases: 2.0.14 + update-browserslist-db: 1.0.13(browserslist@4.22.2) /bser@2.1.1: resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} @@ -20077,6 +22652,14 @@ packages: /buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + /buffer-okam@4.9.2: + resolution: {integrity: sha512-t+vozme+an7flUs6GXHGMiP3PdodTse1NgRHSDWioIFJAtmMlj3pj7qD20Mkr9hZy0+9HA4R0xcumpMewrRdZQ==} + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + isarray: 1.0.0 + dev: false + /buffer-xor@1.0.3: resolution: {integrity: sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==} @@ -20188,6 +22771,24 @@ packages: - bluebird dev: true + /cacache@17.1.4: + resolution: {integrity: sha512-/aJwG2l3ZMJ1xNAnqbMpA40of9dj/pIH3QfiuQSqjfPJF747VR0J/bHn+/KdNnHKc6XQcWt/AfRSBft82W1d2A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + '@npmcli/fs': 3.1.1 + fs-minipass: 3.0.3 + glob: 10.3.12 + lru-cache: 7.14.0 + minipass: 7.0.4 + minipass-collect: 1.0.2 + minipass-flush: 1.0.5 + minipass-pipeline: 1.2.4 + p-map: 4.0.0 + ssri: 10.0.6 + tar: 6.1.13 + unique-filename: 3.0.0 + dev: true + /cacache@9.3.0: resolution: {integrity: sha512-Vbi8J1XfC8v+FbQ6QkOtKXsHpPnB0i9uMeYFJoj40EbdOsEqWB3DPpNjfsnYBkqOPYA8UvrqH6FZPpBP0zdN7g==} dependencies: @@ -20206,21 +22807,6 @@ packages: y18n: 3.2.2 dev: true - /cache-base@1.0.1: - resolution: {integrity: sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==} - engines: {node: '>=0.10.0'} - dependencies: - collection-visit: 1.0.0 - component-emitter: 1.3.0 - get-value: 2.0.6 - has-value: 1.0.0 - isobject: 3.0.1 - set-value: 2.0.1 - to-object-path: 0.3.0 - union-value: 1.0.1 - unset-value: 1.0.0 - dev: true - /cacheable-lookup@5.0.4: resolution: {integrity: sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==} engines: {node: '>=10.6.0'} @@ -20232,7 +22818,7 @@ packages: dependencies: clone-response: 1.0.3 get-stream: 5.2.0 - http-cache-semantics: 4.1.0 + http-cache-semantics: 4.1.1 keyv: 3.1.0 lowercase-keys: 2.0.0 normalize-url: 4.5.1 @@ -20267,11 +22853,22 @@ packages: write-file-atomic: 3.0.3 dev: true - /call-bind@1.0.2: - resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} + /call-bind@1.0.5: + resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} + dependencies: + function-bind: 1.1.2 + get-intrinsic: 1.2.2 + set-function-length: 1.1.1 + + /call-bind@1.0.7: + resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} + engines: {node: '>= 0.4'} dependencies: - function-bind: 1.1.1 - get-intrinsic: 1.2.1 + es-define-property: 1.0.0 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + set-function-length: 1.2.2 /call-me-maybe@1.0.1: resolution: {integrity: sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw==} @@ -20304,7 +22901,7 @@ packages: resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} dependencies: pascal-case: 3.1.2 - tslib: 2.5.0 + tslib: 2.6.2 /camelcase-css@2.0.1: resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} @@ -20336,8 +22933,8 @@ packages: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} - /camelize@1.0.0: - resolution: {integrity: sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg==} + /camelize@1.0.1: + resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==} /camera-controls@2.3.1(three@0.148.0): resolution: {integrity: sha512-mGPDOqCTSUqaeX3yR3bWQ/p1M5CR8C+cnqndBxQugfGKysn1dhRtw8Q6sG1hq4GL8RPsGwRanwQk5zwQjyrxyQ==} @@ -20350,38 +22947,23 @@ packages: /caniuse-api@3.0.0: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} dependencies: - browserslist: 4.21.5 - caniuse-lite: 1.0.30001450 + browserslist: 4.22.2 + caniuse-lite: 1.0.30001571 lodash.memoize: 4.1.2 lodash.uniq: 4.5.0 dev: true - /caniuse-lite@1.0.30001441: - resolution: {integrity: sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg==} - dev: true - - /caniuse-lite@1.0.30001450: - resolution: {integrity: sha512-qMBmvmQmFXaSxexkjjfMvD5rnDL0+m+dUMZKoDYsGG8iZN29RuYh9eRoMvKsT6uMAWlyUUGDEQGJJYjzCIO9ew==} - dev: true - - /caniuse-lite@1.0.30001487: - resolution: {integrity: sha512-83564Z3yWGqXsh2vaH/mhXfEM0wX+NlBCm1jYHOb97TrTWJEmPTccZgeLTPBUUb0PNVo+oomb7wkimZBIERClA==} + /caniuse-lite@1.0.30001571: + resolution: {integrity: sha512-tYq/6MoXhdezDLFZuCO/TKboTzuQ/xR5cFdgXPfDtM7/kchBO3b4VWghE/OAi/DV7tTdhmLjZiZBZi1fA/GheQ==} /capital-case@1.0.4: resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} dependencies: no-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 upper-case-first: 2.0.2 dev: true - /capture-exit@2.0.0: - resolution: {integrity: sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==} - engines: {node: 6.* || 8.* || >= 10.*} - dependencies: - rsvp: 4.8.5 - dev: true - /capture-stack-trace@1.0.2: resolution: {integrity: sha512-X/WM2UQs6VMHUtjUDnZTRI+i1crWteJySFzr9UpGoQa4WQffXVTTXuekjl7TjZRlcF2XfjgITT0HxZ9RnxeT0w==} engines: {node: '>=0.10.0'} @@ -20486,6 +23068,11 @@ packages: engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: false + /chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true + /change-case@4.1.2: resolution: {integrity: sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==} dependencies: @@ -20500,7 +23087,7 @@ packages: path-case: 3.0.4 sentence-case: 3.0.4 snake-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /char-regex@1.0.2: @@ -20586,7 +23173,7 @@ packages: resolution: {integrity: sha512-c4PR2egjNjI1um6bamCQ6bUNPDiyofNQruHvKgHQ4gDUP/ITSVSzNsiI5OWtHOsX323i5ha/kk4YmOZ1Ktg7KA==} engines: {node: '>= 8'} dependencies: - anymatch: 3.1.2 + anymatch: 3.1.3 braces: 3.0.2 glob-parent: 5.1.2 is-binary-path: 2.1.0 @@ -20594,7 +23181,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 dev: true /chokidar@3.5.3: @@ -20610,7 +23197,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 /chownr@1.1.4: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} @@ -20640,6 +23227,10 @@ packages: resolution: {integrity: sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==} engines: {node: '>=8'} + /ci-info@3.9.0: + resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} + engines: {node: '>=8'} + /cipher-base@1.0.4: resolution: {integrity: sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==} dependencies: @@ -20653,16 +23244,6 @@ packages: resolution: {integrity: sha512-kgMuFyE78OC6Dyu3Dy7vcx4uy97EIbVxJB/B0eJ3bUNAkwdNcxYzgKltnyADiYwsR7SEqkkUPsEUT//OVS6XMA==} dev: false - /class-utils@0.3.6: - resolution: {integrity: sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==} - engines: {node: '>=0.10.0'} - dependencies: - arr-union: 3.1.0 - define-property: 0.2.5 - isobject: 3.0.1 - static-extend: 0.1.2 - dev: true - /classnames@2.3.1: resolution: {integrity: sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==} dev: false @@ -20670,8 +23251,8 @@ packages: /classnames@2.3.2: resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==} - /clean-css@5.3.2: - resolution: {integrity: sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==} + /clean-css@5.3.3: + resolution: {integrity: sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==} engines: {node: '>= 10.0'} dependencies: source-map: 0.6.1 @@ -20723,6 +23304,13 @@ packages: restore-cursor: 3.1.0 dev: true + /cli-cursor@4.0.0: + resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + restore-cursor: 4.0.0 + dev: true + /cli-spinners@1.3.1: resolution: {integrity: sha512-1QL4544moEsDVH9T/l6Cemov/37iv1RtoKf7NJ04A60+4MREXNfx/QvavbH6QoGdsD4N4Mwy49cmaINR/o2mdg==} engines: {node: '>=4'} @@ -20779,21 +23367,43 @@ packages: engines: {node: '>= 10'} dev: true - /click-to-react-component@1.0.8(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-YBNYOp00udy+NBEnUmM/3Df0Yco1iHNQ8k0ltlJVcDYK9AuYt14xPoJicBh/BokLqbzkci1p+pbdY5r4JXZC4g==} + /click-to-react-component@1.1.0(@types/react@18.3.3)(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-/DjZemufS1BkxyRgZL3r7HXVVOFRWVQi5Xd4EBnjxZMwrHEh0OlUVA2N9CjXkZ0x8zMf8dL1cKnnx+xUWUg4VA==} peerDependencies: react: '>=16.8.0' peerDependenciesMeta: react: optional: true dependencies: - '@floating-ui/react-dom-interactions': 0.3.1(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0) + '@floating-ui/react-dom-interactions': 0.3.1(@types/react@18.3.3)(react-dom@18.1.0)(react@18.1.0) htm: 3.1.1 react: 18.1.0 react-merge-refs: 1.1.0 transitivePeerDependencies: - '@types/react' - react-dom + dev: true + + /click-to-react-component@1.1.0(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-/DjZemufS1BkxyRgZL3r7HXVVOFRWVQi5Xd4EBnjxZMwrHEh0OlUVA2N9CjXkZ0x8zMf8dL1cKnnx+xUWUg4VA==} + peerDependencies: + react: '>=16.8.0' + peerDependenciesMeta: + react: + optional: true + dependencies: + '@floating-ui/react-dom-interactions': 0.3.1(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1) + htm: 3.1.1 + react: 18.3.1 + react-merge-refs: 1.1.0 + transitivePeerDependencies: + - '@types/react' + - react-dom + dev: false + + /client-only@0.0.1: + resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} + dev: false /clipboardy@2.1.0: resolution: {integrity: sha512-2pzOUxWcLlXWtn+Jd6js3o12TysNOOVes/aQfg+MT/35vrxWzedHlLwyoJpXjsFKWm95BTNEcMGD9+a7mKzZkQ==} @@ -20866,6 +23476,11 @@ packages: mkdirp-infer-owner: 2.0.0 dev: true + /cmd-shim@6.0.3: + resolution: {integrity: sha512-FMabTRlc5t5zjdenF6mS0MBeFZm0XqHqeOkcskKFb/LYCcRQ5fVgLOHVc4Lq9CqABd9zhjwPjMBCJvMCziSVtA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + /co@4.6.0: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} @@ -20934,14 +23549,6 @@ packages: /collect-v8-coverage@1.0.1: resolution: {integrity: sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==} - /collection-visit@1.0.0: - resolution: {integrity: sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==} - engines: {node: '>=0.10.0'} - dependencies: - map-visit: 1.0.0 - object-visit: 1.0.1 - dev: true - /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: @@ -20967,6 +23574,7 @@ packages: /color-support@1.1.3: resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} + hasBin: true dev: true /color@3.2.1: @@ -20993,6 +23601,10 @@ packages: /colorette@2.0.19: resolution: {integrity: sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==} + /colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + dev: true + /colors@1.0.3: resolution: {integrity: sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==} engines: {node: '>=0.1.90'} @@ -21033,6 +23645,11 @@ packages: engines: {node: '>=14'} dev: true + /commander@11.0.0: + resolution: {integrity: sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==} + engines: {node: '>=16'} + dev: true + /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} requiresBuild: true @@ -21044,6 +23661,7 @@ packages: /commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} + dev: false /commander@5.1.0: resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} @@ -21089,8 +23707,14 @@ packages: dot-prop: 5.3.0 dev: true - /component-emitter@1.3.0: - resolution: {integrity: sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==} + /component-classes@1.2.6: + resolution: {integrity: sha512-hPFGULxdwugu1QWW3SvVOCUHLzO34+a2J6Wqy0c5ASQkfi9/8nZcBB0ZohaEbXOQlCflMAEMmEWk7u7BVs4koA==} + dependencies: + component-indexof: 0.0.3 + dev: true + + /component-indexof@0.0.3: + resolution: {integrity: sha1-EdCRMSI5648yyPJa6csAL/6NPCQ=} dev: true /compress-brotli@1.3.8: @@ -21151,7 +23775,7 @@ packages: dependencies: buffer-from: 1.1.2 inherits: 2.0.4 - readable-stream: 3.6.0 + readable-stream: 3.6.2 typedarray: 0.0.6 dev: true @@ -21213,7 +23837,7 @@ packages: resolution: {integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==} dependencies: no-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 upper-case: 2.0.2 dev: true @@ -21277,6 +23901,7 @@ packages: /conventional-changelog-writer@5.0.1: resolution: {integrity: sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ==} engines: {node: '>=10'} + hasBin: true dependencies: conventional-commits-filter: 2.0.7 dateformat: 3.0.3 @@ -21284,7 +23909,7 @@ packages: json-stringify-safe: 5.0.1 lodash: 4.17.21 meow: 8.1.2 - semver: 6.3.0 + semver: 6.3.1 split: 1.0.1 through2: 4.0.2 dev: true @@ -21313,6 +23938,7 @@ packages: /conventional-recommended-bump@6.1.0: resolution: {integrity: sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw==} engines: {node: '>=10'} + hasBin: true dependencies: concat-stream: 2.0.0 conventional-changelog-preset-loader: 2.3.4 @@ -21369,11 +23995,6 @@ packages: run-queue: 1.0.3 dev: true - /copy-descriptor@0.1.1: - resolution: {integrity: sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==} - engines: {node: '>=0.10.0'} - dev: true - /copy-to-clipboard@3.3.1: resolution: {integrity: sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==} dependencies: @@ -21384,7 +24005,7 @@ packages: dependencies: toggle-selection: 1.0.6 - /copy-webpack-plugin@10.2.4(webpack@5.76.1): + /copy-webpack-plugin@10.2.4(webpack@5.88.2): resolution: {integrity: sha512-xFVltahqlsRcyyJqQbDY6EYTtyQZF9rf+JPjwHObLdPFMEISqkFkr7mFoVOC6BfYS/dNThyoQKvziugm+OnwBg==} engines: {node: '>= 12.20.0'} peerDependencies: @@ -21399,35 +24020,54 @@ packages: normalize-path: 3.0.0 schema-utils: 4.0.0 serialize-javascript: 6.0.0 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /core-js-compat@3.27.1: resolution: {integrity: sha512-Dg91JFeCDA17FKnneN7oCMz4BkQ4TcffkgHP4OWwp9yx3pi7ubqMDXXSacfNak1PQqjc95skyt+YBLHQJnkJwA==} dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 + dev: true /core-js-compat@3.31.0: resolution: {integrity: sha512-hM7YCu1cU6Opx7MXNu0NuumM0ezNeAeRKadixyiQELWY3vT3De9S4J5ZBMraWV2vZnrE1Cirl0GtFtDtMUXzPw==} dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 + + /core-js-compat@3.33.0: + resolution: {integrity: sha512-0w4LcLXsVEuNkIqwjjf9rjCoPhK8uqA4tMRh4Ge26vfLtUutshn+aRJU21I9LCJlh2QQHfisNToLjw1XEJLTWw==} + dependencies: + browserslist: 4.22.2 + dev: true + + /core-js-compat@3.34.0: + resolution: {integrity: sha512-4ZIyeNbW/Cn1wkMMDy+mvrRUxrwFNjKwbhCfQpDd+eLgYipDqp8oGFGtLmhh18EDPKA0g3VUBYOxQGGwvWLVpA==} + dependencies: + browserslist: 4.22.2 + dev: true /core-js-pure@3.29.0: resolution: {integrity: sha512-v94gUjN5UTe1n0yN/opTihJ8QBWD2O8i19RfTZR7foONPWArnjB96QA/wk5ozu1mm6ja3udQCzOzwQXTxi3xOQ==} requiresBuild: true + /core-js@1.2.7: + resolution: {integrity: sha512-ZiPp9pZlgxpWRu0M+YWbm6+aQ84XEfH1JRXvfOc/fILWI0VKhLC2LX13X1NYq4fULzLMq7Hfh43CSo2/aIaUPA==} + deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. + dev: true + /core-js@2.6.12: resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==} + deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. requiresBuild: true dev: true - /core-js@3.22.4: - resolution: {integrity: sha512-1uLykR+iOfYja+6Jn/57743gc9n73EWiOnSJJ4ba3B4fOEYDBv25MagmEZBxTp5cWq4b/KPx/l77zgsp28ju4w==} + /core-js@3.28.0: + resolution: {integrity: sha512-GiZn9D4Z/rSYvTeg1ljAIsEqFm0LaN9gVtwDCrKL80zHtS31p9BAjmTxVqTQDMpwlMolJZOFntUG2uwyj7DAqw==} requiresBuild: true dev: true - /core-js@3.28.0: - resolution: {integrity: sha512-GiZn9D4Z/rSYvTeg1ljAIsEqFm0LaN9gVtwDCrKL80zHtS31p9BAjmTxVqTQDMpwlMolJZOFntUG2uwyj7DAqw==} + /core-js@3.34.0: + resolution: {integrity: sha512-aDdvlDder8QmY91H88GzNi9EtQi2TjvQhpCX6B1v/dAZHU1AuLgHvRh54RiOerpEhEW46Tkf+vgAViB/CWC0ag==} requiresBuild: true /core-util-is@1.0.2: @@ -21458,7 +24098,7 @@ packages: resolution: {integrity: sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==} engines: {node: '>=8'} dependencies: - '@types/parse-json': 4.0.0 + '@types/parse-json': 4.0.2 import-fresh: 3.3.0 parse-json: 5.2.0 path-type: 4.0.0 @@ -21469,7 +24109,7 @@ packages: resolution: {integrity: sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==} engines: {node: '>=10'} dependencies: - '@types/parse-json': 4.0.0 + '@types/parse-json': 4.0.2 import-fresh: 3.3.0 parse-json: 5.2.0 path-type: 4.0.0 @@ -21490,7 +24130,7 @@ packages: resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==} engines: {node: '>=10'} dependencies: - '@types/parse-json': 4.0.0 + '@types/parse-json': 4.0.2 import-fresh: 3.3.0 parse-json: 5.2.0 path-type: 4.0.0 @@ -21532,12 +24172,29 @@ packages: safe-buffer: 5.2.1 sha.js: 2.4.11 + /create-jest@29.7.0(@types/node@18.19.39)(ts-node@10.9.2): + resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + hasBin: true + dependencies: + '@jest/types': 29.6.3 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.11 + jest-config: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) + jest-util: 29.7.0 + prompts: 2.4.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + /create-react-class@15.7.0: resolution: {integrity: sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng==} dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - dev: false /create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} @@ -21580,7 +24237,7 @@ packages: dependencies: nice-try: 1.0.5 path-key: 2.0.1 - semver: 5.7.1 + semver: 5.7.2 shebang-command: 1.2.0 which: 1.3.1 dev: true @@ -21597,7 +24254,7 @@ packages: resolution: {integrity: sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==} dependencies: browserify-cipher: 1.0.1 - browserify-sign: 4.2.1 + browserify-sign: 4.2.2 create-ecdh: 4.0.4 create-hash: 1.2.0 create-hmac: 1.1.7 @@ -21613,6 +24270,18 @@ packages: engines: {node: '>=4'} dev: true + /crypto-random-string@2.0.0: + resolution: {integrity: sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==} + engines: {node: '>=8'} + dev: true + + /css-animation@1.6.1: + resolution: {integrity: sha512-/48+/BaEaHRY6kNQ2OIPzKf9A6g8WjZYjhiNDNuIVbsm5tXCGIAsHDjB4Xu1C4vXJtUWZo26O68OQkDpNBaPog==} + dependencies: + babel-runtime: 6.26.0 + component-classes: 1.2.6 + dev: true + /css-blank-pseudo@3.0.3(postcss@8.4.21): resolution: {integrity: sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==} engines: {node: ^12 || ^14 || >=16} @@ -21625,6 +24294,21 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /css-blank-pseudo@3.0.3(postcss@8.4.35): + resolution: {integrity: sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==} + engines: {node: ^12 || ^14 || >=16} + hasBin: true + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /css-color-keywords@1.0.0: resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==} @@ -21642,6 +24326,18 @@ packages: postcss: 8.4.21 dev: true + /css-declaration-sorter@6.4.1(postcss@8.4.31): + resolution: {integrity: sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==} + engines: {node: ^10 || ^12 || >=14} + peerDependencies: + postcss: ^8.0.9 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + dev: true + /css-functions-list@3.1.0: resolution: {integrity: sha512-/9lCvYZaUbBGvYUgYGFJ4dcYiyqdhSjG7IPVluoV8A1ILjkF7ilmhp1OGUz8n+nmBcu0RNrQAzgD8B6FJbrt2w==} engines: {node: '>=12.22'} @@ -21658,6 +24354,21 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /css-has-pseudo@3.0.4(postcss@8.4.35): + resolution: {integrity: sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==} + engines: {node: ^12 || ^14 || >=16} + hasBin: true + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /css-in-js-utils@2.0.1: resolution: {integrity: sha512-PJF0SpJT+WdbVVt0AOYp9C8GnuruRlL/UFW7932nLWmFLQTaWEzTBQEx7/hn4BuV+WON75iAViSUJLiU3PKbpA==} @@ -21666,7 +24377,7 @@ packages: isobject: 3.0.1 dev: false - /css-loader@6.7.1(webpack@5.76.1): + /css-loader@6.7.1(webpack@5.88.2): resolution: {integrity: sha512-yB5CNFa14MbPJcomwNh3wLThtkZgcNyI2bNMRt8iE5Z8Vwl7f8vQXFAzn2HDOJvtDq2NTZBUGMSUNNyrv3/+cw==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -21683,36 +24394,43 @@ packages: postcss-modules-values: 4.0.0(postcss@8.4.21) postcss-value-parser: 4.2.0 semver: 7.3.7 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) - /css-minimizer-webpack-plugin@4.0.0(webpack@5.76.1): - resolution: {integrity: sha512-7ZXXRzRHvofv3Uac5Y+RkWRNo0ZMlcg8e9/OtrqUYmwDWJo+qs67GvdeFrXLsFb7czKNwjQhPkM0avlIYl+1nA==} + /css-minimizer-webpack-plugin@5.0.1(lightningcss@1.22.1)(webpack@5.88.2): + resolution: {integrity: sha512-3caImjKFQkS+ws1TGcFn0V1HyDJFq1Euy589JlD6/3rV2kj+w7r5G9WDMgSHvpvXHNZ2calVypZWuEDQd9wfLg==} engines: {node: '>= 14.15.0'} peerDependencies: '@parcel/css': '*' + '@swc/css': '*' clean-css: '*' csso: '*' esbuild: '*' + lightningcss: '*' webpack: ^5.0.0 peerDependenciesMeta: '@parcel/css': optional: true + '@swc/css': + optional: true clean-css: optional: true csso: optional: true esbuild: optional: true + lightningcss: + optional: true webpack: optional: true dependencies: - cssnano: 5.1.13(postcss@8.4.21) - jest-worker: 27.5.1 - postcss: 8.4.21 - schema-utils: 4.0.0 - serialize-javascript: 6.0.0 - source-map: 0.6.1 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + '@jridgewell/trace-mapping': 0.3.19 + cssnano: 6.0.1(postcss@8.4.31) + jest-worker: 29.4.3 + lightningcss: 1.22.1 + postcss: 8.4.31 + schema-utils: 4.2.0 + serialize-javascript: 6.0.1 + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /css-prefers-color-scheme@6.0.3(postcss@8.4.21): @@ -21726,6 +24444,20 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /css-prefers-color-scheme@6.0.3(postcss@8.4.35): + resolution: {integrity: sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==} + engines: {node: ^12 || ^14 || >=16} + hasBin: true + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /css-select-base-adapter@0.1.1: resolution: {integrity: sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==} @@ -21749,10 +24481,20 @@ packages: domutils: 2.8.0 nth-check: 2.1.1 + /css-select@5.1.0: + resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==} + dependencies: + boolbase: 1.0.0 + css-what: 6.1.0 + domhandler: 5.0.3 + domutils: 3.1.0 + nth-check: 2.1.1 + dev: true + /css-to-react-native@3.2.0: resolution: {integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==} dependencies: - camelize: 1.0.0 + camelize: 1.0.1 css-color-keywords: 1.0.0 postcss-value-parser: 4.2.0 @@ -21777,7 +24519,6 @@ packages: dependencies: mdn-data: 2.0.28 source-map-js: 1.0.2 - dev: false /css-what@3.4.2: resolution: {integrity: sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==} @@ -21816,6 +24557,7 @@ packages: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} engines: {node: '>=4'} hasBin: true + requiresBuild: true /cssnano-preset-default@5.2.12(postcss@8.4.21): resolution: {integrity: sha512-OyCBTZi+PXgylz9HAA5kHyoYhfGcYdwFmyaJzWnzxuGRtnMw/kR6ilW9XzlzlRAtB6PLT/r+prYgkef7hngFew==} @@ -21858,6 +24600,47 @@ packages: postcss-unique-selectors: 5.1.1(postcss@8.4.21) dev: true + /cssnano-preset-default@6.0.1(postcss@8.4.31): + resolution: {integrity: sha512-7VzyFZ5zEB1+l1nToKyrRkuaJIx0zi/1npjvZfbBwbtNTzhLtlvYraK/7/uqmX2Wb2aQtd983uuGw79jAjLSuQ==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + css-declaration-sorter: 6.4.1(postcss@8.4.31) + cssnano-utils: 4.0.0(postcss@8.4.31) + postcss: 8.4.31 + postcss-calc: 9.0.1(postcss@8.4.31) + postcss-colormin: 6.0.0(postcss@8.4.31) + postcss-convert-values: 6.0.0(postcss@8.4.31) + postcss-discard-comments: 6.0.0(postcss@8.4.31) + postcss-discard-duplicates: 6.0.0(postcss@8.4.31) + postcss-discard-empty: 6.0.0(postcss@8.4.31) + postcss-discard-overridden: 6.0.0(postcss@8.4.31) + postcss-merge-longhand: 6.0.0(postcss@8.4.31) + postcss-merge-rules: 6.0.1(postcss@8.4.31) + postcss-minify-font-values: 6.0.0(postcss@8.4.31) + postcss-minify-gradients: 6.0.0(postcss@8.4.31) + postcss-minify-params: 6.0.0(postcss@8.4.31) + postcss-minify-selectors: 6.0.0(postcss@8.4.31) + postcss-normalize-charset: 6.0.0(postcss@8.4.31) + postcss-normalize-display-values: 6.0.0(postcss@8.4.31) + postcss-normalize-positions: 6.0.0(postcss@8.4.31) + postcss-normalize-repeat-style: 6.0.0(postcss@8.4.31) + postcss-normalize-string: 6.0.0(postcss@8.4.31) + postcss-normalize-timing-functions: 6.0.0(postcss@8.4.31) + postcss-normalize-unicode: 6.0.0(postcss@8.4.31) + postcss-normalize-url: 6.0.0(postcss@8.4.31) + postcss-normalize-whitespace: 6.0.0(postcss@8.4.31) + postcss-ordered-values: 6.0.0(postcss@8.4.31) + postcss-reduce-initial: 6.0.0(postcss@8.4.31) + postcss-reduce-transforms: 6.0.0(postcss@8.4.31) + postcss-svgo: 6.0.0(postcss@8.4.31) + postcss-unique-selectors: 6.0.0(postcss@8.4.31) + dev: true + /cssnano-utils@3.1.0(postcss@8.4.21): resolution: {integrity: sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==} engines: {node: ^10 || ^12 || >=14.0} @@ -21870,19 +24653,16 @@ packages: postcss: 8.4.21 dev: true - /cssnano@5.1.13(postcss@8.4.21): - resolution: {integrity: sha512-S2SL2ekdEz6w6a2epXn4CmMKU4K3KpcyXLKfAYc9UQQqJRkD/2eLUG0vJ3Db/9OvO5GuAdgXw3pFbR6abqghDQ==} - engines: {node: ^10 || ^12 || >=14.0} + /cssnano-utils@4.0.0(postcss@8.4.31): + resolution: {integrity: sha512-Z39TLP+1E0KUcd7LGyF4qMfu8ZufI0rDzhdyAMsa/8UyNUU8wpS0fhdBxbQbv32r64ea00h4878gommRVg2BHw==} + engines: {node: ^14 || ^16 || >=18.0} peerDependencies: postcss: ^8.2.15 peerDependenciesMeta: postcss: optional: true dependencies: - cssnano-preset-default: 5.2.12(postcss@8.4.21) - lilconfig: 2.0.6 - postcss: 8.4.21 - yaml: 1.10.2 + postcss: 8.4.31 dev: true /cssnano@5.1.7(postcss@8.4.21): @@ -21900,12 +24680,33 @@ packages: yaml: 1.10.2 dev: true + /cssnano@6.0.1(postcss@8.4.31): + resolution: {integrity: sha512-fVO1JdJ0LSdIGJq68eIxOqFpIJrZqXUsBt8fkrBcztCQqAjQD51OhZp7tc0ImcbwXD4k7ny84QTV90nZhmqbkg==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + cssnano-preset-default: 6.0.1(postcss@8.4.31) + lilconfig: 2.1.0 + postcss: 8.4.31 + dev: true + /csso@4.2.0: resolution: {integrity: sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==} engines: {node: '>=8.0.0'} dependencies: css-tree: 1.1.3 + /csso@5.0.5: + resolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'} + dependencies: + css-tree: 2.2.1 + dev: true + /cssom@0.3.8: resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} dev: false @@ -21930,6 +24731,9 @@ packages: /csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + /csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + /current-script-polyfill@1.0.0: resolution: {integrity: sha512-qv8s+G47V6Hq+g2kRE5th+ASzzrL7b6l+tap1DHKK25ZQJv3yIFhH96XaQ7NGL+zRW3t/RDbweJf/dJDe5Z5KA==} @@ -22198,6 +25002,7 @@ packages: /data-uri-to-buffer@4.0.0: resolution: {integrity: sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==} engines: {node: '>= 12'} + dev: false /data-uri-to-buffer@4.0.1: resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} @@ -22292,10 +25097,6 @@ packages: ms: 2.1.2 supports-color: 8.1.1 - /debuglog@1.0.1: - resolution: {integrity: sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==} - dev: true - /decamelize-keys@1.1.0: resolution: {integrity: sha512-ocLWuYzRPoS9bfiSdDd3cxvrzovVMZnRDVEzAs+hWIVXGDbHxWMECij2OBuyB/An0FFW/nLuq6Kv1i/YC5Qfzg==} engines: {node: '>=0.10.0'} @@ -22346,6 +25147,14 @@ packages: /dedent@0.7.0: resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==} + /dedent@1.5.3: + resolution: {integrity: sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==} + peerDependencies: + babel-plugin-macros: ^3.1.0 + peerDependenciesMeta: + babel-plugin-macros: + optional: true + /deep-eql@3.0.1: resolution: {integrity: sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==} engines: {node: '>=0.12'} @@ -22361,7 +25170,7 @@ packages: is-regex: 1.1.4 object-is: 1.1.5 object-keys: 1.1.1 - regexp.prototype.flags: 1.4.3 + regexp.prototype.flags: 1.5.1 dev: false /deep-extend@0.6.0: @@ -22387,7 +25196,6 @@ packages: /deepmerge@1.5.2: resolution: {integrity: sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==} engines: {node: '>=0.10.0'} - dev: true /deepmerge@4.2.2: resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==} @@ -22441,6 +25249,22 @@ packages: engines: {node: '>=10'} dev: true + /define-data-property@1.1.1: + resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.1 + + /define-data-property@1.1.4: + resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} + engines: {node: '>= 0.4'} + dependencies: + es-define-property: 1.0.0 + es-errors: 1.3.0 + gopd: 1.0.1 + /define-lazy-prop@2.0.0: resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} engines: {node: '>=8'} @@ -22449,42 +25273,13 @@ packages: resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} engines: {node: '>=12'} - /define-properties@1.1.4: - resolution: {integrity: sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==} + /define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} dependencies: - has-property-descriptors: 1.0.0 + define-data-property: 1.1.1 + has-property-descriptors: 1.0.1 object-keys: 1.1.1 - dev: false - - /define-properties@1.2.0: - resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} - engines: {node: '>= 0.4'} - dependencies: - has-property-descriptors: 1.0.0 - object-keys: 1.1.1 - - /define-property@0.2.5: - resolution: {integrity: sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==} - engines: {node: '>=0.10.0'} - dependencies: - is-descriptor: 0.1.6 - dev: true - - /define-property@1.0.0: - resolution: {integrity: sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==} - engines: {node: '>=0.10.0'} - dependencies: - is-descriptor: 1.0.2 - dev: true - - /define-property@2.0.2: - resolution: {integrity: sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==} - engines: {node: '>=0.10.0'} - dependencies: - is-descriptor: 1.0.2 - isobject: 3.0.1 - dev: true /defined@1.0.0: resolution: {integrity: sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==} @@ -22493,6 +25288,20 @@ packages: resolution: {integrity: sha512-pOFYRTIhoKujrmbTRhcW5lYQLBXw/dlTwfI8IguF1QCDJOcJzNH1w+YFjxqy6BAuJrClTy6MUE8q+oKJ2FLsIw==} dev: false + /del@6.1.1: + resolution: {integrity: sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==} + engines: {node: '>=10'} + dependencies: + globby: 11.1.0 + graceful-fs: 4.2.11 + is-glob: 4.0.3 + is-path-cwd: 2.2.0 + is-path-inside: 3.0.3 + p-map: 4.0.0 + rimraf: 3.0.2 + slash: 3.0.0 + dev: true + /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} @@ -22517,8 +25326,8 @@ packages: engines: {node: '>=6'} dev: true - /des.js@1.0.1: - resolution: {integrity: sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==} + /des.js@1.1.0: + resolution: {integrity: sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==} dependencies: inherits: 2.0.4 minimalistic-assert: 1.0.1 @@ -22600,13 +25409,6 @@ packages: defined: 1.0.0 minimist: 1.2.8 - /dezalgo@1.0.4: - resolution: {integrity: sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==} - dependencies: - asap: 2.0.6 - wrappy: 1.0.2 - dev: true - /dicer@0.2.5: resolution: {integrity: sha512-FDvbtnq7dzlPz0wyYlOExifDEZcu8h+rErEXgfxqmLfRfC/kJidEFh4+effJRO3P0xmfqyPbSMG0LveNRfTKVg==} engines: {node: '>=0.8.0'} @@ -22627,6 +25429,10 @@ packages: resolution: {integrity: sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + /diff-sequences@29.6.3: + resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + /diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} @@ -22703,7 +25509,7 @@ packages: dependencies: domelementtype: 2.3.0 domhandler: 5.0.3 - entities: 4.4.0 + entities: 4.5.0 dev: true /dom-walk@0.1.2: @@ -22778,7 +25584,7 @@ packages: resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} dependencies: no-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 /dot-prop@4.2.1: resolution: {integrity: sha512-l0p4+mIuJIua0mhxGoh4a+iNL9bmeK5DvnSVQa6T0OhrVmaEa1XScX5Etc673FePCJOArq/4Pa2cLGODUWTPOQ==} @@ -22838,7 +25644,7 @@ packages: got: 11.8.5 is-core-module: 2.9.0 mkdirp: 1.0.4 - resolve: 1.22.1 + resolve: 1.22.0 semver: 7.3.8 yargs-parser: 20.2.9 dev: true @@ -22851,8 +25657,8 @@ packages: resolution: {integrity: sha512-a/Y5lf0G6gwsEQ9hop/n03CcjmHsGBk384Cz/AEX6mRYrfSpUx/lQvP9HLoXkCzScl9PL1sSmLPnMkgaXDCZLA==} dev: true - /dumi@2.2.5(@types/node@18.11.18)(@types/react@18.0.26)(jest@29.4.3)(prettier@2.8.4)(react-dom@18.1.0)(react@18.1.0)(styled-components@6.0.0-rc.0)(typescript@4.9.4): - resolution: {integrity: sha512-5Dgvz5airOqcTgBCsySr36gCdA2badkdrYCWls+Lx4lmbePyecwioW3CJ7NC34NcTcWDiA5wnHQAgDW2Afj9Ew==} + /dumi@2.2.16(@types/node@18.19.39)(@types/react@18.3.3)(jest@29.7.0)(prettier@2.8.4)(react-dom@18.3.1)(react@18.3.1)(typescript@4.9.5): + resolution: {integrity: sha512-r2x/CY0fR8/YZOwEnG4JsLEpn8jOg94Qyd1u+7pRD9SCx7dF9It+GwkGbdNEsyenGsO/ZU9wD+Kz7KO+HU7/EA==} hasBin: true peerDependencies: react: '>=16.8' @@ -22863,14 +25669,15 @@ packages: react-dom: optional: true dependencies: - '@ant-design/icons-svg': 4.2.1 - '@makotot/ghostui': 2.0.0(react@18.1.0) + '@ant-design/icons-svg': 4.3.1 + '@makotot/ghostui': 2.0.0(react@18.3.1) '@stackblitz/sdk': 1.9.0 '@swc/core': 1.3.72 '@types/hast': 2.3.5 '@types/mdast': 3.0.12 - '@umijs/bundler-utils': 4.0.75 - '@umijs/core': 4.0.75 + '@umijs/bundler-utils': 4.1.2 + '@umijs/core': 4.1.2 + '@umijs/utils': 4.1.2 animated-scroll-to: 2.3.0 classnames: 2.3.2 codesandbox: 2.2.3 @@ -22897,18 +25704,18 @@ packages: mdast-util-to-string: 3.2.0 nprogress: 0.2.0 pluralize: 8.0.0 - prism-react-renderer: 1.3.5(react@18.1.0) + prism-react-renderer: 1.3.5(react@18.3.1) prism-themes: 1.9.0 prismjs: 1.29.0 raw-loader: 4.0.2 - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-tabs: 12.10.0(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.9(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-copy-to-clipboard: 5.1.0(react@18.1.0) - react-dom: 18.1.0(react@18.1.0) - react-error-boundary: 4.0.11(react@18.1.0) - react-intl: 6.4.4(react@18.1.0)(typescript@4.9.4) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-tabs: 12.10.0(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-copy-to-clipboard: 5.1.0(react@18.3.1) + react-dom: 18.3.1(react@18.3.1) + react-error-boundary: 4.0.11(react@18.3.1) + react-intl: 6.4.4(react@18.3.1)(typescript@4.9.5) rehype-autolink-headings: 6.1.1 rehype-remove-comments: 5.0.0 rehype-stringify: 9.0.3 @@ -22919,11 +25726,11 @@ packages: remark-rehype: 10.1.0 sass: 1.65.1 sitemap: 7.1.1 - umi: 4.0.75(@types/node@18.11.18)(@types/react@18.0.26)(jest@29.4.3)(prettier@2.8.4)(react-dom@18.1.0)(react@18.1.0)(sass@1.65.1)(styled-components@6.0.0-rc.0)(typescript@4.9.4) + umi: 4.1.2(@types/node@18.19.39)(@types/react@18.3.3)(jest@29.7.0)(prettier@2.8.4)(react-dom@18.3.1)(react@18.3.1)(sass@1.65.1)(typescript@4.9.5) unified: 10.1.2 unist-util-visit: 4.1.2 unist-util-visit-parents: 5.1.3 - url: 0.11.1 + url: 0.11.3 v8-compile-cache: 2.3.0 vfile: 5.3.7 transitivePeerDependencies: @@ -22936,7 +25743,6 @@ packages: - '@volar/vue-typescript' - eslint - jest - - postcss - postcss-html - postcss-jsx - postcss-less @@ -22945,7 +25751,6 @@ packages: - prettier - rollup - sockjs-client - - styled-components - stylelint - stylus - sugarss @@ -22991,7 +25796,7 @@ packages: redux: optional: true dependencies: - '@babel/runtime': 7.18.9 + '@babel/runtime': 7.23.6 flatten: 1.0.3 global: 4.4.0 invariant: 2.2.4 @@ -23008,7 +25813,7 @@ packages: dva: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 immer: 8.0.4 /dva-loading@3.0.22(dva-core@2.0.4): @@ -23016,7 +25821,7 @@ packages: peerDependencies: dva-core: ^1.1.0 | ^1.5.0-0 | ^1.6.0-0 dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 dva-core: 2.0.4(redux@4.2.1) /earcut@2.2.4: @@ -23025,7 +25830,6 @@ packages: /eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - dev: true /ecc-jsbn@0.1.2: resolution: {integrity: sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==} @@ -23050,12 +25854,13 @@ packages: /ejs@3.1.8: resolution: {integrity: sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==} engines: {node: '>=0.10.0'} + hasBin: true dependencies: jake: 10.8.5 dev: true - /electron-to-chromium@1.4.397: - resolution: {integrity: sha512-jwnPxhh350Q/aMatQia31KAIQdhEsYS0fFZ0BQQlN9tfvOEwShu6ZNwI4kL/xBabjcB/nTy6lSt17kNIluJZ8Q==} + /electron-to-chromium@1.4.616: + resolution: {integrity: sha512-1n7zWYh8eS0L9Uy+GskE0lkBUNK83cXTVJI0pU3mGprFsbfSdAc15VTFbo+A+Bq4pwstmL30AVcEU3Fo463lNg==} /element-plus@2.2.15(vue@3.2.45): resolution: {integrity: sha512-SMIx8xKB1YawT9JocyFhbs3Av2rXFfxrCVTLMYS0DK0xnW+fKvwjZngLfwF6MyRzXIuzNW17XFtu0iP3tlJHbA==} @@ -23114,7 +25919,6 @@ packages: /emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - dev: true /emojis-list@3.0.0: resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} @@ -23124,8 +25928,8 @@ packages: resolution: {integrity: sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==} dev: true - /encode-registry@3.0.0: - resolution: {integrity: sha512-2fRYji8K6FwYuQ6EPBKR/J9mcqb7kIoNqt1vGvJr3NrvKfncRiNm00Oxo6gi/YJF8R5Sp2bNFSFdGKTG0rje1Q==} + /encode-registry@3.0.1: + resolution: {integrity: sha512-6qOwkl1g0fv0DN3Y3ggr2EaZXN71aoAqPp3p/pVaWSBSIo+YjLOWN61Fva43oVyQNPf7kgm8lkudzlzojwE2jw==} engines: {node: '>=10'} dependencies: mem: 8.1.1 @@ -23159,7 +25963,6 @@ packages: dependencies: graceful-fs: 4.2.11 tapable: 2.2.1 - dev: true /enhanced-resolve@5.9.3: resolution: {integrity: sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==} @@ -23173,7 +25976,6 @@ packages: engines: {node: '>=8.6'} dependencies: ansi-colors: 4.1.3 - dev: true /entities@1.1.2: resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} @@ -23182,8 +25984,8 @@ packages: /entities@2.2.0: resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} - /entities@4.4.0: - resolution: {integrity: sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==} + /entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} /env-paths@2.2.1: @@ -23194,6 +25996,7 @@ packages: /envinfo@7.8.1: resolution: {integrity: sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==} engines: {node: '>=4'} + hasBin: true /err-code@1.1.2: resolution: {integrity: sha512-CJAN+O0/yA1CKfRn9SXOGctSpEM7DCon/r/5r2eXFMY2zCCJBasFhcM5I+1kh3Ap11FsQCX+vGHceNPvpWKhoA==} @@ -23221,83 +26024,49 @@ packages: dependencies: stackframe: 1.3.4 - /es-abstract@1.21.1: - resolution: {integrity: sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==} - engines: {node: '>= 0.4'} - dependencies: - available-typed-arrays: 1.0.5 - call-bind: 1.0.2 - es-set-tostringtag: 2.0.1 - es-to-primitive: 1.2.1 - function-bind: 1.1.1 - function.prototype.name: 1.1.5 - get-intrinsic: 1.1.3 - get-symbol-description: 1.0.0 - globalthis: 1.0.3 - gopd: 1.0.1 - has: 1.0.3 - has-property-descriptors: 1.0.0 - has-proto: 1.0.1 - has-symbols: 1.0.3 - internal-slot: 1.0.5 - is-array-buffer: 3.0.1 - is-callable: 1.2.7 - is-negative-zero: 2.0.2 - is-regex: 1.1.4 - is-shared-array-buffer: 1.0.2 - is-string: 1.0.7 - is-typed-array: 1.1.10 - is-weakref: 1.0.2 - object-inspect: 1.12.2 - object-keys: 1.1.1 - object.assign: 4.1.4 - regexp.prototype.flags: 1.4.3 - safe-regex-test: 1.0.0 - string.prototype.trimend: 1.0.6 - string.prototype.trimstart: 1.0.6 - typed-array-length: 1.0.4 - unbox-primitive: 1.0.2 - which-typed-array: 1.1.9 - dev: false - - /es-abstract@1.21.2: - resolution: {integrity: sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==} + /es-abstract@1.22.3: + resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==} engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.0 + arraybuffer.prototype.slice: 1.0.2 available-typed-arrays: 1.0.5 - call-bind: 1.0.2 - es-set-tostringtag: 2.0.1 + call-bind: 1.0.5 + es-set-tostringtag: 2.0.2 es-to-primitive: 1.2.1 - function.prototype.name: 1.1.5 - get-intrinsic: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.2 get-symbol-description: 1.0.0 globalthis: 1.0.3 gopd: 1.0.1 - has: 1.0.3 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 has-proto: 1.0.1 has-symbols: 1.0.3 - internal-slot: 1.0.5 + hasown: 2.0.0 + internal-slot: 1.0.6 is-array-buffer: 3.0.2 is-callable: 1.2.7 is-negative-zero: 2.0.2 is-regex: 1.1.4 is-shared-array-buffer: 1.0.2 is-string: 1.0.7 - is-typed-array: 1.1.10 + is-typed-array: 1.1.12 is-weakref: 1.0.2 - object-inspect: 1.12.3 + object-inspect: 1.13.1 object-keys: 1.1.1 - object.assign: 4.1.4 - regexp.prototype.flags: 1.5.0 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.1 + safe-array-concat: 1.0.1 safe-regex-test: 1.0.0 - string.prototype.trim: 1.2.7 - string.prototype.trimend: 1.0.6 - string.prototype.trimstart: 1.0.6 + string.prototype.trim: 1.2.8 + string.prototype.trimend: 1.0.7 + string.prototype.trimstart: 1.0.7 + typed-array-buffer: 1.0.0 + typed-array-byte-length: 1.0.0 + typed-array-byte-offset: 1.0.0 typed-array-length: 1.0.4 unbox-primitive: 1.0.2 - which-typed-array: 1.1.9 + which-typed-array: 1.1.13 /es-array-method-boxes-properly@1.0.0: resolution: {integrity: sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==} @@ -23314,11 +26083,21 @@ packages: winston: 3.8.2 dev: true + /es-define-property@1.0.0: + resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.4 + + /es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + /es-get-iterator@1.1.3: resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 has-symbols: 1.0.3 is-arguments: 1.1.1 is-map: 2.0.2 @@ -23327,6 +26106,24 @@ packages: isarray: 2.0.5 stop-iteration-iterator: 1.0.0 + /es-iterator-helpers@1.0.15: + resolution: {integrity: sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==} + dependencies: + asynciterator.prototype: 1.0.0 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + es-set-tostringtag: 2.0.2 + function-bind: 1.1.2 + get-intrinsic: 1.2.2 + globalthis: 1.0.3 + has-property-descriptors: 1.0.1 + has-proto: 1.0.1 + has-symbols: 1.0.3 + internal-slot: 1.0.6 + iterator.prototype: 1.1.2 + safe-array-concat: 1.0.1 + /es-module-lexer@0.10.5: resolution: {integrity: sha512-+7IwY/kiGAacQfY+YBhKMvEmyAJnw5grTUgjG85Pe7vcUI/6b7pZjZG8nQ7+48YhzEAEqrEgD2dCz/JIK+AYvw==} dev: true @@ -23334,18 +26131,27 @@ packages: /es-module-lexer@0.9.3: resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} - /es-set-tostringtag@2.0.1: - resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} + /es-module-lexer@1.3.1: + resolution: {integrity: sha512-JUFAyicQV9mXc3YRxPnDlrfBKpqt6hUYzz9/boprUJHs4e4KVr3XwOF70doO6gwXUor6EWZJAyWAfKki84t20Q==} + + /es-set-tostringtag@2.0.2: + resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 - has: 1.0.3 + get-intrinsic: 1.2.2 has-tostringtag: 1.0.0 + hasown: 2.0.0 /es-shim-unscopables@1.0.0: resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} dependencies: has: 1.0.3 + dev: true + + /es-shim-unscopables@1.0.2: + resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} + dependencies: + hasown: 2.0.0 /es-to-primitive@1.2.1: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} @@ -23366,6 +26172,11 @@ packages: /es5-imcompatible-versions@0.1.78: resolution: {integrity: sha512-zR7zkwTk6Caz7BGs4XmG7FRGFugY70fvf10eKXrF3JXwcuLf5ppRST7PlEVUGqVmJfdgxIutUP1U6u6SgH/f8g==} + dev: false + + /es5-imcompatible-versions@0.1.89: + resolution: {integrity: sha512-metQ5Hi5dgBiaoc2VjGx2IABciw0djiE1+KbRWHbgQng9KnJQ1niBIA6vvLKWgA9R02kQZQRvFJ504ev0AQbzQ==} + dev: true /es6-error@4.1.1: resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} @@ -23384,7 +26195,6 @@ packages: /es6-promise@4.2.8: resolution: {integrity: sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==} - dev: true /es6-promisify@5.0.0: resolution: {integrity: sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==} @@ -23407,24 +26217,6 @@ packages: es6-symbol: 3.1.3 dev: true - /esbuild-android-64@0.14.36: - resolution: {integrity: sha512-jwpBhF1jmo0tVCYC/ORzVN+hyVcNZUWuozGcLHfod0RJCedTDTvR4nwlTXdx1gtncDqjk33itjO+27OZHbiavw==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /esbuild-android-64@0.14.49: - resolution: {integrity: sha512-vYsdOTD+yi+kquhBiFWl3tyxnj2qZJsl4tAqwhT90ktUdnyTizgle7TjNx6Ar1bN7wcwWqZ9QInfdk2WVagSww==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - /esbuild-android-64@0.14.51: resolution: {integrity: sha512-6FOuKTHnC86dtrKDmdSj2CkcKF8PnqkaIXqvgydqfJmqBazCPdw+relrMlhGjkvVdiiGV70rpdnyFmA65ekBCQ==} engines: {node: '>=12'} @@ -23442,24 +26234,6 @@ packages: requiresBuild: true optional: true - /esbuild-android-arm64@0.14.36: - resolution: {integrity: sha512-/hYkyFe7x7Yapmfv4X/tBmyKnggUmdQmlvZ8ZlBnV4+PjisrEhAvC3yWpURuD9XoB8Wa1d5dGkTsF53pIvpjsg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /esbuild-android-arm64@0.14.49: - resolution: {integrity: sha512-g2HGr/hjOXCgSsvQZ1nK4nW/ei8JUx04Li74qub9qWrStlysaVmadRyTVuW32FGIpLQyc5sUjjZopj49eGGM2g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - /esbuild-android-arm64@0.14.51: resolution: {integrity: sha512-vBtp//5VVkZWmYYvHsqBRCMMi1MzKuMIn5XDScmnykMTu9+TD9v0NMEDqQxvtFToeYmojdo5UCV2vzMQWJcJ4A==} engines: {node: '>=12'} @@ -23477,24 +26251,6 @@ packages: requiresBuild: true optional: true - /esbuild-darwin-64@0.14.36: - resolution: {integrity: sha512-kkl6qmV0dTpyIMKagluzYqlc1vO0ecgpviK/7jwPbRDEv5fejRTaBBEE2KxEQbTHcLhiiDbhG7d5UybZWo/1zQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-64@0.14.49: - resolution: {integrity: sha512-3rvqnBCtX9ywso5fCHixt2GBCUsogNp9DjGmvbBohh31Ces34BVzFltMSxJpacNki96+WIcX5s/vum+ckXiLYg==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /esbuild-darwin-64@0.14.51: resolution: {integrity: sha512-YFmXPIOvuagDcwCejMRtCDjgPfnDu+bNeh5FU2Ryi68ADDVlWEpbtpAbrtf/lvFTWPexbgyKgzppNgsmLPr8PA==} engines: {node: '>=12'} @@ -23512,24 +26268,6 @@ packages: requiresBuild: true optional: true - /esbuild-darwin-arm64@0.14.36: - resolution: {integrity: sha512-q8fY4r2Sx6P0Pr3VUm//eFYKVk07C5MHcEinU1BjyFnuYz4IxR/03uBbDwluR6ILIHnZTE7AkTUWIdidRi1Jjw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /esbuild-darwin-arm64@0.14.49: - resolution: {integrity: sha512-XMaqDxO846srnGlUSJnwbijV29MTKUATmOLyQSfswbK/2X5Uv28M9tTLUJcKKxzoo9lnkYPsx2o8EJcTYwCs/A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /esbuild-darwin-arm64@0.14.51: resolution: {integrity: sha512-juYD0QnSKwAMfzwKdIF6YbueXzS6N7y4GXPDeDkApz/1RzlT42mvX9jgNmyOlWKN7YzQAYbcUEJmZJYQGdf2ow==} engines: {node: '>=12'} @@ -23547,24 +26285,6 @@ packages: requiresBuild: true optional: true - /esbuild-freebsd-64@0.14.36: - resolution: {integrity: sha512-Hn8AYuxXXRptybPqoMkga4HRFE7/XmhtlQjXFHoAIhKUPPMeJH35GYEUWGbjteai9FLFvBAjEAlwEtSGxnqWww==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-64@0.14.49: - resolution: {integrity: sha512-NJ5Q6AjV879mOHFri+5lZLTp5XsO2hQ+KSJYLbfY9DgCu8s6/Zl2prWXVANYTeCDLlrIlNNYw8y34xqyLDKOmQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /esbuild-freebsd-64@0.14.51: resolution: {integrity: sha512-cLEI/aXjb6vo5O2Y8rvVSQ7smgLldwYY5xMxqh/dQGfWO+R1NJOFsiax3IS4Ng300SVp7Gz3czxT6d6qf2cw0g==} engines: {node: '>=12'} @@ -23582,24 +26302,6 @@ packages: requiresBuild: true optional: true - /esbuild-freebsd-arm64@0.14.36: - resolution: {integrity: sha512-S3C0attylLLRiCcHiJd036eDEMOY32+h8P+jJ3kTcfhJANNjP0TNBNL30TZmEdOSx/820HJFgRrqpNAvTbjnDA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-freebsd-arm64@0.14.49: - resolution: {integrity: sha512-lFLtgXnAc3eXYqj5koPlBZvEbBSOSUbWO3gyY/0+4lBdRqELyz4bAuamHvmvHW5swJYL7kngzIZw6kdu25KGOA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /esbuild-freebsd-arm64@0.14.51: resolution: {integrity: sha512-TcWVw/rCL2F+jUgRkgLa3qltd5gzKjIMGhkVybkjk6PJadYInPtgtUBp1/hG+mxyigaT7ib+od1Xb84b+L+1Mg==} engines: {node: '>=12'} @@ -23617,37 +26319,6 @@ packages: requiresBuild: true optional: true - /esbuild-jest@0.5.0(esbuild@0.14.36): - resolution: {integrity: sha512-AMZZCdEpXfNVOIDvURlqYyHwC8qC1/BFjgsrOiSL1eyiIArVtHL8YAC83Shhn16cYYoAWEW17yZn0W/RJKJKHQ==} - peerDependencies: - esbuild: '>=0.8.50' - dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-transform-modules-commonjs': 7.21.2(@babel/core@7.22.5) - babel-jest: 26.6.3(@babel/core@7.22.5) - esbuild: 0.14.36 - transitivePeerDependencies: - - supports-color - dev: true - - /esbuild-linux-32@0.14.36: - resolution: {integrity: sha512-Eh9OkyTrEZn9WGO4xkI3OPPpUX7p/3QYvdG0lL4rfr73Ap2HAr6D9lP59VMF64Ex01LhHSXwIsFG/8AQjh6eNw==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-32@0.14.49: - resolution: {integrity: sha512-zTTH4gr2Kb8u4QcOpTDVn7Z8q7QEIvFl/+vHrI3cF6XOJS7iEI1FWslTo3uofB2+mn6sIJEQD9PrNZKoAAMDiA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-32@0.14.51: resolution: {integrity: sha512-RFqpyC5ChyWrjx8Xj2K0EC1aN0A37H6OJfmUXIASEqJoHcntuV3j2Efr9RNmUhMfNE6yEj2VpYuDteZLGDMr0w==} engines: {node: '>=12'} @@ -23665,24 +26336,6 @@ packages: requiresBuild: true optional: true - /esbuild-linux-64@0.14.36: - resolution: {integrity: sha512-vFVFS5ve7PuwlfgoWNyRccGDi2QTNkQo/2k5U5ttVD0jRFaMlc8UQee708fOZA6zTCDy5RWsT5MJw3sl2X6KDg==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-64@0.14.49: - resolution: {integrity: sha512-hYmzRIDzFfLrB5c1SknkxzM8LdEUOusp6M2TnuQZJLRtxTgyPnZZVtyMeCLki0wKgYPXkFsAVhi8vzo2mBNeTg==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-64@0.14.51: resolution: {integrity: sha512-dxjhrqo5i7Rq6DXwz5v+MEHVs9VNFItJmHBe1CxROWNf4miOGoQhqSG8StStbDkQ1Mtobg6ng+4fwByOhoQoeA==} engines: {node: '>=12'} @@ -23700,24 +26353,6 @@ packages: requiresBuild: true optional: true - /esbuild-linux-arm64@0.14.36: - resolution: {integrity: sha512-24Vq1M7FdpSmaTYuu1w0Hdhiqkbto1I5Pjyi+4Cdw5fJKGlwQuw+hWynTcRI/cOZxBcBpP21gND7W27gHAiftw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm64@0.14.49: - resolution: {integrity: sha512-KLQ+WpeuY+7bxukxLz5VgkAAVQxUv67Ft4DmHIPIW+2w3ObBPQhqNoeQUHxopoW/aiOn3m99NSmSV+bs4BSsdA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-arm64@0.14.51: resolution: {integrity: sha512-D9rFxGutoqQX3xJPxqd6o+kvYKeIbM0ifW2y0bgKk5HPgQQOo2k9/2Vpto3ybGYaFPCE5qTGtqQta9PoP6ZEzw==} engines: {node: '>=12'} @@ -23735,24 +26370,6 @@ packages: requiresBuild: true optional: true - /esbuild-linux-arm@0.14.36: - resolution: {integrity: sha512-NhgU4n+NCsYgt7Hy61PCquEz5aevI6VjQvxwBxtxrooXsxt5b2xtOUXYZe04JxqQo+XZk3d1gcr7pbV9MAQ/Lg==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-arm@0.14.49: - resolution: {integrity: sha512-iE3e+ZVv1Qz1Sy0gifIsarJMQ89Rpm9mtLSRtG3AH0FPgAzQ5Z5oU6vYzhc/3gSPi2UxdCOfRhw2onXuFw/0lg==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-arm@0.14.51: resolution: {integrity: sha512-LsJynDxYF6Neg7ZC7748yweCDD+N8ByCv22/7IAZglIEniEkqdF4HCaa49JNDLw1UQGlYuhOB8ZT/MmcSWzcWg==} engines: {node: '>=12'} @@ -23770,24 +26387,6 @@ packages: requiresBuild: true optional: true - /esbuild-linux-mips64le@0.14.36: - resolution: {integrity: sha512-hZUeTXvppJN+5rEz2EjsOFM9F1bZt7/d2FUM1lmQo//rXh1RTFYzhC0txn7WV0/jCC7SvrGRaRz0NMsRPf8SIA==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-mips64le@0.14.49: - resolution: {integrity: sha512-n+rGODfm8RSum5pFIqFQVQpYBw+AztL8s6o9kfx7tjfK0yIGF6tm5HlG6aRjodiiKkH2xAiIM+U4xtQVZYU4rA==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-mips64le@0.14.51: resolution: {integrity: sha512-vS54wQjy4IinLSlb5EIlLoln8buh1yDgliP4CuEHumrPk4PvvP4kTRIG4SzMXm6t19N0rIfT4bNdAxzJLg2k6A==} engines: {node: '>=12'} @@ -23805,24 +26404,6 @@ packages: requiresBuild: true optional: true - /esbuild-linux-ppc64le@0.14.36: - resolution: {integrity: sha512-1Bg3QgzZjO+QtPhP9VeIBhAduHEc2kzU43MzBnMwpLSZ890azr4/A9Dganun8nsqD/1TBcqhId0z4mFDO8FAvg==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-ppc64le@0.14.49: - resolution: {integrity: sha512-WP9zR4HX6iCBmMFH+XHHng2LmdoIeUmBpL4aL2TR8ruzXyT4dWrJ5BSbT8iNo6THN8lod6GOmYDLq/dgZLalGw==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-ppc64le@0.14.51: resolution: {integrity: sha512-xcdd62Y3VfGoyphNP/aIV9LP+RzFw5M5Z7ja+zdpQHHvokJM7d0rlDRMN+iSSwvUymQkqZO+G/xjb4/75du8BQ==} engines: {node: '>=12'} @@ -23840,24 +26421,6 @@ packages: requiresBuild: true optional: true - /esbuild-linux-riscv64@0.14.36: - resolution: {integrity: sha512-dOE5pt3cOdqEhaufDRzNCHf5BSwxgygVak9UR7PH7KPVHwSTDAZHDoEjblxLqjJYpc5XaU9+gKJ9F8mp9r5I4A==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-riscv64@0.14.49: - resolution: {integrity: sha512-h66ORBz+Dg+1KgLvzTVQEA1LX4XBd1SK0Fgbhhw4akpG/YkN8pS6OzYI/7SGENiN6ao5hETRDSkVcvU9NRtkMQ==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-riscv64@0.14.51: resolution: {integrity: sha512-syXHGak9wkAnFz0gMmRBoy44JV0rp4kVCEA36P5MCeZcxFq8+fllBC2t6sKI23w3qd8Vwo9pTADCgjTSf3L3rA==} engines: {node: '>=12'} @@ -23875,24 +26438,6 @@ packages: requiresBuild: true optional: true - /esbuild-linux-s390x@0.14.36: - resolution: {integrity: sha512-g4FMdh//BBGTfVHjF6MO7Cz8gqRoDPzXWxRvWkJoGroKA18G9m0wddvPbEqcQf5Tbt2vSc1CIgag7cXwTmoTXg==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /esbuild-linux-s390x@0.14.49: - resolution: {integrity: sha512-DhrUoFVWD+XmKO1y7e4kNCqQHPs6twz6VV6Uezl/XHYGzM60rBewBF5jlZjG0nCk5W/Xy6y1xWeopkrhFFM0sQ==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-s390x@0.14.51: resolution: {integrity: sha512-kFAJY3dv+Wq8o28K/C7xkZk/X34rgTwhknSsElIqoEo8armCOjMJ6NsMxm48KaWY2h2RUYGtQmr+RGuUPKBhyw==} engines: {node: '>=12'} @@ -23910,24 +26455,6 @@ packages: requiresBuild: true optional: true - /esbuild-netbsd-64@0.14.36: - resolution: {integrity: sha512-UB2bVImxkWk4vjnP62ehFNZ73lQY1xcnL5ZNYF3x0AG+j8HgdkNF05v67YJdCIuUJpBuTyCK8LORCYo9onSW+A==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-netbsd-64@0.14.49: - resolution: {integrity: sha512-BXaUwFOfCy2T+hABtiPUIpWjAeWK9P8O41gR4Pg73hpzoygVGnj0nI3YK4SJhe52ELgtdgWP/ckIkbn2XaTxjQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - /esbuild-netbsd-64@0.14.51: resolution: {integrity: sha512-ZZBI7qrR1FevdPBVHz/1GSk1x5GDL/iy42Zy8+neEm/HA7ma+hH/bwPEjeHXKWUDvM36CZpSL/fn1/y9/Hb+1A==} engines: {node: '>=12'} @@ -23945,24 +26472,6 @@ packages: requiresBuild: true optional: true - /esbuild-openbsd-64@0.14.36: - resolution: {integrity: sha512-NvGB2Chf8GxuleXRGk8e9zD3aSdRO5kLt9coTQbCg7WMGXeX471sBgh4kSg8pjx0yTXRt0MlrUDnjVYnetyivg==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /esbuild-openbsd-64@0.14.49: - resolution: {integrity: sha512-lP06UQeLDGmVPw9Rg437Btu6J9/BmyhdoefnQ4gDEJTtJvKtQaUcOQrhjTq455ouZN4EHFH1h28WOJVANK41kA==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - /esbuild-openbsd-64@0.14.51: resolution: {integrity: sha512-7R1/p39M+LSVQVgDVlcY1KKm6kFKjERSX1lipMG51NPcspJD1tmiZSmmBXoY5jhHIu6JL1QkFDTx94gMYK6vfA==} engines: {node: '>=12'} @@ -23991,24 +26500,6 @@ packages: - supports-color dev: true - /esbuild-sunos-64@0.14.36: - resolution: {integrity: sha512-VkUZS5ftTSjhRjuRLp+v78auMO3PZBXu6xl4ajomGenEm2/rGuWlhFSjB7YbBNErOchj51Jb2OK8lKAo8qdmsQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /esbuild-sunos-64@0.14.49: - resolution: {integrity: sha512-4c8Zowp+V3zIWje329BeLbGh6XI9c/rqARNaj5yPHdC61pHI9UNdDxT3rePPJeWcEZVKjkiAS6AP6kiITp7FSw==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - /esbuild-sunos-64@0.14.51: resolution: {integrity: sha512-HoHaCswHxLEYN8eBTtyO0bFEWvA3Kdb++hSQ/lLG7TyKF69TeSG0RNoBRAs45x/oCeWaTDntEZlYwAfQlhEtJA==} engines: {node: '>=12'} @@ -24026,24 +26517,6 @@ packages: requiresBuild: true optional: true - /esbuild-windows-32@0.14.36: - resolution: {integrity: sha512-bIar+A6hdytJjZrDxfMBUSEHHLfx3ynoEZXx/39nxy86pX/w249WZm8Bm0dtOAByAf4Z6qV0LsnTIJHiIqbw0w==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-32@0.14.49: - resolution: {integrity: sha512-q7Rb+J9yHTeKr9QTPDYkqfkEj8/kcKz9lOabDuvEXpXuIcosWCJgo5Z7h/L4r7rbtTH4a8U2FGKb6s1eeOHmJA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - /esbuild-windows-32@0.14.51: resolution: {integrity: sha512-4rtwSAM35A07CBt1/X8RWieDj3ZUHQqUOaEo5ZBs69rt5WAFjP4aqCIobdqOy4FdhYw1yF8Z0xFBTyc9lgPtEg==} engines: {node: '>=12'} @@ -24061,24 +26534,6 @@ packages: requiresBuild: true optional: true - /esbuild-windows-64@0.14.36: - resolution: {integrity: sha512-+p4MuRZekVChAeueT1Y9LGkxrT5x7YYJxYE8ZOTcEfeUUN43vktSn6hUNsvxzzATrSgq5QqRdllkVBxWZg7KqQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-64@0.14.49: - resolution: {integrity: sha512-+Cme7Ongv0UIUTniPqfTX6mJ8Deo7VXw9xN0yJEN1lQMHDppTNmKwAM3oGbD/Vqff+07K2gN0WfNkMohmG+dVw==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /esbuild-windows-64@0.14.51: resolution: {integrity: sha512-HoN/5HGRXJpWODprGCgKbdMvrC3A2gqvzewu2eECRw2sYxOUoh2TV1tS+G7bHNapPGI79woQJGV6pFH7GH7qnA==} engines: {node: '>=12'} @@ -24096,24 +26551,6 @@ packages: requiresBuild: true optional: true - /esbuild-windows-arm64@0.14.36: - resolution: {integrity: sha512-fBB4WlDqV1m18EF/aheGYQkQZHfPHiHJSBYzXIo8yKehek+0BtBwo/4PNwKGJ5T0YK0oc8pBKjgwPbzSrPLb+Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /esbuild-windows-arm64@0.14.49: - resolution: {integrity: sha512-v+HYNAXzuANrCbbLFJ5nmO3m5y2PGZWLe3uloAkLt87aXiO2mZr3BTmacZdjwNkNEHuH3bNtN8cak+mzVjVPfA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /esbuild-windows-arm64@0.14.51: resolution: {integrity: sha512-JQDqPjuOH7o+BsKMSddMfmVJXrnYZxXDHsoLHc0xgmAZkOOCflRmC43q31pk79F9xuyWY45jDBPolb5ZgGOf9g==} engines: {node: '>=12'} @@ -24137,62 +26574,6 @@ packages: requiresBuild: true dev: false - /esbuild@0.14.36: - resolution: {integrity: sha512-HhFHPiRXGYOCRlrhpiVDYKcFJRdO0sBElZ668M4lh2ER0YgnkLxECuFe7uWCf23FrcLc59Pqr7dHkTqmRPDHmw==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - esbuild-android-64: 0.14.36 - esbuild-android-arm64: 0.14.36 - esbuild-darwin-64: 0.14.36 - esbuild-darwin-arm64: 0.14.36 - esbuild-freebsd-64: 0.14.36 - esbuild-freebsd-arm64: 0.14.36 - esbuild-linux-32: 0.14.36 - esbuild-linux-64: 0.14.36 - esbuild-linux-arm: 0.14.36 - esbuild-linux-arm64: 0.14.36 - esbuild-linux-mips64le: 0.14.36 - esbuild-linux-ppc64le: 0.14.36 - esbuild-linux-riscv64: 0.14.36 - esbuild-linux-s390x: 0.14.36 - esbuild-netbsd-64: 0.14.36 - esbuild-openbsd-64: 0.14.36 - esbuild-sunos-64: 0.14.36 - esbuild-windows-32: 0.14.36 - esbuild-windows-64: 0.14.36 - esbuild-windows-arm64: 0.14.36 - dev: true - - /esbuild@0.14.49: - resolution: {integrity: sha512-/TlVHhOaq7Yz8N1OJrjqM3Auzo5wjvHFLk+T8pIue+fhnhIMpfAzsG6PLVMbFveVxqD2WOp3QHei+52IMUNmCw==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - esbuild-android-64: 0.14.49 - esbuild-android-arm64: 0.14.49 - esbuild-darwin-64: 0.14.49 - esbuild-darwin-arm64: 0.14.49 - esbuild-freebsd-64: 0.14.49 - esbuild-freebsd-arm64: 0.14.49 - esbuild-linux-32: 0.14.49 - esbuild-linux-64: 0.14.49 - esbuild-linux-arm: 0.14.49 - esbuild-linux-arm64: 0.14.49 - esbuild-linux-mips64le: 0.14.49 - esbuild-linux-ppc64le: 0.14.49 - esbuild-linux-riscv64: 0.14.49 - esbuild-linux-s390x: 0.14.49 - esbuild-netbsd-64: 0.14.49 - esbuild-openbsd-64: 0.14.49 - esbuild-sunos-64: 0.14.49 - esbuild-windows-32: 0.14.49 - esbuild-windows-64: 0.14.49 - esbuild-windows-arm64: 0.14.49 - dev: true - /esbuild@0.14.51: resolution: {integrity: sha512-+CvnDitD7Q5sT7F+FM65sWkF8wJRf+j9fPcprxYV4j+ohmzVj2W7caUqH2s5kCaCJAfcAICjSlKhDCcvDpU7nw==} engines: {node: '>=12'} @@ -24278,6 +26659,7 @@ packages: '@esbuild/win32-arm64': 0.16.17 '@esbuild/win32-ia32': 0.16.17 '@esbuild/win32-x64': 0.16.17 + dev: false /esbuild@0.17.19: resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} @@ -24308,6 +26690,66 @@ packages: '@esbuild/win32-ia32': 0.17.19 '@esbuild/win32-x64': 0.17.19 + /esbuild@0.18.20: + resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.18.20 + '@esbuild/android-arm64': 0.18.20 + '@esbuild/android-x64': 0.18.20 + '@esbuild/darwin-arm64': 0.18.20 + '@esbuild/darwin-x64': 0.18.20 + '@esbuild/freebsd-arm64': 0.18.20 + '@esbuild/freebsd-x64': 0.18.20 + '@esbuild/linux-arm': 0.18.20 + '@esbuild/linux-arm64': 0.18.20 + '@esbuild/linux-ia32': 0.18.20 + '@esbuild/linux-loong64': 0.18.20 + '@esbuild/linux-mips64el': 0.18.20 + '@esbuild/linux-ppc64': 0.18.20 + '@esbuild/linux-riscv64': 0.18.20 + '@esbuild/linux-s390x': 0.18.20 + '@esbuild/linux-x64': 0.18.20 + '@esbuild/netbsd-x64': 0.18.20 + '@esbuild/openbsd-x64': 0.18.20 + '@esbuild/sunos-x64': 0.18.20 + '@esbuild/win32-arm64': 0.18.20 + '@esbuild/win32-ia32': 0.18.20 + '@esbuild/win32-x64': 0.18.20 + + /esbuild@0.21.4: + resolution: {integrity: sha512-sFMcNNrj+Q0ZDolrp5pDhH0nRPN9hLIM3fRPwgbLYJeSHHgnXSnbV3xYgSVuOeLWH9c73VwmEverVzupIv5xuA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/aix-ppc64': 0.21.4 + '@esbuild/android-arm': 0.21.4 + '@esbuild/android-arm64': 0.21.4 + '@esbuild/android-x64': 0.21.4 + '@esbuild/darwin-arm64': 0.21.4 + '@esbuild/darwin-x64': 0.21.4 + '@esbuild/freebsd-arm64': 0.21.4 + '@esbuild/freebsd-x64': 0.21.4 + '@esbuild/linux-arm': 0.21.4 + '@esbuild/linux-arm64': 0.21.4 + '@esbuild/linux-ia32': 0.21.4 + '@esbuild/linux-loong64': 0.21.4 + '@esbuild/linux-mips64el': 0.21.4 + '@esbuild/linux-ppc64': 0.21.4 + '@esbuild/linux-riscv64': 0.21.4 + '@esbuild/linux-s390x': 0.21.4 + '@esbuild/linux-x64': 0.21.4 + '@esbuild/netbsd-x64': 0.21.4 + '@esbuild/openbsd-x64': 0.21.4 + '@esbuild/sunos-x64': 0.21.4 + '@esbuild/win32-arm64': 0.21.4 + '@esbuild/win32-ia32': 0.21.4 + '@esbuild/win32-x64': 0.21.4 + dev: false + /escalade@3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} engines: {node: '>=6'} @@ -24391,7 +26833,7 @@ packages: eslint-rule-composer: 0.3.0 dev: true - /eslint-plugin-jest@24.7.0(@typescript-eslint/eslint-plugin@5.48.1)(eslint@7.32.0)(typescript@4.9.4): + /eslint-plugin-jest@24.7.0(@typescript-eslint/eslint-plugin@5.48.1)(eslint@7.32.0)(typescript@4.9.5): resolution: {integrity: sha512-wUxdF2bAZiYSKBclsUMrYHH6WxiBreNjyDxbRv345TIvPeoCEgPNEn3Sa+ZrSqsf1Dl9SqqSREXMHExlMMu1DA==} engines: {node: '>=10'} peerDependencies: @@ -24403,67 +26845,39 @@ packages: eslint: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@7.32.0)(typescript@4.9.4) - '@typescript-eslint/experimental-utils': 4.33.0(eslint@7.32.0)(typescript@4.9.4) + '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/experimental-utils': 4.33.0(eslint@7.32.0)(typescript@4.9.5) eslint: 7.32.0 transitivePeerDependencies: - supports-color - typescript dev: true - /eslint-plugin-jest@26.1.5(@typescript-eslint/eslint-plugin@5.27.1)(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4): - resolution: {integrity: sha512-su89aDuljL9bTjEufTXmKUMSFe2kZUL9bi7+woq+C2ukHZordhtfPm4Vg+tdioHBaKf8v3/FXW9uV0ksqhYGFw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - '@typescript-eslint/eslint-plugin': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - jest: '*' - peerDependenciesMeta: - '@typescript-eslint/eslint-plugin': - optional: true - eslint: - optional: true - jest: - optional: true - dependencies: - '@typescript-eslint/eslint-plugin': 5.27.1(@typescript-eslint/parser@5.27.1)(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - eslint: 8.35.0 - jest: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) - transitivePeerDependencies: - - supports-color - - typescript - dev: true - - /eslint-plugin-jest@27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4): - resolution: {integrity: sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + /eslint-plugin-jest@24.7.0(@typescript-eslint/eslint-plugin@5.62.0)(eslint@7.32.0)(typescript@4.9.5): + resolution: {integrity: sha512-wUxdF2bAZiYSKBclsUMrYHH6WxiBreNjyDxbRv345TIvPeoCEgPNEn3Sa+ZrSqsf1Dl9SqqSREXMHExlMMu1DA==} + engines: {node: '>=10'} peerDependencies: - '@typescript-eslint/eslint-plugin': ^5.0.0 - eslint: ^7.0.0 || ^8.0.0 - jest: '*' + '@typescript-eslint/eslint-plugin': '>= 4' + eslint: '>=5' peerDependenciesMeta: '@typescript-eslint/eslint-plugin': optional: true eslint: optional: true - jest: - optional: true dependencies: - '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(eslint@8.35.0)(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - eslint: 8.35.0 - jest: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/experimental-utils': 4.33.0(eslint@7.32.0)(typescript@4.9.5) + eslint: 7.32.0 transitivePeerDependencies: - supports-color - typescript dev: true - /eslint-plugin-jest@27.2.1(@typescript-eslint/eslint-plugin@5.48.1)(jest@29.4.3)(typescript@4.9.4): - resolution: {integrity: sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==} + /eslint-plugin-jest@27.2.3(@typescript-eslint/eslint-plugin@5.62.0)(jest@29.7.0)(typescript@4.9.5): + resolution: {integrity: sha512-sRLlSCpICzWuje66Gl9zvdF6mwD5X86I4u55hJyFBsxYOsBCmT5+kSUjf+fkFWVMMgpzNEupjW8WzUqi83hJAQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: - '@typescript-eslint/eslint-plugin': ^5.0.0 + '@typescript-eslint/eslint-plugin': ^5.0.0 || ^6.0.0 eslint: ^7.0.0 || ^8.0.0 jest: '*' peerDependenciesMeta: @@ -24474,9 +26888,9 @@ packages: jest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 5.48.1(@typescript-eslint/parser@5.48.1)(typescript@4.9.4) - '@typescript-eslint/utils': 5.48.1(eslint@8.35.0)(typescript@4.9.4) - jest: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@7.32.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.62.0(eslint@7.32.0)(typescript@4.9.5) + jest: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) transitivePeerDependencies: - supports-color - typescript @@ -24505,18 +26919,6 @@ packages: eslint: 7.32.0 dev: true - /eslint-plugin-react-hooks@4.5.0(eslint@8.35.0): - resolution: {integrity: sha512-8k1gRt7D7h03kd+SAAlzXkQwWK22BnK6GKZG+FJA6BAGy22CFvl8kCIXKpVux0cCxMWDQUPqSok0LKaZ0aOcCw==} - engines: {node: '>=10'} - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - peerDependenciesMeta: - eslint: - optional: true - dependencies: - eslint: 8.35.0 - dev: true - /eslint-plugin-react-hooks@4.6.0(eslint@7.32.0): resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} engines: {node: '>=10'} @@ -24527,18 +26929,6 @@ packages: optional: true dependencies: eslint: 7.32.0 - dev: true - - /eslint-plugin-react-hooks@4.6.0(eslint@8.35.0): - resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} - engines: {node: '>=10'} - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - peerDependenciesMeta: - eslint: - optional: true - dependencies: - eslint: 8.35.0 /eslint-plugin-react@7.29.4(eslint@7.32.0): resolution: {integrity: sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ==} @@ -24561,13 +26951,13 @@ packages: object.hasown: 1.1.2 object.values: 1.1.6 prop-types: 15.8.1 - resolve: 2.0.0-next.4 - semver: 6.3.0 + resolve: 2.0.0-next.5 + semver: 6.3.1 string.prototype.matchall: 4.0.8 dev: true - /eslint-plugin-react@7.29.4(eslint@8.35.0): - resolution: {integrity: sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ==} + /eslint-plugin-react@7.33.2(eslint@7.32.0): + resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==} engines: {node: '>=4'} peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 @@ -24575,75 +26965,23 @@ packages: eslint: optional: true dependencies: - array-includes: 3.1.6 - array.prototype.flatmap: 1.3.1 - doctrine: 2.1.0 - eslint: 8.35.0 - estraverse: 5.3.0 - jsx-ast-utils: 3.3.0 - minimatch: 3.1.2 - object.entries: 1.1.6 - object.fromentries: 2.0.6 - object.hasown: 1.1.2 - object.values: 1.1.6 - prop-types: 15.8.1 - resolve: 2.0.0-next.4 - semver: 6.3.0 - string.prototype.matchall: 4.0.8 - dev: true - - /eslint-plugin-react@7.32.2(eslint@7.32.0): - resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==} - engines: {node: '>=4'} - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - peerDependenciesMeta: - eslint: - optional: true - dependencies: - array-includes: 3.1.6 - array.prototype.flatmap: 1.3.1 - array.prototype.tosorted: 1.1.1 + array-includes: 3.1.7 + array.prototype.flatmap: 1.3.2 + array.prototype.tosorted: 1.1.2 doctrine: 2.1.0 + es-iterator-helpers: 1.0.15 eslint: 7.32.0 estraverse: 5.3.0 - jsx-ast-utils: 3.3.0 + jsx-ast-utils: 3.3.5 minimatch: 3.1.2 - object.entries: 1.1.6 - object.fromentries: 2.0.6 - object.hasown: 1.1.2 - object.values: 1.1.6 + object.entries: 1.1.7 + object.fromentries: 2.0.7 + object.hasown: 1.1.3 + object.values: 1.1.7 prop-types: 15.8.1 - resolve: 2.0.0-next.4 - semver: 6.3.0 - string.prototype.matchall: 4.0.8 - dev: true - - /eslint-plugin-react@7.32.2(eslint@8.35.0): - resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==} - engines: {node: '>=4'} - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - peerDependenciesMeta: - eslint: - optional: true - dependencies: - array-includes: 3.1.6 - array.prototype.flatmap: 1.3.1 - array.prototype.tosorted: 1.1.1 - doctrine: 2.1.0 - eslint: 8.35.0 - estraverse: 5.3.0 - jsx-ast-utils: 3.3.0 - minimatch: 3.1.2 - object.entries: 1.1.6 - object.fromentries: 2.0.6 - object.hasown: 1.1.2 - object.values: 1.1.6 - prop-types: 15.8.1 - resolve: 2.0.0-next.4 - semver: 6.3.0 - string.prototype.matchall: 4.0.8 + resolve: 2.0.0-next.5 + semver: 6.3.1 + string.prototype.matchall: 4.0.10 /eslint-plugin-unicorn@20.1.0(eslint@7.32.0): resolution: {integrity: sha512-XQxLBJT/gnwyRR6cfYsIK1AdekQchAt5tmcsnldevGjgR2xoZsRUa5/i6e0seNHy2RoT57CkTnbVHwHF8No8LA==} @@ -24703,8 +27041,8 @@ packages: eslint: optional: true dependencies: - '@babel/core': 7.22.5 - '@babel/eslint-parser': 7.19.1(@babel/core@7.22.5)(eslint@7.32.0) + '@babel/core': 7.23.6 + '@babel/eslint-parser': 7.23.3(@babel/core@7.23.6)(eslint@7.32.0) eslint: 7.32.0 eslint-visitor-keys: 2.1.0 esquery: 1.4.2 @@ -24718,7 +27056,6 @@ packages: engines: {node: '>=6'} dependencies: eslint-visitor-keys: 1.3.0 - dev: true /eslint-utils@3.0.0(eslint@7.32.0): resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} @@ -24748,7 +27085,6 @@ packages: /eslint-visitor-keys@1.3.0: resolution: {integrity: sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==} engines: {node: '>=4'} - dev: true /eslint-visitor-keys@2.1.0: resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} @@ -24762,6 +27098,10 @@ packages: resolution: {integrity: sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /eslint@7.32.0: resolution: {integrity: sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==} engines: {node: ^10.12.0 || >=12.0.0} @@ -24808,7 +27148,6 @@ packages: v8-compile-cache: 2.3.0 transitivePeerDependencies: - supports-color - dev: true /eslint@8.35.0: resolution: {integrity: sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw==} @@ -24864,7 +27203,6 @@ packages: acorn: 7.4.1 acorn-jsx: 5.3.2(acorn@7.4.1) eslint-visitor-keys: 1.3.0 - dev: true /espree@9.4.1: resolution: {integrity: sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==} @@ -24872,7 +27210,7 @@ packages: dependencies: acorn: 8.8.2 acorn-jsx: 5.3.2(acorn@8.8.2) - eslint-visitor-keys: 3.3.0 + eslint-visitor-keys: 3.4.1 /esprima@4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} @@ -24925,13 +27263,6 @@ packages: source-map: 0.7.4 dev: true - /estree-util-visit@1.2.0: - resolution: {integrity: sha512-wdsoqhWueuJKsh5hqLw3j8lwFqNStm92VcwtAOAny8g/KS/l5Y8RISjR4k5W6skCj3Nirag/WUCMS0Nfy3sgsg==} - dependencies: - '@types/estree-jsx': 1.0.0 - '@types/unist': 2.0.6 - dev: true - /estree-util-visit@1.2.1: resolution: {integrity: sha512-xbgqcrkIVbIG+lI/gzbvd9SGTJL4zqJKBFttUl5pP27KhAjtMKbX/mQXJ7qgyXpMgVy/zvpm0xoQQaGL8OloOw==} dependencies: @@ -24989,6 +27320,15 @@ packages: /eventemitter3@4.0.7: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} + /eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + dev: true + + /events-okam@3.3.0: + resolution: {integrity: sha512-6iR7z9hAJEwrT+D2Ywg6Fx62HSmN86OlcvPdrnq1JBeFr30dMF6l+j7M3VabjHfIi2KMtF8rO0J1rIZEfwMAwg==} + engines: {node: '>=0.8.x'} + dev: false + /events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} @@ -24999,10 +27339,6 @@ packages: md5.js: 1.3.5 safe-buffer: 5.2.1 - /exec-sh@0.3.6: - resolution: {integrity: sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==} - dev: true - /execa@0.7.0: resolution: {integrity: sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==} engines: {node: '>=4'} @@ -25115,25 +27451,14 @@ packages: pify: 2.3.0 dev: true + /exenv@1.2.2: + resolution: {integrity: sha512-Z+ktTxTwv9ILfgKCk32OX3n/doe+OcLTRtqK9pcL+JsP3J1/VW8Uvl4ZjLlKqeW4rzK4oesDOGMEMRIZqtP4Iw==} + dev: true + /exit@0.1.2: resolution: {integrity: sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==} engines: {node: '>= 0.8.0'} - /expand-brackets@2.1.4: - resolution: {integrity: sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==} - engines: {node: '>=0.10.0'} - dependencies: - debug: 2.6.9 - define-property: 0.2.5 - extend-shallow: 2.0.1 - posix-character-classes: 0.1.1 - regex-not: 1.0.2 - snapdragon: 0.8.2 - to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color - dev: true - /expand-tilde@1.2.2: resolution: {integrity: sha512-rtmc+cjLZqnu9dSYosX9EWmSJhTwpACgJQTfj4hgg2JjOD/6SIQalZrt4a3aQeh++oNxkazcaxrhPUj6+g5G/Q==} engines: {node: '>=0.10.0'} @@ -25153,18 +27478,29 @@ packages: jest-get-type: 29.2.0 jest-matcher-utils: 29.3.1 jest-message-util: 29.3.1 - jest-util: 29.4.3 + jest-util: 29.5.0 dev: true - /expect@29.4.3: - resolution: {integrity: sha512-uC05+Q7eXECFpgDrHdXA4k2rpMyStAYPItEDLyQDo5Ta7fVkJnNA/4zh/OIVkVVNZ1oOK1PipQoyNjuZ6sz6Dg==} + /expect@29.7.0: + resolution: {integrity: sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/expect-utils': 29.4.3 - jest-get-type: 29.4.3 - jest-matcher-utils: 29.4.3 - jest-message-util: 29.4.3 - jest-util: 29.4.3 + '@jest/expect-utils': 29.7.0 + jest-get-type: 29.6.3 + jest-matcher-utils: 29.7.0 + jest-message-util: 29.7.0 + jest-util: 29.7.0 + + /express-http-proxy@2.1.1: + resolution: {integrity: sha512-4aRQRqDQU7qNPV5av0/hLcyc0guB9UP71nCYrQEYml7YphTo8tmWf3nDZWdTJMMjFikyz9xKXaURor7Chygdwg==} + engines: {node: '>=6.0.0'} + dependencies: + debug: 3.2.7(supports-color@8.1.1) + es6-promise: 4.2.8 + raw-body: 2.5.1 + transitivePeerDependencies: + - supports-color + dev: false /express@4.17.1: resolution: {integrity: sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==} @@ -25254,14 +27590,6 @@ packages: is-extendable: 0.1.1 dev: true - /extend-shallow@3.0.2: - resolution: {integrity: sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==} - engines: {node: '>=0.10.0'} - dependencies: - assign-symbols: 1.0.0 - is-extendable: 1.0.1 - dev: true - /extend2@1.0.0: resolution: {integrity: sha512-/7zWrWJGblJZ4OnLaIDoO3GYv28ksNwxlBZ80YPHLWt5P6xvALW8dLfeoQ9f9PHtuaWnUXTa7bRnjDzLp9C6Yg==} dev: true @@ -25279,22 +27607,6 @@ packages: tmp: 0.0.33 dev: true - /extglob@2.0.4: - resolution: {integrity: sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==} - engines: {node: '>=0.10.0'} - dependencies: - array-unique: 0.3.2 - define-property: 1.0.0 - expand-brackets: 2.1.4 - extend-shallow: 2.0.1 - fragment-cache: 0.2.1 - regex-not: 1.0.2 - snapdragon: 0.8.2 - to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color - dev: true - /extract-zip@1.7.0: resolution: {integrity: sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==} hasBin: true @@ -25316,7 +27628,7 @@ packages: get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: - '@types/yauzl': 2.10.0 + '@types/yauzl': 2.10.3 transitivePeerDependencies: - supports-color dev: true @@ -25372,8 +27684,8 @@ packages: /fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - /fast-redact@3.2.0: - resolution: {integrity: sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw==} + /fast-redact@3.3.0: + resolution: {integrity: sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==} engines: {node: '>=6'} /fast-safe-stringify@2.1.1: @@ -25397,15 +27709,16 @@ packages: dependencies: reusify: 1.0.4 - /father@4.1.5(@types/node@18.11.18): + /father@4.1.5(@types/node@18.19.39): resolution: {integrity: sha512-xlv+G1lQjaf4yDMx1scHJy27slV+KbUTZKDhBQOoiBTHnxxABmlU/LAVPouuhh+2x3zHfsGf9DvDyYOjLjXoFg==} + hasBin: true dependencies: - '@microsoft/api-extractor': 7.34.3(@types/node@18.11.18) - '@umijs/babel-preset-umi': 4.0.71 - '@umijs/bundler-utils': 4.0.71 - '@umijs/bundler-webpack': 4.0.71(typescript@4.8.4) - '@umijs/core': 4.0.71 - '@umijs/utils': 4.0.71 + '@microsoft/api-extractor': 7.34.3(@types/node@18.19.39) + '@umijs/babel-preset-umi': 4.1.2 + '@umijs/bundler-utils': 4.1.2 + '@umijs/bundler-webpack': 4.1.2(typescript@4.8.4) + '@umijs/core': 4.1.2 + '@umijs/utils': 4.1.2 '@vercel/ncc': 0.33.3 babel-plugin-dynamic-import-node: 2.3.3 babel-plugin-module-resolver: 4.1.0 @@ -25423,7 +27736,6 @@ packages: - '@types/node' - '@types/webpack' - sockjs-client - - styled-components - supports-color - type-fest - webpack @@ -25449,6 +27761,11 @@ packages: dependencies: bser: 2.1.1 + /fb-watchman@2.0.2: + resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} + dependencies: + bser: 2.1.1 + /fbemitter@3.0.0: resolution: {integrity: sha512-KWKaceCwKQU0+HPoop6gn4eOHk50bBv/VxjJtGMfwmJt3D29JpN4H4eisCtIPA+a8GVBam+ldMMpMjJUvpDyHw==} dependencies: @@ -25461,6 +27778,18 @@ packages: resolution: {integrity: sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==} dev: true + /fbjs@0.8.18: + resolution: {integrity: sha512-EQaWFK+fEPSoibjNy8IxUtaFOMXcWsY0JaVrQoZR9zC8N2Ygf9iDITPWjUTVIax95b6I742JFLqASHfsag/vKA==} + dependencies: + core-js: 1.2.7 + isomorphic-fetch: 2.2.1 + loose-envify: 1.4.0 + object-assign: 4.1.1 + promise: 7.3.1 + setimmediate: 1.0.5 + ua-parser-js: 0.7.31 + dev: true + /fbjs@3.0.4: resolution: {integrity: sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==} dependencies: @@ -25515,7 +27844,7 @@ packages: dependencies: flat-cache: 3.0.4 - /file-loader@6.2.0(webpack@5.76.1): + /file-loader@6.2.0(webpack@5.88.2): resolution: {integrity: sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -25526,7 +27855,7 @@ packages: dependencies: loader-utils: 2.0.4 schema-utils: 3.1.1 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /file-name@0.1.0: @@ -25550,10 +27879,15 @@ packages: ramda: 0.29.0 dev: true + /file-url@3.0.0: + resolution: {integrity: sha512-g872QGsHexznxkIAdK8UiZRe7SkE6kvylShU4Nsj8NvfvZag7S0QuQ4IgvPDkk75HxgjIVDwycFTDAgIiO4nDA==} + engines: {node: '>=8'} + dev: true + /filelist@1.0.4: resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} dependencies: - minimatch: 5.1.0 + minimatch: 5.1.6 dev: true /filename-reserved-regex@2.0.0: @@ -25585,16 +27919,6 @@ packages: engines: {node: '>= 0.4.0'} dev: false - /fill-range@4.0.0: - resolution: {integrity: sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==} - engines: {node: '>=0.10.0'} - dependencies: - extend-shallow: 2.0.1 - is-number: 3.0.0 - repeat-string: 1.6.1 - to-regex-range: 2.1.1 - dev: true - /fill-range@7.0.1: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} @@ -25660,6 +27984,14 @@ packages: pkg-dir: 4.2.0 dev: true + /find-cache-dir@4.0.0: + resolution: {integrity: sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg==} + engines: {node: '>=14.16'} + dependencies: + common-path-prefix: 3.0.0 + pkg-dir: 7.0.0 + dev: true + /find-file-up@0.1.3: resolution: {integrity: sha512-mBxmNbVyjg1LQIIpgO8hN+ybWBgDQK8qjht+EbrTCGmmPV/sc7RF1i9stPTD6bpvXZywBdrwRYxhSdJv867L6A==} engines: {node: '>=0.10.0'} @@ -25720,7 +28052,7 @@ packages: resolution: {integrity: sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - locate-path: 7.1.1 + locate-path: 7.2.0 path-exists: 5.0.0 dev: true @@ -25733,6 +28065,7 @@ packages: /flat@5.0.2: resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} + hasBin: true dev: true /flatted@3.2.5: @@ -25748,7 +28081,7 @@ packages: readable-stream: 2.3.8 dev: true - /flux@4.0.4(react@18.1.0): + /flux@4.0.4(react@18.3.1): resolution: {integrity: sha512-NCj3XlayA2UsapRpM7va6wU1+9rE5FIL7qoMcmxWHRzbp0yujihMBm9BBHZ1MDIk5h5o2Bl6eGiCe8rYELAmYw==} peerDependencies: react: ^15.0.2 || ^16.0.0 || ^17.0.0 @@ -25758,7 +28091,7 @@ packages: dependencies: fbemitter: 3.0.0 fbjs: 3.0.4 - react: 18.1.0 + react: 18.3.1 transitivePeerDependencies: - encoding dev: true @@ -25802,11 +28135,6 @@ packages: dependencies: is-callable: 1.2.7 - /for-in@1.0.2: - resolution: {integrity: sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==} - engines: {node: '>=0.10.0'} - dev: true - /foreground-child@2.0.0: resolution: {integrity: sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==} engines: {node: '>=8.0.0'} @@ -25815,11 +28143,18 @@ packages: signal-exit: 3.0.7 dev: true + /foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + engines: {node: '>=14'} + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.0.2 + /forever-agent@0.6.1: resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==} dev: true - /fork-ts-checker-webpack-plugin@6.5.2(eslint@8.35.0)(typescript@4.9.4): + /fork-ts-checker-webpack-plugin@6.5.2(eslint@8.35.0)(typescript@4.9.5): resolution: {integrity: sha512-m5cUmF30xkZ7h4tWUgTAcEaKmUW7tfyUyTqNNOz7OxWJ0v1VWKTcOvH8FWHUwSjlW/356Ijc9vi3XfcPstpQKA==} engines: {node: '>=10', yarn: '>=1.0.0'} peerDependencies: @@ -25835,8 +28170,8 @@ packages: webpack: optional: true dependencies: - '@babel/code-frame': 7.22.5 - '@types/json-schema': 7.0.11 + '@babel/code-frame': 7.23.5 + '@types/json-schema': 7.0.12 chalk: 4.1.2 chokidar: 3.5.3 cosmiconfig: 6.0.0 @@ -25849,7 +28184,7 @@ packages: schema-utils: 2.7.0 semver: 7.3.8 tapable: 1.1.3 - typescript: 4.9.4 + typescript: 4.9.5 dev: false /fork-ts-checker-webpack-plugin@8.0.0(typescript@4.8.4): @@ -25862,7 +28197,7 @@ packages: webpack: optional: true dependencies: - '@babel/code-frame': 7.22.5 + '@babel/code-frame': 7.23.5 chalk: 4.1.2 chokidar: 3.5.3 cosmiconfig: 7.0.1 @@ -25877,7 +28212,7 @@ packages: typescript: 4.8.4 dev: true - /fork-ts-checker-webpack-plugin@8.0.0(typescript@4.9.4)(webpack@5.76.1): + /fork-ts-checker-webpack-plugin@8.0.0(typescript@4.9.5)(webpack@5.88.2): resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==} engines: {node: '>=12.13.0', yarn: '>=1.0.0'} peerDependencies: @@ -25887,7 +28222,7 @@ packages: webpack: optional: true dependencies: - '@babel/code-frame': 7.22.5 + '@babel/code-frame': 7.23.5 chalk: 4.1.2 chokidar: 3.5.3 cosmiconfig: 7.0.1 @@ -25899,8 +28234,8 @@ packages: schema-utils: 3.1.1 semver: 7.3.8 tapable: 2.2.1 - typescript: 4.9.4 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + typescript: 4.9.5 + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) /form-data@2.3.3: resolution: {integrity: sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==} @@ -25937,13 +28272,6 @@ packages: /fraction.js@4.2.0: resolution: {integrity: sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==} - /fragment-cache@0.2.1: - resolution: {integrity: sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==} - engines: {node: '>=0.10.0'} - dependencies: - map-cache: 0.2.2 - dev: true - /framer-motion@10.0.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-qVmndcu4Z3q5ftqcbUCvVewHc5yiw4uIZyM0uvJ0/spj9lza/FnWywUUc8DNIZTG1my6nFsNLRPGDruP4o6eIw==} peerDependencies: @@ -25962,6 +28290,24 @@ packages: '@emotion/is-prop-valid': 0.8.8 dev: false + /framer-motion@10.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-qVmndcu4Z3q5ftqcbUCvVewHc5yiw4uIZyM0uvJ0/spj9lza/FnWywUUc8DNIZTG1my6nFsNLRPGDruP4o6eIw==} + peerDependencies: + react: ^18.0.0 + react-dom: ^18.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + tslib: 2.4.1 + optionalDependencies: + '@emotion/is-prop-valid': 0.8.8 + dev: false + /fresh@0.5.2: resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} @@ -26001,7 +28347,7 @@ packages: resolution: {integrity: sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==} engines: {node: '>=14.14'} dependencies: - graceful-fs: 4.2.11 + graceful-fs: 4.2.10 jsonfile: 6.1.0 universalify: 2.0.0 @@ -26035,7 +28381,7 @@ packages: resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} engines: {node: '>=6 <7 || >=8'} dependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 jsonfile: 4.0.0 universalify: 0.1.2 dev: true @@ -26056,11 +28402,19 @@ packages: minipass: 3.3.4 dev: true + /fs-minipass@3.0.3: + resolution: {integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + minipass: 7.0.4 + dev: true + /fs-monkey@1.0.3: resolution: {integrity: sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==} /fs-readdir-recursive@1.1.0: resolution: {integrity: sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==} + dev: false /fs-write-stream-atomic@1.0.10: resolution: {integrity: sha512-gehEzmPn2nAwr39eay+x3X34Ra+M2QlVUTLhkXPjWdeO8RF9kszk116avgBJM3ZyNHgHXBNx+VmPaFC36k0PzA==} @@ -26074,35 +28428,40 @@ packages: /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - /fsevents@2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] requiresBuild: true optional: true - /function-bind@1.1.1: - resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - /function.prototype.name@1.1.5: - resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} + /function.prototype.name@1.1.6: + resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 functions-have-names: 1.2.3 /functional-red-black-tree@1.0.1: resolution: {integrity: sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==} - dev: true /functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} + /fx@34.0.0: + resolution: {integrity: sha512-/fZih3/WLsrtlaj2mahjWxAmyuikmcl3D5kKPqLtFmEilLsy9wp0+/vEmfvYXXhwJc+ajtCFDCf+yttXmPMHSQ==} + hasBin: true + dev: true + /gauge@4.0.4: resolution: {integrity: sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + deprecated: This package is no longer supported. dependencies: aproba: 2.0.0 color-support: 1.1.3 @@ -26114,6 +28473,21 @@ packages: wide-align: 1.1.5 dev: true + /gauge@5.0.2: + resolution: {integrity: sha512-pMaFftXPtiGIHCJHdcUUx9Rby/rFT/Kkt3fIIGCs+9PMDIljSyRiqraTlxNtBReJRDfUefpa263RQ3vnp5G/LQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + deprecated: This package is no longer supported. + dependencies: + aproba: 2.0.0 + color-support: 1.1.3 + console-control-strings: 1.1.0 + has-unicode: 2.0.1 + signal-exit: 4.0.2 + string-width: 4.2.3 + strip-ansi: 6.0.1 + wide-align: 1.1.5 + dev: true + /genfun@4.0.1: resolution: {integrity: sha512-48yv1eDS5Qrz6cbSDBBik0u7jCgC/eA9eZrl9MIN1LfKzFTuGt6EHgr31YM8yT9cjb5BplXb4Iz3VtOYmgt8Jg==} dev: true @@ -26134,21 +28508,23 @@ packages: resolution: {integrity: sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==} dev: true - /get-intrinsic@1.1.3: - resolution: {integrity: sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==} + /get-intrinsic@1.2.2: + resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==} dependencies: - function-bind: 1.1.1 - has: 1.0.3 + function-bind: 1.1.2 + has-proto: 1.0.1 has-symbols: 1.0.3 - dev: false + hasown: 2.0.0 - /get-intrinsic@1.2.1: - resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==} + /get-intrinsic@1.2.4: + resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} + engines: {node: '>= 0.4'} dependencies: - function-bind: 1.1.1 - has: 1.0.3 + es-errors: 1.3.0 + function-bind: 1.1.2 has-proto: 1.0.1 has-symbols: 1.0.3 + hasown: 2.0.0 /get-package-type@0.1.0: resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} @@ -26157,6 +28533,7 @@ packages: /get-pkg-repo@4.2.1: resolution: {integrity: sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==} engines: {node: '>=6.9.0'} + hasBin: true dependencies: '@hutson/parse-repository-url': 3.0.2 hosted-git-info: 4.1.0 @@ -26205,11 +28582,13 @@ packages: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 - /get-tsconfig@4.2.0: - resolution: {integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==} + /get-tsconfig@4.7.5: + resolution: {integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==} + dependencies: + resolve-pkg-maps: 1.0.0 /get-value@2.0.6: resolution: {integrity: sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==} @@ -26236,7 +28615,7 @@ packages: assert-plus: 1.0.0 dev: true - /gg-editor@3.1.3(react-dom@18.1.0)(react@18.1.0): + /gg-editor@3.1.3(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-BU0MyXNiYPth02lsj6bnugSBOubt8y/QBJuR3/SZ/4QLkM+04ZXr3xmXmI9c14AM0JFi5AOS/Svtm9trPIWBAA==} peerDependencies: react: ^16.8.0 @@ -26250,8 +28629,8 @@ packages: '@antv/g6': 3.5.2 '@babel/runtime': 7.18.9 lodash: 4.17.21 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /gh-pages@4.0.0: @@ -26326,9 +28705,10 @@ packages: /git-semver-tags@4.1.1: resolution: {integrity: sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==} engines: {node: '>=10'} + hasBin: true dependencies: meow: 8.1.2 - semver: 6.3.0 + semver: 6.3.1 dev: true /git-up@7.0.0: @@ -26395,8 +28775,20 @@ packages: /glob-to-regexp@0.4.1: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} + /glob@10.3.12: + resolution: {integrity: sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + foreground-child: 3.1.1 + jackspeak: 2.3.6 + minimatch: 9.0.4 + minipass: 7.0.4 + path-scurry: 1.10.2 + /glob@7.1.4: resolution: {integrity: sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==} + deprecated: Glob versions prior to v9 are no longer supported dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 @@ -26423,10 +28815,20 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 5.1.0 + minimatch: 5.1.6 once: 1.4.0 dev: true + /glob@9.3.5: + resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + fs.realpath: 1.0.0 + minimatch: 8.0.4 + minipass: 4.2.5 + path-scurry: 1.10.2 + dev: true + /global-dirs@0.1.1: resolution: {integrity: sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==} engines: {node: '>=4'} @@ -26493,7 +28895,7 @@ packages: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} dependencies: - define-properties: 1.2.0 + define-properties: 1.2.1 /globby@10.0.0: resolution: {integrity: sha512-3LifW9M4joGZasyYPz2A1U74zbC/45fvpXUvO/9KbSa+VV0aGZarWkfdgKyR9sExNP0t0x0ss/UMJpNpcaTspw==} @@ -26504,7 +28906,7 @@ packages: dir-glob: 3.0.1 fast-glob: 3.2.12 glob: 7.2.3 - ignore: 5.2.0 + ignore: 5.2.4 merge2: 1.4.1 slash: 3.0.0 dev: true @@ -26518,7 +28920,7 @@ packages: dir-glob: 3.0.1 fast-glob: 3.2.12 glob: 7.2.3 - ignore: 5.2.0 + ignore: 5.2.4 merge2: 1.4.1 slash: 3.0.0 dev: true @@ -26541,18 +28943,7 @@ packages: array-union: 3.0.1 dir-glob: 3.0.1 fast-glob: 3.2.12 - ignore: 5.2.0 - merge2: 1.4.1 - slash: 4.0.0 - dev: true - - /globby@13.1.2: - resolution: {integrity: sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - dir-glob: 3.0.1 - fast-glob: 3.2.12 - ignore: 5.2.0 + ignore: 5.2.4 merge2: 1.4.1 slash: 4.0.0 dev: true @@ -26563,7 +28954,7 @@ packages: dependencies: dir-glob: 3.0.1 fast-glob: 3.2.12 - ignore: 5.2.0 + ignore: 5.2.4 merge2: 1.4.1 slash: 4.0.0 dev: false @@ -26606,7 +28997,7 @@ packages: /gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 /got@11.8.5: resolution: {integrity: sha512-o0Je4NvQObAuZPHLFoRSkdG2lTgtcynqymzg2Vupdx6PorhaT5MCbIyXG6d4D94kk8ZG57QeosgdiqfJWhEhlQ==} @@ -26672,6 +29063,9 @@ packages: /grapheme-splitter@1.0.4: resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} + /graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + /graphlib@2.1.8: resolution: {integrity: sha512-jcLLfkpoVGmH7/InMC/1hIvOPSUh38oJtGhvrOFGzioE1DZ+0YW16RgmOJhHiuWTvGiJQ9Z1Ik43JvkRPRvE+A==} dependencies: @@ -26708,6 +29102,7 @@ packages: /handlebars@4.7.7: resolution: {integrity: sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==} engines: {node: '>=0.4.7'} + hasBin: true dependencies: minimist: 1.2.8 neo-async: 2.6.2 @@ -26764,10 +29159,15 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - /has-property-descriptors@1.0.0: - resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} + /has-property-descriptors@1.0.1: + resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 + + /has-property-descriptors@1.0.2: + resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} + dependencies: + es-define-property: 1.0.0 /has-proto@1.0.1: resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==} @@ -26796,28 +29196,11 @@ packages: isobject: 2.1.0 dev: true - /has-value@1.0.0: - resolution: {integrity: sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==} - engines: {node: '>=0.10.0'} - dependencies: - get-value: 2.0.6 - has-values: 1.0.0 - isobject: 3.0.1 - dev: true - /has-values@0.1.4: resolution: {integrity: sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==} engines: {node: '>=0.10.0'} dev: true - /has-values@1.0.0: - resolution: {integrity: sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==} - engines: {node: '>=0.10.0'} - dependencies: - is-number: 3.0.0 - kind-of: 4.0.0 - dev: true - /has-yarn@2.1.0: resolution: {integrity: sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==} engines: {node: '>=8'} @@ -26827,7 +29210,7 @@ packages: resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} engines: {node: '>= 0.4.0'} dependencies: - function-bind: 1.1.1 + function-bind: 1.1.2 /hash-base@3.1.0: resolution: {integrity: sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==} @@ -26855,6 +29238,12 @@ packages: type-fest: 0.8.1 dev: true + /hasown@2.0.0: + resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 + /hast-util-from-parse5@7.1.2: resolution: {integrity: sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw==} dependencies: @@ -26878,13 +29267,13 @@ packages: /hast-util-heading-rank@2.1.0: resolution: {integrity: sha512-w+Rw20Q/iWp2Bcnr6uTrYU6/ftZLbHKhvc8nM26VIWpDqDMlku2iXUVTeOlsdoih/UKQhY7PHQ+vZ0Aqq8bxtQ==} dependencies: - '@types/hast': 2.3.4 + '@types/hast': 2.3.5 dev: true /hast-util-heading-rank@2.1.1: resolution: {integrity: sha512-iAuRp+ESgJoRFJbSyaqsfvJDY6zzmFoEnL1gtz1+U8gKtGGj1p0CVlysuUAUjq95qlZESHINLThwJzNGmgGZxA==} dependencies: - '@types/hast': 2.3.4 + '@types/hast': 2.3.5 dev: true /hast-util-is-conditional-comment@2.0.0: @@ -26896,7 +29285,7 @@ packages: /hast-util-is-element@2.1.3: resolution: {integrity: sha512-O1bKah6mhgEq2WtVMk+Ta5K7pPMqsBBlmzysLdcwKVrqzZQ0CHqUPiIVspNhAG1rvxpvJjtGee17XfauZYKqVA==} dependencies: - '@types/hast': 2.3.4 + '@types/hast': 2.3.5 '@types/unist': 2.0.6 dev: true @@ -26944,7 +29333,7 @@ packages: dependencies: '@types/estree': 1.0.1 '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 + '@types/hast': 2.3.5 '@types/unist': 2.0.6 comma-separated-tokens: 2.0.2 estree-util-attach-comments: 2.1.0 @@ -27013,7 +29402,7 @@ packages: /hast-util-to-string@2.0.0: resolution: {integrity: sha512-02AQ3vLhuH3FisaMM+i/9sm4OXGSq1UhOOCpTLLQtHdL3tZt7qil69r8M8iDkZYyC0HCFylcYoP+8IO7ddta1A==} dependencies: - '@types/hast': 2.3.4 + '@types/hast': 2.3.5 dev: true /hast-util-whitespace@2.0.0: @@ -27038,7 +29427,7 @@ packages: resolution: {integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==} dependencies: capital-case: 1.0.4 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /heti-findandreplacedomtext@0.5.0: @@ -27054,7 +29443,7 @@ packages: /history@5.3.0: resolution: {integrity: sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 /hmac-drbg@1.0.1: resolution: {integrity: sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==} @@ -27139,12 +29528,12 @@ packages: hasBin: true dependencies: camel-case: 4.1.2 - clean-css: 5.3.2 + clean-css: 5.3.3 commander: 8.3.0 he: 1.2.0 param-case: 3.0.4 relateurl: 0.2.7 - terser: 5.17.4 + terser: 5.26.0 /html-tags@3.2.0: resolution: {integrity: sha512-vy7ClnArOZwCnqZgvv+ddgHgJiAFXe3Ge9ML5/mBctVJoUoYPCdxVucOywjDARn6CVoh3dRSFdPHy2sX80L0Wg==} @@ -27203,7 +29592,7 @@ packages: domutils: 1.7.0 entities: 1.1.2 inherits: 2.0.4 - readable-stream: 3.6.0 + readable-stream: 3.6.2 dev: true /htmlparser2@6.1.0: @@ -27220,7 +29609,7 @@ packages: domelementtype: 2.3.0 domhandler: 5.0.3 domutils: 3.1.0 - entities: 4.4.0 + entities: 4.5.0 dev: true /http-cache-semantics@3.8.1: @@ -27231,6 +29620,10 @@ packages: resolution: {integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==} dev: true + /http-cache-semantics@4.1.1: + resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==} + dev: true + /http-deceiver@1.2.7: resolution: {integrity: sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==} @@ -27425,6 +29818,7 @@ packages: /iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} + requiresBuild: true dependencies: safer-buffer: 2.1.2 @@ -27456,13 +29850,19 @@ packages: resolution: {integrity: sha512-yemi4pMf51WKT7khInJqAvsIGzoqYXblnsz0ql8tM+yi1EKYTY1evX4NAbJrLL/Aanr2HyZeluqU+Oi7MGHokw==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dependencies: - minimatch: 5.1.0 + minimatch: 5.1.6 + dev: true + + /ignore-walk@6.0.5: + resolution: {integrity: sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + minimatch: 9.0.4 dev: true /ignore@4.0.6: resolution: {integrity: sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==} engines: {node: '>= 4'} - dev: true /ignore@5.2.0: resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==} @@ -27504,6 +29904,7 @@ packages: /immutable@4.1.0: resolution: {integrity: sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==} + dev: true /import-fresh@2.0.0: resolution: {integrity: sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==} @@ -27523,7 +29924,7 @@ packages: /import-html-entry@1.14.3: resolution: {integrity: sha512-bQOxi0vgebkDjYf510XiRgsRNZR3idBiBXAjJtzOzIO1ukSj+h/lIM3zx7poZiJVMMUuwjiEkYLlvmJNhKw85A==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 /import-lazy@2.1.0: resolution: {integrity: sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==} @@ -27570,6 +29971,7 @@ packages: /inherits@2.0.1: resolution: {integrity: sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==} + dev: false /inherits@2.0.3: resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} @@ -27632,6 +30034,27 @@ packages: through: 2.3.8 dev: true + /inquirer@8.2.4: + resolution: {integrity: sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==} + engines: {node: '>=12.0.0'} + dependencies: + ansi-escapes: 4.3.2 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-width: 3.0.0 + external-editor: 3.1.0 + figures: 3.2.0 + lodash: 4.17.21 + mute-stream: 0.0.8 + ora: 5.4.1 + run-async: 2.4.1 + rxjs: 7.8.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + through: 2.3.8 + wrap-ansi: 7.0.0 + dev: true + /inquirer@8.2.5: resolution: {integrity: sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==} engines: {node: '>=12.0.0'} @@ -27656,13 +30079,13 @@ packages: /insert-css@2.0.0: resolution: {integrity: sha512-xGq5ISgcUP5cvGkS2MMFLtPDBtrtQPSFfC6gA6U8wHKqfjTIMZLZNxOItQnoSjdOzlXOLU/yD32RKC4SvjNbtA==} - /internal-slot@1.0.5: - resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} + /internal-slot@1.0.6: + resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 - has: 1.0.3 - side-channel: 1.0.4 + get-intrinsic: 1.2.2 + hasown: 2.0.0 + side-channel: 1.0.6 /internmap@1.0.1: resolution: {integrity: sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==} @@ -27702,7 +30125,7 @@ packages: '@formatjs/ecma402-abstract': 1.17.0 '@formatjs/fast-memoize': 2.2.0 '@formatjs/icu-messageformat-parser': 2.6.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /intl-messageformat@7.8.4: @@ -27717,7 +30140,7 @@ packages: '@formatjs/ecma402-abstract': 1.11.4 '@formatjs/fast-memoize': 1.2.1 '@formatjs/icu-messageformat-parser': 2.1.0 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /intl@1.2.5: @@ -27765,20 +30188,6 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: true - /is-accessor-descriptor@0.1.6: - resolution: {integrity: sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 3.2.2 - dev: true - - /is-accessor-descriptor@1.0.0: - resolution: {integrity: sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 6.0.3 - dev: true - /is-alphabetical@1.0.4: resolution: {integrity: sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==} dev: true @@ -27808,23 +30217,15 @@ packages: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 - /is-array-buffer@3.0.1: - resolution: {integrity: sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==} - dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.1.3 - is-typed-array: 1.1.10 - dev: false - /is-array-buffer@3.0.2: resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 - is-typed-array: 1.1.10 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + is-typed-array: 1.1.12 /is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} @@ -27859,7 +30260,7 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 /is-buffer@1.1.6: @@ -27883,6 +30284,7 @@ packages: /is-ci@2.0.0: resolution: {integrity: sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==} + hasBin: true dependencies: ci-info: 2.0.0 dev: true @@ -27899,30 +30301,16 @@ packages: dependencies: has: 1.0.3 - /is-core-module@2.12.1: - resolution: {integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==} + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: - has: 1.0.3 + hasown: 2.0.0 /is-core-module@2.9.0: resolution: {integrity: sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==} dependencies: has: 1.0.3 - /is-data-descriptor@0.1.4: - resolution: {integrity: sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 3.2.2 - dev: true - - /is-data-descriptor@1.0.0: - resolution: {integrity: sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 6.0.3 - dev: true - /is-date-object@1.0.5: resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} engines: {node: '>= 0.4'} @@ -27937,24 +30325,6 @@ packages: resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} dev: true - /is-descriptor@0.1.6: - resolution: {integrity: sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==} - engines: {node: '>=0.10.0'} - dependencies: - is-accessor-descriptor: 0.1.6 - is-data-descriptor: 0.1.4 - kind-of: 5.1.0 - dev: true - - /is-descriptor@1.0.2: - resolution: {integrity: sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==} - engines: {node: '>=0.10.0'} - dependencies: - is-accessor-descriptor: 1.0.0 - is-data-descriptor: 1.0.0 - kind-of: 6.0.3 - dev: true - /is-directory@0.3.1: resolution: {integrity: sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==} engines: {node: '>=0.10.0'} @@ -27995,17 +30365,39 @@ packages: object.getprototypeof: 1.0.4 which-boxed-primitive: 1.0.2 which-collection: 1.0.1 + dev: false - /is-extendable@0.1.1: - resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} - engines: {node: '>=0.10.0'} + /is-equal@1.7.0: + resolution: {integrity: sha512-hErktGR9jmoYXNWlbrwGjc8eHh09mbY6TWSTTFtnMcKaCuSMN8z+Ni5ma/8mkbVpe4CbB7V6kN1MkCg9bCx5bA==} + engines: {node: '>= 0.4'} + dependencies: + es-get-iterator: 1.1.3 + es-to-primitive: 1.2.1 + functions-have-names: 1.2.3 + has-bigints: 1.0.2 + has-symbols: 1.0.3 + hasown: 2.0.0 + is-arrow-function: 2.0.3 + is-bigint: 1.0.4 + is-boolean-object: 1.1.2 + is-callable: 1.2.7 + is-date-object: 1.0.5 + is-generator-function: 1.0.10 + is-number-object: 1.0.7 + is-regex: 1.1.4 + is-string: 1.0.7 + is-symbol: 1.0.4 + isarray: 2.0.5 + object-inspect: 1.13.1 + object.entries: 1.1.7 + object.getprototypeof: 1.0.5 + which-boxed-primitive: 1.0.2 + which-collection: 1.0.1 dev: true - /is-extendable@1.0.1: - resolution: {integrity: sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==} + /is-extendable@0.1.1: + resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} engines: {node: '>=0.10.0'} - dependencies: - is-plain-object: 2.0.4 dev: true /is-extglob@2.1.1: @@ -28015,7 +30407,7 @@ packages: /is-finalizationregistry@1.0.2: resolution: {integrity: sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 /is-fullwidth-code-point@2.0.0: resolution: {integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==} @@ -28110,13 +30502,6 @@ packages: dependencies: has-tostringtag: 1.0.0 - /is-number@3.0.0: - resolution: {integrity: sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 3.2.2 - dev: true - /is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} @@ -28131,6 +30516,11 @@ packages: engines: {node: '>=8'} dev: true + /is-path-cwd@2.2.0: + resolution: {integrity: sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==} + engines: {node: '>=6'} + dev: true + /is-path-inside@1.0.1: resolution: {integrity: sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==} engines: {node: '>=0.10.0'} @@ -28190,14 +30580,14 @@ packages: /is-reference@3.0.0: resolution: {integrity: sha512-Eo1W3wUoHWoCoVM4GVl/a+K0IgiqE5aIo4kJABFyMum1ZORlPkC+UC357sSQUL5w5QCE5kCC9upl75b7+7CY/Q==} dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.1 dev: true /is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 /is-regexp@2.1.0: @@ -28220,7 +30610,7 @@ packages: /is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 /is-ssh@1.4.0: resolution: {integrity: sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==} @@ -28264,15 +30654,11 @@ packages: text-extensions: 1.9.0 dev: true - /is-typed-array@1.1.10: - resolution: {integrity: sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==} + /is-typed-array@1.1.12: + resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} engines: {node: '>= 0.4'} dependencies: - available-typed-arrays: 1.0.5 - call-bind: 1.0.2 - for-each: 0.3.3 - gopd: 1.0.1 - has-tostringtag: 1.0.0 + which-typed-array: 1.1.13 /is-typedarray@1.0.0: resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==} @@ -28293,13 +30679,13 @@ packages: /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 /is-weakset@2.0.2: resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 /is-what@3.14.1: resolution: {integrity: sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==} @@ -28362,19 +30748,10 @@ packages: node-fetch: 1.7.3 whatwg-fetch: 3.6.2 - /isomorphic-unfetch@3.1.0: - resolution: {integrity: sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q==} - dependencies: - node-fetch: 2.6.7 - unfetch: 4.2.0 - transitivePeerDependencies: - - encoding - dev: true - /isomorphic-unfetch@4.0.2: resolution: {integrity: sha512-1Yd+CF/7al18/N2BDbsLBcp6RO3tucSW+jcLq24dqdX5MNbCNTw1z4BsGsp4zNmjr/Izm2cs/cEqZPp4kvWSCA==} dependencies: - node-fetch: 3.3.1 + node-fetch: 3.3.2 unfetch: 5.0.0 /isstream@0.1.2: @@ -28396,35 +30773,35 @@ packages: resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true - /istanbul-lib-instrument@5.2.0: - resolution: {integrity: sha512-6Lthe1hqXHBNsqvgDzGO6l03XNeu3CrG4RqQ1KM9+l5+jNGpEJfIELx1NS3SEHmJQA8np/u+E4EPRKRiu6m19A==} + /istanbul-lib-instrument@5.2.1: + resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/core': 7.23.6 + '@babel/parser': 7.23.6 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color - /istanbul-lib-instrument@5.2.1: - resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} - engines: {node: '>=8'} + /istanbul-lib-instrument@6.0.2: + resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==} + engines: {node: '>=10'} dependencies: - '@babel/core': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/core': 7.24.7 + '@babel/parser': 7.24.7 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 - semver: 6.3.0 + semver: 7.6.2 transitivePeerDependencies: - supports-color @@ -28473,7 +30850,16 @@ packages: editions: 1.3.4 textextensions: 2.6.0 - /its-fine@1.0.9(react@18.1.0): + /iterator.prototype@1.1.2: + resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==} + dependencies: + define-properties: 1.2.1 + get-intrinsic: 1.2.2 + has-symbols: 1.0.3 + reflect.getprototypeof: 1.0.4 + set-function-name: 2.0.1 + + /its-fine@1.0.9(react@18.3.1): resolution: {integrity: sha512-Ph+vcp1R100JOM4raXmDx/wCTi4kMkMXiFE108qGzsLdghXFPqad82UJJtqT1jwdyWYkTU6eDpDnol/ZIzW+1g==} peerDependencies: react: '>=18.0' @@ -28482,12 +30868,21 @@ packages: optional: true dependencies: '@types/react-reconciler': 0.28.2 - react: 18.1.0 + react: 18.3.1 dev: false + /jackspeak@2.3.6: + resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} + engines: {node: '>=14'} + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + /jake@10.8.5: resolution: {integrity: sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==} engines: {node: '>=10'} + hasBin: true dependencies: async: 3.2.4 chalk: 4.1.2 @@ -28505,33 +30900,69 @@ packages: execa: 5.1.1 p-limit: 3.1.0 + /jest-changed-files@29.7.0: + resolution: {integrity: sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + execa: 5.1.1 + jest-util: 29.7.0 + p-limit: 3.1.0 + /jest-circus@29.4.3: resolution: {integrity: sha512-Vw/bVvcexmdJ7MLmgdT3ZjkJ3LKu8IlpefYokxiqoZy6OCQ2VAm6Vk3t/qHiAGUXbdbJKJWnc8gH3ypTbB/OBw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/environment': 29.4.3 '@jest/expect': 29.4.3 - '@jest/test-result': 29.4.3 - '@jest/types': 29.4.3 - '@types/node': 18.15.5 + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 chalk: 4.1.2 co: 4.6.0 dedent: 0.7.0 is-generator-fn: 2.1.0 jest-each: 29.4.3 - jest-matcher-utils: 29.4.3 - jest-message-util: 29.4.3 - jest-runtime: 29.4.3 - jest-snapshot: 29.4.3 - jest-util: 29.4.3 + jest-matcher-utils: 29.7.0 + jest-message-util: 29.7.0 + jest-runtime: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 p-limit: 3.1.0 - pretty-format: 29.4.3 + pretty-format: 29.7.0 + slash: 3.0.0 + stack-utils: 2.0.5 + transitivePeerDependencies: + - supports-color + + /jest-circus@29.7.0: + resolution: {integrity: sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/environment': 29.7.0 + '@jest/expect': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + chalk: 4.1.2 + co: 4.6.0 + dedent: 1.5.3 + is-generator-fn: 2.1.0 + jest-each: 29.7.0 + jest-matcher-utils: 29.7.0 + jest-message-util: 29.7.0 + jest-runtime: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 + p-limit: 3.1.0 + pretty-format: 29.7.0 + pure-rand: 6.1.0 slash: 3.0.0 stack-utils: 2.0.5 transitivePeerDependencies: + - babel-plugin-macros - supports-color - /jest-cli@29.4.3(@types/node@18.11.18)(ts-node@10.9.1): + /jest-cli@29.4.3(@types/node@18.19.39)(ts-node@10.9.1): resolution: {integrity: sha512-PiiAPuFNfWWolCE6t3ZrDXQc6OsAuM3/tVW0u27UWc1KE+n/HSn5dSE6B2juqN7WP+PP0jAcnKtGmI4u8GMYCg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -28548,7 +30979,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.10 import-local: 3.1.0 - jest-config: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + jest-config: 29.4.3(@types/node@18.19.39)(ts-node@10.9.1) jest-util: 29.4.3 jest-validate: 29.4.3 prompts: 2.4.2 @@ -28557,8 +30988,63 @@ packages: - '@types/node' - supports-color - ts-node + dev: true - /jest-config@29.4.3(@types/node@18.11.18)(ts-node@10.9.1): + /jest-cli@29.4.3(@types/node@18.19.39)(ts-node@10.9.2): + resolution: {integrity: sha512-PiiAPuFNfWWolCE6t3ZrDXQc6OsAuM3/tVW0u27UWc1KE+n/HSn5dSE6B2juqN7WP+PP0jAcnKtGmI4u8GMYCg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 29.4.3(ts-node@10.9.2) + '@jest/test-result': 29.4.3 + '@jest/types': 29.4.3 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.10 + import-local: 3.1.0 + jest-config: 29.4.3(@types/node@18.19.39)(ts-node@10.9.2) + jest-util: 29.4.3 + jest-validate: 29.4.3 + prompts: 2.4.2 + yargs: 17.6.2 + transitivePeerDependencies: + - '@types/node' + - supports-color + - ts-node + + /jest-cli@29.7.0(@types/node@18.19.39)(ts-node@10.9.2): + resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 + chalk: 4.1.2 + create-jest: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) + exit: 0.1.2 + import-local: 3.1.0 + jest-config: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) + jest-util: 29.7.0 + jest-validate: 29.7.0 + yargs: 17.6.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + + /jest-config@29.4.3(@types/node@18.19.39)(ts-node@10.9.1): resolution: {integrity: sha512-eCIpqhGnIjdUCXGtLhz4gdDoxKSWXKjzNcc5r+0S1GKOp2fwOipx5mRcwa9GB/ArsxJ1jlj2lmlD9bZAsBxaWQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -28570,13 +31056,13 @@ packages: ts-node: optional: true dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.23.6 '@jest/test-sequencer': 29.4.3 - '@jest/types': 29.4.3 - '@types/node': 18.11.18 - babel-jest: 29.4.3(@babel/core@7.22.5) + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + babel-jest: 29.7.0(@babel/core@7.23.6) chalk: 4.1.2 - ci-info: 3.3.2 + ci-info: 3.8.0 deepmerge: 4.2.2 glob: 7.2.3 graceful-fs: 4.2.11 @@ -28586,25 +31072,105 @@ packages: jest-regex-util: 29.4.3 jest-resolve: 29.4.3 jest-runner: 29.4.3 - jest-util: 29.4.3 + jest-util: 29.5.0 jest-validate: 29.4.3 micromatch: 4.0.5 parse-json: 5.2.0 - pretty-format: 29.4.3 + pretty-format: 29.7.0 + slash: 3.0.0 + strip-json-comments: 3.1.1 + ts-node: 10.9.1(@types/node@18.19.39)(typescript@4.9.5) + transitivePeerDependencies: + - supports-color + dev: true + + /jest-config@29.4.3(@types/node@18.19.39)(ts-node@10.9.2): + resolution: {integrity: sha512-eCIpqhGnIjdUCXGtLhz4gdDoxKSWXKjzNcc5r+0S1GKOp2fwOipx5mRcwa9GB/ArsxJ1jlj2lmlD9bZAsBxaWQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + peerDependencies: + '@types/node': '*' + ts-node: '>=9.0.0' + peerDependenciesMeta: + '@types/node': + optional: true + ts-node: + optional: true + dependencies: + '@babel/core': 7.23.6 + '@jest/test-sequencer': 29.4.3 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + babel-jest: 29.7.0(@babel/core@7.23.6) + chalk: 4.1.2 + ci-info: 3.8.0 + deepmerge: 4.2.2 + glob: 7.2.3 + graceful-fs: 4.2.11 + jest-circus: 29.4.3 + jest-environment-node: 29.4.3 + jest-get-type: 29.4.3 + jest-regex-util: 29.4.3 + jest-resolve: 29.4.3 + jest-runner: 29.4.3 + jest-util: 29.5.0 + jest-validate: 29.4.3 + micromatch: 4.0.5 + parse-json: 5.2.0 + pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@types/node@18.11.18)(typescript@4.9.4) + ts-node: 10.9.2(@types/node@18.19.39)(typescript@4.9.5) transitivePeerDependencies: - supports-color + /jest-config@29.7.0(@types/node@18.19.39)(ts-node@10.9.2): + resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + peerDependencies: + '@types/node': '*' + ts-node: '>=9.0.0' + peerDependenciesMeta: + '@types/node': + optional: true + ts-node: + optional: true + dependencies: + '@babel/core': 7.23.6 + '@jest/test-sequencer': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + babel-jest: 29.7.0(@babel/core@7.23.6) + chalk: 4.1.2 + ci-info: 3.9.0 + deepmerge: 4.2.2 + glob: 7.2.3 + graceful-fs: 4.2.11 + jest-circus: 29.7.0 + jest-environment-node: 29.7.0 + jest-get-type: 29.6.3 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-runner: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 + micromatch: 4.0.5 + parse-json: 5.2.0 + pretty-format: 29.7.0 + slash: 3.0.0 + strip-json-comments: 3.1.1 + ts-node: 10.9.2(@types/node@18.19.39)(typescript@4.9.5) + transitivePeerDependencies: + - babel-plugin-macros + - supports-color + /jest-diff@29.3.1: resolution: {integrity: sha512-vU8vyiO7568tmin2lA3r2DP8oRvzhvRcD4DjpXc6uGveQodyk7CKLhQlCSiwgx3g0pFaE88/KLZ0yaTWMc4Uiw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 diff-sequences: 29.3.1 - jest-get-type: 29.4.3 - pretty-format: 29.4.3 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 dev: true /jest-diff@29.4.3: @@ -28613,8 +31179,17 @@ packages: dependencies: chalk: 4.1.2 diff-sequences: 29.4.3 - jest-get-type: 29.4.3 - pretty-format: 29.4.3 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 + + /jest-diff@29.7.0: + resolution: {integrity: sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + chalk: 4.1.2 + diff-sequences: 29.6.3 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 /jest-docblock@29.4.3: resolution: {integrity: sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==} @@ -28622,15 +31197,31 @@ packages: dependencies: detect-newline: 3.1.0 + /jest-docblock@29.7.0: + resolution: {integrity: sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + detect-newline: 3.1.0 + /jest-each@29.4.3: resolution: {integrity: sha512-1ElHNAnKcbJb/b+L+7j0/w7bDvljw4gTv1wL9fYOczeJrbTbkMGQ5iQPFJ3eFQH19VPTx1IyfePdqSpePKss7Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 29.4.3 + '@jest/types': 29.6.3 chalk: 4.1.2 - jest-get-type: 29.4.3 - jest-util: 29.4.3 - pretty-format: 29.4.3 + jest-get-type: 29.6.3 + jest-util: 29.7.0 + pretty-format: 29.7.0 + + /jest-each@29.7.0: + resolution: {integrity: sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.6.3 + chalk: 4.1.2 + jest-get-type: 29.6.3 + jest-util: 29.7.0 + pretty-format: 29.7.0 /jest-environment-jsdom@29.4.3: resolution: {integrity: sha512-rFjf8JXrw3OjUzzmSE5l0XjMj0/MSVEUMCSXBGPDkfwb1T03HZI7iJSL0cGctZApPSyJxbjyKDVxkZuyhHkuTw==} @@ -28661,10 +31252,21 @@ packages: dependencies: '@jest/environment': 29.4.3 '@jest/fake-timers': 29.4.3 - '@jest/types': 29.4.3 - '@types/node': 18.15.5 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 jest-mock: 29.4.3 - jest-util: 29.4.3 + jest-util: 29.7.0 + + /jest-environment-node@29.7.0: + resolution: {integrity: sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/environment': 29.7.0 + '@jest/fake-timers': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + jest-mock: 29.7.0 + jest-util: 29.7.0 /jest-get-type@29.2.0: resolution: {integrity: sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA==} @@ -28675,28 +31277,9 @@ packages: resolution: {integrity: sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - /jest-haste-map@26.6.2: - resolution: {integrity: sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==} - engines: {node: '>= 10.14.2'} - dependencies: - '@jest/types': 26.6.2 - '@types/graceful-fs': 4.1.5 - '@types/node': 18.15.5 - anymatch: 3.1.2 - fb-watchman: 2.0.1 - graceful-fs: 4.2.11 - jest-regex-util: 26.0.0 - jest-serializer: 26.6.2 - jest-util: 26.6.2 - jest-worker: 26.6.2 - micromatch: 4.0.5 - sane: 4.1.0 - walker: 1.0.8 - optionalDependencies: - fsevents: 2.3.2 - transitivePeerDependencies: - - supports-color - dev: true + /jest-get-type@29.6.3: + resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} /jest-haste-map@28.1.3: resolution: {integrity: sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA==} @@ -28704,8 +31287,8 @@ packages: dependencies: '@jest/types': 28.1.3 '@types/graceful-fs': 4.1.5 - '@types/node': 18.15.5 - anymatch: 3.1.2 + '@types/node': 18.19.39 + anymatch: 3.1.3 fb-watchman: 2.0.1 graceful-fs: 4.2.11 jest-regex-util: 28.0.2 @@ -28714,16 +31297,16 @@ packages: micromatch: 4.0.5 walker: 1.0.8 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 dev: true /jest-haste-map@29.4.3: resolution: {integrity: sha512-eZIgAS8tvm5IZMtKlR8Y+feEOMfo2pSQkmNbufdbMzMSn9nitgGxF1waM/+LbryO3OkMcKS98SUb+j/cQxp/vQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 29.5.0 + '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.5 - '@types/node': 20.1.7 + '@types/node': 18.19.39 anymatch: 3.1.3 fb-watchman: 2.0.1 graceful-fs: 4.2.11 @@ -28733,14 +31316,39 @@ packages: micromatch: 4.0.5 walker: 1.0.8 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 + + /jest-haste-map@29.7.0: + resolution: {integrity: sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.6.3 + '@types/graceful-fs': 4.1.9 + '@types/node': 18.19.39 + anymatch: 3.1.3 + fb-watchman: 2.0.2 + graceful-fs: 4.2.11 + jest-regex-util: 29.6.3 + jest-util: 29.7.0 + jest-worker: 29.7.0 + micromatch: 4.0.5 + walker: 1.0.8 + optionalDependencies: + fsevents: 2.3.3 /jest-leak-detector@29.4.3: resolution: {integrity: sha512-9yw4VC1v2NspMMeV3daQ1yXPNxMgCzwq9BocCwYrRgXe4uaEJPAN0ZK37nFBhcy3cUwEVstFecFLaTHpF7NiGA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - jest-get-type: 29.4.3 - pretty-format: 29.4.3 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 + + /jest-leak-detector@29.7.0: + resolution: {integrity: sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + jest-get-type: 29.6.3 + pretty-format: 29.7.0 /jest-matcher-utils@29.3.1: resolution: {integrity: sha512-fkRMZUAScup3txIKfMe3AIZZmPEjWEdsPJFK3AIy5qRohWqQFg1qrmKfYXR9qEkNc7OdAu2N4KPHibEmy4HPeQ==} @@ -28749,7 +31357,7 @@ packages: chalk: 4.1.2 jest-diff: 29.3.1 jest-get-type: 29.2.0 - pretty-format: 29.4.3 + pretty-format: 29.7.0 dev: true /jest-matcher-utils@29.4.3: @@ -28758,20 +31366,29 @@ packages: dependencies: chalk: 4.1.2 jest-diff: 29.4.3 - jest-get-type: 29.4.3 - pretty-format: 29.4.3 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 + + /jest-matcher-utils@29.7.0: + resolution: {integrity: sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + chalk: 4.1.2 + jest-diff: 29.7.0 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 /jest-message-util@29.3.1: resolution: {integrity: sha512-lMJTbgNcDm5z+6KDxWtqOFWlGQxD6XaYwBqHR8kmpkP+WWWG90I35kdtQHY67Ay5CSuydkTBbJG+tH9JShFCyA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/code-frame': 7.22.5 - '@jest/types': 29.4.3 + '@babel/code-frame': 7.23.5 + '@jest/types': 29.6.3 '@types/stack-utils': 2.0.1 chalk: 4.1.2 graceful-fs: 4.2.11 micromatch: 4.0.5 - pretty-format: 29.4.3 + pretty-format: 29.7.0 slash: 3.0.0 stack-utils: 2.0.5 dev: true @@ -28780,13 +31397,27 @@ packages: resolution: {integrity: sha512-1Y8Zd4ZCN7o/QnWdMmT76If8LuDv23Z1DRovBj/vcSFNlGCJGoO8D1nJDw1AdyAGUk0myDLFGN5RbNeJyCRGCw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/code-frame': 7.22.5 - '@jest/types': 29.4.3 + '@babel/code-frame': 7.23.5 + '@jest/types': 29.6.3 '@types/stack-utils': 2.0.1 chalk: 4.1.2 graceful-fs: 4.2.11 micromatch: 4.0.5 - pretty-format: 29.4.3 + pretty-format: 29.7.0 + slash: 3.0.0 + stack-utils: 2.0.5 + + /jest-message-util@29.7.0: + resolution: {integrity: sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@babel/code-frame': 7.23.5 + '@jest/types': 29.6.3 + '@types/stack-utils': 2.0.1 + chalk: 4.1.2 + graceful-fs: 4.2.11 + micromatch: 4.0.5 + pretty-format: 29.7.0 slash: 3.0.0 stack-utils: 2.0.5 @@ -28795,10 +31426,18 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.4.3 - '@types/node': 18.11.18 - jest-util: 29.4.3 + '@types/node': 18.19.39 + jest-util: 29.5.0 + + /jest-mock@29.7.0: + resolution: {integrity: sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + jest-util: 29.7.0 - /jest-playwright-preset@3.0.1(jest@29.4.3): + /jest-playwright-preset@3.0.1(jest@29.7.0): resolution: {integrity: sha512-tHqv+JUmheNMZpmH7XyT5CAMHr3ExTUIY9baMPzcJiLYPvCaPTwig9YvuGGnXV2n+Epmch0Ld4429g6py0nq0w==} peerDependencies: jest: ^29.3.1 @@ -28807,7 +31446,7 @@ packages: jest-runner: ^29.3.1 dependencies: expect-playwright: 0.8.0 - jest: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + jest: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) jest-process-manager: 0.3.1 nyc: 15.1.0 playwright-core: 1.27.1 @@ -28829,6 +31468,17 @@ packages: dependencies: jest-resolve: 29.4.3 + /jest-pnp-resolver@1.2.2(jest-resolve@29.7.0): + resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==} + engines: {node: '>=6'} + peerDependencies: + jest-resolve: '*' + peerDependenciesMeta: + jest-resolve: + optional: true + dependencies: + jest-resolve: 29.7.0 + /jest-process-manager@0.3.1: resolution: {integrity: sha512-x9W54UgZ7IkzUHgXtnI1x4GKOVjxtwW0CA/7yGbTHtT/YhENO0Lic2yfVyC/gekn7OIEMcQmy0L1r9WLQABfqw==} dependencies: @@ -28847,11 +31497,6 @@ packages: - supports-color dev: true - /jest-regex-util@26.0.0: - resolution: {integrity: sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==} - engines: {node: '>= 10.14.2'} - dev: true - /jest-regex-util@28.0.2: resolution: {integrity: sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} @@ -28861,6 +31506,10 @@ packages: resolution: {integrity: sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + /jest-regex-util@29.6.3: + resolution: {integrity: sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + /jest-resolve-dependencies@29.4.3: resolution: {integrity: sha512-uvKMZAQ3nmXLH7O8WAOhS5l0iWyT3WmnJBdmIHiV5tBbdaDZ1wqtNX04FONGoaFvSOSHBJxnwAVnSn1WHdGVaw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -28870,6 +31519,15 @@ packages: transitivePeerDependencies: - supports-color + /jest-resolve-dependencies@29.7.0: + resolution: {integrity: sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + jest-regex-util: 29.6.3 + jest-snapshot: 29.7.0 + transitivePeerDependencies: + - supports-color + /jest-resolve@29.4.3: resolution: {integrity: sha512-GPokE1tzguRyT7dkxBim4wSx6E45S3bOQ7ZdKEG+Qj0Oac9+6AwJPCk0TZh5Vu0xzeX4afpb+eDmgbmZFFwpOw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -28878,12 +31536,26 @@ packages: graceful-fs: 4.2.11 jest-haste-map: 29.4.3 jest-pnp-resolver: 1.2.2(jest-resolve@29.4.3) - jest-util: 29.4.3 + jest-util: 29.5.0 jest-validate: 29.4.3 resolve: 1.22.0 resolve.exports: 2.0.0 slash: 3.0.0 + /jest-resolve@29.7.0: + resolution: {integrity: sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + chalk: 4.1.2 + graceful-fs: 4.2.11 + jest-haste-map: 29.7.0 + jest-pnp-resolver: 1.2.2(jest-resolve@29.7.0) + jest-util: 29.7.0 + jest-validate: 29.7.0 + resolve: 1.22.0 + resolve.exports: 2.0.0 + slash: 3.0.0 + /jest-runner@29.4.3: resolution: {integrity: sha512-GWPTEiGmtHZv1KKeWlTX9SIFuK19uLXlRQU43ceOQ2hIfA5yPEJC7AMkvFKpdCHx6pNEdOD+2+8zbniEi3v3gA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -28892,8 +31564,8 @@ packages: '@jest/environment': 29.4.3 '@jest/test-result': 29.4.3 '@jest/transform': 29.4.3 - '@jest/types': 29.4.3 - '@types/node': 18.15.5 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -28904,7 +31576,7 @@ packages: jest-message-util: 29.4.3 jest-resolve: 29.4.3 jest-runtime: 29.4.3 - jest-util: 29.4.3 + jest-util: 29.5.0 jest-watcher: 29.4.3 jest-worker: 29.4.3 p-limit: 3.1.0 @@ -28912,6 +31584,34 @@ packages: transitivePeerDependencies: - supports-color + /jest-runner@29.7.0: + resolution: {integrity: sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/console': 29.7.0 + '@jest/environment': 29.7.0 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + chalk: 4.1.2 + emittery: 0.13.1 + graceful-fs: 4.2.11 + jest-docblock: 29.7.0 + jest-environment-node: 29.7.0 + jest-haste-map: 29.7.0 + jest-leak-detector: 29.7.0 + jest-message-util: 29.7.0 + jest-resolve: 29.7.0 + jest-runtime: 29.7.0 + jest-util: 29.7.0 + jest-watcher: 29.7.0 + jest-worker: 29.7.0 + p-limit: 3.1.0 + source-map-support: 0.5.13 + transitivePeerDependencies: + - supports-color + /jest-runtime@29.4.3: resolution: {integrity: sha512-F5bHvxSH+LvLV24vVB3L8K467dt3y3dio6V3W89dUz9nzvTpqd/HcT9zfYKL2aZPvD63vQFgLvaUX/UpUhrP6Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -28922,8 +31622,8 @@ packages: '@jest/source-map': 29.4.3 '@jest/test-result': 29.4.3 '@jest/transform': 29.4.3 - '@jest/types': 29.4.3 - '@types/node': 18.15.5 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 chalk: 4.1.2 cjs-module-lexer: 1.2.2 collect-v8-coverage: 1.0.1 @@ -28935,71 +31635,107 @@ packages: jest-regex-util: 29.4.3 jest-resolve: 29.4.3 jest-snapshot: 29.4.3 - jest-util: 29.4.3 + jest-util: 29.5.0 slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: - supports-color - /jest-serializer@26.6.2: - resolution: {integrity: sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==} - engines: {node: '>= 10.14.2'} + /jest-runtime@29.7.0: + resolution: {integrity: sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 18.15.5 + '@jest/environment': 29.7.0 + '@jest/fake-timers': 29.7.0 + '@jest/globals': 29.7.0 + '@jest/source-map': 29.6.3 + '@jest/test-result': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + chalk: 4.1.2 + cjs-module-lexer: 1.2.2 + collect-v8-coverage: 1.0.1 + glob: 7.2.3 graceful-fs: 4.2.11 - dev: true + jest-haste-map: 29.7.0 + jest-message-util: 29.7.0 + jest-mock: 29.7.0 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-snapshot: 29.7.0 + jest-util: 29.7.0 + slash: 3.0.0 + strip-bom: 4.0.0 + transitivePeerDependencies: + - supports-color /jest-snapshot@29.4.3: resolution: {integrity: sha512-NGlsqL0jLPDW91dz304QTM/SNO99lpcSYYAjNiX0Ou+sSGgkanKBcSjCfp/pqmiiO1nQaOyLp6XQddAzRcx3Xw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/core': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.5) - '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.22.5) - '@babel/traverse': 7.22.5 - '@babel/types': 7.22.5 + '@babel/core': 7.23.6 + '@babel/generator': 7.23.6 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.23.6) + '@babel/traverse': 7.23.6 + '@babel/types': 7.23.6 '@jest/expect-utils': 29.4.3 '@jest/transform': 29.4.3 - '@jest/types': 29.4.3 - '@types/babel__traverse': 7.20.1 + '@jest/types': 29.6.3 + '@types/babel__traverse': 7.20.4 '@types/prettier': 2.7.0 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.22.5) + babel-preset-current-node-syntax: 1.0.1(@babel/core@7.23.6) chalk: 4.1.2 - expect: 29.4.3 + expect: 29.7.0 graceful-fs: 4.2.11 jest-diff: 29.4.3 jest-get-type: 29.4.3 jest-haste-map: 29.4.3 jest-matcher-utils: 29.4.3 jest-message-util: 29.4.3 - jest-util: 29.4.3 + jest-util: 29.5.0 natural-compare: 1.4.0 - pretty-format: 29.4.3 + pretty-format: 29.7.0 semver: 7.3.8 transitivePeerDependencies: - supports-color - /jest-util@26.6.2: - resolution: {integrity: sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==} - engines: {node: '>= 10.14.2'} + /jest-snapshot@29.7.0: + resolution: {integrity: sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 26.6.2 - '@types/node': 18.15.5 + '@babel/core': 7.23.6 + '@babel/generator': 7.23.6 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.6) + '@babel/plugin-syntax-typescript': 7.23.3(@babel/core@7.23.6) + '@babel/types': 7.23.6 + '@jest/expect-utils': 29.7.0 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + babel-preset-current-node-syntax: 1.0.1(@babel/core@7.23.6) chalk: 4.1.2 + expect: 29.7.0 graceful-fs: 4.2.11 - is-ci: 2.0.0 - micromatch: 4.0.5 - dev: true + jest-diff: 29.7.0 + jest-get-type: 29.6.3 + jest-matcher-utils: 29.7.0 + jest-message-util: 29.7.0 + jest-util: 29.7.0 + natural-compare: 1.4.0 + pretty-format: 29.7.0 + semver: 7.6.2 + transitivePeerDependencies: + - supports-color /jest-util@28.1.3: resolution: {integrity: sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} dependencies: '@jest/types': 28.1.3 - '@types/node': 18.15.5 + '@types/node': 18.19.39 chalk: 4.1.2 - ci-info: 3.3.2 + ci-info: 3.8.0 graceful-fs: 4.2.11 picomatch: 2.3.1 dev: true @@ -29009,7 +31745,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.4.3 - '@types/node': 18.11.18 + '@types/node': 18.19.39 chalk: 4.1.2 ci-info: 3.3.2 graceful-fs: 4.2.10 @@ -29019,51 +31755,77 @@ packages: resolution: {integrity: sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 29.5.0 - '@types/node': 20.1.7 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 picomatch: 2.3.1 + /jest-util@29.7.0: + resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + chalk: 4.1.2 + ci-info: 3.9.0 + graceful-fs: 4.2.11 + picomatch: 2.3.1 + /jest-validate@29.4.3: resolution: {integrity: sha512-J3u5v7aPQoXPzaar6GndAVhdQcZr/3osWSgTeKg5v574I9ybX/dTyH0AJFb5XgXIB7faVhf+rS7t4p3lL9qFaw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 29.4.3 + '@jest/types': 29.6.3 camelcase: 6.3.0 chalk: 4.1.2 jest-get-type: 29.4.3 leven: 3.1.0 - pretty-format: 29.4.3 + pretty-format: 29.7.0 + + /jest-validate@29.7.0: + resolution: {integrity: sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.6.3 + camelcase: 6.3.0 + chalk: 4.1.2 + jest-get-type: 29.6.3 + leven: 3.1.0 + pretty-format: 29.7.0 /jest-watcher@29.4.3: resolution: {integrity: sha512-zwlXH3DN3iksoIZNk73etl1HzKyi5FuQdYLnkQKm5BW4n8HpoG59xSwpVdFrnh60iRRaRBGw0gcymIxjJENPcA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/test-result': 29.4.3 - '@jest/types': 29.4.3 - '@types/node': 18.15.5 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 - jest-util: 29.4.3 + jest-util: 29.5.0 string-length: 4.0.2 - /jest-worker@26.6.2: - resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} - engines: {node: '>= 10.13.0'} + /jest-watcher@29.7.0: + resolution: {integrity: sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 18.15.5 - merge-stream: 2.0.0 - supports-color: 7.2.0 - dev: true + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.19.39 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + emittery: 0.13.1 + jest-util: 29.7.0 + string-length: 4.0.2 /jest-worker@27.5.1: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -29071,7 +31833,7 @@ packages: resolution: {integrity: sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} dependencies: - '@types/node': 18.15.5 + '@types/node': 18.19.39 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true @@ -29080,12 +31842,21 @@ packages: resolution: {integrity: sha512-GLHN/GTAAMEy5BFdvpUfzr9Dr80zQqBrh0fz1mtRMe05hqP45+HfQltu7oTBfduD0UeZs09d+maFtFYAXFWvAA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.1.7 - jest-util: 29.5.0 + '@types/node': 20.10.5 + jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 - /jest@29.4.3(@types/node@18.11.18)(ts-node@10.9.1): + /jest-worker@29.7.0: + resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@types/node': 18.19.39 + jest-util: 29.7.0 + merge-stream: 2.0.0 + supports-color: 8.1.1 + + /jest@29.4.3(@types/node@18.19.39)(ts-node@10.9.1): resolution: {integrity: sha512-XvK65feuEFGZT8OO0fB/QAQS+LGHvQpaadkH5p47/j3Ocqq3xf2pK9R+G0GzgfuhXVxEv76qCOOcMb5efLk6PA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -29098,12 +31869,52 @@ packages: '@jest/core': 29.4.3(ts-node@10.9.1) '@jest/types': 29.4.3 import-local: 3.1.0 - jest-cli: 29.4.3(@types/node@18.11.18)(ts-node@10.9.1) + jest-cli: 29.4.3(@types/node@18.19.39)(ts-node@10.9.1) + transitivePeerDependencies: + - '@types/node' + - supports-color + - ts-node + dev: true + + /jest@29.4.3(@types/node@18.19.39)(ts-node@10.9.2): + resolution: {integrity: sha512-XvK65feuEFGZT8OO0fB/QAQS+LGHvQpaadkH5p47/j3Ocqq3xf2pK9R+G0GzgfuhXVxEv76qCOOcMb5efLk6PA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 29.4.3(ts-node@10.9.2) + '@jest/types': 29.4.3 + import-local: 3.1.0 + jest-cli: 29.4.3(@types/node@18.19.39)(ts-node@10.9.2) transitivePeerDependencies: - '@types/node' - supports-color - ts-node + /jest@29.7.0(@types/node@18.19.39)(ts-node@10.9.2): + resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/types': 29.6.3 + import-local: 3.1.0 + jest-cli: 29.7.0(@types/node@18.19.39)(ts-node@10.9.2) + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + /jiti@1.14.0: resolution: {integrity: sha512-4IwstlaKQc9vCTC+qUXLM1hajy2ImiL9KnLvVYiaHOtS/v3wRjhLlGl121AmgDgx/O43uKmxownJghS5XMya2A==} dev: false @@ -29244,6 +32055,11 @@ packages: /json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + /json-parse-even-better-errors@3.0.2: + resolution: {integrity: sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + /json-schema-ref-parser@9.0.9: resolution: {integrity: sha512-qcP2lmGy+JUoQJ4DOQeLaZDqH9qSkeGCK3suKWxJXS82dg728Mn3j97azDMaOUmJAN4uCq91LdPx4K7E8F1a7Q==} engines: {node: '>=10'} @@ -29255,7 +32071,7 @@ packages: resolution: {integrity: sha512-X8bNNksfCQo6LhEuqNxmZr4eZpPjXZajmimciuk8eWXzZlif9Brq7WuMGD/SOhBKcRKP2SGVDNZbC28WQqx9Rg==} engines: {node: '>=10.0.0'} dependencies: - '@types/json-schema': 7.0.11 + '@types/json-schema': 7.0.12 '@types/lodash': 4.14.191 '@types/prettier': 2.7.0 cli-color: 2.0.3 @@ -29269,7 +32085,7 @@ packages: minimist: 1.2.8 mkdirp: 1.0.4 mz: 2.7.0 - prettier: 2.8.8 + prettier: 2.8.4 dev: true /json-schema-traverse@0.4.1: @@ -29383,14 +32199,24 @@ packages: engines: {node: '>=4.0'} dependencies: array-includes: 3.1.6 - object.assign: 4.1.4 + object.assign: 4.1.5 + dev: true + + /jsx-ast-utils@3.3.5: + resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==} + engines: {node: '>=4.0'} + dependencies: + array-includes: 3.1.7 + array.prototype.flat: 1.3.2 + object.assign: 4.1.5 + object.values: 1.1.7 /jszip@3.10.1: resolution: {integrity: sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==} dependencies: lie: 3.3.0 pako: 1.0.11 - readable-stream: 2.3.7 + readable-stream: 2.3.8 setimmediate: 1.0.5 dev: true @@ -29402,6 +32228,10 @@ packages: resolution: {integrity: sha512-6ufhP9SHjb7jibNFrNxyFZ6od3g+An6Ai9mhGRvcYe8UJlH0prseN64M+6ZBBUoKYHZsitDP42gAJ8+eVWr3lw==} dev: true + /just-diff@6.0.2: + resolution: {integrity: sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==} + dev: true + /jwa@1.4.1: resolution: {integrity: sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==} dependencies: @@ -29444,18 +32274,6 @@ packages: dependencies: is-buffer: 1.1.6 - /kind-of@4.0.0: - resolution: {integrity: sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==} - engines: {node: '>=0.10.0'} - dependencies: - is-buffer: 1.1.6 - dev: true - - /kind-of@5.1.0: - resolution: {integrity: sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==} - engines: {node: '>=0.10.0'} - dev: true - /kind-of@6.0.3: resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} engines: {node: '>=0.10.0'} @@ -29502,7 +32320,7 @@ packages: /l7eval5@0.0.3: resolution: {integrity: sha512-xnn9x/T0zawTM1L9DASmRXVMb5fTCib83FtGZQcn5ToM1lAo4dutNOK2JAC+jd3mEMWa9MMq188dyoQcqG2WOg==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@types/acorn': 4.0.6 '@types/estree': 0.0.41 acorn: 7.4.1 @@ -29554,15 +32372,17 @@ packages: resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==} dev: true - /lerna@6.5.1: - resolution: {integrity: sha512-Va1bysubwWdoWZ1ncKcoTGBXNAu/10/TwELb550TTivXmEWjCCdek4eX0BNLTEYKxu3tpV2UEeqVisUiWGn4WA==} - engines: {node: ^14.15.0 || >=16.0.0} + /lerna@6.6.2: + resolution: {integrity: sha512-W4qrGhcdutkRdHEaDf9eqp7u4JvI+1TwFy5woX6OI8WPe4PYBdxuILAsvhp614fUG41rKSGDKlOh+AWzdSidTg==} + engines: {node: ^14.17.0 || >=16.0.0} + hasBin: true dependencies: - '@lerna/child-process': 6.5.1 - '@lerna/create': 6.5.1 - '@npmcli/arborist': 5.3.0 + '@lerna/child-process': 6.6.2 + '@lerna/create': 6.6.2 + '@lerna/legacy-package-management': 6.6.2(nx@15.7.2)(typescript@4.9.5) + '@npmcli/arborist': 6.2.3 '@npmcli/run-script': 4.1.7 - '@nrwl/devkit': 15.7.2(nx@15.7.2)(typescript@4.9.4) + '@nrwl/devkit': 15.7.2(nx@15.7.2)(typescript@4.9.5) '@octokit/plugin-enterprise-rest': 6.0.1 '@octokit/rest': 19.0.3 byte-size: 7.0.0 @@ -29594,7 +32414,7 @@ packages: is-stream: 2.0.0 js-yaml: 4.1.0 libnpmaccess: 6.0.3 - libnpmpublish: 6.0.4 + libnpmpublish: 7.1.4 load-json-file: 6.2.0 make-dir: 3.1.0 minimatch: 3.0.5 @@ -29602,7 +32422,7 @@ packages: node-fetch: 2.6.7 npm-package-arg: 8.1.1 npm-packlist: 5.1.1 - npm-registry-fetch: 13.3.0 + npm-registry-fetch: 14.0.5 npmlog: 6.0.2 nx: 15.7.2 p-map: 4.0.0 @@ -29611,21 +32431,20 @@ packages: p-queue: 6.6.2 p-reduce: 2.1.0 p-waterfall: 2.1.1 - pacote: 13.6.1 - path-exists: 4.0.0 + pacote: 15.1.1 pify: 5.0.0 read-cmd-shim: 3.0.0 read-package-json: 5.0.1 resolve-from: 5.0.0 - rimraf: 3.0.2 - semver: 7.3.4 + rimraf: 4.4.1 + semver: 7.3.8 signal-exit: 3.0.7 slash: 3.0.0 ssri: 9.0.1 strong-log-transformer: 2.1.0 tar: 6.1.11 temp-dir: 1.0.0 - typescript: 4.9.4 + typescript: 4.9.5 upath: 2.0.1 uuid: 8.3.2 validate-npm-package-license: 3.0.4 @@ -29643,7 +32462,7 @@ packages: - supports-color dev: true - /less-loader@11.1.0(webpack@5.76.1): + /less-loader@11.1.0(webpack@5.88.2): resolution: {integrity: sha512-C+uDBV7kS7W5fJlUjq5mPBeBVhYpTIm5gB09APT9o3n/ILeaXVsiSFTbZpTJCJwQ/Crczfn3DmfQFwxYusWFug==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -29654,9 +32473,14 @@ packages: optional: true dependencies: klona: 2.0.5 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true + /less-plugin-resolve@1.0.2: + resolution: {integrity: sha512-e1AHq0XNTU8S3d9JCc8CFYajoUBr0EK3pcuLT5PogyBBeE0knzZJL105kKKSZWfq2lQLq3/uEDrMK3JPq+fHaA==} + dependencies: + enhanced-resolve: 5.15.0 + /less@4.1.3: resolution: {integrity: sha512-w16Xk/Ta9Hhyei0Gpz9m7VS8F28nieJaL/VyShID7cYvP6IL5oHeL6p4TXSDJqZE/lNv0oJ2pGVjJsRkfwm5FA==} engines: {node: '>=6'} @@ -29664,17 +32488,33 @@ packages: dependencies: copy-anything: 2.0.6 parse-node-version: 1.0.1 - tslib: 2.5.0 + tslib: 2.6.2 optionalDependencies: errno: 0.1.8 graceful-fs: 4.2.11 image-size: 0.5.5 make-dir: 2.1.0 mime: 1.6.0 - needle: 3.2.0 + needle: 3.3.1 source-map: 0.6.1 - transitivePeerDependencies: - - supports-color + + /less@4.2.0: + resolution: {integrity: sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA==} + engines: {node: '>=6'} + hasBin: true + dependencies: + copy-anything: 2.0.6 + parse-node-version: 1.0.1 + tslib: 2.6.2 + optionalDependencies: + errno: 0.1.8 + graceful-fs: 4.2.11 + image-size: 0.5.5 + make-dir: 2.1.0 + mime: 1.6.0 + needle: 3.3.1 + source-map: 0.6.1 + dev: false /leven@3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} @@ -29708,17 +32548,19 @@ packages: - supports-color dev: true - /libnpmpublish@6.0.4: - resolution: {integrity: sha512-lvAEYW8mB8QblL6Q/PI/wMzKNvIrF7Kpujf/4fGS/32a2i3jzUXi04TNyIBcK6dQJ34IgywfaKGh+Jq4HYPFmg==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /libnpmpublish@7.1.4: + resolution: {integrity: sha512-mMntrhVwut5prP4rJ228eEbEyvIzLWhqFuY90j5QeXBCTT2pWSMno7Yo2S2qplPUr02zPurGH4heGLZ+wORczg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - normalize-package-data: 4.0.1 - npm-package-arg: 9.1.2 - npm-registry-fetch: 13.3.1 + ci-info: 3.9.0 + normalize-package-data: 5.0.0 + npm-package-arg: 10.1.0 + npm-registry-fetch: 14.0.5 + proc-log: 3.0.0 semver: 7.3.8 - ssri: 9.0.1 + sigstore: 1.9.0 + ssri: 10.0.6 transitivePeerDependencies: - - bluebird - supports-color dev: true @@ -29728,89 +32570,102 @@ packages: immediate: 3.0.6 dev: true - /lightningcss-darwin-arm64@1.19.0: - resolution: {integrity: sha512-wIJmFtYX0rXHsXHSr4+sC5clwblEMji7HHQ4Ub1/CznVRxtCFha6JIt5JZaNf8vQrfdZnBxLLC6R8pC818jXqg==} + /lightningcss-darwin-arm64@1.22.1: + resolution: {integrity: sha512-ldvElu+R0QimNTjsKpaZkUv3zf+uefzLy/R1R19jtgOfSRM+zjUCUgDhfEDRmVqJtMwYsdhMI2aJtJChPC6Osg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [darwin] requiresBuild: true optional: true - /lightningcss-darwin-x64@1.19.0: - resolution: {integrity: sha512-Lif1wD6P4poaw9c/4Uh2z+gmrWhw/HtXFoeZ3bEsv6Ia4tt8rOJBdkfVaUJ6VXmpKHALve+iTyP2+50xY1wKPw==} + /lightningcss-darwin-x64@1.22.1: + resolution: {integrity: sha512-5p2rnlVTv6Gpw4PlTLq925nTVh+HFh4MpegX8dPDYJae+NFVjQ67gY7O6iHIzQjLipDiYejFF0yHrhjU3XgLBQ==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [darwin] requiresBuild: true optional: true - /lightningcss-linux-arm-gnueabihf@1.19.0: - resolution: {integrity: sha512-P15VXY5682mTXaiDtbnLYQflc8BYb774j2R84FgDLJTN6Qp0ZjWEFyN1SPqyfTj2B2TFjRHRUvQSSZ7qN4Weig==} + /lightningcss-freebsd-x64@1.22.1: + resolution: {integrity: sha512-1FaBtcFrZqB2hkFbAxY//Pnp8koThvyB6AhjbdVqKD4/pu13Rl91fKt2N9qyeQPUt3xy7ORUvSO+dPk3J6EjXg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + /lightningcss-linux-arm-gnueabihf@1.22.1: + resolution: {integrity: sha512-6rub98tYGfE5I5j0BP8t/2d4BZyu1S7Iz9vUkm0H26snAFHYxLfj3RbQn0xHHIePSetjLnhcg3QlfwUAkD/FYg==} engines: {node: '>= 12.0.0'} cpu: [arm] os: [linux] requiresBuild: true optional: true - /lightningcss-linux-arm64-gnu@1.19.0: - resolution: {integrity: sha512-zwXRjWqpev8wqO0sv0M1aM1PpjHz6RVIsBcxKszIG83Befuh4yNysjgHVplF9RTU7eozGe3Ts7r6we1+Qkqsww==} + /lightningcss-linux-arm64-gnu@1.22.1: + resolution: {integrity: sha512-nYO5qGtb/1kkTZu3FeTiM+2B2TAb7m2DkLCTgQIs2bk2o9aEs7I96fwySKcoHWQAiQDGR9sMux9vkV4KQXqPaQ==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /lightningcss-linux-arm64-musl@1.19.0: - resolution: {integrity: sha512-vSCKO7SDnZaFN9zEloKSZM5/kC5gbzUjoJQ43BvUpyTFUX7ACs/mDfl2Eq6fdz2+uWhUh7vf92c4EaaP4udEtA==} + /lightningcss-linux-arm64-musl@1.22.1: + resolution: {integrity: sha512-MCV6RuRpzXbunvzwY644iz8cw4oQxvW7oer9xPkdadYqlEyiJJ6wl7FyJOH7Q6ZYH4yjGAUCvxDBxPbnDu9ZVg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /lightningcss-linux-x64-gnu@1.19.0: - resolution: {integrity: sha512-0AFQKvVzXf9byrXUq9z0anMGLdZJS+XSDqidyijI5njIwj6MdbvX2UZK/c4FfNmeRa2N/8ngTffoIuOUit5eIQ==} + /lightningcss-linux-x64-gnu@1.22.1: + resolution: {integrity: sha512-RjNgpdM20VUXgV7us/VmlO3Vn2ZRiDnc3/bUxCVvySZWPiVPprpqW/QDWuzkGa+NCUf6saAM5CLsZLSxncXJwg==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] requiresBuild: true optional: true - /lightningcss-linux-x64-musl@1.19.0: - resolution: {integrity: sha512-SJoM8CLPt6ECCgSuWe+g0qo8dqQYVcPiW2s19dxkmSI5+Uu1GIRzyKA0b7QqmEXolA+oSJhQqCmJpzjY4CuZAg==} + /lightningcss-linux-x64-musl@1.22.1: + resolution: {integrity: sha512-ZgO4C7Rd6Hv/5MnyY2KxOYmIlzk4rplVolDt3NbkNR8DndnyX0Q5IR4acJWNTBICQ21j3zySzKbcJaiJpk/4YA==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] requiresBuild: true optional: true - /lightningcss-win32-x64-msvc@1.19.0: - resolution: {integrity: sha512-C+VuUTeSUOAaBZZOPT7Etn/agx/MatzJzGRkeV+zEABmPuntv1zihncsi+AyGmjkkzq3wVedEy7h0/4S84mUtg==} + /lightningcss-win32-x64-msvc@1.22.1: + resolution: {integrity: sha512-4pozV4eyD0MDET41ZLHAeBo+H04Nm2UEYIk5w/ts40231dRFV7E0cjwbnZvSoc1DXFgecAhiC0L16ruv/ZDCpg==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [win32] requiresBuild: true optional: true - /lightningcss@1.19.0: - resolution: {integrity: sha512-yV5UR7og+Og7lQC+70DA7a8ta1uiOPnWPJfxa0wnxylev5qfo4P+4iMpzWAdYWOca4jdNQZii+bDL/l+4hUXIA==} + /lightningcss@1.22.1: + resolution: {integrity: sha512-Fy45PhibiNXkm0cK5FJCbfO8Y6jUpD/YcHf/BtuI+jvYYqSXKF4muk61jjE8YxCR9y+hDYIWSzHTc+bwhDE6rQ==} engines: {node: '>= 12.0.0'} dependencies: detect-libc: 1.0.3 optionalDependencies: - lightningcss-darwin-arm64: 1.19.0 - lightningcss-darwin-x64: 1.19.0 - lightningcss-linux-arm-gnueabihf: 1.19.0 - lightningcss-linux-arm64-gnu: 1.19.0 - lightningcss-linux-arm64-musl: 1.19.0 - lightningcss-linux-x64-gnu: 1.19.0 - lightningcss-linux-x64-musl: 1.19.0 - lightningcss-win32-x64-msvc: 1.19.0 + lightningcss-darwin-arm64: 1.22.1 + lightningcss-darwin-x64: 1.22.1 + lightningcss-freebsd-x64: 1.22.1 + lightningcss-linux-arm-gnueabihf: 1.22.1 + lightningcss-linux-arm64-gnu: 1.22.1 + lightningcss-linux-arm64-musl: 1.22.1 + lightningcss-linux-x64-gnu: 1.22.1 + lightningcss-linux-x64-musl: 1.22.1 + lightningcss-win32-x64-msvc: 1.22.1 /lilconfig@2.0.6: resolution: {integrity: sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==} engines: {node: '>=10'} + /lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + /lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} @@ -29841,6 +32696,26 @@ packages: - supports-color dev: true + /lint-staged@13.3.0: + resolution: {integrity: sha512-mPRtrYnipYYv1FEE134ufbWpeggNTo+O/UPzngoaKzbzHAthvR55am+8GfHTnqNRQVRRrYQLGW9ZyUoD7DsBHQ==} + engines: {node: ^16.14.0 || >=18.0.0} + hasBin: true + dependencies: + chalk: 5.3.0 + commander: 11.0.0 + debug: 4.3.4(supports-color@8.1.1) + execa: 7.2.0 + lilconfig: 2.1.0 + listr2: 6.6.1 + micromatch: 4.0.5 + pidtree: 0.6.0 + string-argv: 0.3.2 + yaml: 2.3.1 + transitivePeerDependencies: + - enquirer + - supports-color + dev: true + /listr2@3.14.0(enquirer@2.3.6): resolution: {integrity: sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==} engines: {node: '>=10.0.0'} @@ -29880,6 +32755,23 @@ packages: wrap-ansi: 7.0.0 dev: true + /listr2@6.6.1: + resolution: {integrity: sha512-+rAXGHh0fkEWdXBmX+L6mmfmXmXvDGEKzkjxO+8mP3+nI/r/CWznVBvsibXdxda9Zz0OW2e2ikphN3OwCT/jSg==} + engines: {node: '>=16.0.0'} + peerDependencies: + enquirer: '>= 2.3.0 < 3' + peerDependenciesMeta: + enquirer: + optional: true + dependencies: + cli-truncate: 3.1.0 + colorette: 2.0.20 + eventemitter3: 5.0.1 + log-update: 5.0.1 + rfdc: 1.3.0 + wrap-ansi: 8.1.0 + dev: true + /load-json-file@4.0.0: resolution: {integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==} engines: {node: '>=4'} @@ -29978,8 +32870,8 @@ packages: dependencies: p-locate: 5.0.0 - /locate-path@7.1.1: - resolution: {integrity: sha512-vJXaRMJgRVD3+cUZs3Mncj2mxpt5mP0EmNOsxRSZRMlbqjvxzDEOIUWXGmavo0ZC9+tNZCBLQ66reA11nbpHZg==} + /locate-path@7.2.0: + resolution: {integrity: sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: p-locate: 6.0.0 @@ -30001,6 +32893,10 @@ packages: lodash-es: 4.17.21 dev: false + /lodash.camelcase@4.3.0: + resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} + dev: false + /lodash.clamp@4.0.3: resolution: {integrity: sha512-HvzRFWjtcguTW7yd8NJBshuNaCa8aqNFtnswdT7f/cMd/1YKy5Zzoq4W/Oxvnx9l7aeY258uSdDfM793+eLsVg==} dev: false @@ -30102,12 +32998,23 @@ packages: wrap-ansi: 6.2.0 dev: true + /log-update@5.0.1: + resolution: {integrity: sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + ansi-escapes: 5.0.0 + cli-cursor: 4.0.0 + slice-ansi: 5.0.0 + strip-ansi: 7.0.1 + wrap-ansi: 8.1.0 + dev: true + /log4js@1.1.1: resolution: {integrity: sha512-lYb14ZSs1M/CUFuvy7Zk3VZLDtqrqOaVql9CE0tv8g6/qE1Gfq97XKdltBsjSxxvcJ+t8fAXOnvFxSsms7gGVg==} engines: {node: '>=0.12'} dependencies: debug: 2.6.9 - semver: 5.7.1 + semver: 5.7.2 streamroller: 0.4.1 transitivePeerDependencies: - supports-color @@ -30128,10 +33035,6 @@ packages: resolution: {integrity: sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg==} dev: true - /longest-streak@3.0.1: - resolution: {integrity: sha512-cHlYSUpL2s7Fb3394mYxwTYj8niTaNHUCLr0qdiCXQfSjfuA7CKofpX2uSwEfFDQ0EB7JcnMnm+GjbqqoinYYg==} - dev: true - /longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} dev: true @@ -30156,7 +33059,7 @@ packages: /lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 /lowercase-keys@1.0.1: resolution: {integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==} @@ -30168,6 +33071,10 @@ packages: engines: {node: '>=8'} dev: true + /lru-cache@10.2.0: + resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} + engines: {node: 14 || >=16.14} + /lru-cache@4.1.5: resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} dependencies: @@ -30191,6 +33098,11 @@ packages: engines: {node: '>=12'} dev: true + /lru-cache@9.1.2: + resolution: {integrity: sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==} + engines: {node: 14 || >=16.14} + dev: true + /lru-queue@0.1.0: resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==} dependencies: @@ -30216,13 +33128,6 @@ packages: dependencies: sourcemap-codec: 1.4.8 - /magic-string@0.26.2: - resolution: {integrity: sha512-NzzlXpclt5zAbmo6h6jNc8zl2gNRGHvmsZW4IvZhTC4W7k4OlLP+S5YLussa/r3ixNT66KOQfNORlXHSOy/X4A==} - engines: {node: '>=12'} - dependencies: - sourcemap-codec: 1.4.8 - dev: true - /magic-string@0.26.7: resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==} engines: {node: '>=12'} @@ -30237,6 +33142,13 @@ packages: '@jridgewell/sourcemap-codec': 1.4.13 dev: true + /magic-string@0.30.4: + resolution: {integrity: sha512-Q/TKtsC5BPm0kGqgBIF9oXAs/xEf2vRKiIB4wCRQTJOQIByZ1d+NnUOotvJOvNpi5RNIgVOMC3pOuaP1ZTDlVg==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + /make-dir@1.3.0: resolution: {integrity: sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==} engines: {node: '>=4'} @@ -30250,13 +33162,13 @@ packages: requiresBuild: true dependencies: pify: 4.0.1 - semver: 5.7.1 + semver: 5.7.2 /make-dir@3.1.0: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} engines: {node: '>=8'} dependencies: - semver: 6.3.0 + semver: 6.3.1 /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} @@ -30267,7 +33179,7 @@ packages: dependencies: agentkeepalive: 4.2.1 cacache: 16.1.3 - http-cache-semantics: 4.1.0 + http-cache-semantics: 4.1.1 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-lambda: 1.0.1 @@ -30286,6 +33198,29 @@ packages: - supports-color dev: true + /make-fetch-happen@11.1.1: + resolution: {integrity: sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + agentkeepalive: 4.2.1 + cacache: 17.1.4 + http-cache-semantics: 4.1.1 + http-proxy-agent: 5.0.0 + https-proxy-agent: 5.0.1 + is-lambda: 1.0.1 + lru-cache: 7.14.0 + minipass: 5.0.0 + minipass-fetch: 3.0.5 + minipass-flush: 1.0.5 + minipass-pipeline: 1.2.4 + negotiator: 0.6.3 + promise-retry: 2.0.1 + socks-proxy-agent: 7.0.0 + ssri: 10.0.6 + transitivePeerDependencies: + - supports-color + dev: true + /make-fetch-happen@2.6.0: resolution: {integrity: sha512-FFq0lNI0ax+n9IWzWpH8A4JdgYiAp2DDYIZ3rsaav8JDe8I+72CzK6PQW/oom15YDZpV5bYW/9INd6nIJ2ZfZw==} dependencies: @@ -30326,11 +33261,6 @@ packages: p-defer: 1.0.0 dev: true - /map-cache@0.2.2: - resolution: {integrity: sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==} - engines: {node: '>=0.10.0'} - dev: true - /map-obj@1.0.1: resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} engines: {node: '>=0.10.0'} @@ -30342,13 +33272,6 @@ packages: /map-stream@0.1.0: resolution: {integrity: sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==} - /map-visit@1.0.0: - resolution: {integrity: sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==} - engines: {node: '>=0.10.0'} - dependencies: - object-visit: 1.0.1 - dev: true - /mapbox-gl@1.13.2: resolution: {integrity: sha512-CPjtWygL+f7naL+sGHoC2JQR0DG7u+9ik6WdkjjVmz2uy0kBC2l+aKfdi3ZzUR7VKSQJ6Mc/CeCN+6iVNah+ww==} engines: {node: '>=6.4.0'} @@ -30437,7 +33360,7 @@ packages: /mdast-util-definitions@5.1.2: resolution: {integrity: sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 '@types/unist': 2.0.6 unist-util-visit: 4.1.2 dev: true @@ -30459,7 +33382,7 @@ packages: /mdast-util-find-and-replace@2.2.2: resolution: {integrity: sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 escape-string-regexp: 5.0.0 unist-util-is: 5.2.1 unist-util-visit-parents: 5.1.3 @@ -30468,7 +33391,7 @@ packages: /mdast-util-from-markdown@0.8.5: resolution: {integrity: sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 mdast-util-to-string: 2.0.0 micromark: 2.11.4 parse-entities: 2.0.0 @@ -30480,7 +33403,7 @@ packages: /mdast-util-from-markdown@1.3.0: resolution: {integrity: sha512-HN3W1gRIuN/ZW295c7zi7g9lVBllMgZE40RxCX37wrTPWXCWtpvOZdfnuK+1WNpvZje6XuJeI3Wnb4TJEUem+g==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 '@types/unist': 2.0.6 decode-named-character-reference: 1.0.2 mdast-util-to-string: 3.2.0 @@ -30507,7 +33430,7 @@ packages: /mdast-util-gfm-autolink-literal@1.0.3: resolution: {integrity: sha512-My8KJ57FYEy2W2LyNom4n3E7hKTuQk/0SES0u16tjA9Z3oFkF4RrC/hPAPgjlSpezsOvI8ObcXcElo92wn5IGA==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 ccount: 2.0.1 mdast-util-find-and-replace: 2.2.2 micromark-util-character: 1.1.0 @@ -30516,7 +33439,7 @@ packages: /mdast-util-gfm-footnote@1.0.2: resolution: {integrity: sha512-56D19KOGbE00uKVj3sgIykpwKL179QsVFwx/DCW0u/0+URsryacI4MAdNJl0dh+u2PSsD9FtxPFbHCzJ78qJFQ==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 mdast-util-to-markdown: 1.5.0 micromark-util-normalize-identifier: 1.0.0 dev: true @@ -30524,14 +33447,14 @@ packages: /mdast-util-gfm-strikethrough@1.0.3: resolution: {integrity: sha512-DAPhYzTYrRcXdMjUtUjKvW9z/FNAMTdU0ORyMcbmkwYNbKocDpdk+PX1L1dQgOID/+vVs1uBQ7ElrBQfZ0cuiQ==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 mdast-util-to-markdown: 1.5.0 dev: true /mdast-util-gfm-table@1.0.7: resolution: {integrity: sha512-jjcpmNnQvrmN5Vx7y7lEc2iIOEytYv7rTvu+MeyAsSHTASGCCRA79Igg2uKssgOs1i1po8s3plW0sTu1wkkLGg==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 markdown-table: 3.0.3 mdast-util-from-markdown: 1.3.0 mdast-util-to-markdown: 1.5.0 @@ -30542,7 +33465,7 @@ packages: /mdast-util-gfm-task-list-item@1.0.2: resolution: {integrity: sha512-PFTA1gzfp1B1UaiJVyhJZA1rm0+Tzn690frc/L8vNX1Jop4STZgOE6bxUhnzdVSB+vm2GU1tIsuQcA9bxTQpMQ==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 mdast-util-to-markdown: 1.5.0 dev: true @@ -30564,8 +33487,8 @@ packages: resolution: {integrity: sha512-9kTO13HaL/ChfzVCIEfDRdp1m5hsvsm6+R8yr67mH+KS2ikzZ0ISGLPTbTswOFpLLlgVHO9id3cul4ajutCvCA==} dependencies: '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 + '@types/hast': 2.3.5 + '@types/mdast': 3.0.12 mdast-util-from-markdown: 1.3.0 mdast-util-to-markdown: 1.5.0 transitivePeerDependencies: @@ -30576,15 +33499,15 @@ packages: resolution: {integrity: sha512-KzgzfWMhdteDkrY4mQtyvTU5bc/W4ppxhe9SzelO6QUUiwLAM+Et2Dnjjprik74a336kHdo0zKm7Tp+n6FFeRg==} dependencies: '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 - '@types/mdast': 3.0.10 + '@types/hast': 2.3.5 + '@types/mdast': 3.0.12 ccount: 2.0.1 - mdast-util-to-markdown: 1.3.0 + mdast-util-to-markdown: 1.5.0 parse-entities: 4.0.0 stringify-entities: 4.0.3 unist-util-remove-position: 4.0.1 - unist-util-stringify-position: 3.0.2 - vfile-message: 3.1.2 + unist-util-stringify-position: 3.0.3 + vfile-message: 3.1.4 dev: true /mdast-util-mdx@2.0.0: @@ -30601,8 +33524,8 @@ packages: resolution: {integrity: sha512-7N5ihsOkAEGjFotIX9p/YPdl4TqUoMxL4ajNz7PbT89BqsdWJuBC9rvgt6wpbwTZqWWR0jKWqQbwsOWDBUZv4g==} dependencies: '@types/estree-jsx': 1.0.0 - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 + '@types/hast': 2.3.5 + '@types/mdast': 3.0.12 mdast-util-from-markdown: 1.3.0 mdast-util-to-markdown: 1.5.0 transitivePeerDependencies: @@ -30612,15 +33535,15 @@ packages: /mdast-util-phrasing@3.0.1: resolution: {integrity: sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 unist-util-is: 5.2.1 dev: true /mdast-util-to-hast@12.3.0: resolution: {integrity: sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==} dependencies: - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 + '@types/hast': 2.3.5 + '@types/mdast': 3.0.12 mdast-util-definitions: 5.1.2 micromark-util-sanitize-uri: 1.1.0 trim-lines: 3.0.1 @@ -30640,22 +33563,10 @@ packages: zwitch: 1.0.5 dev: true - /mdast-util-to-markdown@1.3.0: - resolution: {integrity: sha512-6tUSs4r+KK4JGTTiQ7FfHmVOaDrLQJPmpjD6wPMlHGUVXoG9Vjc3jIeP+uyBWRf8clwB2blM+W7+KrlMYQnftA==} - dependencies: - '@types/mdast': 3.0.10 - '@types/unist': 2.0.6 - longest-streak: 3.0.1 - mdast-util-to-string: 3.1.0 - micromark-util-decode-string: 1.0.2 - unist-util-visit: 4.1.1 - zwitch: 2.0.2 - dev: true - /mdast-util-to-markdown@1.5.0: resolution: {integrity: sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 '@types/unist': 2.0.6 longest-streak: 3.1.0 mdast-util-phrasing: 3.0.1 @@ -30669,14 +33580,10 @@ packages: resolution: {integrity: sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==} dev: true - /mdast-util-to-string@3.1.0: - resolution: {integrity: sha512-n4Vypz/DZgwo0iMHLQL49dJzlp7YtAJP+N07MZHpjPf/5XJuHUWstviF4Mn2jEiR/GNmtnRRqnwsXExk3igfFA==} - dev: true - /mdast-util-to-string@3.2.0: resolution: {integrity: sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 dev: true /mdn-data@2.0.14: @@ -30684,7 +33591,6 @@ packages: /mdn-data@2.0.28: resolution: {integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==} - dev: false /mdn-data@2.0.4: resolution: {integrity: sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==} @@ -30693,7 +33599,7 @@ packages: /media-query-parser@2.0.2: resolution: {integrity: sha512-1N4qp+jE0pL5Xv4uEcwVUhIkwdUO3S/9gML90nqKA7v7FcOS5vUtatfzok9S9U1EJU8dHWlcv95WLnKmmxZI9w==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 dev: false /media-typer@0.3.0: @@ -30935,7 +33841,7 @@ packages: micromark-util-symbol: 1.0.1 micromark-util-types: 1.0.2 uvu: 0.5.6 - vfile-message: 3.1.2 + vfile-message: 3.1.4 dev: true /micromark-extension-mdx-md@1.0.0: @@ -30954,14 +33860,14 @@ packages: micromark-util-types: 1.0.2 unist-util-position-from-estree: 1.1.1 uvu: 0.5.6 - vfile-message: 3.1.2 + vfile-message: 3.1.4 dev: true /micromark-extension-mdxjs@1.0.0: resolution: {integrity: sha512-TZZRZgeHvtgm+IhtgC2+uDMR7h8eTKF0QUX9YsgoL9+bADBpBY6SiLvWqnBlLbCEevITmTqmEuY3FoxMKVs1rQ==} dependencies: - acorn: 8.8.2 - acorn-jsx: 5.3.2(acorn@8.8.2) + acorn: 8.11.2 + acorn-jsx: 5.3.2(acorn@8.11.2) micromark-extension-mdx-expression: 1.0.3 micromark-extension-mdx-jsx: 1.0.3 micromark-extension-mdx-md: 1.0.0 @@ -30997,7 +33903,7 @@ packages: micromark-util-types: 1.0.2 unist-util-position-from-estree: 1.1.1 uvu: 0.5.6 - vfile-message: 3.1.2 + vfile-message: 3.1.4 dev: true /micromark-factory-space@1.0.0: @@ -31078,11 +33984,11 @@ packages: dependencies: '@types/acorn': 4.0.6 '@types/estree': 1.0.1 - estree-util-visit: 1.2.0 + estree-util-visit: 1.2.1 micromark-util-types: 1.0.2 uvu: 0.5.6 vfile-location: 4.0.1 - vfile-message: 3.1.2 + vfile-message: 3.1.4 dev: true /micromark-util-html-tag-name@1.1.0: @@ -31159,27 +34065,6 @@ packages: - supports-color dev: true - /micromatch@3.1.10: - resolution: {integrity: sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==} - engines: {node: '>=0.10.0'} - dependencies: - arr-diff: 4.0.0 - array-unique: 0.3.2 - braces: 2.3.2 - define-property: 2.0.2 - extend-shallow: 3.0.2 - extglob: 2.0.4 - fragment-cache: 0.2.1 - kind-of: 6.0.3 - nanomatch: 1.2.13 - object.pick: 1.3.0 - regex-not: 1.0.2 - snapdragon: 0.8.2 - to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color - dev: true - /micromatch@4.0.5: resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} engines: {node: '>=8.6'} @@ -31213,6 +34098,7 @@ packages: /mime@2.6.0: resolution: {integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==} engines: {node: '>=4.0.0'} + hasBin: true dev: true /mimer@1.1.0: @@ -31258,7 +34144,7 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - /mini-css-extract-plugin@2.7.2(webpack@5.76.1): + /mini-css-extract-plugin@2.7.2(webpack@5.88.2): resolution: {integrity: sha512-EdlUizq13o0Pd+uCp+WO/JpkLvHRVGt97RqfeGhXqAcorYo1ypJSpkV+WDT0vY/kmh/p7wRdJNJtuyK540PXDw==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -31268,7 +34154,7 @@ packages: optional: true dependencies: schema-utils: 4.0.0 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /minimalistic-assert@1.0.1: @@ -31294,13 +34180,33 @@ packages: dependencies: brace-expansion: 1.1.11 - /minimatch@5.1.0: - resolution: {integrity: sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==} + /minimatch@5.1.6: + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} engines: {node: '>=10'} dependencies: brace-expansion: 2.0.1 dev: true + /minimatch@6.2.0: + resolution: {integrity: sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 2.0.1 + dev: true + + /minimatch@8.0.4: + resolution: {integrity: sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: true + + /minimatch@9.0.4: + resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -31334,6 +34240,17 @@ packages: encoding: 0.1.13 dev: true + /minipass-fetch@3.0.5: + resolution: {integrity: sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + minipass: 7.0.4 + minipass-sized: 1.0.3 + minizlib: 2.1.2 + optionalDependencies: + encoding: 0.1.13 + dev: true + /minipass-flush@1.0.5: resolution: {integrity: sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==} engines: {node: '>= 8'} @@ -31374,6 +34291,15 @@ packages: engines: {node: '>=8'} dev: true + /minipass@5.0.0: + resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==} + engines: {node: '>=8'} + dev: true + + /minipass@7.0.4: + resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} + engines: {node: '>=16 || 14 >=14.17'} + /minizlib@2.1.2: resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} engines: {node: '>= 8'} @@ -31413,14 +34339,6 @@ packages: through2: 2.0.5 dev: true - /mixin-deep@1.3.2: - resolution: {integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==} - engines: {node: '>=0.10.0'} - dependencies: - for-in: 1.0.2 - is-extendable: 1.0.1 - dev: true - /mkdirp-infer-owner@2.0.0: resolution: {integrity: sha512-sdqtiFt3lkOaYvTXSRIUjkIdPTcxgv5+fgqYE/5qgwdw12cOrAuzzgzvVExIkH/ul1oeHN3bCLOWSG3XOqbKKw==} engines: {node: '>=10'} @@ -31469,7 +34387,7 @@ packages: /mlly@1.1.1: resolution: {integrity: sha512-Jnlh4W/aI4GySPo6+DyTN17Q75KKbLTyFK8BrGhjNP4rxuUjbRWhE6gHg3bs33URWAF44FRm7gdQA348i3XxRw==} dependencies: - acorn: 8.8.2 + acorn: 8.11.2 pathe: 1.1.0 pkg-types: 1.0.2 ufo: 1.1.0 @@ -31479,7 +34397,7 @@ packages: resolution: {integrity: sha512-Qi0VCU46t2IwfGv5KF0+D/t9cizcDug7qnNoy9Ggk7aucp0tssV8IwTMkBlDbm+VqAf3cdQHTCARKSsuS2MYFg==} dev: false - /mobx-react-lite@3.4.0(mobx@6.8.0)(react-dom@18.1.0)(react@18.1.0): + /mobx-react-lite@3.4.0(mobx@6.8.0)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-bRuZp3C0itgLKHu/VNxi66DN/XVkQG7xtoBVWxpvC5FhAqbOCP21+nPhULjnzEqd7xBMybp6KwytdUpZKEgpIQ==} peerDependencies: mobx: ^6.1.0 @@ -31495,11 +34413,11 @@ packages: optional: true dependencies: mobx: 6.8.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /mobx-react@7.6.0(mobx@6.8.0)(react-dom@18.1.0)(react@18.1.0): + /mobx-react@7.6.0(mobx@6.8.0)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-+HQUNuh7AoQ9ZnU6c4rvbiVVl+wEkb9WqYsVDzGLng+Dqj1XntHu79PvEWKtSMoMj67vFp/ZPXcElosuJO8ckA==} peerDependencies: mobx: ^6.1.0 @@ -31515,9 +34433,9 @@ packages: optional: true dependencies: mobx: 6.8.0 - mobx-react-lite: 3.4.0(mobx@6.8.0)(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + mobx-react-lite: 3.4.0(mobx@6.8.0)(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /mobx@6.8.0: @@ -31661,7 +34579,7 @@ packages: thenify-all: 1.6.0 dev: true - /nano-css@5.3.5(react-dom@18.1.0)(react@18.1.0): + /nano-css@5.3.5(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-vSB9X12bbNu4ALBu7nigJgRViZ6ja3OU7CeuiV1zMIbXOdmkLahgtPmh3GBOlDxbKY0CitqlPdOReGlBLSp+yg==} peerDependencies: react: '*' @@ -31673,15 +34591,15 @@ packages: optional: true dependencies: css-tree: 1.1.3 - csstype: 3.1.0 + csstype: 3.1.3 fastest-stable-stringify: 2.0.2 inline-style-prefixer: 6.0.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) rtl-css-js: 1.16.0 sourcemap-codec: 1.4.8 stacktrace-js: 2.0.2 - stylis: 4.1.4 + stylis: 4.3.0 dev: false /nanoid@2.1.11: @@ -31693,24 +34611,15 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - /nanomatch@1.2.13: - resolution: {integrity: sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==} - engines: {node: '>=0.10.0'} - dependencies: - arr-diff: 4.0.0 - array-unique: 0.3.2 - define-property: 2.0.2 - extend-shallow: 3.0.2 - fragment-cache: 0.2.1 - is-windows: 1.0.2 - kind-of: 6.0.3 - object.pick: 1.3.0 - regex-not: 1.0.2 - snapdragon: 0.8.2 - to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color - dev: true + /nanoid@3.3.6: + resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + /nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true /natural-compare-lite@1.4.0: resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} @@ -31730,17 +34639,14 @@ packages: through2: 4.0.2 dev: true - /needle@3.2.0: - resolution: {integrity: sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==} + /needle@3.3.1: + resolution: {integrity: sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==} engines: {node: '>= 4.4.x'} hasBin: true requiresBuild: true dependencies: - debug: 3.2.7(supports-color@8.1.1) iconv-lite: 0.6.3 - sax: 1.2.4 - transitivePeerDependencies: - - supports-color + sax: 1.3.0 optional: true /negotiator@0.6.3: @@ -31753,6 +34659,16 @@ packages: /next-tick@1.1.0: resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} + /nice-napi@1.0.2: + resolution: {integrity: sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==} + os: ['!win32'] + requiresBuild: true + dependencies: + node-addon-api: 3.2.1 + node-gyp-build: 4.6.0 + dev: false + optional: true + /nice-try@1.0.5: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} dev: true @@ -31761,14 +34677,13 @@ packages: resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} dependencies: lower-case: 2.0.2 - tslib: 2.5.0 + tslib: 2.6.2 /node-abort-controller@3.0.1: resolution: {integrity: sha512-/ujIVxthRs+7q6hsdjHMaj8hRG9NuWmwrz+JdRwZ14jdFoKSkm+vDsCbF9PLpnSqjaWQJuTmVtcWHNLr+vrOFw==} /node-addon-api@3.2.1: resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} - dev: true /node-domexception@1.0.0: resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} @@ -31822,6 +34737,18 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 + dev: true + + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 /node-fetch@3.2.10: resolution: {integrity: sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==} @@ -31830,6 +34757,7 @@ packages: data-uri-to-buffer: 4.0.0 fetch-blob: 3.2.0 formdata-polyfill: 4.0.10 + dev: false /node-fetch@3.3.1: resolution: {integrity: sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==} @@ -31838,6 +34766,15 @@ packages: data-uri-to-buffer: 4.0.1 fetch-blob: 3.2.0 formdata-polyfill: 4.0.10 + dev: true + + /node-fetch@3.3.2: + resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + data-uri-to-buffer: 4.0.1 + fetch-blob: 3.2.0 + formdata-polyfill: 4.0.10 /node-forge@1.3.1: resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} @@ -31845,11 +34782,12 @@ packages: /node-gyp-build@4.6.0: resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==} - dev: true + hasBin: true /node-gyp@9.3.1: resolution: {integrity: sha512-4Q16ZCqq3g8awk6UplT7AuxQ35XN4R/yf/+wSAwcBUAjg7l58RTactWaP8fIDTi0FzI7YcVLujwExakZlfWkXg==} engines: {node: ^12.13 || ^14.13 || >=16} + hasBin: true dependencies: env-paths: 2.2.1 glob: 7.2.3 @@ -31877,10 +34815,38 @@ packages: /node-int64@0.4.0: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} + /node-libs-browser-okam@2.2.5: + resolution: {integrity: sha512-kD+WXACEThc6C5DA146KoCNbubjpXeYzXDrukvtXWr6MRzV3uvHCI0eb/GuugWVYnMoD4g3/uaIzvDYOpC4QWw==} + dependencies: + assert-okam: 1.5.0 + browserify-zlib: 0.2.0 + buffer-okam: 4.9.2 + console-browserify: 1.2.0 + constants-browserify: 1.0.0 + crypto-browserify: 3.12.0 + domain-browser: 1.2.0 + events-okam: 3.3.0 + https-browserify: 1.0.0 + os-browserify: 0.3.0 + path-browserify: 0.0.1 + process-okam: 0.11.10 + punycode-okam: 1.4.1 + querystring-es3: 0.2.1 + readable-stream: 2.3.8 + stream-browserify: 2.0.2 + stream-http: 2.8.3 + string_decoder-okam: 1.3.0 + timers-browserify: 2.0.12 + tty-browserify: 0.0.0 + url-okam: 0.11.1 + util-okam: 0.11.1 + vm-browserify: 1.1.2 + dev: false + /node-libs-browser@2.2.1: resolution: {integrity: sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==} dependencies: - assert: 1.5.0 + assert: 1.5.1 browserify-zlib: 0.2.0 buffer: 4.9.2 console-browserify: 1.2.0 @@ -31900,7 +34866,7 @@ packages: string_decoder: 1.3.0 timers-browserify: 2.0.12 tty-browserify: 0.0.0 - url: 0.11.0 + url: 0.11.3 util: 0.11.1 vm-browserify: 1.1.2 @@ -31917,29 +34883,31 @@ packages: es6-promise: 3.3.1 dev: true - /node-releases@2.0.10: - resolution: {integrity: sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==} - - /nopt@5.0.0: - resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==} - engines: {node: '>=6'} - dependencies: - abbrev: 1.1.1 - dev: true + /node-releases@2.0.14: + resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} /nopt@6.0.0: resolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + hasBin: true dependencies: abbrev: 1.1.1 dev: true + /nopt@7.2.1: + resolution: {integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + hasBin: true + dependencies: + abbrev: 2.0.0 + dev: true + /normalize-package-data@2.5.0: resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} dependencies: hosted-git-info: 2.8.9 resolve: 1.22.0 - semver: 5.7.1 + semver: 5.7.2 validate-npm-package-license: 3.0.4 /normalize-package-data@3.0.3: @@ -31947,7 +34915,7 @@ packages: engines: {node: '>=10'} dependencies: hosted-git-info: 4.1.0 - is-core-module: 2.12.1 + is-core-module: 2.13.1 semver: 7.3.8 validate-npm-package-license: 3.0.4 @@ -31956,16 +34924,19 @@ packages: engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dependencies: hosted-git-info: 5.2.1 - is-core-module: 2.10.0 + is-core-module: 2.13.1 semver: 7.3.8 validate-npm-package-license: 3.0.4 dev: true - /normalize-path@2.1.1: - resolution: {integrity: sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==} - engines: {node: '>=0.10.0'} + /normalize-package-data@5.0.0: + resolution: {integrity: sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - remove-trailing-separator: 1.1.0 + hosted-git-info: 6.1.1 + is-core-module: 2.13.1 + semver: 7.3.8 + validate-npm-package-license: 3.0.4 dev: true /normalize-path@3.0.0: @@ -31993,22 +34964,26 @@ packages: resolution: {integrity: sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==} dev: false + /normalize.css@7.0.0: + resolution: {integrity: sha512-LYaFZxj2Q1Q9e1VJ0f6laG46Rt5s9URhKyckNaA2vZnL/0gwQHWhM7ALQkp3WBQKM5sXRLQ5Ehrfkp+E/ZiCRg==} + dev: true + /npm-bundled@1.1.2: resolution: {integrity: sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==} dependencies: npm-normalize-package-bin: 1.0.1 dev: true - /npm-bundled@2.0.1: - resolution: {integrity: sha512-gZLxXdjEzE/+mOstGDqR6b0EkhJ+kM6fxM6vUuckuctuVPh80Q6pw/rSZj9s4Gex9GxWtIicO1pc8DB9KZWudw==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /npm-bundled@3.0.1: + resolution: {integrity: sha512-+AvaheE/ww1JEwRHOrn4WHNzOxGtVp+adrg2AeZS/7KuxGUYFuBta98wYpfHBbJp6Tg6j1NKSEVHNcfZzJHQwQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - npm-normalize-package-bin: 2.0.0 + npm-normalize-package-bin: 3.0.1 dev: true - /npm-install-checks@5.0.0: - resolution: {integrity: sha512-65lUsMI8ztHCxFz5ckCEC44DRvEGdZX5usQFriauxHEwt7upv1FKaQEmAtU0YnOAdwuNWCmk64xYiQABNrEyLA==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /npm-install-checks@6.3.0: + resolution: {integrity: sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: semver: 7.3.8 dev: true @@ -32022,12 +34997,27 @@ packages: engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dev: true + /npm-normalize-package-bin@3.0.1: + resolution: {integrity: sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + + /npm-package-arg@10.1.0: + resolution: {integrity: sha512-uFyyCEmgBfZTtrKk/5xDfHp6+MdrqGotX/VoOyEEl3mBwiEE5FlBaePanazJSVMPT7vKepcjYBY2ztg9A3yPIA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + hosted-git-info: 6.1.1 + proc-log: 3.0.0 + semver: 7.3.8 + validate-npm-package-name: 5.0.1 + dev: true + /npm-package-arg@5.1.2: resolution: {integrity: sha512-wJBsrf0qpypPT7A0LART18hCdyhpCMxeTtcb0X4IZO2jsP6Om7EHN1d9KSKiqD+KVH030RVNpWS9thk+pb7wzA==} dependencies: hosted-git-info: 2.8.9 osenv: 0.1.5 - semver: 5.7.1 + semver: 5.7.2 validate-npm-package-name: 3.0.0 dev: true @@ -32053,6 +35043,7 @@ packages: /npm-packlist@5.1.1: resolution: {integrity: sha512-UfpSvQ5YKwctmodvPPkK6Fwk603aoVsf8AEbmVKAEECrfvL8SSe1A2YIwrJ6xmTHAITKPwwZsWo7WwEbNk0kxw==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + hasBin: true dependencies: glob: 8.0.3 ignore-walk: 5.0.1 @@ -32060,35 +35051,32 @@ packages: npm-normalize-package-bin: 1.0.1 dev: true - /npm-packlist@5.1.3: - resolution: {integrity: sha512-263/0NGrn32YFYi4J533qzrQ/krmmrWwhKkzwTuM4f/07ug51odoaNjUexxO4vxlzURHcmYMH1QjvHjsNDKLVg==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /npm-packlist@7.0.4: + resolution: {integrity: sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - glob: 8.0.3 - ignore-walk: 5.0.1 - npm-bundled: 2.0.1 - npm-normalize-package-bin: 2.0.0 + ignore-walk: 6.0.5 dev: true /npm-pick-manifest@1.0.4: resolution: {integrity: sha512-MKxNdeyOZysPRTTbHtW0M5Fw38Jo/3ARsoGw5qjCfS+XGjvNB/Gb4qtAZUFmKPM2mVum+eX559eHvKywU856BQ==} dependencies: npm-package-arg: 5.1.2 - semver: 5.7.1 + semver: 5.7.2 dev: true - /npm-pick-manifest@7.0.2: - resolution: {integrity: sha512-gk37SyRmlIjvTfcYl6RzDbSmS9Y4TOBXfsPnoYqTHARNgWbyDiCSMLUpmALDj4jjcTZpURiEfsSHJj9k7EV4Rw==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /npm-pick-manifest@8.0.2: + resolution: {integrity: sha512-1dKY+86/AIiq1tkKVD3l0WI+Gd3vkknVGAggsFeBkTvbhMQ1OND/LKkYv4JtXPKUJ8bOTCyLiqEg2P6QNdK+Gg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - npm-install-checks: 5.0.0 - npm-normalize-package-bin: 2.0.0 - npm-package-arg: 9.1.2 + npm-install-checks: 6.3.0 + npm-normalize-package-bin: 3.0.1 + npm-package-arg: 10.1.0 semver: 7.3.8 dev: true - /npm-registry-fetch@13.3.0: - resolution: {integrity: sha512-10LJQ/1+VhKrZjIuY9I/+gQTvumqqlgnsCufoXETHAPFTS3+M+Z5CFhZRDHGavmJ6rOye3UvNga88vl8n1r6gg==} + /npm-registry-fetch@13.3.1: + resolution: {integrity: sha512-eukJPi++DKRTjSBRcDZSDDsGqRK3ehbxfFUcgaRd0Yp6kRwOwh2WVn0r+8rMB4nnuzvAk6rQVzl6K5CkYOmnvw==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dependencies: make-fetch-happen: 10.2.1 @@ -32103,19 +35091,33 @@ packages: - supports-color dev: true - /npm-registry-fetch@13.3.1: - resolution: {integrity: sha512-eukJPi++DKRTjSBRcDZSDDsGqRK3ehbxfFUcgaRd0Yp6kRwOwh2WVn0r+8rMB4nnuzvAk6rQVzl6K5CkYOmnvw==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /npm-registry-fetch@14.0.3: + resolution: {integrity: sha512-YaeRbVNpnWvsGOjX2wk5s85XJ7l1qQBGAp724h8e2CZFFhMSuw9enom7K1mWVUtvXO1uUSFIAPofQK0pPN0ZcA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - make-fetch-happen: 10.2.1 - minipass: 3.3.4 - minipass-fetch: 2.1.2 + make-fetch-happen: 11.1.1 + minipass: 4.2.5 + minipass-fetch: 3.0.5 minipass-json-stream: 1.0.1 minizlib: 2.1.2 - npm-package-arg: 9.1.2 - proc-log: 2.0.1 + npm-package-arg: 10.1.0 + proc-log: 3.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /npm-registry-fetch@14.0.5: + resolution: {integrity: sha512-kIDMIo4aBm6xg7jOttupWZamsZRkAqMqwqqbVXnUqstY5+tapvv6bkH/qMR76jdgV+YljEUCyWx3hRYMrJiAgA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + make-fetch-happen: 11.1.1 + minipass: 5.0.0 + minipass-fetch: 3.0.5 + minipass-json-stream: 1.0.1 + minizlib: 2.1.2 + npm-package-arg: 10.1.0 + proc-log: 3.0.0 transitivePeerDependencies: - - bluebird - supports-color dev: true @@ -32141,6 +35143,7 @@ packages: /npmlog@6.0.2: resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + deprecated: This package is no longer supported. dependencies: are-we-there-yet: 3.0.1 console-control-strings: 1.1.0 @@ -32148,6 +35151,17 @@ packages: set-blocking: 2.0.0 dev: true + /npmlog@7.0.1: + resolution: {integrity: sha512-uJ0YFk/mCQpLBt+bxN88AKd+gyqZvZDbtiNxk6Waqcj2aPRyfVx8ITawkyQynxUagInjdYT1+qj4NfA5KJJUxg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + deprecated: This package is no longer supported. + dependencies: + are-we-there-yet: 4.0.2 + console-control-strings: 1.1.0 + gauge: 5.0.2 + set-blocking: 2.0.0 + dev: true + /nprogress@0.2.0: resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==} dev: true @@ -32205,11 +35219,11 @@ packages: dependencies: '@nrwl/cli': 15.7.2 '@nrwl/tao': 15.7.2 - '@parcel/watcher': 2.0.4 + '@parcel/watcher': 2.1.0 '@yarnpkg/lockfile': 1.1.0 '@yarnpkg/parsers': 3.0.0-rc.35 '@zkochan/js-yaml': 0.0.6 - axios: 1.2.2 + axios: 1.6.3 chalk: 4.1.2 cli-cursor: 3.1.0 cli-spinners: 2.6.1 @@ -32221,20 +35235,20 @@ packages: flat: 5.0.2 fs-extra: 11.1.0 glob: 7.1.4 - ignore: 5.2.0 + ignore: 5.2.4 js-yaml: 4.1.0 jsonc-parser: 3.2.0 lines-and-columns: 2.0.3 minimatch: 3.0.5 npm-run-path: 4.0.1 - open: 8.4.0 + open: 8.4.2 semver: 7.3.4 string-width: 4.2.3 strong-log-transformer: 2.1.0 tar-stream: 2.2.0 - tmp: 0.2.1 + tmp: 0.2.3 tsconfig-paths: 4.1.2 - tslib: 2.5.0 + tslib: 2.6.2 v8-compile-cache: 2.3.0 yargs: 17.6.2 yargs-parser: 21.1.1 @@ -32259,7 +35273,7 @@ packages: '@istanbuljs/load-nyc-config': 1.1.0 '@istanbuljs/schema': 0.1.3 caching-transform: 4.0.0 - convert-source-map: 1.8.0 + convert-source-map: 1.9.0 decamelize: 1.2.0 find-cache-dir: 3.3.2 find-up: 4.1.0 @@ -32336,50 +35350,48 @@ packages: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} - /object-copy@0.1.0: - resolution: {integrity: sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==} - engines: {node: '>=0.10.0'} - dependencies: - copy-descriptor: 0.1.1 - define-property: 0.2.5 - kind-of: 3.2.2 - dev: true - /object-hash@3.0.0: resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} engines: {node: '>= 6'} /object-inspect@1.12.2: resolution: {integrity: sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==} + dev: true /object-inspect@1.12.3: resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} + dev: false + + /object-inspect@1.13.1: + resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} /object-is@1.1.5: resolution: {integrity: sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.1.4 + call-bind: 1.0.7 + define-properties: 1.2.1 dev: false /object-keys@1.1.1: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} - /object-visit@1.0.1: - resolution: {integrity: sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==} - engines: {node: '>=0.10.0'} - dependencies: - isobject: 3.0.1 - dev: true - /object.assign@4.1.4: resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.5 + define-properties: 1.2.1 + has-symbols: 1.0.3 + object-keys: 1.1.1 + + /object.assign@4.1.5: + resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 has-symbols: 1.0.3 object-keys: 1.1.1 @@ -32387,74 +35399,112 @@ packages: resolution: {integrity: sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + + /object.entries@1.1.7: + resolution: {integrity: sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 /object.fromentries@2.0.6: resolution: {integrity: sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true + + /object.fromentries@2.0.7: + resolution: {integrity: sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 /object.getownpropertydescriptors@2.1.6: resolution: {integrity: sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==} engines: {node: '>= 0.8'} dependencies: array.prototype.reduce: 1.0.5 - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 - safe-array-concat: 1.0.0 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.3 + safe-array-concat: 1.0.1 dev: true /object.getprototypeof@1.0.4: resolution: {integrity: sha512-xV/FkUNM9sHa56AB5deXrlIR+jBtDAHieyfm6XZUuehqlMX+YJPh8CAYtPrXGA/mFLFttasTc9ihhpkPrH7pLw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 - reflect.getprototypeof: 1.0.3 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + reflect.getprototypeof: 1.0.4 + dev: false + + /object.getprototypeof@1.0.5: + resolution: {integrity: sha512-4G0QiXpoIppBUz5efmxTm/HTbVN2ioGjk/PbsaNvwISFX+saj8muGp6vNuzIdsosFxM4V/kpUVNvy/+9+DVBZQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.3 + reflect.getprototypeof: 1.0.4 + dev: true /object.hasown@1.1.2: resolution: {integrity: sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==} dependencies: - define-properties: 1.2.0 - es-abstract: 1.21.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true - /object.pick@1.3.0: - resolution: {integrity: sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==} - engines: {node: '>=0.10.0'} + /object.hasown@1.1.3: + resolution: {integrity: sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==} dependencies: - isobject: 3.0.1 - dev: true + define-properties: 1.2.1 + es-abstract: 1.22.3 /object.values@1.1.6: resolution: {integrity: sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + dev: true + + /object.values@1.1.7: + resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 /obuf@1.1.2: resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==} - /octokit@2.0.11: - resolution: {integrity: sha512-Ivjapy5RXWvJfmZe0BvfMM2gnNi39rjheZV/s3SjICb7gfl83JWPDmBERe4f/l2czdRnj4NVIn4YO7Q737oLCg==} + /octokit@2.1.0: + resolution: {integrity: sha512-Pxi6uKTjBRZWgAwsw1NgHdRlL+QASCN35OYS7X79o7PtBME0CLXEroZmPtEwlWZbPTP+iDbEy2wCbSOgm0uGIQ==} engines: {node: '>= 14'} dependencies: - '@octokit/app': 13.1.1 - '@octokit/core': 4.1.0 - '@octokit/oauth-app': 4.2.0 - '@octokit/plugin-paginate-rest': 5.0.1(@octokit/core@4.1.0) - '@octokit/plugin-rest-endpoint-methods': 6.7.0(@octokit/core@4.1.0) - '@octokit/plugin-retry': 4.0.3(@octokit/core@4.1.0) - '@octokit/plugin-throttling': 4.3.2(@octokit/core@4.1.0) - '@octokit/types': 8.0.0 + '@octokit/app': 13.1.8 + '@octokit/core': 4.2.4 + '@octokit/oauth-app': 4.2.4 + '@octokit/plugin-paginate-rest': 6.1.2(@octokit/core@4.2.4) + '@octokit/plugin-rest-endpoint-methods': 7.2.3(@octokit/core@4.2.4) + '@octokit/plugin-retry': 4.1.6(@octokit/core@4.2.4) + '@octokit/plugin-throttling': 5.2.3(@octokit/core@4.2.4) + '@octokit/request-error': 3.0.3 + '@octokit/types': 9.3.2 transitivePeerDependencies: - encoding dev: true @@ -32529,10 +35579,10 @@ packages: dependencies: mimic-fn: 4.0.0 - /only-allow@1.1.1: - resolution: {integrity: sha512-WE01hpInLQUF3MKK7vhu4p1VZLKb4rL4d+CI3rwwwsToXELx6YawNFhZy3rVU3rpQpI9kF9zFMk4OjB3xwXdJA==} + /only-allow@1.2.1: + resolution: {integrity: sha512-M7CJbmv7UCopc0neRKdzfoGWaVZC+xC1925GitKH9EAqYFzX9//25Q7oX4+jw0tiCCj+t5l6VZh8UPH23NZkMA==} + hasBin: true dependencies: - boxen: 4.2.0 which-pm-runs: 1.1.0 dev: true @@ -32551,6 +35601,14 @@ packages: is-docker: 2.2.1 is-wsl: 2.2.0 + /open@8.4.2: + resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} + engines: {node: '>=12'} + dependencies: + define-lazy-prop: 2.0.0 + is-docker: 2.2.1 + is-wsl: 2.2.0 + /open@9.1.0: resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==} engines: {node: '>=14.16'} @@ -32560,8 +35618,8 @@ packages: is-inside-container: 1.0.0 is-wsl: 2.2.0 - /openai@3.2.1: - resolution: {integrity: sha512-762C9BNlJPbjjlWZi4WYK9iM2tAVAv0uUp1UmI34vb0CN5T2mjB/qM6RYBmNKMh/dN9fC+bxqPwWJZUTWW052A==} + /openai@3.3.0: + resolution: {integrity: sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==} dependencies: axios: 0.26.1 form-data: 4.0.0 @@ -32855,7 +35913,7 @@ packages: got: 6.7.1 registry-auth-token: 3.4.0 registry-url: 3.1.0 - semver: 5.7.1 + semver: 5.7.2 dev: true /package-json@6.5.0: @@ -32865,63 +35923,31 @@ packages: got: 9.6.0 registry-auth-token: 4.2.2 registry-url: 5.1.0 - semver: 6.3.0 - dev: true - - /pacote@13.6.1: - resolution: {integrity: sha512-L+2BI1ougAPsFjXRyBhcKmfT016NscRFLv6Pz5EiNf1CCFJFU0pSKKQwsZTyAQB+sTuUL4TyFyp6J1Ork3dOqw==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - dependencies: - '@npmcli/git': 3.0.2 - '@npmcli/installed-package-contents': 1.0.7 - '@npmcli/promise-spawn': 3.0.0 - '@npmcli/run-script': 4.2.1 - cacache: 16.1.3 - chownr: 2.0.0 - fs-minipass: 2.1.0 - infer-owner: 1.0.4 - minipass: 3.3.4 - mkdirp: 1.0.4 - npm-package-arg: 9.1.2 - npm-packlist: 5.1.3 - npm-pick-manifest: 7.0.2 - npm-registry-fetch: 13.3.1 - proc-log: 2.0.1 - promise-retry: 2.0.1 - read-package-json: 5.0.2 - read-package-json-fast: 2.0.3 - rimraf: 3.0.2 - ssri: 9.0.1 - tar: 6.1.13 - transitivePeerDependencies: - - bluebird - - supports-color + semver: 6.3.1 dev: true - /pacote@13.6.2: - resolution: {integrity: sha512-Gu8fU3GsvOPkak2CkbojR7vjs3k3P9cA6uazKTHdsdV0gpCEQq2opelnEv30KRQWgVzP5Vd/5umjcedma3MKtg==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /pacote@15.1.1: + resolution: {integrity: sha512-eeqEe77QrA6auZxNHIp+1TzHQ0HBKf5V6c8zcaYZ134EJe1lCi+fjXATkNiEEfbG+e50nu02GLvUtmZcGOYabQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + hasBin: true dependencies: - '@npmcli/git': 3.0.2 - '@npmcli/installed-package-contents': 1.0.7 - '@npmcli/promise-spawn': 3.0.0 - '@npmcli/run-script': 4.2.1 - cacache: 16.1.3 - chownr: 2.0.0 - fs-minipass: 2.1.0 - infer-owner: 1.0.4 - minipass: 3.3.4 - mkdirp: 1.0.4 - npm-package-arg: 9.1.2 - npm-packlist: 5.1.3 - npm-pick-manifest: 7.0.2 - npm-registry-fetch: 13.3.1 - proc-log: 2.0.1 + '@npmcli/git': 4.1.0 + '@npmcli/installed-package-contents': 2.1.0 + '@npmcli/promise-spawn': 6.0.2 + '@npmcli/run-script': 6.0.2 + cacache: 17.1.4 + fs-minipass: 3.0.3 + minipass: 4.2.5 + npm-package-arg: 10.1.0 + npm-packlist: 7.0.4 + npm-pick-manifest: 8.0.2 + npm-registry-fetch: 14.0.5 + proc-log: 3.0.0 promise-retry: 2.0.1 - read-package-json: 5.0.2 - read-package-json-fast: 2.0.3 - rimraf: 3.0.2 - ssri: 9.0.1 + read-package-json: 6.0.4 + read-package-json-fast: 3.0.2 + sigstore: 1.9.0 + ssri: 10.0.6 tar: 6.1.13 transitivePeerDependencies: - bluebird @@ -32946,7 +35972,7 @@ packages: promise-retry: 1.1.1 protoduck: 4.0.0 safe-buffer: 5.2.1 - semver: 5.7.1 + semver: 5.7.2 ssri: 4.1.6 tar-fs: 1.16.3 tar-stream: 1.6.2 @@ -32975,7 +36001,7 @@ packages: resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} dependencies: dot-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 /parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} @@ -32992,12 +36018,12 @@ packages: pbkdf2: 3.1.2 safe-buffer: 5.2.1 - /parse-conflict-json@2.0.2: - resolution: {integrity: sha512-jDbRGb00TAPFsKWCpZZOT93SxVP9nONOSgES3AevqRq/CHvavEBvKAjxX9p5Y5F0RZLxH9Ufd9+RwtCsa+lFDA==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /parse-conflict-json@3.0.1: + resolution: {integrity: sha512-01TvEktc68vwbJOtWZluyWeVGWjP+bZwXtPDMQVbBKzbJ/vZBif0L69KH1+cHv1SZ6e0FKLvjyHe8mqsIqYOmw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - json-parse-even-better-errors: 2.3.1 - just-diff: 5.2.0 + json-parse-even-better-errors: 3.0.2 + just-diff: 6.0.2 just-diff-apply: 5.5.0 dev: true @@ -33054,7 +36080,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.22.5 + '@babel/code-frame': 7.23.5 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -33101,7 +36127,7 @@ packages: /parse5@7.1.2: resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} dependencies: - entities: 4.4.0 + entities: 4.5.0 /parseley@0.12.1: resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==} @@ -33118,12 +36144,7 @@ packages: resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} dependencies: no-case: 3.0.4 - tslib: 2.5.0 - - /pascalcase@0.1.1: - resolution: {integrity: sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==} - engines: {node: '>=0.10.0'} - dev: true + tslib: 2.6.2 /path-browserify@0.0.1: resolution: {integrity: sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==} @@ -33132,7 +36153,7 @@ packages: resolution: {integrity: sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==} dependencies: dot-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 dev: true /path-exists@3.0.0: @@ -33176,6 +36197,13 @@ packages: /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + /path-scurry@1.10.2: + resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 10.2.0 + minipass: 7.0.4 + /path-to-regexp@0.1.7: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} @@ -33316,7 +36344,7 @@ packages: - supports-color dev: false - /pinia@2.0.28(typescript@4.9.4)(vue@3.2.45): + /pinia@2.0.28(typescript@4.9.5)(vue@3.2.45): resolution: {integrity: sha512-YClq9DkqCblq9rlyUual7ezMu/iICWdBtfJrDt4oWU9Zxpijyz7xB2xTwx57DaBQ96UGvvTMORzALr+iO5PVMw==} peerDependencies: '@vue/composition-api': ^1.4.0 @@ -33329,7 +36357,7 @@ packages: optional: true dependencies: '@vue/devtools-api': 6.4.5 - typescript: 4.9.4 + typescript: 4.9.5 vue: 3.2.45 vue-demi: 0.13.11(vue@3.2.45) dev: false @@ -33360,7 +36388,7 @@ packages: hasBin: true dependencies: atomic-sleep: 1.0.0 - fast-redact: 3.2.0 + fast-redact: 3.3.0 on-exit-leak-free: 0.2.0 pino-abstract-transport: 0.5.0 pino-std-serializers: 4.0.0 @@ -33375,6 +36403,16 @@ packages: resolution: {integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==} engines: {node: '>= 6'} + /pirates@4.0.6: + resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} + engines: {node: '>= 6'} + + /piscina@4.6.0: + resolution: {integrity: sha512-VofazM7TCa/2cYhbtZQFyxJJIKe1JYZ5JBTxGMOo770CYupdVpHNvMrX+fuL+mACQ10ISWbzXFBmYjZvzELG5w==} + optionalDependencies: + nice-napi: 1.0.2 + dev: false + /pkg-conf@2.1.0: resolution: {integrity: sha512-C+VUP+8jis7EsQZIhDYmS5qlNtjv2yP4SNtjXK9AP1ZcTRlnSfuumaTnRfYZnYgUUYVIKqL0fRvmUGDV2fmp6g==} engines: {node: '>=4'} @@ -33396,6 +36434,13 @@ packages: dependencies: find-up: 4.1.0 + /pkg-dir@7.0.0: + resolution: {integrity: sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==} + engines: {node: '>=14.16'} + dependencies: + find-up: 6.3.0 + dev: true + /pkg-types@1.0.2: resolution: {integrity: sha512-hM58GKXOcj8WTqUXnsQyJYXdeAPbythQgEF3nTcEo+nkD49chjQ9IKm/QJy9xf6JakXptz86h7ecP2024rrLaQ==} dependencies: @@ -33424,12 +36469,13 @@ packages: find-up: 6.3.0 dev: true - /playwright-chromium@1.29.2: - resolution: {integrity: sha512-iylIZpI8pD2ukBY5fQhluCx530bi2w4oUUM0PAfsxBnAYKntdj4bkTlcHuvS23EvabUS++YYi6KCI5uC517nxQ==} - engines: {node: '>=14'} + /playwright-chromium@1.45.0: + resolution: {integrity: sha512-wKZ1NeRZSXp25bYL00X4REv/3mgZQ6QUC6OGTfYZY/YZyorbC/3Fr1WATCB/yF9SCd79gSWBzRCYv4Bf7DzW7g==} + engines: {node: '>=18'} + hasBin: true requiresBuild: true dependencies: - playwright-core: 1.29.2 + playwright-core: 1.45.0 dev: true /playwright-core@1.27.1: @@ -33437,9 +36483,10 @@ packages: engines: {node: '>=14'} dev: true - /playwright-core@1.29.2: - resolution: {integrity: sha512-94QXm4PMgFoHAhlCuoWyaBYKb92yOcGVHdQLoxQ7Wjlc7Flg4aC/jbFW7xMR52OfXMVkWicue4WXE7QEegbIRA==} - engines: {node: '>=14'} + /playwright-core@1.45.0: + resolution: {integrity: sha512-lZmHlFQ0VYSpAs43dRq1/nJ9G/6SiTI7VPqidld9TDefL9tX87bTKExWZZUF5PeRyqtXqd8fQi2qmfIedkwsNQ==} + engines: {node: '>=18'} + hasBin: true dev: true /plur@4.0.0: @@ -33508,11 +36555,6 @@ packages: - supports-color dev: true - /posix-character-classes@0.1.1: - resolution: {integrity: sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==} - engines: {node: '>=0.10.0'} - dev: true - /postcss-attribute-case-insensitive@5.0.1(postcss@8.4.21): resolution: {integrity: sha512-wrt2VndqSLJpyBRNz9OmJcgnhI9MaongeWgapdBuUMu2a/KNJ8SENesG4SdiTnQwGO9b1VKbTWYAfCPeokLqZQ==} engines: {node: ^12 || ^14 || >=16} @@ -33524,6 +36566,20 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /postcss-attribute-case-insensitive@5.0.1(postcss@8.4.35): + resolution: {integrity: sha512-wrt2VndqSLJpyBRNz9OmJcgnhI9MaongeWgapdBuUMu2a/KNJ8SENesG4SdiTnQwGO9b1VKbTWYAfCPeokLqZQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /postcss-calc@8.2.4(postcss@8.4.21): resolution: {integrity: sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==} @@ -33534,7 +36590,21 @@ packages: optional: true dependencies: postcss: 8.4.21 - postcss-selector-parser: 6.0.10 + postcss-selector-parser: 6.0.13 + postcss-value-parser: 4.2.0 + dev: true + + /postcss-calc@9.0.1(postcss@8.4.31): + resolution: {integrity: sha512-TipgjGyzP5QzEhsOZUaIkeO5mKeMFpebWzRogWG/ysonUlnHcq5aJe0jOjpfzUU8PeSaBQnrE8ehR0QA5vs8PQ==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.2 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-selector-parser: 6.0.13 postcss-value-parser: 4.2.0 dev: true @@ -33549,6 +36619,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-clamp@4.1.0(postcss@8.4.35): + resolution: {integrity: sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow==} + engines: {node: '>=7.6.0'} + peerDependencies: + postcss: ^8.4.6 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-color-functional-notation@4.2.3(postcss@8.4.21): resolution: {integrity: sha512-5fbr6FzFzjwHXKsVnkmEYrJYG8VNNzvD1tAXaPPWR97S6rhKI5uh2yOfV5TAzhDkZoq4h+chxEplFDc8GeyFtw==} @@ -33561,6 +36645,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-color-functional-notation@4.2.3(postcss@8.4.35): + resolution: {integrity: sha512-5fbr6FzFzjwHXKsVnkmEYrJYG8VNNzvD1tAXaPPWR97S6rhKI5uh2yOfV5TAzhDkZoq4h+chxEplFDc8GeyFtw==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-color-hex-alpha@8.0.4(postcss@8.4.21): resolution: {integrity: sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==} @@ -33573,6 +36671,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-color-hex-alpha@8.0.4(postcss@8.4.35): + resolution: {integrity: sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-color-rebeccapurple@7.1.0(postcss@8.4.21): resolution: {integrity: sha512-1jtE5AKnZcKq4pjOrltFHcbEM2/IvtbD1OdhZ/wqds18//bh0UmQkffcCkzDJU+/vGodfIsVQeKn+45CJvX9Bw==} @@ -33585,6 +36697,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-color-rebeccapurple@7.1.0(postcss@8.4.35): + resolution: {integrity: sha512-1jtE5AKnZcKq4pjOrltFHcbEM2/IvtbD1OdhZ/wqds18//bh0UmQkffcCkzDJU+/vGodfIsVQeKn+45CJvX9Bw==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-colormin@5.3.0(postcss@8.4.21): resolution: {integrity: sha512-WdDO4gOFG2Z8n4P8TWBpshnL3JpmNmJwdnfP2gbk2qBA8PWwOYcmjmI/t3CmMeL72a7Hkd+x/Mg9O2/0rD54Pg==} @@ -33595,13 +36721,29 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 caniuse-api: 3.0.0 colord: 2.9.2 postcss: 8.4.21 postcss-value-parser: 4.2.0 dev: true + /postcss-colormin@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-EuO+bAUmutWoZYgHn2T1dG1pPqHU6L4TjzPlu4t1wZGXQ/fxV16xg2EJmYi0z+6r+MGV1yvpx1BHkUaRrPa2bw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + caniuse-api: 3.0.0 + colord: 2.9.2 + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-convert-values@5.1.2(postcss@8.4.21): resolution: {integrity: sha512-c6Hzc4GAv95B7suy4udszX9Zy4ETyMCgFPUDtWjdFTKH1SE9eFY/jEpHSwTH1QPuwxHpWslhckUQWbNRM4ho5g==} engines: {node: ^10 || ^12 || >=14.0} @@ -33611,11 +36753,25 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 postcss: 8.4.21 postcss-value-parser: 4.2.0 dev: true + /postcss-convert-values@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-U5D8QhVwqT++ecmy8rnTb+RL9n/B806UVaS3m60lqle4YDFcpbS3ae5bTQIh3wOGUSDHSEtMYLs/38dNG7EYFw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-custom-media@8.0.2(postcss@8.4.21): resolution: {integrity: sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==} engines: {node: ^12 || ^14 || >=16} @@ -33627,6 +36783,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-custom-media@8.0.2(postcss@8.4.35): + resolution: {integrity: sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-custom-properties@12.1.8(postcss@8.4.21): resolution: {integrity: sha512-8rbj8kVu00RQh2fQF81oBqtduiANu4MIxhyf0HbbStgPtnFlWn0yiaYTpLHrPnJbffVY1s9apWsIoVZcc68FxA==} @@ -33639,6 +36809,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-custom-properties@12.1.8(postcss@8.4.35): + resolution: {integrity: sha512-8rbj8kVu00RQh2fQF81oBqtduiANu4MIxhyf0HbbStgPtnFlWn0yiaYTpLHrPnJbffVY1s9apWsIoVZcc68FxA==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-custom-selectors@6.0.3(postcss@8.4.21): resolution: {integrity: sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==} @@ -33651,6 +36835,20 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /postcss-custom-selectors@6.0.3(postcss@8.4.35): + resolution: {integrity: sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /postcss-dir-pseudo-class@6.0.4(postcss@8.4.21): resolution: {integrity: sha512-I8epwGy5ftdzNWEYok9VjW9whC4xnelAtbajGv4adql4FIF09rnrxnA9Y8xSHN47y7gqFIv10C5+ImsLeJpKBw==} @@ -33663,6 +36861,20 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /postcss-dir-pseudo-class@6.0.4(postcss@8.4.35): + resolution: {integrity: sha512-I8epwGy5ftdzNWEYok9VjW9whC4xnelAtbajGv4adql4FIF09rnrxnA9Y8xSHN47y7gqFIv10C5+ImsLeJpKBw==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /postcss-discard-comments@5.1.2(postcss@8.4.21): resolution: {integrity: sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==} @@ -33676,6 +36888,18 @@ packages: postcss: 8.4.21 dev: true + /postcss-discard-comments@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-p2skSGqzPMZkEQvJsgnkBhCn8gI7NzRH2683EEjrIkoMiwRELx68yoUJ3q3DGSGuQ8Ug9Gsn+OuDr46yfO+eFw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + dev: true + /postcss-discard-duplicates@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==} engines: {node: ^10 || ^12 || >=14.0} @@ -33688,6 +36912,18 @@ packages: postcss: 8.4.21 dev: true + /postcss-discard-duplicates@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-bU1SXIizMLtDW4oSsi5C/xHKbhLlhek/0/yCnoMQany9k3nPBq+Ctsv/9oMmyqbR96HYHxZcHyK2HR5P/mqoGA==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + dev: true + /postcss-discard-empty@5.1.1(postcss@8.4.21): resolution: {integrity: sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==} engines: {node: ^10 || ^12 || >=14.0} @@ -33700,6 +36936,18 @@ packages: postcss: 8.4.21 dev: true + /postcss-discard-empty@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-b+h1S1VT6dNhpcg+LpyiUrdnEZfICF0my7HAKgJixJLW7BnNmpRH34+uw/etf5AhOlIhIAuXApSzzDzMI9K/gQ==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + dev: true + /postcss-discard-overridden@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==} engines: {node: ^10 || ^12 || >=14.0} @@ -33712,6 +36960,18 @@ packages: postcss: 8.4.21 dev: true + /postcss-discard-overridden@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-4VELwssYXDFigPYAZ8vL4yX4mUepF/oCBeeIT4OXsJPYOtvJumyz9WflmJWTfDwCUcpDR+z0zvCWBXgTx35SVw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + dev: true + /postcss-double-position-gradients@3.1.1(postcss@8.4.21): resolution: {integrity: sha512-jM+CGkTs4FcG53sMPjrrGE0rIvLDdCrqMzgDC5fLI7JHDO7o6QG8C5TQBtExb13hdBdoH9C2QVbG4jo2y9lErQ==} engines: {node: ^12 || ^14 || >=16} @@ -33724,6 +36984,21 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.21) postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-double-position-gradients@3.1.1(postcss@8.4.35): + resolution: {integrity: sha512-jM+CGkTs4FcG53sMPjrrGE0rIvLDdCrqMzgDC5fLI7JHDO7o6QG8C5TQBtExb13hdBdoH9C2QVbG4jo2y9lErQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.35) + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-env-function@4.0.6(postcss@8.4.21): resolution: {integrity: sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==} @@ -33736,6 +37011,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-env-function@4.0.6(postcss@8.4.35): + resolution: {integrity: sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-flexbugs-fixes@5.0.2(postcss@8.4.21): resolution: {integrity: sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==} @@ -33747,6 +37036,17 @@ packages: dependencies: postcss: 8.4.21 + /postcss-flexbugs-fixes@5.0.2(postcss@8.4.35): + resolution: {integrity: sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==} + peerDependencies: + postcss: ^8.1.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true + /postcss-focus-visible@6.0.4(postcss@8.4.21): resolution: {integrity: sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==} engines: {node: ^12 || ^14 || >=16} @@ -33758,6 +37058,20 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /postcss-focus-visible@6.0.4(postcss@8.4.35): + resolution: {integrity: sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /postcss-focus-within@5.0.4(postcss@8.4.21): resolution: {integrity: sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==} @@ -33770,6 +37084,20 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /postcss-focus-within@5.0.4(postcss@8.4.35): + resolution: {integrity: sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /postcss-font-variant@5.0.0(postcss@8.4.21): resolution: {integrity: sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==} @@ -33780,6 +37108,18 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-font-variant@5.0.0(postcss@8.4.35): + resolution: {integrity: sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==} + peerDependencies: + postcss: ^8.1.0 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-gap-properties@3.0.3(postcss@8.4.21): resolution: {integrity: sha512-rPPZRLPmEKgLk/KlXMqRaNkYTUpE7YC+bOIQFN5xcu1Vp11Y4faIXv6/Jpft6FMnl6YRxZqDZG0qQOW80stzxQ==} @@ -33791,6 +37131,19 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-gap-properties@3.0.3(postcss@8.4.35): + resolution: {integrity: sha512-rPPZRLPmEKgLk/KlXMqRaNkYTUpE7YC+bOIQFN5xcu1Vp11Y4faIXv6/Jpft6FMnl6YRxZqDZG0qQOW80stzxQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-html@0.36.0(postcss-syntax@0.36.2)(postcss@7.0.39): resolution: {integrity: sha512-HeiOxGcuwID0AFsNAL0ox3mW6MHH5cstWN1Z3Y+n6H+g12ih7LHdYxWwEA/QmrebctLjo79xz9ouK3MroHwOJw==} @@ -33817,6 +37170,20 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-image-set-function@4.0.6(postcss@8.4.35): + resolution: {integrity: sha512-KfdC6vg53GC+vPd2+HYzsZ6obmPqOk6HY09kttU19+Gj1nC3S3XBVEXDHxkhxTohgZqzbUb94bKXvKDnYWBm/A==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-import@14.1.0(postcss@8.4.21): resolution: {integrity: sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==} @@ -33841,6 +37208,18 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-initial@4.0.1(postcss@8.4.35): + resolution: {integrity: sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==} + peerDependencies: + postcss: ^8.0.0 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-js@4.0.0(postcss@8.4.21): resolution: {integrity: sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==} @@ -33866,6 +37245,21 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.21) postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false + + /postcss-lab-function@4.2.0(postcss@8.4.35): + resolution: {integrity: sha512-Zb1EO9DGYfa3CP8LhINHCcTTCTLI+R3t7AX2mKsDzdgVQ/GkCpHOTgOr6HBHslP7XDdVbqgHW5vvRPMdVANQ8w==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.35) + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true /postcss-less@3.1.4: resolution: {integrity: sha512-7TvleQWNM2QLcHqvudt3VYjULVB49uiW6XzEUFmvwHzvsOEF5MwBrIXZDJQvJNFGjJQTzSzZnDoCJ8h/ljyGXA==} @@ -33878,7 +37272,7 @@ packages: resolution: {integrity: sha512-C92S4sHlbDpefJ2QQJjrucCcypq3+KZPstjfuvgOCNnGx0tF9h8hXgAlOIATGAxMXZXaF+nVp+/Mi8pCAWdSmw==} engines: {node: '>=10'} dependencies: - postcss: 8.4.21 + postcss: 8.4.32 dev: true /postcss-less@6.0.0(postcss@8.4.21): @@ -33892,7 +37286,7 @@ packages: dependencies: postcss: 8.4.21 - /postcss-load-config@3.1.4(postcss@8.4.21)(ts-node@10.9.1): + /postcss-load-config@3.1.4(postcss@8.4.21)(ts-node@10.9.2): resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} engines: {node: '>= 10'} peerDependencies: @@ -33904,12 +37298,12 @@ packages: ts-node: optional: true dependencies: - lilconfig: 2.0.6 + lilconfig: 2.1.0 postcss: 8.4.21 - ts-node: 10.9.1(@types/node@18.11.18)(typescript@4.9.4) + ts-node: 10.9.2(@types/node@18.19.39)(typescript@4.9.5) yaml: 1.10.2 - /postcss-loader@7.0.2(postcss@8.4.21)(webpack@5.76.1): + /postcss-loader@7.0.2(postcss@8.4.21)(webpack@5.88.2): resolution: {integrity: sha512-fUJzV/QH7NXUAqV8dWJ9Lg4aTkDCezpTS5HgJ2DvqznexTbSTxgi/dTECvTZ15BwKTtk8G/bqI/QTu2HPd3ZCg==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -33925,7 +37319,7 @@ packages: klona: 2.0.5 postcss: 8.4.21 semver: 7.3.8 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /postcss-logical@5.0.4(postcss@8.4.21): @@ -33938,6 +37332,19 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-logical@5.0.4(postcss@8.4.35): + resolution: {integrity: sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-media-minmax@5.0.0(postcss@8.4.21): resolution: {integrity: sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==} @@ -33949,9 +37356,23 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-media-minmax@5.0.0(postcss@8.4.35): + resolution: {integrity: sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==} + engines: {node: '>=10.0.0'} + peerDependencies: + postcss: ^8.1.0 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-media-query-parser@0.2.3: resolution: {integrity: sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==} + requiresBuild: true /postcss-merge-longhand@5.1.6(postcss@8.4.21): resolution: {integrity: sha512-6C/UGF/3T5OE2CEbOuX7iNO63dnvqhGZeUnKkDeifebY0XqkkvrctYSZurpNE902LDf2yKwwPFgotnfSoPhQiw==} @@ -33967,6 +37388,20 @@ packages: stylehacks: 5.1.0(postcss@8.4.21) dev: true + /postcss-merge-longhand@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-4VSfd1lvGkLTLYcxFuISDtWUfFS4zXe0FpF149AyziftPFQIWxjvFSKhA4MIxMe4XM3yTDgQMbSNgzIVxChbIg==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + stylehacks: 6.0.0(postcss@8.4.31) + dev: true + /postcss-merge-rules@5.1.2(postcss@8.4.21): resolution: {integrity: sha512-zKMUlnw+zYCWoPN6yhPjtcEdlJaMUZ0WyVcxTAmw3lkkN/NDMRkOkiuctQEoWAOvH7twaxUUdvBWl0d4+hifRQ==} engines: {node: ^10 || ^12 || >=14.0} @@ -33976,11 +37411,27 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 caniuse-api: 3.0.0 cssnano-utils: 3.1.0(postcss@8.4.21) postcss: 8.4.21 - postcss-selector-parser: 6.0.10 + postcss-selector-parser: 6.0.13 + dev: true + + /postcss-merge-rules@6.0.1(postcss@8.4.31): + resolution: {integrity: sha512-a4tlmJIQo9SCjcfiCcCMg/ZCEe0XTkl/xK0XHBs955GWg9xDX3NwP9pwZ78QUOWB8/0XCjZeJn98Dae0zg6AAw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + caniuse-api: 3.0.0 + cssnano-utils: 4.0.0(postcss@8.4.31) + postcss: 8.4.31 + postcss-selector-parser: 6.0.13 dev: true /postcss-minify-font-values@5.1.0(postcss@8.4.21): @@ -33996,6 +37447,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-minify-font-values@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-zNRAVtyh5E8ndZEYXA4WS8ZYsAp798HiIQ1V2UF/C/munLp2r1UGHwf1+6JFu7hdEhJFN+W1WJQKBrtjhFgEnA==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-minify-gradients@5.1.1(postcss@8.4.21): resolution: {integrity: sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==} engines: {node: ^10 || ^12 || >=14.0} @@ -34011,6 +37475,21 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-minify-gradients@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-wO0F6YfVAR+K1xVxF53ueZJza3L+R3E6cp0VwuXJQejnNUH0DjcAFe3JEBeTY1dLwGa0NlDWueCA1VlEfiKgAA==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + colord: 2.9.2 + cssnano-utils: 4.0.0(postcss@8.4.31) + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-minify-params@5.1.3(postcss@8.4.21): resolution: {integrity: sha512-bkzpWcjykkqIujNL+EVEPOlLYi/eZ050oImVtHU7b4lFS82jPnsCb44gvC6pxaNt38Els3jWYDHTjHKf0koTgg==} engines: {node: ^10 || ^12 || >=14.0} @@ -34020,12 +37499,27 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 cssnano-utils: 3.1.0(postcss@8.4.21) postcss: 8.4.21 postcss-value-parser: 4.2.0 dev: true + /postcss-minify-params@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-Fz/wMQDveiS0n5JPcvsMeyNXOIMrwF88n7196puSuQSWSa+/Ofc1gDOSY2xi8+A4PqB5dlYCKk/WfqKqsI+ReQ==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + cssnano-utils: 4.0.0(postcss@8.4.31) + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-minify-selectors@5.2.1(postcss@8.4.21): resolution: {integrity: sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==} engines: {node: ^10 || ^12 || >=14.0} @@ -34036,7 +37530,20 @@ packages: optional: true dependencies: postcss: 8.4.21 - postcss-selector-parser: 6.0.10 + postcss-selector-parser: 6.0.13 + dev: true + + /postcss-minify-selectors@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-ec/q9JNCOC2CRDNnypipGfOhbYPuUkewGwLnbv6omue/PSASbHSU7s6uSQ0tcFRVv731oMIx8k0SP4ZX6be/0g==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-selector-parser: 6.0.13 dev: true /postcss-modules-extract-imports@3.0.0(postcss@8.4.21): @@ -34112,6 +37619,21 @@ packages: '@csstools/selector-specificity': 2.0.1(postcss-selector-parser@6.0.10)(postcss@8.4.21) postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /postcss-nesting@10.1.8(postcss@8.4.35): + resolution: {integrity: sha512-txdb3/idHYsBbNDFo1PFY0ExCgH5nfWi8G5lO49e6iuU42TydbODTzJgF5UuL5bhgeSlnAtDgfFTDG0Cl1zaSQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/selector-specificity': 2.0.1(postcss-selector-parser@6.0.10)(postcss@8.4.35) + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /postcss-normalize-charset@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==} @@ -34125,6 +37647,18 @@ packages: postcss: 8.4.21 dev: true + /postcss-normalize-charset@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-cqundwChbu8yO/gSWkuFDmKrCZ2vJzDAocheT2JTd0sFNA4HMGoKMfbk2B+J0OmO0t5GUkiAkSM5yF2rSLUjgQ==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + dev: true + /postcss-normalize-display-values@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==} engines: {node: ^10 || ^12 || >=14.0} @@ -34138,6 +37672,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-display-values@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-Qyt5kMrvy7dJRO3OjF7zkotGfuYALETZE+4lk66sziWSPzlBEt7FrUshV6VLECkI4EN8Z863O6Nci4NXQGNzYw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-normalize-positions@5.1.1(postcss@8.4.21): resolution: {integrity: sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==} engines: {node: ^10 || ^12 || >=14.0} @@ -34151,6 +37698,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-positions@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-mPCzhSV8+30FZyWhxi6UoVRYd3ZBJgTRly4hOkaSifo0H+pjDYcii/aVT4YE6QpOil15a5uiv6ftnY3rm0igPg==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-normalize-repeat-style@5.1.1(postcss@8.4.21): resolution: {integrity: sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==} engines: {node: ^10 || ^12 || >=14.0} @@ -34164,6 +37724,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-repeat-style@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-50W5JWEBiOOAez2AKBh4kRFm2uhrT3O1Uwdxz7k24aKtbD83vqmcVG7zoIwo6xI2FZ/HDlbrCopXhLeTpQib1A==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-normalize-string@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==} engines: {node: ^10 || ^12 || >=14.0} @@ -34177,6 +37750,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-string@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-KWkIB7TrPOiqb8ZZz6homet2KWKJwIlysF5ICPZrXAylGe2hzX/HSf4NTX2rRPJMAtlRsj/yfkrWGavFuB+c0w==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-normalize-timing-functions@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==} engines: {node: ^10 || ^12 || >=14.0} @@ -34190,6 +37776,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-timing-functions@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-tpIXWciXBp5CiFs8sem90IWlw76FV4oi6QEWfQwyeREVwUy39VSeSqjAT7X0Qw650yAimYW5gkl2Gd871N5SQg==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-normalize-unicode@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-J6M3MizAAZ2dOdSjy2caayJLQT8E8K9XjLce8AUQMwOrCvjCHv24aLC/Lps1R1ylOfol5VIDMaM/Lo9NGlk1SQ==} engines: {node: ^10 || ^12 || >=14.0} @@ -34199,11 +37798,25 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 postcss: 8.4.21 postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-unicode@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-ui5crYkb5ubEUDugDc786L/Me+DXp2dLg3fVJbqyAl0VPkAeALyAijF2zOsnZyaS1HyfPuMH0DwyY18VMFVNkg==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-normalize-url@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==} engines: {node: ^10 || ^12 || >=14.0} @@ -34218,6 +37831,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-url@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-98mvh2QzIPbb02YDIrYvAg4OUzGH7s1ZgHlD3fIdTHLgPLRpv1ZTKJDnSAKr4Rt21ZQFzwhGMXxpXlfrUBKFHw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-normalize-whitespace@5.1.1(postcss@8.4.21): resolution: {integrity: sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==} engines: {node: ^10 || ^12 || >=14.0} @@ -34231,6 +37857,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-normalize-whitespace@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-7cfE1AyLiK0+ZBG6FmLziJzqQCpTQY+8XjMhMAz8WSBSCsCNNUKujgIgjCAmDT3cJ+3zjTXFkoD15ZPsckArVw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-opacity-percentage@1.1.2: resolution: {integrity: sha512-lyUfF7miG+yewZ8EAk9XUBIlrHyUE6fijnesuz+Mj5zrIHIEw6KcIZSOk/elVMqzLvREmXB83Zi/5QpNRYd47w==} engines: {node: ^12 || ^14 || >=16} @@ -34249,6 +37888,20 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-ordered-values@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-K36XzUDpvfG/nWkjs6d1hRBydeIxGpKS2+n+ywlKPzx1nMYDYpoGbcjhj5AwVYJK1qV2/SDoDEnHzlPD6s3nMg==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + cssnano-utils: 4.0.0(postcss@8.4.31) + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-overflow-shorthand@3.0.3(postcss@8.4.21): resolution: {integrity: sha512-CxZwoWup9KXzQeeIxtgOciQ00tDtnylYIlJBBODqkgS/PU2jISuWOL/mYLHmZb9ZhZiCaNKsCRiLp22dZUtNsg==} engines: {node: ^12 || ^14 || >=16} @@ -34259,6 +37912,19 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-overflow-shorthand@3.0.3(postcss@8.4.35): + resolution: {integrity: sha512-CxZwoWup9KXzQeeIxtgOciQ00tDtnylYIlJBBODqkgS/PU2jISuWOL/mYLHmZb9ZhZiCaNKsCRiLp22dZUtNsg==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-page-break@3.0.4(postcss@8.4.21): resolution: {integrity: sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==} @@ -34269,6 +37935,18 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-page-break@3.0.4(postcss@8.4.35): + resolution: {integrity: sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==} + peerDependencies: + postcss: ^8 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-place@7.0.4(postcss@8.4.21): resolution: {integrity: sha512-MrgKeiiu5OC/TETQO45kV3npRjOFxEHthsqGtkh3I1rPbZSbXGD/lZVi9j13cYh+NA8PIAPyk6sGjT9QbRyvSg==} @@ -34281,14 +37959,42 @@ packages: dependencies: postcss: 8.4.21 postcss-value-parser: 4.2.0 + dev: false - /postcss-prefix-selector@1.16.0: + /postcss-place@7.0.4(postcss@8.4.35): + resolution: {integrity: sha512-MrgKeiiu5OC/TETQO45kV3npRjOFxEHthsqGtkh3I1rPbZSbXGD/lZVi9j13cYh+NA8PIAPyk6sGjT9QbRyvSg==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true + + /postcss-prefix-selector@1.16.0(postcss@8.4.21): resolution: {integrity: sha512-rdVMIi7Q4B0XbXqNUEI+Z4E+pueiu/CS5E6vRCQommzdQ/sgsS4dK42U7GX8oJR+TJOtT+Qv3GkNo6iijUMp3Q==} peerDependencies: postcss: '>4 <9' peerDependenciesMeta: postcss: optional: true + dependencies: + postcss: 8.4.21 + dev: false + + /postcss-prefix-selector@1.16.0(postcss@8.4.35): + resolution: {integrity: sha512-rdVMIi7Q4B0XbXqNUEI+Z4E+pueiu/CS5E6vRCQommzdQ/sgsS4dK42U7GX8oJR+TJOtT+Qv3GkNo6iijUMp3Q==} + peerDependencies: + postcss: '>4 <9' + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-preset-env@7.5.0(postcss@8.4.21): resolution: {integrity: sha512-0BJzWEfCdTtK2R3EiKKSdkE51/DI/BwnhlnicSW482Ym6/DGHud8K0wGLcdjip1epVX0HKo4c8zzTeV/SkiejQ==} @@ -34310,7 +38016,7 @@ packages: '@csstools/postcss-stepped-value-functions': 1.0.0(postcss@8.4.21) '@csstools/postcss-unset-value': 1.0.1(postcss@8.4.21) autoprefixer: 10.4.13(postcss@8.4.21) - browserslist: 4.21.5 + browserslist: 4.22.2 css-blank-pseudo: 3.0.3(postcss@8.4.21) css-has-pseudo: 3.0.4(postcss@8.4.21) css-prefers-color-scheme: 6.0.3(postcss@8.4.21) @@ -34345,6 +38051,64 @@ packages: postcss-replace-overflow-wrap: 4.0.0(postcss@8.4.21) postcss-selector-not: 5.0.0(postcss@8.4.21) postcss-value-parser: 4.2.0 + dev: false + + /postcss-preset-env@7.5.0(postcss@8.4.35): + resolution: {integrity: sha512-0BJzWEfCdTtK2R3EiKKSdkE51/DI/BwnhlnicSW482Ym6/DGHud8K0wGLcdjip1epVX0HKo4c8zzTeV/SkiejQ==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + '@csstools/postcss-color-function': 1.1.0(postcss@8.4.35) + '@csstools/postcss-font-format-keywords': 1.0.0(postcss@8.4.35) + '@csstools/postcss-hwb-function': 1.0.1(postcss@8.4.35) + '@csstools/postcss-ic-unit': 1.0.0(postcss@8.4.35) + '@csstools/postcss-is-pseudo-class': 2.0.5(postcss@8.4.35) + '@csstools/postcss-normalize-display-values': 1.0.0(postcss@8.4.35) + '@csstools/postcss-oklab-function': 1.1.0(postcss@8.4.35) + '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.35) + '@csstools/postcss-stepped-value-functions': 1.0.0(postcss@8.4.35) + '@csstools/postcss-unset-value': 1.0.1(postcss@8.4.35) + autoprefixer: 10.4.13(postcss@8.4.35) + browserslist: 4.22.2 + css-blank-pseudo: 3.0.3(postcss@8.4.35) + css-has-pseudo: 3.0.4(postcss@8.4.35) + css-prefers-color-scheme: 6.0.3(postcss@8.4.35) + cssdb: 6.6.3 + postcss: 8.4.35 + postcss-attribute-case-insensitive: 5.0.1(postcss@8.4.35) + postcss-clamp: 4.1.0(postcss@8.4.35) + postcss-color-functional-notation: 4.2.3(postcss@8.4.35) + postcss-color-hex-alpha: 8.0.4(postcss@8.4.35) + postcss-color-rebeccapurple: 7.1.0(postcss@8.4.35) + postcss-custom-media: 8.0.2(postcss@8.4.35) + postcss-custom-properties: 12.1.8(postcss@8.4.35) + postcss-custom-selectors: 6.0.3(postcss@8.4.35) + postcss-dir-pseudo-class: 6.0.4(postcss@8.4.35) + postcss-double-position-gradients: 3.1.1(postcss@8.4.35) + postcss-env-function: 4.0.6(postcss@8.4.35) + postcss-focus-visible: 6.0.4(postcss@8.4.35) + postcss-focus-within: 5.0.4(postcss@8.4.35) + postcss-font-variant: 5.0.0(postcss@8.4.35) + postcss-gap-properties: 3.0.3(postcss@8.4.35) + postcss-image-set-function: 4.0.6(postcss@8.4.35) + postcss-initial: 4.0.1(postcss@8.4.35) + postcss-lab-function: 4.2.0(postcss@8.4.35) + postcss-logical: 5.0.4(postcss@8.4.35) + postcss-media-minmax: 5.0.0(postcss@8.4.35) + postcss-nesting: 10.1.8(postcss@8.4.35) + postcss-opacity-percentage: 1.1.2 + postcss-overflow-shorthand: 3.0.3(postcss@8.4.35) + postcss-page-break: 3.0.4(postcss@8.4.35) + postcss-place: 7.0.4(postcss@8.4.35) + postcss-pseudo-class-any-link: 7.1.4(postcss@8.4.35) + postcss-replace-overflow-wrap: 4.0.0(postcss@8.4.35) + postcss-selector-not: 5.0.0(postcss@8.4.35) + postcss-value-parser: 4.2.0 + dev: true /postcss-pseudo-class-any-link@7.1.4(postcss@8.4.21): resolution: {integrity: sha512-JxRcLXm96u14N3RzFavPIE9cRPuOqLDuzKeBsqi4oRk4vt8n0A7I0plFs/VXTg7U2n7g/XkQi0OwqTO3VWBfEg==} @@ -34357,6 +38121,20 @@ packages: dependencies: postcss: 8.4.21 postcss-selector-parser: 6.0.10 + dev: false + + /postcss-pseudo-class-any-link@7.1.4(postcss@8.4.35): + resolution: {integrity: sha512-JxRcLXm96u14N3RzFavPIE9cRPuOqLDuzKeBsqi4oRk4vt8n0A7I0plFs/VXTg7U2n7g/XkQi0OwqTO3VWBfEg==} + engines: {node: ^12 || ^14 || >=16} + peerDependencies: + postcss: ^8.4 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.10 + dev: true /postcss-reduce-initial@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-5OgTUviz0aeH6MtBjHfbr57tml13PuedK/Ecg8szzd4XRMbYxH4572JFG067z+FqBIf6Zp/d+0581glkvvWMFw==} @@ -34367,11 +38145,25 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 caniuse-api: 3.0.0 postcss: 8.4.21 dev: true + /postcss-reduce-initial@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-s2UOnidpVuXu6JiiI5U+fV2jamAw5YNA9Fdi/GRK0zLDLCfXmSGqQtzpUPtfN66RtCbb9fFHoyZdQaxOB3WxVA==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + caniuse-api: 3.0.0 + postcss: 8.4.31 + dev: true + /postcss-reduce-transforms@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==} engines: {node: ^10 || ^12 || >=14.0} @@ -34385,6 +38177,19 @@ packages: postcss-value-parser: 4.2.0 dev: true + /postcss-reduce-transforms@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-FQ9f6xM1homnuy1wLe9lP1wujzxnwt1EwiigtWwuyf8FsqqXUDUp2Ulxf9A5yjlUOTdCJO6lonYjg1mgqIIi2w==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + /postcss-replace-overflow-wrap@4.0.0(postcss@8.4.21): resolution: {integrity: sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==} peerDependencies: @@ -34394,9 +38199,22 @@ packages: optional: true dependencies: postcss: 8.4.21 + dev: false + + /postcss-replace-overflow-wrap@4.0.0(postcss@8.4.35): + resolution: {integrity: sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==} + peerDependencies: + postcss: ^8.0.3 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-resolve-nested-selector@0.1.1: resolution: {integrity: sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==} + requiresBuild: true /postcss-safe-parser@4.0.2: resolution: {integrity: sha512-Uw6ekxSWNLCPesSv/cmqf2bY/77z11O7jZGPax3ycZMFU/oi2DMH9i89AdHc1tRwFg/arFoEwX0IS3LCUxJh1g==} @@ -34440,6 +38258,19 @@ packages: dependencies: balanced-match: 1.0.2 postcss: 8.4.21 + dev: false + + /postcss-selector-not@5.0.0(postcss@8.4.35): + resolution: {integrity: sha512-/2K3A4TCP9orP4TNS7u3tGdRFVKqz/E6pX3aGnriPG0jU78of8wsUcqE4QAhWEU0d+WnMSF93Ah3F//vUtK+iQ==} + peerDependencies: + postcss: ^8.1.0 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + balanced-match: 1.0.2 + postcss: 8.4.35 + dev: true /postcss-selector-parser@6.0.10: resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==} @@ -34456,9 +38287,8 @@ packages: cssesc: 3.0.0 util-deprecate: 1.0.2 dev: true - optional: true - /postcss-sorting@6.0.0(postcss@8.4.21): + /postcss-sorting@6.0.0(postcss@8.4.32): resolution: {integrity: sha512-bYJ0vgAiGbjCBKi7B07CzsBc9eM84nLEbavUmwNp8rAa+PNyrgdH+6PpnqTtciLuUs99c4rFQQmCaYgeBQYmSQ==} peerDependencies: postcss: ^8.0.4 @@ -34467,7 +38297,7 @@ packages: optional: true dependencies: lodash: 4.17.21 - postcss: 8.4.21 + postcss: 8.4.32 dev: true /postcss-svgo@5.1.0(postcss@8.4.21): @@ -34484,6 +38314,20 @@ packages: svgo: 2.8.0 dev: true + /postcss-svgo@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-r9zvj/wGAoAIodn84dR/kFqwhINp5YsJkLoujybWG59grR/IHx+uQ2Zo+IcOwM0jskfYX3R0mo+1Kip1VSNcvw==} + engines: {node: ^14 || ^16 || >= 18} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + svgo: 3.0.3 + dev: true + /postcss-syntax@0.36.2(postcss-html@0.36.0)(postcss-less@3.1.4)(postcss-scss@2.1.1)(postcss@7.0.39): resolution: {integrity: sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w==} peerDependencies: @@ -34538,6 +38382,33 @@ packages: dependencies: postcss: 8.4.21 postcss-less: 6.0.0(postcss@8.4.21) + dev: false + + /postcss-syntax@0.36.2(postcss@8.4.35): + resolution: {integrity: sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w==} + peerDependencies: + postcss: '>=5.0.0' + postcss-html: '*' + postcss-jsx: '*' + postcss-less: '*' + postcss-markdown: '*' + postcss-scss: '*' + peerDependenciesMeta: + postcss: + optional: true + postcss-html: + optional: true + postcss-jsx: + optional: true + postcss-less: + optional: true + postcss-markdown: + optional: true + postcss-scss: + optional: true + dependencies: + postcss: 8.4.35 + dev: true /postcss-unique-selectors@5.1.1(postcss@8.4.21): resolution: {integrity: sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==} @@ -34549,11 +38420,25 @@ packages: optional: true dependencies: postcss: 8.4.21 - postcss-selector-parser: 6.0.10 + postcss-selector-parser: 6.0.13 + dev: true + + /postcss-unique-selectors@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-EPQzpZNxOxP7777t73RQpZE5e9TrnCrkvp7AH7a0l89JmZiPnS82y216JowHXwpBCQitfyxrof9TK3rYbi7/Yw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + postcss: 8.4.31 + postcss-selector-parser: 6.0.13 dev: true /postcss-value-parser@4.2.0: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + requiresBuild: true /postcss@5.2.18: resolution: {integrity: sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==} @@ -34577,7 +38462,7 @@ packages: resolution: {integrity: sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==} engines: {node: ^10 || ^12 || >=14} dependencies: - nanoid: 3.3.4 + nanoid: 3.3.6 picocolors: 1.0.0 source-map-js: 1.0.2 @@ -34589,6 +38474,30 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 + /postcss@8.4.31: + resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + + /postcss@8.4.32: + resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + + /postcss@8.4.35: + resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + /potpack@1.0.2: resolution: {integrity: sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==} dev: false @@ -34621,18 +38530,25 @@ packages: engines: {node: '>=4'} dev: true - /prettier-plugin-organize-imports@2.3.4(prettier@2.8.4)(typescript@4.9.4): - resolution: {integrity: sha512-R8o23sf5iVL/U71h9SFUdhdOEPsi3nm42FD/oDYIZ2PQa4TNWWuWecxln6jlIQzpZTDMUeO1NicJP6lLn2TtRw==} + /prettier-plugin-organize-imports@3.2.1(prettier@2.8.8)(typescript@4.9.5): + resolution: {integrity: sha512-bty7C2Ecard5EOXirtzeCAqj4FU4epeuWrQt/Z+sh8UVEpBlBZ3m3KNPz2kFu7KgRTQx/C9o4/TdquPD1jOqjQ==} peerDependencies: + '@volar/vue-language-plugin-pug': ^1.0.4 + '@volar/vue-typescript': ^1.0.4 prettier: '>=2.0' typescript: '>=2.9' + peerDependenciesMeta: + '@volar/vue-language-plugin-pug': + optional: true + '@volar/vue-typescript': + optional: true dependencies: - prettier: 2.8.4 - typescript: 4.9.4 + prettier: 2.8.8 + typescript: 4.9.5 dev: true - /prettier-plugin-organize-imports@3.2.1(prettier@2.8.8)(typescript@4.9.4): - resolution: {integrity: sha512-bty7C2Ecard5EOXirtzeCAqj4FU4epeuWrQt/Z+sh8UVEpBlBZ3m3KNPz2kFu7KgRTQx/C9o4/TdquPD1jOqjQ==} + /prettier-plugin-organize-imports@3.2.2(prettier@2.8.4)(typescript@4.9.5): + resolution: {integrity: sha512-e97lE6odGSiHonHJMTYC0q0iLXQyw0u5z/PJpvP/3vRy6/Zi9kLBwFAbEGjDzIowpjQv8b+J04PDamoUSQbzGA==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 '@volar/vue-typescript': ^1.0.4 @@ -34644,12 +38560,11 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 2.8.8 - typescript: 4.9.4 - dev: true + prettier: 2.8.4 + typescript: 4.9.5 - /prettier-plugin-organize-imports@3.2.2(prettier@2.8.4)(typescript@4.9.4): - resolution: {integrity: sha512-e97lE6odGSiHonHJMTYC0q0iLXQyw0u5z/PJpvP/3vRy6/Zi9kLBwFAbEGjDzIowpjQv8b+J04PDamoUSQbzGA==} + /prettier-plugin-organize-imports@3.2.4(prettier@2.8.4)(typescript@4.9.5): + resolution: {integrity: sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 '@volar/vue-typescript': ^1.0.4 @@ -34662,7 +38577,8 @@ packages: optional: true dependencies: prettier: 2.8.4 - typescript: 4.9.4 + typescript: 4.9.5 + dev: true /prettier-plugin-packagejson@2.3.0(prettier@2.8.8): resolution: {integrity: sha512-2SAPMMk1UDkqsB7DifWKcwCm6VC52JXMrzLHfbcQHJRWhRCj9zziOy+s+2XOyPBeyqFqS+A/1IKzOrxKFTo6pw==} @@ -34688,17 +38604,15 @@ packages: sort-package-json: 2.4.1 synckit: 0.8.5 - /prettier-plugin-packagejson@2.4.3(prettier@2.8.8): - resolution: {integrity: sha512-kPeeviJiwy0BgOSk7No8NmzzXfW4R9FYWni6ziA5zc1kGVVrKnBzMZdu2TUhI+I7h8/5Htt3vARYOk7KKJTTNQ==} + /prettier-plugin-two-style-order@1.0.1(prettier@2.8.4): + resolution: {integrity: sha512-ETltO2FRR/Pxc7bsgz2XwuzWSPwafl7/v5+5Rria4S579CTas7dya+xsmbkix0q1tYQiuRjVVdfGnCKlH/aOuQ==} peerDependencies: - prettier: '>= 1.16.0' - peerDependenciesMeta: - prettier: - optional: true + prettier: '>= 2.0.0' dependencies: - prettier: 2.8.8 - sort-package-json: 2.4.1 - synckit: 0.8.5 + postcss: 8.4.32 + postcss-less: 4.0.1 + postcss-sorting: 6.0.0(postcss@8.4.32) + prettier: 2.8.4 dev: true /prettier-plugin-two-style-order@1.0.1(prettier@2.8.8): @@ -34706,9 +38620,9 @@ packages: peerDependencies: prettier: '>= 2.0.0' dependencies: - postcss: 8.4.21 + postcss: 8.4.32 postcss-less: 4.0.1 - postcss-sorting: 6.0.0(postcss@8.4.21) + postcss-sorting: 6.0.0(postcss@8.4.32) prettier: 2.8.8 dev: true @@ -34739,6 +38653,16 @@ packages: lodash: 4.17.21 renderkid: 3.0.0 + /pretty-format@24.9.0: + resolution: {integrity: sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==} + engines: {node: '>= 6'} + dependencies: + '@jest/types': 24.9.0 + ansi-regex: 4.1.1 + ansi-styles: 3.2.1 + react-is: 16.13.1 + dev: false + /pretty-format@27.5.1: resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} @@ -34760,7 +38684,15 @@ packages: resolution: {integrity: sha512-cvpcHTc42lcsvOOAzd3XuNWTcvk1Jmnzqeu+WsOuiPmxUJTnkbAcFNsRKvEpBEUFVUgy/GTZLulZDcDEi+CIlA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/schemas': 29.4.3 + '@jest/schemas': 29.6.3 + ansi-styles: 5.2.0 + react-is: 18.2.0 + + /pretty-format@29.7.0: + resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 react-is: 18.2.0 @@ -34769,7 +38701,7 @@ packages: engines: {node: '>=4'} dev: true - /prism-react-renderer@1.3.5(react@18.1.0): + /prism-react-renderer@1.3.5(react@18.3.1): resolution: {integrity: sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg==} peerDependencies: react: '>=0.14.9' @@ -34777,7 +38709,7 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: true /prism-themes@1.9.0: @@ -34792,7 +38724,7 @@ packages: /probe.gl@3.5.2: resolution: {integrity: sha512-8lFQVmi7pMQZkqfj8+VjX4GU9HTkyxgRm5/h/xxA/4/IvZPv3qtP996L+awPwZsrPRKEw99t12SvqEHqSls/sA==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@probe.gl/env': 3.5.2 '@probe.gl/log': 3.5.2 '@probe.gl/stats': 3.5.2 @@ -34802,9 +38734,19 @@ packages: engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dev: true + /proc-log@3.0.0: + resolution: {integrity: sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + /process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + /process-okam@0.11.10: + resolution: {integrity: sha512-p8e5nl6/OCeMalVb9dSojND5B9m/nq64WsyUfRmrTdLMKcNYcDN++/2I8WV1mTQDqrh2PQ6tIIb2A7/A38eSvw==} + engines: {node: '>= 0.6.0'} + dev: false + /process-on-spawn@1.0.0: resolution: {integrity: sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==} engines: {node: '>=8'} @@ -34822,7 +38764,6 @@ packages: /progress@2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} engines: {node: '>=0.4.0'} - dev: true /promise-all-reject-late@1.0.1: resolution: {integrity: sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==} @@ -34920,17 +38861,12 @@ packages: forwarded: 0.2.0 ipaddr.js: 1.9.1 - /proxy-compare@2.4.0: - resolution: {integrity: sha512-FD8KmQUQD6Mfpd0hywCOzcon/dbkFP8XBd9F1ycbKtvVsfv6TsFUKJ2eC0Iz2y+KzlkdT1Z8SY6ZSgm07zOyqg==} - dev: true - /proxy-compare@2.5.0: resolution: {integrity: sha512-f1us0OsVAJ3tdIMXGQx2lmseYS4YXe4W+sKF5g5ww/jV+5ogMadPt+sIZ+88Ga9kvMJsrRNWzCrKPpr6pMWYbA==} dev: false /proxy-compare@2.5.1: resolution: {integrity: sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA==} - dev: false /proxy-from-env@1.0.0: resolution: {integrity: sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A==} @@ -34938,7 +38874,6 @@ packages: /proxy-from-env@1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} - dev: true /prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} @@ -34997,16 +38932,13 @@ packages: pump: 2.0.1 dev: true - /punycode@1.3.2: - resolution: {integrity: sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==} + /punycode-okam@1.4.1: + resolution: {integrity: sha512-e4mSfzGfrVBJmhjp+8PHjXIz5WrvEEWB2FT+RJ6YS/ozGttTcnocuj0CtMo3dujWYe2708bTd79zeIrKBtRzCg==} + dev: false /punycode@1.4.1: resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} - /punycode@2.1.1: - resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} - engines: {node: '>=6'} - /punycode@2.3.0: resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} engines: {node: '>=6'} @@ -35034,7 +38966,10 @@ packages: resolution: {integrity: sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==} dev: true - /purgecss-webpack-plugin@4.1.3(webpack@5.76.1): + /pure-rand@6.1.0: + resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} + + /purgecss-webpack-plugin@4.1.3(webpack@5.88.2): resolution: {integrity: sha512-1OHS0WE935w66FjaFSlV06ycmn3/A8a6Q+iVUmmCYAujQ1HPdX+psMXUhASEW0uF1PYEpOlhMc5ApigVqYK08g==} peerDependencies: webpack: '*' @@ -35043,7 +38978,7 @@ packages: optional: true dependencies: purgecss: 4.1.3 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) webpack-sources: 3.2.3 dev: true @@ -35052,19 +38987,23 @@ packages: dependencies: commander: 8.3.0 glob: 7.2.3 - postcss: 8.4.21 + postcss: 8.4.32 postcss-selector-parser: 6.0.10 dev: true /q@1.5.1: resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} engines: {node: '>=0.6.0', teleport: '>=0.2.0'} + deprecated: |- + You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. + + (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) dev: true /qiankun@2.10.1: resolution: {integrity: sha512-EM9u1fW1J/+SUjCNs5Pj+UIL7qoYk+lUWRAJKar3ByFl/Yl6Jwl3ojfNktfQqiSwdMbuER0mqbUwWXSaDiIxIw==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 import-html-entry: 1.14.3 lodash: 4.17.21 single-spa: 5.9.4 @@ -35078,12 +39017,23 @@ packages: optional: true dependencies: react: 18.1.0 + dev: false + + /qrcode.react@3.1.0(react@18.3.1): + resolution: {integrity: sha512-oyF+Urr3oAMUG/OiOuONL3HXM+53wvuH3mtIWQrYmsXoAq0DkvZp2RYUWFSMFtbdOpuS++9v+WAkzNVkMlNW6Q==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + react: + optional: true + dependencies: + react: 18.3.1 /qs@6.10.3: resolution: {integrity: sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==} engines: {node: '>=0.6'} dependencies: - side-channel: 1.0.4 + side-channel: 1.0.6 dev: true /qs@6.11.0: @@ -35092,6 +39042,12 @@ packages: dependencies: side-channel: 1.0.4 + /qs@6.12.1: + resolution: {integrity: sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ==} + engines: {node: '>=0.6'} + dependencies: + side-channel: 1.0.6 + /qs@6.5.3: resolution: {integrity: sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==} engines: {node: '>=0.6'} @@ -35115,11 +39071,6 @@ packages: resolution: {integrity: sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==} engines: {node: '>=0.4.x'} - /querystring@0.2.0: - resolution: {integrity: sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==} - engines: {node: '>=0.4.x'} - deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. - /querystring@0.2.1: resolution: {integrity: sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==} engines: {node: '>=0.4.x'} @@ -35211,7 +39162,16 @@ packages: optional: true dependencies: loader-utils: 2.0.4 - schema-utils: 3.1.1 + schema-utils: 3.3.0 + dev: true + + /rc-align@2.4.5: + resolution: {integrity: sha512-nv9wYUYdfyfK+qskThf4BQUSIadeI/dCsfaMZfNEoxm9HwOIioQ+LyqmMK6jWHAZQgOzMLaqawhuBXlF63vgjw==} + dependencies: + babel-runtime: 6.26.0 + dom-align: 1.12.3 + prop-types: 15.8.1 + rc-util: 4.21.1 dev: true /rc-align@4.0.12(react-dom@17.0.2)(react@17.0.2): @@ -35225,11 +39185,11 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 dom-align: 1.12.3 lodash: 4.17.21 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) resize-observer-polyfill: 1.5.1 @@ -35245,14 +39205,57 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 dom-align: 1.12.3 lodash: 4.17.21 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) resize-observer-polyfill: 1.5.1 + dev: false + + /rc-align@4.0.12(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-3DuwSJp8iC/dgHzwreOQl52soj40LchlfUHtgACOUtwGuoFIOVh6n/sCpfqCU8kO5+iz6qR0YKvjgB8iPdE3aQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + dom-align: 1.12.3 + lodash: 4.17.21 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + resize-observer-polyfill: 1.5.1 + + /rc-animate@2.11.1(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-1NyuCGFJG/0Y+9RKh5y/i/AalUCA51opyyS/jO2seELpgymZm2u9QV3xwODwEuzkmeQ1BDPxMLmYLcTJedPlkQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + css-animation: 1.6.1 + prop-types: 15.8.1 + raf: 3.4.1 + rc-util: 4.21.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-lifecycles-compat: 3.0.4 + dev: true /rc-cascader@3.10.3(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-RBK1u59a2m/RKY8F+UvW9pUXdPv7bCxh2s2DAb81QjXX7TbwSX92Y0tICYo/Bo8fRsAh2g+7RXVf488/98ijkA==} @@ -35265,17 +39268,38 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 array-tree-filter: 2.1.0 classnames: 2.3.2 rc-select: 14.4.3(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.6(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-tree: 5.7.9(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-cascader@3.12.0(react-dom@18.1.0)(react@18.1.0): + /rc-cascader@3.10.3(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-RBK1u59a2m/RKY8F+UvW9pUXdPv7bCxh2s2DAb81QjXX7TbwSX92Y0tICYo/Bo8fRsAh2g+7RXVf488/98ijkA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + array-tree-filter: 2.1.0 + classnames: 2.3.2 + rc-select: 14.4.3(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-cascader@3.12.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-QTeGPTNYX33alozNy9lYg7YKpvYVwquai/mrFRR8mHlHnK7QlqJyMqbs2p7rc5eeKARKMRTUeoN5CfO+Gr9UBw==} peerDependencies: react: '>=16.9.0' @@ -35286,17 +39310,38 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 array-tree-filter: 2.1.0 classnames: 2.3.2 - rc-select: 14.5.2(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.6(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-select: 14.5.2(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-cascader@3.14.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-fCsgjLIQqYZMhFj9UT+x2ZW4uobx7OP5yivcn6Xto5fuxHaldphsryzCeUVmreQOHEo0RP+032Ip9RDzrKVKJA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + array-tree-filter: 2.1.0 + classnames: 2.3.2 + rc-select: 14.7.4(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-cascader@3.5.0(react-dom@18.1.0)(react@18.1.0): + /rc-cascader@3.5.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-rpXnWCfvk7Frh2dBzMoA0c7i0nn6aJU7L2NZo8R8pNkrT0sKgytQSpdtPWP+Pq8IkvwbEd8BU8Z8OnOljcqgZg==} peerDependencies: react: '>=16.9.0' @@ -35307,14 +39352,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 array-tree-filter: 2.1.0 classnames: 2.3.2 - rc-select: 14.1.7(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.5.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.5.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-cascader@3.6.0(react-dom@18.1.0)(react@18.1.0): @@ -35328,16 +39373,37 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 array-tree-filter: 2.1.0 classnames: 2.3.2 rc-select: 14.1.13(react-dom@18.1.0)(react@18.1.0) rc-tree: 5.6.5(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-cascader@3.6.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-p9qwt8E8ZICzPIzyfXF5y7/lbJhRowFj8YhWpdytMomHUZ568duFNwA4H5QVqdC6hg/HIV1YEawOE5jlxSpeww==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + array-tree-filter: 2.1.0 + classnames: 2.3.2 + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.6.5(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-cascader@3.7.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-SFtGpwmYN7RaWEAGTS4Rkc62ZV/qmQGg/tajr/7mfIkleuu8ro9Hlk6J+aA0x1YS4zlaZBtTcSaXM01QMiEV/A==} peerDependencies: @@ -35349,7 +39415,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 array-tree-filter: 2.1.0 classnames: 2.3.2 rc-select: 14.1.13(react-dom@17.0.2)(react@17.0.2) @@ -35369,7 +39435,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 array-tree-filter: 2.1.0 classnames: 2.3.2 rc-select: 14.1.13(react-dom@18.1.0)(react@18.1.0) @@ -35377,8 +39443,29 @@ packages: rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-cascader@3.7.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-SFtGpwmYN7RaWEAGTS4Rkc62ZV/qmQGg/tajr/7mfIkleuu8ro9Hlk6J+aA0x1YS4zlaZBtTcSaXM01QMiEV/A==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + array-tree-filter: 2.1.0 + classnames: 2.3.2 + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-cascader@3.9.0(react-dom@18.1.0)(react@18.1.0): + /rc-cascader@3.9.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-XppS7Vd11l4oqgkIQX2RHAbsR9j+UR7IpjzWhK5wUmweY4w5OsF5RdFlxAb8oC9JsIbK4lBeGLmDWYxfi9S37g==} peerDependencies: react: '>=16.9.0' @@ -35389,14 +39476,24 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 array-tree-filter: 2.1.0 classnames: 2.3.2 - rc-select: 14.3.0(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-select: 14.3.0(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true + + /rc-checkbox@2.0.3: + resolution: {integrity: sha512-sSDV5AcxK5CxBTyUNj9pb0zfhdgLLsWKHwJG18ikeGoIwklcxXvIF6cI/KGVbPLFDa8mPS5WLOlLRqbq/1/ouw==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + prop-types: 15.8.1 + rc-util: 4.21.1 + dev: true /rc-checkbox@2.3.2(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-afVi1FYiGv1U0JlpNH/UaEXdh6WUJjcWokj/nUN2TgG80bfG+MDdbfHKlLcNNba94mbjy2/SXJ1HDgrOkXGAjg==} @@ -35409,7 +39506,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -35425,10 +39522,27 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-checkbox@2.3.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-afVi1FYiGv1U0JlpNH/UaEXdh6WUJjcWokj/nUN2TgG80bfG+MDdbfHKlLcNNba94mbjy2/SXJ1HDgrOkXGAjg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-checkbox@3.0.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-tOEs1+wWDUei7DuP2EsJCZfam5vxMjKTCGcZdXVgsiOcNszc41Esycbo31P0/jFwUAPmd5oPYFWkcnFUCTLZxA==} @@ -35441,14 +39555,62 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-collapse@3.1.4(react-dom@18.1.0)(react@18.1.0): + /rc-checkbox@3.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-tOEs1+wWDUei7DuP2EsJCZfam5vxMjKTCGcZdXVgsiOcNszc41Esycbo31P0/jFwUAPmd5oPYFWkcnFUCTLZxA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-checkbox@3.1.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-PAwpJFnBa3Ei+5pyqMMXdcKYKNBMS+TvSDiLdDnARnMJHC8ESxwPfm4Ao1gJiKtWLdmGfigascnCpwrHFgoOBQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-collapse@1.9.3(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-8cG+FzudmgFCC9zRGKXJZA36zoI9Dmyjp6UDi8N80sXUch0JOpsZDxgcFzw4HPpPpK/dARtTilEe9zyuspnW0w==} + dependencies: + classnames: 2.3.2 + css-animation: 1.6.1 + prop-types: 15.8.1 + rc-animate: 2.11.1(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rc-collapse@3.1.4(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-WayrhswKMwuJab9xbqFxXTgV0m6X8uOPEO6zm/GJ5YJiJ/wIh/Dd2VtWeI06HYUEnTFv0HNcYv+zWbB+p6OD2A==} peerDependencies: react: '>=16.9.0' @@ -35459,12 +39621,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) shallowequal: 1.1.0 dev: false @@ -35479,10 +39641,10 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-motion: 2.7.3(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) shallowequal: 1.1.0 @@ -35498,15 +39660,35 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 dev: false + /rc-collapse@3.3.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-nkxjhpYAAwEVbBvZ/qoatLecD0PpRtQ5ja9G+FP1QmsWhs/4VCruhjvRdSpMn9vfluKUnePe3PEy8eeqTeuE0g==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 + dev: false + /rc-collapse@3.4.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-jpTwLgJzkhAgp2Wpi3xmbTbbYExg6fkptL67Uu5LCRVEj6wqmy0DHTjjeynsjOLsppHGHu41t1ELntZ0lEvS/Q==} peerDependencies: @@ -35518,13 +39700,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 + dev: false + + /rc-collapse@3.4.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-jpTwLgJzkhAgp2Wpi3xmbTbbYExg6fkptL67Uu5LCRVEj6wqmy0DHTjjeynsjOLsppHGHu41t1ELntZ0lEvS/Q==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 /rc-collapse@3.5.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-/TNiT3DW1t3sUCiVD/DPUYooJZ3BLA93/2rZsB3eM2bGJCCla2X9D2E4tgm7LGMQGy5Atb2lMUn2FQuvQNvavQ==} @@ -35537,14 +39739,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-collapse@3.5.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-/TNiT3DW1t3sUCiVD/DPUYooJZ3BLA93/2rZsB3eM2bGJCCla2X9D2E4tgm7LGMQGy5Atb2lMUn2FQuvQNvavQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-collapse@3.7.0(react-dom@18.1.0)(react@18.1.0): + /rc-collapse@3.7.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Cir1c89cENiK5wryd9ut+XltrIfx/+KH1/63uJIVjuXkgfrIvIy6W1fYGgEYtttbHW2fEfxg1s31W+Vm98fSRw==} peerDependencies: react: '>=16.9.0' @@ -35555,15 +39776,15 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-dialog@8.8.2(react-dom@18.1.0)(react@18.1.0): + /rc-dialog@8.8.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-n1waqBDDKqCCcPCDGycahfawF00WqgtXTXUwxrLStUpfQAo7nzkAvTq9voT78X2qN83UYvrMg1TWCuTueBp+sg==} peerDependencies: react: '>=16.9.0' @@ -35574,12 +39795,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-dialog@8.9.0(react-dom@17.0.2)(react@17.0.2): @@ -35593,10 +39814,10 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-motion: 2.7.3(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -35611,14 +39832,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-dialog@8.9.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-Cp0tbJnrvPchJfnwIvOMWmJ4yjX3HWFatO6oBFD1jx8QkgsQCR0p8nUWAKdd3seLJhEC39/v56kZaEjwp9muoQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-dialog@9.0.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-s3U+24xWUuB6Bn2Lk/Qt6rufy+uT+QvWkiFhNBcO9APLxcFFczWamaq7x9h8SCuhfc1nHcW4y8NbMsnAjNnWyg==} peerDependencies: @@ -35630,13 +39870,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 '@rc-component/portal': 1.0.2(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-dialog@9.0.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-s3U+24xWUuB6Bn2Lk/Qt6rufy+uT+QvWkiFhNBcO9APLxcFFczWamaq7x9h8SCuhfc1nHcW4y8NbMsnAjNnWyg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + '@rc-component/portal': 1.0.2(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-dialog@9.1.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-5ry+JABAWEbaKyYsmITtrJbZbJys8CtMyzV8Xn4LYuXMeUx5XVHNyJRoqLFE4AzBuXXzOWeaC49cg+XkxK6kHA==} @@ -35649,15 +39909,35 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.1.0(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-dialog@9.1.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-5ry+JABAWEbaKyYsmITtrJbZbJys8CtMyzV8Xn4LYuXMeUx5XVHNyJRoqLFE4AzBuXXzOWeaC49cg+XkxK6kHA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-drawer@4.4.3(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-FYztwRs3uXnFOIf1hLvFxIQP9MiZJA+0w+Os8dfDh/90X7z/HqP/Yg+noLCIeHEbKln1Tqelv8ymCAN24zPcfQ==} peerDependencies: @@ -35669,13 +39949,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-drawer@4.4.3(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-FYztwRs3uXnFOIf1hLvFxIQP9MiZJA+0w+Os8dfDh/90X7z/HqP/Yg+noLCIeHEbKln1Tqelv8ymCAN24zPcfQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-drawer@5.1.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-pU3Tsn99pxGdYowXehzZbdDVE+4lDXSGb7p8vA9mSmr569oc2Izh4Zw5vLKSe/Xxn2p5MSNbLVqD4tz+pK6SOw==} peerDependencies: @@ -35687,14 +39985,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-motion: 2.7.3(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) - /rc-drawer@5.1.0(react-dom@18.1.0)(react@18.1.0): + /rc-drawer@5.1.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-pU3Tsn99pxGdYowXehzZbdDVE+4lDXSGb7p8vA9mSmr569oc2Izh4Zw5vLKSe/Xxn2p5MSNbLVqD4tz+pK6SOw==} peerDependencies: react: '>=16.9.0' @@ -35705,12 +40003,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-drawer@6.0.0(react-dom@18.1.0)(react@18.1.0): @@ -35724,13 +40022,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.0.2(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-drawer@6.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-4k/g1q+yfATY9fgPB7ec+OTj51NF3BW/HzESkGtZNQZurMJr/uAHe0T4nsQ5Xd1ESR0MlS6lbQn4iB+L4sZFOg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-drawer@6.1.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-mYsTVT8Amy0LRrpVEv7gI1hOjtfMSO/qHAaCDzFx9QBLnms3cAQLJkaxRWM+Eq99oyLhU/JkgoqTg13bc4ogOQ==} @@ -35750,9 +40068,10 @@ packages: rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-drawer@6.2.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-spPkZ3WvP0U0vy5dyzSwlUJ/+vLFtjP/cTwSwejhQRoDBaexSZHsBhELoCZcEggI7LQ7typmtG30lAue2HEhvA==} + /rc-drawer@6.1.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-mYsTVT8Amy0LRrpVEv7gI1hOjtfMSO/qHAaCDzFx9QBLnms3cAQLJkaxRWM+Eq99oyLhU/JkgoqTg13bc4ogOQ==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -35763,15 +40082,34 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.1.1(react-dom@18.1.0)(react@18.1.0) + '@rc-component/portal': 1.0.2(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-drawer@6.2.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-spPkZ3WvP0U0vy5dyzSwlUJ/+vLFtjP/cTwSwejhQRoDBaexSZHsBhELoCZcEggI7LQ7typmtG30lAue2HEhvA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-dropdown@3.5.2(react-dom@18.1.0)(react@18.1.0): + /rc-dropdown@3.5.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Ty4LsXjkspZuFJSRx3blCLLCDicXM5qds6F1odgEa+jcjC+OJKHQGnvE4FqtoljPaqWm4wG78pbgXH6Ddh2DkA==} peerDependencies: react: '>=16.11.0' @@ -35782,12 +40120,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-dropdown@4.0.1(react-dom@17.0.2)(react@17.0.2): @@ -35801,7 +40139,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-trigger: 5.3.1(react-dom@17.0.2)(react@17.0.2) rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) @@ -35819,15 +40157,16 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-dropdown@4.1.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-VZjMunpBdlVzYpEdJSaV7WM7O0jf8uyDjirxXLZRNZ+tAC+NzD3PXPEtliFwGzVwBBdCmGuSqiS9DWcOLxQ9tw==} + /rc-dropdown@4.0.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-OdpXuOcme1rm45cR0Jzgfl1otzmU4vuBVb+etXM8vcaULGokAKVpKlw8p6xzspG7jGd/XxShvq+N3VNEfk/l5g==} peerDependencies: react: '>=16.11.0' react-dom: '>=16.11.0' @@ -35837,12 +40176,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.18.3 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-dropdown@4.1.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-VZjMunpBdlVzYpEdJSaV7WM7O0jf8uyDjirxXLZRNZ+tAC+NzD3PXPEtliFwGzVwBBdCmGuSqiS9DWcOLxQ9tw==} + peerDependencies: + react: '>=16.11.0' + react-dom: '>=16.11.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-field-form@1.26.7(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-CIb7Gw+DG9R+g4HxaDGYHhOjhjQoU2mGU4y+UM2+KQ3uRz9HrrNgTspGvNynn3UamsYcYcaPWZJmiJ6VklkT/w==} @@ -35856,13 +40213,32 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 async-validator: 4.2.5 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-field-form@1.26.7(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-CIb7Gw+DG9R+g4HxaDGYHhOjhjQoU2mGU4y+UM2+KQ3uRz9HrrNgTspGvNynn3UamsYcYcaPWZJmiJ6VklkT/w==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + async-validator: 4.2.5 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-field-form@1.27.1(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-RShegnwFu6TH8tl2olCxn+B4Wyh5EiQH8c/7wucbkLNyue05YiH5gomUAg1vbZjp71yFKwegClctsEG5CNBWAA==} engines: {node: '>=8.x'} @@ -35875,7 +40251,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 async-validator: 4.2.5 rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -35893,11 +40269,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 async-validator: 4.2.5 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-field-form@1.27.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-RShegnwFu6TH8tl2olCxn+B4Wyh5EiQH8c/7wucbkLNyue05YiH5gomUAg1vbZjp71yFKwegClctsEG5CNBWAA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + async-validator: 4.2.5 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-field-form@1.29.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-gXNkthHMUjJ7gDKYmD/lJWJrpMqAjiEPQE4QmlOuZoiHF51LybCL/y+iAmLXpdEjPfJ41WtZBH5hZMUEnEnHXA==} @@ -35911,14 +40306,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 async-validator: 4.2.5 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-field-form@1.32.2(react-dom@18.1.0)(react@18.1.0): + /rc-field-form@1.29.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-gXNkthHMUjJ7gDKYmD/lJWJrpMqAjiEPQE4QmlOuZoiHF51LybCL/y+iAmLXpdEjPfJ41WtZBH5hZMUEnEnHXA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + async-validator: 4.2.5 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-field-form@1.32.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-SzqG1YGyD2P42ztZJ7qoPQp6FV9bD51RUdKGG/5xwybU1wbFdgWTqiMXkS8UR9L4GwXVMKh5PaF2I4EBXd/Rng==} engines: {node: '>=8.x'} peerDependencies: @@ -35930,14 +40344,39 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 async-validator: 4.2.5 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-field-form@1.36.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-tCF/JjUsnxW80Gk4E4ZH74ONsaQMxVTRtui6XhQB8DJc4FHWLLa5pP8zwhxtPKC5NaO0QZ0Cv79JggDubn6n2g==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + async-validator: 4.2.5 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-image@5.13.0(react-dom@18.1.0)(react@18.1.0): + /rc-gesture@0.0.22: + resolution: {integrity: sha512-6G6qrCE0MUTXyjh/powj91XkjRjoFL4HiJLPU5lALXHvGX+/efcUjGYUrHrrw0mwQdmrmg4POqnY/bibns+G3g==} + dependencies: + babel-runtime: 6.26.0 + dev: true + + /rc-image@5.13.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-iZTOmw5eWo2+gcrJMMcnd7SsxVHl3w5xlyCgsULUdJhJbnuI8i/AL0tVOsE7aLn9VfOh1qgDT3mC2G75/c7mqg==} peerDependencies: react: '>=16.9.0' @@ -35949,16 +40388,16 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.0.2(react-dom@18.1.0)(react@18.1.0) + '@rc-component/portal': 1.0.2(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-dialog: 9.0.2(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dialog: 9.0.2(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-image@5.15.2(react-dom@18.1.0)(react@18.1.0): + /rc-image@5.15.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-QaeWP20v51eGyrkl24PyusTmbMk42A3vGPl7hEa15jcQjECOX36tLtvLk5sjl3vaLQpMskB8BbwiqPsN7I7aow==} peerDependencies: react: '>=16.9.0' @@ -35969,14 +40408,15 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.0.2(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-dialog: 9.0.2(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dialog: 9.0.2(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true /rc-image@5.16.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-11DOye57IgTXh2yTsmxFNynZJG3tdx8RZnnaqb38eYWrBPPyhVHIuURxyiSZ8B68lEUAggR7SBA0Zb95KP/CyQ==} @@ -35989,17 +40429,38 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/portal': 1.1.0(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-dialog: 9.1.0(react-dom@18.1.0)(react@18.1.0) rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-image@5.17.1(react-dom@18.1.0)(react@18.1.0): + /rc-image@5.16.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-11DOye57IgTXh2yTsmxFNynZJG3tdx8RZnnaqb38eYWrBPPyhVHIuURxyiSZ8B68lEUAggR7SBA0Zb95KP/CyQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.0(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-dialog: 9.1.0(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-image@5.17.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-oR4eviLyQxd/5A7pn843w2/Z1wuBA27L2lS4agq0sjl2z97ssNIVEzRzgwgB0ZxVZG/qSu9Glit2Zgzb/n+blQ==} peerDependencies: react: '>=16.9.0' @@ -36010,17 +40471,17 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/portal': 1.1.0(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-dialog: 9.1.0(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dialog: 9.1.0(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-image@5.6.4(react-dom@18.1.0)(react@18.1.0): + /rc-image@5.6.4(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-BSVn2b/JSJGOTWbPVA0WAOAXGIfeKO5jLt7N+aszPt9Q5I0a+O7qLlLpjwxPWF7l0FzIaqiRYobKQGvF4EdmUw==} peerDependencies: react: '>=16.9.0' @@ -36031,12 +40492,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-dialog: 8.9.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dialog: 8.9.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-image@5.7.0(react-dom@17.0.2)(react@17.0.2): @@ -36050,10 +40511,10 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-dialog: 8.9.0(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -36068,14 +40529,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-dialog: 8.9.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-image@5.7.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-v6dzSgYfYrH4liKmOZKZZO+x21sJ9KPXNinBfkAoQg2Ihcd5QZ+P/JjB7v60X981XTPGjegy8U17Z8VUX4V36g==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-dialog: 8.9.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-image@5.9.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-qyHXhIc7eotsX8HLm0bRaSO5J4Lb2wE/FafFQMJ+SnMtRQy1uKjEwOJ8UADHyyyfikd4WtT4fghN6JxiVCYslA==} peerDependencies: @@ -36087,12 +40567,52 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-dialog: 9.0.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-image@5.9.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-qyHXhIc7eotsX8HLm0bRaSO5J4Lb2wE/FafFQMJ+SnMtRQy1uKjEwOJ8UADHyyyfikd4WtT4fghN6JxiVCYslA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-dialog: 9.0.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-image@7.1.3(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-foMl1rcit1F0+vgxE5kf0c8TygQcHhILsOohQUL+JMUbzOo3OBFRcehJudYbqbCTArzCecS8nA1irUU9vvgQbg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/portal': 1.1.1(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-dialog: 9.1.0(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false /rc-input-number@7.3.4(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-W9uqSzuvJUnz8H8vsVY4kx+yK51SsAxNTwr8SNH4G3XqQNocLVmKIibKFRjocnYX1RDHMND9FFbgj2h7E7nvGA==} @@ -36105,13 +40625,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-input-number@7.3.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-W9uqSzuvJUnz8H8vsVY4kx+yK51SsAxNTwr8SNH4G3XqQNocLVmKIibKFRjocnYX1RDHMND9FFbgj2h7E7nvGA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-input-number@7.3.9(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-u0+miS+SATdb6DtssYei2JJ1WuZME+nXaG6XGtR8maNyW5uGDytfDu60OTWLQEb0Anv/AcCzehldV8CKmKyQfA==} peerDependencies: @@ -36123,7 +40661,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -36140,11 +40678,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-input-number@7.3.9(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-u0+miS+SATdb6DtssYei2JJ1WuZME+nXaG6XGtR8maNyW5uGDytfDu60OTWLQEb0Anv/AcCzehldV8CKmKyQfA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-input-number@7.4.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-yGturTw7WGP+M1GbJ+UTAO7L4buxeW6oilhL9Sq3DezsRS8/9qec4UiXUbeoiX9bzvRXH11JvgskBtxSp4YSNg==} @@ -36157,12 +40713,51 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/mini-decimal': 1.0.1 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-input-number@7.4.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-yGturTw7WGP+M1GbJ+UTAO7L4buxeW6oilhL9Sq3DezsRS8/9qec4UiXUbeoiX9bzvRXH11JvgskBtxSp4YSNg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/mini-decimal': 1.0.1 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-input-number@8.0.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-TP+G5b7mZtbwXJ/YEZXF/OgbEZ6iqD4+RSuxZJ8VGKGXDcdt0FKIvpFoNQr/knspdFC4OxA0OfsWfFWfN4XSyA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/mini-decimal': 1.0.1 + classnames: 2.3.2 + rc-input: 1.1.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false /rc-input@0.0.1-alpha.7(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-eozaqpCYWSY5LBMwlHgC01GArkVEP+XlJ84OMvdkwUnJBSv83Yxa15pZpn7vACAj84uDC4xOA2CoFdbLuqB08Q==} @@ -36175,13 +40770,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-input@0.0.1-alpha.7(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-eozaqpCYWSY5LBMwlHgC01GArkVEP+XlJ84OMvdkwUnJBSv83Yxa15pZpn7vACAj84uDC4xOA2CoFdbLuqB08Q==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-input@0.1.2(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-ZPmwcFspgfYpUfbSx3KnLk9gImBcLOrlQCr4oTJ4jBoIXgJLTfm26yelzRgBJewhkvD8uJbgX0sQ/yOzuOHnJg==} peerDependencies: @@ -36193,13 +40806,13 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) - /rc-input@0.1.2(react-dom@18.1.0)(react@18.1.0): + /rc-input@0.1.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-ZPmwcFspgfYpUfbSx3KnLk9gImBcLOrlQCr4oTJ4jBoIXgJLTfm26yelzRgBJewhkvD8uJbgX0sQ/yOzuOHnJg==} peerDependencies: react: '>=16.0.0' @@ -36210,11 +40823,11 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-input@0.1.4(react-dom@18.1.0)(react@18.1.0): @@ -36228,13 +40841,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-input@0.1.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-FqDdNz+fV2dKNgfXzcSLKvC+jEs1709t7nD+WdfjrdSaOcefpgc7BUJYadc3usaING+b7ediMTfKxuJBsEFbXA==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-input@0.2.2(react-dom@18.1.0)(react@18.1.0): + /rc-input@0.2.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-xgkVcFgtRO0Hl9hmvslZhObNyxbSpTmy3nR1Tk4XrjjZ9lFJ7GcJBy6ss30Pdb0oX36cHzLN8I7VCjBGeRNB9A==} peerDependencies: react: '>=16.0.0' @@ -36245,11 +40876,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true /rc-input@1.0.4(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-clY4oneVHRtKHYf/HCxT/MO+4BGzCIywSNLosXWOm7fcQAS0jQW7n0an8Raa8JMB8kpxc8m28p7SNwFZmlMj6g==} @@ -36262,13 +40894,48 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-input@1.0.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-clY4oneVHRtKHYf/HCxT/MO+4BGzCIywSNLosXWOm7fcQAS0jQW7n0an8Raa8JMB8kpxc8m28p7SNwFZmlMj6g==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-input@1.1.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-NTR1Z4em681L8/ewb2KR80RykSmN8I2mzqzJDCoUmTrV1BB9Hk5d7ha4TnfgdEPPL148N+603sW2LExSXk1IbA==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-mentions@1.10.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-oMlYWnwXSxP2NQVlgxOTzuG/u9BUc3ySY78K3/t7MNhJWpZzXTao+/Bic6tyZLuNCO89//hVQJBdaR2rnFQl6Q==} peerDependencies: @@ -36280,12 +40947,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-menu: 9.6.4(react-dom@17.0.2)(react@17.0.2) rc-textarea: 0.4.5(react-dom@17.0.2)(react@17.0.2) rc-trigger: 5.3.1(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -36300,16 +40967,37 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-menu: 9.6.4(react-dom@18.1.0)(react@18.1.0) rc-textarea: 0.4.5(react-dom@18.1.0)(react@18.1.0) rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-mentions@1.13.1(react-dom@18.1.0)(react@18.1.0): + /rc-mentions@1.10.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-oMlYWnwXSxP2NQVlgxOTzuG/u9BUc3ySY78K3/t7MNhJWpZzXTao+/Bic6tyZLuNCO89//hVQJBdaR2rnFQl6Q==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.4.5(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-mentions@1.13.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-FCkaWw6JQygtOz0+Vxz/M/NWqrWHB9LwqlY2RtcuFqWJNFK9njijOOzTSsBGANliGufVUzx/xuPHmZPBV0+Hgw==} peerDependencies: react: '>=16.9.0' @@ -36322,15 +41010,15 @@ packages: dependencies: '@babel/runtime': 7.21.0 classnames: 2.3.2 - rc-menu: 9.8.2(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 0.4.5(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-menu: 9.8.2(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.4.5(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-mentions@1.7.1(react-dom@18.1.0)(react@18.1.0): + /rc-mentions@1.7.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-JbCS9bTqt6BYN2vfTPythlScLuc42rIlX85n7975RnkfawXlJjskHOlR3o8EpD4asl4KuA2jKTy0dj39DtSVqg==} peerDependencies: react: '>=16.9.0' @@ -36341,14 +41029,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-menu: 9.5.5(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 0.3.7(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-menu: 9.5.5(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.3.7(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-mentions@1.8.0(react-dom@18.1.0)(react@18.1.0): @@ -36362,17 +41050,38 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-menu: 9.6.4(react-dom@18.1.0)(react@18.1.0) rc-textarea: 0.3.7(react-dom@18.1.0)(react@18.1.0) rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-mentions@1.9.2(react-dom@18.1.0)(react@18.1.0): + /rc-mentions@1.8.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-ch7yfMMvx2UXy+EvE4axm0Vp6VlVZ30WLrZtLtV/Eb1ty7rQQRzNzCwAHAMyw6tNKTMs9t9sF68AVjAzQ0rvJw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.3.7(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-mentions@1.9.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-uxb/lzNnEGmvraKWNGE6KXMVXvt8RQv9XW8R0Dqi3hYsyPiAZeHRCHQKdLARuk5YBhFhZ6ga55D/8XuY367g3g==} peerDependencies: react: '>=16.9.0' @@ -36383,17 +41092,17 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-menu: 9.6.4(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 0.3.7(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 0.3.7(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-mentions@2.0.0(react-dom@18.1.0)(react@18.1.0): + /rc-mentions@2.0.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-58NSeM6R5MrgYAhR2TH27JgAN7ivp3iBTmty3q6gvrrGHelPMdGxpJ5aH7AIlodCrPWLAm1lT4XoiuI4s9snXA==} peerDependencies: react: '>=16.9.0' @@ -36404,15 +41113,16 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-input: 0.2.2(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.8.2(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 1.0.1(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-input: 0.2.2(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.8.4(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.2.2(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true /rc-mentions@2.2.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-R7ncCldr02uKgJBBPlXdtnOGQIjZ9C3uoIMi4fabU3CPFdmefYlNF6QM4u2AzgcGt8V0KkoHTN5T6HPdUpet8g==} @@ -36425,18 +41135,40 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-input: 1.0.4(react-dom@18.1.0)(react@18.1.0) rc-menu: 9.8.4(react-dom@18.1.0)(react@18.1.0) rc-textarea: 1.2.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-mentions@2.3.0(react-dom@18.1.0)(react@18.1.0): + /rc-mentions@2.2.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-R7ncCldr02uKgJBBPlXdtnOGQIjZ9C3uoIMi4fabU3CPFdmefYlNF6QM4u2AzgcGt8V0KkoHTN5T6HPdUpet8g==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-input: 1.0.4(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.8.4(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.2.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-mentions@2.3.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-gNpsSKsBHSXvyAA1ZowVTqXSWUIw7+OI9wmjL87KcYURvtm9nDo8R0KtOc2f1PT7q9McUpFzhm6AvQdIly0aRA==} peerDependencies: react: '>=16.9.0' @@ -36447,18 +41179,61 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-input: 1.0.4(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.9.2(react-dom@18.1.0)(react@18.1.0) - rc-textarea: 1.2.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-input: 1.0.4(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.9.2(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.2.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-mentions@2.5.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-rERXsbUTNVrb5T/iDC0ki/SRGWJnOVraDy6O25Us3FSpuUZ3uq2TPZB4fRk0Hss5kyiEPzz2sprhkI4b+F4jUw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-input: 1.1.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.10.0(react-dom@18.3.1)(react@18.3.1) + rc-textarea: 1.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-menu@9.10.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-g27kpXaAoJh/fkPZF65/d4V+w4DhDeqomBdPcGnkFAcJnEM4o21TnVccrBUoDedLKzC7wJRw1Q7VTqEsfEufmw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-menu@9.11.1(react-dom@18.1.0)(react@18.1.0): + /rc-menu@9.11.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-jq9I3XkPKgFpsn8MYko+OAjnrNxzQGQauy0MNysYZ5iw5JGeg5wwCP/toZX2ZWQwxNUfye14mY/uVLE6HCcQlQ==} peerDependencies: react: '>=16.9.0' @@ -36469,17 +41244,17 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-overflow: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.36.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: true - /rc-menu@9.5.5(react-dom@18.1.0)(react@18.1.0): + /rc-menu@9.5.5(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-wj2y2BAKwSMyWXO3RBf9sNN5V+DFWxFl45Ma6qQEHA5nwwh7p07bNgc6AAJc+L1+LAz+rWz3AU8PYyT17hMHCw==} peerDependencies: react: '>=16.9.0' @@ -36490,14 +41265,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) shallowequal: 1.1.0 dev: false @@ -36512,12 +41287,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) + rc-motion: 2.7.3(react-dom@17.0.2)(react@17.0.2) rc-overflow: 1.2.8(react-dom@17.0.2)(react@17.0.2) rc-trigger: 5.3.1(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) shallowequal: 1.1.0 @@ -36533,17 +41308,39 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 + dev: false + + /rc-menu@9.6.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-6DiNAjxjVIPLZXHffXxxcyE15d4isRL7iQ1ru4MqYDH2Cqc5bW96wZOdMydFtGLyDdnmEQ9jVvdCE9yliGvzkw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.2.8(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 - /rc-menu@9.8.1(react-dom@18.1.0)(react@18.1.0): + /rc-menu@9.8.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-179weouypfjWJSRvvoo/vPy+StojsMzK2XC5jRNhL1ryt/N/8wAFESte8K6jZJkNp9DHDLFTe+dCGmikKpiFuA==} peerDependencies: react: '>=16.9.0' @@ -36556,12 +41353,12 @@ packages: dependencies: '@babel/runtime': 7.21.0 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.2.8(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) shallowequal: 1.1.0 dev: false @@ -36605,6 +41402,27 @@ packages: rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-menu@9.8.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-EahOJVjLuEnJsThoPN+mGnVm431RzVzDLZWHRS/YnXTQULa7OsgdJa/Y7qXxc3Z5sz8mgT6xYtgpmBXLxrZFaQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.21.0 + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.2.8(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-menu@9.8.4(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-lmw2j8I2fhdIzHmC9ajfImfckt0WDb2KVJJBBRIsxPEw2kGkEfjLMUoB1NgiNT/Q5cC8PdjGOGQjHJIJMwyNMw==} @@ -36617,17 +41435,37 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) rc-trigger: 5.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-menu@9.9.2(react-dom@18.1.0)(react@18.1.0): + /rc-menu@9.8.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-lmw2j8I2fhdIzHmC9ajfImfckt0WDb2KVJJBBRIsxPEw2kGkEfjLMUoB1NgiNT/Q5cC8PdjGOGQjHJIJMwyNMw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.2.8(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-menu@9.9.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-kVJwaQn5VUu6DIddxd/jz3QupTPg0tNYq+mpFP8wYsRF5JgzPA9fPVw+CfwlTPwA1w7gzEY42S8pj6M3uev5CQ==} peerDependencies: react: '>=16.9.0' @@ -36638,14 +41476,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-motion@2.6.0(react-dom@18.1.0)(react@18.1.0): @@ -36659,13 +41497,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-motion@2.6.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-1MDWA9+i174CZ0SIDenSYm2Wb9YbRkrexjZWR0CUFu7D6f23E8Y0KsTgk9NGOLJsGak5ELZK/Y5lOlf5wQdzbw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-motion@2.6.2(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-4w1FaX3dtV749P8GwfS4fYnFG4Rb9pxvCYPc/b2fw1cmlHJWNNgOFIz7ysiD+eOrzJSvnLJWlNQQncpNMXwwpg==} peerDependencies: @@ -36677,7 +41533,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -36694,14 +41550,15 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-motion@2.7.3(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-2xUvo8yGHdOHeQbdI8BtBsCIrWKchEmFEIskf0nmHtJsou+meLd/JE+vnvSX2JxcBrJtXY2LuBpxAOxrbY/wMQ==} + /rc-motion@2.6.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-4w1FaX3dtV749P8GwfS4fYnFG4Rb9pxvCYPc/b2fw1cmlHJWNNgOFIz7ysiD+eOrzJSvnLJWlNQQncpNMXwwpg==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -36711,15 +41568,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-notification@4.6.0(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-xF3MKgIoynzjQAO4lqsoraiFo3UXNYlBfpHs0VWvwF+4pimen9/H1DYLN2mfRWhHovW6gRpla73m2nmyIqAMZQ==} - engines: {node: '>=8.x'} + /rc-motion@2.7.3(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-2xUvo8yGHdOHeQbdI8BtBsCIrWKchEmFEIskf0nmHtJsou+meLd/JE+vnvSX2JxcBrJtXY2LuBpxAOxrbY/wMQ==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -36729,16 +41585,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) - /rc-notification@4.6.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-xF3MKgIoynzjQAO4lqsoraiFo3UXNYlBfpHs0VWvwF+4pimen9/H1DYLN2mfRWhHovW6gRpla73m2nmyIqAMZQ==} - engines: {node: '>=8.x'} + /rc-motion@2.7.3(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-2xUvo8yGHdOHeQbdI8BtBsCIrWKchEmFEIskf0nmHtJsou+meLd/JE+vnvSX2JxcBrJtXY2LuBpxAOxrbY/wMQ==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -36748,15 +41602,32 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-notification@5.0.2(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-74wUFiLlyr6lRGEY1m1BaTiDp+0lIT4FRAblMnh9FApyK2JGdsSLbrQ/1rgM7d2N/IX5UIr8kLLW3TdXxFt/jQ==} + /rc-motion@2.7.3(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-2xUvo8yGHdOHeQbdI8BtBsCIrWKchEmFEIskf0nmHtJsou+meLd/JE+vnvSX2JxcBrJtXY2LuBpxAOxrbY/wMQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-notification@4.6.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-xF3MKgIoynzjQAO4lqsoraiFo3UXNYlBfpHs0VWvwF+4pimen9/H1DYLN2mfRWhHovW6gRpla73m2nmyIqAMZQ==} engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' @@ -36767,15 +41638,35 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + + /rc-notification@4.6.0(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-xF3MKgIoynzjQAO4lqsoraiFo3UXNYlBfpHs0VWvwF+4pimen9/H1DYLN2mfRWhHovW6gRpla73m2nmyIqAMZQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-notification@5.0.4(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-3535oellIRlt1LspERfK8yvCqb8Gio3R02rULciaSc1xe3H7ArTU/khlUTv1ddGzua4HhmF4D4Rwz/+mBxETvg==} + /rc-notification@4.6.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-xF3MKgIoynzjQAO4lqsoraiFo3UXNYlBfpHs0VWvwF+4pimen9/H1DYLN2mfRWhHovW6gRpla73m2nmyIqAMZQ==} engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' @@ -36786,14 +41677,72 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-notification@5.0.2(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-74wUFiLlyr6lRGEY1m1BaTiDp+0lIT4FRAblMnh9FApyK2JGdsSLbrQ/1rgM7d2N/IX5UIr8kLLW3TdXxFt/jQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-notification@5.0.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-74wUFiLlyr6lRGEY1m1BaTiDp+0lIT4FRAblMnh9FApyK2JGdsSLbrQ/1rgM7d2N/IX5UIr8kLLW3TdXxFt/jQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-notification@5.0.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-3535oellIRlt1LspERfK8yvCqb8Gio3R02rULciaSc1xe3H7ArTU/khlUTv1ddGzua4HhmF4D4Rwz/+mBxETvg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-overflow@1.2.8(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-QJ0UItckWPQ37ZL1dMEBAdY1dhfTXFL9k6oTTcyydVwoUNMnMqCGqnRNA98axSr/OeDKqR6DVFyi8eA5RQI/uQ==} peerDependencies: @@ -36805,10 +41754,10 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-resize-observer: 1.2.0(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-resize-observer: 1.3.1(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -36823,12 +41772,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-overflow@1.2.8(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-QJ0UItckWPQ37ZL1dMEBAdY1dhfTXFL9k6oTTcyydVwoUNMnMqCGqnRNA98axSr/OeDKqR6DVFyi8eA5RQI/uQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-overflow@1.3.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-RY0nVBlfP9CkxrpgaLlGzkSoh9JhjJLu6Icqs9E7CW6Ewh9s0peF9OHIex4OhfoPsR92LR0fN6BlCY9Z4VoUtA==} @@ -36841,13 +41809,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.36.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) - dev: true + dev: false + + /rc-overflow@1.3.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-RY0nVBlfP9CkxrpgaLlGzkSoh9JhjJLu6Icqs9E7CW6Ewh9s0peF9OHIex4OhfoPsR92LR0fN6BlCY9Z4VoUtA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-pagination@3.1.16(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-GFcHXJ7XxeJDf9B+ndP4PRDt46maSSgYhiwofBMiIGKIlBhJ0wfu8DMCEvaWJJLpI2u4Gb6zF1dHpiqPFrosPg==} @@ -36860,12 +41846,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-pagination@3.1.16(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-GFcHXJ7XxeJDf9B+ndP4PRDt46maSSgYhiwofBMiIGKIlBhJ0wfu8DMCEvaWJJLpI2u4Gb6zF1dHpiqPFrosPg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-pagination@3.1.17(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-/BQ5UxcBnW28vFAcP2hfh+Xg15W0QZn8TWYwdCApchMH1H0CxiaUUcULP8uXcFM1TygcdKWdt3JqsL9cTAfdkQ==} peerDependencies: @@ -36877,7 +41880,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -36893,12 +41896,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-pagination@3.1.17(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-/BQ5UxcBnW28vFAcP2hfh+Xg15W0QZn8TWYwdCApchMH1H0CxiaUUcULP8uXcFM1TygcdKWdt3JqsL9cTAfdkQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-pagination@3.2.0(react-dom@18.1.0)(react@18.1.0): + /rc-pagination@3.2.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-5tIXjB670WwwcAJzAqp2J+cOBS9W3cH/WU1EiYwXljuZ4vtZXKlY2Idq8FZrnYBz8KhN3vwPo9CoV/SJS6SL1w==} peerDependencies: react: '>=16.9.0' @@ -36911,8 +41931,8 @@ packages: dependencies: '@babel/runtime': 7.21.0 classnames: 2.3.2 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-pagination@3.3.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-eI4dSeB3OrFxll7KzWa3ZH63LV2tHxt0AUmZmDwuI6vc3CK5lZhaKUYq0fRowb5586hN+L26j5WZoSz9cwEfjg==} @@ -36925,13 +41945,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-pagination@3.5.0(react-dom@18.1.0)(react@18.1.0): + /rc-pagination@3.3.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-eI4dSeB3OrFxll7KzWa3ZH63LV2tHxt0AUmZmDwuI6vc3CK5lZhaKUYq0fRowb5586hN+L26j5WZoSz9cwEfjg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-pagination@3.5.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-lUBVtVVUn7gGsq4mTyVpcZQr+AMcljbMiL/HcCmSdFrcsK0iZVKwwbXDxhz2IV0JXUs9Hzepr5sQFaF+9ad/pQ==} peerDependencies: react: '>=16.9.0' @@ -36942,11 +41979,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-pagination@3.6.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-R/sUnKKXx1Nm4kZfUKS3YKa7yEPF1ZkVB/AynQaHt+nMER7h9wPTfliDJFdYo+RM/nk2JD4Yc5QpUq8fIQHeug==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-picker@2.6.10(react-dom@18.1.0)(react@18.1.0): @@ -36961,18 +42016,42 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 date-fns: 2.28.0 dayjs: 1.11.7 moment: 2.29.4 rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 dev: false + /rc-picker@2.6.10(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-9wYtw0DFWs9FO92Qh2D76P0iojUr8ZhLOtScUeOit6ks/F+TBLrOC1uze3IOu+u9gbDAjmosNWLKbBzx/Yuv2w==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + date-fns: 2.28.0 + dayjs: 1.11.7 + moment: 2.29.4 + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 + dev: false + /rc-picker@2.6.11(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-INJ7ULu+Kj4UgqbcqE8Q+QpMw55xFf9kkyLBHJFk0ihjJpAV4glialRfqHE7k4KX2BWYPQfpILwhwR14x2EiRQ==} engines: {node: '>=8.x'} @@ -36985,13 +42064,13 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 date-fns: 2.28.0 dayjs: 1.11.7 moment: 2.29.4 rc-trigger: 5.3.1(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) shallowequal: 1.1.0 @@ -37008,18 +42087,42 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 date-fns: 2.28.0 dayjs: 1.11.7 moment: 2.29.4 rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 + dev: false + + /rc-picker@2.6.11(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-INJ7ULu+Kj4UgqbcqE8Q+QpMw55xFf9kkyLBHJFk0ihjJpAV4glialRfqHE7k4KX2BWYPQfpILwhwR14x2EiRQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + date-fns: 2.28.0 + dayjs: 1.11.7 + moment: 2.29.4 + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 - /rc-picker@2.7.0(react-dom@18.1.0)(react@18.1.0): + /rc-picker@2.7.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-oZH6FZ3j4iuBxHB4NvQ6ABRsS2If/Kpty1YFFsji7/aej6ruGmfM7WnJWQ88AoPfpJ++ya5z+nVEA8yCRYGKyw==} engines: {node: '>=8.x'} peerDependencies: @@ -37036,14 +42139,47 @@ packages: date-fns: 2.28.0 dayjs: 1.11.7 moment: 2.29.4 - rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) shallowequal: 1.1.0 dev: false - /rc-picker@3.2.4(dayjs@1.11.7)(react-dom@18.1.0)(react@18.1.0): + /rc-picker@3.13.1(dayjs@1.11.7)(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-211SrinX5IXZ9FMMDUMyPLuGOdfftUtd8zj4lqudpFxlMdtgV5+hXUJMBKb26xmDsleOm5iySK6KIHgiaI+U4w==} + engines: {node: '>=8.x'} + peerDependencies: + date-fns: '>= 2.x' + dayjs: '>= 1.x' + luxon: '>= 3.x' + moment: '>= 2.x' + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + date-fns: + optional: true + dayjs: + optional: true + luxon: + optional: true + moment: + optional: true + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + dayjs: 1.11.7 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-picker@3.2.4(dayjs@1.11.7)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-AydqPVS12u+46P6DwF0iMi4p5UAAnb64drcA/zUgNXkkB6rQhUwtYP7E75YM0WylT54F3sLhe+WttZynxtsU+Q==} engines: {node: '>=8.x'} peerDependencies: @@ -37064,13 +42200,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 dayjs: 1.11.7 - rc-trigger: 5.3.4(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-trigger: 5.3.4(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true /rc-picker@3.6.2(dayjs@1.11.7)(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-acLNCi2WTNAuvTtcEzKp72mU15ni0sqrIKVlEcj04KgLZxhlVPMabCS+Sc8VuOCPJbOcW0XeOydbNnJbWTvzxg==} @@ -37096,16 +42233,49 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 dayjs: 1.11.7 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-picker@3.8.2(dayjs@1.11.7)(moment@2.29.4)(react-dom@18.1.0)(react@18.1.0): + /rc-picker@3.6.2(dayjs@1.11.7)(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-acLNCi2WTNAuvTtcEzKp72mU15ni0sqrIKVlEcj04KgLZxhlVPMabCS+Sc8VuOCPJbOcW0XeOydbNnJbWTvzxg==} + engines: {node: '>=8.x'} + peerDependencies: + date-fns: '>= 2.x' + dayjs: '>= 1.x' + luxon: '>= 3.x' + moment: '>= 2.x' + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + date-fns: + optional: true + dayjs: + optional: true + luxon: + optional: true + moment: + optional: true + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + dayjs: 1.11.7 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-picker@3.8.2(dayjs@1.11.7)(moment@2.29.4)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-q6jnMwBoOi6tFA4xohrKIhzq80Fc3dH0Kiw5VRx6Tf1db7y27PBFCLwu6f66niXidZKD8F4R0M9VIui/jkL4cg==} engines: {node: '>=8.x'} peerDependencies: @@ -37129,17 +42299,17 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 dayjs: 1.11.7 moment: 2.29.4 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-progress@3.2.4(react-dom@18.1.0)(react@18.1.0): + /rc-progress@3.2.4(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-M9WWutRaoVkPUPIrTpRIDpX0SPSrVHzxHdCRCbeoBFrd9UFWTYNWRlHsruJM5FH1AZI+BwB4wOJUNNylg/uFSw==} peerDependencies: react: '>=16.9.0' @@ -37150,11 +42320,11 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-progress@3.3.3(react-dom@17.0.2)(react@17.0.2): @@ -37168,9 +42338,9 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -37185,13 +42355,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-progress@3.3.3(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-MDVNVHzGanYtRy2KKraEaWeZLri2ZHWIRyaE1a9MQ2MuJ09m+Wxj5cfcaoaR6z5iRpHpA59YeUxAlpML8N4PJw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-progress@3.4.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-eAFDHXlk8aWpoXl0llrenPMt9qKHQXphxcVsnKs0FHC6eCSk1ebJtyaVjJUzKe0233ogiLDeEFK1Uihz3s67hw==} peerDependencies: @@ -37203,11 +42391,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-progress@3.4.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-eAFDHXlk8aWpoXl0llrenPMt9qKHQXphxcVsnKs0FHC6eCSk1ebJtyaVjJUzKe0233ogiLDeEFK1Uihz3s67hw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-rate@2.10.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-TCjEpKPeN1m0EnGDDbb1KyxjNTJRzoReiPdtbrBJEey4Ryf/UGOQ6vqmz2yC6DJdYVDVUoZPdoz043ryh0t/nQ==} @@ -37221,14 +42427,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-rate@2.12.0(react-dom@18.1.0)(react@18.1.0): + /rc-rate@2.10.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-TCjEpKPeN1m0EnGDDbb1KyxjNTJRzoReiPdtbrBJEey4Ryf/UGOQ6vqmz2yC6DJdYVDVUoZPdoz043ryh0t/nQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-rate@2.12.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-g092v5iZCdVzbjdn28FzvWebK2IutoVoiTeqoLTj9WM7SjA/gOJIw5/JFZMRyJYYVe1jLAU2UhAfstIpCNRozg==} engines: {node: '>=8.x'} peerDependencies: @@ -37240,11 +42465,11 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-rate@2.9.2(react-dom@17.0.2)(react@17.0.2): @@ -37259,7 +42484,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -37277,11 +42502,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-rate@2.9.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-SaiZFyN8pe0Fgphv8t3+kidlej+cq/EALkAJAc3A0w0XcPaH2L1aggM8bhe1u6GAGuQNAoFvTLjw4qLPGRKV5g==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-resize-observer@1.2.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-6W+UzT3PyDM0wVCEHfoW3qTHPTvbdSgiA43buiy8PzmeMnfgnDeb9NjdimMXMl3/TcrvvWl5RRVdp+NqcR47pQ==} @@ -37294,7 +42538,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -37312,12 +42556,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) resize-observer-polyfill: 1.5.1 + dev: false + + /rc-resize-observer@1.2.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-6W+UzT3PyDM0wVCEHfoW3qTHPTvbdSgiA43buiy8PzmeMnfgnDeb9NjdimMXMl3/TcrvvWl5RRVdp+NqcR47pQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + resize-observer-polyfill: 1.5.1 /rc-resize-observer@1.3.1(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-iFUdt3NNhflbY3mwySv5CA1TC06zdJ+pfo0oc27xpf4PIOvfZwZGtD9Kz41wGYqC4SLio93RVAirSSpYlV/uYg==} @@ -37330,9 +42593,9 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) resize-observer-polyfill: 1.5.1 @@ -37348,12 +42611,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) resize-observer-polyfill: 1.5.1 + dev: false + + /rc-resize-observer@1.3.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-iFUdt3NNhflbY3mwySv5CA1TC06zdJ+pfo0oc27xpf4PIOvfZwZGtD9Kz41wGYqC4SLio93RVAirSSpYlV/uYg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + resize-observer-polyfill: 1.5.1 /rc-segmented@2.1.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-hUlonro+pYoZcwrH6Vm56B2ftLfQh046hrwif/VwLIw1j3zGt52p5mREBwmeVzXnSwgnagpOpfafspzs1asjGw==} @@ -37366,7 +42648,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) @@ -37384,12 +42666,31 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-segmented@2.1.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-hUlonro+pYoZcwrH6Vm56B2ftLfQh046hrwif/VwLIw1j3zGt52p5mREBwmeVzXnSwgnagpOpfafspzs1asjGw==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-segmented@2.1.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-qGo1bCr83ESXpXVOCXjFe1QJlCAQXyi9KCiy8eX3rIMYlTeJr/ftySIaTnYsitL18SvWf5ZEHsfqIWoX0EMfFQ==} @@ -37402,14 +42703,33 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-segmented@2.1.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-qGo1bCr83ESXpXVOCXjFe1QJlCAQXyi9KCiy8eX3rIMYlTeJr/ftySIaTnYsitL18SvWf5ZEHsfqIWoX0EMfFQ==} + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-segmented@2.2.2(react-dom@18.1.0)(react@18.1.0): + /rc-segmented@2.2.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Mq52M96QdHMsNdE/042ibT5vkcGcD5jxKp7HgPC2SRofpia99P5fkfHy1pEaajLMF/kj0+2Lkq1UZRvqzo9mSA==} peerDependencies: react: '>=16.0.0' @@ -37420,12 +42740,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-select@14.1.13(react-dom@17.0.2)(react@17.0.2): @@ -37440,7 +42760,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) rc-overflow: 1.2.8(react-dom@17.0.2)(react@17.0.2) @@ -37462,7 +42782,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) @@ -37471,6 +42791,29 @@ packages: rc-virtual-list: 3.4.13(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-select@14.1.13(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-WMEsC3gTwA1dbzWOdVIXDmWyidYNLq68AwvvUlRROw790uGUly0/vmqDozXrIr0QvN/A3CEULx12o+WtLCAefg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.2.8(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.4.13(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-select@14.1.7(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-mvALDI0Ih1Nehb2JhErNDh1tmxua4mSZtQW7poBkCFISLPjuOs+uy9LKRJwxHHtaH0PxcN+SbITrIXm4KiFUmg==} @@ -37484,18 +42827,41 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-overflow: 1.3.1(react-dom@18.1.0)(react@18.1.0) rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) rc-virtual-list: 3.4.13(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-select@14.3.0(react-dom@18.1.0)(react@18.1.0): + /rc-select@14.1.7(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-mvALDI0Ih1Nehb2JhErNDh1tmxua4mSZtQW7poBkCFISLPjuOs+uy9LKRJwxHHtaH0PxcN+SbITrIXm4KiFUmg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.4.13(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-select@14.3.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-y+TeAKvAvfAS7WXn4nFU8xtWJ1kLC7SVBvX3UQYtfU+N3BYNpNzHw/3F1Gu34rN2YWTG4hwspwFvDuRtGXytlQ==} engines: {node: '>=8.x'} peerDependencies: @@ -37507,15 +42873,16 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.5.1(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - rc-virtual-list: 3.4.13(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.5.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true /rc-select@14.4.3(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-qoz4gNqm3SN+4dYKSCRiRkxKSEEdbS3jC6gdFYoYwEjDZ9sdQFo5jHlfQbF+hhai01HOoj1Hf8Gq6tpUvU+Gmw==} @@ -37529,18 +42896,41 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) rc-virtual-list: 3.5.2(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-select@14.5.2(react-dom@18.1.0)(react@18.1.0): + /rc-select@14.4.3(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-qoz4gNqm3SN+4dYKSCRiRkxKSEEdbS3jC6gdFYoYwEjDZ9sdQFo5jHlfQbF+hhai01HOoj1Hf8Gq6tpUvU+Gmw==} + engines: {node: '>=8.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.2.8(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.5.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-select@14.5.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-Np/lDHvxCnVhVsheQjSV1I/OMJTWJf1n10wq8q1AGy3ytyYLfjNpi6uaz/pmjsbbiSddSWzJnNZCli9LmgBZsA==} engines: {node: '>=8.x'} peerDependencies: @@ -37552,15 +42942,38 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.13.6(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.13.6(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-overflow: 1.2.8(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - rc-virtual-list: 3.5.2(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.5.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-select@14.7.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-qRUpvMVXFy6rdHe+qzHXAqyQAfhErC/oY8dcRtoRjoz0lz2Nx3J+lLL5AnEbjnwlS+/kQTJUZ/65WyCwWwcLwQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-overflow: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.5.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-slider@10.0.0(react-dom@17.0.2)(react@17.0.2): @@ -37575,7 +42988,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-tooltip: 5.2.2(react-dom@17.0.2)(react@17.0.2) rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) @@ -37595,13 +43008,34 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-tooltip: 5.2.2(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 + dev: false + + /rc-slider@10.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-Bk54UIKWW4wyhHcL8ehAxt+wX+n69dscnHTX6Uv0FMxSke/TGrlkZz1LSIWblCpfE2zr/dwR2Ca8nZGk3U+Tbg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-tooltip: 5.2.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 /rc-slider@10.1.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-gn8oXazZISEhnmRinI89Z/JD/joAaM35jp+gDtIVSTD/JJMCCBqThqLk1SVJmvtfeiEF/kKaFY0+qt4SDHFUDw==} @@ -37615,11 +43049,45 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-slider@10.1.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-gn8oXazZISEhnmRinI89Z/JD/joAaM35jp+gDtIVSTD/JJMCCBqThqLk1SVJmvtfeiEF/kKaFY0+qt4SDHFUDw==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-slider@8.2.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-rnO36M3VhMoPWh1kRuCeJoluT4duAW7+5aLaAn9oLu2pKEKsuOFUh5DmA2kEo88UmvPV6nr7HHDeZuC8SNM/lA==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + prop-types: 15.8.1 + rc-tooltip: 3.7.3(react-dom@17.0.2)(react@17.0.2) + rc-util: 4.21.1 + shallowequal: 1.1.0 + warning: 3.0.0 + transitivePeerDependencies: + - react + - react-dom + dev: true /rc-steps@4.1.4(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-qoCqKZWSpkh/b03ASGx1WhpKnuZcRWmvuW+ZUu4mvMdfvFzVxblTwUM+9aBd0mlEUFmt6GW8FXhMpHkK3Uzp3w==} @@ -37633,9 +43101,9 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -37651,13 +43119,32 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-steps@4.1.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-qoCqKZWSpkh/b03ASGx1WhpKnuZcRWmvuW+ZUu4mvMdfvFzVxblTwUM+9aBd0mlEUFmt6GW8FXhMpHkK3Uzp3w==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-steps@5.0.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-9TgRvnVYirdhbV0C3syJFj9EhCRqoJAsxt4i1rED5o8/ZcSv5TLIYyo4H8MCjLPvbe2R+oBAm/IYBEtC+OS1Rw==} engines: {node: '>=8.x'} @@ -37670,11 +43157,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-steps@5.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-9TgRvnVYirdhbV0C3syJFj9EhCRqoJAsxt4i1rED5o8/ZcSv5TLIYyo4H8MCjLPvbe2R+oBAm/IYBEtC+OS1Rw==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-steps@6.0.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-+KfMZIty40mYCQSDvYbZ1jwnuObLauTiIskT1hL4FFOBHP6ZOr8LK0m143yD3kEN5XKHSEX1DIwCj3AYZpoeNQ==} @@ -37688,14 +43194,113 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) + react: 18.1.0 + react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-steps@6.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-+KfMZIty40mYCQSDvYbZ1jwnuObLauTiIskT1hL4FFOBHP6ZOr8LK0m143yD3kEN5XKHSEX1DIwCj3AYZpoeNQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-steps@6.0.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-lKHL+Sny0SeHkQKKDJlAjV5oZ8DwCdS2hFhAkIjuQt1/pB81M0cA0ErVFdHq9+jmPmFw1vJB2F5NBzFXLJxV+g==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-swipeout@2.0.11: + resolution: {integrity: sha512-d37Lgn4RX4OOQyuA2BFo0rGlUwrmZk5q83srH3ixJ1Y1jidr2GKjgJDbNeGUVZPNfYBL91Elu6+xfVGftWf4Lg==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + rc-gesture: 0.0.22 + react-native-swipeout: 2.3.6 + dev: true + + /rc-switch@3.2.2(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-+gUJClsZZzvAHGy1vZfnwySxj+MjLlGRyXKXScrtCTcmiYNPzxDFOxdQ/3pK1Kt/0POvwJ/6ALOR8gwdXGhs+A==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + + /rc-switch@3.2.2(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-+gUJClsZZzvAHGy1vZfnwySxj+MjLlGRyXKXScrtCTcmiYNPzxDFOxdQ/3pK1Kt/0POvwJ/6ALOR8gwdXGhs+A==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + react: 18.1.0 + react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-switch@3.2.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-+gUJClsZZzvAHGy1vZfnwySxj+MjLlGRyXKXScrtCTcmiYNPzxDFOxdQ/3pK1Kt/0POvwJ/6ALOR8gwdXGhs+A==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-switch@3.2.2(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-+gUJClsZZzvAHGy1vZfnwySxj+MjLlGRyXKXScrtCTcmiYNPzxDFOxdQ/3pK1Kt/0POvwJ/6ALOR8gwdXGhs+A==} + /rc-switch@4.0.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-IfrYC99vN0gKaTyjQdqYuADU0eH00SAFHg3jOp8HrmUpJruhV1SohJzrCbPqPraZeX/6X/QKkdLfkdnUub05WA==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -37705,14 +43310,15 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) - react: 17.0.2 - react-dom: 17.0.2(react@17.0.2) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true - /rc-switch@3.2.2(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-+gUJClsZZzvAHGy1vZfnwySxj+MjLlGRyXKXScrtCTcmiYNPzxDFOxdQ/3pK1Kt/0POvwJ/6ALOR8gwdXGhs+A==} + /rc-switch@4.1.0(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -37722,14 +43328,15 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-switch@4.0.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-IfrYC99vN0gKaTyjQdqYuADU0eH00SAFHg3jOp8HrmUpJruhV1SohJzrCbPqPraZeX/6X/QKkdLfkdnUub05WA==} + /rc-switch@4.1.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -37739,14 +43346,16 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false - /rc-switch@4.1.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==} + /rc-table@7.24.2(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-yefqhtc4V3BeWG2bnDhWYxWX1MOckvW2KU1J55pntZmIGrov5Hx8tQn2gcs6OM0fJ6NgEwUvVEknsCsWI24zUg==} + engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -37756,14 +43365,16 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + shallowequal: 1.1.0 dev: false - /rc-table@7.24.2(react-dom@18.1.0)(react@18.1.0): + /rc-table@7.24.2(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-yefqhtc4V3BeWG2bnDhWYxWX1MOckvW2KU1J55pntZmIGrov5Hx8tQn2gcs6OM0fJ6NgEwUvVEknsCsWI24zUg==} engines: {node: '>=8.x'} peerDependencies: @@ -37775,12 +43386,12 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) shallowequal: 1.1.0 dev: false @@ -37796,7 +43407,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-resize-observer: 1.2.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) @@ -37816,13 +43427,34 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 + dev: false + + /rc-table@7.26.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-0cD8e6S+DTGAt5nBZQIPFYEaIukn17sfa5uFL98faHlH/whZzD8ii3dbFL4wmUDEL4BLybhYop+QUfZJ4CPvNQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 /rc-table@7.31.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-TiWonax1f0B/WBh4yyA0q9GyGdKluvC1z39cPoTuRDf+zsBFDyla4T8xCK8Hzx4EugPE9f9a9fCa/i7N9+SSyA==} @@ -37836,15 +43468,36 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@rc-component/context': 1.3.0(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-table@7.31.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-TiWonax1f0B/WBh4yyA0q9GyGdKluvC1z39cPoTuRDf+zsBFDyla4T8xCK8Hzx4EugPE9f9a9fCa/i7N9+SSyA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/context': 1.3.0(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-table@7.32.1(react-dom@18.1.0)(react@18.1.0): + /rc-table@7.32.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-fHMQteKMocUC9I9Vex3eBLH7QsiaMR/qtzh3B1Ty2PoNGwVTwVdDFyRL05zch+JU3KnNNczgQeVvtf/p//gdrQ==} engines: {node: '>=8.x'} peerDependencies: @@ -37856,16 +43509,16 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/context': 1.3.0(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/context': 1.3.0(react-dom@18.3.1)(react@18.3.1) classnames: 2.3.2 - rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-tabs@11.13.0(react-dom@18.1.0)(react@18.1.0): + /rc-tabs@11.13.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-aUw1Pq0B1a2zGX4o/m3yrQycZcCLgDp6gKwn8IAU07q148RRONsVGxi0oLVVe5SE51kOB+j0bk1RX43ZBdZNgA==} engines: {node: '>=8.x'} peerDependencies: @@ -37877,14 +43530,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-dropdown: 3.5.2(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.5.5(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dropdown: 3.5.2(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.5.5(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-tabs@11.16.0(react-dom@18.1.0)(react@18.1.0): @@ -37899,17 +43552,39 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-dropdown: 4.0.1(react-dom@18.1.0)(react@18.1.0) rc-menu: 9.6.4(react-dom@18.1.0)(react@18.1.0) rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-tabs@12.1.0-alpha.1(react-dom@18.1.0)(react@18.1.0): + /rc-tabs@11.16.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-CIDPv3lHaXSHTJevmFP2eHoD3Hq9psfKbOZYf6D4FYPACloNGHpz44y3RGeJgataQ7omFLrGBm3dOBMUki87tA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-tabs@12.1.0-alpha.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-M+B88WEnGSuE+mR54fpgPbZLAakzxa/H6FmEetLBl5WG4I3AcwSk9amuIPC/tu0KXBl+H6Bg5ZwrrEUOBUvgzg==} engines: {node: '>=8.x'} peerDependencies: @@ -37921,18 +43596,18 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-dropdown: 4.0.1(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.6.4(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-tabs@12.10.0(react-dom@18.1.0)(react@18.1.0): + /rc-tabs@12.10.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-smeTKWZivfJGxCBHF2D5lgU8WPQ9VZFduJWMnsYS/f8EIf8oH8Y8sAACa62u21Q2jyzEZ2tQf70Fz8mdQBm4Zw==} engines: {node: '>=8.x'} peerDependencies: @@ -37944,15 +43619,15 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-dropdown: 4.1.0(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.11.1(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.36.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dropdown: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.11.1(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: true /rc-tabs@12.2.1(react-dom@17.0.2)(react@17.0.2): @@ -37967,13 +43642,13 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-dropdown: 4.0.1(react-dom@17.0.2)(react@17.0.2) rc-menu: 9.6.4(react-dom@17.0.2)(react@17.0.2) - rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) - rc-resize-observer: 1.2.0(react-dom@17.0.2)(react@17.0.2) - rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) + rc-motion: 2.7.3(react-dom@17.0.2)(react@17.0.2) + rc-resize-observer: 1.3.1(react-dom@17.0.2)(react@17.0.2) + rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -37989,15 +43664,38 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-dropdown: 4.0.1(react-dom@18.1.0)(react@18.1.0) rc-menu: 9.6.4(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-tabs@12.2.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-09pVv4kN8VFqp6THceEmxOW8PAShQC08hrroeVYP4Y8YBFaP1PIWdyFL01czcbyz5YZFj9flZ7aljMaAl0jLVg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.6.4(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-tabs@12.5.6(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-aArXHzxK7YICxe+622CZ8FlO5coMi8P7E6tXpseCPKm1gdTjUt0LrQK1/AxcrRXZXG3K4QqhlKmET0+cX5DQaQ==} @@ -38020,9 +43718,10 @@ packages: rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false - /rc-tabs@12.7.1(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-NrltXEYIyiDP5JFu85NQwc9eR+7e50r/6MNXYDyG1EMIFNc7BgDppzdpnD3nW4NHYWw5wLIThCURGib48OCTBg==} + /rc-tabs@12.5.6(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-aArXHzxK7YICxe+622CZ8FlO5coMi8P7E6tXpseCPKm1gdTjUt0LrQK1/AxcrRXZXG3K4QqhlKmET0+cX5DQaQ==} engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' @@ -38035,13 +43734,58 @@ packages: dependencies: '@babel/runtime': 7.21.0 classnames: 2.3.2 - rc-dropdown: 4.1.0(react-dom@18.1.0)(react@18.1.0) - rc-menu: 9.9.2(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-dropdown: 4.0.1(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.8.2(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-tabs@12.7.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-NrltXEYIyiDP5JFu85NQwc9eR+7e50r/6MNXYDyG1EMIFNc7BgDppzdpnD3nW4NHYWw5wLIThCURGib48OCTBg==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-dropdown: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.9.2(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-tabs@12.9.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-2HnVowgMVrq0DfQtyu4mCd9E6pXlWNdM6VaDvOOHMsLYqPmpY+7zBqUC6YrrQ9xYXHciTS0e7TtjOHIvpVCHLQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-dropdown: 4.1.0(react-dom@18.3.1)(react@18.3.1) + rc-menu: 9.10.0(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-textarea@0.3.7(react-dom@18.1.0)(react@18.1.0): @@ -38055,15 +43799,35 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 dev: false + /rc-textarea@0.3.7(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-yCdZ6binKmAQB13hc/oehh0E/QRwoPP1pjF21aHBxlgXO3RzPF6dUu4LG2R4FZ1zx/fQd2L1faktulrXOM/2rw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 + dev: false + /rc-textarea@0.4.5(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-WHeJRgUlloNyVgTsItMrIXwMhU6P3NmrUDkxX+JRwEpJjECsKtZNlNcXe9pHNLCaYQ3Z1cVCfsClhgDDgJ2kFQ==} peerDependencies: @@ -38075,7 +43839,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-resize-observer: 1.2.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) @@ -38094,15 +43858,35 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-resize-observer: 1.2.0(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 + dev: false + + /rc-textarea@0.4.5(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-WHeJRgUlloNyVgTsItMrIXwMhU6P3NmrUDkxX+JRwEpJjECsKtZNlNcXe9pHNLCaYQ3Z1cVCfsClhgDDgJ2kFQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-resize-observer: 1.2.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + shallowequal: 1.1.0 - /rc-textarea@1.0.1(react-dom@18.1.0)(react@18.1.0): + /rc-textarea@1.0.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-dtIm96apjJpCUcCeTtbnLGJaVlqbOqVgN0P9z+bqMSi7rcV5QVeUtBnG+jQTGk/uD183Z7jbhc8Dx7G3luDCwg==} peerDependencies: react: '>=16.9.0' @@ -38113,13 +43897,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-input: 0.2.2(react-dom@18.1.0)(react@18.1.0) - rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-input: 0.2.2(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true /rc-textarea@1.2.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-S9fkiek5VezfwJe2McEs/NH63xgnnZ4iDh6a8n01mIfzyNJj0HkS0Uz6boyR3/eONYjmKaqhrpuJJuEClRDEBw==} @@ -38132,15 +43917,65 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-input: 1.0.4(react-dom@18.1.0)(react@18.1.0) rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-textarea@1.2.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-S9fkiek5VezfwJe2McEs/NH63xgnnZ4iDh6a8n01mIfzyNJj0HkS0Uz6boyR3/eONYjmKaqhrpuJJuEClRDEBw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-input: 1.0.4(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-textarea@1.3.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-wn0YjTpvcVolcfXa0HtzL+jgV2QcwtfB29RwNAKj8hMgZOju1V24M3TfEDjABeQEAQbUGbjMbISREOX/YSVKhg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-input: 1.1.1(react-dom@18.3.1)(react@18.3.1) + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-tooltip@3.7.3(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-dE2ibukxxkrde7wH9W8ozHKUO4aQnPZ6qBHtrTH9LoO836PjDdiaWO73fgPB05VfJs9FbZdmGPVEbXCeOP99Ww==} + dependencies: + babel-runtime: 6.26.0 + prop-types: 15.8.1 + rc-trigger: 2.6.5(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + /rc-tooltip@5.1.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-alt8eGMJulio6+4/uDm7nvV+rJq9bsfxFDCI0ljPdbuoygUscbsMYb6EQgwib/uqsXQUvzk+S7A59uYHmEgmDA==} peerDependencies: @@ -38152,12 +43987,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-tooltip@5.1.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-alt8eGMJulio6+4/uDm7nvV+rJq9bsfxFDCI0ljPdbuoygUscbsMYb6EQgwib/uqsXQUvzk+S7A59uYHmEgmDA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-tooltip@5.2.2(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-jtQzU/18S6EI3lhSGoDYhPqNpWajMtS5VV/ld1LwyfrDByQpYmw/LW6U7oFXXLukjfDHQ7Ju705A82PRNFWYhg==} peerDependencies: @@ -38169,7 +44021,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-trigger: 5.3.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -38186,11 +44038,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-trigger: 5.3.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-tooltip@5.2.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-jtQzU/18S6EI3lhSGoDYhPqNpWajMtS5VV/ld1LwyfrDByQpYmw/LW6U7oFXXLukjfDHQ7Ju705A82PRNFWYhg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-trigger: 5.3.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-tooltip@6.0.1(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-MdvPlsD1fDSxKp9+HjXrc/CxLmA/s11QYIh1R7aExxfodKP7CZA++DG1AjrW80F8IUdHYcR43HAm0Y2BYPelHA==} @@ -38203,13 +44073,51 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - '@rc-component/trigger': 1.5.1(react-dom@18.1.0)(react@18.1.0) + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.1.0)(react@18.1.0) classnames: 2.3.2 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-tooltip@6.0.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-MdvPlsD1fDSxKp9+HjXrc/CxLmA/s11QYIh1R7aExxfodKP7CZA++DG1AjrW80F8IUdHYcR43HAm0Y2BYPelHA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + '@rc-component/trigger': 1.15.6(react-dom@18.3.1)(react@18.3.1) + classnames: 2.3.2 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-tree-select@5.11.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-ujRFO3pcjSg8R4ndXX2oiNcCu+RgO9ZPcd23CZy18Khm+nRsfWWS3Su7qB0iuoJgzAJ5LK7b6Dio0t7IQDGs9g==} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-select: 14.7.4(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false - /rc-tree-select@5.3.0(react-dom@18.1.0)(react@18.1.0): + /rc-tree-select@5.3.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-UN6CUBulmch+CsihnJ73+DtWijEB1hVTC8sdVxq6E0teVAkHQZUvDj+cwZShtShAKvWwXy73PZ1hIHEUrmVcKw==} peerDependencies: react: '*' @@ -38220,13 +44128,13 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-select: 14.1.7(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.5.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.5.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-tree-select@5.4.0(react-dom@18.1.0)(react@18.1.0): @@ -38240,15 +44148,35 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-select: 14.1.13(react-dom@18.1.0)(react@18.1.0) rc-tree: 5.6.5(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-tree-select@5.4.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-reRbOqC7Ic/nQocJAJeCl4n6nJUY3NoqiwRXKvhjgZJU7NGr9vIccXEsY+Lghkw5UMpPoxGsIJB0jiAvM18XYA==} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.6.5(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-tree-select@5.5.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-XS0Jvw4OjFz/Xvb2byEkBWv55JFKFz0HVvTBa/cPOHJaQh/3EaYwymEMnCCvGEzS1+5CfDVwMtA8j/v4rt1DHw==} peerDependencies: @@ -38260,7 +44188,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-select: 14.1.13(react-dom@17.0.2)(react@17.0.2) rc-tree: 5.7.0(react-dom@17.0.2)(react@17.0.2) @@ -38279,15 +44207,35 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-select: 14.1.13(react-dom@18.1.0)(react@18.1.0) rc-tree: 5.7.0(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-tree-select@5.5.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-XS0Jvw4OjFz/Xvb2byEkBWv55JFKFz0HVvTBa/cPOHJaQh/3EaYwymEMnCCvGEzS1+5CfDVwMtA8j/v4rt1DHw==} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-select: 14.1.13(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.0(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - /rc-tree-select@5.7.0(react-dom@18.1.0)(react@18.1.0): + /rc-tree-select@5.7.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-YGMpBFK9qBkgng2ZhOw7yFiL9VnjHij+uNvP+tiU/QZGdf2XcO8LHXQNUZRGAEzx4PT5lUs6d7kIfkQ9a74bqg==} peerDependencies: react: '*' @@ -38298,13 +44246,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-select: 14.3.0(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.0(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-select: 14.3.0(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: true /rc-tree-select@5.8.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-NozrkVLR8k3cpx8R5/YFmJMptgOacR5zEQHZGMQg31bD6jEgGiJeOn2cGRI6x0Xdyvi1CSqCbUsIoqiej74wzw==} @@ -38317,16 +44266,36 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-select: 14.4.3(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.6(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-tree: 5.7.9(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false - /rc-tree-select@5.9.0(react-dom@18.1.0)(react@18.1.0): + /rc-tree-select@5.8.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-NozrkVLR8k3cpx8R5/YFmJMptgOacR5zEQHZGMQg31bD6jEgGiJeOn2cGRI6x0Xdyvi1CSqCbUsIoqiej74wzw==} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-select: 14.4.3(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + + /rc-tree-select@5.9.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-oh3blESzLfLCBPSiVDtZ2irzrWWZUMeHvnSwRvFo79br8Z+K/1OhXhXBZmROvfKwaH8YUugAQy8B2j5EGQbdyA==} peerDependencies: react: '*' @@ -38337,16 +44306,16 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-select: 14.5.2(react-dom@18.1.0)(react@18.1.0) - rc-tree: 5.7.6(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-select: 14.5.2(react-dom@18.3.1)(react@18.3.1) + rc-tree: 5.7.9(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /rc-tree@5.5.0(react-dom@18.1.0)(react@18.1.0): + /rc-tree@5.5.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-vpKeFsDyj7weik8UPseCTaSNAPt939qn1dQd8goSbRDajbjJEja0v/WFXyRhOiF1HLemNTfqMz4MYc9qlqyNXg==} engines: {node: '>=10.x'} peerDependencies: @@ -38358,13 +44327,13 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - rc-virtual-list: 3.4.13(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.4.13(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /rc-tree@5.6.5(react-dom@18.1.0)(react@18.1.0): @@ -38379,15 +44348,36 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) - rc-virtual-list: 3.4.13(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) + rc-virtual-list: 3.5.2(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-tree@5.6.5(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-Bnyen46B251APyRZ9D/jYeTnSqbSEvK2AkU5B4vWkNYgUJNPrxO+VMgcDRedP/8N7YcsgdDT9hxqVvNOq7oCAQ==} + engines: {node: '>=10.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.5.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-tree@5.7.0(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-F+Ewkv/UcutshnVBMISP+lPdHDlcsL+YH/MQDVWbk+QdkfID7vXiwrHMEZn31+2Rbbm21z/HPceGS8PXGMmnQg==} engines: {node: '>=10.x'} @@ -38400,7 +44390,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) @@ -38420,13 +44410,34 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.9 classnames: 2.3.2 rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) rc-virtual-list: 3.4.13(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-tree@5.7.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-F+Ewkv/UcutshnVBMISP+lPdHDlcsL+YH/MQDVWbk+QdkfID7vXiwrHMEZn31+2Rbbm21z/HPceGS8PXGMmnQg==} + engines: {node: '>=10.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + classnames: 2.3.2 + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.4.13(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-tree@5.7.6(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-Dzam4VFcohXfcw+K4syq177RKqdqYun1XRc6etAEpRvsTruo4udhcsPrsEfOrRkrhnmkO58Q9F1/lgvm2dznVQ==} @@ -38440,15 +44451,36 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.30.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) rc-virtual-list: 3.5.2(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) dev: false + /rc-tree@5.7.6(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-Dzam4VFcohXfcw+K4syq177RKqdqYun1XRc6etAEpRvsTruo4udhcsPrsEfOrRkrhnmkO58Q9F1/lgvm2dznVQ==} + engines: {node: '>=10.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.5.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + dev: false + /rc-tree@5.7.9(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-1hKkToz/EVjJlMVwmZnpXeLXt/1iQMsaAq9m+GNkUbK746gkc7QpJXSN/TzjhTI5Hi+LOSlrMaXLMT0bHPqILQ==} engines: {node: '>=10.x'} @@ -38461,13 +44493,48 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.34.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) rc-virtual-list: 3.5.2(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-tree@5.7.9(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-1hKkToz/EVjJlMVwmZnpXeLXt/1iQMsaAq9m+GNkUbK746gkc7QpJXSN/TzjhTI5Hi+LOSlrMaXLMT0bHPqILQ==} + engines: {node: '>=10.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + rc-virtual-list: 3.5.2(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + + /rc-trigger@2.6.5(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-m6Cts9hLeZWsTvWnuMm7oElhf+03GOjOLfTuU0QmdB9ZrW7jR2IpI5rpNM7i9MvAAlMAmTx5Zr7g3uu/aMvZAw==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + prop-types: 15.8.1 + rc-align: 2.4.5 + rc-animate: 2.11.1(react-dom@17.0.2)(react@17.0.2) + rc-util: 4.21.1 + react-lifecycles-compat: 3.0.4 + transitivePeerDependencies: + - react + - react-dom dev: true /rc-trigger@5.3.1(react-dom@17.0.2)(react@17.0.2): @@ -38482,7 +44549,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-align: 4.0.12(react-dom@17.0.2)(react@17.0.2) rc-motion: 2.6.2(react-dom@17.0.2)(react@17.0.2) @@ -38502,13 +44569,34 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-align: 4.0.12(react-dom@18.1.0)(react@18.1.0) rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-trigger@5.3.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-5gaFbDkYSefZ14j2AdzucXzlWgU2ri5uEjkHvsf1ynRhdJbKxNOnw4PBZ9+FVULNGFiDzzlVF8RJnR9P/xrnKQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-align: 4.0.12(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.6.2(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-trigger@5.3.4(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-mQv+vas0TwKcjAO2izNPkqR4j86OemLRmvL2nOzdP9OWNWA1ivoTt5hzFqYNW9zACwmTezRiN8bttrC7cZzYSw==} @@ -38522,13 +44610,34 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-align: 4.0.12(react-dom@18.1.0)(react@18.1.0) - rc-motion: 2.6.2(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) + rc-motion: 2.7.3(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-trigger@5.3.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-mQv+vas0TwKcjAO2izNPkqR4j86OemLRmvL2nOzdP9OWNWA1ivoTt5hzFqYNW9zACwmTezRiN8bttrC7cZzYSw==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-align: 4.0.12(react-dom@18.3.1)(react@18.3.1) + rc-motion: 2.7.3(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-upload@4.3.4(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-uVbtHFGNjHG/RyAfm9fluXB6pvArAGyAx8z7XzXXyorEgVIWj6mOlriuDm0XowDHYz4ycNK0nE0oP3cbFnzxiQ==} @@ -38541,7 +44650,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -38558,11 +44667,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 classnames: 2.3.2 rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-upload@4.3.4(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-uVbtHFGNjHG/RyAfm9fluXB6pvArAGyAx8z7XzXXyorEgVIWj6mOlriuDm0XowDHYz4ycNK0nE0oP3cbFnzxiQ==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + classnames: 2.3.2 + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-util@4.21.1: resolution: {integrity: sha512-Z+vlkSQVc1l8O2UjR3WQ+XdWlhj5q9BMQNLk2iOBch75CqPfrJyGtcWMcnhRlNuDu0Ndtt4kLVO8JI8BrABobg==} @@ -38584,7 +44711,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) react-is: 16.13.1 @@ -38600,10 +44727,27 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.18.3 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) react-is: 16.13.1 + dev: false + + /rc-util@5.28.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-KYDjhGodswVj29v0TRciKTqRPgumIFvFDndbCD227pitQ+0Cei196rxk+OXb/blu6V8zdTRK5RjCJn+WmHLvBA==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.3 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-is: 16.13.1 /rc-util@5.30.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-uaWpF/CZGyXuhQG71MWxkU+0bWkPEgqZUxEv251Cu7p3kpHDNm5+Ygu/U8ux0a/zbfGW8PsKcJL0XVBOMrlIZg==} @@ -38616,12 +44760,29 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) react-is: 16.13.1 + dev: false - /rc-util@5.34.0(react-dom@17.0.2)(react@17.0.2): + /rc-util@5.30.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-uaWpF/CZGyXuhQG71MWxkU+0bWkPEgqZUxEv251Cu7p3kpHDNm5+Ygu/U8ux0a/zbfGW8PsKcJL0XVBOMrlIZg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-is: 16.13.1 + + /rc-util@5.34.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-+zCDJ1gq+KwqbaZPAk7PGlNAssoTcnZSnTsr5KMYDBhzdPNFxyuglnewWMP5PyP/kAC6uW4r9Ejc08M+Lei04A==} peerDependencies: react: '>=16.9.0' @@ -38632,13 +44793,30 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-is: 16.13.1 + dev: false + + /rc-util@5.36.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-a4uUvT+UNHvYL+awzbN8H8zAjfduwY4KAp2wQy40wOz3NyBdo3Xhx/EAAPyDkHLoGm535jIACaMhIqExGiAjHw==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) react-is: 16.13.1 - /rc-util@5.34.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-+zCDJ1gq+KwqbaZPAk7PGlNAssoTcnZSnTsr5KMYDBhzdPNFxyuglnewWMP5PyP/kAC6uW4r9Ejc08M+Lei04A==} + /rc-util@5.36.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-a4uUvT+UNHvYL+awzbN8H8zAjfduwY4KAp2wQy40wOz3NyBdo3Xhx/EAAPyDkHLoGm535jIACaMhIqExGiAjHw==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -38648,13 +44826,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + '@babel/runtime': 7.23.6 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) react-is: 16.13.1 + dev: false - /rc-util@5.36.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-a4uUvT+UNHvYL+awzbN8H8zAjfduwY4KAp2wQy40wOz3NyBdo3Xhx/EAAPyDkHLoGm535jIACaMhIqExGiAjHw==} + /rc-util@5.38.1(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-e4ZMs7q9XqwTuhIK7zBIVFltUtMSjphuPPQXHoHlzRzNdOwUxDejo0Zls5HYaJfRKNURcsS/ceKVULlhjBrxng==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -38664,11 +44843,43 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-is: 18.2.0 + + /rc-util@5.38.1(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-e4ZMs7q9XqwTuhIK7zBIVFltUtMSjphuPPQXHoHlzRzNdOwUxDejo0Zls5HYaJfRKNURcsS/ceKVULlhjBrxng==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 react: 18.1.0 react-dom: 18.1.0(react@18.1.0) - react-is: 16.13.1 - dev: true + react-is: 18.2.0 + dev: false + + /rc-util@5.38.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-e4ZMs7q9XqwTuhIK7zBIVFltUtMSjphuPPQXHoHlzRzNdOwUxDejo0Zls5HYaJfRKNURcsS/ceKVULlhjBrxng==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-is: 18.2.0 /rc-virtual-list@3.4.13(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-cPOVDmcNM7rH6ANotanMDilW/55XnFPw0Jh/GQYtrzZSy3AmWvCnqVNyNC/pgg3lfVmX2994dlzAhuUrd4jG7w==} @@ -38682,7 +44893,7 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-resize-observer: 1.3.1(react-dom@17.0.2)(react@17.0.2) rc-util: 5.28.0(react-dom@17.0.2)(react@17.0.2) @@ -38701,12 +44912,32 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) rc-util: 5.28.0(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-virtual-list@3.4.13(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-cPOVDmcNM7rH6ANotanMDilW/55XnFPw0Jh/GQYtrzZSy3AmWvCnqVNyNC/pgg3lfVmX2994dlzAhuUrd4jG7w==} + engines: {node: '>=8.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.28.0(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc-virtual-list@3.5.2(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-sE2G9hTPjVmatQni8OP2Kx33+Oth6DMKm67OblBBmgMBJDJQOOFpSGH7KZ6Pm85rrI2IGxDRXZCr0QhYOH2pfQ==} @@ -38720,12 +44951,32 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 classnames: 2.3.2 rc-resize-observer: 1.3.1(react-dom@18.1.0)(react@18.1.0) - rc-util: 5.30.0(react-dom@18.1.0)(react@18.1.0) + rc-util: 5.38.1(react-dom@18.1.0)(react@18.1.0) react: 18.1.0 react-dom: 18.1.0(react@18.1.0) + dev: false + + /rc-virtual-list@3.5.2(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-sE2G9hTPjVmatQni8OP2Kx33+Oth6DMKm67OblBBmgMBJDJQOOFpSGH7KZ6Pm85rrI2IGxDRXZCr0QhYOH2pfQ==} + engines: {node: '>=8.x'} + peerDependencies: + react: '*' + react-dom: '*' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.23.6 + classnames: 2.3.2 + rc-resize-observer: 1.3.1(react-dom@18.3.1)(react@18.3.1) + rc-util: 5.38.1(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) /rc@1.2.8: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} @@ -38746,7 +44997,7 @@ packages: pure-color: 1.3.0 dev: true - /react-color@2.17.1(react@18.1.0): + /react-color@2.17.1(react@18.3.1): resolution: {integrity: sha512-S+I6TkUKJaqfALLkAIfiCZ/MANQyy7dKkf7g9ZU5GTUy2rf8c2Rx62otyvADAviWR+6HRkzdf2vL1Qvz9goCLQ==} peerDependencies: react: '*' @@ -38754,16 +45005,16 @@ packages: react: optional: true dependencies: - '@icons/material': 0.2.4(react@18.1.0) + '@icons/material': 0.2.4(react@18.3.1) lodash: 4.17.21 material-colors: 1.2.6 prop-types: 15.8.1 - react: 18.1.0 - reactcss: 1.2.3(react@18.1.0) + react: 18.3.1 + reactcss: 1.2.3(react@18.3.1) tinycolor2: 1.4.2 dev: false - /react-color@2.17.3(react@18.1.0): + /react-color@2.17.3(react@18.3.1): resolution: {integrity: sha512-1dtO8LqAVotPIChlmo6kLtFS1FP89ll8/OiA8EcFRDR+ntcK+0ukJgByuIQHRtzvigf26dV5HklnxDIvhON9VQ==} peerDependencies: react: '*' @@ -38771,16 +45022,16 @@ packages: react: optional: true dependencies: - '@icons/material': 0.2.4(react@18.1.0) + '@icons/material': 0.2.4(react@18.3.1) lodash: 4.17.21 material-colors: 1.2.6 prop-types: 15.8.1 - react: 18.1.0 - reactcss: 1.2.3(react@18.1.0) + react: 18.3.1 + reactcss: 1.2.3(react@18.3.1) tinycolor2: 1.4.2 dev: false - /react-composer@5.0.3(react@18.1.0): + /react-composer@5.0.3(react@18.3.1): resolution: {integrity: sha512-1uWd07EME6XZvMfapwZmc7NgCZqDemcvicRi3wMJzXsQLvZ3L7fTHVyPy1bZdnWXM4iPjYuNE+uJ41MLKeTtnA==} peerDependencies: react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 @@ -38789,10 +45040,10 @@ packages: optional: true dependencies: prop-types: 15.8.1 - react: 18.1.0 + react: 18.3.1 dev: false - /react-content-loader@5.1.4(react@18.1.0): + /react-content-loader@5.1.4(react@18.3.1): resolution: {integrity: sha512-hTq7pZi2GKCK6a9d3u6XStozm0QGCEjw8cSqQReiWnh2up6IwCha5R5TF0o6SY5qUDpByloEZEZtnFxpJyENFw==} engines: {node: '>=10'} peerDependencies: @@ -38801,10 +45052,10 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false - /react-copy-to-clipboard@5.1.0(react@18.1.0): + /react-copy-to-clipboard@5.1.0(react@18.3.1): resolution: {integrity: sha512-k61RsNgAayIJNoy9yDsYzDe/yAZAzEbEgcz3DZMhF686LEyukcE1hzurxe85JandPUG+yTfGVFzuEw3xt8WP/A==} peerDependencies: react: ^15.3.0 || 16 || 17 || 18 @@ -38814,10 +45065,10 @@ packages: dependencies: copy-to-clipboard: 3.3.3 prop-types: 15.8.1 - react: 18.1.0 + react: 18.3.1 dev: true - /react-countup@6.4.2(react@18.1.0): + /react-countup@6.4.2(react@18.3.1): resolution: {integrity: sha512-wdDrNb2lPFGbLb+i0FTgswPbWziubS6KZRII8NRpXmUCoZsi15PFbIHgBz60Dyxd4KPuRvwsK5aawIU4OPP3jA==} peerDependencies: react: '>= 16.3.0' @@ -38827,14 +45078,14 @@ packages: dependencies: '@rollup/plugin-babel': 6.0.3 countup.js: 2.6.2 - react: 18.1.0 + react: 18.3.1 transitivePeerDependencies: - '@babel/core' - '@types/babel__core' - rollup dev: false - /react-dev-inspector@1.8.4(eslint@8.35.0)(react@17.0.2)(typescript@4.9.4): + /react-dev-inspector@1.8.4(eslint@8.35.0)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-+MpF43RHTKjkilQ4TgUfSgpVlJFKpL4uPc/0FBJAMNPICYxw27q81++AcBIThfxFmBgsFbMj3EKZwkaPZ43V7w==} engines: {node: '>=12.0.0'} peerDependencies: @@ -38852,7 +45103,7 @@ packages: loader-utils: 2.0.2 querystring: 0.2.1 react: 17.0.2 - react-dev-utils: 12.0.1(eslint@8.35.0)(typescript@4.9.4) + react-dev-utils: 12.0.1(eslint@8.35.0)(typescript@4.9.5) transitivePeerDependencies: - eslint - supports-color @@ -38861,7 +45112,7 @@ packages: - webpack dev: false - /react-dev-utils@12.0.1(eslint@8.35.0)(typescript@4.9.4): + /react-dev-utils@12.0.1(eslint@8.35.0)(typescript@4.9.5): resolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==} engines: {node: '>=14'} peerDependencies: @@ -38875,21 +45126,21 @@ packages: dependencies: '@babel/code-frame': 7.22.5 address: 1.1.2 - browserslist: 4.21.5 + browserslist: 4.22.2 chalk: 4.1.2 cross-spawn: 7.0.3 detect-port-alt: 1.1.6 escape-string-regexp: 4.0.0 filesize: 8.0.7 find-up: 5.0.0 - fork-ts-checker-webpack-plugin: 6.5.2(eslint@8.35.0)(typescript@4.9.4) + fork-ts-checker-webpack-plugin: 6.5.2(eslint@8.35.0)(typescript@4.9.5) global-modules: 2.0.0 globby: 11.1.0 gzip-size: 6.0.0 immer: 9.0.15 is-root: 2.1.0 loader-utils: 3.2.0 - open: 8.4.0 + open: 8.4.2 pkg-up: 3.1.0 prompts: 2.4.2 react-error-overlay: 6.0.11 @@ -38897,7 +45148,7 @@ packages: shell-quote: 1.7.4 strip-ansi: 6.0.1 text-table: 0.2.0 - typescript: 4.9.4 + typescript: 4.9.5 transitivePeerDependencies: - eslint - supports-color @@ -38910,6 +45161,21 @@ packages: es6-symbol: 3.1.3 dev: false + /react-dom@16.14.0(react@16.14.0): + resolution: {integrity: sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==} + peerDependencies: + react: ^16.14.0 + peerDependenciesMeta: + react: + optional: true + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + prop-types: 15.8.1 + react: 16.14.0 + scheduler: 0.19.1 + dev: false + /react-dom@17.0.2(react@17.0.2): resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} peerDependencies: @@ -38935,7 +45201,19 @@ packages: react: 18.1.0 scheduler: 0.22.0 - /react-error-boundary@3.0.2(react@18.1.0): + /react-dom@18.3.1(react@18.3.1): + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + peerDependencies: + react: ^18.3.1 + peerDependenciesMeta: + react: + optional: true + dependencies: + loose-envify: 1.4.0 + react: 18.3.1 + scheduler: 0.23.2 + + /react-error-boundary@3.0.2(react@18.3.1): resolution: {integrity: sha512-KVzCusRTFpUYG0OFJbzbdRuxNQOBiGXVCqyNpBXM9z5NFsFLzMjUXMjx8gTja6M6WH+D2PvP3yKz4d8gD1PRaA==} engines: {node: '>=10', npm: '>=6'} peerDependencies: @@ -38945,10 +45223,10 @@ packages: optional: true dependencies: '@babel/runtime': 7.21.0 - react: 18.1.0 + react: 18.3.1 dev: false - /react-error-boundary@4.0.11(react@18.1.0): + /react-error-boundary@4.0.11(react@18.3.1): resolution: {integrity: sha512-U13ul67aP5DOSPNSCWQ/eO0AQEYzEFkVljULQIjMV0KlffTAhxuDoBKdO0pb/JZ8mDhMKFZ9NZi0BmLGUiNphw==} peerDependencies: react: '>=16.13.1' @@ -38956,8 +45234,8 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 - react: 18.1.0 + '@babel/runtime': 7.23.6 + react: 18.3.1 dev: true /react-error-overlay@6.0.11: @@ -38970,7 +45248,7 @@ packages: /react-fast-compare@3.2.0: resolution: {integrity: sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==} - /react-fittext@1.0.0(react-dom@18.1.0)(react@18.1.0): + /react-fittext@1.0.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-OmQCwFI5sHomW0WiVzXPm7tcdUNwal0lhSK/vDeOc2BPl/zB25ExJIrZun7uO1AV+fr4GQCMrfz5+PMTDc55rQ==} peerDependencies: react: ^15.0.0 @@ -38983,8 +45261,8 @@ packages: dependencies: create-react-class: 15.7.0 prop-types: 15.8.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /react-helmet-async@1.3.0(react-dom@17.0.2)(react@17.0.2): @@ -39005,6 +45283,7 @@ packages: react-dom: 17.0.2(react@17.0.2) react-fast-compare: 3.2.0 shallowequal: 1.1.0 + dev: false /react-helmet-async@1.3.0(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==} @@ -39024,8 +45303,28 @@ packages: react-dom: 18.1.0(react@18.1.0) react-fast-compare: 3.2.0 shallowequal: 1.1.0 + dev: true + + /react-helmet-async@1.3.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==} + peerDependencies: + react: ^16.6.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@babel/runtime': 7.18.9 + invariant: 2.2.4 + prop-types: 15.8.1 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-fast-compare: 3.2.0 + shallowequal: 1.1.0 - /react-helmet@6.1.0(react@18.1.0): + /react-helmet@6.1.0(react@18.3.1): resolution: {integrity: sha512-4uMzEY9nlDlgxr61NL3XbKRy1hEkXmKNXhjbAIOVw5vcFrsdYbH2FEwcNyWvWinl103nXgzYNlns9ca+8kFiWw==} peerDependencies: react: '>=16.3.0' @@ -39035,9 +45334,9 @@ packages: dependencies: object-assign: 4.1.1 prop-types: 15.8.1 - react: 18.1.0 + react: 18.3.1 react-fast-compare: 3.2.0 - react-side-effect: 2.1.2(react@18.1.0) + react-side-effect: 2.1.2(react@18.3.1) dev: false /react-intl@3.12.1(react@17.0.2): @@ -39063,7 +45362,7 @@ packages: shallow-equal: 1.2.1 dev: true - /react-intl@3.12.1(react@18.1.0): + /react-intl@3.12.1(react@18.3.1): resolution: {integrity: sha512-cgumW29mwROIqyp8NXStYsoIm27+8FqnxykiLSawWjOxGIBeLuN/+p2srei5SRIumcJefOkOIHP+NDck05RgHg==} peerDependencies: react: ^16.3.0 @@ -39082,11 +45381,11 @@ packages: intl-format-cache: 4.3.1 intl-messageformat: 7.8.4 intl-messageformat-parser: 3.6.4 - react: 18.1.0 + react: 18.3.1 shallow-equal: 1.2.1 dev: false - /react-intl@6.4.4(react@18.1.0)(typescript@4.9.4): + /react-intl@6.4.4(react@18.3.1)(typescript@4.9.5): resolution: {integrity: sha512-/C9Sl/5//ohfkNG6AWlJuf4BhTXsbzyk93K62A4zRhSPANyOGpKZ+fWhN+TLfFd5YjDUHy+exU/09y0w1bO4Xw==} peerDependencies: react: ^16.6.0 || 17 || 18 @@ -39099,16 +45398,16 @@ packages: dependencies: '@formatjs/ecma402-abstract': 1.17.0 '@formatjs/icu-messageformat-parser': 2.6.0 - '@formatjs/intl': 2.9.0(typescript@4.9.4) + '@formatjs/intl': 2.9.0(typescript@4.9.5) '@formatjs/intl-displaynames': 6.5.0 '@formatjs/intl-listformat': 7.4.0 '@types/hoist-non-react-statics': 3.3.1 - '@types/react': 18.2.6 + '@types/react': 18.3.3 hoist-non-react-statics: 3.3.2 intl-messageformat: 10.5.0 - react: 18.1.0 - tslib: 2.5.0 - typescript: 4.9.4 + react: 18.3.1 + tslib: 2.6.2 + typescript: 4.9.5 dev: true /react-is@16.13.1: @@ -39120,7 +45419,7 @@ packages: /react-is@18.2.0: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} - /react-json-view@1.21.3(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0): + /react-json-view@1.21.3(@types/react@18.0.26)(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==} peerDependencies: react: ^17.0.0 || ^16.3.0 || ^15.5.4 @@ -39131,12 +45430,12 @@ packages: react-dom: optional: true dependencies: - flux: 4.0.4(react@18.1.0) - react: 18.1.0 + flux: 4.0.4(react@18.3.1) + react: 18.3.1 react-base16-styling: 0.6.0 - react-dom: 18.1.0(react@18.1.0) + react-dom: 18.3.1(react@18.3.1) react-lifecycles-compat: 3.0.4 - react-textarea-autosize: 8.4.1(@types/react@18.0.26)(react@18.1.0) + react-textarea-autosize: 8.4.1(@types/react@18.0.26)(react@18.3.1) transitivePeerDependencies: - '@types/react' - encoding @@ -39148,7 +45447,7 @@ packages: /react-merge-refs@1.1.0: resolution: {integrity: sha512-alTKsjEL0dKH/ru1Iyn7vliS2QRcBp9zZPGoWxUOvRGWPUYgjo+V01is7p04It6KhgrzhJGnIj9GgX8W4bZoCQ==} - /react-motion@0.5.2(react@18.1.0): + /react-motion@0.5.2(react@18.3.1): resolution: {integrity: sha512-9q3YAvHoUiWlP3cK0v+w1N5Z23HXMj4IF4YuvjvWegWqNPfLXsOBE/V7UvQGpXxHFKRQQcNcVQE31g9SB/6qgQ==} peerDependencies: react: ^0.14.9 || ^15.3.0 || ^16.0.0 @@ -39159,10 +45458,19 @@ packages: performance-now: 0.2.0 prop-types: 15.8.1 raf: 3.4.1 - react: 18.1.0 + react: 18.3.1 dev: true - /react-reconciler@0.25.1(react@18.1.0): + /react-native-swipeout@2.3.6: + resolution: {integrity: sha512-t9suUCspzck4vp2pWggWe0frS/QOtX6yYCawHnEes75A7dZCEE74bxX2A1bQzGH9cUMjq6xsdfC94RbiDKIkJg==} + deprecated: Package no longer supported. Use at your own risk or consider using https://github.com/software-mansion/react-native-gesture-handler + dependencies: + create-react-class: 15.7.0 + prop-types: 15.8.1 + react-tween-state: 0.1.5 + dev: true + + /react-reconciler@0.25.1(react@18.3.1): resolution: {integrity: sha512-R5UwsIvRcSs3w8n9k3tBoTtUHdVhu9u84EG7E5M0Jk9F5i6DA1pQzPfUZd6opYWGy56MJOtV3VADzy6DRwYDjw==} engines: {node: '>=0.10.0'} peerDependencies: @@ -39174,11 +45482,11 @@ packages: loose-envify: 1.4.0 object-assign: 4.1.1 prop-types: 15.8.1 - react: 18.1.0 + react: 18.3.1 scheduler: 0.19.1 dev: false - /react-reconciler@0.27.0(react@18.1.0): + /react-reconciler@0.27.0(react@18.3.1): resolution: {integrity: sha512-HmMDKciQjYmBRGuuhIaKA1ba/7a+UsM5FzOZsMO2JYHt9Jh8reCb7j1eDC95NOyUlKM9KRyvdx0flBuDvYSBoA==} engines: {node: '>=0.10.0'} peerDependencies: @@ -39188,7 +45496,7 @@ packages: optional: true dependencies: loose-envify: 1.4.0 - react: 18.1.0 + react: 18.3.1 scheduler: 0.21.0 dev: false @@ -39206,7 +45514,7 @@ packages: react-native: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@types/react-redux': 7.1.24 hoist-non-react-statics: 3.3.2 loose-envify: 1.4.0 @@ -39252,7 +45560,7 @@ packages: use-sync-external-store: 1.2.0(react@17.0.2) dev: true - /react-redux@8.0.5(@types/react-dom@18.0.10)(@types/react@18.0.26)(react-dom@18.1.0)(react@18.1.0)(redux@4.2.1): + /react-redux@8.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1)(redux@4.2.1): resolution: {integrity: sha512-Q2f6fCKxPFpkXt1qNRZdEDLlScsDWyrgSj0mliK59qU6W5gvBiKkdMEG2lJzhd1rCctf0hb6EtePPLZ2e0m1uw==} peerDependencies: '@types/react': ^16.8 || ^17.0 || ^18.0 @@ -39277,27 +45585,22 @@ packages: dependencies: '@babel/runtime': 7.20.7 '@types/hoist-non-react-statics': 3.3.1 - '@types/react': 18.0.26 - '@types/react-dom': 18.0.10 + '@types/react': 18.3.3 + '@types/react-dom': 18.3.0 '@types/use-sync-external-store': 0.0.3 hoist-non-react-statics: 3.3.2 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) react-is: 18.2.0 redux: 4.2.1 - use-sync-external-store: 1.2.0(react@18.1.0) + use-sync-external-store: 1.2.0(react@18.3.1) dev: false - /react-refresh@0.11.0: - resolution: {integrity: sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==} - engines: {node: '>=0.10.0'} - dev: true - /react-refresh@0.14.0: resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==} engines: {node: '>=0.10.0'} - /react-resize-detector@6.7.8(react-dom@18.1.0)(react@18.1.0): + /react-resize-detector@6.7.8(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-0FaEcUBAbn+pq3PT5a9hHRebUfuS1SRLGLpIw8LydU7zX429I6XJgKerKAMPsJH0qWAl6o5bVKNqFJqr6tGPYw==} peerDependencies: react: ^16.0.0 || ^17.0.0 @@ -39310,8 +45613,8 @@ packages: dependencies: '@types/resize-observer-browser': 0.1.7 lodash: 4.17.21 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) resize-observer-polyfill: 1.5.1 dev: false @@ -39348,6 +45651,22 @@ packages: react-dom: 18.1.0(react@18.1.0) react-router: 6.3.0(react@18.1.0) + /react-router-dom@6.3.0(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-uaJj7LKytRxZNQV8+RbzJWnJ8K2nPsOOEuX7aQstlMZKQT0164C+X2w6bnkqU3sjtLvpd5ojrezAyfZ1+0sStw==} + peerDependencies: + react: '>=16.8' + react-dom: '>=16.8' + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + history: 5.3.0 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-router: 6.3.0(react@18.3.1) + /react-router@6.3.0(react@17.0.2): resolution: {integrity: sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==} peerDependencies: @@ -39371,7 +45690,18 @@ packages: history: 5.3.0 react: 18.1.0 - /react-shallow-renderer@16.15.0(react@18.1.0): + /react-router@6.3.0(react@18.3.1): + resolution: {integrity: sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==} + peerDependencies: + react: '>=16.8' + peerDependenciesMeta: + react: + optional: true + dependencies: + history: 5.3.0 + react: 18.3.1 + + /react-shallow-renderer@16.15.0(react@18.3.1): resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==} peerDependencies: react: ^16.0.0 || ^17.0.0 || ^18.0.0 @@ -39380,11 +45710,11 @@ packages: optional: true dependencies: object-assign: 4.1.1 - react: 18.1.0 + react: 18.3.1 react-is: 18.2.0 dev: true - /react-side-effect@2.1.2(react@18.1.0): + /react-side-effect@2.1.2(react@18.3.1): resolution: {integrity: sha512-PVjOcvVOyIILrYoyGEpDN3vmYNLdy1CajSFNt4TDsVQC5KpTijDvWVoR+/7Rz2xT978D8/ZtFceXxzsPwZEDvw==} peerDependencies: react: ^16.3.0 || ^17.0.0 || ^18.0.0 @@ -39392,7 +45722,7 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false /react-sortable-hoc@2.0.0(react-dom@17.0.2)(react@17.0.2): @@ -39406,13 +45736,13 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 invariant: 2.2.4 prop-types: 15.8.1 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) - /react-sortable-hoc@2.0.0(react-dom@18.1.0)(react@18.1.0): + /react-sortable-hoc@2.0.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-JZUw7hBsAHXK7PTyErJyI7SopSBFRcFHDjWW5SWjcugY0i6iH7f+eJkY8cJmGMlZ1C9xz1J3Vjz0plFpavVeRg==} peerDependencies: react: ^16.3.0 || ^17.0.0 @@ -39423,14 +45753,14 @@ packages: react-dom: optional: true dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 invariant: 2.2.4 prop-types: 15.8.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /react-test-renderer@18.2.0(react@18.1.0): + /react-test-renderer@18.2.0(react@18.3.1): resolution: {integrity: sha512-JWD+aQ0lh2gvh4NM3bBM42Kx+XybOxCpgYK7F8ugAlpaTSnWsX+39Z4XkOykGZAHrjwwTZT3x3KxswVWxHPUqA==} peerDependencies: react: ^18.2.0 @@ -39438,13 +45768,13 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 react-is: 18.2.0 - react-shallow-renderer: 16.15.0(react@18.1.0) + react-shallow-renderer: 16.15.0(react@18.3.1) scheduler: 0.23.0 dev: true - /react-text-loop-next@0.0.3(react-dom@18.1.0)(react@18.1.0): + /react-text-loop-next@0.0.3(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-TbkzFLArOCrBcnyLFhB7Z+KOQvP9fmZYJ3x6gSdG6BE7wxrSBJ+LQaF+WqAQqTYpmSaHBDso7kKVRnGsrBYijQ==} peerDependencies: react: ^17.0.2 @@ -39456,12 +45786,12 @@ packages: optional: true dependencies: cxs: 6.2.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-motion: 0.5.2(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-motion: 0.5.2(react@18.3.1) dev: true - /react-textarea-autosize@8.4.1(@types/react@18.0.26)(react@18.1.0): + /react-textarea-autosize@8.4.1(@types/react@18.0.26)(react@18.3.1): resolution: {integrity: sha512-aD2C+qK6QypknC+lCMzteOdIjoMbNlgSFmJjCV+DrfTPwp59i/it9mMNf2HDzvRjQgKAyBDPyLJhcrzElf2U4Q==} engines: {node: '>=10'} peerDependencies: @@ -39470,15 +45800,22 @@ packages: react: optional: true dependencies: - '@babel/runtime': 7.21.0 - react: 18.1.0 - use-composed-ref: 1.3.0(react@18.1.0) - use-latest: 1.2.1(@types/react@18.0.26)(react@18.1.0) + '@babel/runtime': 7.23.6 + react: 18.3.1 + use-composed-ref: 1.3.0(react@18.3.1) + use-latest: 1.2.1(@types/react@18.0.26)(react@18.3.1) transitivePeerDependencies: - '@types/react' dev: true - /react-universal-interface@0.6.2(react@18.1.0)(tslib@2.5.0): + /react-tween-state@0.1.5: + resolution: {integrity: sha512-sJQpjsdn0wjlDIUpfpb7jQGnOG8hAEW2e8k0KPA+xmf5KFa6Xat2JldbmxBhaqP0S/uIXhVE5ymKyH/b9X8nYA==} + dependencies: + raf: 3.4.1 + tween-functions: 1.2.0 + dev: true + + /react-universal-interface@0.6.2(react@18.3.1)(tslib@2.6.2): resolution: {integrity: sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw==} peerDependencies: react: '*' @@ -39487,11 +45824,11 @@ packages: react: optional: true dependencies: - react: 18.1.0 - tslib: 2.5.0 + react: 18.3.1 + tslib: 2.6.2 dev: false - /react-use-measure@2.1.1(react-dom@18.1.0)(react@18.1.0): + /react-use-measure@2.1.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-nocZhN26cproIiIduswYpV5y5lQpSQS1y/4KuvUCjSKmw7ZWIS/+g3aFnX3WdBkyuGUtTLif3UTqnLLhbDoQig==} peerDependencies: react: '>=16.13' @@ -39503,11 +45840,11 @@ packages: optional: true dependencies: debounce: 1.2.1 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false - /react-use@17.3.1(react-dom@18.1.0)(react@18.1.0): + /react-use@17.3.1(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-hs7+tS4rRm1QLHPfanLCqXIi632tP4V7Sai1ENUP2WTufU6am++tU9uSw9YrNCFqbABiEv0ndKU1XCUcfu2tXA==} peerDependencies: react: ^16.8.0 || ^17.0.0 @@ -39520,20 +45857,29 @@ packages: dependencies: '@types/js-cookie': 2.2.7 '@xobotyi/scrollbar-width': 1.9.5 - copy-to-clipboard: 3.3.1 + copy-to-clipboard: 3.3.3 fast-deep-equal: 3.1.3 fast-shallow-equal: 1.0.0 js-cookie: 2.2.1 - nano-css: 5.3.5(react-dom@18.1.0)(react@18.1.0) - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) - react-universal-interface: 0.6.2(react@18.1.0)(tslib@2.5.0) + nano-css: 5.3.5(react-dom@18.3.1)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-universal-interface: 0.6.2(react@18.3.1)(tslib@2.6.2) resize-observer-polyfill: 1.5.1 screenfull: 5.2.0 set-harmonic-interval: 1.0.1 throttle-debounce: 3.0.1 ts-easing: 0.2.0 - tslib: 2.5.0 + tslib: 2.6.2 + dev: false + + /react@16.14.0: + resolution: {integrity: sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==} + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + prop-types: 15.8.1 dev: false /react@17.0.2: @@ -39549,6 +45895,12 @@ packages: dependencies: loose-envify: 1.4.0 + /react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: 1.4.0 + /reactcss@1.2.3(react@17.0.2): resolution: {integrity: sha512-KiwVUcFu1RErkI97ywr8nvx8dNOpT03rbnma0SSalTYjkrPYaEajR4a/MRt6DZ46K6arDRbWMNHF+xH7G7n/8A==} peerDependencies: @@ -39560,7 +45912,7 @@ packages: lodash: 4.17.21 react: 17.0.2 - /reactcss@1.2.3(react@18.1.0): + /reactcss@1.2.3(react@18.3.1): resolution: {integrity: sha512-KiwVUcFu1RErkI97ywr8nvx8dNOpT03rbnma0SSalTYjkrPYaEajR4a/MRt6DZ46K6arDRbWMNHF+xH7G7n/8A==} peerDependencies: react: '*' @@ -39569,7 +45921,7 @@ packages: optional: true dependencies: lodash: 4.17.21 - react: 18.1.0 + react: 18.3.1 dev: false /read-cache@1.0.0: @@ -39582,9 +45934,9 @@ packages: engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} dev: true - /read-cmd-shim@3.0.1: - resolution: {integrity: sha512-kEmDUoYf/CDy8yZbLTmhB1X9kkjf9Q80PCNsDMb7ufrGd6zZSQA1+UyjrO+pZm5K/S4OXCWJeiIt1JA8kAsa6g==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /read-cmd-shim@4.0.0: + resolution: {integrity: sha512-yILWifhaSEEytfXI76kB9xEEiG1AiozaCJZ83A87ytjRiN+jVibXjedjCRNjoZviinhG+4UkalO3mWTd8u5O0Q==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dev: true /read-package-json-fast@2.0.3: @@ -39595,9 +45947,18 @@ packages: npm-normalize-package-bin: 1.0.1 dev: true + /read-package-json-fast@3.0.2: + resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + json-parse-even-better-errors: 3.0.2 + npm-normalize-package-bin: 3.0.1 + dev: true + /read-package-json@5.0.1: resolution: {integrity: sha512-MALHuNgYWdGW3gKzuNMuYtcSSZbGQm94fAp16xt8VsYTLBjUSc55bLMKe6gzpWue0Tfi6CBgwCSdDAqutGDhMg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + deprecated: This package is no longer supported. Please use @npmcli/package-json instead. dependencies: glob: 8.0.3 json-parse-even-better-errors: 2.3.1 @@ -39608,6 +45969,7 @@ packages: /read-package-json@5.0.2: resolution: {integrity: sha512-BSzugrt4kQ/Z0krro8zhTwV1Kd79ue25IhNN/VtHFy1mG/6Tluyi+msc0UpwaoQzxSHa28mntAjIZY6kEgfR9Q==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + deprecated: This package is no longer supported. Please use @npmcli/package-json instead. dependencies: glob: 8.0.3 json-parse-even-better-errors: 2.3.1 @@ -39615,6 +45977,17 @@ packages: npm-normalize-package-bin: 2.0.0 dev: true + /read-package-json@6.0.4: + resolution: {integrity: sha512-AEtWXYfopBj2z5N5PbkAOeNHRPUg5q+Nen7QLxV8M2zJq1ym6/lCz3fYNTCXe19puu2d06jfHhrP7v/S2PtMMw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + deprecated: This package is no longer supported. Please use @npmcli/package-json instead. + dependencies: + glob: 10.3.12 + json-parse-even-better-errors: 3.0.2 + normalize-package-data: 5.0.0 + npm-normalize-package-bin: 3.0.1 + dev: true + /read-pkg-up@3.0.0: resolution: {integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==} engines: {node: '>=4'} @@ -39675,18 +46048,6 @@ packages: string_decoder: 0.10.31 dev: true - /readable-stream@2.3.7: - resolution: {integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==} - dependencies: - core-util-is: 1.0.3 - inherits: 2.0.4 - isarray: 1.0.0 - process-nextick-args: 2.0.1 - safe-buffer: 5.1.2 - string_decoder: 1.1.1 - util-deprecate: 1.0.2 - dev: true - /readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} dependencies: @@ -39715,15 +46076,6 @@ packages: string_decoder: 1.3.0 util-deprecate: 1.0.2 - /readdir-scoped-modules@1.1.0: - resolution: {integrity: sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw==} - dependencies: - debuglog: 1.0.1 - dezalgo: 1.0.4 - graceful-fs: 4.2.11 - once: 1.4.0 - dev: true - /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} @@ -39747,7 +46099,7 @@ packages: dependencies: resolve: 1.22.0 - /recoil@0.7.6(react-dom@18.1.0)(react@18.1.0): + /recoil@0.7.6(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-hsBEw7jFdpBCY/tu2GweiyaqHKxVj6EqF2/SfrglbKvJHhpN57SANWvPW+gE90i3Awi+A5gssOd3u+vWlT+g7g==} peerDependencies: react: '>=16.13.1' @@ -39762,8 +46114,8 @@ packages: optional: true dependencies: hamt_plus: 1.0.2 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) dev: false /recursive-readdir@2.2.2: @@ -39803,19 +46155,19 @@ packages: /redux@4.2.1: resolution: {integrity: sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 /reflect-metadata@0.1.13: resolution: {integrity: sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==} - /reflect.getprototypeof@1.0.3: - resolution: {integrity: sha512-TTAOZpkJ2YLxl7mVHWrNo3iDMEkYlva/kgFcXndqMgbo/AZUmmavEkdXV+hXtE4P8xdyEKRzalaFqZVuwIk/Nw==} + /reflect.getprototypeof@1.0.4: + resolution: {integrity: sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 globalthis: 1.0.3 which-builtin-type: 1.1.3 @@ -39823,15 +46175,8 @@ packages: resolution: {integrity: sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w==} dev: true - /regenerate-unicode-properties@10.0.1: - resolution: {integrity: sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw==} - engines: {node: '>=4'} - dependencies: - regenerate: 1.4.2 - dev: true - - /regenerate-unicode-properties@10.1.0: - resolution: {integrity: sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==} + /regenerate-unicode-properties@10.1.1: + resolution: {integrity: sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==} engines: {node: '>=4'} dependencies: regenerate: 1.4.2 @@ -39846,21 +46191,18 @@ packages: /regenerator-runtime@0.13.11: resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==} - /regenerator-runtime@0.13.9: - resolution: {integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==} - dev: true + /regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} /regenerator-transform@0.15.1: resolution: {integrity: sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 - /regex-not@1.0.2: - resolution: {integrity: sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==} - engines: {node: '>=0.10.0'} + /regenerator-transform@0.15.2: + resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} dependencies: - extend-shallow: 3.0.2 - safe-regex: 1.1.0 + '@babel/runtime': 7.23.6 dev: true /regexp-to-ast@0.5.0: @@ -39871,46 +46213,25 @@ packages: resolution: {integrity: sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==} dev: true - /regexp.prototype.flags@1.4.3: - resolution: {integrity: sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==} + /regexp.prototype.flags@1.5.1: + resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.1.4 - functions-have-names: 1.2.3 - dev: false - - /regexp.prototype.flags@1.5.0: - resolution: {integrity: sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==} - engines: {node: '>= 0.4'} - dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - functions-have-names: 1.2.3 + call-bind: 1.0.5 + define-properties: 1.2.1 + set-function-name: 2.0.1 /regexpp@3.2.0: resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} engines: {node: '>=8'} - /regexpu-core@5.2.2: - resolution: {integrity: sha512-T0+1Zp2wjF/juXMrMxHxidqGYn8U4R+zleSJhX9tQ1PUsS8a9UtYfbsF9LdiVgNX3kiX8RNaKM42nfSgvFJjmw==} - engines: {node: '>=4'} - dependencies: - regenerate: 1.4.2 - regenerate-unicode-properties: 10.1.0 - regjsgen: 0.7.1 - regjsparser: 0.9.1 - unicode-match-property-ecmascript: 2.0.0 - unicode-match-property-value-ecmascript: 2.1.0 - dev: true - /regexpu-core@5.3.2: resolution: {integrity: sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==} engines: {node: '>=4'} dependencies: '@babel/regjsgen': 0.8.0 regenerate: 1.4.2 - regenerate-unicode-properties: 10.1.0 + regenerate-unicode-properties: 10.1.1 regjsparser: 0.9.1 unicode-match-property-ecmascript: 2.0.0 unicode-match-property-value-ecmascript: 2.1.0 @@ -39943,10 +46264,6 @@ packages: rc: 1.2.8 dev: true - /regjsgen@0.7.1: - resolution: {integrity: sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==} - dev: true - /regjsparser@0.9.1: resolution: {integrity: sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==} hasBin: true @@ -40065,7 +46382,7 @@ packages: /remark-parse@10.0.1: resolution: {integrity: sha512-1fUyHr2jLsVOkhbvPRBJ5zTKZZyD6yZzYaWCS6BPBdQ8vEMBCH+9zNCDA6tET/zHCi/jLqjCWtlJZUPk+DbnFw==} dependencies: - '@types/mdast': 3.0.11 + '@types/mdast': 3.0.12 mdast-util-from-markdown: 1.3.0 unified: 10.1.2 transitivePeerDependencies: @@ -40093,8 +46410,8 @@ packages: /remark-rehype@10.1.0: resolution: {integrity: sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==} dependencies: - '@types/hast': 2.3.4 - '@types/mdast': 3.0.11 + '@types/hast': 2.3.5 + '@types/mdast': 3.0.12 mdast-util-to-hast: 12.3.0 unified: 10.1.2 dev: true @@ -40132,10 +46449,6 @@ packages: /remove-accents@0.4.2: resolution: {integrity: sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==} - /remove-trailing-separator@1.1.0: - resolution: {integrity: sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==} - dev: true - /rename-keys@1.2.0: resolution: {integrity: sha512-U7XpAktpbSgHTRSNRrjKSrjYkZKuhUukfoBlXWXUExCAqhzh1TU3BDRAfJmarcl5voKS+pbKU9MvyLWKZ4UEEg==} engines: {node: '>= 0.8.0'} @@ -40150,11 +46463,6 @@ packages: lodash: 4.17.21 strip-ansi: 6.0.1 - /repeat-element@1.1.4: - resolution: {integrity: sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==} - engines: {node: '>=0.10.0'} - dev: true - /repeat-string@1.6.1: resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==} engines: {node: '>=0.10'} @@ -40255,16 +46563,15 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} + /resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + /resolve-protobuf-schema@2.1.0: resolution: {integrity: sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==} dependencies: protocol-buffers-schema: 3.6.0 dev: false - /resolve-url@0.2.1: - resolution: {integrity: sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==} - dev: true - /resolve.exports@2.0.0: resolution: {integrity: sha512-6K/gDlqgQscOlg9fSRpWstA8sYe8rbELsSTNpx+3kTrsVCzvSl0zIvRErM7fdl9ERWDsKnrLnwB+Ne89918XOg==} engines: {node: '>=10'} @@ -40278,7 +46585,7 @@ packages: /resolve@1.19.0: resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} dependencies: - is-core-module: 2.10.0 + is-core-module: 2.13.1 path-parse: 1.0.7 dev: true @@ -40296,11 +46603,19 @@ packages: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - /resolve@2.0.0-next.4: - resolution: {integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==} + /resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} + hasBin: true + dependencies: + is-core-module: 2.13.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + /resolve@2.0.0-next.5: + resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==} hasBin: true dependencies: - is-core-module: 2.12.1 + is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -40332,17 +46647,20 @@ packages: signal-exit: 3.0.7 dev: true + /restore-cursor@4.0.0: + resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + onetime: 5.1.2 + signal-exit: 3.0.7 + dev: true + /resumer@0.0.0: resolution: {integrity: sha512-Fn9X8rX8yYF4m81rZCK/5VmrmsSbqS/i3rDLl6ZZHAXgC2nTAx3dhwG8q8odP/RmdLa2YrybDJaAMg+X1ajY3w==} dependencies: through: 2.3.8 dev: false - /ret@0.1.15: - resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==} - engines: {node: '>=0.12'} - dev: true - /retry@0.10.1: resolution: {integrity: sha512-ZXUSQYTHdl3uS7IuCehYfMzKyIDBNoAuUblvy5oGO5UJSUTmStUUVPXbA9Qxd173Bgre53yCQczQuHgRWAdvJQ==} dev: true @@ -40377,6 +46695,7 @@ packages: /rimraf@2.7.1: resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true dependencies: glob: 7.2.3 @@ -40388,12 +46707,188 @@ packages: dependencies: glob: 7.2.3 + /rimraf@4.4.1: + resolution: {integrity: sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==} + engines: {node: '>=14'} + hasBin: true + dependencies: + glob: 9.3.5 + dev: true + + /rimraf@5.0.1: + resolution: {integrity: sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==} + engines: {node: '>=14'} + hasBin: true + dependencies: + glob: 10.3.12 + dev: false + /ripemd160@2.0.2: resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==} dependencies: hash-base: 3.1.0 inherits: 2.0.4 + /rmc-align@1.0.0: + resolution: {integrity: sha512-3gEa5/+hqqoEVoeQ25KoRc8DOsXIdSaVpaBq1zQFaV941LR3xvZIRTlxTDT/IagYwoGM1KZea/jd7cNMYP34Rg==} + dependencies: + babel-runtime: 6.26.0 + dom-align: 1.12.3 + rc-util: 4.21.1 + dev: true + + /rmc-calendar@1.1.4(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-xxQZaPFDnpHt4IFO8mukYrXSgC1W8LcNVp+EoX4iyeOJFimungOKB/iP5/cy+st8yXq8lUgk9TXsHNtM6Xo6ZA==} + dependencies: + babel-runtime: 6.26.0 + rc-animate: 2.11.1(react-dom@17.0.2)(react@17.0.2) + rmc-date-picker: 6.0.10(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rmc-cascader@5.0.3(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-PxDhMjWViDdG4SMZqoXtAthGwgDyYnyxxZEE17IDDYsiCHpWtOhoIL8nsI+/hZ212UT/XF2LpqCsOlMoJiYk+w==} + dependencies: + array-tree-filter: 2.1.0 + babel-runtime: 6.26.0 + rmc-picker: 5.0.10(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rmc-date-picker@6.0.10(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-/9+I6lm3EDEl6M7862V6++zFuxwsM0UEq8wSHbotYIPPmyB/65gx1cviblghOv2QfB0O9+U2w3qEJlRP/WsMrA==} + dependencies: + babel-runtime: 6.26.0 + rmc-picker: 5.0.10(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rmc-dialog@1.1.1(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-28aJqtPTX6v13Z/aU1WBy1AFIXkE74PxZXde7JvtEIy9hQDTjH8fqOi822BpzAbXCyNE7jF9iFomy3H2ClsDJA==} + dependencies: + babel-runtime: 6.26.0 + rc-animate: 2.11.1(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rmc-drawer@0.4.11: + resolution: {integrity: sha512-YfB9XEJ8iM0MMuLWAK4313uOxSM8NAljC8Cqun1KamXutglYTuRviUuTLNSOzV8HHPp5kNpsVduvPCGLWXvThw==} + engines: {node: '>=4.0.0'} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + prop-types: 15.8.1 + dev: true + + /rmc-feedback@2.0.0: + resolution: {integrity: sha512-5PWOGOW7VXks/l3JzlOU9NIxRpuaSS8d9zA3UULUCuTKnpwBHNvv1jSJzxgbbCQeYzROWUpgKI4za3X4C/mKmQ==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + dev: true + + /rmc-input-number@1.0.5: + resolution: {integrity: sha512-prPkEtoOVde77GnEnEaBeWjBobMOPgGqU5bd0gxfp1kt1pUN740mMpVAcH7uxpJjVfmw+kuGWtiz4S7CueagSg==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + rmc-feedback: 2.0.0 + dev: true + + /rmc-list-view@0.11.5: + resolution: {integrity: sha512-eMOC5394tLNawcdEEhF7boMpQgpjJGDdL5lS+LblAWdBec7Q4EYkUdnrKNbt+O9k5RGM6nSLAGZK5oB4FN85Lg==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + fbjs: 0.8.18 + prop-types: 15.8.1 + warning: 3.0.0 + zscroller: 0.4.8 + dev: true + + /rmc-notification@1.0.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-9sPxjltFvtRLt2v312Hu7OXwk53pHkBYgINRDmnJ3A5NF1qtJeCCcdN0Xr0fzJ6sbQvtGju822tWHdzYA9u7Vw==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + prop-types: 15.8.1 + rc-animate: 2.11.1(react-dom@17.0.2)(react@17.0.2) + rc-util: 4.21.1 + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rmc-nuka-carousel@3.0.1: + resolution: {integrity: sha512-w2EPTERMUUZqcUSKFuejjin7xsMlhrLrtS0A/igTXpFJGq3kemDKcRi7q3pSYDuZBHYBl5iV4UqsLLkjdFtrYA==} + dependencies: + exenv: 1.2.2 + raf: 3.4.1 + dev: true + + /rmc-picker@5.0.10(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-KZ70+WjcaZHnG5GyCxWCPFWAZ12s6NqyrbW73LeqH0WEqaTMMs0sOrk2f4mQAZ/CGT0XcFN6VZLw7Ozoxfn7LA==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + rmc-dialog: 1.1.1(react-dom@17.0.2)(react@17.0.2) + rmc-feedback: 2.0.0 + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rmc-pull-to-refresh@1.0.13: + resolution: {integrity: sha512-iYLsURiR7G/sKmRA6p2kq6ZXicn7Hyeo6VQFljssV1eMW+fzDgihhaz0kv5mza0f88vphGJvjOihT9E6+xGb6Q==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + dev: true + + /rmc-steps@1.0.1: + resolution: {integrity: sha512-8ijtwp4D1CYTtI2yerXJYqCv+GQbiBc9T12nrFngd/vM0y+58CnznGphTAueF6IWf7qbxBwcjTrcFgg7bP2YGA==} + dependencies: + babel-runtime: 6.26.0 + classnames: 2.3.2 + dev: true + + /rmc-tabs@1.2.29: + resolution: {integrity: sha512-wiJS9WSJi9JH9GQO+FqncX+zaHP31qHa/S8nDW9UXUx0qbCX294QcJEnvfB+WmsfUws7rXjs6sOQp5EDiObnHg==} + dependencies: + babel-runtime: 6.26.0 + rc-gesture: 0.0.22 + dev: true + + /rmc-tooltip@1.0.1(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-fSDArf2BlMVrHExmBiqb2TkCRJHshvXFJQ/7tMraLellwaJLNiwrxtWpW329k3S+zTtoVG8UxFS1TjBGEsMzRg==} + dependencies: + babel-runtime: 6.26.0 + rmc-trigger: 1.0.12(react-dom@17.0.2)(react@17.0.2) + transitivePeerDependencies: + - react + - react-dom + dev: true + + /rmc-trigger@1.0.12(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-AccQniX7PX7Pm8hBhHEsnf3JU6CA61Xc7fAt2WbO+oXrGaI/jqN8C3COhhOXG54S5iTOjLS26j858zshwAxR9A==} + dependencies: + babel-runtime: 6.26.0 + rc-animate: 2.11.1(react-dom@17.0.2)(react@17.0.2) + rc-util: 4.21.1 + rmc-align: 1.0.0 + transitivePeerDependencies: + - react + - react-dom + dev: true + /rollup-plugin-copy@3.4.0: resolution: {integrity: sha512-rGUmYYsYsceRJRqLVlE9FivJMxJ7X6jDlP79fmFkL8sJs7VVMSVyA2yfyL+PGyO/vJs4A87hwhgVfz61njI+uQ==} engines: {node: '>=8.3'} @@ -40405,19 +46900,6 @@ packages: is-plain-object: 3.0.1 dev: true - /rollup-plugin-visualizer@5.6.0: - resolution: {integrity: sha512-CKcc8GTUZjC+LsMytU8ocRr/cGZIfMR7+mdy4YnlyetlmIl/dM8BMnOEpD4JPIGt+ZVW7Db9ZtSsbgyeBH3uTA==} - engines: {node: '>=12'} - hasBin: true - peerDependencies: - rollup: ^2.0.0 - dependencies: - nanoid: 3.3.4 - open: 8.4.0 - source-map: 0.7.4 - yargs: 17.6.2 - dev: true - /rollup-plugin-visualizer@5.9.0(rollup@3.7.0): resolution: {integrity: sha512-bbDOv47+Bw4C/cgs0czZqfm8L82xOZssk4ayZjG40y9zbXclNk7YikrZTDao6p7+HDiGxrN0b65SgZiVm9k1Cg==} engines: {node: '>=14'} @@ -40446,31 +46928,26 @@ packages: resolution: {integrity: sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g==} engines: {node: '>=10.0.0'} optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 dev: true - /rollup@3.20.7: - resolution: {integrity: sha512-P7E2zezKSLhWnTz46XxjSmInrbOCiul1yf+kJccMxT56vxjHwCbDfoLbiqFgu+WQoo9ij2PkraYaBstgB2prBA==} + /rollup@3.29.4: + resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 /rollup@3.7.0: resolution: {integrity: sha512-FIJe0msW9P7L9BTfvaJyvn1U1BVCNTL3w8O+PKIrCyiMLg+rIUGb4MbcgVZ10Lnm1uWXOTOWRNARjfXC1+M12Q==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} optionalDependencies: - fsevents: 2.3.2 - - /rsvp@4.8.5: - resolution: {integrity: sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==} - engines: {node: 6.* || >= 7.*} - dev: true + fsevents: 2.3.3 /rtl-css-js@1.16.0: resolution: {integrity: sha512-Oc7PnzwIEU4M0K1J4h/7qUUaljXhQ0kCObRsZjxs2HjkpKsnoTMvSmvJ4sqgJZd0zBoEfAyTdnK/jMIYvrjySQ==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 dev: false /run-applescript@5.0.0: @@ -40508,7 +46985,7 @@ packages: /rxjs@7.8.0: resolution: {integrity: sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /sade@1.8.1: @@ -40518,15 +46995,14 @@ packages: mri: 1.2.0 dev: true - /safe-array-concat@1.0.0: - resolution: {integrity: sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==} + /safe-array-concat@1.0.1: + resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} engines: {node: '>=0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 has-symbols: 1.0.3 isarray: 2.0.5 - dev: true /safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} @@ -40546,16 +47022,10 @@ packages: /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 is-regex: 1.1.4 - /safe-regex@1.1.0: - resolution: {integrity: sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==} - dependencies: - ret: 0.1.15 - dev: true - /safe-regex@2.1.1: resolution: {integrity: sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==} dependencies: @@ -40574,24 +47044,7 @@ packages: /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - /sane@4.1.0: - resolution: {integrity: sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==} - engines: {node: 6.* || 8.* || >= 10.*} - dependencies: - '@cnakazawa/watch': 1.0.4 - anymatch: 2.0.0 - capture-exit: 2.0.0 - exec-sh: 0.3.6 - execa: 1.0.0 - fb-watchman: 2.0.1 - micromatch: 3.1.10 - minimist: 1.2.8 - walker: 1.0.8 - transitivePeerDependencies: - - supports-color - dev: true - - /sass-loader@13.2.0(webpack@5.76.1): + /sass-loader@13.2.0(webpack@5.88.2): resolution: {integrity: sha512-JWEp48djQA4nbZxmgC02/Wh0eroSUutulROUusYJO9P9zltRbNN80JCBHqRGzjd4cmZCa/r88xgfkjGD0TXsHg==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -40614,7 +47067,7 @@ packages: dependencies: klona: 2.0.5 neo-async: 2.6.2 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /sass@1.57.1: @@ -40635,9 +47088,16 @@ packages: chokidar: 3.5.3 immutable: 4.1.0 source-map-js: 1.0.2 + dev: true /sax@1.2.4: resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} + requiresBuild: true + dev: true + + /sax@1.3.0: + resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==} + requiresBuild: true /saxes@6.0.0: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} @@ -40676,11 +47136,16 @@ packages: loose-envify: 1.4.0 dev: true + /scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + dependencies: + loose-envify: 1.4.0 + /schema-utils@2.7.0: resolution: {integrity: sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==} engines: {node: '>= 8.9.0'} dependencies: - '@types/json-schema': 7.0.11 + '@types/json-schema': 7.0.12 ajv: 6.12.6 ajv-keywords: 3.5.2(ajv@6.12.6) dev: false @@ -40689,7 +47154,15 @@ packages: resolution: {integrity: sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==} engines: {node: '>= 10.13.0'} dependencies: - '@types/json-schema': 7.0.11 + '@types/json-schema': 7.0.12 + ajv: 6.12.6 + ajv-keywords: 3.5.2(ajv@6.12.6) + + /schema-utils@3.3.0: + resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/json-schema': 7.0.15 ajv: 6.12.6 ajv-keywords: 3.5.2(ajv@6.12.6) @@ -40702,6 +47175,16 @@ packages: ajv-formats: 2.1.1 ajv-keywords: 5.1.0(ajv@8.11.0) + /schema-utils@4.2.0: + resolution: {integrity: sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==} + engines: {node: '>= 12.13.0'} + dependencies: + '@types/json-schema': 7.0.12 + ajv: 8.11.0 + ajv-formats: 2.1.1 + ajv-keywords: 5.1.0(ajv@8.11.0) + dev: true + /screenfull@5.2.0: resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} engines: {node: '>=0.10.0'} @@ -40725,13 +47208,13 @@ packages: /select-hose@2.0.0: resolution: {integrity: sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==} - /selenium-webdriver@4.8.1: - resolution: {integrity: sha512-p4MtfhCQdcV6xxkS7eI0tQN6+WNReRULLCAuT4RDGkrjfObBNXMJ3WT8XdK+aXTr5nnBKuh+PxIevM0EjJgkxA==} - engines: {node: '>= 14.20.0'} + /selenium-webdriver@4.22.0: + resolution: {integrity: sha512-GNbrkCHmy249ai885wgXqTfqL2lZnclUH/P8pwTDIqzyFxU3YhDiN7p/c9tMFA4NhgRdEBO2QCG+CWmG7xr/Mw==} + engines: {node: '>= 14.21.0'} dependencies: jszip: 3.10.1 - tmp: 0.2.1 - ws: 8.12.0 + tmp: 0.2.3 + ws: 8.17.1 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -40747,27 +47230,21 @@ packages: resolution: {integrity: sha512-gL8F8L4ORwsS0+iQ34yCYv///jsOq0ZL7WP55d1HnJ32o7tyFYEFQZQA22mrLIacZdU6xecaBBZ+uEiffGNyXw==} engines: {node: '>=0.10.0'} dependencies: - semver: 5.7.1 + semver: 5.7.2 dev: true - /semver@5.7.1: - resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} + /semver@5.7.2: + resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} hasBin: true + requiresBuild: true - /semver@6.3.0: - resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} + /semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true /semver@7.3.4: resolution: {integrity: sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==} engines: {node: '>=10'} - dependencies: - lru-cache: 6.0.0 - dev: true - - /semver@7.3.5: - resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==} - engines: {node: '>=10'} hasBin: true dependencies: lru-cache: 6.0.0 @@ -40785,14 +47262,19 @@ packages: dependencies: lru-cache: 6.0.0 - /semver@7.5.3: - resolution: {integrity: sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==} + /semver@7.5.2: + resolution: {integrity: sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==} engines: {node: '>=10'} hasBin: true dependencies: lru-cache: 6.0.0 dev: true + /semver@7.6.2: + resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} + engines: {node: '>=10'} + hasBin: true + /send@0.17.1: resolution: {integrity: sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==} engines: {node: '>= 0.8.0'} @@ -40838,7 +47320,7 @@ packages: resolution: {integrity: sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==} dependencies: no-case: 3.0.4 - tslib: 2.5.0 + tslib: 2.6.2 upper-case-first: 2.0.2 dev: true @@ -40847,6 +47329,11 @@ packages: dependencies: randombytes: 2.1.0 + /serialize-javascript@6.0.1: + resolution: {integrity: sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==} + dependencies: + randombytes: 2.1.0 + /serve-index@1.9.1: resolution: {integrity: sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==} engines: {node: '>= 0.8.0'} @@ -40888,21 +47375,39 @@ packages: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: true + /set-function-length@1.1.1: + resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.1 + + /set-function-length@1.2.2: + resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + + /set-function-name@2.0.1: + resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.1 + /set-harmonic-interval@1.0.1: resolution: {integrity: sha512-AhICkFV84tBP1aWqPwLZqFvAwqEoVA9kxNMniGEUvzOlm4vLmOFLiTT3UZ6bziJTy4bOVpzWGTfSCbmaayGx8g==} engines: {node: '>=6.9'} dev: false - /set-value@2.0.1: - resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==} - engines: {node: '>=0.10.0'} - dependencies: - extend-shallow: 2.0.1 - is-extendable: 0.1.1 - is-plain-object: 2.0.4 - split-string: 3.1.0 - dev: true - /setimmediate@1.0.5: resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} @@ -41026,9 +47531,18 @@ packages: /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 - object-inspect: 1.12.3 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + object-inspect: 1.13.1 + + /side-channel@1.0.6: + resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + object-inspect: 1.13.1 /signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -41036,7 +47550,6 @@ packages: /signal-exit@4.0.2: resolution: {integrity: sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==} engines: {node: '>=14'} - dev: true /signale@1.4.0: resolution: {integrity: sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==} @@ -41047,6 +47560,20 @@ packages: pkg-conf: 2.1.0 dev: true + /sigstore@1.9.0: + resolution: {integrity: sha512-0Zjz0oe37d08VeOtBIuB6cRriqXse2e8w+7yIy2XSXjshRKxbc2KkhXjL229jXSxEm7UbcjS76wcJDGQddVI9A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + hasBin: true + dependencies: + '@sigstore/bundle': 1.1.0 + '@sigstore/protobuf-specs': 0.2.1 + '@sigstore/sign': 1.0.0 + '@sigstore/tuf': 1.0.3 + make-fetch-happen: 11.1.1 + transitivePeerDependencies: + - supports-color + dev: true + /simple-statistics@6.1.1: resolution: {integrity: sha512-zGwn0DDRa9Zel4H4n2pjTFIyGoAGpnpjrGIctreCxj5XWrcx9v7Xy7270FkC967WMmcvuc8ZU7m0ZG+hGN7gAA==} dev: false @@ -41087,7 +47614,7 @@ packages: '@types/node': 17.0.45 '@types/sax': 1.2.4 arg: 5.0.2 - sax: 1.2.4 + sax: 1.3.0 dev: true /size-sensor@1.0.1: @@ -41102,6 +47629,7 @@ packages: /slash@2.0.0: resolution: {integrity: sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==} engines: {node: '>=6'} + dev: false /slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} @@ -41150,39 +47678,7 @@ packages: resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} dependencies: dot-case: 3.0.4 - tslib: 2.5.0 - dev: true - - /snapdragon-node@2.1.1: - resolution: {integrity: sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==} - engines: {node: '>=0.10.0'} - dependencies: - define-property: 1.0.0 - isobject: 3.0.1 - snapdragon-util: 3.0.1 - dev: true - - /snapdragon-util@3.0.1: - resolution: {integrity: sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 3.2.2 - dev: true - - /snapdragon@0.8.2: - resolution: {integrity: sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==} - engines: {node: '>=0.10.0'} - dependencies: - base: 0.11.2 - debug: 2.6.9 - define-property: 0.2.5 - extend-shallow: 2.0.1 - map-cache: 0.2.2 - source-map: 0.5.7 - source-map-resolve: 0.5.3 - use: 3.1.1 - transitivePeerDependencies: - - supports-color + tslib: 2.6.2 dev: true /sockjs@0.3.24: @@ -41279,17 +47775,6 @@ packages: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} - /source-map-resolve@0.5.3: - resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==} - deprecated: See https://github.com/lydell/source-map-resolve#deprecated - dependencies: - atob: 2.1.2 - decode-uri-component: 0.2.2 - resolve-url: 0.2.1 - source-map-url: 0.4.1 - urix: 0.1.0 - dev: true - /source-map-resolve@0.6.0: resolution: {integrity: sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==} deprecated: See https://github.com/lydell/source-map-resolve#deprecated @@ -41316,10 +47801,6 @@ packages: buffer-from: 1.1.2 source-map: 0.6.1 - /source-map-url@0.4.1: - resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==} - dev: true - /source-map@0.1.32: resolution: {integrity: sha512-htQyLrrRLkQ87Zfrir4/yN+vAUd6DNjVayEjTSHXu29AYQJw57I4/xEL/M6p6E/woPNJwvZt6rVlzc7gFEJccQ==} engines: {node: '>=0.8.0'} @@ -41420,7 +47901,7 @@ packages: /specificity@0.4.1: resolution: {integrity: sha512-1klA3Gi5PD1Wv9Q0wUoOQN1IWAuPu0D1U03ThXTr0cJ20+/iq2tHSDnK7Kk/0LXJ1ztUB2/1Os0wKmfyNgUQfg==} - /speed-measure-webpack-plugin@1.5.0(webpack@5.76.1): + /speed-measure-webpack-plugin@1.5.0(webpack@5.88.2): resolution: {integrity: sha512-Re0wX5CtM6gW7bZA64ONOfEPEhwbiSF/vz6e2GvadjuaPrQcHTQdRGsD8+BE7iUOysXH8tIenkPCQBEcspXsNg==} engines: {node: '>=6.0.0'} peerDependencies: @@ -41430,7 +47911,7 @@ packages: optional: true dependencies: chalk: 4.1.2 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /splaytree@3.1.1: @@ -41441,13 +47922,6 @@ packages: resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} engines: {node: '>=6'} - /split-string@3.1.0: - resolution: {integrity: sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==} - engines: {node: '>=0.10.0'} - dependencies: - extend-shallow: 3.0.2 - dev: true - /split2@3.2.2: resolution: {integrity: sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==} dependencies: @@ -41492,6 +47966,13 @@ packages: resolution: {integrity: sha512-ISv/Ch+ig7SOtw7G2+qkwfVASzazUnvlDTwypdLoPoySv+6MqlOV10VwPSE6EWkGjhW50lUmghPmpYZXMu/+AQ==} dev: false + /ssri@10.0.6: + resolution: {integrity: sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + minipass: 7.0.4 + dev: true + /ssri@4.1.6: resolution: {integrity: sha512-WUbCdgSAMQjTFZRWvSPpauryvREEA+Krn19rx67UlJEJx/M192ZHxMmJXjZ4tkdFm+Sb0SXGlENeQVlA5wY7kA==} dependencies: @@ -41570,14 +48051,6 @@ packages: resolution: {integrity: sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==} dev: false - /static-extend@0.1.2: - resolution: {integrity: sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==} - engines: {node: '>=0.10.0'} - dependencies: - define-property: 0.2.5 - object-copy: 0.1.0 - dev: true - /stats.js@0.17.0: resolution: {integrity: sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==} dev: false @@ -41598,7 +48071,7 @@ packages: resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==} engines: {node: '>= 0.4'} dependencies: - internal-slot: 1.0.5 + internal-slot: 1.0.6 /stream-browserify@2.0.2: resolution: {integrity: sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==} @@ -41661,6 +48134,11 @@ packages: engines: {node: '>=0.6.19'} dev: true + /string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} + engines: {node: '>=0.6.19'} + dev: true + /string-convert@0.2.1: resolution: {integrity: sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==} @@ -41703,54 +48181,64 @@ packages: eastasianwidth: 0.2.0 emoji-regex: 9.2.2 strip-ansi: 7.0.1 - dev: true /string.prototype.codepointat@0.2.1: resolution: {integrity: sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg==} dev: false + /string.prototype.matchall@4.0.10: + resolution: {integrity: sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==} + dependencies: + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 + has-symbols: 1.0.3 + internal-slot: 1.0.6 + regexp.prototype.flags: 1.5.1 + set-function-name: 2.0.1 + side-channel: 1.0.4 + /string.prototype.matchall@4.0.8: resolution: {integrity: sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 has-symbols: 1.0.3 - internal-slot: 1.0.5 - regexp.prototype.flags: 1.5.0 - side-channel: 1.0.4 + internal-slot: 1.0.6 + regexp.prototype.flags: 1.5.1 + side-channel: 1.0.6 + dev: true - /string.prototype.trim@1.2.6: - resolution: {integrity: sha512-8lMR2m+U0VJTPp6JjvJTtGyc4FIGq9CdRt7O9p6T0e6K4vjU+OP+SQJpbe/SBmRcCUIvNUnjsbmY6lnMp8MhsQ==} + /string.prototype.trim@1.2.8: + resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.1.4 - es-abstract: 1.21.1 - dev: false + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 - /string.prototype.trim@1.2.7: - resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==} - engines: {node: '>= 0.4'} + /string.prototype.trimend@1.0.7: + resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 - /string.prototype.trimend@1.0.6: - resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} + /string.prototype.trimstart@1.0.7: + resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + call-bind: 1.0.5 + define-properties: 1.2.1 + es-abstract: 1.22.3 - /string.prototype.trimstart@1.0.6: - resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} + /string_decoder-okam@1.3.0: + resolution: {integrity: sha512-N5lJgLJ02sIs9xNyqPgIywlGaLUW6s5cYRpnmM3gbfhGA3sggW0+E2go26D7oZgEH7jHpXDe+ArDrBXeCaP9QA==} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - es-abstract: 1.21.2 + safe-buffer: 5.2.1 + dev: false /string_decoder@0.10.31: resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==} @@ -41804,7 +48292,6 @@ packages: engines: {node: '>=12'} dependencies: ansi-regex: 6.0.1 - dev: true /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} @@ -41853,13 +48340,14 @@ packages: /strong-log-transformer@2.1.0: resolution: {integrity: sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA==} engines: {node: '>=4'} + hasBin: true dependencies: duplexer: 0.1.2 minimist: 1.2.8 through: 2.3.8 dev: true - /style-loader@3.3.1(webpack@5.76.1): + /style-loader@3.3.1(webpack@5.88.2): resolution: {integrity: sha512-GPcQ+LDJbrcxHORTRes6Jy2sfvK2kS6hpSfI/fXhPt+spVzxF6LJ1dHLN9zIGmVaaP044YKaIatFaufENRiDoQ==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -41868,7 +48356,7 @@ packages: webpack: optional: true dependencies: - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /style-mod@4.0.0: @@ -41890,8 +48378,8 @@ packages: inline-style-parser: 0.1.1 dev: true - /styled-components@6.0.0-beta.9(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-RYtmvWZForwSd24aZgi3iGZM/6HvJkP7zobHK+bwC01vI6QhHK5MX9ayXEnJWaFY7DoEWoAnar5ACiGVkTCoCQ==} + /styled-components@6.0.0-rc.0(react-dom@18.1.0)(react@18.1.0): + resolution: {integrity: sha512-3+Lnu1NC5JuieYi8dV/nhmlK7/yzqZW43u4P7WgIJfu5Dq5AiPU3t4efu0nWLmlMEmWrSXdrinxfbDnqnpP6hg==} engines: {node: '>= 14'} peerDependencies: babel-plugin-styled-components: '>= 2' @@ -41904,12 +48392,6 @@ packages: optional: true react-dom: optional: true - shallowequal: - optional: true - stylis: - optional: true - tslib: - optional: true dependencies: '@babel/cli': 7.21.5(@babel/core@7.22.5) '@babel/core': 7.22.5 @@ -41923,49 +48405,63 @@ packages: '@babel/traverse': 7.22.5 '@emotion/unitless': 0.8.0 css-to-react-native: 3.2.0 - react: 17.0.2 - react-dom: 17.0.2(react@17.0.2) + react: 18.1.0 + react-dom: 18.1.0(react@18.1.0) shallowequal: 1.1.0 stylis: 4.1.4 tslib: 2.5.0 transitivePeerDependencies: - supports-color - dev: true + dev: false - /styled-components@6.0.0-rc.0(react-dom@18.1.0)(react@18.1.0): - resolution: {integrity: sha512-3+Lnu1NC5JuieYi8dV/nhmlK7/yzqZW43u4P7WgIJfu5Dq5AiPU3t4efu0nWLmlMEmWrSXdrinxfbDnqnpP6hg==} - engines: {node: '>= 14'} + /styled-components@6.1.1(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-cpZZP5RrKRIClBW5Eby4JM1wElLVP4NQrJbJ0h10TidTyJf4SIIwa3zLXOoPb4gJi8MsJ8mjq5mu2IrEhZIAcQ==} + engines: {node: '>= 16'} peerDependencies: - babel-plugin-styled-components: '>= 2' react: '>= 16.8.0' react-dom: '>= 16.8.0' peerDependenciesMeta: - babel-plugin-styled-components: + react: + optional: true + react-dom: optional: true + dependencies: + '@emotion/is-prop-valid': 1.2.1 + '@emotion/unitless': 0.8.0 + '@types/stylis': 4.2.1 + css-to-react-native: 3.2.0 + csstype: 3.1.2 + postcss: 8.4.31 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + shallowequal: 1.1.0 + stylis: 4.3.0 + tslib: 2.5.0 + dev: true + + /styled-components@6.1.1(react-dom@18.3.1)(react@18.3.1): + resolution: {integrity: sha512-cpZZP5RrKRIClBW5Eby4JM1wElLVP4NQrJbJ0h10TidTyJf4SIIwa3zLXOoPb4gJi8MsJ8mjq5mu2IrEhZIAcQ==} + engines: {node: '>= 16'} + peerDependencies: + react: '>= 16.8.0' + react-dom: '>= 16.8.0' + peerDependenciesMeta: react: optional: true react-dom: optional: true dependencies: - '@babel/cli': 7.21.5(@babel/core@7.21.0) - '@babel/core': 7.21.0 - '@babel/helper-module-imports': 7.18.6 - '@babel/plugin-external-helpers': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-class-properties': 7.18.6(@babel/core@7.21.0) - '@babel/plugin-proposal-object-rest-spread': 7.20.7(@babel/core@7.21.0) - '@babel/preset-env': 7.20.2(@babel/core@7.21.0) - '@babel/preset-react': 7.18.6(@babel/core@7.21.0) - '@babel/preset-typescript': 7.21.0(@babel/core@7.21.0) - '@babel/traverse': 7.21.2 + '@emotion/is-prop-valid': 1.2.1 '@emotion/unitless': 0.8.0 + '@types/stylis': 4.2.1 css-to-react-native: 3.2.0 - react: 18.1.0 - react-dom: 18.1.0(react@18.1.0) + csstype: 3.1.2 + postcss: 8.4.31 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) shallowequal: 1.1.0 - stylis: 4.1.4 + stylis: 4.3.0 tslib: 2.5.0 - transitivePeerDependencies: - - supports-color /stylehacks@5.1.0(postcss@8.4.21): resolution: {integrity: sha512-SzLmvHQTrIWfSgljkQCw2++C9+Ne91d/6Sp92I8c5uHTcy/PgeHamwITIbBW9wnFTY/3ZfSXR9HIL6Ikqmcu6Q==} @@ -41976,9 +48472,23 @@ packages: postcss: optional: true dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 postcss: 8.4.21 - postcss-selector-parser: 6.0.10 + postcss-selector-parser: 6.0.13 + dev: true + + /stylehacks@6.0.0(postcss@8.4.31): + resolution: {integrity: sha512-+UT589qhHPwz6mTlCLSt/vMNTJx8dopeJlZAlBMJPWA3ORqu6wmQY7FBXf+qD+FsqoBJODyqNxOUP3jdntFRdw==} + engines: {node: ^14 || ^16 || >=18.0} + peerDependencies: + postcss: ^8.2.15 + peerDependenciesMeta: + postcss: + optional: true + dependencies: + browserslist: 4.22.2 + postcss: 8.4.31 + postcss-selector-parser: 6.0.13 dev: true /stylelint-config-css-modules@2.3.0(stylelint@13.13.1): @@ -42116,7 +48626,7 @@ packages: globby: 11.1.0 globjoin: 0.1.4 html-tags: 3.2.0 - ignore: 5.2.0 + ignore: 5.2.4 import-lazy: 4.0.0 imurmurhash: 0.1.4 known-css-properties: 0.21.0 @@ -42208,6 +48718,38 @@ packages: /stylis@4.1.4: resolution: {integrity: sha512-USf5pszRYwuE6hg9by0OkKChkQYEXfkeTtm0xKw+jqQhwyjCVLdYyMBK7R+n7dhzsblAWJnGxju4vxq5eH20GQ==} + dev: false + + /stylis@4.3.0: + resolution: {integrity: sha512-E87pIogpwUsUwXw7dNyU4QDjdgVMy52m+XEOPEKUn161cCzWjjhPSQhByfd1CcNvrOLnXQ6OnnZDwnJrz/Z4YQ==} + + /stylus-loader@7.1.3(webpack@5.88.2): + resolution: {integrity: sha512-TY0SKwiY7D2kMd3UxaWKSf3xHF0FFN/FAfsSqfrhxRT/koXTwffq2cgEWDkLQz7VojMu7qEEHt5TlMjkPx9UDw==} + engines: {node: '>= 14.15.0'} + peerDependencies: + stylus: '>=0.52.4' + webpack: ^5.0.0 + peerDependenciesMeta: + webpack: + optional: true + dependencies: + fast-glob: 3.2.12 + normalize-path: 3.0.0 + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) + dev: true + + /stylus@0.60.0: + resolution: {integrity: sha512-j2pBgEwzCu05yCuY4cmyp0FtPQQFBBAGB7TY7QaNl7eztiHwkxzwvIp5vjZJND/a1JNOka+ZW9ewVPFZpI3pcA==} + hasBin: true + dependencies: + '@adobe/css-tools': 4.2.0 + debug: 4.3.4(supports-color@8.1.1) + glob: 7.2.3 + sax: 1.2.4 + source-map: 0.7.4 + transitivePeerDependencies: + - supports-color + dev: true /sugarss@2.0.0: resolution: {integrity: sha512-WfxjozUk0UVA4jm+U1d736AUpzSrNsQcIbyOkoE364GrtWmIrFdk5lksEupgWMD4VaT/0kVx1dobpiDumSgmJQ==} @@ -42275,7 +48817,7 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - /suspend-react@0.0.8(react@18.1.0): + /suspend-react@0.0.8(react@18.3.1): resolution: {integrity: sha512-ZC3r8Hu1y0dIThzsGw0RLZplnX9yXwfItcvaIzJc2VQVi8TGyGDlu92syMB5ulybfvGLHAI5Ghzlk23UBPF8xg==} peerDependencies: react: '>=17.0' @@ -42283,7 +48825,7 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false /svg-parser@2.0.4: @@ -42336,6 +48878,19 @@ packages: picocolors: 1.0.0 stable: 0.1.8 + /svgo@3.0.3: + resolution: {integrity: sha512-X4UZvLhOglD5Xrp834HzGHf8RKUW0Ahigg/08yRO1no9t2NxffOkMiQ0WmaMIbaGlVTlSst2zWANsdhz5ybXgA==} + engines: {node: '>=14.0.0'} + hasBin: true + dependencies: + '@trysound/sax': 0.2.0 + commander: 7.2.0 + css-select: 5.1.0 + css-tree: 2.2.1 + csso: 5.0.5 + picocolors: 1.0.0 + dev: true + /svgson@4.1.0: resolution: {integrity: sha512-DodISxHtdLKUghDYA+PGK4Qq350+CbBAkdvGLkBFSmWd9WKSg4dijgjB1IiRPTmsUCd+a7KYe+ILHtklYgQyzQ==} dependencies: @@ -42348,6 +48903,10 @@ packages: resolution: {integrity: sha512-vAsIdNHraLuBRm1vrxcMaLk/y/PGBTvHLf4lQGQ3LaEXkORtIxw11sBMpYJL3keOLaFJ1OqNXuURd6eShoFLZQ==} dev: true + /swagger-ui-dist@4.19.1: + resolution: {integrity: sha512-n/gFn+R7G/BXWwl5UZLw6F1YgWOlf3zkwGlsPhTMhNtAAolBGKg0JS5b2RKt5NI6/hSopVaSrki2wTIMUDDy2w==} + dev: true + /swagger2openapi@7.0.8: resolution: {integrity: sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g==} dependencies: @@ -42389,7 +48948,7 @@ packages: dependencies: react: 17.0.2 - /swr@1.3.0(react@18.1.0): + /swr@1.3.0(react@18.3.1): resolution: {integrity: sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw==} peerDependencies: react: ^16.11.0 || ^17.0.0 || ^18.0.0 @@ -42397,20 +48956,20 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false - /swr@2.0.4(react@18.1.0): - resolution: {integrity: sha512-4GUiTjknRUVuw4MWUHR7mzJ9G/DWL+yZz/TgWDfiA0OZ9tL6qyrTkN2wPeboBpL3OJTkej3pexh3mWCnv8cFkQ==} - engines: {pnpm: '7'} + /swr@2.2.5(react@18.3.1): + resolution: {integrity: sha512-QtxqyclFeAsxEUeZIYmsaQ0UjimSq1RZ9Un7I68/0ClKK/U3LoyQunwkQfJZr2fc22DfIXLNDc2wFyTEikCUpg==} peerDependencies: react: ^16.11.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: react: optional: true dependencies: - react: 18.1.0 - use-sync-external-store: 1.2.0(react@18.1.0) + client-only: 0.0.1 + react: 18.3.1 + use-sync-external-store: 1.2.0(react@18.3.1) dev: false /symbol-tree@3.2.4: @@ -42422,10 +48981,13 @@ packages: engines: {node: ^14.18.0 || >=16.0.0} dependencies: '@pkgr/utils': 2.4.0 - tslib: 2.5.0 + tslib: 2.6.2 - /systemjs@6.13.0: - resolution: {integrity: sha512-P3cgh2bpaPvAO2NE3uRp/n6hmk4xPX4DQf+UzTlCAycssKdqhp6hjw+ENWe+aUS7TogKRFtptMosTSFeC6R55g==} + /systemjs@6.14.2: + resolution: {integrity: sha512-1TlOwvKWdXxAY9vba+huLu99zrQURDWA8pUTYsRIYDZYQbGyK+pyEP4h4dlySsqo7ozyJBmYD20F+iUHhAltEg==} + + /systemjs@6.14.3: + resolution: {integrity: sha512-hQv45irdhXudAOr8r6SVSpJSGtogdGZUbJBRKCE5nsIS7tsxxvnIHqT4IOPWj+P+HcSzeWzHlGCGpmhPDIKe+w==} dev: true /table@6.8.0: @@ -42438,7 +49000,7 @@ packages: string-width: 4.2.3 strip-ansi: 6.0.1 - /tailwindcss@3.2.4(ts-node@10.9.1): + /tailwindcss@3.2.4(ts-node@10.9.2): resolution: {integrity: sha512-AhwtHCKMtR71JgeYDaswmZXhPcW9iuI9Sp2LvZPo9upDZ7231ZJ7eA9RaURbhpXGVlrjX4cFNlB4ieTetEb7hQ==} engines: {node: '>=12.13.0'} hasBin: true @@ -42463,7 +49025,7 @@ packages: postcss: 8.4.21 postcss-import: 14.1.0(postcss@8.4.21) postcss-js: 4.0.0(postcss@8.4.21) - postcss-load-config: 3.1.4(postcss@8.4.21)(ts-node@10.9.1) + postcss-load-config: 3.1.4(postcss@8.4.21)(ts-node@10.9.2) postcss-nested: 6.0.0(postcss@8.4.21) postcss-selector-parser: 6.0.10 postcss-value-parser: 4.2.0 @@ -42484,7 +49046,7 @@ packages: /tape@4.16.0: resolution: {integrity: sha512-mBlqYFr2mHysgCFXAuSarIQ+ffhielpb7a5/IbeOhMaLnQYhkJLUm6CwO1RszWeHRxnIpMessZ3xL2Cfo94BWw==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 deep-equal: 1.1.1 defined: 1.0.0 dotignore: 0.1.2 @@ -42494,10 +49056,10 @@ packages: inherits: 2.0.4 is-regex: 1.1.4 minimist: 1.2.8 - object-inspect: 1.12.2 - resolve: 1.22.1 + object-inspect: 1.12.3 + resolve: 1.22.8 resumer: 0.0.0 - string.prototype.trim: 1.2.6 + string.prototype.trim: 1.2.8 through: 2.3.8 dev: false @@ -42531,7 +49093,7 @@ packages: end-of-stream: 1.4.4 fs-constants: 1.0.0 inherits: 2.0.4 - readable-stream: 3.6.0 + readable-stream: 3.6.2 dev: true /tar@6.1.11: @@ -42563,6 +49125,22 @@ packages: engines: {node: '>=4'} dev: true + /temp-dir@2.0.0: + resolution: {integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==} + engines: {node: '>=8'} + dev: true + + /tempy@1.0.0: + resolution: {integrity: sha512-eLXG5B1G0mRPHmgH2WydPl5v4jH35qEn3y/rA/aahKhIa91Pn119SsU7n7v/433gtT9ONzC8ISvNHIh2JSTm0w==} + engines: {node: '>=10'} + dependencies: + del: 6.1.1 + is-stream: 2.0.1 + temp-dir: 2.0.0 + type-fest: 0.16.0 + unique-string: 2.0.0 + dev: true + /term-size@1.2.0: resolution: {integrity: sha512-7dPUZQGy/+m3/wjVz3ZW5dobSoD/02NxJpoXUX0WIyjfVS3l0c+b/+9phIDFA7FHzkYtwtMFgeGZ/Y8jVTeqQQ==} engines: {node: '>=4'} @@ -42570,11 +49148,6 @@ packages: execa: 0.7.0 dev: true - /term-size@2.2.1: - resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==} - engines: {node: '>=8'} - dev: true - /terminal-link@3.0.0: resolution: {integrity: sha512-flFL3m4wuixmf6IfhFJd1YPiLiMuxEc8uHRM1buzIeZPm22Au2pDqBJQgdo7n1WfPU1ONFGv7YDwpFBmHGF6lg==} engines: {node: '>=12'} @@ -42583,7 +49156,7 @@ packages: supports-hyperlinks: 2.2.0 dev: true - /terser-webpack-plugin@5.3.6(@swc/core@1.3.67)(uglify-js@3.17.4)(webpack@5.76.1): + /terser-webpack-plugin@5.3.6(@swc/core@1.3.67)(uglify-js@3.17.4)(webpack@5.88.2): resolution: {integrity: sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -42608,7 +49181,8 @@ packages: serialize-javascript: 6.0.0 terser: 5.16.1 uglify-js: 3.17.4 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) + dev: true /terser-webpack-plugin@5.3.6(esbuild@0.17.19)(uglify-js@3.17.4)(webpack@5.75.0): resolution: {integrity: sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==} @@ -42664,6 +49238,33 @@ packages: webpack: 5.76.1(uglify-js@3.17.4) dev: true + /terser-webpack-plugin@5.3.9(@swc/core@1.3.67)(uglify-js@3.17.4)(webpack@5.88.2): + resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + '@swc/core': '*' + esbuild: '*' + uglify-js: '*' + webpack: ^5.1.0 + peerDependenciesMeta: + '@swc/core': + optional: true + esbuild: + optional: true + uglify-js: + optional: true + webpack: + optional: true + dependencies: + '@jridgewell/trace-mapping': 0.3.20 + '@swc/core': 1.3.67 + jest-worker: 27.5.1 + schema-utils: 3.3.0 + serialize-javascript: 6.0.1 + terser: 5.17.4 + uglify-js: 3.17.4 + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) + /terser@5.16.1: resolution: {integrity: sha512-xvQfyfA1ayT0qdK47zskQgRZeWLoOQ8JQ6mIgRGVNwZKdQMU+5FkCBjmv4QjcrTzyZquRw2FVtlJSRUmMKQslw==} engines: {node: '>=10'} @@ -42679,7 +49280,17 @@ packages: hasBin: true dependencies: '@jridgewell/source-map': 0.3.3 - acorn: 8.8.2 + acorn: 8.11.2 + commander: 2.20.3 + source-map-support: 0.5.21 + + /terser@5.26.0: + resolution: {integrity: sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.5 + acorn: 8.11.2 commander: 2.20.3 source-map-support: 0.5.21 @@ -42738,7 +49349,7 @@ packages: peerDependencies: three: '>=0.122.0' dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 '@types/offscreencanvas': 2019.7.0 '@webgpu/glslang': 0.0.15 chevrotain: 10.3.0 @@ -42849,6 +49460,11 @@ packages: rimraf: 3.0.2 dev: true + /tmp@0.2.3: + resolution: {integrity: sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==} + engines: {node: '>=14.14'} + dev: true + /tmpl@1.0.5: resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} @@ -42868,42 +49484,17 @@ packages: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} - /to-object-path@0.3.0: - resolution: {integrity: sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 3.2.2 - dev: true - /to-readable-stream@1.0.0: resolution: {integrity: sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==} engines: {node: '>=6'} dev: true - /to-regex-range@2.1.1: - resolution: {integrity: sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==} - engines: {node: '>=0.10.0'} - dependencies: - is-number: 3.0.0 - repeat-string: 1.6.1 - dev: true - /to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} dependencies: is-number: 7.0.0 - /to-regex@3.0.2: - resolution: {integrity: sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==} - engines: {node: '>=0.10.0'} - dependencies: - define-property: 2.0.2 - extend-shallow: 3.0.2 - regex-not: 1.0.2 - safe-regex: 1.1.0 - dev: true - /toggle-selection@1.0.6: resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==} @@ -42940,7 +49531,7 @@ packages: engines: {node: '>=0.8'} dependencies: psl: 1.9.0 - punycode: 2.1.1 + punycode: 2.3.0 dev: true /tough-cookie@4.1.2: @@ -42948,7 +49539,7 @@ packages: engines: {node: '>=6'} dependencies: psl: 1.9.0 - punycode: 2.1.1 + punycode: 2.3.0 universalify: 0.2.0 url-parse: 1.5.10 dev: false @@ -42960,7 +49551,7 @@ packages: resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} engines: {node: '>=12'} dependencies: - punycode: 2.1.1 + punycode: 2.3.0 dev: false /transformation-matrix@2.15.0: @@ -42975,9 +49566,9 @@ packages: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} dev: true - /treeverse@2.0.0: - resolution: {integrity: sha512-N5gJCkLu1aXccpOTtqV6ddSEi6ZmGkh3hjmbu1IjcavJK4qyOVQmi0myQKM7z5jVGmD68SJoliaVrMmVObhj6A==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + /treeverse@3.0.0: + resolution: {integrity: sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dev: true /trim-lines@3.0.1: @@ -42995,6 +49586,11 @@ packages: escape-string-regexp: 1.0.5 dev: true + /trim-right@1.0.1: + resolution: {integrity: sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==} + engines: {node: '>=0.10.0'} + dev: false + /triple-beam@1.3.0: resolution: {integrity: sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==} dev: true @@ -43035,7 +49631,7 @@ packages: resolution: {integrity: sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==} dev: false - /ts-node@10.9.1(@types/node@18.11.18)(typescript@4.9.4): + /ts-node@10.9.1(@types/node@18.19.39)(typescript@4.9.5): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -43054,14 +49650,45 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.3 - '@types/node': 18.11.18 + '@types/node': 18.19.39 acorn: 8.7.1 acorn-walk: 8.2.0 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 4.9.4 + typescript: 4.9.5 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: true + + /ts-node@10.9.2(@types/node@18.19.39)(typescript@4.9.5): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.3 + '@types/node': 18.19.39 + acorn: 8.11.2 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 4.9.5 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 @@ -43095,14 +49722,17 @@ packages: /tslib@2.5.0: resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} - /tsutils@3.21.0(typescript@4.9.4): + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + + /tsutils@3.21.0(typescript@4.9.5): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 - typescript: 4.9.4 + typescript: 4.9.5 /tsx@3.12.2: resolution: {integrity: sha512-ykAEkoBg30RXxeOMVeZwar+JH632dZn9EUJVyJwhfag62k6UO/dIyJEV58YuLF6e5BTdV/qmbQrpkWqjq9cUnQ==} @@ -43112,11 +49742,22 @@ packages: '@esbuild-kit/core-utils': 3.0.0 '@esbuild-kit/esm-loader': 2.5.4 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 /tty-browserify@0.0.0: resolution: {integrity: sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==} + /tuf-js@1.1.7: + resolution: {integrity: sha512-i3P9Kgw3ytjELUfpuKVDNBJvk4u5bXL6gskv572mcevPbSKCV3zt3djhmlEQ65yERjIbOSncy7U4cQJaB1CBCg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + '@tufjs/models': 1.0.4 + debug: 4.3.4(supports-color@8.1.1) + make-fetch-happen: 11.1.1 + transitivePeerDependencies: + - supports-color + dev: true + /tunnel-agent@0.6.0: resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} dependencies: @@ -43189,6 +49830,10 @@ packages: turbo-windows-arm64: 1.9.3 dev: true + /tween-functions@1.2.0: + resolution: {integrity: sha512-PZBtLYcCLtEcjL14Fzb1gSxPBeL7nWvGhO5ZFPGqziCcr8uvHp0NDmdjBchp6KHL+tExcg0m3NISmKxhU394dA==} + dev: true + /tweetnacl@0.14.5: resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} dev: true @@ -43210,6 +49855,11 @@ packages: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} engines: {node: '>=4'} + /type-fest@0.16.0: + resolution: {integrity: sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==} + engines: {node: '>=10'} + dev: true + /type-fest@0.18.1: resolution: {integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==} engines: {node: '>=10'} @@ -43258,12 +49908,39 @@ packages: /type@2.6.0: resolution: {integrity: sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==} + /typed-array-buffer@1.0.0: + resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + is-typed-array: 1.1.12 + + /typed-array-byte-length@1.0.0: + resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.5 + for-each: 0.3.3 + has-proto: 1.0.1 + is-typed-array: 1.1.12 + + /typed-array-byte-offset@1.0.0: + resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.5 + call-bind: 1.0.5 + for-each: 0.3.3 + has-proto: 1.0.1 + is-typed-array: 1.1.12 + /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 - is-typed-array: 1.1.10 + is-typed-array: 1.1.12 /typedarray-to-buffer@3.1.5: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} @@ -43302,8 +49979,8 @@ packages: hasBin: true dev: true - /typescript@4.9.4: - resolution: {integrity: sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==} + /typescript@4.9.5: + resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true @@ -43372,64 +50049,39 @@ packages: - supports-color dev: true - /umi-presets-pro@1.0.7(@types/node@18.11.18)(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4): - resolution: {integrity: sha512-AZRP2KLDZHu6jrPAQonV+pe+AscGc2vk8Aj1lROIGSBZi6smPe7ghAFvp3YgtY7GOYydiKIA8yXETqbnrG+KTw==} + /umi-presets-pro@2.0.3(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2)(umi@packages+umi): + resolution: {integrity: sha512-sHKynw/fi7UeUftzTRPRsrV5GHV4BWvWYhyvwkg8s+shmt0ROPW/52y4gxBziEvetxl8yWMKUCWk50OUDOcrww==} dependencies: - '@alita/plugins': 3.1.0(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) - '@umijs/max-plugin-openapi': 1.0.7(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4) - '@umijs/plugins': 4.0.57(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) - umi: 4.0.71(@types/node@18.11.18)(@types/react@18.0.26)(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4) + '@alita/plugins': 3.3.10(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) + '@umijs/max-plugin-openapi': 2.0.3 + '@umijs/plugins': 4.1.2(@types/react-dom@18.0.10)(@types/react@18.0.26)(antd@4.23.6)(react-dom@17.0.2)(react@17.0.2) + '@umijs/request-record': 1.1.4(umi@packages+umi) + swagger-ui-dist: 4.19.1 transitivePeerDependencies: - '@babel/core' - '@types/lodash.merge' - - '@types/node' - '@types/react' - '@types/react-dom' - - '@types/webpack' - - '@volar/vue-language-plugin-pug' - - '@volar/vue-typescript' - antd - - babel-plugin-styled-components - chokidar - debug - dva - encoding - - eslint - - jest - - postcss - - postcss-html - postcss-jsx - - postcss-less - postcss-markdown - - postcss-scss - - prettier - rc-field-form - react - react-dom - react-native - - react-refresh - - rollup - - sass - - sockjs-client - - styled-components - - stylelint - - stylus - - sugarss - supports-color - - terser - - type-fest - - typescript - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve + - umi dev: true /umi-request@1.4.0: resolution: {integrity: sha512-OknwtQZddZHi0Ggi+Vr/olJ7HNMx4AzlywyK0W3NZBT7B0stjeZ9lcztA85dBgdAj3KVk8uPJPZSnGaDjELhrA==} dependencies: isomorphic-fetch: 2.2.1 - qs: 6.11.0 + qs: 6.12.1 /umi-serve@1.9.11: resolution: {integrity: sha512-k/4ivrRiwHeuhyHczoEDuEEy0FNC74ITqr77CtAB5EWmluqxosBqW80O5j5bu3ZeLw53WUPprTcTgh/5Zx7+Tw==} @@ -43465,65 +50117,22 @@ packages: slash2: 2.0.0 dev: true - /umi@4.0.0-canary.20220628.2(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4): - resolution: {integrity: sha512-laEIiJWFuQQYhNPyco7mVM8o5r3+V/qi5TXq4ipeGcFUnH+1PRaIu/tLtkqIGfsSJMQUMabrAsFapN5IMT9cCA==} + /umi@4.1.2(@types/node@18.19.39)(@types/react@18.3.3)(jest@29.7.0)(prettier@2.8.4)(react-dom@18.3.1)(react@18.3.1)(sass@1.65.1)(typescript@4.9.5): + resolution: {integrity: sha512-lP/qxOo4CmjcJKFrOy8PCIsW/nRLGXsH5CY0/WEUAkHd63M+osbv/t1fhAhsgKpb7/ofaiSpkNsev5XJz+M3aQ==} engines: {node: '>=14'} hasBin: true dependencies: - '@umijs/bundler-utils': 4.0.0-canary.20220628.2 - '@umijs/bundler-webpack': 4.0.0-canary.20220628.2 - '@umijs/core': 4.0.0-canary.20220628.2 - '@umijs/lint': 4.0.0-canary.20220628.2(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4) - '@umijs/preset-umi': 4.0.0-canary.20220628.2 - '@umijs/renderer-react': 4.0.0-canary.20220628.2(react-dom@17.0.2)(react@17.0.2) - '@umijs/server': 4.0.0-canary.20220628.2 - '@umijs/test': 4.0.0-canary.20220628.2 - '@umijs/utils': 4.0.0-canary.20220628.2 - prettier-plugin-organize-imports: 2.3.4(prettier@2.8.4)(typescript@4.9.4) - prettier-plugin-packagejson: 2.4.3(prettier@2.8.4) - transitivePeerDependencies: - - '@types/webpack' - - encoding - - eslint - - jest - - postcss - - postcss-html - - postcss-jsx - - postcss-less - - postcss-markdown - - postcss-scss - - prettier - - react - - react-dom - - react-refresh - - rollup - - sockjs-client - - stylelint - - supports-color - - type-fest - - typescript - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: true - - /umi@4.0.71(@types/node@18.11.18)(@types/react@18.0.26)(eslint@8.35.0)(jest@29.4.3)(prettier@2.8.4)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.4): - resolution: {integrity: sha512-ces7OXIJZ3lR1pAEvNhXmPEVv8ADNPUG1imoUAhdc6NTxTXlfgO/UCmX9v6RoJtY7NwOo1OcpLc1NLlwgodOSg==} - engines: {node: '>=14'} - hasBin: true - dependencies: - '@babel/runtime': 7.21.0 - '@umijs/bundler-utils': 4.0.71 - '@umijs/bundler-webpack': 4.0.71(typescript@4.9.4) - '@umijs/core': 4.0.71 - '@umijs/lint': 4.0.71(eslint@8.35.0)(jest@29.4.3)(typescript@4.9.4) - '@umijs/preset-umi': 4.0.71(@types/node@18.11.18)(@types/react@18.0.26)(typescript@4.9.4) - '@umijs/renderer-react': 4.0.71(react-dom@17.0.2)(react@17.0.2) - '@umijs/server': 4.0.71 - '@umijs/test': 4.0.71 - '@umijs/utils': 4.0.71 - prettier-plugin-organize-imports: 3.2.2(prettier@2.8.4)(typescript@4.9.4) + '@babel/runtime': 7.23.6 + '@umijs/bundler-utils': 4.1.2 + '@umijs/bundler-webpack': 4.1.2(typescript@4.9.5) + '@umijs/core': 4.1.2 + '@umijs/lint': 4.1.2(jest@29.7.0)(typescript@4.9.5) + '@umijs/preset-umi': 4.1.2(@types/node@18.19.39)(@types/react@18.3.3)(sass@1.65.1)(typescript@4.9.5) + '@umijs/renderer-react': 4.1.2(react-dom@18.3.1)(react@18.3.1) + '@umijs/server': 4.1.2 + '@umijs/test': 4.1.2 + '@umijs/utils': 4.1.2 + prettier-plugin-organize-imports: 3.2.4(prettier@2.8.4)(typescript@4.9.5) prettier-plugin-packagejson: 2.4.3(prettier@2.8.4) transitivePeerDependencies: - '@babel/core' @@ -43534,7 +50143,6 @@ packages: - '@volar/vue-typescript' - eslint - jest - - postcss - postcss-html - postcss-jsx - postcss-less @@ -43546,59 +50154,6 @@ packages: - rollup - sass - sockjs-client - - styled-components - - stylelint - - stylus - - sugarss - - supports-color - - terser - - type-fest - - typescript - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: true - - /umi@4.0.75(@types/node@18.11.18)(@types/react@18.0.26)(jest@29.4.3)(prettier@2.8.4)(react-dom@18.1.0)(react@18.1.0)(sass@1.65.1)(styled-components@6.0.0-rc.0)(typescript@4.9.4): - resolution: {integrity: sha512-BsKMpn3lVxTfIpMrIispWC53gMXZWdw+0kizBUG5fE2UKm08Ye35ECl/6gfSkLWAO1aBXBPaJxVh18SIPXaMmw==} - engines: {node: '>=14'} - hasBin: true - dependencies: - '@babel/runtime': 7.21.0 - '@umijs/bundler-utils': 4.0.75 - '@umijs/bundler-webpack': 4.0.75(styled-components@6.0.0-rc.0)(typescript@4.9.4) - '@umijs/core': 4.0.75 - '@umijs/lint': 4.0.75(jest@29.4.3)(styled-components@6.0.0-rc.0)(typescript@4.9.4) - '@umijs/preset-umi': 4.0.75(@types/node@18.11.18)(@types/react@18.0.26)(sass@1.65.1)(styled-components@6.0.0-rc.0)(typescript@4.9.4) - '@umijs/renderer-react': 4.0.75(react-dom@18.1.0)(react@18.1.0) - '@umijs/server': 4.0.75 - '@umijs/test': 4.0.75 - '@umijs/utils': 4.0.75 - prettier-plugin-organize-imports: 3.2.2(prettier@2.8.4)(typescript@4.9.4) - prettier-plugin-packagejson: 2.4.3(prettier@2.8.4) - transitivePeerDependencies: - - '@babel/core' - - '@types/node' - - '@types/react' - - '@types/webpack' - - '@volar/vue-language-plugin-pug' - - '@volar/vue-typescript' - - eslint - - jest - - postcss - - postcss-html - - postcss-jsx - - postcss-less - - postcss-markdown - - postcss-scss - - prettier - - react - - react-dom - - rollup - - sass - - sockjs-client - - styled-components - stylelint - stylus - sugarss @@ -43615,7 +50170,7 @@ packages: /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-bigints: 1.0.2 has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 @@ -43632,15 +50187,14 @@ packages: resolution: {integrity: sha512-cp0oQQyZhUM1kpJDLdGO1jPZHgS/MpzoWYfe9+CM2h/QGDZlqwT2T3YGukuBdaNJ/CAPoeyAZRRHz8JFo176vA==} dev: true + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + /undici@5.10.0: resolution: {integrity: sha512-c8HsD3IbwmjjbLvoZuRI26TZic+TSEe8FPMLLOkN1AfYRhdjnKBU6yL+IwcSCbdZiX4e5t0lfMDLDCqj4Sq70g==} engines: {node: '>=12.18'} dev: false - /unfetch@4.2.0: - resolution: {integrity: sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==} - dev: true - /unfetch@5.0.0: resolution: {integrity: sha512-3xM2c89siXg0nHvlmYsQ2zkLASvVMBisZm5lF3gFDqfF2xonNStDJyMpvaOBe0a1Edxmqrf2E0HBdmy9QyZaeg==} @@ -43653,14 +50207,14 @@ packages: engines: {node: '>=4'} dependencies: unicode-canonical-property-names-ecmascript: 2.0.0 - unicode-property-aliases-ecmascript: 2.0.0 + unicode-property-aliases-ecmascript: 2.1.0 /unicode-match-property-value-ecmascript@2.1.0: resolution: {integrity: sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==} engines: {node: '>=4'} - /unicode-property-aliases-ecmascript@2.0.0: - resolution: {integrity: sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==} + /unicode-property-aliases-ecmascript@2.1.0: + resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==} engines: {node: '>=4'} /unified@10.1.2: @@ -43687,16 +50241,6 @@ packages: vfile: 4.2.1 dev: true - /union-value@1.0.1: - resolution: {integrity: sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==} - engines: {node: '>=0.10.0'} - dependencies: - arr-union: 3.1.0 - get-value: 2.0.6 - is-extendable: 0.1.1 - set-value: 2.0.1 - dev: true - /unique-filename@1.1.1: resolution: {integrity: sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==} dependencies: @@ -43710,6 +50254,13 @@ packages: unique-slug: 3.0.0 dev: true + /unique-filename@3.0.0: + resolution: {integrity: sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + unique-slug: 4.0.0 + dev: true + /unique-slug@2.0.2: resolution: {integrity: sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==} dependencies: @@ -43723,6 +50274,13 @@ packages: imurmurhash: 0.1.4 dev: true + /unique-slug@4.0.0: + resolution: {integrity: sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dependencies: + imurmurhash: 0.1.4 + dev: true + /unique-string@1.0.0: resolution: {integrity: sha512-ODgiYu03y5g76A1I9Gt0/chLCzQjvzDy7DsZGsLOE/1MrF6wriEskSncj1+/C58Xk/kPZDppSctDybCwOSaGAg==} engines: {node: '>=4'} @@ -43730,6 +50288,13 @@ packages: crypto-random-string: 1.0.0 dev: true + /unique-string@2.0.0: + resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==} + engines: {node: '>=8'} + dependencies: + crypto-random-string: 2.0.0 + dev: true + /unist-util-filter@4.0.1: resolution: {integrity: sha512-RynicUM/vbOSTSiUK+BnaK9XMfmQUh6gyi7L6taNgc7FIf84GukXVV3ucGzEN/PhUUkdP5hb1MmXc+3cvPUm5Q==} dependencies: @@ -43752,10 +50317,6 @@ packages: resolution: {integrity: sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==} dev: true - /unist-util-is@5.1.1: - resolution: {integrity: sha512-F5CZ68eYzuSvJjGhCLPL3cYx45IxkqXSetCcRgUXtbcm50X2L9oOWQlfUfDdAf+6Pd27YDblBfdtmsThXmwpbQ==} - dev: true - /unist-util-is@5.2.1: resolution: {integrity: sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==} dependencies: @@ -43778,7 +50339,7 @@ packages: resolution: {integrity: sha512-0yDkppiIhDlPrfHELgB+NLQD5mfjup3a8UYclHruTJWmY74je8g+CIFr79x5f6AkmzSwlvKLbs63hC0meOMowQ==} dependencies: '@types/unist': 2.0.6 - unist-util-visit: 4.1.1 + unist-util-visit: 4.1.2 dev: true /unist-util-stringify-position@2.0.3: @@ -43799,13 +50360,6 @@ packages: '@types/unist': 2.0.6 dev: true - /unist-util-visit-parents@5.1.1: - resolution: {integrity: sha512-gks4baapT/kNRaWxuGkl5BIhoanZo7sC/cUT/JToSRNL1dYoXRFl75d++NkjYk4TAu2uv2Px+l8guMajogeuiw==} - dependencies: - '@types/unist': 2.0.6 - unist-util-is: 5.1.1 - dev: true - /unist-util-visit-parents@5.1.3: resolution: {integrity: sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==} dependencies: @@ -43817,8 +50371,8 @@ packages: resolution: {integrity: sha512-n9KN3WV9k4h1DxYR1LoajgN93wpEi/7ZplVe02IoB4gH5ctI1AaF2670BLHQYbwj+pY83gFtyeySFiyMHJklrg==} dependencies: '@types/unist': 2.0.6 - unist-util-is: 5.1.1 - unist-util-visit-parents: 5.1.1 + unist-util-is: 5.2.1 + unist-util-visit-parents: 5.1.3 dev: true /unist-util-visit@4.1.2: @@ -43892,14 +50446,6 @@ packages: isobject: 3.0.1 dev: true - /unset-value@1.0.0: - resolution: {integrity: sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==} - engines: {node: '>=0.10.0'} - dependencies: - has-value: 0.3.1 - isobject: 3.0.1 - dev: true - /unstated-next@1.1.0: resolution: {integrity: sha512-AAn47ZncPvgBGOvMcn8tSRxsrqwf2VdAPxLASTuLJvZt4rhKfDvUkmYZLGfclImSfTVMv7tF4ynaVxin0JjDCA==} @@ -43917,13 +50463,13 @@ packages: engines: {node: '>=4'} dev: true - /update-browserslist-db@1.0.11(browserslist@4.21.5): - resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} + /update-browserslist-db@1.0.13(browserslist@4.22.2): + resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} hasBin: true peerDependencies: - browserslist: '>= 4.21.0' + browserslist: 4.22.2 dependencies: - browserslist: 4.21.5 + browserslist: 4.22.2 escalade: 3.1.1 picocolors: 1.0.0 @@ -43964,13 +50510,13 @@ packages: /upper-case-first@2.0.2: resolution: {integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /upper-case@2.0.2: resolution: {integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.2 dev: true /uri-js@4.4.1: @@ -43978,11 +50524,7 @@ packages: dependencies: punycode: 2.3.0 - /urix@0.1.0: - resolution: {integrity: sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==} - dev: true - - /url-loader@4.1.1(file-loader@6.2.0)(webpack@5.76.1): + /url-loader@4.1.1(file-loader@6.2.0)(webpack@5.88.2): resolution: {integrity: sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -43994,13 +50536,20 @@ packages: webpack: optional: true dependencies: - file-loader: 6.2.0(webpack@5.76.1) + file-loader: 6.2.0(webpack@5.88.2) loader-utils: 2.0.2 mime-types: 2.1.35 schema-utils: 3.1.1 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true + /url-okam@0.11.1: + resolution: {integrity: sha512-AM6OVeZNwKiirK3IwKxHuopgjX1jB0F8srK9OlCXN+wdmTNg6vgnN9xyQ5abhxq8Oj/kTleLU8OCfZ1FaEW37w==} + dependencies: + punycode: 1.4.1 + qs: 6.12.1 + dev: false + /url-parse-lax@1.0.0: resolution: {integrity: sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==} engines: {node: '>=0.10.0'} @@ -44022,20 +50571,13 @@ packages: requires-port: 1.0.0 dev: false - /url@0.11.0: - resolution: {integrity: sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==} - dependencies: - punycode: 1.3.2 - querystring: 0.2.0 - - /url@0.11.1: - resolution: {integrity: sha512-rWS3H04/+mzzJkv0eZ7vEDGiQbgquI1fGfOad6zKvgYQi1SzMmhl7c/DdRGxhaWrVH6z0qWITo8rpnxK/RfEhA==} + /url@0.11.3: + resolution: {integrity: sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==} dependencies: punycode: 1.4.1 - qs: 6.11.0 - dev: true + qs: 6.12.1 - /use-composed-ref@1.3.0(react@18.1.0): + /use-composed-ref@1.3.0(react@18.3.1): resolution: {integrity: sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -44043,10 +50585,10 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: true - /use-isomorphic-layout-effect@1.1.2(@types/react@18.0.26)(react@18.1.0): + /use-isomorphic-layout-effect@1.1.2(@types/react@18.0.26)(react@18.3.1): resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} peerDependencies: '@types/react': '*' @@ -44058,7 +50600,38 @@ packages: optional: true dependencies: '@types/react': 18.0.26 + react: 18.3.1 + dev: true + + /use-isomorphic-layout-effect@1.1.2(@types/react@18.3.3)(react@18.1.0): + resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + react: + optional: true + dependencies: + '@types/react': 18.3.3 react: 18.1.0 + dev: true + + /use-isomorphic-layout-effect@1.1.2(@types/react@18.3.3)(react@18.3.1): + resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + react: + optional: true + dependencies: + '@types/react': 18.3.3 + react: 18.3.1 + dev: false /use-json-comparison@1.0.6(react@17.0.2): resolution: {integrity: sha512-xPadt5yMRbEmVfOSGFSMqjjICrq7nLbfSH3rYIXsrtcuFX7PmbYDN/ku8ObBn3v8o/yZelO1OxUS5+5TI3+fUw==} @@ -44070,7 +50643,7 @@ packages: dependencies: react: 17.0.2 - /use-json-comparison@1.0.6(react@18.1.0): + /use-json-comparison@1.0.6(react@18.3.1): resolution: {integrity: sha512-xPadt5yMRbEmVfOSGFSMqjjICrq7nLbfSH3rYIXsrtcuFX7PmbYDN/ku8ObBn3v8o/yZelO1OxUS5+5TI3+fUw==} peerDependencies: react: '>=16.9.0' @@ -44078,10 +50651,10 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false - /use-latest@1.2.1(@types/react@18.0.26)(react@18.1.0): + /use-latest@1.2.1(@types/react@18.0.26)(react@18.3.1): resolution: {integrity: sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==} peerDependencies: '@types/react': '*' @@ -44093,8 +50666,8 @@ packages: optional: true dependencies: '@types/react': 18.0.26 - react: 18.1.0 - use-isomorphic-layout-effect: 1.1.2(@types/react@18.0.26)(react@18.1.0) + react: 18.3.1 + use-isomorphic-layout-effect: 1.1.2(@types/react@18.0.26)(react@18.3.1) dev: true /use-media-antd-query@1.1.0(react@17.0.2): @@ -44107,7 +50680,7 @@ packages: dependencies: react: 17.0.2 - /use-media-antd-query@1.1.0(react@18.1.0): + /use-media-antd-query@1.1.0(react@18.3.1): resolution: {integrity: sha512-B6kKZwNV4R+l4Rl11sWO7HqOay9alzs1Vp1b4YJqjz33YxbltBCZtt/yxXxkXN9rc1S7OeEL/GbwC30Wmqhw6Q==} peerDependencies: react: '>=16.9.0' @@ -44115,7 +50688,7 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false /use-sync-external-store@1.2.0(react@17.0.2): @@ -44140,19 +50713,31 @@ packages: react: 18.1.0 dev: false - /use@3.1.1: - resolution: {integrity: sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==} - engines: {node: '>=0.10.0'} - dev: true + /use-sync-external-store@1.2.0(react@18.3.1): + resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + react: + optional: true + dependencies: + react: 18.3.1 + dev: false /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + /util-okam@0.11.1: + resolution: {integrity: sha512-e2bG47F03vYx2MbA6znK6t6dwffnXGsVzh8BLpi0pcQ7dDRQf0zSAQ9IR7M+aoozALNibw8eCY53gEK8bBpSjg==} + dependencies: + inherits: 2.0.3 + dev: false + /util.promisify@1.0.1: resolution: {integrity: sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==} dependencies: - define-properties: 1.2.0 - es-abstract: 1.21.2 + define-properties: 1.2.1 + es-abstract: 1.22.3 has-symbols: 1.0.3 object.getownpropertydescriptors: 2.1.6 dev: true @@ -44161,6 +50746,12 @@ packages: resolution: {integrity: sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==} dependencies: inherits: 2.0.1 + dev: false + + /util@0.10.4: + resolution: {integrity: sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==} + dependencies: + inherits: 2.0.3 /util@0.11.1: resolution: {integrity: sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==} @@ -44210,9 +50801,9 @@ packages: resolution: {integrity: sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==} engines: {node: '>=10.12.0'} dependencies: - '@jridgewell/trace-mapping': 0.3.17 - '@types/istanbul-lib-coverage': 2.0.4 - convert-source-map: 1.8.0 + '@jridgewell/trace-mapping': 0.3.20 + '@types/istanbul-lib-coverage': 2.0.6 + convert-source-map: 1.9.0 /validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} @@ -44233,6 +50824,11 @@ packages: builtins: 5.0.1 dev: true + /validate-npm-package-name@5.0.1: + resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: true + /validator@13.7.0: resolution: {integrity: sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==} engines: {node: '>= 0.10'} @@ -44252,33 +50848,41 @@ packages: use-sync-external-store: 1.2.0(react@18.1.0) dev: false - /valtio@1.10.5(react@18.1.0): - resolution: {integrity: sha512-jTp0k63VXf4r5hPoaC6a6LCG4POkVSh629WLi1+d5PlajLsbynTMd7qAgEiOSPxzoX5iNvbN7iZ/k/g29wrNiQ==} + /valtio@1.11.2(@types/react@18.0.26)(react@17.0.2): + resolution: {integrity: sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==} engines: {node: '>=12.20.0'} peerDependencies: + '@types/react': '>=16.8' react: '>=16.8' peerDependenciesMeta: + '@types/react': + optional: true react: optional: true dependencies: + '@types/react': 18.0.26 proxy-compare: 2.5.1 - react: 18.1.0 - use-sync-external-store: 1.2.0(react@18.1.0) - dev: false + react: 17.0.2 + use-sync-external-store: 1.2.0(react@17.0.2) + dev: true - /valtio@1.9.0(react@17.0.2): - resolution: {integrity: sha512-mQLFsAlKbYascZygFQh6lXuDjU5WHLoeZ8He4HqMnWfasM96V6rDbeFkw1XeG54xycmDonr/Jb4xgviHtuySrA==} + /valtio@1.11.2(@types/react@18.3.3)(react@18.3.1): + resolution: {integrity: sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==} engines: {node: '>=12.20.0'} peerDependencies: + '@types/react': '>=16.8' react: '>=16.8' peerDependenciesMeta: + '@types/react': + optional: true react: optional: true dependencies: - proxy-compare: 2.4.0 - react: 17.0.2 - use-sync-external-store: 1.2.0(react@17.0.2) - dev: true + '@types/react': 18.3.3 + proxy-compare: 2.5.1 + react: 18.3.1 + use-sync-external-store: 1.2.0(react@18.3.1) + dev: false /vant@4.0.11(vue@3.2.45): resolution: {integrity: sha512-axVP6eHH4vGb5FQ2hqNhB5DykMSBQb0KK97HT4bVVFTYM81EJq1YImqOglzsVt3OC98NRoT01DIwt4y2n1iwVw==} @@ -44321,7 +50925,7 @@ packages: resolution: {integrity: sha512-QjSNP6Yxzyycd4SVOtmKKyTsSvClqBPJcd00Z0zuPj3hOIjg0rUPG6DbFGPvUKRgYyaIWLPKpuEclcuvb3H8qA==} dependencies: '@types/unist': 2.0.6 - unist-util-stringify-position: 3.0.2 + unist-util-stringify-position: 3.0.3 dev: true /vfile-message@3.1.4: @@ -44361,7 +50965,7 @@ packages: /viewport-mercator-project@6.2.3: resolution: {integrity: sha512-QQb0/qCLlP4DdfbHHSWVYXpghB2wkLIiiZQnoelOB59mXKQSyZVxjreq1S+gaBJFpcGkWEcyVtre0+2y2DTl/Q==} dependencies: - '@babel/runtime': 7.21.0 + '@babel/runtime': 7.23.6 gl-matrix: 3.4.3 dev: false @@ -44396,14 +51000,14 @@ packages: optional: true dependencies: esbuild: 0.14.51 - postcss: 8.4.21 + postcss: 8.4.32 resolve: 1.22.0 rollup: 2.77.3 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 dev: true - /vite@4.3.1(@types/node@18.11.18)(less@4.1.3)(sass@1.65.1): + /vite@4.3.1(@types/node@18.19.39)(less@4.1.3)(sass@1.65.1): resolution: {integrity: sha512-EPmfPLAI79Z/RofuMvkIS0Yr091T2ReUoXQqc5ppBX/sjFRhHKiPPF/R46cTdoci/XgeQpB23diiJxq5w30vdg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -44428,14 +51032,51 @@ packages: terser: optional: true dependencies: - '@types/node': 18.11.18 + '@types/node': 18.19.39 esbuild: 0.17.19 less: 4.1.3 - postcss: 8.4.21 - rollup: 3.20.7 + postcss: 8.4.35 + rollup: 3.29.4 sass: 1.65.1 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 + dev: true + + /vite@4.5.2(@types/node@18.19.39)(less@4.1.3): + resolution: {integrity: sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==} + engines: {node: ^14.18.0 || >=16.0.0} + hasBin: true + peerDependencies: + '@types/node': '>= 14' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + '@types/node': 18.19.39 + esbuild: 0.18.20 + less: 4.1.3 + postcss: 8.4.35 + rollup: 3.29.4 + optionalDependencies: + fsevents: 2.3.3 /vitest@0.16.0: resolution: {integrity: sha512-Ntp6jrM8wf2NMtamMBLkRBBdeqHkgAH/WMh5Xryts1j2ft2D8QZQbiSVFkSl4WmEQzcPP0YM069g/Ga1vtnEtg==} @@ -44662,6 +51303,14 @@ packages: /webpack-5-chain@8.0.1: resolution: {integrity: sha512-Tu1w80WA2Z+X6e7KzGy+cc0A0z+npVJA/fh55q2azMJ030gqz343Kx+yNAstDCeugsepmtDWY2J2IBRW/O+DEA==} engines: {node: '>=10'} + dependencies: + deepmerge: 1.5.2 + javascript-stringify: 2.1.0 + dev: false + + /webpack-5-chain@8.0.2: + resolution: {integrity: sha512-gpzlChffrVUu5YwIw9i240/wdcglw53mSEV/7WoK7L/ddfb6Al8/sRjztyPYV8VgJAmkapH5T1AOUfMFryQ/VA==} + engines: {node: '>=10'} dependencies: deepmerge: 1.5.2 javascript-stringify: 2.1.0 @@ -44736,7 +51385,7 @@ packages: schema-utils: 4.0.0 webpack: 5.75.0(esbuild@0.17.19)(uglify-js@3.17.4)(webpack-cli@5.0.1) - /webpack-dev-middleware@6.0.1(webpack@5.76.1): + /webpack-dev-middleware@6.0.1(webpack@5.88.2): resolution: {integrity: sha512-PZPZ6jFinmqVPJZbisfggDiC+2EeGZ1ZByyMP5sOFJcPPWSexalISz+cvm+j+oYPT7FIJyxT76esjnw9DhE5sw==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -44750,7 +51399,7 @@ packages: mime-types: 2.1.35 range-parser: 1.2.1 schema-utils: 4.0.0 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /webpack-dev-server@4.11.1(webpack-cli@5.0.1)(webpack@5.75.0): @@ -44803,7 +51452,7 @@ packages: - supports-color - utf-8-validate - /webpack-manifest-plugin@5.0.0(webpack@5.76.1): + /webpack-manifest-plugin@5.0.0(webpack@5.88.2): resolution: {integrity: sha512-8RQfMAdc5Uw3QbCQ/CBV/AXqOR8mt03B6GJmRbhWopE8GzRfEpn+k0ZuWywxW+5QZsffhmFDY1J6ohqJo+eMuw==} engines: {node: '>=12.22.0'} peerDependencies: @@ -44813,7 +51462,7 @@ packages: optional: true dependencies: tapable: 2.2.1 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) webpack-sources: 2.3.1 dev: true @@ -44857,7 +51506,7 @@ packages: '@webassemblyjs/wasm-parser': 1.11.1 acorn: 8.7.1 acorn-import-assertions: 1.8.0(acorn@8.7.1) - browserslist: 4.21.5 + browserslist: 4.22.2 chrome-trace-event: 1.0.3 enhanced-resolve: 5.10.0 es-module-lexer: 0.9.3 @@ -44880,7 +51529,7 @@ packages: - esbuild - uglify-js - /webpack@5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4): + /webpack@5.76.1(uglify-js@3.17.4): resolution: {integrity: sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==} engines: {node: '>=10.13.0'} hasBin: true @@ -44897,7 +51546,7 @@ packages: '@webassemblyjs/wasm-parser': 1.11.1 acorn: 8.8.2 acorn-import-assertions: 1.8.0(acorn@8.8.2) - browserslist: 4.21.5 + browserslist: 4.22.2 chrome-trace-event: 1.0.3 enhanced-resolve: 5.10.0 es-module-lexer: 0.9.3 @@ -44911,16 +51560,17 @@ packages: neo-async: 2.6.2 schema-utils: 3.1.1 tapable: 2.2.1 - terser-webpack-plugin: 5.3.6(@swc/core@1.3.67)(uglify-js@3.17.4)(webpack@5.76.1) + terser-webpack-plugin: 5.3.6(uglify-js@3.17.4)(webpack@5.76.1) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: - '@swc/core' - esbuild - uglify-js + dev: true - /webpack@5.76.1(uglify-js@3.17.4): - resolution: {integrity: sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==} + /webpack@5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4): + resolution: {integrity: sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==} engines: {node: '>=10.13.0'} hasBin: true peerDependencies: @@ -44930,36 +51580,35 @@ packages: optional: true dependencies: '@types/eslint-scope': 3.7.4 - '@types/estree': 0.0.51 - '@webassemblyjs/ast': 1.11.1 - '@webassemblyjs/wasm-edit': 1.11.1 - '@webassemblyjs/wasm-parser': 1.11.1 + '@types/estree': 1.0.1 + '@webassemblyjs/ast': 1.11.6 + '@webassemblyjs/wasm-edit': 1.11.6 + '@webassemblyjs/wasm-parser': 1.11.6 acorn: 8.8.2 - acorn-import-assertions: 1.8.0(acorn@8.8.2) - browserslist: 4.21.5 + acorn-import-assertions: 1.9.0(acorn@8.8.2) + browserslist: 4.22.2 chrome-trace-event: 1.0.3 - enhanced-resolve: 5.10.0 - es-module-lexer: 0.9.3 + enhanced-resolve: 5.15.0 + es-module-lexer: 1.3.1 eslint-scope: 5.1.1 events: 3.3.0 glob-to-regexp: 0.4.1 - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 json-parse-even-better-errors: 2.3.1 loader-runner: 4.3.0 mime-types: 2.1.35 neo-async: 2.6.2 - schema-utils: 3.1.1 + schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.6(uglify-js@3.17.4)(webpack@5.76.1) + terser-webpack-plugin: 5.3.9(@swc/core@1.3.67)(uglify-js@3.17.4)(webpack@5.88.2) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: - '@swc/core' - esbuild - uglify-js - dev: true - /webpackbar@5.0.2(webpack@5.76.1): + /webpackbar@5.0.2(webpack@5.88.2): resolution: {integrity: sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==} engines: {node: '>=12'} peerDependencies: @@ -44972,13 +51621,12 @@ packages: consola: 2.15.3 pretty-time: 1.1.0 std-env: 3.3.1 - webpack: 5.76.1(@swc/core@1.3.67)(uglify-js@3.17.4) + webpack: 5.88.2(@swc/core@1.3.67)(uglify-js@3.17.4) dev: true /webpod@0.0.2: resolution: {integrity: sha512-cSwwQIeg8v4i3p4ajHhwgR7N6VyxAf+KYSSsY6Pd3aETE+xEU4vbitz7qQkB0I321xnhDdgtxuiSfk5r/FVtjg==} hasBin: true - dev: false /websocket-driver@0.7.4: resolution: {integrity: sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==} @@ -45034,7 +51682,7 @@ packages: resolution: {integrity: sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==} engines: {node: '>= 0.4'} dependencies: - function.prototype.name: 1.1.5 + function.prototype.name: 1.1.6 has-tostringtag: 1.0.0 is-async-function: 2.0.0 is-date-object: 1.0.5 @@ -45045,7 +51693,7 @@ packages: isarray: 2.0.5 which-boxed-primitive: 1.0.2 which-collection: 1.0.1 - which-typed-array: 1.1.9 + which-typed-array: 1.1.13 /which-collection@1.0.1: resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==} @@ -45064,16 +51712,15 @@ packages: engines: {node: '>=4'} dev: true - /which-typed-array@1.1.9: - resolution: {integrity: sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==} + /which-typed-array@1.1.13: + resolution: {integrity: sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==} engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.0 - is-typed-array: 1.1.10 /which@1.3.1: resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} @@ -45094,7 +51741,6 @@ packages: hasBin: true dependencies: isexe: 2.0.0 - dev: false /wide-align@1.1.5: resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} @@ -45109,13 +51755,6 @@ packages: string-width: 2.1.1 dev: true - /widest-line@3.1.0: - resolution: {integrity: sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==} - engines: {node: '>=8'} - dependencies: - string-width: 4.2.3 - dev: true - /wildcard@2.0.0: resolution: {integrity: sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==} @@ -45195,6 +51834,14 @@ packages: string-width: 4.2.3 strip-ansi: 6.0.1 + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.0.1 + /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} @@ -45297,6 +51944,19 @@ packages: utf-8-validate: optional: true + /ws@8.17.1: + resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + /xdg-basedir@3.0.0: resolution: {integrity: sha512-1Dly4xqlulvPD3fZUQJLY+FUIeqN3N2MM3uqe4rCJftAvOjFa3jFGfctOgluGx4ahPbUCsZkmJILiP0Vi4T6lQ==} engines: {node: '>=4'} @@ -45358,6 +52018,17 @@ packages: resolution: {integrity: sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==} engines: {node: '>= 14'} + /yaml@2.3.1: + resolution: {integrity: sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==} + engines: {node: '>= 14'} + dev: true + + /yaml@2.4.5: + resolution: {integrity: sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==} + engines: {node: '>= 14'} + hasBin: true + dev: true + /yargs-parser@13.1.1: resolution: {integrity: sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==} dependencies: @@ -45472,6 +52143,7 @@ packages: /z-schema@5.0.4: resolution: {integrity: sha512-gm/lx3hDzJNcLwseIeQVm1UcwhWIKpSB4NqH89pTBtFns4k/HDHudsICtvG05Bvw/Mv3jMyk700y5dadueLHdA==} engines: {node: '>=8.0.0'} + hasBin: true dependencies: lodash.get: 4.4.2 lodash.isequal: 4.5.0 @@ -45480,15 +52152,34 @@ packages: commander: 2.20.3 dev: true + /zod-validation-error@2.1.0(zod@3.23.8): + resolution: {integrity: sha512-VJh93e2wb4c3tWtGgTa0OF/dTt/zoPCPzXq4V11ZjxmEAFaPi/Zss1xIZdEB5RD8GD00U0/iVXgqkF77RV7pdQ==} + engines: {node: '>=18.0.0'} + peerDependencies: + zod: ^3.18.0 + dependencies: + zod: 3.23.8 + dev: false + /zod@3.20.6: resolution: {integrity: sha512-oyu0m54SGCtzh6EClBVqDDlAYRz4jrVtKwQ7ZnsEmMI9HnzuZFj8QFwAY1M5uniIYACdGvv0PBWPF2kO0aNofA==} dev: true + /zod@3.23.8: + resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} + dev: false + + /zscroller@0.4.8: + resolution: {integrity: sha512-G5NiNLKx2+QhhvZi2yV1jjVXY50otktxkseX2hG2N/eixohOUk0AY8ZpbAxNqS9oJS/NxItCsowupy2tsXxAMw==} + dependencies: + babel-runtime: 6.26.0 + dev: true + /zstddec@0.0.2: resolution: {integrity: sha512-DCo0oxvcvOTGP/f5FA6tz2Z6wF+FIcEApSTu0zV5sQgn9hoT5lZ9YRAKUraxt9oP7l4e8TnNdi8IZTCX6WCkwA==} dev: false - /zustand@3.7.2(react@18.1.0): + /zustand@3.7.2(react@18.3.1): resolution: {integrity: sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA==} engines: {node: '>=12.7.0'} peerDependencies: @@ -45497,40 +52188,17 @@ packages: react: optional: true dependencies: - react: 18.1.0 + react: 18.3.1 dev: false /zwitch@1.0.5: resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==} dev: true - /zwitch@2.0.2: - resolution: {integrity: sha512-JZxotl7SxAJH0j7dN4pxsTV6ZLXoLdGME+PsjkL/DaBrVryK9kTGq06GfKrwcSOqypP+fdXGoCHE36b99fWVoA==} - dev: true - /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: true - /zx@7.1.1: - resolution: {integrity: sha512-5YlTO2AJ+Ku2YuZKSSSqnUKuagcM/f/j4LmHs15O84Ch80Z9gzR09ZK3gR7GV+rc8IFpz2H/XNFtFVmj31yrZA==} - engines: {node: '>= 16.0.0'} - dependencies: - '@types/fs-extra': 9.0.13 - '@types/minimist': 1.2.2 - '@types/node': 18.11.18 - '@types/ps-tree': 1.1.2 - '@types/which': 2.0.1 - chalk: 5.0.1 - fs-extra: 10.1.0 - globby: 13.1.2 - minimist: 1.2.6 - node-fetch: 3.2.10 - ps-tree: 1.2.0 - which: 2.0.2 - yaml: 2.2.1 - dev: true - /zx@7.2.1: resolution: {integrity: sha512-TgKwppaMLMNAXHhlhbBh7rMoOSx3/9qqnkv8frmhVlSomEuWkDijh/BCmYntkoS7ZQyemApAUyEi24jIrrS+hA==} engines: {node: '>= 16.0.0'} @@ -45551,3 +52219,25 @@ packages: which: 3.0.0 yaml: 2.2.1 dev: false + + /zx@7.2.3: + resolution: {integrity: sha512-QODu38nLlYXg/B/Gw7ZKiZrvPkEsjPN3LQ5JFXM7h0JvwhEdPNNl+4Ao1y4+o3CLNiDUNcwzQYZ4/Ko7kKzCMA==} + engines: {node: '>= 16.0.0'} + hasBin: true + dependencies: + '@types/fs-extra': 11.0.4 + '@types/minimist': 1.2.2 + '@types/node': 18.19.39 + '@types/ps-tree': 1.1.2 + '@types/which': 3.0.4 + chalk: 5.3.0 + fs-extra: 11.1.1 + fx: 34.0.0 + globby: 13.1.4 + minimist: 1.2.8 + node-fetch: 3.3.1 + ps-tree: 1.2.0 + webpod: 0.0.2 + which: 3.0.0 + yaml: 2.4.5 + dev: true diff --git a/scripts/bin/umi-scripts.js b/scripts/bin/umi-scripts.js index 7afc1f06a432..f1785de08401 100755 --- a/scripts/bin/umi-scripts.js +++ b/scripts/bin/umi-scripts.js @@ -24,7 +24,12 @@ const spawn = sync( 'tsx', [scriptPathAsStr, ...throughArgs], { - env: process.env, + env: { + ...process.env, + // disable `(node:92349) ExperimentalWarning: `--experimental-loader` may be removed in the future;` warning + // more context: https://github.com/umijs/umi/pull/11981 + NODE_NO_WARNINGS: '1' + }, cwd: process.cwd(), stdio: 'inherit', shell: true diff --git a/scripts/syncMako.ts b/scripts/syncMako.ts new file mode 100644 index 000000000000..9e47e900f727 --- /dev/null +++ b/scripts/syncMako.ts @@ -0,0 +1,26 @@ +import 'zx/globals'; + +(async () => { + let pkgName = '@umijs/bundler-mako'; + let version = await (async () => { + if (argv.version) return argv.version; + let version = (await $`npm show ${pkgName} version`).stdout.trim(); + return version; + })(); + console.log(`Syncing ${pkgName}@${version}...`); + + let pkgPath = 'packages/preset-umi/package.json'; + let pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')); + pkg.dependencies[pkgName] = version; + fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf-8'); + console.log(`Updated ${pkgPath}`); + + await $`pnpm install`; + console.log(`Installed with pnpm`); + + await $`git commit -am "dep(@umijs/preset-umi): ${pkgName}@${version}"`; + await $`git push`; +})().catch(e => { + console.error(e); + process.exit(1); +}); diff --git a/ui/package.json b/ui/package.json index 13a9cf5d91c8..342216740ae9 100644 --- a/ui/package.json +++ b/ui/package.json @@ -29,8 +29,7 @@ "@types/react-dom": "^18", "antd": "^5.2.3", "rc-virtual-list": "^3.4.13", - "react-json-view": "^1.21.3", - "typescript": "^4" + "react-json-view": "^1.21.3" }, "packageManager": "pnpm@7.3.0", "publishConfig": {